bruce-models 6.7.2 → 6.7.3

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.
@@ -4190,6 +4190,7 @@
4190
4190
  * @returns
4191
4191
  */
4192
4192
  function CalculateName(params) {
4193
+ var _a, _b;
4193
4194
  const { entity, type, defaultToId = true } = params;
4194
4195
  const attrStr = type.DisplayNameAttributePath;
4195
4196
  if (attrStr) {
@@ -4198,7 +4199,7 @@
4198
4199
  const pathStr = attrPaths[i];
4199
4200
  const path = exports.PathUtils.Parse(pathStr);
4200
4201
  const name = Entity.GetValue({
4201
- entity: entity,
4202
+ entity: entity || {},
4202
4203
  path
4203
4204
  });
4204
4205
  if (name && typeof name != "object") {
@@ -4206,6 +4207,9 @@
4206
4207
  }
4207
4208
  }
4208
4209
  }
4210
+ if (((_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.Name) && ((_b = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _b === void 0 ? void 0 : _b.Name) !== "Unnamed Entity") {
4211
+ return entity.Bruce.Name;
4212
+ }
4209
4213
  return defaultToId ? entity.Bruce.ID : null;
4210
4214
  }
4211
4215
  Entity.CalculateName = CalculateName;
@@ -16104,7 +16108,7 @@
16104
16108
  })(exports.Tracking || (exports.Tracking = {}));
16105
16109
 
16106
16110
  // This is updated with the package.json version on build.
16107
- const VERSION = "6.7.2";
16111
+ const VERSION = "6.7.3";
16108
16112
 
16109
16113
  exports.VERSION = VERSION;
16110
16114
  exports.AbstractApi = AbstractApi;