bruce-models 6.5.9 → 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.
@@ -10069,14 +10069,17 @@ var Tileset;
10069
10069
  */
10070
10070
  function GetList(params) {
10071
10071
  return __awaiter(this, void 0, void 0, function* () {
10072
- let { api, req: reqParams, assertLocation, expandSettings, type } = params;
10072
+ let { api, req: reqParams, assertLocation, expandSettings, type, pageIndex, pageSize, search, orderBy, sortOrder } = params;
10073
10073
  if (!api) {
10074
10074
  api = ENVIRONMENT.Api().GetBruceApi();
10075
10075
  }
10076
- const cache = api.GetCacheItem(GetListCacheKey({
10076
+ const cache = pageSize ? null : api.GetCacheItem(GetListCacheKey({
10077
10077
  assertLocation: assertLocation,
10078
10078
  expandSettings: expandSettings,
10079
- type: type
10079
+ type: type,
10080
+ orderBy: orderBy,
10081
+ sortOrder: sortOrder,
10082
+ search: search
10080
10083
  }), reqParams);
10081
10084
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
10082
10085
  return cache.data;
@@ -10093,6 +10096,21 @@ var Tileset;
10093
10096
  if (type) {
10094
10097
  urlParams.append("type", type);
10095
10098
  }
10099
+ if (search) {
10100
+ urlParams.append("Search", search);
10101
+ }
10102
+ if (pageSize != null) {
10103
+ urlParams.append("PageSize", String(pageSize));
10104
+ }
10105
+ if (pageIndex != null) {
10106
+ urlParams.append("PageIndex", String(pageIndex));
10107
+ }
10108
+ if (orderBy) {
10109
+ urlParams.append("OrderBy", orderBy);
10110
+ }
10111
+ if (sortOrder) {
10112
+ urlParams.append("SortOrder", sortOrder);
10113
+ }
10096
10114
  const data = yield api.GET("tileset/getList?" + urlParams.toString(), reqParams);
10097
10115
  // Convert legacy records.
10098
10116
  // Commented out because it spams :)
@@ -10113,15 +10131,20 @@ var Tileset;
10113
10131
  rej(e);
10114
10132
  }
10115
10133
  }));
10116
- api.SetCacheItem({
10117
- key: GetListCacheKey({
10118
- assertLocation: assertLocation,
10119
- expandSettings: expandSettings,
10120
- type: type
10121
- }),
10122
- value: req,
10123
- req: reqParams
10124
- });
10134
+ if (!pageSize) {
10135
+ api.SetCacheItem({
10136
+ key: GetListCacheKey({
10137
+ assertLocation: assertLocation,
10138
+ expandSettings: expandSettings,
10139
+ type: type,
10140
+ orderBy: orderBy,
10141
+ sortOrder: sortOrder,
10142
+ search: search
10143
+ }),
10144
+ value: req,
10145
+ req: reqParams
10146
+ });
10147
+ }
10125
10148
  return req;
10126
10149
  });
10127
10150
  }
@@ -10683,14 +10706,20 @@ var Tileset;
10683
10706
  if (!params) {
10684
10707
  params = {};
10685
10708
  }
10686
- let { expandSettings, assertLocation, type } = params;
10709
+ let { expandSettings, assertLocation, type, orderBy, search, sortOrder } = params;
10687
10710
  if (expandSettings == null) {
10688
10711
  expandSettings = false;
10689
10712
  }
10690
10713
  if (assertLocation == null) {
10691
10714
  assertLocation = false;
10692
10715
  }
10693
- return Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "");
10716
+ if (!search) {
10717
+ search = "";
10718
+ }
10719
+ if (!orderBy) {
10720
+ orderBy = "";
10721
+ }
10722
+ return Api.ECacheKey.Tileset + String(expandSettings) + String(assertLocation) + (type ? type : "") + String(orderBy) + String(sortOrder) + Api.ECacheKey.Id + search;
10694
10723
  }
10695
10724
  Tileset$$1.GetListCacheKey = GetListCacheKey;
10696
10725
  })(Tileset || (Tileset = {}));
@@ -16364,7 +16393,7 @@ var Tracking;
16364
16393
  })(Tracking || (Tracking = {}));
16365
16394
 
16366
16395
  // This is updated with the package.json version on build.
16367
- const VERSION = "6.5.9";
16396
+ const VERSION = "6.6.1";
16368
16397
 
16369
16398
  export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
16370
16399
  //# sourceMappingURL=bruce-models.es5.js.map