mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
background upload plugin
add schemas sync variants formatting initial implementation use existing db, wip move to separate folder fix table definitions wip wiring it up repository pattern
This commit is contained in:
@@ -12,9 +12,6 @@ enum UploadApiErrorCode {
|
||||
networkError("Network error"),
|
||||
photosInternalError("Apple Photos internal error"),
|
||||
photosUnknownError("Apple Photos unknown error"),
|
||||
noServerUrl("Server URL is not set"),
|
||||
noDeviceId("Device ID is not set"),
|
||||
noAccessToken("Access token is not set"),
|
||||
interrupted("Upload interrupted"),
|
||||
cancelled("Upload cancelled"),
|
||||
downloadStalled("Download stalled"),
|
||||
@@ -23,7 +20,11 @@ enum UploadApiErrorCode {
|
||||
backgroundUpdatesDisabled("Background updates are disabled"),
|
||||
uploadTimeout("Upload timed out"),
|
||||
iCloudRateLimit("iCloud rate limit reached"),
|
||||
iCloudThrottled("iCloud requests are being throttled");
|
||||
iCloudThrottled("iCloud requests are being throttled"),
|
||||
invalidResponse("Invalid response from server"),
|
||||
badRequest("Server rejected the upload request"),
|
||||
internalServerError("Internal server error"),
|
||||
unauthorized("Unauthorized access");
|
||||
|
||||
final String message;
|
||||
|
||||
@@ -87,6 +88,9 @@ abstract class UploadApi {
|
||||
|
||||
@async
|
||||
void enqueueFiles(List<String> paths);
|
||||
|
||||
@async
|
||||
void onConfigChange(int key);
|
||||
}
|
||||
|
||||
@EventChannelApi()
|
||||
|
||||
Reference in New Issue
Block a user