bruce-models 6.4.0 → 6.4.2

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") {
@@ -4310,6 +4315,8 @@ var Entity;
4310
4315
  let totalCount;
4311
4316
  let entities = [];
4312
4317
  let imports;
4318
+ let sources;
4319
+ let entityTypeSources;
4313
4320
  let nextPage;
4314
4321
  let nextPageUrl;
4315
4322
  if (analysis || expandRelations || (viaCdn && api.GetCdnBaseUrl())) {
@@ -4336,17 +4343,33 @@ var Entity;
4336
4343
  if (body.PageSize) {
4337
4344
  urlParams.set("PageSize", String(body.PageSize));
4338
4345
  }
4346
+ let expand = "";
4339
4347
  if (expandRelations) {
4340
- urlParams.append("$expand", "relation");
4348
+ if (expand.length) {
4349
+ expand += ",";
4350
+ }
4351
+ expand += "Relation";
4341
4352
  }
4342
4353
  if (expandLocation) {
4343
- urlParams.append("$expand", "location");
4354
+ if (expand.length) {
4355
+ expand += ",";
4356
+ }
4357
+ expand += "Location";
4344
4358
  }
4345
4359
  if (expandImports) {
4346
- urlParams.append("$expand", "import");
4360
+ if (expand.length) {
4361
+ expand += ",";
4362
+ }
4363
+ expand += "Import";
4347
4364
  }
4348
4365
  if (expandSources) {
4349
- urlParams.append("ExpandSources", "true");
4366
+ if (expand.length) {
4367
+ expand += ",";
4368
+ }
4369
+ expand += "Source";
4370
+ }
4371
+ if (expand.length) {
4372
+ urlParams.append("Expand", expand);
4350
4373
  }
4351
4374
  if (historicKey) {
4352
4375
  urlParams.set("historicKey", historicKey);
@@ -4371,8 +4394,6 @@ var Entity;
4371
4394
  }
4372
4395
  urlParams.set("hasMigrated", String(Boolean(migrated)));
4373
4396
  let url = analysis ? "entities/summary" : "entities";
4374
- // Adding url params here because this will avoid making them encoded.
4375
- // Our API isn't decoding them properly so $expand is not being recognized.
4376
4397
  url += "?" + urlParams.toString();
4377
4398
  const urlStr = api.ConstructUrl({
4378
4399
  cdn: !analysis && viaCdn,
@@ -4384,19 +4405,34 @@ var Entity;
4384
4405
  }
4385
4406
  totalCount = data.TotalCount;
4386
4407
  imports = data.Imports;
4408
+ sources = data.Source;
4409
+ entityTypeSources = data["EntityType.Source"];
4387
4410
  nextPage = data.NextPage;
4388
4411
  nextPageUrl = data.NextPageURL;
4389
4412
  }
4390
4413
  else {
4391
4414
  const urlParams = new URLSearchParams();
4415
+ let expand = "";
4392
4416
  if (expandRelations) {
4393
- urlParams.append("$expand", "relation");
4417
+ if (expand.length) {
4418
+ expand += ",";
4419
+ }
4420
+ expand += "Relation";
4394
4421
  }
4395
4422
  if (expandLocation) {
4396
- urlParams.append("$expand", "location");
4423
+ if (expand.length) {
4424
+ expand += ",";
4425
+ }
4426
+ expand += "Location";
4397
4427
  }
4398
4428
  if (expandImports) {
4399
- urlParams.append("$expand", "import");
4429
+ if (expand.length) {
4430
+ expand += ",";
4431
+ }
4432
+ expand += "Import";
4433
+ }
4434
+ if (expand.length) {
4435
+ urlParams.append("Expand", expand);
4400
4436
  }
4401
4437
  if (schemaId) {
4402
4438
  urlParams.set("schema", schemaId);
@@ -4449,6 +4485,8 @@ var Entity;
4449
4485
  imports = data.Imports;
4450
4486
  nextPage = data.NextPage;
4451
4487
  nextPageUrl = data.NextPageURL;
4488
+ sources = data.Source;
4489
+ entityTypeSources = data["EntityType.Source"];
4452
4490
  }
4453
4491
  // Callback to get the next page.
4454
4492
  let getNextPage;
@@ -4473,7 +4511,9 @@ var Entity;
4473
4511
  imports: data.Imports,
4474
4512
  nextPage: data.NextPage,
4475
4513
  nextPageUrl: data.NextPageURL,
4476
- getNextPage: nextPageUrl ? getNextPage : null
4514
+ getNextPage: nextPageUrl ? getNextPage : null,
4515
+ sources: data.Source,
4516
+ entityTypeSources: data["EntityType.Source"]
4477
4517
  };
4478
4518
  });
4479
4519
  }
@@ -4483,7 +4523,9 @@ var Entity;
4483
4523
  imports,
4484
4524
  nextPage,
4485
4525
  nextPageUrl,
4486
- getNextPage
4526
+ getNextPage,
4527
+ sources,
4528
+ entityTypeSources
4487
4529
  };
4488
4530
  });
4489
4531
  }
@@ -15987,7 +16029,7 @@ var Tracking;
15987
16029
  })(Tracking || (Tracking = {}));
15988
16030
 
15989
16031
  // This is updated with the package.json version on build.
15990
- const VERSION = "6.4.0";
16032
+ const VERSION = "6.4.2";
15991
16033
 
15992
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 };
15993
16035
  //# sourceMappingURL=bruce-models.es5.js.map