Files
web/server/routers/contentstack/startPage/output.ts
Christian Andolf 3579ada786 Merged in feat/SW-1388-startpage-header (pull request #1203)
feat(SW-1388): add hero image and heading to startpage

* feat(SW-1388): add hero image and heading to startpage

* fix(SW-1388): spacing variables for padding

* fix(SW-1388): use inset value instead


Approved-by: Erik Tiekstra
2025-01-24 13:04:19 +00:00

31 lines
646 B
TypeScript

import { z } from "zod"
import { tempImageVaultAssetSchema } from "../schemas/imageVault"
import { systemSchema } from "../schemas/system"
export const startPageSchema = z.object({
start_page: z.object({
title: z.string(),
header: z.object({
heading: z.string(),
hero_image: tempImageVaultAssetSchema,
}),
system: systemSchema.merge(
z.object({
created_at: z.string(),
updated_at: z.string(),
})
),
}),
trackingProps: z.object({
url: z.string(),
}),
})
/** REFS */
export const startPageRefsSchema = z.object({
start_page: z.object({
system: systemSchema,
}),
})