@@ -76,6 +76,7 @@ import {
76
76
FireFlyUpdateIdentityRequest ,
77
77
FireFlyReplaceOptions ,
78
78
FireFlyUpdateOptions ,
79
+ FireFlyDeleteOptions ,
79
80
} from './interfaces' ;
80
81
import { FireFlyWebSocket , FireFlyWebSocketCallback } from './websocket' ;
81
82
import HttpBase , { mapConfig } from './http' ;
@@ -207,8 +208,8 @@ export default class FireFly extends HttpBase {
207
208
return this . replaceOne < FireFlySubscriptionResponse > ( '/subscriptions' , sub , options ) ;
208
209
}
209
210
210
- async deleteSubscription ( subId : string ) {
211
- await this . deleteOne ( `/subscriptions/${ subId } ` ) ;
211
+ async deleteSubscription ( subId : string , options ?: FireFlyDeleteOptions ) {
212
+ await this . deleteOne ( `/subscriptions/${ subId } ` , options ) ;
212
213
}
213
214
214
215
getData ( id : string , options ?: FireFlyGetOptions ) : Promise < FireFlyDataResponse | undefined > {
@@ -276,6 +277,10 @@ export default class FireFly extends HttpBase {
276
277
return this . createOne < FireFlyDataResponse > ( `/data/${ id } /blob/publish` , { } , options ) ;
277
278
}
278
279
280
+ async deleteData ( id : string , options ?: FireFlyDeleteOptions ) {
281
+ await this . deleteOne ( `/data/${ id } ` , options ) ;
282
+ }
283
+
279
284
getBatches (
280
285
filter ?: FireFlyBatchFilter ,
281
286
options ?: FireFlyGetOptions ,
0 commit comments