Files
DentalManagementMHAprilgg/packages/db/shared/schemas/groupByPdfFile.schema.ts
2026-04-04 22:13:55 -04:00

15 lines
2.8 KiB
TypeScript

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<Prisma.PdfFileGroupByArgs> = 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<Prisma.PdfFileGroupByArgs>;
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();