feat(frontend): add library paged types, syncStatus/triggerSync/admin API methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user