@ricado/api-client 2.7.1 → 2.7.3

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.
@@ -1626,6 +1626,80 @@ var ProductionDataExportController = /*#__PURE__*/function () {
1626
1626
  packrunsItemObject.class1BulkPercentage = null;
1627
1627
  }
1628
1628
 
1629
+ if (_typeof(packrunsItem) === 'object' && 'classTypeFruitSizeTotals' in packrunsItem) {
1630
+ packrunsItemObject.classTypeFruitSizeTotals = function () {
1631
+ if (Array.isArray(packrunsItem.classTypeFruitSizeTotals) !== true) {
1632
+ return [];
1633
+ }
1634
+
1635
+ return packrunsItem.classTypeFruitSizeTotals.map(function (classTypeFruitSizeTotalsItem) {
1636
+ return function () {
1637
+ var classTypeFruitSizeTotalsItemObject = {};
1638
+
1639
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'classType' in classTypeFruitSizeTotalsItem) {
1640
+ classTypeFruitSizeTotalsItemObject.classType = function () {
1641
+ if (typeof classTypeFruitSizeTotalsItem.classType !== 'string') {
1642
+ return String(classTypeFruitSizeTotalsItem.classType);
1643
+ }
1644
+
1645
+ return classTypeFruitSizeTotalsItem.classType;
1646
+ }();
1647
+ } else {
1648
+ classTypeFruitSizeTotalsItemObject.classType = "";
1649
+ }
1650
+
1651
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitSize' in classTypeFruitSizeTotalsItem) {
1652
+ classTypeFruitSizeTotalsItemObject.fruitSize = function () {
1653
+ if (classTypeFruitSizeTotalsItem.fruitSize === null) {
1654
+ return null;
1655
+ }
1656
+
1657
+ if (typeof classTypeFruitSizeTotalsItem.fruitSize !== 'string') {
1658
+ return String(classTypeFruitSizeTotalsItem.fruitSize);
1659
+ }
1660
+
1661
+ return classTypeFruitSizeTotalsItem.fruitSize;
1662
+ }();
1663
+ } else {
1664
+ classTypeFruitSizeTotalsItemObject.fruitSize = null;
1665
+ }
1666
+
1667
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitCount' in classTypeFruitSizeTotalsItem) {
1668
+ classTypeFruitSizeTotalsItemObject.fruitCount = function () {
1669
+ if (classTypeFruitSizeTotalsItem.fruitCount === null) {
1670
+ return null;
1671
+ }
1672
+
1673
+ if (typeof classTypeFruitSizeTotalsItem.fruitCount !== 'number') {
1674
+ return Number.isInteger(Number(classTypeFruitSizeTotalsItem.fruitCount)) ? Number(classTypeFruitSizeTotalsItem.fruitCount) : Math.floor(Number(classTypeFruitSizeTotalsItem.fruitCount));
1675
+ }
1676
+
1677
+ return Number.isInteger(classTypeFruitSizeTotalsItem.fruitCount) ? classTypeFruitSizeTotalsItem.fruitCount : Math.floor(classTypeFruitSizeTotalsItem.fruitCount);
1678
+ }();
1679
+ } else {
1680
+ classTypeFruitSizeTotalsItemObject.fruitCount = null;
1681
+ }
1682
+
1683
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitWeight' in classTypeFruitSizeTotalsItem) {
1684
+ classTypeFruitSizeTotalsItemObject.fruitWeight = function () {
1685
+ if (typeof classTypeFruitSizeTotalsItem.fruitWeight !== 'number') {
1686
+ return Number(classTypeFruitSizeTotalsItem.fruitWeight);
1687
+ }
1688
+
1689
+ return classTypeFruitSizeTotalsItem.fruitWeight;
1690
+ }();
1691
+ } else {
1692
+ classTypeFruitSizeTotalsItemObject.fruitWeight = 0;
1693
+ }
1694
+
1695
+ return classTypeFruitSizeTotalsItemObject;
1696
+ }();
1697
+ });
1698
+ }();
1699
+ } else {
1700
+ packrunsItemObject.classTypeFruitSizeTotals = [];
1701
+ }
1702
+
1629
1703
  return packrunsItemObject;
1630
1704
  }();
1631
1705
  });
@@ -4000,6 +4074,17 @@ var _default = ProductionDataExportController;
4000
4074
  * @memberof Controllers.Packhouse
4001
4075
  */
4002
4076
 
