@hpcc-js/comms 2.66.0 → 2.70.0

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.
Files changed (86) hide show
  1. package/dist/index.es6.js +259 -200
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +149 -102
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/index.node.js +237 -217
  8. package/dist/index.node.js.map +1 -1
  9. package/dist/index.node.min.js +1 -1
  10. package/dist/index.node.min.js.map +1 -1
  11. package/lib-es6/__package__.js +2 -2
  12. package/lib-es6/__package__.js.map +1 -1
  13. package/lib-es6/clienttools/eclMeta.js +4 -4
  14. package/lib-es6/clienttools/eclMeta.js.map +1 -1
  15. package/lib-es6/clienttools/eclcc.js +18 -18
  16. package/lib-es6/clienttools/eclcc.js.map +1 -1
  17. package/lib-es6/connection.js +6 -6
  18. package/lib-es6/connection.js.map +1 -1
  19. package/lib-es6/ecl/graph.js +5 -5
  20. package/lib-es6/ecl/graph.js.map +1 -1
  21. package/lib-es6/ecl/logicalFile.js +2 -2
  22. package/lib-es6/ecl/logicalFile.js.map +1 -1
  23. package/lib-es6/ecl/result.js +1 -1
  24. package/lib-es6/ecl/result.js.map +1 -1
  25. package/lib-es6/ecl/scope.js +5 -5
  26. package/lib-es6/ecl/scope.js.map +1 -1
  27. package/lib-es6/ecl/store.js +4 -4
  28. package/lib-es6/ecl/store.js.map +1 -1
  29. package/lib-es6/ecl/targetCluster.js +2 -2
  30. package/lib-es6/ecl/targetCluster.js.map +1 -1
  31. package/lib-es6/ecl/topology.js +1 -1
  32. package/lib-es6/ecl/topology.js.map +1 -1
  33. package/lib-es6/ecl/workunit.js +7 -4
  34. package/lib-es6/ecl/workunit.js.map +1 -1
  35. package/lib-es6/espConnection.js +1 -1
  36. package/lib-es6/espConnection.js.map +1 -1
  37. package/lib-es6/index-common.js +2 -0
  38. package/lib-es6/index-common.js.map +1 -1
  39. package/lib-es6/services/wsDFU.js +1 -1
  40. package/lib-es6/services/wsDFU.js.map +1 -1
  41. package/lib-es6/services/wsEcl.js +3 -3
  42. package/lib-es6/services/wsEcl.js.map +1 -1
  43. package/lib-es6/services/wsLogaccess.js +11 -0
  44. package/lib-es6/services/wsLogaccess.js.map +1 -0
  45. package/lib-es6/services/wsResources.js +11 -0
  46. package/lib-es6/services/wsResources.js.map +1 -0
  47. package/lib-es6/services/wsdl/WsLogaccess/v1/WsLogaccess.js +28 -0
  48. package/lib-es6/services/wsdl/WsLogaccess/v1/WsLogaccess.js.map +1 -0
  49. package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js +20 -0
  50. package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js.map +1 -0
  51. package/package.json +36 -21
  52. package/src/__package__.ts +2 -2
  53. package/src/ecl/topology.ts +1 -1
  54. package/src/ecl/workunit.ts +3 -0
  55. package/src/index-common.ts +2 -0
  56. package/src/services/wsDFU.ts +3 -2
  57. package/src/services/wsLogaccess.ts +8 -0
  58. package/src/services/wsResources.ts +8 -0
  59. package/src/services/wsdl/WsLogaccess/v1/WsLogaccess.ts +78 -0
  60. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -0
  61. package/types/__package__.d.ts +2 -2
  62. package/types/__package__.d.ts.map +1 -1
  63. package/types/ecl/activity.d.ts +1 -1
  64. package/types/ecl/activity.d.ts.map +1 -1
  65. package/types/ecl/topology.d.ts.map +1 -1
  66. package/types/ecl/workunit.d.ts.map +1 -1
  67. package/types/index-common.d.ts +2 -0
  68. package/types/index-common.d.ts.map +1 -1
  69. package/types/services/wsDFU.d.ts +2 -1
  70. package/types/services/wsDFU.d.ts.map +1 -1
  71. package/types/services/wsLogaccess.d.ts +5 -0
  72. package/types/services/wsLogaccess.d.ts.map +1 -0
  73. package/types/services/wsResources.d.ts +5 -0
  74. package/types/services/wsResources.d.ts.map +1 -0
  75. package/types/services/wsdl/WsLogaccess/v1/WsLogaccess.d.ts +51 -0
  76. package/types/services/wsdl/WsLogaccess/v1/WsLogaccess.d.ts.map +1 -0
  77. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts +85 -0
  78. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts.map +1 -0
  79. package/types-3.4/__package__.d.ts +2 -2
  80. package/types-3.4/ecl/activity.d.ts +1 -1
  81. package/types-3.4/index-common.d.ts +2 -0
  82. package/types-3.4/services/wsDFU.d.ts +2 -1
  83. package/types-3.4/services/wsLogaccess.d.ts +5 -0
  84. package/types-3.4/services/wsResources.d.ts +5 -0
  85. package/types-3.4/services/wsdl/WsLogaccess/v1/WsLogaccess.d.ts +51 -0
  86. package/types-3.4/services/wsdl/WsResources/v1.01/WsResources.d.ts +85 -0
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/util')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/util'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/comms"] = {}, global["@hpcc-js/util"]));
5
- })(this, (function (exports, util) { 'use strict';
4
+ (global = global || self, factory(global['@hpcc-js/comms'] = {}, global['@hpcc-js/util']));
5
+ }(this, (function (exports, util) { 'use strict';
6
6
 
7
7
  var global =
8
8
  (typeof globalThis !== 'undefined' && globalThis) ||
@@ -603,8 +603,8 @@
603
603
  }
604
604
 
605
605
  var PKG_NAME = "@hpcc-js/comms";
606
- var PKG_VERSION = "2.66.0";
607
- var BUILD_VERSION = "2.97.0";
606
+ var PKG_VERSION = "2.70.0";
607
+ var BUILD_VERSION = "2.101.0";
608
608
 
609
609
  /*! *****************************************************************************
610
610
  Copyright (c) Microsoft Corporation.
@@ -693,10 +693,10 @@
693
693
  ar[i] = from[i];
694
694
  }
695
695
  }
696
- return to.concat(ar || Array.prototype.slice.call(from));
696
+ return to.concat(ar || from);
697
697
  }
698
698
 
699
- var logger$1 = util.scopedLogger("comms/connection.ts");
699
+ var logger = util.scopedLogger("comms/connection.ts");
700
700
  function instanceOfIOptions(object) {
701
701
  return "baseUrl" in object;
702
702
  }
@@ -735,20 +735,20 @@
735
735
  obj[key].forEach(function (row, i) {
736
736
  if (typeof row === "object") {
737
737
  includeItemCount_1 = true;
738
- str.push(serializeRequest(row, encodeRequest, prefix + encode("".concat(key, ".").concat(i), encodeRequest)));
738
+ str.push(serializeRequest(row, encodeRequest, prefix + encode(key + "." + i, encodeRequest)));
739
739
  }
740
740
  else {
741
- str.push(prefix + encode("".concat(key, "_i").concat(i), encodeRequest) + "=" + serializeRequest(row, encodeRequest));
741
+ str.push(prefix + encode(key + "_i" + i, encodeRequest) + "=" + serializeRequest(row, encodeRequest));
742
742
  }
743
743
  });
744
744
  if (includeItemCount_1) {
745
- str.push(prefix + encode("".concat(key, ".itemcount"), encodeRequest) + "=" + obj[key].length);
745
+ str.push(prefix + encode(key + ".itemcount", encodeRequest) + "=" + obj[key].length);
746
746
  }
747
747
  }
748
748
  else if (typeof obj[key] === "object") {
749
749
  if (obj[key] && obj[key]["Item"] instanceof Array) { // Specific to ws_machine.GetTargetClusterInfo?
750
750
  str.push(serializeRequest(obj[key]["Item"], encodeRequest, prefix + encode(key, encodeRequest)));
751
- str.push(prefix + encode("".concat(key, ".itemcount"), encodeRequest) + "=" + obj[key]["Item"].length);
751
+ str.push(prefix + encode(key + ".itemcount", encodeRequest) + "=" + obj[key]["Item"].length);
752
752
  }
753
753
  else {
754
754
  str.push(serializeRequest(obj[key], encodeRequest, prefix + encode(key, encodeRequest)));
@@ -798,12 +798,12 @@
798
798
  respondedTimeout -= respondedTick;
799
799
  if (respondedTimeout <= 0) {
800
800
  clearInterval(progress);
801
- logger$1.error("Request timeout: " + script.src);
801
+ logger.error("Request timeout: " + script.src);
802
802
  doCallback();
803
803
  reject(Error("Request timeout: " + script.src));
804
804
  }
805
805
  else {
806
- logger$1.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
806
+ logger.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
807
807
  }
808
808
  }
809
809
  }, respondedTick);
@@ -814,7 +814,7 @@
814
814
  });
815
815
  }
816
816
  function authHeader(opts) {
817
- return opts.userID ? { Authorization: "Basic ".concat(btoa("".concat(opts.userID, ":").concat(opts.password))) } : {};
817
+ return opts.userID ? { Authorization: "Basic " + btoa(opts.userID + ":" + opts.password) } : {};
818
818
  }
819
819
  // _omitMap is a workaround for older HPCC-Platform instances without credentials ---
820
820
  var _omitMap = {};
@@ -873,7 +873,7 @@
873
873
  abortSignal = request.abortSignal_;
874
874
  delete request.abortSignal_;
875
875
  }
876
- return doFetch(opts, "".concat(action, "?").concat(serializeRequest(request, opts.encodeRequest)), {
876
+ return doFetch(opts, action + "?" + serializeRequest(request, opts.encodeRequest), {
877
877
  method: "get",
878
878
  signal: abortSignal
879
879
  }, __assign({}, header), responseType);
@@ -952,7 +952,7 @@
952
952
  _this.Source = exceptions.Source;
953
953
  _this.Exception = exceptions.Exception;
954
954
  if (exceptions.Exception.length) {
955
- _this.message = "".concat(exceptions.Exception[0].Code, ": ").concat(exceptions.Exception[0].Message);
955
+ _this.message = exceptions.Exception[0].Code + ": " + exceptions.Exception[0].Message;
956
956
  }
957
957
  else {
958
958
  _this.message = "";
@@ -1142,7 +1142,7 @@
1142
1142
  var DFUService = /** @class */ (function (_super) {
1143
1143
  __extends(DFUService, _super);
1144
1144
  function DFUService(optsConnection) {
1145
- return _super.call(this, optsConnection, "WsDfu", "1.60") || this;
1145
+ return _super.call(this, optsConnection, "WsDfu", "1.62") || this;
1146
1146
  }
1147
1147
  DFUService.prototype.DFUQuery = function (request) {
1148
1148
  return this._connection.send("DFUQuery", request);
@@ -1272,7 +1272,7 @@
1272
1272
  };
1273
1273
  EclService.prototype.requestJson = function (querySet, queryId) {
1274
1274
  // http://192.168.3.22:8002/WsEcl/example/request/query/roxie/peopleaccounts/json?display
1275
- return this._connection.send("example/request/query/".concat(querySet, "/").concat(queryId, "/json"), {}, "text").then(function (response) {
1275
+ return this._connection.send("example/request/query/" + querySet + "/" + queryId + "/json", {}, "text").then(function (response) {
1276
1276
  var requestSchema = JSON.parse(response);
1277
1277
  for (var key in requestSchema) {
1278
1278
  return requestSchema[key];
@@ -1282,7 +1282,7 @@
1282
1282
  };
1283
1283
  EclService.prototype.responseJson = function (querySet, queryId) {
1284
1284
  // http://192.168.3.22:8002/WsEcl/example/response/query/roxie/peopleaccounts/json?display
1285
- return this._connection.send("example/response/query/".concat(querySet, "/").concat(queryId, "/json"), {}, "text").then(function (response) {
1285
+ return this._connection.send("example/response/query/" + querySet + "/" + queryId + "/json", {}, "text").then(function (response) {
1286
1286
  var responseSchema = JSON.parse(response);
1287
1287
  for (var key in responseSchema) {
1288
1288
  return responseSchema[key].Results;
@@ -1298,7 +1298,7 @@
1298
1298
  };
1299
1299
  EclService.prototype.submit = function (querySet, queryId, request) {
1300
1300
  // http://192.168.3.22:8002/WsEcl/submit/query/roxie/peopleaccounts.1/json
1301
- var action = "submit/query/".concat(querySet, "/").concat(queryId);
1301
+ var action = "submit/query/" + querySet + "/" + queryId;
1302
1302
  return this._connection.send(action, request, "json2").then(function (response) {
1303
1303
  if (response.Results && response.Results.Exception) {
1304
1304
  throw new ESPExceptions(action, request, {
@@ -1312,6 +1312,39 @@
1312
1312
  return EclService;
1313
1313
  }(Service));
1314
1314
 
1315
+ var LogAccessType;
1316
+ (function (LogAccessType) {
1317
+ LogAccessType[LogAccessType["All"] = 0] = "All";
1318
+ LogAccessType[LogAccessType["ByJobIdID"] = 1] = "ByJobIdID";
1319
+ LogAccessType[LogAccessType["ByComponent"] = 2] = "ByComponent";
1320
+ LogAccessType[LogAccessType["ByLogType"] = 3] = "ByLogType";
1321
+ LogAccessType[LogAccessType["ByTargetAudience"] = 4] = "ByTargetAudience";
1322
+ })(LogAccessType || (LogAccessType = {}));
1323
+ var LogaccessService = /** @class */ (function (_super) {
1324
+ __extends(LogaccessService, _super);
1325
+ function LogaccessService(optsConnection) {
1326
+ return _super.call(this, optsConnection, "WsLogaccess", "1") || this;
1327
+ }
1328
+ LogaccessService.prototype.GetLogAccessInfo = function (request) {
1329
+ return this._connection.send("GetLogAccessInfo", request);
1330
+ };
1331
+ LogaccessService.prototype.GetLogs = function (request) {
1332
+ return this._connection.send("GetLogs", request);
1333
+ };
1334
+ LogaccessService.prototype.Ping = function (request) {
1335
+ return this._connection.send("Ping", request);
1336
+ };
1337
+ return LogaccessService;
1338
+ }(Service));
1339
+
1340
+ var LogaccessServiceEx = /** @class */ (function (_super) {
1341
+ __extends(LogaccessServiceEx, _super);
1342
+ function LogaccessServiceEx() {
1343
+ return _super !== null && _super.apply(this, arguments) || this;
1344
+ }
1345
+ return LogaccessServiceEx;
1346
+ }(LogaccessService));
1347
+
1315
1348
  function ascending(a, b) {
1316
1349
  return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
1317
1350
  }
@@ -1348,7 +1381,7 @@
1348
1381
  };
1349
1382
  }
1350
1383
 
1351
- bisector(ascending);
1384
+ var ascendingBisect = bisector(ascending);
1352
1385
 
1353
1386
  function number(x) {
1354
1387
  return x === null ? NaN : +x;
@@ -1472,6 +1505,31 @@
1472
1505
  return MachineService;
1473
1506
  }());
1474
1507
 
1508
+ var ResourcesService = /** @class */ (function (_super) {
1509
+ __extends(ResourcesService, _super);
1510
+ function ResourcesService(optsConnection) {
1511
+ return _super.call(this, optsConnection, "WsResources", "1.01") || this;
1512
+ }
1513
+ ResourcesService.prototype.Ping = function (request) {
1514
+ return this._connection.send("Ping", request);
1515
+ };
1516
+ ResourcesService.prototype.ServiceQuery = function (request) {
1517
+ return this._connection.send("ServiceQuery", request);
1518
+ };
1519
+ ResourcesService.prototype.WebLinksQuery = function (request) {
1520
+ return this._connection.send("WebLinksQuery", request);
1521
+ };
1522
+ return ResourcesService;
1523
+ }(Service));
1524
+
1525
+ var ResourcesServiceEx = /** @class */ (function (_super) {
1526
+ __extends(ResourcesServiceEx, _super);
1527
+ function ResourcesServiceEx() {
1528
+ return _super !== null && _super.apply(this, arguments) || this;
1529
+ }
1530
+ return ResourcesServiceEx;
1531
+ }(ResourcesService));
1532
+
1475
1533
  var SMCService = /** @class */ (function () {
1476
1534
  function SMCService(optsConnection) {
1477
1535
  this._connection = new ESPConnection(optsConnection, "WsSMC", "1.24");
@@ -1569,18 +1627,13 @@
1569
1627
  return StoreService;
1570
1628
  }(Service));
1571
1629
 
1572
- /*
1573
- Response structures generated via:
1574
- * http://localhost:8010/WsTopology/TpLogicalClusterQuery?respjson_
1575
- * http://json2ts.com/
1576
- */
1577
- exports.TpLogicalClusterQuery = void 0;
1578
1630
  (function (TpLogicalClusterQuery) {
1631
+ var RoxieQueueFilter;
1579
1632
  (function (RoxieQueueFilter) {
1580
1633
  RoxieQueueFilter["All"] = "All";
1581
1634
  RoxieQueueFilter["QueriesOnly"] = "QueriesOnly";
1582
1635
  RoxieQueueFilter["WorkunitsOnly"] = "WorkunitsOnly";
1583
- })(TpLogicalClusterQuery.RoxieQueueFilter || (TpLogicalClusterQuery.RoxieQueueFilter = {}));
1636
+ })(RoxieQueueFilter = TpLogicalClusterQuery.RoxieQueueFilter || (TpLogicalClusterQuery.RoxieQueueFilter = {}));
1584
1637
  })(exports.TpLogicalClusterQuery || (exports.TpLogicalClusterQuery = {}));
1585
1638
  var TopologyService = /** @class */ (function (_super) {
1586
1639
  __extends(TopologyService, _super);
@@ -1636,13 +1689,6 @@
1636
1689
  return TopologyService;
1637
1690
  }(Service));
1638
1691
 
1639
- /*
1640
- Response structures generated via:
1641
- * http://localhost:8010/WsWorkunits/WUInfo?reqjson_
1642
- * http://localhost:8010/WsWorkunits/WUInfo?respjson_
1643
- * http://json2ts.com/
1644
- */
1645
- exports.WUStateID = void 0;
1646
1692
  (function (WUStateID) {
1647
1693
  WUStateID[WUStateID["Unknown"] = 0] = "Unknown";
1648
1694
  WUStateID[WUStateID["Compiled"] = 1] = "Compiled";
@@ -1667,8 +1713,8 @@
1667
1713
  function isECLResult(_) {
1668
1714
  return typeof _.Name === "string";
1669
1715
  }
1670
- exports.WUUpdate = void 0;
1671
1716
  (function (WUUpdate) {
1717
+ var Action;
1672
1718
  (function (Action) {
1673
1719
  Action[Action["Unknown"] = 0] = "Unknown";
1674
1720
  Action[Action["Compile"] = 1] = "Compile";
@@ -1680,7 +1726,7 @@
1680
1726
  Action[Action["Resume"] = 7] = "Resume";
1681
1727
  Action[Action["Debug"] = 8] = "Debug";
1682
1728
  Action[Action["__size"] = 9] = "__size";
1683
- })(WUUpdate.Action || (WUUpdate.Action = {}));
1729
+ })(Action = WUUpdate.Action || (WUUpdate.Action = {}));
1684
1730
  })(exports.WUUpdate || (exports.WUUpdate = {}));
1685
1731
  function isWUQueryECLWorkunit(_) {
1686
1732
  return _.TotalClusterTime !== undefined;
@@ -1882,8 +1928,6 @@
1882
1928
  return date.getDate() - 1;
1883
1929
  });
1884
1930
 
1885
- var timeDay = day;
1886
-
1887
1931
  function weekday(i) {
1888
1932
  return newInterval(function(date) {
1889
1933
  date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
@@ -1897,11 +1941,11 @@
1897
1941
 
1898
1942
  var sunday = weekday(0);
1899
1943
  var monday = weekday(1);
1900
- weekday(2);
1901
- weekday(3);
1944
+ var tuesday = weekday(2);
1945
+ var wednesday = weekday(3);
1902
1946
  var thursday = weekday(4);
1903
- weekday(5);
1904
- weekday(6);
1947
+ var friday = weekday(5);
1948
+ var saturday = weekday(6);
1905
1949
 
1906
1950
  var year = newInterval(function(date) {
1907
1951
  date.setMonth(0, 1);
@@ -1925,8 +1969,6 @@
1925
1969
  });
1926
1970
  };
1927
1971
 
1928
- var timeYear = year;
1929
-
1930
1972
  var utcDay = newInterval(function(date) {
1931
1973
  date.setUTCHours(0, 0, 0, 0);
1932
1974
  }, function(date, step) {
@@ -1937,8 +1979,6 @@
1937
1979
  return date.getUTCDate() - 1;
1938
1980
  });
1939
1981
 
1940
- var utcDay$1 = utcDay;
1941
-
1942
1982
  function utcWeekday(i) {
1943
1983
  return newInterval(function(date) {
1944
1984
  date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
@@ -1952,11 +1992,11 @@
1952
1992
 
1953
1993
  var utcSunday = utcWeekday(0);
1954
1994
  var utcMonday = utcWeekday(1);
1955
- utcWeekday(2);
1956
- utcWeekday(3);
1995
+ var utcTuesday = utcWeekday(2);
1996
+ var utcWednesday = utcWeekday(3);
1957
1997
  var utcThursday = utcWeekday(4);
1958
- utcWeekday(5);
1959
- utcWeekday(6);
1998
+ var utcFriday = utcWeekday(5);
1999
+ var utcSaturday = utcWeekday(6);
1960
2000
 
1961
2001
  var utcYear = newInterval(function(date) {
1962
2002
  date.setUTCMonth(0, 1);
@@ -1980,8 +2020,6 @@
1980
2020
  });
1981
2021
  };
1982
2022
 
1983
- var utcYear$1 = utcYear;
1984
-
1985
2023
  function localDate(d) {
1986
2024
  if (0 <= d.y && d.y < 100) {
1987
2025
  var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
@@ -2170,7 +2208,7 @@
2170
2208
  return function(string) {
2171
2209
  var d = newDate(1900, undefined, 1),
2172
2210
  i = parseSpecifier(d, specifier, string += "", 0),
2173
- week, day;
2211
+ week, day$1;
2174
2212
  if (i != string.length) return null;
2175
2213
 
2176
2214
  // If a UNIX timestamp is specified, return it.
@@ -2191,25 +2229,25 @@
2191
2229
  if (d.V < 1 || d.V > 53) return null;
2192
2230
  if (!("w" in d)) d.w = 1;
2193
2231
  if ("Z" in d) {
2194
- week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
2195
- week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
2196
- week = utcDay$1.offset(week, (d.V - 1) * 7);
2232
+ week = utcDate(newDate(d.y, 0, 1)), day$1 = week.getUTCDay();
2233
+ week = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week) : utcMonday(week);
2234
+ week = utcDay.offset(week, (d.V - 1) * 7);
2197
2235
  d.y = week.getUTCFullYear();
2198
2236
  d.m = week.getUTCMonth();
2199
2237
  d.d = week.getUTCDate() + (d.w + 6) % 7;
2200
2238
  } else {
2201
- week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
2202
- week = day > 4 || day === 0 ? monday.ceil(week) : monday(week);
2203
- week = timeDay.offset(week, (d.V - 1) * 7);
2239
+ week = localDate(newDate(d.y, 0, 1)), day$1 = week.getDay();
2240
+ week = day$1 > 4 || day$1 === 0 ? monday.ceil(week) : monday(week);
2241
+ week = day.offset(week, (d.V - 1) * 7);
2204
2242
  d.y = week.getFullYear();
2205
2243
  d.m = week.getMonth();
2206
2244
  d.d = week.getDate() + (d.w + 6) % 7;
2207
2245
  }
2208
2246
  } else if ("W" in d || "U" in d) {
2209
2247
  if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
2210
- day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2248
+ day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
2211
2249
  d.m = 0;
2212
- d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
2250
+ 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;
2213
2251
  }
2214
2252
 
2215
2253
  // If a time zone is specified, all fields are interpreted as UTC and then
@@ -2495,7 +2533,7 @@
2495
2533
  }
2496
2534
 
2497
2535
  function formatDayOfYear(d, p) {
2498
- return pad(1 + timeDay.count(timeYear(d), d), p, 3);
2536
+ return pad(1 + day.count(year(d), d), p, 3);
2499
2537
  }
2500
2538
 
2501
2539
  function formatMilliseconds(d, p) {
@@ -2524,7 +2562,7 @@
2524
2562
  }
2525
2563
 
2526
2564
  function formatWeekNumberSunday(d, p) {
2527
- return pad(sunday.count(timeYear(d) - 1, d), p, 2);
2565
+ return pad(sunday.count(year(d) - 1, d), p, 2);
2528
2566
  }
2529
2567
 
2530
2568
  function dISO(d) {
@@ -2534,7 +2572,7 @@
2534
2572
 
2535
2573
  function formatWeekNumberISO(d, p) {
2536
2574
  d = dISO(d);
2537
- return pad(thursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
2575
+ return pad(thursday.count(year(d), d) + (year(d).getDay() === 4), p, 2);
2538
2576
  }
2539
2577
 
2540
2578
  function formatWeekdayNumberSunday(d) {
@@ -2542,7 +2580,7 @@
2542
2580
  }
2543
2581
 
2544
2582
  function formatWeekNumberMonday(d, p) {
2545
- return pad(monday.count(timeYear(d) - 1, d), p, 2);
2583
+ return pad(monday.count(year(d) - 1, d), p, 2);
2546
2584
  }
2547
2585
 
2548
2586
  function formatYear(d, p) {
@@ -2584,7 +2622,7 @@
2584
2622
  }
2585
2623
 
2586
2624
  function formatUTCDayOfYear(d, p) {
2587
- return pad(1 + utcDay$1.count(utcYear$1(d), d), p, 3);
2625
+ return pad(1 + utcDay.count(utcYear(d), d), p, 3);
2588
2626
  }
2589
2627
 
2590
2628
  function formatUTCMilliseconds(d, p) {
@@ -2613,7 +2651,7 @@
2613
2651
  }
2614
2652
 
2615
2653
  function formatUTCWeekNumberSunday(d, p) {
2616
- return pad(utcSunday.count(utcYear$1(d) - 1, d), p, 2);
2654
+ return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
2617
2655
  }
2618
2656
 
2619
2657
  function UTCdISO(d) {
@@ -2623,7 +2661,7 @@
2623
2661
 
2624
2662
  function formatUTCWeekNumberISO(d, p) {
2625
2663
  d = UTCdISO(d);
2626
- return pad(utcThursday.count(utcYear$1(d), d) + (utcYear$1(d).getUTCDay() === 4), p, 2);
2664
+ return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
2627
2665
  }
2628
2666
 
2629
2667
  function formatUTCWeekdayNumberSunday(d) {
@@ -2631,7 +2669,7 @@
2631
2669
  }
2632
2670
 
2633
2671
  function formatUTCWeekNumberMonday(d, p) {
2634
- return pad(utcMonday.count(utcYear$1(d) - 1, d), p, 2);
2672
+ return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
2635
2673
  }
2636
2674
 
2637
2675
  function formatUTCYear(d, p) {
@@ -2670,6 +2708,8 @@
2670
2708
  }
2671
2709
 
2672
2710
  var locale;
2711
+ var timeFormat;
2712
+ var timeParse;
2673
2713
  var utcFormat;
2674
2714
  var utcParse;
2675
2715
 
@@ -2686,6 +2726,8 @@
2686
2726
 
2687
2727
  function defaultLocale(definition) {
2688
2728
  locale = formatLocale(definition);
2729
+ timeFormat = locale.format;
2730
+ timeParse = locale.parse;
2689
2731
  utcFormat = locale.utcFormat;
2690
2732
  utcParse = locale.utcParse;
2691
2733
  return locale;
@@ -2912,7 +2954,7 @@
2912
2954
  scopeStack.pop();
2913
2955
  }
2914
2956
  if (!scopeParent1) {
2915
- console.log("Missing SG:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2957
+ console.log("Missing SG:Parent (" + scope.Id + "): " + scope.parentScope());
2916
2958
  }
2917
2959
  else {
2918
2960
  var parent1 = scopeParent1;
@@ -2922,7 +2964,7 @@
2922
2964
  case "activity":
2923
2965
  var scopeParent2 = subgraphs[scope.parentScope()];
2924
2966
  if (!scopeParent2) {
2925
- console.log("Missing A:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2967
+ console.log("Missing A:Parent (" + scope.Id + "): " + scope.parentScope());
2926
2968
  }
2927
2969
  else {
2928
2970
  vertices[scope.ScopeName] = scopeParent2.createVertex(scope);
@@ -2934,7 +2976,7 @@
2934
2976
  case "function":
2935
2977
  var scopeParent3 = vertices[scope.parentScope()];
2936
2978
  if (!scopeParent3) {
2937
- console.log("Missing F:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2979
+ console.log("Missing F:Parent (" + scope.Id + "): " + scope.parentScope());
2938
2980
  }
2939
2981
  else {
2940
2982
  scopeParent3._.children().push(scope);
@@ -2946,7 +2988,7 @@
2946
2988
  var scope = edges[id];
2947
2989
  var scopeParent3 = subgraphs[scope.parentScope()];
2948
2990
  if (!scopeParent3) {
2949
- console.log("Missing E:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
2991
+ console.log("Missing E:Parent (" + scope.Id + "): " + scope.parentScope());
2950
2992
  }
2951
2993
  else {
2952
2994
  var parent3 = scopeParent3;
@@ -2958,7 +3000,7 @@
2958
3000
  catch (e) {
2959
3001
  // const sourceIndex = scope.attr("SourceIndex").RawValue;
2960
3002
  // const targetIndex = scope.attr("TargetIndex").RawValue;
2961
- console.log("Invalid Edge: ".concat(id));
3003
+ console.log("Invalid Edge: " + id);
2962
3004
  }
2963
3005
  }
2964
3006
  }
@@ -3251,7 +3293,7 @@
3251
3293
  __extends(GlobalResultCache, _super);
3252
3294
  function GlobalResultCache() {
3253
3295
  return _super.call(this, function (obj) {
3254
- return "".concat(obj.BaseUrl, "-").concat(obj.Wuid, "-").concat(obj.ResultName);
3296
+ return obj.BaseUrl + "-" + obj.Wuid + "-" + obj.ResultName;
3255
3297
  }) || this;
3256
3298
  }
3257
3299
  return GlobalResultCache;
@@ -3722,21 +3764,21 @@
3722
3764
  var label = "";
3723
3765
  var rows = [];
3724
3766
  label = this.Id;
3725
- rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">".concat(this.Id, "</td></tr>"));
3767
+ rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">" + this.Id + "</td></tr>");
3726
3768
  if (parentScope) {
3727
- rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">".concat(parentScope.Id, "</td></tr>"));
3769
+ rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">" + parentScope.Id + "</td></tr>");
3728
3770
  }
3729
- rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">".concat(this.ScopeName, "</td></tr>"));
3771
+ rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">" + this.ScopeName + "</td></tr>");
3730
3772
  var attrs = this.formattedAttrs();
3731
3773
  for (var key in attrs) {
3732
3774
  if (key === "Label") {
3733
3775
  label = attrs[key];
3734
3776
  }
3735
3777
  else {
3736
- rows.push("<tr><td class=\"key\">".concat(key, "</td><td class=\"value\">").concat(attrs[key], "</td></tr>"));
3778
+ rows.push("<tr><td class=\"key\">" + key + "</td><td class=\"value\">" + attrs[key] + "</td></tr>");
3737
3779
  }
3738
3780
  }
3739
- return "<div class=\"eclwatch_WUGraph_Tooltip\" style=\"max-width:480px\">\n <h4 align=\"center\">".concat(label, "</h4>\n <table>\n ").concat(rows.join(""), "\n </table>\n </div>");
3781
+ return "<div class=\"eclwatch_WUGraph_Tooltip\" style=\"max-width:480px\">\n <h4 align=\"center\">" + label + "</h4>\n <table>\n " + rows.join("") + "\n </table>\n </div>";
3740
3782
  };
3741
3783
  return BaseScope;
3742
3784
  }(util.StateObject));
@@ -3870,13 +3912,13 @@
3870
3912
 
3871
3913
  var formatter = utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");
3872
3914
  var parser = utcParse("%Y-%m-%dT%H:%M:%S.%LZ");
3873
- var logger = util.scopedLogger("workunit.ts");
3915
+ var logger$1 = util.scopedLogger("workunit.ts");
3874
3916
  var WUStateID = exports.WUStateID;
3875
3917
  var WorkunitCache = /** @class */ (function (_super) {
3876
3918
  __extends(WorkunitCache, _super);
3877
3919
  function WorkunitCache() {
3878
3920
  return _super.call(this, function (obj) {
3879
- return "".concat(obj.BaseUrl, "-").concat(obj.Wuid);
3921
+ return obj.BaseUrl + "-" + obj.Wuid;
3880
3922
  }) || this;
3881
3923
  }
3882
3924
  return WorkunitCache;
@@ -4724,6 +4766,9 @@
4724
4766
  case "cnt":
4725
4767
  props[scopeProperty.Name] = +scopeProperty.RawValue;
4726
4768
  break;
4769
+ case "cost":
4770
+ props[scopeProperty.Name] = +scopeProperty.RawValue / 1000000;
4771
+ break;
4727
4772
  case "cpu":
4728
4773
  case "skw":
4729
4774
  case "node":
@@ -4978,7 +5023,7 @@
4978
5023
  return false;
4979
5024
  });
4980
5025
  if (!wuMissing) {
4981
- logger.warning("Unexpected exception: ");
5026
+ logger$1.warning("Unexpected exception: ");
4982
5027
  throw e;
4983
5028
  }
4984
5029
  return {};
@@ -5015,7 +5060,7 @@
5015
5060
  return false;
5016
5061
  });
5017
5062
  if (!wuMissing) {
5018
- logger.warning("Unexpected exception: ");
5063
+ logger$1.warning("Unexpected exception: ");
5019
5064
  throw e;
5020
5065
  }
5021
5066
  return {};
@@ -5083,12 +5128,12 @@
5083
5128
  var optsStr = "";
5084
5129
  for (var key in opts) {
5085
5130
  if (opts.hasOwnProperty(key)) {
5086
- optsStr += " ".concat(key, "='").concat(opts[key], "'");
5131
+ optsStr += " " + key + "='" + opts[key] + "'";
5087
5132
  }
5088
5133
  }
5089
5134
  return this.connection.WUCDebug({
5090
5135
  Wuid: this.Wuid,
5091
- Command: "<debug:".concat(command, " uid='").concat(this.Wuid, "'").concat(optsStr, "/>")
5136
+ Command: "<debug:" + command + " uid='" + this.Wuid + "'" + optsStr + "/>"
5092
5137
  }).then(function (response) {
5093
5138
  return response;
5094
5139
  });
@@ -5104,7 +5149,7 @@
5104
5149
  }
5105
5150
  return new util.XMLNode(command);
5106
5151
  }).catch(function (_) {
5107
- logger.error(_);
5152
+ logger$1.error(_);
5108
5153
  return Promise.resolve(new util.XMLNode(command));
5109
5154
  });
5110
5155
  };
@@ -5219,7 +5264,7 @@
5219
5264
  column: +_col
5220
5265
  };
5221
5266
  }
5222
- throw new Error("Bad definition: ".concat(vertex._[ATTR_DEFINITION]));
5267
+ throw new Error("Bad definition: " + vertex._[ATTR_DEFINITION]);
5223
5268
  }
5224
5269
  function breakpointLocations(graph, path) {
5225
5270
  var retVal = [];
@@ -5408,12 +5453,12 @@
5408
5453
  __extends(LogicalFileCache, _super);
5409
5454
  function LogicalFileCache() {
5410
5455
  return _super.call(this, function (obj) {
5411
- return "".concat(obj.BaseUrl, "-").concat(obj.Cluster, "-").concat(obj.Name);
5456
+ return obj.BaseUrl + "-" + obj.Cluster + "-" + obj.Name;
5412
5457
  }) || this;
5413
5458
  }
5414
5459
  return LogicalFileCache;
5415
5460
  }(util.Cache));
5416
- var _store$1 = new LogicalFileCache();
5461
+ var _store = new LogicalFileCache();
5417
5462
  var LogicalFile = /** @class */ (function (_super) {
5418
5463
  __extends(LogicalFile, _super);
5419
5464
  function LogicalFile(optsConnection, Cluster, Name) {
@@ -5696,14 +5741,14 @@
5696
5741
  configurable: true
5697
5742
  });
5698
5743
  LogicalFile.attach = function (optsConnection, Cluster, Name) {
5699
- var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
5744
+ var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
5700
5745
  return new LogicalFile(optsConnection, Cluster, Name);
5701
5746
  });
5702
5747
  return retVal;
5703
5748
  };
5704
5749
  LogicalFile.prototype.filePartsOnCluster = function () {
5705
5750
  var _a;
5706
- return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []), true);
5751
+ return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []));
5707
5752
  };
5708
5753
  LogicalFile.prototype.fileParts = function () {
5709
5754
  var _a, _b;
@@ -6150,12 +6195,12 @@
6150
6195
  __extends(StoreCache, _super);
6151
6196
  function StoreCache() {
6152
6197
  return _super.call(this, function (obj) {
6153
- return "".concat(obj.BaseUrl, "-").concat(obj.Name, ":").concat(obj.UserSpecific, "-").concat(obj.Namespace);
6198
+ return obj.BaseUrl + "-" + obj.Name + ":" + obj.UserSpecific + "-" + obj.Namespace;
6154
6199
  }) || this;
6155
6200
  }
6156
6201
  return StoreCache;
6157
6202
  }(util.Cache));
6158
- var _store = new StoreCache();
6203
+ var _store$1 = new StoreCache();
6159
6204
  var ValueChangedMessage = /** @class */ (function (_super) {
6160
6205
  __extends(ValueChangedMessage, _super);
6161
6206
  function ValueChangedMessage(key, value, oldValue) {
@@ -6204,7 +6249,7 @@
6204
6249
  Store.attach = function (optsConnection, Name, Namespace, UserSpecific) {
6205
6250
  if (Name === void 0) { Name = "HPCCApps"; }
6206
6251
  if (UserSpecific === void 0) { UserSpecific = true; }
6207
- var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Name: Name, UserSpecific: UserSpecific, Namespace: Namespace }, function () {
6252
+ var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Name: Name, UserSpecific: UserSpecific, Namespace: Namespace }, function () {
6208
6253
  return new Store(optsConnection, Name, Namespace, UserSpecific);
6209
6254
  });
6210
6255
  return retVal;
@@ -6228,7 +6273,7 @@
6228
6273
  _this._dispatch.post(new ValueChangedMessage(key, value, oldValue));
6229
6274
  }
6230
6275
  }).catch(function (e) {
6231
- console.error("Store.set(\"".concat(key, "\", \"").concat(value, "\") failed:"), e);
6276
+ console.error("Store.set(\"" + key + "\", \"" + value + "\") failed:", e);
6232
6277
  });
6233
6278
  };
6234
6279
  Store.prototype.get = function (key, broadcast) {
@@ -6247,7 +6292,7 @@
6247
6292
  }
6248
6293
  return response.Value;
6249
6294
  }).catch(function (e) {
6250
- console.error("Store.get(".concat(key, ") failed:"), e);
6295
+ console.error("Store.get(" + key + ") failed:", e);
6251
6296
  return undefined;
6252
6297
  });
