@hpcc-js/comms 2.82.1 → 2.82.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 (117) hide show
  1. package/dist/index.es6.js +641 -47
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +642 -46
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/index.node.js +642 -46
  8. package/dist/index.node.js.map +1 -1
  9. package/dist/index.node.min.js +1 -1
  10. package/dist/index.node.min.js.map +1 -1
  11. package/lib-es6/__package__.js +2 -2
  12. package/lib-es6/ecl/dfuWorkunit.js +528 -0
  13. package/lib-es6/ecl/dfuWorkunit.js.map +1 -0
  14. package/lib-es6/ecl/workunit.js +2 -2
  15. package/lib-es6/ecl/workunit.js.map +1 -1
  16. package/lib-es6/index-common.js +1 -0
  17. package/lib-es6/index-common.js.map +1 -1
  18. package/lib-es6/services/fileSpray.js +9 -0
  19. package/lib-es6/services/fileSpray.js.map +1 -1
  20. package/lib-es6/services/wsLogaccess.js +75 -27
  21. package/lib-es6/services/wsLogaccess.js.map +1 -1
  22. package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js +85 -0
  23. package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js.map +1 -0
  24. package/package.json +6 -6
  25. package/src/__package__.ts +2 -2
  26. package/src/ecl/dfuWorkunit.ts +306 -0
  27. package/src/ecl/workunit.ts +2 -2
  28. package/src/index-common.ts +1 -0
  29. package/src/services/fileSpray.ts +108 -0
  30. package/src/services/wsLogaccess.ts +70 -26
  31. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -0
  32. package/types/__package__.d.ts +2 -2
  33. package/types/connection.d.ts +5 -5
  34. package/types/connection.d.ts.map +1 -1
  35. package/types/ecl/activity.d.ts +3 -3
  36. package/types/ecl/activity.d.ts.map +1 -1
  37. package/types/ecl/dfuWorkunit.d.ts +95 -0
  38. package/types/ecl/dfuWorkunit.d.ts.map +1 -0
  39. package/types/ecl/result.d.ts +3 -3
  40. package/types/ecl/result.d.ts.map +1 -1
  41. package/types/ecl/targetCluster.d.ts +2 -2
  42. package/types/ecl/targetCluster.d.ts.map +1 -1
  43. package/types/ecl/workunit.d.ts +4 -4
  44. package/types/ecl/workunit.d.ts.map +1 -1
  45. package/types/espConnection.d.ts +1 -1
  46. package/types/espConnection.d.ts.map +1 -1
  47. package/types/index-common.d.ts +1 -0
  48. package/types/index-common.d.ts.map +1 -1
  49. package/types/services/fileSpray.d.ts +95 -0
  50. package/types/services/fileSpray.d.ts.map +1 -1
  51. package/types/services/wsDFU.d.ts +1 -1
  52. package/types/services/wsDFU.d.ts.map +1 -1
  53. package/types/services/wsEcl.d.ts +5 -5
  54. package/types/services/wsEcl.d.ts.map +1 -1
  55. package/types/services/wsLogaccess.d.ts +3 -3
  56. package/types/services/wsLogaccess.d.ts.map +1 -1
  57. package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +5 -5
  58. package/types/services/wsdl/FileSpray/v1.23/FileSpray.d.ts.map +1 -1
  59. package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +2 -2
  60. package/types/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts.map +1 -1
  61. package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +4 -4
  62. package/types/services/wsdl/WsDfu/v1.62/WsDfu.d.ts.map +1 -1
  63. package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +2 -2
  64. package/types/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts.map +1 -1
  65. package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +1 -1
  66. package/types/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts.map +1 -1
  67. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts +1 -1
  68. package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts.map +1 -1
  69. package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +3 -3
  70. package/types/services/wsdl/WsSMC/v1.24/WsSMC.d.ts.map +1 -1
  71. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +4 -4
  72. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts.map +1 -1
  73. package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +8 -8
  74. package/types/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts.map +1 -1
  75. package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts +4 -4
  76. package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts.map +1 -1
  77. package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts +1 -1
  78. package/types/services/wsdl/ws_account/v1.05/ws_account.d.ts.map +1 -1
  79. package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +1 -1
  80. package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts.map +1 -1
  81. package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +3 -3
  82. package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts.map +1 -1
  83. package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +171 -0
  84. package/types/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts.map +1 -0
  85. package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +3 -3
  86. package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts.map +1 -1
  87. package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts +1 -1
  88. package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts.map +1 -1
  89. package/types-3.4/__package__.d.ts +2 -2
  90. package/types-3.4/connection.d.ts +5 -5
  91. package/types-3.4/ecl/activity.d.ts +3 -3
  92. package/types-3.4/ecl/dfuWorkunit.d.ts +95 -0
  93. package/types-3.4/ecl/result.d.ts +3 -3
  94. package/types-3.4/ecl/targetCluster.d.ts +2 -2
  95. package/types-3.4/ecl/workunit.d.ts +4 -4
  96. package/types-3.4/espConnection.d.ts +1 -1
  97. package/types-3.4/index-common.d.ts +1 -0
  98. package/types-3.4/services/fileSpray.d.ts +95 -0
  99. package/types-3.4/services/wsDFU.d.ts +1 -1
  100. package/types-3.4/services/wsEcl.d.ts +5 -5
  101. package/types-3.4/services/wsLogaccess.d.ts +3 -3
  102. package/types-3.4/services/wsdl/FileSpray/v1.23/FileSpray.d.ts +5 -5
  103. package/types-3.4/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.d.ts +2 -2
  104. package/types-3.4/services/wsdl/WsDfu/v1.62/WsDfu.d.ts +4 -4
  105. package/types-3.4/services/wsdl/WsFileIO/v1.01/WsFileIO.d.ts +2 -2
  106. package/types-3.4/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.d.ts +1 -1
  107. package/types-3.4/services/wsdl/WsResources/v1.01/WsResources.d.ts +1 -1
  108. package/types-3.4/services/wsdl/WsSMC/v1.24/WsSMC.d.ts +3 -3
  109. package/types-3.4/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +4 -4
  110. package/types-3.4/services/wsdl/WsWorkunits/v1.88/WsWorkunits.d.ts +8 -8
  111. package/types-3.4/services/wsdl/ws_access/v1.16/ws_access.d.ts +4 -4
  112. package/types-3.4/services/wsdl/ws_account/v1.05/ws_account.d.ts +1 -1
  113. package/types-3.4/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +1 -1
  114. package/types-3.4/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +3 -3
  115. package/types-3.4/services/wsdl/ws_logaccess/v1.04/ws_logaccess.d.ts +171 -0
  116. package/types-3.4/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +3 -3
  117. package/types-3.4/services/wsdl/wsstore/v1.02/wsstore.d.ts +1 -1
