bruce-models 6.5.8 → 6.6.0

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,11 +9888,11 @@
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 } = params;
9891
+ let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search } = params;
9892
9892
  if (!api) {
9893
9893
  api = exports.ENVIRONMENT.Api().GetBruceApi();
9894
9894
  }
9895
- const cache = api.GetCacheItem(GetListCacheKey({
9895
+ const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
9896
9896
  assertLocation: assertLocation,
9897
9897
  expandSettings: expandSettings,
9898
9898
  type: type
@@ -9912,6 +9912,15 @@
9912
9912
  if (type) {
9913
9913
  urlParams.append("type", type);
9914
9914
  }
9915
+ if (search) {
9916
+ urlParams.append("Search", search);
9917
+ }
9918
+ if (pageSize != null) {
9919
+ urlParams.append("PageSize", String(pageSize));
9920
+ }
9921
+ if (pageIndex != null) {
9922
+ urlParams.append("PageIndex", String(pageIndex));
9923
+ }
9915
9924
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
9916
9925
  // Convert legacy records.
9917
9926
  // Commented out because it spams :)
@@ -9932,15 +9941,17 @@
9932
9941
  rej(e);
9933
9942
  }
9934
9943
  }));
9935
- api.SetCacheItem({
9936
- key: GetListCacheKey({
9937
- assertLocation: assertLocation,
9938
- expandSettings: expandSettings,
9939
- type: type
9940
- }),
9941
- value: req,
9942
- req: reqParams
9943
- });
9944
+ if (!pageSize) {
9945
+ api.SetCacheItem({
9946
+ key: GetListCacheKey({
9947
+ assertLocation: assertLocation,
9948
+ expandSettings: expandSettings,
9949
+ type: type
9950
+ }),
9951
+ value: req,
9952
+ req: reqParams
9953
+ });
9954
+ }
9944
9955
  return req;
9945
9956
  });
9946
9957
  }
@@ -16049,7 +16060,7 @@
16049
16060
  })(exports.Tracking || (exports.Tracking = {}));
16050
16061
 
16051
16062
  // This is updated with the package.json version on build.
16052
- const VERSION = "6.5.8";
16063
+ const VERSION = "6.6.0";
16053
16064
 
16054
16065
  exports.VERSION = VERSION;
16055
16066
  exports.AbstractApi = AbstractApi;