@haex-space/vault-sdk 2.5.25 → 2.5.27
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -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 +10 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +10 -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 +10 -0
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +10 -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 +10 -0
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +10 -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 +10 -0
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +10 -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";
|
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";
|
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
|
*/
|