- Auto-fixed 4,496 lint issues (import sorting, modern syntax, etc.) - Added ignore rules for patterns intentional in this codebase: E402 (late imports), E712 (SQLAlchemy filters), B904 (raise from), SIM108/SIM105/SIM117 (readability preferences) - Added per-file ignores for tests and scripts - Excluded broken scripts/rename_terminology.py (has curly quotes) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
208 lines
5.1 KiB
Python
208 lines
5.1 KiB
Python
# app/modules/tenancy/schemas/__init__.py
|
|
"""
|
|
Tenancy module Pydantic schemas.
|
|
|
|
Request/response schemas for platform, merchant, store, admin user, and team management.
|
|
"""
|
|
|
|
# Merchant schemas
|
|
# Admin schemas
|
|
from app.modules.tenancy.schemas.admin import (
|
|
AdminAuditLogFilters,
|
|
AdminAuditLogListResponse,
|
|
AdminAuditLogResponse,
|
|
AdminDashboardStats,
|
|
AdminNotificationCreate,
|
|
AdminNotificationListResponse,
|
|
AdminNotificationResponse,
|
|
AdminNotificationUpdate,
|
|
AdminSessionListResponse,
|
|
AdminSessionResponse,
|
|
AdminSettingCreate,
|
|
AdminSettingDefaultResponse,
|
|
AdminSettingListResponse,
|
|
AdminSettingResponse,
|
|
AdminSettingUpdate,
|
|
ApplicationLogFilters,
|
|
ApplicationLogListResponse,
|
|
ApplicationLogResponse,
|
|
BulkStoreAction,
|
|
BulkStoreActionResponse,
|
|
BulkUserAction,
|
|
BulkUserActionResponse,
|
|
ComponentHealthStatus,
|
|
FileLogResponse,
|
|
LogCleanupResponse,
|
|
LogDeleteResponse,
|
|
LogFileInfo,
|
|
LogFileListResponse,
|
|
LogSettingsResponse,
|
|
LogSettingsUpdate,
|
|
LogSettingsUpdateResponse,
|
|
LogStatistics,
|
|
PlatformAlertCreate,
|
|
PlatformAlertListResponse,
|
|
PlatformAlertResolve,
|
|
PlatformAlertResponse,
|
|
PublicDisplaySettingsResponse,
|
|
RowsPerPageResponse,
|
|
RowsPerPageUpdateResponse,
|
|
SystemHealthResponse,
|
|
)
|
|
from app.modules.tenancy.schemas.merchant import (
|
|
MerchantBase,
|
|
MerchantCreate,
|
|
MerchantCreateResponse,
|
|
MerchantDetailResponse,
|
|
MerchantListResponse,
|
|
MerchantPortalProfileResponse,
|
|
MerchantPortalProfileUpdate,
|
|
MerchantPortalStoreListResponse,
|
|
MerchantResponse,
|
|
MerchantSummary,
|
|
MerchantTransferOwnership,
|
|
MerchantTransferOwnershipResponse,
|
|
MerchantUpdate,
|
|
)
|
|
|
|
# Store schemas
|
|
from app.modules.tenancy.schemas.store import (
|
|
StoreCreate,
|
|
StoreCreateResponse,
|
|
StoreDetailResponse,
|
|
StoreListResponse,
|
|
StoreResponse,
|
|
StoreSummary,
|
|
StoreUpdate,
|
|
)
|
|
|
|
# Store domain schemas
|
|
from app.modules.tenancy.schemas.store_domain import (
|
|
DomainDeletionResponse,
|
|
DomainVerificationInstructions,
|
|
DomainVerificationResponse,
|
|
StoreDomainCreate,
|
|
StoreDomainListResponse,
|
|
StoreDomainResponse,
|
|
StoreDomainUpdate,
|
|
)
|
|
|
|
# Team schemas
|
|
from app.modules.tenancy.schemas.team import (
|
|
BulkRemoveRequest,
|
|
BulkRemoveResponse,
|
|
InvitationAccept,
|
|
InvitationAcceptResponse,
|
|
InvitationResponse,
|
|
PermissionCheckRequest,
|
|
PermissionCheckResponse,
|
|
RoleBase,
|
|
RoleCreate,
|
|
RoleListResponse,
|
|
RoleResponse,
|
|
RoleUpdate,
|
|
TeamErrorResponse,
|
|
TeamMemberBase,
|
|
TeamMemberInvite,
|
|
TeamMemberListResponse,
|
|
TeamMemberResponse,
|
|
TeamMemberUpdate,
|
|
TeamStatistics,
|
|
UserPermissionsResponse,
|
|
)
|
|
|
|
__all__ = [
|
|
# Merchant
|
|
"MerchantBase",
|
|
"MerchantCreate",
|
|
"MerchantCreateResponse",
|
|
"MerchantDetailResponse",
|
|
"MerchantListResponse",
|
|
"MerchantPortalProfileResponse",
|
|
"MerchantPortalProfileUpdate",
|
|
"MerchantPortalStoreListResponse",
|
|
"MerchantResponse",
|
|
"MerchantSummary",
|
|
"MerchantTransferOwnership",
|
|
"MerchantTransferOwnershipResponse",
|
|
"MerchantUpdate",
|
|
# Store
|
|
"StoreCreate",
|
|
"StoreCreateResponse",
|
|
"StoreDetailResponse",
|
|
"StoreListResponse",
|
|
"StoreResponse",
|
|
"StoreSummary",
|
|
"StoreUpdate",
|
|
# Admin
|
|
"AdminAuditLogFilters",
|
|
"AdminAuditLogListResponse",
|
|
"AdminAuditLogResponse",
|
|
"AdminDashboardStats",
|
|
"AdminNotificationCreate",
|
|
"AdminNotificationListResponse",
|
|
"AdminNotificationResponse",
|
|
"AdminNotificationUpdate",
|
|
"AdminSessionListResponse",
|
|
"AdminSessionResponse",
|
|
"AdminSettingCreate",
|
|
"AdminSettingDefaultResponse",
|
|
"AdminSettingListResponse",
|
|
"AdminSettingResponse",
|
|
"AdminSettingUpdate",
|
|
"ApplicationLogFilters",
|
|
"ApplicationLogListResponse",
|
|
"ApplicationLogResponse",
|
|
"BulkUserAction",
|
|
"BulkUserActionResponse",
|
|
"BulkStoreAction",
|
|
"BulkStoreActionResponse",
|
|
"ComponentHealthStatus",
|
|
"FileLogResponse",
|
|
"LogCleanupResponse",
|
|
"LogDeleteResponse",
|
|
"LogFileInfo",
|
|
"LogFileListResponse",
|
|
"LogSettingsResponse",
|
|
"LogSettingsUpdate",
|
|
"LogSettingsUpdateResponse",
|
|
"LogStatistics",
|
|
"PlatformAlertCreate",
|
|
"PlatformAlertListResponse",
|
|
"PlatformAlertResolve",
|
|
"PlatformAlertResponse",
|
|
"PublicDisplaySettingsResponse",
|
|
"RowsPerPageResponse",
|
|
"RowsPerPageUpdateResponse",
|
|
"SystemHealthResponse",
|
|
# Team
|
|
"BulkRemoveRequest",
|
|
"BulkRemoveResponse",
|
|
"InvitationAccept",
|
|
"InvitationAcceptResponse",
|
|
"InvitationResponse",
|
|
"PermissionCheckRequest",
|
|
"PermissionCheckResponse",
|
|
"RoleBase",
|
|
"RoleCreate",
|
|
"RoleListResponse",
|
|
"RoleResponse",
|
|
"RoleUpdate",
|
|
"TeamErrorResponse",
|
|
"TeamMemberBase",
|
|
"TeamMemberInvite",
|
|
"TeamMemberListResponse",
|
|
"TeamMemberResponse",
|
|
"TeamMemberUpdate",
|
|
"TeamStatistics",
|
|
"UserPermissionsResponse",
|
|
# Store Domain
|
|
"DomainDeletionResponse",
|
|
"DomainVerificationInstructions",
|
|
"DomainVerificationResponse",
|
|
"StoreDomainCreate",
|
|
"StoreDomainListResponse",
|
|
"StoreDomainResponse",
|
|
"StoreDomainUpdate",
|
|
]
|