UNPKG

@eleva-io/erp-sdk

Version:

SDK oficial para el ERP de Eleva

34 lines 1.17 kB
import { IdpConfigurationAPI } from './configuration'; import { IdpRoleRulesAPI } from './role-rules'; import { IdpTeamRulesAPI } from './team-rules'; import { IdpLogsAPI } from './logs'; import { IdpLogDetailsAPI } from './log-details'; export class IDPAPI { _httpClient; _baseUrl; _providerUrl; constructor(_httpClient, _baseUrl, provider) { this._httpClient = _httpClient; this._baseUrl = _baseUrl; this._providerUrl = `${this._baseUrl}/${provider}`; } configuration() { return new IdpConfigurationAPI(this._httpClient, this._providerUrl); } roleRules() { return new IdpRoleRulesAPI(this._httpClient, `${this._providerUrl}/roles-rules`); } teamRules() { return new IdpTeamRulesAPI(this._httpClient, `${this._providerUrl}/teams-rules`); } logs() { return new IdpLogsAPI(this._httpClient, this._providerUrl); } logDetails() { return new IdpLogDetailsAPI(this._httpClient, this._providerUrl); } async getConditionFields() { return this._httpClient.get(`${this._providerUrl}/condition-fields`); } } //# sourceMappingURL=idp.js.map