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.
- package/dist/bruce-models.es5.js +45 -13
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +45 -13
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +44 -12
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/account/account-invite.d.ts +1 -2
- package/dist/types/assembly/assembly.d.ts +2 -3
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/client-file/client-file.d.ts +2 -3
- package/dist/types/data-lab/data-lab.d.ts +2 -3
- package/dist/types/entity/entity-comment.d.ts +1 -2
- package/dist/types/entity/entity-type.d.ts +2 -3
- package/dist/types/entity/entity.d.ts +29 -15
- package/dist/types/entity-type-model/comment.d.ts +1 -2
- package/dist/types/plugin/plugin.d.ts +2 -3
- package/dist/types/project/project-view-bookmark.d.ts +2 -3
- package/dist/types/project/project-view-legacy-bookmark.d.ts +2 -3
- package/dist/types/project/project-view.d.ts +2 -3
- package/dist/types/server/pending-action.d.ts +4 -5
- package/dist/types/tileset/tileset.d.ts +3 -4
- package/dist/types/tracking/tracking.d.ts +1 -2
- package/dist/types/user/session.d.ts +1 -2
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3539,6 +3539,11 @@
|
|
|
3539
3539
|
})(exports.EntityHistoricData || (exports.EntityHistoricData = {}));
|
|
3540
3540
|
|
|
3541
3541
|
(function (Entity) {
|
|
3542
|
+
let EOutlineKind;
|
|
3543
|
+
(function (EOutlineKind) {
|
|
3544
|
+
EOutlineKind["Entity"] = "ENTITY";
|
|
3545
|
+
EOutlineKind["Attribute"] = "ATTRIBUTE";
|
|
3546
|
+
})(EOutlineKind = Entity.EOutlineKind || (Entity.EOutlineKind = {}));
|
|
3542
3547
|
/**
|
|
3543
3548
|
* Returns an entity record for the given entity id.
|
|
3544
3549
|
* @param params
|
|
@@ -3595,7 +3600,7 @@
|
|
|
3595
3600
|
expand += "attachment";
|
|
3596
3601
|
}
|
|
3597
3602
|
if (expand) {
|
|
3598
|
-
urlParams.append("
|
|
3603
|
+
urlParams.append("Expand", expand);
|
|
3599
3604
|
}
|
|
3600
3605
|
if (expandLODs) {
|
|
3601
3606
|
urlParams.append("LODType", "*");
|
|
@@ -4034,7 +4039,7 @@
|
|
|
4034
4039
|
value = checkForValue(["Bruce", "AssemblyWorldPosition"].concat(path.slice(1)));
|
|
4035
4040
|
}
|
|
4036
4041
|
else if (path[0] == "tilesetID") {
|
|
4037
|
-
value = checkForValue(["Bruce", "
|
|
4042
|
+
value = checkForValue(["Bruce", "Tileset.ID"].concat(path.slice(1)));
|
|
4038
4043
|
}
|
|
4039
4044
|
else if (path[0] == "geometryRadius") {
|
|
4040
4045
|
value = checkForValue(["Bruce", "GeometryRadius"].concat(path.slice(1)));
|
|
@@ -4062,7 +4067,7 @@
|
|
|
4062
4067
|
else if (path[1] == "AssemblyWorldPosition") {
|
|
4063
4068
|
value = checkForValue(["worldPosition"].concat(path.slice(2)));
|
|
4064
4069
|
}
|
|
4065
|
-
else if (path[1] == "
|
|
4070
|
+
else if (path[1] == "Tileset.ID") {
|
|
4066
4071
|
value = checkForValue(["tilesetID"].concat(path.slice(2)));
|
|
4067
4072
|
}
|
|
4068
4073
|
else if (path[1] == "GeometryRadius") {
|
|
@@ -4289,17 +4294,33 @@
|
|
|
4289
4294
|
if (body.PageSize) {
|
|
4290
4295
|
urlParams.set("PageSize", String(body.PageSize));
|
|
4291
4296
|
}
|
|
4297
|
+
let expand = "";
|
|
4292
4298
|
if (expandRelations) {
|
|
4293
|
-
|
|
4299
|
+
if (expand.length) {
|
|
4300
|
+
expand += ",";
|
|
4301
|
+
}
|
|
4302
|
+
expand += "Relation";
|
|
4294
4303
|
}
|
|
4295
4304
|
if (expandLocation) {
|
|
4296
|
-
|
|
4305
|
+
if (expand.length) {
|
|
4306
|
+
expand += ",";
|
|
4307
|
+
}
|
|
4308
|
+
expand += "Location";
|
|
4297
4309
|
}
|
|
4298
4310
|
if (expandImports) {
|
|
4299
|
-
|
|
4311
|
+
if (expand.length) {
|
|
4312
|
+
expand += ",";
|
|
4313
|
+
}
|
|
4314
|
+
expand += "Import";
|
|
4300
4315
|
}
|
|
4301
4316
|
if (expandSources) {
|
|
4302
|
-
|
|
4317
|
+
if (expand.length) {
|
|
4318
|
+
expand += ",";
|
|
4319
|
+
}
|
|
4320
|
+
expand += "Source";
|
|
4321
|
+
}
|
|
4322
|
+
if (expand.length) {
|
|
4323
|
+
urlParams.append("Expand", expand);
|
|
4303
4324
|
}
|
|
4304
4325
|
if (historicKey) {
|
|
4305
4326
|
urlParams.set("historicKey", historicKey);
|
|
@@ -4324,8 +4345,6 @@
|
|
|
4324
4345
|
}
|
|
4325
4346
|
urlParams.set("hasMigrated", String(Boolean(migrated)));
|
|
4326
4347
|
let url = analysis ? "entities/summary" : "entities";
|
|
4327
|
-
// Adding url params here because this will avoid making them encoded.
|
|
4328
|
-
// Our API isn't decoding them properly so $expand is not being recognized.
|
|
4329
4348
|
url += "?" + urlParams.toString();
|
|
4330
4349
|
const urlStr = api.ConstructUrl({
|
|
4331
4350
|
cdn: !analysis && viaCdn,
|
|
@@ -4344,14 +4363,27 @@
|
|
|
4344
4363
|
}
|
|
4345
4364
|
else {
|
|
4346
4365
|
const urlParams = new URLSearchParams();
|
|
4366
|
+
let expand = "";
|
|
4347
4367
|
if (expandRelations) {
|
|
4348
|
-
|
|
4368
|
+
if (expand.length) {
|
|
4369
|
+
expand += ",";
|
|
4370
|
+
}
|
|
4371
|
+
expand += "Relation";
|
|
4349
4372
|
}
|
|
4350
4373
|
if (expandLocation) {
|
|
4351
|
-
|
|
4374
|
+
if (expand.length) {
|
|
4375
|
+
expand += ",";
|
|
4376
|
+
}
|
|
4377
|
+
expand += "Location";
|
|
4352
4378
|
}
|
|
4353
4379
|
if (expandImports) {
|
|
4354
|
-
|
|
4380
|
+
if (expand.length) {
|
|
4381
|
+
expand += ",";
|
|
4382
|
+
}
|
|
4383
|
+
expand += "Import";
|
|
4384
|
+
}
|
|
4385
|
+
if (expand.length) {
|
|
4386
|
+
urlParams.append("Expand", expand);
|
|
4355
4387
|
}
|
|
4356
4388
|
if (schemaId) {
|
|
4357
4389
|
urlParams.set("schema", schemaId);
|
|
@@ -15683,7 +15715,7 @@
|
|
|
15683
15715
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
15684
15716
|
|
|
15685
15717
|
// This is updated with the package.json version on build.
|
|
15686
|
-
const VERSION = "6.4.
|
|
15718
|
+
const VERSION = "6.4.3";
|
|
15687
15719
|
|
|
15688
15720
|
exports.VERSION = VERSION;
|
|
15689
15721
|
exports.AbstractApi = AbstractApi;
|