@ricado/api-client 2.3.17 → 2.3.19
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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +198 -0
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +959 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/lib/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/lib/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/lib/Controllers/Packhouse/Site/index.js +6 -0
- package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +263 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +75 -5
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +1276 -5
- package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +627 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +966 -72
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +260 -8
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +660 -85
- package/lib/Models/Packhouse/Site/PackingLineModel.js +3860 -551
- package/lib/Models/Packhouse/Site/PackrunModel.js +26 -4
- package/lib/Models/Packhouse/Site/RejectBinModel.js +214 -4
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +576 -14
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +113 -9
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +98 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +50 -5
- package/lib/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +75 -5
- package/lib/Models/Packhouse/Site/index.js +6 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +6004 -2037
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +175 -0
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +1090 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/src/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/src/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/src/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/src/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/src/Controllers/Packhouse/Site/index.js +4 -0
- package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +252 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +97 -5
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +1682 -5
- package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +715 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1319 -109
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +339 -8
- package/src/Models/Packhouse/Site/MAFSizerModel.js +869 -92
- package/src/Models/Packhouse/Site/PackingLineModel.js +5086 -671
- package/src/Models/Packhouse/Site/PackrunModel.js +33 -4
- package/src/Models/Packhouse/Site/RejectBinModel.js +280 -4
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +775 -15
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +147 -10
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +120 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +65 -5
- package/src/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +97 -5
- package/src/Models/Packhouse/Site/index.js +4 -0
- package/src/PackageVersion.js +1 -1
|
@@ -80,65 +80,112 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
80
80
|
|
|
81
81
|
_this.name = "";
|
|
82
82
|
/**
|
|
83
|
-
* The
|
|
83
|
+
* The Packing Line ID that manages this Compac Sizer
|
|
84
84
|
*
|
|
85
|
-
* @type {
|
|
85
|
+
* @type {string}
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.
|
|
89
|
+
_this.packingLineId = "";
|
|
90
90
|
/**
|
|
91
|
-
* The
|
|
91
|
+
* The Sizer Type
|
|
92
92
|
*
|
|
93
|
-
* @type {
|
|
93
|
+
* @type {string}
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.
|
|
97
|
+
_this.sizerType = "";
|
|
98
98
|
/**
|
|
99
|
-
* The
|
|
99
|
+
* The Auto Create Batch Delay in Seconds for this Compac Sizer
|
|
100
100
|
*
|
|
101
|
-
* @type {
|
|
101
|
+
* @type {number}
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.
|
|
105
|
+
_this.autoCreateBatchDelay = 0;
|
|
106
106
|
/**
|
|
107
|
-
* The Sizer
|
|
107
|
+
* The Points used by this Compac Sizer
|
|
108
108
|
*
|
|
109
|
-
* @type {
|
|
109
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number}}
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.
|
|
113
|
+
_this.points = function () {
|
|
114
|
+
var pointsDefaultValue = {};
|
|
115
|
+
pointsDefaultValue.currentBatchId = 0;
|
|
116
|
+
pointsDefaultValue.currentBatchName = 0;
|
|
117
|
+
pointsDefaultValue.currentBatchGrowerCode = 0;
|
|
118
|
+
pointsDefaultValue.currentBatchVarietyId = 0;
|
|
119
|
+
pointsDefaultValue.currentBatchVarietyName = 0;
|
|
120
|
+
pointsDefaultValue.currentBatchComments = 0;
|
|
121
|
+
pointsDefaultValue.currentBatchStartTimestamp = 0;
|
|
122
|
+
pointsDefaultValue.currentBatchLayoutId = 0;
|
|
123
|
+
pointsDefaultValue.currentBatchLayoutName = 0;
|
|
124
|
+
pointsDefaultValue.currentBatchSizingProfileName = null;
|
|
125
|
+
pointsDefaultValue.currentBatchFruitSizeProfile = null;
|
|
126
|
+
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
127
|
+
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
128
|
+
pointsDefaultValue.machineCupFill = 0;
|
|
129
|
+
pointsDefaultValue.machineRecycledFruitPerMinute = 0;
|
|
130
|
+
pointsDefaultValue.machineTotalFruitPerMinute = 0;
|
|
131
|
+
pointsDefaultValue.machineDroppedFruitPerMinute = 0;
|
|
132
|
+
pointsDefaultValue.machinePackedFruitPerMinute = 0;
|
|
133
|
+
pointsDefaultValue.machineMissedFruitPerMinute = 0;
|
|
134
|
+
pointsDefaultValue.machineRejectFruitPerMinute = 0;
|
|
135
|
+
pointsDefaultValue.machineTraysPerHour = 0;
|
|
136
|
+
pointsDefaultValue.machineTraysPerHourTarget = null;
|
|
137
|
+
pointsDefaultValue.machineTonnesPerHour = 0;
|
|
138
|
+
pointsDefaultValue.machineRodsPerMinute = 0;
|
|
139
|
+
pointsDefaultValue.machineIncomingFruitPerMinuteBySize = null;
|
|
140
|
+
pointsDefaultValue.machineRecycleFruitPerMinuteBySize = null;
|
|
141
|
+
pointsDefaultValue.machineLanesFruitPerMinuteBySize = null;
|
|
142
|
+
pointsDefaultValue.machineLanesFruitPerMinuteByGrade = null;
|
|
143
|
+
pointsDefaultValue.createNewBatchRequest = 0;
|
|
144
|
+
pointsDefaultValue.createBatchOnPackrunChange = 0;
|
|
145
|
+
pointsDefaultValue.createBatchOnTimeBatchChange = 0;
|
|
146
|
+
pointsDefaultValue.restartServiceRequest = 0;
|
|
147
|
+
pointsDefaultValue.outletGroupSummaries = 0;
|
|
148
|
+
pointsDefaultValue.varieties = 0;
|
|
149
|
+
pointsDefaultValue.packTypeOutletUtilizationTargets = 0;
|
|
150
|
+
return pointsDefaultValue;
|
|
151
|
+
}();
|
|
114
152
|
/**
|
|
115
|
-
* The
|
|
153
|
+
* The Lanes defined for this Compac Sizer
|
|
116
154
|
*
|
|
117
|
-
* @type {number}
|
|
155
|
+
* @type {Array<{id: string, number: number, points: {cupFill: number}}>}
|
|
118
156
|
* @public
|
|
119
157
|
*/
|
|
120
158
|
|
|
121
|
-
|
|
159
|
+
|
|
160
|
+
_this.lanes = [];
|
|
122
161
|
/**
|
|
123
|
-
*
|
|
162
|
+
* An Optional Array of Frames defined for this Compac Sizer
|
|
124
163
|
*
|
|
125
|
-
* @type {
|
|
164
|
+
* @type {Array<{number: number, startLane: number, endLane: number, points: {machineRodsPerMinute: number}}>}
|
|
126
165
|
* @public
|
|
127
166
|
*/
|
|
128
167
|
|
|
129
|
-
_this.
|
|
168
|
+
_this.frames = [];
|
|
130
169
|
/**
|
|
131
|
-
* The
|
|
170
|
+
* The Outlets defined for this Compac Sizer
|
|
132
171
|
*
|
|
133
|
-
* @type {string}
|
|
172
|
+
* @type {Array<{id: string, number: number, type: string, points: {name: number, fruitPerMinute: number, productId: number, productName: number, utilization: number, status: number, pendingProductId: number, pendingProductName: number}}>}
|
|
134
173
|
* @public
|
|
135
174
|
*/
|
|
136
175
|
|
|
137
|
-
_this.
|
|
176
|
+
_this.outlets = [];
|
|
177
|
+
/**
|
|
178
|
+
* The Fruit Sizes defined and handled by this Compac Sizer
|
|
179
|
+
*
|
|
180
|
+
* @type {Array<{fruitSize: string, points: {incomingFruitPerMinute: number, recycledFruitPerMinute: number, allocatedFruitPerMinute: number}}>}
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
_this.fruitSizes = [];
|
|
138
185
|
/**
|
|
139
186
|
* The FreshPack Integration Configuration for this Compac Sizer
|
|
140
187
|
*
|
|
141
|
-
* @type {?Object}
|
|
188
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, bulkWeightClassTypes: string[]}}
|
|
142
189
|
* @public
|
|
143
190
|
*/
|
|
144
191
|
|
|
@@ -146,7 +193,7 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
146
193
|
/**
|
|
147
194
|
* An Array of Sources that deliver Fruit to this Compac Sizer
|
|
148
195
|
*
|
|
149
|
-
* @type {
|
|
196
|
+
* @type {Array<{type: string, riserId: string}|{type: string, sizerId: string, outletNumbers: number[]}>}
|
|
150
197
|
* @public
|
|
151
198
|
*/
|
|
152
199
|
|
|
@@ -240,6 +287,492 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
240
287
|
}();
|
|
241
288
|
}
|
|
242
289
|
|
|
290
|
+
if ('packingLineId' in jsonObject) {
|
|
291
|
+
model.packingLineId = function () {
|
|
292
|
+
if (typeof jsonObject['packingLineId'] !== 'string') {
|
|
293
|
+
return String(jsonObject['packingLineId']);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
return jsonObject['packingLineId'];
|
|
297
|
+
}();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if ('sizerType' in jsonObject) {
|
|
301
|
+
model.sizerType = function () {
|
|
302
|
+
if (typeof jsonObject['sizerType'] !== 'string') {
|
|
303
|
+
return String(jsonObject['sizerType']);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return jsonObject['sizerType'];
|
|
307
|
+
}();
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if ('autoCreateBatchDelay' in jsonObject) {
|
|
311
|
+
model.autoCreateBatchDelay = function () {
|
|
312
|
+
if (typeof jsonObject['autoCreateBatchDelay'] !== 'number') {
|
|
313
|
+
return Number.isInteger(Number(jsonObject['autoCreateBatchDelay'])) ? Number(jsonObject['autoCreateBatchDelay']) : Math.floor(Number(jsonObject['autoCreateBatchDelay']));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return Number.isInteger(jsonObject['autoCreateBatchDelay']) ? jsonObject['autoCreateBatchDelay'] : Math.floor(jsonObject['autoCreateBatchDelay']);
|
|
317
|
+
}();
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if ('points' in jsonObject) {
|
|
321
|
+
model.points = function () {
|
|
322
|
+
var pointsObject = {};
|
|
323
|
+
|
|
324
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchId' in jsonObject['points']) {
|
|
325
|
+
pointsObject.currentBatchId = function () {
|
|
326
|
+
if (typeof jsonObject['points'].currentBatchId !== 'number') {
|
|
327
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchId)) ? Number(jsonObject['points'].currentBatchId) : Math.floor(Number(jsonObject['points'].currentBatchId));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return Number.isInteger(jsonObject['points'].currentBatchId) ? jsonObject['points'].currentBatchId : Math.floor(jsonObject['points'].currentBatchId);
|
|
331
|
+
}();
|
|
332
|
+
} else {
|
|
333
|
+
pointsObject.currentBatchId = 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchName' in jsonObject['points']) {
|
|
337
|
+
pointsObject.currentBatchName = function () {
|
|
338
|
+
if (typeof jsonObject['points'].currentBatchName !== 'number') {
|
|
339
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchName)) ? Number(jsonObject['points'].currentBatchName) : Math.floor(Number(jsonObject['points'].currentBatchName));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
return Number.isInteger(jsonObject['points'].currentBatchName) ? jsonObject['points'].currentBatchName : Math.floor(jsonObject['points'].currentBatchName);
|
|
343
|
+
}();
|
|
344
|
+
} else {
|
|
345
|
+
pointsObject.currentBatchName = 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchGrowerCode' in jsonObject['points']) {
|
|
349
|
+
pointsObject.currentBatchGrowerCode = function () {
|
|
350
|
+
if (typeof jsonObject['points'].currentBatchGrowerCode !== 'number') {
|
|
351
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchGrowerCode)) ? Number(jsonObject['points'].currentBatchGrowerCode) : Math.floor(Number(jsonObject['points'].currentBatchGrowerCode));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return Number.isInteger(jsonObject['points'].currentBatchGrowerCode) ? jsonObject['points'].currentBatchGrowerCode : Math.floor(jsonObject['points'].currentBatchGrowerCode);
|
|
355
|
+
}();
|
|
356
|
+
} else {
|
|
357
|
+
pointsObject.currentBatchGrowerCode = 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchVarietyId' in jsonObject['points']) {
|
|
361
|
+
pointsObject.currentBatchVarietyId = function () {
|
|
362
|
+
if (typeof jsonObject['points'].currentBatchVarietyId !== 'number') {
|
|
363
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchVarietyId)) ? Number(jsonObject['points'].currentBatchVarietyId) : Math.floor(Number(jsonObject['points'].currentBatchVarietyId));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return Number.isInteger(jsonObject['points'].currentBatchVarietyId) ? jsonObject['points'].currentBatchVarietyId : Math.floor(jsonObject['points'].currentBatchVarietyId);
|
|
367
|
+
}();
|
|
368
|
+
} else {
|
|
369
|
+
pointsObject.currentBatchVarietyId = 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchVarietyName' in jsonObject['points']) {
|
|
373
|
+
pointsObject.currentBatchVarietyName = function () {
|
|
374
|
+
if (typeof jsonObject['points'].currentBatchVarietyName !== 'number') {
|
|
375
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchVarietyName)) ? Number(jsonObject['points'].currentBatchVarietyName) : Math.floor(Number(jsonObject['points'].currentBatchVarietyName));
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return Number.isInteger(jsonObject['points'].currentBatchVarietyName) ? jsonObject['points'].currentBatchVarietyName : Math.floor(jsonObject['points'].currentBatchVarietyName);
|
|
379
|
+
}();
|
|
380
|
+
} else {
|
|
381
|
+
pointsObject.currentBatchVarietyName = 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchComments' in jsonObject['points']) {
|
|
385
|
+
pointsObject.currentBatchComments = function () {
|
|
386
|
+
if (typeof jsonObject['points'].currentBatchComments !== 'number') {
|
|
387
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchComments)) ? Number(jsonObject['points'].currentBatchComments) : Math.floor(Number(jsonObject['points'].currentBatchComments));
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
return Number.isInteger(jsonObject['points'].currentBatchComments) ? jsonObject['points'].currentBatchComments : Math.floor(jsonObject['points'].currentBatchComments);
|
|
391
|
+
}();
|
|
392
|
+
} else {
|
|
393
|
+
pointsObject.currentBatchComments = 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchStartTimestamp' in jsonObject['points']) {
|
|
397
|
+
pointsObject.currentBatchStartTimestamp = function () {
|
|
398
|
+
if (typeof jsonObject['points'].currentBatchStartTimestamp !== 'number') {
|
|
399
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchStartTimestamp)) ? Number(jsonObject['points'].currentBatchStartTimestamp) : Math.floor(Number(jsonObject['points'].currentBatchStartTimestamp));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
return Number.isInteger(jsonObject['points'].currentBatchStartTimestamp) ? jsonObject['points'].currentBatchStartTimestamp : Math.floor(jsonObject['points'].currentBatchStartTimestamp);
|
|
403
|
+
}();
|
|
404
|
+
} else {
|
|
405
|
+
pointsObject.currentBatchStartTimestamp = 0;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchLayoutId' in jsonObject['points']) {
|
|
409
|
+
pointsObject.currentBatchLayoutId = function () {
|
|
410
|
+
if (typeof jsonObject['points'].currentBatchLayoutId !== 'number') {
|
|
411
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchLayoutId)) ? Number(jsonObject['points'].currentBatchLayoutId) : Math.floor(Number(jsonObject['points'].currentBatchLayoutId));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
return Number.isInteger(jsonObject['points'].currentBatchLayoutId) ? jsonObject['points'].currentBatchLayoutId : Math.floor(jsonObject['points'].currentBatchLayoutId);
|
|
415
|
+
}();
|
|
416
|
+
} else {
|
|
417
|
+
pointsObject.currentBatchLayoutId = 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchLayoutName' in jsonObject['points']) {
|
|
421
|
+
pointsObject.currentBatchLayoutName = function () {
|
|
422
|
+
if (typeof jsonObject['points'].currentBatchLayoutName !== 'number') {
|
|
423
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchLayoutName)) ? Number(jsonObject['points'].currentBatchLayoutName) : Math.floor(Number(jsonObject['points'].currentBatchLayoutName));
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
return Number.isInteger(jsonObject['points'].currentBatchLayoutName) ? jsonObject['points'].currentBatchLayoutName : Math.floor(jsonObject['points'].currentBatchLayoutName);
|
|
427
|
+
}();
|
|
428
|
+
} else {
|
|
429
|
+
pointsObject.currentBatchLayoutName = 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchSizingProfileName' in jsonObject['points']) {
|
|
433
|
+
pointsObject.currentBatchSizingProfileName = function () {
|
|
434
|
+
if (jsonObject['points'].currentBatchSizingProfileName === null) {
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if (typeof jsonObject['points'].currentBatchSizingProfileName !== 'number') {
|
|
439
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchSizingProfileName)) ? Number(jsonObject['points'].currentBatchSizingProfileName) : Math.floor(Number(jsonObject['points'].currentBatchSizingProfileName));
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
return Number.isInteger(jsonObject['points'].currentBatchSizingProfileName) ? jsonObject['points'].currentBatchSizingProfileName : Math.floor(jsonObject['points'].currentBatchSizingProfileName);
|
|
443
|
+
}();
|
|
444
|
+
} else {
|
|
445
|
+
pointsObject.currentBatchSizingProfileName = null;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchFruitSizeProfile' in jsonObject['points']) {
|
|
449
|
+
pointsObject.currentBatchFruitSizeProfile = function () {
|
|
450
|
+
if (jsonObject['points'].currentBatchFruitSizeProfile === null) {
|
|
451
|
+
return null;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if (typeof jsonObject['points'].currentBatchFruitSizeProfile !== 'number') {
|
|
455
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchFruitSizeProfile)) ? Number(jsonObject['points'].currentBatchFruitSizeProfile) : Math.floor(Number(jsonObject['points'].currentBatchFruitSizeProfile));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return Number.isInteger(jsonObject['points'].currentBatchFruitSizeProfile) ? jsonObject['points'].currentBatchFruitSizeProfile : Math.floor(jsonObject['points'].currentBatchFruitSizeProfile);
|
|
459
|
+
}();
|
|
460
|
+
} else {
|
|
461
|
+
pointsObject.currentBatchFruitSizeProfile = null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitWeight' in jsonObject['points']) {
|
|
465
|
+
pointsObject.machineAverageFruitWeight = function () {
|
|
466
|
+
if (typeof jsonObject['points'].machineAverageFruitWeight !== 'number') {
|
|
467
|
+
return Number.isInteger(Number(jsonObject['points'].machineAverageFruitWeight)) ? Number(jsonObject['points'].machineAverageFruitWeight) : Math.floor(Number(jsonObject['points'].machineAverageFruitWeight));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
return Number.isInteger(jsonObject['points'].machineAverageFruitWeight) ? jsonObject['points'].machineAverageFruitWeight : Math.floor(jsonObject['points'].machineAverageFruitWeight);
|
|
471
|
+
}();
|
|
472
|
+
} else {
|
|
473
|
+
pointsObject.machineAverageFruitWeight = 0;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitSize' in jsonObject['points']) {
|
|
477
|
+
pointsObject.machineAverageFruitSize = function () {
|
|
478
|
+
if (typeof jsonObject['points'].machineAverageFruitSize !== 'number') {
|
|
479
|
+
return Number.isInteger(Number(jsonObject['points'].machineAverageFruitSize)) ? Number(jsonObject['points'].machineAverageFruitSize) : Math.floor(Number(jsonObject['points'].machineAverageFruitSize));
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
return Number.isInteger(jsonObject['points'].machineAverageFruitSize) ? jsonObject['points'].machineAverageFruitSize : Math.floor(jsonObject['points'].machineAverageFruitSize);
|
|
483
|
+
}();
|
|
484
|
+
} else {
|
|
485
|
+
pointsObject.machineAverageFruitSize = 0;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineCupFill' in jsonObject['points']) {
|
|
489
|
+
pointsObject.machineCupFill = function () {
|
|
490
|
+
if (typeof jsonObject['points'].machineCupFill !== 'number') {
|
|
491
|
+
return Number.isInteger(Number(jsonObject['points'].machineCupFill)) ? Number(jsonObject['points'].machineCupFill) : Math.floor(Number(jsonObject['points'].machineCupFill));
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
return Number.isInteger(jsonObject['points'].machineCupFill) ? jsonObject['points'].machineCupFill : Math.floor(jsonObject['points'].machineCupFill);
|
|
495
|
+
}();
|
|
496
|
+
} else {
|
|
497
|
+
pointsObject.machineCupFill = 0;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRecycledFruitPerMinute' in jsonObject['points']) {
|
|
501
|
+
pointsObject.machineRecycledFruitPerMinute = function () {
|
|
502
|
+
if (typeof jsonObject['points'].machineRecycledFruitPerMinute !== 'number') {
|
|
503
|
+
return Number.isInteger(Number(jsonObject['points'].machineRecycledFruitPerMinute)) ? Number(jsonObject['points'].machineRecycledFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineRecycledFruitPerMinute));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
return Number.isInteger(jsonObject['points'].machineRecycledFruitPerMinute) ? jsonObject['points'].machineRecycledFruitPerMinute : Math.floor(jsonObject['points'].machineRecycledFruitPerMinute);
|
|
507
|
+
}();
|
|
508
|
+
} else {
|
|
509
|
+
pointsObject.machineRecycledFruitPerMinute = 0;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTotalFruitPerMinute' in jsonObject['points']) {
|
|
513
|
+
pointsObject.machineTotalFruitPerMinute = function () {
|
|
514
|
+
if (typeof jsonObject['points'].machineTotalFruitPerMinute !== 'number') {
|
|
515
|
+
return Number.isInteger(Number(jsonObject['points'].machineTotalFruitPerMinute)) ? Number(jsonObject['points'].machineTotalFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineTotalFruitPerMinute));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
return Number.isInteger(jsonObject['points'].machineTotalFruitPerMinute) ? jsonObject['points'].machineTotalFruitPerMinute : Math.floor(jsonObject['points'].machineTotalFruitPerMinute);
|
|
519
|
+
}();
|
|
520
|
+
} else {
|
|
521
|
+
pointsObject.machineTotalFruitPerMinute = 0;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineDroppedFruitPerMinute' in jsonObject['points']) {
|
|
525
|
+
pointsObject.machineDroppedFruitPerMinute = function () {
|
|
526
|
+
if (typeof jsonObject['points'].machineDroppedFruitPerMinute !== 'number') {
|
|
527
|
+
return Number.isInteger(Number(jsonObject['points'].machineDroppedFruitPerMinute)) ? Number(jsonObject['points'].machineDroppedFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineDroppedFruitPerMinute));
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
return Number.isInteger(jsonObject['points'].machineDroppedFruitPerMinute) ? jsonObject['points'].machineDroppedFruitPerMinute : Math.floor(jsonObject['points'].machineDroppedFruitPerMinute);
|
|
531
|
+
}();
|
|
532
|
+
} else {
|
|
533
|
+
pointsObject.machineDroppedFruitPerMinute = 0;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machinePackedFruitPerMinute' in jsonObject['points']) {
|
|
537
|
+
pointsObject.machinePackedFruitPerMinute = function () {
|
|
538
|
+
if (typeof jsonObject['points'].machinePackedFruitPerMinute !== 'number') {
|
|
539
|
+
return Number.isInteger(Number(jsonObject['points'].machinePackedFruitPerMinute)) ? Number(jsonObject['points'].machinePackedFruitPerMinute) : Math.floor(Number(jsonObject['points'].machinePackedFruitPerMinute));
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
return Number.isInteger(jsonObject['points'].machinePackedFruitPerMinute) ? jsonObject['points'].machinePackedFruitPerMinute : Math.floor(jsonObject['points'].machinePackedFruitPerMinute);
|
|
543
|
+
}();
|
|
544
|
+
} else {
|
|
545
|
+
pointsObject.machinePackedFruitPerMinute = 0;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineMissedFruitPerMinute' in jsonObject['points']) {
|
|
549
|
+
pointsObject.machineMissedFruitPerMinute = function () {
|
|
550
|
+
if (typeof jsonObject['points'].machineMissedFruitPerMinute !== 'number') {
|
|
551
|
+
return Number.isInteger(Number(jsonObject['points'].machineMissedFruitPerMinute)) ? Number(jsonObject['points'].machineMissedFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineMissedFruitPerMinute));
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
return Number.isInteger(jsonObject['points'].machineMissedFruitPerMinute) ? jsonObject['points'].machineMissedFruitPerMinute : Math.floor(jsonObject['points'].machineMissedFruitPerMinute);
|
|
555
|
+
}();
|
|
556
|
+
} else {
|
|
557
|
+
pointsObject.machineMissedFruitPerMinute = 0;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRejectFruitPerMinute' in jsonObject['points']) {
|
|
561
|
+
pointsObject.machineRejectFruitPerMinute = function () {
|
|
562
|
+
if (typeof jsonObject['points'].machineRejectFruitPerMinute !== 'number') {
|
|
563
|
+
return Number.isInteger(Number(jsonObject['points'].machineRejectFruitPerMinute)) ? Number(jsonObject['points'].machineRejectFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineRejectFruitPerMinute));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return Number.isInteger(jsonObject['points'].machineRejectFruitPerMinute) ? jsonObject['points'].machineRejectFruitPerMinute : Math.floor(jsonObject['points'].machineRejectFruitPerMinute);
|
|
567
|
+
}();
|
|
568
|
+
} else {
|
|
569
|
+
pointsObject.machineRejectFruitPerMinute = 0;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTraysPerHour' in jsonObject['points']) {
|
|
573
|
+
pointsObject.machineTraysPerHour = function () {
|
|
574
|
+
if (typeof jsonObject['points'].machineTraysPerHour !== 'number') {
|
|
575
|
+
return Number.isInteger(Number(jsonObject['points'].machineTraysPerHour)) ? Number(jsonObject['points'].machineTraysPerHour) : Math.floor(Number(jsonObject['points'].machineTraysPerHour));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
return Number.isInteger(jsonObject['points'].machineTraysPerHour) ? jsonObject['points'].machineTraysPerHour : Math.floor(jsonObject['points'].machineTraysPerHour);
|
|
579
|
+
}();
|
|
580
|
+
} else {
|
|
581
|
+
pointsObject.machineTraysPerHour = 0;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTraysPerHourTarget' in jsonObject['points']) {
|
|
585
|
+
pointsObject.machineTraysPerHourTarget = function () {
|
|
586
|
+
if (jsonObject['points'].machineTraysPerHourTarget === null) {
|
|
587
|
+
return null;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (typeof jsonObject['points'].machineTraysPerHourTarget !== 'number') {
|
|
591
|
+
return Number.isInteger(Number(jsonObject['points'].machineTraysPerHourTarget)) ? Number(jsonObject['points'].machineTraysPerHourTarget) : Math.floor(Number(jsonObject['points'].machineTraysPerHourTarget));
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
return Number.isInteger(jsonObject['points'].machineTraysPerHourTarget) ? jsonObject['points'].machineTraysPerHourTarget : Math.floor(jsonObject['points'].machineTraysPerHourTarget);
|
|
595
|
+
}();
|
|
596
|
+
} else {
|
|
597
|
+
pointsObject.machineTraysPerHourTarget = null;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTonnesPerHour' in jsonObject['points']) {
|
|
601
|
+
pointsObject.machineTonnesPerHour = function () {
|
|
602
|
+
if (typeof jsonObject['points'].machineTonnesPerHour !== 'number') {
|
|
603
|
+
return Number.isInteger(Number(jsonObject['points'].machineTonnesPerHour)) ? Number(jsonObject['points'].machineTonnesPerHour) : Math.floor(Number(jsonObject['points'].machineTonnesPerHour));
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
return Number.isInteger(jsonObject['points'].machineTonnesPerHour) ? jsonObject['points'].machineTonnesPerHour : Math.floor(jsonObject['points'].machineTonnesPerHour);
|
|
607
|
+
}();
|
|
608
|
+
} else {
|
|
609
|
+
pointsObject.machineTonnesPerHour = 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRodsPerMinute' in jsonObject['points']) {
|
|
613
|
+
pointsObject.machineRodsPerMinute = function () {
|
|
614
|
+
if (typeof jsonObject['points'].machineRodsPerMinute !== 'number') {
|
|
615
|
+
return Number.isInteger(Number(jsonObject['points'].machineRodsPerMinute)) ? Number(jsonObject['points'].machineRodsPerMinute) : Math.floor(Number(jsonObject['points'].machineRodsPerMinute));
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
return Number.isInteger(jsonObject['points'].machineRodsPerMinute) ? jsonObject['points'].machineRodsPerMinute : Math.floor(jsonObject['points'].machineRodsPerMinute);
|
|
619
|
+
}();
|
|
620
|
+
} else {
|
|
621
|
+
pointsObject.machineRodsPerMinute = 0;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineIncomingFruitPerMinuteBySize' in jsonObject['points']) {
|
|
625
|
+
pointsObject.machineIncomingFruitPerMinuteBySize = function () {
|
|
626
|
+
if (jsonObject['points'].machineIncomingFruitPerMinuteBySize === null) {
|
|
627
|
+
return null;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
if (typeof jsonObject['points'].machineIncomingFruitPerMinuteBySize !== 'number') {
|
|
631
|
+
return Number.isInteger(Number(jsonObject['points'].machineIncomingFruitPerMinuteBySize)) ? Number(jsonObject['points'].machineIncomingFruitPerMinuteBySize) : Math.floor(Number(jsonObject['points'].machineIncomingFruitPerMinuteBySize));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
return Number.isInteger(jsonObject['points'].machineIncomingFruitPerMinuteBySize) ? jsonObject['points'].machineIncomingFruitPerMinuteBySize : Math.floor(jsonObject['points'].machineIncomingFruitPerMinuteBySize);
|
|
635
|
+
}();
|
|
636
|
+
} else {
|
|
637
|
+
pointsObject.machineIncomingFruitPerMinuteBySize = null;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRecycleFruitPerMinuteBySize' in jsonObject['points']) {
|
|
641
|
+
pointsObject.machineRecycleFruitPerMinuteBySize = function () {
|
|
642
|
+
if (jsonObject['points'].machineRecycleFruitPerMinuteBySize === null) {
|
|
643
|
+
return null;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (typeof jsonObject['points'].machineRecycleFruitPerMinuteBySize !== 'number') {
|
|
647
|
+
return Number.isInteger(Number(jsonObject['points'].machineRecycleFruitPerMinuteBySize)) ? Number(jsonObject['points'].machineRecycleFruitPerMinuteBySize) : Math.floor(Number(jsonObject['points'].machineRecycleFruitPerMinuteBySize));
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
return Number.isInteger(jsonObject['points'].machineRecycleFruitPerMinuteBySize) ? jsonObject['points'].machineRecycleFruitPerMinuteBySize : Math.floor(jsonObject['points'].machineRecycleFruitPerMinuteBySize);
|
|
651
|
+
}();
|
|
652
|
+
} else {
|
|
653
|
+
pointsObject.machineRecycleFruitPerMinuteBySize = null;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineLanesFruitPerMinuteBySize' in jsonObject['points']) {
|
|
657
|
+
pointsObject.machineLanesFruitPerMinuteBySize = function () {
|
|
658
|
+
if (jsonObject['points'].machineLanesFruitPerMinuteBySize === null) {
|
|
659
|
+
return null;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
if (typeof jsonObject['points'].machineLanesFruitPerMinuteBySize !== 'number') {
|
|
663
|
+
return Number.isInteger(Number(jsonObject['points'].machineLanesFruitPerMinuteBySize)) ? Number(jsonObject['points'].machineLanesFruitPerMinuteBySize) : Math.floor(Number(jsonObject['points'].machineLanesFruitPerMinuteBySize));
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
return Number.isInteger(jsonObject['points'].machineLanesFruitPerMinuteBySize) ? jsonObject['points'].machineLanesFruitPerMinuteBySize : Math.floor(jsonObject['points'].machineLanesFruitPerMinuteBySize);
|
|
667
|
+
}();
|
|
668
|
+
} else {
|
|
669
|
+
pointsObject.machineLanesFruitPerMinuteBySize = null;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineLanesFruitPerMinuteByGrade' in jsonObject['points']) {
|
|
673
|
+
pointsObject.machineLanesFruitPerMinuteByGrade = function () {
|
|
674
|
+
if (jsonObject['points'].machineLanesFruitPerMinuteByGrade === null) {
|
|
675
|
+
return null;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (typeof jsonObject['points'].machineLanesFruitPerMinuteByGrade !== 'number') {
|
|
679
|
+
return Number.isInteger(Number(jsonObject['points'].machineLanesFruitPerMinuteByGrade)) ? Number(jsonObject['points'].machineLanesFruitPerMinuteByGrade) : Math.floor(Number(jsonObject['points'].machineLanesFruitPerMinuteByGrade));
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
return Number.isInteger(jsonObject['points'].machineLanesFruitPerMinuteByGrade) ? jsonObject['points'].machineLanesFruitPerMinuteByGrade : Math.floor(jsonObject['points'].machineLanesFruitPerMinuteByGrade);
|
|
683
|
+
}();
|
|
684
|
+
} else {
|
|
685
|
+
pointsObject.machineLanesFruitPerMinuteByGrade = null;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
if (_typeof(jsonObject['points']) === 'object' && 'createNewBatchRequest' in jsonObject['points']) {
|
|
689
|
+
pointsObject.createNewBatchRequest = function () {
|
|
690
|
+
if (typeof jsonObject['points'].createNewBatchRequest !== 'number') {
|
|
691
|
+
return Number.isInteger(Number(jsonObject['points'].createNewBatchRequest)) ? Number(jsonObject['points'].createNewBatchRequest) : Math.floor(Number(jsonObject['points'].createNewBatchRequest));
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
return Number.isInteger(jsonObject['points'].createNewBatchRequest) ? jsonObject['points'].createNewBatchRequest : Math.floor(jsonObject['points'].createNewBatchRequest);
|
|
695
|
+
}();
|
|
696
|
+
} else {
|
|
697
|
+
pointsObject.createNewBatchRequest = 0;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (_typeof(jsonObject['points']) === 'object' && 'createBatchOnPackrunChange' in jsonObject['points']) {
|
|
701
|
+
pointsObject.createBatchOnPackrunChange = function () {
|
|
702
|
+
if (typeof jsonObject['points'].createBatchOnPackrunChange !== 'number') {
|
|
703
|
+
return Number.isInteger(Number(jsonObject['points'].createBatchOnPackrunChange)) ? Number(jsonObject['points'].createBatchOnPackrunChange) : Math.floor(Number(jsonObject['points'].createBatchOnPackrunChange));
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
return Number.isInteger(jsonObject['points'].createBatchOnPackrunChange) ? jsonObject['points'].createBatchOnPackrunChange : Math.floor(jsonObject['points'].createBatchOnPackrunChange);
|
|
707
|
+
}();
|
|
708
|
+
} else {
|
|
709
|
+
pointsObject.createBatchOnPackrunChange = 0;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
if (_typeof(jsonObject['points']) === 'object' && 'createBatchOnTimeBatchChange' in jsonObject['points']) {
|
|
713
|
+
pointsObject.createBatchOnTimeBatchChange = function () {
|
|
714
|
+
if (typeof jsonObject['points'].createBatchOnTimeBatchChange !== 'number') {
|
|
715
|
+
return Number.isInteger(Number(jsonObject['points'].createBatchOnTimeBatchChange)) ? Number(jsonObject['points'].createBatchOnTimeBatchChange) : Math.floor(Number(jsonObject['points'].createBatchOnTimeBatchChange));
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
return Number.isInteger(jsonObject['points'].createBatchOnTimeBatchChange) ? jsonObject['points'].createBatchOnTimeBatchChange : Math.floor(jsonObject['points'].createBatchOnTimeBatchChange);
|
|
719
|
+
}();
|
|
720
|
+
} else {
|
|
721
|
+
pointsObject.createBatchOnTimeBatchChange = 0;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
if (_typeof(jsonObject['points']) === 'object' && 'restartServiceRequest' in jsonObject['points']) {
|
|
725
|
+
pointsObject.restartServiceRequest = function () {
|
|
726
|
+
if (typeof jsonObject['points'].restartServiceRequest !== 'number') {
|
|
727
|
+
return Number.isInteger(Number(jsonObject['points'].restartServiceRequest)) ? Number(jsonObject['points'].restartServiceRequest) : Math.floor(Number(jsonObject['points'].restartServiceRequest));
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
return Number.isInteger(jsonObject['points'].restartServiceRequest) ? jsonObject['points'].restartServiceRequest : Math.floor(jsonObject['points'].restartServiceRequest);
|
|
731
|
+
}();
|
|
732
|
+
} else {
|
|
733
|
+
pointsObject.restartServiceRequest = 0;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
if (_typeof(jsonObject['points']) === 'object' && 'outletGroupSummaries' in jsonObject['points']) {
|
|
737
|
+
pointsObject.outletGroupSummaries = function () {
|
|
738
|
+
if (typeof jsonObject['points'].outletGroupSummaries !== 'number') {
|
|
739
|
+
return Number.isInteger(Number(jsonObject['points'].outletGroupSummaries)) ? Number(jsonObject['points'].outletGroupSummaries) : Math.floor(Number(jsonObject['points'].outletGroupSummaries));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
return Number.isInteger(jsonObject['points'].outletGroupSummaries) ? jsonObject['points'].outletGroupSummaries : Math.floor(jsonObject['points'].outletGroupSummaries);
|
|
743
|
+
}();
|
|
744
|
+
} else {
|
|
745
|
+
pointsObject.outletGroupSummaries = 0;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
if (_typeof(jsonObject['points']) === 'object' && 'varieties' in jsonObject['points']) {
|
|
749
|
+
pointsObject.varieties = function () {
|
|
750
|
+
if (typeof jsonObject['points'].varieties !== 'number') {
|
|
751
|
+
return Number.isInteger(Number(jsonObject['points'].varieties)) ? Number(jsonObject['points'].varieties) : Math.floor(Number(jsonObject['points'].varieties));
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
return Number.isInteger(jsonObject['points'].varieties) ? jsonObject['points'].varieties : Math.floor(jsonObject['points'].varieties);
|
|
755
|
+
}();
|
|
756
|
+
} else {
|
|
757
|
+
pointsObject.varieties = 0;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (_typeof(jsonObject['points']) === 'object' && 'packTypeOutletUtilizationTargets' in jsonObject['points']) {
|
|
761
|
+
pointsObject.packTypeOutletUtilizationTargets = function () {
|
|
762
|
+
if (typeof jsonObject['points'].packTypeOutletUtilizationTargets !== 'number') {
|
|
763
|
+
return Number.isInteger(Number(jsonObject['points'].packTypeOutletUtilizationTargets)) ? Number(jsonObject['points'].packTypeOutletUtilizationTargets) : Math.floor(Number(jsonObject['points'].packTypeOutletUtilizationTargets));
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
return Number.isInteger(jsonObject['points'].packTypeOutletUtilizationTargets) ? jsonObject['points'].packTypeOutletUtilizationTargets : Math.floor(jsonObject['points'].packTypeOutletUtilizationTargets);
|
|
767
|
+
}();
|
|
768
|
+
} else {
|
|
769
|
+
pointsObject.packTypeOutletUtilizationTargets = 0;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
return pointsObject;
|
|
773
|
+
}();
|
|
774
|
+
}
|
|
775
|
+
|
|
243
776
|
if ('lanes' in jsonObject) {
|
|
244
777
|
model.lanes = function () {
|
|
245
778
|
if (Array.isArray(jsonObject['lanes']) !== true) {
|
|
@@ -248,23 +781,139 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
248
781
|
|
|
249
782
|
return jsonObject['lanes'].map(function (lanesItem) {
|
|
250
783
|
return function () {
|
|
251
|
-
|
|
252
|
-
|
|
784
|
+
var lanesItemObject = {};
|
|
785
|
+
|
|
786
|
+
if (_typeof(lanesItem) === 'object' && 'id' in lanesItem) {
|
|
787
|
+
lanesItemObject.id = function () {
|
|
788
|
+
if (typeof lanesItem.id !== 'string') {
|
|
789
|
+
return String(lanesItem.id);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
return lanesItem.id;
|
|
793
|
+
}();
|
|
794
|
+
} else {
|
|
795
|
+
lanesItemObject.id = "";
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (_typeof(lanesItem) === 'object' && 'number' in lanesItem) {
|
|
799
|
+
lanesItemObject.number = function () {
|
|
800
|
+
if (typeof lanesItem.number !== 'number') {
|
|
801
|
+
return Number.isInteger(Number(lanesItem.number)) ? Number(lanesItem.number) : Math.floor(Number(lanesItem.number));
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
return Number.isInteger(lanesItem.number) ? lanesItem.number : Math.floor(lanesItem.number);
|
|
805
|
+
}();
|
|
806
|
+
} else {
|
|
807
|
+
lanesItemObject.number = 0;
|
|
253
808
|
}
|
|
254
809
|
|
|
255
|
-
|
|
810
|
+
if (_typeof(lanesItem) === 'object' && 'points' in lanesItem) {
|
|
811
|
+
lanesItemObject.points = function () {
|
|
812
|
+
var pointsObject = {};
|
|
813
|
+
|
|
814
|
+
if (_typeof(lanesItem.points) === 'object' && 'cupFill' in lanesItem.points) {
|
|
815
|
+
pointsObject.cupFill = function () {
|
|
816
|
+
if (typeof lanesItem.points.cupFill !== 'number') {
|
|
817
|
+
return Number.isInteger(Number(lanesItem.points.cupFill)) ? Number(lanesItem.points.cupFill) : Math.floor(Number(lanesItem.points.cupFill));
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
return Number.isInteger(lanesItem.points.cupFill) ? lanesItem.points.cupFill : Math.floor(lanesItem.points.cupFill);
|
|
821
|
+
}();
|
|
822
|
+
} else {
|
|
823
|
+
pointsObject.cupFill = 0;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
return pointsObject;
|
|
827
|
+
}();
|
|
828
|
+
} else {
|
|
829
|
+
lanesItemObject.points = function () {
|
|
830
|
+
var pointsDefaultValue = {};
|
|
831
|
+
pointsDefaultValue.cupFill = 0;
|
|
832
|
+
return pointsDefaultValue;
|
|
833
|
+
}();
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
return lanesItemObject;
|
|
256
837
|
}();
|
|
257
838
|
});
|
|
258
839
|
}();
|
|
259
840
|
}
|
|
260
841
|
|
|
261
|
-
if ('
|
|
262
|
-
model.
|
|
263
|
-
if (
|
|
264
|
-
return
|
|
842
|
+
if ('frames' in jsonObject) {
|
|
843
|
+
model.frames = function () {
|
|
844
|
+
if (Array.isArray(jsonObject['frames']) !== true) {
|
|
845
|
+
return [];
|
|
265
846
|
}
|
|
266
847
|
|
|
267
|
-
return jsonObject['
|
|
848
|
+
return jsonObject['frames'].map(function (framesItem) {
|
|
849
|
+
return function () {
|
|
850
|
+
var framesItemObject = {};
|
|
851
|
+
|
|
852
|
+
if (_typeof(framesItem) === 'object' && 'number' in framesItem) {
|
|
853
|
+
framesItemObject.number = function () {
|
|
854
|
+
if (typeof framesItem.number !== 'number') {
|
|
855
|
+
return Number.isInteger(Number(framesItem.number)) ? Number(framesItem.number) : Math.floor(Number(framesItem.number));
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
return Number.isInteger(framesItem.number) ? framesItem.number : Math.floor(framesItem.number);
|
|
859
|
+
}();
|
|
860
|
+
} else {
|
|
861
|
+
framesItemObject.number = 0;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (_typeof(framesItem) === 'object' && 'startLane' in framesItem) {
|
|
865
|
+
framesItemObject.startLane = function () {
|
|
866
|
+
if (typeof framesItem.startLane !== 'number') {
|
|
867
|
+
return Number.isInteger(Number(framesItem.startLane)) ? Number(framesItem.startLane) : Math.floor(Number(framesItem.startLane));
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return Number.isInteger(framesItem.startLane) ? framesItem.startLane : Math.floor(framesItem.startLane);
|
|
871
|
+
}();
|
|
872
|
+
} else {
|
|
873
|
+
framesItemObject.startLane = 0;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
if (_typeof(framesItem) === 'object' && 'endLane' in framesItem) {
|
|
877
|
+
framesItemObject.endLane = function () {
|
|
878
|
+
if (typeof framesItem.endLane !== 'number') {
|
|
879
|
+
return Number.isInteger(Number(framesItem.endLane)) ? Number(framesItem.endLane) : Math.floor(Number(framesItem.endLane));
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
return Number.isInteger(framesItem.endLane) ? framesItem.endLane : Math.floor(framesItem.endLane);
|
|
883
|
+
}();
|
|
884
|
+
} else {
|
|
885
|
+
framesItemObject.endLane = 0;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (_typeof(framesItem) === 'object' && 'points' in framesItem) {
|
|
889
|
+
framesItemObject.points = function () {
|
|
890
|
+
var pointsObject = {};
|
|
891
|
+
|
|
892
|
+
if (_typeof(framesItem.points) === 'object' && 'machineRodsPerMinute' in framesItem.points) {
|
|
893
|
+
pointsObject.machineRodsPerMinute = function () {
|
|
894
|
+
if (typeof framesItem.points.machineRodsPerMinute !== 'number') {
|
|
895
|
+
return Number.isInteger(Number(framesItem.points.machineRodsPerMinute)) ? Number(framesItem.points.machineRodsPerMinute) : Math.floor(Number(framesItem.points.machineRodsPerMinute));
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return Number.isInteger(framesItem.points.machineRodsPerMinute) ? framesItem.points.machineRodsPerMinute : Math.floor(framesItem.points.machineRodsPerMinute);
|
|
899
|
+
}();
|
|
900
|
+
} else {
|
|
901
|
+
pointsObject.machineRodsPerMinute = 0;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
return pointsObject;
|
|
905
|
+
}();
|
|
906
|
+
} else {
|
|
907
|
+
framesItemObject.points = function () {
|
|
908
|
+
var pointsDefaultValue = {};
|
|
909
|
+
pointsDefaultValue.machineRodsPerMinute = 0;
|
|
910
|
+
return pointsDefaultValue;
|
|
911
|
+
}();
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
return framesItemObject;
|
|
915
|
+
}();
|
|
916
|
+
});
|
|
268
917
|
}();
|
|
269
918
|
}
|
|
270
919
|
|
|
@@ -276,33 +925,164 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
276
925
|
|
|
277
926
|
return jsonObject['outlets'].map(function (outletsItem) {
|
|
278
927
|
return function () {
|
|
279
|
-
|
|
280
|
-
|
|
928
|
+
var outletsItemObject = {};
|
|
929
|
+
|
|
930
|
+
if (_typeof(outletsItem) === 'object' && 'id' in outletsItem) {
|
|
931
|
+
outletsItemObject.id = function () {
|
|
932
|
+
if (typeof outletsItem.id !== 'string') {
|
|
933
|
+
return String(outletsItem.id);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
return outletsItem.id;
|
|
937
|
+
}();
|
|
938
|
+
} else {
|
|
939
|
+
outletsItemObject.id = "";
|
|
281
940
|
}
|
|
282
941
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
942
|
+
if (_typeof(outletsItem) === 'object' && 'number' in outletsItem) {
|
|
943
|
+
outletsItemObject.number = function () {
|
|
944
|
+
if (typeof outletsItem.number !== 'number') {
|
|
945
|
+
return Number.isInteger(Number(outletsItem.number)) ? Number(outletsItem.number) : Math.floor(Number(outletsItem.number));
|
|
946
|
+
}
|
|
288
947
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
948
|
+
return Number.isInteger(outletsItem.number) ? outletsItem.number : Math.floor(outletsItem.number);
|
|
949
|
+
}();
|
|
950
|
+
} else {
|
|
951
|
+
outletsItemObject.number = 0;
|
|
952
|
+
}
|
|
294
953
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
954
|
+
if (_typeof(outletsItem) === 'object' && 'type' in outletsItem) {
|
|
955
|
+
outletsItemObject.type = function () {
|
|
956
|
+
if (typeof outletsItem.type !== 'string') {
|
|
957
|
+
return String(outletsItem.type);
|
|
958
|
+
}
|
|
298
959
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
960
|
+
return outletsItem.type;
|
|
961
|
+
}();
|
|
962
|
+
} else {
|
|
963
|
+
outletsItemObject.type = "";
|
|
964
|
+
}
|
|
304
965
|
|
|
305
|
-
|
|
966
|
+
if (_typeof(outletsItem) === 'object' && 'points' in outletsItem) {
|
|
967
|
+
outletsItemObject.points = function () {
|
|
968
|
+
var pointsObject = {};
|
|
969
|
+
|
|
970
|
+
if (_typeof(outletsItem.points) === 'object' && 'name' in outletsItem.points) {
|
|
971
|
+
pointsObject.name = function () {
|
|
972
|
+
if (typeof outletsItem.points.name !== 'number') {
|
|
973
|
+
return Number.isInteger(Number(outletsItem.points.name)) ? Number(outletsItem.points.name) : Math.floor(Number(outletsItem.points.name));
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
return Number.isInteger(outletsItem.points.name) ? outletsItem.points.name : Math.floor(outletsItem.points.name);
|
|
977
|
+
}();
|
|
978
|
+
} else {
|
|
979
|
+
pointsObject.name = 0;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
if (_typeof(outletsItem.points) === 'object' && 'fruitPerMinute' in outletsItem.points) {
|
|
983
|
+
pointsObject.fruitPerMinute = function () {
|
|
984
|
+
if (typeof outletsItem.points.fruitPerMinute !== 'number') {
|
|
985
|
+
return Number.isInteger(Number(outletsItem.points.fruitPerMinute)) ? Number(outletsItem.points.fruitPerMinute) : Math.floor(Number(outletsItem.points.fruitPerMinute));
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
return Number.isInteger(outletsItem.points.fruitPerMinute) ? outletsItem.points.fruitPerMinute : Math.floor(outletsItem.points.fruitPerMinute);
|
|
989
|
+
}();
|
|
990
|
+
} else {
|
|
991
|
+
pointsObject.fruitPerMinute = 0;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
if (_typeof(outletsItem.points) === 'object' && 'productId' in outletsItem.points) {
|
|
995
|
+
pointsObject.productId = function () {
|
|
996
|
+
if (typeof outletsItem.points.productId !== 'number') {
|
|
997
|
+
return Number.isInteger(Number(outletsItem.points.productId)) ? Number(outletsItem.points.productId) : Math.floor(Number(outletsItem.points.productId));
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
return Number.isInteger(outletsItem.points.productId) ? outletsItem.points.productId : Math.floor(outletsItem.points.productId);
|
|
1001
|
+
}();
|
|
1002
|
+
} else {
|
|
1003
|
+
pointsObject.productId = 0;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
if (_typeof(outletsItem.points) === 'object' && 'productName' in outletsItem.points) {
|
|
1007
|
+
pointsObject.productName = function () {
|
|
1008
|
+
if (typeof outletsItem.points.productName !== 'number') {
|
|
1009
|
+
return Number.isInteger(Number(outletsItem.points.productName)) ? Number(outletsItem.points.productName) : Math.floor(Number(outletsItem.points.productName));
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
return Number.isInteger(outletsItem.points.productName) ? outletsItem.points.productName : Math.floor(outletsItem.points.productName);
|
|
1013
|
+
}();
|
|
1014
|
+
} else {
|
|
1015
|
+
pointsObject.productName = 0;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
if (_typeof(outletsItem.points) === 'object' && 'utilization' in outletsItem.points) {
|
|
1019
|
+
pointsObject.utilization = function () {
|
|
1020
|
+
if (typeof outletsItem.points.utilization !== 'number') {
|
|
1021
|
+
return Number.isInteger(Number(outletsItem.points.utilization)) ? Number(outletsItem.points.utilization) : Math.floor(Number(outletsItem.points.utilization));
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
return Number.isInteger(outletsItem.points.utilization) ? outletsItem.points.utilization : Math.floor(outletsItem.points.utilization);
|
|
1025
|
+
}();
|
|
1026
|
+
} else {
|
|
1027
|
+
pointsObject.utilization = 0;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
if (_typeof(outletsItem.points) === 'object' && 'status' in outletsItem.points) {
|
|
1031
|
+
pointsObject.status = function () {
|
|
1032
|
+
if (typeof outletsItem.points.status !== 'number') {
|
|
1033
|
+
return Number.isInteger(Number(outletsItem.points.status)) ? Number(outletsItem.points.status) : Math.floor(Number(outletsItem.points.status));
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
return Number.isInteger(outletsItem.points.status) ? outletsItem.points.status : Math.floor(outletsItem.points.status);
|
|
1037
|
+
}();
|
|
1038
|
+
} else {
|
|
1039
|
+
pointsObject.status = 0;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
if (_typeof(outletsItem.points) === 'object' && 'pendingProductId' in outletsItem.points) {
|
|
1043
|
+
pointsObject.pendingProductId = function () {
|
|
1044
|
+
if (typeof outletsItem.points.pendingProductId !== 'number') {
|
|
1045
|
+
return Number.isInteger(Number(outletsItem.points.pendingProductId)) ? Number(outletsItem.points.pendingProductId) : Math.floor(Number(outletsItem.points.pendingProductId));
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
return Number.isInteger(outletsItem.points.pendingProductId) ? outletsItem.points.pendingProductId : Math.floor(outletsItem.points.pendingProductId);
|
|
1049
|
+
}();
|
|
1050
|
+
} else {
|
|
1051
|
+
pointsObject.pendingProductId = 0;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
if (_typeof(outletsItem.points) === 'object' && 'pendingProductName' in outletsItem.points) {
|
|
1055
|
+
pointsObject.pendingProductName = function () {
|
|
1056
|
+
if (typeof outletsItem.points.pendingProductName !== 'number') {
|
|
1057
|
+
return Number.isInteger(Number(outletsItem.points.pendingProductName)) ? Number(outletsItem.points.pendingProductName) : Math.floor(Number(outletsItem.points.pendingProductName));
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
return Number.isInteger(outletsItem.points.pendingProductName) ? outletsItem.points.pendingProductName : Math.floor(outletsItem.points.pendingProductName);
|
|
1061
|
+
}();
|
|
1062
|
+
} else {
|
|
1063
|
+
pointsObject.pendingProductName = 0;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
return pointsObject;
|
|
1067
|
+
}();
|
|
1068
|
+
} else {
|
|
1069
|
+
outletsItemObject.points = function () {
|
|
1070
|
+
var pointsDefaultValue = {};
|
|
1071
|
+
pointsDefaultValue.name = 0;
|
|
1072
|
+
pointsDefaultValue.fruitPerMinute = 0;
|
|
1073
|
+
pointsDefaultValue.productId = 0;
|
|
1074
|
+
pointsDefaultValue.productName = 0;
|
|
1075
|
+
pointsDefaultValue.utilization = 0;
|
|
1076
|
+
pointsDefaultValue.status = 0;
|
|
1077
|
+
pointsDefaultValue.pendingProductId = 0;
|
|
1078
|
+
pointsDefaultValue.pendingProductName = 0;
|
|
1079
|
+
return pointsDefaultValue;
|
|
1080
|
+
}();
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
return outletsItemObject;
|
|
1084
|
+
}();
|
|
1085
|
+
});
|
|
306
1086
|
}();
|
|
307
1087
|
}
|
|
308
1088
|
|
|
@@ -314,37 +1094,155 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
314
1094
|
|
|
315
1095
|
return jsonObject['fruitSizes'].map(function (fruitSizesItem) {
|
|
316
1096
|
return function () {
|
|
317
|
-
|
|
318
|
-
|
|
1097
|
+
var fruitSizesItemObject = {};
|
|
1098
|
+
|
|
1099
|
+
if (_typeof(fruitSizesItem) === 'object' && 'fruitSize' in fruitSizesItem) {
|
|
1100
|
+
fruitSizesItemObject.fruitSize = function () {
|
|
1101
|
+
if (typeof fruitSizesItem.fruitSize !== 'string') {
|
|
1102
|
+
return String(fruitSizesItem.fruitSize);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
return fruitSizesItem.fruitSize;
|
|
1106
|
+
}();
|
|
1107
|
+
} else {
|
|
1108
|
+
fruitSizesItemObject.fruitSize = "";
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
if (_typeof(fruitSizesItem) === 'object' && 'points' in fruitSizesItem) {
|
|
1112
|
+
fruitSizesItemObject.points = function () {
|
|
1113
|
+
var pointsObject = {};
|
|
1114
|
+
|
|
1115
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'incomingFruitPerMinute' in fruitSizesItem.points) {
|
|
1116
|
+
pointsObject.incomingFruitPerMinute = function () {
|
|
1117
|
+
if (typeof fruitSizesItem.points.incomingFruitPerMinute !== 'number') {
|
|
1118
|
+
return Number.isInteger(Number(fruitSizesItem.points.incomingFruitPerMinute)) ? Number(fruitSizesItem.points.incomingFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.incomingFruitPerMinute));
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
return Number.isInteger(fruitSizesItem.points.incomingFruitPerMinute) ? fruitSizesItem.points.incomingFruitPerMinute : Math.floor(fruitSizesItem.points.incomingFruitPerMinute);
|
|
1122
|
+
}();
|
|
1123
|
+
} else {
|
|
1124
|
+
pointsObject.incomingFruitPerMinute = 0;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'recycledFruitPerMinute' in fruitSizesItem.points) {
|
|
1128
|
+
pointsObject.recycledFruitPerMinute = function () {
|
|
1129
|
+
if (typeof fruitSizesItem.points.recycledFruitPerMinute !== 'number') {
|
|
1130
|
+
return Number.isInteger(Number(fruitSizesItem.points.recycledFruitPerMinute)) ? Number(fruitSizesItem.points.recycledFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.recycledFruitPerMinute));
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
return Number.isInteger(fruitSizesItem.points.recycledFruitPerMinute) ? fruitSizesItem.points.recycledFruitPerMinute : Math.floor(fruitSizesItem.points.recycledFruitPerMinute);
|
|
1134
|
+
}();
|
|
1135
|
+
} else {
|
|
1136
|
+
pointsObject.recycledFruitPerMinute = 0;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'allocatedFruitPerMinute' in fruitSizesItem.points) {
|
|
1140
|
+
pointsObject.allocatedFruitPerMinute = function () {
|
|
1141
|
+
if (typeof fruitSizesItem.points.allocatedFruitPerMinute !== 'number') {
|
|
1142
|
+
return Number.isInteger(Number(fruitSizesItem.points.allocatedFruitPerMinute)) ? Number(fruitSizesItem.points.allocatedFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.allocatedFruitPerMinute));
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
return Number.isInteger(fruitSizesItem.points.allocatedFruitPerMinute) ? fruitSizesItem.points.allocatedFruitPerMinute : Math.floor(fruitSizesItem.points.allocatedFruitPerMinute);
|
|
1146
|
+
}();
|
|
1147
|
+
} else {
|
|
1148
|
+
pointsObject.allocatedFruitPerMinute = 0;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
return pointsObject;
|
|
1152
|
+
}();
|
|
1153
|
+
} else {
|
|
1154
|
+
fruitSizesItemObject.points = function () {
|
|
1155
|
+
var pointsDefaultValue = {};
|
|
1156
|
+
pointsDefaultValue.incomingFruitPerMinute = 0;
|
|
1157
|
+
pointsDefaultValue.recycledFruitPerMinute = 0;
|
|
1158
|
+
pointsDefaultValue.allocatedFruitPerMinute = 0;
|
|
1159
|
+
return pointsDefaultValue;
|
|
1160
|
+
}();
|
|
319
1161
|
}
|
|
320
1162
|
|
|
321
|
-
return
|
|
1163
|
+
return fruitSizesItemObject;
|
|
322
1164
|
}();
|
|
323
1165
|
});
|
|
324
1166
|
}();
|
|
325
1167
|
}
|
|
326
1168
|
|
|
327
|
-
if ('packingLineId' in jsonObject) {
|
|
328
|
-
model.packingLineId = function () {
|
|
329
|
-
if (typeof jsonObject['packingLineId'] !== 'string') {
|
|
330
|
-
return String(jsonObject['packingLineId']);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return jsonObject['packingLineId'];
|
|
334
|
-
}();
|
|
335
|
-
}
|
|
336
|
-
|
|
337
1169
|
if ('freshPackIntegration' in jsonObject) {
|
|
338
1170
|
model.freshPackIntegration = function () {
|
|
339
1171
|
if (jsonObject['freshPackIntegration'] === null) {
|
|
340
1172
|
return null;
|
|
341
1173
|
}
|
|
342
1174
|
|
|
343
|
-
|
|
344
|
-
|
|
1175
|
+
var freshPackIntegrationObject = {};
|
|
1176
|
+
|
|
1177
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'points' in jsonObject['freshPackIntegration']) {
|
|
1178
|
+
freshPackIntegrationObject.points = function () {
|
|
1179
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) !== 'object') {
|
|
1180
|
+
return Object(jsonObject['freshPackIntegration'].points);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
return jsonObject['freshPackIntegration'].points;
|
|
1184
|
+
}();
|
|
1185
|
+
} else {
|
|
1186
|
+
freshPackIntegrationObject.points = {};
|
|
345
1187
|
}
|
|
346
1188
|
|
|
347
|
-
|
|
1189
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'enabled' in jsonObject['freshPackIntegration']) {
|
|
1190
|
+
freshPackIntegrationObject.enabled = function () {
|
|
1191
|
+
if (typeof jsonObject['freshPackIntegration'].enabled !== 'boolean') {
|
|
1192
|
+
return Boolean(jsonObject['freshPackIntegration'].enabled);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
return jsonObject['freshPackIntegration'].enabled;
|
|
1196
|
+
}();
|
|
1197
|
+
} else {
|
|
1198
|
+
freshPackIntegrationObject.enabled = false;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration']) {
|
|
1202
|
+
freshPackIntegrationObject.materialGroupId = function () {
|
|
1203
|
+
if (typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number') {
|
|
1204
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].materialGroupId) ? jsonObject['freshPackIntegration'].materialGroupId : Math.floor(jsonObject['freshPackIntegration'].materialGroupId);
|
|
1208
|
+
}();
|
|
1209
|
+
} else {
|
|
1210
|
+
freshPackIntegrationObject.materialGroupId = 0;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'binTypeId' in jsonObject['freshPackIntegration']) {
|
|
1214
|
+
freshPackIntegrationObject.binTypeId = function () {
|
|
1215
|
+
if (typeof jsonObject['freshPackIntegration'].binTypeId !== 'number') {
|
|
1216
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].binTypeId)) ? Number(jsonObject['freshPackIntegration'].binTypeId) : Math.floor(Number(jsonObject['freshPackIntegration'].binTypeId));
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].binTypeId) ? jsonObject['freshPackIntegration'].binTypeId : Math.floor(jsonObject['freshPackIntegration'].binTypeId);
|
|
1220
|
+
}();
|
|
1221
|
+
} else {
|
|
1222
|
+
freshPackIntegrationObject.binTypeId = 0;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'bulkWeightClassTypes' in jsonObject['freshPackIntegration']) {
|
|
1226
|
+
freshPackIntegrationObject.bulkWeightClassTypes = function () {
|
|
1227
|
+
if (Array.isArray(jsonObject['freshPackIntegration'].bulkWeightClassTypes) !== true) {
|
|
1228
|
+
return [];
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
return jsonObject['freshPackIntegration'].bulkWeightClassTypes.map(function (bulkWeightClassTypesItem) {
|
|
1232
|
+
return function () {
|
|
1233
|
+
if (typeof bulkWeightClassTypesItem !== 'string') {
|
|
1234
|
+
return String(bulkWeightClassTypesItem);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
return bulkWeightClassTypesItem;
|
|
1238
|
+
}();
|
|
1239
|
+
});
|
|
1240
|
+
}();
|
|
1241
|
+
} else {
|
|
1242
|
+
freshPackIntegrationObject.bulkWeightClassTypes = [];
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
return freshPackIntegrationObject;
|
|
348
1246
|
}();
|
|
349
1247
|
}
|
|
350
1248
|
|
|
@@ -356,10 +1254,6 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
356
1254
|
|
|
357
1255
|
return jsonObject['sources'].map(function (sourcesItem) {
|
|
358
1256
|
return function () {
|
|
359
|
-
if (_typeof(sourcesItem) !== 'object') {
|
|
360
|
-
return Object(sourcesItem);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
1257
|
return sourcesItem;
|
|
364
1258
|
}();
|
|
365
1259
|
});
|