15 lines
3.0 KiB
TypeScript
15 lines
3.0 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { NotificationWhereInputObjectSchema as NotificationWhereInputObjectSchema } from './objects/NotificationWhereInput.schema';
|
|
import { NotificationOrderByWithAggregationInputObjectSchema as NotificationOrderByWithAggregationInputObjectSchema } from './objects/NotificationOrderByWithAggregationInput.schema';
|
|
import { NotificationScalarWhereWithAggregatesInputObjectSchema as NotificationScalarWhereWithAggregatesInputObjectSchema } from './objects/NotificationScalarWhereWithAggregatesInput.schema';
|
|
import { NotificationScalarFieldEnumSchema } from './enums/NotificationScalarFieldEnum.schema';
|
|
import { NotificationCountAggregateInputObjectSchema as NotificationCountAggregateInputObjectSchema } from './objects/NotificationCountAggregateInput.schema';
|
|
import { NotificationMinAggregateInputObjectSchema as NotificationMinAggregateInputObjectSchema } from './objects/NotificationMinAggregateInput.schema';
|
|
import { NotificationMaxAggregateInputObjectSchema as NotificationMaxAggregateInputObjectSchema } from './objects/NotificationMaxAggregateInput.schema';
|
|
import { NotificationAvgAggregateInputObjectSchema as NotificationAvgAggregateInputObjectSchema } from './objects/NotificationAvgAggregateInput.schema';
|
|
import { NotificationSumAggregateInputObjectSchema as NotificationSumAggregateInputObjectSchema } from './objects/NotificationSumAggregateInput.schema';
|
|
|
|
export const NotificationGroupBySchema: z.ZodType<Prisma.NotificationGroupByArgs> = z.object({ where: NotificationWhereInputObjectSchema.optional(), orderBy: z.union([NotificationOrderByWithAggregationInputObjectSchema, NotificationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: NotificationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(NotificationScalarFieldEnumSchema), _count: z.union([ z.literal(true), NotificationCountAggregateInputObjectSchema ]).optional(), _min: NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.NotificationGroupByArgs>;
|
|
|
|
export const NotificationGroupByZodSchema = z.object({ where: NotificationWhereInputObjectSchema.optional(), orderBy: z.union([NotificationOrderByWithAggregationInputObjectSchema, NotificationOrderByWithAggregationInputObjectSchema.array()]).optional(), having: NotificationScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(NotificationScalarFieldEnumSchema), _count: z.union([ z.literal(true), NotificationCountAggregateInputObjectSchema ]).optional(), _min: NotificationMinAggregateInputObjectSchema.optional(), _max: NotificationMaxAggregateInputObjectSchema.optional(), _avg: NotificationAvgAggregateInputObjectSchema.optional(), _sum: NotificationSumAggregateInputObjectSchema.optional() }).strict(); |