@hpcc-js/comms 2.76.0 → 2.78.1
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 +157 -35
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +156 -34
- 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 +156 -34
- 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/services/wsLogaccess.js +106 -2
- package/lib-es6/services/wsLogaccess.js.map +1 -1
- package/lib-es6/services/wsTopology.js +1 -1
- package/lib-es6/services/wsTopology.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js +3 -0
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js +19 -19
- package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js +47 -0
- package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js.map +1 -0
- package/package.json +25 -24
- package/src/__package__.ts +2 -2
- package/src/services/wsCloud.ts +1 -1
- package/src/services/wsLogaccess.ts +145 -3
- package/src/services/wsTopology.ts +42 -343
- package/src/services/wsWorkunits.ts +62 -0
- package/src/services/wsdl/WsDali/v1.04/WsDali.ts +156 -156
- package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -0
- package/types/__package__.d.ts +2 -2
- package/types/services/wsCloud.d.ts +1 -1
- package/types/services/wsCloud.d.ts.map +1 -1
- package/types/services/wsLogaccess.d.ts +46 -2
- package/types/services/wsLogaccess.d.ts.map +1 -1
- package/types/services/wsTopology.d.ts +40 -307
- package/types/services/wsTopology.d.ts.map +1 -1
- package/types/services/wsWorkunits.d.ts +48 -0
- package/types/services/wsWorkunits.d.ts.map +1 -1
- package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts +27 -27
- package/types/services/wsdl/WsDali/v1.04/WsDali.d.ts.map +1 -1
- package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +126 -0
- package/types/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/services/wsCloud.d.ts +1 -1
- package/types-3.4/services/wsLogaccess.d.ts +46 -2
- package/types-3.4/services/wsTopology.d.ts +40 -307
- package/types-3.4/services/wsWorkunits.d.ts +48 -0
- package/types-3.4/services/wsdl/WsDali/v1.04/WsDali.d.ts +27 -27
- package/types-3.4/services/wsdl/ws_logaccess/v1.02/ws_logaccess.d.ts +126 -0
package/dist/index.js
CHANGED
|
@@ -611,8 +611,8 @@
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
var PKG_NAME = "@hpcc-js/comms";
|
|
614
|
-
var PKG_VERSION = "2.
|
|
615
|
-
var BUILD_VERSION = "2.103.
|
|
614
|
+
var PKG_VERSION = "2.78.1";
|
|
615
|
+
var BUILD_VERSION = "2.103.5";
|
|
616
616
|
|
|
617
617
|
/*! *****************************************************************************
|
|
618
618
|
Copyright (c) Microsoft Corporation.
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
var logger$
|
|
707
|
+
var logger$2 = util.scopedLogger("comms/connection.ts");
|
|
708
708
|
function instanceOfIOptions(object) {
|
|
709
709
|
return "baseUrl" in object;
|
|
710
710
|
}
|
|
@@ -806,12 +806,12 @@
|
|
|
806
806
|
respondedTimeout -= respondedTick;
|
|
807
807
|
if (respondedTimeout <= 0) {
|
|
808
808
|
clearInterval(progress);
|
|
809
|
-
logger$
|
|
809
|
+
logger$2.error("Request timeout: " + script.src);
|
|
810
810
|
doCallback();
|
|
811
811
|
reject(Error("Request timeout: " + script.src));
|
|
812
812
|
}
|
|
813
813
|
else {
|
|
814
|
-
logger$
|
|
814
|
+
logger$2.debug("Request pending (" + respondedTimeout / 1000 + " sec): " + script.src);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
}, respondedTick);
|
|
@@ -1510,61 +1510,61 @@
|
|
|
1510
1510
|
return _super.call(this, optsConnection, "WSDali", "1.04") || this;
|
|
1511
1511
|
}
|
|
1512
1512
|
DaliServiceBase.prototype.Add = function (request) {
|
|
1513
|
-
return this._connection.send("Add", request);
|
|
1513
|
+
return this._connection.send("Add", request, "json", false, undefined, "ResultResponse");
|
|
1514
1514
|
};
|
|
1515
1515
|
DaliServiceBase.prototype.Count = function (request) {
|
|
1516
|
-
return this._connection.send("Count", request);
|
|
1516
|
+
return this._connection.send("Count", request, "json", false, undefined, "CountResponse");
|
|
1517
1517
|
};
|
|
1518
1518
|
DaliServiceBase.prototype.DFSCheck = function (request) {
|
|
1519
|
-
return this._connection.send("DFSCheck", request);
|
|
1519
|
+
return this._connection.send("DFSCheck", request, "json", false, undefined, "ResultResponse");
|
|
1520
1520
|
};
|
|
1521
1521
|
DaliServiceBase.prototype.DFSExists = function (request) {
|
|
1522
|
-
return this._connection.send("DFSExists", request);
|
|
1522
|
+
return this._connection.send("DFSExists", request, "json", false, undefined, "BooleanResponse");
|
|
1523
1523
|
};
|
|
1524
1524
|
DaliServiceBase.prototype.DFSLS = function (request) {
|
|
1525
|
-
return this._connection.send("DFSLS", request);
|
|
1525
|
+
return this._connection.send("DFSLS", request, "json", false, undefined, "ResultResponse");
|
|
1526
1526
|
};
|
|
1527
1527
|
DaliServiceBase.prototype.Delete = function (request) {
|
|
1528
|
-
return this._connection.send("Delete", request);
|
|
1528
|
+
return this._connection.send("Delete", request, "json", false, undefined, "ResultResponse");
|
|
1529
1529
|
};
|
|
1530
1530
|
DaliServiceBase.prototype.GetDFSCSV = function (request) {
|
|
1531
|
-
return this._connection.send("GetDFSCSV", request);
|
|
1531
|
+
return this._connection.send("GetDFSCSV", request, "json", false, undefined, "ResultResponse");
|
|
1532
1532
|
};
|
|
1533
1533
|
DaliServiceBase.prototype.GetDFSMap = function (request) {
|
|
1534
|
-
return this._connection.send("GetDFSMap", request);
|
|
1534
|
+
return this._connection.send("GetDFSMap", request, "json", false, undefined, "ResultResponse");
|
|
1535
1535
|
};
|
|
1536
1536
|
DaliServiceBase.prototype.GetDFSParents = function (request) {
|
|
1537
|
-
return this._connection.send("GetDFSParents", request);
|
|
1537
|
+
return this._connection.send("GetDFSParents", request, "json", false, undefined, "ResultResponse");
|
|
1538
1538
|
};
|
|
1539
1539
|
DaliServiceBase.prototype.GetLogicalFile = function (request) {
|
|
1540
|
-
return this._connection.send("GetLogicalFile", request);
|
|
1540
|
+
return this._connection.send("GetLogicalFile", request, "json", false, undefined, "ResultResponse");
|
|
1541
1541
|
};
|
|
1542
1542
|
DaliServiceBase.prototype.GetLogicalFilePart = function (request) {
|
|
1543
|
-
return this._connection.send("GetLogicalFilePart", request);
|
|
1543
|
+
return this._connection.send("GetLogicalFilePart", request, "json", false, undefined, "ResultResponse");
|
|
1544
1544
|
};
|
|
1545
1545
|
DaliServiceBase.prototype.GetProtectedList = function (request) {
|
|
1546
|
-
return this._connection.send("GetProtectedList", request);
|
|
1546
|
+
return this._connection.send("GetProtectedList", request, "json", false, undefined, "ResultResponse");
|
|
1547
1547
|
};
|
|
1548
1548
|
DaliServiceBase.prototype.GetValue = function (request) {
|
|
1549
|
-
return this._connection.send("GetValue", request);
|
|
1549
|
+
return this._connection.send("GetValue", request, "json", false, undefined, "ResultResponse");
|
|
1550
1550
|
};
|
|
1551
1551
|
DaliServiceBase.prototype.Import = function (request) {
|
|
1552
|
-
return this._connection.send("Import", request);
|
|
1552
|
+
return this._connection.send("Import", request, "json", false, undefined, "ResultResponse");
|
|
1553
1553
|
};
|
|
1554
1554
|
DaliServiceBase.prototype.Ping = function (request) {
|
|
1555
|
-
return this._connection.send("Ping", request);
|
|
1555
|
+
return this._connection.send("Ping", request, "json", false, undefined, "WSDaliPingResponse");
|
|
1556
1556
|
};
|
|
1557
1557
|
DaliServiceBase.prototype.SetLogicalFilePartAttr = function (request) {
|
|
1558
|
-
return this._connection.send("SetLogicalFilePartAttr", request);
|
|
1558
|
+
return this._connection.send("SetLogicalFilePartAttr", request, "json", false, undefined, "ResultResponse");
|
|
1559
1559
|
};
|
|
1560
1560
|
DaliServiceBase.prototype.SetProtected = function (request) {
|
|
1561
|
-
return this._connection.send("SetProtected", request);
|
|
1561
|
+
return this._connection.send("SetProtected", request, "json", false, undefined, "ResultResponse");
|
|
1562
1562
|
};
|
|
1563
1563
|
DaliServiceBase.prototype.SetUnprotected = function (request) {
|
|
1564
|
-
return this._connection.send("SetUnprotected", request);
|
|
1564
|
+
return this._connection.send("SetUnprotected", request, "json", false, undefined, "ResultResponse");
|
|
1565
1565
|
};
|
|
1566
1566
|
DaliServiceBase.prototype.SetValue = function (request) {
|
|
1567
|
-
return this._connection.send("SetValue", request);
|
|
1567
|
+
return this._connection.send("SetValue", request, "json", false, undefined, "ResultResponse");
|
|
1568
1568
|
};
|
|
1569
1569
|
return DaliServiceBase;
|
|
1570
1570
|
}(Service));
|
|
@@ -1899,18 +1899,34 @@
|
|
|
1899
1899
|
return ElkService;
|
|
1900
1900
|
}(ElkServiceBase));
|
|
1901
1901
|
|
|
1902
|
-
exports.
|
|
1903
|
-
(function (
|
|
1904
|
-
LogAccessType
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1902
|
+
exports.WsLogaccess = void 0;
|
|
1903
|
+
(function (WsLogaccess) {
|
|
1904
|
+
(function (LogAccessType) {
|
|
1905
|
+
LogAccessType[LogAccessType["All"] = 0] = "All";
|
|
1906
|
+
LogAccessType[LogAccessType["ByJobIdID"] = 1] = "ByJobIdID";
|
|
1907
|
+
LogAccessType[LogAccessType["ByComponent"] = 2] = "ByComponent";
|
|
1908
|
+
LogAccessType[LogAccessType["ByLogType"] = 3] = "ByLogType";
|
|
1909
|
+
LogAccessType[LogAccessType["ByTargetAudience"] = 4] = "ByTargetAudience";
|
|
1910
|
+
LogAccessType[LogAccessType["BySourceInstance"] = 5] = "BySourceInstance";
|
|
1911
|
+
LogAccessType[LogAccessType["BySourceNode"] = 6] = "BySourceNode";
|
|
1912
|
+
LogAccessType[LogAccessType["ByFieldName"] = 7] = "ByFieldName";
|
|
1913
|
+
})(WsLogaccess.LogAccessType || (WsLogaccess.LogAccessType = {}));
|
|
1914
|
+
(function (LogAccessFilterOperator) {
|
|
1915
|
+
LogAccessFilterOperator[LogAccessFilterOperator["NONE"] = 0] = "NONE";
|
|
1916
|
+
LogAccessFilterOperator[LogAccessFilterOperator["AND"] = 1] = "AND";
|
|
1917
|
+
LogAccessFilterOperator[LogAccessFilterOperator["OR"] = 2] = "OR";
|
|
1918
|
+
})(WsLogaccess.LogAccessFilterOperator || (WsLogaccess.LogAccessFilterOperator = {}));
|
|
1919
|
+
(function (LogSelectColumnMode) {
|
|
1920
|
+
LogSelectColumnMode[LogSelectColumnMode["MIN"] = 0] = "MIN";
|
|
1921
|
+
LogSelectColumnMode[LogSelectColumnMode["DEFAULT"] = 1] = "DEFAULT";
|
|
1922
|
+
LogSelectColumnMode[LogSelectColumnMode["ALL"] = 2] = "ALL";
|
|
1923
|
+
LogSelectColumnMode[LogSelectColumnMode["CUSTOM"] = 3] = "CUSTOM";
|
|
1924
|
+
})(WsLogaccess.LogSelectColumnMode || (WsLogaccess.LogSelectColumnMode = {}));
|
|
1925
|
+
})(exports.WsLogaccess || (exports.WsLogaccess = {}));
|
|
1910
1926
|
var LogaccessServiceBase = /** @class */ (function (_super) {
|
|
1911
1927
|
__extends(LogaccessServiceBase, _super);
|
|
1912
1928
|
function LogaccessServiceBase(optsConnection) {
|
|
1913
|
-
return _super.call(this, optsConnection, "ws_logaccess", "1") || this;
|
|
1929
|
+
return _super.call(this, optsConnection, "ws_logaccess", "1.02") || this;
|
|
1914
1930
|
}
|
|
1915
1931
|
LogaccessServiceBase.prototype.GetLogAccessInfo = function (request) {
|
|
1916
1932
|
return this._connection.send("GetLogAccessInfo", request);
|
|
@@ -1924,11 +1940,114 @@
|
|
|
1924
1940
|
return LogaccessServiceBase;
|
|
1925
1941
|
}(Service));
|
|
1926
1942
|
|
|
1943
|
+
var logger$1 = util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");
|
|
1944
|
+
exports.KnownColumns = void 0;
|
|
1945
|
+
(function (KnownColumns) {
|
|
1946
|
+
KnownColumns["audience"] = "hpcc.log.audience";
|
|
1947
|
+
KnownColumns["class"] = "hpcc.log.class";
|
|
1948
|
+
KnownColumns["jobId"] = "hpcc.log.jobid";
|
|
1949
|
+
KnownColumns["message"] = "hpcc.log.message";
|
|
1950
|
+
KnownColumns["procId"] = "hpcc.log.procid";
|
|
1951
|
+
KnownColumns["sequence"] = "hpcc.log.sequence";
|
|
1952
|
+
KnownColumns["threadId"] = "hpcc.log.threadid";
|
|
1953
|
+
KnownColumns["timestamp"] = "hpcc.log.timestamp";
|
|
1954
|
+
KnownColumns["containerName"] = "kubernetes.container.name";
|
|
1955
|
+
})(exports.KnownColumns || (exports.KnownColumns = {}));
|
|
1956
|
+
var RKnownColumns = {};
|
|
1957
|
+
for (var key in exports.KnownColumns) {
|
|
1958
|
+
if (exports.KnownColumns.hasOwnProperty(key)) {
|
|
1959
|
+
RKnownColumns[exports.KnownColumns[key]] = key;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
var defaultToLogLine = function (line) {
|
|
1963
|
+
var retVal = {};
|
|
1964
|
+
for (var key in RKnownColumns) {
|
|
1965
|
+
retVal[RKnownColumns[key]] = line === null || line === void 0 ? void 0 : line.fields[0][key];
|
|
1966
|
+
}
|
|
1967
|
+
return retVal;
|
|
1968
|
+
};
|
|
1927
1969
|
var LogaccessService = /** @class */ (function (_super) {
|
|
1928
1970
|
__extends(LogaccessService, _super);
|
|
1929
1971
|
function LogaccessService() {
|
|
1930
1972
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1931
1973
|
}
|
|
1974
|
+
LogaccessService.prototype.GetLogAccessInfo = function (request) {
|
|
1975
|
+
return _super.prototype.GetLogAccessInfo.call(this, request);
|
|
1976
|
+
};
|
|
1977
|
+
LogaccessService.prototype.GetLogs = function (request) {
|
|
1978
|
+
return _super.prototype.GetLogs.call(this, request);
|
|
1979
|
+
};
|
|
1980
|
+
LogaccessService.prototype.GetLogsEx = function (request) {
|
|
1981
|
+
var _a, _b;
|
|
1982
|
+
var getLogsRequest = {
|
|
1983
|
+
Filter: {
|
|
1984
|
+
leftBinaryFilter: {
|
|
1985
|
+
BinaryLogFilter: [{
|
|
1986
|
+
leftFilter: {
|
|
1987
|
+
LogCategory: exports.WsLogaccess.LogAccessType.All,
|
|
1988
|
+
},
|
|
1989
|
+
}]
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
Range: {
|
|
1993
|
+
StartDate: new Date(0).toISOString(),
|
|
1994
|
+
},
|
|
1995
|
+
LogLineStartFrom: (_a = request.LogLineStartFrom) !== null && _a !== void 0 ? _a : 0,
|
|
1996
|
+
LogLineLimit: (_b = request.LogLineLimit) !== null && _b !== void 0 ? _b : 100,
|
|
1997
|
+
SelectColumnMode: exports.WsLogaccess.LogSelectColumnMode.DEFAULT,
|
|
1998
|
+
Format: "JSON"
|
|
1999
|
+
};
|
|
2000
|
+
var filters = [];
|
|
2001
|
+
for (var key in request) {
|
|
2002
|
+
if (key in exports.KnownColumns) {
|
|
2003
|
+
filters.push({
|
|
2004
|
+
LogCategory: exports.WsLogaccess.LogAccessType.ByFieldName,
|
|
2005
|
+
SearchField: exports.KnownColumns[key],
|
|
2006
|
+
SearchByValue: request[key]
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
var binaryLogFilter = getLogsRequest.Filter.leftBinaryFilter.BinaryLogFilter[0];
|
|
2011
|
+
filters.forEach(function (filter, i) {
|
|
2012
|
+
if (i === 0) {
|
|
2013
|
+
binaryLogFilter.leftFilter = filter;
|
|
2014
|
+
}
|
|
2015
|
+
else if (i === filters.length - 1) {
|
|
2016
|
+
binaryLogFilter.Operator = exports.WsLogaccess.LogAccessFilterOperator.AND;
|
|
2017
|
+
binaryLogFilter.rightFilter = filter;
|
|
2018
|
+
}
|
|
2019
|
+
else {
|
|
2020
|
+
binaryLogFilter.Operator = exports.WsLogaccess.LogAccessFilterOperator.AND;
|
|
2021
|
+
binaryLogFilter.rightBinaryFilter = {
|
|
2022
|
+
BinaryLogFilter: [{
|
|
2023
|
+
leftFilter: filter
|
|
2024
|
+
}]
|
|
2025
|
+
};
|
|
2026
|
+
binaryLogFilter = binaryLogFilter.rightBinaryFilter.BinaryLogFilter[0];
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
if (request.StartDate && request.EndDate) {
|
|
2030
|
+
getLogsRequest.Range.StartDate = request.StartDate.toISOString();
|
|
2031
|
+
getLogsRequest.Range.EndDate = request.EndDate.toISOString();
|
|
2032
|
+
}
|
|
2033
|
+
return this.GetLogs(getLogsRequest).then(function (response) {
|
|
2034
|
+
var _a, _b, _c;
|
|
2035
|
+
try {
|
|
2036
|
+
var logLines = JSON.parse(response.LogLines);
|
|
2037
|
+
return {
|
|
2038
|
+
lines: (_b = (_a = logLines.lines) === null || _a === void 0 ? void 0 : _a.map(defaultToLogLine)) !== null && _b !== void 0 ? _b : [],
|
|
2039
|
+
total: (_c = response.TotalLogLinesAvailable) !== null && _c !== void 0 ? _c : 10000
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2042
|
+
catch (e) {
|
|
2043
|
+
logger$1.error(e);
|
|
2044
|
+
}
|
|
2045
|
+
return {
|
|
2046
|
+
lines: [],
|
|
2047
|
+
total: 0
|
|
2048
|
+
};
|
|
2049
|
+
});
|
|
2050
|
+
};
|
|
1932
2051
|
return LogaccessService;
|
|
1933
2052
|
}(LogaccessServiceBase));
|
|
1934
2053
|
|
|
@@ -2328,7 +2447,7 @@
|
|
|
2328
2447
|
var TopologyService = /** @class */ (function (_super) {
|
|
2329
2448
|
__extends(TopologyService, _super);
|
|
2330
2449
|
function TopologyService(optsConnection) {
|
|
2331
|
-
return _super.call(this, optsConnection, "WsTopology", "1.
|
|
2450
|
+
return _super.call(this, optsConnection, "WsTopology", "1.31") || this;
|
|
2332
2451
|
}
|
|
2333
2452
|
TopologyService.prototype.connectionOptions = function () {
|
|
2334
2453
|
return this._connection.opts();
|
|
@@ -2500,6 +2619,9 @@
|
|
|
2500
2619
|
WorkunitsService.prototype.WUPublishWorkunit = function (request) {
|
|
2501
2620
|
return this._connection.send("WUPublishWorkunit", request);
|
|
2502
2621
|
};
|
|
2622
|
+
WorkunitsService.prototype.WUQueryFiles = function (request) {
|
|
2623
|
+
return this._connection.send("WUQueryFiles", request);
|
|
2624
|
+
};
|
|
2503
2625
|
WorkunitsService.prototype.WUGetGraph = function (request) {
|
|
2504
2626
|
return this._connection.send("WUGetGraph", request);
|
|
2505
2627
|
};
|