UNPKG

projectmanager-sdk

Version:

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

49 lines 1.79 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 LicenseClient { client; /** * Internal constructor for this client library */ constructor(client) { this.client = client; } /** * Retrieve information about the current licenses possessed by this Workspace. * * Licenses contain information about your current subscription level and features that have * been enabled on your Workspace. To modify the License information, please log on to the * ProjectManager.com application and use the Account | Editions screen to review or update * your Licenses. * */ retrieveLicenses() { const url = `/api/data/license`; return this.client.request("get", url, null, null); } /** * Adds a new License to the current Workspace. * * Licenses contain information about your current subscription level and features that have * been enabled on your Workspace. To modify the License information, please log on to the * ProjectManager.com application and use the Account | Editions screen to review or update * your Licenses. * * @param bundleSku Information about the SKU you wish to add to your Workspace */ addLicense(bundleSku) { const url = `/api/data/license/${bundleSku}/try`; return this.client.request("post", url, null, null); } } //# sourceMappingURL=LicenseClient.js.map