@hpcc-js/comms 2.102.2 → 2.102.3
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/LICENSE +43 -43
- package/README.md +50 -50
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +2 -2
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/package.json +4 -4
- package/src/__package__.ts +3 -3
- package/src/__tests__/dfuXRef.ts +22 -22
- package/src/__tests__/https.ts +69 -69
- package/src/__tests__/workunit.ts +35 -35
- package/src/clienttools/eclMeta.ts +506 -506
- package/src/clienttools/eclcc.ts +628 -628
- package/src/connection.ts +295 -295
- package/src/ecl/activity.ts +82 -82
- package/src/ecl/dfuWorkunit.ts +363 -363
- package/src/ecl/graph.ts +196 -196
- package/src/ecl/logicalFile.ts +195 -195
- package/src/ecl/machine.ts +63 -63
- package/src/ecl/query.ts +252 -252
- package/src/ecl/queryGraph.ts +813 -813
- package/src/ecl/resource.ts +39 -39
- package/src/ecl/result.ts +236 -236
- package/src/ecl/scope.ts +192 -192
- package/src/ecl/sourceFile.ts +34 -34
- package/src/ecl/store.ts +154 -154
- package/src/ecl/targetCluster.ts +149 -149
- package/src/ecl/timer.ts +42 -42
- package/src/ecl/topology.ts +131 -131
- package/src/ecl/workunit.ts +1314 -1314
- package/src/ecl/xsdParser.ts +268 -268
- package/src/espConnection.ts +172 -172
- package/src/index-common.ts +41 -41
- package/src/index.node.ts +68 -68
- package/src/index.ts +3 -3
- package/src/pem/trustwave.ts +909 -909
- package/src/services/fileSpray.ts +48 -48
- package/src/services/wsAccess.ts +8 -8
- package/src/services/wsAccount.ts +27 -27
- package/src/services/wsCloud.ts +73 -73
- package/src/services/wsCodesign.ts +94 -94
- package/src/services/wsDFU.ts +34 -34
- package/src/services/wsDFUXRef.ts +308 -308
- package/src/services/wsDali.ts +40 -40
- package/src/services/wsEcl.ts +123 -123
- package/src/services/wsElk.ts +8 -8
- package/src/services/wsLogaccess.ts +263 -263
- package/src/services/wsMachine.ts +89 -89
- package/src/services/wsPackageProcess.ts +8 -8
- package/src/services/wsResources.ts +8 -8
- package/src/services/wsSMC.ts +24 -24
- package/src/services/wsSasha.ts +7 -7
- package/src/services/wsStore.ts +230 -230
- package/src/services/wsTopology.ts +45 -45
- package/src/services/wsWorkunits.ts +160 -160
- package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +1008 -1008
- package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -1040
- package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +929 -929
- package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
- package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
- package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
- package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
- package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
- package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
- package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
- package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +107 -107
- package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
- package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
- package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -670
- package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
- package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +885 -885
- package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
- package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
- package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
- package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
- package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
- package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
- package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
- package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3157 -3157
- package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
- package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
- package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
- package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
- package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +100 -100
- package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
- package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
- package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
- package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
- package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
- package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
- package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
- package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
- package/src/services/wsdl/wsstore/v1.02/wsstore.ts +250 -250
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/lib-es6/__package__.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/comms",
|
|
3
|
-
"version": "2.102.
|
|
3
|
+
"version": "2.102.3",
|
|
4
4
|
"description": "hpcc-js - Communications",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@hpcc-js/ddl-shim": "^2.25.1",
|
|
66
|
-
"@hpcc-js/util": "^2.53.
|
|
66
|
+
"@hpcc-js/util": "^2.53.2",
|
|
67
67
|
"@xmldom/xmldom": "0.9.8",
|
|
68
68
|
"abort-controller": "3.0.0",
|
|
69
69
|
"node-fetch": "2.7.0",
|
|
70
70
|
"safe-buffer": "5.2.1",
|
|
71
71
|
"tmp": "0.2.5",
|
|
72
|
-
"undici": "
|
|
72
|
+
"undici": "6.24.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@hpcc-js/bundle": "^2.12.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
98
98
|
},
|
|
99
99
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "67d7f21dc1fd77ed2b730c01ebaecb77b124f1a1"
|
|
101
101
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const PKG_NAME = "@hpcc-js/comms";
|
|
2
|
-
export const PKG_VERSION = "2.102.
|
|
3
|
-
export const BUILD_VERSION = "2.108.
|
|
1
|
+
export const PKG_NAME = "@hpcc-js/comms";
|
|
2
|
+
export const PKG_VERSION = "2.102.3";
|
|
3
|
+
export const BUILD_VERSION = "2.108.9";
|
package/src/__tests__/dfuXRef.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { expect } from "chai";
|
|
2
|
-
import { Connection, DFUXRefService } from "../index.node";
|
|
3
|
-
|
|
4
|
-
describe("DFUXRefService", () => {
|
|
5
|
-
it("basic", () => {
|
|
6
|
-
expect(DFUXRefService).to.exist;
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
it.skip("directories", async () => {
|
|
10
|
-
const dfuXRefService = new DFUXRefService(new Connection({ baseUrl: "https://play.hpccsystems.com:18010/", rejectUnauthorized: false }));
|
|
11
|
-
expect(dfuXRefService).to.exist;
|
|
12
|
-
const xrefNodes = await dfuXRefService.DFUXRefList().then(response => {
|
|
13
|
-
expect(response.DFUXRefListResult).to.exist;
|
|
14
|
-
expect(response.DFUXRefListResult.XRefNode).to.have.length;
|
|
15
|
-
return response.DFUXRefListResult.XRefNode;
|
|
16
|
-
});
|
|
17
|
-
await dfuXRefService.DFUXRefDirectories({ Cluster: xrefNodes[0].Name }).then(response => {
|
|
18
|
-
expect(response.DFUXRefDirectoriesQueryResult).to.exist;
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
});
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { Connection, DFUXRefService } from "../index.node";
|
|
3
|
+
|
|
4
|
+
describe("DFUXRefService", () => {
|
|
5
|
+
it("basic", () => {
|
|
6
|
+
expect(DFUXRefService).to.exist;
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it.skip("directories", async () => {
|
|
10
|
+
const dfuXRefService = new DFUXRefService(new Connection({ baseUrl: "https://play.hpccsystems.com:18010/", rejectUnauthorized: false }));
|
|
11
|
+
expect(dfuXRefService).to.exist;
|
|
12
|
+
const xrefNodes = await dfuXRefService.DFUXRefList().then(response => {
|
|
13
|
+
expect(response.DFUXRefListResult).to.exist;
|
|
14
|
+
expect(response.DFUXRefListResult.XRefNode).to.have.length;
|
|
15
|
+
return response.DFUXRefListResult.XRefNode;
|
|
16
|
+
});
|
|
17
|
+
await dfuXRefService.DFUXRefDirectories({ Cluster: xrefNodes[0].Name }).then(response => {
|
|
18
|
+
expect(response.DFUXRefDirectoriesQueryResult).to.exist;
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
});
|
package/src/__tests__/https.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import * as https from "https";
|
|
2
|
-
import { ESPConnection } from "../espConnection";
|
|
3
|
-
import { WorkunitsService } from "../services/wsWorkunits";
|
|
4
|
-
import { trustwave } from "../pem/trustwave";
|
|
5
|
-
import { expect } from "chai";
|
|
6
|
-
|
|
7
|
-
const extraRootAgent = new https.Agent({
|
|
8
|
-
ca: trustwave
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
const acceptUnauthorizedAgent = new https.Agent({
|
|
12
|
-
rejectUnauthorized: false
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
describe("https", () => {
|
|
16
|
-
it("fetch fail", () => {
|
|
17
|
-
let hasResponse = false;
|
|
18
|
-
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json").then(response => {
|
|
19
|
-
hasResponse = true;
|
|
20
|
-
}).catch(e => {
|
|
21
|
-
return true;
|
|
22
|
-
}).then(() => {
|
|
23
|
-
expect(hasResponse).to.be.false;
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("fetch with trustwave", () => {
|
|
28
|
-
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: extraRootAgent } as any).then(response => {
|
|
29
|
-
return true;
|
|
30
|
-
}).catch(e => {
|
|
31
|
-
throw e;
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it("fetch acceptUnauthorized", () => {
|
|
36
|
-
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: acceptUnauthorizedAgent } as any).then(response => {
|
|
37
|
-
return true;
|
|
38
|
-
}).catch(e => {
|
|
39
|
-
throw e;
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it("generic", () => {
|
|
44
|
-
return fetch("https://jsonplaceholder.typicode.com/todos/1").then(response => {
|
|
45
|
-
return response.json();
|
|
46
|
-
}).then(json => {
|
|
47
|
-
console.info(json);
|
|
48
|
-
}).catch(e => {
|
|
49
|
-
console.info(e.message);
|
|
50
|
-
throw e;
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it("ESPConnection", () => {
|
|
56
|
-
const connection = new ESPConnection({ baseUrl: "https://play.hpccsystems.com:18010/" }, "WsWorkunits", "1.8");
|
|
57
|
-
return connection.send("WUQuery", {}).then(response => {
|
|
58
|
-
return true;
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it("WsWorkunits", () => {
|
|
63
|
-
const service = new WorkunitsService({ baseUrl: "https://play.hpccsystems.com:18010" });
|
|
64
|
-
return service.WUQuery({}).then(response => {
|
|
65
|
-
return true;
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
});
|
|
1
|
+
import * as https from "https";
|
|
2
|
+
import { ESPConnection } from "../espConnection";
|
|
3
|
+
import { WorkunitsService } from "../services/wsWorkunits";
|
|
4
|
+
import { trustwave } from "../pem/trustwave";
|
|
5
|
+
import { expect } from "chai";
|
|
6
|
+
|
|
7
|
+
const extraRootAgent = new https.Agent({
|
|
8
|
+
ca: trustwave
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const acceptUnauthorizedAgent = new https.Agent({
|
|
12
|
+
rejectUnauthorized: false
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe("https", () => {
|
|
16
|
+
it("fetch fail", () => {
|
|
17
|
+
let hasResponse = false;
|
|
18
|
+
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json").then(response => {
|
|
19
|
+
hasResponse = true;
|
|
20
|
+
}).catch(e => {
|
|
21
|
+
return true;
|
|
22
|
+
}).then(() => {
|
|
23
|
+
expect(hasResponse).to.be.false;
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("fetch with trustwave", () => {
|
|
28
|
+
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: extraRootAgent } as any).then(response => {
|
|
29
|
+
return true;
|
|
30
|
+
}).catch(e => {
|
|
31
|
+
throw e;
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it("fetch acceptUnauthorized", () => {
|
|
36
|
+
return fetch("https://play.hpccsystems.com:18010/WsWorkunits/WUQuery.json", { agent: acceptUnauthorizedAgent } as any).then(response => {
|
|
37
|
+
return true;
|
|
38
|
+
}).catch(e => {
|
|
39
|
+
throw e;
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it("generic", () => {
|
|
44
|
+
return fetch("https://jsonplaceholder.typicode.com/todos/1").then(response => {
|
|
45
|
+
return response.json();
|
|
46
|
+
}).then(json => {
|
|
47
|
+
console.info(json);
|
|
48
|
+
}).catch(e => {
|
|
49
|
+
console.info(e.message);
|
|
50
|
+
throw e;
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("ESPConnection", () => {
|
|
56
|
+
const connection = new ESPConnection({ baseUrl: "https://play.hpccsystems.com:18010/" }, "WsWorkunits", "1.8");
|
|
57
|
+
return connection.send("WUQuery", {}).then(response => {
|
|
58
|
+
return true;
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
it("WsWorkunits", () => {
|
|
63
|
+
const service = new WorkunitsService({ baseUrl: "https://play.hpccsystems.com:18010" });
|
|
64
|
+
return service.WUQuery({}).then(response => {
|
|
65
|
+
return true;
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
});
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { expect } from "chai";
|
|
2
|
-
import { Workunit, WorkunitsService } from "../index.node";
|
|
3
|
-
|
|
4
|
-
const connection = { baseUrl: "http://localhost:8010/" };
|
|
5
|
-
|
|
6
|
-
describe("Workunit", () => {
|
|
7
|
-
it("basic", () => {
|
|
8
|
-
expect(Workunit).to.exist;
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it("clone", async () => {
|
|
12
|
-
const wu = await Workunit.create(connection);
|
|
13
|
-
await wu.update({ QueryText: "123;" });
|
|
14
|
-
await wu.submit("thor");
|
|
15
|
-
await wu.watchUntilComplete();
|
|
16
|
-
const newWu = await wu.clone();
|
|
17
|
-
expect(newWu).to.exist;
|
|
18
|
-
await newWu.delete();
|
|
19
|
-
await wu.delete();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it("ping", async () => {
|
|
23
|
-
const service = new WorkunitsService(connection);
|
|
24
|
-
const pingResponse = await service.Ping();
|
|
25
|
-
expect(pingResponse).to.exist;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it.skip("query", async () => {
|
|
29
|
-
const wus = await Workunit.query(connection, {});
|
|
30
|
-
expect(wus).to.have.length;
|
|
31
|
-
expect(wus.length).to.be.greaterThan(0);
|
|
32
|
-
const names = await wus[0].fetchServiceNames();
|
|
33
|
-
console.info(names);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { Workunit, WorkunitsService } from "../index.node";
|
|
3
|
+
|
|
4
|
+
const connection = { baseUrl: "http://localhost:8010/" };
|
|
5
|
+
|
|
6
|
+
describe("Workunit", () => {
|
|
7
|
+
it("basic", () => {
|
|
8
|
+
expect(Workunit).to.exist;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("clone", async () => {
|
|
12
|
+
const wu = await Workunit.create(connection);
|
|
13
|
+
await wu.update({ QueryText: "123;" });
|
|
14
|
+
await wu.submit("thor");
|
|
15
|
+
await wu.watchUntilComplete();
|
|
16
|
+
const newWu = await wu.clone();
|
|
17
|
+
expect(newWu).to.exist;
|
|
18
|
+
await newWu.delete();
|
|
19
|
+
await wu.delete();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it("ping", async () => {
|
|
23
|
+
const service = new WorkunitsService(connection);
|
|
24
|
+
const pingResponse = await service.Ping();
|
|
25
|
+
expect(pingResponse).to.exist;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it.skip("query", async () => {
|
|
29
|
+
const wus = await Workunit.query(connection, {});
|
|
30
|
+
expect(wus).to.have.length;
|
|
31
|
+
expect(wus.length).to.be.greaterThan(0);
|
|
32
|
+
const names = await wus[0].fetchServiceNames();
|
|
33
|
+
console.info(names);
|
|
34
|
+
});
|
|
35
|
+
});
|