UNPKG

projectmanager-sdk

Version:

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

39 lines 1.09 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 HourlyRatePeriodClient { client; /** * Internal constructor for this client library */ constructor(client) { this.client = client; } /** * Gets a list of all rate periods in a work space * */ getRatePeriods() { const url = `/api/data/hourly-rate-periods`; return this.client.request("get", url, null, null); } /** * Creates a rate period * * @param body The rate period start date. */ createRatePeriod(body) { const url = `/api/data/hourly-rate-periods`; return this.client.request("post", url, null, body); } } //# sourceMappingURL=HourlyRatePeriodClient.js.map