@@ -1,4 +1,4 @@
1
1
  export var PKG_NAME = "@hpcc-js/comms";
2
- export var PKG_VERSION = "2.82.1";
3
- export var BUILD_VERSION = "2.104.18";
2
+ export var PKG_VERSION = "2.82.2";
3
+ export var BUILD_VERSION = "2.104.20";
4
4
  //# sourceMappingURL=__package__.js.map
@@ -0,0 +1,528 @@
1
+ import { __assign, __awaiter, __extends, __generator } from "tslib";
2
+ import { Cache, scopedLogger, StateObject } from "@hpcc-js/util";
3
+ import { FileSprayService } from "../services/fileSpray";
4
+ import * as WsTopology from "../services/wsTopology";
5
+ var logger = scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");
6
+ var States;
7
+ (function (States) {
8
+ States[States["Unknown"] = 0] = "Unknown";
9
+ States[States["Scheduled"] = 1] = "Scheduled";
10
+ States[States["Queued"] = 2] = "Queued";
11
+ States[States["Started"] = 3] = "Started";
12
+ States[States["Aborted"] = 4] = "Aborted";
13
+ States[States["Failed"] = 5] = "Failed";
14
+ States[States["Finished"] = 6] = "Finished";
15
+ States[States["Monitoring"] = 7] = "Monitoring";
16
+ States[States["Aborting"] = 8] = "Aborting";
17
+ States[States["NotFound"] = 999] = "NotFound";
18
+ })(States || (States = {}));
19
+ var DFUWorkunitCache = /** @class */ (function (_super) {
20
+ __extends(DFUWorkunitCache, _super);
21
+ function DFUWorkunitCache() {
22
+ return _super.call(this, function (obj) {
23
+ return "".concat(obj.BaseUrl, "-").concat(obj.ID);
24
+ }) || this;
25
+ }
26
+ return DFUWorkunitCache;
27
+ }(Cache));
28
+ export { DFUWorkunitCache };
29
+ var _workunits = new DFUWorkunitCache();
30
+ var DFUWorkunit = /** @class */ (function (_super) {
31
+ __extends(DFUWorkunit, _super);
32
+ // --- --- ---
33
+ function DFUWorkunit(optsConnection, wuid) {
34
+ var _this = _super.call(this) || this;
35
+ _this.connection = new FileSprayService(optsConnection);
36
+ _this.topologyConnection = new WsTopology.TopologyService(optsConnection);
37
+ _this.clearState(wuid);
38
+ return _this;
39
+ }
40
+ Object.defineProperty(DFUWorkunit.prototype, "BaseUrl", {
41
+ get: function () { return this.connection.baseUrl; },
42
+ enumerable: false,
43
+ configurable: true
44
+ });
45
+ Object.defineProperty(DFUWorkunit.prototype, "properties", {
46
+ // Accessors ---
47
+ get: function () { return this.get(); },
48
+ enumerable: false,
49
+ configurable: true
50
+ });
51
+ Object.defineProperty(DFUWorkunit.prototype, "ID", {
52
+ get: function () { return this.get("ID"); },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ Object.defineProperty(DFUWorkunit.prototype, "DFUServerName", {
57
+ get: function () { return this.get("DFUServerName"); },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ Object.defineProperty(DFUWorkunit.prototype, "ClusterName", {
62
+ get: function () { return this.get("ClusterName"); },
63
+ enumerable: false,
64
+ configurable: true
65
+ });
66
+ Object.defineProperty(DFUWorkunit.prototype, "JobName", {
67
+ get: function () { return this.get("JobName"); },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ Object.defineProperty(DFUWorkunit.prototype, "Queue", {
72
+ get: function () { return this.get("Queue"); },
73
+ enumerable: false,
74
+ configurable: true
75
+ });
76
+ Object.defineProperty(DFUWorkunit.prototype, "User", {
77
+ get: function () { return this.get("User"); },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
81
+ Object.defineProperty(DFUWorkunit.prototype, "isProtected", {
82
+ get: function () { return this.get("isProtected"); },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
86
+ Object.defineProperty(DFUWorkunit.prototype, "Command", {
87
+ get: function () { return this.get("Command"); },
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ Object.defineProperty(DFUWorkunit.prototype, "CommandMessage", {
92
+ get: function () { return this.get("CommandMessage"); },
93
+ enumerable: false,
94
+ configurable: true
95
+ });
96
+ Object.defineProperty(DFUWorkunit.prototype, "PercentDone", {
97
+ get: function () { return this.get("PercentDone"); },
98
+ enumerable: false,
99
+ configurable: true
100
+ });
101
+ Object.defineProperty(DFUWorkunit.prototype, "SecsLeft", {
102
+ get: function () { return this.get("SecsLeft"); },
103
+ enumerable: false,
104
+ configurable: true
105
+ });
106
+ Object.defineProperty(DFUWorkunit.prototype, "ProgressMessage", {
107
+ get: function () { return this.get("ProgressMessage"); },
108
+ enumerable: false,
109
+ configurable: true
110
+ });
111
+ Object.defineProperty(DFUWorkunit.prototype, "SummaryMessage", {
112
+ get: function () { return this.get("SummaryMessage"); },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ Object.defineProperty(DFUWorkunit.prototype, "State", {
117
+ get: function () { return this.get("State", States.Unknown); },
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ Object.defineProperty(DFUWorkunit.prototype, "SourceLogicalName", {
122
+ get: function () { return this.get("SourceLogicalName"); },
123
+ enumerable: false,
124
+ configurable: true
125
+ });
126
+ Object.defineProperty(DFUWorkunit.prototype, "SourceIP", {
127
+ get: function () { return this.get("SourceIP"); },
128
+ enumerable: false,
129
+ configurable: true
130
+ });
131
+ Object.defineProperty(DFUWorkunit.prototype, "SourceFilePath", {
132
+ get: function () { return this.get("SourceFilePath"); },
133
+ enumerable: false,
134
+ configurable: true
135
+ });
136
+ Object.defineProperty(DFUWorkunit.prototype, "SourceDali", {
137
+ get: function () { return this.get("SourceDali"); },
138
+ enumerable: false,
139
+ configurable: true
140
+ });
141
+ Object.defineProperty(DFUWorkunit.prototype, "SourceRecordSize", {
142
+ get: function () { return this.get("SourceRecordSize"); },
143
+ enumerable: false,
144
+ configurable: true
145
+ });
146
+ Object.defineProperty(DFUWorkunit.prototype, "SourceFormat", {
147
+ get: function () { return this.get("SourceFormat"); },
148
+ enumerable: false,
149
+ configurable: true
150
+ });
151
+ Object.defineProperty(DFUWorkunit.prototype, "RowTag", {
152
+ get: function () { return this.get("RowTag"); },
153
+ enumerable: false,
154
+ configurable: true
155
+ });
156
+ Object.defineProperty(DFUWorkunit.prototype, "SourceNumParts", {
157
+ get: function () { return this.get("SourceNumParts"); },
158
+ enumerable: false,
159
+ configurable: true
160
+ });
161
+ Object.defineProperty(DFUWorkunit.prototype, "SourceDirectory", {
162
+ get: function () { return this.get("SourceDirectory"); },
163
+ enumerable: false,
164
+ configurable: true
165
+ });
166
+ Object.defineProperty(DFUWorkunit.prototype, "DestLogicalName", {
167
+ get: function () { return this.get("DestLogicalName"); },
168
+ enumerable: false,
169
+ configurable: true
170
+ });
171
+ Object.defineProperty(DFUWorkunit.prototype, "DestGroupName", {
172
+ get: function () { return this.get("DestGroupName"); },
173
+ enumerable: false,
174
+ configurable: true
175
+ });
176
+ Object.defineProperty(DFUWorkunit.prototype, "DestDirectory", {
177
+ get: function () { return this.get("DestDirectory"); },
178
+ enumerable: false,
179
+ configurable: true
180
+ });
181
+ Object.defineProperty(DFUWorkunit.prototype, "DestIP", {
182
+ get: function () { return this.get("DestIP"); },
183
+ enumerable: false,
184
+ configurable: true
185
+ });
186
+ Object.defineProperty(DFUWorkunit.prototype, "DestFilePath", {
187
+ get: function () { return this.get("DestFilePath"); },
188
+ enumerable: false,
189
+ configurable: true
190
+ });
191
+ Object.defineProperty(DFUWorkunit.prototype, "DestFormat", {
192
+ get: function () { return this.get("DestFormat"); },
193
+ enumerable: false,
194
+ configurable: true
195
+ });
196
+ Object.defineProperty(DFUWorkunit.prototype, "DestNumParts", {
197
+ get: function () { return this.get("DestNumParts"); },
198
+ enumerable: false,
199
+ configurable: true
200
+ });
201
+ Object.defineProperty(DFUWorkunit.prototype, "DestRecordSize", {
202
+ get: function () { return this.get("DestRecordSize"); },
203
+ enumerable: false,
204
+ configurable: true
205
+ });
206
+ Object.defineProperty(DFUWorkunit.prototype, "Replicate", {
207
+ get: function () { return this.get("Replicate"); },
208
+ enumerable: false,
209
+ configurable: true
210
+ });
211
+ Object.defineProperty(DFUWorkunit.prototype, "Overwrite", {
212
+ get: function () { return this.get("Overwrite"); },
213
+ enumerable: false,
214
+ configurable: true
215
+ });
216
+ Object.defineProperty(DFUWorkunit.prototype, "Compress", {
217
+ get: function () { return this.get("Compress"); },
218
+ enumerable: false,
219
+ configurable: true
220
+ });
221
+ Object.defineProperty(DFUWorkunit.prototype, "SourceCsvSeparate", {
222
+ get: function () { return this.get("SourceCsvSeparate"); },
223
+ enumerable: false,
224
+ configurable: true
225
+ });
226
+ Object.defineProperty(DFUWorkunit.prototype, "SourceCsvQuote", {
227
+ get: function () { return this.get("SourceCsvQuote"); },
228
+ enumerable: false,
229
+ configurable: true
230
+ });
231
+ Object.defineProperty(DFUWorkunit.prototype, "SourceCsvTerminate", {
232
+ get: function () { return this.get("SourceCsvTerminate"); },
233
+ enumerable: false,
234
+ configurable: true
235
+ });
236
+ Object.defineProperty(DFUWorkunit.prototype, "SourceCsvEscape", {
237
+ get: function () { return this.get("SourceCsvEscape"); },
238
+ enumerable: false,
239
+ configurable: true
240
+ });
241
+ Object.defineProperty(DFUWorkunit.prototype, "TimeStarted", {
242
+ get: function () { return this.get("TimeStarted"); },
243
+ enumerable: false,
244
+ configurable: true
245
+ });
246
+ Object.defineProperty(DFUWorkunit.prototype, "TimeStopped", {
247
+ get: function () { return this.get("TimeStopped"); },
248
+ enumerable: false,
249
+ configurable: true
250
+ });
251
+ Object.defineProperty(DFUWorkunit.prototype, "StateMessage", {
252
+ get: function () { return this.get("StateMessage"); },
253
+ enumerable: false,
254
+ configurable: true
255
+ });
256
+ Object.defineProperty(DFUWorkunit.prototype, "MonitorEventName", {
257
+ get: function () { return this.get("MonitorEventName"); },
258
+ enumerable: false,
259
+ configurable: true
260
+ });
261
+ Object.defineProperty(DFUWorkunit.prototype, "MonitorSub", {
262
+ get: function () { return this.get("MonitorSub"); },
263
+ enumerable: false,
264
+ configurable: true
265
+ });
266
+ Object.defineProperty(DFUWorkunit.prototype, "MonitorShotLimit", {
267
+ get: function () { return this.get("MonitorShotLimit"); },
268
+ enumerable: false,
269
+ configurable: true
270
+ });
271
+ Object.defineProperty(DFUWorkunit.prototype, "SourceDiffKeyName", {
272
+ get: function () { return this.get("SourceDiffKeyName"); },
273
+ enumerable: false,
274
+ configurable: true
275
+ });
276
+ Object.defineProperty(DFUWorkunit.prototype, "DestDiffKeyName", {
277
+ get: function () { return this.get("DestDiffKeyName"); },
278
+ enumerable: false,
279
+ configurable: true
280
+ });
281
+ Object.defineProperty(DFUWorkunit.prototype, "Archived", {
282
+ get: function () { return this.get("Archived"); },
283
+ enumerable: false,
284
+ configurable: true
285
+ });
286
+ Object.defineProperty(DFUWorkunit.prototype, "encrypt", {
287
+ get: function () { return this.get("encrypt"); },
288
+ enumerable: false,
289
+ configurable: true
290
+ });
291
+ Object.defineProperty(DFUWorkunit.prototype, "decrypt", {
292
+ get: function () { return this.get("decrypt"); },
293
+ enumerable: false,
294
+ configurable: true
295
+ });
296
+ Object.defineProperty(DFUWorkunit.prototype, "failIfNoSourceFile", {
297
+ get: function () { return this.get("failIfNoSourceFile"); },
298
+ enumerable: false,
299
+ configurable: true
300
+ });
301
+ Object.defineProperty(DFUWorkunit.prototype, "recordStructurePresent", {
302
+ get: function () { return this.get("recordStructurePresent"); },
303
+ enumerable: false,
304
+ configurable: true
305
+ });
306
+ Object.defineProperty(DFUWorkunit.prototype, "quotedTerminator", {
307
+ get: function () { return this.get("quotedTerminator"); },
308
+ enumerable: false,
309
+ configurable: true
310
+ });
311
+ Object.defineProperty(DFUWorkunit.prototype, "preserveCompression", {
312
+ get: function () { return this.get("preserveCompression"); },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ Object.defineProperty(DFUWorkunit.prototype, "expireDays", {
317
+ get: function () { return this.get("expireDays"); },
318
+ enumerable: false,
319
+ configurable: true
320
+ });
321
+ Object.defineProperty(DFUWorkunit.prototype, "PreserveFileParts", {
322
+ get: function () { return this.get("PreserveFileParts"); },
323
+ enumerable: false,
324
+ configurable: true
325
+ });
326
+ Object.defineProperty(DFUWorkunit.prototype, "FileAccessCost", {
327
+ get: function () { return this.get("FileAccessCost"); },
328
+ enumerable: false,
329
+ configurable: true
330
+ });
331
+ // Factories ---
332
+ DFUWorkunit.create = function (optsConnection, dfuServerQueue) {
333
+ var retVal = new DFUWorkunit(optsConnection);
334
+ return retVal.connection.CreateDFUWorkunit({ DFUServerQueue: dfuServerQueue }).then(function (response) {
335
+ _workunits.set(retVal);
336
+ retVal.set(response.result);
337
+ return retVal;
338
+ });
339
+ };
340
+ DFUWorkunit.attach = function (optsConnection, wuid, state) {
341
+ var retVal = _workunits.get({ BaseUrl: optsConnection.baseUrl, ID: wuid }, function () {
342
+ return new DFUWorkunit(optsConnection, wuid);
343
+ });
344
+ if (state) {
345
+ retVal.set(state);
346
+ }
347
+ return retVal;
348
+ };
349
+ DFUWorkunit.sprayFixed = function (server, request) {
350
+ var service = new FileSprayService(server);
351
+ return service.SprayFixedEx(__assign({}, request)).then(function (response) {
352
+ var wuid = response.wuid;
353
+ return service.GetDFUWorkunit({ wuid: wuid }).then(function (response) {
354
+ return DFUWorkunit.attach(server, wuid, response.result);
355
+ });
356
+ });
357
+ };
358
+ DFUWorkunit.sprayVariable = function (server, request) {
359
+ var service = new FileSprayService(server);
360
+ return service.SprayVariableEx(__assign({}, request)).then(function (response) {
361
+ var wuid = response.wuid;
362
+ return service.GetDFUWorkunit({ wuid: wuid }).then(function (response) {
363
+ return DFUWorkunit.attach(server, wuid, response.result);
364
+ });
365
+ });
366
+ };
367
+ DFUWorkunit.despray = function (server, request) {
368
+ var service = new FileSprayService(server);
369
+ return service.DesprayEx(__assign({}, request)).then(function (response) {
370
+ var wuid = response.wuid;
371
+ return service.GetDFUWorkunit({ wuid: wuid }).then(function (response) {
372
+ return DFUWorkunit.attach(server, wuid, response.result);
373
+ });
374
+ });
375
+ };
376
+ DFUWorkunit.prototype.isComplete = function () {
377
+ switch (this.State) {
378
+ case States.Finished:
379
+ case States.Failed:
380
+ case States.Aborted:
381
+ case States.NotFound:
382
+ return true;
383
+ default:
384
+ }
385
+ return false;
386
+ };
387
+ DFUWorkunit.prototype.isFailed = function () {
388
+ if (this.isComplete() && this.State !== States.Finished) {
389
+ return true;
390
+ }
391
+ return false;
392
+ };
393
+ DFUWorkunit.prototype.isDeleted = function () {
394
+ switch (this.State) {
395
+ case States.NotFound:
396
+ return true;
397
+ default:
398
+ }
399
+ return false;
400
+ };
401
+ DFUWorkunit.prototype.isRunning = function () {
402
+ return !this.isComplete();
403
+ };
404
+ DFUWorkunit.prototype.refresh = function (full) {
405
+ if (full === void 0) { full = false; }
406
+ return __awaiter(this, void 0, void 0, function () {
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0: return [4 /*yield*/, this.GetDFUWorkunit()];
410
+ case 1:
411
+ _a.sent();
412
+ return [2 /*return*/, this];
413
+ }
414
+ });
415
+ });
416
+ };
417
+ // Monitoring ---
418
+ DFUWorkunit.prototype._monitor = function () {
419
+ if (this.isComplete()) {
420
+ this._monitorTickCount = 0;
421
+ return;
422
+ }
423
+ _super.prototype._monitor.call(this);
424
+ };
425
+ DFUWorkunit.prototype._monitorTimeoutDuration = function () {
426
+ var retVal = _super.prototype._monitorTimeoutDuration.call(this);
427
+ if (this._monitorTickCount <= 1) { // Once
428
+ return 3000;
429
+ }
430
+ else if (this._monitorTickCount <= 5) { // Twice
431
+ return 6000;
432
+ }
433
+ else if (this._monitorTickCount <= 7) { // Twice
434
+ return 12000;
435
+ }
436
+ return retVal;
437
+ };
438
+ // Events ---
439
+ DFUWorkunit.prototype.on = function (eventID, propIDorCallback, callback) {
440
+ var _this = this;
441
+ if (this.isCallback(propIDorCallback)) {
442
+ switch (eventID) {
443
+ case "finished":
444
+ _super.prototype.on.call(this, "propChanged", "State", function (changeInfo) {
445
+ if (_this.isComplete()) {
446
+ propIDorCallback([changeInfo]);
447
+ }
448
+ });
449
+ break;
450
+ case "changed":
451
+ _super.prototype.on.call(this, eventID, propIDorCallback);
452
+ break;
453
+ default:
454
+ }
455
+ }
456
+ else {
457
+ switch (eventID) {
458
+ case "changed":
459
+ _super.prototype.on.call(this, eventID, propIDorCallback, callback);
460
+ break;
461
+ default:
462
+ }
463
+ }
464
+ this._monitor();
465
+ return this;
466
+ };
467
+ DFUWorkunit.prototype.watchUntilComplete = function (callback) {
468
+ var _this = this;
469
+ return new Promise(function (resolve, _) {
470
+ var watchHandle = _this.watch(function (changes) {
471
+ if (callback) {
472
+ callback(changes);
473
+ }
474
+ if (_this.isComplete()) {
475
+ watchHandle.release();
476
+ resolve(_this);
477
+ }
478
+ });
479
+ });
480
+ };
481
+ DFUWorkunit.prototype.watchUntilRunning = function (callback) {
482
+ var _this = this;
483
+ return new Promise(function (resolve, _) {
484
+ var watchHandle = _this.watch(function (changes) {
485
+ if (callback) {
486
+ callback(changes);
487
+ }
488
+ if (_this.isComplete() || _this.isRunning()) {
489
+ watchHandle.release();
490
+ resolve(_this);
491
+ }
492
+ });
493
+ });
494
+ };
495
+ DFUWorkunit.prototype.clearState = function (wuid) {
496
+ this.clear({
497
+ ID: wuid,
498
+ State: States.Unknown
499
+ });
500
+ };
501
+ // FileSpray passthroughs ---
502
+ DFUWorkunit.prototype.GetDFUWorkunit = function (_request) {
503
+ var _this = this;
504
+ if (_request === void 0) { _request = {}; }
505
+ return this.connection.GetDFUWorkunit(__assign(__assign({}, _request), { wuid: this.ID })).then(function (response) {
506
+ _this.set(response.result);
507
+ return response;
508
+ }).catch(function (e) {
509
+ // deleted ---
510
+ var wuMissing = e.Exception.some(function (exception) {
511
+ if (exception.Code === 20081) {
512
+ _this.clearState(_this.ID);
513
+ _this.set("State", States.NotFound);
514
+ return true;
515
+ }
516
+ return false;
517
+ });
518
+ if (!wuMissing) {
519
+ logger.warning("Unexpected exception: ");
520
+ throw e;
521
+ }
522
+ return {};
523
+ });
524
+ };
525
+ return DFUWorkunit;
526
+ }(StateObject));
527
+ export { DFUWorkunit };
528
+ //# sourceMappingURL=dfuWorkunit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dfuWorkunit.js","sourceRoot":"","sources":["../../src/ecl/dfuWorkunit.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAU,YAAY,EAA8B,WAAW,EAAqB,MAAM,eAAe,CAAC;AAIxH,OAAO,EAA2B,gBAAgB,EAAmB,MAAM,uBAAuB,CAAC;AACnG,O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CAAC,KAAK,CAAC;YACP,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;IACP,CAAC;IAED,+BAA+B;IACrB,oCAAc,GAAxB,UAAyB,QAAgD;QAAzE,iBAoBC;QApBwB,yBAAA,EAAA,aAAgD;QACrE,OAAO,IAAI,CAAC,UAAU,CAAC,cAAc,uBAAM,QAAQ,KAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAG,CAAC,IAAI,CAAC,UAAC,QAAQ;YAChF,KAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC1B,OAAO,QAAQ,CAAC;QACpB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,CAAgB;YACtB,gBAAgB;YAChB,IAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,UAAC,SAAS;gBACzC,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,EAAE;oBAC1B,KAAI,CAAC,UAAU,CAAC,KAAI,CAAC,EAAE,CAAC,CAAC;oBACzB,KAAI,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;oBACnC,OAAO,IAAI,CAAC;iBACf;gBACD,OAAO,KAAK,CAAC;YACjB,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,SAAS,EAAE;gBACZ,MAAM,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;gBAC1C,MAAM,CAAC,CAAC;aACX;YACD,OAAO,EAAsC,CAAC;QAClD,CAAC,CAAC,CAAC;IACP,CAAC;IACL,kBAAC;AAAD,CAAC,AA/QD,CAAiC,WAAW,GA+Q3C"}
@@ -1044,8 +1044,8 @@ var Workunit = /** @class */ (function (_super) {
1044
1044
  }
1045
1045
  _super.prototype._monitor.call(this);
1046
1046
  };
1047
- Workunit.prototype._monitorTimeoutDuraction = function () {
1048
- var retVal = _super.prototype._monitorTimeoutDuraction.call(this);
1047
+ Workunit.prototype._monitorTimeoutDuration = function () {
1048
+ var retVal = _super.prototype._monitorTimeoutDuration.call(this);
1049
1049
  if (this._monitorTickCount <= 1) { // Once
1050
1050
  return 1000;
1051
1051
  }