@hpcc-js/comms 2.86.1 → 2.88.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 +220 -36
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +219 -35
- 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 +219 -35
- 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/ecl/activity.js.map +1 -1
- package/lib-es6/ecl/workunit.js +106 -3
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/services/fileSpray.js +13 -0
- package/lib-es6/services/fileSpray.js.map +1 -1
- package/lib-es6/services/wsSMC.js +9 -34
- package/lib-es6/services/wsSMC.js.map +1 -1
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js +99 -0
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js.map +1 -0
- package/package.json +2 -2
- package/src/__package__.ts +2 -2
- package/src/ecl/activity.ts +2 -2
- package/src/ecl/workunit.ts +148 -6
- package/src/services/fileSpray.ts +13 -0
- package/src/services/wsSMC.ts +8 -604
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/workunit.d.ts +17 -1
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/services/fileSpray.d.ts +12 -0
- package/types/services/fileSpray.d.ts.map +1 -1
- package/types/services/wsSMC.d.ts +5 -489
- package/types/services/wsSMC.d.ts.map +1 -1
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +519 -0
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/workunit.d.ts +17 -1
- package/types-3.4/services/fileSpray.d.ts +12 -0
- package/types-3.4/services/wsSMC.d.ts +5 -489
- package/types-3.4/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +519 -0
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.
|
|
652
|
-
var BUILD_VERSION = "2.104.
|
|
651
|
+
var PKG_VERSION = "2.88.0";
|
|
652
|
+
var BUILD_VERSION = "2.104.37";
|
|
653
653
|
|
|
654
654
|
/******************************************************************************
|
|
655
655
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1251,6 +1251,19 @@
|
|
|
1251
1251
|
return FileSprayServiceBase;
|
|
1252
1252
|
}(Service));
|
|
1253
1253
|
|
|
1254
|
+
exports.FileSprayStates = void 0;
|
|
1255
|
+
(function (FileSprayStates) {
|
|
1256
|
+
FileSprayStates[FileSprayStates["unknown"] = 0] = "unknown";
|
|
1257
|
+
FileSprayStates[FileSprayStates["scheduled"] = 1] = "scheduled";
|
|
1258
|
+
FileSprayStates[FileSprayStates["queued"] = 2] = "queued";
|
|
1259
|
+
FileSprayStates[FileSprayStates["started"] = 3] = "started";
|
|
1260
|
+
FileSprayStates[FileSprayStates["aborted"] = 4] = "aborted";
|
|
1261
|
+
FileSprayStates[FileSprayStates["failed"] = 5] = "failed";
|
|
1262
|
+
FileSprayStates[FileSprayStates["finished"] = 6] = "finished";
|
|
1263
|
+
FileSprayStates[FileSprayStates["monitoring"] = 7] = "monitoring";
|
|
1264
|
+
FileSprayStates[FileSprayStates["aborting"] = 8] = "aborting";
|
|
1265
|
+
FileSprayStates[FileSprayStates["notfound"] = 999] = "notfound";
|
|
1266
|
+
})(exports.FileSprayStates || (exports.FileSprayStates = {}));
|
|
1254
1267
|
var FileSprayService = /** @class */ (function (_super) {
|
|
1255
1268
|
__extends(FileSprayService, _super);
|
|
1256
1269
|
function FileSprayService() {
|
|
@@ -2502,49 +2515,117 @@
|
|
|
2502
2515
|
return ResourcesService;
|
|
2503
2516
|
}(ResourcesServiceBase));
|
|
2504
2517
|
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2518
|
+
exports.WsSMC = void 0;
|
|
2519
|
+
(function (WsSMC) {
|
|
2520
|
+
(function (LockModes) {
|
|
2521
|
+
LockModes["ALL"] = "ALL";
|
|
2522
|
+
LockModes["READ"] = "READ";
|
|
2523
|
+
LockModes["WRITE"] = "WRITE";
|
|
2524
|
+
LockModes["HOLD"] = "HOLD";
|
|
2525
|
+
LockModes["SUB"] = "SUB";
|
|
2526
|
+
})(WsSMC.LockModes || (WsSMC.LockModes = {}));
|
|
2527
|
+
(function (RoxieControlCmdType) {
|
|
2528
|
+
RoxieControlCmdType["Attach"] = "Attach";
|
|
2529
|
+
RoxieControlCmdType["Detach"] = "Detach";
|
|
2530
|
+
RoxieControlCmdType["State"] = "State";
|
|
2531
|
+
RoxieControlCmdType["Reload"] = "Reload";
|
|
2532
|
+
RoxieControlCmdType["ReloadRetry"] = "ReloadRetry";
|
|
2533
|
+
RoxieControlCmdType["MemLock"] = "MemLock";
|
|
2534
|
+
RoxieControlCmdType["MemUnlock"] = "MemUnlock";
|
|
2535
|
+
RoxieControlCmdType["GetMemLocked"] = "GetMemLocked";
|
|
2536
|
+
})(WsSMC.RoxieControlCmdType || (WsSMC.RoxieControlCmdType = {}));
|
|
2537
|
+
})(exports.WsSMC || (exports.WsSMC = {}));
|
|
2538
|
+
var SMCServiceBase = /** @class */ (function (_super) {
|
|
2539
|
+
__extends(SMCServiceBase, _super);
|
|
2540
|
+
function SMCServiceBase(optsConnection) {
|
|
2541
|
+
return _super.call(this, optsConnection, "WsSMC", "1.27") || this;
|
|
2508
2542
|
}
|
|
2509
|
-
|
|
2510
|
-
return this._connection.
|
|
2543
|
+
SMCServiceBase.prototype.Activity = function (request) {
|
|
2544
|
+
return this._connection.send("Activity", request, "json", false, undefined, "ActivityResponse");
|
|
2511
2545
|
};
|
|
2512
|
-
|
|
2513
|
-
return this._connection.send("
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2546
|
+
SMCServiceBase.prototype.BrowseResources = function (request) {
|
|
2547
|
+
return this._connection.send("BrowseResources", request, "json", false, undefined, "BrowseResourcesResponse");
|
|
2548
|
+
};
|
|
2549
|
+
SMCServiceBase.prototype.ClearQueue = function (request) {
|
|
2550
|
+
return this._connection.send("ClearQueue", request, "json", false, undefined, "SMCQueueResponse");
|
|
2551
|
+
};
|
|
2552
|
+
SMCServiceBase.prototype.GetBuildInfo = function (request) {
|
|
2553
|
+
return this._connection.send("GetBuildInfo", request, "json", false, undefined, "GetBuildInfoResponse");
|
|
2554
|
+
};
|
|
2555
|
+
SMCServiceBase.prototype.GetStatusServerInfo = function (request) {
|
|
2556
|
+
return this._connection.send("GetStatusServerInfo", request, "json", false, undefined, "GetStatusServerInfoResponse");
|
|
2557
|
+
};
|
|
2558
|
+
SMCServiceBase.prototype.GetThorQueueAvailability = function (request) {
|
|
2559
|
+
return this._connection.send("GetThorQueueAvailability", request, "json", false, undefined, "GetThorQueueAvailabilityResponse");
|
|
2560
|
+
};
|
|
2561
|
+
SMCServiceBase.prototype.Index = function (request) {
|
|
2562
|
+
return this._connection.send("Index", request, "json", false, undefined, "SMCIndexResponse");
|
|
2563
|
+
};
|
|
2564
|
+
SMCServiceBase.prototype.LockQuery = function (request) {
|
|
2565
|
+
return this._connection.send("LockQuery", request, "json", false, undefined, "LockQueryResponse");
|
|
2566
|
+
};
|
|
2567
|
+
SMCServiceBase.prototype.MoveJobBack = function (request) {
|
|
2568
|
+
return this._connection.send("MoveJobBack", request, "json", false, undefined, "SMCJobResponse");
|
|
2569
|
+
};
|
|
2570
|
+
SMCServiceBase.prototype.MoveJobDown = function (request) {
|
|
2571
|
+
return this._connection.send("MoveJobDown", request, "json", false, undefined, "SMCJobResponse");
|
|
2518
2572
|
};
|
|
2519
|
-
|
|
2520
|
-
return this._connection.send("
|
|
2573
|
+
SMCServiceBase.prototype.MoveJobFront = function (request) {
|
|
2574
|
+
return this._connection.send("MoveJobFront", request, "json", false, undefined, "SMCJobResponse");
|
|
2521
2575
|
};
|
|
2522
|
-
|
|
2523
|
-
return this._connection.send("
|
|
2576
|
+
SMCServiceBase.prototype.MoveJobUp = function (request) {
|
|
2577
|
+
return this._connection.send("MoveJobUp", request, "json", false, undefined, "SMCJobResponse");
|
|
2524
2578
|
};
|
|
2525
|
-
|
|
2526
|
-
return this._connection.send("
|
|
2579
|
+
SMCServiceBase.prototype.NotInCommunityEdition = function (request) {
|
|
2580
|
+
return this._connection.send("NotInCommunityEdition", request, "json", false, undefined, "NotInCommunityEditionResponse");
|
|
2527
2581
|
};
|
|
2528
|
-
|
|
2529
|
-
return this._connection.send("
|
|
2582
|
+
SMCServiceBase.prototype.PauseQueue = function (request) {
|
|
2583
|
+
return this._connection.send("PauseQueue", request, "json", false, undefined, "SMCQueueResponse");
|
|
2530
2584
|
};
|
|
2531
|
-
|
|
2532
|
-
return this._connection.send("
|
|
2585
|
+
SMCServiceBase.prototype.Ping = function (request) {
|
|
2586
|
+
return this._connection.send("Ping", request, "json", false, undefined, "WsSMCPingResponse");
|
|
2533
2587
|
};
|
|
2534
|
-
|
|
2535
|
-
return this._connection.send("
|
|
2588
|
+
SMCServiceBase.prototype.RemoveJob = function (request) {
|
|
2589
|
+
return this._connection.send("RemoveJob", request, "json", false, undefined, "SMCJobResponse");
|
|
2536
2590
|
};
|
|
2537
|
-
|
|
2538
|
-
return this._connection.send("
|
|
2591
|
+
SMCServiceBase.prototype.ResumeQueue = function (request) {
|
|
2592
|
+
return this._connection.send("ResumeQueue", request, "json", false, undefined, "SMCQueueResponse");
|
|
2539
2593
|
};
|
|
2540
|
-
|
|
2541
|
-
return this._connection.send("
|
|
2594
|
+
SMCServiceBase.prototype.RoxieControlCmd = function (request) {
|
|
2595
|
+
return this._connection.send("RoxieControlCmd", request, "json", false, undefined, "RoxieControlCmdResponse");
|
|
2542
2596
|
};
|
|
2543
|
-
|
|
2544
|
-
return this._connection.send("
|
|
2597
|
+
SMCServiceBase.prototype.RoxieXrefCmd = function (request) {
|
|
2598
|
+
return this._connection.send("RoxieXrefCmd", request, "json", false, undefined, "RoxieXrefCmdResponse");
|
|
2599
|
+
};
|
|
2600
|
+
SMCServiceBase.prototype.SetBanner = function (request) {
|
|
2601
|
+
return this._connection.send("SetBanner", request, "json", false, undefined, "SetBannerResponse");
|
|
2602
|
+
};
|
|
2603
|
+
SMCServiceBase.prototype.SetJobPriority = function (request) {
|
|
2604
|
+
return this._connection.send("SetJobPriority", request, "json", false, undefined, "SMCPriorityResponse");
|
|
2605
|
+
};
|
|
2606
|
+
SMCServiceBase.prototype.StopQueue = function (request) {
|
|
2607
|
+
return this._connection.send("StopQueue", request, "json", false, undefined, "SMCQueueResponse");
|
|
2608
|
+
};
|
|
2609
|
+
return SMCServiceBase;
|
|
2610
|
+
}(Service));
|
|
2611
|
+
|
|
2612
|
+
var SMCService = /** @class */ (function (_super) {
|
|
2613
|
+
__extends(SMCService, _super);
|
|
2614
|
+
function SMCService() {
|
|
2615
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2616
|
+
}
|
|
2617
|
+
SMCService.prototype.connectionOptions = function () {
|
|
2618
|
+
return this._connection.opts();
|
|
2619
|
+
};
|
|
2620
|
+
SMCService.prototype.Activity = function (request) {
|
|
2621
|
+
return _super.prototype.Activity.call(this, request).then(function (response) {
|
|
2622
|
+
return __assign({ Running: {
|
|
2623
|
+
ActiveWorkunit: []
|
|
2624
|
+
} }, response);
|
|
2625
|
+
});
|
|
2545
2626
|
};
|
|
2546
2627
|
return SMCService;
|
|
2547
|
-
}());
|
|
2628
|
+
}(SMCServiceBase));
|
|
2548
2629
|
|
|
2549
2630
|
var StoreService = /** @class */ (function (_super) {
|
|
2550
2631
|
__extends(StoreService, _super);
|
|
@@ -5646,6 +5727,76 @@
|
|
|
5646
5727
|
}
|
|
5647
5728
|
return num;
|
|
5648
5729
|
}
|
|
5730
|
+
var DEFINITION_LIST = "DefinitionList";
|
|
5731
|
+
var definitionRegex = /([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/;
|
|
5732
|
+
var extendedProps = ["Avg", "Min", "Max", "Delta", "StdDev"];
|
|
5733
|
+
var relatedProps = ["SkewMin", "SkewMax", "NodeMin", "NodeMax"];
|
|
5734
|
+
var metricKeyRegex = /[A-Z][a-z]*/g;
|
|
5735
|
+
function _splitLabel(fullLabel) {
|
|
5736
|
+
// Related properties ---
|
|
5737
|
+
for (var _i = 0, relatedProps_1 = relatedProps; _i < relatedProps_1.length; _i++) {
|
|
5738
|
+
var relProp = relatedProps_1[_i];
|
|
5739
|
+
var index = fullLabel.indexOf(relProp);
|
|
5740
|
+
if (index === 0) {
|
|
5741
|
+
var measure = "";
|
|
5742
|
+
var label = fullLabel.slice(index + relProp.length);
|
|
5743
|
+
return { measure: measure, ext: relProp, label: label };
|
|
5744
|
+
}
|
|
5745
|
+
}
|
|
5746
|
+
// Primary properties ---
|
|
5747
|
+
var labelParts = fullLabel.match(metricKeyRegex);
|
|
5748
|
+
if (labelParts === null || labelParts === void 0 ? void 0 : labelParts.length) {
|
|
5749
|
+
var measure = labelParts.shift();
|
|
5750
|
+
var label = labelParts.join("");
|
|
5751
|
+
for (var _a = 0, extendedProps_1 = extendedProps; _a < extendedProps_1.length; _a++) {
|
|
5752
|
+
var ext = extendedProps_1[_a];
|
|
5753
|
+
var index = label.indexOf(ext);
|
|
5754
|
+
if (index === 0) {
|
|
5755
|
+
label = label.slice(index + ext.length);
|
|
5756
|
+
return { measure: measure, ext: ext, label: label };
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
// Not an aggregate property ---
|
|
5760
|
+
return { measure: measure, ext: "", label: label };
|
|
5761
|
+
}
|
|
5762
|
+
// No match found ---
|
|
5763
|
+
return { measure: "", ext: "", label: fullLabel };
|
|
5764
|
+
}
|
|
5765
|
+
var splitLabelCache = {};
|
|
5766
|
+
function splitLabel(key) {
|
|
5767
|
+
var retVal = splitLabelCache[key];
|
|
5768
|
+
if (!retVal) {
|
|
5769
|
+
retVal = _splitLabel(key);
|
|
5770
|
+
splitLabelCache[key] = retVal;
|
|
5771
|
+
}
|
|
5772
|
+
return retVal;
|
|
5773
|
+
}
|
|
5774
|
+
function formatValue(item, key) {
|
|
5775
|
+
var _a, _b, _c;
|
|
5776
|
+
return (_c = (_b = (_a = item.__formattedProps) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : item[key]) !== null && _c !== void 0 ? _c : "";
|
|
5777
|
+
}
|
|
5778
|
+
function formatValues(item, key, dedup) {
|
|
5779
|
+
var keyParts = splitLabel(key);
|
|
5780
|
+
if (!dedup[keyParts.measure]) {
|
|
5781
|
+
dedup[keyParts.label] = true;
|
|
5782
|
+
return {
|
|
5783
|
+
Key: "".concat(keyParts.measure).concat(keyParts.label),
|
|
5784
|
+
Value: formatValue(item, "".concat(keyParts.measure).concat(keyParts.label)),
|
|
5785
|
+
// Extended properties ---
|
|
5786
|
+
Avg: formatValue(item, "".concat(keyParts.measure, "Avg").concat(keyParts.label)),
|
|
5787
|
+
Min: formatValue(item, "".concat(keyParts.measure, "Min").concat(keyParts.label)),
|
|
5788
|
+
Max: formatValue(item, "".concat(keyParts.measure, "Max").concat(keyParts.label)),
|
|
5789
|
+
Delta: formatValue(item, "".concat(keyParts.measure, "Delta").concat(keyParts.label)),
|
|
5790
|
+
StdDev: formatValue(item, "".concat(keyParts.measure, "StdDev").concat(keyParts.label)),
|
|
5791
|
+
// Related properties ---
|
|
5792
|
+
SkewMin: formatValue(item, "SkewMin".concat(keyParts.label)),
|
|
5793
|
+
SkewMax: formatValue(item, "SkewMax".concat(keyParts.label)),
|
|
5794
|
+
NodeMin: formatValue(item, "NodeMin".concat(keyParts.label)),
|
|
5795
|
+
NodeMax: formatValue(item, "NodeMax".concat(keyParts.label))
|
|
5796
|
+
};
|
|
5797
|
+
}
|
|
5798
|
+
return null;
|
|
5799
|
+
}
|
|
5649
5800
|
var logger$2 = util.scopedLogger("workunit.ts");
|
|
5650
5801
|
var WUStateID = exports.WUStateID;
|
|
5651
5802
|
var WorkunitCache = /** @class */ (function (_super) {
|
|
@@ -6484,8 +6635,7 @@
|
|
|
6484
6635
|
}
|
|
6485
6636
|
};
|
|
6486
6637
|
var data = [];
|
|
6487
|
-
|
|
6488
|
-
var scope = scopes_1[_i];
|
|
6638
|
+
var _loop_1 = function (scope) {
|
|
6489
6639
|
var props = {};
|
|
6490
6640
|
var formattedProps = {};
|
|
6491
6641
|
if (scope && scope.Id && scope.Properties && scope.Properties.Property) {
|
|
@@ -6534,8 +6684,42 @@
|
|
|
6534
6684
|
}
|
|
6535
6685
|
formattedProps[scopeProperty.Name] = formatNum((_a = scopeProperty.Formatted) !== null && _a !== void 0 ? _a : props[scopeProperty.Name]);
|
|
6536
6686
|
}
|
|
6687
|
+
// Other properties ---
|
|
6688
|
+
}
|
|
6689
|
+
var normalizedScope = __assign({ id: scope.Id, name: scope.ScopeName, type: scope.ScopeType, Kind: scope["Kind"], Label: scope["Label"], __formattedProps: formattedProps, __groupedProps: {} }, props);
|
|
6690
|
+
if (normalizedScope[DEFINITION_LIST]) {
|
|
6691
|
+
try {
|
|
6692
|
+
var definitionList = JSON.parse(normalizedScope[DEFINITION_LIST].split("\\").join("\\\\"));
|
|
6693
|
+
normalizedScope[DEFINITION_LIST] = [];
|
|
6694
|
+
definitionList.forEach(function (definition, idx) {
|
|
6695
|
+
var _a;
|
|
6696
|
+
var matches = definition.match(definitionRegex);
|
|
6697
|
+
if (matches) {
|
|
6698
|
+
var filePath = ((_a = matches[1]) !== null && _a !== void 0 ? _a : "") + matches[2] + matches[3];
|
|
6699
|
+
var line = parseInt(matches[5]);
|
|
6700
|
+
var col = parseInt(matches[6]);
|
|
6701
|
+
normalizedScope[DEFINITION_LIST].push({ filePath: filePath, line: line, col: col });
|
|
6702
|
+
}
|
|
6703
|
+
});
|
|
6704
|
+
}
|
|
6705
|
+
catch (e) {
|
|
6706
|
+
logger$2.error("Unexpected \"DefinitionList\": ".concat(normalizedScope[DEFINITION_LIST]));
|
|
6707
|
+
}
|
|
6708
|
+
}
|
|
6709
|
+
var dedup = {};
|
|
6710
|
+
for (var key in normalizedScope) {
|
|
6711
|
+
if (key.indexOf("__") !== 0) {
|
|
6712
|
+
var row = formatValues(normalizedScope, key, dedup);
|
|
6713
|
+
if (row) {
|
|
6714
|
+
normalizedScope.__groupedProps[row.Key] = row;
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6537
6717
|
}
|
|
6538
|
-
data.push(
|
|
6718
|
+
data.push(normalizedScope);
|
|
6719
|
+
};
|
|
6720
|
+
for (var _i = 0, scopes_1 = scopes; _i < scopes_1.length; _i++) {
|
|
6721
|
+
var scope = scopes_1[_i];
|
|
6722
|
+
_loop_1(scope);
|
|
6539
6723
|
}
|
|
6540
6724
|
return {
|
|
6541
6725
|
meta: meta,
|