@flashbacktech/flashbackclient 0.2.36 → 0.2.37
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 +2 -2
- package/dist/api/client.js +4 -4
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
68
68
|
success: boolean;
|
|
69
69
|
}>;
|
|
70
70
|
createStorageBucket: (data: CreateBucketRequest) => Promise<CreateBucketResponse>;
|
|
71
|
-
getStorageBuckets: (workspaceId?: string) => Promise<GetBucketsResponse>;
|
|
71
|
+
getStorageBuckets: (workspaceId?: string, walletAddress?: string) => Promise<GetBucketsResponse>;
|
|
72
72
|
validateStorageBucket: (bucketId: string, data: ValidateBucketRequest) => Promise<ValidateBucketResponse>;
|
|
73
73
|
updateStorageBucket: (bucketId: string, data: UpdateBucketRequest) => Promise<UpdateBucketResponse>;
|
|
74
74
|
deleteStorageBucket: (bucketId: string) => Promise<ActionResponse>;
|
|
@@ -77,7 +77,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
77
77
|
getBucketNodeStats: (bucketId: string, data: GetBucketNodeStatsRequest) => Promise<GetBucketNodeStatsResponse>;
|
|
78
78
|
createStorageRepo(data: CreateRepoRequest): Promise<CreateRepoResponse>;
|
|
79
79
|
createStorageRepo(data: CreateRepoWithBucketsRequest): Promise<CreateRepoResponse>;
|
|
80
|
-
getStorageRepos: (workspaceId?: string) => Promise<GetReposResponse>;
|
|
80
|
+
getStorageRepos: (workspaceId?: string, walletAddress?: string) => Promise<GetReposResponse>;
|
|
81
81
|
updateStorageRepo(repoId: string, data: UpdateRepoRequest): Promise<UpdateRepoResponse>;
|
|
82
82
|
updateStorageRepo(repoId: string, data: UpdateRepoWithBucketsRequest): Promise<UpdateRepoResponse>;
|
|
83
83
|
deleteStorageRepo: (repoId: string) => Promise<ActionResponse>;
|
package/dist/api/client.js
CHANGED
|
@@ -166,8 +166,8 @@ class ApiClient {
|
|
|
166
166
|
this.createStorageBucket = async (data) => {
|
|
167
167
|
return this.makeRequest('bucket', 'POST', data);
|
|
168
168
|
};
|
|
169
|
-
this.getStorageBuckets = async (workspaceId) => {
|
|
170
|
-
return this.makeRequest('bucket?workspaceId=' + workspaceId, 'GET', null);
|
|
169
|
+
this.getStorageBuckets = async (workspaceId, walletAddress) => {
|
|
170
|
+
return this.makeRequest('bucket?workspaceId=' + workspaceId + '&walletAddress=' + walletAddress, 'GET', null);
|
|
171
171
|
};
|
|
172
172
|
this.validateStorageBucket = async (bucketId, data) => {
|
|
173
173
|
return this.makeRequest(`bucket/${bucketId}/validate`, 'POST', data);
|
|
@@ -187,8 +187,8 @@ class ApiClient {
|
|
|
187
187
|
this.getBucketNodeStats = async (bucketId, data) => {
|
|
188
188
|
return this.makeRequest(`bucket/${bucketId}/stats`, 'POST', data);
|
|
189
189
|
};
|
|
190
|
-
this.getStorageRepos = async (workspaceId) => {
|
|
191
|
-
return this.makeRequest('repo?workspaceId=' + workspaceId, 'GET', null);
|
|
190
|
+
this.getStorageRepos = async (workspaceId, walletAddress) => {
|
|
191
|
+
return this.makeRequest('repo?workspaceId=' + workspaceId + '&walletAddress=' + walletAddress, 'GET', null);
|
|
192
192
|
};
|
|
193
193
|
this.deleteStorageRepo = async (repoId) => {
|
|
194
194
|
return this.makeRequest(`repo/${repoId}`, 'DELETE', null);
|