bruce-models 7.1.66 → 7.1.67

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.
@@ -8870,12 +8870,12 @@ var ClientFile;
8870
8870
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
8871
8871
  return cache.data;
8872
8872
  }
8873
+ // Hack: API isn't returning the right file so we're adding to page size and filtering again on client. Patch ASAP.
8873
8874
  const prom = (() => __awaiter(this, void 0, void 0, function* () {
8874
- var _a;
8875
8875
  const res = yield GetList({
8876
8876
  api,
8877
8877
  filter: {
8878
- PageSize: 1,
8878
+ PageSize: 300,
8879
8879
  PageIndex: 0,
8880
8880
  Purpose: "Polygon Texture",
8881
8881
  FilterRows: [
@@ -8901,7 +8901,13 @@ var ClientFile;
8901
8901
  },
8902
8902
  req: reqParams
8903
8903
  });
8904
- return ((_a = res.clientFiles) === null || _a === void 0 ? void 0 : _a[0]) || null;
8904
+ const match = (res.clientFiles || []).find((file) => {
8905
+ var _a;
8906
+ const generation = (_a = file === null || file === void 0 ? void 0 : file.Data) === null || _a === void 0 ? void 0 : _a.generation;
8907
+ return ((generation === null || generation === void 0 ? void 0 : generation["EntityType.Source.ID"]) === entityTypeSourceId &&
8908
+ (generation === null || generation === void 0 ? void 0 : generation.Attribute) === attribute);
8909
+ });
8910
+ return match || null;
8905
8911
  }))();
8906
8912
  api.SetCacheItem({
8907
8913
  key,
@@ -19575,7 +19581,7 @@ var UrlUtils;
19575
19581
  })(UrlUtils || (UrlUtils = {}));
19576
19582
 
19577
19583
  // This is updated with the package.json version on build.
19578
- const VERSION = "7.1.66";
19584
+ const VERSION = "7.1.67";
19579
19585
 
19580
19586
  export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, Ontology, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
19581
19587
  //# sourceMappingURL=bruce-models.es5.js.map