@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
25 lines • 672 B
JavaScript
export 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}`);
}
}
//# sourceMappingURL=polls.js.map