Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,7 +1,7 @@
/**
* Server-side helpers for the DeviceToken Prisma model (Phase 08 #65).
*
* The mobile-wrapper register-device endpoint upserts on the unique
* The Web Push register-device endpoint upserts on the unique
* `token` column, the push-worker job filters by `revokedAt IS NULL`
* for fan-out, and the cron prune script revokes rows older than 90d.
*
@@ -10,11 +10,11 @@
*/
import { getDbClient, type DbClient } from "./client.server.js";
export type DevicePlatform = "ios" | "android" | "web";
export type PushProvider = "fcm" | "apns" | "webpush";
export type DevicePlatform = "web";
export type PushProvider = "webpush";
const DEVICE_PLATFORMS = new Set<DevicePlatform>(["ios", "android", "web"]);
const PUSH_PROVIDERS = new Set<PushProvider>(["fcm", "apns", "webpush"]);
const DEVICE_PLATFORMS = new Set<DevicePlatform>(["web"]);
const PUSH_PROVIDERS = new Set<PushProvider>(["webpush"]);
export function parseDevicePlatform(value: unknown): DevicePlatform | null {
return typeof value === "string" && DEVICE_PLATFORMS.has(value as DevicePlatform) ? (value as DevicePlatform) : null;
@@ -26,8 +26,7 @@ export function parsePushProvider(value: unknown): PushProvider | null {
/** Default provider for a given platform when the client omits it. */
export function defaultPushProviderFor(platform: DevicePlatform): PushProvider {
if (platform === "ios") return "apns";
if (platform === "android") return "fcm";
void platform;
return "webpush";
}