@plutonhq/core-frontend 0.1.20 → 0.1.22

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.
Files changed (27) hide show
  1. package/dist-lib/components/Storage/AddStorage/AddStorage.module.scss.js +42 -26
  2. package/dist-lib/components/Storage/AddStorage/AddStorage.module.scss.js.map +1 -1
  3. package/dist-lib/components/Storage/StorageAuthSettings/StorageAuthSettings.d.ts.map +1 -1
  4. package/dist-lib/components/Storage/StorageAuthSettings/StorageAuthSettings.js +119 -53
  5. package/dist-lib/components/Storage/StorageAuthSettings/StorageAuthSettings.js.map +1 -1
  6. package/dist-lib/components/Storage/StorageItem/StorageItem.d.ts.map +1 -1
  7. package/dist-lib/components/Storage/StorageItem/StorageItem.js +1 -1
  8. package/dist-lib/components/Storage/StorageItem/StorageItem.js.map +1 -1
  9. package/dist-lib/components/common/form/StoragePicker/StoragePicker.d.ts +1 -0
  10. package/dist-lib/components/common/form/StoragePicker/StoragePicker.d.ts.map +1 -1
  11. package/dist-lib/components/common/form/StoragePicker/StoragePicker.js +57 -51
  12. package/dist-lib/components/common/form/StoragePicker/StoragePicker.js.map +1 -1
  13. package/dist-lib/components/common/form/StoragePicker/StoragePicker.module.scss.js +8 -4
  14. package/dist-lib/components/common/form/StoragePicker/StoragePicker.module.scss.js.map +1 -1
  15. package/dist-lib/services/storage.d.ts +10 -0
  16. package/dist-lib/services/storage.d.ts.map +1 -1
  17. package/dist-lib/services/storage.js +55 -20
  18. package/dist-lib/services/storage.js.map +1 -1
  19. package/dist-lib/services.js +55 -52
  20. package/dist-lib/styles/core-frontend.css +1 -1
  21. package/package.json +1 -1
  22. package/src/components/Storage/AddStorage/AddStorage.module.scss +74 -0
  23. package/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx +136 -3
  24. package/src/components/Storage/StorageItem/StorageItem.tsx +0 -1
  25. package/src/components/common/form/StoragePicker/StoragePicker.module.scss +27 -0
  26. package/src/components/common/form/StoragePicker/StoragePicker.tsx +19 -5
  27. package/src/services/storage.ts +49 -0
