@hpcc-js/comms 2.62.0 → 2.66.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.
- package/dist/index.es6.js +209 -198
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +111 -86
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +226 -174
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/clienttools/eclMeta.js +4 -4
- package/lib-es6/clienttools/eclMeta.js.map +1 -1
- package/lib-es6/clienttools/eclcc.js +18 -18
- package/lib-es6/clienttools/eclcc.js.map +1 -1
- package/lib-es6/connection.js +6 -6
- package/lib-es6/connection.js.map +1 -1
- package/lib-es6/ecl/activity.js +7 -0
- package/lib-es6/ecl/activity.js.map +1 -1
- package/lib-es6/ecl/graph.js +5 -5
- package/lib-es6/ecl/graph.js.map +1 -1
- package/lib-es6/ecl/logicalFile.js +2 -2
- package/lib-es6/ecl/logicalFile.js.map +1 -1
- package/lib-es6/ecl/result.js +2 -1
- package/lib-es6/ecl/result.js.map +1 -1
- package/lib-es6/ecl/scope.js +5 -5
- package/lib-es6/ecl/scope.js.map +1 -1
- package/lib-es6/ecl/store.js +4 -4
- package/lib-es6/ecl/store.js.map +1 -1
- package/lib-es6/ecl/targetCluster.js +2 -2
- package/lib-es6/ecl/targetCluster.js.map +1 -1
- package/lib-es6/ecl/topology.js +3 -2
- package/lib-es6/ecl/topology.js.map +1 -1
- package/lib-es6/ecl/workunit.js +4 -4
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/espConnection.js +1 -1
- package/lib-es6/espConnection.js.map +1 -1
- package/lib-es6/services/wsDFU.js.map +1 -1
- package/lib-es6/services/wsEcl.js +3 -3
- package/lib-es6/services/wsEcl.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/package.json +21 -20
- package/src/__package__.ts +2 -2
- package/src/ecl/activity.ts +9 -0
- package/src/ecl/result.ts +1 -0
- package/src/ecl/topology.ts +2 -2
- package/src/services/wsDFU.ts +1 -0
- package/src/services/wsWorkunits.ts +2 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/activity.d.ts +2 -1
- package/types/ecl/activity.d.ts.map +1 -1
- package/types/ecl/result.d.ts.map +1 -1
- package/types/ecl/topology.d.ts.map +1 -1
- package/types/services/wsDFU.d.ts +1 -0
- package/types/services/wsDFU.d.ts.map +1 -1
- package/types/services/wsWorkunits.d.ts +2 -0
- package/types/services/wsWorkunits.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/activity.d.ts +2 -1
- package/types-3.4/services/wsDFU.d.ts +1 -0
- package/types-3.4/services/wsWorkunits.d.ts +2 -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 = global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, util) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : 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.
|
|
607
|
-
var BUILD_VERSION = "2.
|
|
606
|
+
var PKG_VERSION = "2.66.0";
|
|
607
|
+
var BUILD_VERSION = "2.97.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 || from);
|
|
696
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
var logger = util.scopedLogger("comms/connection.ts");
|
|
699
|
+
var logger$1 = 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(key
|
|
738
|
+
str.push(serializeRequest(row, encodeRequest, prefix + encode("".concat(key, ".").concat(i), encodeRequest)));
|
|
739
739
|
}
|
|
740
740
|
else {
|
|
741
|
-
str.push(prefix + encode(key
|
|
741
|
+
str.push(prefix + encode("".concat(key, "_i").concat(i), encodeRequest) + "=" + serializeRequest(row, encodeRequest));
|
|
742
742
|
}
|
|
743
743
|
});
|
|
744
744
|
if (includeItemCount_1) {
|
|
745
|
-
str.push(prefix + encode(key
|
|
745
|
+
str.push(prefix + encode("".concat(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(key
|
|
751
|
+
str.push(prefix + encode("".concat(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.error("Request timeout: " + script.src);
|
|
801
|
+
logger$1.error("Request timeout: " + script.src);
|
|
802
802
|
doCallback();
|
|
803
803
|
reject(Error("Request timeout: " + script.src));
|
|
804
804
|
}
|
|
805
805
|
else {
|
|
806
|
-
logger.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
|
|
806
|
+
logger$1.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 "
|
|
817
|
+
return opts.userID ? { Authorization: "Basic ".concat(btoa("".concat(opts.userID, ":").concat(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, action
|
|
876
|
+
return doFetch(opts, "".concat(action, "?").concat(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 = exceptions.Exception[0].Code
|
|
955
|
+
_this.message = "".concat(exceptions.Exception[0].Code, ": ").concat(exceptions.Exception[0].Message);
|
|
956
956
|
}
|
|
957
957
|
else {
|
|
958
958
|
_this.message = "";
|
|
@@ -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/"
|
|
1275
|
+
return this._connection.send("example/request/query/".concat(querySet, "/").concat(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/"
|
|
1285
|
+
return this._connection.send("example/response/query/".concat(querySet, "/").concat(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/"
|
|
1301
|
+
var action = "submit/query/".concat(querySet, "/").concat(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, {
|
|
@@ -1348,7 +1348,7 @@
|
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
|
|
1351
|
+
bisector(ascending);
|
|
1352
1352
|
|
|
1353
1353
|
function number(x) {
|
|
1354
1354
|
return x === null ? NaN : +x;
|
|
@@ -1569,13 +1569,18 @@
|
|
|
1569
1569
|
return StoreService;
|
|
1570
1570
|
}(Service));
|
|
1571
1571
|
|
|
1572
|
+
/*
|
|
1573
|
+
Response structures generated via:
|
|
1574
|
+
* http://localhost:8010/WsTopology/TpLogicalClusterQuery?respjson_
|
|
1575
|
+
* http://json2ts.com/
|
|
1576
|
+
*/
|
|
1577
|
+
exports.TpLogicalClusterQuery = void 0;
|
|
1572
1578
|
(function (TpLogicalClusterQuery) {
|
|
1573
|
-
var RoxieQueueFilter;
|
|
1574
1579
|
(function (RoxieQueueFilter) {
|
|
1575
1580
|
RoxieQueueFilter["All"] = "All";
|
|
1576
1581
|
RoxieQueueFilter["QueriesOnly"] = "QueriesOnly";
|
|
1577
1582
|
RoxieQueueFilter["WorkunitsOnly"] = "WorkunitsOnly";
|
|
1578
|
-
})(
|
|
1583
|
+
})(TpLogicalClusterQuery.RoxieQueueFilter || (TpLogicalClusterQuery.RoxieQueueFilter = {}));
|
|
1579
1584
|
})(exports.TpLogicalClusterQuery || (exports.TpLogicalClusterQuery = {}));
|
|
1580
1585
|
var TopologyService = /** @class */ (function (_super) {
|
|
1581
1586
|
__extends(TopologyService, _super);
|
|
@@ -1631,6 +1636,13 @@
|
|
|
1631
1636
|
return TopologyService;
|
|
1632
1637
|
}(Service));
|
|
1633
1638
|
|
|
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;
|
|
1634
1646
|
(function (WUStateID) {
|
|
1635
1647
|
WUStateID[WUStateID["Unknown"] = 0] = "Unknown";
|
|
1636
1648
|
WUStateID[WUStateID["Compiled"] = 1] = "Compiled";
|
|
@@ -1655,8 +1667,8 @@
|
|
|
1655
1667
|
function isECLResult(_) {
|
|
1656
1668
|
return typeof _.Name === "string";
|
|
1657
1669
|
}
|
|
1670
|
+
exports.WUUpdate = void 0;
|
|
1658
1671
|
(function (WUUpdate) {
|
|
1659
|
-
var Action;
|
|
1660
1672
|
(function (Action) {
|
|
1661
1673
|
Action[Action["Unknown"] = 0] = "Unknown";
|
|
1662
1674
|
Action[Action["Compile"] = 1] = "Compile";
|
|
@@ -1668,7 +1680,7 @@
|
|
|
1668
1680
|
Action[Action["Resume"] = 7] = "Resume";
|
|
1669
1681
|
Action[Action["Debug"] = 8] = "Debug";
|
|
1670
1682
|
Action[Action["__size"] = 9] = "__size";
|
|
1671
|
-
})(
|
|
1683
|
+
})(WUUpdate.Action || (WUUpdate.Action = {}));
|
|
1672
1684
|
})(exports.WUUpdate || (exports.WUUpdate = {}));
|
|
1673
1685
|
function isWUQueryECLWorkunit(_) {
|
|
1674
1686
|
return _.TotalClusterTime !== undefined;
|
|
@@ -1870,6 +1882,8 @@
|
|
|
1870
1882
|
return date.getDate() - 1;
|
|
1871
1883
|
});
|
|
1872
1884
|
|
|
1885
|
+
var timeDay = day;
|
|
1886
|
+
|
|
1873
1887
|
function weekday(i) {
|
|
1874
1888
|
return newInterval(function(date) {
|
|
1875
1889
|
date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
|
|
@@ -1883,11 +1897,11 @@
|
|
|
1883
1897
|
|
|
1884
1898
|
var sunday = weekday(0);
|
|
1885
1899
|
var monday = weekday(1);
|
|
1886
|
-
|
|
1887
|
-
|
|
1900
|
+
weekday(2);
|
|
1901
|
+
weekday(3);
|
|
1888
1902
|
var thursday = weekday(4);
|
|
1889
|
-
|
|
1890
|
-
|
|
1903
|
+
weekday(5);
|
|
1904
|
+
weekday(6);
|
|
1891
1905
|
|
|
1892
1906
|
var year = newInterval(function(date) {
|
|
1893
1907
|
date.setMonth(0, 1);
|
|
@@ -1911,6 +1925,8 @@
|
|
|
1911
1925
|
});
|
|
1912
1926
|
};
|
|
1913
1927
|
|
|
1928
|
+
var timeYear = year;
|
|
1929
|
+
|
|
1914
1930
|
var utcDay = newInterval(function(date) {
|
|
1915
1931
|
date.setUTCHours(0, 0, 0, 0);
|
|
1916
1932
|
}, function(date, step) {
|
|
@@ -1921,6 +1937,8 @@
|
|
|
1921
1937
|
return date.getUTCDate() - 1;
|
|
1922
1938
|
});
|
|
1923
1939
|
|
|
1940
|
+
var utcDay$1 = utcDay;
|
|
1941
|
+
|
|
1924
1942
|
function utcWeekday(i) {
|
|
1925
1943
|
return newInterval(function(date) {
|
|
1926
1944
|
date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
|
|
@@ -1934,11 +1952,11 @@
|
|
|
1934
1952
|
|
|
1935
1953
|
var utcSunday = utcWeekday(0);
|
|
1936
1954
|
var utcMonday = utcWeekday(1);
|
|
1937
|
-
|
|
1938
|
-
|
|
1955
|
+
utcWeekday(2);
|
|
1956
|
+
utcWeekday(3);
|
|
1939
1957
|
var utcThursday = utcWeekday(4);
|
|
1940
|
-
|
|
1941
|
-
|
|
1958
|
+
utcWeekday(5);
|
|
1959
|
+
utcWeekday(6);
|
|
1942
1960
|
|
|
1943
1961
|
var utcYear = newInterval(function(date) {
|
|
1944
1962
|
date.setUTCMonth(0, 1);
|
|
@@ -1962,6 +1980,8 @@
|
|
|
1962
1980
|
});
|
|
1963
1981
|
};
|
|
1964
1982
|
|
|
1983
|
+
var utcYear$1 = utcYear;
|
|
1984
|
+
|
|
1965
1985
|
function localDate(d) {
|
|
1966
1986
|
if (0 <= d.y && d.y < 100) {
|
|
1967
1987
|
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
|
|
@@ -2150,7 +2170,7 @@
|
|
|
2150
2170
|
return function(string) {
|
|
2151
2171
|
var d = newDate(1900, undefined, 1),
|
|
2152
2172
|
i = parseSpecifier(d, specifier, string += "", 0),
|
|
2153
|
-
week, day
|
|
2173
|
+
week, day;
|
|
2154
2174
|
if (i != string.length) return null;
|
|
2155
2175
|
|
|
2156
2176
|
// If a UNIX timestamp is specified, return it.
|
|
@@ -2171,25 +2191,25 @@
|
|
|
2171
2191
|
if (d.V < 1 || d.V > 53) return null;
|
|
2172
2192
|
if (!("w" in d)) d.w = 1;
|
|
2173
2193
|
if ("Z" in d) {
|
|
2174
|
-
week = utcDate(newDate(d.y, 0, 1)), day
|
|
2175
|
-
week = day
|
|
2176
|
-
week = utcDay.offset(week, (d.V - 1) * 7);
|
|
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);
|
|
2177
2197
|
d.y = week.getUTCFullYear();
|
|
2178
2198
|
d.m = week.getUTCMonth();
|
|
2179
2199
|
d.d = week.getUTCDate() + (d.w + 6) % 7;
|
|
2180
2200
|
} else {
|
|
2181
|
-
week = localDate(newDate(d.y, 0, 1)), day
|
|
2182
|
-
week = day
|
|
2183
|
-
week =
|
|
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);
|
|
2184
2204
|
d.y = week.getFullYear();
|
|
2185
2205
|
d.m = week.getMonth();
|
|
2186
2206
|
d.d = week.getDate() + (d.w + 6) % 7;
|
|
2187
2207
|
}
|
|
2188
2208
|
} else if ("W" in d || "U" in d) {
|
|
2189
2209
|
if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
|
|
2190
|
-
day
|
|
2210
|
+
day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
|
2191
2211
|
d.m = 0;
|
|
2192
|
-
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day
|
|
2212
|
+
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
|
|
2193
2213
|
}
|
|
2194
2214
|
|
|
2195
2215
|
// If a time zone is specified, all fields are interpreted as UTC and then
|
|
@@ -2475,7 +2495,7 @@
|
|
|
2475
2495
|
}
|
|
2476
2496
|
|
|
2477
2497
|
function formatDayOfYear(d, p) {
|
|
2478
|
-
return pad(1 +
|
|
2498
|
+
return pad(1 + timeDay.count(timeYear(d), d), p, 3);
|
|
2479
2499
|
}
|
|
2480
2500
|
|
|
2481
2501
|
function formatMilliseconds(d, p) {
|
|
@@ -2504,7 +2524,7 @@
|
|
|
2504
2524
|
}
|
|
2505
2525
|
|
|
2506
2526
|
function formatWeekNumberSunday(d, p) {
|
|
2507
|
-
return pad(sunday.count(
|
|
2527
|
+
return pad(sunday.count(timeYear(d) - 1, d), p, 2);
|
|
2508
2528
|
}
|
|
2509
2529
|
|
|
2510
2530
|
function dISO(d) {
|
|
@@ -2514,7 +2534,7 @@
|
|
|
2514
2534
|
|
|
2515
2535
|
function formatWeekNumberISO(d, p) {
|
|
2516
2536
|
d = dISO(d);
|
|
2517
|
-
return pad(thursday.count(
|
|
2537
|
+
return pad(thursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
|
|
2518
2538
|
}
|
|
2519
2539
|
|
|
2520
2540
|
function formatWeekdayNumberSunday(d) {
|
|
@@ -2522,7 +2542,7 @@
|
|
|
2522
2542
|
}
|
|
2523
2543
|
|
|
2524
2544
|
function formatWeekNumberMonday(d, p) {
|
|
2525
|
-
return pad(monday.count(
|
|
2545
|
+
return pad(monday.count(timeYear(d) - 1, d), p, 2);
|
|
2526
2546
|
}
|
|
2527
2547
|
|
|
2528
2548
|
function formatYear(d, p) {
|
|
@@ -2564,7 +2584,7 @@
|
|
|
2564
2584
|
}
|
|
2565
2585
|
|
|
2566
2586
|
function formatUTCDayOfYear(d, p) {
|
|
2567
|
-
return pad(1 + utcDay.count(utcYear(d), d), p, 3);
|
|
2587
|
+
return pad(1 + utcDay$1.count(utcYear$1(d), d), p, 3);
|
|
2568
2588
|
}
|
|
2569
2589
|
|
|
2570
2590
|
function formatUTCMilliseconds(d, p) {
|
|
@@ -2593,7 +2613,7 @@
|
|
|
2593
2613
|
}
|
|
2594
2614
|
|
|
2595
2615
|
function formatUTCWeekNumberSunday(d, p) {
|
|
2596
|
-
return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
|
|
2616
|
+
return pad(utcSunday.count(utcYear$1(d) - 1, d), p, 2);
|
|
2597
2617
|
}
|
|
2598
2618
|
|
|
2599
2619
|
function UTCdISO(d) {
|
|
@@ -2603,7 +2623,7 @@
|
|
|
2603
2623
|
|
|
2604
2624
|
function formatUTCWeekNumberISO(d, p) {
|
|
2605
2625
|
d = UTCdISO(d);
|
|
2606
|
-
return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
|
|
2626
|
+
return pad(utcThursday.count(utcYear$1(d), d) + (utcYear$1(d).getUTCDay() === 4), p, 2);
|
|
2607
2627
|
}
|
|
2608
2628
|
|
|
2609
2629
|
function formatUTCWeekdayNumberSunday(d) {
|
|
@@ -2611,7 +2631,7 @@
|
|
|
2611
2631
|
}
|
|
2612
2632
|
|
|
2613
2633
|
function formatUTCWeekNumberMonday(d, p) {
|
|
2614
|
-
return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
|
|
2634
|
+
return pad(utcMonday.count(utcYear$1(d) - 1, d), p, 2);
|
|
2615
2635
|
}
|
|
2616
2636
|
|
|
2617
2637
|
function formatUTCYear(d, p) {
|
|
@@ -2650,8 +2670,6 @@
|
|
|
2650
2670
|
}
|
|
2651
2671
|
|
|
2652
2672
|
var locale;
|
|
2653
|
-
var timeFormat;
|
|
2654
|
-
var timeParse;
|
|
2655
2673
|
var utcFormat;
|
|
2656
2674
|
var utcParse;
|
|
2657
2675
|
|
|
@@ -2668,8 +2686,6 @@
|
|
|
2668
2686
|
|
|
2669
2687
|
function defaultLocale(definition) {
|
|
2670
2688
|
locale = formatLocale(definition);
|
|
2671
|
-
timeFormat = locale.format;
|
|
2672
|
-
timeParse = locale.parse;
|
|
2673
2689
|
utcFormat = locale.utcFormat;
|
|
2674
2690
|
utcParse = locale.utcParse;
|
|
2675
2691
|
return locale;
|
|
@@ -2896,7 +2912,7 @@
|
|
|
2896
2912
|
scopeStack.pop();
|
|
2897
2913
|
}
|
|
2898
2914
|
if (!scopeParent1) {
|
|
2899
|
-
console.log("Missing SG:Parent ("
|
|
2915
|
+
console.log("Missing SG:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
|
|
2900
2916
|
}
|
|
2901
2917
|
else {
|
|
2902
2918
|
var parent1 = scopeParent1;
|
|
@@ -2906,7 +2922,7 @@
|
|
|
2906
2922
|
case "activity":
|
|
2907
2923
|
var scopeParent2 = subgraphs[scope.parentScope()];
|
|
2908
2924
|
if (!scopeParent2) {
|
|
2909
|
-
console.log("Missing A:Parent ("
|
|
2925
|
+
console.log("Missing A:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
|
|
2910
2926
|
}
|
|
2911
2927
|
else {
|
|
2912
2928
|
vertices[scope.ScopeName] = scopeParent2.createVertex(scope);
|
|
@@ -2918,7 +2934,7 @@
|
|
|
2918
2934
|
case "function":
|
|
2919
2935
|
var scopeParent3 = vertices[scope.parentScope()];
|
|
2920
2936
|
if (!scopeParent3) {
|
|
2921
|
-
console.log("Missing F:Parent ("
|
|
2937
|
+
console.log("Missing F:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
|
|
2922
2938
|
}
|
|
2923
2939
|
else {
|
|
2924
2940
|
scopeParent3._.children().push(scope);
|
|
@@ -2930,7 +2946,7 @@
|
|
|
2930
2946
|
var scope = edges[id];
|
|
2931
2947
|
var scopeParent3 = subgraphs[scope.parentScope()];
|
|
2932
2948
|
if (!scopeParent3) {
|
|
2933
|
-
console.log("Missing E:Parent ("
|
|
2949
|
+
console.log("Missing E:Parent (".concat(scope.Id, "): ").concat(scope.parentScope()));
|
|
2934
2950
|
}
|
|
2935
2951
|
else {
|
|
2936
2952
|
var parent3 = scopeParent3;
|
|
@@ -2942,7 +2958,7 @@
|
|
|
2942
2958
|
catch (e) {
|
|
2943
2959
|
// const sourceIndex = scope.attr("SourceIndex").RawValue;
|
|
2944
2960
|
// const targetIndex = scope.attr("TargetIndex").RawValue;
|
|
2945
|
-
console.log("Invalid Edge: "
|
|
2961
|
+
console.log("Invalid Edge: ".concat(id));
|
|
2946
2962
|
}
|
|
2947
2963
|
}
|
|
2948
2964
|
}
|
|
@@ -3235,7 +3251,7 @@
|
|
|
3235
3251
|
__extends(GlobalResultCache, _super);
|
|
3236
3252
|
function GlobalResultCache() {
|
|
3237
3253
|
return _super.call(this, function (obj) {
|
|
3238
|
-
return obj.BaseUrl
|
|
3254
|
+
return "".concat(obj.BaseUrl, "-").concat(obj.Wuid, "-").concat(obj.ResultName);
|
|
3239
3255
|
}) || this;
|
|
3240
3256
|
}
|
|
3241
3257
|
return GlobalResultCache;
|
|
@@ -3378,6 +3394,7 @@
|
|
|
3378
3394
|
retVal = _results.get({ BaseUrl: optsConnection.baseUrl, Wuid: wuid, ResultName: name_sequence_eclResult.Name }, function () {
|
|
3379
3395
|
return new Result(optsConnection, wuid, name_sequence_eclResult, resultViews);
|
|
3380
3396
|
});
|
|
3397
|
+
retVal.set(name_sequence_eclResult);
|
|
3381
3398
|
}
|
|
3382
3399
|
else if (typeof resultViews === "undefined") {
|
|
3383
3400
|
if (typeof name_sequence_eclResult === "number") {
|
|
@@ -3705,21 +3722,21 @@
|
|
|
3705
3722
|
var label = "";
|
|
3706
3723
|
var rows = [];
|
|
3707
3724
|
label = this.Id;
|
|
3708
|
-
rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">"
|
|
3725
|
+
rows.push("<tr><td class=\"key\">ID:</td><td class=\"value\">".concat(this.Id, "</td></tr>"));
|
|
3709
3726
|
if (parentScope) {
|
|
3710
|
-
rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">"
|
|
3727
|
+
rows.push("<tr><td class=\"key\">Parent ID:</td><td class=\"value\">".concat(parentScope.Id, "</td></tr>"));
|
|
3711
3728
|
}
|
|
3712
|
-
rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">"
|
|
3729
|
+
rows.push("<tr><td class=\"key\">Scope:</td><td class=\"value\">".concat(this.ScopeName, "</td></tr>"));
|
|
3713
3730
|
var attrs = this.formattedAttrs();
|
|
3714
3731
|
for (var key in attrs) {
|
|
3715
3732
|
if (key === "Label") {
|
|
3716
3733
|
label = attrs[key];
|
|
3717
3734
|
}
|
|
3718
3735
|
else {
|
|
3719
|
-
rows.push("<tr><td class=\"key\">"
|
|
3736
|
+
rows.push("<tr><td class=\"key\">".concat(key, "</td><td class=\"value\">").concat(attrs[key], "</td></tr>"));
|
|
3720
3737
|
}
|
|
3721
3738
|
}
|
|
3722
|
-
return "<div class=\"eclwatch_WUGraph_Tooltip\" style=\"max-width:480px\">\n <h4 align=\"center\">"
|
|
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>");
|
|
3723
3740
|
};
|
|
3724
3741
|
return BaseScope;
|
|
3725
3742
|
}(util.StateObject));
|
|
@@ -3853,13 +3870,13 @@
|
|
|
3853
3870
|
|
|
3854
3871
|
var formatter = utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");
|
|
3855
3872
|
var parser = utcParse("%Y-%m-%dT%H:%M:%S.%LZ");
|
|
3856
|
-
var logger
|
|
3873
|
+
var logger = util.scopedLogger("workunit.ts");
|
|
3857
3874
|
var WUStateID = exports.WUStateID;
|
|
3858
3875
|
var WorkunitCache = /** @class */ (function (_super) {
|
|
3859
3876
|
__extends(WorkunitCache, _super);
|
|
3860
3877
|
function WorkunitCache() {
|
|
3861
3878
|
return _super.call(this, function (obj) {
|
|
3862
|
-
return obj.BaseUrl
|
|
3879
|
+
return "".concat(obj.BaseUrl, "-").concat(obj.Wuid);
|
|
3863
3880
|
}) || this;
|
|
3864
3881
|
}
|
|
3865
3882
|
return WorkunitCache;
|
|
@@ -4961,7 +4978,7 @@
|
|
|
4961
4978
|
return false;
|
|
4962
4979
|
});
|
|
4963
4980
|
if (!wuMissing) {
|
|
4964
|
-
logger
|
|
4981
|
+
logger.warning("Unexpected exception: ");
|
|
4965
4982
|
throw e;
|
|
4966
4983
|
}
|
|
4967
4984
|
return {};
|
|
@@ -4998,7 +5015,7 @@
|
|
|
4998
5015
|
return false;
|
|
4999
5016
|
});
|
|
5000
5017
|
if (!wuMissing) {
|
|
5001
|
-
logger
|
|
5018
|
+
logger.warning("Unexpected exception: ");
|
|
5002
5019
|
throw e;
|
|
5003
5020
|
}
|
|
5004
5021
|
return {};
|
|
@@ -5066,12 +5083,12 @@
|
|
|
5066
5083
|
var optsStr = "";
|
|
5067
5084
|
for (var key in opts) {
|
|
5068
5085
|
if (opts.hasOwnProperty(key)) {
|
|
5069
|
-
optsStr += " "
|
|
5086
|
+
optsStr += " ".concat(key, "='").concat(opts[key], "'");
|
|
5070
5087
|
}
|
|
5071
5088
|
}
|
|
5072
5089
|
return this.connection.WUCDebug({
|
|
5073
5090
|
Wuid: this.Wuid,
|
|
5074
|
-
Command: "<debug:"
|
|
5091
|
+
Command: "<debug:".concat(command, " uid='").concat(this.Wuid, "'").concat(optsStr, "/>")
|
|
5075
5092
|
}).then(function (response) {
|
|
5076
5093
|
return response;
|
|
5077
5094
|
});
|
|
@@ -5087,7 +5104,7 @@
|
|
|
5087
5104
|
}
|
|
5088
5105
|
return new util.XMLNode(command);
|
|
5089
5106
|
}).catch(function (_) {
|
|
5090
|
-
logger
|
|
5107
|
+
logger.error(_);
|
|
5091
5108
|
return Promise.resolve(new util.XMLNode(command));
|
|
5092
5109
|
});
|
|
5093
5110
|
};
|
|
@@ -5202,7 +5219,7 @@
|
|
|
5202
5219
|
column: +_col
|
|
5203
5220
|
};
|
|
5204
5221
|
}
|
|
5205
|
-
throw new Error("Bad definition: "
|
|
5222
|
+
throw new Error("Bad definition: ".concat(vertex._[ATTR_DEFINITION]));
|
|
5206
5223
|
}
|
|
5207
5224
|
function breakpointLocations(graph, path) {
|
|
5208
5225
|
var retVal = [];
|
|
@@ -5370,6 +5387,13 @@
|
|
|
5370
5387
|
if (clusterName === void 0) { clusterName = ""; }
|
|
5371
5388
|
return this.Running.ActiveWorkunit.filter(function (awu) { return clusterName === "" || awu.ClusterName === clusterName; }).map(function (awu) { return Workunit.attach(_this.connection.connectionOptions(), awu.Wuid, awu); });
|
|
5372
5389
|
};
|
|
5390
|
+
Activity.prototype.setBanner = function (request) {
|
|
5391
|
+
var _this = this;
|
|
5392
|
+
return this.connection.SetBanner(__assign({}, request)).then(function (response) {
|
|
5393
|
+
_this.set(response);
|
|
5394
|
+
return _this;
|
|
5395
|
+
});
|
|
5396
|
+
};
|
|
5373
5397
|
Activity.prototype.refresh = function () {
|
|
5374
5398
|
return __awaiter(this, void 0, void 0, function () {
|
|
5375
5399
|
return __generator(this, function (_a) {
|
|
@@ -5384,12 +5408,12 @@
|
|
|
5384
5408
|
__extends(LogicalFileCache, _super);
|
|
5385
5409
|
function LogicalFileCache() {
|
|
5386
5410
|
return _super.call(this, function (obj) {
|
|
5387
|
-
return obj.BaseUrl
|
|
5411
|
+
return "".concat(obj.BaseUrl, "-").concat(obj.Cluster, "-").concat(obj.Name);
|
|
5388
5412
|
}) || this;
|
|
5389
5413
|
}
|
|
5390
5414
|
return LogicalFileCache;
|
|
5391
5415
|
}(util.Cache));
|
|
5392
|
-
var _store = new LogicalFileCache();
|
|
5416
|
+
var _store$1 = new LogicalFileCache();
|
|
5393
5417
|
var LogicalFile = /** @class */ (function (_super) {
|
|
5394
5418
|
__extends(LogicalFile, _super);
|
|
5395
5419
|
function LogicalFile(optsConnection, Cluster, Name) {
|
|
@@ -5672,14 +5696,14 @@
|
|
|
5672
5696
|
configurable: true
|
|
5673
5697
|
});
|
|
5674
5698
|
LogicalFile.attach = function (optsConnection, Cluster, Name) {
|
|
5675
|
-
var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
|
|
5699
|
+
var retVal = _store$1.get({ BaseUrl: optsConnection.baseUrl, Cluster: Cluster, Name: Name }, function () {
|
|
5676
5700
|
return new LogicalFile(optsConnection, Cluster, Name);
|
|
5677
5701
|
});
|
|
5678
5702
|
return retVal;
|
|
5679
5703
|
};
|
|
5680
5704
|
LogicalFile.prototype.filePartsOnCluster = function () {
|
|
5681
5705
|
var _a;
|
|
5682
|
-
return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []));
|
|
5706
|
+
return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []), true);
|
|
5683
5707
|
};
|
|
5684
5708
|
LogicalFile.prototype.fileParts = function () {
|
|
5685
5709
|
var _a, _b;
|
|
@@ -6126,12 +6150,12 @@
|
|
|
6126
6150
|
__extends(StoreCache, _super);
|
|
6127
6151
|
function StoreCache() {
|
|
6128
6152
|
return _super.call(this, function (obj) {
|
|
6129
|
-
return obj.BaseUrl
|
|
6153
|
+
return "".concat(obj.BaseUrl, "-").concat(obj.Name, ":").concat(obj.UserSpecific, "-").concat(obj.Namespace);
|
|
6130
6154
|
}) || this;
|
|
6131
6155
|
}
|
|
6132
6156
|
return StoreCache;
|
|
6133
6157
|
}(util.Cache));
|
|
6134
|
-
var _store
|
|
6158
|
+
var _store = new StoreCache();
|
|
6135
6159
|
var ValueChangedMessage = /** @class */ (function (_super) {
|
|
6136
6160
|
__extends(ValueChangedMessage, _super);
|
|
6137
6161
|
function ValueChangedMessage(key, value, oldValue) {
|
|
@@ -6180,7 +6204,7 @@
|
|
|
6180
6204
|
Store.attach = function (optsConnection, Name, Namespace, UserSpecific) {
|
|
6181
6205
|
if (Name === void 0) { Name = "HPCCApps"; }
|
|
6182
6206
|
if (UserSpecific === void 0) { UserSpecific = true; }
|
|
6183
|
-
var retVal = _store
|
|
6207
|
+
var retVal = _store.get({ BaseUrl: optsConnection.baseUrl, Name: Name, UserSpecific: UserSpecific, Namespace: Namespace }, function () {
|
|
6184
6208
|
return new Store(optsConnection, Name, Namespace, UserSpecific);
|
|
6185
6209
|
});
|
|
6186
6210
|
return retVal;
|
|
@@ -6204,7 +6228,7 @@
|
|
|
6204
6228
|
_this._dispatch.post(new ValueChangedMessage(key, value, oldValue));
|
|
6205
6229
|
}
|
|
6206
6230
|
}).catch(function (e) {
|
|
6207
|
-
console.error("Store.set(\""
|
|
6231
|
+
console.error("Store.set(\"".concat(key, "\", \"").concat(value, "\") failed:"), e);
|
|
6208
6232
|
});
|
|
6209
6233
|
};
|
|
6210
6234
|
Store.prototype.get = function (key, broadcast) {
|
|
@@ -6223,7 +6247,7 @@
|
|
|
6223
6247
|
}
|
|
6224
6248
|
return response.Value;
|
|
6225
6249
|
}).catch(function (e) {
|
|
6226
|
-
console.error("Store.get("
|
|
6250
|
+
console.error("Store.get(".concat(key, ") failed:"), e);
|
|
6227
6251
|
return undefined;
|
|
6228
6252
|
});
|
|
6229
6253
|
};
|
|
@@ -6273,7 +6297,7 @@
|
|
|
6273
6297
|
_this._dispatch.post(new ValueChangedMessage(key, undefined, oldValue));
|
|
6274
6298
|
}
|
|
6275
6299
|
}).catch(function (e) {
|
|
6276
|
-
console.error("Store.delete("
|
|
6300
|
+
console.error("Store.delete(".concat(key, ") failed:"), e);
|
|
6277
6301
|
});
|
|
6278
6302
|
};
|
|
6279
6303
|
Store.prototype.monitor = function (callback) {
|
|
@@ -6286,7 +6310,7 @@
|
|
|
6286
6310
|
__extends(TargetClusterCache, _super);
|
|
6287
6311
|
function TargetClusterCache() {
|
|
6288
6312
|
return _super.call(this, function (obj) {
|
|
6289
|
-
return obj.BaseUrl
|
|
6313
|
+
return "".concat(obj.BaseUrl, "-").concat(obj.Name);
|
|
6290
6314
|
}) || this;
|
|
6291
6315
|
}
|
|
6292
6316
|
return TargetClusterCache;
|
|
@@ -6385,7 +6409,7 @@
|
|
|
6385
6409
|
var _this = this;
|
|
6386
6410
|
if (request === void 0) { request = {}; }
|
|
6387
6411
|
return this.machineConnection.GetTargetClusterInfo(__assign({ TargetClusters: {
|
|
6388
|
-
Item: [this.Type
|
|
6412
|
+
Item: ["".concat(this.Type, ":").concat(this.Name)]
|
|
6389
6413
|
} }, request)).then(function (response) {
|
|
6390
6414
|
var retVal = [];
|
|
6391
6415
|
for (var _i = 0, _a = response.TargetClusterInfoList.TargetClusterInfo; _i < _a.length; _i++) {
|
|
@@ -6551,14 +6575,15 @@
|
|
|
6551
6575
|
}
|
|
6552
6576
|
}
|
|
6553
6577
|
}
|
|
6554
|
-
return rootProtocol
|
|
6578
|
+
return "".concat(rootProtocol, "//").concat(ip, ":").concat(port, "/");
|
|
6555
6579
|
});
|
|
6556
6580
|
};
|
|
6557
6581
|
Topology.prototype.fetchTargetClusters = function () {
|
|
6558
6582
|
var _this = this;
|
|
6559
6583
|
return this.connection.TpTargetClusterQuery({ Type: "ROOT" }).then(function (response) {
|
|
6584
|
+
var _a, _b;
|
|
6560
6585
|
_this.set({
|
|
6561
|
-
TargetClusters: response.TpTargetClusters.TpTargetCluster
|
|
6586
|
+
TargetClusters: (_b = (_a = response.TpTargetClusters) === null || _a === void 0 ? void 0 : _a.TpTargetCluster) !== null && _b !== void 0 ? _b : []
|
|
6562
6587
|
});
|
|
6563
6588
|
return _this.CTargetClusters;
|
|
6564
6589
|
});
|
|
@@ -6695,5 +6720,5 @@
|
|
|
6695
6720
|
|
|
6696
6721
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6697
6722
|
|
|
6698
|
-
}))
|
|
6723
|
+
}));
|
|
6699
6724
|
//# sourceMappingURL=index.js.map
|