16 lines
1.5 KiB
TypeScript
16 lines
1.5 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientUpdateWithoutGroupsInputObjectSchema as PatientUpdateWithoutGroupsInputObjectSchema } from './PatientUpdateWithoutGroupsInput.schema';
|
|
import { PatientUncheckedUpdateWithoutGroupsInputObjectSchema as PatientUncheckedUpdateWithoutGroupsInputObjectSchema } from './PatientUncheckedUpdateWithoutGroupsInput.schema';
|
|
import { PatientCreateWithoutGroupsInputObjectSchema as PatientCreateWithoutGroupsInputObjectSchema } from './PatientCreateWithoutGroupsInput.schema';
|
|
import { PatientUncheckedCreateWithoutGroupsInputObjectSchema as PatientUncheckedCreateWithoutGroupsInputObjectSchema } from './PatientUncheckedCreateWithoutGroupsInput.schema';
|
|
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
update: z.union([z.lazy(() => PatientUpdateWithoutGroupsInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutGroupsInputObjectSchema)]),
|
|
create: z.union([z.lazy(() => PatientCreateWithoutGroupsInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutGroupsInputObjectSchema)]),
|
|
where: z.lazy(() => PatientWhereInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PatientUpsertWithoutGroupsInputObjectSchema: z.ZodType<Prisma.PatientUpsertWithoutGroupsInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpsertWithoutGroupsInput>;
|
|
export const PatientUpsertWithoutGroupsInputObjectZodSchema = makeSchema();
|