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
584 B
TypeScript
24 lines
584 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,
|
|
})
|