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