x
This commit is contained in:
1 parent
78f2cb62aa
commit
aefa13e363
6 files changed
+209
-17
No files matched your search
+14
-13
@@ -298,9 +298,9 @@ export const NewsletterSectionPayloadSchema = z.object({
|
||||
title: LocalizedStringSchema,
|
||||
description: LocalizedStringSchema,
|
||||
buttonText: LocalizedStringSchema,
|
||||
placeholderText: z.string().optional(),
|
||||
placeholderText: LocalizedStringSchema.optional(),
|
||||
showPrivacyCheckbox: z.boolean(),
|
||||
privacyText: z.string().optional(),
|
||||
privacyText: LocalizedStringSchema.optional(),
|
||||
});
|
||||
export type NewsletterSectionPayload = z.infer<typeof NewsletterSectionPayloadSchema>;
|
||||
|
||||
@@ -309,7 +309,7 @@ export const EditorialTileSectionPayloadSchema = z.object({
|
||||
description: LocalizedStringSchema,
|
||||
imageUrl: z.string().min(1),
|
||||
imagePosition: z.enum(['left', 'right']),
|
||||
buttonText: z.string().optional(),
|
||||
buttonText: LocalizedStringSchema.optional(),
|
||||
buttonLink: z.string().optional(),
|
||||
backgroundColor: z.string().optional(),
|
||||
textColor: z.string().optional(),
|
||||
@@ -323,7 +323,7 @@ export const EditorialCarouselSectionPayloadSchema = z.object({
|
||||
title: LocalizedStringSchema,
|
||||
description: LocalizedStringSchema,
|
||||
imageUrl: z.string().min(1),
|
||||
buttonText: z.string().optional(),
|
||||
buttonText: LocalizedStringSchema.optional(),
|
||||
buttonLink: z.string().optional(),
|
||||
})).min(1)
|
||||
});
|
||||
@@ -361,10 +361,11 @@ export const RichTextPayloadSchema = z.object({
|
||||
export type RichTextPayload = z.infer<typeof RichTextPayloadSchema>;
|
||||
|
||||
export const ScentNotesBreakdownPayloadSchema = z.object({
|
||||
title: z.string().optional(),
|
||||
topNotes: z.array(z.string()),
|
||||
middleNotes: z.array(z.string()),
|
||||
baseNotes: z.array(z.string()),
|
||||
title: LocalizedStringSchema.optional(),
|
||||
description: LocalizedStringSchema.optional(),
|
||||
topNotes: z.array(LocalizedStringSchema),
|
||||
middleNotes: z.array(LocalizedStringSchema),
|
||||
baseNotes: z.array(LocalizedStringSchema),
|
||||
});
|
||||
export type ScentNotesBreakdownPayload = z.infer<typeof ScentNotesBreakdownPayloadSchema>;
|
||||
|
||||
@@ -375,8 +376,8 @@ export const QuoteCalloutPayloadSchema = z.object({
|
||||
export type QuoteCalloutPayload = z.infer<typeof QuoteCalloutPayloadSchema>;
|
||||
|
||||
export const ProductCarouselPayloadSchema = z.object({
|
||||
title: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
title: LocalizedStringSchema.optional(),
|
||||
description: LocalizedStringSchema.optional(),
|
||||
collectionId: z.string().optional(),
|
||||
limit: z.number().int().positive().optional(),
|
||||
showPrice: z.boolean().optional(),
|
||||
@@ -434,12 +435,12 @@ export type ScentGuidePage = z.infer<typeof ScentGuidePageSchema>;
|
||||
export const AccordionSectionPayloadSchema = z.object({
|
||||
categories: z.array(
|
||||
z.object({
|
||||
name: z.string().min(1, "Category name is required"),
|
||||
name: LocalizedStringSchema,
|
||||
icon: z.string().optional(),
|
||||
questions: z.array(
|
||||
z.object({
|
||||
q: z.string().min(1, "Question is required"),
|
||||
a: z.string().min(1, "Answer is required"),
|
||||
q: LocalizedStringSchema,
|
||||
a: LocalizedStringSchema,
|
||||
})
|
||||
),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user