feat(import-progress): track and expose Immich import progress
This change introduces a cross-language import progress API for Immich imports and exposes a new query command to report live progress. A new ImportProgress model captures active state, totals, and bytes downloaded, allowing consuming code to display import status to users. - Adds ImportProgress data type and progress tracking during import - Exposes get_immich_import_progress command in Android and Rust - Updates permissions and schemas to include allow-get-immich-import-progress
This commit is contained in:
@@ -139,3 +139,13 @@ pub struct ImmichAssetsPage {
|
||||
pub struct ImmichImportRequest {
|
||||
pub ids: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ImmichImportProgress {
|
||||
pub active: bool,
|
||||
pub completed: usize,
|
||||
pub total: usize,
|
||||
pub bytes_downloaded: u64,
|
||||
pub bytes_total: u64,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user