feat(downloads): derive completed file availability

This commit is contained in:
4gray committed 2026-08-01 16:29:50 +02:00
1 parent 263f0f3d52
commit bd61426d8e
7 files changed
+326 -23

No files matched your search

@@ -137,6 +137,11 @@ export const ELECTRON_BRIDGE_DOWNLOAD_STATUSES = {
export type ElectronBridgeDownloadStatus =
(typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES];
export type ElectronDownloadFileAvailability =
| 'available'
| 'missing'
| 'not-applicable';
export const ELECTRON_BRIDGE_APP_UPDATE_STATUSES = {
Unsupported: 'unsupported',
Idle: 'idle',
@@ -544,6 +549,7 @@ export interface ElectronDownloadItem {
filePath?: string;
posterUrl?: string;
status: ElectronBridgeDownloadStatus;
fileAvailability: ElectronDownloadFileAvailability;
bytesDownloaded?: number;
totalBytes?: number;
errorMessage?: string;