@ricado/api-client 2.3.9 → 2.3.12

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 (39) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/MAFSizerBatchController.js +926 -0
  3. package/lib/Controllers/Packhouse/Site/MAFSizerController.js +217 -0
  4. package/lib/Controllers/Packhouse/Site/MAFSizerOutletArticleChangeController.js +879 -0
  5. package/lib/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +922 -0
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +54 -33
  7. package/lib/Controllers/Packhouse/Site/ShiftController.js +23 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +13 -7
  9. package/lib/Controllers/Packhouse/Site/ShiftSummaryReportController.js +908 -0
  10. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -0
  11. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  12. package/lib/Models/Packhouse/Site/MAFSizerBatchModel.js +555 -0
  13. package/lib/Models/Packhouse/Site/MAFSizerModel.js +445 -0
  14. package/lib/Models/Packhouse/Site/MAFSizerOutletArticleChangeModel.js +253 -0
  15. package/lib/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +473 -0
  16. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +75 -5
  17. package/lib/Models/Packhouse/Site/ShiftSummaryReportModel.js +427 -0
  18. package/lib/Models/Packhouse/Site/index.js +15 -0
  19. package/lib/PackageVersion.js +2 -2
  20. package/lib/index.d.ts +5434 -3242
  21. package/package.json +1 -1
  22. package/src/Controllers/Packhouse/Site/MAFSizerBatchController.js +1057 -0
  23. package/src/Controllers/Packhouse/Site/MAFSizerController.js +194 -0
  24. package/src/Controllers/Packhouse/Site/MAFSizerOutletArticleChangeController.js +1010 -0
  25. package/src/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +1053 -0
  26. package/src/Controllers/Packhouse/Site/PackrunController.js +59 -33
  27. package/src/Controllers/Packhouse/Site/ShiftController.js +22 -0
  28. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +13 -7
  29. package/src/Controllers/Packhouse/Site/ShiftSummaryReportController.js +1039 -0
  30. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -0
  31. package/src/Controllers/Packhouse/Site/index.js +10 -0
  32. package/src/Models/Packhouse/Site/MAFSizerBatchModel.js +598 -0
  33. package/src/Models/Packhouse/Site/MAFSizerModel.js +450 -0
  34. package/src/Models/Packhouse/Site/MAFSizerOutletArticleChangeModel.js +235 -0
  35. package/src/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +511 -0
  36. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +85 -5
  37. package/src/Models/Packhouse/Site/ShiftSummaryReportModel.js +451 -0
  38. package/src/Models/Packhouse/Site/index.js +10 -0
  39. package/src/PackageVersion.js +2 -2
