@hpcc-js/comms 3.17.7 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +119 -81
- 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 +9 -9
- package/dist/node/index.cjs.map +4 -4
- package/dist/node/index.js +9 -9
- package/dist/node/index.js.map +4 -4
- package/package.json +5 -5
- package/src/connection.ts +11 -3
- package/src/ecl/logicalFile.ts +2 -2
- package/src/ecl/workunit.ts +62 -16
- package/src/espConnection.ts +5 -0
- package/src/services/wsDFU.ts +2 -2
- package/src/services/wsWorkunits.ts +10 -0
- package/types/connection.d.ts +1 -1
- package/types/ecl/workunit.d.ts +16 -3
- package/types/services/wsDFU.d.ts +3 -3
- package/types/services/wsWorkunits.d.ts +6 -0
- 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.
|
|
6
|
+
}), S = "@hpcc-js/comms", C = "3.18.0", w = "3.33.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) {
|
|
@@ -65,7 +67,11 @@ function doFetch(e, t, n, r, i) {
|
|
|
65
67
|
headers: r
|
|
66
68
|
}, e.baseUrl.indexOf("https:") === 0 && (e.rejectUnauthorized === !1 && v.__hpcc_rejectUnauthorizedAgent ? n.dispatcher = v.__hpcc_rejectUnauthorizedAgent : v.__hpcc_trustwaveAgent && (n.agent = v.__hpcc_trustwaveAgent));
|
|
67
69
|
function handleResponse(e) {
|
|
68
|
-
if (e.ok)
|
|
70
|
+
if (e.ok) switch (i) {
|
|
71
|
+
case "json": return e.json();
|
|
72
|
+
case "arraybuffer": return e.arrayBuffer();
|
|
73
|
+
default: return e.text();
|
|
74
|
+
}
|
|
69
75
|
throw Error(e.statusText);
|
|
70
76
|
}
|
|
71
77
|
let a = v.__hpcc_undiciFetch ?? fetch;
|
|
@@ -193,6 +199,9 @@ var re = class ESPConnection {
|
|
|
193
199
|
case "text":
|
|
194
200
|
s = g(this._service, e), c = "text";
|
|
195
201
|
break;
|
|
202
|
+
case "arraybuffer":
|
|
203
|
+
s = g(this._service, e + ".json"), c = "arraybuffer";
|
|
204
|
+
break;
|
|
196
205
|
case "xsd":
|
|
197
206
|
s = g(this._service, e + ".xsd"), c = "text";
|
|
198
207
|
break;
|
|
@@ -766,91 +775,94 @@ var CodesignServiceBase = class extends Service {
|
|
|
766
775
|
})(A ||= {});
|
|
767
776
|
var DfuServiceBase = class extends Service {
|
|
768
777
|
constructor(e) {
|
|
769
|
-
super(e, "WsDfu", "1.
|
|
778
|
+
super(e, "WsDfu", "1.68");
|
|
779
|
+
}
|
|
780
|
+
Add(e, t) {
|
|
781
|
+
return this._connection.send("Add", e, "json", !1, t, "AddResponse");
|
|
770
782
|
}
|
|
771
|
-
|
|
772
|
-
return this._connection.send("
|
|
783
|
+
AddRemote(e, t) {
|
|
784
|
+
return this._connection.send("AddRemote", e, "json", !1, t, "AddRemoteResponse");
|
|
773
785
|
}
|
|
774
|
-
|
|
775
|
-
return this._connection.send("
|
|
786
|
+
AddtoSuperfile(e, t) {
|
|
787
|
+
return this._connection.send("AddtoSuperfile", e, "json", !1, t, "AddtoSuperfileResponse");
|
|
776
788
|
}
|
|
777
|
-
|
|
778
|
-
return this._connection.send("
|
|
789
|
+
DFUArrayAction(e, t) {
|
|
790
|
+
return this._connection.send("DFUArrayAction", e, "json", !1, t, "DFUArrayActionResponse");
|
|
779
791
|
}
|
|
780
|
-
|
|
781
|
-
return this._connection.send("
|
|
792
|
+
DFUBrowseData(e, t) {
|
|
793
|
+
return this._connection.send("DFUBrowseData", e, "json", !1, t, "DFUBrowseDataResponse");
|
|
782
794
|
}
|
|
783
|
-
|
|
784
|
-
return this._connection.send("
|
|
795
|
+
DFUDefFile(e, t) {
|
|
796
|
+
return this._connection.send("DFUDefFile", e, "json", !1, t, "DFUDefFileResponse");
|
|
785
797
|
}
|
|
786
|
-
|
|
787
|
-
return this._connection.send("
|
|
798
|
+
DFUFileAccess(e, t) {
|
|
799
|
+
return this._connection.send("DFUFileAccess", e, "json", !1, t, "DFUFileAccessResponse");
|
|
788
800
|
}
|
|
789
|
-
|
|
790
|
-
return this._connection.send("
|
|
801
|
+
DFUFileAccessV2(e, t) {
|
|
802
|
+
return this._connection.send("DFUFileAccessV2", e, "json", !1, t, "DFUFileAccessResponse");
|
|
791
803
|
}
|
|
792
|
-
|
|
793
|
-
return this._connection.send("
|
|
804
|
+
DFUFileCreate(e, t) {
|
|
805
|
+
return this._connection.send("DFUFileCreate", e, "json", !1, t, "DFUFileCreateResponse");
|
|
794
806
|
}
|
|
795
|
-
|
|
796
|
-
return this._connection.send("
|
|
807
|
+
DFUFileCreateV2(e, t) {
|
|
808
|
+
return this._connection.send("DFUFileCreateV2", e, "json", !1, t, "DFUFileCreateResponse");
|
|
797
809
|
}
|
|
798
|
-
|
|
799
|
-
return this._connection.send("
|
|
810
|
+
DFUFilePublish(e, t) {
|
|
811
|
+
return this._connection.send("DFUFilePublish", e, "json", !1, t, "DFUFilePublishResponse");
|
|
800
812
|
}
|
|
801
|
-
|
|
802
|
-
return this._connection.send("
|
|
813
|
+
DFUFileRename(e, t) {
|
|
814
|
+
return this._connection.send("DFUFileRename", e, "json", !1, t, "DFUFileRenameResponse");
|
|
803
815
|
}
|
|
804
|
-
DFUFileView(e) {
|
|
805
|
-
return this._connection.send("DFUFileView", e, "json", !1,
|
|
816
|
+
DFUFileView(e, t) {
|
|
817
|
+
return this._connection.send("DFUFileView", e, "json", !1, t, "DFUFileViewResponse");
|
|
806
818
|
}
|
|
807
|
-
DFUGetDataColumns(e) {
|
|
808
|
-
return this._connection.send("DFUGetDataColumns", e, "json", !1,
|
|
819
|
+
DFUGetDataColumns(e, t) {
|
|
820
|
+
return this._connection.send("DFUGetDataColumns", e, "json", !1, t, "DFUGetDataColumnsResponse");
|
|
809
821
|
}
|
|
810
|
-
DFUGetFileMetaData(e) {
|
|
811
|
-
return this._connection.send("DFUGetFileMetaData", e, "json", !1,
|
|
822
|
+
DFUGetFileMetaData(e, t) {
|
|
823
|
+
return this._connection.send("DFUGetFileMetaData", e, "json", !1, t, "DFUGetFileMetaDataResponse");
|
|
812
824
|
}
|
|
813
|
-
DFUGetMetaInquiry(e) {
|
|
814
|
-
return this._connection.send("DFUGetMetaInquiry", e, "json", !1,
|
|
825
|
+
DFUGetMetaInquiry(e, t) {
|
|
826
|
+
return this._connection.send("DFUGetMetaInquiry", e, "json", !1, t, "DFUMetaInquiryResponse");
|
|
815
827
|
}
|
|
816
|
-
DFUInfo(e) {
|
|
817
|
-
return this._connection.send("DFUInfo", e, "json", !1,
|
|
828
|
+
DFUInfo(e, t) {
|
|
829
|
+
return this._connection.send("DFUInfo", e, "json", !1, t, "DFUInfoResponse");
|
|
818
830
|
}
|
|
819
|
-
DFUQuery(e) {
|
|
820
|
-
return this._connection.send("DFUQuery", e, "json", !1,
|
|
831
|
+
DFUQuery(e, t) {
|
|
832
|
+
return this._connection.send("DFUQuery", e, "json", !1, t, "DFUQueryResponse");
|
|
821
833
|
}
|
|
822
|
-
DFURecordTypeInfo(e) {
|
|
823
|
-
return this._connection.send("DFURecordTypeInfo", e, "json", !1,
|
|
834
|
+
DFURecordTypeInfo(e, t) {
|
|
835
|
+
return this._connection.send("DFURecordTypeInfo", e, "json", !1, t, "DFURecordTypeInfoResponse");
|
|
824
836
|
}
|
|
825
|
-
DFUSearch(e) {
|
|
826
|
-
return this._connection.send("DFUSearch", e, "json", !1,
|
|
837
|
+
DFUSearch(e, t) {
|
|
838
|
+
return this._connection.send("DFUSearch", e, "json", !1, t, "DFUSearchResponse");
|
|
827
839
|
}
|
|
828
|
-
DFUSearchData(e) {
|
|
829
|
-
return this._connection.send("DFUSearchData", e, "json", !1,
|
|
840
|
+
DFUSearchData(e, t) {
|
|
841
|
+
return this._connection.send("DFUSearchData", e, "json", !1, t, "DFUSearchDataResponse");
|
|
830
842
|
}
|
|
831
|
-
DFUSpace(e) {
|
|
832
|
-
return this._connection.send("DFUSpace", e, "json", !1,
|
|
843
|
+
DFUSpace(e, t) {
|
|
844
|
+
return this._connection.send("DFUSpace", e, "json", !1, t, "DFUSpaceResponse");
|
|
833
845
|
}
|
|
834
|
-
EclRecordTypeInfo(e) {
|
|
835
|
-
return this._connection.send("EclRecordTypeInfo", e, "json", !1,
|
|
846
|
+
EclRecordTypeInfo(e, t) {
|
|
847
|
+
return this._connection.send("EclRecordTypeInfo", e, "json", !1, t, "EclRecordTypeInfoResponse");
|
|
836
848
|
}
|
|
837
|
-
EraseHistory(e) {
|
|
838
|
-
return this._connection.send("EraseHistory", e, "json", !1,
|
|
849
|
+
EraseHistory(e, t) {
|
|
850
|
+
return this._connection.send("EraseHistory", e, "json", !1, t, "EraseHistoryResponse");
|
|
839
851
|
}
|
|
840
|
-
ListHistory(e) {
|
|
841
|
-
return this._connection.send("ListHistory", e, "json", !1,
|
|
852
|
+
ListHistory(e, t) {
|
|
853
|
+
return this._connection.send("ListHistory", e, "json", !1, t, "ListHistoryResponse");
|
|
842
854
|
}
|
|
843
|
-
Ping(e) {
|
|
844
|
-
return this._connection.send("Ping", e, "json", !1,
|
|
855
|
+
Ping(e, t) {
|
|
856
|
+
return this._connection.send("Ping", e, "json", !1, t, "WsDfuPingResponse");
|
|
845
857
|
}
|
|
846
|
-
Savexml(e) {
|
|
847
|
-
return this._connection.send("Savexml", e, "json", !1,
|
|
858
|
+
Savexml(e, t) {
|
|
859
|
+
return this._connection.send("Savexml", e, "json", !1, t, "SavexmlResponse");
|
|
848
860
|
}
|
|
849
|
-
SuperfileAction(e) {
|
|
850
|
-
return this._connection.send("SuperfileAction", e, "json", !1,
|
|
861
|
+
SuperfileAction(e, t) {
|
|
862
|
+
return this._connection.send("SuperfileAction", e, "json", !1, t, "SuperfileActionResponse");
|
|
851
863
|
}
|
|
852
|
-
SuperfileList(e) {
|
|
853
|
-
return this._connection.send("SuperfileList", e, "json", !1,
|
|
864
|
+
SuperfileList(e, t) {
|
|
865
|
+
return this._connection.send("SuperfileList", e, "json", !1, t, "SuperfileListResponse");
|
|
854
866
|
}
|
|
855
867
|
}, se = A.DFUArrayActions, ce = A.DFUDefFileFormat, le = A.DFUChangeProtection, ue = A.DFUChangeRestriction, DFUService = class extends DfuServiceBase {
|
|
856
868
|
DFUFile(e) {
|
|
@@ -1174,13 +1186,13 @@ var LogaccessService = class extends LogaccessServiceBase {
|
|
|
1174
1186
|
}
|
|
1175
1187
|
};
|
|
1176
1188
|
//#endregion
|
|
1177
|
-
//#region node_modules/d3-array/src/ascending.js
|
|
1189
|
+
//#region ../../node_modules/d3-array/src/ascending.js
|
|
1178
1190
|
function ascending_default(e, t) {
|
|
1179
1191
|
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1180
1192
|
}
|
|
1181
1193
|
__name(ascending_default, "default");
|
|
1182
1194
|
//#endregion
|
|
1183
|
-
//#region node_modules/d3-array/src/bisector.js
|
|
1195
|
+
//#region ../../node_modules/d3-array/src/bisector.js
|
|
1184
1196
|
function bisector_default(e) {
|
|
1185
1197
|
return e.length === 1 && (e = ascendingComparator(e)), {
|
|
1186
1198
|
left: function(t, n, r, i) {
|
|
@@ -1206,21 +1218,21 @@ function ascendingComparator(e) {
|
|
|
1206
1218
|
};
|
|
1207
1219
|
}
|
|
1208
1220
|
//#endregion
|
|
1209
|
-
//#region node_modules/d3-array/src/bisect.js
|
|
1221
|
+
//#region ../../node_modules/d3-array/src/bisect.js
|
|
1210
1222
|
var _e = bisector_default(ascending_default);
|
|
1211
1223
|
_e.right, _e.left;
|
|
1212
1224
|
//#endregion
|
|
1213
|
-
//#region node_modules/d3-array/src/number.js
|
|
1225
|
+
//#region ../../node_modules/d3-array/src/number.js
|
|
1214
1226
|
function number_default(e) {
|
|
1215
1227
|
return e === null ? NaN : +e;
|
|
1216
1228
|
}
|
|
1217
1229
|
__name(number_default, "default");
|
|
1218
1230
|
//#endregion
|
|
1219
|
-
//#region node_modules/d3-array/src/array.js
|
|
1231
|
+
//#region ../../node_modules/d3-array/src/array.js
|
|
1220
1232
|
var ve = Array.prototype;
|
|
1221
1233
|
ve.slice, ve.map;
|
|
1222
1234
|
//#endregion
|
|
1223
|
-
//#region node_modules/d3-array/src/max.js
|
|
1235
|
+
//#region ../../node_modules/d3-array/src/max.js
|
|
1224
1236
|
function max_default(e, t) {
|
|
1225
1237
|
var n = e.length, r = -1, i, a;
|
|
1226
1238
|
if (t == null) {
|
|
@@ -1230,7 +1242,7 @@ function max_default(e, t) {
|
|
|
1230
1242
|
}
|
|
1231
1243
|
__name(max_default, "default");
|
|
1232
1244
|
//#endregion
|
|
1233
|
-
//#region node_modules/d3-array/src/mean.js
|
|
1245
|
+
//#region ../../node_modules/d3-array/src/mean.js
|
|
1234
1246
|
function mean_default(e, t) {
|
|
1235
1247
|
var n = e.length, r = n, i = -1, a, o = 0;
|
|
1236
1248
|
if (t == null) for (; ++i < n;) isNaN(a = number_default(e[i])) ? --r : o += a;
|
|
@@ -1443,8 +1455,10 @@ function newInterval(e, t, n, r) {
|
|
|
1443
1455
|
return newInterval(function(t) {
|
|
1444
1456
|
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
|
|
1445
1457
|
}, function(e, r) {
|
|
1446
|
-
if (e >= e)
|
|
1447
|
-
|
|
1458
|
+
if (e >= e) {
|
|
1459
|
+
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
|
|
1460
|
+
else for (; --r >= 0;) for (; t(e, 1), !n(e););
|
|
1461
|
+
}
|
|
1448
1462
|
});
|
|
1449
1463
|
}, n && (interval.count = function(t, r) {
|
|
1450
1464
|
return M.setTime(+t), N.setTime(+r), e(M), e(N), Math.floor(n(M, N));
|
|
@@ -2728,6 +2742,9 @@ var WorkunitsService = class extends WorkunitsServiceBase {
|
|
|
2728
2742
|
WUDetailsMeta(e) {
|
|
2729
2743
|
return this._WUDetailsMetaPromise ||= super.WUDetailsMeta(e), this._WUDetailsMetaPromise;
|
|
2730
2744
|
}
|
|
2745
|
+
WUDetailsEx(e, t, n) {
|
|
2746
|
+
return this._connection.send("WUDetails", e, n, !1, t, "WUDetailsResponse");
|
|
2747
|
+
}
|
|
2731
2748
|
WUCDebugEx(e) {
|
|
2732
2749
|
return this._connection.send("WUCDebug", e, void 0, void 0, void 0, "WUDebug").then((e) => {
|
|
2733
2750
|
let t = x(e.Result).children();
|
|
@@ -4205,8 +4222,15 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4205
4222
|
fetchDetailsMeta(e = {}) {
|
|
4206
4223
|
return this.WUDetailsMeta(e);
|
|
4207
4224
|
}
|
|
4208
|
-
fetchDetailsRaw(e = {}) {
|
|
4209
|
-
return this.WUDetails(e).then((e) =>
|
|
4225
|
+
fetchDetailsRaw(e = {}, t, n) {
|
|
4226
|
+
return this.WUDetails(e, t, n).then((e) => {
|
|
4227
|
+
switch (n) {
|
|
4228
|
+
case "arraybuffer": return e;
|
|
4229
|
+
case "text":
|
|
4230
|
+
case "xsd": return e;
|
|
4231
|
+
default: return e.Scopes.Scope;
|
|
4232
|
+
}
|
|
4233
|
+
});
|
|
4210
4234
|
}
|
|
4211
4235
|
normalizeDetails(e, t) {
|
|
4212
4236
|
let n = {
|
|
@@ -4307,8 +4331,15 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4307
4331
|
fetchInfo(e = {}) {
|
|
4308
4332
|
return this.WUInfo(e);
|
|
4309
4333
|
}
|
|
4310
|
-
fetchDetails(e = {}) {
|
|
4311
|
-
return this.WUDetails(e).then((e) =>
|
|
4334
|
+
fetchDetails(e = {}, t, n) {
|
|
4335
|
+
return this.WUDetails(e, t, n).then((e) => {
|
|
4336
|
+
switch (n) {
|
|
4337
|
+
case "arraybuffer": return e;
|
|
4338
|
+
case "text":
|
|
4339
|
+
case "xsd": return e;
|
|
4340
|
+
default: return e.Scopes.Scope.map((e) => new Scope(this, e));
|
|
4341
|
+
}
|
|
4342
|
+
});
|
|
4312
4343
|
}
|
|
4313
4344
|
fetchDetailsHierarchy(e = {}) {
|
|
4314
4345
|
return this.WUDetails(e).then((e) => {
|
|
@@ -4463,8 +4494,8 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4463
4494
|
WUDetailsMeta(e) {
|
|
4464
4495
|
return this.connection.WUDetailsMeta(e);
|
|
4465
4496
|
}
|
|
4466
|
-
WUDetails(e) {
|
|
4467
|
-
return this.connection.
|
|
4497
|
+
WUDetails(e, t, n) {
|
|
4498
|
+
return this.connection.WUDetailsEx(p({
|
|
4468
4499
|
ScopeFilter: { MaxDepth: 9999 },
|
|
4469
4500
|
ScopeOptions: {
|
|
4470
4501
|
IncludeMatchedScopesInResults: !0,
|
|
@@ -4480,7 +4511,14 @@ var q = y("workunit.ts"), WorkunitCache = class extends e {
|
|
|
4480
4511
|
IncludeCreator: !1,
|
|
4481
4512
|
IncludeCreatorType: !1
|
|
4482
4513
|
}
|
|
4483
|
-
}, e, { WUID: this.Wuid })).then((e) =>
|
|
4514
|
+
}, e, { WUID: this.Wuid }), t, n).then((e) => {
|
|
4515
|
+
switch (n) {
|
|
4516
|
+
case "arraybuffer":
|
|
4517
|
+
case "text":
|
|
4518
|
+
case "xsd": return e;
|
|
4519
|
+
default: return e.Scopes === void 0 ? e.Scopes = { Scope: [] } : e.Scopes.Scope === void 0 && (e.Scopes.Scope = []), e;
|
|
4520
|
+
}
|
|
4521
|
+
});
|
|
4484
4522
|
}
|
|
4485
4523
|
WUAction(e) {
|
|
4486
4524
|
return this.connection.WUAction({
|