@ricado/api-client 2.1.0 → 2.3.0

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 (123) hide show
  1. package/README.md +5 -7
  2. package/dist/ricado.api.client.js +1 -1
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  5. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  6. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  7. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  8. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  9. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  10. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  11. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  12. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  13. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  14. package/lib/DataItems/PointValueItem.js +3 -3
  15. package/lib/Models/AccountPolicyModel.js +7 -7
  16. package/lib/Models/ApiAccountModel.js +7 -7
  17. package/lib/Models/CompanyModel.js +5 -5
  18. package/lib/Models/FirebaseTokenModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  20. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  21. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  23. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  24. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  25. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  26. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  27. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  28. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  30. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  31. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  32. package/lib/Models/Packhouse/Site/PackingLineModel.js +539 -16
  33. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  34. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  35. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +271 -15
  36. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  37. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  38. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  39. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  40. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  41. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  42. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  43. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  44. package/lib/Models/Packhouse/Site/index.js +15 -0
  45. package/lib/Models/RTUModel.js +6 -6
  46. package/lib/Models/RTUPluginModel.js +5 -5
  47. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  48. package/lib/Models/Site/AlarmModel.js +17 -17
  49. package/lib/Models/Site/DefinitionModel.js +6 -6
  50. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  51. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  52. package/lib/Models/Site/PointModel.js +11 -11
  53. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  54. package/lib/Models/SiteModel.js +6 -6
  55. package/lib/Models/TokenModel.js +10 -10
  56. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  57. package/lib/Models/UserAccountModel.js +10 -10
  58. package/lib/PackageVersion.js +1 -1
  59. package/lib/Points.js +22 -12
  60. package/lib/WebSocketHelper.js +29 -13
  61. package/lib/index.d.ts +3853 -1290
  62. package/lib/index.js +3 -3
  63. package/package.json +1 -1
  64. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  65. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  66. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  67. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  68. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  69. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  70. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  71. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  72. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  73. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  74. package/src/Controllers/Packhouse/Site/index.js +10 -0
  75. package/src/DataItems/PointValueItem.js +3 -3
  76. package/src/Models/AccountPolicyModel.js +7 -7
  77. package/src/Models/ApiAccountModel.js +7 -7
  78. package/src/Models/CompanyModel.js +5 -5
  79. package/src/Models/FirebaseTokenModel.js +8 -8
  80. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  81. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  82. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  83. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  84. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  85. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  86. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  87. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  88. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  89. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  90. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  91. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  92. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  93. package/src/Models/Packhouse/Site/PackingLineModel.js +720 -16
  94. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  95. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  96. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +308 -15
  97. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  98. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  99. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  100. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  101. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  102. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  103. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  104. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  105. package/src/Models/Packhouse/Site/index.js +10 -0
  106. package/src/Models/RTUModel.js +6 -6
  107. package/src/Models/RTUPluginModel.js +5 -5
  108. package/src/Models/Site/AlarmGroupModel.js +7 -7
  109. package/src/Models/Site/AlarmModel.js +17 -17
  110. package/src/Models/Site/DefinitionModel.js +6 -6
  111. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  112. package/src/Models/Site/PermanentObjectModel.js +7 -7
  113. package/src/Models/Site/PointModel.js +11 -11
  114. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  115. package/src/Models/SiteModel.js +6 -6
  116. package/src/Models/TokenModel.js +10 -10
  117. package/src/Models/UserAccountActionTokenModel.js +11 -11
  118. package/src/Models/UserAccountModel.js +10 -10
  119. package/src/PackageVersion.js +1 -1
  120. package/src/Points.js +24 -12
  121. package/src/WebSocketHelper.js +34 -13
  122. package/src/index.js +3 -3
  123. package/types/tslint.json +2 -1
@@ -62,7 +62,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Packing Line belongs to
68
68
  *
@@ -70,7 +70,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Packing Line Name
76
76
  *
