@ricado/api-client 2.5.15 → 2.5.16
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/PackrunController.js +26 -26
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +26 -26
- package/src/PackageVersion.js +1 -1
|
@@ -2299,58 +2299,58 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
2299
2299
|
resultObject.class2TotalTrays = 0;
|
|
2300
2300
|
}
|
|
2301
2301
|
|
|
2302
|
-
if (_typeof(result) === 'object' && '
|
|
2303
|
-
resultObject.
|
|
2304
|
-
if (Array.isArray(result.
|
|
2302
|
+
if (_typeof(result) === 'object' && 'classTypeTotals' in result) {
|
|
2303
|
+
resultObject.classTypeTotals = function () {
|
|
2304
|
+
if (Array.isArray(result.classTypeTotals) !== true) {
|
|
2305
2305
|
return [];
|
|
2306
2306
|
}
|
|
2307
2307
|
|
|
2308
|
-
return result.
|
|
2308
|
+
return result.classTypeTotals.map(function (classTypeTotalsItem) {
|
|
2309
2309
|
return function () {
|
|
2310
|
-
var
|
|
2310
|
+
var classTypeTotalsItemObject = {};
|
|
2311
2311
|
|
|
2312
|
-
if (_typeof(
|
|
2313
|
-
|
|
2314
|
-
if (typeof
|
|
2315
|
-
return String(
|
|
2312
|
+
if (_typeof(classTypeTotalsItem) === 'object' && 'classType' in classTypeTotalsItem) {
|
|
2313
|
+
classTypeTotalsItemObject.classType = function () {
|
|
2314
|
+
if (typeof classTypeTotalsItem.classType !== 'string') {
|
|
2315
|
+
return String(classTypeTotalsItem.classType);
|
|
2316
2316
|
}
|
|
2317
2317
|
|
|
2318
|
-
return
|
|
2318
|
+
return classTypeTotalsItem.classType;
|
|
2319
2319
|
}();
|
|
2320
2320
|
} else {
|
|
2321
|
-
|
|
2321
|
+
classTypeTotalsItemObject.classType = "";
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
if (_typeof(
|
|
2325
|
-
|
|
2326
|
-
if (typeof
|
|
2327
|
-
return String(
|
|
2324
|
+
if (_typeof(classTypeTotalsItem) === 'object' && 'name' in classTypeTotalsItem) {
|
|
2325
|
+
classTypeTotalsItemObject.name = function () {
|
|
2326
|
+
if (typeof classTypeTotalsItem.name !== 'string') {
|
|
2327
|
+
return String(classTypeTotalsItem.name);
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
-
return
|
|
2330
|
+
return classTypeTotalsItem.name;
|
|
2331
2331
|
}();
|
|
2332
2332
|
} else {
|
|
2333
|
-
|
|
2333
|
+
classTypeTotalsItemObject.name = "";
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
|
-
if (_typeof(
|
|
2337
|
-
|
|
2338
|
-
if (typeof
|
|
2339
|
-
return Number(
|
|
2336
|
+
if (_typeof(classTypeTotalsItem) === 'object' && 'percentage' in classTypeTotalsItem) {
|
|
2337
|
+
classTypeTotalsItemObject.percentage = function () {
|
|
2338
|
+
if (typeof classTypeTotalsItem.percentage !== 'number') {
|
|
2339
|
+
return Number(classTypeTotalsItem.percentage);
|
|
2340
2340
|
}
|
|
2341
2341
|
|
|
2342
|
-
return
|
|
2342
|
+
return classTypeTotalsItem.percentage;
|
|
2343
2343
|
}();
|
|
2344
2344
|
} else {
|
|
2345
|
-
|
|
2345
|
+
classTypeTotalsItemObject.percentage = 0;
|
|
2346
2346
|
}
|
|
2347
2347
|
|
|
2348
|
-
return
|
|
2348
|
+
return classTypeTotalsItemObject;
|
|
2349
2349
|
}();
|
|
2350
2350
|
});
|
|
2351
2351
|
}();
|
|
2352
2352
|
} else {
|
|
2353
|
-
resultObject.
|
|
2353
|
+
resultObject.classTypeTotals = [];
|
|
2354
2354
|
}
|
|
2355
2355
|
|
|
2356
2356
|
return resultObject;
|
|
@@ -2693,7 +2693,7 @@ var _default = PackrunController;
|
|
|
2693
2693
|
* @property {number} class1TraysPerBin The Number of Class 1 Trays per Bin for this Packrun
|
|
2694
2694
|
* @property {number} class1AverageFruitSize The Average Class 1 Fruit Size for this Packrun
|
|
2695
2695
|
* @property {number} class2TotalTrays The Total Class 2 Trays for this Packrun
|
|
2696
|
-
* @property {Array<PackrunController.ClassTypePercentageItem>}
|
|
2696
|
+
* @property {Array<PackrunController.ClassTypePercentageItem>} classTypeTotals An Array of Class Types and their Percentages for this Packrun
|
|
2697
2697
|
* @memberof Controllers.Packhouse.Site
|
|
2698
2698
|
*/
|
|
2699
2699
|
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -17699,7 +17699,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17699
17699
|
/**
|
|
17700
17700
|
* An Array of Class Types and their Percentages for this Packrun
|
|
17701
17701
|
*/
|
|
17702
|
-
|
|
17702
|
+
classTypeTotals: ClassTypePercentageItem[];
|
|
17703
17703
|
};
|
|
17704
17704
|
/**
|
|
17705
17705
|
* A **TimeBatch** Type
|
package/package.json
CHANGED
|
@@ -2908,74 +2908,74 @@ class PackrunController
|
|
|
2908
2908
|
resultObject.class2TotalTrays = 0;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
|
-
if(typeof result === 'object' && '
|
|
2911
|
+
if(typeof result === 'object' && 'classTypeTotals' in result)
|
|
2912
2912
|
{
|
|
2913
|
-
resultObject.
|
|
2914
|
-
if(Array.isArray(result.
|
|
2913
|
+
resultObject.classTypeTotals = (function(){
|
|
2914
|
+
if(Array.isArray(result.classTypeTotals) !== true)
|
|
2915
2915
|
{
|
|
2916
2916
|
return [];
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
|
-
return result.
|
|
2919
|
+
return result.classTypeTotals.map((classTypeTotalsItem) => {
|
|
2920
2920
|
return (function(){
|
|
2921
|
-
let
|
|
2921
|
+
let classTypeTotalsItemObject = {};
|
|
2922
2922
|
|
|
2923
|
-
if(typeof
|
|
2923
|
+
if(typeof classTypeTotalsItem === 'object' && 'classType' in classTypeTotalsItem)
|
|
2924
2924
|
{
|
|
2925
|
-
|
|
2926
|
-
if(typeof
|
|
2925
|
+
classTypeTotalsItemObject.classType = (function(){
|
|
2926
|
+
if(typeof classTypeTotalsItem.classType !== 'string')
|
|
2927
2927
|
{
|
|
2928
|
-
return String(
|
|
2928
|
+
return String(classTypeTotalsItem.classType);
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
-
return
|
|
2931
|
+
return classTypeTotalsItem.classType;
|
|
2932
2932
|
}());
|
|
2933
2933
|
}
|
|
2934
2934
|
else
|
|
2935
2935
|
{
|
|
2936
|
-
|
|
2936
|
+
classTypeTotalsItemObject.classType = "";
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
|
-
if(typeof
|
|
2939
|
+
if(typeof classTypeTotalsItem === 'object' && 'name' in classTypeTotalsItem)
|
|
2940
2940
|
{
|
|
2941
|
-
|
|
2942
|
-
if(typeof
|
|
2941
|
+
classTypeTotalsItemObject.name = (function(){
|
|
2942
|
+
if(typeof classTypeTotalsItem.name !== 'string')
|
|
2943
2943
|
{
|
|
2944
|
-
return String(
|
|
2944
|
+
return String(classTypeTotalsItem.name);
|
|
2945
2945
|
}
|
|
2946
2946
|
|
|
2947
|
-
return
|
|
2947
|
+
return classTypeTotalsItem.name;
|
|
2948
2948
|
}());
|
|
2949
2949
|
}
|
|
2950
2950
|
else
|
|
2951
2951
|
{
|
|
2952
|
-
|
|
2952
|
+
classTypeTotalsItemObject.name = "";
|
|
2953
2953
|
}
|
|
2954
2954
|
|
|
2955
|
-
if(typeof
|
|
2955
|
+
if(typeof classTypeTotalsItem === 'object' && 'percentage' in classTypeTotalsItem)
|
|
2956
2956
|
{
|
|
2957
|
-
|
|
2958
|
-
if(typeof
|
|
2957
|
+
classTypeTotalsItemObject.percentage = (function(){
|
|
2958
|
+
if(typeof classTypeTotalsItem.percentage !== 'number')
|
|
2959
2959
|
{
|
|
2960
|
-
return Number(
|
|
2960
|
+
return Number(classTypeTotalsItem.percentage);
|
|
2961
2961
|
}
|
|
2962
2962
|
|
|
2963
|
-
return
|
|
2963
|
+
return classTypeTotalsItem.percentage;
|
|
2964
2964
|
}());
|
|
2965
2965
|
}
|
|
2966
2966
|
else
|
|
2967
2967
|
{
|
|
2968
|
-
|
|
2968
|
+
classTypeTotalsItemObject.percentage = 0;
|
|
2969
2969
|
}
|
|
2970
2970
|
|
|
2971
|
-
return
|
|
2971
|
+
return classTypeTotalsItemObject;
|
|
2972
2972
|
}());
|
|
2973
2973
|
});
|
|
2974
2974
|
}());
|
|
2975
2975
|
}
|
|
2976
2976
|
else
|
|
2977
2977
|
{
|
|
2978
|
-
resultObject.
|
|
2978
|
+
resultObject.classTypeTotals = [];
|
|
2979
2979
|
}
|
|
2980
2980
|
|
|
2981
2981
|
return resultObject;
|
|
@@ -3313,7 +3313,7 @@ export default PackrunController;
|
|
|
3313
3313
|
* @property {number} class1TraysPerBin The Number of Class 1 Trays per Bin for this Packrun
|
|
3314
3314
|
* @property {number} class1AverageFruitSize The Average Class 1 Fruit Size for this Packrun
|
|
3315
3315
|
* @property {number} class2TotalTrays The Total Class 2 Trays for this Packrun
|
|
3316
|
-
* @property {Array<PackrunController.ClassTypePercentageItem>}
|
|
3316
|
+
* @property {Array<PackrunController.ClassTypePercentageItem>} classTypeTotals An Array of Class Types and their Percentages for this Packrun
|
|
3317
3317
|
* @memberof Controllers.Packhouse.Site
|
|
3318
3318
|
*/
|
|
3319
3319
|
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.5.
|
|
2
|
+
export const version = '2.5.16';
|