import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { ProcedureTimeslotWhereInputObjectSchema as ProcedureTimeslotWhereInputObjectSchema } from './objects/ProcedureTimeslotWhereInput.schema';
import { ProcedureTimeslotOrderByWithAggregationInputObjectSchema as ProcedureTimeslotOrderByWithAggregationInputObjectSchema } from './objects/ProcedureTimeslotOrderByWithAggregationInput.schema';
import { ProcedureTimeslotScalarWhereWithAggregatesInputObjectSchema as ProcedureTimeslotScalarWhereWithAggregatesInputObjectSchema } from './objects/ProcedureTimeslotScalarWhereWithAggregatesInput.schema';
import { ProcedureTimeslotScalarFieldEnumSchema } from './enums/ProcedureTimeslotScalarFieldEnum.schema';
import { ProcedureTimeslotCountAggregateInputObjectSchema as ProcedureTimeslotCountAggregateInputObjectSchema } from './objects/ProcedureTimeslotCountAggregateInput.schema';
import { ProcedureTimeslotMinAggregateInputObjectSchema as ProcedureTimeslotMinAggregateInputObjectSchema } from './objects/ProcedureTimeslotMinAggregateInput.schema';
import { ProcedureTimeslotMaxAggregateInputObjectSchema as ProcedureTimeslotMaxAggregateInputObjectSchema } from './objects/ProcedureTimeslotMaxAggregateInput.schema';
import { ProcedureTimeslotAvgAggregateInputObjectSchema as ProcedureTimeslotAvgAggregateInputObjectSchema } from './objects/ProcedureTimeslotAvgAggregateInput.schema';
import { ProcedureTimeslotSumAggregateInputObjectSchema as ProcedureTimeslotSumAggregateInputObjectSchema } from './objects/ProcedureTimeslotSumAggregateInput.schema';

export const ProcedureTimeslotGroupBySchema: z.ZodType<Prisma.ProcedureTimeslotGroupByArgs> = z.object({ where: ProcedureTimeslotWhereInputObjectSchema.optional(), orderBy: z.union([ProcedureTimeslotOrderByWithAggregationInputObjectSchema, ProcedureTimeslotOrderByWithAggregationInputObjectSchema.array()]).optional(), having: ProcedureTimeslotScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(ProcedureTimeslotScalarFieldEnumSchema), _count: z.union([ z.literal(true), ProcedureTimeslotCountAggregateInputObjectSchema ]).optional(), _min: ProcedureTimeslotMinAggregateInputObjectSchema.optional(), _max: ProcedureTimeslotMaxAggregateInputObjectSchema.optional(), _avg: ProcedureTimeslotAvgAggregateInputObjectSchema.optional(), _sum: ProcedureTimeslotSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.ProcedureTimeslotGroupByArgs>;

export const ProcedureTimeslotGroupByZodSchema = z.object({ where: ProcedureTimeslotWhereInputObjectSchema.optional(), orderBy: z.union([ProcedureTimeslotOrderByWithAggregationInputObjectSchema, ProcedureTimeslotOrderByWithAggregationInputObjectSchema.array()]).optional(), having: ProcedureTimeslotScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(ProcedureTimeslotScalarFieldEnumSchema), _count: z.union([ z.literal(true), ProcedureTimeslotCountAggregateInputObjectSchema ]).optional(), _min: ProcedureTimeslotMinAggregateInputObjectSchema.optional(), _max: ProcedureTimeslotMaxAggregateInputObjectSchema.optional(), _avg: ProcedureTimeslotAvgAggregateInputObjectSchema.optional(), _sum: ProcedureTimeslotSumAggregateInputObjectSchema.optional() }).strict();