@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
22 lines • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IdpLogsAPI = void 0;
class IdpLogsAPI {
_httpClient;
_baseUrl;
constructor(_httpClient, _baseUrl) {
this._httpClient = _httpClient;
this._baseUrl = _baseUrl;
}
async find(query) {
return this._httpClient.get(`${this._baseUrl}/logs`, query);
}
async getExtended(id) {
return this._httpClient.get(`${this._baseUrl}/logs/${id}`);
}
async triggerSync() {
return this._httpClient.post(`${this._baseUrl}/sync`);
}
}
exports.IdpLogsAPI = IdpLogsAPI;
//# sourceMappingURL=logs.js.map