21 lines
2.6 KiB
TypeScript
21 lines
2.6 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { PatientCreateWithoutServiceHistoryInputObjectSchema as PatientCreateWithoutServiceHistoryInputObjectSchema } from './PatientCreateWithoutServiceHistoryInput.schema';
|
|
import { PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema as PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedCreateWithoutServiceHistoryInput.schema';
|
|
import { PatientCreateOrConnectWithoutServiceHistoryInputObjectSchema as PatientCreateOrConnectWithoutServiceHistoryInputObjectSchema } from './PatientCreateOrConnectWithoutServiceHistoryInput.schema';
|
|
import { PatientUpsertWithoutServiceHistoryInputObjectSchema as PatientUpsertWithoutServiceHistoryInputObjectSchema } from './PatientUpsertWithoutServiceHistoryInput.schema';
|
|
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './PatientWhereUniqueInput.schema';
|
|
import { PatientUpdateToOneWithWhereWithoutServiceHistoryInputObjectSchema as PatientUpdateToOneWithWhereWithoutServiceHistoryInputObjectSchema } from './PatientUpdateToOneWithWhereWithoutServiceHistoryInput.schema';
|
|
import { PatientUpdateWithoutServiceHistoryInputObjectSchema as PatientUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUpdateWithoutServiceHistoryInput.schema';
|
|
import { PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema as PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema } from './PatientUncheckedUpdateWithoutServiceHistoryInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => PatientCreateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedCreateWithoutServiceHistoryInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => PatientCreateOrConnectWithoutServiceHistoryInputObjectSchema).optional(),
|
|
upsert: z.lazy(() => PatientUpsertWithoutServiceHistoryInputObjectSchema).optional(),
|
|
connect: z.lazy(() => PatientWhereUniqueInputObjectSchema).optional(),
|
|
update: z.union([z.lazy(() => PatientUpdateToOneWithWhereWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUpdateWithoutServiceHistoryInputObjectSchema), z.lazy(() => PatientUncheckedUpdateWithoutServiceHistoryInputObjectSchema)]).optional()
|
|
}).strict();
|
|
export const PatientUpdateOneRequiredWithoutServiceHistoryNestedInputObjectSchema: z.ZodType<Prisma.PatientUpdateOneRequiredWithoutServiceHistoryNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.PatientUpdateOneRequiredWithoutServiceHistoryNestedInput>;
|
|
export const PatientUpdateOneRequiredWithoutServiceHistoryNestedInputObjectZodSchema = makeSchema();
|