Files
DentalManagementMHAprilgg/packages/db/shared/schemas/objects/AppointmentCreateWithoutClaimsInput.schema.ts
2026-04-04 22:13:55 -04:00

27 lines
2.0 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
import { PatientCreateNestedOneWithoutAppointmentsInputObjectSchema as PatientCreateNestedOneWithoutAppointmentsInputObjectSchema } from './PatientCreateNestedOneWithoutAppointmentsInput.schema';
import { UserCreateNestedOneWithoutAppointmentsInputObjectSchema as UserCreateNestedOneWithoutAppointmentsInputObjectSchema } from './UserCreateNestedOneWithoutAppointmentsInput.schema';
import { StaffCreateNestedOneWithoutAppointmentsInputObjectSchema as StaffCreateNestedOneWithoutAppointmentsInputObjectSchema } from './StaffCreateNestedOneWithoutAppointmentsInput.schema';
import { AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema as AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema } from './AppointmentProcedureCreateNestedManyWithoutAppointmentInput.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(),
patient: z.lazy(() => PatientCreateNestedOneWithoutAppointmentsInputObjectSchema),
user: z.lazy(() => UserCreateNestedOneWithoutAppointmentsInputObjectSchema),
staff: z.lazy(() => StaffCreateNestedOneWithoutAppointmentsInputObjectSchema).optional(),
procedures: z.lazy(() => AppointmentProcedureCreateNestedManyWithoutAppointmentInputObjectSchema).optional()
}).strict();
export const AppointmentCreateWithoutClaimsInputObjectSchema: z.ZodType<Prisma.AppointmentCreateWithoutClaimsInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentCreateWithoutClaimsInput>;
export const AppointmentCreateWithoutClaimsInputObjectZodSchema = makeSchema();