Files
DentalManagement09/packages/db/shared/schemas/groupByPatientServiceHistory.schema.ts
T

15 lines
3.5 KiB
TypeScript

import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { PatientServiceHistoryWhereInputObjectSchema as PatientServiceHistoryWhereInputObjectSchema } from './objects/PatientServiceHistoryWhereInput.schema';
import { PatientServiceHistoryOrderByWithAggregationInputObjectSchema as PatientServiceHistoryOrderByWithAggregationInputObjectSchema } from './objects/PatientServiceHistoryOrderByWithAggregationInput.schema';
import { PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema as PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema } from './objects/PatientServiceHistoryScalarWhereWithAggregatesInput.schema';
import { PatientServiceHistoryScalarFieldEnumSchema } from './enums/PatientServiceHistoryScalarFieldEnum.schema';
import { PatientServiceHistoryCountAggregateInputObjectSchema as PatientServiceHistoryCountAggregateInputObjectSchema } from './objects/PatientServiceHistoryCountAggregateInput.schema';
import { PatientServiceHistoryMinAggregateInputObjectSchema as PatientServiceHistoryMinAggregateInputObjectSchema } from './objects/PatientServiceHistoryMinAggregateInput.schema';
import { PatientServiceHistoryMaxAggregateInputObjectSchema as PatientServiceHistoryMaxAggregateInputObjectSchema } from './objects/PatientServiceHistoryMaxAggregateInput.schema';
import { PatientServiceHistoryAvgAggregateInputObjectSchema as PatientServiceHistoryAvgAggregateInputObjectSchema } from './objects/PatientServiceHistoryAvgAggregateInput.schema';
import { PatientServiceHistorySumAggregateInputObjectSchema as PatientServiceHistorySumAggregateInputObjectSchema } from './objects/PatientServiceHistorySumAggregateInput.schema';
export const PatientServiceHistoryGroupBySchema: z.ZodType<Prisma.PatientServiceHistoryGroupByArgs> = z.object({ where: PatientServiceHistoryWhereInputObjectSchema.optional(), orderBy: z.union([PatientServiceHistoryOrderByWithAggregationInputObjectSchema, PatientServiceHistoryOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientServiceHistoryScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientServiceHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientServiceHistoryMinAggregateInputObjectSchema.optional(), _max: PatientServiceHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientServiceHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientServiceHistorySumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientServiceHistoryGroupByArgs>;
export const PatientServiceHistoryGroupByZodSchema = z.object({ where: PatientServiceHistoryWhereInputObjectSchema.optional(), orderBy: z.union([PatientServiceHistoryOrderByWithAggregationInputObjectSchema, PatientServiceHistoryOrderByWithAggregationInputObjectSchema.array()]).optional(), having: PatientServiceHistoryScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(PatientServiceHistoryScalarFieldEnumSchema), _count: z.union([ z.literal(true), PatientServiceHistoryCountAggregateInputObjectSchema ]).optional(), _min: PatientServiceHistoryMinAggregateInputObjectSchema.optional(), _max: PatientServiceHistoryMaxAggregateInputObjectSchema.optional(), _avg: PatientServiceHistoryAvgAggregateInputObjectSchema.optional(), _sum: PatientServiceHistorySumAggregateInputObjectSchema.optional() }).strict();