bruce-models 6.6.1 → 6.6.2

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.
@@ -10069,18 +10069,22 @@ var Tileset;
10069
10069
  */
10070
10070
  function GetList(params) {
10071
10071
  return __awaiter(this, void 0, void 0, function* () {
10072
- let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
10072
+ let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
10073
10073
  if (!api) {
10074
10074
  api = ENVIRONMENT.Api().GetBruceApi();
10075
10075
  }
10076
- const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
10077
- assertLocation: assertLocation,
10078
- expandSettings: expandSettings,
10079
- type: type,
10080
- orderBy: orderBy,
10081
- sortOrder: sortOrder,
10082
- search: search
10083
- }), reqParams);
10076
+ let cacheKey = null;
10077
+ if (!(tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) && !pageSize) {
10078
+ cacheKey = GetListCacheKey({
10079
+ assertLocation: assertLocation,
10080
+ expandSettings: expandSettings,
10081
+ type: type,
10082
+ orderBy: orderBy,
10083
+ sortOrder: sortOrder,
10084
+ search: search
10085
+ });
10086
+ }
10087
+ const cache = cacheKey ? api.GetCacheItem(cacheKey, reqParams) : null;
10084
10088
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
10085
10089
  return cache.data;
10086
10090
  }
@@ -10111,6 +10115,9 @@ var Tileset;
10111
10115
  if (sortOrder) {
10112
10116
  urlParams.append("SortOrder", sortOrder);
10113
10117
  }
10118
+ if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
10119
+ urlParams.append("ID", tilesetIds.join(","));
10120
+ }
10114
10121
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
10115
10122
  // Convert legacy records.
10116
10123
  // Commented out because it spams :)
@@ -10131,16 +10138,9 @@ var Tileset;
10131
10138
  rej(e);
10132
10139
  }
10133
10140
  }));
10134
- if (!pageSize) {
10141
+ if (cacheKey) {
10135
10142
  api.SetCacheItem({
10136
- key: GetListCacheKey({
10137
- assertLocation: assertLocation,
10138
- expandSettings: expandSettings,
10139
- type: type,
10140
- orderBy: orderBy,
10141
- sortOrder: sortOrder,
10142
- search: search
10143
- }),
10143
+ key: cacheKey,
10144
10144
  value: req,
10145
10145
  req: reqParams
10146
10146
  });
@@ -16393,7 +16393,7 @@ var Tracking;
16393
16393
  })(Tracking || (Tracking = {}));
16394
16394
 
16395
16395
  // This is updated with the package.json version on build.
16396
- const VERSION = "6.6.1";
16396
+ const VERSION = "6.6.2";
16397
16397
 
16398
16398
  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 };
16399
16399
  //# sourceMappingURL=bruce-models.es5.js.map