4077
+ /**
4078
+ * A **ClassTypeFruitSizeTotalItem** Type
4079
+ *
4080
+ * @typedef {Object} ProductionDataExportController.ClassTypeFruitSizeTotalItem
4081
+ * @property {string} classType The Class Type
4082
+ * @property {?string} fruitSize The Fruit Size
4083
+ * @property {?number} fruitCount The Fruit Count
4084
+ * @property {number} fruitWeight The Fruit Weight
4085
+ * @memberof Controllers.Packhouse
4086
+ */
4087
+
4003
4088
  /**
4004
4089
  * A **PackrunData** Type
4005
4090
  *
@@ -4118,6 +4203,7 @@ var _default = ProductionDataExportController;
4118
4203
  * @property {?number} class1LayeredPercentageTarget Target Percentage of Layered Trays that should be Produced for this Packrun
4119
4204
  * @property {?number} class1LayeredPercentage Actual Percentage of Layered Trays that were Produced during this Packrun
4120
4205
  * @property {?number} class1BulkPercentage Actual Percentage of Bulk Packs that were Produced during this Packrun
4206
+ * @property {Array<ProductionDataExportController.ClassTypeFruitSizeTotalItem>} classTypeFruitSizeTotals An Array of Totals for each Class Type by Fruit Size within the Packrun
4121
4207
  * @memberof Controllers.Packhouse
4122
4208
  */
4123
4209
 
@@ -1460,6 +1460,72 @@ var PackrunController = /*#__PURE__*/function () {
1460
1460
  resultObject.classTypeTotals = [];
1461
1461
  }
1462
1462
 
