bruce-models 7.1.5 → 7.1.7

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.
@@ -3484,6 +3484,41 @@
3484
3484
  });
3485
3485
  }
3486
3486
  EntityType.ExportOntology = ExportOntology;
3487
+ /**
3488
+ * Gets source dependency records for an Entity Type.
3489
+ * This calls: GET entityType/{entityType_id}/sourceDependencies
3490
+ */
3491
+ function GetSourceDependencies(params) {
3492
+ return __awaiter(this, void 0, void 0, function* () {
3493
+ let { api, entityTypeId, req } = params;
3494
+ if (!entityTypeId) {
3495
+ throw ("Type ID is required.");
3496
+ }
3497
+ if (!api) {
3498
+ api = exports.ENVIRONMENT.Api().GetBruceApi();
3499
+ }
3500
+ const res = yield api.GET(`entityType/${entityTypeId}/sourceDependencies`, exports.Api.PrepReqParams(req));
3501
+ return {
3502
+ sourceDependencies: ParseSourceDependenciesResponse(res)
3503
+ };
3504
+ });
3505
+ }
3506
+ EntityType.GetSourceDependencies = GetSourceDependencies;
3507
+ /**
3508
+ * Normalizes response from GetSourceDependencies.
3509
+ * Supports list wrappers and direct array payloads.
3510
+ */
3511
+ function ParseSourceDependenciesResponse(response) {
3512
+ var _a, _b, _c, _d;
3513
+ const parsed = parseObject(response);
3514
+ 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;
3515
+ 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;
3516
+ if (Array.isArray(list)) {
3517
+ return list;
3518
+ }
3519
+ return [];
3520
+ }
3521
+ EntityType.ParseSourceDependenciesResponse = ParseSourceDependenciesResponse;
3487
3522
  /**
3488
3523
  * Normalizes response from ExportOntology.
3489
3524
  * Supports both direct response payloads and wrapper shapes.
@@ -16856,7 +16891,7 @@
16856
16891
  })(exports.ChangeSet || (exports.ChangeSet = {}));
16857
16892
 
16858
16893
  // This is updated with the package.json version on build.
16859
- const VERSION = "7.1.5";
16894
+ const VERSION = "7.1.7";
16860
16895
 
16861
16896
  exports.VERSION = VERSION;
16862
16897
  exports.AbstractApi = AbstractApi;