@futo-org/backups-orchestrator-ui 0.51.1 → 0.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
|
|
127
127
|
const libraries = integration.configuration.libraries;
|
|
128
128
|
|
|
129
|
-
if (libraries
|
|
129
|
+
if (libraries.includes("all")) {
|
|
130
130
|
librariesMode = "all";
|
|
131
131
|
} else if (libraries.length === 0) {
|
|
132
132
|
librariesMode = "none";
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
backupConfiguration,
|
|
196
196
|
libraries:
|
|
197
197
|
librariesMode === "all"
|
|
198
|
-
? "all"
|
|
198
|
+
? ["all"]
|
|
199
199
|
: librariesMode === "none"
|
|
200
200
|
? []
|
|
201
201
|
: [...selectedLibraries],
|
package/dist/fetch-client.d.ts
CHANGED
|
@@ -80,7 +80,8 @@ export type ImmichStateDto = {
|
|
|
80
80
|
export type ImmichIntegrationConfigurationDto = {
|
|
81
81
|
dataFolders: string[];
|
|
82
82
|
backupConfiguration: boolean;
|
|
83
|
-
libraries
|
|
83
|
+
/** IDs of the external libraries to back up. Use ["all"] to back up every library, including ones added later. */
|
|
84
|
+
libraries: string[];
|
|
84
85
|
};
|
|
85
86
|
export type ImmichIntegrationDto = {
|
|
86
87
|
id: string;
|
|
@@ -176,7 +177,8 @@ export type ConfigureImmichIntegrationRequestDto = {
|
|
|
176
177
|
cron: string;
|
|
177
178
|
dataFolders: string[];
|
|
178
179
|
backupConfiguration: boolean;
|
|
179
|
-
libraries
|
|
180
|
+
/** IDs of the external libraries to back up. Use ["all"] to back up every library, including ones added later. */
|
|
181
|
+
libraries: string[];
|
|
180
182
|
retentionPolicy?: (RetentionPolicyDto) | null;
|
|
181
183
|
paused?: boolean;
|
|
182
184
|
repositoryId?: string;
|
|
@@ -293,10 +295,10 @@ export type RunResponseDto = {
|
|
|
293
295
|
run: RunDto;
|
|
294
296
|
};
|
|
295
297
|
export type TaskType = "schedule" | "restore" | "backup" | "forget";
|
|
296
|
-
export type
|
|
298
|
+
export type RunningTaskStatus = "incomplete" | "complete" | "warn" | "failed" | "cancelled";
|
|
297
299
|
export type ActiveScheduleItemDto = {
|
|
298
300
|
repositoryId: string;
|
|
299
|
-
status:
|
|
301
|
+
status: RunningTaskStatus;
|
|
300
302
|
};
|
|
301
303
|
export type RunningTaskDto = {
|
|
302
304
|
parentId: string;
|
|
@@ -33,7 +33,7 @@ export const useConfigureAndStartImmichIntegration = () => createMutation(() =>
|
|
|
33
33
|
cron: IMMICH_DEFAULT_CRON,
|
|
34
34
|
dataFolders: immichState.dataFolders,
|
|
35
35
|
backupConfiguration: true,
|
|
36
|
-
libraries: 'all',
|
|
36
|
+
libraries: ['all'],
|
|
37
37
|
});
|
|
38
38
|
return { repositoryId };
|
|
39
39
|
},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@futo-org/backups-orchestrator-ui",
|
|
3
3
|
"repository": "https://github.com/immich-app/yucca",
|
|
4
4
|
"description": "Backups orchestrator (UI library)",
|
|
5
|
-
"version": "0.51.
|
|
5
|
+
"version": "0.51.2",
|
|
6
6
|
"license": "Source First License 1.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"lodash.debounce": "^4.0.8",
|
|
70
70
|
"luxon": "^3.7.2",
|
|
71
71
|
"socket.io-client": "^4.8.3",
|
|
72
|
-
"@futo-org/backups-api-client": "^0.51.
|
|
72
|
+
"@futo-org/backups-api-client": "^0.51.2"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"dev": "vite dev --port 5174",
|