@ricado/api-client 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  3. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  4. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  5. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  7. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  9. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  10. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  11. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  12. package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
  13. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  14. package/lib/Models/Packhouse/Site/PackingLineModel.js +524 -1
  15. package/lib/Models/Packhouse/Site/PackrunModel.js +66 -0
  16. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +167 -1
  17. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  18. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  19. package/lib/Models/Packhouse/Site/index.js +12 -0
  20. package/lib/PackageVersion.js +1 -1
  21. package/lib/index.d.ts +2241 -146
  22. package/package.json +1 -1
  23. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  24. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  25. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  26. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  27. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  28. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  29. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  30. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  31. package/src/Controllers/Packhouse/Site/index.js +8 -0
  32. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  33. package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
  34. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  35. package/src/Models/Packhouse/Site/PackingLineModel.js +705 -1
  36. package/src/Models/Packhouse/Site/PackrunModel.js +75 -0
  37. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +192 -1
  38. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  39. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  40. package/src/Models/Packhouse/Site/index.js +8 -0
  41. package/src/PackageVersion.js +1 -1
@@ -111,6 +111,14 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
111
111
  */
112
112
 
113
113
  _this.rejectBinScales = undefined;
114
+ /**
115
+ * An Optional Secondary Packing Line Reference
116
+ *
117
+ * @type {?Object}
118
+ * @public
119
+ */
120
+
121
+ _this.secondaryPackingLine = undefined;
114
122
  /**
115
123
  * The Automation Object for this Packing Line
116
124
  *
@@ -138,7 +146,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
138
146
  /**
139
147
  * The Optional Shift Management Object for this Packing Line
140
148
  *
141
- * @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
149
+ * @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>}}
142
150
  * @public
143
151
  */
144
152
 
@@ -312,6 +320,20 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
312
320
  }();
313
321
  }
314
322
 
