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 NptTodosClient {
private readonly client;
/**
* Internal constructor for this client library
*/
constructor(client: ProjectManagerClient);
/**
* Get todos for a npt
*
* @param nptId the id of the npt
*/
getNptTodos(nptId: string): Promise<AstroResult<TaskTodoDto[]>>;
/**
* Creates a new todo and associates it with the npt
*
* @param nptId the id of the npt
* @param body The todo to create
*/
createNptTodo(nptId: string, body: TaskTodoCreateDto): Promise<AstroResult<TaskTodoDto>>;
/**
* Update a Todo
*
* @param todoId the id of the todo
* @param body the fields to update
*/
updateANptTodo(todoId: string, body: TaskTodoUpdateDto): Promise<AstroResult<TaskTodoDto>>;
/**
* Remove Npt Todo
*
* @param todoId the id of the todo to remove
*/
removeNptTodo(todoId: string): Promise<AstroResult<object>>;
}