projectmanager-sdk
Version:
Software development kit for the ProjectManager.com API. for TypeScript
60 lines • 1.77 kB
JavaScript
/**
* 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 MeetingTodosClient {
client;
/**
* Internal constructor for this client library
*/
constructor(client) {
this.client = client;
}
/**
* Get todos for a meeting
*
* @param meetingId The id of the meeting
*/
getMeetingTodos(meetingId) {
const url = `/api/data/meetings/${meetingId}/todos`;
return this.client.request("get", url, null, null);
}
/**
* Creates a new todos and associates it with the meeting
*
* @param meetingId The id of the meeting
* @param body The todos to create
*/
createMeetingTodos(meetingId, body) {
const url = `/api/data/meetings/${meetingId}/todos`;
return this.client.request("post", url, null, body);
}
/**
* Update a todos
*
* @param todoId The id of the todos
* @param body The fields to update
*/
updateaMeetingTodos(todoId, body) {
const url = `/api/data/meetings/todos/${todoId}`;
return this.client.request("put", url, null, body);
}
/**
* Remove meeting todos
*
* @param todoId The id of the todos to remove
*/
removeMeetingTodos(todoId) {
const url = `/api/data/meetings/todos/${todoId}`;
return this.client.request("delete", url, null, null);
}
}
//# sourceMappingURL=MeetingTodosClient.js.map