trpc-shield
Version:
tRPC permissions as another layer of abstraction!
17 lines (15 loc) • 894 B
text/typescript
import { z } from 'zod';
import { UserSelectObjectSchema } from './objects/UserSelect.schema';
import { UserOrderByWithRelationInputObjectSchema } from './objects/UserOrderByWithRelationInput.schema';
import { UserWhereInputObjectSchema } from './objects/UserWhereInput.schema';
import { UserWhereUniqueInputObjectSchema } from './objects/UserWhereUniqueInput.schema';
import { UserScalarFieldEnumSchema } from './enums/UserScalarFieldEnum.schema';
export const UserFindFirstSchema = z.object({
select: UserSelectObjectSchema.optional(),
orderBy: z.union([UserOrderByWithRelationInputObjectSchema, UserOrderByWithRelationInputObjectSchema.array()]).optional(),
where: UserWhereInputObjectSchema.optional(),
cursor: UserWhereUniqueInputObjectSchema.optional(),
take: z.number().optional(),
skip: z.number().optional(),
distinct: z.array(UserScalarFieldEnumSchema).optional(),
});