24 lines
1.8 KiB
TypeScript
24 lines
1.8 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
|
import { PdfFileCountOrderByAggregateInputObjectSchema as PdfFileCountOrderByAggregateInputObjectSchema } from './PdfFileCountOrderByAggregateInput.schema';
|
|
import { PdfFileAvgOrderByAggregateInputObjectSchema as PdfFileAvgOrderByAggregateInputObjectSchema } from './PdfFileAvgOrderByAggregateInput.schema';
|
|
import { PdfFileMaxOrderByAggregateInputObjectSchema as PdfFileMaxOrderByAggregateInputObjectSchema } from './PdfFileMaxOrderByAggregateInput.schema';
|
|
import { PdfFileMinOrderByAggregateInputObjectSchema as PdfFileMinOrderByAggregateInputObjectSchema } from './PdfFileMinOrderByAggregateInput.schema';
|
|
import { PdfFileSumOrderByAggregateInputObjectSchema as PdfFileSumOrderByAggregateInputObjectSchema } from './PdfFileSumOrderByAggregateInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: SortOrderSchema.optional(),
|
|
filename: SortOrderSchema.optional(),
|
|
pdfData: SortOrderSchema.optional(),
|
|
uploadedAt: SortOrderSchema.optional(),
|
|
groupId: SortOrderSchema.optional(),
|
|
_count: z.lazy(() => PdfFileCountOrderByAggregateInputObjectSchema).optional(),
|
|
_avg: z.lazy(() => PdfFileAvgOrderByAggregateInputObjectSchema).optional(),
|
|
_max: z.lazy(() => PdfFileMaxOrderByAggregateInputObjectSchema).optional(),
|
|
_min: z.lazy(() => PdfFileMinOrderByAggregateInputObjectSchema).optional(),
|
|
_sum: z.lazy(() => PdfFileSumOrderByAggregateInputObjectSchema).optional()
|
|
}).strict();
|
|
export const PdfFileOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.PdfFileOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.PdfFileOrderByWithAggregationInput>;
|
|
export const PdfFileOrderByWithAggregationInputObjectZodSchema = makeSchema();
|