@hpcc-js/comms 2.92.1 → 2.92.3

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/index.js CHANGED
@@ -648,8 +648,8 @@
648
648
  }
649
649
 
650
650
  var PKG_NAME = "@hpcc-js/comms";
651
- var PKG_VERSION = "2.92.1";
652
- var BUILD_VERSION = "2.105.9";
651
+ var PKG_VERSION = "2.92.3";
652
+ var BUILD_VERSION = "2.105.12";
653
653
 
654
654
  /******************************************************************************
655
655
  Copyright (c) Microsoft Corporation.
@@ -1391,18 +1391,12 @@
1391
1391
  AccessServiceBase.prototype.PermissionAction = function (request) {
1392
1392
  return this._connection.send("PermissionAction", request, "json", false, undefined, "PermissionActionResponse");
1393
1393
  };
1394
- AccessServiceBase.prototype.PermissionAddInput = function (request) {
1395
- return this._connection.send("PermissionAddInput", request, "json", false, undefined, "PermissionAddResponse");
1396
- };
1397
1394
  AccessServiceBase.prototype.Permissions = function (request) {
1398
1395
  return this._connection.send("Permissions", request, "json", false, undefined, "BasednsResponse");
1399
1396
  };
1400
1397
  AccessServiceBase.prototype.PermissionsReset = function (request) {
1401
1398
  return this._connection.send("PermissionsReset", request, "json", false, undefined, "PermissionsResetResponse");
1402
1399
  };
1403
- AccessServiceBase.prototype.PermissionsResetInput = function (request) {
1404
- return this._connection.send("PermissionsResetInput", request, "json", false, undefined, "PermissionsResetInputResponse");
1405
- };
1406
1400
  AccessServiceBase.prototype.Ping = function (request) {
1407
1401
  return this._connection.send("Ping", request, "json", false, undefined, "ws_accessPingResponse");
1408
1402
  };
@@ -1424,9 +1418,6 @@
1424
1418
  AccessServiceBase.prototype.ResourceAdd = function (request) {
1425
1419
  return this._connection.send("ResourceAdd", request, "json", false, undefined, "ResourceAddResponse");
1426
1420
  };
1427
- AccessServiceBase.prototype.ResourceAddInput = function (request) {
1428
- return this._connection.send("ResourceAddInput", request, "json", false, undefined, "ResourceAddInputResponse");
1429
- };
1430
1421
  AccessServiceBase.prototype.ResourceDelete = function (request) {
1431
1422
  return this._connection.send("ResourceDelete", request, "json", false, undefined, "ResourceDeleteResponse");
1432
1423
  };
@@ -2114,7 +2105,14 @@
2114
2105
  LogLineStartFrom: (_a = request.LogLineStartFrom) !== null && _a !== void 0 ? _a : 0,
2115
2106
  LogLineLimit: (_b = request.LogLineLimit) !== null && _b !== void 0 ? _b : 100,
2116
2107
  SelectColumnMode: exports.WsLogaccess.LogSelectColumnMode.DEFAULT,
2117
- Format: "JSON"
2108
+ Format: "JSON",
2109
+ SortBy: {
2110
+ SortCondition: [{
2111
+ BySortType: exports.WsLogaccess.SortColumType.ByDate,
2112
+ ColumnName: "",
2113
+ Direction: 0
2114
+ }]
2115
+ }
2118
2116
  };
2119
2117
  filters = [];
2120
2118
  _loop_1 = function (key) {
@@ -2122,11 +2120,17 @@
2122
2120
  if (key in columnMap) {
2123
2121
  searchField = columnMap[key];
2124
2122
  }
2123
+ var logCategory = exports.WsLogaccess.LogAccessType.ByFieldName;
2125
2124
  if (searchField) {
2125
+ switch (searchField) {
2126
+ case "hpcc.log.audience":
2127
+ logCategory = exports.WsLogaccess.LogAccessType.ByTargetAudience;
2128
+ break;
2129
+ }
2126
2130
  if (Array.isArray(request[key])) {
2127
2131
  request[key].forEach(function (value) {
2128
2132
  filters.push({
2129
- LogCategory: exports.WsLogaccess.LogAccessType.ByFieldName,
2133
+ LogCategory: logCategory,
2130
2134
  SearchField: searchField,
2131
2135
  SearchByValue: value
2132
2136
  });
@@ -2134,7 +2138,7 @@
2134
2138
  }
2135
2139
  else {
2136
2140
  filters.push({
2137
- LogCategory: exports.WsLogaccess.LogAccessType.ByFieldName,
2141
+ LogCategory: logCategory,
2138
2142
  SearchField: searchField,
2139
2143
  SearchByValue: request[key]
2140
2144
  });
@@ -2189,7 +2193,7 @@
2189
2193
  getLogsRequest.Filter.Operator = exports.WsLogaccess.LogAccessFilterOperator.OR;
2190
2194
  }
2191
2195
  getLogsRequest.Filter.rightFilter = {
2192
- LogCategory: (_h = filters[0]) === null || _h === void 0 ? void 0 : _h.LogCategory,
2196
+ LogCategory: (_h = filters[1]) === null || _h === void 0 ? void 0 : _h.LogCategory,
2193
2197
  SearchField: (_j = filters[1]) === null || _j === void 0 ? void 0 : _j.SearchField,
2194
2198
  SearchByValue: (_k = filters[1]) === null || _k === void 0 ? void 0 : _k.SearchByValue
2195
2199
  };
@@ -3682,8 +3686,6 @@
3682
3686
  }, function(date) {
3683
3687
  return date.getDate() - 1;
3684
3688
  });
3685
-
3686
- var timeDay = day;
3687
3689
  day.range;
3688
3690
 
3689
3691
  function weekday(i) {
@@ -3734,8 +3736,6 @@
3734
3736
  date.setFullYear(date.getFullYear() + step * k);
3735
3737
  });
3736
3738
  };
3737
-
3738
- var timeYear = year;
3739
3739
  year.range;
3740
3740
 
3741
3741
  var utcDay = newInterval(function(date) {
@@ -3747,8 +3747,6 @@
3747
3747
  }, function(date) {
3748
3748
  return date.getUTCDate() - 1;
3749
3749
  });
3750
-
3751
- var utcDay$1 = utcDay;
3752
3750
  utcDay.range;
3753
3751
 
3754
3752
  function utcWeekday(i) {
@@ -3799,8 +3797,6 @@
3799
3797
  date.setUTCFullYear(date.getUTCFullYear() + step * k);
3800
3798
  });
3801
3799
  };
3802
-
3803
- var utcYear$1 = utcYear;
3804
3800
  utcYear.range;
3805
3801
 
3806
3802
  function localDate(d) {
@@ -3991,7 +3987,7 @@
3991
3987
  return function(string) {
3992
3988
  var d = newDate(1900, undefined, 1),
3993
3989
  i = parseSpecifier(d, specifier, string += "", 0),
3994
- week, day;
3990
+ week, day$1;
3995
3991
  if (i != string.length) return null;
3996
3992
 
3997
3993
  // If a UNIX timestamp is specified, return it.
@@ -4012,25 +4008,25 @@
4012
4008
  if (d.V < 1 || d.V > 53) return null;
4013
4009
  if (!("w" in d)) d.w = 1;
4014
4010
  if ("Z" in d) {
4015
- week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
4016
- week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
4017
- week = utcDay$1.offset(week, (d.V - 1) * 7);
4011
+ week = utcDate(newDate(d.y, 0, 1)), day$1 = week.getUTCDay();
4012
+ week = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week) : utcMonday(week);
4013
+ week = utcDay.offset(week, (d.V - 1) * 7);
4018
4014
  d.y = week.getUTCFullYear();
4019
4015
  d.m = week.getUTCMonth();
4020
4016
  d.d = week.getUTCDate() + (d.w + 6) % 7;
4021
4017
  } else {
4022
- week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
4023
- week = day > 4 || day === 0 ? monday.ceil(week) : monday(week);
4024
- week = timeDay.offset(week, (d.V - 1) * 7);
4018
+ week = localDate(newDate(d.y, 0, 1)), day$1 = week.getDay();
4019
+ week = day$1 > 4 || day$1 === 0 ? monday.ceil(week) : monday(week);
4020
+ week = day.offset(week, (d.V - 1) * 7);
4025
4021
  d.y = week.getFullYear();
4026
4022
  d.m = week.getMonth();
4027
4023
  d.d = week.getDate() + (d.w + 6) % 7;
4028
4024
  }
4029
4025
  } else if ("W" in d || "U" in d) {
4030
4026
  if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
4031
- day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
4027
+ day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
4032
4028
  d.m = 0;
4033
- d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
4029
+ d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day$1 + 5) % 7 : d.w + d.U * 7 - (day$1 + 6) % 7;
4034
4030
  }
4035
4031
 
4036
4032
  // If a time zone is specified, all fields are interpreted as UTC and then
@@ -4316,7 +4312,7 @@
4316
4312
  }
4317
4313
 
4318
4314
  function formatDayOfYear(d, p) {
4319
- return pad(1 + timeDay.count(timeYear(d), d), p, 3);
4315
+ return pad(1 + day.count(year(d), d), p, 3);
4320
4316
  }
4321
4317
 
4322
4318
  function formatMilliseconds(d, p) {
@@ -4345,7 +4341,7 @@
4345
4341
  }
4346
4342
 
4347
4343
  function formatWeekNumberSunday(d, p) {
4348
- return pad(sunday.count(timeYear(d) - 1, d), p, 2);
4344
+ return pad(sunday.count(year(d) - 1, d), p, 2);
4349
4345
  }
4350
4346
 
4351
4347
  function dISO(d) {
@@ -4355,7 +4351,7 @@
4355
4351
 
4356
4352
  function formatWeekNumberISO(d, p) {
4357
4353
  d = dISO(d);
4358
- return pad(thursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
4354
+ return pad(thursday.count(year(d), d) + (year(d).getDay() === 4), p, 2);
4359
4355
  }
4360
4356
 
4361
4357
  function formatWeekdayNumberSunday(d) {
@@ -4363,7 +4359,7 @@
4363
4359
  }
4364
4360
 
4365
4361
  function formatWeekNumberMonday(d, p) {
4366
- return pad(monday.count(timeYear(d) - 1, d), p, 2);
4362
+ return pad(monday.count(year(d) - 1, d), p, 2);
4367
4363
  }
4368
4364
 
4369
4365
  function formatYear(d, p) {
@@ -4405,7 +4401,7 @@
4405
4401
  }
4406
4402
 
4407
4403
  function formatUTCDayOfYear(d, p) {
4408
- return pad(1 + utcDay$1.count(utcYear$1(d), d), p, 3);
4404
+ return pad(1 + utcDay.count(utcYear(d), d), p, 3);
4409
4405
  }
4410
4406
 
4411
4407
  function formatUTCMilliseconds(d, p) {
@@ -4434,7 +4430,7 @@
4434
4430
  }
4435
4431
 
4436
4432
  function formatUTCWeekNumberSunday(d, p) {
4437
- return pad(utcSunday.count(utcYear$1(d) - 1, d), p, 2);
4433
+ return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
4438
4434
  }
4439
4435
 
4440
4436
  function UTCdISO(d) {
@@ -4444,7 +4440,7 @@
4444
4440
 
4445
4441
  function formatUTCWeekNumberISO(d, p) {
4446
4442
  d = UTCdISO(d);
4447
- return pad(utcThursday.count(utcYear$1(d), d) + (utcYear$1(d).getUTCDay() === 4), p, 2);
4443
+ return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
4448
4444
  }
4449
4445
 
4450
4446
  function formatUTCWeekdayNumberSunday(d) {
@@ -4452,7 +4448,7 @@
4452
4448
  }
4453
4449
 
4454
4450
  function formatUTCWeekNumberMonday(d, p) {
4455
- return pad(utcMonday.count(utcYear$1(d) - 1, d), p, 2);
4451
+ return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
4456
4452
  }
4457
4453
 
4458
4454
  function formatUTCYear(d, p) {
@@ -10232,7 +10228,5 @@
10232
10228
  exports.splitMetric = splitMetric;
10233
10229
  exports.targetClusters = targetClusters;
10234
10230
 
10235
- Object.defineProperty(exports, '__esModule', { value: true });
10236
-
10237
10231
  }));
10238
10232
  //# sourceMappingURL=index.js.map