1463
+ if (_typeof(result) === 'object' && 'classTypeFruitSizeTotals' in result) {
1464
+ resultObject.classTypeFruitSizeTotals = function () {
1465
+ if (Array.isArray(result.classTypeFruitSizeTotals) !== true) {
1466
+ return [];
1467
+ }
1468
+
1469
+ return result.classTypeFruitSizeTotals.map(function (classTypeFruitSizeTotalsItem) {
1470
+ return function () {
1471
+ var classTypeFruitSizeTotalsItemObject = {};
1472
+
1473
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'classType' in classTypeFruitSizeTotalsItem) {
1474
+ classTypeFruitSizeTotalsItemObject.classType = function () {
1475
+ if (typeof classTypeFruitSizeTotalsItem.classType !== 'string') {
1476
+ return String(classTypeFruitSizeTotalsItem.classType);
1477
+ }
1478
+
1479
+ return classTypeFruitSizeTotalsItem.classType;
1480
+ }();
1481
+ } else {
1482
+ classTypeFruitSizeTotalsItemObject.classType = "";
1483
+ }
1484
+
1485
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitSize' in classTypeFruitSizeTotalsItem) {
1486
+ classTypeFruitSizeTotalsItemObject.fruitSize = function () {
1487
+ if (typeof classTypeFruitSizeTotalsItem.fruitSize !== 'string') {
1488
+ return String(classTypeFruitSizeTotalsItem.fruitSize);
1489
+ }
1490
+
1491
+ return classTypeFruitSizeTotalsItem.fruitSize;
1492
+ }();
1493
+ } else {
1494
+ classTypeFruitSizeTotalsItemObject.fruitSize = "";
1495
+ }
1496
+
1497
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitCount' in classTypeFruitSizeTotalsItem) {
1498
+ classTypeFruitSizeTotalsItemObject.fruitCount = function () {
1499
+ if (typeof classTypeFruitSizeTotalsItem.fruitCount !== 'number') {
1500
+ return Number.isInteger(Number(classTypeFruitSizeTotalsItem.fruitCount)) ? Number(classTypeFruitSizeTotalsItem.fruitCount) : Math.floor(Number(classTypeFruitSizeTotalsItem.fruitCount));
1501
+ }
1502
+
1503
+ return Number.isInteger(classTypeFruitSizeTotalsItem.fruitCount) ? classTypeFruitSizeTotalsItem.fruitCount : Math.floor(classTypeFruitSizeTotalsItem.fruitCount);
1504
+ }();
1505
+ } else {
1506
+ classTypeFruitSizeTotalsItemObject.fruitCount = 0;
1507
+ }
1508
+
1509
+ if (_typeof(classTypeFruitSizeTotalsItem) === 'object' && 'fruitWeight' in classTypeFruitSizeTotalsItem) {
1510
+ classTypeFruitSizeTotalsItemObject.fruitWeight = function () {
1511
+ if (typeof classTypeFruitSizeTotalsItem.fruitWeight !== 'number') {
1512
+ return Number(classTypeFruitSizeTotalsItem.fruitWeight);
1513
+ }
1514
+
1515
+ return classTypeFruitSizeTotalsItem.fruitWeight;
1516
+ }();
1517
+ } else {
1518
+ classTypeFruitSizeTotalsItemObject.fruitWeight = 0;
1519
+ }
1520
+
1521
+ return classTypeFruitSizeTotalsItemObject;
1522
+ }();
1523
+ });
1524
+ }();
1525
+ } else {
1526
+ resultObject.classTypeFruitSizeTotals = [];
1527
+ }
1528
+
1463
1529
  if (_typeof(result) === 'object' && 'class1SizerSummary' in result) {
1464
1530
  resultObject.class1SizerSummary = function () {
1465
1531
  if (Array.isArray(result.class1SizerSummary) !== true) {
@@ -2784,6 +2850,17 @@ var _default = PackrunController;
2784
2850
  * @memberof Controllers.Packhouse.Site
2785
2851
  */
2786
2852
 
2853
+ /**
2854
+ * A **ClassTypeFruitSizeTotalItem** Type
2855
+ *
2856
+ * @typedef {Object} PackrunController.ClassTypeFruitSizeTotalItem
2857
+ * @property {string} classType The Class Type
2858
+ * @property {string} fruitSize The Fruit Size
2859
+ * @property {number} fruitCount The Fruit Count
2860
+ * @property {number} fruitWeight The Fruit Weight
2861
+ * @memberof Controllers.Packhouse.Site
2862
+ */
2863
+
2787
2864
  /**
2788
2865
  * A **PackrunSummaryReport** Type
2789
2866
  *
@@ -2811,6 +2888,7 @@ var _default = PackrunController;
2811
2888
  * @property {Object} rejectBinSummary The Reject Bin Summary for the Packrun
2812
2889
  * @property {Object} binTipSummary The Bin Tip Summary for the Packrun
2813
2890
  * @property {Object[]} classTypeTotals An Array of Totals for each Class Type within the Packrun
2891
+ * @property {Array<PackrunController.ClassTypeFruitSizeTotalItem>} classTypeFruitSizeTotals An Array of Totals for each Class Type by Fruit Size within the Packrun
2814
2892
  * @property {Object[]} class1SizerSummary An Array of Class 1 Fruit Summaries by Size for all Sizers within the Packrun
2815
2893
  * @property {number} class1TotalTrays The Total Class 1 Trays for this Packrun
2816
2894
  * @property {number} class1AverageTrayWeight The Average Class 1 Tray Weight for this Packrun
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- var version = '2.7.1';
8
+ var version = '2.7.3';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -3284,6 +3284,27 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3284
3284
  */
3285
3285
  packingLineIds?: string[] | undefined;
3286
3286
  };
3287
+ /**
3288
+ * A **ClassTypeFruitSizeTotalItem** Type
3289
+ */
3290
+ type ClassTypeFruitSizeTotalItem = {
3291
+ /**
3292
+ * The Class Type
3293
+ */
3294
+ classType: string;
3295
+ /**
3296
+ * The Fruit Size
3297
+ */
3298
+ fruitSize: string | null;
3299
+ /**
3300
+ * The Fruit Count
3301
+ */
3302
+ fruitCount: number | null;
3303
+ /**
3304
+ * The Fruit Weight
3305
+ */
3306
+ fruitWeight: number;
3307
+ };
3287
3308
  /**
3288
3309
  * A **PackrunData** Type
3289
3310
  */
@@ -3744,6 +3765,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3744
3765
  * Actual Percentage of Bulk Packs that were Produced during this Packrun
3745
3766
  */
3746
3767
  class1BulkPercentage: number | null;
3768
+ /**
3769
+ * An Array of Totals for each Class Type by Fruit Size within the Packrun
3770
+ */
3771
+ classTypeFruitSizeTotals: ClassTypeFruitSizeTotalItem[];
3747
3772
  };
3748
3773
  /**
3749
3774
  * A **ShiftData** Type
@@ -17690,6 +17715,27 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17690
17715
  */
17691
17716
  batchSummaries: SizerBatchSummaryItem[];
17692
17717
  };
