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
31 lines
646 B
TypeScript
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,
|
|
}),
|
|
})
|