@hpcc-js/comms 3.17.4 → 3.17.5
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/browser/index.js +263 -251
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.cjs +2 -2
- package/dist/browser/index.umd.cjs.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +3 -3
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +3 -3
- package/package.json +8 -8
- package/src/ecl/workunit.ts +14 -1
- package/types/ecl/workunit.d.ts +1 -0
package/dist/browser/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cache as e, Dispatch as t, Edge as n, Graph as r, Message as i, SAXStac
|
|
|
3
3
|
var ee = Object.defineProperty, __name = (e, t) => ee(e, "name", {
|
|
4
4
|
value: t,
|
|
5
5
|
configurable: !0
|
|
6
|
-
}), S = "@hpcc-js/comms", C = "3.17.
|
|
6
|
+
}), S = "@hpcc-js/comms", C = "3.17.5", w = "3.29.0", T = y("comms/connection.ts");
|
|
7
7
|
function instanceOfIOptions(e) {
|
|
8
8
|
return "baseUrl" in e;
|
|
9
9
|
}
|
|
@@ -622,12 +622,12 @@ var CloudService = class extends CloudServiceBase {
|
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
},
|
|
625
|
+
}, k;
|
|
626
626
|
(function(e) {
|
|
627
627
|
e.SigningMethodType = /* @__PURE__ */ function(e) {
|
|
628
628
|
return e.gpg = "gpg", e;
|
|
629
629
|
}({});
|
|
630
|
-
})(
|
|
630
|
+
})(k ||= {});
|
|
631
631
|
var CodesignServiceBase = class extends Service {
|
|
632
632
|
constructor(e) {
|
|
633
633
|
super(e, "ws_codesign", "1.1");
|
|
@@ -650,7 +650,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
650
650
|
}
|
|
651
651
|
Sign(e) {
|
|
652
652
|
return super.Sign({
|
|
653
|
-
SigningMethod:
|
|
653
|
+
SigningMethod: k.SigningMethodType.gpg,
|
|
654
654
|
...e
|
|
655
655
|
});
|
|
656
656
|
}
|
|
@@ -748,7 +748,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
748
748
|
UnlockSDSLock(e, t) {
|
|
749
749
|
return this._connection.send("UnlockSDSLock", e, "json", !1, t, "ResultResponse");
|
|
750
750
|
}
|
|
751
|
-
}, DaliService = class extends DaliServiceBase {},
|
|
751
|
+
}, DaliService = class extends DaliServiceBase {}, A;
|
|
752
752
|
(function(e) {
|
|
753
753
|
e.DFUArrayActions = /* @__PURE__ */ function(e) {
|
|
754
754
|
return e.Delete = "Delete", e.AddToSuperfile = "Add To Superfile", e.ChangeProtection = "Change Protection", e.ChangeRestriction = "Change Restriction", e;
|
|
@@ -765,7 +765,7 @@ var CodesignServiceBase = class extends Service {
|
|
|
765
765
|
}({}), e.DFUFileType = /* @__PURE__ */ function(e) {
|
|
766
766
|
return e.Flat = "Flat", e.Index = "Index", e.Xml = "Xml", e.Csv = "Csv", e.Json = "Json", e.IndexLocal = "IndexLocal", e.IndexPartitioned = "IndexPartitioned", e.Unset = "Unset", e;
|
|
767
767
|
}({});
|
|
768
|
-
})(
|
|
768
|
+
})(A ||= {});
|
|
769
769
|
var DfuServiceBase = class extends Service {
|
|
770
770
|
constructor(e) {
|
|
771
771
|
super(e, "WsDfu", "1.67");
|
|
@@ -854,7 +854,7 @@ var DfuServiceBase = class extends Service {
|
|
|
854
854
|
SuperfileList(e) {
|
|
855
855
|
return this._connection.send("SuperfileList", e, "json", !1, void 0, "SuperfileListResponse");
|
|
856
856
|
}
|
|
857
|
-
},
|
|
857
|
+
}, se = A.DFUArrayActions, ce = A.DFUDefFileFormat, le = A.DFUChangeProtection, ue = A.DFUChangeRestriction, DFUService = class extends DfuServiceBase {
|
|
858
858
|
DFUFile(e) {
|
|
859
859
|
return this._connection.send("DFUDefFile", e, "text");
|
|
860
860
|
}
|
|
@@ -1011,7 +1011,7 @@ var EclService = class extends Service {
|
|
|
1011
1011
|
Ping(e, t) {
|
|
1012
1012
|
return this._connection.send("Ping", e, "json", !1, t, "ws_elkPingResponse");
|
|
1013
1013
|
}
|
|
1014
|
-
}, ElkService = class extends ElkServiceBase {},
|
|
1014
|
+
}, ElkService = class extends ElkServiceBase {}, j;
|
|
1015
1015
|
(function(e) {
|
|
1016
1016
|
e.LogColumnType = /* @__PURE__ */ function(e) {
|
|
1017
1017
|
return e.global = "global", e.workunits = "workunits", e.components = "components", e.audience = "audience", e.class = "class", e.instance = "instance", e.node = "node", e.message = "message", e.logid = "logid", e.processid = "processid", e.threadid = "threadid", e.timestamp = "timestamp", e.pod = "pod", e.traceid = "traceid", e.spanid = "spanid", e;
|
|
@@ -1030,7 +1030,7 @@ var EclService = class extends Service {
|
|
|
1030
1030
|
}({}), e.SortDirection = /* @__PURE__ */ function(e) {
|
|
1031
1031
|
return e[e.ASC = 0] = "ASC", e[e.DSC = 1] = "DSC", e;
|
|
1032
1032
|
}({});
|
|
1033
|
-
})(
|
|
1033
|
+
})(j ||= {});
|
|
1034
1034
|
var LogaccessServiceBase = class extends Service {
|
|
1035
1035
|
constructor(e) {
|
|
1036
1036
|
super(e, "ws_logaccess", "1.08");
|
|
@@ -1047,29 +1047,29 @@ var LogaccessServiceBase = class extends Service {
|
|
|
1047
1047
|
Ping(e) {
|
|
1048
1048
|
return this._connection.send("Ping", e, "json", !1, void 0, "ws_logaccessPingResponse");
|
|
1049
1049
|
}
|
|
1050
|
-
},
|
|
1050
|
+
}, de = y("@hpcc-js/comms/services/wsLogaccess.ts"), fe = /* @__PURE__ */ function(e) {
|
|
1051
1051
|
return e.Disaster = "DIS", e.Error = "ERR", e.Warning = "WRN", e.Information = "INF", e.Progress = "PRO", e.Metric = "MET", e;
|
|
1052
|
-
}({}),
|
|
1052
|
+
}({}), pe = /* @__PURE__ */ function(e) {
|
|
1053
1053
|
return e.Operator = "OPR", e.User = "USR", e.Programmer = "PRO", e.Audit = "ADT", e;
|
|
1054
|
-
}({}),
|
|
1054
|
+
}({}), me = /* @__PURE__ */ new Set([
|
|
1055
1055
|
"azureloganalyticscurl",
|
|
1056
1056
|
"elasticstack",
|
|
1057
1057
|
"grafanacurl"
|
|
1058
|
-
]),
|
|
1058
|
+
]), he = new Set(Object.values(j.LogColumnType));
|
|
1059
1059
|
function getLogCategory(e) {
|
|
1060
1060
|
switch (e) {
|
|
1061
|
-
case
|
|
1062
|
-
case "hpcc.log.jobid": return
|
|
1063
|
-
case
|
|
1064
|
-
case "hpcc.log.audience": return
|
|
1065
|
-
case
|
|
1066
|
-
case "hpcc.log.class": return
|
|
1067
|
-
case
|
|
1068
|
-
case "kubernetes.container.name": return
|
|
1069
|
-
default: return
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
var
|
|
1061
|
+
case j.LogColumnType.workunits:
|
|
1062
|
+
case "hpcc.log.jobid": return j.LogAccessType.ByJobID;
|
|
1063
|
+
case j.LogColumnType.audience:
|
|
1064
|
+
case "hpcc.log.audience": return j.LogAccessType.ByTargetAudience;
|
|
1065
|
+
case j.LogColumnType.class:
|
|
1066
|
+
case "hpcc.log.class": return j.LogAccessType.ByLogType;
|
|
1067
|
+
case j.LogColumnType.components:
|
|
1068
|
+
case "kubernetes.container.name": return j.LogAccessType.ByComponent;
|
|
1069
|
+
default: return j.LogAccessType.ByFieldName;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
var ge = [
|
|
1073
1073
|
"audience",
|
|
1074
1074
|
"class",
|
|
1075
1075
|
"workunits",
|
|
@@ -1083,12 +1083,12 @@ var _e = [
|
|
|
1083
1083
|
];
|
|
1084
1084
|
function buildFilters(e, t) {
|
|
1085
1085
|
let n = [];
|
|
1086
|
-
for (let r of
|
|
1086
|
+
for (let r of ge) {
|
|
1087
1087
|
let i = e[r];
|
|
1088
1088
|
if (i == null || i === "" || Array.isArray(i) && i.length === 0 || !(r in t)) continue;
|
|
1089
|
-
let a =
|
|
1090
|
-
o ===
|
|
1091
|
-
let s = o ===
|
|
1089
|
+
let a = he.has(r) ? r : t[r], o = getLogCategory(a);
|
|
1090
|
+
o === j.LogAccessType.ByFieldName && (a = t[r]);
|
|
1091
|
+
let s = o === j.LogAccessType.ByComponent, c = Array.isArray(i) ? i : [i];
|
|
1092
1092
|
for (let e of c) n.push({
|
|
1093
1093
|
LogCategory: o,
|
|
1094
1094
|
SearchField: a,
|
|
@@ -1099,13 +1099,13 @@ function buildFilters(e, t) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
function buildOrGroup(e) {
|
|
1101
1101
|
let t = { leftFilter: e[0] }, n = t;
|
|
1102
|
-
for (let t = 1; t < e.length; t++) n.Operator =
|
|
1102
|
+
for (let t = 1; t < e.length; t++) n.Operator = j.LogAccessFilterOperator.OR, t === e.length - 1 ? n.rightFilter = e[t] : (n.rightBinaryFilter = { BinaryLogFilter: [{ leftFilter: e[t] }] }, n = n.rightBinaryFilter.BinaryLogFilter[0]);
|
|
1103
1103
|
return t;
|
|
1104
1104
|
}
|
|
1105
1105
|
function buildAndChain(e) {
|
|
1106
1106
|
let [t, ...n] = e, r = {};
|
|
1107
1107
|
if (t.length === 1 ? r.leftFilter = t[0] : r.leftBinaryFilter = { BinaryLogFilter: [buildOrGroup(t)] }, n.length === 0) return r;
|
|
1108
|
-
if (r.Operator =
|
|
1108
|
+
if (r.Operator = j.LogAccessFilterOperator.AND, n.length === 1) {
|
|
1109
1109
|
let [e] = n;
|
|
1110
1110
|
e.length === 1 ? r.rightFilter = e[0] : r.rightBinaryFilter = { BinaryLogFilter: [buildOrGroup(e)] };
|
|
1111
1111
|
} else r.rightBinaryFilter = { BinaryLogFilter: [buildAndChain(n)] };
|
|
@@ -1118,10 +1118,10 @@ function buildFilterTree(e) {
|
|
|
1118
1118
|
e ? e.push(n) : t.set(n.SearchField, [n]);
|
|
1119
1119
|
}
|
|
1120
1120
|
let n = [...t.values()];
|
|
1121
|
-
if (n.length === 0) return { leftFilter: { LogCategory:
|
|
1121
|
+
if (n.length === 0) return { leftFilter: { LogCategory: j.LogAccessType.All } };
|
|
1122
1122
|
let [r, ...i] = n, a = {};
|
|
1123
1123
|
if (r.length === 1 ? a.leftFilter = r[0] : a.leftBinaryFilter = { BinaryLogFilter: [buildOrGroup(r)] }, i.length === 0) return a;
|
|
1124
|
-
if (a.Operator =
|
|
1124
|
+
if (a.Operator = j.LogAccessFilterOperator.AND, i.length === 1) {
|
|
1125
1125
|
let [e] = i;
|
|
1126
1126
|
e.length === 1 ? a.rightFilter = e[0] : a.rightBinaryFilter = { BinaryLogFilter: [buildOrGroup(e)] };
|
|
1127
1127
|
} else a.rightBinaryFilter = { BinaryLogFilter: [buildAndChain(i)] };
|
|
@@ -1150,10 +1150,10 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1150
1150
|
Range: i,
|
|
1151
1151
|
LogLineStartFrom: e.LogLineStartFrom ?? 0,
|
|
1152
1152
|
LogLineLimit: e.LogLineLimit ?? 100,
|
|
1153
|
-
SelectColumnMode:
|
|
1153
|
+
SelectColumnMode: j.LogSelectColumnMode.DEFAULT,
|
|
1154
1154
|
Format: "JSON",
|
|
1155
1155
|
SortBy: { SortCondition: [{
|
|
1156
|
-
BySortType:
|
|
1156
|
+
BySortType: j.SortColumType.ByDate,
|
|
1157
1157
|
ColumnName: "",
|
|
1158
1158
|
Direction: 0
|
|
1159
1159
|
}] }
|
|
@@ -1162,11 +1162,11 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1162
1162
|
try {
|
|
1163
1163
|
let r = JSON.parse(e.LogLines);
|
|
1164
1164
|
return {
|
|
1165
|
-
lines:
|
|
1165
|
+
lines: me.has(t.RemoteLogManagerType) ? r.lines?.map((e) => this.convertLogLine(n, e)) ?? [] : (de.warning(`Unknown RemoteLogManagerType: ${t.RemoteLogManagerType}`), []),
|
|
1166
1166
|
total: e.TotalLogLinesAvailable ?? 1e4
|
|
1167
1167
|
};
|
|
1168
1168
|
} catch (e) {
|
|
1169
|
-
|
|
1169
|
+
de.error(e.message ?? e);
|
|
1170
1170
|
}
|
|
1171
1171
|
return {
|
|
1172
1172
|
lines: [],
|
|
@@ -1176,13 +1176,13 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
1178
|
//#endregion
|
|
1179
|
-
//#region
|
|
1179
|
+
//#region node_modules/d3-array/src/ascending.js
|
|
1180
1180
|
function ascending_default(e, t) {
|
|
1181
1181
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1182
1182
|
}
|
|
1183
1183
|
__name(ascending_default, "default");
|
|
1184
1184
|
//#endregion
|
|
1185
|
-
//#region
|
|
1185
|
+
//#region node_modules/d3-array/src/bisector.js
|
|
1186
1186
|
function bisector_default(e) {
|
|
1187
1187
|
return e.length === 1 && (e = ascendingComparator(e)), {
|
|
1188
1188
|
left: function(t, n, r, i) {
|
|
@@ -1208,21 +1208,21 @@ function ascendingComparator(e) {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
1210
|
//#endregion
|
|
1211
|
-
//#region
|
|
1212
|
-
var
|
|
1213
|
-
|
|
1211
|
+
//#region node_modules/d3-array/src/bisect.js
|
|
1212
|
+
var _e = bisector_default(ascending_default);
|
|
1213
|
+
_e.right, _e.left;
|
|
1214
1214
|
//#endregion
|
|
1215
|
-
//#region
|
|
1215
|
+
//#region node_modules/d3-array/src/number.js
|
|
1216
1216
|
function number_default(e) {
|
|
1217
1217
|
return e === null ? NaN : +e;
|
|
1218
1218
|
}
|
|
1219
1219
|
__name(number_default, "default");
|
|
1220
1220
|
//#endregion
|
|
1221
|
-
//#region
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1221
|
+
//#region node_modules/d3-array/src/array.js
|
|
1222
|
+
var ve = Array.prototype;
|
|
1223
|
+
ve.slice, ve.map;
|
|
1224
1224
|
//#endregion
|
|
1225
|
-
//#region
|
|
1225
|
+
//#region node_modules/d3-array/src/max.js
|
|
1226
1226
|
function max_default(e, t) {
|
|
1227
1227
|
var n = e.length, r = -1, i, a;
|
|
1228
1228
|
if (t == null) {
|
|
@@ -1232,7 +1232,7 @@ function max_default(e, t) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
__name(max_default, "default");
|
|
1234
1234
|
//#endregion
|
|
1235
|
-
//#region
|
|
1235
|
+
//#region node_modules/d3-array/src/mean.js
|
|
1236
1236
|
function mean_default(e, t) {
|
|
1237
1237
|
var n = e.length, r = n, i = -1, a, o = 0;
|
|
1238
1238
|
if (t == null) for (; ++i < n;) isNaN(a = number_default(e[i])) ? --r : o += a;
|
|
@@ -1242,14 +1242,14 @@ function mean_default(e, t) {
|
|
|
1242
1242
|
__name(mean_default, "default");
|
|
1243
1243
|
//#endregion
|
|
1244
1244
|
//#region src/services/wsdl/ws_machine/v1.19/ws_machine.ts
|
|
1245
|
-
var
|
|
1245
|
+
var ye;
|
|
1246
1246
|
(function(e) {
|
|
1247
1247
|
e.ThresholdType = /* @__PURE__ */ function(e) {
|
|
1248
1248
|
return e[e.THRESHOLD_PERCENTAGE = 0] = "THRESHOLD_PERCENTAGE", e[e.THRESHOLD_MB = 1] = "THRESHOLD_MB", e;
|
|
1249
1249
|
}({}), e.TpMachineType = /* @__PURE__ */ function(e) {
|
|
1250
1250
|
return e.ALLNODES = "ALLNODES", e.THORMACHINES = "THORMACHINES", e.HOLEMACHINES = "HOLEMACHINES", e.ROXIEMACHINES = "ROXIEMACHINES", e.MACHINES = "MACHINES", e.AVAILABLEMACHINES = "AVAILABLEMACHINES", e.DROPZONE = "DROPZONE", e.STANDBYNNODE = "STANDBYNNODE", e.THORSPARENODES = "THORSPARENODES", e.HOLESTANDBYNODES = "HOLESTANDBYNODES", e;
|
|
1251
1251
|
}({});
|
|
1252
|
-
})(
|
|
1252
|
+
})(ye ||= {});
|
|
1253
1253
|
var MachineServiceBase = class extends Service {
|
|
1254
1254
|
constructor(e) {
|
|
1255
1255
|
super(e, "ws_machine", "1.19");
|
|
@@ -1395,12 +1395,12 @@ var MachineServiceBase = class extends Service {
|
|
|
1395
1395
|
WebLinksQuery(e) {
|
|
1396
1396
|
return this._connection.send("WebLinksQuery", e);
|
|
1397
1397
|
}
|
|
1398
|
-
}, ResourcesService = class extends ResourcesServiceBase {},
|
|
1398
|
+
}, ResourcesService = class extends ResourcesServiceBase {}, be;
|
|
1399
1399
|
(function(e) {
|
|
1400
1400
|
e.WUTypes = /* @__PURE__ */ function(e) {
|
|
1401
1401
|
return e.ECL = "ECL", e.DFU = "DFU", e;
|
|
1402
1402
|
}({});
|
|
1403
|
-
})(
|
|
1403
|
+
})(be ||= {});
|
|
1404
1404
|
var SashaServiceBase = class extends Service {
|
|
1405
1405
|
constructor(e) {
|
|
1406
1406
|
super(e, "WSSasha", "1.01");
|
|
@@ -1420,7 +1420,7 @@ var SashaServiceBase = class extends Service {
|
|
|
1420
1420
|
RestoreWU(e, t) {
|
|
1421
1421
|
return this._connection.send("RestoreWU", e, "json", !1, t, "ResultResponse");
|
|
1422
1422
|
}
|
|
1423
|
-
}, SashaService = class extends SashaServiceBase {},
|
|
1423
|
+
}, SashaService = class extends SashaServiceBase {}, M = /* @__PURE__ */ new Date(), N = /* @__PURE__ */ new Date();
|
|
1424
1424
|
function newInterval(e, t, n, r) {
|
|
1425
1425
|
function interval(t) {
|
|
1426
1426
|
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
|
|
@@ -1449,7 +1449,7 @@ function newInterval(e, t, n, r) {
|
|
|
1449
1449
|
else for (; --r >= 0;) for (; t(e, 1), !n(e););
|
|
1450
1450
|
});
|
|
1451
1451
|
}, n && (interval.count = function(t, r) {
|
|
1452
|
-
return
|
|
1452
|
+
return M.setTime(+t), N.setTime(+r), e(M), e(N), Math.floor(n(M, N));
|
|
1453
1453
|
}, interval.every = function(e) {
|
|
1454
1454
|
return e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? interval.filter(r ? function(t) {
|
|
1455
1455
|
return r(t) % e === 0;
|
|
@@ -1460,16 +1460,16 @@ function newInterval(e, t, n, r) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
//#endregion
|
|
1462
1462
|
//#region ../../node_modules/d3-time/src/duration.js
|
|
1463
|
-
var
|
|
1463
|
+
var xe = 6e4, Se = 864e5, Ce = 6048e5, we = newInterval(function(e) {
|
|
1464
1464
|
e.setHours(0, 0, 0, 0);
|
|
1465
1465
|
}, function(e, t) {
|
|
1466
1466
|
e.setDate(e.getDate() + t);
|
|
1467
1467
|
}, function(e, t) {
|
|
1468
|
-
return (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) *
|
|
1468
|
+
return (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xe) / Se;
|
|
1469
1469
|
}, function(e) {
|
|
1470
1470
|
return e.getDate() - 1;
|
|
1471
1471
|
});
|
|
1472
|
-
|
|
1472
|
+
we.range;
|
|
1473
1473
|
//#endregion
|
|
1474
1474
|
//#region ../../node_modules/d3-time/src/week.js
|
|
1475
1475
|
function weekday(e) {
|
|
@@ -1478,7 +1478,7 @@ function weekday(e) {
|
|
|
1478
1478
|
}, function(e, t) {
|
|
1479
1479
|
e.setDate(e.getDate() + t * 7);
|
|
1480
1480
|
}, function(e, t) {
|
|
1481
|
-
return (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) *
|
|
1481
|
+
return (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xe) / Ce;
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
var Te = weekday(0), P = weekday(1), Ee = weekday(2), De = weekday(3), F = weekday(4), Oe = weekday(5), ke = weekday(6);
|
|
@@ -1503,16 +1503,16 @@ I.every = function(e) {
|
|
|
1503
1503
|
}, I.range;
|
|
1504
1504
|
//#endregion
|
|
1505
1505
|
//#region ../../node_modules/d3-time/src/utcDay.js
|
|
1506
|
-
var
|
|
1506
|
+
var Ae = newInterval(function(e) {
|
|
1507
1507
|
e.setUTCHours(0, 0, 0, 0);
|
|
1508
1508
|
}, function(e, t) {
|
|
1509
1509
|
e.setUTCDate(e.getUTCDate() + t);
|
|
1510
1510
|
}, function(e, t) {
|
|
1511
|
-
return (t - e) /
|
|
1511
|
+
return (t - e) / Se;
|
|
1512
1512
|
}, function(e) {
|
|
1513
1513
|
return e.getUTCDate() - 1;
|
|
1514
1514
|
});
|
|
1515
|
-
|
|
1515
|
+
Ae.range;
|
|
1516
1516
|
//#endregion
|
|
1517
1517
|
//#region ../../node_modules/d3-time/src/utcWeek.js
|
|
1518
1518
|
function utcWeekday(e) {
|
|
@@ -1521,14 +1521,14 @@ function utcWeekday(e) {
|
|
|
1521
1521
|
}, function(e, t) {
|
|
1522
1522
|
e.setUTCDate(e.getUTCDate() + t * 7);
|
|
1523
1523
|
}, function(e, t) {
|
|
1524
|
-
return (t - e) /
|
|
1524
|
+
return (t - e) / Ce;
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1528
|
-
|
|
1527
|
+
var je = utcWeekday(0), L = utcWeekday(1), Me = utcWeekday(2), Ne = utcWeekday(3), R = utcWeekday(4), Pe = utcWeekday(5), Fe = utcWeekday(6);
|
|
1528
|
+
je.range, L.range, Me.range, Ne.range, R.range, Pe.range, Fe.range;
|
|
1529
1529
|
//#endregion
|
|
1530
1530
|
//#region ../../node_modules/d3-time/src/utcYear.js
|
|
1531
|
-
var
|
|
1531
|
+
var z = newInterval(function(e) {
|
|
1532
1532
|
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
1533
1533
|
}, function(e, t) {
|
|
1534
1534
|
e.setUTCFullYear(e.getUTCFullYear() + t);
|
|
@@ -1537,13 +1537,13 @@ var B = newInterval(function(e) {
|
|
|
1537
1537
|
}, function(e) {
|
|
1538
1538
|
return e.getUTCFullYear();
|
|
1539
1539
|
});
|
|
1540
|
-
|
|
1540
|
+
z.every = function(e) {
|
|
1541
1541
|
return !isFinite(e = Math.floor(e)) || !(e > 0) ? null : newInterval(function(t) {
|
|
1542
1542
|
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
1543
1543
|
}, function(t, n) {
|
|
1544
1544
|
t.setUTCFullYear(t.getUTCFullYear() + n * e);
|
|
1545
1545
|
});
|
|
1546
|
-
},
|
|
1546
|
+
}, z.range;
|
|
1547
1547
|
//#endregion
|
|
1548
1548
|
//#region ../../node_modules/d3-time-format/src/locale.js
|
|
1549
1549
|
function localDate(e) {
|
|
@@ -1676,7 +1676,7 @@ function formatLocale(e) {
|
|
|
1676
1676
|
function newFormat(e, t) {
|
|
1677
1677
|
return function(n) {
|
|
1678
1678
|
var r = [], i = -1, a = 0, o = e.length, s, c, l;
|
|
1679
|
-
for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c =
|
|
1679
|
+
for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = Ie[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
|
|
1680
1680
|
return r.push(e.slice(a, i)), r.join("");
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
@@ -1688,7 +1688,7 @@ function formatLocale(e) {
|
|
|
1688
1688
|
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
|
|
1689
1689
|
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
|
|
1690
1690
|
if (r.V < 1 || r.V > 53) return null;
|
|
1691
|
-
"w" in r || (r.w = 1), "Z" in r ? (a = utcDate(newDate(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ?
|
|
1691
|
+
"w" in r || (r.w = 1), "Z" in r ? (a = utcDate(newDate(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? L.ceil(a) : L(a), a = Ae.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = localDate(newDate(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? P.ceil(a) : P(a), a = we.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
|
|
1692
1692
|
} else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? utcDate(newDate(r.y, 0, 1)).getUTCDay() : localDate(newDate(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
|
|
1693
1693
|
return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, utcDate(r)) : localDate(r);
|
|
1694
1694
|
};
|
|
@@ -1697,7 +1697,7 @@ function formatLocale(e) {
|
|
|
1697
1697
|
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
|
|
1698
1698
|
if (r >= o) return -1;
|
|
1699
1699
|
if (s = t.charCodeAt(i++), s === 37) {
|
|
1700
|
-
if (s = t.charAt(i++), c = x[s in
|
|
1700
|
+
if (s = t.charAt(i++), c = x[s in Ie ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
|
|
1701
1701
|
} else if (s != n.charCodeAt(r++)) return -1;
|
|
1702
1702
|
}
|
|
1703
1703
|
return r;
|
|
@@ -1794,17 +1794,17 @@ function formatLocale(e) {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
};
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1797
|
+
var Ie = {
|
|
1798
1798
|
"-": "",
|
|
1799
1799
|
_: " ",
|
|
1800
1800
|
0: "0"
|
|
1801
|
-
},
|
|
1801
|
+
}, B = /^\s*\d+/, Le = /^%/, Re = /[\\^$*+?|[\]().{}]/g;
|
|
1802
1802
|
function pad(e, t, n) {
|
|
1803
1803
|
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
|
|
1804
1804
|
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
|
|
1805
1805
|
}
|
|
1806
1806
|
function requote(e) {
|
|
1807
|
-
return e.replace(
|
|
1807
|
+
return e.replace(Re, "\\$&");
|
|
1808
1808
|
}
|
|
1809
1809
|
function formatRe(e) {
|
|
1810
1810
|
return RegExp("^(?:" + e.map(requote).join("|") + ")", "i");
|
|
@@ -1814,31 +1814,31 @@ function formatLookup(e) {
|
|
|
1814
1814
|
return t;
|
|
1815
1815
|
}
|
|
1816
1816
|
function parseWeekdayNumberSunday(e, t, n) {
|
|
1817
|
-
var r =
|
|
1817
|
+
var r = B.exec(t.slice(n, n + 1));
|
|
1818
1818
|
return r ? (e.w = +r[0], n + r[0].length) : -1;
|
|
1819
1819
|
}
|
|
1820
1820
|
function parseWeekdayNumberMonday(e, t, n) {
|
|
1821
|
-
var r =
|
|
1821
|
+
var r = B.exec(t.slice(n, n + 1));
|
|
1822
1822
|
return r ? (e.u = +r[0], n + r[0].length) : -1;
|
|
1823
1823
|
}
|
|
1824
1824
|
function parseWeekNumberSunday(e, t, n) {
|
|
1825
|
-
var r =
|
|
1825
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1826
1826
|
return r ? (e.U = +r[0], n + r[0].length) : -1;
|
|
1827
1827
|
}
|
|
1828
1828
|
function parseWeekNumberISO(e, t, n) {
|
|
1829
|
-
var r =
|
|
1829
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1830
1830
|
return r ? (e.V = +r[0], n + r[0].length) : -1;
|
|
1831
1831
|
}
|
|
1832
1832
|
function parseWeekNumberMonday(e, t, n) {
|
|
1833
|
-
var r =
|
|
1833
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1834
1834
|
return r ? (e.W = +r[0], n + r[0].length) : -1;
|
|
1835
1835
|
}
|
|
1836
1836
|
function parseFullYear(e, t, n) {
|
|
1837
|
-
var r =
|
|
1837
|
+
var r = B.exec(t.slice(n, n + 4));
|
|
1838
1838
|
return r ? (e.y = +r[0], n + r[0].length) : -1;
|
|
1839
1839
|
}
|
|
1840
1840
|
function parseYear(e, t, n) {
|
|
1841
|
-
var r =
|
|
1841
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1842
1842
|
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
|
|
1843
1843
|
}
|
|
1844
1844
|
function parseZone(e, t, n) {
|
|
@@ -1846,51 +1846,51 @@ function parseZone(e, t, n) {
|
|
|
1846
1846
|
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
|
|
1847
1847
|
}
|
|
1848
1848
|
function parseQuarter(e, t, n) {
|
|
1849
|
-
var r =
|
|
1849
|
+
var r = B.exec(t.slice(n, n + 1));
|
|
1850
1850
|
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
|
|
1851
1851
|
}
|
|
1852
1852
|
function parseMonthNumber(e, t, n) {
|
|
1853
|
-
var r =
|
|
1853
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1854
1854
|
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
|
|
1855
1855
|
}
|
|
1856
1856
|
function parseDayOfMonth(e, t, n) {
|
|
1857
|
-
var r =
|
|
1857
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1858
1858
|
return r ? (e.d = +r[0], n + r[0].length) : -1;
|
|
1859
1859
|
}
|
|
1860
1860
|
function parseDayOfYear(e, t, n) {
|
|
1861
|
-
var r =
|
|
1861
|
+
var r = B.exec(t.slice(n, n + 3));
|
|
1862
1862
|
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
|
|
1863
1863
|
}
|
|
1864
1864
|
function parseHour24(e, t, n) {
|
|
1865
|
-
var r =
|
|
1865
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1866
1866
|
return r ? (e.H = +r[0], n + r[0].length) : -1;
|
|
1867
1867
|
}
|
|
1868
1868
|
function parseMinutes(e, t, n) {
|
|
1869
|
-
var r =
|
|
1869
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1870
1870
|
return r ? (e.M = +r[0], n + r[0].length) : -1;
|
|
1871
1871
|
}
|
|
1872
1872
|
function parseSeconds(e, t, n) {
|
|
1873
|
-
var r =
|
|
1873
|
+
var r = B.exec(t.slice(n, n + 2));
|
|
1874
1874
|
return r ? (e.S = +r[0], n + r[0].length) : -1;
|
|
1875
1875
|
}
|
|
1876
1876
|
function parseMilliseconds(e, t, n) {
|
|
1877
|
-
var r =
|
|
1877
|
+
var r = B.exec(t.slice(n, n + 3));
|
|
1878
1878
|
return r ? (e.L = +r[0], n + r[0].length) : -1;
|
|
1879
1879
|
}
|
|
1880
1880
|
function parseMicroseconds(e, t, n) {
|
|
1881
|
-
var r =
|
|
1881
|
+
var r = B.exec(t.slice(n, n + 6));
|
|
1882
1882
|
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
|
|
1883
1883
|
}
|
|
1884
1884
|
function parseLiteralPercent(e, t, n) {
|
|
1885
|
-
var r =
|
|
1885
|
+
var r = Le.exec(t.slice(n, n + 1));
|
|
1886
1886
|
return r ? n + r[0].length : -1;
|
|
1887
1887
|
}
|
|
1888
1888
|
function parseUnixTimestamp(e, t, n) {
|
|
1889
|
-
var r =
|
|
1889
|
+
var r = B.exec(t.slice(n));
|
|
1890
1890
|
return r ? (e.Q = +r[0], n + r[0].length) : -1;
|
|
1891
1891
|
}
|
|
1892
1892
|
function parseUnixTimestampSeconds(e, t, n) {
|
|
1893
|
-
var r =
|
|
1893
|
+
var r = B.exec(t.slice(n));
|
|
1894
1894
|
return r ? (e.s = +r[0], n + r[0].length) : -1;
|
|
1895
1895
|
}
|
|
1896
1896
|
function formatDayOfMonth(e, t) {
|
|
@@ -1903,7 +1903,7 @@ function formatHour12(e, t) {
|
|
|
1903
1903
|
return pad(e.getHours() % 12 || 12, t, 2);
|
|
1904
1904
|
}
|
|
1905
1905
|
function formatDayOfYear(e, t) {
|
|
1906
|
-
return pad(1 +
|
|
1906
|
+
return pad(1 + we.count(I(e), e), t, 3);
|
|
1907
1907
|
}
|
|
1908
1908
|
function formatMilliseconds(e, t) {
|
|
1909
1909
|
return pad(e.getMilliseconds(), t, 3);
|
|
@@ -1967,7 +1967,7 @@ function formatUTCHour12(e, t) {
|
|
|
1967
1967
|
return pad(e.getUTCHours() % 12 || 12, t, 2);
|
|
1968
1968
|
}
|
|
1969
1969
|
function formatUTCDayOfYear(e, t) {
|
|
1970
|
-
return pad(1 +
|
|
1970
|
+
return pad(1 + Ae.count(z(e), e), t, 3);
|
|
1971
1971
|
}
|
|
1972
1972
|
function formatUTCMilliseconds(e, t) {
|
|
1973
1973
|
return pad(e.getUTCMilliseconds(), t, 3);
|
|
@@ -1989,20 +1989,20 @@ function formatUTCWeekdayNumberMonday(e) {
|
|
|
1989
1989
|
return t === 0 ? 7 : t;
|
|
1990
1990
|
}
|
|
1991
1991
|
function formatUTCWeekNumberSunday(e, t) {
|
|
1992
|
-
return pad(
|
|
1992
|
+
return pad(je.count(z(e) - 1, e), t, 2);
|
|
1993
1993
|
}
|
|
1994
1994
|
function UTCdISO(e) {
|
|
1995
1995
|
var t = e.getUTCDay();
|
|
1996
|
-
return t >= 4 || t === 0 ?
|
|
1996
|
+
return t >= 4 || t === 0 ? R(e) : R.ceil(e);
|
|
1997
1997
|
}
|
|
1998
1998
|
function formatUTCWeekNumberISO(e, t) {
|
|
1999
|
-
return e = UTCdISO(e), pad(
|
|
1999
|
+
return e = UTCdISO(e), pad(R.count(z(e), e) + (z(e).getUTCDay() === 4), t, 2);
|
|
2000
2000
|
}
|
|
2001
2001
|
function formatUTCWeekdayNumberSunday(e) {
|
|
2002
2002
|
return e.getUTCDay();
|
|
2003
2003
|
}
|
|
2004
2004
|
function formatUTCWeekNumberMonday(e, t) {
|
|
2005
|
-
return pad(
|
|
2005
|
+
return pad(L.count(z(e) - 1, e), t, 2);
|
|
2006
2006
|
}
|
|
2007
2007
|
function formatUTCYear(e, t) {
|
|
2008
2008
|
return pad(e.getUTCFullYear() % 100, t, 2);
|
|
@@ -2015,7 +2015,7 @@ function formatUTCFullYear(e, t) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
function formatUTCFullYearISO(e, t) {
|
|
2017
2017
|
var n = e.getUTCDay();
|
|
2018
|
-
return e = n >= 4 || n === 0 ?
|
|
2018
|
+
return e = n >= 4 || n === 0 ? R(e) : R.ceil(e), pad(e.getUTCFullYear() % 1e4, t, 4);
|
|
2019
2019
|
}
|
|
2020
2020
|
function formatUTCZone() {
|
|
2021
2021
|
return "+0000";
|
|
@@ -2031,7 +2031,7 @@ function formatUnixTimestampSeconds(e) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
//#endregion
|
|
2033
2033
|
//#region ../../node_modules/d3-time-format/src/defaultLocale.js
|
|
2034
|
-
var
|
|
2034
|
+
var V, ze, Be, Ve;
|
|
2035
2035
|
defaultLocale$1({
|
|
2036
2036
|
dateTime: "%x, %X",
|
|
2037
2037
|
date: "%-m/%-d/%Y",
|
|
@@ -2085,19 +2085,19 @@ defaultLocale$1({
|
|
|
2085
2085
|
]
|
|
2086
2086
|
});
|
|
2087
2087
|
function defaultLocale$1(e) {
|
|
2088
|
-
return
|
|
2088
|
+
return V = formatLocale(e), V.format, ze = V.parse, Be = V.utcFormat, Ve = V.utcParse, V;
|
|
2089
2089
|
}
|
|
2090
2090
|
__name(defaultLocale$1, "defaultLocale");
|
|
2091
2091
|
//#endregion
|
|
2092
2092
|
//#region src/services/wsdl/WsSMC/v1.29/WsSMC.ts
|
|
2093
|
-
var
|
|
2093
|
+
var He;
|
|
2094
2094
|
(function(e) {
|
|
2095
2095
|
e.LockModes = /* @__PURE__ */ function(e) {
|
|
2096
2096
|
return e.ALL = "ALL", e.READ = "READ", e.WRITE = "WRITE", e.HOLD = "HOLD", e.SUB = "SUB", e;
|
|
2097
2097
|
}({}), e.RoxieControlCmdType = /* @__PURE__ */ function(e) {
|
|
2098
2098
|
return e.Attach = "Attach", e.Detach = "Detach", e.State = "State", e.Reload = "Reload", e.ReloadRetry = "ReloadRetry", e.MemLock = "MemLock", e.MemUnlock = "MemUnlock", e.GetMemLocked = "GetMemLocked", e;
|
|
2099
2099
|
}({});
|
|
2100
|
-
})(
|
|
2100
|
+
})(He ||= {});
|
|
2101
2101
|
var SMCServiceBase = class extends Service {
|
|
2102
2102
|
constructor(e) {
|
|
2103
2103
|
super(e, "WsSMC", "1.29");
|
|
@@ -2174,7 +2174,7 @@ var SMCServiceBase = class extends Service {
|
|
|
2174
2174
|
StopQueue(e) {
|
|
2175
2175
|
return this._connection.send("StopQueue", e, "json", !1, void 0, "SMCQueueResponse");
|
|
2176
2176
|
}
|
|
2177
|
-
},
|
|
2177
|
+
}, Ue = ze("%Y%m%d%H");
|
|
2178
2178
|
function isNumeric(e) {
|
|
2179
2179
|
return typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(+e);
|
|
2180
2180
|
}
|
|
@@ -2189,7 +2189,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2189
2189
|
}));
|
|
2190
2190
|
}
|
|
2191
2191
|
parseGlobalMetric(e, t) {
|
|
2192
|
-
return e.startsWith("Cost") ? t / 1e6 : e.startsWith("Date") ?
|
|
2192
|
+
return e.startsWith("Cost") ? t / 1e6 : e.startsWith("Date") ? Ue(t) : e.startsWith("Num") ? +t : e.startsWith("Time") ? t / 1e9 : e.startsWith("When") ? (/* @__PURE__ */ new Date(t / 1e3)).toISOString() : isNumeric(t) ? +t : t;
|
|
2193
2193
|
}
|
|
2194
2194
|
GetNormalisedGlobalMetrics(e) {
|
|
2195
2195
|
return super.GetGlobalMetrics(e).then((e) => {
|
|
@@ -2265,7 +2265,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2265
2265
|
throw e;
|
|
2266
2266
|
});
|
|
2267
2267
|
}
|
|
2268
|
-
},
|
|
2268
|
+
}, We;
|
|
2269
2269
|
(function(e) {
|
|
2270
2270
|
e.TpConfigResponseFormat = /* @__PURE__ */ function(e) {
|
|
2271
2271
|
return e.XML = "XML", e.YAML = "YAML", e;
|
|
@@ -2274,7 +2274,7 @@ var SMCService = class extends SMCServiceBase {
|
|
|
2274
2274
|
}({}), e.TpMachineType = /* @__PURE__ */ function(e) {
|
|
2275
2275
|
return e.ALLNODES = "ALLNODES", e.THORMACHINES = "THORMACHINES", e.HOLEMACHINES = "HOLEMACHINES", e.ROXIEMACHINES = "ROXIEMACHINES", e.MACHINES = "MACHINES", e.AVAILABLEMACHINES = "AVAILABLEMACHINES", e.DROPZONE = "DROPZONE", e.STANDBYNNODE = "STANDBYNNODE", e.THORSPARENODES = "THORSPARENODES", e.HOLESTANDBYNODES = "HOLESTANDBYNODES", e;
|
|
2276
2276
|
}({});
|
|
2277
|
-
})(
|
|
2277
|
+
})(We ||= {});
|
|
2278
2278
|
var TopologyServiceBase = class extends Service {
|
|
2279
2279
|
constructor(e) {
|
|
2280
2280
|
super(e, "WsTopology", "1.33");
|
|
@@ -2365,7 +2365,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2365
2365
|
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor" ? (t = e, !0) : !1)), t || n;
|
|
2366
2366
|
});
|
|
2367
2367
|
}
|
|
2368
|
-
},
|
|
2368
|
+
}, H;
|
|
2369
2369
|
(function(e) {
|
|
2370
2370
|
e.ECLWUActions = /* @__PURE__ */ function(e) {
|
|
2371
2371
|
return e.Abort = "Abort", e.Delete = "Delete", e.Deschedule = "Deschedule", e.Reschedule = "Reschedule", e.Pause = "Pause", e.PauseNow = "PauseNow", e.Protect = "Protect", e.Unprotect = "Unprotect", e.Restore = "Restore", e.Resume = "Resume", e.SetToFailed = "SetToFailed", e.Archive = "Archive", e;
|
|
@@ -2404,7 +2404,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2404
2404
|
}({}), e.WUQueryActivationMode = /* @__PURE__ */ function(e) {
|
|
2405
2405
|
return e[e.DoNotActivateQuery = 0] = "DoNotActivateQuery", e[e.ActivateQuery = 1] = "ActivateQuery", e[e.ActivateQuerySuspendPrevious = 2] = "ActivateQuerySuspendPrevious", e[e.ActivateQueryDeletePrevious = 3] = "ActivateQueryDeletePrevious", e;
|
|
2406
2406
|
}({});
|
|
2407
|
-
})(
|
|
2407
|
+
})(H ||= {});
|
|
2408
2408
|
var WorkunitsServiceBase = class extends Service {
|
|
2409
2409
|
constructor(e) {
|
|
2410
2410
|
super(e, "WsWorkunits", "2.10");
|
|
@@ -2655,14 +2655,14 @@ var WorkunitsServiceBase = class extends Service {
|
|
|
2655
2655
|
WUWaitComplete(e, t) {
|
|
2656
2656
|
return this._connection.send("WUWaitComplete", e, "json", !1, t, "WUWaitResponse");
|
|
2657
2657
|
}
|
|
2658
|
-
},
|
|
2658
|
+
}, U = /* @__PURE__ */ function(e) {
|
|
2659
2659
|
return e[e.Unknown = 0] = "Unknown", e[e.Compiled = 1] = "Compiled", e[e.Running = 2] = "Running", e[e.Completed = 3] = "Completed", e[e.Failed = 4] = "Failed", e[e.Archived = 5] = "Archived", e[e.Aborting = 6] = "Aborting", e[e.Aborted = 7] = "Aborted", e[e.Blocked = 8] = "Blocked", e[e.Submitted = 9] = "Submitted", e[e.Scheduled = 10] = "Scheduled", e[e.Compiling = 11] = "Compiling", e[e.Wait = 12] = "Wait", e[e.UploadingFiled = 13] = "UploadingFiled", e[e.DebugPaused = 14] = "DebugPaused", e[e.DebugRunning = 15] = "DebugRunning", e[e.Paused = 16] = "Paused", e[e.LAST = 17] = "LAST", e[e.NotFound = 999] = "NotFound", e;
|
|
2660
|
-
}({}),
|
|
2660
|
+
}({}), W;
|
|
2661
2661
|
(function(e) {
|
|
2662
2662
|
e.Action = /* @__PURE__ */ function(e) {
|
|
2663
2663
|
return e[e.Unknown = 0] = "Unknown", e[e.Compile = 1] = "Compile", e[e.Check = 2] = "Check", e[e.Run = 3] = "Run", e[e.ExecuteExisting = 4] = "ExecuteExisting", e[e.Pause = 5] = "Pause", e[e.PauseNow = 6] = "PauseNow", e[e.Resume = 7] = "Resume", e[e.Debug = 8] = "Debug", e[e.__size = 9] = "__size", e;
|
|
2664
2664
|
}({});
|
|
2665
|
-
})(
|
|
2665
|
+
})(W ||= {});
|
|
2666
2666
|
function isECLResult(e) {
|
|
2667
2667
|
return typeof e.Name == "string";
|
|
2668
2668
|
}
|
|
@@ -2779,9 +2779,9 @@ function formatNumerals_default(e) {
|
|
|
2779
2779
|
__name(formatNumerals_default, "default");
|
|
2780
2780
|
//#endregion
|
|
2781
2781
|
//#region ../../node_modules/d3-format/src/formatSpecifier.js
|
|
2782
|
-
var
|
|
2782
|
+
var Ge = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
2783
2783
|
function formatSpecifier(e) {
|
|
2784
|
-
if (!(t =
|
|
2784
|
+
if (!(t = Ge.exec(e))) throw Error("invalid format: " + e);
|
|
2785
2785
|
var t;
|
|
2786
2786
|
return new FormatSpecifier({
|
|
2787
2787
|
fill: t[1],
|
|
@@ -2823,11 +2823,11 @@ function formatTrim_default(e) {
|
|
|
2823
2823
|
__name(formatTrim_default, "default");
|
|
2824
2824
|
//#endregion
|
|
2825
2825
|
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
|
|
2826
|
-
var
|
|
2826
|
+
var Ke;
|
|
2827
2827
|
function formatPrefixAuto_default(e, t) {
|
|
2828
2828
|
var n = formatDecimalParts(e, t);
|
|
2829
2829
|
if (!n) return e + "";
|
|
2830
|
-
var r = n[0], i = n[1], a = i - (
|
|
2830
|
+
var r = n[0], i = n[1], a = i - (Ke = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
2831
2831
|
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + formatDecimalParts(e, Math.max(0, t + a - 1))[0];
|
|
2832
2832
|
}
|
|
2833
2833
|
__name(formatPrefixAuto_default, "default");
|
|
@@ -2842,7 +2842,7 @@ function formatRounded_default(e, t) {
|
|
|
2842
2842
|
__name(formatRounded_default, "default");
|
|
2843
2843
|
//#endregion
|
|
2844
2844
|
//#region ../../node_modules/d3-format/src/formatTypes.js
|
|
2845
|
-
var
|
|
2845
|
+
var qe = {
|
|
2846
2846
|
"%": function(e, t) {
|
|
2847
2847
|
return (e * 100).toFixed(t);
|
|
2848
2848
|
},
|
|
@@ -2885,7 +2885,7 @@ function identity_default(e) {
|
|
|
2885
2885
|
__name(identity_default, "default");
|
|
2886
2886
|
//#endregion
|
|
2887
2887
|
//#region ../../node_modules/d3-format/src/locale.js
|
|
2888
|
-
var
|
|
2888
|
+
var Je = Array.prototype.map, Ye = [
|
|
2889
2889
|
"y",
|
|
2890
2890
|
"z",
|
|
2891
2891
|
"a",
|
|
@@ -2905,12 +2905,12 @@ var qe = Array.prototype.map, Je = [
|
|
|
2905
2905
|
"Y"
|
|
2906
2906
|
];
|
|
2907
2907
|
function locale_default(e) {
|
|
2908
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ? identity_default : formatGroup_default(
|
|
2908
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? identity_default : formatGroup_default(Je.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? identity_default : formatNumerals_default(Je.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "-" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
2909
2909
|
function newFormat(e) {
|
|
2910
2910
|
e = formatSpecifier(e);
|
|
2911
2911
|
var l = e.fill, u = e.align, d = e.sign, f = e.symbol, p = e.zero, m = e.width, h = e.comma, g = e.precision, _ = e.trim, v = e.type;
|
|
2912
|
-
v === "n" ? (h = !0, v = "g") :
|
|
2913
|
-
var y = f === "$" ? n : f === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", b = f === "$" ? r : /[%p]/.test(v) ? o : "", x =
|
|
2912
|
+
v === "n" ? (h = !0, v = "g") : qe[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (p || l === "0" && u === "=") && (p = !0, l = "0", u = "=");
|
|
2913
|
+
var y = f === "$" ? n : f === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", b = f === "$" ? r : /[%p]/.test(v) ? o : "", x = qe[v], ee = /[defgprs%]/.test(v);
|
|
2914
2914
|
g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
|
|
2915
2915
|
function format(e) {
|
|
2916
2916
|
var n = y, r = b, o, f, S;
|
|
@@ -2918,7 +2918,7 @@ function locale_default(e) {
|
|
|
2918
2918
|
else {
|
|
2919
2919
|
e = +e;
|
|
2920
2920
|
var C = e < 0 || 1 / e < 0;
|
|
2921
|
-
if (e = isNaN(e) ? c : x(Math.abs(e), g), _ && (e = formatTrim_default(e)), C && +e == 0 && d !== "+" && (C = !1), n = (C ? d === "(" ? d : s : d === "-" || d === "(" ? "" : d) + n, r = (v === "s" ?
|
|
2921
|
+
if (e = isNaN(e) ? c : x(Math.abs(e), g), _ && (e = formatTrim_default(e)), C && +e == 0 && d !== "+" && (C = !1), n = (C ? d === "(" ? d : s : d === "-" || d === "(" ? "" : d) + n, r = (v === "s" ? Ye[8 + Ke / 3] : "") + r + (C && d === "(" ? ")" : ""), ee) {
|
|
2922
2922
|
for (o = -1, f = e.length; ++o < f;) if (S = e.charCodeAt(o), 48 > S || S > 57) {
|
|
2923
2923
|
r = (S === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
2924
2924
|
break;
|
|
@@ -2948,7 +2948,7 @@ function locale_default(e) {
|
|
|
2948
2948
|
}, format;
|
|
2949
2949
|
}
|
|
2950
2950
|
function formatPrefix(e, t) {
|
|
2951
|
-
var n = newFormat((e = formatSpecifier(e), e.type = "f", e)), r = Math.max(-8, Math.min(8, Math.floor(exponent_default(t) / 3))) * 3, i = 10 ** -r, a =
|
|
2951
|
+
var n = newFormat((e = formatSpecifier(e), e.type = "f", e)), r = Math.max(-8, Math.min(8, Math.floor(exponent_default(t) / 3))) * 3, i = 10 ** -r, a = Ye[8 + r / 3];
|
|
2952
2952
|
return function(e) {
|
|
2953
2953
|
return n(i * e) + a;
|
|
2954
2954
|
};
|
|
@@ -2961,7 +2961,7 @@ function locale_default(e) {
|
|
|
2961
2961
|
__name(locale_default, "default");
|
|
2962
2962
|
//#endregion
|
|
2963
2963
|
//#region ../../node_modules/d3-format/src/defaultLocale.js
|
|
2964
|
-
var
|
|
2964
|
+
var G, Xe;
|
|
2965
2965
|
defaultLocale({
|
|
2966
2966
|
decimal: ".",
|
|
2967
2967
|
thousands: ",",
|
|
@@ -2970,7 +2970,7 @@ defaultLocale({
|
|
|
2970
2970
|
minus: "-"
|
|
2971
2971
|
});
|
|
2972
2972
|
function defaultLocale(e) {
|
|
2973
|
-
return
|
|
2973
|
+
return G = locale_default(e), Xe = G.format, G.formatPrefix, G;
|
|
2974
2974
|
}
|
|
2975
2975
|
//#endregion
|
|
2976
2976
|
//#region src/ecl/graph.ts
|
|
@@ -3308,7 +3308,7 @@ var GlobalResultCache = class extends e {
|
|
|
3308
3308
|
constructor() {
|
|
3309
3309
|
super((e) => `${e.BaseUrl}-${e.Wuid}-${e.ResultName}`);
|
|
3310
3310
|
}
|
|
3311
|
-
},
|
|
3311
|
+
}, K = new GlobalResultCache(), Ze = class Result extends s {
|
|
3312
3312
|
connection;
|
|
3313
3313
|
_bypassCache = !1;
|
|
3314
3314
|
get BaseUrl() {
|
|
@@ -3368,22 +3368,22 @@ var GlobalResultCache = class extends e {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
static attach(e, t, n, r) {
|
|
3370
3370
|
let i;
|
|
3371
|
-
return Array.isArray(r) ? (i =
|
|
3371
|
+
return Array.isArray(r) ? (i = K.get({
|
|
3372
3372
|
BaseUrl: e.baseUrl,
|
|
3373
3373
|
Wuid: t,
|
|
3374
3374
|
ResultName: n.Name
|
|
3375
|
-
}, () => new Result(e, t, n, r)), i.set(n)) : r === void 0 && (typeof n == "number" ? i =
|
|
3375
|
+
}, () => new Result(e, t, n, r)), i.set(n)) : r === void 0 && (typeof n == "number" ? i = K.get({
|
|
3376
3376
|
BaseUrl: e.baseUrl,
|
|
3377
3377
|
Wuid: t,
|
|
3378
3378
|
ResultName: "Sequence_" + n
|
|
3379
|
-
}, () => new Result(e, t, n)) : typeof n == "string" && (i =
|
|
3379
|
+
}, () => new Result(e, t, n)) : typeof n == "string" && (i = K.get({
|
|
3380
3380
|
BaseUrl: e.baseUrl,
|
|
3381
3381
|
Wuid: t,
|
|
3382
3382
|
ResultName: n
|
|
3383
3383
|
}, () => new Result(e, t, n)))), i;
|
|
3384
3384
|
}
|
|
3385
3385
|
static attachLogicalFile(e, t, n) {
|
|
3386
|
-
return
|
|
3386
|
+
return K.get({
|
|
3387
3387
|
BaseUrl: e.baseUrl,
|
|
3388
3388
|
Wuid: t,
|
|
3389
3389
|
ResultName: n
|
|
@@ -3653,24 +3653,24 @@ var GlobalResultCache = class extends e {
|
|
|
3653
3653
|
...n
|
|
3654
3654
|
});
|
|
3655
3655
|
}
|
|
3656
|
-
},
|
|
3656
|
+
}, Qe = Be("%Y-%m-%dT%H:%M:%S.%LZ"), $e = Ve("%Y-%m-%dT%H:%M:%S.%LZ"), et = Xe(",");
|
|
3657
3657
|
function formatNum(e) {
|
|
3658
|
-
return e && !isNaN(+e) ?
|
|
3658
|
+
return e && !isNaN(+e) ? et(+e) : e;
|
|
3659
3659
|
}
|
|
3660
|
-
var
|
|
3660
|
+
var tt = "DefinitionList", nt = /([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/, rt = [
|
|
3661
3661
|
"Avg",
|
|
3662
3662
|
"Min",
|
|
3663
3663
|
"Max",
|
|
3664
3664
|
"Delta",
|
|
3665
3665
|
"StdDev"
|
|
3666
|
-
],
|
|
3666
|
+
], it = [
|
|
3667
3667
|
"SkewMin",
|
|
3668
3668
|
"SkewMax",
|
|
3669
3669
|
"NodeMin",
|
|
3670
3670
|
"NodeMax"
|
|
3671
|
-
],
|
|
3671
|
+
], at = /[A-Z][a-z]*/g;
|
|
3672
3672
|
function _splitMetric(e) {
|
|
3673
|
-
for (let t of
|
|
3673
|
+
for (let t of it) {
|
|
3674
3674
|
let n = e.indexOf(t);
|
|
3675
3675
|
if (n === 0) return {
|
|
3676
3676
|
measure: "",
|
|
@@ -3678,10 +3678,10 @@ function _splitMetric(e) {
|
|
|
3678
3678
|
label: e.slice(n + t.length)
|
|
3679
3679
|
};
|
|
3680
3680
|
}
|
|
3681
|
-
let t = e.match(
|
|
3681
|
+
let t = e.match(at);
|
|
3682
3682
|
if (t?.length) {
|
|
3683
3683
|
let e = t.shift(), n = t.join("");
|
|
3684
|
-
for (let t of
|
|
3684
|
+
for (let t of rt) {
|
|
3685
3685
|
let r = n.indexOf(t);
|
|
3686
3686
|
if (r === 0) return n = n.slice(r + t.length), {
|
|
3687
3687
|
measure: e,
|
|
@@ -3701,10 +3701,10 @@ function _splitMetric(e) {
|
|
|
3701
3701
|
label: e
|
|
3702
3702
|
};
|
|
3703
3703
|
}
|
|
3704
|
-
var
|
|
3704
|
+
var ot = {};
|
|
3705
3705
|
function splitMetric(e) {
|
|
3706
|
-
let t =
|
|
3707
|
-
return t || (t = _splitMetric(e),
|
|
3706
|
+
let t = ot[e];
|
|
3707
|
+
return t || (t = _splitMetric(e), ot[e] = t), t;
|
|
3708
3708
|
}
|
|
3709
3709
|
function formatValue(e, t) {
|
|
3710
3710
|
return e.__formattedProps?.[t] ?? e[t];
|
|
@@ -3736,11 +3736,11 @@ function formatValues(e, t, n) {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
return null;
|
|
3738
3738
|
}
|
|
3739
|
-
var
|
|
3739
|
+
var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
3740
3740
|
constructor() {
|
|
3741
3741
|
super((e) => `${e.BaseUrl}-${e.Wuid}`);
|
|
3742
3742
|
}
|
|
3743
|
-
},
|
|
3743
|
+
}, J = new WorkunitCache(), st = class Workunit extends s {
|
|
3744
3744
|
connection;
|
|
3745
3745
|
topologyConnection;
|
|
3746
3746
|
get BaseUrl() {
|
|
@@ -3771,10 +3771,10 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
3771
3771
|
return this.get("ActionEx", "");
|
|
3772
3772
|
}
|
|
3773
3773
|
get StateID() {
|
|
3774
|
-
return this.get("StateID",
|
|
3774
|
+
return this.get("StateID", U.Unknown);
|
|
3775
3775
|
}
|
|
3776
3776
|
get State() {
|
|
3777
|
-
return this.get("State") ||
|
|
3777
|
+
return this.get("State") || U[this.StateID];
|
|
3778
3778
|
}
|
|
3779
3779
|
get Protected() {
|
|
3780
3780
|
return this.get("Protected", !1);
|
|
@@ -3793,7 +3793,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
3793
3793
|
return this.get("Results", { ECLResult: [] });
|
|
3794
3794
|
}
|
|
3795
3795
|
get CResults() {
|
|
3796
|
-
return this.Results.ECLResult.map((e) => this._resultCache.get(e, () =>
|
|
3796
|
+
return this.Results.ECLResult.map((e) => this._resultCache.get(e, () => Ze.attach(this.connection, this.Wuid, e, this.ResultViews.View)));
|
|
3797
3797
|
}
|
|
3798
3798
|
get SequenceResults() {
|
|
3799
3799
|
let e = {};
|
|
@@ -4026,23 +4026,23 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
static create(e) {
|
|
4028
4028
|
let t = new Workunit(e);
|
|
4029
|
-
return t.connection.WUCreate().then((e) => (
|
|
4029
|
+
return t.connection.WUCreate().then((e) => (J.set(t), t.set(e.Workunit), t));
|
|
4030
4030
|
}
|
|
4031
4031
|
static attach(e, t, n) {
|
|
4032
|
-
let r =
|
|
4032
|
+
let r = J.get({
|
|
4033
4033
|
BaseUrl: e.baseUrl,
|
|
4034
4034
|
Wuid: t
|
|
4035
4035
|
}, () => new Workunit(e, t));
|
|
4036
4036
|
return n && r.set(n), r;
|
|
4037
4037
|
}
|
|
4038
4038
|
static existsLocal(e, t) {
|
|
4039
|
-
return
|
|
4039
|
+
return J.has({
|
|
4040
4040
|
BaseUrl: e,
|
|
4041
4041
|
Wuid: t
|
|
4042
4042
|
});
|
|
4043
4043
|
}
|
|
4044
4044
|
static submit(e, t, n, r = !1) {
|
|
4045
|
-
return Workunit.create(e).then((e) => e.update({ QueryText: n })).then((e) => r ? e.submit(t,
|
|
4045
|
+
return Workunit.create(e).then((e) => e.update({ QueryText: n })).then((e) => r ? e.submit(t, W.Action.Compile) : e.submit(t));
|
|
4046
4046
|
}
|
|
4047
4047
|
static compile(e, t, n) {
|
|
4048
4048
|
return Workunit.submit(e, t, n, !0);
|
|
@@ -4058,7 +4058,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4058
4058
|
clearState(e) {
|
|
4059
4059
|
this.clear({
|
|
4060
4060
|
Wuid: e,
|
|
4061
|
-
StateID:
|
|
4061
|
+
StateID: U.Unknown
|
|
4062
4062
|
});
|
|
4063
4063
|
}
|
|
4064
4064
|
update(e) {
|
|
@@ -4072,9 +4072,9 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4072
4072
|
ClusterOrig: this.Cluster
|
|
4073
4073
|
}).then((e) => (this.set(e.Workunit), this));
|
|
4074
4074
|
}
|
|
4075
|
-
submit(e, t =
|
|
4075
|
+
submit(e, t = W.Action.Run, n) {
|
|
4076
4076
|
let r;
|
|
4077
|
-
return r = e === void 0 ? this.topologyConnection.DefaultTpLogicalClusterQuery().then((e) => e.Name) : Promise.resolve(e), this._debugMode = !1, t ===
|
|
4077
|
+
return r = e === void 0 ? this.topologyConnection.DefaultTpLogicalClusterQuery().then((e) => e.Name) : Promise.resolve(e), this._debugMode = !1, t === W.Action.Debug && (t = W.Action.Run, this._debugMode = !0), r.then((e) => this.connection.WUUpdate({
|
|
4078
4078
|
Wuid: this.Wuid,
|
|
4079
4079
|
Action: t,
|
|
4080
4080
|
ResultLimit: n,
|
|
@@ -4089,89 +4089,95 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4089
4089
|
}
|
|
4090
4090
|
isComplete() {
|
|
4091
4091
|
switch (this.StateID) {
|
|
4092
|
-
case
|
|
4093
|
-
case
|
|
4094
|
-
case
|
|
4095
|
-
case
|
|
4096
|
-
case
|
|
4092
|
+
case U.Compiled: return this.ActionEx === "compile" || this._submitAction === W.Action.Compile;
|
|
4093
|
+
case U.Completed:
|
|
4094
|
+
case U.Failed:
|
|
4095
|
+
case U.Aborted:
|
|
4096
|
+
case U.NotFound: return !0;
|
|
4097
4097
|
default:
|
|
4098
4098
|
}
|
|
4099
4099
|
return !1;
|
|
4100
4100
|
}
|
|
4101
4101
|
isFailed() {
|
|
4102
4102
|
switch (this.StateID) {
|
|
4103
|
-
case
|
|
4104
|
-
case
|
|
4103
|
+
case U.Aborted:
|
|
4104
|
+
case U.Failed: return !0;
|
|
4105
4105
|
default:
|
|
4106
4106
|
}
|
|
4107
4107
|
return !1;
|
|
4108
4108
|
}
|
|
4109
4109
|
isDeleted() {
|
|
4110
4110
|
switch (this.StateID) {
|
|
4111
|
-
case
|
|
4111
|
+
case U.NotFound: return !0;
|
|
4112
4112
|
default:
|
|
4113
4113
|
}
|
|
4114
4114
|
return !1;
|
|
4115
4115
|
}
|
|
4116
4116
|
isDebugging() {
|
|
4117
4117
|
switch (this.StateID) {
|
|
4118
|
-
case
|
|
4119
|
-
case
|
|
4118
|
+
case U.DebugPaused:
|
|
4119
|
+
case U.DebugRunning: return !0;
|
|
4120
4120
|
default:
|
|
4121
4121
|
}
|
|
4122
4122
|
return this._debugMode;
|
|
4123
4123
|
}
|
|
4124
4124
|
isRunning() {
|
|
4125
4125
|
switch (this.StateID) {
|
|
4126
|
-
case
|
|
4127
|
-
case
|
|
4128
|
-
case
|
|
4129
|
-
case
|
|
4130
|
-
case
|
|
4131
|
-
case
|
|
4126
|
+
case U.Compiled:
|
|
4127
|
+
case U.Running:
|
|
4128
|
+
case U.Aborting:
|
|
4129
|
+
case U.Blocked:
|
|
4130
|
+
case U.DebugPaused:
|
|
4131
|
+
case U.DebugRunning: return !0;
|
|
4132
4132
|
default:
|
|
4133
4133
|
}
|
|
4134
4134
|
return !1;
|
|
4135
4135
|
}
|
|
4136
4136
|
setToFailed() {
|
|
4137
|
-
return this.WUAction(
|
|
4137
|
+
return this.WUAction(H.ECLWUActions.SetToFailed);
|
|
4138
4138
|
}
|
|
4139
4139
|
pause() {
|
|
4140
|
-
return this.WUAction(
|
|
4140
|
+
return this.WUAction(H.ECLWUActions.Pause);
|
|
4141
4141
|
}
|
|
4142
4142
|
pauseNow() {
|
|
4143
|
-
return this.WUAction(
|
|
4143
|
+
return this.WUAction(H.ECLWUActions.PauseNow);
|
|
4144
4144
|
}
|
|
4145
4145
|
resume() {
|
|
4146
|
-
return this.WUAction(
|
|
4146
|
+
return this.WUAction(H.ECLWUActions.Resume);
|
|
4147
4147
|
}
|
|
4148
4148
|
abort() {
|
|
4149
|
-
return this.WUAction(
|
|
4149
|
+
return this.WUAction(H.ECLWUActions.Abort);
|
|
4150
4150
|
}
|
|
4151
4151
|
protect() {
|
|
4152
|
-
return this.WUAction(
|
|
4152
|
+
return this.WUAction(H.ECLWUActions.Protect);
|
|
4153
4153
|
}
|
|
4154
4154
|
unprotect() {
|
|
4155
|
-
return this.WUAction(
|
|
4155
|
+
return this.WUAction(H.ECLWUActions.Unprotect);
|
|
4156
4156
|
}
|
|
4157
4157
|
delete() {
|
|
4158
|
-
return this.WUAction(
|
|
4158
|
+
return this.WUAction(H.ECLWUActions.Delete);
|
|
4159
4159
|
}
|
|
4160
4160
|
restore() {
|
|
4161
|
-
return this.WUAction(
|
|
4161
|
+
return this.WUAction(H.ECLWUActions.Restore);
|
|
4162
4162
|
}
|
|
4163
4163
|
deschedule() {
|
|
4164
|
-
return this.WUAction(
|
|
4164
|
+
return this.WUAction(H.ECLWUActions.Deschedule);
|
|
4165
4165
|
}
|
|
4166
4166
|
reschedule() {
|
|
4167
|
-
return this.WUAction(
|
|
4167
|
+
return this.WUAction(H.ECLWUActions.Reschedule);
|
|
4168
4168
|
}
|
|
4169
|
-
|
|
4169
|
+
recover() {
|
|
4170
4170
|
return this.WUResubmit({
|
|
4171
4171
|
CloneWorkunit: !1,
|
|
4172
4172
|
ResetWorkflow: !1
|
|
4173
4173
|
}).then(() => (this.clearState(this.Wuid), this.refresh().then(() => (this._monitor(), this))));
|
|
4174
4174
|
}
|
|
4175
|
+
resubmit() {
|
|
4176
|
+
return this.WUResubmit({
|
|
4177
|
+
CloneWorkunit: !1,
|
|
4178
|
+
ResetWorkflow: !0
|
|
4179
|
+
}).then(() => (this.clearState(this.Wuid), this.refresh().then(() => (this._monitor(), this))));
|
|
4180
|
+
}
|
|
4175
4181
|
clone() {
|
|
4176
4182
|
return this.WUResubmit({
|
|
4177
4183
|
CloneWorkunit: !0,
|
|
@@ -4179,7 +4185,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4179
4185
|
}).then((e) => Workunit.attach(this.connection.opts(), e.WUs.WU[0].WUID).refresh());
|
|
4180
4186
|
}
|
|
4181
4187
|
async refreshState() {
|
|
4182
|
-
return await this.WUQuery(), this.StateID ===
|
|
4188
|
+
return await this.WUQuery(), this.StateID === U.Compiled && !this.ActionEx && !this._submitAction && await this.refreshInfo(), this;
|
|
4183
4189
|
}
|
|
4184
4190
|
async refreshInfo(e) {
|
|
4185
4191
|
return await this.WUInfo(e), this;
|
|
@@ -4297,20 +4303,20 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4297
4303
|
__StdDevs: 0,
|
|
4298
4304
|
__StdDevsSource: "",
|
|
4299
4305
|
...o
|
|
4300
|
-
}, l = c[
|
|
4306
|
+
}, l = c[tt];
|
|
4301
4307
|
if (l) try {
|
|
4302
4308
|
let e = JSON.parse(l.split("\\").join("\\\\")), t = [];
|
|
4303
4309
|
for (let n = 0; n < e.length; n++) {
|
|
4304
|
-
let r = e[n].match(
|
|
4310
|
+
let r = e[n].match(nt);
|
|
4305
4311
|
r && t.push({
|
|
4306
4312
|
filePath: (r[1] ?? "") + r[2] + r[3],
|
|
4307
4313
|
line: parseInt(r[5], 10),
|
|
4308
4314
|
col: parseInt(r[6], 10)
|
|
4309
4315
|
});
|
|
4310
4316
|
}
|
|
4311
|
-
c[
|
|
4317
|
+
c[tt] = t;
|
|
4312
4318
|
} catch {
|
|
4313
|
-
|
|
4319
|
+
q.error(`Unexpected "DefinitionList": ${l}`);
|
|
4314
4320
|
}
|
|
4315
4321
|
let u = {}, d = 0, f = "";
|
|
4316
4322
|
for (let e in c) if (!e.startsWith("__")) {
|
|
@@ -4410,8 +4416,8 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4410
4416
|
for (let e in t) {
|
|
4411
4417
|
let r = t[e];
|
|
4412
4418
|
if (r.start && r.elapsed) {
|
|
4413
|
-
let e =
|
|
4414
|
-
e.setMilliseconds(e.getMilliseconds() + r.elapsed / 1e6), r.finish =
|
|
4419
|
+
let e = $e(r.start);
|
|
4420
|
+
e.setMilliseconds(e.getMilliseconds() + r.elapsed / 1e6), r.finish = Qe(e), n.push(r);
|
|
4415
4421
|
}
|
|
4416
4422
|
}
|
|
4417
4423
|
return n.sort((e, t) => e.start < t.start ? -1 : +(e.start > t.start)), n;
|
|
@@ -4466,13 +4472,13 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4466
4472
|
return this.connection.WUQuery({
|
|
4467
4473
|
...e,
|
|
4468
4474
|
Wuid: this.Wuid
|
|
4469
|
-
}).then((e) => (e.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID",
|
|
4470
|
-
if (!e.Exception.some((e) => e.Code === 20081 ? (this.clearState(this.Wuid), this.set("StateID",
|
|
4475
|
+
}).then((e) => (e.Workunits.ECLWorkunit.length === 0 ? (this.clearState(this.Wuid), this.set("StateID", U.NotFound)) : this.set(e.Workunits.ECLWorkunit[0]), e)).catch((e) => {
|
|
4476
|
+
if (!e.Exception.some((e) => e.Code === 20081 ? (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0) : !1)) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4471
4477
|
return {};
|
|
4472
4478
|
});
|
|
4473
4479
|
}
|
|
4474
4480
|
WUCreate() {
|
|
4475
|
-
return this.connection.WUCreate().then((e) => (this.set(e.Workunit),
|
|
4481
|
+
return this.connection.WUCreate().then((e) => (this.set(e.Workunit), J.set(this), e));
|
|
4476
4482
|
}
|
|
4477
4483
|
WUInfo(e = {}) {
|
|
4478
4484
|
let t = e.IncludeResults || e.IncludeResultsViewNames;
|
|
@@ -4483,7 +4489,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4483
4489
|
IncludeResultsViewNames: t,
|
|
4484
4490
|
SuppressResultSchemas: !1
|
|
4485
4491
|
}).then((e) => (this.set(e.Workunit), t && this.set({ ResultViews: e.ResultViews }), e)).catch((e) => {
|
|
4486
|
-
if (!e.Exception.some((e) => e.Code === 20080 ? (this.clearState(this.Wuid), this.set("StateID",
|
|
4492
|
+
if (!e.Exception.some((e) => e.Code === 20080 ? (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0) : !1)) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4487
4493
|
return {};
|
|
4488
4494
|
});
|
|
4489
4495
|
}
|
|
@@ -4524,7 +4530,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4524
4530
|
Cluster: this.Cluster,
|
|
4525
4531
|
JobName: e || this.Jobname,
|
|
4526
4532
|
AllowForeignFiles: !0,
|
|
4527
|
-
Activate:
|
|
4533
|
+
Activate: H.WUQueryActivationMode.ActivateQuery,
|
|
4528
4534
|
Wait: 5e3
|
|
4529
4535
|
});
|
|
4530
4536
|
}
|
|
@@ -4552,7 +4558,7 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4552
4558
|
return this.isDebugging() ? this.WUCDebug(e, t).then((t) => {
|
|
4553
4559
|
let n = t.children(e);
|
|
4554
4560
|
return n.length ? n[0] : new u(e);
|
|
4555
|
-
}).catch((t) => (
|
|
4561
|
+
}).catch((t) => (q.error(t), Promise.resolve(new u(e)))) : Promise.resolve(new u(e));
|
|
4556
4562
|
}
|
|
4557
4563
|
debugStatus() {
|
|
4558
4564
|
return this.isDebugging() ? this.debug("status").then((e) => {
|
|
@@ -4611,12 +4617,12 @@ var J = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4611
4617
|
}), t;
|
|
4612
4618
|
}));
|
|
4613
4619
|
}
|
|
4614
|
-
},
|
|
4620
|
+
}, ct = "definition";
|
|
4615
4621
|
function hasECLDefinition(e) {
|
|
4616
|
-
return e._[
|
|
4622
|
+
return e._[ct] !== void 0;
|
|
4617
4623
|
}
|
|
4618
4624
|
function getECLDefinition(e) {
|
|
4619
|
-
let t = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[
|
|
4625
|
+
let t = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ct]);
|
|
4620
4626
|
if (t) {
|
|
4621
4627
|
let [, n, r, i] = t;
|
|
4622
4628
|
return n.replace(/\/\.\//g, "/"), {
|
|
@@ -4626,7 +4632,7 @@ function getECLDefinition(e) {
|
|
|
4626
4632
|
column: +i
|
|
4627
4633
|
};
|
|
4628
4634
|
}
|
|
4629
|
-
throw Error(`Bad definition: ${e._[
|
|
4635
|
+
throw Error(`Bad definition: ${e._[ct]}`);
|
|
4630
4636
|
}
|
|
4631
4637
|
function breakpointLocations(e, t) {
|
|
4632
4638
|
let n = [];
|
|
@@ -4638,7 +4644,7 @@ function breakpointLocations(e, t) {
|
|
|
4638
4644
|
}
|
|
4639
4645
|
//#endregion
|
|
4640
4646
|
//#region src/ecl/activity.ts
|
|
4641
|
-
var
|
|
4647
|
+
var lt, ut = class Activity extends s {
|
|
4642
4648
|
connection;
|
|
4643
4649
|
get properties() {
|
|
4644
4650
|
return this.get();
|
|
@@ -4707,13 +4713,13 @@ var X, ct = class Activity extends s {
|
|
|
4707
4713
|
return this.get("DaliDetached");
|
|
4708
4714
|
}
|
|
4709
4715
|
static attach(e, t) {
|
|
4710
|
-
return
|
|
4716
|
+
return lt ||= new Activity(e), t && lt.set(t), lt;
|
|
4711
4717
|
}
|
|
4712
4718
|
constructor(e) {
|
|
4713
4719
|
super(), e instanceof SMCService ? this.connection = e : this.connection = new SMCService(e), this.clear({});
|
|
4714
4720
|
}
|
|
4715
4721
|
runningWorkunits(e = "") {
|
|
4716
|
-
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) =>
|
|
4722
|
+
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) => st.attach(this.connection.connectionOptions(), e.Wuid, e));
|
|
4717
4723
|
}
|
|
4718
4724
|
setBanner(e) {
|
|
4719
4725
|
return this.connection.SetBanner({ ...e }).then((e) => (this.set(e), this));
|
|
@@ -4725,11 +4731,11 @@ var X, ct = class Activity extends s {
|
|
|
4725
4731
|
async refresh() {
|
|
4726
4732
|
return this.lazyRefresh();
|
|
4727
4733
|
}
|
|
4728
|
-
},
|
|
4734
|
+
}, dt = y("logicalFile.ts"), LogicalFileCache = class extends e {
|
|
4729
4735
|
constructor() {
|
|
4730
4736
|
super((e) => `${e.BaseUrl}-${e.Cluster}-${e.Name}`);
|
|
4731
4737
|
}
|
|
4732
|
-
},
|
|
4738
|
+
}, ft = new LogicalFileCache(), pt = class LogicalFile extends s {
|
|
4733
4739
|
connection;
|
|
4734
4740
|
get BaseUrl() {
|
|
4735
4741
|
return this.connection.baseUrl;
|
|
@@ -4906,7 +4912,7 @@ var X, ct = class Activity extends s {
|
|
|
4906
4912
|
return this.get();
|
|
4907
4913
|
}
|
|
4908
4914
|
static attach(e, t, n, r) {
|
|
4909
|
-
let i =
|
|
4915
|
+
let i = ft.get({
|
|
4910
4916
|
BaseUrl: e.baseUrl,
|
|
4911
4917
|
Cluster: t,
|
|
4912
4918
|
Name: n
|
|
@@ -4952,7 +4958,7 @@ var X, ct = class Activity extends s {
|
|
|
4952
4958
|
...e.FileDetail,
|
|
4953
4959
|
ProtectList: e?.FileDetail?.ProtectList ?? { DFUFileProtect: [] }
|
|
4954
4960
|
}), e.FileDetail)).catch((e) => {
|
|
4955
|
-
if (!e.Exception.some((e) => e.Code === 20038 ? (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0) : !1)) throw
|
|
4961
|
+
if (!e.Exception.some((e) => e.Code === 20038 ? (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0) : !1)) throw dt.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4956
4962
|
return {};
|
|
4957
4963
|
});
|
|
4958
4964
|
}
|
|
@@ -4975,7 +4981,7 @@ var X, ct = class Activity extends s {
|
|
|
4975
4981
|
constructor() {
|
|
4976
4982
|
super((e) => e.Address);
|
|
4977
4983
|
}
|
|
4978
|
-
},
|
|
4984
|
+
}, mt = new MachineCache(), ht = class Machine extends s {
|
|
4979
4985
|
connection;
|
|
4980
4986
|
get Address() {
|
|
4981
4987
|
return this.get("Address");
|
|
@@ -5050,7 +5056,7 @@ var X, ct = class Activity extends s {
|
|
|
5050
5056
|
return this.get("Exception");
|
|
5051
5057
|
}
|
|
5052
5058
|
static attach(e, t, n) {
|
|
5053
|
-
let r =
|
|
5059
|
+
let r = mt.get({ Address: t }, () => new Machine(e));
|
|
5054
5060
|
return n && r.set(n), r;
|
|
5055
5061
|
}
|
|
5056
5062
|
constructor(e) {
|
|
@@ -5060,7 +5066,7 @@ var X, ct = class Activity extends s {
|
|
|
5060
5066
|
constructor() {
|
|
5061
5067
|
super((e) => `${e.BaseUrl}-${e.Name}`);
|
|
5062
5068
|
}
|
|
5063
|
-
},
|
|
5069
|
+
}, gt = new TargetClusterCache(), Y = class TargetCluster extends s {
|
|
5064
5070
|
connection;
|
|
5065
5071
|
machineConnection;
|
|
5066
5072
|
get BaseUrl() {
|
|
@@ -5097,10 +5103,10 @@ var X, ct = class Activity extends s {
|
|
|
5097
5103
|
return this.get("MachineInfoEx", []);
|
|
5098
5104
|
}
|
|
5099
5105
|
get CMachineInfoEx() {
|
|
5100
|
-
return this.MachineInfoEx.map((e) =>
|
|
5106
|
+
return this.MachineInfoEx.map((e) => ht.attach(this.machineConnection, e.Address, e));
|
|
5101
5107
|
}
|
|
5102
5108
|
static attach(e, t, n) {
|
|
5103
|
-
let r =
|
|
5109
|
+
let r = gt.get({
|
|
5104
5110
|
BaseUrl: e.baseUrl,
|
|
5105
5111
|
Name: t
|
|
5106
5112
|
}, () => new TargetCluster(e, t));
|
|
@@ -5137,22 +5143,22 @@ var X, ct = class Activity extends s {
|
|
|
5137
5143
|
};
|
|
5138
5144
|
function targetClusters(e) {
|
|
5139
5145
|
let t;
|
|
5140
|
-
return t = e instanceof TopologyService ? e : new TopologyService(e), t.TpListTargetClusters({}).then((t) => t.TargetClusters.TpClusterNameType.map((t) =>
|
|
5146
|
+
return t = e instanceof TopologyService ? e : new TopologyService(e), t.TpListTargetClusters({}).then((t) => t.TargetClusters.TpClusterNameType.map((t) => Y.attach(e, t.Name, t)));
|
|
5141
5147
|
}
|
|
5142
|
-
var
|
|
5148
|
+
var _t = {};
|
|
5143
5149
|
function defaultTargetCluster(e) {
|
|
5144
|
-
if (!
|
|
5150
|
+
if (!_t[e.baseUrl]) {
|
|
5145
5151
|
let t;
|
|
5146
|
-
t = e instanceof TopologyService ? e : new TopologyService(e),
|
|
5152
|
+
t = e instanceof TopologyService ? e : new TopologyService(e), _t[e.baseUrl] = t.TpListTargetClusters({}).then((t) => {
|
|
5147
5153
|
let n, r, i;
|
|
5148
5154
|
t.TargetClusters.TpClusterNameType.forEach((e) => {
|
|
5149
5155
|
n ||= e, !r && e.IsDefault === !0 && (r = e), !i && e.Type === "hthor" && (i = e);
|
|
5150
5156
|
});
|
|
5151
5157
|
let a = r || i || n;
|
|
5152
|
-
return
|
|
5158
|
+
return Y.attach(e, a.Name, a);
|
|
5153
5159
|
});
|
|
5154
5160
|
}
|
|
5155
|
-
return
|
|
5161
|
+
return _t[e.baseUrl];
|
|
5156
5162
|
}
|
|
5157
5163
|
//#endregion
|
|
5158
5164
|
//#region src/ecl/topology.ts
|
|
@@ -5160,7 +5166,7 @@ var TopologyCache = class extends e {
|
|
|
5160
5166
|
constructor() {
|
|
5161
5167
|
super((e) => e.BaseUrl);
|
|
5162
5168
|
}
|
|
5163
|
-
},
|
|
5169
|
+
}, vt = new TopologyCache(), yt = class Topology extends s {
|
|
5164
5170
|
connection;
|
|
5165
5171
|
get BaseUrl() {
|
|
5166
5172
|
return this.connection.baseUrl;
|
|
@@ -5172,7 +5178,7 @@ var TopologyCache = class extends e {
|
|
|
5172
5178
|
return this.get("TargetClusters");
|
|
5173
5179
|
}
|
|
5174
5180
|
get CTargetClusters() {
|
|
5175
|
-
return this.TargetClusters.map((e) =>
|
|
5181
|
+
return this.TargetClusters.map((e) => Y.attach(this.connection, e.Name, e));
|
|
5176
5182
|
}
|
|
5177
5183
|
get LogicalClusters() {
|
|
5178
5184
|
return this.get("LogicalClusters");
|
|
@@ -5181,7 +5187,7 @@ var TopologyCache = class extends e {
|
|
|
5181
5187
|
return this.get("Services");
|
|
5182
5188
|
}
|
|
5183
5189
|
static attach(e, t) {
|
|
5184
|
-
let n =
|
|
5190
|
+
let n = vt.get({ BaseUrl: e.baseUrl }, () => new Topology(e));
|
|
5185
5191
|
return t && n.set(t), n;
|
|
5186
5192
|
}
|
|
5187
5193
|
constructor(e) {
|
|
@@ -5259,7 +5265,11 @@ function espSize2Bytes(e) {
|
|
|
5259
5265
|
function espSkew2Number(e) {
|
|
5260
5266
|
return e ? parseFloat(e) : 0;
|
|
5261
5267
|
}
|
|
5262
|
-
var
|
|
5268
|
+
var X = /* @__PURE__ */ function(e) {
|
|
5269
|
+
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.GRAPH = 1] = "GRAPH", e[e.SUBGRAPH = 2] = "SUBGRAPH", e[e.VERTEX = 3] = "VERTEX", e[e.EDGE = 4] = "EDGE", e[e.LAST = 5] = "LAST", e;
|
|
5270
|
+
}(X || {}), Z = /* @__PURE__ */ function(e) {
|
|
5271
|
+
return e.UNKNOWN = "Unknown", e.GRAPH = "Graph", e.SUBGRAPH = "Cluster", e.VERTEX = "Vertex", e.EDGE = "Edge", e.LAST = "Last", e;
|
|
5272
|
+
}(Z || {}), LocalisedXGMMLWriter = class {
|
|
5263
5273
|
graph;
|
|
5264
5274
|
m_xgmml;
|
|
5265
5275
|
m_visibleSubgraphs;
|
|
@@ -5500,7 +5510,7 @@ var LocalisedXGMMLWriter = class {
|
|
|
5500
5510
|
getTarget() {
|
|
5501
5511
|
return this.__hpcc_graph.idx[this._targetActivity || this.target];
|
|
5502
5512
|
}
|
|
5503
|
-
},
|
|
5513
|
+
}, bt = class QueryGraph {
|
|
5504
5514
|
idx = {};
|
|
5505
5515
|
subgraphs = [];
|
|
5506
5516
|
vertices = [];
|
|
@@ -5530,10 +5540,10 @@ var LocalisedXGMMLWriter = class {
|
|
|
5530
5540
|
return e instanceof Edge$1;
|
|
5531
5541
|
}
|
|
5532
5542
|
getGlobalType(e) {
|
|
5533
|
-
return e instanceof Vertex$1 ?
|
|
5543
|
+
return e instanceof Vertex$1 ? X.VERTEX : e instanceof Edge$1 ? X.EDGE : e instanceof Subgraph$1 ? X.SUBGRAPH : e instanceof QueryGraph ? X.GRAPH : X.UNKNOWN;
|
|
5534
5544
|
}
|
|
5535
5545
|
getGlobalTypeString(e) {
|
|
5536
|
-
return e instanceof Vertex$1 ?
|
|
5546
|
+
return e instanceof Vertex$1 ? Z.VERTEX : e instanceof Edge$1 ? Z.EDGE : e instanceof Subgraph$1 ? Z.SUBGRAPH : e instanceof QueryGraph ? Z.GRAPH : Z.UNKNOWN;
|
|
5537
5547
|
}
|
|
5538
5548
|
getItem(e, t) {
|
|
5539
5549
|
if (!this.idx[t]) switch (e.tagName) {
|
|
@@ -5636,7 +5646,7 @@ var LocalisedXGMMLWriter = class {
|
|
|
5636
5646
|
let i = new LocalisedXGMMLWriter(this);
|
|
5637
5647
|
return i.calcVisibility(e, t, n, r), i.writeXgmml(), "<graph>" + i.m_xgmml + "</graph>";
|
|
5638
5648
|
}
|
|
5639
|
-
},
|
|
5649
|
+
}, Q = y("@hpcc-js/comms/ecl/query.ts"), xt = Xe("~s");
|
|
5640
5650
|
function isNumber(e) {
|
|
5641
5651
|
return !isNaN(parseFloat(e)) && !isNaN(e - 0);
|
|
5642
5652
|
}
|
|
@@ -5644,7 +5654,7 @@ var QueryCache = class extends e {
|
|
|
5644
5654
|
constructor() {
|
|
5645
5655
|
super((t) => e.hash([t.QueryId, t.QuerySet]));
|
|
5646
5656
|
}
|
|
5647
|
-
},
|
|
5657
|
+
}, St = new QueryCache(), Ct = class Query extends s {
|
|
5648
5658
|
wsWorkunitsService;
|
|
5649
5659
|
get BaseUrl() {
|
|
5650
5660
|
return this.wsWorkunitsService.baseUrl;
|
|
@@ -5731,14 +5741,14 @@ var QueryCache = class extends e {
|
|
|
5731
5741
|
return this.get("PriorityID");
|
|
5732
5742
|
}
|
|
5733
5743
|
constructor(e, t, n, r) {
|
|
5734
|
-
super(), e instanceof WorkunitsService ? this.wsWorkunitsService = e : this.wsWorkunitsService = new WorkunitsService(e), this.topology =
|
|
5744
|
+
super(), e instanceof WorkunitsService ? this.wsWorkunitsService = e : this.wsWorkunitsService = new WorkunitsService(e), this.topology = yt.attach(this.wsWorkunitsService.opts()), this.set({
|
|
5735
5745
|
QuerySet: t,
|
|
5736
5746
|
QueryId: n,
|
|
5737
5747
|
...r
|
|
5738
5748
|
});
|
|
5739
5749
|
}
|
|
5740
5750
|
static attach(e, t, n, r) {
|
|
5741
|
-
let i =
|
|
5751
|
+
let i = St.get({
|
|
5742
5752
|
BaseUrl: e.baseUrl,
|
|
5743
5753
|
QuerySet: t,
|
|
5744
5754
|
QueryId: n
|
|
@@ -5767,7 +5777,7 @@ var QueryCache = class extends e {
|
|
|
5767
5777
|
try {
|
|
5768
5778
|
this._requestSchema = await e?.requestJson(this.QuerySet, this.QueryId) ?? [];
|
|
5769
5779
|
} catch (e) {
|
|
5770
|
-
|
|
5780
|
+
Q.debug(e.message ?? e), this._requestSchema = [];
|
|
5771
5781
|
}
|
|
5772
5782
|
}
|
|
5773
5783
|
async fetchResponseSchema() {
|
|
@@ -5775,7 +5785,7 @@ var QueryCache = class extends e {
|
|
|
5775
5785
|
try {
|
|
5776
5786
|
this._responseSchema = await e?.responseJson(this.QuerySet, this.QueryId) ?? {};
|
|
5777
5787
|
} catch (e) {
|
|
5778
|
-
|
|
5788
|
+
Q.debug(e.message ?? e), this._responseSchema = {};
|
|
5779
5789
|
}
|
|
5780
5790
|
}
|
|
5781
5791
|
async fetchSchema() {
|
|
@@ -5794,13 +5804,13 @@ var QueryCache = class extends e {
|
|
|
5794
5804
|
GraphName: e,
|
|
5795
5805
|
SubGraphId: t
|
|
5796
5806
|
}).then((e) => {
|
|
5797
|
-
let t = new
|
|
5807
|
+
let t = new bt(), n = !0;
|
|
5798
5808
|
for (let r of e?.Graphs?.ECLGraphEx || []) n ? (t.load(r.Graph), n = !1) : t.merge(r.Graph);
|
|
5799
5809
|
return t;
|
|
5800
5810
|
});
|
|
5801
5811
|
}
|
|
5802
5812
|
fetchDetailsNormalized(e = {}) {
|
|
5803
|
-
let t =
|
|
5813
|
+
let t = st.attach(this.wsWorkunitsService, this.Wuid);
|
|
5804
5814
|
return t ? Promise.all([
|
|
5805
5815
|
this.fetchGraph(),
|
|
5806
5816
|
t.fetchDetailsMeta(),
|
|
@@ -5810,7 +5820,7 @@ var QueryCache = class extends e {
|
|
|
5810
5820
|
let t = e.Id[0];
|
|
5811
5821
|
if (t === "a" || t === "e") {
|
|
5812
5822
|
let t = n.idx[e.Id.substring(1)];
|
|
5813
|
-
if (!t) return
|
|
5823
|
+
if (!t) return Q.debug(`Missing graph data for metric ID: ${e.Id}`), e;
|
|
5814
5824
|
let r = new Set(e.Properties.Property.map((e) => e.Name)), i = [];
|
|
5815
5825
|
for (let e in t) {
|
|
5816
5826
|
let n = e.charAt(0);
|
|
@@ -5818,7 +5828,7 @@ var QueryCache = class extends e {
|
|
|
5818
5828
|
let n = t[e], r = typeof n;
|
|
5819
5829
|
if (r === "string" || r === "number" || r === "boolean") {
|
|
5820
5830
|
let t = isNumber(n) ? parseFloat(n) : n, r = n;
|
|
5821
|
-
e.indexOf("Time") >= 0 && (t /= 1e9, r =
|
|
5831
|
+
e.indexOf("Time") >= 0 && (t /= 1e9, r = xt(t) + "s"), i.push({
|
|
5822
5832
|
Name: e,
|
|
5823
5833
|
RawValue: t,
|
|
5824
5834
|
Formatted: r
|
|
@@ -5845,7 +5855,7 @@ var QueryCache = class extends e {
|
|
|
5845
5855
|
return e;
|
|
5846
5856
|
}) ?? [];
|
|
5847
5857
|
} catch (e) {
|
|
5848
|
-
return
|
|
5858
|
+
return Q.debug(e.message ?? e), [];
|
|
5849
5859
|
}
|
|
5850
5860
|
}
|
|
5851
5861
|
async refresh() {
|
|
@@ -5869,7 +5879,7 @@ var QueryCache = class extends e {
|
|
|
5869
5879
|
constructor() {
|
|
5870
5880
|
super((e) => `${e.BaseUrl}-${e.Name}:${e.UserSpecific}-${e.Namespace}`);
|
|
5871
5881
|
}
|
|
5872
|
-
},
|
|
5882
|
+
}, wt = new StoreCache(), ValueChangedMessage = class extends i {
|
|
5873
5883
|
key;
|
|
5874
5884
|
value;
|
|
5875
5885
|
oldValue;
|
|
@@ -5885,7 +5895,7 @@ var QueryCache = class extends e {
|
|
|
5885
5895
|
void() {
|
|
5886
5896
|
return this.value === this.oldValue;
|
|
5887
5897
|
}
|
|
5888
|
-
},
|
|
5898
|
+
}, Tt = class Store {
|
|
5889
5899
|
connection;
|
|
5890
5900
|
get BaseUrl() {
|
|
5891
5901
|
return this.connection.baseUrl;
|
|
@@ -5895,7 +5905,7 @@ var QueryCache = class extends e {
|
|
|
5895
5905
|
Namespace;
|
|
5896
5906
|
_dispatch = new t();
|
|
5897
5907
|
static attach(e, t = "HPCCApps", n, r = !0) {
|
|
5898
|
-
return
|
|
5908
|
+
return wt.get({
|
|
5899
5909
|
BaseUrl: e.baseUrl,
|
|
5900
5910
|
Name: t,
|
|
5901
5911
|
UserSpecific: r,
|
|
@@ -5970,11 +5980,13 @@ var QueryCache = class extends e {
|
|
|
5970
5980
|
monitor(e) {
|
|
5971
5981
|
return this._dispatch.attach(e);
|
|
5972
5982
|
}
|
|
5973
|
-
},
|
|
5983
|
+
}, Et = y("@hpcc-js/comms/dfuWorkunit.ts"), $ = /* @__PURE__ */ function(e) {
|
|
5984
|
+
return e[e.Unknown = 0] = "Unknown", e[e.Scheduled = 1] = "Scheduled", e[e.Queued = 2] = "Queued", e[e.Started = 3] = "Started", e[e.Aborted = 4] = "Aborted", e[e.Failed = 5] = "Failed", e[e.Finished = 6] = "Finished", e[e.Monitoring = 7] = "Monitoring", e[e.Aborting = 8] = "Aborting", e[e.NotFound = 999] = "NotFound", e;
|
|
5985
|
+
}($ || {}), DFUWorkunitCache = class extends e {
|
|
5974
5986
|
constructor() {
|
|
5975
5987
|
super((e) => `${e.BaseUrl}-${e.ID}`);
|
|
5976
5988
|
}
|
|
5977
|
-
},
|
|
5989
|
+
}, Dt = new DFUWorkunitCache(), Ot = class DFUWorkunit extends s {
|
|
5978
5990
|
connection;
|
|
5979
5991
|
topologyConnection;
|
|
5980
5992
|
get BaseUrl() {
|
|
@@ -6023,7 +6035,7 @@ var QueryCache = class extends e {
|
|
|
6023
6035
|
return this.get("SummaryMessage");
|
|
6024
6036
|
}
|
|
6025
6037
|
get State() {
|
|
6026
|
-
return this.get("State",
|
|
6038
|
+
return this.get("State", $.Unknown);
|
|
6027
6039
|
}
|
|
6028
6040
|
get SourceLogicalName() {
|
|
6029
6041
|
return this.get("SourceLogicalName");
|
|
@@ -6162,10 +6174,10 @@ var QueryCache = class extends e {
|
|
|
6162
6174
|
}
|
|
6163
6175
|
static create(e, t) {
|
|
6164
6176
|
let n = new DFUWorkunit(e);
|
|
6165
|
-
return n.connection.CreateDFUWorkunit({ DFUServerQueue: t }).then((e) => (
|
|
6177
|
+
return n.connection.CreateDFUWorkunit({ DFUServerQueue: t }).then((e) => (Dt.set(n), n.set(e.result), n));
|
|
6166
6178
|
}
|
|
6167
6179
|
static attach(e, t, n) {
|
|
6168
|
-
let r =
|
|
6180
|
+
let r = Dt.get({
|
|
6169
6181
|
BaseUrl: e.baseUrl,
|
|
6170
6182
|
ID: t
|
|
6171
6183
|
}, () => new DFUWorkunit(e, t));
|
|
@@ -6208,20 +6220,20 @@ var QueryCache = class extends e {
|
|
|
6208
6220
|
}
|
|
6209
6221
|
isComplete() {
|
|
6210
6222
|
switch (this.State) {
|
|
6211
|
-
case
|
|
6212
|
-
case
|
|
6213
|
-
case
|
|
6214
|
-
case
|
|
6223
|
+
case $.Finished:
|
|
6224
|
+
case $.Failed:
|
|
6225
|
+
case $.Aborted:
|
|
6226
|
+
case $.NotFound: return !0;
|
|
6215
6227
|
default:
|
|
6216
6228
|
}
|
|
6217
6229
|
return !1;
|
|
6218
6230
|
}
|
|
6219
6231
|
isFailed() {
|
|
6220
|
-
return !!(this.isComplete() && this.State !==
|
|
6232
|
+
return !!(this.isComplete() && this.State !== $.Finished);
|
|
6221
6233
|
}
|
|
6222
6234
|
isDeleted() {
|
|
6223
6235
|
switch (this.State) {
|
|
6224
|
-
case
|
|
6236
|
+
case $.NotFound: return !0;
|
|
6225
6237
|
default:
|
|
6226
6238
|
}
|
|
6227
6239
|
return !1;
|
|
@@ -6304,7 +6316,7 @@ var QueryCache = class extends e {
|
|
|
6304
6316
|
clearState(e) {
|
|
6305
6317
|
this.clear({
|
|
6306
6318
|
ID: e,
|
|
6307
|
-
State:
|
|
6319
|
+
State: $.Unknown
|
|
6308
6320
|
});
|
|
6309
6321
|
}
|
|
6310
6322
|
GetDFUWorkunit(e = {}) {
|
|
@@ -6312,12 +6324,12 @@ var QueryCache = class extends e {
|
|
|
6312
6324
|
...e,
|
|
6313
6325
|
wuid: this.ID
|
|
6314
6326
|
}).then((e) => (this.set(e.result), e)).catch((e) => {
|
|
6315
|
-
if (!e.Exception.some((e) => e.Code === 20080 || e.Code === 20081 ? (this.clearState(this.ID), this.set("State",
|
|
6327
|
+
if (!e.Exception.some((e) => e.Code === 20080 || e.Code === 20081 ? (this.clearState(this.ID), this.set("State", $.NotFound), !0) : !1)) throw Et.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
6316
6328
|
return {};
|
|
6317
6329
|
});
|
|
6318
6330
|
}
|
|
6319
6331
|
};
|
|
6320
6332
|
//#endregion
|
|
6321
|
-
export { AccessService, AccountService,
|
|
6333
|
+
export { AccessService, AccountService, ut as Activity, Attribute, w as BUILD_VERSION, BaseScope, CloudService, CodesignService, ne as Connection, se as DFUArrayActions, le as DFUChangeProtection, ue as DFUChangeRestriction, ce as DFUDefFileFormat, DFUService, Ot as DFUWorkunit, DFUWorkunitCache, DFUXRefService, DaliService, ECLGraph, re as ESPConnection, ESPExceptions, EclService, ElkService, O as FileSpray, FileSprayService, ie as FileSprayStates, GlobalResultCache, GraphCache, fe as LogType, LogaccessService, pt as LogicalFile, LogicalFileCache, ht as Machine, MachineCache, MachineService, S as PKG_NAME, C as PKG_VERSION, PackageProcessService, rt as PropertyType, Ct as Query, bt as QueryGraph, it as RelatedProperty, Resource, ResourcesService, Ze as Result, ResultCache, SMCService, SashaService, Scope, ScopeEdge, ScopeGraph, ScopeSubgraph, ScopeVertex, Service, SourceFile, Tt as Store, StoreCache, StoreService, pe as TargetAudience, Y as TargetCluster, TargetClusterCache, Timer, yt as Topology, TopologyCache, TopologyService, ValueChangedMessage, U as WUStateID, W as WUUpdate, st as Workunit, WorkunitCache, WorkunitsService, WorkunitsServiceEx, ae as WsAccess, k as WsCodesign, A as WsDfu, j as WsLogaccess, He as WsSMC, be as WsSasha, We as WsTopology, H as WsWorkunits, XGMMLEdge, XGMMLGraph, XGMMLSubgraph, XGMMLVertex, XSDNode, XSDSchema, XSDSimpleType, XSDXMLNode, createConnection, createGraph, createXGMMLGraph, defaultTargetCluster, deserializeResponse, get, hookSend, instanceOfIConnection, instanceOfIOptions, isArray, isECLResult, isExceptions, isWUInfoWorkunit, isWUQueryECLWorkunit, jsonp, parseXSD, parseXSD2, post, send, serializeRequest, setTransportFactory, splitMetric, targetClusters };
|
|
6322
6334
|
|
|
6323
6335
|
//# sourceMappingURL=index.js.map
|