13 lines
1.3 KiB
TypeScript
13 lines
1.3 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { AppointmentProcedureWhereUniqueInputObjectSchema as AppointmentProcedureWhereUniqueInputObjectSchema } from './AppointmentProcedureWhereUniqueInput.schema';
|
|
import { AppointmentProcedureCreateWithoutPatientInputObjectSchema as AppointmentProcedureCreateWithoutPatientInputObjectSchema } from './AppointmentProcedureCreateWithoutPatientInput.schema';
|
|
import { AppointmentProcedureUncheckedCreateWithoutPatientInputObjectSchema as AppointmentProcedureUncheckedCreateWithoutPatientInputObjectSchema } from './AppointmentProcedureUncheckedCreateWithoutPatientInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
where: z.lazy(() => AppointmentProcedureWhereUniqueInputObjectSchema),
|
|
create: z.union([z.lazy(() => AppointmentProcedureCreateWithoutPatientInputObjectSchema), z.lazy(() => AppointmentProcedureUncheckedCreateWithoutPatientInputObjectSchema)])
|
|
}).strict();
|
|
export const AppointmentProcedureCreateOrConnectWithoutPatientInputObjectSchema: z.ZodType<Prisma.AppointmentProcedureCreateOrConnectWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentProcedureCreateOrConnectWithoutPatientInput>;
|
|
export const AppointmentProcedureCreateOrConnectWithoutPatientInputObjectZodSchema = makeSchema();
|