add(Adds a new layout matter item to a matter.request
):Promise
<LayoutMatter
>
AddLayoutMatterItemRequest
the update request.
Promise
<LayoutMatter
>
get(Gets the layout associated to the current context or the specified matter id if provided.matterId?
):Promise
<LayoutMatter
>
string
the layout to retrieve, use null for the matter in the current context.
Promise
<LayoutMatter
>
the specified layout.
getContacts(Gets the contacts associated to the provided item id and matter id of the current context.itemId
):Promise
<GetLayoutMatterItemContactsResponse
>
string
the layout item with contacts.
Promise
<GetLayoutMatterItemContactsResponse
>
the contacts associated with the layout item.
getItem(Gets a layout item associated to the current context.itemId
):Promise
<LayoutMatterItem
>
string
the layout item to retrieve.
Promise
<LayoutMatterItem
>
the specified layout item.
observe(Creates a subscription for the layout 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
layout
) => void
the function to execute when a change is made to layout(s) in Smokeball.
string
the layout to subscribe to.
void
remove(Removes a layout matter item from a matter.request
):Promise
<LayoutMatter
>
RemoveLayoutMatterItemRequest
the update request.
Promise
<LayoutMatter
>
update(Updates the layout associated to the specified matter id and returns the layout.request
):Promise
<LayoutMatter
>
UpdateLayoutMatterItemRequest
the update request.
Promise
<LayoutMatter
>