@hpcc-js/comms 3.15.2 → 3.15.4

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 (109) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +50 -50
  3. package/dist/browser/index.js +1 -1
  4. package/dist/browser/index.js.map +1 -1
  5. package/dist/browser/index.umd.cjs +1 -1
  6. package/dist/browser/index.umd.cjs.map +1 -1
  7. package/dist/node/index.cjs +10 -10
  8. package/dist/node/index.cjs.map +3 -3
  9. package/dist/node/index.js +10 -10
  10. package/dist/node/index.js.map +3 -3
  11. package/package.json +7 -7
  12. package/src/__package__.ts +3 -3
  13. package/src/clienttools/eclMeta.ts +506 -506
  14. package/src/clienttools/eclcc.ts +628 -628
  15. package/src/connection.ts +288 -288
  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 +196 -196
  20. package/src/ecl/machine.ts +63 -63
  21. package/src/ecl/query.ts +265 -265
  22. package/src/ecl/queryGraph.ts +813 -813
  23. package/src/ecl/resource.ts +39 -39
  24. package/src/ecl/result.ts +245 -245
  25. package/src/ecl/scope.ts +188 -188
  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 +1340 -1340
  32. package/src/ecl/xsdParser.ts +267 -267
  33. package/src/espConnection.ts +164 -164
  34. package/src/index.browser.ts +1 -1
  35. package/src/index.common.ts +40 -40
  36. package/src/index.node.ts +48 -48
  37. package/src/pem/trustwave.ts +909 -909
  38. package/src/services/fileSpray.ts +73 -73
  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 +18 -18
  43. package/src/services/wsDFU.ts +34 -34
  44. package/src/services/wsDFUXRef.ts +121 -121
  45. package/src/services/wsDali.ts +8 -8
  46. package/src/services/wsEcl.ts +123 -123
  47. package/src/services/wsElk.ts +8 -8
  48. package/src/services/wsLogaccess.ts +270 -267
  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 +80 -80
  53. package/src/services/wsSasha.ts +7 -7
  54. package/src/services/wsStore.ts +32 -32
  55. package/src/services/wsTopology.ts +45 -45
  56. package/src/services/wsWorkunits.ts +151 -151
  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/FileSpray/v1.27/FileSpray.ts +930 -930
  61. package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
  62. package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
  63. package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
  64. package/src/services/wsdl/WsDFUXRef/v1.04/WsDFUXRef.ts +227 -227
  65. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
  66. package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
  67. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
  68. package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
  69. package/src/services/wsdl/WsDfu/v1.66/WsDfu.ts +1267 -1267
  70. package/src/services/wsdl/WsDfu/v1.67/WsDfu.ts +1268 -1268
  71. package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +104 -104
  72. package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
  73. package/src/services/wsdl/WsPackageProcess/v1.07/WsPackageProcess.ts +500 -500
  74. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
  75. package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
  76. package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +591 -591
  77. package/src/services/wsdl/WsSMC/v1.28/WsSMC.ts +645 -645
  78. package/src/services/wsdl/WsSMC/v1.29/WsSMC.ts +660 -660
  79. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
  80. package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +786 -786
  81. package/src/services/wsdl/WsTopology/v1.33/WsTopology.ts +835 -835
  82. package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
  83. package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
  84. package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
  85. package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
  86. package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
  87. package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
  88. package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
  89. package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3162 -3162
  90. package/src/services/wsdl/WsWorkunits/v2.03/WsWorkunits.ts +3164 -3164
  91. package/src/services/wsdl/WsWorkunits/v2.04/WsWorkunits.ts +3171 -3171
  92. package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
  93. package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
  94. package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
  95. package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
  96. package/src/services/wsdl/ws_account/v1.07/ws_account.ts +114 -114
  97. package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +95 -95
  98. package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
  99. package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
  100. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
  101. package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
  102. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
  103. package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
  104. package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
  105. package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
  106. package/src/services/wsdl/ws_machine/v1.18/ws_machine.ts +497 -497
  107. package/src/services/wsdl/ws_machine/v1.19/ws_machine.ts +497 -497
  108. package/src/services/wsdl/wsstore/v1.02/wsstore.ts +239 -239
  109. package/types/services/wsLogaccess.d.ts +1 -0
