bruce-models 6.6.0 → 6.6.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.
@@ -9888,14 +9888,17 @@
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 } = params;
9891
+ let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
9892
9892
  if (!api) {
9893
9893
  api = exports.ENVIRONMENT.Api().GetBruceApi();
9894
9894
  }
9895
9895
  const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
9896
9896
  assertLocation: assertLocation,
9897
9897
  expandSettings: expandSettings,
9898
- type: type
9898
+ type: type,
9899
+ orderBy: orderBy,
9900
+ sortOrder: sortOrder,
9901
+ search: search
9899
9902
  }), reqParams);
9900
9903
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
9901
9904
  return cache.data;
@@ -9921,6 +9924,12 @@
9921
9924
  if (pageIndex != null) {
9922
9925
  urlParams.append("PageIndex", String(pageIndex));
9923
9926
  }
9927
+ if (orderBy) {
9928
+ urlParams.append("OrderBy", orderBy);
9929
+ }
9930
+ if (sortOrder) {
9931
+ urlParams.append("SortOrder", sortOrder);
9932
+ }
9924
9933
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
9925
9934
  // Convert legacy records.
9926
9935
  // Commented out because it spams :)
@@ -9946,7 +9955,10 @@
9946
9955
  key: GetListCacheKey({
9947
9956
  assertLocation: assertLocation,
9948
9957
  expandSettings: expandSettings,
9949
- type: type
9958
+ type: type,
9959
+ orderBy: orderBy,
9960
+ sortOrder: sortOrder,
9961
+ search: search
9950
9962
  }),
9951
9963
  value: req,
9952
9964
  req: reqParams
@@ -10513,14 +10525,20 @@
10513
10525
  if (!params) {
10514
10526
  params = {};
10515
10527
  }
10516
- let { expandSettings, assertLocation, type } = params;
10528
+ let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
10517
10529
  if (expandSettings == null) {
10518
10530
  expandSettings = false;
10519
10531
  }
10520
10532
  if (assertLocation == null) {
10521
10533
  assertLocation = false;
10522
10534
  }
10523
- return exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "");
10535
+ if (!search) {
10536
+ search = "";
10537
+ }
10538
+ if (!orderBy) {
10539
+ orderBy = "";
10540
+ }
10541
+ return exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + exports.Api.ECacheKey.Id + search;
10524
10542
  }
10525
10543
  Tileset.GetListCacheKey = GetListCacheKey;
10526
10544
  })(exports.Tileset || (exports.Tileset = {}));
@@ -16060,7 +16078,7 @@
16060
16078
  })(exports.Tracking || (exports.Tracking = {}));
16061
16079
 
16062
16080
  // This is updated with the package.json version on build.
16063
- const VERSION = "6.6.0";
16081
+ const VERSION = "6.6.1";
16064
16082
 
16065
16083
  exports.VERSION = VERSION;
16066
16084
  exports.AbstractApi = AbstractApi;