bruce-models 6.1.5 → 6.1.7
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 +49 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +49 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/data-lab/data-lab.js +4 -0
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/entity/entity.js +44 -3
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/client-file/client-file.d.ts +13 -0
- package/dist/types/data-lab/data-lab.d.ts +1 -0
- package/dist/types/entity/entity.d.ts +6 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3526,18 +3526,24 @@ var Entity;
|
|
|
3526
3526
|
*/
|
|
3527
3527
|
function Get(params) {
|
|
3528
3528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3529
|
-
let { api, entityId, scenario, migrated, schemaId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3529
|
+
let { api, entityId, scenario, migrated, schemaId, req: reqParams, expandLocation, expandRelations, expandAttachments, expandLODs, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3530
3530
|
if (!entityId) {
|
|
3531
3531
|
throw ("Entity ID is required.");
|
|
3532
3532
|
}
|
|
3533
3533
|
if (!api) {
|
|
3534
3534
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3535
3535
|
}
|
|
3536
|
+
if (migrated == null || migrated == undefined) {
|
|
3537
|
+
// Changed to default = true. 18th April 2025.
|
|
3538
|
+
migrated = true;
|
|
3539
|
+
}
|
|
3536
3540
|
const key = GetCacheKey({
|
|
3537
3541
|
entityId,
|
|
3538
3542
|
entityTypeId,
|
|
3539
3543
|
expandLocation,
|
|
3540
3544
|
expandRelations,
|
|
3545
|
+
expandAttachments,
|
|
3546
|
+
expandLODs,
|
|
3541
3547
|
historicFrom,
|
|
3542
3548
|
historicKey,
|
|
3543
3549
|
historicTo,
|
|
@@ -3562,9 +3568,18 @@ var Entity;
|
|
|
3562
3568
|
}
|
|
3563
3569
|
expand += "relation";
|
|
3564
3570
|
}
|
|
3571
|
+
if (expandAttachments) {
|
|
3572
|
+
if (expand) {
|
|
3573
|
+
expand += ",";
|
|
3574
|
+
}
|
|
3575
|
+
expand += "attachment";
|
|
3576
|
+
}
|
|
3565
3577
|
if (expand) {
|
|
3566
3578
|
urlParams.append("$expand", expand);
|
|
3567
3579
|
}
|
|
3580
|
+
if (expandLODs) {
|
|
3581
|
+
urlParams.append("LODType", "*");
|
|
3582
|
+
}
|
|
3568
3583
|
if (entityTypeId) {
|
|
3569
3584
|
urlParams.append("BruceEntityType", entityTypeId);
|
|
3570
3585
|
}
|
|
@@ -3612,18 +3627,24 @@ var Entity;
|
|
|
3612
3627
|
*/
|
|
3613
3628
|
function GetListByIds(params) {
|
|
3614
3629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3615
|
-
let { api, entityIds, scenario, migrated, schemaId, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint, expandSources, expandImports, maxSearchTimeSec } = params;
|
|
3630
|
+
let { api, entityIds, scenario, migrated, schemaId, req: reqParams, expandAttachments, expandLODs, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint, expandSources, expandImports, maxSearchTimeSec } = params;
|
|
3616
3631
|
if (!entityIds.length) {
|
|
3617
3632
|
throw ("Entity IDs are required.");
|
|
3618
3633
|
}
|
|
3619
3634
|
if (!api) {
|
|
3620
3635
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3621
3636
|
}
|
|
3637
|
+
if (migrated == null || migrated == undefined) {
|
|
3638
|
+
// Changed to default = true. 18th April 2025.
|
|
3639
|
+
migrated = true;
|
|
3640
|
+
}
|
|
3622
3641
|
const cacheKeyData = {
|
|
3623
3642
|
expandLocation,
|
|
3624
3643
|
expandRelations,
|
|
3625
3644
|
expandImports,
|
|
3626
3645
|
expandSources,
|
|
3646
|
+
expandAttachments,
|
|
3647
|
+
expandLODs,
|
|
3627
3648
|
entityTypeId: null,
|
|
3628
3649
|
historicFrom: historicFrom,
|
|
3629
3650
|
historicKey: historicKey,
|
|
@@ -3672,6 +3693,17 @@ var Entity;
|
|
|
3672
3693
|
reqData["Expand"] = "import";
|
|
3673
3694
|
}
|
|
3674
3695
|
}
|
|
3696
|
+
if (expandAttachments) {
|
|
3697
|
+
if (reqData["Expand"]) {
|
|
3698
|
+
reqData["Expand"] += ",attachment";
|
|
3699
|
+
}
|
|
3700
|
+
else {
|
|
3701
|
+
reqData["Expand"] = "attachment";
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
if (expandLODs) {
|
|
3705
|
+
reqData["LODType"] = "*";
|
|
3706
|
+
}
|
|
3675
3707
|
if (expandSources) {
|
|
3676
3708
|
reqData["ExpandSources"] = true;
|
|
3677
3709
|
}
|
|
@@ -3798,6 +3830,10 @@ var Entity;
|
|
|
3798
3830
|
var _a, _b, _c, _d, _e;
|
|
3799
3831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3800
3832
|
let { api, entity: data, entities, override, req: reqParams, migrated } = params;
|
|
3833
|
+
if (migrated == null || migrated == undefined) {
|
|
3834
|
+
// Changed to default = true. 18th April 2025.
|
|
3835
|
+
migrated = true;
|
|
3836
|
+
}
|
|
3801
3837
|
// Bulk save.
|
|
3802
3838
|
if (entities === null || entities === void 0 ? void 0 : entities.length) {
|
|
3803
3839
|
// If the Entities don't have IDs, then they must have a Type ID.
|
|
@@ -4131,6 +4167,10 @@ var Entity;
|
|
|
4131
4167
|
if (!api) {
|
|
4132
4168
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
4133
4169
|
}
|
|
4170
|
+
if (migrated == null || migrated == undefined) {
|
|
4171
|
+
// Changed to default = true. 18th April 2025.
|
|
4172
|
+
migrated = true;
|
|
4173
|
+
}
|
|
4134
4174
|
let requestFilter = {};
|
|
4135
4175
|
if (!filter) {
|
|
4136
4176
|
filter = {};
|
|
@@ -4415,7 +4455,7 @@ var Entity;
|
|
|
4415
4455
|
* @returns
|
|
4416
4456
|
*/
|
|
4417
4457
|
function GetCacheKey(params) {
|
|
4418
|
-
let { entityId, scenario: scenarioId, entityTypeId, schemaId, expandLocation, expandRelations, expandImports, expandSources, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
4458
|
+
let { entityId, scenario: scenarioId, entityTypeId, schemaId, expandLocation, expandRelations, expandImports, expandAttachments, expandLODs, expandSources, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
4419
4459
|
if (!scenarioId) {
|
|
4420
4460
|
scenarioId = 0;
|
|
4421
4461
|
}
|
|
@@ -4440,6 +4480,7 @@ var Entity;
|
|
|
4440
4480
|
}
|
|
4441
4481
|
let key = `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${schemaId}`;
|
|
4442
4482
|
key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}${String(Boolean(expandSources))}${String(Boolean(expandImports))}`;
|
|
4483
|
+
key += `${String(Boolean(expandAttachments))}${String(Boolean(expandLODs))}`;
|
|
4443
4484
|
key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
|
|
4444
4485
|
key += `${Api.ECacheKey.Id}${scenarioId}`;
|
|
4445
4486
|
return key;
|
|
@@ -14540,6 +14581,10 @@ var DataLab;
|
|
|
14540
14581
|
if (!load) {
|
|
14541
14582
|
load = 50;
|
|
14542
14583
|
}
|
|
14584
|
+
if (migrated == null || migrated == undefined) {
|
|
14585
|
+
// Changed to default = true. 18th April 2025.
|
|
14586
|
+
migrated = true;
|
|
14587
|
+
}
|
|
14543
14588
|
let url = null;
|
|
14544
14589
|
if (analysis) {
|
|
14545
14590
|
url = "entities/datalab/getMatchesCount/PrimarySelection";
|
|
@@ -15862,7 +15907,7 @@ var Tracking;
|
|
|
15862
15907
|
})(Tracking || (Tracking = {}));
|
|
15863
15908
|
|
|
15864
15909
|
// This is updated with the package.json version on build.
|
|
15865
|
-
const VERSION = "6.1.
|
|
15910
|
+
const VERSION = "6.1.7";
|
|
15866
15911
|
|
|
15867
15912
|
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 };
|
|
15868
15913
|
//# sourceMappingURL=bruce-models.es5.js.map
|