@ricado/api-client 2.0.2 → 2.2.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 (155) 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/BinTipWeightController.js +4 -4
  5. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  6. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
  7. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  8. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  10. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  11. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  12. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  13. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  14. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  15. package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  16. package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -5
  17. package/lib/Controllers/Packhouse/Site/PackrunController.js +46 -4
  18. package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  19. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
  20. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  21. package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
  22. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  23. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
  24. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  25. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  26. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  27. package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
  28. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  29. package/lib/Controllers/Site/AlarmController.js +4 -4
  30. package/lib/Controllers/Site/AlarmGroupController.js +4 -4
  31. package/lib/Controllers/Site/DefinitionController.js +4 -4
  32. package/lib/Controllers/Site/PermanentObjectController.js +4 -4
  33. package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
  34. package/lib/Controllers/Site/PointController.js +4 -4
  35. package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
  36. package/lib/Errors/BadRequestError.js +1 -1
  37. package/lib/Errors/ForbiddenError.js +1 -1
  38. package/lib/Errors/NetworkError.js +1 -1
  39. package/lib/Errors/NotAllowedError.js +1 -1
  40. package/lib/Errors/NotFoundError.js +1 -1
  41. package/lib/Errors/ServerError.js +1 -1
  42. package/lib/Errors/UnauthorizedError.js +1 -1
  43. package/lib/Models/AccountPolicyModel.js +1 -1
  44. package/lib/Models/ApiAccountModel.js +1 -1
  45. package/lib/Models/CompanyModel.js +1 -1
  46. package/lib/Models/FirebaseTokenModel.js +1 -1
  47. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  48. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +14 -4
  49. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +14 -4
  50. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -5
  51. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +14 -4
  52. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +14 -4
  53. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +14 -4
  54. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +14 -4
  55. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -4
  56. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +14 -4
  57. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  58. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +14 -4
  59. package/lib/Models/Packhouse/Site/PackTypeModel.js +14 -4
  60. package/lib/Models/Packhouse/Site/PackingLineModel.js +538 -5
  61. package/lib/Models/Packhouse/Site/PackrunModel.js +80 -4
  62. package/lib/Models/Packhouse/Site/RejectBinModel.js +14 -4
  63. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +274 -8
  64. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +14 -4
  65. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +14 -4
  66. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +181 -5
  67. package/lib/Models/Packhouse/Site/ShiftModel.js +14 -4
  68. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  69. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  70. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  71. package/lib/Models/Packhouse/Site/VarietyModel.js +14 -4
  72. package/lib/Models/Packhouse/Site/index.js +15 -0
  73. package/lib/Models/RTUModel.js +1 -1
  74. package/lib/Models/RTUPluginModel.js +1 -1
  75. package/lib/Models/Site/AlarmGroupModel.js +14 -4
  76. package/lib/Models/Site/AlarmModel.js +14 -4
  77. package/lib/Models/Site/DefinitionModel.js +14 -4
  78. package/lib/Models/Site/PermanentObjectDataModel.js +14 -4
  79. package/lib/Models/Site/PermanentObjectModel.js +14 -4
  80. package/lib/Models/Site/PointModel.js +14 -4
  81. package/lib/Models/Site/TemporaryObjectModel.js +14 -4
  82. package/lib/Models/SiteModel.js +1 -1
  83. package/lib/Models/TokenModel.js +1 -1
  84. package/lib/Models/UserAccountActionTokenModel.js +1 -1
  85. package/lib/Models/UserAccountModel.js +1 -1
  86. package/lib/PackageVersion.js +1 -1
  87. package/lib/index.d.ts +4039 -1071
  88. package/package.json +1 -1
  89. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  90. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  91. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  92. package/src/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
  93. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  94. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  95. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  96. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  97. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  98. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  99. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  100. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  101. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  102. package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -5
  103. package/src/Controllers/Packhouse/Site/PackrunController.js +56 -4
  104. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  105. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
  106. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  107. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  108. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  109. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
  110. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  111. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  112. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  113. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  114. package/src/Controllers/Packhouse/Site/index.js +10 -0
  115. package/src/Controllers/Site/AlarmController.js +4 -4
  116. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  117. package/src/Controllers/Site/DefinitionController.js +4 -4
  118. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  119. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  120. package/src/Controllers/Site/PointController.js +4 -4
  121. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  122. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  123. package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
  124. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
  125. package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -4
  126. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
  127. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
  128. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
  129. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
  130. package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
  131. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
  132. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  133. package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
  134. package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
  135. package/src/Models/Packhouse/Site/PackingLineModel.js +718 -4
  136. package/src/Models/Packhouse/Site/PackrunModel.js +88 -3
  137. package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
  138. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +310 -7
  139. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
  140. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
  141. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +205 -4
  142. package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
  143. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  144. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  145. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  146. package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
  147. package/src/Models/Packhouse/Site/index.js +10 -0
  148. package/src/Models/Site/AlarmGroupModel.js +13 -3
  149. package/src/Models/Site/AlarmModel.js +13 -3
  150. package/src/Models/Site/DefinitionModel.js +13 -3
  151. package/src/Models/Site/PermanentObjectDataModel.js +13 -3
  152. package/src/Models/Site/PermanentObjectModel.js +13 -3
  153. package/src/Models/Site/PointModel.js +13 -3
  154. package/src/Models/Site/TemporaryObjectModel.js +13 -3
  155. package/src/PackageVersion.js +1 -1
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -47,8 +47,9 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * PackingLineModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Packing Line
50
51
  */
