bruce-models 7.0.8 → 7.0.9

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.
@@ -10131,7 +10131,7 @@
10131
10131
  */
10132
10132
  function GetList(params) {
10133
10133
  return __awaiter(this, void 0, void 0, function* () {
10134
- let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
10134
+ let { api, req: reqParams, entityIds, entityTypeIds, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder, tilesetIds } = params;
10135
10135
  if (!api) {
10136
10136
  api = exports.ENVIRONMENT.Api().GetBruceApi();
10137
10137
  }
@@ -10143,6 +10143,8 @@
10143
10143
  type: type,
10144
10144
  orderBy: orderBy,
10145
10145
  sortOrder: sortOrder,
10146
+ entityIds: entityIds,
10147
+ entityTypeIds: entityTypeIds,
10146
10148
  search: search
10147
10149
  });
10148
10150
  }
@@ -10160,7 +10162,7 @@
10160
10162
  urlParams.append("assertLocation", "true");
10161
10163
  }
10162
10164
  if (type) {
10163
- urlParams.append("type", type);
10165
+ urlParams.append("type", Array.isArray(type) ? type.join(",") : String(type));
10164
10166
  }
10165
10167
  if (search) {
10166
10168
  urlParams.append("Search", search);
@@ -10180,6 +10182,12 @@
10180
10182
  if (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) {
10181
10183
  urlParams.append("ID", tilesetIds.join(","));
10182
10184
  }
10185
+ if (entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) {
10186
+ urlParams.append("EntityID", entityIds.join(","));
10187
+ }
10188
+ if (entityTypeIds === null || entityTypeIds === void 0 ? void 0 : entityTypeIds.length) {
10189
+ urlParams.append("EntityTypeID", entityTypeIds.join(","));
10190
+ }
10183
10191
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
10184
10192
  // Convert legacy records.
10185
10193
  // Commented out because it spams :)
@@ -10768,7 +10776,7 @@
10768
10776
  if (!params) {
10769
10777
  params = {};
10770
10778
  }
10771
- let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
10779
+ let { expandSettings, assertLocation, type, orderBy, search, sortOrder, entityIds, entityTypeIds } = params;
10772
10780
  if (expandSettings == null) {
10773
10781
  expandSettings = false;
10774
10782
  }
@@ -10781,7 +10789,16 @@
10781
10789
  if (!orderBy) {
10782
10790
  orderBy = "";
10783
10791
  }
10784
- return exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + exports.Api.ECacheKey.Id + search;
10792
+ if (!entityIds) {
10793
+ entityIds = [];
10794
+ }
10795
+ if (!entityTypeIds) {
10796
+ entityTypeIds = [];
10797
+ }
10798
+ let key = exports.Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + exports.Api.ECacheKey.Id + search;
10799
+ key += exports.Api.ECacheKey.Id + entityIds.join(",");
10800
+ key += exports.Api.ECacheKey.Id + entityTypeIds.join(",");
10801
+ return key;
10785
10802
  }
10786
10803
  Tileset.GetListCacheKey = GetListCacheKey;
10787
10804
  })(exports.Tileset || (exports.Tileset = {}));
@@ -16715,7 +16732,7 @@
16715
16732
  }
16716
16733
 
16717
16734
  // This is updated with the package.json version on build.
16718
- const VERSION = "7.0.8";
16735
+ const VERSION = "7.0.9";
16719
16736
 
16720
16737
  exports.VERSION = VERSION;
16721
16738
  exports.AbstractApi = AbstractApi;