bruce-models 7.1.78 → 7.1.80

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.
@@ -9277,6 +9277,22 @@ var ClientFile;
9277
9277
  function GetFindGeneratedTextureCacheKey(entityTypeSourceId, attribute) {
9278
9278
  return `client-file-find-generated-texture-${entityTypeSourceId}-${attribute}`;
9279
9279
  }
9280
+ const GENERATED_TEXTURE_PURPOSE = "Polygon Texture, ValueMap";
9281
+ const GENERATED_TEXTURE_SOURCE_PATH = "generation/Identity/EntityTypeSourceID";
9282
+ const GENERATED_TEXTURE_ATTRIBUTE_PATH = "generation/Identity/Attribute";
9283
+ /**
9284
+ * Whether a file is the generated value map for this source and attribute.
9285
+ */
9286
+ function IsGeneratedTextureFor(file, entityTypeSourceId, attribute) {
9287
+ var _a, _b;
9288
+ const identity = (_b = (_a = file === null || file === void 0 ? void 0 : file.Data) === null || _a === void 0 ? void 0 : _a.generation) === null || _b === void 0 ? void 0 : _b.Identity;
9289
+ if (!identity) {
9290
+ return false;
9291
+ }
9292
+ // A source ID reaches us as a number from the API and as a string from a filter echo.
9293
+ return Number(identity.EntityTypeSourceID) === Number(entityTypeSourceId) && identity.Attribute === attribute;
9294
+ }
9295
+ ClientFile.IsGeneratedTextureFor = IsGeneratedTextureFor;
9280
9296
  /**
9281
9297
  * Returns a generated texture file for given source ID + attribute combination.
9282
9298
  */
@@ -9298,11 +9314,11 @@ var ClientFile;
9298
9314
  filter: {
9299
9315
  PageSize: 300,
9300
9316
  PageIndex: 0,
9301
- Purpose: "Polygon Texture",
9317
+ Purpose: GENERATED_TEXTURE_PURPOSE,
9302
9318
  FilterRows: [
9303
9319
  {
9304
9320
  column: Filter.EColumn.Data,
9305
- path: "generation/EntityType.Source.ID",
9321
+ path: GENERATED_TEXTURE_SOURCE_PATH,
9306
9322
  rowOperator: Filter.ERowOperator.AND,
9307
9323
  value: String(entityTypeSourceId),
9308
9324
  includes: true,
@@ -9311,7 +9327,7 @@ var ClientFile;
9311
9327
  },
9312
9328
  {
9313
9329
  column: Filter.EColumn.Data,
9314
- path: "generation/Attribute",
9330
+ path: GENERATED_TEXTURE_ATTRIBUTE_PATH,
9315
9331
  rowOperator: Filter.ERowOperator.AND,
9316
9332
  value: attribute,
9317
9333
  includes: true,
@@ -9322,12 +9338,7 @@ var ClientFile;
9322
9338
  },
9323
9339
  req: reqParams
9324
9340
  });
9325
- const match = (res.clientFiles || []).find((file) => {
9326
- var _a;
9327
- const generation = (_a = file === null || file === void 0 ? void 0 : file.Data) === null || _a === void 0 ? void 0 : _a.generation;
9328
- return ((generation === null || generation === void 0 ? void 0 : generation["EntityType.Source.ID"]) === entityTypeSourceId &&
9329
- (generation === null || generation === void 0 ? void 0 : generation.Attribute) === attribute);
9330
- });
9341
+ const match = (res.clientFiles || []).find((file) => IsGeneratedTextureFor(file, entityTypeSourceId, attribute));
9331
9342
  return match || null;
9332
9343
  }))();
9333
9344
  api.SetCacheItem({
@@ -20439,7 +20450,7 @@ var UrlUtils;
20439
20450
  })(UrlUtils || (UrlUtils = {}));
20440
20451
 
20441
20452
  // This is updated with the package.json version on build.
20442
- const VERSION = "7.1.78";
20453
+ const VERSION = "7.1.80";
20443
20454
 
20444
20455
  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, OntologyDocument, ENVIRONMENT, ExportBrz, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, 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 };
20445
20456
  //# sourceMappingURL=bruce-models.es5.js.map