create(Opens a matter window with a newly created matter or lead and returns the matter.request
):Promise
<Matter
>
CreateMatterRequest
the create request.
Promise
<Matter
>
the created matter.
get(Gets the matter associated to the current context or the specified matter id if provided.matterId?
):Promise
<Matter
>
string
the matter to retrieve, use null for the matter in the current context.
Promise
<Matter
>
the specified matter.
getMany(Get matters associated with matter ids provided.request
):Promise
<GetMattersResponse
>
GetMattersRequest
the matters to retrieve.
Promise
<GetMattersResponse
>
specified matters.
observe(Creates a subscription for the matter 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
matter
) => void
the function to execute when a change is made to matter(s) in Smokeball.
string
the matter to subscribe to.
void
open(Opens the matter associated to the current context (brings it into view) or the specified matter id if provided.matterId?
):void
string
the matter to open, use null for the matter in the current context.
void
select():Opens a matter picker to select a matter. Returns the selected matter id.Promise
<string
>
Promise
<string
>