eletrotupi / tcc/ api/src/schemas/notification.schema.ts9cd93e6ab48e317d51b0bdf9066dc5852cda738f
284 B | 8 lines Raw
1
import { z } from 'zod';
2

3
export const NotificationsQuerySchema = z.object({
4
  limit: z.coerce.number().int().positive().max(100).optional(),
5
  cursor: z.coerce.number().int().positive().optional(),
6
});
7

8
export type NotificationsQueryInput = z.infer<typeof NotificationsQuerySchema>;