13 lines
1.1 KiB
TypeScript
13 lines
1.1 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './PatientWhereInput.schema';
|
|
import { PatientUpdateWithoutPaymentInputObjectSchema as PatientUpdateWithoutPaymentInputObjectSchema } from './PatientUpdateWithoutPaymentInput.schema';
|
|
import { PatientUncheckedUpdateWithoutPaymentInputObjectSchema as PatientUncheckedUpdateWithoutPaymentInputObjectSchema } from './PatientUncheckedUpdateWithoutPaymentInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => PatientWhereInputObjectSchema).optional(),
|
|
data: z.union([z.lazy(() => PatientUpdateWithoutPaymentInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutPaymentInputObjectSchema)])
|
|
}).strict();
|
|
export const PatientUpdateToOneWithWhereWithoutPaymentInputObjectSchema: z.ZodType<Prisma.PatientUpdateToOneWithWhereWithoutPaymentInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpdateToOneWithWhereWithoutPaymentInput>;
|
|
export const PatientUpdateToOneWithWhereWithoutPaymentInputObjectZodSchema = makeSchema();
|