File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,29 @@ export default class FireFly extends HttpBase {
208
208
return response . data ;
209
209
}
210
210
211
+ async uploadDataBlobWithFormData (
212
+ formData : FormData
213
+ ) : Promise < FireFlyDataResponse > {
214
+ const response = await this . wrapError (
215
+ this . http . post < FireFlyDataResponse > ( '/data' , formData , {
216
+ headers : {
217
+ ...formData . getHeaders ( ) ,
218
+ 'Content-Length' : formData . getLengthSync ( ) ,
219
+ } ,
220
+ } ) ,
221
+ ) ;
222
+ return response . data ;
223
+ }
224
+
225
+ async publishDataBlobToSharedStorage (
226
+ dataid : string
227
+ ) : Promise < FireFlyDataResponse > {
228
+ const response = await this . wrapError (
229
+ this . http . post < FireFlyDataResponse > ( `/data/${ dataid } /blob/publish` , { dataid} ) ,
230
+ ) ;
231
+ return response . data ;
232
+ }
233
+
211
234
getBatches (
212
235
filter ?: FireFlyBatchFilter ,
213
236
options ?: FireFlyGetOptions ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @hyperledger/firefly-sdk" ,
3
- "version" : " 1.1.7 " ,
3
+ "version" : " 1.1.8 " ,
4
4
"description" : " Client SDK for Hyperledger FireFly" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments