UNPKG

projectmanager-sdk

Version:

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

50 lines (49 loc) 1.44 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 { NptDto } from "../index.js"; import { NptUpdateDto } from "../index.js"; import { NptCreateDto } from "../index.js"; export declare class NptClient { private readonly client; /** * Internal constructor for this client library */ constructor(client: ProjectManagerClient); /** * Gets a Npt * * @param nptId the id of the npt */ getNpt(nptId: string): Promise<AstroResult<NptDto>>; /** * Update a Npt * * @param nptId the id of the npt * @param body the fields to update */ updateNpt(nptId: string, body: NptUpdateDto): Promise<AstroResult<NptDto>>; /** * Remove Npt * * @param nptId the id of the npt to remove */ removeNpt(nptId: string): Promise<AstroResult<object>>; /** * Creates a new Npt * * @param body The data used to create the Npt */ createNpt(body: NptCreateDto): Promise<AstroResult<NptDto>>; }