@@ -82,7 +82,7 @@ import {
82
82
FireFlyDeployContractRequest ,
83
83
FireFlyDeployContractResponse ,
84
84
FireFlyWebSocketConnectCallback ,
85
- FireFlyGetOperationOptions ,
85
+ FireFlyGetWithStatus ,
86
86
} from './interfaces' ;
87
87
import { FireFlyWebSocket , FireFlyWebSocketCallback } from './websocket' ;
88
88
import HttpBase , { mapConfig } from './http' ;
@@ -207,6 +207,13 @@ export default class FireFly extends HttpBase {
207
207
return this . getMany < FireFlySubscriptionResponse [ ] > ( '/subscriptions' , filter , options ) ;
208
208
}
209
209
210
+ getSubscription (
211
+ id : string ,
212
+ options ?: FireFlyGetWithStatus ,
213
+ ) : Promise < FireFlySubscriptionResponse | undefined > {
214
+ return this . getOne < FireFlySubscriptionResponse > ( `/subscriptions/${ id } ` , options ) ;
215
+ }
216
+
210
217
replaceSubscription (
211
218
sub : FireFlySubscriptionRequest ,
212
219
options ?: FireFlyReplaceOptions ,
@@ -223,7 +230,7 @@ export default class FireFly extends HttpBase {
223
230
}
224
231
225
232
findData (
226
- filter ?: FireFlyDataFilter ,
233
+ filter ?: FireFlyDataFilter | URLSearchParams ,
227
234
options ?: FireFlyGetOptions ,
228
235
) : Promise < FireFlyDataResponse [ ] > {
229
236
return this . getMany < FireFlyDataResponse [ ] > ( `/data` , filter , options ) ;
@@ -572,7 +579,7 @@ export default class FireFly extends HttpBase {
572
579
573
580
getOperation (
574
581
id : string ,
575
- options ?: FireFlyGetOperationOptions ,
582
+ options ?: FireFlyGetWithStatus ,
576
583
) : Promise < FireFlyOperationResponse | undefined > {
577
584
const params = { fetchstatus : options ?. fetchstatus } ;
578
585
return this . getOne < FireFlyOperationResponse > ( `/operations/${ id } ` , options , params ) ;
0 commit comments