import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { PatientDocumentSelectObjectSchema as PatientDocumentSelectObjectSchema } from './objects/PatientDocumentSelect.schema';
import { PatientDocumentIncludeObjectSchema as PatientDocumentIncludeObjectSchema } from './objects/PatientDocumentInclude.schema';
import { PatientDocumentWhereUniqueInputObjectSchema as PatientDocumentWhereUniqueInputObjectSchema } from './objects/PatientDocumentWhereUniqueInput.schema';
import { PatientDocumentCreateInputObjectSchema as PatientDocumentCreateInputObjectSchema } from './objects/PatientDocumentCreateInput.schema';
import { PatientDocumentUncheckedCreateInputObjectSchema as PatientDocumentUncheckedCreateInputObjectSchema } from './objects/PatientDocumentUncheckedCreateInput.schema';
import { PatientDocumentUpdateInputObjectSchema as PatientDocumentUpdateInputObjectSchema } from './objects/PatientDocumentUpdateInput.schema';
import { PatientDocumentUncheckedUpdateInputObjectSchema as PatientDocumentUncheckedUpdateInputObjectSchema } from './objects/PatientDocumentUncheckedUpdateInput.schema';

export const PatientDocumentUpsertOneSchema: z.ZodType<Prisma.PatientDocumentUpsertArgs> = z.object({ select: PatientDocumentSelectObjectSchema.optional(), include: PatientDocumentIncludeObjectSchema.optional(), where: PatientDocumentWhereUniqueInputObjectSchema, create: z.union([ PatientDocumentCreateInputObjectSchema, PatientDocumentUncheckedCreateInputObjectSchema ]), update: z.union([ PatientDocumentUpdateInputObjectSchema, PatientDocumentUncheckedUpdateInputObjectSchema ]) }).strict() as unknown as z.ZodType<Prisma.PatientDocumentUpsertArgs>;

export const PatientDocumentUpsertOneZodSchema = z.object({ select: PatientDocumentSelectObjectSchema.optional(), include: PatientDocumentIncludeObjectSchema.optional(), where: PatientDocumentWhereUniqueInputObjectSchema, create: z.union([ PatientDocumentCreateInputObjectSchema, PatientDocumentUncheckedCreateInputObjectSchema ]), update: z.union([ PatientDocumentUpdateInputObjectSchema, PatientDocumentUncheckedUpdateInputObjectSchema ]) }).strict();