Index
Type aliases
Pagination Iterator
Functions
Const add Widget Listener
Parameters
arg: { programId: string }
program
Id: string
callback: WidgetListenerCallback
Returns any
Const get Paginated Unclaimed Rewards
Parameters
args: { programId: string }
program
Id: string
Returns Promise<AsyncIterator<Object, Function, Function>>
Const get Paginated Widgets
Parameters
args: IGetPostedWidgetsArgs
Returns Promise<PaginationIterator>
Const get Posted Widgets
Get list of widgets that have already been posted.
Parameters
args: IGetPostedWidgetsArgs
Returns Promise<IPostedWidgetsPayload>
Const get Widget
Gets widget object from passed kind and id
Parameters
args: IWidgetCreationArgs
Returns Promise<IWidgetPayload>
Const get Widget Interactions
Get list of widget interactions based on interaction url or an array of widget id or an array of widget kinds
Parameters
args: IWidgetInteractionArgs
Returns Promise<IWidgetKindInteractionsMap>
Const get Widgets
Parameters
args: IWidgetArgs
Returns Promise<IPaginatedResponse<IWidgetPayload>>
Const register Widget Mode
Registers a custom widget state transition mode. The name argument is used to pass to one of the widget instantiation methods to choose
Parameters
name: string
mode: WidgetMode
Returns any
Const remove Widget Listener
Remove widget listener
Parameters
arg: { programId: string }
program
Id: string
callback: WidgetListenerCallback
Returns void
Generated using TypeDoc
Add a widget listener
2.4.0