21 lines
2.6 KiB
TypeScript
21 lines
2.6 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentCreateWithoutProceduresInputObjectSchema as AppointmentCreateWithoutProceduresInputObjectSchema } from './AppointmentCreateWithoutProceduresInput.schema';
|
|
import { AppointmentUncheckedCreateWithoutProceduresInputObjectSchema as AppointmentUncheckedCreateWithoutProceduresInputObjectSchema } from './AppointmentUncheckedCreateWithoutProceduresInput.schema';
|
|
import { AppointmentCreateOrConnectWithoutProceduresInputObjectSchema as AppointmentCreateOrConnectWithoutProceduresInputObjectSchema } from './AppointmentCreateOrConnectWithoutProceduresInput.schema';
|
|
import { AppointmentUpsertWithoutProceduresInputObjectSchema as AppointmentUpsertWithoutProceduresInputObjectSchema } from './AppointmentUpsertWithoutProceduresInput.schema';
|
|
import { AppointmentWhereUniqueInputObjectSchema as AppointmentWhereUniqueInputObjectSchema } from './AppointmentWhereUniqueInput.schema';
|
|
import { AppointmentUpdateToOneWithWhereWithoutProceduresInputObjectSchema as AppointmentUpdateToOneWithWhereWithoutProceduresInputObjectSchema } from './AppointmentUpdateToOneWithWhereWithoutProceduresInput.schema';
|
|
import { AppointmentUpdateWithoutProceduresInputObjectSchema as AppointmentUpdateWithoutProceduresInputObjectSchema } from './AppointmentUpdateWithoutProceduresInput.schema';
|
|
import { AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema as AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema } from './AppointmentUncheckedUpdateWithoutProceduresInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
create: z.union([z.lazy(() => AppointmentCreateWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUncheckedCreateWithoutProceduresInputObjectSchema)]).optional(),
|
|
connectOrCreate: z.lazy(() => AppointmentCreateOrConnectWithoutProceduresInputObjectSchema).optional(),
|
|
upsert: z.lazy(() => AppointmentUpsertWithoutProceduresInputObjectSchema).optional(),
|
|
connect: z.lazy(() => AppointmentWhereUniqueInputObjectSchema).optional(),
|
|
update: z.union([z.lazy(() => AppointmentUpdateToOneWithWhereWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUpdateWithoutProceduresInputObjectSchema), z.lazy(() => AppointmentUncheckedUpdateWithoutProceduresInputObjectSchema)]).optional()
|
|
}).strict();
|
|
export const AppointmentUpdateOneRequiredWithoutProceduresNestedInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateOneRequiredWithoutProceduresNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateOneRequiredWithoutProceduresNestedInput>;
|
|
export const AppointmentUpdateOneRequiredWithoutProceduresNestedInputObjectZodSchema = makeSchema();
|