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.
@@ -5377,6 +5377,9 @@
5377
5377
  * @returns
5378
5378
  */
5379
5379
  function GetValue(fields, entity, tags) {
5380
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5381
+ return null;
5382
+ }
5380
5383
  if (!tags) {
5381
5384
  tags = [];
5382
5385
  }
@@ -5430,6 +5433,9 @@
5430
5433
  * @param tags
5431
5434
  */
5432
5435
  function GetColor(fields, entity, tags) {
5436
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5437
+ return null;
5438
+ }
5433
5439
  if (!tags) {
5434
5440
  tags = [];
5435
5441
  }
@@ -5476,6 +5482,9 @@
5476
5482
  }
5477
5483
  Calculator.GetColor = GetColor;
5478
5484
  function GetNumber(fields, entity, tags) {
5485
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5486
+ return null;
5487
+ }
5479
5488
  if (!tags) {
5480
5489
  tags = [];
5481
5490
  }
@@ -5508,6 +5517,9 @@
5508
5517
  }
5509
5518
  Calculator.GetNumber = GetNumber;
5510
5519
  function GetString(fields, entity, tags) {
5520
+ if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
5521
+ return null;
5522
+ }
5511
5523
  if (!tags) {
5512
5524
  tags = [];
5513
5525
  }
@@ -10052,7 +10064,7 @@
10052
10064
  }
10053
10065
  function Get(params) {
10054
10066
  return __awaiter(this, void 0, void 0, function* () {
10055
- let { api, sessionId, req: reqParams } = params;
10067
+ let { api, sessionId, req: reqParams, accountId } = params;
10056
10068
  if (!api) {
10057
10069
  api = exports.ENVIRONMENT.Api().GetGuardianApi();
10058
10070
  }
@@ -10066,7 +10078,7 @@
10066
10078
  }
10067
10079
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
10068
10080
  try {
10069
- const data = yield api.GET(`session/${sessionId}`, reqParams);
10081
+ const data = yield api.GET(`session/${sessionId}${accountId ? `?account=${accountId}` : ""}`, reqParams);
10070
10082
  res({
10071
10083
  session: data
10072
10084
  });
@@ -11749,7 +11761,7 @@
11749
11761
  DataSource.GetList = GetList;
11750
11762
  })(exports.DataSource || (exports.DataSource = {}));
11751
11763
 
11752
- const VERSION$1 = "2.9.0";
11764
+ const VERSION$1 = "2.9.2";
11753
11765
 
11754
11766
  exports.VERSION = VERSION$1;
11755
11767
  exports.AbstractApi = AbstractApi;