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
723 B
TypeScript
27 lines
723 B
TypeScript
import z from "zod"
|
|
|
|
const entryResolveSchema = z.object({
|
|
items: z.array(
|
|
z.object({
|
|
system: z.object({
|
|
content_type_uid: z.string(),
|
|
uid: z.string(),
|
|
}),
|
|
})
|
|
),
|
|
total: z.number(),
|
|
})
|
|
|
|
export const validateEntryResolveSchema = z.object({
|
|
all_account_page: entryResolveSchema,
|
|
all_collection_page: entryResolveSchema,
|
|
all_content_page: entryResolveSchema,
|
|
all_loyalty_page: entryResolveSchema,
|
|
all_current_blocks_page: entryResolveSchema,
|
|
all_hotel_page: entryResolveSchema,
|
|
all_destination_overview_page: entryResolveSchema,
|
|
all_destination_country_page: entryResolveSchema,
|
|
all_destination_city_page: entryResolveSchema,
|
|
all_start_page: entryResolveSchema,
|
|
})
|