import type { Prisma } from '../../generated/prisma'; import * as z from 'zod'; import { PdfFileWhereInputObjectSchema as PdfFileWhereInputObjectSchema } from './objects/PdfFileWhereInput.schema'; import { PdfFileOrderByWithAggregationInputObjectSchema as PdfFileOrderByWithAggregationInputObjectSchema } from './objects/PdfFileOrderByWithAggregationInput.schema'; import { PdfFileScalarWhereWithAggregatesInputObjectSchema as PdfFileScalarWhereWithAggregatesInputObjectSchema } from './objects/PdfFileScalarWhereWithAggregatesInput.schema'; import { PdfFileScalarFieldEnumSchema } from './enums/PdfFileScalarFieldEnum.schema'; import { PdfFileCountAggregateInputObjectSchema as PdfFileCountAggregateInputObjectSchema } from './objects/PdfFileCountAggregateInput.schema'; import { PdfFileMinAggregateInputObjectSchema as PdfFileMinAggregateInputObjectSchema } from './objects/PdfFileMinAggregateInput.schema'; import { PdfFileMaxAggregateInputObjectSchema as PdfFileMaxAggregateInputObjectSchema } from './objects/PdfFileMaxAggregateInput.schema'; import { PdfFileAvgAggregateInputObjectSchema as PdfFileAvgAggregateInputObjectSchema } from './objects/PdfFileAvgAggregateInput.schema'; import { PdfFileSumAggregateInputObjectSchema as PdfFileSumAggregateInputObjectSchema } from './objects/PdfFileSumAggregateInput.schema'; export const PdfFileGroupBySchema: z.ZodType = z.object({ where: PdfFileWhereInputObjectSchema.optional(), orderBy: z.union([PdfFileOrderByWithAggregationInputObjectSchema, PdfFileOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PdfFileScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PdfFileScalarFieldEnumSchema), _count: z.union([ z.literal(true), PdfFileCountAggregateInputObjectSchema ]).optional(), _min: PdfFileMinAggregateInputObjectSchema.optional(), _max: PdfFileMaxAggregateInputObjectSchema.optional(), _avg: PdfFileAvgAggregateInputObjectSchema.optional(), _sum: PdfFileSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType; export const PdfFileGroupByZodSchema = z.object({ where: PdfFileWhereInputObjectSchema.optional(), orderBy: z.union([PdfFileOrderByWithAggregationInputObjectSchema, PdfFileOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PdfFileScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PdfFileScalarFieldEnumSchema), _count: z.union([ z.literal(true), PdfFileCountAggregateInputObjectSchema ]).optional(), _min: PdfFileMinAggregateInputObjectSchema.optional(), _max: PdfFileMaxAggregateInputObjectSchema.optional(), _avg: PdfFileAvgAggregateInputObjectSchema.optional(), _sum: PdfFileSumAggregateInputObjectSchema.optional() }).strict();