bruce-models 5.1.7 → 5.1.9
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 +14 -7
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +14 -7
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-historic-data.js +13 -6
- package/dist/lib/entity/entity-historic-data.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-historic-data.d.ts +3 -2
- package/dist/types/project/project-view-bookmark.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3021,9 +3021,9 @@ var EntityHistoricData;
|
|
|
3021
3021
|
*/
|
|
3022
3022
|
function GetStats(params) {
|
|
3023
3023
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3024
|
-
let { entityIds, api, req } = params;
|
|
3025
|
-
// Save time and just return a none response if no entity IDs are provided.
|
|
3026
|
-
if (!(entityIds === null || entityIds === void 0 ? void 0 : entityIds.length)) {
|
|
3024
|
+
let { entityIds, entityTypeId, api, req } = params;
|
|
3025
|
+
// Save time and just return a none response if no entity IDs or type ID are provided.
|
|
3026
|
+
if (!(entityIds === null || entityIds === void 0 ? void 0 : entityIds.length) && !entityTypeId) {
|
|
3027
3027
|
return {
|
|
3028
3028
|
stats: []
|
|
3029
3029
|
};
|
|
@@ -3032,13 +3032,14 @@ var EntityHistoricData;
|
|
|
3032
3032
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3033
3033
|
}
|
|
3034
3034
|
req = Api.PrepReqParams(req);
|
|
3035
|
-
const cacheKey = GetStatsCacheKey(entityIds);
|
|
3035
|
+
const cacheKey = GetStatsCacheKey(entityIds, entityTypeId);
|
|
3036
3036
|
const cached = api.GetCacheItem(cacheKey, req);
|
|
3037
3037
|
if (cached === null || cached === void 0 ? void 0 : cached.found) {
|
|
3038
3038
|
return cached.data;
|
|
3039
3039
|
}
|
|
3040
3040
|
const prom = yield api.POST("v1/entity/historicData/stats", {
|
|
3041
|
-
entityIds: entityIds
|
|
3041
|
+
entityIds: entityIds,
|
|
3042
|
+
entityTypeId: entityTypeId
|
|
3042
3043
|
}, req);
|
|
3043
3044
|
api.SetCacheItem({
|
|
3044
3045
|
key: cacheKey,
|
|
@@ -3128,7 +3129,13 @@ var EntityHistoricData;
|
|
|
3128
3129
|
return Api.ECacheKey.EntityHistoricDataRec + Api.ECacheKey.Id + entityIds.join(",") + Api.ECacheKey.Id + attrKey + Api.ECacheKey.Id + dateTimeFrom + Api.ECacheKey.Id + dateTimeTo;
|
|
3129
3130
|
}
|
|
3130
3131
|
EntityHistoricData.GetListCacheKey = GetListCacheKey;
|
|
3131
|
-
function GetStatsCacheKey(entityIds) {
|
|
3132
|
+
function GetStatsCacheKey(entityIds, typeId) {
|
|
3133
|
+
if (!(entityIds === null || entityIds === void 0 ? void 0 : entityIds.length)) {
|
|
3134
|
+
entityIds = [];
|
|
3135
|
+
}
|
|
3136
|
+
if (!typeId) {
|
|
3137
|
+
typeId = "";
|
|
3138
|
+
}
|
|
3132
3139
|
return Api.ECacheKey.EntityHistoricDataStats + Api.ECacheKey.Id + entityIds.join(",");
|
|
3133
3140
|
}
|
|
3134
3141
|
EntityHistoricData.GetStatsCacheKey = GetStatsCacheKey;
|
|
@@ -14497,7 +14504,7 @@ var DataSource;
|
|
|
14497
14504
|
})(DataSource || (DataSource = {}));
|
|
14498
14505
|
|
|
14499
14506
|
// This is updated with the package.json version on build.
|
|
14500
|
-
const VERSION = "5.1.
|
|
14507
|
+
const VERSION = "5.1.9";
|
|
14501
14508
|
|
|
14502
14509
|
export { VERSION, 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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14503
14510
|
//# sourceMappingURL=bruce-models.es5.js.map
|