@@ -1,38 +1,39 @@
1
- import { cancelBackup as s, cancelBackupDownload as a, deleteBackup as o, generateBackupDownload as u, getBackupDownload as r, getBackupProgress as l, getSnapshotFiles as n, retryFailedReplications as p, updateBackup as c, useCancelBackup as g, useCancelBackupDownload as i, useDeleteBackup as d, useDownloadBackup as S, useGetBackupDownload as P, useGetBackupProgress as k, useGetBackupProgressOnce as D, useGetSnapshotFiles as R, useRetryFailedReplications as G, useUpdateBackup as B } from "./services/backups.js";
2
- import { browseDir as w, getAllDevices as f, getDevice as m, getSystemMetrics as v, updateDependent as h, updateDevice as y, useBrowseDir as L, useGetDevice as F, useGetDevices as U, useGetSystemMetrics as C, useUpdateDependent as T, useUpdateDevice as x } from "./services/devices.js";
3
- import { checkActiveBackupsOrRestore as V, checkPlanIntegrity as I, createPlan as b, deletePlan as M, deleteReplicationStorage as j, downloadPlanLogs as q, getAllPlans as z, getPlanLogs as E, getSinglePlan as H, pausePlan as J, performBackup as K, prunePlan as N, resumePlan as Q, unlockPlan as W, updatePlan as X, useCheckActiveBackupsOrRestore as Y, useCheckPlanIntegrity as Z, useCreatePlan as _, useDeletePlan as $, useDeleteReplicationStorage as ee, useGetDownloadLogs as te, useGetPlan as se, useGetPlanLogs as ae, useGetPlans as oe, usePausePlan as ue, usePerformBackup as re, usePrunePlan as le, useResumePlan as ne, useUnlockPlan as pe, useUpdatePlan as ce } from "./services/plans.js";
4
- import { cancelRestore as ie, deleteRestore as de, getAllRestores as Se, getDryRestoreStats as Pe, getRestoreProgress as ke, getRestoreStats as De, getSingleRestore as Re, restoreBackup as Ge, useCancelRestore as Be, useDeleteRestore as Ae, useGetDryRestoreStats as we, useGetRestore as fe, useGetRestoreProgress as me, useGetRestoreProgressOnce as ve, useGetRestoreStats as he, useGetRestores as ye, useRestoreBackup as Le } from "./services/restores.js";
5
- import { checkLatestVersion as Ue, completeSetup as Ce, downloadAppLogs as Te, getAppLogs as xe, getSettings as Oe, getSetupStatus as Ve, setupTwoFactorAuth as Ie, updateSettings as be, useCheckLatestVersion as Me, useCompleteSetup as je, useGetAppLogs as qe, useGetDownloadAppLogs as ze, useGetSettings as Ee, useSetupStatus as He, useSetupTwoFactorAuth as Je, useUpdateSettings as Ke, useValidateIntegration as Ne, useVerifyTwoFactorAuth as Qe, useVerifyTwoFactorOTP as We, validateIntegration as Xe, verifyTwoFactorAuth as Ye, verifyTwoFactorOTP as Ze } from "./services/settings.js";
6
- import { addStorage as $e, deleteStorage as et, getAllStorages as tt, getAvailableStorages as st, getStorage as at, updateStorage as ot, useAddStorage as ut, useDeleteStorage as rt, useGetAvailableStorages as lt, useGetStorage as nt, useGetStorages as pt, useUpdateStorage as ct, useVerifyStorage as gt, verifyStorage as it } from "./services/storage.js";
7
- import { loginUser as St, logoutUser as Pt, useAuth as kt, useLogin as Dt, useLogout as Rt, validateAuth as Gt } from "./services/users.js";
1
+ import { cancelBackup as s, cancelBackupDownload as a, deleteBackup as o, generateBackupDownload as u, getBackupDownload as r, getBackupProgress as l, getSnapshotFiles as n, retryFailedReplications as g, updateBackup as c, useCancelBackup as p, useCancelBackupDownload as i, useDeleteBackup as S, useDownloadBackup as d, useGetBackupDownload as P, useGetBackupProgress as k, useGetBackupProgressOnce as D, useGetSnapshotFiles as R, useRetryFailedReplications as G, useUpdateBackup as A } from "./services/backups.js";
2
+ import { browseDir as w, getAllDevices as h, getDevice as f, getSystemMetrics as m, updateDependent as v, updateDevice as y, useBrowseDir as L, useGetDevice as F, useGetDevices as U, useGetSystemMetrics as C, useUpdateDependent as T, useUpdateDevice as x } from "./services/devices.js";
3
+ import { checkActiveBackupsOrRestore as V, checkPlanIntegrity as I, createPlan as b, deletePlan as z, deleteReplicationStorage as M, downloadPlanLogs as j, getAllPlans as q, getPlanLogs as E, getSinglePlan as H, pausePlan as J, performBackup as K, prunePlan as N, resumePlan as Q, unlockPlan as W, updatePlan as X, useCheckActiveBackupsOrRestore as Y, useCheckPlanIntegrity as Z, useCreatePlan as _, useDeletePlan as $, useDeleteReplicationStorage as ee, useGetDownloadLogs as te, useGetPlan as se, useGetPlanLogs as ae, useGetPlans as oe, usePausePlan as ue, usePerformBackup as re, usePrunePlan as le, useResumePlan as ne, useUnlockPlan as ge, useUpdatePlan as ce } from "./services/plans.js";
4
+ import { cancelRestore as ie, deleteRestore as Se, getAllRestores as de, getDryRestoreStats as Pe, getRestoreProgress as ke, getRestoreStats as De, getSingleRestore as Re, restoreBackup as Ge, useCancelRestore as Ae, useDeleteRestore as Be, useGetDryRestoreStats as we, useGetRestore as he, useGetRestoreProgress as fe, useGetRestoreProgressOnce as me, useGetRestoreStats as ve, useGetRestores as ye, useRestoreBackup as Le } from "./services/restores.js";
5
+ import { checkLatestVersion as Ue, completeSetup as Ce, downloadAppLogs as Te, getAppLogs as xe, getSettings as Oe, getSetupStatus as Ve, setupTwoFactorAuth as Ie, updateSettings as be, useCheckLatestVersion as ze, useCompleteSetup as Me, useGetAppLogs as je, useGetDownloadAppLogs as qe, useGetSettings as Ee, useSetupStatus as He, useSetupTwoFactorAuth as Je, useUpdateSettings as Ke, useValidateIntegration as Ne, useVerifyTwoFactorAuth as Qe, useVerifyTwoFactorOTP as We, validateIntegration as Xe, verifyTwoFactorAuth as Ye, verifyTwoFactorOTP as Ze } from "./services/settings.js";
6
+ import { addStorage as $e, cancelStorageAuthorize as et, deleteStorage as tt, getAllStorages as st, getAvailableStorages as at, getStorage as ot, getStorageAuthorizeStatus as ut, startStorageAuthorize as rt, updateStorage as lt, useAddStorage as nt, useDeleteStorage as gt, useGetAvailableStorages as ct, useGetStorage as pt, useGetStorages as it, useUpdateStorage as St, useVerifyStorage as dt, verifyStorage as Pt } from "./services/storage.js";
7
+ import { loginUser as Dt, logoutUser as Rt, useAuth as Gt, useLogin as At, useLogout as Bt, validateAuth as wt } from "./services/users.js";
8
8
  export {
9
9
  $e as addStorage,
10
10
  w as browseDir,
11
11
  s as cancelBackup,
12
12
  a as cancelBackupDownload,
13
13
  ie as cancelRestore,
14
+ et as cancelStorageAuthorize,
14
15
  V as checkActiveBackupsOrRestore,
15
16
  Ue as checkLatestVersion,
16
17
  I as checkPlanIntegrity,
17
18
  Ce as completeSetup,
18
19
  b as createPlan,
19
20
  o as deleteBackup,
20
- M as deletePlan,
21
- j as deleteReplicationStorage,
22
- de as deleteRestore,
23
- et as deleteStorage,
21
+ z as deletePlan,
22
+ M as deleteReplicationStorage,
23
+ Se as deleteRestore,
24
+ tt as deleteStorage,
24
25
  Te as downloadAppLogs,
25
- q as downloadPlanLogs,
26
+ j as downloadPlanLogs,
26
27
  u as generateBackupDownload,
27
- f as getAllDevices,
28
- z as getAllPlans,
29
- Se as getAllRestores,
30
- tt as getAllStorages,
28
+ h as getAllDevices,
29
+ q as getAllPlans,
30
+ de as getAllRestores,
31
+ st as getAllStorages,
31
32
  xe as getAppLogs,
32
- st as getAvailableStorages,
33
+ at as getAvailableStorages,
33
34
  r as getBackupDownload,
34
35
  l as getBackupProgress,
35
- m as getDevice,
36
+ f as getDevice,
36
37
  Pe as getDryRestoreStats,
37
38
  E as getPlanLogs,
38
39
  ke as getRestoreProgress,
@@ -42,66 +43,68 @@ export {
42
43
  H as getSinglePlan,
43
44
  Re as getSingleRestore,
44
45
  n as getSnapshotFiles,
45
- at as getStorage,
46
- v as getSystemMetrics,
47
- St as loginUser,
48
- Pt as logoutUser,
46
+ ot as getStorage,
47
+ ut as getStorageAuthorizeStatus,
48
+ m as getSystemMetrics,
49
+ Dt as loginUser,
50
+ Rt as logoutUser,
49
51
  J as pausePlan,
50
52
  K as performBackup,
51
53
  N as prunePlan,
52
54
  Ge as restoreBackup,
53
55
  Q as resumePlan,
54
- p as retryFailedReplications,
56
+ g as retryFailedReplications,
55
57
  Ie as setupTwoFactorAuth,
58
+ rt as startStorageAuthorize,
56
59
  W as unlockPlan,
57
60
  c as updateBackup,
58
- h as updateDependent,
61
+ v as updateDependent,
59
62
  y as updateDevice,
60
63
  X as updatePlan,
61
64
  be as updateSettings,
62
- ot as updateStorage,
63
- ut as useAddStorage,
64
- kt as useAuth,
65
+ lt as updateStorage,
66
+ nt as useAddStorage,
67
+ Gt as useAuth,
65
68
  L as useBrowseDir,
66
- g as useCancelBackup,
69
+ p as useCancelBackup,
67
70
  i as useCancelBackupDownload,
68
- Be as useCancelRestore,
71
+ Ae as useCancelRestore,
69
72
  Y as useCheckActiveBackupsOrRestore,
70
- Me as useCheckLatestVersion,
73
+ ze as useCheckLatestVersion,
71
74
  Z as useCheckPlanIntegrity,
72
- je as useCompleteSetup,
75
+ Me as useCompleteSetup,
73
76
  _ as useCreatePlan,
74
- d as useDeleteBackup,
77
+ S as useDeleteBackup,
75
78
  $ as useDeletePlan,
76
79
  ee as useDeleteReplicationStorage,
77
- Ae as useDeleteRestore,
78
- rt as useDeleteStorage,
79
- S as useDownloadBackup,
80
- qe as useGetAppLogs,
81
- lt as useGetAvailableStorages,
80
+ Be as useDeleteRestore,
81
+ gt as useDeleteStorage,
82
+ d as useDownloadBackup,
83
+ je as useGetAppLogs,
84
+ ct as useGetAvailableStorages,
82
85
  P as useGetBackupDownload,
83
86
  k as useGetBackupProgress,
84
87
  D as useGetBackupProgressOnce,
85
88
  F as useGetDevice,
86
89
  U as useGetDevices,
87
- ze as useGetDownloadAppLogs,
90
+ qe as useGetDownloadAppLogs,
88
91
  te as useGetDownloadLogs,
89
92
  we as useGetDryRestoreStats,
90
93
  se as useGetPlan,
91
94
  ae as useGetPlanLogs,
92
95
  oe as useGetPlans,
93
- fe as useGetRestore,
94
- me as useGetRestoreProgress,
95
- ve as useGetRestoreProgressOnce,
96
- he as useGetRestoreStats,
96
+ he as useGetRestore,
97
+ fe as useGetRestoreProgress,
98
+ me as useGetRestoreProgressOnce,
99
+ ve as useGetRestoreStats,
97
100
  ye as useGetRestores,
98
101
  Ee as useGetSettings,
99
102
  R as useGetSnapshotFiles,
100
- nt as useGetStorage,
101
- pt as useGetStorages,
103
+ pt as useGetStorage,
104
+ it as useGetStorages,
102
105
  C as useGetSystemMetrics,
103
- Dt as useLogin,
104
- Rt as useLogout,
106
+ At as useLogin,
107
+ Bt as useLogout,
105
108
  ue as usePausePlan,
106
109
  re as usePerformBackup,
107
110
  le as usePrunePlan,
@@ -110,20 +113,20 @@ export {
110
113
  G as useRetryFailedReplications,
111
114
  He as useSetupStatus,
112
115
  Je as useSetupTwoFactorAuth,
113
- pe as useUnlockPlan,
114
- B as useUpdateBackup,
116
+ ge as useUnlockPlan,
117
+ A as useUpdateBackup,
115
118
  T as useUpdateDependent,
116
119
  x as useUpdateDevice,
117
120
  ce as useUpdatePlan,
118
121
  Ke as useUpdateSettings,
119
- ct as useUpdateStorage,
122
+ St as useUpdateStorage,
120
123
  Ne as useValidateIntegration,
121
- gt as useVerifyStorage,
124
+ dt as useVerifyStorage,
122
125
  Qe as useVerifyTwoFactorAuth,
123
126
  We as useVerifyTwoFactorOTP,
124
- Gt as validateAuth,
127
+ wt as validateAuth,
125
128
  Xe as validateIntegration,
126
- it as verifyStorage,
129
+ Pt as verifyStorage,
127
130
  Ye as verifyTwoFactorAuth,
128
131
  Ze as verifyTwoFactorOTP
129
132
  };