import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { CommissionBatchItemCreateWithoutPaymentInputObjectSchema as CommissionBatchItemCreateWithoutPaymentInputObjectSchema } from './CommissionBatchItemCreateWithoutPaymentInput.schema';
import { CommissionBatchItemUncheckedCreateWithoutPaymentInputObjectSchema as CommissionBatchItemUncheckedCreateWithoutPaymentInputObjectSchema } from './CommissionBatchItemUncheckedCreateWithoutPaymentInput.schema';
import { CommissionBatchItemCreateOrConnectWithoutPaymentInputObjectSchema as CommissionBatchItemCreateOrConnectWithoutPaymentInputObjectSchema } from './CommissionBatchItemCreateOrConnectWithoutPaymentInput.schema';
import { CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInputObjectSchema as CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInputObjectSchema } from './CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInput.schema';
import { CommissionBatchItemCreateManyPaymentInputEnvelopeObjectSchema as CommissionBatchItemCreateManyPaymentInputEnvelopeObjectSchema } from './CommissionBatchItemCreateManyPaymentInputEnvelope.schema';
import { CommissionBatchItemWhereUniqueInputObjectSchema as CommissionBatchItemWhereUniqueInputObjectSchema } from './CommissionBatchItemWhereUniqueInput.schema';
import { CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInputObjectSchema as CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInputObjectSchema } from './CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInput.schema';
import { CommissionBatchItemUpdateManyWithWhereWithoutPaymentInputObjectSchema as CommissionBatchItemUpdateManyWithWhereWithoutPaymentInputObjectSchema } from './CommissionBatchItemUpdateManyWithWhereWithoutPaymentInput.schema';
import { CommissionBatchItemScalarWhereInputObjectSchema as CommissionBatchItemScalarWhereInputObjectSchema } from './CommissionBatchItemScalarWhereInput.schema'

const makeSchema = () => z.object({
  create: z.union([z.lazy(() => CommissionBatchItemCreateWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemCreateWithoutPaymentInputObjectSchema).array(), z.lazy(() => CommissionBatchItemUncheckedCreateWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemUncheckedCreateWithoutPaymentInputObjectSchema).array()]).optional(),
  connectOrCreate: z.union([z.lazy(() => CommissionBatchItemCreateOrConnectWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemCreateOrConnectWithoutPaymentInputObjectSchema).array()]).optional(),
  upsert: z.union([z.lazy(() => CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemUpsertWithWhereUniqueWithoutPaymentInputObjectSchema).array()]).optional(),
  createMany: z.lazy(() => CommissionBatchItemCreateManyPaymentInputEnvelopeObjectSchema).optional(),
  set: z.union([z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema), z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema).array()]).optional(),
  disconnect: z.union([z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema), z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema).array()]).optional(),
  delete: z.union([z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema), z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema).array()]).optional(),
  connect: z.union([z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema), z.lazy(() => CommissionBatchItemWhereUniqueInputObjectSchema).array()]).optional(),
  update: z.union([z.lazy(() => CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemUpdateWithWhereUniqueWithoutPaymentInputObjectSchema).array()]).optional(),
  updateMany: z.union([z.lazy(() => CommissionBatchItemUpdateManyWithWhereWithoutPaymentInputObjectSchema), z.lazy(() => CommissionBatchItemUpdateManyWithWhereWithoutPaymentInputObjectSchema).array()]).optional(),
  deleteMany: z.union([z.lazy(() => CommissionBatchItemScalarWhereInputObjectSchema), z.lazy(() => CommissionBatchItemScalarWhereInputObjectSchema).array()]).optional()
}).strict();
export const CommissionBatchItemUpdateManyWithoutPaymentNestedInputObjectSchema: z.ZodType<Prisma.CommissionBatchItemUpdateManyWithoutPaymentNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.CommissionBatchItemUpdateManyWithoutPaymentNestedInput>;
export const CommissionBatchItemUpdateManyWithoutPaymentNestedInputObjectZodSchema = makeSchema();
