@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
23 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthorizationApi = void 0;
const tslib_1 = require("tslib");
const axiosClient_1 = require("../axiosClient");
exports.AuthorizationApi = {
makeBaseURI() {
return '/api/authorizations/v1/';
},
selfFeatureReview(featureId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const response = yield (axiosClient_1.ocmClient === null || axiosClient_1.ocmClient === void 0 ? void 0 : axiosClient_1.ocmClient.post(`${exports.AuthorizationApi.makeBaseURI()}/self_feature_review`, { feature: featureId }));
return response === null || response === void 0 ? void 0 : response.data;
});
},
selfAccessReview(params) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const response = yield (axiosClient_1.ocmClient === null || axiosClient_1.ocmClient === void 0 ? void 0 : axiosClient_1.ocmClient.post(`${exports.AuthorizationApi.makeBaseURI()}/self_access_review`, params));
return response === null || response === void 0 ? void 0 : response.data;
});
},
};
//# sourceMappingURL=all-apis.js.map