@hpcc-js/comms 2.102.1 → 2.102.2

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.
Files changed (95) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +50 -50
  3. package/dist/index.es6.js.map +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.node.js.map +1 -1
  7. package/dist/index.node.min.js.map +1 -1
  8. package/package.json +5 -5
  9. package/src/__package__.ts +3 -3
  10. package/src/__tests__/dfuXRef.ts +22 -22
  11. package/src/__tests__/https.ts +69 -69
  12. package/src/__tests__/workunit.ts +35 -35
  13. package/src/clienttools/eclMeta.ts +506 -506
  14. package/src/clienttools/eclcc.ts +628 -628
  15. package/src/connection.ts +295 -295
  16. package/src/ecl/activity.ts +82 -82
  17. package/src/ecl/dfuWorkunit.ts +363 -363
  18. package/src/ecl/graph.ts +196 -196
  19. package/src/ecl/logicalFile.ts +195 -195
  20. package/src/ecl/machine.ts +63 -63
  21. package/src/ecl/query.ts +252 -252
  22. package/src/ecl/queryGraph.ts +813 -813
  23. package/src/ecl/resource.ts +39 -39
  24. package/src/ecl/result.ts +236 -236
  25. package/src/ecl/scope.ts +192 -192
  26. package/src/ecl/sourceFile.ts +34 -34
  27. package/src/ecl/store.ts +154 -154
  28. package/src/ecl/targetCluster.ts +149 -149
  29. package/src/ecl/timer.ts +42 -42
  30. package/src/ecl/topology.ts +131 -131
  31. package/src/ecl/workunit.ts +1314 -1314
  32. package/src/ecl/xsdParser.ts +268 -268
  33. package/src/espConnection.ts +172 -172
  34. package/src/index-common.ts +41 -41
  35. package/src/index.node.ts +68 -68
  36. package/src/index.ts +3 -3
  37. package/src/pem/trustwave.ts +909 -909
  38. package/src/services/fileSpray.ts +48 -48
  39. package/src/services/wsAccess.ts +8 -8
  40. package/src/services/wsAccount.ts +27 -27
  41. package/src/services/wsCloud.ts +73 -73
  42. package/src/services/wsCodesign.ts +94 -94
  43. package/src/services/wsDFU.ts +34 -34
  44. package/src/services/wsDFUXRef.ts +308 -308
  45. package/src/services/wsDali.ts +40 -40
  46. package/src/services/wsEcl.ts +123 -123
  47. package/src/services/wsElk.ts +8 -8
  48. package/src/services/wsLogaccess.ts +263 -263
  49. package/src/services/wsMachine.ts +89 -89
  50. package/src/services/wsPackageProcess.ts +8 -8
  51. package/src/services/wsResources.ts +8 -8
  52. package/src/services/wsSMC.ts +24 -24
  53. package/src/services/wsSasha.ts +7 -7
  54. package/src/services/wsStore.ts +230 -230
  55. package/src/services/wsTopology.ts +45 -45
  56. package/src/services/wsWorkunits.ts +160 -160
  57. package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +1008 -1008
  58. package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -1040
  59. package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +929 -929
  60. package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
  61. package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
  62. package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
  63. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
  64. package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
  65. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
  66. package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
  67. package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +107 -107
  68. package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
  69. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
  70. package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
  71. package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -670
  72. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
  73. package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +885 -885
  74. package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
  75. package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
  76. package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
  77. package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
  78. package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
  79. package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
  80. package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
  81. package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3157 -3157
  82. package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
  83. package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
  84. package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
  85. package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
  86. package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +100 -100
  87. package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
  88. package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
  89. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
  90. package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
  91. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
  92. package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
  93. package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
  94. package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
  95. package/src/services/wsdl/wsstore/v1.02/wsstore.ts +250 -250
