eletrotupi / tcc/ api/src/schemas/notification.schema.tsf8f41f3d02a26b63d278ed849f86e913d1ea381b
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>;