UNPKG

projectmanager-sdk

Version:

Software development kit for the ProjectManager.com API. for TypeScript

142 lines (141 loc) 5.81 kB
/** * 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 */ /** * A Task is an individual element of work that must be performed to complete a Project. A * Task can have one or more Resources assigned to it. Tasks can be linked to other Tasks to * indicate whether they have a dependency or a connection. */ export type TaskUpdateDto = { /** * The common name of this Task. */ name: string | null; /** * A description of the work to be performed in this Task. */ description: string | 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 | null; /** * The TaskStatus assigned to this Task. */ statusId: string | null; /** * The unique identifier of the TaskPriority */ priorityId: number | 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. * For reporting purposes, this date is calculated against the official time zone * of the Workspace. * * For example: A Task has a planned completion date of July 5, 2023 in a Workspace * that has a time zone of US Pacific Time (GMT-7 or GMT-8, depending on daylight * savings time). This project is considered overdue on 12:01 AM July 6th 2023 in * US Pacific time. */ 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. * For reporting purposes, this date is calculated against the official time zone * of the Workspace. * * For example: A Task has a planned completion date of July 5, 2023 in a Workspace * that has a time zone of US Pacific Time (GMT-7 or GMT-8, depending on daylight * savings time). This project is considered overdue on 12:01 AM July 6th 2023 in * US Pacific time. */ plannedFinishDate: string | null; /** * The planned duration (in minutes) for this Task. Cannot be negative. */ plannedDuration: number | null; /** * The planned effort (in minutes) for this Task. Cannot be negative. */ plannedEffort: number | null; /** * The planned cost for this Task. Cannot be negative. */ plannedCost: number | null; /** * If set, this is the actual date when work began on the Task. * * 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. * For reporting purposes, this date is calculated against the official time zone * of the Workspace. * * For example: A Task has a planned completion date of July 5, 2023 in a Workspace * that has a time zone of US Pacific Time (GMT-7 or GMT-8, depending on daylight * savings time). This project is considered overdue on 12:01 AM July 6th 2023 in * US Pacific time. */ actualStartDate: string | null; /** * If set, this is the actual date when work was completed on the Task. * * 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. * For reporting purposes, this date is calculated against the official time zone * of the Workspace. * * For example: A Task has a planned completion date of July 5, 2023 in a Workspace * that has a time zone of US Pacific Time (GMT-7 or GMT-8, depending on daylight * savings time). This project is considered overdue on 12:01 AM July 6th 2023 in * US Pacific time. */ actualFinishDate: string | null; /** * The actual duration (in minutes) for this Task. Cannot be negative. */ actualDuration: number | null; /** * If set, this represents the actual tracked cost for this Task. */ actualCost: number | null; /** * Color theme definition for this task. * * eg. Blue, Brown, DarkBlue, DarkGrey, Gold, Green, Grey, LightBrown, LightGreen, * LightGrey, LightPurple, LightYellow, Magenta, Mauve, Navy, Orange, Purple, Red. */ theme: string | null; /** * Unlocked tasks can be adjusted by changes to their dependencies, resource leveling, or other factors. * * All tasks are unlocked by default. * * If a task is set to `IsLocked` = `true`, the dates and assigned resources are locked for this task and will not * be automatically changed by any process. */ isLocked: boolean | null; /** * True if this task is a milestone. Milestones represent a specific point in time for the project. When a * milestone is locked, it represents a fixed time within the project that can be used to relate to other tasks. */ isMilestone: boolean | null; };