Class

UsersPrivateTasks

UsersPrivateTasks(client, taskId, userId)

Class corresponding to Aworks UsersPrivateTasks Endpoints
Constructor

# new UsersPrivateTasks(client, taskId, userId)

Endpoint constructor
Parameters:
Name Type Description
client Client
taskId String The id of the task.
userId String The id of the user.
See:
  • [UsersPrivateTasks in Awork API Docs](https://openapi.awork.com/#/UsersPrivateTasks)

View Source endpoints/UsersPrivateTasks.js, line 10

Classes

UsersPrivateTasks

Methods

# async get() → {Promise.<Task>}

Returns the private task with the specified id.

View Source endpoints/UsersPrivateTasks.js, line 31

Promise.<Task>

# async list(optionsopt) → {Promise.<Array.<Task>>}

Returns all private tasks of the user with the specified id.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options

View Source endpoints/UsersPrivateTasks.js, line 42

Promise.<Array.<Task>>

# async taskStatuses(optionsopt) → {Promise.<Array.<PrivateTasksTaskStatus>>}

Returns the task statuses for private tasks.
Parameters:
Name Type Attributes Description
options ListOptions <optional>
Pagination and filtering options

View Source endpoints/UsersPrivateTasks.js, line 53

Promise.<Array.<PrivateTasksTaskStatus>>