17718
+ /**
17719
+ * A **ClassTypeFruitSizeTotalItem** Type
17720
+ */
17721
+ type ClassTypeFruitSizeTotalItem = {
17722
+ /**
17723
+ * The Class Type
17724
+ */
17725
+ classType: string;
17726
+ /**
17727
+ * The Fruit Size
17728
+ */
17729
+ fruitSize: string;
17730
+ /**
17731
+ * The Fruit Count
17732
+ */
17733
+ fruitCount: number;
17734
+ /**
17735
+ * The Fruit Weight
17736
+ */
17737
+ fruitWeight: number;
17738
+ };
17693
17739
  /**
17694
17740
  * A **PackrunSummaryReport** Type
17695
17741
  */
@@ -17783,6 +17829,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17783
17829
  * An Array of Totals for each Class Type within the Packrun
17784
17830
  */
17785
17831
  classTypeTotals: any[];
17832
+ /**
17833
+ * An Array of Totals for each Class Type by Fruit Size within the Packrun
17834
+ */
17835
+ classTypeFruitSizeTotals: ClassTypeFruitSizeTotalItem[];
17786
17836
  /**
17787
17837
  * An Array of Class 1 Fruit Summaries by Size for all Sizers within the Packrun
17788
17838
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -2109,6 +2109,102 @@ class ProductionDataExportController
2109
2109
  {
2110
2110
  packrunsItemObject.class1BulkPercentage = null;
2111
2111
  }
2112
+
2113
+ if(typeof packrunsItem === 'object' && 'classTypeFruitSizeTotals' in packrunsItem)
2114
+ {
2115
+ packrunsItemObject.classTypeFruitSizeTotals = (function(){
2116
+ if(Array.isArray(packrunsItem.classTypeFruitSizeTotals) !== true)
2117
+ {
2118
+ return [];
2119
+ }
2120
+
2121
+ return packrunsItem.classTypeFruitSizeTotals.map((classTypeFruitSizeTotalsItem) => {
2122
+ return (function(){
2123
+ let classTypeFruitSizeTotalsItemObject = {};
2124
+
2125
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'classType' in classTypeFruitSizeTotalsItem)
2126
+ {
2127
+ classTypeFruitSizeTotalsItemObject.classType = (function(){
2128
+ if(typeof classTypeFruitSizeTotalsItem.classType !== 'string')
2129
+ {
2130
+ return String(classTypeFruitSizeTotalsItem.classType);
2131
+ }
2132
+
2133
+ return classTypeFruitSizeTotalsItem.classType;
2134
+ }());
2135
+ }
2136
+ else
2137
+ {
2138
+ classTypeFruitSizeTotalsItemObject.classType = "";
2139
+ }
2140
+
2141
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitSize' in classTypeFruitSizeTotalsItem)
2142
+ {
2143
+ classTypeFruitSizeTotalsItemObject.fruitSize = (function(){
2144
+ if(classTypeFruitSizeTotalsItem.fruitSize === null)
2145
+ {
2146
+ return null;
2147
+ }
2148
+
2149
+ if(typeof classTypeFruitSizeTotalsItem.fruitSize !== 'string')
2150
+ {
2151
+ return String(classTypeFruitSizeTotalsItem.fruitSize);
2152
+ }
2153
+
2154
+ return classTypeFruitSizeTotalsItem.fruitSize;
2155
+ }());
2156
+ }
2157
+ else
2158
+ {
2159
+ classTypeFruitSizeTotalsItemObject.fruitSize = null;
2160
+ }
2161
+
2162
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitCount' in classTypeFruitSizeTotalsItem)
2163
+ {
2164
+ classTypeFruitSizeTotalsItemObject.fruitCount = (function(){
2165
+ if(classTypeFruitSizeTotalsItem.fruitCount === null)
2166
+ {
2167
+ return null;
2168
+ }
2169
+
2170
+ if(typeof classTypeFruitSizeTotalsItem.fruitCount !== 'number')
2171
+ {
2172
+ return Number.isInteger(Number(classTypeFruitSizeTotalsItem.fruitCount)) ? Number(classTypeFruitSizeTotalsItem.fruitCount) : Math.floor(Number(classTypeFruitSizeTotalsItem.fruitCount));
2173
+ }
2174
+
2175
+ return Number.isInteger(classTypeFruitSizeTotalsItem.fruitCount) ? classTypeFruitSizeTotalsItem.fruitCount : Math.floor(classTypeFruitSizeTotalsItem.fruitCount);
2176
+ }());
2177
+ }
2178
+ else
2179
+ {
2180
+ classTypeFruitSizeTotalsItemObject.fruitCount = null;
2181
+ }
2182
+
2183
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitWeight' in classTypeFruitSizeTotalsItem)
2184
+ {
2185
+ classTypeFruitSizeTotalsItemObject.fruitWeight = (function(){
2186
+ if(typeof classTypeFruitSizeTotalsItem.fruitWeight !== 'number')
2187
+ {
2188
+ return Number(classTypeFruitSizeTotalsItem.fruitWeight);
2189
+ }
2190
+
2191
+ return classTypeFruitSizeTotalsItem.fruitWeight;
2192
+ }());
2193
+ }
2194
+ else
2195
+ {
2196
+ classTypeFruitSizeTotalsItemObject.fruitWeight = 0;
2197
+ }
2198
+
2199
+ return classTypeFruitSizeTotalsItemObject;
2200
+ }());
2201
+ });
2202
+ }());
2203
+ }
2204
+ else
2205
+ {
2206
+ packrunsItemObject.classTypeFruitSizeTotals = [];
2207
+ }
2112
2208
 
2113
2209
  return packrunsItemObject;
2114
2210
  }());
@@ -5202,6 +5298,17 @@ export default ProductionDataExportController;
5202
5298
  * @memberof Controllers.Packhouse
5203
5299
  */
