UNPKG

projectmanager-sdk

Version:

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

40 lines 1.19 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 DashboardClient { client; /** * Internal constructor for this client library */ constructor(client) { this.client = client; } /** * Returns user dashboard settings * * @param type The dashboard type that is not custom */ retrieveDashboardUserSettings(type) { const url = `/api/data/dashboards/settings/${type}`; return this.client.request("get", url, null, null); } /** * Create or Update User Dashboard Settings * * @param body User dashboard settings object */ createorUpdateUserDashboardSettings(body) { const url = `/api/data/dashboards/settings`; return this.client.request("post", url, null, body); } } //# sourceMappingURL=DashboardClient.js.map