14 lines
2.5 KiB
TypeScript
14 lines
2.5 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { PatientOrderByWithRelationInputObjectSchema as PatientOrderByWithRelationInputObjectSchema } from './objects/PatientOrderByWithRelationInput.schema';
|
|
import { PatientWhereInputObjectSchema as PatientWhereInputObjectSchema } from './objects/PatientWhereInput.schema';
|
|
import { PatientWhereUniqueInputObjectSchema as PatientWhereUniqueInputObjectSchema } from './objects/PatientWhereUniqueInput.schema';
|
|
import { PatientCountAggregateInputObjectSchema as PatientCountAggregateInputObjectSchema } from './objects/PatientCountAggregateInput.schema';
|
|
import { PatientMinAggregateInputObjectSchema as PatientMinAggregateInputObjectSchema } from './objects/PatientMinAggregateInput.schema';
|
|
import { PatientMaxAggregateInputObjectSchema as PatientMaxAggregateInputObjectSchema } from './objects/PatientMaxAggregateInput.schema';
|
|
import { PatientAvgAggregateInputObjectSchema as PatientAvgAggregateInputObjectSchema } from './objects/PatientAvgAggregateInput.schema';
|
|
import { PatientSumAggregateInputObjectSchema as PatientSumAggregateInputObjectSchema } from './objects/PatientSumAggregateInput.schema';
|
|
|
|
export const PatientAggregateSchema: z.ZodType<Prisma.PatientAggregateArgs> = z.object({ orderBy: z.union([PatientOrderByWithRelationInputObjectSchema, PatientOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientWhereInputObjectSchema.optional(), cursor: PatientWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientCountAggregateInputObjectSchema ]).optional(), _min: PatientMinAggregateInputObjectSchema.optional(), _max: PatientMaxAggregateInputObjectSchema.optional(), _avg: PatientAvgAggregateInputObjectSchema.optional(), _sum: PatientSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.PatientAggregateArgs>;
|
|
|
|
export const PatientAggregateZodSchema = z.object({ orderBy: z.union([PatientOrderByWithRelationInputObjectSchema, PatientOrderByWithRelationInputObjectSchema.array()]).optional(), where: PatientWhereInputObjectSchema.optional(), cursor: PatientWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), PatientCountAggregateInputObjectSchema ]).optional(), _min: PatientMinAggregateInputObjectSchema.optional(), _max: PatientMaxAggregateInputObjectSchema.optional(), _avg: PatientAvgAggregateInputObjectSchema.optional(), _sum: PatientSumAggregateInputObjectSchema.optional() }).strict(); |