bruce-models 7.0.1 → 7.0.3

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.
@@ -8441,11 +8441,11 @@
8441
8441
  */
8442
8442
  function GetList(params) {
8443
8443
  return __awaiter(this, void 0, void 0, function* () {
8444
- let { api, req: reqParams, pageIndex, pageSize, expandSettings } = params;
8444
+ let { api, req: reqParams, pageIndex, pageSize, expandSettings, type, search } = params;
8445
8445
  if (!api) {
8446
8446
  api = exports.ENVIRONMENT.Api().GetBruceApi();
8447
8447
  }
8448
- const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings), reqParams);
8448
+ const cache = api.GetCacheItem(GetListCacheKey(pageIndex, pageSize, expandSettings, type, search), reqParams);
8449
8449
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
8450
8450
  return cache.data;
8451
8451
  }
@@ -8459,10 +8459,17 @@
8459
8459
  if (expandSettings) {
8460
8460
  urlParams.append("$expand", "settings");
8461
8461
  }
8462
+ if (type) {
8463
+ urlParams.append("Type", type);
8464
+ }
8465
+ if (search) {
8466
+ urlParams.append("Search", search);
8467
+ }
8462
8468
  const url = "ui.entityDisplaySettings" + `?${urlParams.toString()}`;
8463
8469
  const data = yield api.GET(url, exports.Api.PrepReqParams(reqParams));
8464
8470
  res({
8465
- styles: data.Items
8471
+ styles: data.Items,
8472
+ totalCount: data.TotalCount
8466
8473
  });
8467
8474
  }
8468
8475
  catch (e) {
@@ -8470,7 +8477,7 @@
8470
8477
  }
8471
8478
  }));
8472
8479
  api.SetCacheItem({
8473
- key: GetListCacheKey(pageIndex, pageSize, expandSettings),
8480
+ key: GetListCacheKey(pageIndex, pageSize, expandSettings, type, search),
8474
8481
  value: res,
8475
8482
  req: reqParams
8476
8483
  });
@@ -8584,8 +8591,8 @@
8584
8591
  * }
8585
8592
  * @returns
8586
8593
  */
8587
- function GetListCacheKey(pageSize, pageIndex, expandSettings) {
8588
- return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0);
8594
+ function GetListCacheKey(pageSize, pageIndex, expandSettings, type, search) {
8595
+ return exports.Api.ECacheKey.Style + (pageIndex || 0) + "_" + (pageSize || 0) + "_" + (expandSettings ? 1 : 0) + "_" + (type || "") + "_" + (search || "");
8589
8596
  }
8590
8597
  Style.GetListCacheKey = GetListCacheKey;
8591
8598
  })(exports.Style || (exports.Style = {}));
@@ -16693,7 +16700,7 @@
16693
16700
  }
16694
16701
 
16695
16702
  // This is updated with the package.json version on build.
16696
- const VERSION = "7.0.1";
16703
+ const VERSION = "7.0.3";
16697
16704
 
16698
16705
  exports.VERSION = VERSION;
16699
16706
  exports.AbstractApi = AbstractApi;