@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.
@@ -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
- createRepo: (data: CreateRepoRequest) => Promise<CreateRepoResponse>;
44
- getRepos: () => Promise<GetReposResponse>;
45
- updateRepo: (repoId: string, data: UpdateRepoRequest) => Promise<UpdateRepoResponse>;
46
- deleteRepo: (repoId: string) => Promise<ActionResponse>;
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>;
@@ -155,16 +155,16 @@ class ApiClient {
155
155
  return this.makeRequest(`unit/${unitId}`, 'DELETE', null);
156
156
  };
157
157
  ////// Repos API
158
- this.createRepo = async (data) => {
158
+ this.createStorageRepo = async (data) => {
159
159
  return this.makeRequest('repo', 'POST', data);
160
160
  };
161
- this.getRepos = async () => {
161
+ this.getStorageRepos = async () => {
162
162
  return this.makeRequest('repo', 'GET', null);
163
163
  };
164
- this.updateRepo = async (repoId, data) => {
164
+ this.updateStorageRepo = async (repoId, data) => {
165
165
  return this.makeRequest(`repo/${repoId}`, 'PUT', data);
166
166
  };
167
- this.deleteRepo = async (repoId) => {
167
+ this.deleteStorageRepo = async (repoId) => {
168
168
  return this.makeRequest(`repo/${repoId}`, 'DELETE', null);
169
169
  };
170
170
  ////// Keys API
@@ -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
- createRepo(data: CreateRepoRequest): Promise<CreateRepoResponse>;
15
- getRepos(): Promise<GetReposResponse>;
16
- updateRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
17
- deleteRepo(repoId: string): Promise<ActionResponse>;
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>;
@@ -82,6 +82,7 @@ export interface ApiKey {
82
82
  accessType: AccessType;
83
83
  key: string;
84
84
  secret: string;
85
+ createdAt: string;
85
86
  }
86
87
  export interface StorageUnit {
87
88
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },