@haex-space/vault-sdk 2.5.25 → 2.5.29
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.
- package/dist/{client-AdojmCk8.d.ts → client-BUp2_Bf1.d.ts} +11 -1
- package/dist/{client-Rqbzd23b.d.mts → client-Bva_JMEm.d.mts} +11 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +15 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +15 -0
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.d.mts +1 -1
- package/dist/runtime/nuxt.plugin.client.d.ts +1 -1
- package/dist/runtime/nuxt.plugin.client.js +15 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +15 -0
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +15 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +15 -0
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +15 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +15 -0
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -150,6 +150,12 @@ interface AddSyncRuleOptions {
|
|
|
150
150
|
backendIds: string[];
|
|
151
151
|
direction?: SyncDirection;
|
|
152
152
|
}
|
|
153
|
+
interface UpdateSyncRuleOptions {
|
|
154
|
+
ruleId: string;
|
|
155
|
+
backendIds?: string[];
|
|
156
|
+
direction?: SyncDirection;
|
|
157
|
+
enabled?: boolean;
|
|
158
|
+
}
|
|
153
159
|
interface ListFilesOptions {
|
|
154
160
|
spaceId: string;
|
|
155
161
|
path?: string;
|
|
@@ -229,6 +235,10 @@ declare class FileSyncAPI {
|
|
|
229
235
|
* Add a sync rule
|
|
230
236
|
*/
|
|
231
237
|
addSyncRuleAsync(options: AddSyncRuleOptions): Promise<SyncRule>;
|
|
238
|
+
/**
|
|
239
|
+
* Update a sync rule
|
|
240
|
+
*/
|
|
241
|
+
updateSyncRuleAsync(options: UpdateSyncRuleOptions): Promise<SyncRule>;
|
|
232
242
|
/**
|
|
233
243
|
* Remove a sync rule
|
|
234
244
|
*/
|
|
@@ -473,4 +483,4 @@ declare class HaexVaultSdk {
|
|
|
473
483
|
private log;
|
|
474
484
|
}
|
|
475
485
|
|
|
476
|
-
export { type AddBackendOptions as A, type BackendConfig as B, type CreateSpaceOptions as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type
|
|
486
|
+
export { type AddBackendOptions as A, type BackendConfig as B, type CreateSpaceOptions as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type AddSyncRuleOptions as m, type UploadFileOptions as n, type DownloadFileOptions as o, FILE_SYNC_STATE as p, SYNC_DIRECTION as q, STORAGE_BACKEND_TYPE as r };
|
|
@@ -150,6 +150,12 @@ interface AddSyncRuleOptions {
|
|
|
150
150
|
backendIds: string[];
|
|
151
151
|
direction?: SyncDirection;
|
|
152
152
|
}
|
|
153
|
+
interface UpdateSyncRuleOptions {
|
|
154
|
+
ruleId: string;
|
|
155
|
+
backendIds?: string[];
|
|
156
|
+
direction?: SyncDirection;
|
|
157
|
+
enabled?: boolean;
|
|
158
|
+
}
|
|
153
159
|
interface ListFilesOptions {
|
|
154
160
|
spaceId: string;
|
|
155
161
|
path?: string;
|
|
@@ -229,6 +235,10 @@ declare class FileSyncAPI {
|
|
|
229
235
|
* Add a sync rule
|
|
230
236
|
*/
|
|
231
237
|
addSyncRuleAsync(options: AddSyncRuleOptions): Promise<SyncRule>;
|
|
238
|
+
/**
|
|
239
|
+
* Update a sync rule
|
|
240
|
+
*/
|
|
241
|
+
updateSyncRuleAsync(options: UpdateSyncRuleOptions): Promise<SyncRule>;
|
|
232
242
|
/**
|
|
233
243
|
* Remove a sync rule
|
|
234
244
|
*/
|
|
@@ -473,4 +483,4 @@ declare class HaexVaultSdk {
|
|
|
473
483
|
private log;
|
|
474
484
|
}
|
|
475
485
|
|
|
476
|
-
export { type AddBackendOptions as A, type BackendConfig as B, type CreateSpaceOptions as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type
|
|
486
|
+
export { type AddBackendOptions as A, type BackendConfig as B, type CreateSpaceOptions as C, DatabaseAPI as D, FilesystemAPI as F, HaexVaultSdk as H, type ListFilesOptions as L, PermissionsAPI as P, StorageAPI as S, type UpdateSyncRuleOptions as U, WebAPI as W, FileSyncAPI as a, type FileSpace as b, type FileInfo as c, type FileSyncState as d, type StorageBackendInfo as e, type StorageBackendType as f, type S3BackendConfig as g, type SyncRule as h, type SyncDirection as i, type SyncStatus as j, type SyncError as k, type SyncProgress as l, type AddSyncRuleOptions as m, type UploadFileOptions as n, type DownloadFileOptions as o, FILE_SYNC_STATE as p, SYNC_DIRECTION as q, STORAGE_BACKEND_TYPE as r };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AddBackendOptions, m as AddSyncRuleOptions, B as BackendConfig, C as CreateSpaceOptions, D as DatabaseAPI,
|
|
1
|
+
import { H as HaexVaultSdk } from './client-Bva_JMEm.mjs';
|
|
2
|
+
export { A as AddBackendOptions, m as AddSyncRuleOptions, B as BackendConfig, C as CreateSpaceOptions, D as DatabaseAPI, o as DownloadFileOptions, p as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, L as ListFilesOptions, P as PermissionsAPI, g as S3BackendConfig, r as STORAGE_BACKEND_TYPE, q as SYNC_DIRECTION, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, n as UploadFileOptions, W as WebAPI } from './client-Bva_JMEm.mjs';
|
|
3
3
|
import { E as ExtensionManifest, H as HaexHubConfig } from './types-C4BTOGe5.mjs';
|
|
4
4
|
export { A as ApplicationContext, t as AuthorizedClient, B as BlockedClient, C as ContextChangedEvent, F as DEFAULT_TIMEOUT, o as DatabaseColumnInfo, m as DatabaseExecuteParams, k as DatabasePermission, d as DatabasePermissionRequest, l as DatabaseQueryParams, D as DatabaseQueryResult, n as DatabaseTableInfo, U as EXTERNAL_EVENTS, z as ErrorCode, g as EventCallback, a as ExtensionInfo, v as ExternalAuthDecision, x as ExternalConnection, J as ExternalConnectionErrorCode, I as ExternalConnectionState, V as ExternalEvent, s as ExternalRequest, r as ExternalRequestEvent, e as ExternalRequestHandler, f as ExternalResponse, O as HAEXTENSION_EVENTS, j as HaexHubEvent, h as HaexHubRequest, i as HaexHubResponse, N as HaexVaultSdkError, Q as HaextensionEvent, u as PendingAuthorization, P as PermissionResponse, y as PermissionStatus, R as RequestedExtension, p as SearchQuery, q as SearchRequestEvent, S as SearchResult, w as SessionAuthorization, T as TABLE_SEPARATOR, W as WebRequestOptions, c as WebResponse, L as canExternalClientSendRequests, G as getTableName, K as isExternalClientConnected } from './types-C4BTOGe5.mjs';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.mjs';
|
|
@@ -118,6 +118,7 @@ declare const HAEXTENSION_METHODS: {
|
|
|
118
118
|
readonly testBackend: "haextension:filesystem:sync:test-backend";
|
|
119
119
|
readonly listSyncRules: "haextension:filesystem:sync:list-sync-rules";
|
|
120
120
|
readonly addSyncRule: "haextension:filesystem:sync:add-sync-rule";
|
|
121
|
+
readonly updateSyncRule: "haextension:filesystem:sync:update-sync-rule";
|
|
121
122
|
readonly removeSyncRule: "haextension:filesystem:sync:remove-sync-rule";
|
|
122
123
|
readonly getSyncStatus: "haextension:filesystem:sync:get-sync-status";
|
|
123
124
|
readonly triggerSync: "haextension:filesystem:sync:trigger-sync";
|
|
@@ -220,6 +221,7 @@ declare const TAURI_COMMANDS: {
|
|
|
220
221
|
readonly testBackend: "filesync_test_backend";
|
|
221
222
|
readonly listSyncRules: "filesync_list_sync_rules";
|
|
222
223
|
readonly addSyncRule: "filesync_add_sync_rule";
|
|
224
|
+
readonly updateSyncRule: "filesync_update_sync_rule";
|
|
223
225
|
readonly removeSyncRule: "filesync_remove_sync_rule";
|
|
224
226
|
readonly getSyncStatus: "filesync_get_sync_status";
|
|
225
227
|
readonly triggerSync: "filesync_trigger_sync";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HaexVaultSdk } from './client-
|
|
2
|
-
export { A as AddBackendOptions, m as AddSyncRuleOptions, B as BackendConfig, C as CreateSpaceOptions, D as DatabaseAPI,
|
|
1
|
+
import { H as HaexVaultSdk } from './client-BUp2_Bf1.js';
|
|
2
|
+
export { A as AddBackendOptions, m as AddSyncRuleOptions, B as BackendConfig, C as CreateSpaceOptions, D as DatabaseAPI, o as DownloadFileOptions, p as FILE_SYNC_STATE, c as FileInfo, b as FileSpace, a as FileSyncAPI, d as FileSyncState, F as FilesystemAPI, L as ListFilesOptions, P as PermissionsAPI, g as S3BackendConfig, r as STORAGE_BACKEND_TYPE, q as SYNC_DIRECTION, e as StorageBackendInfo, f as StorageBackendType, i as SyncDirection, k as SyncError, l as SyncProgress, h as SyncRule, j as SyncStatus, U as UpdateSyncRuleOptions, n as UploadFileOptions, W as WebAPI } from './client-BUp2_Bf1.js';
|
|
3
3
|
import { E as ExtensionManifest, H as HaexHubConfig } from './types-C4BTOGe5.js';
|
|
4
4
|
export { A as ApplicationContext, t as AuthorizedClient, B as BlockedClient, C as ContextChangedEvent, F as DEFAULT_TIMEOUT, o as DatabaseColumnInfo, m as DatabaseExecuteParams, k as DatabasePermission, d as DatabasePermissionRequest, l as DatabaseQueryParams, D as DatabaseQueryResult, n as DatabaseTableInfo, U as EXTERNAL_EVENTS, z as ErrorCode, g as EventCallback, a as ExtensionInfo, v as ExternalAuthDecision, x as ExternalConnection, J as ExternalConnectionErrorCode, I as ExternalConnectionState, V as ExternalEvent, s as ExternalRequest, r as ExternalRequestEvent, e as ExternalRequestHandler, f as ExternalResponse, O as HAEXTENSION_EVENTS, j as HaexHubEvent, h as HaexHubRequest, i as HaexHubResponse, N as HaexVaultSdkError, Q as HaextensionEvent, u as PendingAuthorization, P as PermissionResponse, y as PermissionStatus, R as RequestedExtension, p as SearchQuery, q as SearchRequestEvent, S as SearchResult, w as SessionAuthorization, T as TABLE_SEPARATOR, W as WebRequestOptions, c as WebResponse, L as canExternalClientSendRequests, G as getTableName, K as isExternalClientConnected } from './types-C4BTOGe5.js';
|
|
5
5
|
export { H as HaextensionConfig } from './config-D_HXjsEV.js';
|
|
@@ -118,6 +118,7 @@ declare const HAEXTENSION_METHODS: {
|
|
|
118
118
|
readonly testBackend: "haextension:filesystem:sync:test-backend";
|
|
119
119
|
readonly listSyncRules: "haextension:filesystem:sync:list-sync-rules";
|
|
120
120
|
readonly addSyncRule: "haextension:filesystem:sync:add-sync-rule";
|
|
121
|
+
readonly updateSyncRule: "haextension:filesystem:sync:update-sync-rule";
|
|
121
122
|
readonly removeSyncRule: "haextension:filesystem:sync:remove-sync-rule";
|
|
122
123
|
readonly getSyncStatus: "haextension:filesystem:sync:get-sync-status";
|
|
123
124
|
readonly triggerSync: "haextension:filesystem:sync:trigger-sync";
|
|
@@ -220,6 +221,7 @@ declare const TAURI_COMMANDS: {
|
|
|
220
221
|
readonly testBackend: "filesync_test_backend";
|
|
221
222
|
readonly listSyncRules: "filesync_list_sync_rules";
|
|
222
223
|
readonly addSyncRule: "filesync_add_sync_rule";
|
|
224
|
+
readonly updateSyncRule: "filesync_update_sync_rule";
|
|
223
225
|
readonly removeSyncRule: "filesync_remove_sync_rule";
|
|
224
226
|
readonly getSyncStatus: "filesync_get_sync_status";
|
|
225
227
|
readonly triggerSync: "filesync_trigger_sync";
|
package/dist/index.js
CHANGED
|
@@ -507,6 +507,7 @@ var HAEXTENSION_METHODS = {
|
|
|
507
507
|
// Sync Rules
|
|
508
508
|
listSyncRules: "haextension:filesystem:sync:list-sync-rules",
|
|
509
509
|
addSyncRule: "haextension:filesystem:sync:add-sync-rule",
|
|
510
|
+
updateSyncRule: "haextension:filesystem:sync:update-sync-rule",
|
|
510
511
|
removeSyncRule: "haextension:filesystem:sync:remove-sync-rule",
|
|
511
512
|
// Sync Operations
|
|
512
513
|
getSyncStatus: "haextension:filesystem:sync:get-sync-status",
|
|
@@ -807,6 +808,15 @@ var FileSyncAPI = class {
|
|
|
807
808
|
options
|
|
808
809
|
);
|
|
809
810
|
}
|
|
811
|
+
/**
|
|
812
|
+
* Update a sync rule
|
|
813
|
+
*/
|
|
814
|
+
async updateSyncRuleAsync(options) {
|
|
815
|
+
return this.client.request(
|
|
816
|
+
HAEXTENSION_METHODS.filesystem.sync.updateSyncRule,
|
|
817
|
+
options
|
|
818
|
+
);
|
|
819
|
+
}
|
|
810
820
|
/**
|
|
811
821
|
* Remove a sync rule
|
|
812
822
|
*/
|
|
@@ -1365,6 +1375,7 @@ var TAURI_COMMANDS = {
|
|
|
1365
1375
|
// Sync Rules
|
|
1366
1376
|
listSyncRules: "filesync_list_sync_rules",
|
|
1367
1377
|
addSyncRule: "filesync_add_sync_rule",
|
|
1378
|
+
updateSyncRule: "filesync_update_sync_rule",
|
|
1368
1379
|
removeSyncRule: "filesync_remove_sync_rule",
|
|
1369
1380
|
// Sync Operations
|
|
1370
1381
|
getSyncStatus: "filesync_get_sync_status",
|
|
@@ -1555,6 +1566,10 @@ var filesyncHandlers = {
|
|
|
1555
1566
|
command: TAURI_COMMANDS.filesync.addSyncRule,
|
|
1556
1567
|
args: (p) => ({ request: p })
|
|
1557
1568
|
},
|
|
1569
|
+
[HAEXTENSION_METHODS.filesystem.sync.updateSyncRule]: {
|
|
1570
|
+
command: TAURI_COMMANDS.filesync.updateSyncRule,
|
|
1571
|
+
args: (p) => ({ request: p })
|
|
1572
|
+
},
|
|
1558
1573
|
[HAEXTENSION_METHODS.filesystem.sync.removeSyncRule]: {
|
|
1559
1574
|
command: TAURI_COMMANDS.filesync.removeSyncRule,
|
|
1560
1575
|
args: (p) => ({ ruleId: p.ruleId })
|