@ricado/api-client 2.3.17 → 2.3.18
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 +6132 -2165
- 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,85 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
80
80
|
|
|
81
81
|
_this.name = "";
|
|
82
82
|
/**
|
|
83
|
-
* The
|
|
83
|
+
* The Packing Line ID that manages this MAF 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 MAF 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 MAF Sizer
|
|
108
108
|
*
|
|
109
|
-
* @type {
|
|
109
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: 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.currentBatchGrowerName = 0;
|
|
119
|
+
pointsDefaultValue.currentBatchVarietyCode = 0;
|
|
120
|
+
pointsDefaultValue.currentBatchVarietyName = 0;
|
|
121
|
+
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
122
|
+
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
123
|
+
pointsDefaultValue.machineCupFill = 0;
|
|
124
|
+
pointsDefaultValue.machineRecycledFruitPerMinute = 0;
|
|
125
|
+
pointsDefaultValue.machineTotalFruitPerMinute = 0;
|
|
126
|
+
pointsDefaultValue.machineTraysPerHour = 0;
|
|
127
|
+
pointsDefaultValue.machineTonnesPerHour = 0;
|
|
128
|
+
pointsDefaultValue.machineRodsPerMinute = 0;
|
|
129
|
+
pointsDefaultValue.outletGroupSummaries = 0;
|
|
130
|
+
pointsDefaultValue.packTypeOutletUtilizationTargets = 0;
|
|
131
|
+
return pointsDefaultValue;
|
|
132
|
+
}();
|
|
114
133
|
/**
|
|
115
|
-
* The
|
|
134
|
+
* The Lanes defined for this MAF Sizer
|
|
116
135
|
*
|
|
117
|
-
* @type {number}
|
|
136
|
+
* @type {Array<{id: string, number: number, points: {cupFill: number}}>}
|
|
118
137
|
* @public
|
|
119
138
|
*/
|
|
120
139
|
|
|
121
|
-
|
|
140
|
+
|
|
141
|
+
_this.lanes = [];
|
|
122
142
|
/**
|
|
123
|
-
* The
|
|
143
|
+
* The Outlets defined for this MAF Sizer
|
|
124
144
|
*
|
|
125
|
-
* @type {
|
|
145
|
+
* @type {Array<{id: string, number: number, type: string, points: {name: number, fruitPerMinute: number, articleName: number, utilization: number}}>}
|
|
126
146
|
* @public
|
|
127
147
|
*/
|
|
128
148
|
|
|
129
|
-
_this.
|
|
149
|
+
_this.outlets = [];
|
|
130
150
|
/**
|
|
131
|
-
* The
|
|
151
|
+
* The Fruit Sizes defined and handled by this MAF Sizer
|
|
132
152
|
*
|
|
133
|
-
* @type {string}
|
|
153
|
+
* @type {Array<{fruitSize: string, points: {incomingFruitPerMinute: number, recycledFruitPerMinute: number, allocatedFruitPerMinute: number}}>}
|
|
134
154
|
* @public
|
|
135
155
|
*/
|
|
136
156
|
|
|
137
|
-
_this.
|
|
157
|
+
_this.fruitSizes = [];
|
|
138
158
|
/**
|
|
139
159
|
* The FreshPack Integration Configuration for this MAF Sizer
|
|
140
160
|
*
|
|
141
|
-
* @type {?Object}
|
|
161
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, bulkWeightClassTypes: string[]}}
|
|
142
162
|
* @public
|
|
143
163
|
*/
|
|
144
164
|
|
|
@@ -146,7 +166,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
146
166
|
/**
|
|
147
167
|
* The MAF Integration Configuration for this MAF Sizer
|
|
148
168
|
*
|
|
149
|
-
* @type {?
|
|
169
|
+
* @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
|
|
150
170
|
* @public
|
|
151
171
|
*/
|
|
152
172
|
|
|
@@ -154,7 +174,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
154
174
|
/**
|
|
155
175
|
* An Array of Sources that deliver Fruit to this MAF Sizer
|
|
156
176
|
*
|
|
157
|
-
* @type {
|
|
177
|
+
* @type {{type: string, riserId: string}|{type: string, sizerId: string, outletNumbers: number[]}[]}
|
|
158
178
|
* @public
|
|
159
179
|
*/
|
|
160
180
|
|
|
@@ -162,7 +182,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
162
182
|
/**
|
|
163
183
|
* An Array of Article to Class Type Maps for this MAF Sizer
|
|
164
184
|
*
|
|
165
|
-
* @type {
|
|
185
|
+
* @type {Array<{articleName: string, classType: string}>}
|
|
166
186
|
* @public
|
|
167
187
|
*/
|
|
168
188
|
|
|
@@ -256,6 +276,236 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
256
276
|
}();
|
|
257
277
|
}
|
|
258
278
|
|
|
279
|
+
if ('packingLineId' in jsonObject) {
|
|
280
|
+
model.packingLineId = function () {
|
|
281
|
+
if (typeof jsonObject['packingLineId'] !== 'string') {
|
|
282
|
+
return String(jsonObject['packingLineId']);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return jsonObject['packingLineId'];
|
|
286
|
+
}();
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if ('sizerType' in jsonObject) {
|
|
290
|
+
model.sizerType = function () {
|
|
291
|
+
if (typeof jsonObject['sizerType'] !== 'string') {
|
|
292
|
+
return String(jsonObject['sizerType']);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return jsonObject['sizerType'];
|
|
296
|
+
}();
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
if ('autoCreateBatchDelay' in jsonObject) {
|
|
300
|
+
model.autoCreateBatchDelay = function () {
|
|
301
|
+
if (typeof jsonObject['autoCreateBatchDelay'] !== 'number') {
|
|
302
|
+
return Number.isInteger(Number(jsonObject['autoCreateBatchDelay'])) ? Number(jsonObject['autoCreateBatchDelay']) : Math.floor(Number(jsonObject['autoCreateBatchDelay']));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return Number.isInteger(jsonObject['autoCreateBatchDelay']) ? jsonObject['autoCreateBatchDelay'] : Math.floor(jsonObject['autoCreateBatchDelay']);
|
|
306
|
+
}();
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if ('points' in jsonObject) {
|
|
310
|
+
model.points = function () {
|
|
311
|
+
var pointsObject = {};
|
|
312
|
+
|
|
313
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchId' in jsonObject['points']) {
|
|
314
|
+
pointsObject.currentBatchId = function () {
|
|
315
|
+
if (typeof jsonObject['points'].currentBatchId !== 'number') {
|
|
316
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchId)) ? Number(jsonObject['points'].currentBatchId) : Math.floor(Number(jsonObject['points'].currentBatchId));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return Number.isInteger(jsonObject['points'].currentBatchId) ? jsonObject['points'].currentBatchId : Math.floor(jsonObject['points'].currentBatchId);
|
|
320
|
+
}();
|
|
321
|
+
} else {
|
|
322
|
+
pointsObject.currentBatchId = 0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchName' in jsonObject['points']) {
|
|
326
|
+
pointsObject.currentBatchName = function () {
|
|
327
|
+
if (typeof jsonObject['points'].currentBatchName !== 'number') {
|
|
328
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchName)) ? Number(jsonObject['points'].currentBatchName) : Math.floor(Number(jsonObject['points'].currentBatchName));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return Number.isInteger(jsonObject['points'].currentBatchName) ? jsonObject['points'].currentBatchName : Math.floor(jsonObject['points'].currentBatchName);
|
|
332
|
+
}();
|
|
333
|
+
} else {
|
|
334
|
+
pointsObject.currentBatchName = 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchGrowerCode' in jsonObject['points']) {
|
|
338
|
+
pointsObject.currentBatchGrowerCode = function () {
|
|
339
|
+
if (typeof jsonObject['points'].currentBatchGrowerCode !== 'number') {
|
|
340
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchGrowerCode)) ? Number(jsonObject['points'].currentBatchGrowerCode) : Math.floor(Number(jsonObject['points'].currentBatchGrowerCode));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return Number.isInteger(jsonObject['points'].currentBatchGrowerCode) ? jsonObject['points'].currentBatchGrowerCode : Math.floor(jsonObject['points'].currentBatchGrowerCode);
|
|
344
|
+
}();
|
|
345
|
+
} else {
|
|
346
|
+
pointsObject.currentBatchGrowerCode = 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchGrowerName' in jsonObject['points']) {
|
|
350
|
+
pointsObject.currentBatchGrowerName = function () {
|
|
351
|
+
if (typeof jsonObject['points'].currentBatchGrowerName !== 'number') {
|
|
352
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchGrowerName)) ? Number(jsonObject['points'].currentBatchGrowerName) : Math.floor(Number(jsonObject['points'].currentBatchGrowerName));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
return Number.isInteger(jsonObject['points'].currentBatchGrowerName) ? jsonObject['points'].currentBatchGrowerName : Math.floor(jsonObject['points'].currentBatchGrowerName);
|
|
356
|
+
}();
|
|
357
|
+
} else {
|
|
358
|
+
pointsObject.currentBatchGrowerName = 0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchVarietyCode' in jsonObject['points']) {
|
|
362
|
+
pointsObject.currentBatchVarietyCode = function () {
|
|
363
|
+
if (typeof jsonObject['points'].currentBatchVarietyCode !== 'number') {
|
|
364
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchVarietyCode)) ? Number(jsonObject['points'].currentBatchVarietyCode) : Math.floor(Number(jsonObject['points'].currentBatchVarietyCode));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return Number.isInteger(jsonObject['points'].currentBatchVarietyCode) ? jsonObject['points'].currentBatchVarietyCode : Math.floor(jsonObject['points'].currentBatchVarietyCode);
|
|
368
|
+
}();
|
|
369
|
+
} else {
|
|
370
|
+
pointsObject.currentBatchVarietyCode = 0;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchVarietyName' in jsonObject['points']) {
|
|
374
|
+
pointsObject.currentBatchVarietyName = function () {
|
|
375
|
+
if (typeof jsonObject['points'].currentBatchVarietyName !== 'number') {
|
|
376
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchVarietyName)) ? Number(jsonObject['points'].currentBatchVarietyName) : Math.floor(Number(jsonObject['points'].currentBatchVarietyName));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return Number.isInteger(jsonObject['points'].currentBatchVarietyName) ? jsonObject['points'].currentBatchVarietyName : Math.floor(jsonObject['points'].currentBatchVarietyName);
|
|
380
|
+
}();
|
|
381
|
+
} else {
|
|
382
|
+
pointsObject.currentBatchVarietyName = 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitWeight' in jsonObject['points']) {
|
|
386
|
+
pointsObject.machineAverageFruitWeight = function () {
|
|
387
|
+
if (typeof jsonObject['points'].machineAverageFruitWeight !== 'number') {
|
|
388
|
+
return Number.isInteger(Number(jsonObject['points'].machineAverageFruitWeight)) ? Number(jsonObject['points'].machineAverageFruitWeight) : Math.floor(Number(jsonObject['points'].machineAverageFruitWeight));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return Number.isInteger(jsonObject['points'].machineAverageFruitWeight) ? jsonObject['points'].machineAverageFruitWeight : Math.floor(jsonObject['points'].machineAverageFruitWeight);
|
|
392
|
+
}();
|
|
393
|
+
} else {
|
|
394
|
+
pointsObject.machineAverageFruitWeight = 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitSize' in jsonObject['points']) {
|
|
398
|
+
pointsObject.machineAverageFruitSize = function () {
|
|
399
|
+
if (typeof jsonObject['points'].machineAverageFruitSize !== 'number') {
|
|
400
|
+
return Number.isInteger(Number(jsonObject['points'].machineAverageFruitSize)) ? Number(jsonObject['points'].machineAverageFruitSize) : Math.floor(Number(jsonObject['points'].machineAverageFruitSize));
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
return Number.isInteger(jsonObject['points'].machineAverageFruitSize) ? jsonObject['points'].machineAverageFruitSize : Math.floor(jsonObject['points'].machineAverageFruitSize);
|
|
404
|
+
}();
|
|
405
|
+
} else {
|
|
406
|
+
pointsObject.machineAverageFruitSize = 0;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineCupFill' in jsonObject['points']) {
|
|
410
|
+
pointsObject.machineCupFill = function () {
|
|
411
|
+
if (typeof jsonObject['points'].machineCupFill !== 'number') {
|
|
412
|
+
return Number.isInteger(Number(jsonObject['points'].machineCupFill)) ? Number(jsonObject['points'].machineCupFill) : Math.floor(Number(jsonObject['points'].machineCupFill));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return Number.isInteger(jsonObject['points'].machineCupFill) ? jsonObject['points'].machineCupFill : Math.floor(jsonObject['points'].machineCupFill);
|
|
416
|
+
}();
|
|
417
|
+
} else {
|
|
418
|
+
pointsObject.machineCupFill = 0;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRecycledFruitPerMinute' in jsonObject['points']) {
|
|
422
|
+
pointsObject.machineRecycledFruitPerMinute = function () {
|
|
423
|
+
if (typeof jsonObject['points'].machineRecycledFruitPerMinute !== 'number') {
|
|
424
|
+
return Number.isInteger(Number(jsonObject['points'].machineRecycledFruitPerMinute)) ? Number(jsonObject['points'].machineRecycledFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineRecycledFruitPerMinute));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return Number.isInteger(jsonObject['points'].machineRecycledFruitPerMinute) ? jsonObject['points'].machineRecycledFruitPerMinute : Math.floor(jsonObject['points'].machineRecycledFruitPerMinute);
|
|
428
|
+
}();
|
|
429
|
+
} else {
|
|
430
|
+
pointsObject.machineRecycledFruitPerMinute = 0;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTotalFruitPerMinute' in jsonObject['points']) {
|
|
434
|
+
pointsObject.machineTotalFruitPerMinute = function () {
|
|
435
|
+
if (typeof jsonObject['points'].machineTotalFruitPerMinute !== 'number') {
|
|
436
|
+
return Number.isInteger(Number(jsonObject['points'].machineTotalFruitPerMinute)) ? Number(jsonObject['points'].machineTotalFruitPerMinute) : Math.floor(Number(jsonObject['points'].machineTotalFruitPerMinute));
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
return Number.isInteger(jsonObject['points'].machineTotalFruitPerMinute) ? jsonObject['points'].machineTotalFruitPerMinute : Math.floor(jsonObject['points'].machineTotalFruitPerMinute);
|
|
440
|
+
}();
|
|
441
|
+
} else {
|
|
442
|
+
pointsObject.machineTotalFruitPerMinute = 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTraysPerHour' in jsonObject['points']) {
|
|
446
|
+
pointsObject.machineTraysPerHour = function () {
|
|
447
|
+
if (typeof jsonObject['points'].machineTraysPerHour !== 'number') {
|
|
448
|
+
return Number.isInteger(Number(jsonObject['points'].machineTraysPerHour)) ? Number(jsonObject['points'].machineTraysPerHour) : Math.floor(Number(jsonObject['points'].machineTraysPerHour));
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
return Number.isInteger(jsonObject['points'].machineTraysPerHour) ? jsonObject['points'].machineTraysPerHour : Math.floor(jsonObject['points'].machineTraysPerHour);
|
|
452
|
+
}();
|
|
453
|
+
} else {
|
|
454
|
+
pointsObject.machineTraysPerHour = 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineTonnesPerHour' in jsonObject['points']) {
|
|
458
|
+
pointsObject.machineTonnesPerHour = function () {
|
|
459
|
+
if (typeof jsonObject['points'].machineTonnesPerHour !== 'number') {
|
|
460
|
+
return Number.isInteger(Number(jsonObject['points'].machineTonnesPerHour)) ? Number(jsonObject['points'].machineTonnesPerHour) : Math.floor(Number(jsonObject['points'].machineTonnesPerHour));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
return Number.isInteger(jsonObject['points'].machineTonnesPerHour) ? jsonObject['points'].machineTonnesPerHour : Math.floor(jsonObject['points'].machineTonnesPerHour);
|
|
464
|
+
}();
|
|
465
|
+
} else {
|
|
466
|
+
pointsObject.machineTonnesPerHour = 0;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (_typeof(jsonObject['points']) === 'object' && 'machineRodsPerMinute' in jsonObject['points']) {
|
|
470
|
+
pointsObject.machineRodsPerMinute = function () {
|
|
471
|
+
if (typeof jsonObject['points'].machineRodsPerMinute !== 'number') {
|
|
472
|
+
return Number.isInteger(Number(jsonObject['points'].machineRodsPerMinute)) ? Number(jsonObject['points'].machineRodsPerMinute) : Math.floor(Number(jsonObject['points'].machineRodsPerMinute));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return Number.isInteger(jsonObject['points'].machineRodsPerMinute) ? jsonObject['points'].machineRodsPerMinute : Math.floor(jsonObject['points'].machineRodsPerMinute);
|
|
476
|
+
}();
|
|
477
|
+
} else {
|
|
478
|
+
pointsObject.machineRodsPerMinute = 0;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (_typeof(jsonObject['points']) === 'object' && 'outletGroupSummaries' in jsonObject['points']) {
|
|
482
|
+
pointsObject.outletGroupSummaries = function () {
|
|
483
|
+
if (typeof jsonObject['points'].outletGroupSummaries !== 'number') {
|
|
484
|
+
return Number.isInteger(Number(jsonObject['points'].outletGroupSummaries)) ? Number(jsonObject['points'].outletGroupSummaries) : Math.floor(Number(jsonObject['points'].outletGroupSummaries));
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
return Number.isInteger(jsonObject['points'].outletGroupSummaries) ? jsonObject['points'].outletGroupSummaries : Math.floor(jsonObject['points'].outletGroupSummaries);
|
|
488
|
+
}();
|
|
489
|
+
} else {
|
|
490
|
+
pointsObject.outletGroupSummaries = 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
if (_typeof(jsonObject['points']) === 'object' && 'packTypeOutletUtilizationTargets' in jsonObject['points']) {
|
|
494
|
+
pointsObject.packTypeOutletUtilizationTargets = function () {
|
|
495
|
+
if (typeof jsonObject['points'].packTypeOutletUtilizationTargets !== 'number') {
|
|
496
|
+
return Number.isInteger(Number(jsonObject['points'].packTypeOutletUtilizationTargets)) ? Number(jsonObject['points'].packTypeOutletUtilizationTargets) : Math.floor(Number(jsonObject['points'].packTypeOutletUtilizationTargets));
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
return Number.isInteger(jsonObject['points'].packTypeOutletUtilizationTargets) ? jsonObject['points'].packTypeOutletUtilizationTargets : Math.floor(jsonObject['points'].packTypeOutletUtilizationTargets);
|
|
500
|
+
}();
|
|
501
|
+
} else {
|
|
502
|
+
pointsObject.packTypeOutletUtilizationTargets = 0;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
return pointsObject;
|
|
506
|
+
}();
|
|
507
|
+
}
|
|
508
|
+
|
|
259
509
|
if ('lanes' in jsonObject) {
|
|
260
510
|
model.lanes = function () {
|
|
261
511
|
if (Array.isArray(jsonObject['lanes']) !== true) {
|
|
@@ -264,23 +514,61 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
264
514
|
|
|
265
515
|
return jsonObject['lanes'].map(function (lanesItem) {
|
|
266
516
|
return function () {
|
|
267
|
-
|
|
268
|
-
|
|
517
|
+
var lanesItemObject = {};
|
|
518
|
+
|
|
519
|
+
if (_typeof(lanesItem) === 'object' && 'id' in lanesItem) {
|
|
520
|
+
lanesItemObject.id = function () {
|
|
521
|
+
if (typeof lanesItem.id !== 'string') {
|
|
522
|
+
return String(lanesItem.id);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
return lanesItem.id;
|
|
526
|
+
}();
|
|
527
|
+
} else {
|
|
528
|
+
lanesItemObject.id = "";
|
|
269
529
|
}
|
|
270
530
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
531
|
+
if (_typeof(lanesItem) === 'object' && 'number' in lanesItem) {
|
|
532
|
+
lanesItemObject.number = function () {
|
|
533
|
+
if (typeof lanesItem.number !== 'number') {
|
|
534
|
+
return Number.isInteger(Number(lanesItem.number)) ? Number(lanesItem.number) : Math.floor(Number(lanesItem.number));
|
|
535
|
+
}
|
|
276
536
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
537
|
+
return Number.isInteger(lanesItem.number) ? lanesItem.number : Math.floor(lanesItem.number);
|
|
538
|
+
}();
|
|
539
|
+
} else {
|
|
540
|
+
lanesItemObject.number = 0;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (_typeof(lanesItem) === 'object' && 'points' in lanesItem) {
|
|
544
|
+
lanesItemObject.points = function () {
|
|
545
|
+
var pointsObject = {};
|
|
546
|
+
|
|
547
|
+
if (_typeof(lanesItem.points) === 'object' && 'cupFill' in lanesItem.points) {
|
|
548
|
+
pointsObject.cupFill = function () {
|
|
549
|
+
if (typeof lanesItem.points.cupFill !== 'number') {
|
|
550
|
+
return Number.isInteger(Number(lanesItem.points.cupFill)) ? Number(lanesItem.points.cupFill) : Math.floor(Number(lanesItem.points.cupFill));
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
return Number.isInteger(lanesItem.points.cupFill) ? lanesItem.points.cupFill : Math.floor(lanesItem.points.cupFill);
|
|
554
|
+
}();
|
|
555
|
+
} else {
|
|
556
|
+
pointsObject.cupFill = 0;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
return pointsObject;
|
|
560
|
+
}();
|
|
561
|
+
} else {
|
|
562
|
+
lanesItemObject.points = function () {
|
|
563
|
+
var pointsDefaultValue = {};
|
|
564
|
+
pointsDefaultValue.cupFill = 0;
|
|
565
|
+
return pointsDefaultValue;
|
|
566
|
+
}();
|
|
567
|
+
}
|
|
282
568
|
|
|
283
|
-
|
|
569
|
+
return lanesItemObject;
|
|
570
|
+
}();
|
|
571
|
+
});
|
|
284
572
|
}();
|
|
285
573
|
}
|
|
286
574
|
|
|
@@ -292,33 +580,112 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
292
580
|
|
|
293
581
|
return jsonObject['outlets'].map(function (outletsItem) {
|
|
294
582
|
return function () {
|
|
295
|
-
|
|
296
|
-
|
|
583
|
+
var outletsItemObject = {};
|
|
584
|
+
|
|
585
|
+
if (_typeof(outletsItem) === 'object' && 'id' in outletsItem) {
|
|
586
|
+
outletsItemObject.id = function () {
|
|
587
|
+
if (typeof outletsItem.id !== 'string') {
|
|
588
|
+
return String(outletsItem.id);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
return outletsItem.id;
|
|
592
|
+
}();
|
|
593
|
+
} else {
|
|
594
|
+
outletsItemObject.id = "";
|
|
297
595
|
}
|
|
298
596
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
597
|
+
if (_typeof(outletsItem) === 'object' && 'number' in outletsItem) {
|
|
598
|
+
outletsItemObject.number = function () {
|
|
599
|
+
if (typeof outletsItem.number !== 'number') {
|
|
600
|
+
return Number.isInteger(Number(outletsItem.number)) ? Number(outletsItem.number) : Math.floor(Number(outletsItem.number));
|
|
601
|
+
}
|
|
304
602
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
603
|
+
return Number.isInteger(outletsItem.number) ? outletsItem.number : Math.floor(outletsItem.number);
|
|
604
|
+
}();
|
|
605
|
+
} else {
|
|
606
|
+
outletsItemObject.number = 0;
|
|
607
|
+
}
|
|
310
608
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
609
|
+
if (_typeof(outletsItem) === 'object' && 'type' in outletsItem) {
|
|
610
|
+
outletsItemObject.type = function () {
|
|
611
|
+
if (typeof outletsItem.type !== 'string') {
|
|
612
|
+
return String(outletsItem.type);
|
|
613
|
+
}
|
|
314
614
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
615
|
+
return outletsItem.type;
|
|
616
|
+
}();
|
|
617
|
+
} else {
|
|
618
|
+
outletsItemObject.type = "";
|
|
619
|
+
}
|
|
320
620
|
|
|
321
|
-
|
|
621
|
+
if (_typeof(outletsItem) === 'object' && 'points' in outletsItem) {
|
|
622
|
+
outletsItemObject.points = function () {
|
|
623
|
+
var pointsObject = {};
|
|
624
|
+
|
|
625
|
+
if (_typeof(outletsItem.points) === 'object' && 'name' in outletsItem.points) {
|
|
626
|
+
pointsObject.name = function () {
|
|
627
|
+
if (typeof outletsItem.points.name !== 'number') {
|
|
628
|
+
return Number.isInteger(Number(outletsItem.points.name)) ? Number(outletsItem.points.name) : Math.floor(Number(outletsItem.points.name));
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
return Number.isInteger(outletsItem.points.name) ? outletsItem.points.name : Math.floor(outletsItem.points.name);
|
|
632
|
+
}();
|
|
633
|
+
} else {
|
|
634
|
+
pointsObject.name = 0;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
if (_typeof(outletsItem.points) === 'object' && 'fruitPerMinute' in outletsItem.points) {
|
|
638
|
+
pointsObject.fruitPerMinute = function () {
|
|
639
|
+
if (typeof outletsItem.points.fruitPerMinute !== 'number') {
|
|
640
|
+
return Number.isInteger(Number(outletsItem.points.fruitPerMinute)) ? Number(outletsItem.points.fruitPerMinute) : Math.floor(Number(outletsItem.points.fruitPerMinute));
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
return Number.isInteger(outletsItem.points.fruitPerMinute) ? outletsItem.points.fruitPerMinute : Math.floor(outletsItem.points.fruitPerMinute);
|
|
644
|
+
}();
|
|
645
|
+
} else {
|
|
646
|
+
pointsObject.fruitPerMinute = 0;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
if (_typeof(outletsItem.points) === 'object' && 'articleName' in outletsItem.points) {
|
|
650
|
+
pointsObject.articleName = function () {
|
|
651
|
+
if (typeof outletsItem.points.articleName !== 'number') {
|
|
652
|
+
return Number.isInteger(Number(outletsItem.points.articleName)) ? Number(outletsItem.points.articleName) : Math.floor(Number(outletsItem.points.articleName));
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
return Number.isInteger(outletsItem.points.articleName) ? outletsItem.points.articleName : Math.floor(outletsItem.points.articleName);
|
|
656
|
+
}();
|
|
657
|
+
} else {
|
|
658
|
+
pointsObject.articleName = 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (_typeof(outletsItem.points) === 'object' && 'utilization' in outletsItem.points) {
|
|
662
|
+
pointsObject.utilization = function () {
|
|
663
|
+
if (typeof outletsItem.points.utilization !== 'number') {
|
|
664
|
+
return Number.isInteger(Number(outletsItem.points.utilization)) ? Number(outletsItem.points.utilization) : Math.floor(Number(outletsItem.points.utilization));
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
return Number.isInteger(outletsItem.points.utilization) ? outletsItem.points.utilization : Math.floor(outletsItem.points.utilization);
|
|
668
|
+
}();
|
|
669
|
+
} else {
|
|
670
|
+
pointsObject.utilization = 0;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
return pointsObject;
|
|
674
|
+
}();
|
|
675
|
+
} else {
|
|
676
|
+
outletsItemObject.points = function () {
|
|
677
|
+
var pointsDefaultValue = {};
|
|
678
|
+
pointsDefaultValue.name = 0;
|
|
679
|
+
pointsDefaultValue.fruitPerMinute = 0;
|
|
680
|
+
pointsDefaultValue.articleName = 0;
|
|
681
|
+
pointsDefaultValue.utilization = 0;
|
|
682
|
+
return pointsDefaultValue;
|
|
683
|
+
}();
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
return outletsItemObject;
|
|
687
|
+
}();
|
|
688
|
+
});
|
|
322
689
|
}();
|
|
323
690
|
}
|
|
324
691
|
|
|
@@ -330,37 +697,155 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
330
697
|
|
|
331
698
|
return jsonObject['fruitSizes'].map(function (fruitSizesItem) {
|
|
332
699
|
return function () {
|
|
333
|
-
|
|
334
|
-
|
|
700
|
+
var fruitSizesItemObject = {};
|
|
701
|
+
|
|
702
|
+
if (_typeof(fruitSizesItem) === 'object' && 'fruitSize' in fruitSizesItem) {
|
|
703
|
+
fruitSizesItemObject.fruitSize = function () {
|
|
704
|
+
if (typeof fruitSizesItem.fruitSize !== 'string') {
|
|
705
|
+
return String(fruitSizesItem.fruitSize);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
return fruitSizesItem.fruitSize;
|
|
709
|
+
}();
|
|
710
|
+
} else {
|
|
711
|
+
fruitSizesItemObject.fruitSize = "";
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
if (_typeof(fruitSizesItem) === 'object' && 'points' in fruitSizesItem) {
|
|
715
|
+
fruitSizesItemObject.points = function () {
|
|
716
|
+
var pointsObject = {};
|
|
717
|
+
|
|
718
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'incomingFruitPerMinute' in fruitSizesItem.points) {
|
|
719
|
+
pointsObject.incomingFruitPerMinute = function () {
|
|
720
|
+
if (typeof fruitSizesItem.points.incomingFruitPerMinute !== 'number') {
|
|
721
|
+
return Number.isInteger(Number(fruitSizesItem.points.incomingFruitPerMinute)) ? Number(fruitSizesItem.points.incomingFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.incomingFruitPerMinute));
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
return Number.isInteger(fruitSizesItem.points.incomingFruitPerMinute) ? fruitSizesItem.points.incomingFruitPerMinute : Math.floor(fruitSizesItem.points.incomingFruitPerMinute);
|
|
725
|
+
}();
|
|
726
|
+
} else {
|
|
727
|
+
pointsObject.incomingFruitPerMinute = 0;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'recycledFruitPerMinute' in fruitSizesItem.points) {
|
|
731
|
+
pointsObject.recycledFruitPerMinute = function () {
|
|
732
|
+
if (typeof fruitSizesItem.points.recycledFruitPerMinute !== 'number') {
|
|
733
|
+
return Number.isInteger(Number(fruitSizesItem.points.recycledFruitPerMinute)) ? Number(fruitSizesItem.points.recycledFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.recycledFruitPerMinute));
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
return Number.isInteger(fruitSizesItem.points.recycledFruitPerMinute) ? fruitSizesItem.points.recycledFruitPerMinute : Math.floor(fruitSizesItem.points.recycledFruitPerMinute);
|
|
737
|
+
}();
|
|
738
|
+
} else {
|
|
739
|
+
pointsObject.recycledFruitPerMinute = 0;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
if (_typeof(fruitSizesItem.points) === 'object' && 'allocatedFruitPerMinute' in fruitSizesItem.points) {
|
|
743
|
+
pointsObject.allocatedFruitPerMinute = function () {
|
|
744
|
+
if (typeof fruitSizesItem.points.allocatedFruitPerMinute !== 'number') {
|
|
745
|
+
return Number.isInteger(Number(fruitSizesItem.points.allocatedFruitPerMinute)) ? Number(fruitSizesItem.points.allocatedFruitPerMinute) : Math.floor(Number(fruitSizesItem.points.allocatedFruitPerMinute));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
return Number.isInteger(fruitSizesItem.points.allocatedFruitPerMinute) ? fruitSizesItem.points.allocatedFruitPerMinute : Math.floor(fruitSizesItem.points.allocatedFruitPerMinute);
|
|
749
|
+
}();
|
|
750
|
+
} else {
|
|
751
|
+
pointsObject.allocatedFruitPerMinute = 0;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
return pointsObject;
|
|
755
|
+
}();
|
|
756
|
+
} else {
|
|
757
|
+
fruitSizesItemObject.points = function () {
|
|
758
|
+
var pointsDefaultValue = {};
|
|
759
|
+
pointsDefaultValue.incomingFruitPerMinute = 0;
|
|
760
|
+
pointsDefaultValue.recycledFruitPerMinute = 0;
|
|
761
|
+
pointsDefaultValue.allocatedFruitPerMinute = 0;
|
|
762
|
+
return pointsDefaultValue;
|
|
763
|
+
}();
|
|
335
764
|
}
|
|
336
765
|
|
|
337
|
-
return
|
|
766
|
+
return fruitSizesItemObject;
|
|
338
767
|
}();
|
|
339
768
|
});
|
|
340
769
|
}();
|
|
341
770
|
}
|
|
342
771
|
|
|
343
|
-
if ('packingLineId' in jsonObject) {
|
|
344
|
-
model.packingLineId = function () {
|
|
345
|
-
if (typeof jsonObject['packingLineId'] !== 'string') {
|
|
346
|
-
return String(jsonObject['packingLineId']);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
return jsonObject['packingLineId'];
|
|
350
|
-
}();
|
|
351
|
-
}
|
|
352
|
-
|
|
353
772
|
if ('freshPackIntegration' in jsonObject) {
|
|
354
773
|
model.freshPackIntegration = function () {
|
|
355
774
|
if (jsonObject['freshPackIntegration'] === null) {
|
|
356
775
|
return null;
|
|
357
776
|
}
|
|
358
777
|
|
|
359
|
-
|
|
360
|
-
|
|
778
|
+
var freshPackIntegrationObject = {};
|
|
779
|
+
|
|
780
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'points' in jsonObject['freshPackIntegration']) {
|
|
781
|
+
freshPackIntegrationObject.points = function () {
|
|
782
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) !== 'object') {
|
|
783
|
+
return Object(jsonObject['freshPackIntegration'].points);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
return jsonObject['freshPackIntegration'].points;
|
|
787
|
+
}();
|
|
788
|
+
} else {
|
|
789
|
+
freshPackIntegrationObject.points = {};
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'enabled' in jsonObject['freshPackIntegration']) {
|
|
793
|
+
freshPackIntegrationObject.enabled = function () {
|
|
794
|
+
if (typeof jsonObject['freshPackIntegration'].enabled !== 'boolean') {
|
|
795
|
+
return Boolean(jsonObject['freshPackIntegration'].enabled);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
return jsonObject['freshPackIntegration'].enabled;
|
|
799
|
+
}();
|
|
800
|
+
} else {
|
|
801
|
+
freshPackIntegrationObject.enabled = false;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration']) {
|
|
805
|
+
freshPackIntegrationObject.materialGroupId = function () {
|
|
806
|
+
if (typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number') {
|
|
807
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].materialGroupId) ? jsonObject['freshPackIntegration'].materialGroupId : Math.floor(jsonObject['freshPackIntegration'].materialGroupId);
|
|
811
|
+
}();
|
|
812
|
+
} else {
|
|
813
|
+
freshPackIntegrationObject.materialGroupId = 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'binTypeId' in jsonObject['freshPackIntegration']) {
|
|
817
|
+
freshPackIntegrationObject.binTypeId = function () {
|
|
818
|
+
if (typeof jsonObject['freshPackIntegration'].binTypeId !== 'number') {
|
|
819
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].binTypeId)) ? Number(jsonObject['freshPackIntegration'].binTypeId) : Math.floor(Number(jsonObject['freshPackIntegration'].binTypeId));
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].binTypeId) ? jsonObject['freshPackIntegration'].binTypeId : Math.floor(jsonObject['freshPackIntegration'].binTypeId);
|
|
823
|
+
}();
|
|
824
|
+
} else {
|
|
825
|
+
freshPackIntegrationObject.binTypeId = 0;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'bulkWeightClassTypes' in jsonObject['freshPackIntegration']) {
|
|
829
|
+
freshPackIntegrationObject.bulkWeightClassTypes = function () {
|
|
830
|
+
if (Array.isArray(jsonObject['freshPackIntegration'].bulkWeightClassTypes) !== true) {
|
|
831
|
+
return [];
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
return jsonObject['freshPackIntegration'].bulkWeightClassTypes.map(function (bulkWeightClassTypesItem) {
|
|
835
|
+
return function () {
|
|
836
|
+
if (typeof bulkWeightClassTypesItem !== 'string') {
|
|
837
|
+
return String(bulkWeightClassTypesItem);
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
return bulkWeightClassTypesItem;
|
|
841
|
+
}();
|
|
842
|
+
});
|
|
843
|
+
}();
|
|
844
|
+
} else {
|
|
845
|
+
freshPackIntegrationObject.bulkWeightClassTypes = [];
|
|
361
846
|
}
|
|
362
847
|
|
|
363
|
-
return
|
|
848
|
+
return freshPackIntegrationObject;
|
|
364
849
|
}();
|
|
365
850
|
}
|
|
366
851
|
|
|
@@ -370,11 +855,83 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
370
855
|
return null;
|
|
371
856
|
}
|
|
372
857
|
|
|
373
|
-
|
|
374
|
-
|
|
858
|
+
var mafIntegrationObject = {};
|
|
859
|
+
|
|
860
|
+
if (_typeof(jsonObject['mafIntegration']) === 'object' && 'points' in jsonObject['mafIntegration']) {
|
|
861
|
+
mafIntegrationObject.points = function () {
|
|
862
|
+
var pointsObject = {};
|
|
863
|
+
|
|
864
|
+
if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'stopBatchRequired' in jsonObject['mafIntegration'].points) {
|
|
865
|
+
pointsObject.stopBatchRequired = function () {
|
|
866
|
+
if (typeof jsonObject['mafIntegration'].points.stopBatchRequired !== 'number') {
|
|
867
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].points.stopBatchRequired)) ? Number(jsonObject['mafIntegration'].points.stopBatchRequired) : Math.floor(Number(jsonObject['mafIntegration'].points.stopBatchRequired));
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return Number.isInteger(jsonObject['mafIntegration'].points.stopBatchRequired) ? jsonObject['mafIntegration'].points.stopBatchRequired : Math.floor(jsonObject['mafIntegration'].points.stopBatchRequired);
|
|
871
|
+
}();
|
|
872
|
+
} else {
|
|
873
|
+
pointsObject.stopBatchRequired = 0;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
return pointsObject;
|
|
877
|
+
}();
|
|
878
|
+
} else {
|
|
879
|
+
mafIntegrationObject.points = function () {
|
|
880
|
+
var pointsDefaultValue = {};
|
|
881
|
+
pointsDefaultValue.stopBatchRequired = 0;
|
|
882
|
+
return pointsDefaultValue;
|
|
883
|
+
}();
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (_typeof(jsonObject['mafIntegration']) === 'object' && 'enabled' in jsonObject['mafIntegration']) {
|
|
887
|
+
mafIntegrationObject.enabled = function () {
|
|
888
|
+
if (typeof jsonObject['mafIntegration'].enabled !== 'boolean') {
|
|
889
|
+
return Boolean(jsonObject['mafIntegration'].enabled);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
return jsonObject['mafIntegration'].enabled;
|
|
893
|
+
}();
|
|
894
|
+
} else {
|
|
895
|
+
mafIntegrationObject.enabled = false;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
if (_typeof(jsonObject['mafIntegration']) === 'object' && 'sizerNumber' in jsonObject['mafIntegration']) {
|
|
899
|
+
mafIntegrationObject.sizerNumber = function () {
|
|
900
|
+
if (typeof jsonObject['mafIntegration'].sizerNumber !== 'number') {
|
|
901
|
+
return Number(jsonObject['mafIntegration'].sizerNumber);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
return jsonObject['mafIntegration'].sizerNumber;
|
|
905
|
+
}();
|
|
906
|
+
} else {
|
|
907
|
+
mafIntegrationObject.sizerNumber = 0;
|
|
375
908
|
}
|
|
376
909
|
|
|
377
|
-
|
|
910
|
+
if (_typeof(jsonObject['mafIntegration']) === 'object' && 'dumpSizerName' in jsonObject['mafIntegration']) {
|
|
911
|
+
mafIntegrationObject.dumpSizerName = function () {
|
|
912
|
+
if (typeof jsonObject['mafIntegration'].dumpSizerName !== 'string') {
|
|
913
|
+
return String(jsonObject['mafIntegration'].dumpSizerName);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
return jsonObject['mafIntegration'].dumpSizerName;
|
|
917
|
+
}();
|
|
918
|
+
} else {
|
|
919
|
+
mafIntegrationObject.dumpSizerName = "";
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (_typeof(jsonObject['mafIntegration']) === 'object' && 'statSizerName' in jsonObject['mafIntegration']) {
|
|
923
|
+
mafIntegrationObject.statSizerName = function () {
|
|
924
|
+
if (typeof jsonObject['mafIntegration'].statSizerName !== 'string') {
|
|
925
|
+
return String(jsonObject['mafIntegration'].statSizerName);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
return jsonObject['mafIntegration'].statSizerName;
|
|
929
|
+
}();
|
|
930
|
+
} else {
|
|
931
|
+
mafIntegrationObject.statSizerName = "";
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
return mafIntegrationObject;
|
|
378
935
|
}();
|
|
379
936
|
}
|
|
380
937
|
|
|
@@ -386,10 +943,6 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
386
943
|
|
|
387
944
|
return jsonObject['sources'].map(function (sourcesItem) {
|
|
388
945
|
return function () {
|
|
389
|
-
if (_typeof(sourcesItem) !== 'object') {
|
|
390
|
-
return Object(sourcesItem);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
946
|
return sourcesItem;
|
|
394
947
|
}();
|
|
395
948
|
});
|
|
@@ -404,11 +957,33 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
404
957
|
|
|
405
958
|
return jsonObject['articleClassTypes'].map(function (articleClassTypesItem) {
|
|
406
959
|
return function () {
|
|
407
|
-
|
|
408
|
-
|
|
960
|
+
var articleClassTypesItemObject = {};
|
|
961
|
+
|
|
962
|
+
if (_typeof(articleClassTypesItem) === 'object' && 'articleName' in articleClassTypesItem) {
|
|
963
|
+
articleClassTypesItemObject.articleName = function () {
|
|
964
|
+
if (typeof articleClassTypesItem.articleName !== 'string') {
|
|
965
|
+
return String(articleClassTypesItem.articleName);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
return articleClassTypesItem.articleName;
|
|
969
|
+
}();
|
|
970
|
+
} else {
|
|
971
|
+
articleClassTypesItemObject.articleName = "";
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
if (_typeof(articleClassTypesItem) === 'object' && 'classType' in articleClassTypesItem) {
|
|
975
|
+
articleClassTypesItemObject.classType = function () {
|
|
976
|
+
if (typeof articleClassTypesItem.classType !== 'string') {
|
|
977
|
+
return String(articleClassTypesItem.classType);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
return articleClassTypesItem.classType;
|
|
981
|
+
}();
|
|
982
|
+
} else {
|
|
983
|
+
articleClassTypesItemObject.classType = "";
|
|
409
984
|
}
|
|
410
985
|
|
|
411
|
-
return
|
|
986
|
+
return articleClassTypesItemObject;
|
|
412
987
|
}();
|
|
413
988
|
});
|
|
414
989
|
}();
|