bruce-models 6.9.9 → 7.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.
@@ -8590,11 +8590,11 @@ var Style;
8590
8590
  */
8591
8591
  function GetList(params) {
8592
8592
  return __awaiter(this, void 0, void 0, function* () {
8593
- let { api, req: reqParams, pageIndex, pageSize } = params;
8593
+ let { api, req: reqParams, pageIndex, pageSize, expandSettings } = params;
8594
8594
  if (!api) {
8595
8595
  api = ENVIRONMENT.Api().GetBruceApi();
8596
8596
  }
8597
- const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize), reqParams);
8597
+ const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings), reqParams);
8598
8598
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
8599
8599
  return cache.data;
8600
8600
  }
@@ -8605,6 +8605,9 @@ var Style;
8605
8605
  urlParams.append("PageIndex", String(pageIndex || 0));
8606
8606
  urlParams.append("PageSize", String(pageSize || 0));
8607
8607
  }
8608
+ if (expandSettings) {
8609
+ urlParams.append("$expand", "settings");
8610
+ }
8608
8611
  const url = "ui.entityDisplaySettings" + `?${urlParams.toString()}`;
8609
8612
  const data = yield api.GET(url, Api.PrepReqParams(reqParams));
8610
8613
  res({
@@ -8616,7 +8619,7 @@ var Style;
8616
8619
  }
8617
8620
  }));
8618
8621
  api.SetCacheItem({
8619
- key: GetListCacheKey(pageIndex, pageSize),
8622
+ key: GetListCacheKey(pageIndex, pageSize, expandSettings),
8620
8623
  value: res,
8621
8624
  req: reqParams
8622
8625
  });
@@ -8730,8 +8733,8 @@ var Style;
8730
8733
  * }
8731
8734
  * @returns
8732
8735
  */
8733
- function GetListCacheKey(pageSize, pageIndex) {
8734
- return Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0);
8736
+ function GetListCacheKey(pageSize, pageIndex, expandSettings) {
8737
+ return Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0);
8735
8738
  }
8736
8739
  Style.GetListCacheKey = GetListCacheKey;
8737
8740
  })(Style || (Style = {}));
@@ -17005,7 +17008,7 @@ class NavigatorMcpWebSocketClient {
17005
17008
  }
17006
17009
 
17007
17010
  // This is updated with the package.json version on build.
17008
- const VERSION = "6.9.9";
17011
+ const VERSION = "7.0.1";
17009
17012
 
17010
17013
  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, UserMfaMethod, 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, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient };
17011
17014
  //# sourceMappingURL=bruce-models.es5.js.map