sendou.ink/app/features/notifications/notifications-schemas.ts
Kalle 4ff0586ff8
Notifications (#2117)
* Initial

* Progress

* Fix

* Progress

* Notifications list page

* BADGE_MANAGER_ADDED

* Mark as seen initial

* Split tables

* Progress

* Fix styles

* Push notifs initial

* Progress

* Rename

* Routines

* Progress

* Add e2e tests

* Done?

* Try updating actions

* Consistency

* Dep fix

* A couple fixes
2025-03-01 13:59:34 +02:00

16 lines
379 B
TypeScript

import { z } from "zod";
import { id } from "~/utils/zod";
import { NOTIFICATIONS } from "./notifications-contants";
export const markAsSeenActionSchema = z.object({
notificationIds: z.array(id).min(1).max(NOTIFICATIONS.MAX_SHOWN),
});
export const subscribeSchema = z.object({
endpoint: z.string().url(),
keys: z.object({
auth: z.string(),
p256dh: z.string(),
}),
});