MatterTypes
@smokeballdev/smokeball-client-sdk
Interface: Api
Entry point for matter types to Smokeball.
Methods
get()
get(
matterTypeId?
):Promise
<MatterType
>
Gets the matter type of the matter associated to the current context or the specified matter type id if provided.
Parameters
matterTypeId?
string
the matter to retrieve, use null to get matter type of the matter in the current context.
Returns
Promise
<MatterType
>
the specified matter type.
Example
getMany()
getMany(
request
):Promise
<GetMatterTypesResponse
>
Get matter types associated with matter type ids provided.
Parameters
request
set optional filters for matter types to retrieve.
Returns
Promise
<GetMatterTypesResponse
>
specified matter types.
Example
select()
select(
request
):Promise
<string
[]>
Opens a matter type picker to multi-select matter types. Returns the selected matter type ids.
Parameters
request
set default location for matter types picker.
Returns
Promise
<string
[]>
selected matter types.