19 lines
478 B
TypeScript
19 lines
478 B
TypeScript
import { z } from "zod"
|
|
|
|
import { nullableStringValidator } from "@/utils/zod/stringValidator"
|
|
|
|
export const pageSettingsSchema = z.object({
|
|
hide_booking_widget: z.boolean(),
|
|
booking_code: nullableStringValidator,
|
|
})
|
|
|
|
export type PageSettingsSchema = z.output<typeof pageSettingsSchema>
|
|
|
|
export const getPageSettingsSchema = z.object({
|
|
page: z.object({
|
|
settings: pageSettingsSchema,
|
|
}),
|
|
})
|
|
|
|
export type GetPageSettingsSchema = z.output<typeof getPageSettingsSchema>
|