import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { OfficeContactWhereInputObjectSchema as OfficeContactWhereInputObjectSchema } from './objects/OfficeContactWhereInput.schema';
import { OfficeContactOrderByWithAggregationInputObjectSchema as OfficeContactOrderByWithAggregationInputObjectSchema } from './objects/OfficeContactOrderByWithAggregationInput.schema';
import { OfficeContactScalarWhereWithAggregatesInputObjectSchema as OfficeContactScalarWhereWithAggregatesInputObjectSchema } from './objects/OfficeContactScalarWhereWithAggregatesInput.schema';
import { OfficeContactScalarFieldEnumSchema } from './enums/OfficeContactScalarFieldEnum.schema';
import { OfficeContactCountAggregateInputObjectSchema as OfficeContactCountAggregateInputObjectSchema } from './objects/OfficeContactCountAggregateInput.schema';
import { OfficeContactMinAggregateInputObjectSchema as OfficeContactMinAggregateInputObjectSchema } from './objects/OfficeContactMinAggregateInput.schema';
import { OfficeContactMaxAggregateInputObjectSchema as OfficeContactMaxAggregateInputObjectSchema } from './objects/OfficeContactMaxAggregateInput.schema';
import { OfficeContactAvgAggregateInputObjectSchema as OfficeContactAvgAggregateInputObjectSchema } from './objects/OfficeContactAvgAggregateInput.schema';
import { OfficeContactSumAggregateInputObjectSchema as OfficeContactSumAggregateInputObjectSchema } from './objects/OfficeContactSumAggregateInput.schema';

export const OfficeContactGroupBySchema: z.ZodType<Prisma.OfficeContactGroupByArgs> = z.object({ where: OfficeContactWhereInputObjectSchema.optional(), orderBy: z.union([OfficeContactOrderByWithAggregationInputObjectSchema, OfficeContactOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeContactScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeContactScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeContactCountAggregateInputObjectSchema ]).optional(), _min: OfficeContactMinAggregateInputObjectSchema.optional(), _max: OfficeContactMaxAggregateInputObjectSchema.optional(), _avg: OfficeContactAvgAggregateInputObjectSchema.optional(), _sum: OfficeContactSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.OfficeContactGroupByArgs>;

export const OfficeContactGroupByZodSchema = z.object({ where: OfficeContactWhereInputObjectSchema.optional(), orderBy: z.union([OfficeContactOrderByWithAggregationInputObjectSchema, OfficeContactOrderByWithAggregationInputObjectSchema.array()]).optional(), having: OfficeContactScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(OfficeContactScalarFieldEnumSchema), _count: z.union([ z.literal(true), OfficeContactCountAggregateInputObjectSchema ]).optional(), _min: OfficeContactMinAggregateInputObjectSchema.optional(), _max: OfficeContactMaxAggregateInputObjectSchema.optional(), _avg: OfficeContactAvgAggregateInputObjectSchema.optional(), _sum: OfficeContactSumAggregateInputObjectSchema.optional() }).strict();