@seedtactics/insight-client 16.8.0 → 16.8.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 (167) hide show
  1. package/README.md +23 -29
  2. package/dist/assets/index-BDPKYaRT.js +388 -0
  3. package/dist/cell-status/current-status.js +4 -1
  4. package/dist/cell-status/estimated-cycle-times.js +2 -1
  5. package/dist/cell-status/inspections.js +1 -1
  6. package/dist/cell-status/loading.js +1 -1
  7. package/dist/cell-status/material-summary.js +4 -2
  8. package/dist/cell-status/names.js +1 -1
  9. package/dist/cell-status/rebookings.js +3 -1
  10. package/dist/cell-status/scheduled-jobs.js +1 -1
  11. package/dist/cell-status/sim-production.js +6 -2
  12. package/dist/cell-status/station-cycles.js +3 -1
  13. package/dist/cell-status/tool-replacements.js +21 -7
  14. package/dist/cell-status/tool-usage.js +7 -2
  15. package/dist/components/App.d.ts +2 -2
  16. package/dist/components/App.js +13 -5
  17. package/dist/components/AxisAndGrid.d.ts +6 -6
  18. package/dist/components/BarcodeScanning.d.ts +2 -2
  19. package/dist/components/BarcodeScanning.js +9 -3
  20. package/dist/components/ChartTooltip.d.ts +2 -2
  21. package/dist/components/ChooseMode.js +6 -1
  22. package/dist/components/ChooseOperator.d.ts +1 -1
  23. package/dist/components/ChooseOperator.js +1 -1
  24. package/dist/components/ErrorsAndLoading.d.ts +3 -3
  25. package/dist/components/ErrorsAndLoading.js +1 -1
  26. package/dist/components/LoadingIcon.d.ts +1 -1
  27. package/dist/components/LoadingIcon.js +2 -2
  28. package/dist/components/LogEntry.d.ts +2 -2
  29. package/dist/components/LogEntry.js +31 -29
  30. package/dist/components/ManualSerialEntry.d.ts +2 -2
  31. package/dist/components/ManualSerialEntry.js +1 -1
  32. package/dist/components/MonthSelect.d.ts +1 -1
  33. package/dist/components/MonthSelect.js +4 -2
  34. package/dist/components/Navigation.d.ts +2 -2
  35. package/dist/components/Navigation.js +2 -2
  36. package/dist/components/VerboseLogging.d.ts +1 -1
  37. package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -1
  38. package/dist/components/analysis/BasketCycleCards.d.ts +1 -1
  39. package/dist/components/analysis/BasketCycleCards.js +2 -2
  40. package/dist/components/analysis/BufferChart.d.ts +1 -1
  41. package/dist/components/analysis/BufferChart.js +23 -4
  42. package/dist/components/analysis/CostPerPiece.d.ts +2 -2
  43. package/dist/components/analysis/CostPerPiece.js +3 -3
  44. package/dist/components/analysis/CycleChart.d.ts +1 -1
  45. package/dist/components/analysis/CycleChart.js +19 -6
  46. package/dist/components/analysis/DataTable.js +5 -3
  47. package/dist/components/analysis/EfficiencyPage.d.ts +2 -2
  48. package/dist/components/analysis/EfficiencyPage.js +1 -1
  49. package/dist/components/analysis/HeatChart.d.ts +1 -1
  50. package/dist/components/analysis/HeatChart.js +13 -4
  51. package/dist/components/analysis/InspectionDataTable.d.ts +1 -1
  52. package/dist/components/analysis/InspectionDataTable.js +6 -1
  53. package/dist/components/analysis/InspectionSankey.d.ts +1 -1
  54. package/dist/components/analysis/InspectionSankey.js +16 -6
  55. package/dist/components/analysis/PalletCycleCards.d.ts +1 -1
  56. package/dist/components/analysis/PalletCycleCards.js +5 -3
  57. package/dist/components/analysis/PartCycleCards.d.ts +2 -2
  58. package/dist/components/analysis/PartCycleCards.js +16 -6
  59. package/dist/components/analysis/QualityPage.d.ts +1 -1
  60. package/dist/components/analysis/ScheduleHistory.d.ts +1 -1
  61. package/dist/components/analysis/ScheduleHistory.js +2 -2
  62. package/dist/components/analysis/StationDataTable.d.ts +1 -1
  63. package/dist/components/analysis/ToolReplacements.d.ts +1 -1
  64. package/dist/components/analysis/ToolReplacements.js +8 -4
  65. package/dist/components/operations/AllMaterial.d.ts +1 -1
  66. package/dist/components/operations/AllMaterial.js +1 -1
  67. package/dist/components/operations/ChartRangeEdit.d.ts +1 -1
  68. package/dist/components/operations/ChartRangeEdit.js +14 -5
  69. package/dist/components/operations/CloseoutReport.js +2 -2
  70. package/dist/components/operations/CompletedParts.js +3 -3
  71. package/dist/components/operations/CurrentWorkorders.js +3 -3
  72. package/dist/components/operations/Dashboard.d.ts +2 -2
  73. package/dist/components/operations/Dashboard.js +1 -1
  74. package/dist/components/operations/OEEChart.d.ts +4 -4
  75. package/dist/components/operations/OEEChart.js +7 -2
  76. package/dist/components/operations/Outliers.d.ts +1 -1
  77. package/dist/components/operations/Outliers.js +1 -1
  78. package/dist/components/operations/Programs.js +10 -5
  79. package/dist/components/operations/Rebookings.d.ts +1 -1
  80. package/dist/components/operations/Rebookings.js +4 -2
  81. package/dist/components/operations/RecentCycleChart.d.ts +1 -1
  82. package/dist/components/operations/RecentCycleChart.js +3 -3
  83. package/dist/components/operations/RecentProduction.js +3 -3
  84. package/dist/components/operations/RecentSchedules.js +6 -4
  85. package/dist/components/operations/RecentStationCycles.d.ts +1 -1
  86. package/dist/components/operations/RecentStationCycles.js +2 -2
  87. package/dist/components/operations/ShiftSettings.d.ts +1 -1
  88. package/dist/components/operations/SimDayUsage.d.ts +1 -1
  89. package/dist/components/operations/SimDayUsage.js +1 -1
  90. package/dist/components/operations/ToolReport.js +21 -10
  91. package/dist/components/operations/WorkorderGantt.d.ts +1 -1
  92. package/dist/components/operations/WorkorderGantt.js +1 -1
  93. package/dist/components/quality/QualityMaterial.d.ts +2 -2
  94. package/dist/components/quality/QualityMaterial.js +2 -2
  95. package/dist/components/quality/QualityPaths.d.ts +1 -1
  96. package/dist/components/quality/RecentFailedInspections.d.ts +1 -1
  97. package/dist/components/quality/RecentFailedInspections.js +1 -1
  98. package/dist/components/routes.d.ts +1 -1
  99. package/dist/components/routes.js +1 -1
  100. package/dist/components/station-monitor/BulkRawMaterial.d.ts +2 -2
  101. package/dist/components/station-monitor/BulkRawMaterial.js +12 -6
  102. package/dist/components/station-monitor/Closeout.js +7 -3
  103. package/dist/components/station-monitor/CustomStationMonitorDialog.js +1 -1
  104. package/dist/components/station-monitor/Inspection.js +4 -2
  105. package/dist/components/station-monitor/InvalidateCycle.d.ts +3 -3
  106. package/dist/components/station-monitor/InvalidateCycle.js +11 -4
  107. package/dist/components/station-monitor/JobDetails.js +5 -3
  108. package/dist/components/station-monitor/LoadStation.d.ts +1 -1
  109. package/dist/components/station-monitor/LoadStation.js +11 -8
  110. package/dist/components/station-monitor/Material.d.ts +10 -10
  111. package/dist/components/station-monitor/Material.js +31 -23
  112. package/dist/components/station-monitor/Material.test.js +1 -1
  113. package/dist/components/station-monitor/MoveMaterialArrows.d.ts +2 -2
  114. package/dist/components/station-monitor/PrintedLabel.d.ts +3 -3
  115. package/dist/components/station-monitor/PrintedLabel.js +10 -5
  116. package/dist/components/station-monitor/QuarantineButton.d.ts +1 -1
  117. package/dist/components/station-monitor/QuarantineButton.js +5 -3
  118. package/dist/components/station-monitor/Queues.d.ts +2 -2
  119. package/dist/components/station-monitor/Queues.js +8 -6
  120. package/dist/components/station-monitor/QueuesAddMaterial.d.ts +3 -3
  121. package/dist/components/station-monitor/QueuesAddMaterial.js +22 -9
  122. package/dist/components/station-monitor/SelectInspType.d.ts +2 -2
  123. package/dist/components/station-monitor/SelectInspType.js +1 -1
  124. package/dist/components/station-monitor/SelectWorkorder.d.ts +1 -1
  125. package/dist/components/station-monitor/SelectWorkorder.js +1 -1
  126. package/dist/components/station-monitor/StationToolbar.d.ts +1 -1
  127. package/dist/components/station-monitor/StationToolbar.js +13 -3
  128. package/dist/components/station-monitor/SystemOverview.d.ts +4 -4
  129. package/dist/components/station-monitor/SystemOverview.js +45 -23
  130. package/dist/components/station-monitor/Whiteboard.d.ts +1 -1
  131. package/dist/data/all-material-bins.d.ts +1 -1
  132. package/dist/data/all-material-bins.js +7 -6
  133. package/dist/data/chart-times.d.ts +1 -1
  134. package/dist/data/cost-per-piece.js +3 -1
  135. package/dist/data/current-cycles.js +3 -3
  136. package/dist/data/move-arrows.js +3 -1
  137. package/dist/data/operators.d.ts +1 -1
  138. package/dist/data/part-summary.js +1 -1
  139. package/dist/data/results.cycles.js +13 -4
  140. package/dist/data/tools-programs.d.ts +2 -2
  141. package/dist/data/tools-programs.js +3 -2
  142. package/dist/index.html +1 -1
  143. package/dist/network/api.d.ts +75 -9
  144. package/dist/network/api.js +626 -379
  145. package/dist/util/chart-colors.js +12 -1
  146. package/docs/client-efficiency.md +226 -263
  147. package/docs/client-engineering.md +27 -28
  148. package/docs/client-launch.md +32 -33
  149. package/docs/client-operations.md +50 -53
  150. package/docs/client-quality.md +39 -43
  151. package/docs/client-sales.md +36 -40
  152. package/docs/client-scanners.md +27 -27
  153. package/docs/client-station-monitor.md +86 -96
  154. package/docs/client-tools-programs.md +47 -44
  155. package/docs/improve-fms.md +73 -78
  156. package/docs/makino.md +21 -25
  157. package/docs/material-quarantine.md +50 -64
  158. package/docs/material-tracking.md +162 -195
  159. package/docs/mazak.md +78 -91
  160. package/docs/niigata.md +145 -168
  161. package/docs/operator-procedures.md +72 -76
  162. package/docs/part-instructions.md +36 -36
  163. package/docs/security.md +87 -81
  164. package/docs/server-config.md +36 -45
  165. package/docs/server-errors.md +21 -22
  166. package/package.json +27 -26
  167. package/dist/assets/index-BwbaiELK.js +0 -364
@@ -18,8 +18,8 @@ export class FmsClient {
18
18
  method: "GET",
19
19
  signal,
20
20
  headers: {
21
- "Accept": "application/json"
22
- }
21
+ Accept: "application/json",
22
+ },
23
23
  };