51
- function PackingLineModel() {
52
+ function PackingLineModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, PackingLineModel);
@@ -110,6 +111,14 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
110
111
  */
111
112
 
112
113
  _this.rejectBinScales = undefined;
114
+ /**
115
+ * An Optional Secondary Packing Line Reference
116
+ *
117
+ * @type {?Object}
118
+ * @public
119
+ */
120
+
121
+ _this.secondaryPackingLine = undefined;
113
122
  /**
114
123
  * The Automation Object for this Packing Line
115
124
  *
@@ -137,7 +146,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
137
146
  /**
138
147
  * The Optional Shift Management Object for this Packing Line
139
148
  *
140
- * @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}>}>}}
141
150
  * @public
142
151
  */
143
152
 
@@ -174,6 +183,14 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
174
183
  */
175
184
 
176
185
  _this.updateTimestamp = undefined;
186
+ /**
187
+ * The Site ID associated with this Packing Line
188
+ *
189
+ * @type {number}
190
+ * @public
191
+ */
192
+
193
+ _this.siteId = siteId;
177
194
  return _this;
178
195
  }
179
196
  /**
@@ -182,14 +199,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
182
199
  * @static
183
200
  * @public
184
201
  * @param {Object<string, any>|string} json A JSON Object or JSON String
202
+ * @param {number} siteId The Site ID associated with this Packing Line
185
203
  * @return {PackingLineModel}
186
204
  */
187
205
 
188
206
 
189
207
  _createClass(PackingLineModel, null, [{
190
208
  key: "fromJSON",
191
- value: function fromJSON(json) {
192
- var model = new PackingLineModel();
209
+ value: function fromJSON(json, siteId) {
210
+ var model = new PackingLineModel(siteId);
193
211
  /**
194
212
  * The JSON Object
195
213
  *
@@ -302,6 +320,20 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
302
320
  }();
303
321
  }
304
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
+
305
337
  if ('automation' in jsonObject) {
306
338
  model.automation = function () {
307
339
  if (jsonObject['automation'] === null) {
@@ -460,6 +492,30 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
460
492
  pointsObject.finishFocusMeetingRequest = 0;
461
493
  }
462
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
+
463
519
  if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'shiftSchedules' in jsonObject['shiftManagement'].points) {
464
520
  pointsObject.shiftSchedules = function () {
465
521
  if (typeof jsonObject['shiftManagement'].points.shiftSchedules !== 'number') {
@@ -472,6 +528,246 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
472
528
  pointsObject.shiftSchedules = 0;
473
529
  }
474
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
+
475
771
  return pointsObject;
476
772
  }();
477
773
  } else {
@@ -485,11 +781,152 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
485
781
  pointsDefaultValue.currentFocusMeetingId = 0;
486
782
  pointsDefaultValue.startFocusMeetingRequest = 0;
487
783
  pointsDefaultValue.finishFocusMeetingRequest = 0;
784
+ pointsDefaultValue.currentShiftStatus = 0;
785
+ pointsDefaultValue.currentShiftModifyHourlyEntryRequest = 0;
488
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;
489
807
  return pointsDefaultValue;
490
808
  }();
491
809
  }
492
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
+
493
930
  if (_typeof(jsonObject['shiftManagement']) === 'object' && 'enabled' in jsonObject['shiftManagement']) {
494
931
  shiftManagementObject.enabled = function () {
495
932
  if (typeof jsonObject['shiftManagement'].enabled !== 'boolean') {
@@ -502,6 +939,102 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
502
939
  shiftManagementObject.enabled = false;
503
940
  }
504
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
+
505
1038
  return shiftManagementObject;
506
1039
  }();
507
1040
  }