@flashbacktech/flashbackclient 0.0.61 → 0.0.62
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/api/client.d.ts
CHANGED
|
@@ -40,10 +40,10 @@ export declare class ApiClient implements IApiClient {
|
|
|
40
40
|
validateStorageUnit: (unitId: string, data: ValidateUnitRequest) => Promise<ValidateUnitResponse>;
|
|
41
41
|
updateStorageUnit: (unitId: string, data: UpdateUnitRequest) => Promise<UpdateUnitResponse>;
|
|
42
42
|
deleteStorageUnit: (unitId: string) => Promise<ActionResponse>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
createStorageRepo: (data: CreateRepoRequest) => Promise<CreateRepoResponse>;
|
|
44
|
+
getStorageRepos: () => Promise<GetReposResponse>;
|
|
45
|
+
updateStorageRepo: (repoId: string, data: UpdateRepoRequest) => Promise<UpdateRepoResponse>;
|
|
46
|
+
deleteStorageRepo: (repoId: string) => Promise<ActionResponse>;
|
|
47
47
|
createRepoKey: (data: CreateRepoKeyRequest) => Promise<CreateRepoKeyResponse>;
|
|
48
48
|
getRepoKeys: (repoId: string) => Promise<GetRepoKeysResponse>;
|
|
49
49
|
updateRepoKey: (repoId: string, data: UpdateRepoKeyRequest) => Promise<UpdateRepoKeyResponse>;
|
package/dist/api/client.js
CHANGED
|
@@ -155,16 +155,16 @@ class ApiClient {
|
|
|
155
155
|
return this.makeRequest(`unit/${unitId}`, 'DELETE', null);
|
|
156
156
|
};
|
|
157
157
|
////// Repos API
|
|
158
|
-
this.
|
|
158
|
+
this.createStorageRepo = async (data) => {
|
|
159
159
|
return this.makeRequest('repo', 'POST', data);
|
|
160
160
|
};
|
|
161
|
-
this.
|
|
161
|
+
this.getStorageRepos = async () => {
|
|
162
162
|
return this.makeRequest('repo', 'GET', null);
|
|
163
163
|
};
|
|
164
|
-
this.
|
|
164
|
+
this.updateStorageRepo = async (repoId, data) => {
|
|
165
165
|
return this.makeRequest(`repo/${repoId}`, 'PUT', data);
|
|
166
166
|
};
|
|
167
|
-
this.
|
|
167
|
+
this.deleteStorageRepo = async (repoId) => {
|
|
168
168
|
return this.makeRequest(`repo/${repoId}`, 'DELETE', null);
|
|
169
169
|
};
|
|
170
170
|
////// Keys API
|
package/dist/api/interfaces.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export interface IApiClient {
|
|
|
11
11
|
updateStorageUnit(unitId: string, data: UpdateUnitRequest): Promise<UpdateUnitResponse>;
|
|
12
12
|
deleteStorageUnit(unitId: string): Promise<ActionResponse>;
|
|
13
13
|
validateStorageUnit(unitId: string, data: ValidateUnitRequest): Promise<ValidateUnitResponse>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
createStorageRepo(data: CreateRepoRequest): Promise<CreateRepoResponse>;
|
|
15
|
+
getStorageRepos(): Promise<GetReposResponse>;
|
|
16
|
+
updateStorageRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
|
|
17
|
+
deleteStorageRepo(repoId: string): Promise<ActionResponse>;
|
|
18
18
|
createRepoKey(data: CreateRepoKeyRequest): Promise<CreateRepoKeyResponse>;
|
|
19
19
|
getRepoKeys(repoId: string): Promise<GetRepoKeysResponse>;
|
|
20
20
|
updateRepoKey(repoId: string, data: UpdateRepoKeyRequest): Promise<UpdateRepoKeyResponse>;
|