feat(SW-1442): added destination overview page * feat(SW-1442): added destination overview page Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
24 lines
657 B
TypeScript
24 lines
657 B
TypeScript
import { z } from "zod"
|
|
|
|
const bookingWidgetToggleSchema = z
|
|
.object({
|
|
page_settings: z.object({
|
|
hide_booking_widget: z.boolean(),
|
|
}),
|
|
})
|
|
.optional()
|
|
|
|
export const validateBookingWidgetToggleSchema = z.object({
|
|
account_page: bookingWidgetToggleSchema,
|
|
collection_page: bookingWidgetToggleSchema,
|
|
content_page: bookingWidgetToggleSchema,
|
|
current_blocks_page: bookingWidgetToggleSchema,
|
|
destination_overview_page: bookingWidgetToggleSchema,
|
|
hotel_page: bookingWidgetToggleSchema,
|
|
loyalty_page: bookingWidgetToggleSchema,
|
|
})
|
|
|
|
export type ValidateBookingWidgetToggleType = z.infer<
|
|
typeof validateBookingWidgetToggleSchema
|
|
>
|