16 lines
1.5 KiB
TypeScript
16 lines
1.5 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientUpdateWithoutDocumentsInputObjectSchema as PatientUpdateWithoutDocumentsInputObjectSchema } from './PatientUpdateWithoutDocumentsInput.schema';
|
|
import { PatientUncheckedUpdateWithoutDocumentsInputObjectSchema as PatientUncheckedUpdateWithoutDocumentsInputObjectSchema } from './PatientUncheckedUpdateWithoutDocumentsInput.schema';
|
|
import { PatientCreateWithoutDocumentsInputObjectSchema as PatientCreateWithoutDocumentsInputObjectSchema } from './PatientCreateWithoutDocumentsInput.schema';
|
|
import { PatientUncheckedCreateWithoutDocumentsInputObjectSchema as PatientUncheckedCreateWithoutDocumentsInputObjectSchema } from './PatientUncheckedCreateWithoutDocumentsInput.schema';
|
|
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => PatientUpdateWithoutDocumentsInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutDocumentsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => PatientCreateWithoutDocumentsInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutDocumentsInputObjectSchema)]),
|
|
where: z.lazy(() => PatientWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PatientUpsertWithoutDocumentsInputObjectSchema: z.ZodType<Prisma.PatientUpsertWithoutDocumentsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpsertWithoutDocumentsInput>;
|
|
export const PatientUpsertWithoutDocumentsInputObjectZodSchema = makeSchema();
|