UNPKG

projectmanager-sdk

Version:

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

67 lines 1.86 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 HourlyRateClient { client; /** * Internal constructor for this client library */ constructor(client) { this.client = client; } /** * Create a hourly rate * * @param body The rate data. */ createHourlyRate(body) { const url = `/api/data/hourly-rates`; return this.client.request("post", url, null, body); } /** * All hourly rates including Inactive rates * */ getHourlyRates() { const url = `/api/data/hourly-rates`; return this.client.request("get", url, null, null); } /** * Update Hourly Rate Value * * @param rateValueId The rate valueId * @param body The rate value data */ updateHourlyRateValue(rateValueId, body) { const url = `/api/data/hourly-rates/values/${rateValueId}`; return this.client.request("put", url, null, body); } /** * Get Hourly Rate * * @param rateId The unique identifier for the rate */ getHourlyRate(rateId) { const url = `/api/data/hourly-rates/${rateId}`; return this.client.request("get", url, null, null); } /** * Delete a hourly rate * * @param rateId The rate Id. */ deleteHourlyRate(rateId) { const url = `/api/data/hourly-rates/${rateId}`; return this.client.request("delete", url, null, null); } } //# sourceMappingURL=HourlyRateClient.js.map