bruce-models 7.1.7 → 7.1.8
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 +36 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +36 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-type.js +35 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-type.d.ts +25 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3504,6 +3504,26 @@
|
|
|
3504
3504
|
});
|
|
3505
3505
|
}
|
|
3506
3506
|
EntityType.GetSourceDependencies = GetSourceDependencies;
|
|
3507
|
+
/**
|
|
3508
|
+
* Gets dictionary data schema dependency records for an Entity Type.
|
|
3509
|
+
* This calls: GET entityType/{entityType_id}/dictionaryDataSchemaDependencies
|
|
3510
|
+
*/
|
|
3511
|
+
function GetDictionaryDataSchemaDependencies(params) {
|
|
3512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3513
|
+
let { api, entityTypeId, req } = params;
|
|
3514
|
+
if (!entityTypeId) {
|
|
3515
|
+
throw ("Type ID is required.");
|
|
3516
|
+
}
|
|
3517
|
+
if (!api) {
|
|
3518
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
3519
|
+
}
|
|
3520
|
+
const res = yield api.GET(`entityType/${entityTypeId}/dictionaryDataSchemaDependencies`, exports.Api.PrepReqParams(req));
|
|
3521
|
+
return {
|
|
3522
|
+
dictionaryDataSchemaDependencies: ParseDictionaryDataSchemaDependenciesResponse(res)
|
|
3523
|
+
};
|
|
3524
|
+
});
|
|
3525
|
+
}
|
|
3526
|
+
EntityType.GetDictionaryDataSchemaDependencies = GetDictionaryDataSchemaDependencies;
|
|
3507
3527
|
/**
|
|
3508
3528
|
* Normalizes response from GetSourceDependencies.
|
|
3509
3529
|
* Supports list wrappers and direct array payloads.
|
|
@@ -3519,6 +3539,21 @@
|
|
|
3519
3539
|
return [];
|
|
3520
3540
|
}
|
|
3521
3541
|
EntityType.ParseSourceDependenciesResponse = ParseSourceDependenciesResponse;
|
|
3542
|
+
/**
|
|
3543
|
+
* Normalizes response from GetDictionaryDataSchemaDependencies.
|
|
3544
|
+
* Supports list wrappers and direct array payloads.
|
|
3545
|
+
*/
|
|
3546
|
+
function ParseDictionaryDataSchemaDependenciesResponse(response) {
|
|
3547
|
+
var _a, _b, _c, _d;
|
|
3548
|
+
const parsed = parseObject(response);
|
|
3549
|
+
const parsedResult = (_a = parseObject(parsed === null || parsed === void 0 ? void 0 : parsed.Result)) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.Result;
|
|
3550
|
+
const list = (_d = (_c = (_b = parsed === null || parsed === void 0 ? void 0 : parsed.Items) !== null && _b !== void 0 ? _b : parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.Items) !== null && _c !== void 0 ? _c : parsedResult) !== null && _d !== void 0 ? _d : parsed;
|
|
3551
|
+
if (Array.isArray(list)) {
|
|
3552
|
+
return list;
|
|
3553
|
+
}
|
|
3554
|
+
return [];
|
|
3555
|
+
}
|
|
3556
|
+
EntityType.ParseDictionaryDataSchemaDependenciesResponse = ParseDictionaryDataSchemaDependenciesResponse;
|
|
3522
3557
|
/**
|
|
3523
3558
|
* Normalizes response from ExportOntology.
|
|
3524
3559
|
* Supports both direct response payloads and wrapper shapes.
|
|
@@ -16891,7 +16926,7 @@
|
|
|
16891
16926
|
})(exports.ChangeSet || (exports.ChangeSet = {}));
|
|
16892
16927
|
|
|
16893
16928
|
// This is updated with the package.json version on build.
|
|
16894
|
-
const VERSION = "7.1.
|
|
16929
|
+
const VERSION = "7.1.8";
|
|
16895
16930
|
|
|
16896
16931
|
exports.VERSION = VERSION;
|
|
16897
16932
|
exports.AbstractApi = AbstractApi;
|