@@ -0,0 +1,473 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
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
+
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
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ /**
35
+ * Model Class for a MAF Sizer Packrun Summary
36
+ *
37
+ * @class
38
+ * @hideconstructor
39
+ * @extends BaseModel
40
+ */
41
+ var MAFSizerPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(MAFSizerPackrunSummaryModel, _BaseModel);
43
+
44
+ var _super = _createSuper(MAFSizerPackrunSummaryModel);
45
+
46
+ /**
47
+ * MAFSizerPackrunSummaryModel Constructor
48
+ *
49
+ * @protected
50
+ * @param {number} siteId The Site ID associated with this MAF Sizer Packrun Summary
51
+ */
52
+ function MAFSizerPackrunSummaryModel(siteId) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, MAFSizerPackrunSummaryModel);
56
+
57
+ _this = _super.call(this);
58
+ /**
59
+ * The MAF Sizer Packrun Summary ID
60
+ *
61
+ * @type {string}
62
+ * @public
63
+ */
64
+
65
+ _this.id = "";
66
+ /**
67
+ * The MAF Sizer ID this Summary is associated with
68
+ *
69
+ * @type {string}
70
+ * @public
71
+ */
72
+
73
+ _this.mafSizerId = "";
74
+ /**
75
+ * The Packrun ID this Summary is associated with
76
+ *
77
+ * @type {string}
78
+ * @public
79
+ */
80
+
81
+ _this.packrunId = "";
82
+ /**
83
+ * When this Summary was Created
84
+ *
85
+ * @type {Date}
86
+ * @public
87
+ */
88
+
89
+ _this.createdTimestamp = new Date();
90
+ /**
91
+ * The Time Batch this Summary is associated with
92
+ *
93
+ * @type {?string}
94
+ * @public
95
+ */
96
+
97
+ _this.timeBatchId = null;
98
+ /**
99
+ * An Array of Packrun Summary Data Objects for each Class Type
100
+ *
101
+ * @type {Array<{classType: string, totals: Array<{fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>}
102
+ * @public
103
+ */
104
+
105
+ _this.classTypeSummaries = [];
106
+ /**
107
+ * An Array that contains the Articles initially Assigned to each Outlet
108
+ *
109
+ * @type {Array<{outletNumber: number, articleName: ?string}>}
110
+ * @public
111
+ */
112
+
113
+ _this.initialOutletArticles = [];
114
+ /**
115
+ * An Array that contains the Types initially configured for each Outlet
116
+ *
117
+ * @type {Array<{outletNumber: number, type: string, typeId: ?string}>}
118
+ * @public
119
+ */
120
+
121
+ _this.initialOutletTypes = [];
122
+ /**
123
+ * Whether the MAF Sizer Packrun Summary has been deleted
124
+ *
125
+ * @type {boolean}
126
+ * @public
127
+ */
128
+
129
+ _this.deleted = false;
130
+ /**
131
+ * When the MAF Sizer Packrun Summary was last updated
132
+ *
133
+ * @type {Date}
134
+ * @public
135
+ */
136
+
137
+ _this.updateTimestamp = new Date();
138
+ /**
139
+ * The Site ID associated with this MAF Sizer Packrun Summary
140
+ *
141
+ * @type {number}
142
+ * @public
143
+ */
144
+
145
+ _this.siteId = siteId;
146
+ return _this;
147
+ }
148
+ /**
149
+ * Create a new **MAFSizerPackrunSummaryModel** from a JSON Object or JSON String
150
+ *
151
+ * @static
152
+ * @public
153
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
154
+ * @param {number} siteId The Site ID associated with this MAF Sizer Packrun Summary
155
+ * @return {MAFSizerPackrunSummaryModel}
156
+ */
157
+
158
+
159
+ _createClass(MAFSizerPackrunSummaryModel, null, [{
160
+ key: "fromJSON",
161
+ value: function fromJSON(json, siteId) {
162
+ var model = new MAFSizerPackrunSummaryModel(siteId);
163
+ /**
164
+ * The JSON Object
165
+ *
166
+ * @type {Object<string, any>}
167
+ */
168
+
169
+ var jsonObject = {};
170
+
171
+ if (typeof json === 'string') {
172
+ jsonObject = JSON.parse(json);
173
+ } else if (_typeof(json) === 'object') {
174
+ jsonObject = json;
175
+ }
176
+
177
+ if ('id' in jsonObject) {
178
+ model.id = function () {
179
+ if (typeof jsonObject['id'] !== 'string') {
180
+ return String(jsonObject['id']);
181
+ }
182
+
183
+ return jsonObject['id'];
184
+ }();
185
+ }
186
+
187
+ if ('mafSizerId' in jsonObject) {
188
+ model.mafSizerId = function () {
189
+ if (typeof jsonObject['mafSizerId'] !== 'string') {
190
+ return String(jsonObject['mafSizerId']);
191
+ }
192
+
193
+ return jsonObject['mafSizerId'];
194
+ }();
195
+ }
196
+
197
+ if ('packrunId' in jsonObject) {
198
+ model.packrunId = function () {
199
+ if (typeof jsonObject['packrunId'] !== 'string') {
200
+ return String(jsonObject['packrunId']);
201
+ }
202
+
203
+ return jsonObject['packrunId'];
204
+ }();
205
+ }
206
+
207
+ if ('createdTimestamp' in jsonObject) {
208
+ model.createdTimestamp = function () {
209
+ if (typeof jsonObject['createdTimestamp'] !== 'string') {
210
+ return new Date(String(jsonObject['createdTimestamp']));
211
+ }
212
+
213
+ return new Date(jsonObject['createdTimestamp']);
214
+ }();
215
+ }
216
+
217
+ if ('timeBatchId' in jsonObject) {
218
+ model.timeBatchId = function () {
219
+ if (jsonObject['timeBatchId'] === null) {
220
+ return null;
221
+ }
222
+
223
+ if (typeof jsonObject['timeBatchId'] !== 'string') {
224
+ return String(jsonObject['timeBatchId']);
225
+ }
226
+
227
+ return jsonObject['timeBatchId'];
228
+ }();
229
+ }
230
+
231
+ if ('classTypeSummaries' in jsonObject) {
232
+ model.classTypeSummaries = function () {
233
+ if (Array.isArray(jsonObject['classTypeSummaries']) !== true) {
234
+ return [];
235
+ }
236
+
237
+ return jsonObject['classTypeSummaries'].map(function (classTypeSummariesItem) {
238
+ return function () {
239
+ var classTypeSummariesItemObject = {};
240
+
241
+ if (_typeof(classTypeSummariesItem) === 'object' && 'classType' in classTypeSummariesItem) {
242
+ classTypeSummariesItemObject.classType = function () {
243
+ if (typeof classTypeSummariesItem.classType !== 'string') {
244
+ return String(classTypeSummariesItem.classType);
245
+ }
246
+
247
+ return classTypeSummariesItem.classType;
248
+ }();
249
+ } else {
250
+ classTypeSummariesItemObject.classType = "";
251
+ }
252
+
253
+ if (_typeof(classTypeSummariesItem) === 'object' && 'totals' in classTypeSummariesItem) {
254
+ classTypeSummariesItemObject.totals = function () {
255
+ if (Array.isArray(classTypeSummariesItem.totals) !== true) {
256
+ return [];
257
+ }
258
+
259
+ return classTypeSummariesItem.totals.map(function (totalsItem) {
260
+ return function () {
261
+ var totalsItemObject = {};
262
+
263
+ if (_typeof(totalsItem) === 'object' && 'fruitSize' in totalsItem) {
264
+ totalsItemObject.fruitSize = function () {
265
+ if (typeof totalsItem.fruitSize !== 'string') {
266
+ return String(totalsItem.fruitSize);
267
+ }
268
+
269
+ return totalsItem.fruitSize;
270
+ }();
271
+ } else {
272
+ totalsItemObject.fruitSize = "";
273
+ }
274
+
275
+ if (_typeof(totalsItem) === 'object' && 'packType' in totalsItem) {
276
+ totalsItemObject.packType = function () {
277
+ if (totalsItem.packType === null) {
278
+ return null;
279
+ }
280
+
281
+ if (typeof totalsItem.packType !== 'string') {
282
+ return String(totalsItem.packType);
283
+ }
284
+
285
+ return totalsItem.packType;
286
+ }();
287
+ } else {
288
+ totalsItemObject.packType = null;
289
+ }
290
+
291
+ if (_typeof(totalsItem) === 'object' && 'weight' in totalsItem) {
292
+ totalsItemObject.weight = function () {
293
+ if (typeof totalsItem.weight !== 'number') {
294
+ return Number(totalsItem.weight);
295
+ }
296
+
297
+ return totalsItem.weight;
298
+ }();
299
+ } else {
300
+ totalsItemObject.weight = 0;
301
+ }
302
+
303
+ if (_typeof(totalsItem) === 'object' && 'fruitCount' in totalsItem) {
304
+ totalsItemObject.fruitCount = function () {
305
+ if (typeof totalsItem.fruitCount !== 'number') {
306
+ return Number.isInteger(Number(totalsItem.fruitCount)) ? Number(totalsItem.fruitCount) : Math.floor(Number(totalsItem.fruitCount));
307
+ }
308
+
309
+ return Number.isInteger(totalsItem.fruitCount) ? totalsItem.fruitCount : Math.floor(totalsItem.fruitCount);
310
+ }();
311
+ } else {
312
+ totalsItemObject.fruitCount = 0;
313
+ }
314
+
315
+ if (_typeof(totalsItem) === 'object' && 'packCount' in totalsItem) {
316
+ totalsItemObject.packCount = function () {
317
+ if (totalsItem.packCount === null) {
318
+ return null;
319
+ }
320
+
321
+ if (typeof totalsItem.packCount !== 'number') {
322
+ return Number(totalsItem.packCount);
323
+ }
324
+
325
+ return totalsItem.packCount;
326
+ }();
327
+ } else {
328
+ totalsItemObject.packCount = null;
329
+ }
330
+
331
+ return totalsItemObject;
332
+ }();
333
+ });
334
+ }();
335
+ } else {
336
+ classTypeSummariesItemObject.totals = [];
337
+ }
338
+
339
+ return classTypeSummariesItemObject;
340
+ }();
341
+ });
342
+ }();
343
+ }
344
+
345
+ if ('initialOutletArticles' in jsonObject) {
346
+ model.initialOutletArticles = function () {
347
+ if (Array.isArray(jsonObject['initialOutletArticles']) !== true) {
348
+ return [];
349
+ }
350
+
351
+ return jsonObject['initialOutletArticles'].map(function (initialOutletArticlesItem) {
352
+ return function () {
353
+ var initialOutletArticlesItemObject = {};
354
+
355
+ if (_typeof(initialOutletArticlesItem) === 'object' && 'outletNumber' in initialOutletArticlesItem) {
356
+ initialOutletArticlesItemObject.outletNumber = function () {
357
+ if (typeof initialOutletArticlesItem.outletNumber !== 'number') {
358
+ return Number.isInteger(Number(initialOutletArticlesItem.outletNumber)) ? Number(initialOutletArticlesItem.outletNumber) : Math.floor(Number(initialOutletArticlesItem.outletNumber));
359
+ }
360
+
361
+ return Number.isInteger(initialOutletArticlesItem.outletNumber) ? initialOutletArticlesItem.outletNumber : Math.floor(initialOutletArticlesItem.outletNumber);
362
+ }();
363
+ } else {
364
+ initialOutletArticlesItemObject.outletNumber = 0;
365
+ }
366
+
367
+ if (_typeof(initialOutletArticlesItem) === 'object' && 'articleName' in initialOutletArticlesItem) {
368
+ initialOutletArticlesItemObject.articleName = function () {
369
+ if (initialOutletArticlesItem.articleName === null) {
370
+ return null;
371
+ }
372
+
373
+ if (typeof initialOutletArticlesItem.articleName !== 'string') {
374
+ return String(initialOutletArticlesItem.articleName);
375
+ }
376
+
377
+ return initialOutletArticlesItem.articleName;
378
+ }();
379
+ } else {
380
+ initialOutletArticlesItemObject.articleName = null;
381
+ }
382
+
383
+ return initialOutletArticlesItemObject;
384
+ }();
385
+ });
386
+ }();
387
+ }
388
+
389
+ if ('initialOutletTypes' in jsonObject) {
390
+ model.initialOutletTypes = function () {
391
+ if (Array.isArray(jsonObject['initialOutletTypes']) !== true) {
392
+ return [];
393
+ }
394
+
395
+ return jsonObject['initialOutletTypes'].map(function (initialOutletTypesItem) {
396
+ return function () {
397
+ var initialOutletTypesItemObject = {};
398
+
399
+ if (_typeof(initialOutletTypesItem) === 'object' && 'outletNumber' in initialOutletTypesItem) {
400
+ initialOutletTypesItemObject.outletNumber = function () {
401
+ if (typeof initialOutletTypesItem.outletNumber !== 'number') {
402
+ return Number.isInteger(Number(initialOutletTypesItem.outletNumber)) ? Number(initialOutletTypesItem.outletNumber) : Math.floor(Number(initialOutletTypesItem.outletNumber));
403
+ }
404
+
405
+ return Number.isInteger(initialOutletTypesItem.outletNumber) ? initialOutletTypesItem.outletNumber : Math.floor(initialOutletTypesItem.outletNumber);
406
+ }();
407
+ } else {
408
+ initialOutletTypesItemObject.outletNumber = 0;
409
+ }
410
+
411
+ if (_typeof(initialOutletTypesItem) === 'object' && 'type' in initialOutletTypesItem) {
412
+ initialOutletTypesItemObject.type = function () {
413
+ if (typeof initialOutletTypesItem.type !== 'string') {
414
+ return String(initialOutletTypesItem.type);
415
+ }
416
+
417
+ return initialOutletTypesItem.type;
418
+ }();
419
+ } else {
420
+ initialOutletTypesItemObject.type = "";
421
+ }
422
+
423
+ if (_typeof(initialOutletTypesItem) === 'object' && 'typeId' in initialOutletTypesItem) {
424
+ initialOutletTypesItemObject.typeId = function () {
425
+ if (initialOutletTypesItem.typeId === null) {
426
+ return null;
427
+ }
428
+
429
+ if (typeof initialOutletTypesItem.typeId !== 'string') {
430
+ return String(initialOutletTypesItem.typeId);
431
+ }
432
+
433
+ return initialOutletTypesItem.typeId;
434
+ }();
435
+ } else {
436
+ initialOutletTypesItemObject.typeId = null;
437
+ }
438
+
439
+ return initialOutletTypesItemObject;
440
+ }();
441
+ });
442
+ }();
443
+ }
444
+
445
+ if ('deleted' in jsonObject) {
446
+ model.deleted = function () {
447
+ if (typeof jsonObject['deleted'] !== 'boolean') {
448
+ return Boolean(jsonObject['deleted']);
449
+ }
450
+
451
+ return jsonObject['deleted'];
452
+ }();
453
+ }
454
+
455
+ if ('updateTimestamp' in jsonObject) {
456
+ model.updateTimestamp = function () {
457
+ if (typeof jsonObject['updateTimestamp'] !== 'string') {
458
+ return new Date(String(jsonObject['updateTimestamp']));
459
+ }
460
+
461
+ return new Date(jsonObject['updateTimestamp']);
462
+ }();
463
+ }
464
+
465
+ return model;
466
+ }
467
+ }]);
468
+
469
+ return MAFSizerPackrunSummaryModel;
470
+ }(_BaseModel2.default);
471
+
472
+ var _default = MAFSizerPackrunSummaryModel;
473
+ exports.default = _default;
@@ -127,6 +127,22 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
127
127
  */