6253
6298
  };
@@ -6297,7 +6342,7 @@
6297
6342
  _this._dispatch.post(new ValueChangedMessage(key, undefined, oldValue));
6298
6343
  }
6299
6344
  }).catch(function (e) {
6300
- console.error("Store.delete(".concat(key, ") failed:"), e);
6345
+ console.error("Store.delete(" + key + ") failed:", e);
6301
6346
  });
6302
6347
  };
6303
6348
  Store.prototype.monitor = function (callback) {
@@ -6310,7 +6355,7 @@
6310
6355
  __extends(TargetClusterCache, _super);
6311
6356
  function TargetClusterCache() {
6312
6357
  return _super.call(this, function (obj) {
6313
- return "".concat(obj.BaseUrl, "-").concat(obj.Name);
6358
+ return obj.BaseUrl + "-" + obj.Name;
6314
6359
  }) || this;
6315
6360
  }
6316
6361
  return TargetClusterCache;
@@ -6409,7 +6454,7 @@
6409
6454
  var _this = this;
6410
6455
  if (request === void 0) { request = {}; }
6411
6456
  return this.machineConnection.GetTargetClusterInfo(__assign({ TargetClusters: {
6412
- Item: ["".concat(this.Type, ":").concat(this.Name)]
6457
+ Item: [this.Type + ":" + this.Name]
6413
6458
  } }, request)).then(function (response) {
6414
6459
  var retVal = [];
6415
6460
  for (var _i = 0, _a = response.TargetClusterInfoList.TargetClusterInfo; _i < _a.length; _i++) {
@@ -6575,7 +6620,7 @@
6575
6620
  }
6576
6621
  }
6577
6622
  }
6578
- return "".concat(rootProtocol, "//").concat(ip, ":").concat(port, "/");
6623
+ return rootProtocol + "//" + ip + ":" + port + "/";
6579
6624
  });
6580
6625
  };
6581
6626
  Topology.prototype.fetchTargetClusters = function () {
@@ -6656,6 +6701,7 @@
6656
6701
  exports.EclService = EclService;
6657
6702
  exports.GlobalResultCache = GlobalResultCache;
6658
6703
  exports.GraphCache = GraphCache;
6704
+ exports.LogaccessServiceEx = LogaccessServiceEx;
6659
6705
  exports.LogicalFile = LogicalFile;
6660
6706
  exports.LogicalFileCache = LogicalFileCache;
6661
6707
  exports.Machine = Machine;
@@ -6665,6 +6711,7 @@
6665
6711
  exports.PKG_VERSION = PKG_VERSION;
6666
6712
  exports.Query = Query;
6667
6713
  exports.Resource = Resource;
6714
+ exports.ResourcesServiceEx = ResourcesServiceEx;
6668
6715
  exports.Result = Result;
6669
6716
  exports.ResultCache = ResultCache;
6670
6717
  exports.SMCService = SMCService;
@@ -6720,5 +6767,5 @@
6720
6767
 
6721
6768
  Object.defineProperty(exports, '__esModule', { value: true });
6722
6769
 
6723
- }));
6770
+ })));
6724
6771
  //# sourceMappingURL=index.js.map