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