128
128
 
129
129
  _this.averageManningTarget = null;
130
+ /**
131
+ * The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
132
+ *
133
+ * @type {?number}
134
+ * @public
135
+ */
136
+
137
+ _this.averageClass1ManningTarget = null;
138
+ /**
139
+ * The Average Target Number of People that should be working in the Class 2 Area for this Hour
140
+ *
141
+ * @type {?number}
142
+ * @public
143
+ */
144
+
145
+ _this.averageClass2ManningTarget = null;
130
146
  /**
131
147
  * The Average Cost per Person working in all Areas for this Hour
132
148
  *
@@ -136,13 +152,21 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
136
152
 
137
153
  _this.averageCostPerManningUnit = null;
138
154
  /**
139
- * The Percentage of Total Tray Equivalents that are Layered for this Hour
155
+ * The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
140
156
  *
141
157
  * @type {?number}
142
158
  * @public
143
159
  */
144
160
 
145
161
  _this.layeredTrayPercentage = null;
162
+ /**
163
+ * The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
164
+ *
165
+ * @type {?number}
166
+ * @public
167
+ */
168
+
169
+ _this.layeredTrayPercentageTarget = null;
146
170
  /**
147
171
  * The Average Class 1 Percentage for this Hour
148
172
  *
@@ -170,7 +194,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
170
194
  /**
171
195
  * An Array of Custom Quality Data Items for this Hour
172
196
  *
173
- * @type {Array<{id: string, name: string, type: string, value: number, averageTarget: number}>}
197
+ * @type {Array<{id: string, name: string, type: string, value: number, averageTarget: ?number}>}
174
198
  * @public
175
199
  */