323
+ if ('secondaryPackingLine' in jsonObject) {
324
+ model.secondaryPackingLine = function () {
325
+ if (jsonObject['secondaryPackingLine'] === null) {
326
+ return null;
327
+ }
328
+
329
+ if (_typeof(jsonObject['secondaryPackingLine']) !== 'object') {
330
+ return Object(jsonObject['secondaryPackingLine']);
331
+ }
332
+
333
+ return jsonObject['secondaryPackingLine'];
334
+ }();
335
+ }
336
+
315
337
  if ('automation' in jsonObject) {
316
338
  model.automation = function () {
317
339
  if (jsonObject['automation'] === null) {
@@ -470,6 +492,30 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
470
492
  pointsObject.finishFocusMeetingRequest = 0;
471
493
  }
472
494
 
495
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftStatus' in jsonObject['shiftManagement'].points) {
496
+ pointsObject.currentShiftStatus = function () {
497
+ if (typeof jsonObject['shiftManagement'].points.currentShiftStatus !== 'number') {
498
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftStatus)) ? Number(jsonObject['shiftManagement'].points.currentShiftStatus) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftStatus));
499
+ }
500
+
501
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftStatus) ? jsonObject['shiftManagement'].points.currentShiftStatus : Math.floor(jsonObject['shiftManagement'].points.currentShiftStatus);
502
+ }();
503
+ } else {
504
+ pointsObject.currentShiftStatus = 0;
505
+ }
506
+
507
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftModifyHourlyEntryRequest' in jsonObject['shiftManagement'].points) {
508
+ pointsObject.currentShiftModifyHourlyEntryRequest = function () {
509
+ if (typeof jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest !== 'number') {
510
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest)) ? Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest));
511
+ }
512
+
513
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) ? jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest : Math.floor(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest);
514
+ }();
515
+ } else {
516
+ pointsObject.currentShiftModifyHourlyEntryRequest = 0;
517
+ }
518
+
473
519
  if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'shiftSchedules' in jsonObject['shiftManagement'].points) {
474
520
  pointsObject.shiftSchedules = function () {
475
521
  if (typeof jsonObject['shiftManagement'].points.shiftSchedules !== 'number') {
@@ -482,6 +528,246 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
482
528
  pointsObject.shiftSchedules = 0;
483
529
  }
484
530
 
531
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHourTarget' in jsonObject['shiftManagement'].points) {
532
+ pointsObject.currentShiftClass1TraysPerHourTarget = function () {
533
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget !== 'number') {
534
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget));
535
+ }
536
+
537
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget);
538
+ }();
539
+ } else {
540
+ pointsObject.currentShiftClass1TraysPerHourTarget = 0;
541
+ }
542
+
543
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHourAdjustedTarget' in jsonObject['shiftManagement'].points) {
544
+ pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = function () {
545
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget !== 'number') {
546
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget));
547
+ }
548
+
549
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget);
550
+ }();
551
+ } else {
552
+ pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = 0;
553
+ }
554
+
555
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1TraysPerHour' in jsonObject['shiftManagement'].points) {
556
+ pointsObject.currentShiftClass1TraysPerHour = function () {
557
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour !== 'number') {
558
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour));
559
+ }
560
+
561
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour);
562
+ }();
563
+ } else {
564
+ pointsObject.currentShiftClass1TraysPerHour = 0;
565
+ }
566
+
567
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTrayTarget' in jsonObject['shiftManagement'].points) {
568
+ pointsObject.currentShiftCostPerTrayTarget = function () {
569
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget !== 'number') {
570
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget));
571
+ }
572
+
573
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget);
574
+ }();
575
+ } else {
576
+ pointsObject.currentShiftCostPerTrayTarget = 0;
577
+ }
578
+
579
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTrayAdjustedTarget' in jsonObject['shiftManagement'].points) {
580
+ pointsObject.currentShiftCostPerTrayAdjustedTarget = function () {
581
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget !== 'number') {
582
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget));
583
+ }
584
+
585
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget);
586
+ }();
587
+ } else {
588
+ pointsObject.currentShiftCostPerTrayAdjustedTarget = 0;
589
+ }
590
+
591
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftCostPerTray' in jsonObject['shiftManagement'].points) {
592
+ pointsObject.currentShiftCostPerTray = function () {
593
+ if (typeof jsonObject['shiftManagement'].points.currentShiftCostPerTray !== 'number') {
594
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray));
595
+ }
596
+
597
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTray);
598
+ }();
599
+ } else {
600
+ pointsObject.currentShiftCostPerTray = 0;
601
+ }
602
+
603
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftManningTarget' in jsonObject['shiftManagement'].points) {
604
+ pointsObject.currentShiftManningTarget = function () {
605
+ if (typeof jsonObject['shiftManagement'].points.currentShiftManningTarget !== 'number') {
606
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftManningTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget));
607
+ }
608
+
609
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftManningTarget) ? jsonObject['shiftManagement'].points.currentShiftManningTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftManningTarget);
610
+ }();
611
+ } else {
612
+ pointsObject.currentShiftManningTarget = 0;
613
+ }
614
+
615
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass1Manning' in jsonObject['shiftManagement'].points) {
616
+ pointsObject.currentShiftClass1Manning = function () {
617
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass1Manning !== 'number') {
618
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning));
619
+ }
620
+
621
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1Manning);
622
+ }();
623
+ } else {
624
+ pointsObject.currentShiftClass1Manning = 0;
625
+ }
626
+
627
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftClass2Manning' in jsonObject['shiftManagement'].points) {
628
+ pointsObject.currentShiftClass2Manning = function () {
629
+ if (typeof jsonObject['shiftManagement'].points.currentShiftClass2Manning !== 'number') {
630
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning));
631
+ }
632
+
633
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass2Manning);
634
+ }();
635
+ } else {
636
+ pointsObject.currentShiftClass2Manning = 0;
637
+ }
638
+
639
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftQualityR600IdealTarget' in jsonObject['shiftManagement'].points) {
640
+ pointsObject.currentShiftQualityR600IdealTarget = function () {
641
+ if (typeof jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget !== 'number') {
642
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget));
643
+ }
644
+
645
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) ? jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget);
646
+ }();
647
+ } else {
648
+ pointsObject.currentShiftQualityR600IdealTarget = 0;
649
+ }
650
+
651
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftQualityR600Ideal' in jsonObject['shiftManagement'].points) {
652
+ pointsObject.currentShiftQualityR600Ideal = function () {
653
+ if (typeof jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal !== 'number') {
654
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal));
655
+ }
656
+
657
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal);
658
+ }();
659
+ } else {
660
+ pointsObject.currentShiftQualityR600Ideal = 0;
661
+ }
662
+
663
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftScorePercentage' in jsonObject['shiftManagement'].points) {
664
+ pointsObject.currentShiftScorePercentage = function () {
665
+ if (typeof jsonObject['shiftManagement'].points.currentShiftScorePercentage !== 'number') {
666
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage));
667
+ }
668
+
669
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftScorePercentage);
670
+ }();
671
+ } else {
672
+ pointsObject.currentShiftScorePercentage = 0;
673
+ }
674
+
675
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points) {
676
+ pointsObject.class1TraysPerHourTargets = function () {
677
+ if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourTargets !== 'number') {
678
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets));
679
+ }
680
+
681
+ return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) ? jsonObject['shiftManagement'].points.class1TraysPerHourTargets : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourTargets);
682
+ }();
683
+ } else {
684
+ pointsObject.class1TraysPerHourTargets = 0;
685
+ }
686
+
687
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerTrayTargets' in jsonObject['shiftManagement'].points) {
688
+ pointsObject.costPerTrayTargets = function () {
689
+ if (typeof jsonObject['shiftManagement'].points.costPerTrayTargets !== 'number') {
690
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayTargets)) ? Number(jsonObject['shiftManagement'].points.costPerTrayTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayTargets));
691
+ }
692
+
693
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayTargets) ? jsonObject['shiftManagement'].points.costPerTrayTargets : Math.floor(jsonObject['shiftManagement'].points.costPerTrayTargets);
694
+ }();
695
+ } else {
696
+ pointsObject.costPerTrayTargets = 0;
697
+ }
698
+
699
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'manningTargets' in jsonObject['shiftManagement'].points) {
700
+ pointsObject.manningTargets = function () {
701
+ if (typeof jsonObject['shiftManagement'].points.manningTargets !== 'number') {
702
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.manningTargets)) ? Number(jsonObject['shiftManagement'].points.manningTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.manningTargets));
703
+ }
704
+
705
+ return Number.isInteger(jsonObject['shiftManagement'].points.manningTargets) ? jsonObject['shiftManagement'].points.manningTargets : Math.floor(jsonObject['shiftManagement'].points.manningTargets);
706
+ }();
707
+ } else {
708
+ pointsObject.manningTargets = 0;
709
+ }
710
+
711
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'qualityR600IdealTargets' in jsonObject['shiftManagement'].points) {
712
+ pointsObject.qualityR600IdealTargets = function () {
713
+ if (typeof jsonObject['shiftManagement'].points.qualityR600IdealTargets !== 'number') {
714
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets));
715
+ }
716
+
717
+ return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealTargets) ? jsonObject['shiftManagement'].points.qualityR600IdealTargets : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealTargets);
718
+ }();
719
+ } else {
720
+ pointsObject.qualityR600IdealTargets = 0;
721
+ }
722
+
723
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerManningUnitHour' in jsonObject['shiftManagement'].points) {
724
+ pointsObject.costPerManningUnitHour = function () {
725
+ if (typeof jsonObject['shiftManagement'].points.costPerManningUnitHour !== 'number') {
726
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour)) ? Number(jsonObject['shiftManagement'].points.costPerManningUnitHour) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour));
727
+ }
728
+
729
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerManningUnitHour) ? jsonObject['shiftManagement'].points.costPerManningUnitHour : Math.floor(jsonObject['shiftManagement'].points.costPerManningUnitHour);
730
+ }();
731
+ } else {
732
+ pointsObject.costPerManningUnitHour = 0;
733
+ }
734
+
735
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourScoreWeighting' in jsonObject['shiftManagement'].points) {
736
+ pointsObject.class1TraysPerHourScoreWeighting = function () {
737
+ if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting !== 'number') {
738
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting));
739
+ }
740
+
741
+ return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) ? jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting);
742
+ }();
743
+ } else {
744
+ pointsObject.class1TraysPerHourScoreWeighting = 0;
745
+ }
746
+
747
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerTrayScoreWeighting' in jsonObject['shiftManagement'].points) {
748
+ pointsObject.costPerTrayScoreWeighting = function () {
749
+ if (typeof jsonObject['shiftManagement'].points.costPerTrayScoreWeighting !== 'number') {
750
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting));
751
+ }
752
+
753
+ return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) ? jsonObject['shiftManagement'].points.costPerTrayScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting);
754
+ }();
755
+ } else {
756
+ pointsObject.costPerTrayScoreWeighting = 0;
757
+ }
758
+
759
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'qualityR600IdealScoreWeighting' in jsonObject['shiftManagement'].points) {
760
+ pointsObject.qualityR600IdealScoreWeighting = function () {
761
+ if (typeof jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting !== 'number') {
762
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting));
763
+ }
764
+
765
+ return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) ? jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting);
766
+ }();
767
+ } else {
768
+ pointsObject.qualityR600IdealScoreWeighting = 0;
769
+ }
770
+
485
771
  return pointsObject;
