import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { StringFieldUpdateOperationsInputObjectSchema as StringFieldUpdateOperationsInputObjectSchema } from './StringFieldUpdateOperationsInput.schema';
import { IntFieldUpdateOperationsInputObjectSchema as IntFieldUpdateOperationsInputObjectSchema } from './IntFieldUpdateOperationsInput.schema';
import { DateTimeFieldUpdateOperationsInputObjectSchema as DateTimeFieldUpdateOperationsInputObjectSchema } from './DateTimeFieldUpdateOperationsInput.schema';
import { UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema as UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema } from './UserUpdateOneRequiredWithoutNpiProvidersNestedInput.schema';
import { ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema as ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './ClaimUpdateManyWithoutNpiProviderNestedInput.schema';
import { PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema as PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './PaymentUpdateManyWithoutNpiProviderNestedInput.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(),
  sortOrder: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  user: z.lazy(() => UserUpdateOneRequiredWithoutNpiProvidersNestedInputObjectSchema).optional(),
  claims: z.lazy(() => ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  payments: z.lazy(() => PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  appointmentProcedures: z.lazy(() => AppointmentProcedureUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
}).strict();
export const NpiProviderUpdateWithoutCommissionBatchesInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateWithoutCommissionBatchesInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateWithoutCommissionBatchesInput>;
export const NpiProviderUpdateWithoutCommissionBatchesInputObjectZodSchema = makeSchema();
