@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
|
@@ -82,11 +82,44 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
82
82
|
/**
|
|
83
83
|
* The Points used by this Reject Bin Scale
|
|
84
84
|
*
|
|
85
|
-
* @type {
|
|
85
|
+
* @type {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}}
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.points = {
|
|
89
|
+
_this.points = function () {
|
|
90
|
+
var pointsDefaultValue = {};
|
|
91
|
+
pointsDefaultValue.weighButton = null;
|
|
92
|
+
pointsDefaultValue.packrunButton = null;
|
|
93
|
+
pointsDefaultValue.manualInterventionButton = null;
|
|
94
|
+
pointsDefaultValue.clearIndicator = null;
|
|
95
|
+
pointsDefaultValue.busyIndicator = null;
|
|
96
|
+
pointsDefaultValue.packrunIndicator = null;
|
|
97
|
+
pointsDefaultValue.manualInterventionIndicator = null;
|
|
98
|
+
pointsDefaultValue.sirenControl = null;
|
|
99
|
+
pointsDefaultValue.scaleTareRequest = null;
|
|
100
|
+
pointsDefaultValue.scaleClearTareRequest = null;
|
|
101
|
+
pointsDefaultValue.scaleZeroRequest = null;
|
|
102
|
+
pointsDefaultValue.scaleStableStatus = 0;
|
|
103
|
+
pointsDefaultValue.scaleWeight = null;
|
|
104
|
+
pointsDefaultValue.scaleNetWeight = null;
|
|
105
|
+
pointsDefaultValue.scaleGrossWeight = null;
|
|
106
|
+
pointsDefaultValue.scaleTareWeight = null;
|
|
107
|
+
pointsDefaultValue.targetGrossWeight = null;
|
|
108
|
+
pointsDefaultValue.status = 0;
|
|
109
|
+
pointsDefaultValue.currentPackrunId = 0;
|
|
110
|
+
pointsDefaultValue.nextPackrunId = 0;
|
|
111
|
+
pointsDefaultValue.currentPackrunName = 0;
|
|
112
|
+
pointsDefaultValue.nextPackrunName = 0;
|
|
113
|
+
pointsDefaultValue.incorrectOperationStatus = null;
|
|
114
|
+
pointsDefaultValue.currentPackrunIncorrectOperationsCount = null;
|
|
115
|
+
pointsDefaultValue.totalIncorrectOperationsCount = null;
|
|
116
|
+
pointsDefaultValue.manualInterventionStatus = null;
|
|
117
|
+
pointsDefaultValue.currentPackrunManualInterventionsCount = null;
|
|
118
|
+
pointsDefaultValue.totalManualInterventionsCount = null;
|
|
119
|
+
pointsDefaultValue.currentPackrunBinsWeighedCount = 0;
|
|
120
|
+
pointsDefaultValue.totalBinsWeighedCount = 0;
|
|
121
|
+
return pointsDefaultValue;
|
|
122
|
+
}();
|
|
90
123
|
/**
|
|
91
124
|
* The Packing Line that owns this Reject Bin Scale
|
|
92
125
|
*
|
|
@@ -94,6 +127,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
127
|
* @public
|
|
95
128
|
*/
|
|
96
129
|
|
|
130
|
+
|
|
97
131
|
_this.packingLineId = "";
|
|
98
132
|
/**
|
|
99
133
|
* The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
@@ -114,7 +148,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
114
148
|
/**
|
|
115
149
|
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
116
150
|
*
|
|
117
|
-
* @type {
|
|
151
|
+
* @type {Array<{type: string, sortingTableId: string, classType: string, varietyClassTypes: Array<{varietyId: string, classType: string}>}|{type: string, beltName: ?string, classType: string, varietyClassTypes: Array<{varietyId: string, classType: string}>}|{type: string, sizerId: string, outletNumber: number}>}
|
|
118
152
|
* @public
|
|
119
153
|
*/
|
|
120
154
|
|
|
@@ -218,7 +252,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
218
252
|
/**
|
|
219
253
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
220
254
|
*
|
|
221
|
-
* @type {?Object}
|
|
255
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
222
256
|
* @public
|
|
223
257
|
*/
|
|
224
258
|
|
|
@@ -314,11 +348,457 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
314
348
|
|
|
315
349
|
if ('points' in jsonObject) {
|
|
316
350
|
model.points = function () {
|
|
317
|
-
|
|
318
|
-
|
|
351
|
+
var pointsObject = {};
|
|
352
|
+
|
|
353
|
+
if (_typeof(jsonObject['points']) === 'object' && 'weighButton' in jsonObject['points']) {
|
|
354
|
+
pointsObject.weighButton = function () {
|
|
355
|
+
if (jsonObject['points'].weighButton === null) {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (typeof jsonObject['points'].weighButton !== 'number') {
|
|
360
|
+
return Number.isInteger(Number(jsonObject['points'].weighButton)) ? Number(jsonObject['points'].weighButton) : Math.floor(Number(jsonObject['points'].weighButton));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return Number.isInteger(jsonObject['points'].weighButton) ? jsonObject['points'].weighButton : Math.floor(jsonObject['points'].weighButton);
|
|
364
|
+
}();
|
|
365
|
+
} else {
|
|
366
|
+
pointsObject.weighButton = null;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (_typeof(jsonObject['points']) === 'object' && 'packrunButton' in jsonObject['points']) {
|
|
370
|
+
pointsObject.packrunButton = function () {
|
|
371
|
+
if (jsonObject['points'].packrunButton === null) {
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (typeof jsonObject['points'].packrunButton !== 'number') {
|
|
376
|
+
return Number.isInteger(Number(jsonObject['points'].packrunButton)) ? Number(jsonObject['points'].packrunButton) : Math.floor(Number(jsonObject['points'].packrunButton));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return Number.isInteger(jsonObject['points'].packrunButton) ? jsonObject['points'].packrunButton : Math.floor(jsonObject['points'].packrunButton);
|
|
380
|
+
}();
|
|
381
|
+
} else {
|
|
382
|
+
pointsObject.packrunButton = null;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
if (_typeof(jsonObject['points']) === 'object' && 'manualInterventionButton' in jsonObject['points']) {
|
|
386
|
+
pointsObject.manualInterventionButton = function () {
|
|
387
|
+
if (jsonObject['points'].manualInterventionButton === null) {
|
|
388
|
+
return null;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (typeof jsonObject['points'].manualInterventionButton !== 'number') {
|
|
392
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionButton)) ? Number(jsonObject['points'].manualInterventionButton) : Math.floor(Number(jsonObject['points'].manualInterventionButton));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return Number.isInteger(jsonObject['points'].manualInterventionButton) ? jsonObject['points'].manualInterventionButton : Math.floor(jsonObject['points'].manualInterventionButton);
|
|
396
|
+
}();
|
|
397
|
+
} else {
|
|
398
|
+
pointsObject.manualInterventionButton = null;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (_typeof(jsonObject['points']) === 'object' && 'clearIndicator' in jsonObject['points']) {
|
|
402
|
+
pointsObject.clearIndicator = function () {
|
|
403
|
+
if (jsonObject['points'].clearIndicator === null) {
|
|
404
|
+
return null;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (typeof jsonObject['points'].clearIndicator !== 'number') {
|
|
408
|
+
return Number.isInteger(Number(jsonObject['points'].clearIndicator)) ? Number(jsonObject['points'].clearIndicator) : Math.floor(Number(jsonObject['points'].clearIndicator));
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
return Number.isInteger(jsonObject['points'].clearIndicator) ? jsonObject['points'].clearIndicator : Math.floor(jsonObject['points'].clearIndicator);
|
|
412
|
+
}();
|
|
413
|
+
} else {
|
|
414
|
+
pointsObject.clearIndicator = null;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (_typeof(jsonObject['points']) === 'object' && 'busyIndicator' in jsonObject['points']) {
|
|
418
|
+
pointsObject.busyIndicator = function () {
|
|
419
|
+
if (jsonObject['points'].busyIndicator === null) {
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (typeof jsonObject['points'].busyIndicator !== 'number') {
|
|
424
|
+
return Number.isInteger(Number(jsonObject['points'].busyIndicator)) ? Number(jsonObject['points'].busyIndicator) : Math.floor(Number(jsonObject['points'].busyIndicator));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return Number.isInteger(jsonObject['points'].busyIndicator) ? jsonObject['points'].busyIndicator : Math.floor(jsonObject['points'].busyIndicator);
|
|
428
|
+
}();
|
|
429
|
+
} else {
|
|
430
|
+
pointsObject.busyIndicator = null;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (_typeof(jsonObject['points']) === 'object' && 'packrunIndicator' in jsonObject['points']) {
|
|
434
|
+
pointsObject.packrunIndicator = function () {
|
|
435
|
+
if (jsonObject['points'].packrunIndicator === null) {
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (typeof jsonObject['points'].packrunIndicator !== 'number') {
|
|
440
|
+
return Number.isInteger(Number(jsonObject['points'].packrunIndicator)) ? Number(jsonObject['points'].packrunIndicator) : Math.floor(Number(jsonObject['points'].packrunIndicator));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
return Number.isInteger(jsonObject['points'].packrunIndicator) ? jsonObject['points'].packrunIndicator : Math.floor(jsonObject['points'].packrunIndicator);
|
|
444
|
+
}();
|
|
445
|
+
} else {
|
|
446
|
+
pointsObject.packrunIndicator = null;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (_typeof(jsonObject['points']) === 'object' && 'manualInterventionIndicator' in jsonObject['points']) {
|
|
450
|
+
pointsObject.manualInterventionIndicator = function () {
|
|
451
|
+
if (jsonObject['points'].manualInterventionIndicator === null) {
|
|
452
|
+
return null;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (typeof jsonObject['points'].manualInterventionIndicator !== 'number') {
|
|
456
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionIndicator)) ? Number(jsonObject['points'].manualInterventionIndicator) : Math.floor(Number(jsonObject['points'].manualInterventionIndicator));
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return Number.isInteger(jsonObject['points'].manualInterventionIndicator) ? jsonObject['points'].manualInterventionIndicator : Math.floor(jsonObject['points'].manualInterventionIndicator);
|
|
460
|
+
}();
|
|
461
|
+
} else {
|
|
462
|
+
pointsObject.manualInterventionIndicator = null;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (_typeof(jsonObject['points']) === 'object' && 'sirenControl' in jsonObject['points']) {
|
|
466
|
+
pointsObject.sirenControl = function () {
|
|
467
|
+
if (jsonObject['points'].sirenControl === null) {
|
|
468
|
+
return null;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (typeof jsonObject['points'].sirenControl !== 'number') {
|
|
472
|
+
return Number.isInteger(Number(jsonObject['points'].sirenControl)) ? Number(jsonObject['points'].sirenControl) : Math.floor(Number(jsonObject['points'].sirenControl));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return Number.isInteger(jsonObject['points'].sirenControl) ? jsonObject['points'].sirenControl : Math.floor(jsonObject['points'].sirenControl);
|
|
476
|
+
}();
|
|
477
|
+
} else {
|
|
478
|
+
pointsObject.sirenControl = null;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleTareRequest' in jsonObject['points']) {
|
|
482
|
+
pointsObject.scaleTareRequest = function () {
|
|
483
|
+
if (jsonObject['points'].scaleTareRequest === null) {
|
|
484
|
+
return null;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof jsonObject['points'].scaleTareRequest !== 'number') {
|
|
488
|
+
return Number.isInteger(Number(jsonObject['points'].scaleTareRequest)) ? Number(jsonObject['points'].scaleTareRequest) : Math.floor(Number(jsonObject['points'].scaleTareRequest));
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
return Number.isInteger(jsonObject['points'].scaleTareRequest) ? jsonObject['points'].scaleTareRequest : Math.floor(jsonObject['points'].scaleTareRequest);
|
|
492
|
+
}();
|
|
493
|
+
} else {
|
|
494
|
+
pointsObject.scaleTareRequest = null;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleClearTareRequest' in jsonObject['points']) {
|
|
498
|
+
pointsObject.scaleClearTareRequest = function () {
|
|
499
|
+
if (jsonObject['points'].scaleClearTareRequest === null) {
|
|
500
|
+
return null;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
if (typeof jsonObject['points'].scaleClearTareRequest !== 'number') {
|
|
504
|
+
return Number.isInteger(Number(jsonObject['points'].scaleClearTareRequest)) ? Number(jsonObject['points'].scaleClearTareRequest) : Math.floor(Number(jsonObject['points'].scaleClearTareRequest));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return Number.isInteger(jsonObject['points'].scaleClearTareRequest) ? jsonObject['points'].scaleClearTareRequest : Math.floor(jsonObject['points'].scaleClearTareRequest);
|
|
508
|
+
}();
|
|
509
|
+
} else {
|
|
510
|
+
pointsObject.scaleClearTareRequest = null;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleZeroRequest' in jsonObject['points']) {
|
|
514
|
+
pointsObject.scaleZeroRequest = function () {
|
|
515
|
+
if (jsonObject['points'].scaleZeroRequest === null) {
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
if (typeof jsonObject['points'].scaleZeroRequest !== 'number') {
|
|
520
|
+
return Number.isInteger(Number(jsonObject['points'].scaleZeroRequest)) ? Number(jsonObject['points'].scaleZeroRequest) : Math.floor(Number(jsonObject['points'].scaleZeroRequest));
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
return Number.isInteger(jsonObject['points'].scaleZeroRequest) ? jsonObject['points'].scaleZeroRequest : Math.floor(jsonObject['points'].scaleZeroRequest);
|
|
524
|
+
}();
|
|
525
|
+
} else {
|
|
526
|
+
pointsObject.scaleZeroRequest = null;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleStableStatus' in jsonObject['points']) {
|
|
530
|
+
pointsObject.scaleStableStatus = function () {
|
|
531
|
+
if (typeof jsonObject['points'].scaleStableStatus !== 'number') {
|
|
532
|
+
return Number.isInteger(Number(jsonObject['points'].scaleStableStatus)) ? Number(jsonObject['points'].scaleStableStatus) : Math.floor(Number(jsonObject['points'].scaleStableStatus));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
return Number.isInteger(jsonObject['points'].scaleStableStatus) ? jsonObject['points'].scaleStableStatus : Math.floor(jsonObject['points'].scaleStableStatus);
|
|
536
|
+
}();
|
|
537
|
+
} else {
|
|
538
|
+
pointsObject.scaleStableStatus = 0;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleWeight' in jsonObject['points']) {
|
|
542
|
+
pointsObject.scaleWeight = function () {
|
|
543
|
+
if (jsonObject['points'].scaleWeight === null) {
|
|
544
|
+
return null;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if (typeof jsonObject['points'].scaleWeight !== 'number') {
|
|
548
|
+
return Number.isInteger(Number(jsonObject['points'].scaleWeight)) ? Number(jsonObject['points'].scaleWeight) : Math.floor(Number(jsonObject['points'].scaleWeight));
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
return Number.isInteger(jsonObject['points'].scaleWeight) ? jsonObject['points'].scaleWeight : Math.floor(jsonObject['points'].scaleWeight);
|
|
552
|
+
}();
|
|
553
|
+
} else {
|
|
554
|
+
pointsObject.scaleWeight = null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleNetWeight' in jsonObject['points']) {
|
|
558
|
+
pointsObject.scaleNetWeight = function () {
|
|
559
|
+
if (jsonObject['points'].scaleNetWeight === null) {
|
|
560
|
+
return null;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (typeof jsonObject['points'].scaleNetWeight !== 'number') {
|
|
564
|
+
return Number.isInteger(Number(jsonObject['points'].scaleNetWeight)) ? Number(jsonObject['points'].scaleNetWeight) : Math.floor(Number(jsonObject['points'].scaleNetWeight));
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
return Number.isInteger(jsonObject['points'].scaleNetWeight) ? jsonObject['points'].scaleNetWeight : Math.floor(jsonObject['points'].scaleNetWeight);
|
|
568
|
+
}();
|
|
569
|
+
} else {
|
|
570
|
+
pointsObject.scaleNetWeight = null;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleGrossWeight' in jsonObject['points']) {
|
|
574
|
+
pointsObject.scaleGrossWeight = function () {
|
|
575
|
+
if (jsonObject['points'].scaleGrossWeight === null) {
|
|
576
|
+
return null;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
if (typeof jsonObject['points'].scaleGrossWeight !== 'number') {
|
|
580
|
+
return Number.isInteger(Number(jsonObject['points'].scaleGrossWeight)) ? Number(jsonObject['points'].scaleGrossWeight) : Math.floor(Number(jsonObject['points'].scaleGrossWeight));
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
return Number.isInteger(jsonObject['points'].scaleGrossWeight) ? jsonObject['points'].scaleGrossWeight : Math.floor(jsonObject['points'].scaleGrossWeight);
|
|
584
|
+
}();
|
|
585
|
+
} else {
|
|
586
|
+
pointsObject.scaleGrossWeight = null;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
if (_typeof(jsonObject['points']) === 'object' && 'scaleTareWeight' in jsonObject['points']) {
|
|
590
|
+
pointsObject.scaleTareWeight = function () {
|
|
591
|
+
if (jsonObject['points'].scaleTareWeight === null) {
|
|
592
|
+
return null;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
if (typeof jsonObject['points'].scaleTareWeight !== 'number') {
|
|
596
|
+
return Number.isInteger(Number(jsonObject['points'].scaleTareWeight)) ? Number(jsonObject['points'].scaleTareWeight) : Math.floor(Number(jsonObject['points'].scaleTareWeight));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return Number.isInteger(jsonObject['points'].scaleTareWeight) ? jsonObject['points'].scaleTareWeight : Math.floor(jsonObject['points'].scaleTareWeight);
|
|
600
|
+
}();
|
|
601
|
+
} else {
|
|
602
|
+
pointsObject.scaleTareWeight = null;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
if (_typeof(jsonObject['points']) === 'object' && 'targetGrossWeight' in jsonObject['points']) {
|
|
606
|
+
pointsObject.targetGrossWeight = function () {
|
|
607
|
+
if (jsonObject['points'].targetGrossWeight === null) {
|
|
608
|
+
return null;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (typeof jsonObject['points'].targetGrossWeight !== 'number') {
|
|
612
|
+
return Number.isInteger(Number(jsonObject['points'].targetGrossWeight)) ? Number(jsonObject['points'].targetGrossWeight) : Math.floor(Number(jsonObject['points'].targetGrossWeight));
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
return Number.isInteger(jsonObject['points'].targetGrossWeight) ? jsonObject['points'].targetGrossWeight : Math.floor(jsonObject['points'].targetGrossWeight);
|
|
616
|
+
}();
|
|
617
|
+
} else {
|
|
618
|
+
pointsObject.targetGrossWeight = null;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
if (_typeof(jsonObject['points']) === 'object' && 'status' in jsonObject['points']) {
|
|
622
|
+
pointsObject.status = function () {
|
|
623
|
+
if (typeof jsonObject['points'].status !== 'number') {
|
|
624
|
+
return Number.isInteger(Number(jsonObject['points'].status)) ? Number(jsonObject['points'].status) : Math.floor(Number(jsonObject['points'].status));
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
return Number.isInteger(jsonObject['points'].status) ? jsonObject['points'].status : Math.floor(jsonObject['points'].status);
|
|
628
|
+
}();
|
|
629
|
+
} else {
|
|
630
|
+
pointsObject.status = 0;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentPackrunId' in jsonObject['points']) {
|
|
634
|
+
pointsObject.currentPackrunId = function () {
|
|
635
|
+
if (typeof jsonObject['points'].currentPackrunId !== 'number') {
|
|
636
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunId)) ? Number(jsonObject['points'].currentPackrunId) : Math.floor(Number(jsonObject['points'].currentPackrunId));
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
return Number.isInteger(jsonObject['points'].currentPackrunId) ? jsonObject['points'].currentPackrunId : Math.floor(jsonObject['points'].currentPackrunId);
|
|
640
|
+
}();
|
|
641
|
+
} else {
|
|
642
|
+
pointsObject.currentPackrunId = 0;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
if (_typeof(jsonObject['points']) === 'object' && 'nextPackrunId' in jsonObject['points']) {
|
|
646
|
+
pointsObject.nextPackrunId = function () {
|
|
647
|
+
if (typeof jsonObject['points'].nextPackrunId !== 'number') {
|
|
648
|
+
return Number.isInteger(Number(jsonObject['points'].nextPackrunId)) ? Number(jsonObject['points'].nextPackrunId) : Math.floor(Number(jsonObject['points'].nextPackrunId));
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
return Number.isInteger(jsonObject['points'].nextPackrunId) ? jsonObject['points'].nextPackrunId : Math.floor(jsonObject['points'].nextPackrunId);
|
|
652
|
+
}();
|
|
653
|
+
} else {
|
|
654
|
+
pointsObject.nextPackrunId = 0;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentPackrunName' in jsonObject['points']) {
|
|
658
|
+
pointsObject.currentPackrunName = function () {
|
|
659
|
+
if (typeof jsonObject['points'].currentPackrunName !== 'number') {
|
|
660
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunName)) ? Number(jsonObject['points'].currentPackrunName) : Math.floor(Number(jsonObject['points'].currentPackrunName));
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
return Number.isInteger(jsonObject['points'].currentPackrunName) ? jsonObject['points'].currentPackrunName : Math.floor(jsonObject['points'].currentPackrunName);
|
|
664
|
+
}();
|
|
665
|
+
} else {
|
|
666
|
+
pointsObject.currentPackrunName = 0;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
if (_typeof(jsonObject['points']) === 'object' && 'nextPackrunName' in jsonObject['points']) {
|
|
670
|
+
pointsObject.nextPackrunName = function () {
|
|
671
|
+
if (typeof jsonObject['points'].nextPackrunName !== 'number') {
|
|
672
|
+
return Number.isInteger(Number(jsonObject['points'].nextPackrunName)) ? Number(jsonObject['points'].nextPackrunName) : Math.floor(Number(jsonObject['points'].nextPackrunName));
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
return Number.isInteger(jsonObject['points'].nextPackrunName) ? jsonObject['points'].nextPackrunName : Math.floor(jsonObject['points'].nextPackrunName);
|
|
676
|
+
}();
|
|
677
|
+
} else {
|
|
678
|
+
pointsObject.nextPackrunName = 0;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
if (_typeof(jsonObject['points']) === 'object' && 'incorrectOperationStatus' in jsonObject['points']) {
|
|
682
|
+
pointsObject.incorrectOperationStatus = function () {
|
|
683
|
+
if (jsonObject['points'].incorrectOperationStatus === null) {
|
|
684
|
+
return null;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
if (typeof jsonObject['points'].incorrectOperationStatus !== 'number') {
|
|
688
|
+
return Number.isInteger(Number(jsonObject['points'].incorrectOperationStatus)) ? Number(jsonObject['points'].incorrectOperationStatus) : Math.floor(Number(jsonObject['points'].incorrectOperationStatus));
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
return Number.isInteger(jsonObject['points'].incorrectOperationStatus) ? jsonObject['points'].incorrectOperationStatus : Math.floor(jsonObject['points'].incorrectOperationStatus);
|
|
692
|
+
}();
|
|
693
|
+
} else {
|
|
694
|
+
pointsObject.incorrectOperationStatus = null;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentPackrunIncorrectOperationsCount' in jsonObject['points']) {
|
|
698
|
+
pointsObject.currentPackrunIncorrectOperationsCount = function () {
|
|
699
|
+
if (jsonObject['points'].currentPackrunIncorrectOperationsCount === null) {
|
|
700
|
+
return null;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
if (typeof jsonObject['points'].currentPackrunIncorrectOperationsCount !== 'number') {
|
|
704
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunIncorrectOperationsCount)) ? Number(jsonObject['points'].currentPackrunIncorrectOperationsCount) : Math.floor(Number(jsonObject['points'].currentPackrunIncorrectOperationsCount));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
return Number.isInteger(jsonObject['points'].currentPackrunIncorrectOperationsCount) ? jsonObject['points'].currentPackrunIncorrectOperationsCount : Math.floor(jsonObject['points'].currentPackrunIncorrectOperationsCount);
|
|
708
|
+
}();
|
|
709
|
+
} else {
|
|
710
|
+
pointsObject.currentPackrunIncorrectOperationsCount = null;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (_typeof(jsonObject['points']) === 'object' && 'totalIncorrectOperationsCount' in jsonObject['points']) {
|
|
714
|
+
pointsObject.totalIncorrectOperationsCount = function () {
|
|
715
|
+
if (jsonObject['points'].totalIncorrectOperationsCount === null) {
|
|
716
|
+
return null;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
if (typeof jsonObject['points'].totalIncorrectOperationsCount !== 'number') {
|
|
720
|
+
return Number.isInteger(Number(jsonObject['points'].totalIncorrectOperationsCount)) ? Number(jsonObject['points'].totalIncorrectOperationsCount) : Math.floor(Number(jsonObject['points'].totalIncorrectOperationsCount));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return Number.isInteger(jsonObject['points'].totalIncorrectOperationsCount) ? jsonObject['points'].totalIncorrectOperationsCount : Math.floor(jsonObject['points'].totalIncorrectOperationsCount);
|
|
724
|
+
}();
|
|
725
|
+
} else {
|
|
726
|
+
pointsObject.totalIncorrectOperationsCount = null;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
if (_typeof(jsonObject['points']) === 'object' && 'manualInterventionStatus' in jsonObject['points']) {
|
|
730
|
+
pointsObject.manualInterventionStatus = function () {
|
|
731
|
+
if (jsonObject['points'].manualInterventionStatus === null) {
|
|
732
|
+
return null;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
if (typeof jsonObject['points'].manualInterventionStatus !== 'number') {
|
|
736
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionStatus)) ? Number(jsonObject['points'].manualInterventionStatus) : Math.floor(Number(jsonObject['points'].manualInterventionStatus));
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
return Number.isInteger(jsonObject['points'].manualInterventionStatus) ? jsonObject['points'].manualInterventionStatus : Math.floor(jsonObject['points'].manualInterventionStatus);
|
|
740
|
+
}();
|
|
741
|
+
} else {
|
|
742
|
+
pointsObject.manualInterventionStatus = null;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentPackrunManualInterventionsCount' in jsonObject['points']) {
|
|
746
|
+
pointsObject.currentPackrunManualInterventionsCount = function () {
|
|
747
|
+
if (jsonObject['points'].currentPackrunManualInterventionsCount === null) {
|
|
748
|
+
return null;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (typeof jsonObject['points'].currentPackrunManualInterventionsCount !== 'number') {
|
|
752
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunManualInterventionsCount)) ? Number(jsonObject['points'].currentPackrunManualInterventionsCount) : Math.floor(Number(jsonObject['points'].currentPackrunManualInterventionsCount));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
return Number.isInteger(jsonObject['points'].currentPackrunManualInterventionsCount) ? jsonObject['points'].currentPackrunManualInterventionsCount : Math.floor(jsonObject['points'].currentPackrunManualInterventionsCount);
|
|
756
|
+
}();
|
|
757
|
+
} else {
|
|
758
|
+
pointsObject.currentPackrunManualInterventionsCount = null;
|
|
319
759
|
}
|
|
320
760
|
|
|
321
|
-
|
|
761
|
+
if (_typeof(jsonObject['points']) === 'object' && 'totalManualInterventionsCount' in jsonObject['points']) {
|
|
762
|
+
pointsObject.totalManualInterventionsCount = function () {
|
|
763
|
+
if (jsonObject['points'].totalManualInterventionsCount === null) {
|
|
764
|
+
return null;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (typeof jsonObject['points'].totalManualInterventionsCount !== 'number') {
|
|
768
|
+
return Number.isInteger(Number(jsonObject['points'].totalManualInterventionsCount)) ? Number(jsonObject['points'].totalManualInterventionsCount) : Math.floor(Number(jsonObject['points'].totalManualInterventionsCount));
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
return Number.isInteger(jsonObject['points'].totalManualInterventionsCount) ? jsonObject['points'].totalManualInterventionsCount : Math.floor(jsonObject['points'].totalManualInterventionsCount);
|
|
772
|
+
}();
|
|
773
|
+
} else {
|
|
774
|
+
pointsObject.totalManualInterventionsCount = null;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentPackrunBinsWeighedCount' in jsonObject['points']) {
|
|
778
|
+
pointsObject.currentPackrunBinsWeighedCount = function () {
|
|
779
|
+
if (typeof jsonObject['points'].currentPackrunBinsWeighedCount !== 'number') {
|
|
780
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunBinsWeighedCount)) ? Number(jsonObject['points'].currentPackrunBinsWeighedCount) : Math.floor(Number(jsonObject['points'].currentPackrunBinsWeighedCount));
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
return Number.isInteger(jsonObject['points'].currentPackrunBinsWeighedCount) ? jsonObject['points'].currentPackrunBinsWeighedCount : Math.floor(jsonObject['points'].currentPackrunBinsWeighedCount);
|
|
784
|
+
}();
|
|
785
|
+
} else {
|
|
786
|
+
pointsObject.currentPackrunBinsWeighedCount = 0;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
if (_typeof(jsonObject['points']) === 'object' && 'totalBinsWeighedCount' in jsonObject['points']) {
|
|
790
|
+
pointsObject.totalBinsWeighedCount = function () {
|
|
791
|
+
if (typeof jsonObject['points'].totalBinsWeighedCount !== 'number') {
|
|
792
|
+
return Number.isInteger(Number(jsonObject['points'].totalBinsWeighedCount)) ? Number(jsonObject['points'].totalBinsWeighedCount) : Math.floor(Number(jsonObject['points'].totalBinsWeighedCount));
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
return Number.isInteger(jsonObject['points'].totalBinsWeighedCount) ? jsonObject['points'].totalBinsWeighedCount : Math.floor(jsonObject['points'].totalBinsWeighedCount);
|
|
796
|
+
}();
|
|
797
|
+
} else {
|
|
798
|
+
pointsObject.totalBinsWeighedCount = 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
return pointsObject;
|
|
322
802
|
}();
|
|
323
803
|
}
|
|
324
804
|
|
|
@@ -368,10 +848,6 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
368
848
|
|
|
369
849
|
return jsonObject['sources'].map(function (sourcesItem) {
|
|
370
850
|
return function () {
|
|
371
|
-
if (_typeof(sourcesItem) !== 'object') {
|
|
372
|
-
return Object(sourcesItem);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
851
|
return sourcesItem;
|
|
376
852
|
}();
|
|
377
853
|
});
|
|
@@ -566,11 +1042,97 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
566
1042
|
return null;
|
|
567
1043
|
}
|
|
568
1044
|
|
|
569
|
-
|
|
570
|
-
|
|
1045
|
+
var freshPackIntegrationObject = {};
|
|
1046
|
+
|
|
1047
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'points' in jsonObject['freshPackIntegration']) {
|
|
1048
|
+
freshPackIntegrationObject.points = function () {
|
|
1049
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) !== 'object') {
|
|
1050
|
+
return Object(jsonObject['freshPackIntegration'].points);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
return jsonObject['freshPackIntegration'].points;
|
|
1054
|
+
}();
|
|
1055
|
+
} else {
|
|
1056
|
+
freshPackIntegrationObject.points = {};
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'enabled' in jsonObject['freshPackIntegration']) {
|
|
1060
|
+
freshPackIntegrationObject.enabled = function () {
|
|
1061
|
+
if (typeof jsonObject['freshPackIntegration'].enabled !== 'boolean') {
|
|
1062
|
+
return Boolean(jsonObject['freshPackIntegration'].enabled);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
return jsonObject['freshPackIntegration'].enabled;
|
|
1066
|
+
}();
|
|
1067
|
+
} else {
|
|
1068
|
+
freshPackIntegrationObject.enabled = false;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration']) {
|
|
1072
|
+
freshPackIntegrationObject.materialGroupId = function () {
|
|
1073
|
+
if (typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number') {
|
|
1074
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].materialGroupId) ? jsonObject['freshPackIntegration'].materialGroupId : Math.floor(jsonObject['freshPackIntegration'].materialGroupId);
|
|
1078
|
+
}();
|
|
1079
|
+
} else {
|
|
1080
|
+
freshPackIntegrationObject.materialGroupId = 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'binTypeId' in jsonObject['freshPackIntegration']) {
|
|
1084
|
+
freshPackIntegrationObject.binTypeId = function () {
|
|
1085
|
+
if (typeof jsonObject['freshPackIntegration'].binTypeId !== 'number') {
|
|
1086
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].binTypeId)) ? Number(jsonObject['freshPackIntegration'].binTypeId) : Math.floor(Number(jsonObject['freshPackIntegration'].binTypeId));
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].binTypeId) ? jsonObject['freshPackIntegration'].binTypeId : Math.floor(jsonObject['freshPackIntegration'].binTypeId);
|
|
1090
|
+
}();
|
|
1091
|
+
} else {
|
|
1092
|
+
freshPackIntegrationObject.binTypeId = 0;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'printerGroupId' in jsonObject['freshPackIntegration']) {
|
|
1096
|
+
freshPackIntegrationObject.printerGroupId = function () {
|
|
1097
|
+
if (jsonObject['freshPackIntegration'].printerGroupId === null) {
|
|
1098
|
+
return null;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
if (typeof jsonObject['freshPackIntegration'].printerGroupId !== 'number') {
|
|
1102
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].printerGroupId)) ? Number(jsonObject['freshPackIntegration'].printerGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].printerGroupId));
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].printerGroupId) ? jsonObject['freshPackIntegration'].printerGroupId : Math.floor(jsonObject['freshPackIntegration'].printerGroupId);
|
|
1106
|
+
}();
|
|
1107
|
+
} else {
|
|
1108
|
+
freshPackIntegrationObject.printerGroupId = null;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'binCardPrintingEnabled' in jsonObject['freshPackIntegration']) {
|
|
1112
|
+
freshPackIntegrationObject.binCardPrintingEnabled = function () {
|
|
1113
|
+
if (typeof jsonObject['freshPackIntegration'].binCardPrintingEnabled !== 'boolean') {
|
|
1114
|
+
return Boolean(jsonObject['freshPackIntegration'].binCardPrintingEnabled);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
return jsonObject['freshPackIntegration'].binCardPrintingEnabled;
|
|
1118
|
+
}();
|
|
1119
|
+
} else {
|
|
1120
|
+
freshPackIntegrationObject.binCardPrintingEnabled = false;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'useWindowsDriverApi' in jsonObject['freshPackIntegration']) {
|
|
1124
|
+
freshPackIntegrationObject.useWindowsDriverApi = function () {
|
|
1125
|
+
if (typeof jsonObject['freshPackIntegration'].useWindowsDriverApi !== 'boolean') {
|
|
1126
|
+
return Boolean(jsonObject['freshPackIntegration'].useWindowsDriverApi);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
return jsonObject['freshPackIntegration'].useWindowsDriverApi;
|
|
1130
|
+
}();
|
|
1131
|
+
} else {
|
|
1132
|
+
freshPackIntegrationObject.useWindowsDriverApi = false;
|
|
571
1133
|
}
|
|
572
1134
|
|
|
573
|
-
return
|
|
1135
|
+
return freshPackIntegrationObject;
|
|
574
1136
|
}();
|
|
575
1137
|
}
|
|
576
1138
|
|