bruce-models 7.1.73 → 7.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bruce-models.es5.js +18 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +18 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/ontology.js +17 -0
- package/dist/lib/entity/ontology.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/ontology.d.ts +7 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -14069,6 +14069,23 @@
|
|
|
14069
14069
|
});
|
|
14070
14070
|
}
|
|
14071
14071
|
Ontology.Delete = Delete;
|
|
14072
|
+
function Describe(params) {
|
|
14073
|
+
var _a, _b;
|
|
14074
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14075
|
+
let { api, ontologyId, req: reqParams } = params;
|
|
14076
|
+
if (ontologyId == null || ontologyId === "") {
|
|
14077
|
+
throw ("Ontology ID is required.");
|
|
14078
|
+
}
|
|
14079
|
+
if (!api) {
|
|
14080
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
14081
|
+
}
|
|
14082
|
+
const res = yield api.POST(`ontology/${ontologyId}/describe`, {}, exports.Api.PrepReqParams(reqParams));
|
|
14083
|
+
return {
|
|
14084
|
+
markdown: typeof res === "string" ? res : (_b = (_a = res === null || res === void 0 ? void 0 : res.markdown) !== null && _a !== void 0 ? _a : res === null || res === void 0 ? void 0 : res.Markdown) !== null && _b !== void 0 ? _b : ""
|
|
14085
|
+
};
|
|
14086
|
+
});
|
|
14087
|
+
}
|
|
14088
|
+
Ontology.Describe = Describe;
|
|
14072
14089
|
function ParseResponse(response) {
|
|
14073
14090
|
var _a, _b, _c, _d, _e, _f;
|
|
14074
14091
|
const parsed = parseObject$5(response);
|
|
@@ -19591,7 +19608,7 @@
|
|
|
19591
19608
|
})(exports.UrlUtils || (exports.UrlUtils = {}));
|
|
19592
19609
|
|
|
19593
19610
|
// This is updated with the package.json version on build.
|
|
19594
|
-
const VERSION = "7.1.
|
|
19611
|
+
const VERSION = "7.1.74";
|
|
19595
19612
|
|
|
19596
19613
|
exports.VERSION = VERSION;
|
|
19597
19614
|
exports.AbstractApi = AbstractApi;
|