@flashbacktech/flashbackclient 0.0.70 → 0.0.72
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
|
@@ -49,7 +49,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
49
49
|
validateUpdateRepoUnits: (data: ValidateRepoUnitsRequest) => Promise<ValidateRepoUnitsResponse>;
|
|
50
50
|
createRepoKey: (data: CreateRepoKeyRequest) => Promise<CreateRepoKeyResponse>;
|
|
51
51
|
getRepoKeys: (repoId: string) => Promise<GetRepoKeysResponse>;
|
|
52
|
-
updateRepoKey: (repoId: string, data: UpdateRepoKeyRequest) => Promise<UpdateRepoKeyResponse>;
|
|
52
|
+
updateRepoKey: (repoId: string, keyId: string, data: UpdateRepoKeyRequest) => Promise<UpdateRepoKeyResponse>;
|
|
53
53
|
deleteRepoKey: (repoId: string, keyId: string) => Promise<ActionResponse>;
|
|
54
54
|
}
|
|
55
55
|
export {};
|
package/dist/api/client.js
CHANGED
|
@@ -183,8 +183,8 @@ class ApiClient {
|
|
|
183
183
|
this.getRepoKeys = async (repoId) => {
|
|
184
184
|
return this.makeRequest(`repo/${repoId}/apikey`, 'GET', null);
|
|
185
185
|
};
|
|
186
|
-
this.updateRepoKey = async (repoId, data) => {
|
|
187
|
-
return this.makeRequest(`repo/${repoId}/apikey`, 'PUT', data);
|
|
186
|
+
this.updateRepoKey = async (repoId, keyId, data) => {
|
|
187
|
+
return this.makeRequest(`repo/${repoId}/apikey/${keyId}`, 'PUT', data);
|
|
188
188
|
};
|
|
189
189
|
this.deleteRepoKey = async (repoId, keyId) => {
|
|
190
190
|
return this.makeRequest(`repo/${repoId}/apikey/${keyId}`, 'DELETE', null);
|
package/dist/api/interfaces.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface IApiClient {
|
|
|
18
18
|
deleteStorageRepo(repoId: string): Promise<ActionResponse>;
|
|
19
19
|
createRepoKey(data: CreateRepoKeyRequest): Promise<CreateRepoKeyResponse>;
|
|
20
20
|
getRepoKeys(repoId: string): Promise<GetRepoKeysResponse>;
|
|
21
|
-
updateRepoKey(repoId: string, data: UpdateRepoKeyRequest): Promise<UpdateRepoKeyResponse>;
|
|
21
|
+
updateRepoKey(repoId: string, keyId: string, data: UpdateRepoKeyRequest): Promise<UpdateRepoKeyResponse>;
|
|
22
22
|
deleteRepoKey(repoId: string, keyId: string): Promise<ActionResponse>;
|
|
23
23
|
validateNewRepoUnits(data: ValidateRepoUnitsRequest): Promise<ValidateRepoUnitsResponse>;
|
|
24
24
|
validateUpdateRepoUnits(data: ValidateRepoUnitsRequest): Promise<ValidateRepoUnitsResponse>;
|
|
@@ -38,6 +38,7 @@ export interface UpdateUnitResponse extends CreateUnitResponse {
|
|
|
38
38
|
export interface RepoUnitInfo {
|
|
39
39
|
folder: string;
|
|
40
40
|
master: boolean;
|
|
41
|
+
unitId?: string;
|
|
41
42
|
unit?: StorageUnit;
|
|
42
43
|
}
|
|
43
44
|
export interface CreateRepoRequest {
|
|
@@ -67,9 +68,10 @@ export interface CreateRepoKeyResponse {
|
|
|
67
68
|
key: string;
|
|
68
69
|
secret: string;
|
|
69
70
|
}
|
|
70
|
-
export interface UpdateRepoKeyRequest
|
|
71
|
+
export interface UpdateRepoKeyRequest {
|
|
72
|
+
name: string;
|
|
71
73
|
}
|
|
72
|
-
export interface UpdateRepoKeyResponse extends
|
|
74
|
+
export interface UpdateRepoKeyResponse extends ActionResponse {
|
|
73
75
|
}
|
|
74
76
|
export interface StorageRepo {
|
|
75
77
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flashbacktech/flashbackclient",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"author": "Javier Ortiz <javier.ortiz@flashback.tech>",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@aws-sdk/client-sts": "^3.777.0",
|
|
26
27
|
"@stellar/stellar-sdk": "^13.0.0",
|
|
27
28
|
"formdata-node": "^6.0.3"
|
|
28
29
|
},
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"dist"
|
|
46
47
|
],
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@aws-sdk/client-s3": "^3.
|
|
49
|
+
"@aws-sdk/client-s3": "^3.777.0",
|
|
49
50
|
"@eslint/js": "^8.56.0",
|
|
50
51
|
"@google-cloud/storage": "^7.15.0",
|
|
51
52
|
"@types/jest": "^29.5.14",
|