mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 01:09:02 -05:00
* 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
16 lines
379 B
TypeScript
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(),
|
|
}),
|
|
});
|