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.
@@ -9888,18 +9888,22 @@
9888
9888
  */
9889
9889
  function GetList(params) {
9890
9890
  return __awaiter(this, void 0, void 0, function* () {
9891
- let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
9891
+ let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
9892
9892
  if (!api) {
9893
9893
  api = exports.ENVIRONMENT.Api().GetBruceApi();
9894
9894
  }
9895
- const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
9896
- assertLocation: assertLocation,
9897
- expandSettings: expandSettings,
9898
- type: type,
9899
- orderBy: orderBy,
9900
- sortOrder: sortOrder,
9901
- search: search
9902
- }), reqParams);
9895
+ let cacheKey = null;
9896
+ if (!(tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) && !pageSize) {
9897
+ cacheKey = GetListCacheKey({
9898
+ assertLocation: assertLocation,
9899
+ expandSettings: expandSettings,
9900
+ type: type,
9901
+ orderBy: orderBy,
9902
+ sortOrder: sortOrder,
9903
+ search: search
9904
+ });
9905
+ }
9906
+ const cache = cacheKey ? api.GetCacheItem(cacheKey, reqParams) : null;
9903
9907
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
9904
9908
  return cache.data;
9905
9909
  }
@@ -9930,6 +9934,9 @@
9930
9934
  if (sortOrder) {
9931
9935
  urlParams.append("SortOrder", sortOrder);
9932
9936
  }
9937
+ if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
9938
+ urlParams.append("ID", tilesetIds.join(","));
9939
+ }
9933
9940
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
9934
9941
  // Convert legacy records.
9935
9942
  // Commented out because it spams :)
@@ -9950,16 +9957,9 @@
9950
9957
  rej(e);
9951
9958
  }
9952
9959
  }));
9953
- if (!pageSize) {
9960
+ if (cacheKey) {
9954
9961
  api.SetCacheItem({
9955
- key: GetListCacheKey({
9956
- assertLocation: assertLocation,
9957
- expandSettings: expandSettings,
9958
- type: type,
9959
- orderBy: orderBy,
9960
- sortOrder: sortOrder,
9961
- search: search
9962
- }),
9962
+ key: cacheKey,
9963
9963
  value: req,
9964
9964
  req: reqParams
9965
9965
  });
@@ -16078,7 +16078,7 @@
16078
16078
  })(exports.Tracking || (exports.Tracking = {}));
16079
16079
 
16080
16080
  // This is updated with the package.json version on build.
16081
- const VERSION = "6.6.1";
16081
+ const VERSION = "6.6.2";
16082
16082
 
16083
16083
  exports.VERSION = VERSION;
16084
16084
  exports.AbstractApi = AbstractApi;