bruce-models 7.1.101 → 7.1.102

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.
@@ -5647,9 +5647,21 @@ var EntityHistoricData;
5647
5647
  body["Scenario"] = scenario;
5648
5648
  }
5649
5649
  const res = yield api.POST("v3/entities/historic", body, Api.PrepReqParams(req));
5650
- const entityIds = records.map(r => r["Entity.ID"]).filter((v, i, a) => v && a.indexOf(v) === i);
5650
+ const seenIds = new Set();
5651
+ const entityIds = records.map(r => r["Entity.ID"]).filter(v => {
5652
+ if (!v || seenIds.has(v))
5653
+ return false;
5654
+ seenIds.add(v);
5655
+ return true;
5656
+ });
5651
5657
  ClearCacheByEntityIds(api, entityIds);
5652
- for (const attrKey of records.map(r => r.AttrKey).filter((v, i, a) => v && a.indexOf(v) === i)) {
5658
+ const seenKeys = new Set();
5659
+ for (const attrKey of records.map(r => r.AttrKey).filter(v => {
5660
+ if (!v || seenKeys.has(v))
5661
+ return false;
5662
+ seenKeys.add(v);
5663
+ return true;
5664
+ })) {
5653
5665
  api.Cache.RemoveByContains(Entity.GetHistoricContainsKey(attrKey));
5654
5666
  }
5655
5667
  return {
@@ -24099,7 +24111,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
24099
24111
  }
24100
24112
 
24101
24113
  // This is updated with the package.json version on build.
24102
- const VERSION = "7.1.101";
24114
+ const VERSION = "7.1.102";
24103
24115
 
24104
24116
  export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileValueMap, 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, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, 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, WorkflowType, WorkflowItemType };
24105
24117
  //# sourceMappingURL=bruce-models.es5.js.map