add(Adds a new role with the specified contactId to the current context and returns the role.request
):Promise
<Role
>
AddRoleRequest
the create request.
Promise
<Role
>
get():Gets the roles associated to the current context.Promise
<Roles
>
Promise
<Roles
>
the roles for the current context.
observe(Creates a subscription for the roles 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
roles
) => void
the function to execute when a change is made to contact(s) in Smokeball.
string
void
remove(Removes the specified role from the current context.id
):Promise
<Roles
>
string
Promise
<Roles
>
update(Updates the role associated to the specified role id and returns the role.request
):Promise
<Role
>
UpdateRoleRequest
the update request.
Promise
<Role
>