Tasks
@smokeballdev/smokeball-client-sdk
Interface: Api
Entry point for task to Smokeball.
Methods
all()
all(
matterId?
):Promise
<Task
[]>
Gets the tasks associated with the matter in the current context or the specified matter id if provided.
Parameters
matterId?
string
Returns
Promise
<Task
[]>
the tasks associated with the matter in the current context or the specified matter id.
Example
create()
create(
request
):Promise
<Task
>
Creates a new task for the specified matter id and returns the newly created task.
Parameters
request
the create request.
Returns
Promise
<Task
>
Example
delete()
delete(
id
):Promise
<Task
>
Marks task with the specified task id as deleted and returns the deleted task.
Parameters
id
string
Returns
Promise
<Task
>
Example
get()
get(
id
):Promise
<Task
>
Gets the task associated with the specified task id.
Parameters
id
string
Returns
Promise
<Task
>
the task associated with the specified task id.
Example
open()
open(
taskId
):void
Opens the specified task.
Parameters
taskId
string
the task to open.
Returns
void
Example
openNew()
openNew(
request
):void
Opens pre-populated task window.
Parameters
request
the add task request.
Returns
void
Example
update()
update(
request
):Promise
<Task
>
Updates a task with the specified task id and returns the updated task.
Parameters
request
the update request.
Returns
Promise
<Task
>