File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,10 @@ export default class FireFly extends HttpBase {
190
190
return this . createOne < FireFlyDataResponse > ( '/data' , data , options ) ;
191
191
}
192
192
193
+ publishData ( id : string , options ?: FireFlyCreateOptions ) : Promise < FireFlyDataResponse > {
194
+ return this . createOne < FireFlyDataResponse > ( `/data/${ id } /value/publish` , { } , options ) ;
195
+ }
196
+
193
197
async uploadDataBlob (
194
198
blob : string | Buffer | Readable ,
195
199
filename : string ,
@@ -222,13 +226,8 @@ export default class FireFly extends HttpBase {
222
226
return response . data ;
223
227
}
224
228
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 ;
229
+ publishDataBlob ( id : string , options ?: FireFlyCreateOptions ) : Promise < FireFlyDataResponse > {
230
+ return this . createOne < FireFlyDataResponse > ( `/data/${ id } /blob/publish` , { } , options ) ;
232
231
}
233
232
234
233
getBatches (
You can’t perform that action at this time.
0 commit comments