bruce-models 3.9.5 → 3.9.6

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.
@@ -3202,7 +3202,7 @@
3202
3202
  */
3203
3203
  function Get(params) {
3204
3204
  return __awaiter(this, void 0, void 0, function* () {
3205
- let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
3205
+ let { api, entityId, schemaId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
3206
3206
  if (!entityId) {
3207
3207
  throw ("Entity ID is required.");
3208
3208
  }
@@ -3217,7 +3217,8 @@
3217
3217
  historicFrom,
3218
3218
  historicKey,
3219
3219
  historicTo,
3220
- historicPoint
3220
+ historicPoint,
3221
+ schemaId
3221
3222
  });
3222
3223
  const cache = api.GetCacheItem(key, reqParams);
3223
3224
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
@@ -3247,6 +3248,9 @@
3247
3248
  if (historicPoint) {
3248
3249
  urlParams.set("historicPoint", historicPoint);
3249
3250
  }
3251
+ if (schemaId) {
3252
+ urlParams.set("schema", schemaId);
3253
+ }
3250
3254
  const data = yield api.GET(`entity/${entityId}?${urlParams.toString()}`, exports.Api.PrepReqParams(reqParams));
3251
3255
  res({
3252
3256
  entity: data
@@ -3886,7 +3890,7 @@
3886
3890
  * @returns
3887
3891
  */
3888
3892
  function GetCacheKey(params) {
3889
- let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3893
+ let { entityId, entityTypeId, schemaId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3890
3894
  if (!entityTypeId) {
3891
3895
  entityTypeId = "";
3892
3896
  }
@@ -3902,7 +3906,10 @@
3902
3906
  if (!historicPoint) {
3903
3907
  historicPoint = "";
3904
3908
  }
3905
- let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
3909
+ if (!schemaId) {
3910
+ schemaId = "";
3911
+ }
3912
+ let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${schemaId}`;
3906
3913
  key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
3907
3914
  key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
3908
3915
  return key;
@@ -11251,7 +11258,7 @@
11251
11258
  })(exports.DataSource || (exports.DataSource = {}));
11252
11259
 
11253
11260
  // This is updated with the package.json version on build.
11254
- const VERSION = "3.9.5";
11261
+ const VERSION = "3.9.6";
11255
11262
 
11256
11263
  exports.VERSION = VERSION;
11257
11264
  exports.AbstractApi = AbstractApi;