@hpcc-js/comms 3.6.3 → 3.7.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 +15 -2
- 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 +110 -13
- package/dist/node/index.cjs.map +4 -4
- package/dist/node/index.js +110 -13
- package/dist/node/index.js.map +4 -4
- package/package.json +4 -4
- package/src/__package__.ts +2 -2
- package/src/clienttools/eclMeta.ts +2 -2
- package/src/clienttools/eclcc.ts +4 -4
- package/src/ecl/logicalFile.ts +4 -0
- package/src/ecl/scope.ts +0 -4
- package/src/index.node.ts +1 -1
- package/src/services/wsAccount.ts +1 -1
- package/src/services/wsDFU.ts +16 -0
- package/src/services/wsdl/ws_account/v1.07/ws_account.ts +114 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/logicalFile.d.ts +1 -0
- package/types/services/wsAccount.d.ts +1 -1
- package/types/services/wsDFU.d.ts +4 -0
- package/types/services/wsdl/ws_account/{v1.06 → v1.07}/ws_account.d.ts +4 -0
package/dist/browser/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
4
4
|
import { scopedLogger, join, promiseTimeout, exists, deepMixin, xml2json, StateObject, Cache, Graph, Subgraph as Subgraph$1, Vertex as Vertex$1, Edge as Edge$1, SAXStackParser, Stack, espTime2Seconds as espTime2Seconds$1, deepMixinT, XMLNode, debounce, Message, Dispatch } from "@hpcc-js/util";
|
|
5
|
-
const PKG_NAME = "@hpcc-js/comms", PKG_VERSION = "3.6.
|
|
5
|
+
const PKG_NAME = "@hpcc-js/comms", PKG_VERSION = "3.6.3", BUILD_VERSION = "3.7.3", logger$6 = scopedLogger("comms/connection.ts");
|
|
6
6
|
function instanceOfIOptions(object) {
|
|
7
7
|
return "baseUrl" in object;
|
|
8
8
|
}
|
|
@@ -546,7 +546,7 @@ class AccessService extends AccessServiceBase {
|
|
|
546
546
|
}
|
|
547
547
|
class AccountServiceBase extends Service {
|
|
548
548
|
constructor(optsConnection) {
|
|
549
|
-
super(optsConnection, "ws_account", "1.
|
|
549
|
+
super(optsConnection, "ws_account", "1.07");
|
|
550
550
|
}
|
|
551
551
|
MyAccount(request) {
|
|
552
552
|
return this._connection.send("MyAccount", request, "json", !1, void 0, "MyAccountResponse");
|
|
@@ -871,6 +871,16 @@ class DFUService extends DfuServiceBase {
|
|
|
871
871
|
DFUFile(request) {
|
|
872
872
|
return this._connection.send("DFUDefFile", request, "text");
|
|
873
873
|
}
|
|
874
|
+
async recursiveFetchLogicalFiles(superFiles) {
|
|
875
|
+
const childSuperFiles = [], logicalFiles = [];
|
|
876
|
+
return await Promise.all(superFiles.map((superFile) => this.DFUInfo({ Cluster: superFile.NodeGroup, Name: superFile.Name, IncludeJsonTypeInfo: !1, IncludeBinTypeInfo: !1, ForceIndexInfo: !1 }).then((response) => {
|
|
877
|
+
var _a, _b, _c, _d;
|
|
878
|
+
for (const child of ((_b = (_a = response == null ? void 0 : response.FileDetail) == null ? void 0 : _a.Superfiles) == null ? void 0 : _b.DFULogicalFile) ?? [])
|
|
879
|
+
childSuperFiles.push(child);
|
|
880
|
+
for (const child of ((_d = (_c = response == null ? void 0 : response.FileDetail) == null ? void 0 : _c.subfiles) == null ? void 0 : _d.Item) ?? [])
|
|
881
|
+
logicalFiles.push(child);
|
|
882
|
+
}))), logicalFiles.concat(childSuperFiles.length ? await this.recursiveFetchLogicalFiles(childSuperFiles) : []);
|
|
883
|
+
}
|
|
874
884
|
}
|
|
875
885
|
class DFUXRefService extends Service {
|
|
876
886
|
constructor(optsConnection) {
|
|
@@ -4861,6 +4871,9 @@ class LogicalFile extends StateObject {
|
|
|
4861
4871
|
fetchDefFile(format2) {
|
|
4862
4872
|
return this.connection.DFUFile({ Name: this.Name, Format: format2 });
|
|
4863
4873
|
}
|
|
4874
|
+
fetchAllLogicalFiles() {
|
|
4875
|
+
return this.connection.recursiveFetchLogicalFiles([this]);
|
|
4876
|
+
}
|
|
4864
4877
|
fetchListHistory() {
|
|
4865
4878
|
return this.connection.ListHistory({ Name: this.Name }).then((response) => {
|
|
4866
4879
|
var _a;
|