bruce-models 3.8.9 → 3.9.0

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.
@@ -3387,7 +3387,7 @@
3387
3387
  function GetList(params) {
3388
3388
  var _a;
3389
3389
  return __awaiter(this, void 0, void 0, function* () {
3390
- let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo } = params;
3390
+ let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3391
3391
  if (!api) {
3392
3392
  api = exports.ENVIRONMENT.Api().GetBruceApi();
3393
3393
  }
@@ -3426,7 +3426,8 @@
3426
3426
  PageSize: filter.pageSize,
3427
3427
  historicKey: historicKey,
3428
3428
  historicFrom: historicFrom,
3429
- historicTo: historicTo
3429
+ historicTo: historicTo,
3430
+ historicPoint: historicPoint
3430
3431
  };
3431
3432
  let totalCount;
3432
3433
  let entities = [];
@@ -3476,6 +3477,9 @@
3476
3477
  if (historicTo) {
3477
3478
  urlParams.set("historicTo", historicTo);
3478
3479
  }
3480
+ if (historicPoint) {
3481
+ urlParams.set("historicPoint", historicPoint);
3482
+ }
3479
3483
  const urlStr = url.toString() + "?" + urlParams.toString();
3480
3484
  const data = yield api.get(urlStr, exports.Api.PrepReqParams(reqParams));
3481
3485
  if (!analysis) {
@@ -3653,7 +3657,7 @@
3653
3657
  * @returns
3654
3658
  */
3655
3659
  function GetCacheKey(params) {
3656
- let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo } = params;
3660
+ let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3657
3661
  if (!entityTypeId) {
3658
3662
  entityTypeId = "";
3659
3663
  }
@@ -3666,9 +3670,12 @@
3666
3670
  if (!historicTo) {
3667
3671
  historicTo = "";
3668
3672
  }
3673
+ if (!historicPoint) {
3674
+ historicPoint = "";
3675
+ }
3669
3676
  let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
3670
3677
  key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
3671
- key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}${historicFrom}${historicTo}`;
3678
+ key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
3672
3679
  return key;
3673
3680
  }
3674
3681
  Entity.GetCacheKey = GetCacheKey;
@@ -11138,7 +11145,7 @@
11138
11145
  })(exports.DataSource || (exports.DataSource = {}));
11139
11146
 
11140
11147
  // This is updated with the package.json version on build.
11141
- const VERSION = "3.8.9";
11148
+ const VERSION = "3.9.0";
11142
11149
 
11143
11150
  exports.VERSION = VERSION;
11144
11151
  exports.AbstractApi = AbstractApi;