feat(worker): add autosync scheduler, endpoint, locking and UI controls

This commit is contained in:
2026-03-05 17:33:14 +00:00
parent 34aa17a74a
commit 5e5fb3221a
10 changed files with 567 additions and 1 deletions

View File

@@ -83,6 +83,12 @@ export type Database = {
last_sync_error: string | null;
last_sync_subscriptions: number;
last_sync_domains: number;
auto_sync_enabled: boolean;
auto_sync_frequency_minutes: number;
last_auto_sync_at: string | null;
next_auto_sync_at: string | null;
auto_sync_lock_until: string | null;
auto_sync_lock_token: string | null;
created_at: string;
};
Insert: {
@@ -101,6 +107,12 @@ export type Database = {
last_sync_error?: string | null;
last_sync_subscriptions?: number;
last_sync_domains?: number;
auto_sync_enabled?: boolean;
auto_sync_frequency_minutes?: number;
last_auto_sync_at?: string | null;
next_auto_sync_at?: string | null;
auto_sync_lock_until?: string | null;
auto_sync_lock_token?: string | null;
created_at?: string;
};
Update: {
@@ -119,6 +131,12 @@ export type Database = {
last_sync_error?: string | null;
last_sync_subscriptions?: number;
last_sync_domains?: number;
auto_sync_enabled?: boolean;
auto_sync_frequency_minutes?: number;
last_auto_sync_at?: string | null;
next_auto_sync_at?: string | null;
auto_sync_lock_until?: string | null;
auto_sync_lock_token?: string | null;
created_at?: string;
};
};