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

15 lines
3.4 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { InsuranceCredentialWhereInputObjectSchema as InsuranceCredentialWhereInputObjectSchema } from './objects/InsuranceCredentialWhereInput.schema';
import { InsuranceCredentialOrderByWithAggregationInputObjectSchema as InsuranceCredentialOrderByWithAggregationInputObjectSchema } from './objects/InsuranceCredentialOrderByWithAggregationInput.schema';
import { InsuranceCredentialScalarWhereWithAggregatesInputObjectSchema as InsuranceCredentialScalarWhereWithAggregatesInputObjectSchema } from './objects/InsuranceCredentialScalarWhereWithAggregatesInput.schema';
import { InsuranceCredentialScalarFieldEnumSchema } from './enums/InsuranceCredentialScalarFieldEnum.schema';
import { InsuranceCredentialCountAggregateInputObjectSchema as InsuranceCredentialCountAggregateInputObjectSchema } from './objects/InsuranceCredentialCountAggregateInput.schema';
import { InsuranceCredentialMinAggregateInputObjectSchema as InsuranceCredentialMinAggregateInputObjectSchema } from './objects/InsuranceCredentialMinAggregateInput.schema';
import { InsuranceCredentialMaxAggregateInputObjectSchema as InsuranceCredentialMaxAggregateInputObjectSchema } from './objects/InsuranceCredentialMaxAggregateInput.schema';
import { InsuranceCredentialAvgAggregateInputObjectSchema as InsuranceCredentialAvgAggregateInputObjectSchema } from './objects/InsuranceCredentialAvgAggregateInput.schema';
import { InsuranceCredentialSumAggregateInputObjectSchema as InsuranceCredentialSumAggregateInputObjectSchema } from './objects/InsuranceCredentialSumAggregateInput.schema';
export const InsuranceCredentialGroupBySchema: z.ZodType<Prisma.InsuranceCredentialGroupByArgs> = z.object({ where: InsuranceCredentialWhereInputObjectSchema.optional(), orderBy: z.union([InsuranceCredentialOrderByWithAggregationInputObjectSchema, InsuranceCredentialOrderByWithAggregationInputObjectSchema.array()]).optional(), having: InsuranceCredentialScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(InsuranceCredentialScalarFieldEnumSchema), _count: z.union([ z.literal(true), InsuranceCredentialCountAggregateInputObjectSchema ]).optional(), _min: InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.InsuranceCredentialGroupByArgs>;
export const InsuranceCredentialGroupByZodSchema = z.object({ where: InsuranceCredentialWhereInputObjectSchema.optional(), orderBy: z.union([InsuranceCredentialOrderByWithAggregationInputObjectSchema, InsuranceCredentialOrderByWithAggregationInputObjectSchema.array()]).optional(), having: InsuranceCredentialScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(InsuranceCredentialScalarFieldEnumSchema), _count: z.union([ z.literal(true), InsuranceCredentialCountAggregateInputObjectSchema ]).optional(), _min: InsuranceCredentialMinAggregateInputObjectSchema.optional(), _max: InsuranceCredentialMaxAggregateInputObjectSchema.optional(), _avg: InsuranceCredentialAvgAggregateInputObjectSchema.optional(), _sum: InsuranceCredentialSumAggregateInputObjectSchema.optional() }).strict();