bruce-models 3.8.8 → 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.
@@ -3440,7 +3440,7 @@ var Entity;
3440
3440
  function GetList(params) {
3441
3441
  var _a;
3442
3442
  return __awaiter(this, void 0, void 0, function* () {
3443
- let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo } = params;
3443
+ let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3444
3444
  if (!api) {
3445
3445
  api = ENVIRONMENT.Api().GetBruceApi();
3446
3446
  }
@@ -3476,7 +3476,11 @@ var Entity;
3476
3476
  LODType: filter.lodCategoryId,
3477
3477
  BruceEntityType: filter.entityTypeId,
3478
3478
  PageIndex: filter.pageIndex,
3479
- PageSize: filter.pageSize
3479
+ PageSize: filter.pageSize,
3480
+ historicKey: historicKey,
3481
+ historicFrom: historicFrom,
3482
+ historicTo: historicTo,
3483
+ historicPoint: historicPoint
3480
3484
  };
3481
3485
  let totalCount;
3482
3486
  let entities = [];
@@ -3517,6 +3521,18 @@ var Entity;
3517
3521
  if (expandRelations) {
3518
3522
  urlParams.append("$expand", "relation");
3519
3523
  }
3524
+ if (historicKey) {
3525
+ urlParams.set("historicKey", historicKey);
3526
+ }
3527
+ if (historicFrom) {
3528
+ urlParams.set("historicFrom", historicFrom);
3529
+ }
3530
+ if (historicTo) {
3531
+ urlParams.set("historicTo", historicTo);
3532
+ }
3533
+ if (historicPoint) {
3534
+ urlParams.set("historicPoint", historicPoint);
3535
+ }
3520
3536
  const urlStr = url.toString() + "?" + urlParams.toString();
3521
3537
  const data = yield api.get(urlStr, Api.PrepReqParams(reqParams));
3522
3538
  if (!analysis) {
@@ -3694,7 +3710,7 @@ var Entity;
3694
3710
  * @returns
3695
3711
  */
3696
3712
  function GetCacheKey(params) {
3697
- let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo } = params;
3713
+ let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3698
3714
  if (!entityTypeId) {
3699
3715
  entityTypeId = "";
3700
3716
  }
@@ -3707,9 +3723,12 @@ var Entity;
3707
3723
  if (!historicTo) {
3708
3724
  historicTo = "";
3709
3725
  }
3726
+ if (!historicPoint) {
3727
+ historicPoint = "";
3728
+ }
3710
3729
  let key = `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
3711
3730
  key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
3712
- key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}${historicFrom}${historicTo}`;
3731
+ key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
3713
3732
  return key;
3714
3733
  }
3715
3734
  Entity.GetCacheKey = GetCacheKey;
@@ -11385,7 +11404,7 @@ var DataSource;
11385
11404
  })(DataSource || (DataSource = {}));
11386
11405
 
11387
11406
  // This is updated with the package.json version on build.
11388
- const VERSION = "3.8.8";
11407
+ const VERSION = "3.9.0";
11389
11408
 
11390
11409
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
11391
11410
  //# sourceMappingURL=bruce-models.es5.js.map