486
772
  }();
487
773
  } else {
@@ -495,11 +781,152 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
495
781
  pointsDefaultValue.currentFocusMeetingId = 0;
496
782
  pointsDefaultValue.startFocusMeetingRequest = 0;
497
783
  pointsDefaultValue.finishFocusMeetingRequest = 0;
784
+ pointsDefaultValue.currentShiftStatus = 0;
785
+ pointsDefaultValue.currentShiftModifyHourlyEntryRequest = 0;
498
786
  pointsDefaultValue.shiftSchedules = 0;
787
+ pointsDefaultValue.currentShiftClass1TraysPerHourTarget = 0;
788
+ pointsDefaultValue.currentShiftClass1TraysPerHourAdjustedTarget = 0;
789
+ pointsDefaultValue.currentShiftClass1TraysPerHour = 0;
790
+ pointsDefaultValue.currentShiftCostPerTrayTarget = 0;
791
+ pointsDefaultValue.currentShiftCostPerTrayAdjustedTarget = 0;
792
+ pointsDefaultValue.currentShiftCostPerTray = 0;
793
+ pointsDefaultValue.currentShiftManningTarget = 0;
794
+ pointsDefaultValue.currentShiftClass1Manning = 0;
795
+ pointsDefaultValue.currentShiftClass2Manning = 0;
796
+ pointsDefaultValue.currentShiftQualityR600IdealTarget = 0;
797
+ pointsDefaultValue.currentShiftQualityR600Ideal = 0;
798
+ pointsDefaultValue.currentShiftScorePercentage = 0;
799
+ pointsDefaultValue.class1TraysPerHourTargets = 0;
800
+ pointsDefaultValue.costPerTrayTargets = 0;
801
+ pointsDefaultValue.manningTargets = 0;
802
+ pointsDefaultValue.qualityR600IdealTargets = 0;
803
+ pointsDefaultValue.costPerManningUnitHour = 0;
804
+ pointsDefaultValue.class1TraysPerHourScoreWeighting = 0;
805
+ pointsDefaultValue.costPerTrayScoreWeighting = 0;
806
+ pointsDefaultValue.qualityR600IdealScoreWeighting = 0;
499
807
  return pointsDefaultValue;
500
808
  }();
