bruce-models 6.9.6 → 6.9.8
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 +44 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +44 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +32 -4
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/lib/plugin/plugin.js +11 -4
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +2 -0
- package/dist/types/plugin/plugin.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4378,7 +4378,7 @@ var Entity;
|
|
|
4378
4378
|
function GetList(params) {
|
|
4379
4379
|
var _a;
|
|
4380
4380
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4381
|
-
let { api, filter, scenario, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, expandLocation, expandSources, expandComments, expandEntityType, expand: expandStr, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
|
|
4381
|
+
let { api, filter, scenario, migrated, schemaId, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, expandImports, expandLocation, expandSources, expandComments, expandEntityType, expand: expandStr, expandAttachments, historicFrom, historicKey, historicTo, historicPoint, maxSearchTimeSec } = params;
|
|
4382
4382
|
if (!api) {
|
|
4383
4383
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
4384
4384
|
}
|
|
@@ -4429,7 +4429,7 @@ var Entity;
|
|
|
4429
4429
|
ExpandSources: expandSources,
|
|
4430
4430
|
Scenario: scenario
|
|
4431
4431
|
};
|
|
4432
|
-
if (expandLocation || expandRelations || expandImports || expandEntityType || expandComments || expandStr) {
|
|
4432
|
+
if (expandLocation || expandRelations || expandImports || expandEntityType || expandComments || expandStr || expandAttachments) {
|
|
4433
4433
|
let expand = "";
|
|
4434
4434
|
if (expandLocation) {
|
|
4435
4435
|
expand += "location";
|
|
@@ -4458,6 +4458,12 @@ var Entity;
|
|
|
4458
4458
|
}
|
|
4459
4459
|
expand += "comment";
|
|
4460
4460
|
}
|
|
4461
|
+
if (expandAttachments) {
|
|
4462
|
+
if (expand) {
|
|
4463
|
+
expand += ",";
|
|
4464
|
+
}
|
|
4465
|
+
expand += "attachment";
|
|
4466
|
+
}
|
|
4461
4467
|
if (expandStr) {
|
|
4462
4468
|
if (expand) {
|
|
4463
4469
|
expand += ",";
|
|
@@ -4473,6 +4479,7 @@ var Entity;
|
|
|
4473
4479
|
let imports;
|
|
4474
4480
|
let sources;
|
|
4475
4481
|
let entityTypeSources;
|
|
4482
|
+
let entityTypes;
|
|
4476
4483
|
let nextPage;
|
|
4477
4484
|
let nextPageUrl;
|
|
4478
4485
|
if (analysis || expandRelations || (viaCdn && api.GetCdnBaseUrl())) {
|
|
@@ -4536,6 +4543,12 @@ var Entity;
|
|
|
4536
4543
|
}
|
|
4537
4544
|
expand += "Comment";
|
|
4538
4545
|
}
|
|
4546
|
+
if (expandAttachments) {
|
|
4547
|
+
if (expand.length) {
|
|
4548
|
+
expand += ",";
|
|
4549
|
+
}
|
|
4550
|
+
expand += "Attachment";
|
|
4551
|
+
}
|
|
4539
4552
|
if (expandStr) {
|
|
4540
4553
|
if (expand.length) {
|
|
4541
4554
|
expand += ",";
|
|
@@ -4581,6 +4594,7 @@ var Entity;
|
|
|
4581
4594
|
imports = data.Imports;
|
|
4582
4595
|
sources = data.Source;
|
|
4583
4596
|
entityTypeSources = data["EntityType.Source"];
|
|
4597
|
+
entityTypes = data["EntityType"];
|
|
4584
4598
|
nextPage = data.NextPage;
|
|
4585
4599
|
nextPageUrl = data.NextPageURL;
|
|
4586
4600
|
}
|
|
@@ -4623,6 +4637,12 @@ var Entity;
|
|
|
4623
4637
|
}
|
|
4624
4638
|
expand += "Comment";
|
|
4625
4639
|
}
|
|
4640
|
+
if (expandAttachments) {
|
|
4641
|
+
if (expand.length) {
|
|
4642
|
+
expand += ",";
|
|
4643
|
+
}
|
|
4644
|
+
expand += "Attachment";
|
|
4645
|
+
}
|
|
4626
4646
|
if (expandStr) {
|
|
4627
4647
|
if (expand.length) {
|
|
4628
4648
|
expand += ",";
|
|
@@ -4665,6 +4685,11 @@ var Entity;
|
|
|
4665
4685
|
expandLocation,
|
|
4666
4686
|
expandImports,
|
|
4667
4687
|
expandSources,
|
|
4688
|
+
expandAttachments,
|
|
4689
|
+
expandEntityType,
|
|
4690
|
+
expandComments,
|
|
4691
|
+
expand: expandStr,
|
|
4692
|
+
historicPoint: historicPoint,
|
|
4668
4693
|
entityTypeId: typeIdCacheKey,
|
|
4669
4694
|
historicFrom: historicFrom,
|
|
4670
4695
|
historicKey: historicKey,
|
|
@@ -4685,6 +4710,7 @@ var Entity;
|
|
|
4685
4710
|
nextPageUrl = data.NextPageURL;
|
|
4686
4711
|
sources = data.Source;
|
|
4687
4712
|
entityTypeSources = data["EntityType.Source"];
|
|
4713
|
+
entityTypes = data["EntityType"];
|
|
4688
4714
|
}
|
|
4689
4715
|
// Callback to get the next page.
|
|
4690
4716
|
let getNextPage;
|
|
@@ -4711,7 +4737,8 @@ var Entity;
|
|
|
4711
4737
|
nextPageUrl: data.NextPageURL,
|
|
4712
4738
|
getNextPage: nextPageUrl ? getNextPage : null,
|
|
4713
4739
|
sources: data.Source,
|
|
4714
|
-
entityTypeSources: data["EntityType.Source"]
|
|
4740
|
+
entityTypeSources: data["EntityType.Source"],
|
|
4741
|
+
entityTypes: data["EntityType"]
|
|
4715
4742
|
};
|
|
4716
4743
|
});
|
|
4717
4744
|
}
|
|
@@ -4723,7 +4750,8 @@ var Entity;
|
|
|
4723
4750
|
nextPageUrl,
|
|
4724
4751
|
getNextPage,
|
|
4725
4752
|
sources,
|
|
4726
|
-
entityTypeSources
|
|
4753
|
+
entityTypeSources,
|
|
4754
|
+
entityTypes
|
|
4727
4755
|
};
|
|
4728
4756
|
});
|
|
4729
4757
|
}
|
|
@@ -16006,7 +16034,7 @@ var Plugin;
|
|
|
16006
16034
|
* @returns
|
|
16007
16035
|
*/
|
|
16008
16036
|
function GetLoadUrl(params) {
|
|
16009
|
-
let { api, pluginId, cacheKey } = params;
|
|
16037
|
+
let { api, pluginId, cacheKey, viaCdn } = params;
|
|
16010
16038
|
if (!api) {
|
|
16011
16039
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
16012
16040
|
}
|
|
@@ -16019,7 +16047,7 @@ var Plugin;
|
|
|
16019
16047
|
urlParams: {
|
|
16020
16048
|
"version": String(cacheKey)
|
|
16021
16049
|
},
|
|
16022
|
-
cdn:
|
|
16050
|
+
cdn: viaCdn
|
|
16023
16051
|
})
|
|
16024
16052
|
};
|
|
16025
16053
|
}
|
|
@@ -16130,7 +16158,8 @@ var Plugin;
|
|
|
16130
16158
|
const { indexFileUrl } = GetLoadUrl({
|
|
16131
16159
|
api,
|
|
16132
16160
|
pluginId,
|
|
16133
|
-
cacheKey: plugin.Version
|
|
16161
|
+
cacheKey: plugin.Version,
|
|
16162
|
+
viaCdn: !plugin.IsLoginRequired
|
|
16134
16163
|
});
|
|
16135
16164
|
req = Api.PrepReqParams(req);
|
|
16136
16165
|
const cacheData = api.GetCacheItem(GetIndexFileCacheKey(pluginId, indexFileUrl), req);
|
|
@@ -16139,7 +16168,13 @@ var Plugin;
|
|
|
16139
16168
|
fileContentProm = cacheData.data;
|
|
16140
16169
|
}
|
|
16141
16170
|
else {
|
|
16142
|
-
|
|
16171
|
+
const headers = {};
|
|
16172
|
+
if (plugin.IsLoginRequired) {
|
|
16173
|
+
headers[api.GetSessionHeader()] = api.GetSessionId();
|
|
16174
|
+
}
|
|
16175
|
+
fileContentProm = fetch(indexFileUrl, {
|
|
16176
|
+
headers: headers
|
|
16177
|
+
}).then((res) => res.text());
|
|
16143
16178
|
api.SetCacheItem({
|
|
16144
16179
|
key: GetIndexFileCacheKey(pluginId, indexFileUrl),
|
|
16145
16180
|
value: fileContentProm,
|
|
@@ -16952,7 +16987,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16952
16987
|
}
|
|
16953
16988
|
|
|
16954
16989
|
// This is updated with the package.json version on build.
|
|
16955
|
-
const VERSION = "6.9.
|
|
16990
|
+
const VERSION = "6.9.8";
|
|
16956
16991
|
|
|
16957
16992
|
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, UserMfaMethod, 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, NavigatorChatClient, NavigatorMcpWebSocketClient };
|
|
16958
16993
|
//# sourceMappingURL=bruce-models.es5.js.map
|