@@ -78,7 +78,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.name = undefined;
81
+ _this.name = "";
82
82
  /**
83
83
  * The Points used by this Packing Line
84
84
  *
@@ -86,7 +86,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.points = undefined;
89
+ _this.points = {};
90
90
  /**
91
91
  * The Sizer Objects that belong to this Packing Line
92
92
  *
@@ -94,7 +94,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.sizers = undefined;
97
+ _this.sizers = [];
98
98
  /**
99
99
  * The Bin Tip Objects that belong to this this Packing Line
100
100
  *
@@ -102,7 +102,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.binTips = undefined;
105
+ _this.binTips = [];
106
106
  /**
107
107
  * The Reject Bin Scale Objects that belong to this Packing Line
108
108
  *
@@ -110,7 +110,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.rejectBinScales = undefined;
113
+ _this.rejectBinScales = [];
114
+ /**
115
+ * An Optional Secondary Packing Line Reference
116
+ *
117
+ * @type {?Object}
118
+ * @public
119
+ */
120
+
121
+ _this.secondaryPackingLine = null;
114
122
  /**
115
123
  * The Automation Object for this Packing Line
116
124
  *
@@ -118,7 +126,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
118
126
  * @public
119
127
  */
120
128
 
121
- _this.automation = undefined;
129
+ _this.automation = null;
122
130
  /**
123
131
  * The Alarm Groups that are used by this Packing Line
124
132
  *
@@ -126,7 +134,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
126
134
  * @public
127
135
  */
128
136
 
129
- _this.alarmGroups = undefined;
137
+ _this.alarmGroups = [];
130
138
  /**
131
139
  * The Class Types that are defined for this Packing Line
132
140
  *
@@ -134,15 +142,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
134
142
  * @public
135
143
  */
136
144
 
137
- _this.classTypes = undefined;
145
+ _this.classTypes = [];
138
146
  /**
139
147
  * The Optional Shift Management Object for this Packing Line
140
148
  *
141
- * @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
149
+ * @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>}}
142
150
  * @public
143
151
  */
144
152
 
145
- _this.shiftManagement = undefined;
153
+ _this.shiftManagement = null;
146
154
  /**
147
155
  * The FreshPack Integration Configuration for this Packing Line
148
156
  *
@@ -150,7 +158,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
150
158
  * @public
151
159
  */
152
160
 
153
- _this.freshPackIntegration = undefined;
161
+ _this.freshPackIntegration = null;
154
162
  /**
155
163
  * The FreshQuality Integration Configuration for this Packing Line
156
164
  *
@@ -158,7 +166,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
158
166
  * @public
159
167
  */
160
168
 
161
- _this.freshQualityIntegration = undefined;
169
+ _this.freshQualityIntegration = null;
162
170
  /**
163
171
  * Whether the Packing Line has been deleted
164
172
  *
@@ -166,7 +174,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
166
174
  * @public
167
175
  */
168
176
 
169
- _this.deleted = undefined;
177
+ _this.deleted = false;
170
178
  /**
171
179
  * When the Packing Line was last updated
172
180
  *
@@ -174,7 +182,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
174
182
  * @public
175
183
  */
176
184
 
