13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentUpdateWithoutStaffInputObjectSchema as AppointmentUpdateWithoutStaffInputObjectSchema } from './AppointmentUpdateWithoutStaffInput.schema';
|
|
import { AppointmentUncheckedUpdateWithoutStaffInputObjectSchema as AppointmentUncheckedUpdateWithoutStaffInputObjectSchema } from './AppointmentUncheckedUpdateWithoutStaffInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => AppointmentWhereUniqueInputObjectSchema),
|
|
data: z.union([z.lazy(() => AppointmentUpdateWithoutStaffInputObjectSchema), z.lazy(() => AppointmentUncheckedUpdateWithoutStaffInputObjectSchema)])
|
|
}).strict();
|
|
export const AppointmentUpdateWithWhereUniqueWithoutStaffInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateWithWhereUniqueWithoutStaffInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateWithWhereUniqueWithoutStaffInput>;
|
|
export const AppointmentUpdateWithWhereUniqueWithoutStaffInputObjectZodSchema = makeSchema();
|