import * as z from 'zod'; import type { Prisma } from '../../../generated/prisma'; import { SortOrderSchema } from '../enums/SortOrder.schema'; import { SortOrderInputObjectSchema as SortOrderInputObjectSchema } from './SortOrderInput.schema'; import { StaffCountOrderByAggregateInputObjectSchema as StaffCountOrderByAggregateInputObjectSchema } from './StaffCountOrderByAggregateInput.schema'; import { StaffAvgOrderByAggregateInputObjectSchema as StaffAvgOrderByAggregateInputObjectSchema } from './StaffAvgOrderByAggregateInput.schema'; import { StaffMaxOrderByAggregateInputObjectSchema as StaffMaxOrderByAggregateInputObjectSchema } from './StaffMaxOrderByAggregateInput.schema'; import { StaffMinOrderByAggregateInputObjectSchema as StaffMinOrderByAggregateInputObjectSchema } from './StaffMinOrderByAggregateInput.schema'; import { StaffSumOrderByAggregateInputObjectSchema as StaffSumOrderByAggregateInputObjectSchema } from './StaffSumOrderByAggregateInput.schema' const makeSchema = () => z.object({ id: SortOrderSchema.optional(), userId: SortOrderSchema.optional(), name: SortOrderSchema.optional(), email: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(), role: SortOrderSchema.optional(), phone: z.union([SortOrderSchema, z.lazy(() => SortOrderInputObjectSchema)]).optional(), createdAt: SortOrderSchema.optional(), _count: z.lazy(() => StaffCountOrderByAggregateInputObjectSchema).optional(), _avg: z.lazy(() => StaffAvgOrderByAggregateInputObjectSchema).optional(), _max: z.lazy(() => StaffMaxOrderByAggregateInputObjectSchema).optional(), _min: z.lazy(() => StaffMinOrderByAggregateInputObjectSchema).optional(), _sum: z.lazy(() => StaffSumOrderByAggregateInputObjectSchema).optional() }).strict(); export const StaffOrderByWithAggregationInputObjectSchema: z.ZodType = makeSchema() as unknown as z.ZodType; export const StaffOrderByWithAggregationInputObjectZodSchema = makeSchema();