bruce-models 5.9.9 → 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.
@@ -1899,7 +1899,7 @@ var Assembly;
1899
1899
  */
1900
1900
  function DeleteList(params) {
1901
1901
  return __awaiter(this, void 0, void 0, function* () {
1902
- let { api, req: reqParams, assemblyIds } = params;
1902
+ let { api, req: reqParams, assemblyIds, lessThanSize } = params;
1903
1903
  if (!api) {
1904
1904
  api = ENVIRONMENT.Api().GetBruceApi();
1905
1905
  }
@@ -1908,6 +1908,9 @@ var Assembly;
1908
1908
  if (params.invalidRootIds) {
1909
1909
  urlParams.append("InvalidRootEntityID", "true");
1910
1910
  }
1911
+ else if (params.lessThanSize) {
1912
+ urlParams.append("LessThanSize", String(lessThanSize));
1913
+ }
1911
1914
  // Cannot be used with invalidRootIds.
1912
1915
  // So if both are supplied, invalidRootIds will take precedence.
1913
1916
  else if (params.assemblyIds) {
@@ -4072,6 +4075,9 @@ var Entity;
4072
4075
  api = ENVIRONMENT.Api().GetBruceApi();
4073
4076
  }
4074
4077
  let requestFilter = {};
4078
+ if (!filter) {
4079
+ filter = {};
4080
+ }
4075
4081
  if (filter.entityTypeConditions) {
4076
4082
  requestFilter = Object.assign({}, filter.entityTypeConditions);
4077
4083
  }
@@ -4242,6 +4248,10 @@ var Entity;
4242
4248
  if (!analysis) {
4243
4249
  entities = data.Items;
4244
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
+ }
4245
4255
  for (let i = 0; i < entities.length; i++) {
4246
4256
  const entity = entities[i];
4247
4257
  const id = entity.Bruce.ID;
@@ -4252,7 +4262,7 @@ var Entity;
4252
4262
  expandLocation,
4253
4263
  expandImports,
4254
4264
  expandSources,
4255
- entityTypeId: typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(","),
4265
+ entityTypeId: typeIdCacheKey,
4256
4266
  historicFrom: historicFrom,
4257
4267
  historicKey: historicKey,
4258
4268
  historicTo: historicTo,
@@ -15690,7 +15700,7 @@ var Scenario;
15690
15700
  })(Scenario || (Scenario = {}));
15691
15701
 
15692
15702
  // This is updated with the package.json version on build.
15693
- const VERSION = "5.9.9";
15703
+ const VERSION = "6.0.1";
15694
15704
 
15695
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 };
15696
15706
  //# sourceMappingURL=bruce-models.es5.js.map