import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { NpiProviderOrderByWithRelationInputObjectSchema as NpiProviderOrderByWithRelationInputObjectSchema } from './objects/NpiProviderOrderByWithRelationInput.schema';
import { NpiProviderWhereInputObjectSchema as NpiProviderWhereInputObjectSchema } from './objects/NpiProviderWhereInput.schema';
import { NpiProviderWhereUniqueInputObjectSchema as NpiProviderWhereUniqueInputObjectSchema } from './objects/NpiProviderWhereUniqueInput.schema';
import { NpiProviderCountAggregateInputObjectSchema as NpiProviderCountAggregateInputObjectSchema } from './objects/NpiProviderCountAggregateInput.schema';
import { NpiProviderMinAggregateInputObjectSchema as NpiProviderMinAggregateInputObjectSchema } from './objects/NpiProviderMinAggregateInput.schema';
import { NpiProviderMaxAggregateInputObjectSchema as NpiProviderMaxAggregateInputObjectSchema } from './objects/NpiProviderMaxAggregateInput.schema';
import { NpiProviderAvgAggregateInputObjectSchema as NpiProviderAvgAggregateInputObjectSchema } from './objects/NpiProviderAvgAggregateInput.schema';
import { NpiProviderSumAggregateInputObjectSchema as NpiProviderSumAggregateInputObjectSchema } from './objects/NpiProviderSumAggregateInput.schema';

export const NpiProviderAggregateSchema: z.ZodType<Prisma.NpiProviderAggregateArgs> = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NpiProviderCountAggregateInputObjectSchema ]).optional(), _min: NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.NpiProviderAggregateArgs>;

export const NpiProviderAggregateZodSchema = z.object({ orderBy: z.union([NpiProviderOrderByWithRelationInputObjectSchema, NpiProviderOrderByWithRelationInputObjectSchema.array()]).optional(), where: NpiProviderWhereInputObjectSchema.optional(), cursor: NpiProviderWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), NpiProviderCountAggregateInputObjectSchema ]).optional(), _min: NpiProviderMinAggregateInputObjectSchema.optional(), _max: NpiProviderMaxAggregateInputObjectSchema.optional(), _avg: NpiProviderAvgAggregateInputObjectSchema.optional(), _sum: NpiProviderSumAggregateInputObjectSchema.optional() }).strict();