24
24
  return this.http.fetch(url_, options_).then((_response) => {
25
25
  return this.processFMSInformation(_response);
@@ -29,9 +29,8 @@ export class FmsClient {
29
29
  const status = response.status;
30
30
  let _headers = {};
31
31
  if (response.headers && response.headers.forEach) {
32
- response.headers.forEach((v, k) => _headers[k] = v);
32
+ response.headers.forEach((v, k) => (_headers[k] = v));
33
33
  }
34
- ;
35
34
  if (status === 200) {
36
35
  return response.text().then((_responseText) => {
37
36
  let result200 = null;
@@ -70,7 +69,7 @@ export class FmsClient {
70
69
  let options_ = {
71
70
  method: "GET",
72
71
  signal,
73
- headers: {}
72
+ headers: {},
74
73
  };
75
74
  return this.http.fetch(url_, options_).then((_response) => {
76
75
  return this.processFindInstructions(_response);
@@ -80,9 +79,8 @@ export class FmsClient {
80
79
  const status = response.status;
81
80
  let _headers = {};
82
81
  if (response.headers && response.headers.forEach) {
83
- response.headers.forEach((v, k) => _headers[k] = v);
82
+ response.headers.forEach((v, k) => (_headers[k] = v));
84
83
  }
85
- ;
86
84
  if (status === 302) {
87
85
  return response.text().then((_responseText) => {
88
86
  return throwException("A server side error occurred.", status, _responseText, _headers);
@@ -116,7 +114,7 @@ export class FmsClient {
116
114
  let options_ = {
117
115
  method: "POST",
118
116
  signal,
119
- headers: {}
117
+ headers: {},
120
118
  };
121
119
  return this.http.fetch(url_, options_).then((_response) => {
122
120
  return this.processPrintLabel(_response);
@@ -126,9 +124,8 @@ export class FmsClient {
126
124
  const status = response.status;
127
125
  let _headers = {};
128
126
  if (response.headers && response.headers.forEach) {
129
- response.headers.forEach((v, k) => _headers[k] = v);
127
+ response.headers.forEach((v, k) => (_headers[k] = v));
130
128
  }
131
- ;
132
129
  if (status === 200) {
133
130
  return response.text().then((_responseText) => {
134
131
  return;
@@ -156,14 +153,17 @@ export class FmsClient {
156
153
  else
157
154
  url_ += "barcode=" + encodeURIComponent("" + barcode) + "&";
158
155
  if (queuesToAddTo !== undefined && queuesToAddTo !== null)
159
- queuesToAddTo && queuesToAddTo.forEach(item => { url_ += "queuesToAddTo=" + encodeURIComponent("" + item) + "&"; });
156
+ queuesToAddTo &&
157
+ queuesToAddTo.forEach((item) => {
158
+ url_ += "queuesToAddTo=" + encodeURIComponent("" + item) + "&";
159
+ });
160
160
  url_ = url_.replace(/[?&]$/, "");
161
161
  let options_ = {
162
162
  method: "POST",
163
163
  signal,
164
164
  headers: {
165
- "Accept": "application/json"
166
- }
165
+ Accept: "application/json",
166
+ },
167
167
  };
168
168
  return this.http.fetch(url_, options_).then((_response) => {
169
169
  return this.processParseBarcode(_response);
@@ -173,9 +173,8 @@ export class FmsClient {
173
173
  const status = response.status;
174
174
  let _headers = {};
175
175
  if (response.headers && response.headers.forEach) {
176
- response.headers.forEach((v, k) => _headers[k] = v);
176
+ response.headers.forEach((v, k) => (_headers[k] = v));
177
177
  }
178
- ;
179
178
  if (status === 200) {
180
179
  return response.text().then((_responseText) => {
181
180
  let result200 = null;
@@ -197,7 +196,7 @@ export class FmsClient {
197
196
  let options_ = {
198
197
  method: "POST",
199
198
  signal,
200
- headers: {}
199
+ headers: {},
201
200
  };
202
201
  return this.http.fetch(url_, options_).then((_response) => {
203
202
  return this.processEnableVerboseLoggingForFiveMinutes(_response);
@@ -207,9 +206,8 @@ export class FmsClient {
207
206
  const status = response.status;
208
207
  let _headers = {};
209
208
  if (response.headers && response.headers.forEach) {
210
- response.headers.forEach((v, k) => _headers[k] = v);
209
+ response.headers.forEach((v, k) => (_headers[k] = v));
211
210
  }
212
- ;
213
211
  if (status === 200) {
214
212
  return response.text().then((_responseText) => {
215
213
  return;
@@ -244,8 +242,8 @@ export class JobsClient {
244
242
  method: "GET",
245
243
  signal,
246
244
  headers: {
247
- "Accept": "application/json"
248
- }
245
+ Accept: "application/json",
246
+ },
249
247
  };
250
248
  return this.http.fetch(url_, options_).then((_response) => {
251
249
  return this.processHistory(_response);
@@ -255,9 +253,8 @@ export class JobsClient {
255
253
  const status = response.status;
256
254
  let _headers = {};
257
255
  if (response.headers && response.headers.forEach) {
258
- response.headers.forEach((v, k) => _headers[k] = v);
256
+ response.headers.forEach((v, k) => (_headers[k] = v));
259
257
  }
260
- ;
261
258
  if (status === 200) {
262
259
  return response.text().then((_responseText) => {
263
260
  let result200 = null;
@@ -291,8 +288,8 @@ export class JobsClient {
291
288
  signal,
292
289
  headers: {
293
290
  "Content-Type": "application/json",
294
- "Accept": "application/json"
295
- }
291
+ Accept: "application/json",
292
+ },
296
293
  };
297
294
  return this.http.fetch(url_, options_).then((_response) => {
298
295
  return this.processFilteredHistory(_response);
@@ -302,9 +299,8 @@ export class JobsClient {
302
299
  const status = response.status;
303
300
  let _headers = {};
304
301
  if (response.headers && response.headers.forEach) {
305
- response.headers.forEach((v, k) => _headers[k] = v);
302
+ response.headers.forEach((v, k) => (_headers[k] = v));
306
303
  }
307
- ;
308
304
  if (status === 200) {
309
305
  return response.text().then((_responseText) => {
310
306
  let result200 = null;
@@ -334,8 +330,8 @@ export class JobsClient {
334
330
  signal,
335
331
  headers: {
336
332
  "Content-Type": "application/json",
337
- "Accept": "application/json"
338
- }
333
+ Accept: "application/json",
334
+ },
339
335
  };
340
336
  return this.http.fetch(url_, options_).then((_response) => {
341
337
  return this.processRecent(_response);
@@ -345,9 +341,8 @@ export class JobsClient {
345
341
  const status = response.status;
346
342
  let _headers = {};
347
343
  if (response.headers && response.headers.forEach) {
348
- response.headers.forEach((v, k) => _headers[k] = v);
344
+ response.headers.forEach((v, k) => (_headers[k] = v));
349
345
  }
350
- ;
351
346
  if (status === 200) {
352
347
  return response.text().then((_responseText) => {
353
348
  let result200 = null;
@@ -370,8 +365,8 @@ export class JobsClient {
370
365
  method: "GET",
371
366
  signal,
372
367
  headers: {
373
- "Accept": "application/json"
374
- }
368
+ Accept: "application/json",
369
+ },
375
370
  };
376
371
  return this.http.fetch(url_, options_).then((_response) => {
377
372
  return this.processLatestSchedule(_response);
@@ -381,9 +376,8 @@ export class JobsClient {
381
376
  const status = response.status;
382
377
  let _headers = {};
383
378
  if (response.headers && response.headers.forEach) {
384
- response.headers.forEach((v, k) => _headers[k] = v);
379
+ response.headers.forEach((v, k) => (_headers[k] = v));
385
380
  }
386
- ;
387
381
  if (status === 200) {
388
382
  return response.text().then((_responseText) => {
389
383
  let result200 = null;
@@ -406,8 +400,8 @@ export class JobsClient {
406
400
  method: "GET",
407
401
  signal,
408
402
  headers: {
409
- "Accept": "application/json"
410
- }
403
+ Accept: "application/json",
404
+ },
411
405
  };
412
406
  return this.http.fetch(url_, options_).then((_response) => {
413
407
  return this.processCurrentStatus(_response);
@@ -417,9 +411,8 @@ export class JobsClient {
417
411
  const status = response.status;
418
412
  let _headers = {};
419
413
  if (response.headers && response.headers.forEach) {
420
- response.headers.forEach((v, k) => _headers[k] = v);
414
+ response.headers.forEach((v, k) => (_headers[k] = v));
421
415
  }
422
- ;
423
416
  if (status === 200) {
424
417
  return response.text().then((_responseText) => {
425
418
  let result200 = null;
@@ -442,8 +435,8 @@ export class JobsClient {
442
435
  method: "GET",
443
436
  signal,
444
437
  headers: {
445
- "Accept": "application/json"
446
- }
438
+ Accept: "application/json",
439
+ },
447
440
  };
448
441
  return this.http.fetch(url_, options_).then((_response) => {
449
442
  return this.processUnscheduledRebookings(_response);
@@ -453,9 +446,8 @@ export class JobsClient {
453
446
  const status = response.status;
454
447
  let _headers = {};
455
448
  if (response.headers && response.headers.forEach) {
456
- response.headers.forEach((v, k) => _headers[k] = v);
449
+ response.headers.forEach((v, k) => (_headers[k] = v));
457
450
  }
458
- ;
459
451
  if (status === 200) {
460
452
  return response.text().then((_responseText) => {
461
453
  let result200 = null;
@@ -483,7 +475,8 @@ export class JobsClient {
483
475
  if (expectedPreviousScheduleId === undefined)
484
476
  throw new globalThis.Error("The parameter 'expectedPreviousScheduleId' must be defined.");
485
477
  else if (expectedPreviousScheduleId !== null)
486
- url_ += "expectedPreviousScheduleId=" + encodeURIComponent("" + expectedPreviousScheduleId) + "&";
478
+ url_ +=
479
+ "expectedPreviousScheduleId=" + encodeURIComponent("" + expectedPreviousScheduleId) + "&";
487
480
  url_ = url_.replace(/[?&]$/, "");
488
481
  const content_ = JSON.stringify(simResults);
489
482
  let options_ = {
@@ -492,7 +485,7 @@ export class JobsClient {
492
485
  signal,
493
486
  headers: {
494
487
  "Content-Type": "application/json",
495
- }
488
+ },
496
489
  };
497
490
  return this.http.fetch(url_, options_).then((_response) => {
498
491
  return this.processAddFromSim(_response);
@@ -502,9 +495,8 @@ export class JobsClient {
502
495
  const status = response.status;
503
496
  let _headers = {};
504
497
  if (response.headers && response.headers.forEach) {
505
- response.headers.forEach((v, k) => _headers[k] = v);
498
+ response.headers.forEach((v, k) => (_headers[k] = v));
506
499
  }
507
- ;
508
500
  if (status === 200) {
509
501
  return response.text().then((_responseText) => {
510
502
  return;
@@ -522,7 +514,8 @@ export class JobsClient {
522
514
  if (expectedPreviousScheduleId === undefined)
523
515
  throw new globalThis.Error("The parameter 'expectedPreviousScheduleId' must be defined.");
524
516
  else if (expectedPreviousScheduleId !== null)
525
- url_ += "expectedPreviousScheduleId=" + encodeURIComponent("" + expectedPreviousScheduleId) + "&";
517
+ url_ +=
518
+ "expectedPreviousScheduleId=" + encodeURIComponent("" + expectedPreviousScheduleId) + "&";
526
519
  url_ = url_.replace(/[?&]$/, "");
527
520
  const content_ = JSON.stringify(newJobs);
528
521
  let options_ = {
@@ -531,7 +524,7 @@ export class JobsClient {
531
524
  signal,
532
525
  headers: {
533
526
  "Content-Type": "application/json",
534
- }
527
+ },
535
528
  };
536
529
  return this.http.fetch(url_, options_).then((_response) => {
537
530
  return this.processAdd(_response);
@@ -541,9 +534,8 @@ export class JobsClient {
541
534
  const status = response.status;
542
535
  let _headers = {};
543
536
  if (response.headers && response.headers.forEach) {
544
- response.headers.forEach((v, k) => _headers[k] = v);
537
+ response.headers.forEach((v, k) => (_headers[k] = v));
545
538
  }
546
- ;
547
539
  if (status === 200) {
548
540
  return response.text().then((_responseText) => {
549
541
  return;
@@ -581,8 +573,8 @@ export class JobsClient {
581
573
  signal,
582
574
  headers: {
583
575
  "Content-Type": "application/json",
584
- "Accept": "application/json"
585
- }
576
+ Accept: "application/json",
577
+ },
586
578
  };
587
579
  return this.http.fetch(url_, options_).then((_response) => {
588
580
  return this.processAddUnallocatedCastingToQueue(_response);
@@ -592,9 +584,8 @@ export class JobsClient {
592
584
  const status = response.status;
593
585
  let _headers = {};
594
586
  if (response.headers && response.headers.forEach) {
595
- response.headers.forEach((v, k) => _headers[k] = v);
587
+ response.headers.forEach((v, k) => (_headers[k] = v));
596
588
  }
597
- ;
598
589
  if (status === 200) {
599
590
  return response.text().then((_responseText) => {
600
591
  let result200 = null;
@@ -627,8 +618,8 @@ export class JobsClient {
627
618
  method: "GET",
628
619
  signal,
629
620
  headers: {
630
- "Accept": "application/json"
631
- }
621
+ Accept: "application/json",
622
+ },
632
623
  };
633
624
  return this.http.fetch(url_, options_).then((_response) => {
634
625
  return this.processGetJobPlan(_response);
@@ -638,9 +629,8 @@ export class JobsClient {
638
629
  const status = response.status;
639
630
  let _headers = {};
640
631
  if (response.headers && response.headers.forEach) {
641
- response.headers.forEach((v, k) => _headers[k] = v);
632
+ response.headers.forEach((v, k) => (_headers[k] = v));
642
633
  }
643
- ;
644
634
  if (status === 200) {
645
635
  return response.text().then((_responseText) => {
646
636
  let result200 = null;
@@ -685,8 +675,8 @@ export class JobsClient {
685
675
  signal,
686
676
  headers: {
687
677
  "Content-Type": "application/json",
688
- "Accept": "application/json"
689
- }
678
+ Accept: "application/json",
679
+ },
690
680
  };
691
681
  return this.http.fetch(url_, options_).then((_response) => {
692
682
  return this.processAddUnprocessedMaterialToQueue(_response);
@@ -696,9 +686,8 @@ export class JobsClient {
696
686
  const status = response.status;
697
687
  let _headers = {};
698
688
  if (response.headers && response.headers.forEach) {
699
- response.headers.forEach((v, k) => _headers[k] = v);
689
+ response.headers.forEach((v, k) => (_headers[k] = v));
700
690
  }
701
- ;
702
691
  if (status === 200) {
703
692
  return response.text().then((_responseText) => {
704
693
  let result200 = null;
@@ -727,7 +716,7 @@ export class JobsClient {
727
716
  signal,
728
717
  headers: {
729
718
  "Content-Type": "application/json",
730
- }
719
+ },
731
720
  };
732
721
  return this.http.fetch(url_, options_).then((_response) => {
733
722
  return this.processSetJobComment(_response);
@@ -737,9 +726,8 @@ export class JobsClient {
737
726
  const status = response.status;
738
727
  let _headers = {};
739
728
  if (response.headers && response.headers.forEach) {
740
- response.headers.forEach((v, k) => _headers[k] = v);
729
+ response.headers.forEach((v, k) => (_headers[k] = v));
741
730
  }
742
- ;
743
731
  if (status === 200) {
744
732
  return response.text().then((_responseText) => {
745
733
  return;
@@ -767,7 +755,7 @@ export class JobsClient {
767
755
  signal,
768
756
  headers: {
769
757
  "Content-Type": "application/json",
770
- }
758
+ },
771
759
  };
772
760
  return this.http.fetch(url_, options_).then((_response) => {
773
761
  return this.processSetMaterialInQueue(_response);
@@ -777,9 +765,8 @@ export class JobsClient {
777
765
  const status = response.status;
778
766
  let _headers = {};
779
767
  if (response.headers && response.headers.forEach) {
780
- response.headers.forEach((v, k) => _headers[k] = v);
768
+ response.headers.forEach((v, k) => (_headers[k] = v));
781
769
  }
782
- ;
783
770
  if (status === 200) {
784
771
  return response.text().then((_responseText) => {
785
772
  return;
@@ -803,7 +790,7 @@ export class JobsClient {
803
790
  let options_ = {
804
791
  method: "DELETE",
805
792
  signal,
806
- headers: {}
793
+ headers: {},
807
794
  };
808
795
  return this.http.fetch(url_, options_).then((_response) => {
809
796
  return this.processRemoveMaterialFromAllQueues(_response);
@@ -813,9 +800,8 @@ export class JobsClient {
813
800
  const status = response.status;
814
801
  let _headers = {};
815
802
  if (response.headers && response.headers.forEach) {
816
- response.headers.forEach((v, k) => _headers[k] = v);
803
+ response.headers.forEach((v, k) => (_headers[k] = v));
817
804
  }
818
- ;
819
805
  if (status === 200) {
820
806
  return response.text().then((_responseText) => {
821
807
  return;
@@ -843,7 +829,7 @@ export class JobsClient {
843
829
  signal,
844
830
  headers: {
845
831
  "Content-Type": "application/json",
846
- }
832
+ },
847
833
  };
848
834
  return this.http.fetch(url_, options_).then((_response) => {
849
835
  return this.processSignalMaterialForQuarantine(_response);
@@ -853,9 +839,8 @@ export class JobsClient {
853
839
  const status = response.status;
854
840
  let _headers = {};
855
841
  if (response.headers && response.headers.forEach) {
856
- response.headers.forEach((v, k) => _headers[k] = v);
842
+ response.headers.forEach((v, k) => (_headers[k] = v));
857
843
  }
858
- ;
859
844
  if (status === 200) {
860
845
  return response.text().then((_responseText) => {
861
846
  return;
@@ -887,8 +872,8 @@ export class JobsClient {
887
872
  signal,
888
873
  headers: {
889
874
  "Content-Type": "application/json",
890
- "Accept": "application/json"
891
- }
875
+ Accept: "application/json",
876
+ },
892
877
  };
893
878
  return this.http.fetch(url_, options_).then((_response) => {
894
879
  return this.processInvalidatePalletCycle(_response);
@@ -898,9 +883,8 @@ export class JobsClient {
898
883
  const status = response.status;
899
884
  let _headers = {};
900
885
  if (response.headers && response.headers.forEach) {
901
- response.headers.forEach((v, k) => _headers[k] = v);
886
+ response.headers.forEach((v, k) => (_headers[k] = v));
902
887
  }
903
- ;
904
888
  if (status === 200) {
905
889
  return response.text().then((_responseText) => {
906
890
  let result200 = null;
@@ -931,7 +915,7 @@ export class JobsClient {
931
915
  signal,
932
916
  headers: {
933
917
  "Content-Type": "application/json",
934
- }
918
+ },
935
919
  };
936
920
  return this.http.fetch(url_, options_).then((_response) => {
937
921
  return this.processSwapMaterialOnPallet(_response);
@@ -941,9 +925,8 @@ export class JobsClient {
941
925
  const status = response.status;
942
926
  let _headers = {};
943
927
  if (response.headers && response.headers.forEach) {
944
- response.headers.forEach((v, k) => _headers[k] = v);
928
+ response.headers.forEach((v, k) => (_headers[k] = v));
945
929
  }
946
- ;
947
930
  if (status === 200) {
948
931
  return response.text().then((_responseText) => {
949
932
  return;
@@ -968,7 +951,7 @@ export class JobsClient {
968
951
  signal,
969
952
  headers: {
970
953
  "Content-Type": "application/json",
971
- }
954
+ },
972
955
  };
973
956
  return this.http.fetch(url_, options_).then((_response) => {
974
957
  return this.processBulkRemoveMaterialFromQueues(_response);
@@ -978,9 +961,8 @@ export class JobsClient {
978
961
  const status = response.status;
979
962
  let _headers = {};
980
963
  if (response.headers && response.headers.forEach) {
981
- response.headers.forEach((v, k) => _headers[k] = v);
964
+ response.headers.forEach((v, k) => (_headers[k] = v));
982
965
  }
983
- ;
984
966
  if (status === 200) {
985
967
  return response.text().then((_responseText) => {
986
968
  return;
@@ -995,17 +977,24 @@ export class JobsClient {
995
977
  }
996
978
  decrementQuantities(loadDecrementsStrictlyAfterDecrementId, loadDecrementsAfterTimeUTC, signal) {
997
979
  let url_ = this.baseUrl + "/api/v1/jobs/planned-cycles?";
998
- if (loadDecrementsStrictlyAfterDecrementId !== undefined && loadDecrementsStrictlyAfterDecrementId !== null)
999
- url_ += "loadDecrementsStrictlyAfterDecrementId=" + encodeURIComponent("" + loadDecrementsStrictlyAfterDecrementId) + "&";
980
+ if (loadDecrementsStrictlyAfterDecrementId !== undefined &&
981
+ loadDecrementsStrictlyAfterDecrementId !== null)
982
+ url_ +=
983
+ "loadDecrementsStrictlyAfterDecrementId=" +
984
+ encodeURIComponent("" + loadDecrementsStrictlyAfterDecrementId) +
985
+ "&";
1000
986
  if (loadDecrementsAfterTimeUTC !== undefined && loadDecrementsAfterTimeUTC !== null)
1001
- url_ += "loadDecrementsAfterTimeUTC=" + encodeURIComponent(loadDecrementsAfterTimeUTC ? "" + loadDecrementsAfterTimeUTC.toISOString() : "") + "&";
987
+ url_ +=
988
+ "loadDecrementsAfterTimeUTC=" +
989
+ encodeURIComponent(loadDecrementsAfterTimeUTC ? "" + loadDecrementsAfterTimeUTC.toISOString() : "") +
990
+ "&";
1002
991
  url_ = url_.replace(/[?&]$/, "");
1003
992
  let options_ = {
1004
993
  method: "DELETE",
1005
994
  signal,
1006
995
  headers: {
1007
- "Accept": "application/json"
1008
- }
996
+ Accept: "application/json",
997
+ },
1009
998
  };
1010
999
  return this.http.fetch(url_, options_).then((_response) => {
1011
1000
  return this.processDecrementQuantities(_response);
@@ -1015,9 +1004,8 @@ export class JobsClient {
1015
1004
  const status = response.status;
1016
1005
  let _headers = {};
1017
1006
  if (response.headers && response.headers.forEach) {
1018
- response.headers.forEach((v, k) => _headers[k] = v);
1007
+ response.headers.forEach((v, k) => (_headers[k] = v));
1019
1008
  }
1020
- ;
1021
1009
  if (status === 200) {
1022
1010
  return response.text().then((_responseText) => {
1023
1011
  let result200 = null;
@@ -1062,8 +1050,8 @@ export class LogClient {
1062
1050
  method: "GET",
1063
1051
  signal,
1064
1052
  headers: {
1065
- "Accept": "application/json"
1066
- }
1053
+ Accept: "application/json",
1054
+ },
1067
1055
  };
1068
1056
  return this.http.fetch(url_, options_).then((_response) => {
1069
1057
  return this.processGet(_response);
@@ -1073,9 +1061,8 @@ export class LogClient {
1073
1061
  const status = response.status;
1074
1062
  let _headers = {};
1075
1063
  if (response.headers && response.headers.forEach) {
1076
- response.headers.forEach((v, k) => _headers[k] = v);
1064
+ response.headers.forEach((v, k) => (_headers[k] = v));
1077
1065
  }
1078
- ;
1079
1066
  if (status === 200) {
1080
1067
  return response.text().then((_responseText) => {
1081
1068
  let result200 = null;
@@ -1113,8 +1100,8 @@ export class LogClient {
1113
1100
  method: "GET",
1114
1101
  signal,
1115
1102
  headers: {
1116
- "Accept": "application/octet-stream"
1117
- }
1103
+ Accept: "application/octet-stream",
1104
+ },
1118
1105
  };
1119
1106
  return this.http.fetch(url_, options_).then((_response) => {
1120
1107
  return this.processGetEventCSV(_response);
@@ -1124,21 +1111,30 @@ export class LogClient {
1124
1111
  const status = response.status;
1125
1112
  let _headers = {};
1126
1113
  if (response.headers && response.headers.forEach) {
1127
- response.headers.forEach((v, k) => _headers[k] = v);
1114
+ response.headers.forEach((v, k) => (_headers[k] = v));
1128
1115
  }
1129
- ;
1130
1116
  if (status === 200 || status === 206) {
1131
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1132
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
1133
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
1117
+ const contentDisposition = response.headers
1118
+ ? response.headers.get("content-disposition")
1119
+ : undefined;
1120
+ let fileNameMatch = contentDisposition
1121
+ ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition)
1122
+ : undefined;
1123
+ let fileName = fileNameMatch && fileNameMatch.length > 1
1124
+ ? fileNameMatch[3] || fileNameMatch[2]
1125
+ : undefined;
1134
1126
  if (fileName) {
1135
1127
  fileName = decodeURIComponent(fileName);
1136
1128
  }
1137
1129
  else {
1138
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1130
+ fileNameMatch = contentDisposition
1131
+ ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition)
1132
+ : undefined;
1139
1133
  fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1140
1134
  }
1141
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
1135
+ return response.blob().then((blob) => {
1136
+ return { fileName: fileName, data: blob, status: status, headers: _headers };
1137
+ });
1142
1138
  }
1143
1139
  else if (status !== 200 && status !== 204) {
1144
1140
  return response.text().then((_responseText) => {
@@ -1162,8 +1158,8 @@ export class LogClient {
1162
1158
  method: "GET",
1163
1159
  signal,
1164
1160
  headers: {
1165
- "Accept": "application/json"
1166
- }
1161
+ Accept: "application/json",
1162
+ },
1167
1163
  };
1168
1164
  return this.http.fetch(url_, options_).then((_response) => {
1169
1165
  return this.processGetCompletedParts(_response);
@@ -1173,9 +1169,8 @@ export class LogClient {
1173
1169
  const status = response.status;
1174
1170
  let _headers = {};
1175
1171
  if (response.headers && response.headers.forEach) {
1176
- response.headers.forEach((v, k) => _headers[k] = v);
1172
+ response.headers.forEach((v, k) => (_headers[k] = v));
1177
1173
  }
1178
- ;
1179
1174
  if (status === 200) {
1180
1175
  return response.text().then((_responseText) => {
1181
1176
  let result200 = null;
@@ -1205,14 +1200,17 @@ export class LogClient {
1205
1200
  else
1206
1201
  url_ += "lastSeenCounter=" + encodeURIComponent("" + lastSeenCounter) + "&";
1207
1202
  if (expectedEndUTCofLastSeen !== undefined && expectedEndUTCofLastSeen !== null)
1208
- url_ += "expectedEndUTCofLastSeen=" + encodeURIComponent(expectedEndUTCofLastSeen ? "" + expectedEndUTCofLastSeen.toISOString() : "") + "&";
1203
+ url_ +=
1204
+ "expectedEndUTCofLastSeen=" +
1205
+ encodeURIComponent(expectedEndUTCofLastSeen ? "" + expectedEndUTCofLastSeen.toISOString() : "") +
1206
+ "&";
1209
1207
  url_ = url_.replace(/[?&]$/, "");
1210
1208
  let options_ = {
1211
1209
  method: "GET",
1212
1210
  signal,
1213
1211
  headers: {
1214
- "Accept": "application/json"
1215
- }
1212
+ Accept: "application/json",
1213
+ },
1216
1214
  };
1217
1215
  return this.http.fetch(url_, options_).then((_response) => {
1218
1216
  return this.processRecent(_response);
@@ -1222,9 +1220,8 @@ export class LogClient {
1222
1220
  const status = response.status;
1223
1221
  let _headers = {};
1224
1222
  if (response.headers && response.headers.forEach) {
1225
- response.headers.forEach((v, k) => _headers[k] = v);
1223
+ response.headers.forEach((v, k) => (_headers[k] = v));
1226
1224
  }
1227
- ;
1228
1225
  if (status === 200) {
1229
1226
  return response.text().then((_responseText) => {
1230
1227
  let result200 = null;
@@ -1257,8 +1254,8 @@ export class LogClient {
1257
1254
  method: "GET",
1258
1255
  signal,
1259
1256
  headers: {
1260
- "Accept": "application/json"
1261
- }
1257
+ Accept: "application/json",
1258
+ },
1262
1259
  };
1263
1260
  return this.http.fetch(url_, options_).then((_response) => {
1264
1261
  return this.processLogForMaterial(_response);
@@ -1268,9 +1265,8 @@ export class LogClient {
1268
1265
  const status = response.status;
1269
1266
  let _headers = {};
1270
1267
  if (response.headers && response.headers.forEach) {
1271
- response.headers.forEach((v, k) => _headers[k] = v);
1268
+ response.headers.forEach((v, k) => (_headers[k] = v));
1272
1269
  }
1273
- ;
1274
1270
  if (status === 200) {
1275
1271
  return response.text().then((_responseText) => {
1276
1272
  let result200 = null;
@@ -1296,14 +1292,17 @@ export class LogClient {
1296
1292
  logForMaterials(id, signal) {
1297
1293
  let url_ = this.baseUrl + "/api/v1/log/events/for-material?";
1298
1294
  if (id !== undefined && id !== null)
1299
- id && id.forEach(item => { url_ += "id=" + encodeURIComponent("" + item) + "&"; });
1295
+ id &&
1296
+ id.forEach((item) => {
1297
+ url_ += "id=" + encodeURIComponent("" + item) + "&";
1298
+ });
1300
1299
  url_ = url_.replace(/[?&]$/, "");
1301
1300
  let options_ = {
1302
1301
  method: "GET",
1303
1302
  signal,
1304
1303
  headers: {
1305
- "Accept": "application/json"
1306
- }
1304
+ Accept: "application/json",
1305
+ },
1307
1306
  };
1308
1307
  return this.http.fetch(url_, options_).then((_response) => {
1309
1308
  return this.processLogForMaterials(_response);
@@ -1313,9 +1312,8 @@ export class LogClient {
1313
1312
  const status = response.status;
1314
1313
  let _headers = {};
1315
1314
  if (response.headers && response.headers.forEach) {
1316
- response.headers.forEach((v, k) => _headers[k] = v);
1315
+ response.headers.forEach((v, k) => (_headers[k] = v));
1317
1316
  }
1318
- ;
1319
1317
  if (status === 200) {
1320
1318
  return response.text().then((_responseText) => {
1321
1319
  let result200 = null;
@@ -1348,8 +1346,8 @@ export class LogClient {
1348
1346
  method: "GET",
1349
1347
  signal,
1350
1348
  headers: {
1351
- "Accept": "application/json"
1352
- }
1349
+ Accept: "application/json",
1350
+ },
1353
1351
  };
1354
1352
  return this.http.fetch(url_, options_).then((_response) => {
1355
1353
  return this.processLogForSerial(_response);
@@ -1359,9 +1357,8 @@ export class LogClient {
1359
1357
  const status = response.status;
1360
1358
  let _headers = {};
1361
1359
  if (response.headers && response.headers.forEach) {
1362
- response.headers.forEach((v, k) => _headers[k] = v);
1360
+ response.headers.forEach((v, k) => (_headers[k] = v));
1363
1361
  }
1364
- ;
1365
1362
  if (status === 200) {
1366
1363
  return response.text().then((_responseText) => {
1367
1364
  let result200 = null;
@@ -1394,8 +1391,8 @@ export class LogClient {
1394
1391
  method: "GET",
1395
1392
  signal,
1396
1393
  headers: {
1397
- "Accept": "application/json"
1398
- }
1394
+ Accept: "application/json",
1395
+ },
1399
1396
  };
1400
1397
  return this.http.fetch(url_, options_).then((_response) => {
1401
1398
  return this.processLogForWorkorder(_response);
@@ -1405,9 +1402,8 @@ export class LogClient {
1405
1402
  const status = response.status;
1406
1403
  let _headers = {};
1407
1404
  if (response.headers && response.headers.forEach) {
1408
- response.headers.forEach((v, k) => _headers[k] = v);
1405
+ response.headers.forEach((v, k) => (_headers[k] = v));
1409
1406
  }
1410
- ;
1411
1407
  if (status === 200) {
1412
1408
  return response.text().then((_responseText) => {
1413
1409
  let result200 = null;
@@ -1440,8 +1436,8 @@ export class LogClient {
1440
1436
  method: "GET",
1441
1437
  signal,
1442
1438
  headers: {
1443
- "Accept": "application/json"
1444
- }
1439
+ Accept: "application/json",
1440
+ },
1445
1441
  };
1446
1442
  return this.http.fetch(url_, options_).then((_response) => {
1447
1443
  return this.processMaterialDetails(_response);
@@ -1451,9 +1447,8 @@ export class LogClient {
1451
1447
  const status = response.status;
1452
1448
  let _headers = {};
1453
1449
  if (response.headers && response.headers.forEach) {
1454
- response.headers.forEach((v, k) => _headers[k] = v);
1450
+ response.headers.forEach((v, k) => (_headers[k] = v));
1455
1451
  }
1456
- ;
1457
1452
  if (status === 200) {
1458
1453
  return response.text().then((_responseText) => {
1459
1454
  let result200 = null;
@@ -1479,8 +1474,8 @@ export class LogClient {
1479
1474
  method: "GET",
1480
1475
  signal,
1481
1476
  headers: {
1482
- "Accept": "application/json"
1483
- }
1477
+ Accept: "application/json",
1478
+ },
1484
1479
  };
1485
1480
  return this.http.fetch(url_, options_).then((_response) => {
1486
1481
  return this.processMaterialDetailsForJob(_response);
@@ -1490,9 +1485,8 @@ export class LogClient {
1490
1485
  const status = response.status;
1491
1486
  let _headers = {};
1492
1487
  if (response.headers && response.headers.forEach) {
1493
- response.headers.forEach((v, k) => _headers[k] = v);
1488
+ response.headers.forEach((v, k) => (_headers[k] = v));
1494
1489
  }
1495
- ;
1496
1490
  if (status === 200) {
1497
1491
  return response.text().then((_responseText) => {
1498
1492
  let result200 = null;
@@ -1525,8 +1519,8 @@ export class LogClient {
1525
1519
  method: "GET",
1526
1520
  signal,
1527
1521
  headers: {
1528
- "Accept": "application/json"
1529
- }
1522
+ Accept: "application/json",
1523
+ },
1530
1524
  };
1531
1525
  return this.http.fetch(url_, options_).then((_response) => {
1532
1526
  return this.processMaterialForSerial(_response);
@@ -1536,9 +1530,8 @@ export class LogClient {
1536
1530
  const status = response.status;
1537
1531
  let _headers = {};
1538
1532
  if (response.headers && response.headers.forEach) {
1539
- response.headers.forEach((v, k) => _headers[k] = v);
1533
+ response.headers.forEach((v, k) => (_headers[k] = v));
1540
1534
  }
1541
- ;
1542
1535
  if (status === 200) {
1543
1536
  return response.text().then((_responseText) => {
1544
1537
  let result200 = null;
@@ -1578,8 +1571,8 @@ export class LogClient {
1578
1571
  signal,
1579
1572
  headers: {
1580
1573
  "Content-Type": "application/json",
1581
- "Accept": "application/json"
1582
- }
1574
+ Accept: "application/json",
1575
+ },
1583
1576
  };
1584
1577
  return this.http.fetch(url_, options_).then((_response) => {
1585
1578
  return this.processSetSerial(_response);
@@ -1589,9 +1582,8 @@ export class LogClient {
1589
1582
  const status = response.status;
1590
1583
  let _headers = {};
1591
1584
  if (response.headers && response.headers.forEach) {
1592
- response.headers.forEach((v, k) => _headers[k] = v);
1585
+ response.headers.forEach((v, k) => (_headers[k] = v));
1593
1586
  }
1594
- ;
1595
1587
  if (status === 200) {
1596
1588
  return response.text().then((_responseText) => {
1597
1589
  let result200 = null;
@@ -1624,8 +1616,8 @@ export class LogClient {
1624
1616
  signal,
1625
1617
  headers: {
1626
1618
  "Content-Type": "application/json",
1627
- "Accept": "application/json"
1628
- }
1619
+ Accept: "application/json",
1620
+ },
1629
1621
  };
1630
1622
  return this.http.fetch(url_, options_).then((_response) => {
1631
1623
  return this.processSetWorkorder(_response);
@@ -1635,9 +1627,8 @@ export class LogClient {
1635
1627
  const status = response.status;
1636
1628
  let _headers = {};
1637
1629
  if (response.headers && response.headers.forEach) {
1638
- response.headers.forEach((v, k) => _headers[k] = v);
1630
+ response.headers.forEach((v, k) => (_headers[k] = v));
1639
1631
  }
1640
- ;
1641
1632
  if (status === 200) {
1642
1633
  return response.text().then((_responseText) => {
1643
1634
  let result200 = null;
@@ -1673,8 +1664,8 @@ export class LogClient {
1673
1664
  signal,
1674
1665
  headers: {
1675
1666
  "Content-Type": "application/json",
1676
- "Accept": "application/json"
1677
- }
1667
+ Accept: "application/json",
1668
+ },
1678
1669
  };
1679
1670
  return this.http.fetch(url_, options_).then((_response) => {
1680
1671
  return this.processSetInspectionDecision(_response);
@@ -1684,9 +1675,8 @@ export class LogClient {
1684
1675
  const status = response.status;
1685
1676
  let _headers = {};
1686
1677
  if (response.headers && response.headers.forEach) {
1687
- response.headers.forEach((v, k) => _headers[k] = v);
1678
+ response.headers.forEach((v, k) => (_headers[k] = v));
1688
1679
  }
1689
- ;
1690
1680
  if (status === 200) {
1691
1681
  return response.text().then((_responseText) => {
1692
1682
  let result200 = null;
@@ -1721,8 +1711,8 @@ export class LogClient {
1721
1711
  signal,
1722
1712
  headers: {
1723
1713
  "Content-Type": "application/json",
1724
- "Accept": "application/json"
1725
- }
1714
+ Accept: "application/json",
1715
+ },
1726
1716
  };
1727
1717
  return this.http.fetch(url_, options_).then((_response) => {
1728
1718
  return this.processRecordOperatorNotes(_response);
@@ -1732,9 +1722,8 @@ export class LogClient {
1732
1722
  const status = response.status;
1733
1723
  let _headers = {};
1734
1724
  if (response.headers && response.headers.forEach) {
1735
- response.headers.forEach((v, k) => _headers[k] = v);
1725
+ response.headers.forEach((v, k) => (_headers[k] = v));
1736
1726
  }
1737
- ;
1738
1727
  if (status === 200) {
1739
1728
  return response.text().then((_responseText) => {
1740
1729
  let result200 = null;
@@ -1772,8 +1761,8 @@ export class LogClient {
1772
1761
  signal,
1773
1762
  headers: {
1774
1763
  "Content-Type": "application/json",
1775
- "Accept": "application/json"
1776
- }
1764
+ Accept: "application/json",
1765
+ },
1777
1766
  };
1778
1767
  return this.http.fetch(url_, options_).then((_response) => {
1779
1768
  return this.processRequestRebooking(_response);
@@ -1783,9 +1772,8 @@ export class LogClient {
1783
1772
  const status = response.status;
1784
1773
  let _headers = {};
1785
1774
  if (response.headers && response.headers.forEach) {
1786
- response.headers.forEach((v, k) => _headers[k] = v);
1775
+ response.headers.forEach((v, k) => (_headers[k] = v));
1787
1776
  }
1788
- ;
1789
1777
  if (status === 200) {
1790
1778
  return response.text().then((_responseText) => {
1791
1779
  let result200 = null;
@@ -1811,8 +1799,8 @@ export class LogClient {
1811
1799
  method: "POST",
1812
1800
  signal,
1813
1801
  headers: {
1814
- "Accept": "application/json"
1815
- }
1802
+ Accept: "application/json",
1803
+ },
1816
1804
  };
1817
1805
  return this.http.fetch(url_, options_).then((_response) => {
1818
1806
  return this.processCancelRebooking(_response);
@@ -1822,9 +1810,8 @@ export class LogClient {
1822
1810
  const status = response.status;
1823
1811
  let _headers = {};
1824
1812
  if (response.headers && response.headers.forEach) {
1825
- response.headers.forEach((v, k) => _headers[k] = v);
1813
+ response.headers.forEach((v, k) => (_headers[k] = v));
1826
1814
  }
1827
- ;
1828
1815
  if (status === 200) {
1829
1816
  return response.text().then((_responseText) => {
1830
1817
  let result200 = null;
@@ -1850,8 +1837,8 @@ export class LogClient {
1850
1837
  signal,
1851
1838
  headers: {
1852
1839
  "Content-Type": "application/json",
1853
- "Accept": "application/json"
1854
- }
1840
+ Accept: "application/json",
1841
+ },
1855
1842
  };
1856
1843
  return this.http.fetch(url_, options_).then((_response) => {
1857
1844
  return this.processRecordInspectionCompleted(_response);
@@ -1861,9 +1848,8 @@ export class LogClient {
1861
1848
  const status = response.status;
1862
1849
  let _headers = {};
1863
1850
  if (response.headers && response.headers.forEach) {
1864
- response.headers.forEach((v, k) => _headers[k] = v);
1851
+ response.headers.forEach((v, k) => (_headers[k] = v));
1865
1852
  }
1866
- ;
1867
1853
  if (status === 200) {
1868
1854
  return response.text().then((_responseText) => {
1869
1855
  let result200 = null;
@@ -1889,8 +1875,8 @@ export class LogClient {
1889
1875
  signal,
1890
1876
  headers: {
1891
1877
  "Content-Type": "application/json",
1892
- "Accept": "application/json"
1893
- }
1878
+ Accept: "application/json",
1879
+ },
1894
1880
  };
1895
1881
  return this.http.fetch(url_, options_).then((_response) => {
1896
1882
  return this.processRecordCloseoutCompleted(_response);
@@ -1900,9 +1886,8 @@ export class LogClient {
1900
1886
  const status = response.status;
1901
1887
  let _headers = {};
1902
1888
  if (response.headers && response.headers.forEach) {
1903
- response.headers.forEach((v, k) => _headers[k] = v);
1889
+ response.headers.forEach((v, k) => (_headers[k] = v));
1904
1890
  }
1905
- ;
1906
1891
  if (status === 200) {
1907
1892
  return response.text().then((_responseText) => {
1908
1893
  let result200 = null;
@@ -1933,8 +1918,8 @@ export class LogClient {
1933
1918
  signal,
1934
1919
  headers: {
1935
1920
  "Content-Type": "application/json",
1936
- "Accept": "application/json"
1937
- }
1921
+ Accept: "application/json",
1922
+ },
1938
1923
  };
1939
1924
  return this.http.fetch(url_, options_).then((_response) => {
1940
1925
  return this.processRecordWorkorderComment(_response);
@@ -1944,9 +1929,8 @@ export class LogClient {
1944
1929
  const status = response.status;
1945
1930
  let _headers = {};
1946
1931
  if (response.headers && response.headers.forEach) {
1947
- response.headers.forEach((v, k) => _headers[k] = v);
1932
+ response.headers.forEach((v, k) => (_headers[k] = v));
1948
1933
  }
1949
- ;
1950
1934
  if (status === 200) {
1951
1935
  return response.text().then((_responseText) => {
1952
1936
  let result200 = null;
@@ -1972,8 +1956,8 @@ export class LogClient {
1972
1956
  method: "GET",
1973
1957
  signal,
1974
1958
  headers: {
1975
- "Accept": "application/json"
1976
- }
1959
+ Accept: "application/json",
1960
+ },
1977
1961
  };
1978
1962
  return this.http.fetch(url_, options_).then((_response) => {
1979
1963
  return this.processGetActiveWorkorder(_response);
@@ -1983,9 +1967,8 @@ export class LogClient {
1983
1967
  const status = response.status;
1984
1968
  let _headers = {};
1985
1969
  if (response.headers && response.headers.forEach) {
1986
- response.headers.forEach((v, k) => _headers[k] = v);
1970
+ response.headers.forEach((v, k) => (_headers[k] = v));
1987
1971
  }
1988
- ;
1989
1972
  if (status === 200) {
1990
1973
  return response.text().then((_responseText) => {
1991
1974
  let result200 = null;
@@ -2022,8 +2005,8 @@ export class MachinesClient {
2022
2005
  method: "GET",
2023
2006
  signal,
2024
2007
  headers: {
2025
- "Accept": "application/json"
2026
- }
2008
+ Accept: "application/json",
2009
+ },
2027
2010
  };
2028
2011
  return this.http.fetch(url_, options_).then((_response) => {
2029
2012
  return this.processGetToolsInMachines(_response);
@@ -2033,9 +2016,8 @@ export class MachinesClient {
2033
2016
  const status = response.status;
2034
2017
  let _headers = {};
2035
2018
  if (response.headers && response.headers.forEach) {
2036
- response.headers.forEach((v, k) => _headers[k] = v);
2019
+ response.headers.forEach((v, k) => (_headers[k] = v));
2037
2020
  }
2038
- ;
2039
2021
  if (status === 200) {
2040
2022
  return response.text().then((_responseText) => {
2041
2023
  let result200 = null;
@@ -2065,8 +2047,8 @@ export class MachinesClient {
2065
2047
  method: "GET",
2066
2048
  signal,
2067
2049
  headers: {
2068
- "Accept": "application/json"
2069
- }
2050
+ Accept: "application/json",
2051
+ },
2070
2052
  };
2071
2053
  return this.http.fetch(url_, options_).then((_response) => {
2072
2054
  return this.processGetProgramsInCellController(_response);
@@ -2076,9 +2058,8 @@ export class MachinesClient {
2076
2058
  const status = response.status;
2077
2059
  let _headers = {};
2078
2060
  if (response.headers && response.headers.forEach) {
2079
- response.headers.forEach((v, k) => _headers[k] = v);
2061
+ response.headers.forEach((v, k) => (_headers[k] = v));
2080
2062
  }
2081
- ;
2082
2063
  if (status === 200) {
2083
2064
  return response.text().then((_responseText) => {
2084
2065
  let result200 = null;
@@ -2117,8 +2098,8 @@ export class MachinesClient {
2117
2098
  method: "GET",
2118
2099
  signal,
2119
2100
  headers: {
2120
- "Accept": "application/json"
2121
- }
2101
+ Accept: "application/json",
2102
+ },
2122
2103
  };
2123
2104
  return this.http.fetch(url_, options_).then((_response) => {
2124
2105
  return this.processGetProgramRevisionsInDescendingOrderOfRevision(_response);
@@ -2128,9 +2109,8 @@ export class MachinesClient {
2128
2109
  const status = response.status;
2129
2110
  let _headers = {};
2130
2111
  if (response.headers && response.headers.forEach) {
2131
- response.headers.forEach((v, k) => _headers[k] = v);
2112
+ response.headers.forEach((v, k) => (_headers[k] = v));
2132
2113
  }
2133
- ;
2134
2114
  if (status === 200) {
2135
2115
  return response.text().then((_responseText) => {
2136
2116
  let result200 = null;
@@ -2166,8 +2146,8 @@ export class MachinesClient {
2166
2146
  method: "GET",
2167
2147
  signal,
2168
2148
  headers: {
2169
- "Accept": "application/json"
2170
- }
2149
+ Accept: "application/json",
2150
+ },
2171
2151
  };
2172
2152
  return this.http.fetch(url_, options_).then((_response) => {
2173
2153
  return this.processGetProgramRevisionContent(_response);
@@ -2177,9 +2157,8 @@ export class MachinesClient {
2177
2157
  const status = response.status;
2178
2158
  let _headers = {};
2179
2159
  if (response.headers && response.headers.forEach) {
2180
- response.headers.forEach((v, k) => _headers[k] = v);
2160
+ response.headers.forEach((v, k) => (_headers[k] = v));
2181
2161
  }
2182
- ;
2183
2162
  if (status === 200) {
2184
2163
  return response.text().then((_responseText) => {
2185
2164
  let result200 = null;
@@ -2205,8 +2184,8 @@ export class MachinesClient {
2205
2184
  method: "GET",
2206
2185
  signal,
2207
2186
  headers: {
2208
- "Accept": "application/json"
2209
- }
2187
+ Accept: "application/json",
2188
+ },
2210
2189
  };
2211
2190
  return this.http.fetch(url_, options_).then((_response) => {
2212
2191
  return this.processGetLatestProgramRevisionContent(_response);
@@ -2216,9 +2195,8 @@ export class MachinesClient {
2216
2195
  const status = response.status;
2217
2196
  let _headers = {};
2218
2197
  if (response.headers && response.headers.forEach) {
2219
- response.headers.forEach((v, k) => _headers[k] = v);
2198
+ response.headers.forEach((v, k) => (_headers[k] = v));
2220
2199
  }
2221
- ;
2222
2200
  if (status === 200) {
2223
2201
  return response.text().then((_responseText) => {
2224
2202
  let result200 = null;
@@ -2248,7 +2226,9 @@ export class FMSInfo {
2248
2226
  if (_data) {
2249
2227
  this.name = _data["Name"];
2250
2228
  this.version = _data["Version"];
2251
- this.licenseExpires = _data["LicenseExpires"] ? new Date(_data["LicenseExpires"].toString()) : undefined;
2229
+ this.licenseExpires = _data["LicenseExpires"]
2230
+ ? new Date(_data["LicenseExpires"].toString())
2231
+ : undefined;
2252
2232
  if (Array.isArray(_data["AdditionalLogServers"])) {
2253
2233
  this.additionalLogServers = [];
2254
2234
  for (let item of _data["AdditionalLogServers"])
@@ -2274,25 +2254,29 @@ export class FMSInfo {
2274
2254
  }
2275
2255
  }
2276
2256
  this.requireScanAtCloseout = _data["RequireScanAtCloseout"];
2277
- this.requireWorkorderBeforeAllowCloseoutComplete = _data["RequireWorkorderBeforeAllowCloseoutComplete"];
2257
+ this.requireWorkorderBeforeAllowCloseoutComplete =
2258
+ _data["RequireWorkorderBeforeAllowCloseoutComplete"];
2278
2259
  this.addToQueueButton = _data["AddToQueueButton"];
2279
- this.requireOperatorNamePromptWhenAddingMaterial = _data["RequireOperatorNamePromptWhenAddingMaterial"];
2260
+ this.requireOperatorNamePromptWhenAddingMaterial =
2261
+ _data["RequireOperatorNamePromptWhenAddingMaterial"];
2280
2262
  this.allowEditJobPlanQuantityFromQueuesPage = _data["AllowEditJobPlanQuantityFromQueuesPage"];
2281
2263
  this.allowInvalidateMaterialOnQueuesPage = _data["AllowInvalidateMaterialOnQueuesPage"];
2282
2264
  this.basketName = _data["BasketName"];
2283
2265
  }
2284
2266
  }
2285
2267
  static fromJS(data) {
2286
- data = typeof data === 'object' ? data : {};
2268
+ data = typeof data === "object" ? data : {};
2287
2269
  let result = new FMSInfo();
2288
2270
  result.init(data);
2289
2271
  return result;
2290
2272
  }
2291
2273
  toJSON(data) {
2292
- data = typeof data === 'object' ? data : {};
2274
+ data = typeof data === "object" ? data : {};
2293
2275
  data["Name"] = this.name;
2294
2276
  data["Version"] = this.version;
2295
- data["LicenseExpires"] = this.licenseExpires ? this.licenseExpires.toISOString() : undefined;
2277
+ data["LicenseExpires"] = this.licenseExpires
2278
+ ? this.licenseExpires.toISOString()
2279
+ : undefined;
2296
2280
  if (Array.isArray(this.additionalLogServers)) {
2297
2281
  data["AdditionalLogServers"] = [];
2298
2282
  for (let item of this.additionalLogServers)
@@ -2318,9 +2302,11 @@ export class FMSInfo {
2318
2302
  }
2319
2303
  }
2320
2304
  data["RequireScanAtCloseout"] = this.requireScanAtCloseout;
2321
- data["RequireWorkorderBeforeAllowCloseoutComplete"] = this.requireWorkorderBeforeAllowCloseoutComplete;
2305
+ data["RequireWorkorderBeforeAllowCloseoutComplete"] =
2306
+ this.requireWorkorderBeforeAllowCloseoutComplete;
2322
2307
  data["AddToQueueButton"] = this.addToQueueButton;
2323
- data["RequireOperatorNamePromptWhenAddingMaterial"] = this.requireOperatorNamePromptWhenAddingMaterial;
2308
+ data["RequireOperatorNamePromptWhenAddingMaterial"] =
2309
+ this.requireOperatorNamePromptWhenAddingMaterial;
2324
2310
  data["AllowEditJobPlanQuantityFromQueuesPage"] = this.allowEditJobPlanQuantityFromQueuesPage;
2325
2311
  data["AllowInvalidateMaterialOnQueuesPage"] = this.allowInvalidateMaterialOnQueuesPage;
2326
2312
  data["BasketName"] = this.basketName;
@@ -2347,22 +2333,30 @@ export class ServerEvent {
2347
2333
  if (_data) {
2348
2334
  this.logEntry = _data["LogEntry"] ? LogEntry.fromJS(_data["LogEntry"]) : undefined;
2349
2335
  this.newJobs = _data["NewJobs"] ? NewJobs.fromJS(_data["NewJobs"]) : undefined;
2350
- this.newCurrentStatus = _data["NewCurrentStatus"] ? CurrentStatus.fromJS(_data["NewCurrentStatus"]) : undefined;
2351
- this.editMaterialInLog = _data["EditMaterialInLog"] ? EditMaterialInLogEvents.fromJS(_data["EditMaterialInLog"]) : undefined;
2336
+ this.newCurrentStatus = _data["NewCurrentStatus"]
2337
+ ? CurrentStatus.fromJS(_data["NewCurrentStatus"])
2338
+ : undefined;
2339
+ this.editMaterialInLog = _data["EditMaterialInLog"]
2340
+ ? EditMaterialInLogEvents.fromJS(_data["EditMaterialInLog"])
2341
+ : undefined;
2352
2342
  }
2353
2343
  }
2354
2344
  static fromJS(data) {
2355
- data = typeof data === 'object' ? data : {};
2345
+ data = typeof data === "object" ? data : {};
2356
2346
  let result = new ServerEvent();
2357
2347
  result.init(data);
2358
2348
  return result;
2359
2349
  }
2360
2350
  toJSON(data) {
2361
- data = typeof data === 'object' ? data : {};
2351
+ data = typeof data === "object" ? data : {};
2362
2352
  data["LogEntry"] = this.logEntry ? this.logEntry.toJSON() : undefined;
2363
2353
  data["NewJobs"] = this.newJobs ? this.newJobs.toJSON() : undefined;
2364
- data["NewCurrentStatus"] = this.newCurrentStatus ? this.newCurrentStatus.toJSON() : undefined;
2365
- data["EditMaterialInLog"] = this.editMaterialInLog ? this.editMaterialInLog.toJSON() : undefined;
2354
+ data["NewCurrentStatus"] = this.newCurrentStatus
2355
+ ? this.newCurrentStatus.toJSON()
2356
+ : undefined;
2357
+ data["EditMaterialInLog"] = this.editMaterialInLog
2358
+ ? this.editMaterialInLog.toJSON()
2359
+ : undefined;
2366
2360
  return data;
2367
2361
  }
2368
2362
  }
@@ -2411,13 +2405,13 @@ export class LogEntry {
2411
2405
  }
2412
2406
  }
2413
2407
  static fromJS(data) {
2414
- data = typeof data === 'object' ? data : {};
2408
+ data = typeof data === "object" ? data : {};
2415
2409
  let result = new LogEntry();
2416
2410
  result.init(data);
2417
2411
  return result;
2418
2412
  }
2419
2413
  toJSON(data) {
2420
- data = typeof data === 'object' ? data : {};
2414
+ data = typeof data === "object" ? data : {};
2421
2415
  data["counter"] = this.counter;
2422
2416
  if (Array.isArray(this.material)) {
2423
2417
  data["material"] = [];
@@ -2472,13 +2466,13 @@ export class LogMaterial {
2472
2466
  }
2473
2467
  }
2474
2468
  static fromJS(data) {
2475
- data = typeof data === 'object' ? data : {};
2469
+ data = typeof data === "object" ? data : {};
2476
2470
  let result = new LogMaterial();
2477
2471
  result.init(data);
2478
2472
  return result;
2479
2473
  }
2480
2474
  toJSON(data) {
2481
- data = typeof data === 'object' ? data : {};
2475
+ data = typeof data === "object" ? data : {};
2482
2476
  data["id"] = this.id;
2483
2477
  data["uniq"] = this.uniq;
2484
2478
  data["part"] = this.part;
@@ -2542,13 +2536,13 @@ export class ToolUse {
2542
2536
  }
2543
2537
  }
2544
2538
  static fromJS(data) {
2545
- data = typeof data === 'object' ? data : {};
2539
+ data = typeof data === "object" ? data : {};
2546
2540
  let result = new ToolUse();
2547
2541
  result.init(data);
2548
2542
  return result;
2549
2543
  }
2550
2544
  toJSON(data) {
2551
- data = typeof data === 'object' ? data : {};
2545
+ data = typeof data === "object" ? data : {};
2552
2546
  data["Tool"] = this.tool;
2553
2547
  data["Pocket"] = this.pocket;
2554
2548
  data["ToolChangeOccurred"] = this.toolChangeOccurred;
@@ -2590,13 +2584,13 @@ export class MaterialProcessActualPath {
2590
2584
  }
2591
2585
  }
2592
2586
  static fromJS(data) {
2593
- data = typeof data === 'object' ? data : {};
2587
+ data = typeof data === "object" ? data : {};
2594
2588
  let result = new MaterialProcessActualPath();
2595
2589
  result.init(data);
2596
2590
  return result;
2597
2591
  }
2598
2592
  toJSON(data) {
2599
- data = typeof data === 'object' ? data : {};
2593
+ data = typeof data === "object" ? data : {};
2600
2594
  data["MaterialID"] = this.materialID;
2601
2595
  data["Process"] = this.process;
2602
2596
  data["Pallet"] = this.pallet;
@@ -2626,13 +2620,13 @@ export class Stop {
2626
2620
  }
2627
2621
  }
2628
2622
  static fromJS(data) {
2629
- data = typeof data === 'object' ? data : {};
2623
+ data = typeof data === "object" ? data : {};
2630
2624
  let result = new Stop();
2631
2625
  result.init(data);
2632
2626
  return result;
2633
2627
  }
2634
2628
  toJSON(data) {
2635
- data = typeof data === 'object' ? data : {};
2629
+ data = typeof data === "object" ? data : {};
2636
2630
  data["StationName"] = this.stationName;
2637
2631
  data["StationNum"] = this.stationNum;
2638
2632
  return data;
@@ -2704,13 +2698,13 @@ export class NewJobs {
2704
2698
  }
2705
2699
  }
2706
2700
  static fromJS(data) {
2707
- data = typeof data === 'object' ? data : {};
2701
+ data = typeof data === "object" ? data : {};
2708
2702
  let result = new NewJobs();
2709
2703
  result.init(data);
2710
2704
  return result;
2711
2705
  }
2712
2706
  toJSON(data) {
2713
- data = typeof data === 'object' ? data : {};
2707
+ data = typeof data === "object" ? data : {};
2714
2708
  data["ScheduleId"] = this.scheduleId;
2715
2709
  if (Array.isArray(this.jobs)) {
2716
2710
  data["Jobs"] = [];
@@ -2778,8 +2772,12 @@ export class Job {
2778
2772
  init(_data) {
2779
2773
  if (_data) {
2780
2774
  this.unique = _data["Unique"];
2781
- this.routeStartUTC = _data["RouteStartUTC"] ? new Date(_data["RouteStartUTC"].toString()) : undefined;
2782
- this.routeEndUTC = _data["RouteEndUTC"] ? new Date(_data["RouteEndUTC"].toString()) : undefined;
2775
+ this.routeStartUTC = _data["RouteStartUTC"]
2776
+ ? new Date(_data["RouteStartUTC"].toString())
2777
+ : undefined;
2778
+ this.routeEndUTC = _data["RouteEndUTC"]
2779
+ ? new Date(_data["RouteEndUTC"].toString())
2780
+ : undefined;
2783
2781
  this.archived = _data["Archived"];
2784
2782
  this.partName = _data["PartName"];
2785
2783
  this.comment = _data["Comment"];
@@ -2790,8 +2788,13 @@ export class Job {
2790
2788
  this.bookings.push(item);
2791
2789
  }
2792
2790
  this.provisionalWorkorderId = _data["ProvisionalWorkorderId"];
2791
+ this.artifactRunDate = _data["ArtifactRunDate"]
2792
+ ? new Date(_data["ArtifactRunDate"].toString())
2793
+ : undefined;
2793
2794
  this.manuallyCreated = _data["ManuallyCreated"];
2794
- this.holdEntireJob = _data["HoldEntireJob"] ? HoldPattern.fromJS(_data["HoldEntireJob"]) : undefined;
2795
+ this.holdEntireJob = _data["HoldEntireJob"]
2796
+ ? HoldPattern.fromJS(_data["HoldEntireJob"])
2797
+ : undefined;
2795
2798
  this.cycles = _data["Cycles"];
2796
2799
  if (Array.isArray(_data["ProcsAndPaths"])) {
2797
2800
  this.procsAndPaths = [];
@@ -2801,15 +2804,17 @@ export class Job {
2801
2804
  }
2802
2805
  }
2803
2806
  static fromJS(data) {
2804
- data = typeof data === 'object' ? data : {};
2807
+ data = typeof data === "object" ? data : {};
2805
2808
  let result = new Job();
2806
2809
  result.init(data);
2807
2810
  return result;
2808
2811
  }
2809
2812
  toJSON(data) {
2810
- data = typeof data === 'object' ? data : {};
2813
+ data = typeof data === "object" ? data : {};
2811
2814
  data["Unique"] = this.unique;
2812
- data["RouteStartUTC"] = this.routeStartUTC ? this.routeStartUTC.toISOString() : undefined;
2815
+ data["RouteStartUTC"] = this.routeStartUTC
2816
+ ? this.routeStartUTC.toISOString()
2817
+ : undefined;
2813
2818
  data["RouteEndUTC"] = this.routeEndUTC ? this.routeEndUTC.toISOString() : undefined;
2814
2819
  data["Archived"] = this.archived;
2815
2820
  data["PartName"] = this.partName;
@@ -2821,6 +2826,9 @@ export class Job {
2821
2826
  data["Bookings"].push(item);
2822
2827
  }
2823
2828
  data["ProvisionalWorkorderId"] = this.provisionalWorkorderId;
2829
+ data["ArtifactRunDate"] = this.artifactRunDate
2830
+ ? formatDate(this.artifactRunDate)
2831
+ : undefined;
2824
2832
  data["ManuallyCreated"] = this.manuallyCreated;
2825
2833
  data["HoldEntireJob"] = this.holdEntireJob ? this.holdEntireJob.toJSON() : undefined;
2826
2834
  data["Cycles"] = this.cycles;
@@ -2853,18 +2861,20 @@ export class HoldPattern {
2853
2861
  for (let item of _data["HoldUnholdPattern"])
2854
2862
  this.holdUnholdPattern.push(item);
2855
2863
  }
2856
- this.holdUnholdPatternStartUTC = _data["HoldUnholdPatternStartUTC"] ? new Date(_data["HoldUnholdPatternStartUTC"].toString()) : undefined;
2864
+ this.holdUnholdPatternStartUTC = _data["HoldUnholdPatternStartUTC"]
2865
+ ? new Date(_data["HoldUnholdPatternStartUTC"].toString())
2866
+ : undefined;
2857
2867
  this.holdUnholdPatternRepeats = _data["HoldUnholdPatternRepeats"];
2858
2868
  }
2859
2869
  }
2860
2870
  static fromJS(data) {
2861
- data = typeof data === 'object' ? data : {};
2871
+ data = typeof data === "object" ? data : {};
2862
2872
  let result = new HoldPattern();
2863
2873
  result.init(data);
2864
2874
  return result;
2865
2875
  }
2866
2876
  toJSON(data) {
2867
- data = typeof data === 'object' ? data : {};
2877
+ data = typeof data === "object" ? data : {};
2868
2878
  data["UserHold"] = this.userHold;
2869
2879
  data["ReasonForUserHold"] = this.reasonForUserHold;
2870
2880
  if (Array.isArray(this.holdUnholdPattern)) {
@@ -2872,7 +2882,9 @@ export class HoldPattern {
2872
2882
  for (let item of this.holdUnholdPattern)
2873
2883
  data["HoldUnholdPattern"].push(item);
2874
2884
  }
2875
- data["HoldUnholdPatternStartUTC"] = this.holdUnholdPatternStartUTC ? this.holdUnholdPatternStartUTC.toISOString() : undefined;
2885
+ data["HoldUnholdPatternStartUTC"] = this.holdUnholdPatternStartUTC
2886
+ ? this.holdUnholdPatternStartUTC.toISOString()
2887
+ : undefined;
2876
2888
  data["HoldUnholdPatternRepeats"] = this.holdUnholdPatternRepeats;
2877
2889
  return data;
2878
2890
  }
@@ -2911,13 +2923,13 @@ export class ProcessInfo {
2911
2923
  }
2912
2924
  }
2913
2925
  static fromJS(data) {
2914
- data = typeof data === 'object' ? data : {};
2926
+ data = typeof data === "object" ? data : {};
2915
2927
  let result = new ProcessInfo();
2916
2928
  result.init(data);
2917
2929
  return result;
2918
2930
  }
2919
2931
  toJSON(data) {
2920
- data = typeof data === 'object' ? data : {};
2932
+ data = typeof data === "object" ? data : {};
2921
2933
  if (Array.isArray(this.basketLoadStations)) {
2922
2934
  data["BasketLoadStations"] = [];
2923
2935
  for (let item of this.basketLoadStations)
@@ -2988,13 +3000,21 @@ export class ProcPathInfo {
2988
3000
  this.simulatedStartTimePerPallet = {};
2989
3001
  for (let key in _data["SimulatedStartTimePerPallet"]) {
2990
3002
  if (_data["SimulatedStartTimePerPallet"].hasOwnProperty(key))
2991
- this.simulatedStartTimePerPallet[key] = _data["SimulatedStartTimePerPallet"][key] ? new Date(_data["SimulatedStartTimePerPallet"][key].toString()) : undefined;
3003
+ this.simulatedStartTimePerPallet[key] = _data["SimulatedStartTimePerPallet"][key]
3004
+ ? new Date(_data["SimulatedStartTimePerPallet"][key].toString())
3005
+ : undefined;
2992
3006
  }
2993
3007
  }
2994
- this.simulatedStartingUTC = _data["SimulatedStartingUTC"] ? new Date(_data["SimulatedStartingUTC"].toString()) : undefined;
3008
+ this.simulatedStartingUTC = _data["SimulatedStartingUTC"]
3009
+ ? new Date(_data["SimulatedStartingUTC"].toString())
3010
+ : undefined;
2995
3011
  this.simulatedAverageFlowTime = _data["SimulatedAverageFlowTime"];
2996
- this.holdMachining = _data["HoldMachining"] ? HoldPattern.fromJS(_data["HoldMachining"]) : undefined;
2997
- this.holdLoadUnload = _data["HoldLoadUnload"] ? HoldPattern.fromJS(_data["HoldLoadUnload"]) : undefined;
3012
+ this.holdMachining = _data["HoldMachining"]
3013
+ ? HoldPattern.fromJS(_data["HoldMachining"])
3014
+ : undefined;
3015
+ this.holdLoadUnload = _data["HoldLoadUnload"]
3016
+ ? HoldPattern.fromJS(_data["HoldLoadUnload"])
3017
+ : undefined;
2998
3018
  this.partsPerPallet = _data["PartsPerPallet"];
2999
3019
  this.inputQueue = _data["InputQueue"];
3000
3020
  this.outputQueue = _data["OutputQueue"];
@@ -3007,13 +3027,13 @@ export class ProcPathInfo {
3007
3027
  }
3008
3028
  }
3009
3029
  static fromJS(data) {
3010
- data = typeof data === 'object' ? data : {};
3030
+ data = typeof data === "object" ? data : {};
3011
3031
  let result = new ProcPathInfo();
3012
3032
  result.init(data);
3013
3033
  return result;
3014
3034
  }
3015
3035
  toJSON(data) {
3016
- data = typeof data === 'object' ? data : {};
3036
+ data = typeof data === "object" ? data : {};
3017
3037
  if (Array.isArray(this.palletNums)) {
3018
3038
  data["PalletNums"] = [];
3019
3039
  for (let item of this.palletNums)
@@ -3047,13 +3067,19 @@ export class ProcPathInfo {
3047
3067
  data["SimulatedStartTimePerPallet"] = {};
3048
3068
  for (let key in this.simulatedStartTimePerPallet) {
3049
3069
  if (this.simulatedStartTimePerPallet.hasOwnProperty(key))
3050
- data["SimulatedStartTimePerPallet"][key] = this.simulatedStartTimePerPallet[key] ? this.simulatedStartTimePerPallet[key].toISOString() : undefined;
3070
+ data["SimulatedStartTimePerPallet"][key] = this.simulatedStartTimePerPallet[key]
3071
+ ? this.simulatedStartTimePerPallet[key].toISOString()
3072
+ : undefined;
3051
3073
  }
3052
3074
  }
3053
- data["SimulatedStartingUTC"] = this.simulatedStartingUTC ? this.simulatedStartingUTC.toISOString() : undefined;
3075
+ data["SimulatedStartingUTC"] = this.simulatedStartingUTC
3076
+ ? this.simulatedStartingUTC.toISOString()
3077
+ : undefined;
3054
3078
  data["SimulatedAverageFlowTime"] = this.simulatedAverageFlowTime;
3055
3079
  data["HoldMachining"] = this.holdMachining ? this.holdMachining.toJSON() : undefined;
3056
- data["HoldLoadUnload"] = this.holdLoadUnload ? this.holdLoadUnload.toJSON() : undefined;
3080
+ data["HoldLoadUnload"] = this.holdLoadUnload
3081
+ ? this.holdLoadUnload.toJSON()
3082
+ : undefined;
3057
3083
  data["PartsPerPallet"] = this.partsPerPallet;
3058
3084
  data["InputQueue"] = this.inputQueue;
3059
3085
  data["OutputQueue"] = this.outputQueue;
@@ -3092,13 +3118,13 @@ export class MachiningStop {
3092
3118
  }
3093
3119
  }
3094
3120
  static fromJS(data) {
3095
- data = typeof data === 'object' ? data : {};
3121
+ data = typeof data === "object" ? data : {};
3096
3122
  let result = new MachiningStop();
3097
3123
  result.init(data);
3098
3124
  return result;
3099
3125
  }
3100
3126
  toJSON(data) {
3101
- data = typeof data === 'object' ? data : {};
3127
+ data = typeof data === "object" ? data : {};
3102
3128
  data["StationGroup"] = this.stationGroup;
3103
3129
  if (Array.isArray(this.stationNums)) {
3104
3130
  data["StationNums"] = [];
@@ -3127,13 +3153,13 @@ export class SimulatedProduction {
3127
3153
  }
3128
3154
  }
3129
3155
  static fromJS(data) {
3130
- data = typeof data === 'object' ? data : {};
3156
+ data = typeof data === "object" ? data : {};
3131
3157
  let result = new SimulatedProduction();
3132
3158
  result.init(data);
3133
3159
  return result;
3134
3160
  }
3135
3161
  toJSON(data) {
3136
- data = typeof data === 'object' ? data : {};
3162
+ data = typeof data === "object" ? data : {};
3137
3163
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
3138
3164
  data["Quantity"] = this.quantity;
3139
3165
  return data;
@@ -3159,13 +3185,13 @@ export class PathInspection {
3159
3185
  }
3160
3186
  }
3161
3187
  static fromJS(data) {
3162
- data = typeof data === 'object' ? data : {};
3188
+ data = typeof data === "object" ? data : {};
3163
3189
  let result = new PathInspection();
3164
3190
  result.init(data);
3165
3191
  return result;
3166
3192
  }
3167
3193
  toJSON(data) {
3168
- data = typeof data === 'object' ? data : {};
3194
+ data = typeof data === "object" ? data : {};
3169
3195
  data["InspectionType"] = this.inspectionType;
3170
3196
  data["Counter"] = this.counter;
3171
3197
  data["MaxVal"] = this.maxVal;
@@ -3189,7 +3215,9 @@ export class SimulatedStationUtilization {
3189
3215
  this.scheduleId = _data["ScheduleId"];
3190
3216
  this.stationGroup = _data["StationGroup"];
3191
3217
  this.stationNum = _data["StationNum"];
3192
- this.startUTC = _data["StartUTC"] ? new Date(_data["StartUTC"].toString()) : undefined;
3218
+ this.startUTC = _data["StartUTC"]
3219
+ ? new Date(_data["StartUTC"].toString())
3220
+ : undefined;
3193
3221
  this.endUTC = _data["EndUTC"] ? new Date(_data["EndUTC"].toString()) : undefined;
3194
3222
  this.planDown = _data["PlanDown"];
3195
3223
  this.pallet = _data["Pallet"];
@@ -3201,13 +3229,13 @@ export class SimulatedStationUtilization {
3201
3229
  }
3202
3230
  }
3203
3231
  static fromJS(data) {
3204
- data = typeof data === 'object' ? data : {};
3232
+ data = typeof data === "object" ? data : {};
3205
3233
  let result = new SimulatedStationUtilization();
3206
3234
  result.init(data);
3207
3235
  return result;
3208
3236
  }
3209
3237
  toJSON(data) {
3210
- data = typeof data === 'object' ? data : {};
3238
+ data = typeof data === "object" ? data : {};
3211
3239
  data["ScheduleId"] = this.scheduleId;
3212
3240
  data["StationGroup"] = this.stationGroup;
3213
3241
  data["StationNum"] = this.stationNum;
@@ -3240,13 +3268,13 @@ export class SimulatedStationPart {
3240
3268
  }
3241
3269
  }
3242
3270
  static fromJS(data) {
3243
- data = typeof data === 'object' ? data : {};
3271
+ data = typeof data === "object" ? data : {};
3244
3272
  let result = new SimulatedStationPart();
3245
3273
  result.init(data);
3246
3274
  return result;
3247
3275
  }
3248
3276
  toJSON(data) {
3249
- data = typeof data === 'object' ? data : {};
3277
+ data = typeof data === "object" ? data : {};
3250
3278
  data["JobUnique"] = this.jobUnique;
3251
3279
  data["Process"] = this.process;
3252
3280
  data["Path"] = this.path;
@@ -3270,13 +3298,13 @@ export class SimulatedDayUsage {
3270
3298
  }
3271
3299
  }
3272
3300
  static fromJS(data) {
3273
- data = typeof data === 'object' ? data : {};
3301
+ data = typeof data === "object" ? data : {};
3274
3302
  let result = new SimulatedDayUsage();
3275
3303
  result.init(data);
3276
3304
  return result;
3277
3305
  }
3278
3306
  toJSON(data) {
3279
- data = typeof data === 'object' ? data : {};
3307
+ data = typeof data === "object" ? data : {};
3280
3308
  data["Day"] = this.day ? formatDate(this.day) : undefined;
3281
3309
  data["MachineGroup"] = this.machineGroup;
3282
3310
  data["Usage"] = this.usage;
@@ -3301,13 +3329,13 @@ export class WorkorderSimFilled {
3301
3329
  }
3302
3330
  }
3303
3331
  static fromJS(data) {
3304
- data = typeof data === 'object' ? data : {};
3332
+ data = typeof data === "object" ? data : {};
3305
3333
  let result = new WorkorderSimFilled();
3306
3334
  result.init(data);
3307
3335
  return result;
3308
3336
  }
3309
3337
  toJSON(data) {
3310
- data = typeof data === 'object' ? data : {};
3338
+ data = typeof data === "object" ? data : {};
3311
3339
  data["WorkorderId"] = this.workorderId;
3312
3340
  data["Part"] = this.part;
3313
3341
  data["Started"] = this.started ? formatDate(this.started) : undefined;
@@ -3339,13 +3367,13 @@ export class Workorder {
3339
3367
  }
3340
3368
  }
3341
3369
  static fromJS(data) {
3342
- data = typeof data === 'object' ? data : {};
3370
+ data = typeof data === "object" ? data : {};
3343
3371
  let result = new Workorder();
3344
3372
  result.init(data);
3345
3373
  return result;
3346
3374
  }
3347
3375
  toJSON(data) {
3348
- data = typeof data === 'object' ? data : {};
3376
+ data = typeof data === "object" ? data : {};
3349
3377
  data["WorkorderId"] = this.workorderId;
3350
3378
  data["Part"] = this.part;
3351
3379
  data["Quantity"] = this.quantity;
@@ -3377,13 +3405,13 @@ export class ProgramForJobStep {
3377
3405
  }
3378
3406
  }
3379
3407
  static fromJS(data) {
3380
- data = typeof data === 'object' ? data : {};
3408
+ data = typeof data === "object" ? data : {};
3381
3409
  let result = new ProgramForJobStep();
3382
3410
  result.init(data);
3383
3411
  return result;
3384
3412
  }
3385
3413
  toJSON(data) {
3386
- data = typeof data === 'object' ? data : {};
3414
+ data = typeof data === "object" ? data : {};
3387
3415
  data["ProcessNumber"] = this.processNumber;
3388
3416
  data["StopIndex"] = this.stopIndex;
3389
3417
  data["ProgramName"] = this.programName;
@@ -3409,13 +3437,13 @@ export class NewProgramContent {
3409
3437
  }
3410
3438
  }
3411
3439
  static fromJS(data) {
3412
- data = typeof data === 'object' ? data : {};
3440
+ data = typeof data === "object" ? data : {};
3413
3441
  let result = new NewProgramContent();
3414
3442
  result.init(data);
3415
3443
  return result;
3416
3444
  }
3417
3445
  toJSON(data) {
3418
- data = typeof data === 'object' ? data : {};
3446
+ data = typeof data === "object" ? data : {};
3419
3447
  data["ProgramName"] = this.programName;
3420
3448
  data["Comment"] = this.comment;
3421
3449
  data["ProgramContent"] = this.programContent;
@@ -3441,19 +3469,25 @@ export class CurrentStatus {
3441
3469
  }
3442
3470
  init(_data) {
3443
3471
  if (_data) {
3444
- this.timeOfCurrentStatusUTC = _data["TimeOfCurrentStatusUTC"] ? new Date(_data["TimeOfCurrentStatusUTC"].toString()) : undefined;
3472
+ this.timeOfCurrentStatusUTC = _data["TimeOfCurrentStatusUTC"]
3473
+ ? new Date(_data["TimeOfCurrentStatusUTC"].toString())
3474
+ : undefined;
3445
3475
  if (_data["Jobs"]) {
3446
3476
  this.jobs = {};
3447
3477
  for (let key in _data["Jobs"]) {
3448
3478
  if (_data["Jobs"].hasOwnProperty(key))
3449
- this.jobs[key] = _data["Jobs"][key] ? ActiveJob.fromJS(_data["Jobs"][key]) : new ActiveJob();
3479
+ this.jobs[key] = _data["Jobs"][key]
3480
+ ? ActiveJob.fromJS(_data["Jobs"][key])
3481
+ : new ActiveJob();
3450
3482
  }
3451
3483
  }
3452
3484
  if (_data["Pallets"]) {
3453
3485
  this.pallets = {};
3454
3486
  for (let key in _data["Pallets"]) {
3455
3487
  if (_data["Pallets"].hasOwnProperty(key))
3456
- this.pallets[key] = _data["Pallets"][key] ? PalletStatus.fromJS(_data["Pallets"][key]) : new PalletStatus();
3488
+ this.pallets[key] = _data["Pallets"][key]
3489
+ ? PalletStatus.fromJS(_data["Pallets"][key])
3490
+ : new PalletStatus();
3457
3491
  }
3458
3492
  }
3459
3493
  if (Array.isArray(_data["Material"])) {
@@ -3470,7 +3504,9 @@ export class CurrentStatus {
3470
3504
  this.queues = {};
3471
3505
  for (let key in _data["Queues"]) {
3472
3506
  if (_data["Queues"].hasOwnProperty(key))
3473
- this.queues[key] = _data["Queues"][key] ? QueueInfo.fromJS(_data["Queues"][key]) : new QueueInfo();
3507
+ this.queues[key] = _data["Queues"][key]
3508
+ ? QueueInfo.fromJS(_data["Queues"][key])
3509
+ : new QueueInfo();
3474
3510
  }
3475
3511
  }
3476
3512
  if (Array.isArray(_data["MachineLocations"])) {
@@ -3487,32 +3523,45 @@ export class CurrentStatus {
3487
3523
  this.baskets = {};
3488
3524
  for (let key in _data["Baskets"]) {
3489
3525
  if (_data["Baskets"].hasOwnProperty(key))
3490
- this.baskets[key] = _data["Baskets"][key] ? BasketStatus.fromJS(_data["Baskets"][key]) : new BasketStatus();
3526
+ this.baskets[key] = _data["Baskets"][key]
3527
+ ? BasketStatus.fromJS(_data["Baskets"][key])
3528
+ : new BasketStatus();
3491
3529
  }
3492
3530
  }
3531
+ if (Array.isArray(_data["BasketMoveInstructions"])) {
3532
+ this.basketMoveInstructions = [];
3533
+ for (let item of _data["BasketMoveInstructions"])
3534
+ this.basketMoveInstructions.push(BasketMoveInstruction.fromJS(item));
3535
+ }
3493
3536
  }
3494
3537
  }
3495
3538
  static fromJS(data) {
3496
- data = typeof data === 'object' ? data : {};
3539
+ data = typeof data === "object" ? data : {};
3497
3540
  let result = new CurrentStatus();
3498
3541
  result.init(data);
3499
3542
  return result;
3500
3543
  }
3501
3544
  toJSON(data) {
3502
- data = typeof data === 'object' ? data : {};
3503
- data["TimeOfCurrentStatusUTC"] = this.timeOfCurrentStatusUTC ? this.timeOfCurrentStatusUTC.toISOString() : undefined;
3545
+ data = typeof data === "object" ? data : {};
3546
+ data["TimeOfCurrentStatusUTC"] = this.timeOfCurrentStatusUTC
3547
+ ? this.timeOfCurrentStatusUTC.toISOString()
3548
+ : undefined;
3504
3549
  if (this.jobs) {
3505
3550
  data["Jobs"] = {};
3506
3551
  for (let key in this.jobs) {
3507
3552
  if (this.jobs.hasOwnProperty(key))
3508
- data["Jobs"][key] = this.jobs[key] ? this.jobs[key].toJSON() : undefined;
3553
+ data["Jobs"][key] = this.jobs[key]
3554
+ ? this.jobs[key].toJSON()
3555
+ : undefined;
3509
3556
  }
3510
3557
  }
3511
3558
  if (this.pallets) {
3512
3559
  data["Pallets"] = {};
3513
3560
  for (let key in this.pallets) {
3514
3561
  if (this.pallets.hasOwnProperty(key))
3515
- data["Pallets"][key] = this.pallets[key] ? this.pallets[key].toJSON() : undefined;
3562
+ data["Pallets"][key] = this.pallets[key]
3563
+ ? this.pallets[key].toJSON()
3564
+ : undefined;
3516
3565
  }
3517
3566
  }
3518
3567
  if (Array.isArray(this.material)) {
@@ -3529,7 +3578,9 @@ export class CurrentStatus {
3529
3578
  data["Queues"] = {};
3530
3579
  for (let key in this.queues) {
3531
3580
  if (this.queues.hasOwnProperty(key))
3532
- data["Queues"][key] = this.queues[key] ? this.queues[key].toJSON() : undefined;
3581
+ data["Queues"][key] = this.queues[key]
3582
+ ? this.queues[key].toJSON()
3583
+ : undefined;
3533
3584
  }
3534
3585
  }
3535
3586
  if (Array.isArray(this.machineLocations)) {
@@ -3546,9 +3597,16 @@ export class CurrentStatus {
3546
3597
  data["Baskets"] = {};
3547
3598
  for (let key in this.baskets) {
3548
3599
  if (this.baskets.hasOwnProperty(key))
3549
- data["Baskets"][key] = this.baskets[key] ? this.baskets[key].toJSON() : undefined;
3600
+ data["Baskets"][key] = this.baskets[key]
3601
+ ? this.baskets[key].toJSON()
3602
+ : undefined;
3550
3603
  }
3551
3604
  }
3605
+ if (Array.isArray(this.basketMoveInstructions)) {
3606
+ data["BasketMoveInstructions"] = [];
3607
+ for (let item of this.basketMoveInstructions)
3608
+ data["BasketMoveInstructions"].push(item ? item.toJSON() : undefined);
3609
+ }
3552
3610
  return data;
3553
3611
  }
3554
3612
  }
@@ -3569,13 +3627,13 @@ export class HistoricJob extends Job {
3569
3627
  }
3570
3628
  }
3571
3629
  static fromJS(data) {
3572
- data = typeof data === 'object' ? data : {};
3630
+ data = typeof data === "object" ? data : {};
3573
3631
  let result = new HistoricJob();
3574
3632
  result.init(data);
3575
3633
  return result;
3576
3634
  }
3577
3635
  toJSON(data) {
3578
- data = typeof data === 'object' ? data : {};
3636
+ data = typeof data === "object" ? data : {};
3579
3637
  data["ScheduleId"] = this.scheduleId;
3580
3638
  data["CopiedToSystem"] = this.copiedToSystem;
3581
3639
  if (Array.isArray(this.decrements)) {
@@ -3613,13 +3671,13 @@ export class ActiveJob extends HistoricJob {
3613
3671
  }
3614
3672
  }
3615
3673
  static fromJS(data) {
3616
- data = typeof data === 'object' ? data : {};
3674
+ data = typeof data === "object" ? data : {};
3617
3675
  let result = new ActiveJob();
3618
3676
  result.init(data);
3619
3677
  return result;
3620
3678
  }
3621
3679
  toJSON(data) {
3622
- data = typeof data === 'object' ? data : {};
3680
+ data = typeof data === "object" ? data : {};
3623
3681
  if (Array.isArray(this.completed)) {
3624
3682
  data["Completed"] = [];
3625
3683
  for (let item of this.completed)
@@ -3657,13 +3715,13 @@ export class DecrementQuantity {
3657
3715
  }
3658
3716
  }
3659
3717
  static fromJS(data) {
3660
- data = typeof data === 'object' ? data : {};
3718
+ data = typeof data === "object" ? data : {};
3661
3719
  let result = new DecrementQuantity();
3662
3720
  result.init(data);
3663
3721
  return result;
3664
3722
  }
3665
3723
  toJSON(data) {
3666
- data = typeof data === 'object' ? data : {};
3724
+ data = typeof data === "object" ? data : {};
3667
3725
  data["DecrementId"] = this.decrementId;
3668
3726
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
3669
3727
  data["Quantity"] = this.quantity;
@@ -3687,7 +3745,9 @@ export class PalletStatus {
3687
3745
  this.palletNum = _data["PalletNum"];
3688
3746
  this.fixtureOnPallet = _data["FixtureOnPallet"];
3689
3747
  this.onHold = _data["OnHold"];
3690
- this.currentPalletLocation = _data["CurrentPalletLocation"] ? PalletLocation.fromJS(_data["CurrentPalletLocation"]) : new PalletLocation();
3748
+ this.currentPalletLocation = _data["CurrentPalletLocation"]
3749
+ ? PalletLocation.fromJS(_data["CurrentPalletLocation"])
3750
+ : new PalletLocation();
3691
3751
  this.newFixture = _data["NewFixture"];
3692
3752
  this.numFaces = _data["NumFaces"];
3693
3753
  if (Array.isArray(_data["FaceNames"])) {
@@ -3695,22 +3755,26 @@ export class PalletStatus {
3695
3755
  for (let item of _data["FaceNames"])
3696
3756
  this.faceNames.push(item);
3697
3757
  }
3698
- this.targetLocation = _data["TargetLocation"] ? PalletLocation.fromJS(_data["TargetLocation"]) : undefined;
3758
+ this.targetLocation = _data["TargetLocation"]
3759
+ ? PalletLocation.fromJS(_data["TargetLocation"])
3760
+ : undefined;
3699
3761
  this.percentMoveCompleted = _data["PercentMoveCompleted"];
3700
3762
  }
3701
3763
  }
3702
3764
  static fromJS(data) {
3703
- data = typeof data === 'object' ? data : {};
3765
+ data = typeof data === "object" ? data : {};
3704
3766
  let result = new PalletStatus();
3705
3767
  result.init(data);
3706
3768
  return result;
3707
3769
  }
3708
3770
  toJSON(data) {
3709
- data = typeof data === 'object' ? data : {};
3771
+ data = typeof data === "object" ? data : {};
3710
3772
  data["PalletNum"] = this.palletNum;
3711
3773
  data["FixtureOnPallet"] = this.fixtureOnPallet;
3712
3774
  data["OnHold"] = this.onHold;
3713
- data["CurrentPalletLocation"] = this.currentPalletLocation ? this.currentPalletLocation.toJSON() : undefined;
3775
+ data["CurrentPalletLocation"] = this.currentPalletLocation
3776
+ ? this.currentPalletLocation.toJSON()
3777
+ : undefined;
3714
3778
  data["NewFixture"] = this.newFixture;
3715
3779
  data["NumFaces"] = this.numFaces;
3716
3780
  if (Array.isArray(this.faceNames)) {
@@ -3718,7 +3782,9 @@ export class PalletStatus {
3718
3782
  for (let item of this.faceNames)
3719
3783
  data["FaceNames"].push(item);
3720
3784
  }
3721
- data["TargetLocation"] = this.targetLocation ? this.targetLocation.toJSON() : undefined;
3785
+ data["TargetLocation"] = this.targetLocation
3786
+ ? this.targetLocation.toJSON()
3787
+ : undefined;
3722
3788
  data["PercentMoveCompleted"] = this.percentMoveCompleted;
3723
3789
  return data;
3724
3790
  }
@@ -3740,13 +3806,13 @@ export class PalletLocation {
3740
3806
  }
3741
3807
  }
3742
3808
  static fromJS(data) {
3743
- data = typeof data === 'object' ? data : {};
3809
+ data = typeof data === "object" ? data : {};
3744
3810
  let result = new PalletLocation();
3745
3811
  result.init(data);
3746
3812
  return result;
3747
3813
  }
3748
3814
  toJSON(data) {
3749
- data = typeof data === 'object' ? data : {};
3815
+ data = typeof data === "object" ? data : {};
3750
3816
  data["loc"] = this.loc;
3751
3817
  data["group"] = this.group;
3752
3818
  data["num"] = this.num;
@@ -3792,18 +3858,22 @@ export class InProcessMaterial {
3792
3858
  this.quarantineAfterUnload = _data["QuarantineAfterUnload"];
3793
3859
  this.problem = _data["Problem"];
3794
3860
  this.lastCompletedMachiningRouteStopIndex = _data["LastCompletedMachiningRouteStopIndex"];
3795
- this.location = _data["Location"] ? InProcessMaterialLocation.fromJS(_data["Location"]) : new InProcessMaterialLocation();
3796
- this.action = _data["Action"] ? InProcessMaterialAction.fromJS(_data["Action"]) : new InProcessMaterialAction();
3861
+ this.location = _data["Location"]
3862
+ ? InProcessMaterialLocation.fromJS(_data["Location"])
3863
+ : new InProcessMaterialLocation();
3864
+ this.action = _data["Action"]
3865
+ ? InProcessMaterialAction.fromJS(_data["Action"])
3866
+ : new InProcessMaterialAction();
3797
3867
  }
3798
3868
  }
3799
3869
  static fromJS(data) {
3800
- data = typeof data === 'object' ? data : {};
3870
+ data = typeof data === "object" ? data : {};
3801
3871
  let result = new InProcessMaterial();
3802
3872
  result.init(data);
3803
3873
  return result;
3804
3874
  }
3805
3875
  toJSON(data) {
3806
- data = typeof data === 'object' ? data : {};
3876
+ data = typeof data === "object" ? data : {};
3807
3877
  data["MaterialID"] = this.materialID;
3808
3878
  data["JobUnique"] = this.jobUnique;
3809
3879
  data["PartName"] = this.partName;
@@ -3841,24 +3911,24 @@ export class InProcessMaterialLocation {
3841
3911
  this.currentQueue = _data["CurrentQueue"];
3842
3912
  this.queuePosition = _data["QueuePosition"];
3843
3913
  this.basketId = _data["BasketId"];
3844
- this.basketSubPosition = _data["BasketSubPosition"];
3914
+ this.basketSlot = _data["BasketSlot"];
3845
3915
  }
3846
3916
  }
3847
3917
  static fromJS(data) {
3848
- data = typeof data === 'object' ? data : {};
3918
+ data = typeof data === "object" ? data : {};
3849
3919
  let result = new InProcessMaterialLocation();
3850
3920
  result.init(data);
3851
3921
  return result;
3852
3922
  }
3853
3923
  toJSON(data) {
3854
- data = typeof data === 'object' ? data : {};
3924
+ data = typeof data === "object" ? data : {};
3855
3925
  data["Type"] = this.type;
3856
3926
  data["PalletNum"] = this.palletNum;
3857
3927
  data["Face"] = this.face;
3858
3928
  data["CurrentQueue"] = this.currentQueue;
3859
3929
  data["QueuePosition"] = this.queuePosition;
3860
3930
  data["BasketId"] = this.basketId;
3861
- data["BasketSubPosition"] = this.basketSubPosition;
3931
+ data["BasketSlot"] = this.basketSlot;
3862
3932
  return data;
3863
3933
  }
3864
3934
  }
@@ -3888,7 +3958,7 @@ export class InProcessMaterialAction {
3888
3958
  this.loadFromBasketId = _data["LoadFromBasketId"];
3889
3959
  this.unloadIntoQueue = _data["UnloadIntoQueue"];
3890
3960
  this.unloadToBasketId = _data["UnloadToBasketId"];
3891
- this.unloadToBasketSubPosition = _data["UnloadToBasketSubPosition"];
3961
+ this.unloadToBasketSlot = _data["UnloadToBasketSlot"];
3892
3962
  this.elapsedLoadUnloadTime = _data["ElapsedLoadUnloadTime"];
3893
3963
  this.program = _data["Program"];
3894
3964
  this.elapsedMachiningTime = _data["ElapsedMachiningTime"];
@@ -3896,13 +3966,13 @@ export class InProcessMaterialAction {
3896
3966
  }
3897
3967
  }
3898
3968
  static fromJS(data) {
3899
- data = typeof data === 'object' ? data : {};
3969
+ data = typeof data === "object" ? data : {};
3900
3970
  let result = new InProcessMaterialAction();
3901
3971
  result.init(data);
3902
3972
  return result;
3903
3973
  }
3904
3974
  toJSON(data) {
3905
- data = typeof data === 'object' ? data : {};
3975
+ data = typeof data === "object" ? data : {};
3906
3976
  data["Type"] = this.type;
3907
3977
  data["LoadOntoPalletNum"] = this.loadOntoPalletNum;
3908
3978
  data["LoadOntoFace"] = this.loadOntoFace;
@@ -3911,7 +3981,7 @@ export class InProcessMaterialAction {
3911
3981
  data["LoadFromBasketId"] = this.loadFromBasketId;
3912
3982
  data["UnloadIntoQueue"] = this.unloadIntoQueue;
3913
3983
  data["UnloadToBasketId"] = this.unloadToBasketId;
3914
- data["UnloadToBasketSubPosition"] = this.unloadToBasketSubPosition;
3984
+ data["UnloadToBasketSlot"] = this.unloadToBasketSlot;
3915
3985
  data["ElapsedLoadUnloadTime"] = this.elapsedLoadUnloadTime;
3916
3986
  data["Program"] = this.program;
3917
3987
  data["ElapsedMachiningTime"] = this.elapsedMachiningTime;
@@ -3943,13 +4013,13 @@ export class QueueInfo {
3943
4013
  }
3944
4014
  }
3945
4015
  static fromJS(data) {
3946
- data = typeof data === 'object' ? data : {};
4016
+ data = typeof data === "object" ? data : {};
3947
4017
  let result = new QueueInfo();
3948
4018
  result.init(data);
3949
4019
  return result;
3950
4020
  }
3951
4021
  toJSON(data) {
3952
- data = typeof data === 'object' ? data : {};
4022
+ data = typeof data === "object" ? data : {};
3953
4023
  data["MaxSizeBeforeStopUnloading"] = this.maxSizeBeforeStopUnloading;
3954
4024
  data["Role"] = this.role;
3955
4025
  return data;
@@ -3988,13 +4058,13 @@ export class MachineLocation {
3988
4058
  }
3989
4059
  }
3990
4060
  static fromJS(data) {
3991
- data = typeof data === 'object' ? data : {};
4061
+ data = typeof data === "object" ? data : {};
3992
4062
  let result = new MachineLocation();
3993
4063
  result.init(data);
3994
4064
  return result;
3995
4065
  }
3996
4066
  toJSON(data) {
3997
- data = typeof data === 'object' ? data : {};
4067
+ data = typeof data === "object" ? data : {};
3998
4068
  data["MachineGroup"] = this.machineGroup;
3999
4069
  data["MachineNum"] = this.machineNum;
4000
4070
  data["Moving"] = this.moving;
@@ -4027,8 +4097,12 @@ export class ActiveWorkorder {
4027
4097
  this.plannedQuantity = _data["PlannedQuantity"];
4028
4098
  this.dueDate = _data["DueDate"] ? new Date(_data["DueDate"].toString()) : undefined;
4029
4099
  this.priority = _data["Priority"];
4030
- this.simulatedStart = _data["SimulatedStart"] ? new Date(_data["SimulatedStart"].toString()) : undefined;
4031
- this.simulatedFilled = _data["SimulatedFilled"] ? new Date(_data["SimulatedFilled"].toString()) : undefined;
4100
+ this.simulatedStart = _data["SimulatedStart"]
4101
+ ? new Date(_data["SimulatedStart"].toString())
4102
+ : undefined;
4103
+ this.simulatedFilled = _data["SimulatedFilled"]
4104
+ ? new Date(_data["SimulatedFilled"].toString())
4105
+ : undefined;
4032
4106
  this.completedQuantity = _data["CompletedQuantity"];
4033
4107
  if (Array.isArray(_data["Comments"])) {
4034
4108
  this.comments = [];
@@ -4057,20 +4131,24 @@ export class ActiveWorkorder {
4057
4131
  }
4058
4132
  }
4059
4133
  static fromJS(data) {
4060
- data = typeof data === 'object' ? data : {};
4134
+ data = typeof data === "object" ? data : {};
4061
4135
  let result = new ActiveWorkorder();
4062
4136
  result.init(data);
4063
4137
  return result;
4064
4138
  }
4065
4139
  toJSON(data) {
4066
- data = typeof data === 'object' ? data : {};
4140
+ data = typeof data === "object" ? data : {};
4067
4141
  data["WorkorderId"] = this.workorderId;
4068
4142
  data["Part"] = this.part;
4069
4143
  data["PlannedQuantity"] = this.plannedQuantity;
4070
4144
  data["DueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined;
4071
4145
  data["Priority"] = this.priority;
4072
- data["SimulatedStart"] = this.simulatedStart ? formatDate(this.simulatedStart) : undefined;
4073
- data["SimulatedFilled"] = this.simulatedFilled ? formatDate(this.simulatedFilled) : undefined;
4146
+ data["SimulatedStart"] = this.simulatedStart
4147
+ ? formatDate(this.simulatedStart)
4148
+ : undefined;
4149
+ data["SimulatedFilled"] = this.simulatedFilled
4150
+ ? formatDate(this.simulatedFilled)
4151
+ : undefined;
4074
4152
  data["CompletedQuantity"] = this.completedQuantity;
4075
4153
  if (Array.isArray(this.comments)) {
4076
4154
  data["Comments"] = [];
@@ -4115,13 +4193,13 @@ export class WorkorderComment {
4115
4193
  }
4116
4194
  }
4117
4195
  static fromJS(data) {
4118
- data = typeof data === 'object' ? data : {};
4196
+ data = typeof data === "object" ? data : {};
4119
4197
  let result = new WorkorderComment();
4120
4198
  result.init(data);
4121
4199
  return result;
4122
4200
  }
4123
4201
  toJSON(data) {
4124
- data = typeof data === 'object' ? data : {};
4202
+ data = typeof data === "object" ? data : {};
4125
4203
  data["Comment"] = this.comment;
4126
4204
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
4127
4205
  return data;
@@ -4146,13 +4224,13 @@ export class WorkorderMaterial {
4146
4224
  }
4147
4225
  }
4148
4226
  static fromJS(data) {
4149
- data = typeof data === 'object' ? data : {};
4227
+ data = typeof data === "object" ? data : {};
4150
4228
  let result = new WorkorderMaterial();
4151
4229
  result.init(data);
4152
4230
  return result;
4153
4231
  }
4154
4232
  toJSON(data) {
4155
- data = typeof data === 'object' ? data : {};
4233
+ data = typeof data === "object" ? data : {};
4156
4234
  data["MaterialID"] = this.materialID;
4157
4235
  data["Serial"] = this.serial;
4158
4236
  data["Quarantined"] = this.quarantined;
@@ -4175,29 +4253,80 @@ export class BasketStatus {
4175
4253
  this[property] = data[property];
4176
4254
  }
4177
4255
  }
4256
+ if (!data) {
4257
+ this.position = new BasketPosition();
4258
+ }
4178
4259
  }
4179
4260
  init(_data) {
4180
4261
  if (_data) {
4181
4262
  this.basketId = _data["BasketId"];
4263
+ this.position = _data["Position"]
4264
+ ? BasketPosition.fromJS(_data["Position"])
4265
+ : new BasketPosition();
4266
+ if (Array.isArray(_data["EmptySlots"])) {
4267
+ this.emptySlots = [];
4268
+ for (let item of _data["EmptySlots"])
4269
+ this.emptySlots.push(item);
4270
+ }
4271
+ if (Array.isArray(_data["UnknownSlots"])) {
4272
+ this.unknownSlots = [];
4273
+ for (let item of _data["UnknownSlots"])
4274
+ this.unknownSlots.push(item);
4275
+ }
4276
+ }
4277
+ }
4278
+ static fromJS(data) {
4279
+ data = typeof data === "object" ? data : {};
4280
+ let result = new BasketStatus();
4281
+ result.init(data);
4282
+ return result;
4283
+ }
4284
+ toJSON(data) {
4285
+ data = typeof data === "object" ? data : {};
4286
+ data["BasketId"] = this.basketId;
4287
+ data["Position"] = this.position ? this.position.toJSON() : undefined;
4288
+ if (Array.isArray(this.emptySlots)) {
4289
+ data["EmptySlots"] = [];
4290
+ for (let item of this.emptySlots)
4291
+ data["EmptySlots"].push(item);
4292
+ }
4293
+ if (Array.isArray(this.unknownSlots)) {
4294
+ data["UnknownSlots"] = [];
4295
+ for (let item of this.unknownSlots)
4296
+ data["UnknownSlots"].push(item);
4297
+ }
4298
+ return data;
4299
+ }
4300
+ }
4301
+ export class BasketPosition {
4302
+ constructor(data) {
4303
+ if (data) {
4304
+ for (var property in data) {
4305
+ if (data.hasOwnProperty(property))
4306
+ this[property] = data[property];
4307
+ }
4308
+ }
4309
+ }
4310
+ init(_data) {
4311
+ if (_data) {
4182
4312
  this.location = _data["Location"];
4183
4313
  this.locationNum = _data["LocationNum"];
4184
4314
  this.locationTitle = _data["LocationTitle"];
4185
- this.slot = _data["Slot"];
4315
+ this.zone = _data["Zone"];
4186
4316
  }
4187
4317
  }
4188
4318
  static fromJS(data) {
4189
- data = typeof data === 'object' ? data : {};
4190
- let result = new BasketStatus();
4319
+ data = typeof data === "object" ? data : {};
4320
+ let result = new BasketPosition();
4191
4321
  result.init(data);
4192
4322
  return result;
4193
4323
  }
4194
4324
  toJSON(data) {
4195
- data = typeof data === 'object' ? data : {};
4196
- data["BasketId"] = this.basketId;
4325
+ data = typeof data === "object" ? data : {};
4197
4326
  data["Location"] = this.location;
4198
4327
  data["LocationNum"] = this.locationNum;
4199
4328
  data["LocationTitle"] = this.locationTitle;
4200
- data["Slot"] = this.slot;
4329
+ data["Zone"] = this.zone;
4201
4330
  return data;
4202
4331
  }
4203
4332
  }
@@ -4208,6 +4337,61 @@ export var BasketLocationEnum;
4208
4337
  BasketLocationEnum["Storage"] = "Storage";
4209
4338
  BasketLocationEnum["InTransit"] = "InTransit";
4210
4339
  })(BasketLocationEnum || (BasketLocationEnum = {}));
4340
+ export class BasketMoveInstruction {
4341
+ constructor(data) {
4342
+ if (data) {
4343
+ for (var property in data) {
4344
+ if (data.hasOwnProperty(property))
4345
+ this[property] = data[property];
4346
+ }
4347
+ }
4348
+ if (!data) {
4349
+ this.source = new BasketPosition();
4350
+ this.destination = new BasketPosition();
4351
+ }
4352
+ }
4353
+ init(_data) {
4354
+ if (_data) {
4355
+ this.instructionId = _data["InstructionId"];
4356
+ this.basketId = _data["BasketId"];
4357
+ this.source = _data["Source"] ? BasketPosition.fromJS(_data["Source"]) : new BasketPosition();
4358
+ this.destination = _data["Destination"]
4359
+ ? BasketPosition.fromJS(_data["Destination"])
4360
+ : new BasketPosition();
4361
+ this.reason = _data["Reason"];
4362
+ this.displayText = _data["DisplayText"];
4363
+ this.prerequisiteInstructionId = _data["PrerequisiteInstructionId"];
4364
+ }
4365
+ }
4366
+ static fromJS(data) {
4367
+ data = typeof data === "object" ? data : {};
4368
+ let result = new BasketMoveInstruction();
4369
+ result.init(data);
4370
+ return result;
4371
+ }
4372
+ toJSON(data) {
4373
+ data = typeof data === "object" ? data : {};
4374
+ data["InstructionId"] = this.instructionId;
4375
+ data["BasketId"] = this.basketId;
4376
+ data["Source"] = this.source ? this.source.toJSON() : undefined;
4377
+ data["Destination"] = this.destination ? this.destination.toJSON() : undefined;
4378
+ data["Reason"] = this.reason;
4379
+ data["DisplayText"] = this.displayText;
4380
+ data["PrerequisiteInstructionId"] = this.prerequisiteInstructionId;
4381
+ return data;
4382
+ }
4383
+ }
4384
+ export var BasketMoveReason;
4385
+ (function (BasketMoveReason) {
4386
+ BasketMoveReason["LoadMaterial"] = "LoadMaterial";
4387
+ BasketMoveReason["UnloadMaterial"] = "UnloadMaterial";
4388
+ BasketMoveReason["ProcessTransfer"] = "ProcessTransfer";
4389
+ BasketMoveReason["SupplyMaterialToCell"] = "SupplyMaterialToCell";
4390
+ BasketMoveReason["SupplyEmptyBasket"] = "SupplyEmptyBasket";
4391
+ BasketMoveReason["ReturnToStorage"] = "ReturnToStorage";
4392
+ BasketMoveReason["RemoveForCorrection"] = "RemoveForCorrection";
4393
+ BasketMoveReason["Other"] = "Other";
4394
+ })(BasketMoveReason || (BasketMoveReason = {}));
4211
4395
  export class EditMaterialInLogEvents {
4212
4396
  constructor(data) {
4213
4397
  if (data) {
@@ -4232,13 +4416,13 @@ export class EditMaterialInLogEvents {
4232
4416
  }
4233
4417
  }
4234
4418
  static fromJS(data) {
4235
- data = typeof data === 'object' ? data : {};
4419
+ data = typeof data === "object" ? data : {};
4236
4420
  let result = new EditMaterialInLogEvents();
4237
4421
  result.init(data);
4238
4422
  return result;
4239
4423
  }
4240
4424
  toJSON(data) {
4241
- data = typeof data === 'object' ? data : {};
4425
+ data = typeof data === "object" ? data : {};
4242
4426
  data["OldMaterialID"] = this.oldMaterialID;
4243
4427
  data["NewMaterialID"] = this.newMaterialID;
4244
4428
  if (Array.isArray(this.editedEvents)) {
@@ -4272,13 +4456,13 @@ export class ProblemDetails {
4272
4456
  }
4273
4457
  }
4274
4458
  static fromJS(data) {
4275
- data = typeof data === 'object' ? data : {};
4459
+ data = typeof data === "object" ? data : {};
4276
4460
  let result = new ProblemDetails();
4277
4461
  result.init(data);
4278
4462
  return result;
4279
4463
  }
4280
4464
  toJSON(data) {
4281
- data = typeof data === 'object' ? data : {};
4465
+ data = typeof data === "object" ? data : {};
4282
4466
  for (var property in this) {
4283
4467
  if (this.hasOwnProperty(property))
4284
4468
  data[property] = this[property];
@@ -4302,20 +4486,28 @@ export class ScannedMaterial {
4302
4486
  }
4303
4487
  init(_data) {
4304
4488
  if (_data) {
4305
- this.existingMaterial = _data["ExistingMaterial"] ? MaterialDetails.fromJS(_data["ExistingMaterial"]) : undefined;
4306
- this.potentialNewMaterial = _data["PotentialNewMaterial"] ? ScannedPotentialNewMaterial.fromJS(_data["PotentialNewMaterial"]) : undefined;
4489
+ this.existingMaterial = _data["ExistingMaterial"]
4490
+ ? MaterialDetails.fromJS(_data["ExistingMaterial"])
4491
+ : undefined;
4492
+ this.potentialNewMaterial = _data["PotentialNewMaterial"]
4493
+ ? ScannedPotentialNewMaterial.fromJS(_data["PotentialNewMaterial"])
4494
+ : undefined;
4307
4495
  }
4308
4496
  }
4309
4497
  static fromJS(data) {
4310
- data = typeof data === 'object' ? data : {};
4498
+ data = typeof data === "object" ? data : {};
4311
4499
  let result = new ScannedMaterial();
4312
4500
  result.init(data);
4313
4501
  return result;
4314
4502
  }
4315
4503
  toJSON(data) {
4316
- data = typeof data === 'object' ? data : {};
4317
- data["ExistingMaterial"] = this.existingMaterial ? this.existingMaterial.toJSON() : undefined;
4318
- data["PotentialNewMaterial"] = this.potentialNewMaterial ? this.potentialNewMaterial.toJSON() : undefined;
4504
+ data = typeof data === "object" ? data : {};
4505
+ data["ExistingMaterial"] = this.existingMaterial
4506
+ ? this.existingMaterial.toJSON()
4507
+ : undefined;
4508
+ data["PotentialNewMaterial"] = this.potentialNewMaterial
4509
+ ? this.potentialNewMaterial.toJSON()
4510
+ : undefined;
4319
4511
  return data;
4320
4512
  }
4321
4513
  }
@@ -4346,13 +4538,13 @@ export class MaterialDetails {
4346
4538
  }
4347
4539
  }
4348
4540
  static fromJS(data) {
4349
- data = typeof data === 'object' ? data : {};
4541
+ data = typeof data === "object" ? data : {};
4350
4542
  let result = new MaterialDetails();
4351
4543
  result.init(data);
4352
4544
  return result;
4353
4545
  }
4354
4546
  toJSON(data) {
4355
- data = typeof data === 'object' ? data : {};
4547
+ data = typeof data === "object" ? data : {};
4356
4548
  data["MaterialID"] = this.materialID;
4357
4549
  data["JobUnique"] = this.jobUnique;
4358
4550
  data["PartName"] = this.partName;
@@ -4384,14 +4576,19 @@ export class ScannedPotentialNewMaterial {
4384
4576
  this.possibleCastingsByQueue = {};
4385
4577
  for (let key in _data["PossibleCastingsByQueue"]) {
4386
4578
  if (_data["PossibleCastingsByQueue"].hasOwnProperty(key))
4387
- this.possibleCastingsByQueue[key] = _data["PossibleCastingsByQueue"][key] !== undefined ? _data["PossibleCastingsByQueue"][key] : [];
4579
+ this.possibleCastingsByQueue[key] =
4580
+ _data["PossibleCastingsByQueue"][key] !== undefined
4581
+ ? _data["PossibleCastingsByQueue"][key]
4582
+ : [];
4388
4583
  }
4389
4584
  }
4390
4585
  if (_data["PossibleJobsByQueue"]) {
4391
4586
  this.possibleJobsByQueue = {};
4392
4587
  for (let key in _data["PossibleJobsByQueue"]) {
4393
4588
  if (_data["PossibleJobsByQueue"].hasOwnProperty(key))
4394
- this.possibleJobsByQueue[key] = _data["PossibleJobsByQueue"][key] ? _data["PossibleJobsByQueue"][key].map((i) => PossibleJobAndProcess.fromJS(i)) : [];
4589
+ this.possibleJobsByQueue[key] = _data["PossibleJobsByQueue"][key]
4590
+ ? _data["PossibleJobsByQueue"][key].map((i) => PossibleJobAndProcess.fromJS(i))
4591
+ : [];
4395
4592
  }
4396
4593
  }
4397
4594
  this.workorder = _data["Workorder"];
@@ -4399,13 +4596,13 @@ export class ScannedPotentialNewMaterial {
4399
4596
  }
4400
4597
  }
4401
4598
  static fromJS(data) {
4402
- data = typeof data === 'object' ? data : {};
4599
+ data = typeof data === "object" ? data : {};
4403
4600
  let result = new ScannedPotentialNewMaterial();
4404
4601
  result.init(data);
4405
4602
  return result;
4406
4603
  }
4407
4604
  toJSON(data) {
4408
- data = typeof data === 'object' ? data : {};
4605
+ data = typeof data === "object" ? data : {};
4409
4606
  if (this.possibleCastingsByQueue) {
4410
4607
  data["PossibleCastingsByQueue"] = {};
4411
4608
  for (let key in this.possibleCastingsByQueue) {
@@ -4442,13 +4639,13 @@ export class PossibleJobAndProcess {
4442
4639
  }
4443
4640
  }
4444
4641
  static fromJS(data) {
4445
- data = typeof data === 'object' ? data : {};
4642
+ data = typeof data === "object" ? data : {};
4446
4643
  let result = new PossibleJobAndProcess();
4447
4644
  result.init(data);
4448
4645
  return result;
4449
4646
  }
4450
4647
  toJSON(data) {
4451
- data = typeof data === 'object' ? data : {};
4648
+ data = typeof data === "object" ? data : {};
4452
4649
  data["JobUnique"] = this.jobUnique;
4453
4650
  data["LastCompletedProcess"] = this.lastCompletedProcess;
4454
4651
  data["Workorder"] = this.workorder;
@@ -4474,7 +4671,9 @@ export class HistoricData {
4474
4671
  this.jobs = {};
4475
4672
  for (let key in _data["Jobs"]) {
4476
4673
  if (_data["Jobs"].hasOwnProperty(key))
4477
- this.jobs[key] = _data["Jobs"][key] ? HistoricJob.fromJS(_data["Jobs"][key]) : new HistoricJob();
4674
+ this.jobs[key] = _data["Jobs"][key]
4675
+ ? HistoricJob.fromJS(_data["Jobs"][key])
4676
+ : new HistoricJob();
4478
4677
  }
4479
4678
  }
4480
4679
  if (Array.isArray(_data["StationUse"])) {
@@ -4485,18 +4684,20 @@ export class HistoricData {
4485
4684
  }
4486
4685
  }
4487
4686
  static fromJS(data) {
4488
- data = typeof data === 'object' ? data : {};
4687
+ data = typeof data === "object" ? data : {};
4489
4688
  let result = new HistoricData();
4490
4689
  result.init(data);
4491
4690
  return result;
4492
4691
  }
4493
4692
  toJSON(data) {
4494
- data = typeof data === 'object' ? data : {};
4693
+ data = typeof data === "object" ? data : {};
4495
4694
  if (this.jobs) {
4496
4695
  data["Jobs"] = {};
4497
4696
  for (let key in this.jobs) {
4498
4697
  if (this.jobs.hasOwnProperty(key))
4499
- data["Jobs"][key] = this.jobs[key] ? this.jobs[key].toJSON() : undefined;
4698
+ data["Jobs"][key] = this.jobs[key]
4699
+ ? this.jobs[key].toJSON()
4700
+ : undefined;
4500
4701
  }
4501
4702
  }
4502
4703
  if (Array.isArray(this.stationUse)) {
@@ -4523,13 +4724,13 @@ export class RecentHistoricData extends HistoricData {
4523
4724
  }
4524
4725
  }
4525
4726
  static fromJS(data) {
4526
- data = typeof data === 'object' ? data : {};
4727
+ data = typeof data === "object" ? data : {};
4527
4728
  let result = new RecentHistoricData();
4528
4729
  result.init(data);
4529
4730
  return result;
4530
4731
  }
4531
4732
  toJSON(data) {
4532
- data = typeof data === 'object' ? data : {};
4733
+ data = typeof data === "object" ? data : {};
4533
4734
  data["MostRecentSimulationId"] = this.mostRecentSimulationId;
4534
4735
  if (Array.isArray(this.mostRecentSimDayUsage)) {
4535
4736
  data["MostRecentSimDayUsage"] = [];
@@ -4568,6 +4769,11 @@ export class MostRecentSchedule {
4568
4769
  this.extraParts[key] = _data["ExtraParts"][key];
4569
4770
  }
4570
4771
  }
4772
+ if (Array.isArray(_data["RecentArtifactRuns"])) {
4773
+ this.recentArtifactRuns = [];
4774
+ for (let item of _data["RecentArtifactRuns"])
4775
+ this.recentArtifactRuns.push(ScheduledArtifactRun.fromJS(item));
4776
+ }
4571
4777
  if (Array.isArray(_data["UnscheduledRebookings"])) {
4572
4778
  this.unscheduledRebookings = [];
4573
4779
  for (let item of _data["UnscheduledRebookings"])
@@ -4576,13 +4782,13 @@ export class MostRecentSchedule {
4576
4782
  }
4577
4783
  }
4578
4784
  static fromJS(data) {
4579
- data = typeof data === 'object' ? data : {};
4785
+ data = typeof data === "object" ? data : {};
4580
4786
  let result = new MostRecentSchedule();
4581
4787
  result.init(data);
4582
4788
  return result;
4583
4789
  }
4584
4790
  toJSON(data) {
4585
- data = typeof data === 'object' ? data : {};
4791
+ data = typeof data === "object" ? data : {};
4586
4792
  data["LatestScheduleId"] = this.latestScheduleId;
4587
4793
  if (Array.isArray(this.jobs)) {
4588
4794
  data["Jobs"] = [];
@@ -4596,6 +4802,11 @@ export class MostRecentSchedule {
4596
4802
  data["ExtraParts"][key] = this.extraParts[key];
4597
4803
  }
4598
4804
  }
4805
+ if (Array.isArray(this.recentArtifactRuns)) {
4806
+ data["RecentArtifactRuns"] = [];
4807
+ for (let item of this.recentArtifactRuns)
4808
+ data["RecentArtifactRuns"].push(item ? item.toJSON() : undefined);
4809
+ }
4599
4810
  if (Array.isArray(this.unscheduledRebookings)) {
4600
4811
  data["UnscheduledRebookings"] = [];
4601
4812
  for (let item of this.unscheduledRebookings)
@@ -4604,6 +4815,40 @@ export class MostRecentSchedule {
4604
4815
  return data;
4605
4816
  }
4606
4817
  }
4818
+ export class ScheduledArtifactRun {
4819
+ constructor(data) {
4820
+ if (data) {
4821
+ for (var property in data) {
4822
+ if (data.hasOwnProperty(property))
4823
+ this[property] = data[property];
4824
+ }
4825
+ }
4826
+ }
4827
+ init(_data) {
4828
+ if (_data) {
4829
+ this.jobUnique = _data["JobUnique"];
4830
+ this.partName = _data["PartName"];
4831
+ this.artifactRunDate = _data["ArtifactRunDate"]
4832
+ ? new Date(_data["ArtifactRunDate"].toString())
4833
+ : undefined;
4834
+ }
4835
+ }
4836
+ static fromJS(data) {
4837
+ data = typeof data === "object" ? data : {};
4838
+ let result = new ScheduledArtifactRun();
4839
+ result.init(data);
4840
+ return result;
4841
+ }
4842
+ toJSON(data) {
4843
+ data = typeof data === "object" ? data : {};
4844
+ data["JobUnique"] = this.jobUnique;
4845
+ data["PartName"] = this.partName;
4846
+ data["ArtifactRunDate"] = this.artifactRunDate
4847
+ ? formatDate(this.artifactRunDate)
4848
+ : undefined;
4849
+ return data;
4850
+ }
4851
+ }
4607
4852
  export class Rebooking {
4608
4853
  constructor(data) {
4609
4854
  if (data) {
@@ -4625,13 +4870,13 @@ export class Rebooking {
4625
4870
  }
4626
4871
  }
4627
4872
  static fromJS(data) {
4628
- data = typeof data === 'object' ? data : {};
4873
+ data = typeof data === "object" ? data : {};
4629
4874
  let result = new Rebooking();
4630
4875
  result.init(data);
4631
4876
  return result;
4632
4877
  }
4633
4878
  toJSON(data) {
4634
- data = typeof data === 'object' ? data : {};
4879
+ data = typeof data === "object" ? data : {};
4635
4880
  data["BookingId"] = this.bookingId;
4636
4881
  data["PartName"] = this.partName;
4637
4882
  data["Quantity"] = this.quantity;
@@ -4699,13 +4944,13 @@ export class SimulationResults {
4699
4944
  }
4700
4945
  }
4701
4946
  static fromJS(data) {
4702
- data = typeof data === 'object' ? data : {};
4947
+ data = typeof data === "object" ? data : {};
4703
4948
  let result = new SimulationResults();
4704
4949
  result.init(data);
4705
4950
  return result;
4706
4951
  }
4707
4952
  toJSON(data) {
4708
- data = typeof data === 'object' ? data : {};
4953
+ data = typeof data === "object" ? data : {};
4709
4954
  data["ScheduleId"] = this.scheduleId;
4710
4955
  if (Array.isArray(this.jobs)) {
4711
4956
  data["Jobs"] = [];
@@ -4764,13 +5009,13 @@ export class QueuePosition {
4764
5009
  }
4765
5010
  }
4766
5011
  static fromJS(data) {
4767
- data = typeof data === 'object' ? data : {};
5012
+ data = typeof data === "object" ? data : {};
4768
5013
  let result = new QueuePosition();
4769
5014
  result.init(data);
4770
5015
  return result;
4771
5016
  }
4772
5017
  toJSON(data) {
4773
- data = typeof data === 'object' ? data : {};
5018
+ data = typeof data === "object" ? data : {};
4774
5019
  data["Queue"] = this.queue;
4775
5020
  data["Position"] = this.position;
4776
5021
  return data;
@@ -4792,13 +5037,13 @@ export class MatToPutOnPallet {
4792
5037
  }
4793
5038
  }
4794
5039
  static fromJS(data) {
4795
- data = typeof data === 'object' ? data : {};
5040
+ data = typeof data === "object" ? data : {};
4796
5041
  let result = new MatToPutOnPallet();
4797
5042
  result.init(data);
4798
5043
  return result;
4799
5044
  }
4800
5045
  toJSON(data) {
4801
- data = typeof data === 'object' ? data : {};
5046
+ data = typeof data === "object" ? data : {};
4802
5047
  data["Pallet"] = this.pallet;
4803
5048
  data["MaterialIDToSetOnPallet"] = this.materialIDToSetOnPallet;
4804
5049
  return data;
@@ -4823,13 +5068,13 @@ export class JobAndDecrementQuantity {
4823
5068
  }
4824
5069
  }
4825
5070
  static fromJS(data) {
4826
- data = typeof data === 'object' ? data : {};
5071
+ data = typeof data === "object" ? data : {};
4827
5072
  let result = new JobAndDecrementQuantity();
4828
5073
  result.init(data);
4829
5074
  return result;
4830
5075
  }
4831
5076
  toJSON(data) {
4832
- data = typeof data === 'object' ? data : {};
5077
+ data = typeof data === "object" ? data : {};
4833
5078
  data["DecrementId"] = this.decrementId;
4834
5079
  data["JobUnique"] = this.jobUnique;
4835
5080
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
@@ -4866,13 +5111,13 @@ export class NewInspectionCompleted {
4866
5111
  }
4867
5112
  }
4868
5113
  static fromJS(data) {
4869
- data = typeof data === 'object' ? data : {};
5114
+ data = typeof data === "object" ? data : {};
4870
5115
  let result = new NewInspectionCompleted();
4871
5116
  result.init(data);
4872
5117
  return result;
4873
5118
  }
4874
5119
  toJSON(data) {
4875
- data = typeof data === 'object' ? data : {};
5120
+ data = typeof data === "object" ? data : {};
4876
5121
  data["MaterialID"] = this.materialID;
4877
5122
  data["Process"] = this.process;
4878
5123
  data["InspectionLocationNum"] = this.inspectionLocationNum;
@@ -4918,13 +5163,13 @@ export class NewCloseout {
4918
5163
  }
4919
5164
  }
4920
5165
  static fromJS(data) {
4921
- data = typeof data === 'object' ? data : {};
5166
+ data = typeof data === "object" ? data : {};
4922
5167
  let result = new NewCloseout();
4923
5168
  result.init(data);
4924
5169
  return result;
4925
5170
  }
4926
5171
  toJSON(data) {
4927
- data = typeof data === 'object' ? data : {};
5172
+ data = typeof data === "object" ? data : {};
4928
5173
  data["MaterialID"] = this.materialID;
4929
5174
  data["Process"] = this.process;
4930
5175
  data["LocationNum"] = this.locationNum;
@@ -4963,13 +5208,13 @@ export class ToolSnapshot {
4963
5208
  }
4964
5209
  }
4965
5210
  static fromJS(data) {
4966
- data = typeof data === 'object' ? data : {};
5211
+ data = typeof data === "object" ? data : {};
4967
5212
  let result = new ToolSnapshot();
4968
5213
  result.init(data);
4969
5214
  return result;
4970
5215
  }
4971
5216
  toJSON(data) {
4972
- data = typeof data === 'object' ? data : {};
5217
+ data = typeof data === "object" ? data : {};
4973
5218
  data["Pocket"] = this.pocket;
4974
5219
  data["ToolName"] = this.toolName;
4975
5220
  data["Serial"] = this.serial;
@@ -4992,13 +5237,13 @@ export class ToolInMachine extends ToolSnapshot {
4992
5237
  }
4993
5238
  }
4994
5239
  static fromJS(data) {
4995
- data = typeof data === 'object' ? data : {};
5240
+ data = typeof data === "object" ? data : {};
4996
5241
  let result = new ToolInMachine();
4997
5242
  result.init(data);
4998
5243
  return result;
4999
5244
  }
5000
5245
  toJSON(data) {
5001
- data = typeof data === 'object' ? data : {};
5246
+ data = typeof data === "object" ? data : {};
5002
5247
  data["MachineGroupName"] = this.machineGroupName;
5003
5248
  data["MachineNum"] = this.machineNum;
5004
5249
  super.toJSON(data);
@@ -5023,13 +5268,13 @@ export class ProgramInCellController {
5023
5268
  }
5024
5269
  }
5025
5270
  static fromJS(data) {
5026
- data = typeof data === 'object' ? data : {};
5271
+ data = typeof data === "object" ? data : {};
5027
5272
  let result = new ProgramInCellController();
5028
5273
  result.init(data);
5029
5274
  return result;
5030
5275
  }
5031
5276
  toJSON(data) {
5032
- data = typeof data === 'object' ? data : {};
5277
+ data = typeof data === "object" ? data : {};
5033
5278
  data["CellControllerProgramName"] = this.cellControllerProgramName;
5034
5279
  data["ProgramName"] = this.programName;
5035
5280
  data["Revision"] = this.revision;
@@ -5055,13 +5300,13 @@ export class ProgramRevision {
5055
5300
  }
5056
5301
  }
5057
5302
  static fromJS(data) {
5058
- data = typeof data === 'object' ? data : {};
5303
+ data = typeof data === "object" ? data : {};
5059
5304
  let result = new ProgramRevision();
5060
5305
  result.init(data);
5061
5306
  return result;
5062
5307
  }
5063
5308
  toJSON(data) {
5064
- data = typeof data === 'object' ? data : {};
5309
+ data = typeof data === "object" ? data : {};
5065
5310
  data["ProgramName"] = this.programName;
5066
5311
  data["Revision"] = this.revision;
5067
5312
  data["Comment"] = this.comment;
@@ -5070,9 +5315,11 @@ export class ProgramRevision {
5070
5315
  }
5071
5316
  }
5072
5317
  function formatDate(d) {
5073
- return d.getUTCFullYear() + '-' +
5074
- (d.getUTCMonth() < 9 ? ('0' + (d.getUTCMonth() + 1)) : (d.getUTCMonth() + 1)) + '-' +
5075
- (d.getUTCDate() < 10 ? ('0' + d.getUTCDate()) : d.getUTCDate());
5318
+ return (d.getUTCFullYear() +
5319
+ "-" +
5320
+ (d.getUTCMonth() < 9 ? "0" + (d.getUTCMonth() + 1) : d.getUTCMonth() + 1) +
5321
+ "-" +
5322
+ (d.getUTCDate() < 10 ? "0" + d.getUTCDate() : d.getUTCDate()));
5076
5323
  }
5077
5324
  export class ApiException extends Error {
5078
5325
  constructor(message, status, response, headers, result) {