Files
DentalManagement09/packages/db/shared/schemas/upsertOnePatientServiceHistory.schema.ts
T

13 lines
2.3 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { PatientServiceHistorySelectObjectSchema as PatientServiceHistorySelectObjectSchema } from './objects/PatientServiceHistorySelect.schema';
import { PatientServiceHistoryIncludeObjectSchema as PatientServiceHistoryIncludeObjectSchema } from './objects/PatientServiceHistoryInclude.schema';
import { PatientServiceHistoryWhereUniqueInputObjectSchema as PatientServiceHistoryWhereUniqueInputObjectSchema } from './objects/PatientServiceHistoryWhereUniqueInput.schema';
import { PatientServiceHistoryCreateInputObjectSchema as PatientServiceHistoryCreateInputObjectSchema } from './objects/PatientServiceHistoryCreateInput.schema';
import { PatientServiceHistoryUncheckedCreateInputObjectSchema as PatientServiceHistoryUncheckedCreateInputObjectSchema } from './objects/PatientServiceHistoryUncheckedCreateInput.schema';
import { PatientServiceHistoryUpdateInputObjectSchema as PatientServiceHistoryUpdateInputObjectSchema } from './objects/PatientServiceHistoryUpdateInput.schema';
import { PatientServiceHistoryUncheckedUpdateInputObjectSchema as PatientServiceHistoryUncheckedUpdateInputObjectSchema } from './objects/PatientServiceHistoryUncheckedUpdateInput.schema';
export const PatientServiceHistoryUpsertOneSchema: z.ZodType<Prisma.PatientServiceHistoryUpsertArgs> = z.object({ select: PatientServiceHistorySelectObjectSchema.optional(), include: PatientServiceHistoryIncludeObjectSchema.optional(), where: PatientServiceHistoryWhereUniqueInputObjectSchema, create: z.union([ PatientServiceHistoryCreateInputObjectSchema, PatientServiceHistoryUncheckedCreateInputObjectSchema ]), update: z.union([ PatientServiceHistoryUpdateInputObjectSchema, PatientServiceHistoryUncheckedUpdateInputObjectSchema ]) }).strict() as unknown as z.ZodType<Prisma.PatientServiceHistoryUpsertArgs>;
export const PatientServiceHistoryUpsertOneZodSchema = z.object({ select: PatientServiceHistorySelectObjectSchema.optional(), include: PatientServiceHistoryIncludeObjectSchema.optional(), where: PatientServiceHistoryWhereUniqueInputObjectSchema, create: z.union([ PatientServiceHistoryCreateInputObjectSchema, PatientServiceHistoryUncheckedCreateInputObjectSchema ]), update: z.union([ PatientServiceHistoryUpdateInputObjectSchema, PatientServiceHistoryUncheckedUpdateInputObjectSchema ]) }).strict();