1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import * as Bluebird from 'bluebird';
|
7 | import { BitGo } from '../bitgo';
|
8 | import { BaseCoin } from './baseCoin';
|
9 | import { NodeCallback } from './types';
|
10 | export interface AddOptions {
|
11 | url: string;
|
12 | type: string;
|
13 | }
|
14 | export interface RemoveOptions {
|
15 | url: string;
|
16 | type: string;
|
17 | }
|
18 | export interface ListNotificationsOptions {
|
19 | prevId?: string;
|
20 | limit?: number;
|
21 | }
|
22 | export interface SimulateOptions {
|
23 | webhookId: string;
|
24 | blockId: string;
|
25 | }
|
26 | export declare class Webhooks {
|
27 | private bitgo;
|
28 | private baseCoin;
|
29 | constructor(bitgo: BitGo, baseCoin: BaseCoin);
|
30 | /**
|
31 | * Fetch list of user webhooks
|
32 | *
|
33 | * @param callback
|
34 | * @returns {*}
|
35 | */
|
36 | list(callback: NodeCallback<any>): Bluebird<any>;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | add(params: AddOptions, callback: NodeCallback<any>): Bluebird<any>;
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | remove(params: RemoveOptions, callback: NodeCallback<any>): Bluebird<any>;
|
53 | |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | listNotifications(params: ListNotificationsOptions | undefined, callback: NodeCallback<any>): Bluebird<any>;
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 | simulate(params: SimulateOptions, callback: NodeCallback<any>): Bluebird<any>;
|
69 | }
|
70 |
|
\ | No newline at end of file |