16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
import { z } from "zod"
|
|
|
|
import { breakfastPackageSchema } from "@/server/routers/hotels/output"
|
|
|
|
import { BreakfastPackageEnum } from "@/types/enums/breakfast"
|
|
|
|
export const breakfastStoreSchema = z.object({
|
|
breakfast: breakfastPackageSchema.or(
|
|
z.literal(BreakfastPackageEnum.NO_BREAKFAST)
|
|
),
|
|
})
|
|
|
|
export const breakfastFormSchema = z.object({
|
|
breakfast: z.string().or(z.literal(BreakfastPackageEnum.NO_BREAKFAST)),
|
|
})
|