177
- _this.updateTimestamp = undefined;
185
+ _this.updateTimestamp = new Date();
178
186
  /**
179
187
  * The Site ID associated with this Packing Line
180
188
  *
@@ -312,6 +320,20 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
312
320
  }();
313
321
  }
314
322
 
323
+ if ('secondaryPackingLine' in jsonObject) {
324
+ model.secondaryPackingLine = function () {
325
+ if (jsonObject['secondaryPackingLine'] === null) {
326
+ return null;
327
+ }
328
+
329
+ if (_typeof(jsonObject['secondaryPackingLine']) !== 'object') {
330
+ return Object(jsonObject['secondaryPackingLine']);
331
+ }
332
+
333
+ return jsonObject['secondaryPackingLine'];
334
+ }();
335
+ }
336
+
315
337
  if ('automation' in jsonObject) {
316
338
  model.automation = function () {
317
339
  if (jsonObject['automation'] === null) {
@@ -470,6 +492,30 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
470
492
  pointsObject.finishFocusMeetingRequest = 0;
471
493
  }
472
494
 
495
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftStatus' in jsonObject['shiftManagement'].points) {
496
+ pointsObject.currentShiftStatus = function () {
497
+ if (typeof jsonObject['shiftManagement'].points.currentShiftStatus !== 'number') {
498
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftStatus)) ? Number(jsonObject['shiftManagement'].points.currentShiftStatus) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftStatus));
499
+ }
500
+
501
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftStatus) ? jsonObject['shiftManagement'].points.currentShiftStatus : Math.floor(jsonObject['shiftManagement'].points.currentShiftStatus);
502
+ }();
503
+ } else {
504
+ pointsObject.currentShiftStatus = 0;
505
+ }
506
+
507
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftModifyHourlyEntryRequest' in jsonObject['shiftManagement'].points) {
508
+ pointsObject.currentShiftModifyHourlyEntryRequest = function () {
509
+ if (typeof jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest !== 'number') {
510
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest)) ? Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest));
511
+ }
512
+
513
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) ? jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest : Math.floor(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest);
514
+ }();
515
+ } else {
516
+ pointsObject.currentShiftModifyHourlyEntryRequest = 0;
517
+ }
518
+
473
519
  if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'shiftSchedules' in jsonObject['shiftManagement'].points) {
474
520
  pointsObject.shiftSchedules = function () {
475
521
  if (typeof jsonObject['shiftManagement'].points.shiftSchedules !== 'number') {
@@ -482,6 +528,246 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
482
528
  pointsObject.shiftSchedules = 0;
483
529
  }
484
530
 
531
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHourTarget' in jsonObject['shiftManagement'].points) {
532
+ pointsObject.currentShiftClass1TraysPerHourTarget = function () {
533
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget !== 'number') {
534
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget));
535
+ }
536
+
537
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget);
538
+ }();
539
+ } else {
540
+ pointsObject.currentShiftClass1TraysPerHourTarget = 0;
541
+ }
542
+
543
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHourAdjustedTarget' in jsonObject['shiftManagement'].points) {
544
+ pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = function () {
545
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget !== 'number') {
546
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget));
547
+ }
548
+
549
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget);
550
+ }();
551
+ } else {
552
+ pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = 0;
553
+ }
554
+
555
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHour' in jsonObject['shiftManagement'].points) {
556
+ pointsObject.currentShiftClass1TraysPerHour = function () {
557
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour !== 'number') {
558
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour));
559
+ }
560
+
561
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour);
562
+ }();
563
+ } else {
564
+ pointsObject.currentShiftClass1TraysPerHour = 0;
565
+ }
566
+
567
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTrayTarget' in jsonObject['shiftManagement'].points) {
568
+ pointsObject.currentShiftCostPerTrayTarget = function () {
569
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget !== 'number') {
570
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget));
571
+ }
572
+
573
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget);
574
+ }();
575
+ } else {
576
+ pointsObject.currentShiftCostPerTrayTarget = 0;
577
+ }
578
+
579
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTrayAdjustedTarget' in jsonObject['shiftManagement'].points) {
580
+ pointsObject.currentShiftCostPerTrayAdjustedTarget = function () {
581
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget !== 'number') {
582
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget));
583
+ }
584
+
585
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget);
586
+ }();
587
+ } else {
588
+ pointsObject.currentShiftCostPerTrayAdjustedTarget = 0;
589
+ }
590
+
591
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTray' in jsonObject['shiftManagement'].points) {
592
+ pointsObject.currentShiftCostPerTray = function () {
593
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTray !== 'number') {
594
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray));
595
+ }
596
+
597
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTray);
598
+ }();
599
+ } else {
600
+ pointsObject.currentShiftCostPerTray = 0;
601
+ }
602
+
603
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftManningTarget' in jsonObject['shiftManagement'].points) {
604
+ pointsObject.currentShiftManningTarget = function () {
605
+ if (typeof jsonObject['shiftManagement'].points.currentShiftManningTarget !== 'number') {
606
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftManningTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget));
607
+ }
608
+
609
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftManningTarget) ? jsonObject['shiftManagement'].points.currentShiftManningTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftManningTarget);
610
+ }();
611
+ } else {
612
+ pointsObject.currentShiftManningTarget = 0;
613
+ }
614
+
615
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1Manning' in jsonObject['shiftManagement'].points) {
616
+ pointsObject.currentShiftClass1Manning = function () {
617
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1Manning !== 'number') {
618
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning));
619
+ }
620
+
621
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1Manning);
622
+ }();
623
+ } else {
624
+ pointsObject.currentShiftClass1Manning = 0;
625
+ }
626
+
627
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass2Manning' in jsonObject['shiftManagement'].points) {
628
+ pointsObject.currentShiftClass2Manning = function () {
629
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass2Manning !== 'number') {
630
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning));
631
+ }
632
+
633
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass2Manning);
634
+ }();
635
+ } else {
636
+ pointsObject.currentShiftClass2Manning = 0;
637
+ }
638
+
639
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftQualityR600IdealTarget' in jsonObject['shiftManagement'].points) {
640
+ pointsObject.currentShiftQualityR600IdealTarget = function () {
641
+ if (typeof jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget !== 'number') {
642
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget));
643
+ }
644
+
645
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) ? jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget);
646
+ }();
647
+ } else {
648
+ pointsObject.currentShiftQualityR600IdealTarget = 0;
649
+ }
650
+
651
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftQualityR600Ideal' in jsonObject['shiftManagement'].points) {
652
+ pointsObject.currentShiftQualityR600Ideal = function () {
653
+ if (typeof jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal !== 'number') {
654
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal));
655
+ }
656
+
657
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal);
658
+ }();
659
+ } else {
660
+ pointsObject.currentShiftQualityR600Ideal = 0;
661
+ }
662
+
663
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftScorePercentage' in jsonObject['shiftManagement'].points) {
664
+ pointsObject.currentShiftScorePercentage = function () {
665
+ if (typeof jsonObject['shiftManagement'].points.currentShiftScorePercentage !== 'number') {
666
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage));
667
+ }
668
+
669
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftScorePercentage);
670
+ }();
671
+ } else {
672
+ pointsObject.currentShiftScorePercentage = 0;
673
+ }
674
+
675
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points) {
676
+ pointsObject.class1TraysPerHourTargets = function () {
677
+ if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourTargets !== 'number') {
678
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets));
679
+ }
680
+
681
+ return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) ? jsonObject['shiftManagement'].points.class1TraysPerHourTargets : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourTargets);
682
+ }();
683
+ } else {
684
+ pointsObject.class1TraysPerHourTargets = 0;
685
+ }
686
+
687
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerTrayTargets' in jsonObject['shiftManagement'].points) {
688
+ pointsObject.costPerTrayTargets = function () {
689
+ if (typeof jsonObject['shiftManagement'].points.costPerTrayTargets !== 'number') {
690
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayTargets)) ? Number(jsonObject['shiftManagement'].points.costPerTrayTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayTargets));
691
+ }
692
+
693
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayTargets) ? jsonObject['shiftManagement'].points.costPerTrayTargets : Math.floor(jsonObject['shiftManagement'].points.costPerTrayTargets);
694
+ }();
695
+ } else {
696
+ pointsObject.costPerTrayTargets = 0;
697
+ }
698
+
699
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'manningTargets' in jsonObject['shiftManagement'].points) {
700
+ pointsObject.manningTargets = function () {
701
+ if (typeof jsonObject['shiftManagement'].points.manningTargets !== 'number') {
702
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.manningTargets)) ? Number(jsonObject['shiftManagement'].points.manningTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.manningTargets));
703
+ }
704
+
705
+ return Number.isInteger(jsonObject['shiftManagement'].points.manningTargets) ? jsonObject['shiftManagement'].points.manningTargets : Math.floor(jsonObject['shiftManagement'].points.manningTargets);
706
+ }();
707
+ } else {
708
+ pointsObject.manningTargets = 0;
709
+ }
710
+
711
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'qualityR600IdealTargets' in jsonObject['shiftManagement'].points) {
712
+ pointsObject.qualityR600IdealTargets = function () {
713
+ if (typeof jsonObject['shiftManagement'].points.qualityR600IdealTargets !== 'number') {
714
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets));
715
+ }
716
+
717
+ return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealTargets) ? jsonObject['shiftManagement'].points.qualityR600IdealTargets : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealTargets);
718
+ }();
719
+ } else {
720
+ pointsObject.qualityR600IdealTargets = 0;
721
+ }
722
+
723
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerManningUnitHour' in jsonObject['shiftManagement'].points) {
724
+ pointsObject.costPerManningUnitHour = function () {
725
+ if (typeof jsonObject['shiftManagement'].points.costPerManningUnitHour !== 'number') {
726
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour)) ? Number(jsonObject['shiftManagement'].points.costPerManningUnitHour) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour));
727
+ }
728
+
729
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerManningUnitHour) ? jsonObject['shiftManagement'].points.costPerManningUnitHour : Math.floor(jsonObject['shiftManagement'].points.costPerManningUnitHour);
730
+ }();
731
+ } else {
732
+ pointsObject.costPerManningUnitHour = 0;
733
+ }
734
+
735
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourScoreWeighting' in jsonObject['shiftManagement'].points) {
736
+ pointsObject.class1TraysPerHourScoreWeighting = function () {
737
+ if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting !== 'number') {
738
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting));
739
+ }
740
+
741
+ return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) ? jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting);
742
+ }();
743
+ } else {
744
+ pointsObject.class1TraysPerHourScoreWeighting = 0;
745
+ }
746
+
747
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerTrayScoreWeighting' in jsonObject['shiftManagement'].points) {
748
+ pointsObject.costPerTrayScoreWeighting = function () {
749
+ if (typeof jsonObject['shiftManagement'].points.costPerTrayScoreWeighting !== 'number') {
750
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting));
751
+ }
752
+
753
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) ? jsonObject['shiftManagement'].points.costPerTrayScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting);
754
+ }();
755
+ } else {
756
+ pointsObject.costPerTrayScoreWeighting = 0;
757
+ }
758
+
759
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'qualityR600IdealScoreWeighting' in jsonObject['shiftManagement'].points) {
760
+ pointsObject.qualityR600IdealScoreWeighting = function () {
761
+ if (typeof jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting !== 'number') {
762
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting));
763
+ }
764
+
765
+ return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) ? jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting);
766
+ }();
767
+ } else {
768
+ pointsObject.qualityR600IdealScoreWeighting = 0;
769
+ }
770
+
485
771
  return pointsObject;
486
772
  }();
487
773
  } else {
@@ -495,11 +781,152 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
495
781
  pointsDefaultValue.currentFocusMeetingId = 0;
496
782
  pointsDefaultValue.startFocusMeetingRequest = 0;
497
783
  pointsDefaultValue.finishFocusMeetingRequest = 0;
784
+ pointsDefaultValue.currentShiftStatus = 0;
785
+ pointsDefaultValue.currentShiftModifyHourlyEntryRequest = 0;
498
786
  pointsDefaultValue.shiftSchedules = 0;
787
+ pointsDefaultValue.currentShiftClass1TraysPerHourTarget = 0;
788
+ pointsDefaultValue.currentShiftClass1TraysPerHourAdjustedTarget = 0;
789
+ pointsDefaultValue.currentShiftClass1TraysPerHour = 0;
790
+ pointsDefaultValue.currentShiftCostPerTrayTarget = 0;
791
+ pointsDefaultValue.currentShiftCostPerTrayAdjustedTarget = 0;
792
+ pointsDefaultValue.currentShiftCostPerTray = 0;
793
+ pointsDefaultValue.currentShiftManningTarget = 0;
794
+ pointsDefaultValue.currentShiftClass1Manning = 0;
795
+ pointsDefaultValue.currentShiftClass2Manning = 0;
796
+ pointsDefaultValue.currentShiftQualityR600IdealTarget = 0;
797
+ pointsDefaultValue.currentShiftQualityR600Ideal = 0;
798
+ pointsDefaultValue.currentShiftScorePercentage = 0;
799
+ pointsDefaultValue.class1TraysPerHourTargets = 0;
800
+ pointsDefaultValue.costPerTrayTargets = 0;
801
+ pointsDefaultValue.manningTargets = 0;
802
+ pointsDefaultValue.qualityR600IdealTargets = 0;
803
+ pointsDefaultValue.costPerManningUnitHour = 0;
804
+ pointsDefaultValue.class1TraysPerHourScoreWeighting = 0;
805
+ pointsDefaultValue.costPerTrayScoreWeighting = 0;
806
+ pointsDefaultValue.qualityR600IdealScoreWeighting = 0;
499
807
  return pointsDefaultValue;
500
808
  }();
501
809
  }
502
810
 
811
+ if (_typeof(jsonObject['shiftManagement']) === 'object' && 'customQualityConfiguration' in jsonObject['shiftManagement']) {
812
+ shiftManagementObject.customQualityConfiguration = function () {
813
+ if (Array.isArray(jsonObject['shiftManagement'].customQualityConfiguration) !== true) {
814
+ return [];
815
+ }
816
+
817
+ return jsonObject['shiftManagement'].customQualityConfiguration.map(function (customQualityConfigurationItem) {
818
+ return function () {
819
+ var customQualityConfigurationItemObject = {};
820
+
821
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'id' in customQualityConfigurationItem) {
822
+ customQualityConfigurationItemObject.id = function () {
823
+ if (typeof customQualityConfigurationItem.id !== 'string') {
824
+ return String(customQualityConfigurationItem.id);
825
+ }
826
+
827
+ return customQualityConfigurationItem.id;
828
+ }();
829
+ } else {
830
+ customQualityConfigurationItemObject.id = "";
831
+ }
832
+
833
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'name' in customQualityConfigurationItem) {
834
+ customQualityConfigurationItemObject.name = function () {
835
+ if (typeof customQualityConfigurationItem.name !== 'string') {
836
+ return String(customQualityConfigurationItem.name);
837
+ }
838
+
839
+ return customQualityConfigurationItem.name;
840
+ }();
841
+ } else {
842
+ customQualityConfigurationItemObject.name = "";
843
+ }
844
+
845
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'type' in customQualityConfigurationItem) {
846
+ customQualityConfigurationItemObject.type = function () {
847
+ if (typeof customQualityConfigurationItem.type !== 'string') {
848
+ return String(customQualityConfigurationItem.type);
849
+ }
850
+
851
+ return customQualityConfigurationItem.type;
852
+ }();
853
+ } else {
854
+ customQualityConfigurationItemObject.type = "";
855
+ }
856
+
857
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'points' in customQualityConfigurationItem) {
858
+ customQualityConfigurationItemObject.points = function () {
859
+ var pointsObject = {};
860
+
861
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'currentShiftCustomQualityTarget' in customQualityConfigurationItem.points) {
862
+ pointsObject.currentShiftCustomQualityTarget = function () {
863
+ if (typeof customQualityConfigurationItem.points.currentShiftCustomQualityTarget !== 'number') {
864
+ return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget));
865
+ }
866
+
867
+ return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) ? customQualityConfigurationItem.points.currentShiftCustomQualityTarget : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityTarget);
868
+ }();
869
+ } else {
870
+ pointsObject.currentShiftCustomQualityTarget = 0;
871
+ }
872
+
873
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'currentShiftCustomQualityValue' in customQualityConfigurationItem.points) {
874
+ pointsObject.currentShiftCustomQualityValue = function () {
875
+ if (typeof customQualityConfigurationItem.points.currentShiftCustomQualityValue !== 'number') {
876
+ return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue));
877
+ }
878
+
879
+ return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityValue);
880
+ }();
881
+ } else {
882
+ pointsObject.currentShiftCustomQualityValue = 0;
883
+ }
884
+
885
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points) {
886
+ pointsObject.customQualityTargets = function () {
887
+ if (typeof customQualityConfigurationItem.points.customQualityTargets !== 'number') {
888
+ return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityTargets)) ? Number(customQualityConfigurationItem.points.customQualityTargets) : Math.floor(Number(customQualityConfigurationItem.points.customQualityTargets));
889
+ }
890
+
891
+ return Number.isInteger(customQualityConfigurationItem.points.customQualityTargets) ? customQualityConfigurationItem.points.customQualityTargets : Math.floor(customQualityConfigurationItem.points.customQualityTargets);
892
+ }();
893
+ } else {
894
+ pointsObject.customQualityTargets = 0;
895
+ }
896
+
897
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'customQualityScoreWeighting' in customQualityConfigurationItem.points) {
898
+ pointsObject.customQualityScoreWeighting = function () {
899
+ if (typeof customQualityConfigurationItem.points.customQualityScoreWeighting !== 'number') {
900
+ return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityScoreWeighting)) ? Number(customQualityConfigurationItem.points.customQualityScoreWeighting) : Math.floor(Number(customQualityConfigurationItem.points.customQualityScoreWeighting));
901
+ }
902
+
903
+ return Number.isInteger(customQualityConfigurationItem.points.customQualityScoreWeighting) ? customQualityConfigurationItem.points.customQualityScoreWeighting : Math.floor(customQualityConfigurationItem.points.customQualityScoreWeighting);
904
+ }();
905
+ } else {
906
+ pointsObject.customQualityScoreWeighting = 0;
907
+ }
908
+
909
+ return pointsObject;
910
+ }();
911
+ } else {
912
+ customQualityConfigurationItemObject.points = function () {
913
+ var pointsDefaultValue = {};
914
+ pointsDefaultValue.currentShiftCustomQualityTarget = 0;
915
+ pointsDefaultValue.currentShiftCustomQualityValue = 0;
916
+ pointsDefaultValue.customQualityTargets = 0;
917
+ pointsDefaultValue.customQualityScoreWeighting = 0;
918
+ return pointsDefaultValue;
919
+ }();
920
+ }
921
+
922
+ return customQualityConfigurationItemObject;
923
+ }();
924
+ });
925
+ }();
926
+ } else {
927
+ shiftManagementObject.customQualityConfiguration = [];
928
+ }
929
+
503
930
  if (_typeof(jsonObject['shiftManagement']) === 'object' && 'enabled' in jsonObject['shiftManagement']) {
504
931
  shiftManagementObject.enabled = function () {
505
932
  if (typeof jsonObject['shiftManagement'].enabled !== 'boolean') {
@@ -512,6 +939,102 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
512
939
  shiftManagementObject.enabled = false;
513
940
  }
514
941
 
942
+ if (_typeof(jsonObject['shiftManagement']) === 'object' && 'taskDefinitions' in jsonObject['shiftManagement']) {
943
+ shiftManagementObject.taskDefinitions = function () {
944
+ if (Array.isArray(jsonObject['shiftManagement'].taskDefinitions) !== true) {
945
+ return [];
946
+ }
947
+
948
+ return jsonObject['shiftManagement'].taskDefinitions.map(function (taskDefinitionsItem) {
949
+ return function () {
950
+ var taskDefinitionsItemObject = {};
951
+
952
+ if (_typeof(taskDefinitionsItem) === 'object' && 'type' in taskDefinitionsItem) {
953
+ taskDefinitionsItemObject.type = function () {
954
+ if (typeof taskDefinitionsItem.type !== 'string') {
955
+ return String(taskDefinitionsItem.type);
956
+ }
957
+
958
+ return taskDefinitionsItem.type;
959
+ }();
960
+ } else {
961
+ taskDefinitionsItemObject.type = "";
962
+ }
963
+
964
+ if (_typeof(taskDefinitionsItem) === 'object' && 'tags' in taskDefinitionsItem) {
965
+ taskDefinitionsItemObject.tags = function () {
966
+ if (Array.isArray(taskDefinitionsItem.tags) !== true) {
967
+ return [];
968
+ }
969
+
970
+ return taskDefinitionsItem.tags.map(function (tagsItem) {
971
+ return function () {
972
+ var tagsItemObject = {};
973
+
974
+ if (_typeof(tagsItem) === 'object' && 'id' in tagsItem) {
975
+ tagsItemObject.id = function () {
976
+ if (typeof tagsItem.id !== 'string') {
977
+ return String(tagsItem.id);
978
+ }
979
+
980
+ return tagsItem.id;
981
+ }();
982
+ } else {
983
+ tagsItemObject.id = "";
984
+ }
985
+
986
+ if (_typeof(tagsItem) === 'object' && 'name' in tagsItem) {
987
+ tagsItemObject.name = function () {
988
+ if (typeof tagsItem.name !== 'string') {
989
+ return String(tagsItem.name);
990
+ }
991
+
992
+ return tagsItem.name;
993
+ }();
994
+ } else {
995
+ tagsItemObject.name = "";
996
+ }
997
+
998
+ if (_typeof(tagsItem) === 'object' && 'color' in tagsItem) {
999
+ tagsItemObject.color = function () {
1000
+ if (typeof tagsItem.color !== 'string') {
1001
+ return String(tagsItem.color);
1002
+ }
1003
+
1004
+ return tagsItem.color;
1005
+ }();
1006
+ } else {
1007
+ tagsItemObject.color = "";
1008
+ }
1009
+
1010
+ if (_typeof(tagsItem) === 'object' && 'deleted' in tagsItem) {
1011
+ tagsItemObject.deleted = function () {
1012
+ if (typeof tagsItem.deleted !== 'boolean') {
1013
+ return Boolean(tagsItem.deleted);
1014
+ }
1015
+
1016
+ return tagsItem.deleted;
1017
+ }();
1018
+ } else {
1019
+ tagsItemObject.deleted = false;
1020
+ }
1021
+
1022
+ return tagsItemObject;
1023
+ }();
1024
+ });
1025
+ }();
1026
+ } else {
1027
+ taskDefinitionsItemObject.tags = [];
1028
+ }
1029
+
1030
+ return taskDefinitionsItemObject;
1031
+ }();
1032
+ });
1033
+ }();
1034
+ } else {
1035
+ shiftManagementObject.taskDefinitions = [];
1036
+ }
1037
+
515
1038
  return shiftManagementObject;
516
1039
  }();
517
1040
  }