UNPKG

projectmanager-sdk

Version:

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

53 lines (52 loc) 1.94 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 */ import { ProjectManagerClient } from "../index.js"; import { AstroResult } from "../index.js"; import { ProjectStatusDto } from "../index.js"; import { ProjectStatusCreateDto } from "../index.js"; import { ProjectStatusUpdateDto } from "../index.js"; export declare class ProjectStatusClient { private readonly client; /** * Internal constructor for this client library */ constructor(client: ProjectManagerClient); /** * Retrieves all ProjectStatuses defined within your Workspace. * * A ProjectStatus is a named condition used by your business to categorize the completion level * of Tasks and Projects within your Workspace. You can name your ProjectStatus levels anything * you like and you can reorganize the order of the ProjectPriority levels at any time. * */ retrieveProjectStatuses(): Promise<AstroResult<ProjectStatusDto[]>>; /** * Create a project Status * * @param body The data to create the Status */ createProjectStatus(body: ProjectStatusCreateDto): Promise<AstroResult<ProjectStatusDto>>; /** * Update a project Status * * @param projectStatusId The status Id * @param body The data to create the Status */ updateProjectStatus(projectStatusId: string, body: ProjectStatusUpdateDto): Promise<AstroResult<ProjectStatusDto>>; /** * Delete a project Status * * @param projectStatusId The status Id */ deleteProjectStatus(projectStatusId: string): Promise<AstroResult<object>>; }