bruce-models 3.8.9 → 3.9.1
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 +27 -7
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +27 -7
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +26 -6
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +3 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3055,7 +3055,7 @@ var Entity;
|
|
|
3055
3055
|
*/
|
|
3056
3056
|
function Get(params) {
|
|
3057
3057
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3058
|
-
let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo } = params;
|
|
3058
|
+
let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3059
3059
|
if (!entityId) {
|
|
3060
3060
|
throw ("Entity ID is required.");
|
|
3061
3061
|
}
|
|
@@ -3069,7 +3069,8 @@ var Entity;
|
|
|
3069
3069
|
expandRelations,
|
|
3070
3070
|
historicFrom,
|
|
3071
3071
|
historicKey,
|
|
3072
|
-
historicTo
|
|
3072
|
+
historicTo,
|
|
3073
|
+
historicPoint
|
|
3073
3074
|
});
|
|
3074
3075
|
const cache = api.GetCacheItem(key, reqParams);
|
|
3075
3076
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -3087,6 +3088,18 @@ var Entity;
|
|
|
3087
3088
|
if (entityTypeId) {
|
|
3088
3089
|
urlParams.append("BruceEntityType", entityTypeId);
|
|
3089
3090
|
}
|
|
3091
|
+
if (historicKey) {
|
|
3092
|
+
urlParams.set("historicKey", historicKey);
|
|
3093
|
+
}
|
|
3094
|
+
if (historicFrom) {
|
|
3095
|
+
urlParams.set("historicFrom", historicFrom);
|
|
3096
|
+
}
|
|
3097
|
+
if (historicTo) {
|
|
3098
|
+
urlParams.set("historicTo", historicTo);
|
|
3099
|
+
}
|
|
3100
|
+
if (historicPoint) {
|
|
3101
|
+
urlParams.set("historicPoint", historicPoint);
|
|
3102
|
+
}
|
|
3090
3103
|
const data = yield api.GET(`entity/${entityId}?${urlParams.toString()}`, Api.PrepReqParams(reqParams));
|
|
3091
3104
|
res({
|
|
3092
3105
|
entity: data
|
|
@@ -3440,7 +3453,7 @@ var Entity;
|
|
|
3440
3453
|
function GetList(params) {
|
|
3441
3454
|
var _a;
|
|
3442
3455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3443
|
-
let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo } = params;
|
|
3456
|
+
let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3444
3457
|
if (!api) {
|
|
3445
3458
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3446
3459
|
}
|
|
@@ -3479,7 +3492,8 @@ var Entity;
|
|
|
3479
3492
|
PageSize: filter.pageSize,
|
|
3480
3493
|
historicKey: historicKey,
|
|
3481
3494
|
historicFrom: historicFrom,
|
|
3482
|
-
historicTo: historicTo
|
|
3495
|
+
historicTo: historicTo,
|
|
3496
|
+
historicPoint: historicPoint
|
|
3483
3497
|
};
|
|
3484
3498
|
let totalCount;
|
|
3485
3499
|
let entities = [];
|
|
@@ -3529,6 +3543,9 @@ var Entity;
|
|
|
3529
3543
|
if (historicTo) {
|
|
3530
3544
|
urlParams.set("historicTo", historicTo);
|
|
3531
3545
|
}
|
|
3546
|
+
if (historicPoint) {
|
|
3547
|
+
urlParams.set("historicPoint", historicPoint);
|
|
3548
|
+
}
|
|
3532
3549
|
const urlStr = url.toString() + "?" + urlParams.toString();
|
|
3533
3550
|
const data = yield api.get(urlStr, Api.PrepReqParams(reqParams));
|
|
3534
3551
|
if (!analysis) {
|
|
@@ -3706,7 +3723,7 @@ var Entity;
|
|
|
3706
3723
|
* @returns
|
|
3707
3724
|
*/
|
|
3708
3725
|
function GetCacheKey(params) {
|
|
3709
|
-
let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo } = params;
|
|
3726
|
+
let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3710
3727
|
if (!entityTypeId) {
|
|
3711
3728
|
entityTypeId = "";
|
|
3712
3729
|
}
|
|
@@ -3719,9 +3736,12 @@ var Entity;
|
|
|
3719
3736
|
if (!historicTo) {
|
|
3720
3737
|
historicTo = "";
|
|
3721
3738
|
}
|
|
3739
|
+
if (!historicPoint) {
|
|
3740
|
+
historicPoint = "";
|
|
3741
|
+
}
|
|
3722
3742
|
let key = `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
|
|
3723
3743
|
key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
3724
|
-
key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}
|
|
3744
|
+
key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
|
|
3725
3745
|
return key;
|
|
3726
3746
|
}
|
|
3727
3747
|
Entity.GetCacheKey = GetCacheKey;
|
|
@@ -11397,7 +11417,7 @@ var DataSource;
|
|
|
11397
11417
|
})(DataSource || (DataSource = {}));
|
|
11398
11418
|
|
|
11399
11419
|
// This is updated with the package.json version on build.
|
|
11400
|
-
const VERSION = "3.
|
|
11420
|
+
const VERSION = "3.9.1";
|
|
11401
11421
|
|
|
11402
11422
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
11403
11423
|
//# sourceMappingURL=bruce-models.es5.js.map
|