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 { CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema as CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema } from './CommissionBatchUpdateManyWithoutNpiProviderNestedInput.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(),
  commissionBatches: z.lazy(() => CommissionBatchUpdateManyWithoutNpiProviderNestedInputObjectSchema).optional()
}).strict();
export const NpiProviderUpdateWithoutAppointmentProceduresInputObjectSchema: z.ZodType<Prisma.NpiProviderUpdateWithoutAppointmentProceduresInput> = makeSchema() as unknown as z.ZodType<Prisma.NpiProviderUpdateWithoutAppointmentProceduresInput>;
export const NpiProviderUpdateWithoutAppointmentProceduresInputObjectZodSchema = makeSchema();
