@ricado/api-client 2.7.2 → 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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/ProductionDataExportController.js +86 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +25 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/ProductionDataExportController.js +108 -0
- package/src/PackageVersion.js +1 -1
|
@@ -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
|
|
package/lib/PackageVersion.js
CHANGED
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
|
package/package.json
CHANGED
|
@@ -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
|
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.7.
|
|
2
|
+
export const version = '2.7.3';
|