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

31 lines
3.4 KiB
TypeScript

import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { NullableStringFieldUpdateOperationsInputObjectSchema as NullableStringFieldUpdateOperationsInputObjectSchema } from './NullableStringFieldUpdateOperationsInput.schema';
import { PatientStatusSchema } from '../enums/PatientStatus.schema';
import { EnumPatientStatusFieldUpdateOperationsInputObjectSchema as EnumPatientStatusFieldUpdateOperationsInputObjectSchema } from './EnumPatientStatusFieldUpdateOperationsInput.schema';
import { UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema as UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutAppointmentsNestedInput.schema';
import { StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema as StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema } from './StaffUpdateOneWithoutAppointmentsNestedInput.schema';
import { AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema as AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema } from './AppointmentProcedureUpdateManyWithoutAppointmentNestedInput.schema';
import { ClaimUpdateManyWithoutAppointmentNestedInputObjectSchema as ClaimUpdateManyWithoutAppointmentNestedInputObjectSchema } from './ClaimUpdateManyWithoutAppointmentNestedInput.schema'
const makeSchema = () => z.object({
title: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
date: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
startTime: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
endTime: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
type: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
notes: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
procedureCodeNotes: z.union([z.string(), z.lazy(() => NullableStringFieldUpdateOperationsInputObjectSchema)]).optional().nullable(),
status: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
eligibilityStatus: z.union([PatientStatusSchema, z.lazy(() => EnumPatientStatusFieldUpdateOperationsInputObjectSchema)]).optional(),
user: z.lazy(() => UserUpdateOneRequiredWithoutAppointmentsNestedInputObjectSchema).optional(),
staff: z.lazy(() => StaffUpdateOneWithoutAppointmentsNestedInputObjectSchema).optional(),
procedures: z.lazy(() => AppointmentProcedureUpdateManyWithoutAppointmentNestedInputObjectSchema).optional(),
claims: z.lazy(() => ClaimUpdateManyWithoutAppointmentNestedInputObjectSchema).optional()
}).strict();
export const AppointmentUpdateWithoutPatientInputObjectSchema: z.ZodType<Prisma.AppointmentUpdateWithoutPatientInput> = makeSchema() as unknown as z.ZodType<Prisma.AppointmentUpdateWithoutPatientInput>;
export const AppointmentUpdateWithoutPatientInputObjectZodSchema = makeSchema();