@hpcc-js/comms 3.17.6 → 3.17.8
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 +138 -201
- 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 +4 -4
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +4 -4
- package/package.json +6 -6
- package/src/ecl/logicalFile.ts +2 -2
- package/src/services/wsDFU.ts +2 -2
- package/types/services/wsDFU.d.ts +3 -3
- package/types/services/wsdl/WsDfu/v1.68/WsDfu.d.ts +1050 -0
- package/types/services/wsdl/WsDfu/v1.67/WsDfu.d.ts +0 -1026
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.8", w = "3.32.0", T = y("comms/connection.ts");
|
|
7
7
|
function instanceOfIOptions(e) {
|
|
8
8
|
return "baseUrl" in e;
|
|
9
9
|
}
|
|
@@ -24,12 +24,14 @@ function encode(e, t) {
|
|
|
24
24
|
function serializeRequest(e, t = !0, n = "") {
|
|
25
25
|
if (n && (n += "."), typeof e != "object") return encode(e, t);
|
|
26
26
|
let r = [];
|
|
27
|
-
for (let i in e) if (e.hasOwnProperty(i))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
for (let i in e) if (e.hasOwnProperty(i)) {
|
|
28
|
+
if (e[i] instanceof Array) {
|
|
29
|
+
let a = !1;
|
|
30
|
+
e[i].forEach((e, o) => {
|
|
31
|
+
typeof e == "object" ? (a = !0, r.push(serializeRequest(e, t, n + encode(`${i}.${o}`, t)))) : r.push(n + encode(`${i}_i${o}`, t) + "=" + serializeRequest(e, t));
|
|
32
|
+
}), a && r.push(n + encode(`${i}.itemcount`, t) + "=" + e[i].length);
|
|
33
|
+
} else typeof e[i] == "object" ? e[i] && e[i].Item instanceof Array ? (r.push(serializeRequest(e[i].Item, t, n + encode(i, t))), r.push(n + encode(`${i}.itemcount`, t) + "=" + e[i].Item.length)) : r.push(serializeRequest(e[i], t, n + encode(i, t))) : e[i] === void 0 ? r.push(n + encode(i, t)) : r.push(n + encode(i, t) + "=" + encode(e[i], t));
|
|
34
|
+
}
|
|
33
35
|
return r.join("&");
|
|
34
36
|
}
|
|
35
37
|
function deserializeResponse(e) {
|
|
@@ -99,9 +101,7 @@ function send(e, t, n, r = "json", i) {
|
|
|
99
101
|
case "get":
|
|
100
102
|
a = get(e, t, n, r, i);
|
|
101
103
|
break;
|
|
102
|
-
default:
|
|
103
|
-
a = post(e, t, n, r, i);
|
|
104
|
-
break;
|
|
104
|
+
default: a = post(e, t, n, r, i);
|
|
105
105
|
}
|
|
106
106
|
return a;
|
|
107
107
|
}
|
|
@@ -149,7 +149,7 @@ var ESPExceptions = class extends Error {
|
|
|
149
149
|
Source;
|
|
150
150
|
Exception;
|
|
151
151
|
constructor(e, t, n) {
|
|
152
|
-
super("ESPException: " + n.Source), this.action = e, this.request = t, this.Source = n.Source, this.Exception = n.Exception, n.Exception.length ?
|
|
152
|
+
super("ESPException: " + n.Source), this.action = e, this.request = t, this.Source = n.Source, this.Exception = n.Exception, this.message = n.Exception.length ? `${n.Exception[0].Code}: ${n.Exception[0].Message}` : "";
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
function isExceptions(e) {
|
|
@@ -768,91 +768,94 @@ var CodesignServiceBase = class extends Service {
|
|
|
768
768
|
})(A ||= {});
|
|
769
769
|
var DfuServiceBase = class extends Service {
|
|
770
770
|
constructor(e) {
|
|
771
|
-
super(e, "WsDfu", "1.
|
|
771
|
+
super(e, "WsDfu", "1.68");
|
|
772
772
|
}
|
|
773
|
-
Add(e) {
|
|
774
|
-
return this._connection.send("Add", e, "json", !1,
|
|
773
|
+
Add(e, t) {
|
|
774
|
+
return this._connection.send("Add", e, "json", !1, t, "AddResponse");
|
|
775
775
|
}
|
|
776
|
-
AddRemote(e) {
|
|
777
|
-
return this._connection.send("AddRemote", e, "json", !1,
|
|
776
|
+
AddRemote(e, t) {
|
|
777
|
+
return this._connection.send("AddRemote", e, "json", !1, t, "AddRemoteResponse");
|
|
778
778
|
}
|
|
779
|
-
AddtoSuperfile(e) {
|
|
780
|
-
return this._connection.send("AddtoSuperfile", e, "json", !1,
|
|
779
|
+
AddtoSuperfile(e, t) {
|
|
780
|
+
return this._connection.send("AddtoSuperfile", e, "json", !1, t, "AddtoSuperfileResponse");
|
|
781
781
|
}
|
|
782
|
-
DFUArrayAction(e) {
|
|
783
|
-
return this._connection.send("DFUArrayAction", e, "json", !1,
|
|
782
|
+
DFUArrayAction(e, t) {
|
|
783
|
+
return this._connection.send("DFUArrayAction", e, "json", !1, t, "DFUArrayActionResponse");
|
|
784
784
|
}
|
|
785
|
-
DFUBrowseData(e) {
|
|
786
|
-
return this._connection.send("DFUBrowseData", e, "json", !1,
|
|
785
|
+
DFUBrowseData(e, t) {
|
|
786
|
+
return this._connection.send("DFUBrowseData", e, "json", !1, t, "DFUBrowseDataResponse");
|
|
787
787
|
}
|
|
788
|
-
DFUDefFile(e) {
|
|
789
|
-
return this._connection.send("DFUDefFile", e, "json", !1,
|
|
788
|
+
DFUDefFile(e, t) {
|
|
789
|
+
return this._connection.send("DFUDefFile", e, "json", !1, t, "DFUDefFileResponse");
|
|
790
790
|
}
|
|
791
|
-
DFUFileAccess(e) {
|
|
792
|
-
return this._connection.send("DFUFileAccess", e, "json", !1,
|
|
791
|
+
DFUFileAccess(e, t) {
|
|
792
|
+
return this._connection.send("DFUFileAccess", e, "json", !1, t, "DFUFileAccessResponse");
|
|
793
793
|
}
|
|
794
|
-
DFUFileAccessV2(e) {
|
|
795
|
-
return this._connection.send("DFUFileAccessV2", e, "json", !1,
|
|
794
|
+
DFUFileAccessV2(e, t) {
|
|
795
|
+
return this._connection.send("DFUFileAccessV2", e, "json", !1, t, "DFUFileAccessResponse");
|
|
796
796
|
}
|
|
797
|
-
DFUFileCreate(e) {
|
|
798
|
-
return this._connection.send("DFUFileCreate", e, "json", !1,
|
|
797
|
+
DFUFileCreate(e, t) {
|
|
798
|
+
return this._connection.send("DFUFileCreate", e, "json", !1, t, "DFUFileCreateResponse");
|
|
799
799
|
}
|
|
800
|
-
DFUFileCreateV2(e) {
|
|
801
|
-
return this._connection.send("DFUFileCreateV2", e, "json", !1,
|
|
800
|
+
DFUFileCreateV2(e, t) {
|
|
801
|
+
return this._connection.send("DFUFileCreateV2", e, "json", !1, t, "DFUFileCreateResponse");
|
|
802
802
|
}
|
|
803
|
-
DFUFilePublish(e) {
|
|
804
|
-
return this._connection.send("DFUFilePublish", e, "json", !1,
|
|
803
|
+
DFUFilePublish(e, t) {
|
|
804
|
+
return this._connection.send("DFUFilePublish", e, "json", !1, t, "DFUFilePublishResponse");
|
|
805
805
|
}
|
|
806
|
-
|
|
807
|
-
return this._connection.send("
|
|
806
|
+
DFUFileRename(e, t) {
|
|
807
|
+
return this._connection.send("DFUFileRename", e, "json", !1, t, "DFUFileRenameResponse");
|
|
808
808
|
}
|
|
809
|
-
|
|
810
|
-
return this._connection.send("
|
|
809
|
+
DFUFileView(e, t) {
|
|
810
|
+
return this._connection.send("DFUFileView", e, "json", !1, t, "DFUFileViewResponse");
|
|
811
811
|
}
|
|
812
|
-
|
|
813
|
-
return this._connection.send("
|
|
812
|
+
DFUGetDataColumns(e, t) {
|
|
813
|
+
return this._connection.send("DFUGetDataColumns", e, "json", !1, t, "DFUGetDataColumnsResponse");
|
|
814
814
|
}
|
|
815
|
-
|
|
816
|
-
return this._connection.send("
|
|
815
|
+
DFUGetFileMetaData(e, t) {
|
|
816
|
+
return this._connection.send("DFUGetFileMetaData", e, "json", !1, t, "DFUGetFileMetaDataResponse");
|
|
817
817
|
}
|
|
818
|
-
|
|
819
|
-
return this._connection.send("
|
|
818
|
+
DFUGetMetaInquiry(e, t) {
|
|
819
|
+
return this._connection.send("DFUGetMetaInquiry", e, "json", !1, t, "DFUMetaInquiryResponse");
|
|
820
820
|
}
|
|
821
|
-
|
|
822
|
-
return this._connection.send("
|
|
821
|
+
DFUInfo(e, t) {
|
|
822
|
+
return this._connection.send("DFUInfo", e, "json", !1, t, "DFUInfoResponse");
|
|
823
823
|
}
|
|
824
|
-
|
|
825
|
-
return this._connection.send("
|
|
824
|
+
DFUQuery(e, t) {
|
|
825
|
+
return this._connection.send("DFUQuery", e, "json", !1, t, "DFUQueryResponse");
|
|
826
826
|
}
|
|
827
|
-
|
|
828
|
-
return this._connection.send("
|
|
827
|
+
DFURecordTypeInfo(e, t) {
|
|
828
|
+
return this._connection.send("DFURecordTypeInfo", e, "json", !1, t, "DFURecordTypeInfoResponse");
|
|
829
829
|
}
|
|
830
|
-
|
|
831
|
-
return this._connection.send("
|
|
830
|
+
DFUSearch(e, t) {
|
|
831
|
+
return this._connection.send("DFUSearch", e, "json", !1, t, "DFUSearchResponse");
|
|
832
832
|
}
|
|
833
|
-
|
|
834
|
-
return this._connection.send("
|
|
833
|
+
DFUSearchData(e, t) {
|
|
834
|
+
return this._connection.send("DFUSearchData", e, "json", !1, t, "DFUSearchDataResponse");
|
|
835
835
|
}
|
|
836
|
-
|
|
837
|
-
return this._connection.send("
|
|
836
|
+
DFUSpace(e, t) {
|
|
837
|
+
return this._connection.send("DFUSpace", e, "json", !1, t, "DFUSpaceResponse");
|
|
838
838
|
}
|
|
839
|
-
|
|
840
|
-
return this._connection.send("
|
|
839
|
+
EclRecordTypeInfo(e, t) {
|
|
840
|
+
return this._connection.send("EclRecordTypeInfo", e, "json", !1, t, "EclRecordTypeInfoResponse");
|
|
841
841
|
}
|
|
842
|
-
|
|
843
|
-
return this._connection.send("
|
|
842
|
+
EraseHistory(e, t) {
|
|
843
|
+
return this._connection.send("EraseHistory", e, "json", !1, t, "EraseHistoryResponse");
|
|
844
844
|
}
|
|
845
|
-
|
|
846
|
-
return this._connection.send("
|
|
845
|
+
ListHistory(e, t) {
|
|
846
|
+
return this._connection.send("ListHistory", e, "json", !1, t, "ListHistoryResponse");
|
|
847
|
+
}
|
|
848
|
+
Ping(e, t) {
|
|
849
|
+
return this._connection.send("Ping", e, "json", !1, t, "WsDfuPingResponse");
|
|
847
850
|
}
|
|
848
|
-
Savexml(e) {
|
|
849
|
-
return this._connection.send("Savexml", e, "json", !1,
|
|
851
|
+
Savexml(e, t) {
|
|
852
|
+
return this._connection.send("Savexml", e, "json", !1, t, "SavexmlResponse");
|
|
850
853
|
}
|
|
851
|
-
SuperfileAction(e) {
|
|
852
|
-
return this._connection.send("SuperfileAction", e, "json", !1,
|
|
854
|
+
SuperfileAction(e, t) {
|
|
855
|
+
return this._connection.send("SuperfileAction", e, "json", !1, t, "SuperfileActionResponse");
|
|
853
856
|
}
|
|
854
|
-
SuperfileList(e) {
|
|
855
|
-
return this._connection.send("SuperfileList", e, "json", !1,
|
|
857
|
+
SuperfileList(e, t) {
|
|
858
|
+
return this._connection.send("SuperfileList", e, "json", !1, t, "SuperfileListResponse");
|
|
856
859
|
}
|
|
857
860
|
}, se = A.DFUArrayActions, ce = A.DFUDefFileFormat, le = A.DFUChangeProtection, ue = A.DFUChangeRestriction, DFUService = class extends DfuServiceBase {
|
|
858
861
|
DFUFile(e) {
|
|
@@ -1176,13 +1179,13 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1176
1179
|
}
|
|
1177
1180
|
};
|
|
1178
1181
|
//#endregion
|
|
1179
|
-
//#region node_modules/d3-array/src/ascending.js
|
|
1182
|
+
//#region ../../node_modules/d3-array/src/ascending.js
|
|
1180
1183
|
function ascending_default(e, t) {
|
|
1181
1184
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1182
1185
|
}
|
|
1183
1186
|
__name(ascending_default, "default");
|
|
1184
1187
|
//#endregion
|
|
1185
|
-
//#region node_modules/d3-array/src/bisector.js
|
|
1188
|
+
//#region ../../node_modules/d3-array/src/bisector.js
|
|
1186
1189
|
function bisector_default(e) {
|
|
1187
1190
|
return e.length === 1 && (e = ascendingComparator(e)), {
|
|
1188
1191
|
left: function(t, n, r, i) {
|
|
@@ -1208,21 +1211,21 @@ function ascendingComparator(e) {
|
|
|
1208
1211
|
};
|
|
1209
1212
|
}
|
|
1210
1213
|
//#endregion
|
|
1211
|
-
//#region node_modules/d3-array/src/bisect.js
|
|
1214
|
+
//#region ../../node_modules/d3-array/src/bisect.js
|
|
1212
1215
|
var _e = bisector_default(ascending_default);
|
|
1213
1216
|
_e.right, _e.left;
|
|
1214
1217
|
//#endregion
|
|
1215
|
-
//#region node_modules/d3-array/src/number.js
|
|
1218
|
+
//#region ../../node_modules/d3-array/src/number.js
|
|
1216
1219
|
function number_default(e) {
|
|
1217
1220
|
return e === null ? NaN : +e;
|
|
1218
1221
|
}
|
|
1219
1222
|
__name(number_default, "default");
|
|
1220
1223
|
//#endregion
|
|
1221
|
-
//#region node_modules/d3-array/src/array.js
|
|
1224
|
+
//#region ../../node_modules/d3-array/src/array.js
|
|
1222
1225
|
var ve = Array.prototype;
|
|
1223
1226
|
ve.slice, ve.map;
|
|
1224
1227
|
//#endregion
|
|
1225
|
-
//#region node_modules/d3-array/src/max.js
|
|
1228
|
+
//#region ../../node_modules/d3-array/src/max.js
|
|
1226
1229
|
function max_default(e, t) {
|
|
1227
1230
|
var n = e.length, r = -1, i, a;
|
|
1228
1231
|
if (t == null) {
|
|
@@ -1232,7 +1235,7 @@ function max_default(e, t) {
|
|
|
1232
1235
|
}
|
|
1233
1236
|
__name(max_default, "default");
|
|
1234
1237
|
//#endregion
|
|
1235
|
-
//#region node_modules/d3-array/src/mean.js
|
|
1238
|
+
//#region ../../node_modules/d3-array/src/mean.js
|
|
1236
1239
|
function mean_default(e, t) {
|
|
1237
1240
|
var n = e.length, r = n, i = -1, a, o = 0;
|
|
1238
1241
|
if (t == null) for (; ++i < n;) isNaN(a = number_default(e[i])) ? --r : o += a;
|
|
@@ -1445,8 +1448,10 @@ function newInterval(e, t, n, r) {
|
|
|
1445
1448
|
return newInterval(function(t) {
|
|
1446
1449
|
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
|
|
1447
1450
|
}, function(e, r) {
|
|
1448
|
-
if (e >= e)
|
|
1449
|
-
|
|
1451
|
+
if (e >= e) {
|
|
1452
|
+
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
|
|
1453
|
+
else for (; --r >= 0;) for (; t(e, 1), !n(e););
|
|
1454
|
+
}
|
|
1450
1455
|
});
|
|
1451
1456
|
}, n && (interval.count = function(t, r) {
|
|
1452
1457
|
return M.setTime(+t), N.setTime(+r), e(M), e(N), Math.floor(n(M, N));
|
|
@@ -2362,7 +2367,7 @@ var TopologyServiceBase = class extends Service {
|
|
|
2362
2367
|
return this.TpLogicalClusterQuery(e).then((e) => {
|
|
2363
2368
|
if (e.default) return e.default;
|
|
2364
2369
|
let t, n;
|
|
2365
|
-
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor"
|
|
2370
|
+
return e.TpLogicalClusters.TpLogicalCluster.some((e, r) => (r === 0 && (n = e), e.Type === "hthor" && (t = e, !0))), t || n;
|
|
2366
2371
|
});
|
|
2367
2372
|
}
|
|
2368
2373
|
}, H;
|
|
@@ -2816,7 +2821,6 @@ function formatTrim_default(e) {
|
|
|
2816
2821
|
default:
|
|
2817
2822
|
if (!+e[n]) break out;
|
|
2818
2823
|
r > 0 && (r = 0);
|
|
2819
|
-
break;
|
|
2820
2824
|
}
|
|
2821
2825
|
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
2822
2826
|
}
|
|
@@ -2937,9 +2941,7 @@ function locale_default(e) {
|
|
|
2937
2941
|
case "^":
|
|
2938
2942
|
e = T.slice(0, w = T.length >> 1) + n + e + r + T.slice(w);
|
|
2939
2943
|
break;
|
|
2940
|
-
default:
|
|
2941
|
-
e = T + n + e + r;
|
|
2942
|
-
break;
|
|
2944
|
+
default: e = T + n + e + r;
|
|
2943
2945
|
}
|
|
2944
2946
|
return a(e);
|
|
2945
2947
|
}
|
|
@@ -3058,8 +3060,6 @@ function createXGMMLGraph(e, t) {
|
|
|
3058
3060
|
case "edge":
|
|
3059
3061
|
let s = c.createEdge(r[t.source], r[t.target], flattenAtt(a));
|
|
3060
3062
|
i[t.id] = s;
|
|
3061
|
-
break;
|
|
3062
|
-
default:
|
|
3063
3063
|
}
|
|
3064
3064
|
}), a;
|
|
3065
3065
|
}
|
|
@@ -3090,7 +3090,6 @@ function createGraph(e) {
|
|
|
3090
3090
|
case "function":
|
|
3091
3091
|
let c = r[a.parentScope()];
|
|
3092
3092
|
c ? c._.children().push(a) : console.warn(`Missing F:Parent (${a.Id}): ${a.parentScope()}`);
|
|
3093
|
-
break;
|
|
3094
3093
|
}
|
|
3095
3094
|
for (let e in n) {
|
|
3096
3095
|
let r = n[e], a = t[r.parentScope()];
|
|
@@ -3196,7 +3195,6 @@ var Resource = class extends s {
|
|
|
3196
3195
|
let t = this.type.lastIndexOf("_"), n = t > 0 ? t : this.type.length, r = n - 1;
|
|
3197
3196
|
for (; r >= 0 && "0123456789".indexOf(this.type.charAt(r)) !== -1; --r);
|
|
3198
3197
|
r + 1 < n && (e = parseInt(this.type.substring(r + 1, n), 10)), this.type.indexOf("data") === 0 && (e *= 2);
|
|
3199
|
-
break;
|
|
3200
3198
|
}
|
|
3201
3199
|
return e < this.name.length && (e = this.name.length), e;
|
|
3202
3200
|
}
|
|
@@ -3214,10 +3212,7 @@ var Resource = class extends s {
|
|
|
3214
3212
|
case "xs:restriction":
|
|
3215
3213
|
this._restricition = e;
|
|
3216
3214
|
break;
|
|
3217
|
-
case "xs:maxLength":
|
|
3218
|
-
this._maxLength = e;
|
|
3219
|
-
break;
|
|
3220
|
-
default:
|
|
3215
|
+
case "xs:maxLength": this._maxLength = e;
|
|
3221
3216
|
}
|
|
3222
3217
|
}
|
|
3223
3218
|
fix() {
|
|
@@ -3240,10 +3235,7 @@ var Resource = class extends s {
|
|
|
3240
3235
|
let t = new XSDXMLNode(e);
|
|
3241
3236
|
this.schema.root ? this.xsdStack.depth() && this.xsdStack.top().append(t) : this.schema.root = t, this.xsdStack.push(t);
|
|
3242
3237
|
break;
|
|
3243
|
-
case "xs:simpleType":
|
|
3244
|
-
this.simpleType = new XSDSimpleType(e);
|
|
3245
|
-
break;
|
|
3246
|
-
default: break;
|
|
3238
|
+
case "xs:simpleType": this.simpleType = new XSDSimpleType(e);
|
|
3247
3239
|
}
|
|
3248
3240
|
}
|
|
3249
3241
|
endXMLNode(e) {
|
|
@@ -3281,21 +3273,11 @@ var XSDParser2 = class extends XSDParser {
|
|
|
3281
3273
|
let t = new XSDXMLNode(e);
|
|
3282
3274
|
!this.schema.root && this._rootName === e.$.name && (this.schema.root = t), this.xsdStack.depth() && this.xsdStack.top().append(t), this.xsdStack.push(t);
|
|
3283
3275
|
break;
|
|
3284
|
-
case "xsd:simpleType":
|
|
3285
|
-
this.simpleType = new XSDSimpleType(e);
|
|
3286
|
-
break;
|
|
3287
|
-
default: break;
|
|
3276
|
+
case "xsd:simpleType": this.simpleType = new XSDSimpleType(e);
|
|
3288
3277
|
}
|
|
3289
3278
|
}
|
|
3290
3279
|
endXMLNode(e) {
|
|
3291
|
-
|
|
3292
|
-
case "xsd:element":
|
|
3293
|
-
this.xsdStack.pop().fix();
|
|
3294
|
-
break;
|
|
3295
|
-
case "xsd:simpleType": break;
|
|
3296
|
-
default: break;
|
|
3297
|
-
}
|
|
3298
|
-
super.endXMLNode(e);
|
|
3280
|
+
e.name === "xsd:element" && this.xsdStack.pop().fix(), super.endXMLNode(e);
|
|
3299
3281
|
}
|
|
3300
3282
|
};
|
|
3301
3283
|
function parseXSD2(e, t) {
|
|
@@ -3390,7 +3372,7 @@ var GlobalResultCache = class extends e {
|
|
|
3390
3372
|
}, () => new Result(e, t, n, !0));
|
|
3391
3373
|
}
|
|
3392
3374
|
constructor(e, t, n, r) {
|
|
3393
|
-
super(), e instanceof WorkunitsService ?
|
|
3375
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e), typeof r == "boolean" && r === !0 ? this.set({
|
|
3394
3376
|
NodeGroup: t,
|
|
3395
3377
|
LogicalFileName: n
|
|
3396
3378
|
}) : isECLResult(n) && Array.isArray(r) ? this.set({
|
|
@@ -3603,7 +3585,7 @@ var GlobalResultCache = class extends e {
|
|
|
3603
3585
|
return this.get("ECLSourceFiles");
|
|
3604
3586
|
}
|
|
3605
3587
|
constructor(e, t, n) {
|
|
3606
|
-
super(), e instanceof WorkunitsService ?
|
|
3588
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.set({
|
|
3607
3589
|
Wuid: t,
|
|
3608
3590
|
...n
|
|
3609
3591
|
});
|
|
@@ -3644,7 +3626,7 @@ var GlobalResultCache = class extends e {
|
|
|
3644
3626
|
return this.get("When");
|
|
3645
3627
|
}
|
|
3646
3628
|
constructor(e, t, n) {
|
|
3647
|
-
super(), e instanceof WorkunitsService ?
|
|
3629
|
+
super(), this.connection = e instanceof WorkunitsService ? e : new WorkunitsService(e);
|
|
3648
3630
|
let r = m(n.Value);
|
|
3649
3631
|
this.set({
|
|
3650
3632
|
Wuid: t,
|
|
@@ -4094,7 +4076,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4094
4076
|
case U.Failed:
|
|
4095
4077
|
case U.Aborted:
|
|
4096
4078
|
case U.NotFound: return !0;
|
|
4097
|
-
default:
|
|
4098
4079
|
}
|
|
4099
4080
|
return !1;
|
|
4100
4081
|
}
|
|
@@ -4102,14 +4083,12 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4102
4083
|
switch (this.StateID) {
|
|
4103
4084
|
case U.Aborted:
|
|
4104
4085
|
case U.Failed: return !0;
|
|
4105
|
-
default:
|
|
4106
4086
|
}
|
|
4107
4087
|
return !1;
|
|
4108
4088
|
}
|
|
4109
4089
|
isDeleted() {
|
|
4110
4090
|
switch (this.StateID) {
|
|
4111
4091
|
case U.NotFound: return !0;
|
|
4112
|
-
default:
|
|
4113
4092
|
}
|
|
4114
4093
|
return !1;
|
|
4115
4094
|
}
|
|
@@ -4117,7 +4096,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4117
4096
|
switch (this.StateID) {
|
|
4118
4097
|
case U.DebugPaused:
|
|
4119
4098
|
case U.DebugRunning: return !0;
|
|
4120
|
-
default:
|
|
4121
4099
|
}
|
|
4122
4100
|
return this._debugMode;
|
|
4123
4101
|
}
|
|
@@ -4129,7 +4107,6 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4129
4107
|
case U.Blocked:
|
|
4130
4108
|
case U.DebugPaused:
|
|
4131
4109
|
case U.DebugRunning: return !0;
|
|
4132
|
-
default:
|
|
4133
4110
|
}
|
|
4134
4111
|
return !1;
|
|
4135
4112
|
}
|
|
@@ -4441,16 +4418,10 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4441
4418
|
this.isComplete() && t([e]);
|
|
4442
4419
|
});
|
|
4443
4420
|
break;
|
|
4444
|
-
case "changed":
|
|
4445
|
-
super.on(e, t);
|
|
4446
|
-
break;
|
|
4447
|
-
default:
|
|
4421
|
+
case "changed": super.on(e, t);
|
|
4448
4422
|
}
|
|
4449
4423
|
else switch (e) {
|
|
4450
|
-
case "changed":
|
|
4451
|
-
super.on(e, t, n);
|
|
4452
|
-
break;
|
|
4453
|
-
default:
|
|
4424
|
+
case "changed": super.on(e, t, n);
|
|
4454
4425
|
}
|
|
4455
4426
|
return this._monitor(), this;
|
|
4456
4427
|
}
|
|
@@ -4473,7 +4444,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4473
4444
|
...e,
|
|
4474
4445
|
Wuid: this.Wuid
|
|
4475
4446
|
}).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
|
|
4447
|
+
if (!e.Exception.some((e) => e.Code === 20081 && (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4477
4448
|
return {};
|
|
4478
4449
|
});
|
|
4479
4450
|
}
|
|
@@ -4489,7 +4460,7 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4489
4460
|
IncludeResultsViewNames: t,
|
|
4490
4461
|
SuppressResultSchemas: !1
|
|
4491
4462
|
}).then((e) => (this.set(e.Workunit), t && this.set({ ResultViews: e.ResultViews }), e)).catch((e) => {
|
|
4492
|
-
if (!e.Exception.some((e) => e.Code === 20080
|
|
4463
|
+
if (!e.Exception.some((e) => e.Code === 20080 && (this.clearState(this.Wuid), this.set("StateID", U.NotFound), !0))) throw q.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4493
4464
|
return {};
|
|
4494
4465
|
});
|
|
4495
4466
|
}
|
|
@@ -4716,7 +4687,7 @@ var lt, ut = class Activity extends s {
|
|
|
4716
4687
|
return lt ||= new Activity(e), t && lt.set(t), lt;
|
|
4717
4688
|
}
|
|
4718
4689
|
constructor(e) {
|
|
4719
|
-
super(), e instanceof SMCService ?
|
|
4690
|
+
super(), this.connection = e instanceof SMCService ? e : new SMCService(e), this.clear({});
|
|
4720
4691
|
}
|
|
4721
4692
|
runningWorkunits(e = "") {
|
|
4722
4693
|
return this.Running.ActiveWorkunit.filter((t) => e === "" || t.ClusterName === e).map((e) => st.attach(this.connection.connectionOptions(), e.Wuid, e));
|
|
@@ -4920,7 +4891,7 @@ var lt, ut = class Activity extends s {
|
|
|
4920
4891
|
return r && i.set(r), i;
|
|
4921
4892
|
}
|
|
4922
4893
|
constructor(e, t, n) {
|
|
4923
|
-
super(), e instanceof DFUService ?
|
|
4894
|
+
super(), this.connection = e instanceof DFUService ? e : new DFUService(e), this.clear({
|
|
4924
4895
|
Cluster: t,
|
|
4925
4896
|
Name: n
|
|
4926
4897
|
});
|
|
@@ -4958,7 +4929,7 @@ var lt, ut = class Activity extends s {
|
|
|
4958
4929
|
...e.FileDetail,
|
|
4959
4930
|
ProtectList: e?.FileDetail?.ProtectList ?? { DFUFileProtect: [] }
|
|
4960
4931
|
}), e.FileDetail)).catch((e) => {
|
|
4961
|
-
if (!e.Exception.some((e) => e.Code === 20038
|
|
4932
|
+
if (!e.Exception.some((e) => e.Code === 20038 && (this.set("Name", this.Name + " (Deleted)"), this.set("StateID", 999), !0))) throw dt.warning(`Unexpected ESP exception: ${e.message}`), e;
|
|
4962
4933
|
return {};
|
|
4963
4934
|
});
|
|
4964
4935
|
}
|
|
@@ -5060,7 +5031,7 @@ var lt, ut = class Activity extends s {
|
|
|
5060
5031
|
return n && r.set(n), r;
|
|
5061
5032
|
}
|
|
5062
5033
|
constructor(e) {
|
|
5063
|
-
super(), e instanceof MachineService ?
|
|
5034
|
+
super(), this.connection = e instanceof MachineService ? e : new MachineService(e);
|
|
5064
5035
|
}
|
|
5065
5036
|
}, TargetClusterCache = class extends e {
|
|
5066
5037
|
constructor() {
|
|
@@ -5191,7 +5162,7 @@ var TopologyCache = class extends e {
|
|
|
5191
5162
|
return t && n.set(t), n;
|
|
5192
5163
|
}
|
|
5193
5164
|
constructor(e) {
|
|
5194
|
-
super(), e instanceof TopologyService ?
|
|
5165
|
+
super(), this.connection = e instanceof TopologyService ? e : new TopologyService(e);
|
|
5195
5166
|
}
|
|
5196
5167
|
GetESPServiceBaseURL(e = "") {
|
|
5197
5168
|
return this.connection.TpServiceQuery({}).then((t) => {
|
|
@@ -5221,16 +5192,10 @@ var TopologyCache = class extends e {
|
|
|
5221
5192
|
}
|
|
5222
5193
|
on(e, t, n) {
|
|
5223
5194
|
if (this.isCallback(t)) switch (e) {
|
|
5224
|
-
case "changed":
|
|
5225
|
-
super.on(e, t);
|
|
5226
|
-
break;
|
|
5227
|
-
default:
|
|
5195
|
+
case "changed": super.on(e, t);
|
|
5228
5196
|
}
|
|
5229
5197
|
else switch (e) {
|
|
5230
|
-
case "changed":
|
|
5231
|
-
super.on(e, t, n);
|
|
5232
|
-
break;
|
|
5233
|
-
default:
|
|
5198
|
+
case "changed": super.on(e, t, n);
|
|
5234
5199
|
}
|
|
5235
5200
|
return this._monitor(), this;
|
|
5236
5201
|
}
|
|
@@ -5238,7 +5203,7 @@ var TopologyCache = class extends e {
|
|
|
5238
5203
|
//#endregion
|
|
5239
5204
|
//#region src/ecl/queryGraph.ts
|
|
5240
5205
|
function safeAssign(e, t, n) {
|
|
5241
|
-
t
|
|
5206
|
+
t !== "__proto__" && t !== "constructor" && t !== "prototype" && (e[t] = n);
|
|
5242
5207
|
}
|
|
5243
5208
|
function xmlEncode(e) {
|
|
5244
5209
|
return e = "" + e, e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, " ").replace(/\r/g, " ");
|
|
@@ -5559,9 +5524,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5559
5524
|
let r = new Edge$1(this, t);
|
|
5560
5525
|
this.edges.push(r), this.idx[t] = r;
|
|
5561
5526
|
break;
|
|
5562
|
-
default:
|
|
5563
|
-
console.warn("Graph.getItem - Unknown Node Type!");
|
|
5564
|
-
break;
|
|
5527
|
+
default: console.warn("Graph.getItem - Unknown Node Type!");
|
|
5565
5528
|
}
|
|
5566
5529
|
let n = this.idx[t];
|
|
5567
5530
|
return Array.from(e.attributes).forEach((e) => {
|
|
@@ -5580,55 +5543,37 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
5580
5543
|
walkDocument(e, t) {
|
|
5581
5544
|
let n = this.getItem(e, t);
|
|
5582
5545
|
return e.childNodes.forEach((e) => {
|
|
5583
|
-
|
|
5584
|
-
case
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
n.addSubgraph(r);
|
|
5595
|
-
}
|
|
5596
|
-
}
|
|
5597
|
-
if (!t) {
|
|
5598
|
-
let t = this.walkDocument(e, e.getAttribute("id"));
|
|
5599
|
-
n.addVertex(t);
|
|
5600
|
-
}
|
|
5601
|
-
break;
|
|
5602
|
-
case "att":
|
|
5603
|
-
let i = e.getAttribute("name"), a = "_" + i, o = e.getAttribute("value");
|
|
5604
|
-
i.indexOf("Time") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espTime2Seconds$1(o))) : i.indexOf("Size") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSize2Bytes(o))) : i.indexOf("Skew") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSkew2Number(o))) : safeAssign(n, i, o);
|
|
5605
|
-
break;
|
|
5606
|
-
case "edge":
|
|
5607
|
-
let s = this.walkDocument(e, e.getAttribute("id"));
|
|
5608
|
-
if (s.NumRowsProcessed === void 0 ? s.Count === void 0 ? s.count !== void 0 && (s._eclwatchCount = s.count.replace(/\B(?=(\d{3})+(?!\d))/g, ",")) : s._eclwatchCount = s.Count.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : s._eclwatchCount = s.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.inputProgress && (s._eclwatchInputProgress = "[" + s.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "]"), s.SkewMaxRowsProcessed && s.SkewMinRowsProcessed && (s._eclwatchSkew = "+" + s.SkewMaxRowsProcessed + ", " + s.SkewMinRowsProcessed), !s._dependsOn && !s._childGraph && (s._sourceActivity || s._targetActivity)) {
|
|
5609
|
-
s._isSpill = !0;
|
|
5610
|
-
let e = s.getSource();
|
|
5611
|
-
e && (e._isSpill = !0);
|
|
5612
|
-
let t = s.getTarget();
|
|
5613
|
-
t && (t._isSpill = !0);
|
|
5614
|
-
}
|
|
5615
|
-
n.addEdge(s);
|
|
5616
|
-
break;
|
|
5617
|
-
default: break;
|
|
5546
|
+
if (e.nodeType === 1) switch (e.tagName) {
|
|
5547
|
+
case "graph": break;
|
|
5548
|
+
case "node":
|
|
5549
|
+
let t = !1, r = this.getChildByTagName(e, "att");
|
|
5550
|
+
if (r) {
|
|
5551
|
+
let i = this.getChildByTagName(r, "graph");
|
|
5552
|
+
if (i) {
|
|
5553
|
+
t = !0;
|
|
5554
|
+
let r = this.walkDocument(i, e.getAttribute("id"));
|
|
5555
|
+
n.addSubgraph(r);
|
|
5556
|
+
}
|
|
5618
5557
|
}
|
|
5558
|
+
if (!t) {
|
|
5559
|
+
let t = this.walkDocument(e, e.getAttribute("id"));
|
|
5560
|
+
n.addVertex(t);
|
|
5561
|
+
}
|
|
5562
|
+
break;
|
|
5563
|
+
case "att":
|
|
5564
|
+
let i = e.getAttribute("name"), a = "_" + i, o = e.getAttribute("value");
|
|
5565
|
+
i.indexOf("Time") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espTime2Seconds$1(o))) : i.indexOf("Size") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSize2Bytes(o))) : i.indexOf("Skew") === 0 ? (safeAssign(n, a, o), safeAssign(n, i, "" + espSkew2Number(o))) : safeAssign(n, i, o);
|
|
5619
5566
|
break;
|
|
5620
|
-
case
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
case 12: break;
|
|
5631
|
-
default: break;
|
|
5567
|
+
case "edge":
|
|
5568
|
+
let s = this.walkDocument(e, e.getAttribute("id"));
|
|
5569
|
+
if (s.NumRowsProcessed === void 0 ? s.Count === void 0 ? s.count !== void 0 && (s._eclwatchCount = s.count.replace(/\B(?=(\d{3})+(?!\d))/g, ",")) : s._eclwatchCount = s.Count.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : s._eclwatchCount = s.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.inputProgress && (s._eclwatchInputProgress = "[" + s.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + "]"), s.SkewMaxRowsProcessed && s.SkewMinRowsProcessed && (s._eclwatchSkew = "+" + s.SkewMaxRowsProcessed + ", " + s.SkewMinRowsProcessed), !s._dependsOn && !s._childGraph && (s._sourceActivity || s._targetActivity)) {
|
|
5570
|
+
s._isSpill = !0;
|
|
5571
|
+
let e = s.getSource();
|
|
5572
|
+
e && (e._isSpill = !0);
|
|
5573
|
+
let t = s.getTarget();
|
|
5574
|
+
t && (t._isSpill = !0);
|
|
5575
|
+
}
|
|
5576
|
+
n.addEdge(s);
|
|
5632
5577
|
}
|
|
5633
5578
|
}), n;
|
|
5634
5579
|
}
|
|
@@ -5741,7 +5686,7 @@ var QueryCache = class extends e {
|
|
|
5741
5686
|
return this.get("PriorityID");
|
|
5742
5687
|
}
|
|
5743
5688
|
constructor(e, t, n, r) {
|
|
5744
|
-
super(), e instanceof WorkunitsService ?
|
|
5689
|
+
super(), this.wsWorkunitsService = e instanceof WorkunitsService ? e : new WorkunitsService(e), this.topology = yt.attach(this.wsWorkunitsService.opts()), this.set({
|
|
5745
5690
|
QuerySet: t,
|
|
5746
5691
|
QueryId: n,
|
|
5747
5692
|
...r
|
|
@@ -5890,7 +5835,7 @@ var QueryCache = class extends e {
|
|
|
5890
5835
|
return !0;
|
|
5891
5836
|
}
|
|
5892
5837
|
conflate(e) {
|
|
5893
|
-
return this.key === e.key
|
|
5838
|
+
return this.key === e.key && (this.value = e.value, !0);
|
|
5894
5839
|
}
|
|
5895
5840
|
void() {
|
|
5896
5841
|
return this.value === this.oldValue;
|
|
@@ -5913,7 +5858,7 @@ var QueryCache = class extends e {
|
|
|
5913
5858
|
}, () => new Store(e, t, n, r));
|
|
5914
5859
|
}
|
|
5915
5860
|
constructor(e, t, n, r) {
|
|
5916
|
-
e instanceof StoreService ?
|
|
5861
|
+
this.connection = e instanceof StoreService ? e : new StoreService(e), this.Name = t, this.UserSpecific = r, this.Namespace = n;
|
|
5917
5862
|
}
|
|
5918
5863
|
_knownValues = {};
|
|
5919
5864
|
create() {
|
|
@@ -6224,7 +6169,6 @@ var QueryCache = class extends e {
|
|
|
6224
6169
|
case $.Failed:
|
|
6225
6170
|
case $.Aborted:
|
|
6226
6171
|
case $.NotFound: return !0;
|
|
6227
|
-
default:
|
|
6228
6172
|
}
|
|
6229
6173
|
return !1;
|
|
6230
6174
|
}
|
|
@@ -6234,7 +6178,6 @@ var QueryCache = class extends e {
|
|
|
6234
6178
|
isDeleted() {
|
|
6235
6179
|
switch (this.State) {
|
|
6236
6180
|
case $.NotFound: return !0;
|
|
6237
|
-
default:
|
|
6238
6181
|
}
|
|
6239
6182
|
return !1;
|
|
6240
6183
|
}
|
|
@@ -6283,16 +6226,10 @@ var QueryCache = class extends e {
|
|
|
6283
6226
|
this.isComplete() && t([e]);
|
|
6284
6227
|
});
|
|
6285
6228
|
break;
|
|
6286
|
-
case "changed":
|
|
6287
|
-
super.on(e, t);
|
|
6288
|
-
break;
|
|
6289
|
-
default:
|
|
6229
|
+
case "changed": super.on(e, t);
|
|
6290
6230
|
}
|
|
6291
6231
|
else switch (e) {
|
|
6292
|
-
case "changed":
|
|
6293
|
-
super.on(e, t, n);
|
|
6294
|
-
break;
|
|
6295
|
-
default:
|
|
6232
|
+
case "changed": super.on(e, t, n);
|
|
6296
6233
|
}
|
|
6297
6234
|
return this._monitor(), this;
|
|
6298
6235
|
}
|