176
200
 
@@ -232,7 +256,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
232
256
 
233
257
  _this.class1TraysPerHourExcludingDowntimeTarget = 0;
234
258
  /**
235
- * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
259
+ * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %) for this Hour
236
260
  *
237
261
  * @type {?number}
238
262
  * @public
@@ -248,7 +272,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
248
272
 
249
273
  _this.averageCostPerTray = null;
250
274
  /**
251
- * The Average Cost per Tray Equivalent Target for this Hour
275
+ * The Average Cost per Tray Equivalent Target after Adjustment (Class 1 %, Soft-Sort %) for this Hour
252
276
  *
253
277
  * @type {?number}
254
278
  * @public
@@ -548,6 +572,34 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
548
572
  }();
549
573
  }
550
574
 
575
+ if ('averageClass1ManningTarget' in jsonObject) {
576
+ model.averageClass1ManningTarget = function () {
577
+ if (jsonObject['averageClass1ManningTarget'] === null) {
578
+ return null;
579
+ }
580
+
581
+ if (typeof jsonObject['averageClass1ManningTarget'] !== 'number') {
582
+ return Number.isInteger(Number(jsonObject['averageClass1ManningTarget'])) ? Number(jsonObject['averageClass1ManningTarget']) : Math.floor(Number(jsonObject['averageClass1ManningTarget']));
583
+ }
584
+
585
+ return Number.isInteger(jsonObject['averageClass1ManningTarget']) ? jsonObject['averageClass1ManningTarget'] : Math.floor(jsonObject['averageClass1ManningTarget']);
586
+ }();
587
+ }
588
+
589
+ if ('averageClass2ManningTarget' in jsonObject) {
590
+ model.averageClass2ManningTarget = function () {
591
+ if (jsonObject['averageClass2ManningTarget'] === null) {
592
+ return null;
593
+ }
594
+
595
+ if (typeof jsonObject['averageClass2ManningTarget'] !== 'number') {
596
+ return Number.isInteger(Number(jsonObject['averageClass2ManningTarget'])) ? Number(jsonObject['averageClass2ManningTarget']) : Math.floor(Number(jsonObject['averageClass2ManningTarget']));
597
+ }
598
+
599
+ return Number.isInteger(jsonObject['averageClass2ManningTarget']) ? jsonObject['averageClass2ManningTarget'] : Math.floor(jsonObject['averageClass2ManningTarget']);
600
+ }();
601
+ }
602
+
551
603
  if ('averageCostPerManningUnit' in jsonObject) {
552
604
  model.averageCostPerManningUnit = function () {
553
605
  if (jsonObject['averageCostPerManningUnit'] === null) {
@@ -576,6 +628,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
576
628
  }();
577
629
  }
578
630
 
631
+ if ('layeredTrayPercentageTarget' in jsonObject) {
632
+ model.layeredTrayPercentageTarget = function () {
633
+ if (jsonObject['layeredTrayPercentageTarget'] === null) {
634
+ return null;
635
+ }
636
+
637
+ if (typeof jsonObject['layeredTrayPercentageTarget'] !== 'number') {
638
+ return Number(jsonObject['layeredTrayPercentageTarget']);
639
+ }
640
+
641
+ return jsonObject['layeredTrayPercentageTarget'];
642
+ }();
643
+ }
644
+
579
645
  if ('averageClass1Percentage' in jsonObject) {
580
646
  model.averageClass1Percentage = function () {
581
647
  if (jsonObject['averageClass1Percentage'] === null) {
@@ -678,6 +744,10 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
678
744
 
679
745
  if (_typeof(customQualityDataItem) === 'object' && 'averageTarget' in customQualityDataItem) {
680
746
  customQualityDataItemObject.averageTarget = function () {
747
+ if (customQualityDataItem.averageTarget === null) {
748
+ return null;
749
+ }
750
+
681
751
  if (typeof customQualityDataItem.averageTarget !== 'number') {
682
752
  return Number(customQualityDataItem.averageTarget);
683
753
  }
@@ -685,7 +755,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
685
755
  return customQualityDataItem.averageTarget;
686
756
  }();
687
757
  } else {
688
- customQualityDataItemObject.averageTarget = 0;
758
+ customQualityDataItemObject.averageTarget = null;
689
759
  }
690
760
 
691
761
  return customQualityDataItemObject;