16 lines
1.7 KiB
TypeScript
16 lines
1.7 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentUpdateWithoutProceduresInputObjectSchema as AppointmentUpdateWithoutProceduresInputObjectSchema } from './AppointmentUpdateWithoutProceduresInput.schema';
|
|
import { AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema as AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema } from './AppointmentUncheckedUpdateWithoutProceduresInput.schema';
|
|
import { AppointmentCreateWithoutProceduresInputObjectSchema as AppointmentCreateWithoutProceduresInputObjectSchema } from './AppointmentCreateWithoutProceduresInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutProceduresInputObjectSchema as AppointmentUncheckedCreateWithoutProceduresInputObjectSchema } from './AppointmentUncheckedCreateWithoutProceduresInput.schema';
|
|
import { AppointmentWhereInputObjectSchema as AppointmentWhereInputObjectSchema } from './AppointmentWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => AppointmentUpdateWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutProceduresInputObjectSchema)]),
|
|
where: z.lazy(() => AppointmentWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const AppointmentUpsertWithoutProceduresInputObjectSchema: z.ZodType<Prisma.AppointmentUpsertWithoutProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpsertWithoutProceduresInput>;
|
|
export const AppointmentUpsertWithoutProceduresInputObjectZodSchema = makeSchema();
|