Constructors
constructor
- new Client(options?): Client
-
Properties
Private
options
Methods
continueTask
- continueTask(id): Promise<void>
-
Returns Promise<void>
continueTasks
- continueTasks(id?, status?, notStatus?): Promise<void>
-
Returns Promise<void>
createTask
- createTask(request): Promise<string>
-
Returns Promise<string>
createTaskBatch
- createTaskBatch(request): Promise<string[]>
-
Returns Promise<string[]>
deleteTask
- deleteTask(id, force?): Promise<void>
-
Parameters
-
id: string
-
force: boolean = false
Returns Promise<void>
deleteTasks
- deleteTasks(id?, status?, notStatus?, force?): Promise<void>
-
Parameters
-
id: string[] = []
-
-
-
force: boolean = false
Returns Promise<void>
Private
doRequest
- doRequest<T>(method, path, __namedParameters?): Promise<T>
-
Parameters
-
method: string
-
path: string
-
__namedParameters: {
data?: object;
query?: URLSearchParams;
} = {}
-
Optional
data?: object
-
Optional
query?: URLSearchParams
Returns Promise<T>
getTask
- getTask(id): Promise<Task>
-
Returns Promise<Task>
getTaskStats
- getTaskStats(id): Promise<TaskBtStats>
-
getTasks
- getTasks(id?, status?, notStatus?): Promise<Task[]>
-
Returns Promise<Task[]>
Private
parseFilterParams
- parseFilterParams(id?, status?, notStatus?): undefined | URLSearchParams
-
Returns undefined | URLSearchParams
pauseTask
- pauseTask(id): Promise<void>
-
Returns Promise<void>
pauseTasks
- pauseTasks(id?, status?, notStatus?): Promise<void>
-
Returns Promise<void>
resolve
- resolve(request): Promise<ResolveResult>
-
Continue a task