UNPKG

projectmanager-sdk

Version:

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

46 lines 1.58 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 */ export class ProjectTemplateClient { client; /** * Internal constructor for this client library */ constructor(client) { this.client = client; } /** * Retrieves all ProjectTemplates defined in the system. * * A ProjectTemplate is a definition of default project related data (eg. Tasks) that can be applied * to a new project when it is created. ProjectTemplates are categorized using the TemplateCategory * system. * */ retrieveProjectTemplates() { const url = `/api/data/projects/templates`; return this.client.request("get", url, null, null); } /** * Retrieves all ProjectTemplate Categories defined in the system. * * A ProjectTemplate is a definition of default project related data (eg. Tasks) that can be applied * to a new project when it is created. ProjectTemplates are categorized using the TemplateCategory * system. * */ retrieveTemplateCategories() { const url = `/api/data/projects/templates/categories`; return this.client.request("get", url, null, null); } } //# sourceMappingURL=ProjectTemplateClient.js.map