bruce-models 3.9.4 → 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.
@@ -3256,7 +3256,7 @@ var Entity;
3256
3256
  */
3257
3257
  function Get(params) {
3258
3258
  return __awaiter(this, void 0, void 0, function* () {
3259
- let { api, entityId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
3259
+ let { api, entityId, schemaId, req: reqParams, expandLocation, expandRelations, entityTypeId, historicFrom, historicKey, historicTo, historicPoint } = params;
3260
3260
  if (!entityId) {
3261
3261
  throw ("Entity ID is required.");
3262
3262
  }
@@ -3271,7 +3271,8 @@ var Entity;
3271
3271
  historicFrom,
3272
3272
  historicKey,
3273
3273
  historicTo,
3274
- historicPoint
3274
+ historicPoint,
3275
+ schemaId
3275
3276
  });
3276
3277
  const cache = api.GetCacheItem(key, reqParams);
3277
3278
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
@@ -3301,6 +3302,9 @@ var Entity;
3301
3302
  if (historicPoint) {
3302
3303
  urlParams.set("historicPoint", historicPoint);
3303
3304
  }
3305
+ if (schemaId) {
3306
+ urlParams.set("schema", schemaId);
3307
+ }
3304
3308
  const data = yield api.GET(`entity/${entityId}?${urlParams.toString()}`, Api.PrepReqParams(reqParams));
3305
3309
  res({
3306
3310
  entity: data
@@ -3940,7 +3944,7 @@ var Entity;
3940
3944
  * @returns
3941
3945
  */
3942
3946
  function GetCacheKey(params) {
3943
- let { entityId, entityTypeId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3947
+ let { entityId, entityTypeId, schemaId, expandLocation, expandRelations, historicFrom, historicKey, historicTo, historicPoint } = params;
3944
3948
  if (!entityTypeId) {
3945
3949
  entityTypeId = "";
3946
3950
  }
@@ -3956,7 +3960,10 @@ var Entity;
3956
3960
  if (!historicPoint) {
3957
3961
  historicPoint = "";
3958
3962
  }
3959
- let key = `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}`;
3963
+ if (!schemaId) {
3964
+ schemaId = "";
3965
+ }
3966
+ let key = `${Api.ECacheKey.Entity}${Api.ECacheKey.Id}${entityId}${String(entityTypeId)}${schemaId}`;
3960
3967
  key += `${String(Boolean(expandLocation))}${String(Boolean(expandRelations))}`;
3961
3968
  key += `${Api.ECacheKey.EntityHistoricData}${Api.ECacheKey.Id}${historicKey}-${historicFrom}-${historicTo}-${historicPoint}`;
3962
3969
  return key;
@@ -11281,7 +11288,8 @@ var Plugin;
11281
11288
  window["${disposeId}"] = Run({
11282
11289
  element: pluginHTML,
11283
11290
  container: container,
11284
- pluginParams: params
11291
+ pluginParams: params,
11292
+ pluginId: "${pluginId}"
11285
11293
  });
11286
11294
  }
11287
11295
  run();
@@ -11509,7 +11517,7 @@ var DataSource;
11509
11517
  })(DataSource || (DataSource = {}));
11510
11518
 
11511
11519
  // This is updated with the package.json version on build.
11512
- const VERSION = "3.9.4";
11520
+ const VERSION = "3.9.6";
11513
11521
 
11514
11522
  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 };
11515
11523
  //# sourceMappingURL=bruce-models.es5.js.map