projectmanager-sdk
Version:
Software development kit for the ProjectManager.com API. for TypeScript
76 lines (75 loc) • 2.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 { NptStatusDto } from "../index.js";
import { NptAssigneeDto } from "../index.js";
/**
* A Npt is a task that does not belong to the project. It is only visible to the person who created it, and the users assigned to it.
*
* NPT's are a lightweight version of a project task.
*/
export type NptDto = {
/**
* The unique identifier of the NPT
*/
id: string;
/**
* The common name of this Task.
*/
name: string;
/**
* This field contains the task's "Note" or "Description", which is a description of the work to be done to complete the task.
*
* Within the ProjectManager application, you can use this field as follows:
* * When in the Board or List view, click on a task to open the task panel, then edit the "Description" field.
*/
description: string | null;
/**
* The date when work on this Task is planned to begin.
*
* This value contains only the date in year-month-day format. For display, this
* date will always be shown as this same year-month-day regardless of time zone.
*/
plannedStartDate: string | null;
/**
* The date when work on this Task is expected to complete.
*
* This value contains only the date in year-month-day format. For display, this
* date will always be shown as this same year-month-day regardless of time zone.
*/
plannedFinishDate: string | null;
/**
* The actual effort (in minutes) for this Task.
*/
actualEffort: number | null;
/**
* Return the priority of a task
*/
priorityId: number | null;
/**
* The numerical percentage, from 0-100, representing the percentage completion
* for this Task. Any numbers below zero or above 100 will be clamped to the
* minimum or maximum value.
*
* This value can be edited manually in the Gantt chart view of the application,
* or can be selected on the Task Detail page within the Kanban board.
*/
percentComplete: number;
/**
* The status assigned to this Npt
*/
status: NptStatusDto;
/**
* The list of resources assigned to this Npt
*/
assignees: NptAssigneeDto[];
};