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 { ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema as ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './ClaimUpdateManyWithoutNpiProviderNestedInput.schema';
import { PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema as PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './PaymentUpdateManyWithoutNpiProviderNestedInput.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(),
  sortOrder: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
  createdAt: z.union([z.coerce.date(), z.lazy(() => DateTimeFieldUpdateOperationsInputObjectSchema)]).optional(),
  claims: z.lazy(() => ClaimUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  payments: z.lazy(() => PaymentUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  commissionBatches: z.lazy(() => CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional(),
  appointmentProcedures: z.lazy(() => AppointmentProcedureUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
}).strict();
export const NpiProviderUpdateWithoutUserInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateWithoutUserInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateWithoutUserInput>;
export const NpiProviderUpdateWithoutUserInputObjectZodSchema = makeSchema();
