15 lines
3.0 KiB
TypeScript
15 lines
3.0 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { ServiceLineWhereInputObjectSchema as ServiceLineWhereInputObjectSchema } from './objects/ServiceLineWhereInput.schema';
|
|
import { ServiceLineOrderByWithAggregationInputObjectSchema as ServiceLineOrderByWithAggregationInputObjectSchema } from './objects/ServiceLineOrderByWithAggregationInput.schema';
|
|
import { ServiceLineScalarWhereWithAggregatesInputObjectSchema as ServiceLineScalarWhereWithAggregatesInputObjectSchema } from './objects/ServiceLineScalarWhereWithAggregatesInput.schema';
|
|
import { ServiceLineScalarFieldEnumSchema } from './enums/ServiceLineScalarFieldEnum.schema';
|
|
import { ServiceLineCountAggregateInputObjectSchema as ServiceLineCountAggregateInputObjectSchema } from './objects/ServiceLineCountAggregateInput.schema';
|
|
import { ServiceLineMinAggregateInputObjectSchema as ServiceLineMinAggregateInputObjectSchema } from './objects/ServiceLineMinAggregateInput.schema';
|
|
import { ServiceLineMaxAggregateInputObjectSchema as ServiceLineMaxAggregateInputObjectSchema } from './objects/ServiceLineMaxAggregateInput.schema';
|
|
import { ServiceLineAvgAggregateInputObjectSchema as ServiceLineAvgAggregateInputObjectSchema } from './objects/ServiceLineAvgAggregateInput.schema';
|
|
import { ServiceLineSumAggregateInputObjectSchema as ServiceLineSumAggregateInputObjectSchema } from './objects/ServiceLineSumAggregateInput.schema';
|
|
|
|
export const ServiceLineGroupBySchema: z.ZodType<Prisma.ServiceLineGroupByArgs> = z.object({ where: ServiceLineWhereInputObjectSchema.optional(), orderBy: z.union([ServiceLineOrderByWithAggregationInputObjectSchema, ServiceLineOrderByWithAggregationInputObjectSchema.array()]).optional(), having: ServiceLineScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(ServiceLineScalarFieldEnumSchema), _count: z.union([ z.literal(true), ServiceLineCountAggregateInputObjectSchema ]).optional(), _min: ServiceLineMinAggregateInputObjectSchema.optional(), _max: ServiceLineMaxAggregateInputObjectSchema.optional(), _avg: ServiceLineAvgAggregateInputObjectSchema.optional(), _sum: ServiceLineSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.ServiceLineGroupByArgs>;
|
|
|
|
export const ServiceLineGroupByZodSchema = z.object({ where: ServiceLineWhereInputObjectSchema.optional(), orderBy: z.union([ServiceLineOrderByWithAggregationInputObjectSchema, ServiceLineOrderByWithAggregationInputObjectSchema.array()]).optional(), having: ServiceLineScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(ServiceLineScalarFieldEnumSchema), _count: z.union([ z.literal(true), ServiceLineCountAggregateInputObjectSchema ]).optional(), _min: ServiceLineMinAggregateInputObjectSchema.optional(), _max: ServiceLineMaxAggregateInputObjectSchema.optional(), _avg: ServiceLineAvgAggregateInputObjectSchema.optional(), _sum: ServiceLineSumAggregateInputObjectSchema.optional() }).strict(); |