bruce-models 3.9.0 → 3.9.2
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 +31 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +31 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +30 -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.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
|
|
@@ -3112,7 +3125,7 @@ var Entity;
|
|
|
3112
3125
|
*/
|
|
3113
3126
|
function GetListByIds(params) {
|
|
3114
3127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3115
|
-
let { api, entityIds, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo } = params;
|
|
3128
|
+
let { api, entityIds, req: reqParams, expandRelations, expandLocation, historicFrom, historicKey, historicTo, historicPoint } = params;
|
|
3116
3129
|
if (!entityIds.length) {
|
|
3117
3130
|
throw ("Entity IDs are required.");
|
|
3118
3131
|
}
|
|
@@ -3146,6 +3159,18 @@ var Entity;
|
|
|
3146
3159
|
else if (expandLocation) {
|
|
3147
3160
|
reqData["Expand"] = "location";
|
|
3148
3161
|
}
|
|
3162
|
+
if (historicKey) {
|
|
3163
|
+
reqData["historicKey"] = historicKey;
|
|
3164
|
+
}
|
|
3165
|
+
if (historicFrom) {
|
|
3166
|
+
reqData["historicFrom"] = historicFrom;
|
|
3167
|
+
}
|
|
3168
|
+
if (historicTo) {
|
|
3169
|
+
reqData["historicTo"] = historicTo;
|
|
3170
|
+
}
|
|
3171
|
+
if (historicPoint) {
|
|
3172
|
+
reqData["historicPoint"] = historicPoint;
|
|
3173
|
+
}
|
|
3149
3174
|
const reqs = [];
|
|
3150
3175
|
if (reqIds.length > 0) {
|
|
3151
3176
|
const req = api.POST("entities", reqData, Api.PrepReqParams(reqParams));
|
|
@@ -3158,7 +3183,8 @@ var Entity;
|
|
|
3158
3183
|
entityTypeId: null,
|
|
3159
3184
|
historicFrom: historicFrom,
|
|
3160
3185
|
historicKey: historicKey,
|
|
3161
|
-
historicTo: historicTo
|
|
3186
|
+
historicTo: historicTo,
|
|
3187
|
+
historicPoint: historicPoint
|
|
3162
3188
|
});
|
|
3163
3189
|
const prom = new Promise((res) => __awaiter(this, void 0, void 0, function* () {
|
|
3164
3190
|
try {
|
|
@@ -11404,7 +11430,7 @@ var DataSource;
|
|
|
11404
11430
|
})(DataSource || (DataSource = {}));
|
|
11405
11431
|
|
|
11406
11432
|
// This is updated with the package.json version on build.
|
|
11407
|
-
const VERSION = "3.9.
|
|
11433
|
+
const VERSION = "3.9.2";
|
|
11408
11434
|
|
|
11409
11435
|
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 };
|
|
11410
11436
|
//# sourceMappingURL=bruce-models.es5.js.map
|