feat(SW-1381): add initial start page * feat(SW-1381): add initial start page * fix: remove unused startpage template remove translation key for middleware error page * fix(SW-1381): add tracking SDK and feature flag to hide start page Approved-by: Erik Tiekstra Approved-by: Matilda Landström Approved-by: Chuma Mcphoy (We Ahead)
27 lines
805 B
TypeScript
27 lines
805 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,
|
|
destination_country_page: bookingWidgetToggleSchema,
|
|
destination_city_page: bookingWidgetToggleSchema,
|
|
hotel_page: bookingWidgetToggleSchema,
|
|
loyalty_page: bookingWidgetToggleSchema,
|
|
start_page: bookingWidgetToggleSchema,
|
|
})
|
|
|
|
export type ValidateBookingWidgetToggleType = z.infer<
|
|
typeof validateBookingWidgetToggleSchema
|
|
>
|