@seedtactics/insight-client 16.7.2 → 16.8.1

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 (150) hide show
  1. package/README.md +23 -29
  2. package/dist/assets/index-BGjv3-QV.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 +8 -2
  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/ErrorsAndLoading.d.ts +3 -3
  24. package/dist/components/LoadingIcon.d.ts +1 -1
  25. package/dist/components/LoadingIcon.js +1 -1
  26. package/dist/components/LogEntry.d.ts +2 -2
  27. package/dist/components/LogEntry.js +10 -8
  28. package/dist/components/ManualSerialEntry.d.ts +2 -2
  29. package/dist/components/MonthSelect.d.ts +1 -1
  30. package/dist/components/MonthSelect.js +3 -1
  31. package/dist/components/Navigation.d.ts +2 -2
  32. package/dist/components/Navigation.js +1 -1
  33. package/dist/components/VerboseLogging.d.ts +1 -1
  34. package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -1
  35. package/dist/components/analysis/BasketCycleCards.d.ts +1 -1
  36. package/dist/components/analysis/BasketCycleCards.js +1 -1
  37. package/dist/components/analysis/BufferChart.d.ts +1 -1
  38. package/dist/components/analysis/BufferChart.js +23 -4
  39. package/dist/components/analysis/CostPerPiece.d.ts +2 -2
  40. package/dist/components/analysis/CostPerPiece.js +2 -2
  41. package/dist/components/analysis/CycleChart.d.ts +1 -1
  42. package/dist/components/analysis/CycleChart.js +17 -4
  43. package/dist/components/analysis/DataTable.js +4 -2
  44. package/dist/components/analysis/EfficiencyPage.d.ts +2 -2
  45. package/dist/components/analysis/EfficiencyPage.js +1 -1
  46. package/dist/components/analysis/HeatChart.d.ts +1 -1
  47. package/dist/components/analysis/HeatChart.js +12 -3
  48. package/dist/components/analysis/InspectionDataTable.d.ts +1 -1
  49. package/dist/components/analysis/InspectionDataTable.js +6 -1
  50. package/dist/components/analysis/InspectionSankey.d.ts +1 -1
  51. package/dist/components/analysis/InspectionSankey.js +16 -6
  52. package/dist/components/analysis/PalletCycleCards.d.ts +1 -1
  53. package/dist/components/analysis/PalletCycleCards.js +5 -3
  54. package/dist/components/analysis/PartCycleCards.d.ts +2 -2
  55. package/dist/components/analysis/PartCycleCards.js +16 -6
  56. package/dist/components/analysis/QualityPage.d.ts +1 -1
  57. package/dist/components/analysis/ScheduleHistory.d.ts +1 -1
  58. package/dist/components/analysis/ScheduleHistory.js +1 -1
  59. package/dist/components/analysis/StationDataTable.d.ts +1 -1
  60. package/dist/components/analysis/ToolReplacements.d.ts +1 -1
  61. package/dist/components/analysis/ToolReplacements.js +7 -3
  62. package/dist/components/operations/AllMaterial.d.ts +1 -1
  63. package/dist/components/operations/ChartRangeEdit.d.ts +1 -1
  64. package/dist/components/operations/ChartRangeEdit.js +13 -4
  65. package/dist/components/operations/CloseoutReport.js +1 -1
  66. package/dist/components/operations/CompletedParts.js +2 -2
  67. package/dist/components/operations/CurrentWorkorders.js +2 -2
  68. package/dist/components/operations/Dashboard.d.ts +2 -2
  69. package/dist/components/operations/OEEChart.d.ts +4 -4
  70. package/dist/components/operations/OEEChart.js +7 -2
  71. package/dist/components/operations/Outliers.d.ts +1 -1
  72. package/dist/components/operations/Programs.js +9 -4
  73. package/dist/components/operations/Rebookings.d.ts +1 -1
  74. package/dist/components/operations/Rebookings.js +3 -1
  75. package/dist/components/operations/RecentCycleChart.d.ts +1 -1
  76. package/dist/components/operations/RecentCycleChart.js +2 -2
  77. package/dist/components/operations/RecentProduction.js +3 -3
  78. package/dist/components/operations/RecentSchedules.js +3 -1
  79. package/dist/components/operations/RecentStationCycles.d.ts +1 -1
  80. package/dist/components/operations/RecentStationCycles.js +1 -1
  81. package/dist/components/operations/ShiftSettings.d.ts +1 -1
  82. package/dist/components/operations/SimDayUsage.d.ts +1 -1
  83. package/dist/components/operations/ToolReport.js +17 -6
  84. package/dist/components/operations/WorkorderGantt.d.ts +1 -1
  85. package/dist/components/quality/QualityMaterial.d.ts +2 -2
  86. package/dist/components/quality/QualityMaterial.js +1 -1
  87. package/dist/components/quality/QualityPaths.d.ts +1 -1
  88. package/dist/components/quality/RecentFailedInspections.d.ts +1 -1
  89. package/dist/components/routes.d.ts +1 -1
  90. package/dist/components/routes.js +1 -1
  91. package/dist/components/station-monitor/BulkRawMaterial.d.ts +2 -2
  92. package/dist/components/station-monitor/BulkRawMaterial.js +11 -5
  93. package/dist/components/station-monitor/Closeout.js +6 -2
  94. package/dist/components/station-monitor/Inspection.js +3 -1
  95. package/dist/components/station-monitor/InvalidateCycle.d.ts +3 -3
  96. package/dist/components/station-monitor/InvalidateCycle.js +10 -3
  97. package/dist/components/station-monitor/JobDetails.js +4 -2
  98. package/dist/components/station-monitor/LoadStation.d.ts +1 -1
  99. package/dist/components/station-monitor/LoadStation.js +6 -3
  100. package/dist/components/station-monitor/Material.d.ts +10 -10
  101. package/dist/components/station-monitor/Material.js +28 -20
  102. package/dist/components/station-monitor/Material.test.js +1 -1
  103. package/dist/components/station-monitor/MoveMaterialArrows.d.ts +2 -2
  104. package/dist/components/station-monitor/PrintedLabel.d.ts +3 -3
  105. package/dist/components/station-monitor/PrintedLabel.js +9 -4
  106. package/dist/components/station-monitor/QuarantineButton.d.ts +1 -1
  107. package/dist/components/station-monitor/QuarantineButton.js +4 -2
  108. package/dist/components/station-monitor/Queues.d.ts +2 -2
  109. package/dist/components/station-monitor/Queues.js +6 -4
  110. package/dist/components/station-monitor/QueuesAddMaterial.d.ts +3 -3
  111. package/dist/components/station-monitor/QueuesAddMaterial.js +20 -7
  112. package/dist/components/station-monitor/SelectInspType.d.ts +2 -2
  113. package/dist/components/station-monitor/SelectWorkorder.d.ts +1 -1
  114. package/dist/components/station-monitor/StationToolbar.d.ts +1 -1
  115. package/dist/components/station-monitor/StationToolbar.js +13 -3
  116. package/dist/components/station-monitor/SystemOverview.d.ts +4 -4
  117. package/dist/components/station-monitor/SystemOverview.js +36 -16
  118. package/dist/components/station-monitor/Whiteboard.d.ts +1 -1
  119. package/dist/data/all-material-bins.js +2 -1
  120. package/dist/data/cost-per-piece.js +3 -1
  121. package/dist/data/move-arrows.js +3 -1
  122. package/dist/data/part-summary.js +1 -1
  123. package/dist/data/results.cycles.js +13 -4
  124. package/dist/data/tools-programs.js +3 -2
  125. package/dist/index.html +1 -1
  126. package/dist/network/api.d.ts +18 -0
  127. package/dist/network/api.js +502 -371
  128. package/dist/util/chart-colors.js +12 -1
  129. package/docs/client-efficiency.md +226 -263
  130. package/docs/client-engineering.md +27 -28
  131. package/docs/client-launch.md +32 -33
  132. package/docs/client-operations.md +50 -53
  133. package/docs/client-quality.md +39 -43
  134. package/docs/client-sales.md +36 -40
  135. package/docs/client-scanners.md +27 -27
  136. package/docs/client-station-monitor.md +86 -96
  137. package/docs/client-tools-programs.md +47 -44
  138. package/docs/improve-fms.md +73 -78
  139. package/docs/makino.md +21 -25
  140. package/docs/material-quarantine.md +50 -64
  141. package/docs/material-tracking.md +162 -195
  142. package/docs/mazak.md +78 -91
  143. package/docs/niigata.md +145 -168
  144. package/docs/operator-procedures.md +72 -76
  145. package/docs/part-instructions.md +36 -36
  146. package/docs/security.md +87 -81
  147. package/docs/server-config.md +36 -45
  148. package/docs/server-errors.md +21 -22
  149. package/package.json +25 -24
  150. 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,40 @@ 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
  }
