@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
36 lines • 1.07 kB
JavaScript
import { MeetingPollsAPI } from './polls';
export 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 MeetingPollsAPI(this._httpClient, `${this._basePath}/${agendaId}/polls`);
}
}
//# sourceMappingURL=agenda.js.map