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