import * as z from 'zod'; import type { Prisma } from '../../../generated/prisma'; import { PatientStatusSchema } from '../enums/PatientStatus.schema'; import { UserCreateNestedOneWithoutAppointmentsInputObjectSchema as UserCreateNestedOneWithoutAppointmentsInputObjectSchema } from './UserCreateNestedOneWithoutAppointmentsInput.schema'; import { StaffCreateNestedOneWithoutAppointmentsInputObjectSchema as StaffCreateNestedOneWithoutAppointmentsInputObjectSchema } from './StaffCreateNestedOneWithoutAppointmentsInput.schema'; import { AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema as AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema } from './AppointmentProcedureCreateNestedManyWithoutAppointmentInput.schema'; import { ClaimCreateNestedManyWithoutAppointmentInputObjectSchema as ClaimCreateNestedManyWithoutAppointmentInputObjectSchema } from './ClaimCreateNestedManyWithoutAppointmentInput.schema' const makeSchema = () => z.object({ title: z.string(), date: z.coerce.date(), startTime: z.string(), endTime: z.string(), type: z.string(), notes: z.string().optional().nullable(), procedureCodeNotes: z.string().optional().nullable(), status: z.string().optional(), createdAt: z.coerce.date().optional(), eligibilityStatus: PatientStatusSchema.optional(), user: z.lazy(() => UserCreateNestedOneWithoutAppointmentsInputObjectSchema), staff: z.lazy(() => StaffCreateNestedOneWithoutAppointmentsInputObjectSchema).optional(), procedures: z.lazy(() => AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema).optional(), claims: z.lazy(() => ClaimCreateNestedManyWithoutAppointmentInputObjectSchema).optional() }).strict(); export const AppointmentCreateWithoutPatientInputObjectSchema: z.ZodType = makeSchema() as unknown as z.ZodType; export const AppointmentCreateWithoutPatientInputObjectZodSchema = makeSchema();