bruce-models 5.7.7 → 5.7.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 +9 -6
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +9 -6
- 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 +8 -5
- package/dist/lib/entity/entity-historic-data.js.map +1 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-historic-data.d.ts +9 -1
- package/dist/types/entity/entity.d.ts +4 -3
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2990,8 +2990,9 @@ var EntityHistoricData;
|
|
|
2990
2990
|
if (!api) {
|
|
2991
2991
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
2992
2992
|
}
|
|
2993
|
-
|
|
2994
|
-
|
|
2993
|
+
let attrKeyStr = null;
|
|
2994
|
+
if (attrKey && typeof attrKey != "string") {
|
|
2995
|
+
attrKeyStr = PathUtils.Wrap(attrKey);
|
|
2995
2996
|
}
|
|
2996
2997
|
// If we have more than 100 Entity IDs we'll have to split the request to avoid a URL that is too long.
|
|
2997
2998
|
const MAX_IDS = 100;
|
|
@@ -3013,7 +3014,7 @@ var EntityHistoricData;
|
|
|
3013
3014
|
for (const splitEntityId of splitEntityIds) {
|
|
3014
3015
|
reqs.push(GetList({
|
|
3015
3016
|
entityIds: splitEntityId,
|
|
3016
|
-
attrKey:
|
|
3017
|
+
attrKey: attrKeyStr,
|
|
3017
3018
|
dateTimeFrom: dateTimeFrom,
|
|
3018
3019
|
dateTimeTo: dateTimeTo,
|
|
3019
3020
|
api: api,
|
|
@@ -3035,7 +3036,7 @@ var EntityHistoricData;
|
|
|
3035
3036
|
limitPerEntity: limitPerEntity
|
|
3036
3037
|
};
|
|
3037
3038
|
}
|
|
3038
|
-
const cacheKey = GetListCacheKey(entityIds,
|
|
3039
|
+
const cacheKey = GetListCacheKey(entityIds, attrKeyStr, dateTimeFrom, dateTimeTo);
|
|
3039
3040
|
const cached = api.GetCacheItem(cacheKey, req);
|
|
3040
3041
|
if (cached === null || cached === void 0 ? void 0 : cached.found) {
|
|
3041
3042
|
return cached.data;
|
|
@@ -3044,7 +3045,9 @@ var EntityHistoricData;
|
|
|
3044
3045
|
for (const entityId of entityIds) {
|
|
3045
3046
|
urlParams.append("entityId", entityId);
|
|
3046
3047
|
}
|
|
3047
|
-
|
|
3048
|
+
if (attrKeyStr) {
|
|
3049
|
+
urlParams.append("attrKey", attrKeyStr);
|
|
3050
|
+
}
|
|
3048
3051
|
urlParams.append("dateTimeFrom", dateTimeFrom);
|
|
3049
3052
|
urlParams.append("dateTimeTo", dateTimeTo);
|
|
3050
3053
|
const prom = api.GET(`v1/entity/historicData?${urlParams.toString()}`, Api.PrepReqParams(req));
|
|
@@ -15319,7 +15322,7 @@ var Scenario;
|
|
|
15319
15322
|
})(Scenario || (Scenario = {}));
|
|
15320
15323
|
|
|
15321
15324
|
// This is updated with the package.json version on build.
|
|
15322
|
-
const VERSION = "5.7.
|
|
15325
|
+
const VERSION = "5.7.9";
|
|
15323
15326
|
|
|
15324
15327
|
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, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, 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 };
|
|
15325
15328
|
//# sourceMappingURL=bruce-models.es5.js.map
|