bruce-models 3.8.8 → 3.9.0
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 +24 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +24 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +23 -4
- 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 +2 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -3387,7 +3387,7 @@
|
|
|
3387
3387
|
function GetList(params) {
|
|
3388
3388
|
var _a;
|
|
3389
3389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3390
|
-
let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo } = params;
|
|
3390
|
+
let { api, filter, req: reqParams, viaCdn, viaCdnCacheToken, analysis, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3391
3391
|
if (!api) {
|
|
3392
3392
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
3393
3393
|
}
|
|
@@ -3423,7 +3423,11 @@
|
|
|
3423
3423
|
LODType: filter.lodCategoryId,
|
|
3424
3424
|
BruceEntityType: filter.entityTypeId,
|
|
3425
3425
|
PageIndex: filter.pageIndex,
|
|
3426
|
-
PageSize: filter.pageSize
|
|
3426
|
+
PageSize: filter.pageSize,
|
|
3427
|
+
historicKey: historicKey,
|
|
3428
|
+
historicFrom: historicFrom,
|
|
3429
|
+
historicTo: historicTo,
|
|
3430
|
+
historicPoint: historicPoint
|
|
3427
3431
|
};
|
|
3428
3432
|
let totalCount;
|
|
3429
3433
|
let entities = [];
|
|
@@ -3464,6 +3468,18 @@
|
|
|
3464
3468
|
if (expandRelations) {
|
|
3465
3469
|
urlParams.append("$expand", "relation");
|
|
3466
3470
|
}
|
|
3471
|
+
if (historicKey) {
|
|
3472
|
+
urlParams.set("historicKey", historicKey);
|
|
3473
|
+
}
|
|
3474
|
+
if (historicFrom) {
|
|
3475
|
+
urlParams.set("historicFrom", historicFrom);
|
|
3476
|
+
}
|
|
3477
|
+
if (historicTo) {
|
|
3478
|
+
urlParams.set("historicTo", historicTo);
|
|
3479
|
+
}
|
|
3480
|
+
if (historicPoint) {
|
|
3481
|
+
urlParams.set("historicPoint", historicPoint);
|
|
3482
|
+
}
|
|
3467
3483
|
const urlStr = url.toString() + "?" + urlParams.toString();
|
|
3468
3484
|
const data = yield api.get(urlStr, exports.Api.PrepReqParams(reqParams));
|
|
3469
3485
|
if (!analysis) {
|
|
@@ -3641,7 +3657,7 @@
|
|
|
3641
3657
|
* @returns
|
|
3642
3658
|
*/
|
|
3643
3659
|
function GetCacheKey(params) {
|
|
3644
|
-
let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo } = params;
|
|
3660
|
+
let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3645
3661
|
if (!entityTypeId) {
|
|
3646
3662
|
entityTypeId = "";
|
|
3647
3663
|
}
|
|
@@ -3654,9 +3670,12 @@
|
|
|
3654
3670
|
if (!historicTo) {
|
|
3655
3671
|
historicTo = "";
|
|
3656
3672
|
}
|
|
3673
|
+
if (!historicPoint) {
|
|
3674
|
+
historicPoint = "";
|
|
3675
|
+
}
|
|
3657
3676
|
let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
|
|
3658
3677
|
key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
3659
|
-
key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}
|
|
3678
|
+
key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
|
|
3660
3679
|
return key;
|
|
3661
3680
|
}
|
|
3662
3681
|
Entity.GetCacheKey = GetCacheKey;
|
|
@@ -11126,7 +11145,7 @@
|
|
|
11126
11145
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
11127
11146
|
|
|
11128
11147
|
// This is updated with the package.json version on build.
|
|
11129
|
-
const VERSION = "3.
|
|
11148
|
+
const VERSION = "3.9.0";
|
|
11130
11149
|
|
|
11131
11150
|
exports.VERSION = VERSION;
|
|
11132
11151
|
exports.AbstractApi = AbstractApi;
|