feat(SW-237): Detached booking widget toggle graphql query from page settings
This commit is contained in:
@@ -255,23 +255,3 @@ const validateFooterRefConfigSchema = z.object({
|
||||
})
|
||||
|
||||
export type FooterRefDataRaw = z.infer<typeof validateFooterRefConfigSchema>
|
||||
|
||||
const bookingWidgetToggleSchema = z
|
||||
.object({
|
||||
page_settings: z.object({
|
||||
hide_booking_widget: z.boolean(),
|
||||
}),
|
||||
})
|
||||
.optional()
|
||||
|
||||
export const validateBookingWidgetToggleSchema = z.object({
|
||||
account_page: bookingWidgetToggleSchema,
|
||||
loyalty_page: bookingWidgetToggleSchema,
|
||||
content_page: bookingWidgetToggleSchema,
|
||||
hotel_page: bookingWidgetToggleSchema,
|
||||
current_blocks_page: bookingWidgetToggleSchema,
|
||||
})
|
||||
|
||||
export type ValidateBookingWidgetToggleType = z.infer<
|
||||
typeof validateBookingWidgetToggleSchema
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user