bruce-models 2.9.0 → 2.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.
@@ -5432,6 +5432,9 @@ var Calculator;
5432
5432
  * @returns
5433
5433
  */
5434
5434
  function GetValue(fields, entity, tags) {
5435
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5436
+ return null;
5437
+ }
5435
5438
  if (!tags) {
5436
5439
  tags = [];
5437
5440
  }
@@ -5485,6 +5488,9 @@ var Calculator;
5485
5488
  * @param tags
5486
5489
  */
5487
5490
  function GetColor(fields, entity, tags) {
5491
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5492
+ return null;
5493
+ }
5488
5494
  if (!tags) {
5489
5495
  tags = [];
5490
5496
  }
@@ -5531,6 +5537,9 @@ var Calculator;
5531
5537
  }
5532
5538
  Calculator.GetColor = GetColor;
5533
5539
  function GetNumber(fields, entity, tags) {
5540
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5541
+ return null;
5542
+ }
5534
5543
  if (!tags) {
5535
5544
  tags = [];
5536
5545
  }
@@ -5563,6 +5572,9 @@ var Calculator;
5563
5572
  }
5564
5573
  Calculator.GetNumber = GetNumber;
5565
5574
  function GetString(fields, entity, tags) {
5575
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5576
+ return null;
5577
+ }
5566
5578
  if (!tags) {
5567
5579
  tags = [];
5568
5580
  }
@@ -10257,7 +10269,7 @@ var Session;
10257
10269
  }
10258
10270
  function Get(params) {
10259
10271
  return __awaiter(this, void 0, void 0, function* () {
10260
- let { api, sessionId, req: reqParams } = params;
10272
+ let { api, sessionId, req: reqParams, accountId } = params;
10261
10273
  if (!api) {
10262
10274
  api = ENVIRONMENT.Api().GetGuardianApi();
10263
10275
  }
@@ -10271,7 +10283,7 @@ var Session;
10271
10283
  }
10272
10284
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10273
10285
  try {
10274
- const data = yield api.GET(`session/${sessionId}`, reqParams);
10286
+ const data = yield api.GET(`session/${sessionId}${accountId ? `?account=${accountId}` : ""}`, reqParams);
10275
10287
  res({
10276
10288
  session: data
10277
10289
  });
@@ -11983,7 +11995,7 @@ var DataSource;
11983
11995
  DataSource.GetList = GetList;
11984
11996
  })(DataSource || (DataSource = {}));
11985
11997
 
11986
- const VERSION$1 = "2.9.0";
11998
+ const VERSION$1 = "2.9.2";
11987
11999
 
11988
12000
  export { VERSION$1 as VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
11989
12001
  //# sourceMappingURL=bruce-models.es5.js.map