import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { CommissionBatchItemOrderByWithRelationInputObjectSchema as CommissionBatchItemOrderByWithRelationInputObjectSchema } from './objects/CommissionBatchItemOrderByWithRelationInput.schema';
import { CommissionBatchItemWhereInputObjectSchema as CommissionBatchItemWhereInputObjectSchema } from './objects/CommissionBatchItemWhereInput.schema';
import { CommissionBatchItemWhereUniqueInputObjectSchema as CommissionBatchItemWhereUniqueInputObjectSchema } from './objects/CommissionBatchItemWhereUniqueInput.schema';
import { CommissionBatchItemCountAggregateInputObjectSchema as CommissionBatchItemCountAggregateInputObjectSchema } from './objects/CommissionBatchItemCountAggregateInput.schema';
import { CommissionBatchItemMinAggregateInputObjectSchema as CommissionBatchItemMinAggregateInputObjectSchema } from './objects/CommissionBatchItemMinAggregateInput.schema';
import { CommissionBatchItemMaxAggregateInputObjectSchema as CommissionBatchItemMaxAggregateInputObjectSchema } from './objects/CommissionBatchItemMaxAggregateInput.schema';
import { CommissionBatchItemAvgAggregateInputObjectSchema as CommissionBatchItemAvgAggregateInputObjectSchema } from './objects/CommissionBatchItemAvgAggregateInput.schema';
import { CommissionBatchItemSumAggregateInputObjectSchema as CommissionBatchItemSumAggregateInputObjectSchema } from './objects/CommissionBatchItemSumAggregateInput.schema';

export const CommissionBatchItemAggregateSchema: z.ZodType<Prisma.CommissionBatchItemAggregateArgs> = z.object({ orderBy: z.union([CommissionBatchItemOrderByWithRelationInputObjectSchema, CommissionBatchItemOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommissionBatchItemWhereInputObjectSchema.optional(), cursor: CommissionBatchItemWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CommissionBatchItemCountAggregateInputObjectSchema ]).optional(), _min: CommissionBatchItemMinAggregateInputObjectSchema.optional(), _max: CommissionBatchItemMaxAggregateInputObjectSchema.optional(), _avg: CommissionBatchItemAvgAggregateInputObjectSchema.optional(), _sum: CommissionBatchItemSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CommissionBatchItemAggregateArgs>;

export const CommissionBatchItemAggregateZodSchema = z.object({ orderBy: z.union([CommissionBatchItemOrderByWithRelationInputObjectSchema, CommissionBatchItemOrderByWithRelationInputObjectSchema.array()]).optional(), where: CommissionBatchItemWhereInputObjectSchema.optional(), cursor: CommissionBatchItemWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CommissionBatchItemCountAggregateInputObjectSchema ]).optional(), _min: CommissionBatchItemMinAggregateInputObjectSchema.optional(), _max: CommissionBatchItemMaxAggregateInputObjectSchema.optional(), _avg: CommissionBatchItemAvgAggregateInputObjectSchema.optional(), _sum: CommissionBatchItemSumAggregateInputObjectSchema.optional() }).strict();