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