3493
3531
  }
3494
3532
  }
3495
3533
  static fromJS(data) {
3496
- data = typeof data === 'object' ? data : {};
3534
+ data = typeof data === "object" ? data : {};
3497
3535
  let result = new CurrentStatus();
3498
3536
  result.init(data);
3499
3537
  return result;
3500
3538
  }
3501
3539
  toJSON(data) {
3502
- data = typeof data === 'object' ? data : {};
3503
- data["TimeOfCurrentStatusUTC"] = this.timeOfCurrentStatusUTC ? this.timeOfCurrentStatusUTC.toISOString() : undefined;
3540
+ data = typeof data === "object" ? data : {};
3541
+ data["TimeOfCurrentStatusUTC"] = this.timeOfCurrentStatusUTC
3542
+ ? this.timeOfCurrentStatusUTC.toISOString()
3543
+ : undefined;
3504
3544
  if (this.jobs) {
3505
3545
  data["Jobs"] = {};
3506
3546
  for (let key in this.jobs) {
3507
3547
  if (this.jobs.hasOwnProperty(key))
3508
- data["Jobs"][key] = this.jobs[key] ? this.jobs[key].toJSON() : undefined;
3548
+ data["Jobs"][key] = this.jobs[key]
3549
+ ? this.jobs[key].toJSON()
3550
+ : undefined;
3509
3551
  }
3510
3552
  }
3511
3553
  if (this.pallets) {
3512
3554
  data["Pallets"] = {};
3513
3555
  for (let key in this.pallets) {
3514
3556
  if (this.pallets.hasOwnProperty(key))
3515
- data["Pallets"][key] = this.pallets[key] ? this.pallets[key].toJSON() : undefined;
3557
+ data["Pallets"][key] = this.pallets[key]
3558
+ ? this.pallets[key].toJSON()
3559
+ : undefined;
3516
3560
  }
3517
3561
  }
3518
3562
  if (Array.isArray(this.material)) {
@@ -3529,7 +3573,9 @@ export class CurrentStatus {
3529
3573
  data["Queues"] = {};
3530
3574
  for (let key in this.queues) {
3531
3575
  if (this.queues.hasOwnProperty(key))
3532
- data["Queues"][key] = this.queues[key] ? this.queues[key].toJSON() : undefined;
3576
+ data["Queues"][key] = this.queues[key]
3577
+ ? this.queues[key].toJSON()
3578
+ : undefined;
3533
3579
  }
3534
3580
  }
3535
3581
  if (Array.isArray(this.machineLocations)) {
@@ -3546,7 +3592,9 @@ export class CurrentStatus {
3546
3592
  data["Baskets"] = {};
3547
3593
  for (let key in this.baskets) {
3548
3594
  if (this.baskets.hasOwnProperty(key))
3549
- data["Baskets"][key] = this.baskets[key] ? this.baskets[key].toJSON() : undefined;
3595
+ data["Baskets"][key] = this.baskets[key]
3596
+ ? this.baskets[key].toJSON()
3597
+ : undefined;
3550
3598
  }
3551
3599
  }
3552
3600
  return data;
@@ -3569,13 +3617,13 @@ export class HistoricJob extends Job {
3569
3617
  }
3570
3618
  }
3571
3619
  static fromJS(data) {
3572
- data = typeof data === 'object' ? data : {};
3620
+ data = typeof data === "object" ? data : {};
3573
3621
  let result = new HistoricJob();
3574
3622
  result.init(data);
3575
3623
  return result;
3576
3624
  }
3577
3625
  toJSON(data) {
3578
- data = typeof data === 'object' ? data : {};
3626
+ data = typeof data === "object" ? data : {};
3579
3627
  data["ScheduleId"] = this.scheduleId;
3580
3628
  data["CopiedToSystem"] = this.copiedToSystem;
3581
3629
  if (Array.isArray(this.decrements)) {
@@ -3613,13 +3661,13 @@ export class ActiveJob extends HistoricJob {
3613
3661
  }
3614
3662
  }
3615
3663
  static fromJS(data) {
3616
- data = typeof data === 'object' ? data : {};
3664
+ data = typeof data === "object" ? data : {};
3617
3665
  let result = new ActiveJob();
3618
3666
  result.init(data);
3619
3667
  return result;
3620
3668
  }
3621
3669
  toJSON(data) {
3622
- data = typeof data === 'object' ? data : {};
3670
+ data = typeof data === "object" ? data : {};
3623
3671
  if (Array.isArray(this.completed)) {
3624
3672
  data["Completed"] = [];
3625
3673
  for (let item of this.completed)
@@ -3657,13 +3705,13 @@ export class DecrementQuantity {
3657
3705
  }
3658
3706
  }
3659
3707
  static fromJS(data) {
3660
- data = typeof data === 'object' ? data : {};
3708
+ data = typeof data === "object" ? data : {};
3661
3709
  let result = new DecrementQuantity();
3662
3710
  result.init(data);
3663
3711
  return result;
3664
3712
  }
3665
3713
  toJSON(data) {
3666
- data = typeof data === 'object' ? data : {};
3714
+ data = typeof data === "object" ? data : {};
3667
3715
  data["DecrementId"] = this.decrementId;
3668
3716
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
3669
3717
  data["Quantity"] = this.quantity;
@@ -3687,7 +3735,9 @@ export class PalletStatus {
3687
3735
  this.palletNum = _data["PalletNum"];
3688
3736
  this.fixtureOnPallet = _data["FixtureOnPallet"];
3689
3737
  this.onHold = _data["OnHold"];
3690
- this.currentPalletLocation = _data["CurrentPalletLocation"] ? PalletLocation.fromJS(_data["CurrentPalletLocation"]) : new PalletLocation();
3738
+ this.currentPalletLocation = _data["CurrentPalletLocation"]
3739
+ ? PalletLocation.fromJS(_data["CurrentPalletLocation"])
3740
+ : new PalletLocation();
3691
3741
  this.newFixture = _data["NewFixture"];
3692
3742
  this.numFaces = _data["NumFaces"];
3693
3743
  if (Array.isArray(_data["FaceNames"])) {
@@ -3695,22 +3745,26 @@ export class PalletStatus {
3695
3745
  for (let item of _data["FaceNames"])
3696
3746
  this.faceNames.push(item);
3697
3747
  }
3698
- this.targetLocation = _data["TargetLocation"] ? PalletLocation.fromJS(_data["TargetLocation"]) : undefined;
3748
+ this.targetLocation = _data["TargetLocation"]
3749
+ ? PalletLocation.fromJS(_data["TargetLocation"])
3750
+ : undefined;
3699
3751
  this.percentMoveCompleted = _data["PercentMoveCompleted"];
3700
3752
  }
3701
3753
  }
3702
3754
  static fromJS(data) {
3703
- data = typeof data === 'object' ? data : {};
3755
+ data = typeof data === "object" ? data : {};
3704
3756
  let result = new PalletStatus();
3705
3757
  result.init(data);
3706
3758
  return result;
3707
3759
  }
3708
3760
  toJSON(data) {
3709
- data = typeof data === 'object' ? data : {};
3761
+ data = typeof data === "object" ? data : {};
3710
3762
  data["PalletNum"] = this.palletNum;
3711
3763
  data["FixtureOnPallet"] = this.fixtureOnPallet;
3712
3764
  data["OnHold"] = this.onHold;
3713
- data["CurrentPalletLocation"] = this.currentPalletLocation ? this.currentPalletLocation.toJSON() : undefined;
3765
+ data["CurrentPalletLocation"] = this.currentPalletLocation
3766
+ ? this.currentPalletLocation.toJSON()
3767
+ : undefined;
3714
3768
  data["NewFixture"] = this.newFixture;
3715
3769
  data["NumFaces"] = this.numFaces;
3716
3770
  if (Array.isArray(this.faceNames)) {
@@ -3718,7 +3772,9 @@ export class PalletStatus {
3718
3772
  for (let item of this.faceNames)
3719
3773
  data["FaceNames"].push(item);
3720
3774
  }
3721
- data["TargetLocation"] = this.targetLocation ? this.targetLocation.toJSON() : undefined;
3775
+ data["TargetLocation"] = this.targetLocation
3776
+ ? this.targetLocation.toJSON()
3777
+ : undefined;
3722
3778
  data["PercentMoveCompleted"] = this.percentMoveCompleted;
3723
3779
  return data;
3724
3780
  }
@@ -3740,13 +3796,13 @@ export class PalletLocation {
3740
3796
  }
3741
3797
  }
3742
3798
  static fromJS(data) {
3743
- data = typeof data === 'object' ? data : {};
3799
+ data = typeof data === "object" ? data : {};
3744
3800
  let result = new PalletLocation();
3745
3801
  result.init(data);
3746
3802
  return result;
3747
3803
  }
3748
3804
  toJSON(data) {
3749
- data = typeof data === 'object' ? data : {};
3805
+ data = typeof data === "object" ? data : {};
3750
3806
  data["loc"] = this.loc;
3751
3807
  data["group"] = this.group;
3752
3808
  data["num"] = this.num;
@@ -3792,18 +3848,22 @@ export class InProcessMaterial {
3792
3848
  this.quarantineAfterUnload = _data["QuarantineAfterUnload"];
3793
3849
  this.problem = _data["Problem"];
3794
3850
  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();
3851
+ this.location = _data["Location"]
3852
+ ? InProcessMaterialLocation.fromJS(_data["Location"])
3853
+ : new InProcessMaterialLocation();
3854
+ this.action = _data["Action"]
3855
+ ? InProcessMaterialAction.fromJS(_data["Action"])
3856
+ : new InProcessMaterialAction();
3797
3857
  }
3798
3858
  }
3799
3859
  static fromJS(data) {
3800
- data = typeof data === 'object' ? data : {};
3860
+ data = typeof data === "object" ? data : {};
3801
3861
  let result = new InProcessMaterial();
3802
3862
  result.init(data);
3803
3863
  return result;
3804
3864
  }
3805
3865
  toJSON(data) {
3806
- data = typeof data === 'object' ? data : {};
3866
+ data = typeof data === "object" ? data : {};
3807
3867
  data["MaterialID"] = this.materialID;
3808
3868
  data["JobUnique"] = this.jobUnique;
3809
3869
  data["PartName"] = this.partName;
@@ -3845,13 +3905,13 @@ export class InProcessMaterialLocation {
3845
3905
  }
3846
3906
  }
3847
3907
  static fromJS(data) {
3848
- data = typeof data === 'object' ? data : {};
3908
+ data = typeof data === "object" ? data : {};
3849
3909
  let result = new InProcessMaterialLocation();
3850
3910
  result.init(data);
3851
3911
  return result;
3852
3912
  }
3853
3913
  toJSON(data) {
3854
- data = typeof data === 'object' ? data : {};
3914
+ data = typeof data === "object" ? data : {};
3855
3915
  data["Type"] = this.type;
3856
3916
  data["PalletNum"] = this.palletNum;
3857
3917
  data["Face"] = this.face;
@@ -3896,13 +3956,13 @@ export class InProcessMaterialAction {
3896
3956
  }
3897
3957
  }
3898
3958
  static fromJS(data) {
3899
- data = typeof data === 'object' ? data : {};
3959
+ data = typeof data === "object" ? data : {};
3900
3960
  let result = new InProcessMaterialAction();
3901
3961
  result.init(data);
3902
3962
  return result;
3903
3963
  }
3904
3964
  toJSON(data) {
3905
- data = typeof data === 'object' ? data : {};
3965
+ data = typeof data === "object" ? data : {};
3906
3966
  data["Type"] = this.type;
3907
3967
  data["LoadOntoPalletNum"] = this.loadOntoPalletNum;
3908
3968
  data["LoadOntoFace"] = this.loadOntoFace;
@@ -3943,13 +4003,13 @@ export class QueueInfo {
3943
4003
  }
3944
4004
  }
3945
4005
  static fromJS(data) {
3946
- data = typeof data === 'object' ? data : {};
4006
+ data = typeof data === "object" ? data : {};
3947
4007
  let result = new QueueInfo();
3948
4008
  result.init(data);
3949
4009
  return result;
3950
4010
  }
3951
4011
  toJSON(data) {
3952
- data = typeof data === 'object' ? data : {};
4012
+ data = typeof data === "object" ? data : {};
3953
4013
  data["MaxSizeBeforeStopUnloading"] = this.maxSizeBeforeStopUnloading;
3954
4014
  data["Role"] = this.role;
3955
4015
  return data;
@@ -3988,13 +4048,13 @@ export class MachineLocation {
3988
4048
  }
3989
4049
  }
3990
4050
  static fromJS(data) {
3991
- data = typeof data === 'object' ? data : {};
4051
+ data = typeof data === "object" ? data : {};
3992
4052
  let result = new MachineLocation();
3993
4053
  result.init(data);
3994
4054
  return result;
3995
4055
  }
3996
4056
  toJSON(data) {
3997
- data = typeof data === 'object' ? data : {};
4057
+ data = typeof data === "object" ? data : {};
3998
4058
  data["MachineGroup"] = this.machineGroup;
3999
4059
  data["MachineNum"] = this.machineNum;
4000
4060
  data["Moving"] = this.moving;
@@ -4027,8 +4087,12 @@ export class ActiveWorkorder {
4027
4087
  this.plannedQuantity = _data["PlannedQuantity"];
4028
4088
  this.dueDate = _data["DueDate"] ? new Date(_data["DueDate"].toString()) : undefined;
4029
4089
  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;
4090
+ this.simulatedStart = _data["SimulatedStart"]
4091
+ ? new Date(_data["SimulatedStart"].toString())
4092
+ : undefined;
4093
+ this.simulatedFilled = _data["SimulatedFilled"]
4094
+ ? new Date(_data["SimulatedFilled"].toString())
4095
+ : undefined;
4032
4096
  this.completedQuantity = _data["CompletedQuantity"];
4033
4097
  if (Array.isArray(_data["Comments"])) {
4034
4098
  this.comments = [];
@@ -4057,20 +4121,24 @@ export class ActiveWorkorder {
4057
4121
  }
4058
4122
  }
4059
4123
  static fromJS(data) {
4060
- data = typeof data === 'object' ? data : {};
4124
+ data = typeof data === "object" ? data : {};
4061
4125
  let result = new ActiveWorkorder();
4062
4126
  result.init(data);
4063
4127
  return result;
4064
4128
  }
4065
4129
  toJSON(data) {
4066
- data = typeof data === 'object' ? data : {};
4130
+ data = typeof data === "object" ? data : {};
4067
4131
  data["WorkorderId"] = this.workorderId;
4068
4132
  data["Part"] = this.part;
4069
4133
  data["PlannedQuantity"] = this.plannedQuantity;
4070
4134
  data["DueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined;
4071
4135
  data["Priority"] = this.priority;
4072
- data["SimulatedStart"] = this.simulatedStart ? formatDate(this.simulatedStart) : undefined;
4073
- data["SimulatedFilled"] = this.simulatedFilled ? formatDate(this.simulatedFilled) : undefined;
4136
+ data["SimulatedStart"] = this.simulatedStart
4137
+ ? formatDate(this.simulatedStart)
4138
+ : undefined;
4139
+ data["SimulatedFilled"] = this.simulatedFilled
4140
+ ? formatDate(this.simulatedFilled)
4141
+ : undefined;
4074
4142
  data["CompletedQuantity"] = this.completedQuantity;
4075
4143
  if (Array.isArray(this.comments)) {
4076
4144
  data["Comments"] = [];
@@ -4115,13 +4183,13 @@ export class WorkorderComment {
4115
4183
  }
4116
4184
  }
4117
4185
  static fromJS(data) {
4118
- data = typeof data === 'object' ? data : {};
4186
+ data = typeof data === "object" ? data : {};
4119
4187
  let result = new WorkorderComment();
4120
4188
  result.init(data);
4121
4189
  return result;
4122
4190
  }
4123
4191
  toJSON(data) {
4124
- data = typeof data === 'object' ? data : {};
4192
+ data = typeof data === "object" ? data : {};
4125
4193
  data["Comment"] = this.comment;
4126
4194
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
4127
4195
  return data;
@@ -4146,13 +4214,13 @@ export class WorkorderMaterial {
4146
4214
  }
4147
4215
  }
4148
4216
  static fromJS(data) {
4149
- data = typeof data === 'object' ? data : {};
4217
+ data = typeof data === "object" ? data : {};
4150
4218
  let result = new WorkorderMaterial();
4151
4219
  result.init(data);
4152
4220
  return result;
4153
4221
  }
4154
4222
  toJSON(data) {
4155
- data = typeof data === 'object' ? data : {};
4223
+ data = typeof data === "object" ? data : {};
4156
4224
  data["MaterialID"] = this.materialID;
4157
4225
  data["Serial"] = this.serial;
4158
4226
  data["Quarantined"] = this.quarantined;
@@ -4186,13 +4254,13 @@ export class BasketStatus {
4186
4254
  }
4187
4255
  }
4188
4256
  static fromJS(data) {
4189
- data = typeof data === 'object' ? data : {};
4257
+ data = typeof data === "object" ? data : {};
4190
4258
  let result = new BasketStatus();
4191
4259
  result.init(data);
4192
4260
  return result;
4193
4261
  }
4194
4262
  toJSON(data) {
4195
- data = typeof data === 'object' ? data : {};
4263
+ data = typeof data === "object" ? data : {};
4196
4264
  data["BasketId"] = this.basketId;
4197
4265
  data["Location"] = this.location;
4198
4266
  data["LocationNum"] = this.locationNum;
@@ -4232,13 +4300,13 @@ export class EditMaterialInLogEvents {
4232
4300
  }
4233
4301
  }
4234
4302
  static fromJS(data) {
4235
- data = typeof data === 'object' ? data : {};
4303
+ data = typeof data === "object" ? data : {};
4236
4304
  let result = new EditMaterialInLogEvents();
4237
4305
  result.init(data);
4238
4306
  return result;
4239
4307
  }
4240
4308
  toJSON(data) {
4241
- data = typeof data === 'object' ? data : {};
4309
+ data = typeof data === "object" ? data : {};
4242
4310
  data["OldMaterialID"] = this.oldMaterialID;
4243
4311
  data["NewMaterialID"] = this.newMaterialID;
4244
4312
  if (Array.isArray(this.editedEvents)) {
@@ -4272,13 +4340,13 @@ export class ProblemDetails {
4272
4340
  }
4273
4341
  }
4274
4342
  static fromJS(data) {
4275
- data = typeof data === 'object' ? data : {};
4343
+ data = typeof data === "object" ? data : {};
4276
4344
  let result = new ProblemDetails();
4277
4345
  result.init(data);
4278
4346
  return result;
4279
4347
  }
4280
4348
  toJSON(data) {
4281
- data = typeof data === 'object' ? data : {};
4349
+ data = typeof data === "object" ? data : {};
4282
4350
  for (var property in this) {
4283
4351
  if (this.hasOwnProperty(property))
4284
4352
  data[property] = this[property];
@@ -4302,20 +4370,28 @@ export class ScannedMaterial {
4302
4370
  }
4303
4371
  init(_data) {
4304
4372
  if (_data) {
4305
- this.existingMaterial = _data["ExistingMaterial"] ? MaterialDetails.fromJS(_data["ExistingMaterial"]) : undefined;
4306
- this.potentialNewMaterial = _data["PotentialNewMaterial"] ? ScannedPotentialNewMaterial.fromJS(_data["PotentialNewMaterial"]) : undefined;
4373
+ this.existingMaterial = _data["ExistingMaterial"]
4374
+ ? MaterialDetails.fromJS(_data["ExistingMaterial"])
4375
+ : undefined;
4376
+ this.potentialNewMaterial = _data["PotentialNewMaterial"]
4377
+ ? ScannedPotentialNewMaterial.fromJS(_data["PotentialNewMaterial"])
4378
+ : undefined;
4307
4379
  }
4308
4380
  }
4309
4381
  static fromJS(data) {
4310
- data = typeof data === 'object' ? data : {};
4382
+ data = typeof data === "object" ? data : {};
4311
4383
  let result = new ScannedMaterial();
4312
4384
  result.init(data);
4313
4385
  return result;
4314
4386
  }
4315
4387
  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;
4388
+ data = typeof data === "object" ? data : {};
4389
+ data["ExistingMaterial"] = this.existingMaterial
4390
+ ? this.existingMaterial.toJSON()
4391
+ : undefined;
4392
+ data["PotentialNewMaterial"] = this.potentialNewMaterial
4393
+ ? this.potentialNewMaterial.toJSON()
4394
+ : undefined;
4319
4395
  return data;
4320
4396
  }
4321
4397
  }
@@ -4346,13 +4422,13 @@ export class MaterialDetails {
4346
4422
  }
4347
4423
  }
4348
4424
  static fromJS(data) {
4349
- data = typeof data === 'object' ? data : {};
4425
+ data = typeof data === "object" ? data : {};
4350
4426
  let result = new MaterialDetails();
4351
4427
  result.init(data);
4352
4428
  return result;
4353
4429
  }
4354
4430
  toJSON(data) {
4355
- data = typeof data === 'object' ? data : {};
4431
+ data = typeof data === "object" ? data : {};
4356
4432
  data["MaterialID"] = this.materialID;
4357
4433
  data["JobUnique"] = this.jobUnique;
4358
4434
  data["PartName"] = this.partName;
@@ -4384,14 +4460,19 @@ export class ScannedPotentialNewMaterial {
4384
4460
  this.possibleCastingsByQueue = {};
4385
4461
  for (let key in _data["PossibleCastingsByQueue"]) {
4386
4462
  if (_data["PossibleCastingsByQueue"].hasOwnProperty(key))
4387
- this.possibleCastingsByQueue[key] = _data["PossibleCastingsByQueue"][key] !== undefined ? _data["PossibleCastingsByQueue"][key] : [];
4463
+ this.possibleCastingsByQueue[key] =
4464
+ _data["PossibleCastingsByQueue"][key] !== undefined
4465
+ ? _data["PossibleCastingsByQueue"][key]
4466
+ : [];
4388
4467
  }
4389
4468
  }
4390
4469
  if (_data["PossibleJobsByQueue"]) {
4391
4470
  this.possibleJobsByQueue = {};
4392
4471
  for (let key in _data["PossibleJobsByQueue"]) {
4393
4472
  if (_data["PossibleJobsByQueue"].hasOwnProperty(key))
4394
- this.possibleJobsByQueue[key] = _data["PossibleJobsByQueue"][key] ? _data["PossibleJobsByQueue"][key].map((i) => PossibleJobAndProcess.fromJS(i)) : [];
4473
+ this.possibleJobsByQueue[key] = _data["PossibleJobsByQueue"][key]
4474
+ ? _data["PossibleJobsByQueue"][key].map((i) => PossibleJobAndProcess.fromJS(i))
4475
+ : [];
4395
4476
  }
4396
4477
  }
4397
4478
  this.workorder = _data["Workorder"];
@@ -4399,13 +4480,13 @@ export class ScannedPotentialNewMaterial {
4399
4480
  }
4400
4481
  }
4401
4482
  static fromJS(data) {
4402
- data = typeof data === 'object' ? data : {};
4483
+ data = typeof data === "object" ? data : {};
4403
4484
  let result = new ScannedPotentialNewMaterial();
4404
4485
  result.init(data);
4405
4486
  return result;
4406
4487
  }
4407
4488
  toJSON(data) {
4408
- data = typeof data === 'object' ? data : {};
4489
+ data = typeof data === "object" ? data : {};
4409
4490
  if (this.possibleCastingsByQueue) {
4410
4491
  data["PossibleCastingsByQueue"] = {};
4411
4492
  for (let key in this.possibleCastingsByQueue) {
@@ -4442,13 +4523,13 @@ export class PossibleJobAndProcess {
4442
4523
  }
4443
4524
  }
4444
4525
  static fromJS(data) {
4445
- data = typeof data === 'object' ? data : {};
4526
+ data = typeof data === "object" ? data : {};
4446
4527
  let result = new PossibleJobAndProcess();
4447
4528
  result.init(data);
4448
4529
  return result;
4449
4530
  }
4450
4531
  toJSON(data) {
4451
- data = typeof data === 'object' ? data : {};
4532
+ data = typeof data === "object" ? data : {};
4452
4533
  data["JobUnique"] = this.jobUnique;
4453
4534
  data["LastCompletedProcess"] = this.lastCompletedProcess;
4454
4535
  data["Workorder"] = this.workorder;
@@ -4474,7 +4555,9 @@ export class HistoricData {
4474
4555
  this.jobs = {};
4475
4556
  for (let key in _data["Jobs"]) {
4476
4557
  if (_data["Jobs"].hasOwnProperty(key))
4477
- this.jobs[key] = _data["Jobs"][key] ? HistoricJob.fromJS(_data["Jobs"][key]) : new HistoricJob();
4558
+ this.jobs[key] = _data["Jobs"][key]
4559
+ ? HistoricJob.fromJS(_data["Jobs"][key])
4560
+ : new HistoricJob();
4478
4561
  }
4479
4562
  }
4480
4563
  if (Array.isArray(_data["StationUse"])) {
@@ -4485,18 +4568,20 @@ export class HistoricData {
4485
4568
  }
4486
4569
  }
4487
4570
  static fromJS(data) {
4488
- data = typeof data === 'object' ? data : {};
4571
+ data = typeof data === "object" ? data : {};
4489
4572
  let result = new HistoricData();
4490
4573
  result.init(data);
4491
4574
  return result;
4492
4575
  }
4493
4576
  toJSON(data) {
4494
- data = typeof data === 'object' ? data : {};
4577
+ data = typeof data === "object" ? data : {};
4495
4578
  if (this.jobs) {
4496
4579
  data["Jobs"] = {};
4497
4580
  for (let key in this.jobs) {
4498
4581
  if (this.jobs.hasOwnProperty(key))
4499
- data["Jobs"][key] = this.jobs[key] ? this.jobs[key].toJSON() : undefined;
4582
+ data["Jobs"][key] = this.jobs[key]
4583
+ ? this.jobs[key].toJSON()
4584
+ : undefined;
4500
4585
  }
4501
4586
  }
4502
4587
  if (Array.isArray(this.stationUse)) {
@@ -4523,13 +4608,13 @@ export class RecentHistoricData extends HistoricData {
4523
4608
  }
4524
4609
  }
4525
4610
  static fromJS(data) {
4526
- data = typeof data === 'object' ? data : {};
4611
+ data = typeof data === "object" ? data : {};
4527
4612
  let result = new RecentHistoricData();
4528
4613
  result.init(data);
4529
4614
  return result;
4530
4615
  }
4531
4616
  toJSON(data) {
4532
- data = typeof data === 'object' ? data : {};
4617
+ data = typeof data === "object" ? data : {};
4533
4618
  data["MostRecentSimulationId"] = this.mostRecentSimulationId;
4534
4619
  if (Array.isArray(this.mostRecentSimDayUsage)) {
4535
4620
  data["MostRecentSimDayUsage"] = [];
@@ -4568,6 +4653,11 @@ export class MostRecentSchedule {
4568
4653
  this.extraParts[key] = _data["ExtraParts"][key];
4569
4654
  }
4570
4655
  }
4656
+ if (Array.isArray(_data["RecentArtifactRuns"])) {
4657
+ this.recentArtifactRuns = [];
4658
+ for (let item of _data["RecentArtifactRuns"])
4659
+ this.recentArtifactRuns.push(ScheduledArtifactRun.fromJS(item));
4660
+ }
4571
4661
  if (Array.isArray(_data["UnscheduledRebookings"])) {
4572
4662
  this.unscheduledRebookings = [];
4573
4663
  for (let item of _data["UnscheduledRebookings"])
@@ -4576,13 +4666,13 @@ export class MostRecentSchedule {
4576
4666
  }
4577
4667
  }
4578
4668
  static fromJS(data) {
4579
- data = typeof data === 'object' ? data : {};
4669
+ data = typeof data === "object" ? data : {};
4580
4670
  let result = new MostRecentSchedule();
4581
4671
  result.init(data);
4582
4672
  return result;
4583
4673
  }
4584
4674
  toJSON(data) {
4585
- data = typeof data === 'object' ? data : {};
4675
+ data = typeof data === "object" ? data : {};
4586
4676
  data["LatestScheduleId"] = this.latestScheduleId;
4587
4677
  if (Array.isArray(this.jobs)) {
4588
4678
  data["Jobs"] = [];
@@ -4596,6 +4686,11 @@ export class MostRecentSchedule {
4596
4686
  data["ExtraParts"][key] = this.extraParts[key];
4597
4687
  }
4598
4688
  }
4689
+ if (Array.isArray(this.recentArtifactRuns)) {
4690
+ data["RecentArtifactRuns"] = [];
4691
+ for (let item of this.recentArtifactRuns)
4692
+ data["RecentArtifactRuns"].push(item ? item.toJSON() : undefined);
4693
+ }
4599
4694
  if (Array.isArray(this.unscheduledRebookings)) {
4600
4695
  data["UnscheduledRebookings"] = [];
4601
4696
  for (let item of this.unscheduledRebookings)
@@ -4604,6 +4699,40 @@ export class MostRecentSchedule {
4604
4699
  return data;
4605
4700
  }
4606
4701
  }
4702
+ export class ScheduledArtifactRun {
4703
+ constructor(data) {
4704
+ if (data) {
4705
+ for (var property in data) {
4706
+ if (data.hasOwnProperty(property))
4707
+ this[property] = data[property];
4708
+ }
4709
+ }
4710
+ }
4711
+ init(_data) {
4712
+ if (_data) {
4713
+ this.jobUnique = _data["JobUnique"];
4714
+ this.partName = _data["PartName"];
4715
+ this.artifactRunDate = _data["ArtifactRunDate"]
4716
+ ? new Date(_data["ArtifactRunDate"].toString())
4717
+ : undefined;
4718
+ }
4719
+ }
4720
+ static fromJS(data) {
4721
+ data = typeof data === "object" ? data : {};
4722
+ let result = new ScheduledArtifactRun();
4723
+ result.init(data);
4724
+ return result;
4725
+ }
4726
+ toJSON(data) {
4727
+ data = typeof data === "object" ? data : {};
4728
+ data["JobUnique"] = this.jobUnique;
4729
+ data["PartName"] = this.partName;
4730
+ data["ArtifactRunDate"] = this.artifactRunDate
4731
+ ? formatDate(this.artifactRunDate)
4732
+ : undefined;
4733
+ return data;
4734
+ }
4735
+ }
4607
4736
  export class Rebooking {
4608
4737
  constructor(data) {
4609
4738
  if (data) {
@@ -4625,13 +4754,13 @@ export class Rebooking {
4625
4754
  }
4626
4755
  }
4627
4756
  static fromJS(data) {
4628
- data = typeof data === 'object' ? data : {};
4757
+ data = typeof data === "object" ? data : {};
4629
4758
  let result = new Rebooking();
4630
4759
  result.init(data);
4631
4760
  return result;
4632
4761
  }
4633
4762
  toJSON(data) {
4634
- data = typeof data === 'object' ? data : {};
4763
+ data = typeof data === "object" ? data : {};
4635
4764
  data["BookingId"] = this.bookingId;
4636
4765
  data["PartName"] = this.partName;
4637
4766
  data["Quantity"] = this.quantity;
@@ -4699,13 +4828,13 @@ export class SimulationResults {
4699
4828
  }
4700
4829
  }
4701
4830
  static fromJS(data) {
4702
- data = typeof data === 'object' ? data : {};
4831
+ data = typeof data === "object" ? data : {};
4703
4832
  let result = new SimulationResults();
4704
4833
  result.init(data);
4705
4834
  return result;
4706
4835
  }
4707
4836
  toJSON(data) {
4708
- data = typeof data === 'object' ? data : {};
4837
+ data = typeof data === "object" ? data : {};
4709
4838
  data["ScheduleId"] = this.scheduleId;
4710
4839
  if (Array.isArray(this.jobs)) {
4711
4840
  data["Jobs"] = [];
@@ -4764,13 +4893,13 @@ export class QueuePosition {
4764
4893
  }
4765
4894
  }
4766
4895
  static fromJS(data) {
4767
- data = typeof data === 'object' ? data : {};
4896
+ data = typeof data === "object" ? data : {};
4768
4897
  let result = new QueuePosition();
4769
4898
  result.init(data);
4770
4899
  return result;
4771
4900
  }
4772
4901
  toJSON(data) {
4773
- data = typeof data === 'object' ? data : {};
4902
+ data = typeof data === "object" ? data : {};
4774
4903
  data["Queue"] = this.queue;
4775
4904
  data["Position"] = this.position;
4776
4905
  return data;
@@ -4792,13 +4921,13 @@ export class MatToPutOnPallet {
4792
4921
  }
4793
4922
  }
4794
4923
  static fromJS(data) {
4795
- data = typeof data === 'object' ? data : {};
4924
+ data = typeof data === "object" ? data : {};
4796
4925
  let result = new MatToPutOnPallet();
4797
4926
  result.init(data);
4798
4927
  return result;
4799
4928
  }
4800
4929
  toJSON(data) {
4801
- data = typeof data === 'object' ? data : {};
4930
+ data = typeof data === "object" ? data : {};
4802
4931
  data["Pallet"] = this.pallet;
4803
4932
  data["MaterialIDToSetOnPallet"] = this.materialIDToSetOnPallet;
4804
4933
  return data;
@@ -4823,13 +4952,13 @@ export class JobAndDecrementQuantity {
4823
4952
  }
4824
4953
  }
4825
4954
  static fromJS(data) {
4826
- data = typeof data === 'object' ? data : {};
4955
+ data = typeof data === "object" ? data : {};
4827
4956
  let result = new JobAndDecrementQuantity();
4828
4957
  result.init(data);
4829
4958
  return result;
4830
4959
  }
4831
4960
  toJSON(data) {
4832
- data = typeof data === 'object' ? data : {};
4961
+ data = typeof data === "object" ? data : {};
4833
4962
  data["DecrementId"] = this.decrementId;
4834
4963
  data["JobUnique"] = this.jobUnique;
4835
4964
  data["TimeUTC"] = this.timeUTC ? this.timeUTC.toISOString() : undefined;
@@ -4866,13 +4995,13 @@ export class NewInspectionCompleted {
4866
4995
  }
4867
4996
  }
4868
4997
  static fromJS(data) {
4869
- data = typeof data === 'object' ? data : {};
4998
+ data = typeof data === "object" ? data : {};
4870
4999
  let result = new NewInspectionCompleted();
4871
5000
  result.init(data);
4872
5001
  return result;
4873
5002
  }
4874
5003
  toJSON(data) {
4875
- data = typeof data === 'object' ? data : {};
5004
+ data = typeof data === "object" ? data : {};
4876
5005
  data["MaterialID"] = this.materialID;
4877
5006
  data["Process"] = this.process;
4878
5007
  data["InspectionLocationNum"] = this.inspectionLocationNum;
@@ -4918,13 +5047,13 @@ export class NewCloseout {
4918
5047
  }
4919
5048
  }
4920
5049
  static fromJS(data) {
4921
- data = typeof data === 'object' ? data : {};
5050
+ data = typeof data === "object" ? data : {};
4922
5051
  let result = new NewCloseout();
4923
5052
  result.init(data);
4924
5053
  return result;
4925
5054
  }
4926
5055
  toJSON(data) {
4927
- data = typeof data === 'object' ? data : {};
5056
+ data = typeof data === "object" ? data : {};
4928
5057
  data["MaterialID"] = this.materialID;
4929
5058
  data["Process"] = this.process;
4930
5059
  data["LocationNum"] = this.locationNum;
@@ -4963,13 +5092,13 @@ export class ToolSnapshot {
4963
5092
  }
4964
5093
  }
4965
5094
  static fromJS(data) {
4966
- data = typeof data === 'object' ? data : {};
5095
+ data = typeof data === "object" ? data : {};
4967
5096
  let result = new ToolSnapshot();
4968
5097
  result.init(data);
4969
5098
  return result;
4970
5099
  }
4971
5100
  toJSON(data) {
4972
- data = typeof data === 'object' ? data : {};
5101
+ data = typeof data === "object" ? data : {};
4973
5102
  data["Pocket"] = this.pocket;
4974
5103
  data["ToolName"] = this.toolName;
4975
5104
  data["Serial"] = this.serial;
@@ -4992,13 +5121,13 @@ export class ToolInMachine extends ToolSnapshot {
4992
5121
  }
4993
5122
  }
4994
5123
  static fromJS(data) {
4995
- data = typeof data === 'object' ? data : {};
5124
+ data = typeof data === "object" ? data : {};
4996
5125
  let result = new ToolInMachine();
4997
5126
  result.init(data);
4998
5127
  return result;
4999
5128
  }
5000
5129
  toJSON(data) {
5001
- data = typeof data === 'object' ? data : {};
5130
+ data = typeof data === "object" ? data : {};
5002
5131
  data["MachineGroupName"] = this.machineGroupName;
5003
5132
  data["MachineNum"] = this.machineNum;
5004
5133
  super.toJSON(data);
@@ -5023,13 +5152,13 @@ export class ProgramInCellController {
5023
5152
  }
5024
5153
  }
5025
5154
  static fromJS(data) {
5026
- data = typeof data === 'object' ? data : {};
5155
+ data = typeof data === "object" ? data : {};
5027
5156
  let result = new ProgramInCellController();
5028
5157
  result.init(data);
5029
5158
  return result;
5030
5159
  }
5031
5160
  toJSON(data) {
5032
- data = typeof data === 'object' ? data : {};
5161
+ data = typeof data === "object" ? data : {};
5033
5162
  data["CellControllerProgramName"] = this.cellControllerProgramName;
5034
5163
  data["ProgramName"] = this.programName;
5035
5164
  data["Revision"] = this.revision;
@@ -5055,13 +5184,13 @@ export class ProgramRevision {
5055
5184
  }
5056
5185
  }
5057
5186
  static fromJS(data) {
5058
- data = typeof data === 'object' ? data : {};
5187
+ data = typeof data === "object" ? data : {};
5059
5188
  let result = new ProgramRevision();
5060
5189
  result.init(data);
5061
5190
  return result;
5062
5191
  }
5063
5192
  toJSON(data) {
5064
- data = typeof data === 'object' ? data : {};
5193
+ data = typeof data === "object" ? data : {};
5065
5194
  data["ProgramName"] = this.programName;
5066
5195
  data["Revision"] = this.revision;
5067
5196
  data["Comment"] = this.comment;
@@ -5070,9 +5199,11 @@ export class ProgramRevision {
5070
5199
  }
5071
5200
  }
5072
5201
  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());
5202
+ return (d.getUTCFullYear() +
5203
+ "-" +
5204
+ (d.getUTCMonth() < 9 ? "0" + (d.getUTCMonth() + 1) : d.getUTCMonth() + 1) +
5205
+ "-" +
5206
+ (d.getUTCDate() < 10 ? "0" + d.getUTCDate() : d.getUTCDate()));
5076
5207
  }
5077
5208
  export class ApiException extends Error {
5078
5209
  constructor(message, status, response, headers, result) {