feat(frontend): add library paged types, syncStatus/triggerSync/admin API methods

This commit is contained in:
2026-03-20 00:30:03 +01:00
parent e1a885dcc9
commit 978ad1cdb0
2 changed files with 73 additions and 0 deletions

View File

@@ -292,3 +292,33 @@ export interface CurrentBroadcastResponse {
offset_secs: number;
block_access_mode: AccessMode;
}
// Library management
// Note: LibraryItemResponse is already defined in this file (search for it above).
// LibraryItemFull extends it with the extra fields returned by the DB-backed endpoint.
export interface LibraryItemFull extends LibraryItemResponse {
thumbnail_url?: string | null;
collection_id?: string | null;
collection_name?: string | null;
}
export interface PagedLibraryResponse {
items: LibraryItemFull[];
total: number;
}
export interface LibrarySyncLogEntry {
id: number;
provider_id: string;
started_at: string;
finished_at?: string | null;
items_found: number;
status: 'running' | 'done' | 'error';
error_msg?: string | null;
}
export interface AdminSettings {
library_sync_interval_hours: number;
[key: string]: unknown;
}