- 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>
127 lines
2.9 KiB
Python
127 lines
2.9 KiB
Python
# app/modules/cms/schemas/__init__.py
|
|
"""
|
|
CMS module Pydantic schemas for API request/response validation.
|
|
"""
|
|
|
|
from app.modules.cms.schemas.content_page import (
|
|
CMSUsageResponse,
|
|
# Admin schemas
|
|
ContentPageCreate,
|
|
ContentPageListItem,
|
|
ContentPageResponse,
|
|
ContentPageUpdate,
|
|
# Public/Shop schemas
|
|
PublicContentPageResponse,
|
|
SectionUpdateResponse,
|
|
# Store schemas
|
|
StoreContentPageCreate,
|
|
StoreContentPageUpdate,
|
|
)
|
|
from app.modules.cms.schemas.content_page import (
|
|
HomepageSectionsResponse as ContentPageHomepageSectionsResponse,
|
|
)
|
|
from app.modules.cms.schemas.homepage_sections import (
|
|
CTASection,
|
|
FeatureCard,
|
|
FeaturesSection,
|
|
# Section components
|
|
HeroButton,
|
|
HeroSection,
|
|
# Main structure
|
|
HomepageSections,
|
|
HomepageSectionsResponse,
|
|
PricingSection,
|
|
# API schemas
|
|
SectionUpdateRequest,
|
|
# Translatable text
|
|
TranslatableText,
|
|
)
|
|
|
|
# Image schemas
|
|
from app.modules.cms.schemas.image import (
|
|
ImageStorageStats,
|
|
)
|
|
|
|
# Media schemas
|
|
from app.modules.cms.schemas.media import (
|
|
FailedFileInfo,
|
|
MediaDetailResponse,
|
|
MediaItemResponse,
|
|
MediaListResponse,
|
|
MediaMetadataUpdate,
|
|
MediaUploadResponse,
|
|
MediaUsageItem,
|
|
MediaUsageResponse,
|
|
MessageResponse,
|
|
MultipleUploadResponse,
|
|
OptimizationResultResponse,
|
|
UploadedFileInfo,
|
|
)
|
|
|
|
# Theme schemas
|
|
from app.modules.cms.schemas.store_theme import (
|
|
StoreThemeBranding,
|
|
StoreThemeColors,
|
|
StoreThemeFonts,
|
|
StoreThemeLayout,
|
|
StoreThemeResponse,
|
|
StoreThemeUpdate,
|
|
ThemeDeleteResponse,
|
|
ThemePresetListResponse,
|
|
ThemePresetPreview,
|
|
ThemePresetResponse,
|
|
)
|
|
|
|
__all__ = [
|
|
# Content Page - Admin
|
|
"ContentPageCreate",
|
|
"ContentPageUpdate",
|
|
"ContentPageResponse",
|
|
"ContentPageHomepageSectionsResponse",
|
|
"SectionUpdateResponse",
|
|
# Content Page - Store
|
|
"StoreContentPageCreate",
|
|
"StoreContentPageUpdate",
|
|
"CMSUsageResponse",
|
|
# Content Page - Public
|
|
"PublicContentPageResponse",
|
|
"ContentPageListItem",
|
|
# Homepage Sections
|
|
"TranslatableText",
|
|
"HeroButton",
|
|
"HeroSection",
|
|
"FeatureCard",
|
|
"FeaturesSection",
|
|
"PricingSection",
|
|
"CTASection",
|
|
"HomepageSections",
|
|
"SectionUpdateRequest",
|
|
"HomepageSectionsResponse",
|
|
# Media
|
|
"FailedFileInfo",
|
|
"MediaDetailResponse",
|
|
"MediaItemResponse",
|
|
"MediaListResponse",
|
|
"MediaMetadataUpdate",
|
|
"MediaUploadResponse",
|
|
"MediaUsageResponse",
|
|
"MessageResponse",
|
|
"MultipleUploadResponse",
|
|
"OptimizationResultResponse",
|
|
"MediaUsageItem",
|
|
"UploadedFileInfo",
|
|
# Image
|
|
"ImageStorageStats",
|
|
# Theme
|
|
"ThemeDeleteResponse",
|
|
"ThemePresetListResponse",
|
|
"ThemePresetPreview",
|
|
"ThemePresetResponse",
|
|
"StoreThemeBranding",
|
|
"StoreThemeColors",
|
|
"StoreThemeFonts",
|
|
"StoreThemeLayout",
|
|
"StoreThemeResponse",
|
|
"StoreThemeUpdate",
|
|
]
|