bruce-models 6.4.1 → 6.4.3

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.
@@ -3588,6 +3588,11 @@ var EntityHistoricData;
3588
3588
  */
3589
3589
  var Entity;
3590
3590
  (function (Entity) {
3591
+ let EOutlineKind;
3592
+ (function (EOutlineKind) {
3593
+ EOutlineKind["Entity"] = "ENTITY";
3594
+ EOutlineKind["Attribute"] = "ATTRIBUTE";
3595
+ })(EOutlineKind = Entity.EOutlineKind || (Entity.EOutlineKind = {}));
3591
3596
  /**
3592
3597
  * Returns an entity record for the given entity id.
3593
3598
  * @param params
@@ -3644,7 +3649,7 @@ var Entity;
3644
3649
  expand += "attachment";
3645
3650
  }
3646
3651
  if (expand) {
3647
- urlParams.append("$expand", expand);
3652
+ urlParams.append("Expand", expand);
3648
3653
  }
3649
3654
  if (expandLODs) {
3650
3655
  urlParams.append("LODType", "*");
@@ -4083,7 +4088,7 @@ var Entity;
4083
4088
  value = checkForValue(["Bruce", "AssemblyWorldPosition"].concat(path.slice(1)));
4084
4089
  }
4085
4090
  else if (path[0] == "tilesetID") {
4086
- value = checkForValue(["Bruce", "TilesetIDs"].concat(path.slice(1)));
4091
+ value = checkForValue(["Bruce", "Tileset.ID"].concat(path.slice(1)));
4087
4092
  }
4088
4093
  else if (path[0] == "geometryRadius") {
4089
4094
  value = checkForValue(["Bruce", "GeometryRadius"].concat(path.slice(1)));
@@ -4111,7 +4116,7 @@ var Entity;
4111
4116
  else if (path[1] == "AssemblyWorldPosition") {
4112
4117
  value = checkForValue(["worldPosition"].concat(path.slice(2)));
4113
4118
  }
4114
- else if (path[1] == "TilesetIDs") {
4119
+ else if (path[1] == "Tileset.ID") {
4115
4120
  value = checkForValue(["tilesetID"].concat(path.slice(2)));
4116
4121
  }
4117
4122
  else if (path[1] == "GeometryRadius") {
@@ -4338,17 +4343,33 @@ var Entity;
4338
4343
  if (body.PageSize) {
4339
4344
  urlParams.set("PageSize", String(body.PageSize));
4340
4345
  }
4346
+ let expand = "";
4341
4347
  if (expandRelations) {
4342
- urlParams.append("$expand", "relation");
4348
+ if (expand.length) {
4349
+ expand += ",";
4350
+ }
4351
+ expand += "Relation";
4343
4352
  }
4344
4353
  if (expandLocation) {
4345
- urlParams.append("$expand", "location");
4354
+ if (expand.length) {
4355
+ expand += ",";
4356
+ }
4357
+ expand += "Location";
4346
4358
  }
4347
4359
  if (expandImports) {
4348
- urlParams.append("$expand", "import");
4360
+ if (expand.length) {
4361
+ expand += ",";
4362
+ }
4363
+ expand += "Import";
4349
4364
  }
4350
4365
  if (expandSources) {
4351
- urlParams.append("ExpandSources", "true");
4366
+ if (expand.length) {
4367
+ expand += ",";
4368
+ }
4369
+ expand += "Source";
4370
+ }
4371
+ if (expand.length) {
4372
+ urlParams.append("Expand", expand);
4352
4373
  }
4353
4374
  if (historicKey) {
4354
4375
  urlParams.set("historicKey", historicKey);
@@ -4373,8 +4394,6 @@ var Entity;
4373
4394
  }
4374
4395
  urlParams.set("hasMigrated", String(Boolean(migrated)));
4375
4396
  let url = analysis ? "entities/summary" : "entities";
4376
- // Adding url params here because this will avoid making them encoded.
4377
- // Our API isn't decoding them properly so $expand is not being recognized.
4378
4397
  url += "?" + urlParams.toString();
4379
4398
  const urlStr = api.ConstructUrl({
4380
4399
  cdn: !analysis && viaCdn,
@@ -4393,14 +4412,27 @@ var Entity;
4393
4412
  }
4394
4413
  else {
4395
4414
  const urlParams = new URLSearchParams();
4415
+ let expand = "";
4396
4416
  if (expandRelations) {
4397
- urlParams.append("$expand", "relation");
4417
+ if (expand.length) {
4418
+ expand += ",";
4419
+ }
4420
+ expand += "Relation";
4398
4421
  }
4399
4422
  if (expandLocation) {
4400
- urlParams.append("$expand", "location");
4423
+ if (expand.length) {
4424
+ expand += ",";
4425
+ }
4426
+ expand += "Location";
4401
4427
  }
4402
4428
  if (expandImports) {
4403
- urlParams.append("$expand", "import");
4429
+ if (expand.length) {
4430
+ expand += ",";
4431
+ }
4432
+ expand += "Import";
4433
+ }
4434
+ if (expand.length) {
4435
+ urlParams.append("Expand", expand);
4404
4436
  }
4405
4437
  if (schemaId) {
4406
4438
  urlParams.set("schema", schemaId);
@@ -15997,7 +16029,7 @@ var Tracking;
15997
16029
  })(Tracking || (Tracking = {}));
15998
16030
 
15999
16031
  // This is updated with the package.json version on build.
16000
- const VERSION = "6.4.1";
16032
+ const VERSION = "6.4.3";
16001
16033
 
16002
16034
  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, 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 };
16003
16035
  //# sourceMappingURL=bruce-models.es5.js.map