@flashbacktech/flashbackclient 0.0.68 → 0.0.69
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,6 +40,7 @@ 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
|
+
getAvailableStorageUnits: () => Promise<number[]>;
|
|
43
44
|
createStorageRepo: (data: CreateRepoRequest) => Promise<CreateRepoResponse>;
|
|
44
45
|
getStorageRepos: () => Promise<GetReposResponse>;
|
|
45
46
|
updateStorageRepo: (repoId: string, data: UpdateRepoRequest) => Promise<UpdateRepoResponse>;
|
package/dist/api/client.js
CHANGED
|
@@ -154,6 +154,9 @@ class ApiClient {
|
|
|
154
154
|
this.deleteStorageUnit = async (unitId) => {
|
|
155
155
|
return this.makeRequest(`unit/${unitId}`, 'DELETE', null);
|
|
156
156
|
};
|
|
157
|
+
this.getAvailableStorageUnits = async () => {
|
|
158
|
+
return this.makeRequest('unit/available', 'GET', null);
|
|
159
|
+
};
|
|
157
160
|
////// Repos API
|
|
158
161
|
this.createStorageRepo = async (data) => {
|
|
159
162
|
return this.makeRequest('repo', 'POST', data);
|
package/dist/api/interfaces.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ 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
|
+
getAvailableStorageUnits(): Promise<number[]>;
|
|
14
15
|
createStorageRepo(data: CreateRepoRequest): Promise<CreateRepoResponse>;
|
|
15
16
|
getStorageRepos(): Promise<GetReposResponse>;
|
|
16
17
|
updateStorageRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
|