@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
29 lines • 819 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MeetingPollsAPI = void 0;
class MeetingPollsAPI {
_httpClient;
_basePath;
constructor(_httpClient, _basePath) {
this._httpClient = _httpClient;
this._basePath = _basePath;
}
async find() {
return this._httpClient.get(this._basePath);
}
async create(data) {
return this._httpClient.post(this._basePath, {
body: data,
});
}
async update(pollId, data) {
return this._httpClient.patch(`${this._basePath}/${pollId}`, {
body: data,
});
}
async delete(pollId) {
return this._httpClient.delete(`${this._basePath}/${pollId}`);
}
}
exports.MeetingPollsAPI = MeetingPollsAPI;
//# sourceMappingURL=polls.js.map