bruce-models 6.0.0 → 6.0.1

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.
@@ -4075,6 +4075,9 @@ var Entity;
4075
4075
  api = ENVIRONMENT.Api().GetBruceApi();
4076
4076
  }
4077
4077
  let requestFilter = {};
4078
+ if (!filter) {
4079
+ filter = {};
4080
+ }
4078
4081
  if (filter.entityTypeConditions) {
4079
4082
  requestFilter = Object.assign({}, filter.entityTypeConditions);
4080
4083
  }
@@ -4245,6 +4248,10 @@ var Entity;
4245
4248
  if (!analysis) {
4246
4249
  entities = data.Items;
4247
4250
  // Only caching when non-CDN.
4251
+ let typeIdCacheKey = null;
4252
+ if (filter.entityTypeId) {
4253
+ typeIdCacheKey = typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(",");
4254
+ }
4248
4255
  for (let i = 0; i < entities.length; i++) {
4249
4256
  const entity = entities[i];
4250
4257
  const id = entity.Bruce.ID;
@@ -4255,7 +4262,7 @@ var Entity;
4255
4262
  expandLocation,
4256
4263
  expandImports,
4257
4264
  expandSources,
4258
- entityTypeId: typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(","),
4265
+ entityTypeId: typeIdCacheKey,
4259
4266
  historicFrom: historicFrom,
4260
4267
  historicKey: historicKey,
4261
4268
  historicTo: historicTo,
@@ -15693,7 +15700,7 @@ var Scenario;
15693
15700
  })(Scenario || (Scenario = {}));
15694
15701
 
15695
15702
  // This is updated with the package.json version on build.
15696
- const VERSION = "6.0.0";
15703
+ const VERSION = "6.0.1";
15697
15704
 
15698
15705
  export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15699
15706
  //# sourceMappingURL=bruce-models.es5.js.map