@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
23 lines • 704 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlobalAPI = void 0;
const search_1 = require("./search");
class GlobalAPI {
_httpClient;
_baseUrl;
constructor(_httpClient, baseUrl) {
this._httpClient = _httpClient;
this._baseUrl = `${baseUrl}/global`;
}
search() {
return new search_1.GlobalSearchAPI(this._httpClient, `${this._baseUrl}/search`);
}
languages(query) {
return this._httpClient.get(`${this._baseUrl}/languages`, query);
}
countries(query) {
return this._httpClient.get(`${this._baseUrl}/countries`, query);
}
}
exports.GlobalAPI = GlobalAPI;
//# sourceMappingURL=api.js.map