Files
web/types/requests/entry.ts
Matilda Landström d5efaa686c Merged in feat/SW-286-collectionPage (pull request #765)
Feat(SW-286): CollectionPage

Approved-by: Erik Tiekstra
Approved-by: Fredrik Thorsson
2024-11-04 12:10:51 +00:00

23 lines
531 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,
})