x
This commit is contained in:
1 parent
b8a255821b
commit
46f09ab145
16 files changed
+2269
-186
No files matched your search
@@ -66,6 +66,7 @@ export interface Category {
|
||||
featuredSeries?: CategoryFeaturedSeries | null
|
||||
uspBenefits?: CategoryUspBenefit[] | null
|
||||
filterConfig?: CategoryFilterConfig | null
|
||||
sections?: CategorySection[]
|
||||
availableFilters?: AttributeDefinition[]
|
||||
_count?: { products: number }
|
||||
translations?: { langCode: string; name: string }[]
|
||||
@@ -584,6 +585,18 @@ export interface ProductDetailSection {
|
||||
updatedAt?: string
|
||||
}
|
||||
|
||||
export interface CategorySection {
|
||||
id: number
|
||||
categoryId: number
|
||||
type: string
|
||||
order: number
|
||||
payload: any
|
||||
isActive: boolean
|
||||
isLocked: boolean
|
||||
createdAt?: string
|
||||
updatedAt?: string
|
||||
}
|
||||
|
||||
export const LocalizedStringSchema = z.union([z.string(), z.record(z.string(), z.string())]);
|
||||
|
||||
export const HeroSectionPayloadSchema = z.object({
|
||||
@@ -1291,3 +1304,23 @@ export const PRODUCT_DETAIL_SECTION_TYPES = [
|
||||
'CUSTOM',
|
||||
] as const;
|
||||
export type ProductDetailSectionType = typeof PRODUCT_DETAIL_SECTION_TYPES[number];
|
||||
|
||||
export const CATEGORY_SECTION_TYPES = [
|
||||
'CATEGORY_HEADER',
|
||||
'CATALOG_GRID',
|
||||
'USP_BAR',
|
||||
'HERO',
|
||||
'HERO_V2',
|
||||
'HERO_VIDEO',
|
||||
'HERO_CAROUSEL',
|
||||
'DIVIDER',
|
||||
'RICH_TEXT',
|
||||
'TEXT',
|
||||
'BANNER',
|
||||
'PRODUCT_CAROUSEL',
|
||||
'EDITORIAL_TILE',
|
||||
'FEATURED_TILES',
|
||||
'QUOTE_CALLOUT',
|
||||
'CUSTOM',
|
||||
] as const;
|
||||
export type CategorySectionType = typeof CATEGORY_SECTION_TYPES[number];
|
||||
Reference in new issue
Block a user