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 { UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema as UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutNpiProvidersNestedInput.schema';
import { ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema as ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './ClaimUpdateManyWithoutNpiProviderNestedInput.schema';
import { CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema as CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './CommissionBatchUpdateManyWithoutNpiProviderNestedInput.schema';
import { AppointmentProcedureUpdateManyWithoutNpiProviderNestedInputObjectSchema as AppointmentProcedureUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './AppointmentProcedureUpdateManyWithoutNpiProviderNestedInput.schema'

const makeSchema = () => z.object({
  npiNumber: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  providerName: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  user: z.lazy(() => UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema).optional(),
  claims: z.lazy(() => ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  commissionBatches: z.lazy(() => CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  appointmentProcedures: z.lazy(() => AppointmentProcedureUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
}).strict();
export const NpiProviderUpdateWithoutPaymentsInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateWithoutPaymentsInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateWithoutPaymentsInput>;
export const NpiProviderUpdateWithoutPaymentsInputObjectZodSchema = makeSchema();