5204
5300
 
5301
+ /**
5302
+ * A **ClassTypeFruitSizeTotalItem** Type
5303
+ *
5304
+ * @typedef {Object} ProductionDataExportController.ClassTypeFruitSizeTotalItem
5305
+ * @property {string} classType The Class Type
5306
+ * @property {?string} fruitSize The Fruit Size
5307
+ * @property {?number} fruitCount The Fruit Count
5308
+ * @property {number} fruitWeight The Fruit Weight
5309
+ * @memberof Controllers.Packhouse
5310
+ */
5311
+
5205
5312
  /**
5206
5313
  * A **PackrunData** Type
5207
5314
  *
@@ -5320,6 +5427,7 @@ export default ProductionDataExportController;
5320
5427
  * @property {?number} class1LayeredPercentageTarget Target Percentage of Layered Trays that should be Produced for this Packrun
5321
5428
  * @property {?number} class1LayeredPercentage Actual Percentage of Layered Trays that were Produced during this Packrun
5322
5429
  * @property {?number} class1BulkPercentage Actual Percentage of Bulk Packs that were Produced during this Packrun
5430
+ * @property {Array<ProductionDataExportController.ClassTypeFruitSizeTotalItem>} classTypeFruitSizeTotals An Array of Totals for each Class Type by Fruit Size within the Packrun
5323
5431
  * @memberof Controllers.Packhouse
5324
5432
  */
5325
5433
 
@@ -1817,6 +1817,92 @@ class PackrunController
1817
1817
  resultObject.classTypeTotals = [];
1818
1818
  }
1819
1819
 