@@ -1,160 +1,160 @@
1
- import { deepMixin, xml2json, XMLNode } from "@hpcc-js/util";
2
- import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.02/WsWorkunits";
3
- import { IConnection, IOptions } from "../connection";
4
-
5
- /*
6
- Response structures generated via:
7
- * http://localhost:8010/WsWorkunits/WUInfo?reqjson_
8
- * http://localhost:8010/WsWorkunits/WUInfo?respjson_
9
- * http://json2ts.com/
10
- */
11
-
12
- export {
13
- WsWorkunits
14
- };
15
-
16
- export enum WUStateID {
17
- Unknown = 0,
18
- Compiled,
19
- Running,
20
- Completed,
21
- Failed,
22
- Archived,
23
- Aborting,
24
- Aborted,
25
- Blocked,
26
- Submitted,
27
- Scheduled,
28
- Compiling,
29
- Wait,
30
- UploadingFiled,
31
- DebugPaused,
32
- DebugRunning,
33
- Paused,
34
- LAST,
35
- NotFound = 999
36
- }
37
-
38
- export namespace WUUpdate {
39
- export enum Action {
40
- Unknown = 0,
41
- Compile,
42
- Check,
43
- Run,
44
- ExecuteExisting,
45
- Pause,
46
- PauseNow,
47
- Resume,
48
- Debug,
49
- __size
50
- }
51
- }
52
- export function isECLResult(_: any): _ is WsWorkunits.ECLResult {
53
- return typeof (_ as WsWorkunits.ECLResult).Name === "string";
54
- }
55
-
56
- export function isWUQueryECLWorkunit(_: WsWorkunits.ECLWorkunit | WsWorkunits.Workunit): _ is WsWorkunits.ECLWorkunit {
57
- return (_ as WsWorkunits.ECLWorkunit).TotalClusterTime !== undefined;
58
- }
59
-
60
- export function isWUInfoWorkunit(_: WsWorkunits.ECLWorkunit | WsWorkunits.Workunit): _ is WsWorkunits.Workunit {
61
- return (_ as WsWorkunits.Workunit).StateEx !== undefined;
62
- }
63
- export class WorkunitsService extends WorkunitsServiceBase {
64
-
65
- constructor(optsConnection: IOptions | IConnection) {
66
- super(optsConnection);
67
- }
68
-
69
- Ping(): Promise<WsWorkunits.WsWorkunitsPingResponse> {
70
- return this._connection.send("Ping", {}, "json", false, undefined, "WsWorkunitsPingResponse").then((response) => {
71
- return { result: true };
72
- }).catch((e: Error) => {
73
- return { result: false, error: e };
74
- });
75
- }
76
-
77
- WUQuery(request: Partial<WsWorkunits.WUQuery> = {}, abortSignal?: AbortSignal): Promise<WsWorkunits.WUQueryResponse> {
78
- return this._connection.send("WUQuery", request, "json", false, abortSignal).then((response) => {
79
- return deepMixin({ Workunits: { ECLWorkunit: [] } }, response);
80
- });
81
- }
82
-
83
- WUInfo(_request: Partial<WsWorkunits.WUInfo>): Promise<WsWorkunits.WUInfoResponse> {
84
- const request: Partial<WsWorkunits.WUInfo> = {
85
- Wuid: "",
86
- TruncateEclTo64k: true,
87
- IncludeExceptions: false,
88
- IncludeGraphs: false,
89
- IncludeSourceFiles: false,
90
- IncludeResults: false,
91
- IncludeResultsViewNames: false,
92
- IncludeVariables: false,
93
- IncludeTimers: false,
94
- IncludeDebugValues: false,
95
- IncludeApplicationValues: false,
96
- IncludeWorkflows: false,
97
- IncludeXmlSchemas: false,
98
- IncludeResourceURLs: false,
99
- IncludeECL: false,
100
- IncludeHelpers: false,
101
- IncludeAllowedClusters: false,
102
- IncludeTotalClusterTime: false,
103
- IncludeServiceNames: false,
104
- SuppressResultSchemas: true,
105
- ..._request
106
- };
107
- return super.WUInfo(request);
108
- }
109
-
110
- WUCreate(): Promise<WsWorkunits.WUCreateResponse> {
111
- return super.WUCreate({});
112
- }
113
-
114
- WUUpdate(request: Partial<WsWorkunits.WUUpdate>): Promise<WsWorkunits.WUUpdateResponse> {
115
- return this._connection.send("WUUpdate", request, "json", true);
116
- }
117
-
118
- WUResubmit(request: WsWorkunits.WUResubmit): Promise<WsWorkunits.WUResubmitResponse> {
119
- this._connection.toESPStringArray(request, "Wuids");
120
- return super.WUResubmit(request);
121
- }
122
-
123
- WUAction(request: Partial<WsWorkunits.WUAction>): Promise<WsWorkunits.WUActionResponse> {
124
- (request as any).ActionType = request.WUActionType; // v5.x compatibility
125
- return super.WUAction(request);
126
- }
127
-
128
- WUResult(request: Partial<WsWorkunits.WUResult>, abortSignal?: AbortSignal): Promise<WsWorkunits.WUResultResponse> {
129
- return this._connection.send("WUResult", request, "json", false, abortSignal);
130
- }
131
-
132
- WUFileEx(request: Partial<WsWorkunits.WUFile>): Promise<string> {
133
- return this._connection.send("WUFile", request, "text");
134
- }
135
-
136
- private _WUDetailsMetaPromise: Promise<WsWorkunits.WUDetailsMetaResponse>;
137
- WUDetailsMeta(request: WsWorkunits.WUDetailsMeta): Promise<WsWorkunits.WUDetailsMetaResponse> {
138
- if (!this._WUDetailsMetaPromise) {
139
- this._WUDetailsMetaPromise = super.WUDetailsMeta(request);
140
- }
141
- return this._WUDetailsMetaPromise;
142
- }
143
-
144
- WUCDebugEx(request: WsWorkunits.WUCDebug): Promise<XMLNode | null> {
145
- return this._connection.send("WUCDebug", request, undefined, undefined, undefined, "WUDebug").then((response) => {
146
- const retVal = xml2json(response.Result);
147
- const children = retVal.children();
148
- if (children.length) {
149
- return children[0];
150
- }
151
- return null;
152
- });
153
- }
154
- }
155
-
156
- export class WorkunitsServiceEx extends WorkunitsServiceBase {
157
- WUPublishWorkunitEx(request: Partial<WsWorkunits.WUPublishWorkunit>): Promise<WsWorkunits.WUPublishWorkunitResponse> {
158
- return this._connection.send("WUPublishWorkunit", request);
159
- }
160
- }
1
+ import { deepMixin, xml2json, XMLNode } from "@hpcc-js/util";
2
+ import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.02/WsWorkunits";
3
+ import { IConnection, IOptions } from "../connection";
4
+
5
+ /*
6
+ Response structures generated via:
7
+ * http://localhost:8010/WsWorkunits/WUInfo?reqjson_
8
+ * http://localhost:8010/WsWorkunits/WUInfo?respjson_
9
+ * http://json2ts.com/
10
+ */
11
+
12
+ export {
13
+ WsWorkunits
14
+ };
15
+
16
+ export enum WUStateID {
17
+ Unknown = 0,
18
+ Compiled,
19
+ Running,
20
+ Completed,
21
+ Failed,
22
+ Archived,
23
+ Aborting,
24
+ Aborted,
25
+ Blocked,
26
+ Submitted,
27
+ Scheduled,
28
+ Compiling,
29
+ Wait,
30
+ UploadingFiled,
31
+ DebugPaused,
32
+ DebugRunning,
33
+ Paused,
34
+ LAST,
35
+ NotFound = 999
36
+ }
37
+
38
+ export namespace WUUpdate {
39
+ export enum Action {
40
+ Unknown = 0,
41
+ Compile,
42
+ Check,
43
+ Run,
44
+ ExecuteExisting,
45
+ Pause,
46
+ PauseNow,
47
+ Resume,
48
+ Debug,
49
+ __size
50
+ }
51
+ }
52
+ export function isECLResult(_: any): _ is WsWorkunits.ECLResult {
53
+ return typeof (_ as WsWorkunits.ECLResult).Name === "string";
54
+ }
55
+
56
+ export function isWUQueryECLWorkunit(_: WsWorkunits.ECLWorkunit | WsWorkunits.Workunit): _ is WsWorkunits.ECLWorkunit {
57
+ return (_ as WsWorkunits.ECLWorkunit).TotalClusterTime !== undefined;
58
+ }
59
+
60
+ export function isWUInfoWorkunit(_: WsWorkunits.ECLWorkunit | WsWorkunits.Workunit): _ is WsWorkunits.Workunit {
61
+ return (_ as WsWorkunits.Workunit).StateEx !== undefined;
62
+ }
63
+ export class WorkunitsService extends WorkunitsServiceBase {
64
+
65
+ constructor(optsConnection: IOptions | IConnection) {
66
+ super(optsConnection);
67
+ }
68
+
69
+ Ping(): Promise<WsWorkunits.WsWorkunitsPingResponse> {
70
+ return this._connection.send("Ping", {}, "json", false, undefined, "WsWorkunitsPingResponse").then((response) => {
71
+ return { result: true };
72
+ }).catch((e: Error) => {
73
+ return { result: false, error: e };
74
+ });
75
+ }
76
+
77
+ WUQuery(request: Partial<WsWorkunits.WUQuery> = {}, abortSignal?: AbortSignal): Promise<WsWorkunits.WUQueryResponse> {
78
+ return this._connection.send("WUQuery", request, "json", false, abortSignal).then((response) => {
79
+ return deepMixin({ Workunits: { ECLWorkunit: [] } }, response);
80
+ });
81
+ }
82
+
83
+ WUInfo(_request: Partial<WsWorkunits.WUInfo>): Promise<WsWorkunits.WUInfoResponse> {
84
+ const request: Partial<WsWorkunits.WUInfo> = {
85
+ Wuid: "",
86
+ TruncateEclTo64k: true,
87
+ IncludeExceptions: false,
88
+ IncludeGraphs: false,
89
+ IncludeSourceFiles: false,
90
+ IncludeResults: false,
91
+ IncludeResultsViewNames: false,
92
+ IncludeVariables: false,
93
+ IncludeTimers: false,
94
+ IncludeDebugValues: false,
95
+ IncludeApplicationValues: false,
96
+ IncludeWorkflows: false,
97
+ IncludeXmlSchemas: false,
98
+ IncludeResourceURLs: false,
99
+ IncludeECL: false,
100
+ IncludeHelpers: false,
101
+ IncludeAllowedClusters: false,
102
+ IncludeTotalClusterTime: false,
103
+ IncludeServiceNames: false,
104
+ SuppressResultSchemas: true,
105
+ ..._request
106
+ };
107
+ return super.WUInfo(request);
108
+ }
109
+
110
+ WUCreate(): Promise<WsWorkunits.WUCreateResponse> {
111
+ return super.WUCreate({});
112
+ }
113
+
114
+ WUUpdate(request: Partial<WsWorkunits.WUUpdate>): Promise<WsWorkunits.WUUpdateResponse> {
115
+ return this._connection.send("WUUpdate", request, "json", true);
116
+ }
117
+
118
+ WUResubmit(request: WsWorkunits.WUResubmit): Promise<WsWorkunits.WUResubmitResponse> {
119
+ this._connection.toESPStringArray(request, "Wuids");
120
+ return super.WUResubmit(request);
121
+ }
122
+
123
+ WUAction(request: Partial<WsWorkunits.WUAction>): Promise<WsWorkunits.WUActionResponse> {
124
+ (request as any).ActionType = request.WUActionType; // v5.x compatibility
125
+ return super.WUAction(request);
126
+ }
127
+
128
+ WUResult(request: Partial<WsWorkunits.WUResult>, abortSignal?: AbortSignal): Promise<WsWorkunits.WUResultResponse> {
129
+ return this._connection.send("WUResult", request, "json", false, abortSignal);
130
+ }
131
+
132
+ WUFileEx(request: Partial<WsWorkunits.WUFile>): Promise<string> {
133
+ return this._connection.send("WUFile", request, "text");
134
+ }
135
+
136
+ private _WUDetailsMetaPromise: Promise<WsWorkunits.WUDetailsMetaResponse>;
137
+ WUDetailsMeta(request: WsWorkunits.WUDetailsMeta): Promise<WsWorkunits.WUDetailsMetaResponse> {
138
+ if (!this._WUDetailsMetaPromise) {
139
+ this._WUDetailsMetaPromise = super.WUDetailsMeta(request);
140
+ }
141
+ return this._WUDetailsMetaPromise;
142
+ }
143
+
144
+ WUCDebugEx(request: WsWorkunits.WUCDebug): Promise<XMLNode | null> {
145
+ return this._connection.send("WUCDebug", request, undefined, undefined, undefined, "WUDebug").then((response) => {
146
+ const retVal = xml2json(response.Result);
147
+ const children = retVal.children();
148
+ if (children.length) {
149
+ return children[0];
150
+ }
151
+ return null;
152
+ });
153
+ }
154
+ }
155
+
156
+ export class WorkunitsServiceEx extends WorkunitsServiceBase {
157
+ WUPublishWorkunitEx(request: Partial<WsWorkunits.WUPublishWorkunit>): Promise<WsWorkunits.WUPublishWorkunitResponse> {
158
+ return this._connection.send("WUPublishWorkunit", request);
159
+ }
160
+ }