UNPKG

@eleva-io/erp-sdk

Version:

SDK oficial para el ERP de Eleva

40 lines 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MeetingAgendaAPI = void 0; const polls_1 = require("./polls"); class MeetingAgendaAPI { _httpClient; _basePath; constructor(_httpClient, _basePath) { this._httpClient = _httpClient; this._basePath = _basePath; } async create(data) { return this._httpClient.post(this._basePath, { body: data, }); } async createFromPreset(presetId) { return this._httpClient.post(`${this._basePath}/${presetId}`); } async update(agendaId, data) { return this._httpClient.patch(`${this._basePath}/${agendaId}`, { body: data, }); } async updatePriority(items) { return this._httpClient.patch(`${this._basePath}/repriorize`, { body: items, }); } async delete(agendaItemId) { return this._httpClient.delete(this._basePath, { query: { agendaItemId }, }); } polls(agendaId) { return new polls_1.MeetingPollsAPI(this._httpClient, `${this._basePath}/${agendaId}/polls`); } } exports.MeetingAgendaAPI = MeetingAgendaAPI; //# sourceMappingURL=agenda.js.map