refactors
This commit is contained in:
parent
4e1a339432
commit
82c4d0168e
28 changed files with 1042 additions and 782 deletions
88
backend/schemas/__init__.py
Normal file
88
backend/schemas/__init__.py
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
# Export pagination
|
||||
# Export auth schemas
|
||||
from .auth import RegisterWithInvite, UserCreate, UserCredentials, UserLogin
|
||||
|
||||
# Export availability schemas
|
||||
from .availability import (
|
||||
AvailabilityDay,
|
||||
AvailabilityResponse,
|
||||
CopyAvailabilityRequest,
|
||||
SetAvailabilityRequest,
|
||||
TimeSlot,
|
||||
)
|
||||
|
||||
# Export exchange schemas
|
||||
from .exchange import (
|
||||
AdminExchangeResponse,
|
||||
AvailableSlotsResponse,
|
||||
BookableSlot,
|
||||
ExchangeRequest,
|
||||
ExchangeResponse,
|
||||
ExchangeUserContact,
|
||||
PaginatedAdminExchanges,
|
||||
PaginatedExchanges,
|
||||
)
|
||||
|
||||
# Export invite schemas
|
||||
from .invite import (
|
||||
InviteCheckResponse,
|
||||
InviteCreate,
|
||||
InviteResponse,
|
||||
PaginatedInviteRecords,
|
||||
UserInviteResponse,
|
||||
)
|
||||
|
||||
# Export meta schemas
|
||||
from .meta import ConstantsResponse
|
||||
from .pagination import PaginatedResponse, RecordT
|
||||
|
||||
# Export price schemas
|
||||
from .price import (
|
||||
ExchangeConfigResponse,
|
||||
ExchangePriceResponse,
|
||||
PriceHistoryResponse,
|
||||
PriceResponse,
|
||||
)
|
||||
|
||||
# Export profile schemas
|
||||
from .profile import ProfileResponse, ProfileUpdate
|
||||
|
||||
# Export user schemas
|
||||
from .user import AdminUserResponse, UserResponse, UserSearchResult
|
||||
|
||||
__all__ = [
|
||||
"AdminExchangeResponse",
|
||||
"AdminUserResponse",
|
||||
"AvailabilityDay",
|
||||
"AvailabilityResponse",
|
||||
"AvailableSlotsResponse",
|
||||
"BookableSlot",
|
||||
"ConstantsResponse",
|
||||
"CopyAvailabilityRequest",
|
||||
"ExchangeConfigResponse",
|
||||
"ExchangePriceResponse",
|
||||
"ExchangeRequest",
|
||||
"ExchangeResponse",
|
||||
"ExchangeUserContact",
|
||||
"InviteCheckResponse",
|
||||
"InviteCreate",
|
||||
"InviteResponse",
|
||||
"PaginatedAdminExchanges",
|
||||
"PaginatedExchanges",
|
||||
"PaginatedInviteRecords",
|
||||
"PaginatedResponse",
|
||||
"PriceHistoryResponse",
|
||||
"PriceResponse",
|
||||
"ProfileResponse",
|
||||
"ProfileUpdate",
|
||||
"RecordT",
|
||||
"RegisterWithInvite",
|
||||
"SetAvailabilityRequest",
|
||||
"TimeSlot",
|
||||
"UserCreate",
|
||||
"UserCredentials",
|
||||
"UserInviteResponse",
|
||||
"UserLogin",
|
||||
"UserResponse",
|
||||
"UserSearchResult",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue