Files
DentalManagementMH06/packages/db/shared/schemas/objects/AppointmentUpdateOneRequiredWithoutFilesNestedInput.schema.ts

21 lines
2.5 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { AppointmentCreateWithoutFilesInputObjectSchema as AppointmentCreateWithoutFilesInputObjectSchema } from './AppointmentCreateWithoutFilesInput.schema';
import { AppointmentUncheckedCreateWithoutFilesInputObjectSchema as AppointmentUncheckedCreateWithoutFilesInputObjectSchema } from './AppointmentUncheckedCreateWithoutFilesInput.schema';
import { AppointmentCreateOrConnectWithoutFilesInputObjectSchema as AppointmentCreateOrConnectWithoutFilesInputObjectSchema } from './AppointmentCreateOrConnectWithoutFilesInput.schema';
import { AppointmentUpsertWithoutFilesInputObjectSchema as AppointmentUpsertWithoutFilesInputObjectSchema } from './AppointmentUpsertWithoutFilesInput.schema';
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
import { AppointmentUpdateToOneWithWhereWithoutFilesInputObjectSchema as AppointmentUpdateToOneWithWhereWithoutFilesInputObjectSchema } from './AppointmentUpdateToOneWithWhereWithoutFilesInput.schema';
import { AppointmentUpdateWithoutFilesInputObjectSchema as AppointmentUpdateWithoutFilesInputObjectSchema } from './AppointmentUpdateWithoutFilesInput.schema';
import { AppointmentUncheckedUpdateWithoutFilesInputObjectSchema as AppointmentUncheckedUpdateWithoutFilesInputObjectSchema } from './AppointmentUncheckedUpdateWithoutFilesInput.schema'
const makeSchema = () => z.object({
create: z.union([z.lazy(() => AppointmentCreateWithoutFilesInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutFilesInputObjectSchema)]).optional(),
connectOrCreate: z.lazy(() => AppointmentCreateOrConnectWithoutFilesInputObjectSchema).optional(),
upsert: z.lazy(() => AppointmentUpsertWithoutFilesInputObjectSchema).optional(),
connect: z.lazy(() => AppointmentWhereUniqueInputObjectSchema).optional(),
update: z.union([z.lazy(() => AppointmentUpdateToOneWithWhereWithoutFilesInputObjectSchema), z.lazy(() => AppointmentUpdateWithoutFilesInputObjectSchema), z.lazy(() => AppointmentUncheckedUpdateWithoutFilesInputObjectSchema)]).optional()
}).strict();
export const AppointmentUpdateOneRequiredWithoutFilesNestedInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateOneRequiredWithoutFilesNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateOneRequiredWithoutFilesNestedInput>;
export const AppointmentUpdateOneRequiredWithoutFilesNestedInputObjectZodSchema = makeSchema();