Interface: Api
Entry point for integrated search to Smokeball.Methods
mapping()
mapping(Gets the mapping for the current context or the specified matter id if provided.matterId?):Promise<Mapping>
Parameters
matterId?
string
the matter to retrieve, use null for the matter in the current context.
Returns
Promise<Mapping>
the mapping object.
Example
observeMapping()
observeMapping(Creates a subscription for the mapping associated to the current context or the specified matter id if provided. Only one subscription will be made per session. Regardless of how many times this function is called, the last registered callback will be used.callback,matterId?):void
Parameters
callback
(mapping) => void
the function to execute when a change is made to the mapping in Smokeball.
matterId?
string
the matter to subscribe to.
Returns
void