501
809
  }
502
810
 
811
+ if (_typeof(jsonObject['shiftManagement']) === 'object' && 'customQualityConfiguration' in jsonObject['shiftManagement']) {
812
+ shiftManagementObject.customQualityConfiguration = function () {
813
+ if (Array.isArray(jsonObject['shiftManagement'].customQualityConfiguration) !== true) {
814
+ return [];
815
+ }
816
+
817
+ return jsonObject['shiftManagement'].customQualityConfiguration.map(function (customQualityConfigurationItem) {
818
+ return function () {
819
+ var customQualityConfigurationItemObject = {};
820
+
821
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'id' in customQualityConfigurationItem) {
822
+ customQualityConfigurationItemObject.id = function () {
823
+ if (typeof customQualityConfigurationItem.id !== 'string') {
824
+ return String(customQualityConfigurationItem.id);
825
+ }
826
+
827
+ return customQualityConfigurationItem.id;
828
+ }();
829
+ } else {
830
+ customQualityConfigurationItemObject.id = "";
831
+ }
832
+
833
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'name' in customQualityConfigurationItem) {
834
+ customQualityConfigurationItemObject.name = function () {
835
+ if (typeof customQualityConfigurationItem.name !== 'string') {
836
+ return String(customQualityConfigurationItem.name);
837
+ }
838
+
839
+ return customQualityConfigurationItem.name;
840
+ }();
841
+ } else {
842
+ customQualityConfigurationItemObject.name = "";
843
+ }
844
+
845
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'type' in customQualityConfigurationItem) {
846
+ customQualityConfigurationItemObject.type = function () {
847
+ if (typeof customQualityConfigurationItem.type !== 'string') {
848
+ return String(customQualityConfigurationItem.type);
849
+ }
850
+
851
+ return customQualityConfigurationItem.type;
852
+ }();
853
+ } else {
854
+ customQualityConfigurationItemObject.type = "";
855
+ }
856
+
857
+ if (_typeof(customQualityConfigurationItem) === 'object' && 'points' in customQualityConfigurationItem) {
858
+ customQualityConfigurationItemObject.points = function () {
859
+ var pointsObject = {};
860
+
861
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'currentShiftCustomQualityTarget' in customQualityConfigurationItem.points) {
862
+ pointsObject.currentShiftCustomQualityTarget = function () {
863
+ if (typeof customQualityConfigurationItem.points.currentShiftCustomQualityTarget !== 'number') {
864
+ return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget));
865
+ }
866
+
867
+ return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) ? customQualityConfigurationItem.points.currentShiftCustomQualityTarget : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityTarget);
868
+ }();
869
+ } else {
870
+ pointsObject.currentShiftCustomQualityTarget = 0;
871
+ }
872
+
873
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'currentShiftCustomQualityValue' in customQualityConfigurationItem.points) {
874
+ pointsObject.currentShiftCustomQualityValue = function () {
875
+ if (typeof customQualityConfigurationItem.points.currentShiftCustomQualityValue !== 'number') {
876
+ return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue));
877
+ }
878
+
879
+ return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityValue);
880
+ }();
881
+ } else {
882
+ pointsObject.currentShiftCustomQualityValue = 0;
883
+ }
884
+
885
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points) {
886
+ pointsObject.customQualityTargets = function () {
887
+ if (typeof customQualityConfigurationItem.points.customQualityTargets !== 'number') {
888
+ return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityTargets)) ? Number(customQualityConfigurationItem.points.customQualityTargets) : Math.floor(Number(customQualityConfigurationItem.points.customQualityTargets));
889
+ }
890
+
891
+ return Number.isInteger(customQualityConfigurationItem.points.customQualityTargets) ? customQualityConfigurationItem.points.customQualityTargets : Math.floor(customQualityConfigurationItem.points.customQualityTargets);
892
+ }();
893
+ } else {
894
+ pointsObject.customQualityTargets = 0;
895
+ }
896
+
897
+ if (_typeof(customQualityConfigurationItem.points) === 'object' && 'customQualityScoreWeighting' in customQualityConfigurationItem.points) {
898
+ pointsObject.customQualityScoreWeighting = function () {
899
+ if (typeof customQualityConfigurationItem.points.customQualityScoreWeighting !== 'number') {
900
+ return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityScoreWeighting)) ? Number(customQualityConfigurationItem.points.customQualityScoreWeighting) : Math.floor(Number(customQualityConfigurationItem.points.customQualityScoreWeighting));
901
+ }
902
+
903
+ return Number.isInteger(customQualityConfigurationItem.points.customQualityScoreWeighting) ? customQualityConfigurationItem.points.customQualityScoreWeighting : Math.floor(customQualityConfigurationItem.points.customQualityScoreWeighting);
904
+ }();
905
+ } else {
906
+ pointsObject.customQualityScoreWeighting = 0;
907
+ }
908
+
909
+ return pointsObject;
910
+ }();
911
+ } else {
912
+ customQualityConfigurationItemObject.points = function () {
913
+ var pointsDefaultValue = {};
914
+ pointsDefaultValue.currentShiftCustomQualityTarget = 0;
915
+ pointsDefaultValue.currentShiftCustomQualityValue = 0;
916
+ pointsDefaultValue.customQualityTargets = 0;
917
+ pointsDefaultValue.customQualityScoreWeighting = 0;
918
+ return pointsDefaultValue;
919
+ }();
920
+ }
921
+
922
+ return customQualityConfigurationItemObject;
923
+ }();
924
+ });
925
+ }();
926
+ } else {
927
+ shiftManagementObject.customQualityConfiguration = [];
928
+ }
929
+
503
930
  if (_typeof(jsonObject['shiftManagement']) === 'object' && 'enabled' in jsonObject['shiftManagement']) {
504
931
  shiftManagementObject.enabled = function () {
505
932
  if (typeof jsonObject['shiftManagement'].enabled !== 'boolean') {
@@ -512,6 +939,102 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
512
939
  shiftManagementObject.enabled = false;
513
940
  }
514
941
 
942
+ if (_typeof(jsonObject['shiftManagement']) === 'object' && 'taskDefinitions' in jsonObject['shiftManagement']) {
943
+ shiftManagementObject.taskDefinitions = function () {
944
+ if (Array.isArray(jsonObject['shiftManagement'].taskDefinitions) !== true) {
945
+ return [];
946
+ }
947
+
948
+ return jsonObject['shiftManagement'].taskDefinitions.map(function (taskDefinitionsItem) {
949
+ return function () {
950
+ var taskDefinitionsItemObject = {};
951
+
952
+ if (_typeof(taskDefinitionsItem) === 'object' && 'type' in taskDefinitionsItem) {
953
+ taskDefinitionsItemObject.type = function () {
954
+ if (typeof taskDefinitionsItem.type !== 'string') {
955
+ return String(taskDefinitionsItem.type);
956
+ }
957
+
958
+ return taskDefinitionsItem.type;
959
+ }();
960
+ } else {
961
+ taskDefinitionsItemObject.type = "";
962
+ }
963
+
964
+ if (_typeof(taskDefinitionsItem) === 'object' && 'tags' in taskDefinitionsItem) {
965
+ taskDefinitionsItemObject.tags = function () {
966
+ if (Array.isArray(taskDefinitionsItem.tags) !== true) {
967
+ return [];
968
+ }
969
+
970
+ return taskDefinitionsItem.tags.map(function (tagsItem) {
971
+ return function () {
972
+ var tagsItemObject = {};
973
+
974
+ if (_typeof(tagsItem) === 'object' && 'id' in tagsItem) {
975
+ tagsItemObject.id = function () {
976
+ if (typeof tagsItem.id !== 'string') {
977
+ return String(tagsItem.id);
978
+ }
979
+
980
+ return tagsItem.id;
981
+ }();
982
+ } else {
983
+ tagsItemObject.id = "";
984
+ }
985
+
986
+ if (_typeof(tagsItem) === 'object' && 'name' in tagsItem) {
987
+ tagsItemObject.name = function () {
988
+ if (typeof tagsItem.name !== 'string') {
989
+ return String(tagsItem.name);
990
+ }
991
+
992
+ return tagsItem.name;
993
+ }();
994
+ } else {
995
+ tagsItemObject.name = "";
996
+ }
997
+
998
+ if (_typeof(tagsItem) === 'object' && 'color' in tagsItem) {
999
+ tagsItemObject.color = function () {
1000
+ if (typeof tagsItem.color !== 'string') {
1001
+ return String(tagsItem.color);
1002
+ }
1003
+
1004
+ return tagsItem.color;
1005
+ }();
1006
+ } else {
1007
+ tagsItemObject.color = "";
1008
+ }
1009
+
1010
+ if (_typeof(tagsItem) === 'object' && 'deleted' in tagsItem) {
1011
+ tagsItemObject.deleted = function () {
1012
+ if (typeof tagsItem.deleted !== 'boolean') {
1013
+ return Boolean(tagsItem.deleted);
1014
+ }
1015
+
1016
+ return tagsItem.deleted;
1017
+ }();
1018
+ } else {
1019
+ tagsItemObject.deleted = false;
1020
+ }
1021
+
1022
+ return tagsItemObject;
1023
+ }();
1024
+ });
1025
+ }();
1026
+ } else {
1027
+ taskDefinitionsItemObject.tags = [];
1028
+ }
1029
+
1030
+ return taskDefinitionsItemObject;
1031
+ }();
1032
+ });
1033
+ }();
1034
+ } else {
1035
+ shiftManagementObject.taskDefinitions = [];
1036
+ }
1037
+
515
1038
  return shiftManagementObject;
516
1039
  }();
517
1040
  }