@@ -1,665 +1,665 @@
1
- import { IConnection, IOptions } from "../../../../connection.ts";
2
- import { Service } from "../../../../espConnection.ts";
3
-
4
- type int = number;
5
- type unsignedInt = number;
6
- type long = number;
7
-
8
- export enum LockModes {
9
- ALL = "ALL",
10
- READ = "READ",
11
- WRITE = "WRITE",
12
- HOLD = "HOLD",
13
- SUB = "SUB"
14
- }
15
-
16
- export enum RoxieControlCmdType {
17
- Attach = "Attach",
18
- Detach = "Detach",
19
- State = "State",
20
- Reload = "Reload",
21
- ReloadRetry = "ReloadRetry"
22
- }
23
-
24
- export namespace WsSMC {
25
-
26
- export interface Activity {
27
- ChatURL: string;
28
- BannerContent: string;
29
- BannerColor: string;
30
- BannerSize: string;
31
- BannerScroll: string;
32
- BannerAction: int;
33
- EnableChatURL: boolean;
34
- FromSubmitBtn: boolean;
35
- SortBy: string;
36
- Descending: boolean;
37
- }
38
-
39
- export interface Exception {
40
- Code: string;
41
- Audience: string;
42
- Source: string;
43
- Message: string;
44
- }
45
-
46
- export interface Exceptions {
47
- Source: string;
48
- Exception: Exception[];
49
- }
50
-
51
- export interface TargetCluster {
52
- ClusterName: string;
53
- QueueName: string;
54
- QueueStatus: string;
55
- StatusDetails: string;
56
- Warning: string;
57
- ClusterType: int;
58
- ClusterSize: int;
59
- ClusterStatus: int;
60
- }
61
-
62
- export interface ThorClusterList {
63
- TargetCluster: TargetCluster[];
64
- }
65
-
66
- export interface RoxieClusterList {
67
- TargetCluster: TargetCluster[];
68
- }
69
-
70
- export interface HThorClusterList {
71
- TargetCluster: TargetCluster[];
72
- }
73
-
74
- export interface DFUJob {
75
- TimeStarted: string;
76
- Done: int;
77
- Total: int;
78
- Command: string;
79
- }
80
-
81
- export interface DFUJobs {
82
- DFUJob: DFUJob[];
83
- }
84
-
85
- export interface ActiveWorkunit {
86
- Wuid: string;
87
- State: string;
88
- StateID: int;
89
- Owner: string;
90
- Jobname: string;
91
- Server: string;
92
- Instance: string;
93
- Priority: string;
94
- Extra: string;
95
- GraphName: string;
96
- Duration: string;
97
- GID: string;
98
- QueueName: string;
99
- MemoryBlocked: int;
100
- IsPausing: boolean;
101
- Warning: string;
102
- ClusterName: string;
103
- ClusterType: string;
104
- ClusterQueueName: string;
105
- TargetClusterName: string;
106
- }
107
-
108
- export interface Running {
109
- ActiveWorkunit: ActiveWorkunit[];
110
- }
111
-
112
- export interface Queues {
113
- ServerJobQueue: ServerJobQueue[];
114
- }
115
-
116
- export interface ServerJobQueue {
117
- QueueName: string;
118
- Queues: {
119
- ServerJobQueue: ServerJobQueue[];
120
- };
121
- ServerName: string;
122
- ServerType: string;
123
- QueueStatus: string;
124
- StatusDetails: string;
125
- NetworkAddress: string;
126
- Port: int;
127
- }
128
-
129
- export interface ServerJobQueues {
130
- ServerJobQueue: ServerJobQueue[];
131
- }
132
-
133
- export interface ActivityResponse {
134
- Exceptions: {
135
- Source: string;
136
- Exception: Exception[];
137
- };
138
- Build: string;
139
- ThorClusterList: {
140
- TargetCluster: TargetCluster[];
141
- };
142
- RoxieClusterList: {
143
- TargetCluster: TargetCluster[];
144
- };
145
- HThorClusterList: {
146
- TargetCluster: TargetCluster[];
147
- };
148
- DFUJobs: {
149
- DFUJob: DFUJob[];
150
- };
151
- Running: {
152
- ActiveWorkunit: ActiveWorkunit[];
153
- };
154
- BannerContent: string;
155
- BannerColor: string;
156
- BannerSize: string;
157
- BannerScroll: string;
158
- ChatURL: string;
159
- ShowBanner: int;
160
- ShowChatURL: int;
161
- SortBy: string;
162
- Descending: boolean;
163
- SuperUser: boolean;
164
- AccessRight: string;
165
- ServerJobQueues: {
166
- ServerJobQueue: ServerJobQueue[];
167
- };
168
- ActivityTime: string;
169
- DaliDetached: boolean;
170
- }
171
-
172
- export interface BrowseResources {
173
-
174
- }
175
-
176
- export interface HPCCResource {
177
- Name: string;
178
- Description: string;
179
- FileName: string;
180
- Version: string;
181
- }
182
-
183
- export interface HPCCResources {
184
- HPCCResource: HPCCResource[];
185
- }
186
-
187
- export interface HPCCResourceRepository {
188
- Name: string;
189
- Path: string;
190
- HPCCResources: {
191
- HPCCResource: HPCCResource[];
192
- };
193
- }
194
-
195
- export interface HPCCResourceRepositories {
196
- HPCCResourceRepository: HPCCResourceRepository[];
197
- }
198
-
199
- export interface BrowseResourcesResponse {
200
- Exceptions: Exceptions;
201
- PortalURL: string;
202
- NetAddress: string;
203
- OS: int;
204
- UseResource: boolean;
205
- HPCCResourceRepositories: {
206
- HPCCResourceRepository: HPCCResourceRepository[];
207
- };
208
- }
209
-
210
- export interface ClearQueue {
211
- Cluster: string;
212
- QueueName: string;
213
- Comment: string;
214
- ServerType: string;
215
- NetworkAddress: string;
216
- Port: int;
217
- }
218
-
219
- export interface TargetClusterInfo {
220
- ClusterName: string;
221
- QueueName: string;
222
- QueueStatus: string;
223
- StatusDetails: string;
224
- Warning: string;
225
- ClusterType: int;
226
- ClusterSize: int;
227
- ClusterStatus: int;
228
- }
229
-
230
- export interface ServerInfo {
231
- QueueName: string;
232
- Queues: Queues;
233
- ServerName: string;
234
- ServerType: string;
235
- QueueStatus: string;
236
- StatusDetails: string;
237
- NetworkAddress: string;
238
- Port: int;
239
- }
240
-
241
- export interface Workunits {
242
- ActiveWorkunit: ActiveWorkunit[];
243
- }
244
-
245
- export interface StatusServerInfo {
246
- TargetClusterInfo: {
247
- ClusterName: string;
248
- QueueName: string;
249
- QueueStatus: string;
250
- StatusDetails: string;
251
- Warning: string;
252
- ClusterType: int;
253
- ClusterSize: int;
254
- ClusterStatus: int;
255
- };
256
- ServerInfo: {
257
- QueueName: string;
258
- Queues: Queues;
259
- ServerName: string;
260
- ServerType: string;
261
- QueueStatus: string;
262
- StatusDetails: string;
263
- NetworkAddress: string;
264
- Port: int;
265
- };
266
- Workunits: {
267
- ActiveWorkunit: ActiveWorkunit[];
268
- };
269
- }
270
-
271
- export interface SMCQueueResponse {
272
- Exceptions: Exceptions;
273
- StatusServerInfo: {
274
- TargetClusterInfo: {
275
- ClusterName: string;
276
- QueueName: string;
277
- QueueStatus: string;
278
- StatusDetails: string;
279
- Warning: string;
280
- ClusterType: int;
281
- ClusterSize: int;
282
- ClusterStatus: int;
283
- };
284
- ServerInfo: {
285
- QueueName: string;
286
- Queues: Queues;
287
- ServerName: string;
288
- ServerType: string;
289
- QueueStatus: string;
290
- StatusDetails: string;
291
- NetworkAddress: string;
292
- Port: int;
293
- };
294
- Workunits: {
295
- ActiveWorkunit: ActiveWorkunit[];
296
- };
297
- };
298
- }
299
-
300
- export interface GetBuildInfo {
301
-
302
- }
303
-
304
- export interface NamedValue {
305
- Name: string;
306
- Value: string;
307
- }
308
-
309
- export interface BuildInfo {
310
- NamedValue: NamedValue[];
311
- }
312
-
313
- export interface GetBuildInfoResponse {
314
- Exceptions: Exceptions;
315
- BuildInfo: {
316
- NamedValue: NamedValue[];
317
- };
318
- }
319
-
320
- export interface GetStatusServerInfo {
321
- ServerName: string;
322
- ServerType: string;
323
- NetworkAddress: string;
324
- Port: int;
325
- }
326
-
327
- export interface GetStatusServerInfoResponse {
328
- Exceptions: Exceptions;
329
- StatusServerInfo: StatusServerInfo;
330
- }
331
-
332
- export interface GetThorQueueAvailability {
333
-
334
- }
335
-
336
- export interface ThorCluster {
337
- ClusterName: string;
338
- QueueName: string;
339
- QueueStatus: string;
340
- QueueAvailable: int;
341
- JobsRunning: int;
342
- JobsInQueue: int;
343
- QueueStatus2: int;
344
- ThorLCR: string;
345
- ClusterSize: int;
346
- }
347
-
348
- export interface ThorClusters {
349
- ThorCluster: ThorCluster[];
350
- }
351
-
352
- export interface GetThorQueueAvailabilityResponse {
353
- Exceptions: Exceptions;
354
- ThorClusters: {
355
- ThorCluster: ThorCluster[];
356
- };
357
- }
358
-
359
- export interface Index {
360
-
361
- }
362
-
363
- export interface SMCIndexResponse {
364
- Exceptions: Exceptions;
365
- }
366
-
367
- export interface LockQuery {
368
- EPIP: string;
369
- XPath: string;
370
- DurationMSLow: unsignedInt;
371
- DurationMSHigh: unsignedInt;
372
- TimeLockedLow: string;
373
- TimeLockedHigh: string;
374
- Mode: LockModes;
375
- AllFileLocks: boolean;
376
- }
377
-
378
- export interface ModeNames {
379
- Item: string[];
380
- }
381
-
382
- export interface Lock {
383
- EPIP: string;
384
- XPath: string;
385
- LogicalFile: string;
386
- SessionID: long;
387
- DurationMS: unsignedInt;
388
- TimeLocked: string;
389
- Modes: string;
390
- ModeNames: {
391
- Item: string[];
392
- };
393
- }
394
-
395
- export interface Locks {
396
- Lock: Lock[];
397
- }
398
-
399
- export interface LockQueryResponse {
400
- Exceptions: Exceptions;
401
- Locks: {
402
- Lock: Lock[];
403
- };
404
- NumLocks: int;
405
- }
406
-
407
- export interface MoveJobBack {
408
- ClusterType: int;
409
- Cluster: string;
410
- QueueName: string;
411
- Wuid: string;
412
- }
413
-
414
- export interface SMCJobResponse {
415
- Exceptions: Exceptions;
416
- }
417
-
418
- export interface MoveJobDown {
419
- ClusterType: int;
420
- Cluster: string;
421
- QueueName: string;
422
- Wuid: string;
423
- }
424
-
425
- export interface MoveJobFront {
426
- ClusterType: int;
427
- Cluster: string;
428
- QueueName: string;
429
- Wuid: string;
430
- }
431
-
432
- export interface MoveJobUp {
433
- ClusterType: int;
434
- Cluster: string;
435
- QueueName: string;
436
- Wuid: string;
437
- }
438
-
439
- export interface NotInCommunityEdition {
440
- EEPortal: string;
441
- }
442
-
443
- export interface NotInCommunityEditionResponse {
444
- Exceptions: Exceptions;
445
- }
446
-
447
- export interface PauseQueue {
448
- Cluster: string;
449
- QueueName: string;
450
- Comment: string;
451
- ServerType: string;
452
- NetworkAddress: string;
453
- Port: int;
454
- }
455
-
456
- export interface Ping {
457
-
458
- }
459
-
460
- export interface WsSMCPingResponse {
461
-
462
- }
463
-
464
- export interface RemoveJob {
465
- ClusterType: int;
466
- Cluster: string;
467
- QueueName: string;
468
- Wuid: string;
469
- }
470
-
471
- export interface ResumeQueue {
472
- Cluster: string;
473
- QueueName: string;
474
- Comment: string;
475
- ServerType: string;
476
- NetworkAddress: string;
477
- Port: int;
478
- }
479
-
480
- export interface RoxieControlCmd {
481
- ProcessCluster: string;
482
- TargetCluster: string;
483
- Command: RoxieControlCmdType;
484
- Wait: int;
485
- }
486
-
487
- export interface Endpoint {
488
- Address: string;
489
- Attached: boolean;
490
- StateHash: string;
491
- Status: string;
492
- }
493
-
494
- export interface Endpoints {
495
- Endpoint: Endpoint[];
496
- }
497
-
498
- export interface RoxieControlCmdResponse {
499
- Exceptions: Exceptions;
500
- Endpoints: {
501
- Endpoint: Endpoint[];
502
- };
503
- }
504
-
505
- export interface QueryIds {
506
- Item: string[];
507
- }
508
-
509
- export interface RoxieXrefCmd {
510
- RoxieCluster: string;
511
- QueryIds: {
512
- Item: string[];
513
- };
514
- CheckAllNodes: boolean;
515
- Wait: int;
516
- }
517
-
518
- export interface RoxieXrefCmdResponse {
519
- Exceptions: Exceptions;
520
- Result: string;
521
- }
522
-
523
- export interface SetBanner {
524
- ChatURL: string;
525
- BannerContent: string;
526
- BannerColor: string;
527
- BannerSize: string;
528
- BannerScroll: string;
529
- BannerAction: int;
530
- EnableChatURL: boolean;
531
- FromSubmitBtn: boolean;
532
- }
533
-
534
- export interface SetBannerResponse {
535
- Exceptions: Exceptions;
536
- }
537
-
538
- export interface SMCJob {
539
- Wuid: string;
540
- QueueName: string;
541
- }
542
-
543
- export interface SMCJobs {
544
- SMCJob: SMCJob[];
545
- }
546
-
547
- export interface SetJobPriority {
548
- QueueName: string;
549
- Wuid: string;
550
- Priority: string;
551
- SMCJobs: {
552
- SMCJob: SMCJob[];
553
- };
554
- }
555
-
556
- export interface SMCPriorityResponse {
557
- Exceptions: Exceptions;
558
- }
559
-
560
- export interface StopQueue {
561
- Cluster: string;
562
- QueueName: string;
563
- Comment: string;
564
- ServerType: string;
565
- NetworkAddress: string;
566
- Port: int;
567
- }
568
-
569
- }
570
-
571
- export class SMCServiceBase extends Service {
572
-
573
- constructor(optsConnection: IOptions | IConnection) {
574
- super(optsConnection, "WsSMC", "1.24");
575
- }
576
-
577
- Activity(request: WsSMC.Activity): Promise<WsSMC.ActivityResponse> {
578
- return this._connection.send("Activity", request);
579
- }
580
-
581
- BrowseResources(request: WsSMC.BrowseResources): Promise<WsSMC.BrowseResourcesResponse> {
582
- return this._connection.send("BrowseResources", request);
583
- }
584
-
585
- ClearQueue(request: WsSMC.ClearQueue): Promise<WsSMC.SMCQueueResponse> {
586
- return this._connection.send("ClearQueue", request);
587
- }
588
-
589
- GetBuildInfo(request: WsSMC.GetBuildInfo): Promise<WsSMC.GetBuildInfoResponse> {
590
- return this._connection.send("GetBuildInfo", request);
591
- }
592
-
593
- GetStatusServerInfo(request: WsSMC.GetStatusServerInfo): Promise<WsSMC.GetStatusServerInfoResponse> {
594
- return this._connection.send("GetStatusServerInfo", request);
595
- }
596
-
597
- GetThorQueueAvailability(request: WsSMC.GetThorQueueAvailability): Promise<WsSMC.GetThorQueueAvailabilityResponse> {
598
- return this._connection.send("GetThorQueueAvailability", request);
599
- }
600
-
601
- Index(request: WsSMC.Index): Promise<WsSMC.SMCIndexResponse> {
602
- return this._connection.send("Index", request);
603
- }
604
-
605
- LockQuery(request: WsSMC.LockQuery): Promise<WsSMC.LockQueryResponse> {
606
- return this._connection.send("LockQuery", request);
607
- }
608
-
609
- MoveJobBack(request: WsSMC.MoveJobBack): Promise<WsSMC.SMCJobResponse> {
610
- return this._connection.send("MoveJobBack", request);
611
- }
612
-
613
- MoveJobDown(request: WsSMC.MoveJobDown): Promise<WsSMC.SMCJobResponse> {
614
- return this._connection.send("MoveJobDown", request);
615
- }
616
-
617
- MoveJobFront(request: WsSMC.MoveJobFront): Promise<WsSMC.SMCJobResponse> {
618
- return this._connection.send("MoveJobFront", request);
619
- }
620
-
621
- MoveJobUp(request: WsSMC.MoveJobUp): Promise<WsSMC.SMCJobResponse> {
622
- return this._connection.send("MoveJobUp", request);
623
- }
624
-
625
- NotInCommunityEdition(request: WsSMC.NotInCommunityEdition): Promise<WsSMC.NotInCommunityEditionResponse> {
626
- return this._connection.send("NotInCommunityEdition", request);
627
- }
628
-
629
- PauseQueue(request: WsSMC.PauseQueue): Promise<WsSMC.SMCQueueResponse> {
630
- return this._connection.send("PauseQueue", request);
631
- }
632
-
633
- Ping(request: WsSMC.Ping): Promise<WsSMC.WsSMCPingResponse> {
634
- return this._connection.send("Ping", request);
635
- }
636
-
637
- RemoveJob(request: WsSMC.RemoveJob): Promise<WsSMC.SMCJobResponse> {
638
- return this._connection.send("RemoveJob", request);
639
- }
640
-
641
- ResumeQueue(request: WsSMC.ResumeQueue): Promise<WsSMC.SMCQueueResponse> {
642
- return this._connection.send("ResumeQueue", request);
643
- }
644
-
645
- RoxieControlCmd(request: WsSMC.RoxieControlCmd): Promise<WsSMC.RoxieControlCmdResponse> {
646
- return this._connection.send("RoxieControlCmd", request);
647
- }
648
-
649
- RoxieXrefCmd(request: WsSMC.RoxieXrefCmd): Promise<WsSMC.RoxieXrefCmdResponse> {
650
- return this._connection.send("RoxieXrefCmd", request);
651
- }
652
-
653
- SetBanner(request: WsSMC.SetBanner): Promise<WsSMC.SetBannerResponse> {
654
- return this._connection.send("SetBanner", request);
655
- }
656
-
657
- SetJobPriority(request: WsSMC.SetJobPriority): Promise<WsSMC.SMCPriorityResponse> {
658
- return this._connection.send("SetJobPriority", request);
659
- }
660
-
661
- StopQueue(request: WsSMC.StopQueue): Promise<WsSMC.SMCQueueResponse> {
662
- return this._connection.send("StopQueue", request);
663
- }
664
-
665
- }
1
+ import { IConnection, IOptions } from "../../../../connection.ts";
2
+ import { Service } from "../../../../espConnection.ts";
3
+
4
+ type int = number;
5
+ type unsignedInt = number;
6
+ type long = number;
7
+
8
+ export enum LockModes {
9
+ ALL = "ALL",
10
+ READ = "READ",
11
+ WRITE = "WRITE",
12
+ HOLD = "HOLD",
13
+ SUB = "SUB"
14
+ }
15
+
16
+ export enum RoxieControlCmdType {
17
+ Attach = "Attach",
18
+ Detach = "Detach",
19
+ State = "State",
20
+ Reload = "Reload",
21
+ ReloadRetry = "ReloadRetry"
22
+ }
23
+
24
+ export namespace WsSMC {
25
+
26
+ export interface Activity {
27
+ ChatURL: string;
28
+ BannerContent: string;
29
+ BannerColor: string;
30
+ BannerSize: string;
31
+ BannerScroll: string;
32
+ BannerAction: int;
33
+ EnableChatURL: boolean;
34
+ FromSubmitBtn: boolean;
35
+ SortBy: string;
36
+ Descending: boolean;
37
+ }
38
+
39
+ export interface Exception {
40
+ Code: string;
41
+ Audience: string;
42
+ Source: string;
43
+ Message: string;
44
+ }
45
+
46
+ export interface Exceptions {
47
+ Source: string;
48
+ Exception: Exception[];
49
+ }
50
+
51
+ export interface TargetCluster {
52
+ ClusterName: string;
53
+ QueueName: string;
54
+ QueueStatus: string;
55
+ StatusDetails: string;
56
+ Warning: string;
57
+ ClusterType: int;
58
+ ClusterSize: int;
59
+ ClusterStatus: int;
60
+ }
61
+
62
+ export interface ThorClusterList {
63
+ TargetCluster: TargetCluster[];
64
+ }
65
+
66
+ export interface RoxieClusterList {
67
+ TargetCluster: TargetCluster[];
68
+ }
69
+
70
+ export interface HThorClusterList {
71
+ TargetCluster: TargetCluster[];
72
+ }
73
+
74
+ export interface DFUJob {
75
+ TimeStarted: string;
76
+ Done: int;
77
+ Total: int;
78
+ Command: string;
79
+ }
80
+
81
+ export interface DFUJobs {
82
+ DFUJob: DFUJob[];
83
+ }
84
+
85
+ export interface ActiveWorkunit {
86
+ Wuid: string;
87
+ State: string;
88
+ StateID: int;
89
+ Owner: string;
90
+ Jobname: string;
91
+ Server: string;
92
+ Instance: string;
93
+ Priority: string;
94
+ Extra: string;
95
+ GraphName: string;
96
+ Duration: string;
97
+ GID: string;
98
+ QueueName: string;
99
+ MemoryBlocked: int;
100
+ IsPausing: boolean;
101
+ Warning: string;
102
+ ClusterName: string;
103
+ ClusterType: string;
104
+ ClusterQueueName: string;
105
+ TargetClusterName: string;
106
+ }
107
+
108
+ export interface Running {
109
+ ActiveWorkunit: ActiveWorkunit[];
110
+ }
111
+
112
+ export interface Queues {
113
+ ServerJobQueue: ServerJobQueue[];
114
+ }
115
+
116
+ export interface ServerJobQueue {
117
+ QueueName: string;
118
+ Queues: {
119
+ ServerJobQueue: ServerJobQueue[];
120
+ };
121
+ ServerName: string;
122
+ ServerType: string;
123
+ QueueStatus: string;
124
+ StatusDetails: string;
125
+ NetworkAddress: string;
126
+ Port: int;
127
+ }
128
+
129
+ export interface ServerJobQueues {
130
+ ServerJobQueue: ServerJobQueue[];
131
+ }
132
+
133
+ export interface ActivityResponse {
134
+ Exceptions: {
135
+ Source: string;
136
+ Exception: Exception[];
137
+ };
138
+ Build: string;
139
+ ThorClusterList: {
140
+ TargetCluster: TargetCluster[];
141
+ };
142
+ RoxieClusterList: {
143
+ TargetCluster: TargetCluster[];
144
+ };
145
+ HThorClusterList: {
146
+ TargetCluster: TargetCluster[];
147
+ };
148
+ DFUJobs: {
149
+ DFUJob: DFUJob[];
150
+ };
151
+ Running: {
152
+ ActiveWorkunit: ActiveWorkunit[];
153
+ };
154
+ BannerContent: string;
155
+ BannerColor: string;
156
+ BannerSize: string;
157
+ BannerScroll: string;
158
+ ChatURL: string;
159
+ ShowBanner: int;
160
+ ShowChatURL: int;
161
+ SortBy: string;
162
+ Descending: boolean;
163
+ SuperUser: boolean;
164
+ AccessRight: string;
165
+ ServerJobQueues: {
166
+ ServerJobQueue: ServerJobQueue[];
167
+ };
168
+ ActivityTime: string;
169
+ DaliDetached: boolean;
170
+ }
171
+
172
+ export interface BrowseResources {
173
+
174
+ }
175
+
176
+ export interface HPCCResource {
177
+ Name: string;
178
+ Description: string;
179
+ FileName: string;
180
+ Version: string;
181
+ }
182
+
183
+ export interface HPCCResources {
184
+ HPCCResource: HPCCResource[];
185
+ }
186
+
187
+ export interface HPCCResourceRepository {
188
+ Name: string;
189
+ Path: string;
190
+ HPCCResources: {
191
+ HPCCResource: HPCCResource[];
192
+ };
193
+ }
194
+
195
+ export interface HPCCResourceRepositories {
196
+ HPCCResourceRepository: HPCCResourceRepository[];
197
+ }
198
+
199
+ export interface BrowseResourcesResponse {
200
+ Exceptions: Exceptions;
201
+ PortalURL: string;
202
+ NetAddress: string;
203
+ OS: int;
204
+ UseResource: boolean;
205
+ HPCCResourceRepositories: {
206
+ HPCCResourceRepository: HPCCResourceRepository[];
207
+ };
208
+ }
209
+
210
+ export interface ClearQueue {
211
+ Cluster: string;
212
+ QueueName: string;
213
+ Comment: string;
214
+ ServerType: string;
215
+ NetworkAddress: string;
216
+ Port: int;
217
+ }
218
+
219
+ export interface TargetClusterInfo {
220
+ ClusterName: string;
221
+ QueueName: string;
222
+ QueueStatus: string;
223
+ StatusDetails: string;
224
+ Warning: string;
225
+ ClusterType: int;
226
+ ClusterSize: int;
227
+ ClusterStatus: int;
228
+ }
229
+
230
+ export interface ServerInfo {
231
+ QueueName: string;
232
+ Queues: Queues;
233
+ ServerName: string;
234
+ ServerType: string;
235
+ QueueStatus: string;
236
+ StatusDetails: string;
237
+ NetworkAddress: string;
238
+ Port: int;
239
+ }
240
+
241
+ export interface Workunits {
242
+ ActiveWorkunit: ActiveWorkunit[];
243
+ }
244
+
245
+ export interface StatusServerInfo {
246
+ TargetClusterInfo: {
247
+ ClusterName: string;
248
+ QueueName: string;
249
+ QueueStatus: string;
250
+ StatusDetails: string;
251
+ Warning: string;
252
+ ClusterType: int;
253
+ ClusterSize: int;
254
+ ClusterStatus: int;
255
+ };
256
+ ServerInfo: {
257
+ QueueName: string;
258
+ Queues: Queues;
259
+ ServerName: string;
260
+ ServerType: string;
261
+ QueueStatus: string;
262
+ StatusDetails: string;
263
+ NetworkAddress: string;
264
+ Port: int;
265
+ };
266
+ Workunits: {
267
+ ActiveWorkunit: ActiveWorkunit[];
268
+ };
269
+ }
270
+
271
+ export interface SMCQueueResponse {
272
+ Exceptions: Exceptions;
273
+ StatusServerInfo: {
274
+ TargetClusterInfo: {
275
+ ClusterName: string;
276
+ QueueName: string;
277
+ QueueStatus: string;
278
+ StatusDetails: string;
279
+ Warning: string;
280
+ ClusterType: int;
281
+ ClusterSize: int;
282
+ ClusterStatus: int;
283
+ };
284
+ ServerInfo: {
285
+ QueueName: string;
286
+ Queues: Queues;
287
+ ServerName: string;
288
+ ServerType: string;
289
+ QueueStatus: string;
290
+ StatusDetails: string;
291
+ NetworkAddress: string;
292
+ Port: int;
293
+ };
294
+ Workunits: {
295
+ ActiveWorkunit: ActiveWorkunit[];
296
+ };
297
+ };
298
+ }
299
+
300
+ export interface GetBuildInfo {
301
+
302
+ }
303
+
304
+ export interface NamedValue {
305
+ Name: string;
306
+ Value: string;
307
+ }
308
+
309
+ export interface BuildInfo {
310
+ NamedValue: NamedValue[];
311
+ }
312
+
313
+ export interface GetBuildInfoResponse {
314
+ Exceptions: Exceptions;
315
+ BuildInfo: {
316
+ NamedValue: NamedValue[];
317
+ };
318
+ }
319
+
320
+ export interface GetStatusServerInfo {
321
+ ServerName: string;
322
+ ServerType: string;
323
+ NetworkAddress: string;
324
+ Port: int;
325
+ }
326
+
327
+ export interface GetStatusServerInfoResponse {
328
+ Exceptions: Exceptions;
329
+ StatusServerInfo: StatusServerInfo;
330
+ }
331
+
332
+ export interface GetThorQueueAvailability {
333
+
334
+ }
335
+
336
+ export interface ThorCluster {
337
+ ClusterName: string;
338
+ QueueName: string;
339
+ QueueStatus: string;
340
+ QueueAvailable: int;
341
+ JobsRunning: int;
342
+ JobsInQueue: int;
343
+ QueueStatus2: int;
344
+ ThorLCR: string;
345
+ ClusterSize: int;
346
+ }
347
+
348
+ export interface ThorClusters {
349
+ ThorCluster: ThorCluster[];
350
+ }
351
+
352
+ export interface GetThorQueueAvailabilityResponse {
353
+ Exceptions: Exceptions;
354
+ ThorClusters: {
355
+ ThorCluster: ThorCluster[];
356
+ };
357
+ }
358
+
359
+ export interface Index {
360
+
361
+ }
362
+
363
+ export interface SMCIndexResponse {
364
+ Exceptions: Exceptions;
365
+ }
366
+
367
+ export interface LockQuery {
368
+ EPIP: string;
369
+ XPath: string;
370
+ DurationMSLow: unsignedInt;
371
+ DurationMSHigh: unsignedInt;
372
+ TimeLockedLow: string;
373
+ TimeLockedHigh: string;
374
+ Mode: LockModes;
375
+ AllFileLocks: boolean;
376
+ }
377
+
378
+ export interface ModeNames {
379
+ Item: string[];
380
+ }
381
+
382
+ export interface Lock {
383
+ EPIP: string;
384
+ XPath: string;
385
+ LogicalFile: string;
386
+ SessionID: long;
387
+ DurationMS: unsignedInt;
388
+ TimeLocked: string;
389
+ Modes: string;
390
+ ModeNames: {
391
+ Item: string[];
392
+ };
393
+ }
394
+
395
+ export interface Locks {
396
+ Lock: Lock[];
397
+ }
398
+
399
+ export interface LockQueryResponse {
400
+ Exceptions: Exceptions;
401
+ Locks: {
402
+ Lock: Lock[];
403
+ };
404
+ NumLocks: int;
405
+ }
406
+
407
+ export interface MoveJobBack {
408
+ ClusterType: int;
409
+ Cluster: string;
410
+ QueueName: string;
411
+ Wuid: string;
412
+ }
413
+
414
+ export interface SMCJobResponse {
415
+ Exceptions: Exceptions;
416
+ }
417
+
418
+ export interface MoveJobDown {
419
+ ClusterType: int;
420
+ Cluster: string;
421
+ QueueName: string;
422
+ Wuid: string;
423
+ }
424
+
425
+ export interface MoveJobFront {
426
+ ClusterType: int;
427
+ Cluster: string;
428
+ QueueName: string;
429
+ Wuid: string;
430
+ }
431
+
432
+ export interface MoveJobUp {
433
+ ClusterType: int;
434
+ Cluster: string;
435
+ QueueName: string;
436
+ Wuid: string;
437
+ }
438
+
439
+ export interface NotInCommunityEdition {
440
+ EEPortal: string;
441
+ }
442
+
443
+ export interface NotInCommunityEditionResponse {
444
+ Exceptions: Exceptions;
445
+ }
446
+
447
+ export interface PauseQueue {
448
+ Cluster: string;
449
+ QueueName: string;
450
+ Comment: string;
451
+ ServerType: string;
452
+ NetworkAddress: string;
453
+ Port: int;
454
+ }
455
+
456
+ export interface Ping {
457
+
458
+ }
459
+
460
+ export interface WsSMCPingResponse {
461
+
462
+ }
463
+
464
+ export interface RemoveJob {
465
+ ClusterType: int;
466
+ Cluster: string;
467
+ QueueName: string;
468
+ Wuid: string;
469
+ }
470
+
471
+ export interface ResumeQueue {
472
+ Cluster: string;
473
+ QueueName: string;
474
+ Comment: string;
475
+ ServerType: string;
476
+ NetworkAddress: string;
477
+ Port: int;
478
+ }
479
+
480
+ export interface RoxieControlCmd {
481
+ ProcessCluster: string;
482
+ TargetCluster: string;
483
+ Command: RoxieControlCmdType;
484
+ Wait: int;
485
+ }
486
+
487
+ export interface Endpoint {
488
+ Address: string;
489
+ Attached: boolean;
490
+ StateHash: string;
491
+ Status: string;
492
+ }
493
+
494
+ export interface Endpoints {
495
+ Endpoint: Endpoint[];
496
+ }
497
+
498
+ export interface RoxieControlCmdResponse {
499
+ Exceptions: Exceptions;
500
+ Endpoints: {
501
+ Endpoint: Endpoint[];
502
+ };
503
+ }
504
+
505
+ export interface QueryIds {
506
+ Item: string[];
507
+ }
508
+
509
+ export interface RoxieXrefCmd {
510
+ RoxieCluster: string;
511
+ QueryIds: {
512
+ Item: string[];
513
+ };
514
+ CheckAllNodes: boolean;
515
+ Wait: int;
516
+ }
517
+
518
+ export interface RoxieXrefCmdResponse {
519
+ Exceptions: Exceptions;
520
+ Result: string;
521
+ }
522
+
523
+ export interface SetBanner {
524
+ ChatURL: string;
525
+ BannerContent: string;
526
+ BannerColor: string;
527
+ BannerSize: string;
528
+ BannerScroll: string;
529
+ BannerAction: int;
530
+ EnableChatURL: boolean;
531
+ FromSubmitBtn: boolean;
532
+ }
533
+
534
+ export interface SetBannerResponse {
535
+ Exceptions: Exceptions;
536
+ }
537
+
538
+ export interface SMCJob {
539
+ Wuid: string;
540
+ QueueName: string;
541
+ }
542
+
543
+ export interface SMCJobs {
544
+ SMCJob: SMCJob[];
545
+ }
546
+
547
+ export interface SetJobPriority {
548
+ QueueName: string;
549
+ Wuid: string;
550
+ Priority: string;
551
+ SMCJobs: {
552
+ SMCJob: SMCJob[];
553
+ };
554
+ }
555
+
556
+ export interface SMCPriorityResponse {
557
+ Exceptions: Exceptions;
558
+ }
559
+
560
+ export interface StopQueue {
561
+ Cluster: string;
562
+ QueueName: string;
563
+ Comment: string;
564
+ ServerType: string;
565
+ NetworkAddress: string;
566
+ Port: int;
567
+ }
568
+
569
+ }
570
+
571
+ export class SMCServiceBase extends Service {
572
+
573
+ constructor(optsConnection: IOptions | IConnection) {
574
+ super(optsConnection, "WsSMC", "1.24");
575
+ }
576
+
577
+ Activity(request: WsSMC.Activity): Promise<WsSMC.ActivityResponse> {
578
+ return this._connection.send("Activity", request);
579
+ }
580
+
581
+ BrowseResources(request: WsSMC.BrowseResources): Promise<WsSMC.BrowseResourcesResponse> {
582
+ return this._connection.send("BrowseResources", request);
583
+ }
584
+
585
+ ClearQueue(request: WsSMC.ClearQueue): Promise<WsSMC.SMCQueueResponse> {
586
+ return this._connection.send("ClearQueue", request);
587
+ }
588
+
589
+ GetBuildInfo(request: WsSMC.GetBuildInfo): Promise<WsSMC.GetBuildInfoResponse> {
590
+ return this._connection.send("GetBuildInfo", request);
591
+ }
592
+
593
+ GetStatusServerInfo(request: WsSMC.GetStatusServerInfo): Promise<WsSMC.GetStatusServerInfoResponse> {
594
+ return this._connection.send("GetStatusServerInfo", request);
595
+ }
596
+
597
+ GetThorQueueAvailability(request: WsSMC.GetThorQueueAvailability): Promise<WsSMC.GetThorQueueAvailabilityResponse> {
598
+ return this._connection.send("GetThorQueueAvailability", request);
599
+ }
600
+
601
+ Index(request: WsSMC.Index): Promise<WsSMC.SMCIndexResponse> {
602
+ return this._connection.send("Index", request);
603
+ }
604
+
605
+ LockQuery(request: WsSMC.LockQuery): Promise<WsSMC.LockQueryResponse> {
606
+ return this._connection.send("LockQuery", request);
607
+ }
608
+
609
+ MoveJobBack(request: WsSMC.MoveJobBack): Promise<WsSMC.SMCJobResponse> {
610
+ return this._connection.send("MoveJobBack", request);
611
+ }
612
+
613
+ MoveJobDown(request: WsSMC.MoveJobDown): Promise<WsSMC.SMCJobResponse> {
614
+ return this._connection.send("MoveJobDown", request);
615
+ }
616
+
617
+ MoveJobFront(request: WsSMC.MoveJobFront): Promise<WsSMC.SMCJobResponse> {
618
+ return this._connection.send("MoveJobFront", request);
619
+ }
620
+
621
+ MoveJobUp(request: WsSMC.MoveJobUp): Promise<WsSMC.SMCJobResponse> {
622
+ return this._connection.send("MoveJobUp", request);
623
+ }
624
+
625
+ NotInCommunityEdition(request: WsSMC.NotInCommunityEdition): Promise<WsSMC.NotInCommunityEditionResponse> {
626
+ return this._connection.send("NotInCommunityEdition", request);
627
+ }
628
+
629
+ PauseQueue(request: WsSMC.PauseQueue): Promise<WsSMC.SMCQueueResponse> {
630
+ return this._connection.send("PauseQueue", request);
631
+ }
632
+
633
+ Ping(request: WsSMC.Ping): Promise<WsSMC.WsSMCPingResponse> {
634
+ return this._connection.send("Ping", request);
635
+ }
636
+
637
+ RemoveJob(request: WsSMC.RemoveJob): Promise<WsSMC.SMCJobResponse> {
638
+ return this._connection.send("RemoveJob", request);
639
+ }
640
+
641
+ ResumeQueue(request: WsSMC.ResumeQueue): Promise<WsSMC.SMCQueueResponse> {
642
+ return this._connection.send("ResumeQueue", request);
643
+ }
644
+
645
+ RoxieControlCmd(request: WsSMC.RoxieControlCmd): Promise<WsSMC.RoxieControlCmdResponse> {
646
+ return this._connection.send("RoxieControlCmd", request);
647
+ }
648
+
649
+ RoxieXrefCmd(request: WsSMC.RoxieXrefCmd): Promise<WsSMC.RoxieXrefCmdResponse> {
650
+ return this._connection.send("RoxieXrefCmd", request);
651
+ }
652
+
653
+ SetBanner(request: WsSMC.SetBanner): Promise<WsSMC.SetBannerResponse> {
654
+ return this._connection.send("SetBanner", request);
655
+ }
656
+
657
+ SetJobPriority(request: WsSMC.SetJobPriority): Promise<WsSMC.SMCPriorityResponse> {
658
+ return this._connection.send("SetJobPriority", request);
659
+ }
660
+
661
+ StopQueue(request: WsSMC.StopQueue): Promise<WsSMC.SMCQueueResponse> {
662
+ return this._connection.send("StopQueue", request);
663
+ }
664
+
665
+ }