bruce-models 7.1.34 → 7.1.35

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.
@@ -2294,14 +2294,14 @@ var AnnDocument;
2294
2294
  */
2295
2295
  function GetList(params) {
2296
2296
  return __awaiter(this, void 0, void 0, function* () {
2297
- let { api, docType: type, req: reqParams, entityId, expandSettings, pageIndex, pageSize } = params;
2297
+ let { search, api, docType: type, req: reqParams, entityId, expandSettings, pageIndex, pageSize } = params;
2298
2298
  if (!api) {
2299
2299
  api = ENVIRONMENT.Api().GetBruceApi();
2300
2300
  }
2301
2301
  if (!type) {
2302
2302
  type = "";
2303
2303
  }
2304
- const cache = api.GetCacheItem(GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize), reqParams);
2304
+ const cache = api.GetCacheItem(GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize, search), reqParams);
2305
2305
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
2306
2306
  return cache.data;
2307
2307
  }
@@ -2321,6 +2321,9 @@ var AnnDocument;
2321
2321
  urlParams.append("PageIndex", String(pageIndex || 0));
2322
2322
  urlParams.append("PageSize", String(pageSize || 0));
2323
2323
  }
2324
+ if (search) {
2325
+ urlParams.append("search", search);
2326
+ }
2324
2327
  const url = "documentViews" + `?${urlParams.toString()}`;
2325
2328
  const data = yield api.GET(url, Api.PrepReqParams(reqParams));
2326
2329
  res({
@@ -2332,7 +2335,7 @@ var AnnDocument;
2332
2335
  }
2333
2336
  }));
2334
2337
  api.SetCacheItem({
2335
- key: GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize),
2338
+ key: GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize, search),
2336
2339
  value: req,
2337
2340
  req: reqParams
2338
2341
  });
@@ -2387,20 +2390,23 @@ var AnnDocument;
2387
2390
  * @param pageSize
2388
2391
  * @returns
2389
2392
  */
2390
- function GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize) {
2393
+ function GetListCacheKey(type, entityId, expandSettings, pageIndex, pageSize, search) {
2391
2394
  if (!expandSettings) {
2392
2395
  expandSettings = false;
2393
2396
  }
2394
2397
  if (!entityId) {
2395
2398
  entityId = "";
2396
2399
  }
2400
+ if (!search) {
2401
+ search = "";
2402
+ }
2397
2403
  if (!pageIndex) {
2398
2404
  pageIndex = 0;
2399
2405
  }
2400
2406
  if (!pageSize) {
2401
2407
  pageSize = 0;
2402
2408
  }
2403
- return Api.ECacheKey.AnnDocument + type + entityId + expandSettings + pageIndex + "_" + pageSize;
2409
+ return Api.ECacheKey.AnnDocument + type + entityId + expandSettings + pageIndex + "_" + pageSize + "_" + search;
2404
2410
  }
2405
2411
  AnnDocument.GetListCacheKey = GetListCacheKey;
2406
2412
  })(AnnDocument || (AnnDocument = {}));
@@ -3205,6 +3211,8 @@ var EntityAttribute;
3205
3211
  EType["Url"] = "Url";
3206
3212
  // Serial number that increments for each new entity/missing-attr-value.
3207
3213
  EType["Serial"] = "Serial";
3214
+ // Number ID or string hotspot-key lookup.
3215
+ EType["DocumentView"] = "DocumentView";
3208
3216
  })(EType = EntityAttribute.EType || (EntityAttribute.EType = {}));
3209
3217
  /**
3210
3218
  * Describes url open behavior.
@@ -18217,7 +18225,7 @@ var ChangeSet;
18217
18225
  })(ChangeSet || (ChangeSet = {}));
18218
18226
 
18219
18227
  // This is updated with the package.json version on build.
18220
- const VERSION = "7.1.34";
18228
+ const VERSION = "7.1.35";
18221
18229
 
18222
18230
  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, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, DashboardView, 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, DataTransform, DataLabGroup, DataFeed, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportLcc, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
18223
18231
  //# sourceMappingURL=bruce-models.es5.js.map