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

15 lines
3.1 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { CommunicationWhereInputObjectSchema as CommunicationWhereInputObjectSchema } from './objects/CommunicationWhereInput.schema';
import { CommunicationOrderByWithAggregationInputObjectSchema as CommunicationOrderByWithAggregationInputObjectSchema } from './objects/CommunicationOrderByWithAggregationInput.schema';
import { CommunicationScalarWhereWithAggregatesInputObjectSchema as CommunicationScalarWhereWithAggregatesInputObjectSchema } from './objects/CommunicationScalarWhereWithAggregatesInput.schema';
import { CommunicationScalarFieldEnumSchema } from './enums/CommunicationScalarFieldEnum.schema';
import { CommunicationCountAggregateInputObjectSchema as CommunicationCountAggregateInputObjectSchema } from './objects/CommunicationCountAggregateInput.schema';
import { CommunicationMinAggregateInputObjectSchema as CommunicationMinAggregateInputObjectSchema } from './objects/CommunicationMinAggregateInput.schema';
import { CommunicationMaxAggregateInputObjectSchema as CommunicationMaxAggregateInputObjectSchema } from './objects/CommunicationMaxAggregateInput.schema';
import { CommunicationAvgAggregateInputObjectSchema as CommunicationAvgAggregateInputObjectSchema } from './objects/CommunicationAvgAggregateInput.schema';
import { CommunicationSumAggregateInputObjectSchema as CommunicationSumAggregateInputObjectSchema } from './objects/CommunicationSumAggregateInput.schema';
export const CommunicationGroupBySchema: z.ZodType<Prisma.CommunicationGroupByArgs> = z.object({ where: CommunicationWhereInputObjectSchema.optional(), orderBy: z.union([CommunicationOrderByWithAggregationInputObjectSchema, CommunicationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: CommunicationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(CommunicationScalarFieldEnumSchema), _count: z.union([ z.literal(true), CommunicationCountAggregateInputObjectSchema ]).optional(), _min: CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CommunicationGroupByArgs>;
export const CommunicationGroupByZodSchema = z.object({ where: CommunicationWhereInputObjectSchema.optional(), orderBy: z.union([CommunicationOrderByWithAggregationInputObjectSchema, CommunicationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: CommunicationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(CommunicationScalarFieldEnumSchema), _count: z.union([ z.literal(true), CommunicationCountAggregateInputObjectSchema ]).optional(), _min: CommunicationMinAggregateInputObjectSchema.optional(), _max: CommunicationMaxAggregateInputObjectSchema.optional(), _avg: CommunicationAvgAggregateInputObjectSchema.optional(), _sum: CommunicationSumAggregateInputObjectSchema.optional() }).strict();