bruce-models 3.9.5 → 3.9.6
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 +12 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +11 -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
|
@@ -3202,7 +3202,7 @@
|
|
|
3202
3202
|
*/
|
|
3203
3203
|
function Get(params) {
|
|
3204
3204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3205
|
-
let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3205
|
+
let { api, entityId, schemaId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3206
3206
|
if (!entityId) {
|
|
3207
3207
|
throw ("Entity ID is required.");
|
|
3208
3208
|
}
|
|
@@ -3217,7 +3217,8 @@
|
|
|
3217
3217
|
historicFrom,
|
|
3218
3218
|
historicKey,
|
|
3219
3219
|
historicTo,
|
|
3220
|
-
historicPoint
|
|
3220
|
+
historicPoint,
|
|
3221
|
+
schemaId
|
|
3221
3222
|
});
|
|
3222
3223
|
const cache = api.GetCacheItem(key, reqParams);
|
|
3223
3224
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
@@ -3247,6 +3248,9 @@
|
|
|
3247
3248
|
if (historicPoint) {
|
|
3248
3249
|
urlParams.set("historicPoint", historicPoint);
|
|
3249
3250
|
}
|
|
3251
|
+
if (schemaId) {
|
|
3252
|
+
urlParams.set("schema", schemaId);
|
|
3253
|
+
}
|
|
3250
3254
|
const data = yield api.GET(`entity/${entityId}?${urlParams.toString()}`, exports.Api.PrepReqParams(reqParams));
|
|
3251
3255
|
res({
|
|
3252
3256
|
entity: data
|
|
@@ -3886,7 +3890,7 @@
|
|
|
3886
3890
|
* @returns
|
|
3887
3891
|
*/
|
|
3888
3892
|
function GetCacheKey(params) {
|
|
3889
|
-
let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3893
|
+
let { entityId, entityTypeId, schemaId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3890
3894
|
if (!entityTypeId) {
|
|
3891
3895
|
entityTypeId = "";
|
|
3892
3896
|
}
|
|
@@ -3902,7 +3906,10 @@
|
|
|
3902
3906
|
if (!historicPoint) {
|
|
3903
3907
|
historicPoint = "";
|
|
3904
3908
|
}
|
|
3905
|
-
|
|
3909
|
+
if (!schemaId) {
|
|
3910
|
+
schemaId = "";
|
|
3911
|
+
}
|
|
3912
|
+
let key = `${exports.Api.ECacheKey.Entity}${exports.Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${schemaId}`;
|
|
3906
3913
|
key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
|
|
3907
3914
|
key += `${exports.Api.ECacheKey.EntityHistoricData}${exports.Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
|
|
3908
3915
|
return key;
|
|
@@ -11251,7 +11258,7 @@
|
|
|
11251
11258
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
11252
11259
|
|
|
11253
11260
|
// This is updated with the package.json version on build.
|
|
11254
|
-
const VERSION = "3.9.
|
|
11261
|
+
const VERSION = "3.9.6";
|
|
11255
11262
|
|
|
11256
11263
|
exports.VERSION = VERSION;
|
|
11257
11264
|
exports.AbstractApi = AbstractApi;
|