1820
+ if(typeof result === 'object' && 'classTypeFruitSizeTotals' in result)
1821
+ {
1822
+ resultObject.classTypeFruitSizeTotals = (function(){
1823
+ if(Array.isArray(result.classTypeFruitSizeTotals) !== true)
1824
+ {
1825
+ return [];
1826
+ }
1827
+
1828
+ return result.classTypeFruitSizeTotals.map((classTypeFruitSizeTotalsItem) => {
1829
+ return (function(){
1830
+ let classTypeFruitSizeTotalsItemObject = {};
1831
+
1832
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'classType' in classTypeFruitSizeTotalsItem)
1833
+ {
1834
+ classTypeFruitSizeTotalsItemObject.classType = (function(){
1835
+ if(typeof classTypeFruitSizeTotalsItem.classType !== 'string')
1836
+ {
1837
+ return String(classTypeFruitSizeTotalsItem.classType);
1838
+ }
1839
+
1840
+ return classTypeFruitSizeTotalsItem.classType;
1841
+ }());
1842
+ }
1843
+ else
1844
+ {
1845
+ classTypeFruitSizeTotalsItemObject.classType = "";
1846
+ }
1847
+
1848
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitSize' in classTypeFruitSizeTotalsItem)
1849
+ {
1850
+ classTypeFruitSizeTotalsItemObject.fruitSize = (function(){
1851
+ if(typeof classTypeFruitSizeTotalsItem.fruitSize !== 'string')
1852
+ {
1853
+ return String(classTypeFruitSizeTotalsItem.fruitSize);
1854
+ }
1855
+
1856
+ return classTypeFruitSizeTotalsItem.fruitSize;
1857
+ }());
1858
+ }
1859
+ else
1860
+ {
1861
+ classTypeFruitSizeTotalsItemObject.fruitSize = "";
1862
+ }
1863
+
1864
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitCount' in classTypeFruitSizeTotalsItem)
1865
+ {
1866
+ classTypeFruitSizeTotalsItemObject.fruitCount = (function(){
1867
+ if(typeof classTypeFruitSizeTotalsItem.fruitCount !== 'number')
1868
+ {
1869
+ return Number.isInteger(Number(classTypeFruitSizeTotalsItem.fruitCount)) ? Number(classTypeFruitSizeTotalsItem.fruitCount) : Math.floor(Number(classTypeFruitSizeTotalsItem.fruitCount));
1870
+ }
1871
+
1872
+ return Number.isInteger(classTypeFruitSizeTotalsItem.fruitCount) ? classTypeFruitSizeTotalsItem.fruitCount : Math.floor(classTypeFruitSizeTotalsItem.fruitCount);
1873
+ }());
1874
+ }
1875
+ else
1876
+ {
1877
+ classTypeFruitSizeTotalsItemObject.fruitCount = 0;
1878
+ }
1879
+
1880
+ if(typeof classTypeFruitSizeTotalsItem === 'object' && 'fruitWeight' in classTypeFruitSizeTotalsItem)
1881
+ {
1882
+ classTypeFruitSizeTotalsItemObject.fruitWeight = (function(){
1883
+ if(typeof classTypeFruitSizeTotalsItem.fruitWeight !== 'number')
1884
+ {
1885
+ return Number(classTypeFruitSizeTotalsItem.fruitWeight);
1886
+ }
1887
+
1888
+ return classTypeFruitSizeTotalsItem.fruitWeight;
1889
+ }());
1890
+ }
1891
+ else
1892
+ {
1893
+ classTypeFruitSizeTotalsItemObject.fruitWeight = 0;
1894
+ }
1895
+
1896
+ return classTypeFruitSizeTotalsItemObject;
1897
+ }());
1898
+ });
1899
+ }());
1900
+ }
1901
+ else
1902
+ {
1903
+ resultObject.classTypeFruitSizeTotals = [];
1904
+ }
1905
+
1820
1906
  if(typeof result === 'object' && 'class1SizerSummary' in result)
1821
1907
  {
1822
1908
  resultObject.class1SizerSummary = (function(){
@@ -3436,6 +3522,17 @@ export default PackrunController;
3436
3522
  * @memberof Controllers.Packhouse.Site
3437
3523
  */
3438
3524
 
3525
+ /**
3526
+ * A **ClassTypeFruitSizeTotalItem** Type
3527
+ *
3528
+ * @typedef {Object} PackrunController.ClassTypeFruitSizeTotalItem
3529
+ * @property {string} classType The Class Type
3530
+ * @property {string} fruitSize The Fruit Size
3531
+ * @property {number} fruitCount The Fruit Count
3532
+ * @property {number} fruitWeight The Fruit Weight
3533
+ * @memberof Controllers.Packhouse.Site
3534
+ */
3535
+
3439
3536
  /**
3440
3537
  * A **PackrunSummaryReport** Type
3441
3538
  *
@@ -3463,6 +3560,7 @@ export default PackrunController;
3463
3560
  * @property {Object} rejectBinSummary The Reject Bin Summary for the Packrun
3464
3561
  * @property {Object} binTipSummary The Bin Tip Summary for the Packrun
3465
3562
  * @property {Object[]} classTypeTotals An Array of Totals for each Class Type within the Packrun
3563
+ * @property {Array<PackrunController.ClassTypeFruitSizeTotalItem>} classTypeFruitSizeTotals An Array of Totals for each Class Type by Fruit Size within the Packrun
3466
3564
  * @property {Object[]} class1SizerSummary An Array of Class 1 Fruit Summaries by Size for all Sizers within the Packrun
3467
3565
  * @property {number} class1TotalTrays The Total Class 1 Trays for this Packrun
3468
3566
  * @property {number} class1AverageTrayWeight The Average Class 1 Tray Weight for this Packrun
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.7.1';
2
+ export const version = '2.7.3';