projectmanager-sdk
Version:
Software development kit for the ProjectManager.com API. for TypeScript
51 lines (50 loc) • 1.6 kB
TypeScript
/**
* ProjectManager API for TypeScript
*
* (c) ProjectManager.com, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author ProjectManager.com <support@projectmanager.com>
* @copyright ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-typescript
*/
import { ProjectManagerClient } from "../index.js";
import { AstroResult } from "../index.js";
import { TaskTodoDto } from "../index.js";
import { TaskTodoCreateDto } from "../index.js";
import { TaskTodoUpdateDto } from "../index.js";
export declare class TaskTodoClient {
private readonly client;
/**
* Internal constructor for this client library
*/
constructor(client: ProjectManagerClient);
/**
* Retrieve a list of todos for a task
*
* @param taskId the id of the task
*/
getTodos(taskId: string): Promise<AstroResult<TaskTodoDto[]>>;
/**
* Create a todo for a task
*
* @param taskId the id of the task
* @param body the data for creating a todo
*/
createTodo(taskId: string, body: TaskTodoCreateDto): Promise<AstroResult<TaskTodoDto>>;
/**
* Update a todo for a task
*
* @param todoId the id of the todo
* @param body the data for updating a todo
*/
updateTodo(todoId: string, body: TaskTodoUpdateDto): Promise<AstroResult<TaskTodoDto>>;
/**
* Remove a todo
*
* @param todoId the id of the todo
*/
deleteTodo(todoId: string): Promise<AstroResult<object>>;
}