@openshift-assisted/ui-lib
Version:
React component library for the Assisted Installer UI
19 lines • 883 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganizationsApi = void 0;
const tslib_1 = require("tslib");
const axiosClient_1 = require("../axiosClient");
exports.OrganizationsApi = {
makeBaseURI() {
return '/api/accounts_mgmt/v1/organizations';
},
getOrganization(orgId, fetchCapabilities = true, fetchLabels = false) {
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.get(`${exports.OrganizationsApi.makeBaseURI()}/${orgId}`, {
params: { fetchCapabilities, fetchLabels },
}));
return response === null || response === void 0 ? void 0 : response.data;
});
},
};
//# sourceMappingURL=organizations-api.js.map