@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
38 lines • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IDPAPI = void 0;
const configuration_1 = require("./configuration");
const role_rules_1 = require("./role-rules");
const team_rules_1 = require("./team-rules");
const logs_1 = require("./logs");
const log_details_1 = require("./log-details");
class IDPAPI {
_httpClient;
_baseUrl;
_providerUrl;
constructor(_httpClient, _baseUrl, provider) {
this._httpClient = _httpClient;
this._baseUrl = _baseUrl;
this._providerUrl = `${this._baseUrl}/${provider}`;
}
configuration() {
return new configuration_1.IdpConfigurationAPI(this._httpClient, this._providerUrl);
}
roleRules() {
return new role_rules_1.IdpRoleRulesAPI(this._httpClient, `${this._providerUrl}/roles-rules`);
}
teamRules() {
return new team_rules_1.IdpTeamRulesAPI(this._httpClient, `${this._providerUrl}/teams-rules`);
}
logs() {
return new logs_1.IdpLogsAPI(this._httpClient, this._providerUrl);
}
logDetails() {
return new log_details_1.IdpLogDetailsAPI(this._httpClient, this._providerUrl);
}
async getConditionFields() {
return this._httpClient.get(`${this._providerUrl}/condition-fields`);
}
}
exports.IDPAPI = IDPAPI;
//# sourceMappingURL=idp.js.map