mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(kobo): add device sync history tracking
Records success and failure events for Kobo device syncs in the database, including operation duration, event types, and error details. Surfaces the recent sync history in the Kobo Settings UI for users to monitor their device activity.
This commit is contained in:
@@ -19,6 +19,25 @@ export interface KoboSyncSettings {
|
||||
syncBookOrbitAnnotationsToKobo: boolean;
|
||||
}
|
||||
|
||||
export type KoboSyncHistoryEvent = "library_sync" | "book_download" | "progress_update" | "annotations_pull" | "annotations_push";
|
||||
|
||||
export type KoboSyncHistoryStatus = "success" | "failed";
|
||||
|
||||
export type KoboSyncHistoryCounts = Record<string, number | boolean | string | null>;
|
||||
|
||||
export interface KoboSyncHistoryEntry {
|
||||
id: number;
|
||||
deviceId: number | null;
|
||||
deviceName: string | null;
|
||||
event: KoboSyncHistoryEvent;
|
||||
status: KoboSyncHistoryStatus;
|
||||
counts: KoboSyncHistoryCounts;
|
||||
durationMs: number;
|
||||
errorClass: string | null;
|
||||
error: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface CreateKoboDeviceRequest {
|
||||
name: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user