@ricado/api-client 2.5.7 → 2.5.9
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/PackingLineController.js +2 -2
- package/lib/Controllers/Packhouse/Site/PackrunController.js +544 -0
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/lib/Models/Packhouse/Site/PackingLineModel.js +159 -2
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +6 -2
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +159 -6
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -2
- package/src/Controllers/Packhouse/Site/PackrunController.js +699 -0
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/src/Models/Packhouse/Site/PackingLineModel.js +214 -2
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +7 -2
- package/src/PackageVersion.js +1 -1
|
@@ -213,7 +213,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
213
213
|
/**
|
|
214
214
|
* The FreshPack Integration Configuration for this Packing Line
|
|
215
215
|
*
|
|
216
|
-
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
216
|
+
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, varieties: ?number, produces: ?number, growingMethods: ?number, fruitClasses: ?number, fruitSizes: ?number, packStyles: ?number, nssLabelTypes: ?number, multiGrowerBinProducts: ?number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number, classTypeMultiGrowerBinProductIds: ?number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: ?Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
217
217
|
* @public
|
|
218
218
|
*/
|
|
219
219
|
|
|
@@ -4069,6 +4069,134 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4069
4069
|
pointsObject.marketHolds = 0;
|
|
4070
4070
|
}
|
|
4071
4071
|
|
|
4072
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'varieties' in jsonObject['freshPackIntegration'].points) {
|
|
4073
|
+
pointsObject.varieties = function () {
|
|
4074
|
+
if (jsonObject['freshPackIntegration'].points.varieties === null) {
|
|
4075
|
+
return null;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
if (typeof jsonObject['freshPackIntegration'].points.varieties !== 'number') {
|
|
4079
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.varieties)) ? Number(jsonObject['freshPackIntegration'].points.varieties) : Math.floor(Number(jsonObject['freshPackIntegration'].points.varieties));
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.varieties) ? jsonObject['freshPackIntegration'].points.varieties : Math.floor(jsonObject['freshPackIntegration'].points.varieties);
|
|
4083
|
+
}();
|
|
4084
|
+
} else {
|
|
4085
|
+
pointsObject.varieties = null;
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4088
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'produces' in jsonObject['freshPackIntegration'].points) {
|
|
4089
|
+
pointsObject.produces = function () {
|
|
4090
|
+
if (jsonObject['freshPackIntegration'].points.produces === null) {
|
|
4091
|
+
return null;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
if (typeof jsonObject['freshPackIntegration'].points.produces !== 'number') {
|
|
4095
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.produces)) ? Number(jsonObject['freshPackIntegration'].points.produces) : Math.floor(Number(jsonObject['freshPackIntegration'].points.produces));
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.produces) ? jsonObject['freshPackIntegration'].points.produces : Math.floor(jsonObject['freshPackIntegration'].points.produces);
|
|
4099
|
+
}();
|
|
4100
|
+
} else {
|
|
4101
|
+
pointsObject.produces = null;
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'growingMethods' in jsonObject['freshPackIntegration'].points) {
|
|
4105
|
+
pointsObject.growingMethods = function () {
|
|
4106
|
+
if (jsonObject['freshPackIntegration'].points.growingMethods === null) {
|
|
4107
|
+
return null;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
if (typeof jsonObject['freshPackIntegration'].points.growingMethods !== 'number') {
|
|
4111
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.growingMethods)) ? Number(jsonObject['freshPackIntegration'].points.growingMethods) : Math.floor(Number(jsonObject['freshPackIntegration'].points.growingMethods));
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.growingMethods) ? jsonObject['freshPackIntegration'].points.growingMethods : Math.floor(jsonObject['freshPackIntegration'].points.growingMethods);
|
|
4115
|
+
}();
|
|
4116
|
+
} else {
|
|
4117
|
+
pointsObject.growingMethods = null;
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'fruitClasses' in jsonObject['freshPackIntegration'].points) {
|
|
4121
|
+
pointsObject.fruitClasses = function () {
|
|
4122
|
+
if (jsonObject['freshPackIntegration'].points.fruitClasses === null) {
|
|
4123
|
+
return null;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
if (typeof jsonObject['freshPackIntegration'].points.fruitClasses !== 'number') {
|
|
4127
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitClasses)) ? Number(jsonObject['freshPackIntegration'].points.fruitClasses) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitClasses));
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitClasses) ? jsonObject['freshPackIntegration'].points.fruitClasses : Math.floor(jsonObject['freshPackIntegration'].points.fruitClasses);
|
|
4131
|
+
}();
|
|
4132
|
+
} else {
|
|
4133
|
+
pointsObject.fruitClasses = null;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'fruitSizes' in jsonObject['freshPackIntegration'].points) {
|
|
4137
|
+
pointsObject.fruitSizes = function () {
|
|
4138
|
+
if (jsonObject['freshPackIntegration'].points.fruitSizes === null) {
|
|
4139
|
+
return null;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
if (typeof jsonObject['freshPackIntegration'].points.fruitSizes !== 'number') {
|
|
4143
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitSizes)) ? Number(jsonObject['freshPackIntegration'].points.fruitSizes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitSizes));
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitSizes) ? jsonObject['freshPackIntegration'].points.fruitSizes : Math.floor(jsonObject['freshPackIntegration'].points.fruitSizes);
|
|
4147
|
+
}();
|
|
4148
|
+
} else {
|
|
4149
|
+
pointsObject.fruitSizes = null;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'packStyles' in jsonObject['freshPackIntegration'].points) {
|
|
4153
|
+
pointsObject.packStyles = function () {
|
|
4154
|
+
if (jsonObject['freshPackIntegration'].points.packStyles === null) {
|
|
4155
|
+
return null;
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
if (typeof jsonObject['freshPackIntegration'].points.packStyles !== 'number') {
|
|
4159
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.packStyles)) ? Number(jsonObject['freshPackIntegration'].points.packStyles) : Math.floor(Number(jsonObject['freshPackIntegration'].points.packStyles));
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.packStyles) ? jsonObject['freshPackIntegration'].points.packStyles : Math.floor(jsonObject['freshPackIntegration'].points.packStyles);
|
|
4163
|
+
}();
|
|
4164
|
+
} else {
|
|
4165
|
+
pointsObject.packStyles = null;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'nssLabelTypes' in jsonObject['freshPackIntegration'].points) {
|
|
4169
|
+
pointsObject.nssLabelTypes = function () {
|
|
4170
|
+
if (jsonObject['freshPackIntegration'].points.nssLabelTypes === null) {
|
|
4171
|
+
return null;
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4174
|
+
if (typeof jsonObject['freshPackIntegration'].points.nssLabelTypes !== 'number') {
|
|
4175
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes)) ? Number(jsonObject['freshPackIntegration'].points.nssLabelTypes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes));
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.nssLabelTypes) ? jsonObject['freshPackIntegration'].points.nssLabelTypes : Math.floor(jsonObject['freshPackIntegration'].points.nssLabelTypes);
|
|
4179
|
+
}();
|
|
4180
|
+
} else {
|
|
4181
|
+
pointsObject.nssLabelTypes = null;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4184
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'multiGrowerBinProducts' in jsonObject['freshPackIntegration'].points) {
|
|
4185
|
+
pointsObject.multiGrowerBinProducts = function () {
|
|
4186
|
+
if (jsonObject['freshPackIntegration'].points.multiGrowerBinProducts === null) {
|
|
4187
|
+
return null;
|
|
4188
|
+
}
|
|
4189
|
+
|
|
4190
|
+
if (typeof jsonObject['freshPackIntegration'].points.multiGrowerBinProducts !== 'number') {
|
|
4191
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts)) ? Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) : Math.floor(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts));
|
|
4192
|
+
}
|
|
4193
|
+
|
|
4194
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) ? jsonObject['freshPackIntegration'].points.multiGrowerBinProducts : Math.floor(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts);
|
|
4195
|
+
}();
|
|
4196
|
+
} else {
|
|
4197
|
+
pointsObject.multiGrowerBinProducts = null;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4072
4200
|
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'apiCommunicationStatus' in jsonObject['freshPackIntegration'].points) {
|
|
4073
4201
|
pointsObject.apiCommunicationStatus = function () {
|
|
4074
4202
|
if (typeof jsonObject['freshPackIntegration'].points.apiCommunicationStatus !== 'number') {
|
|
@@ -4185,6 +4313,22 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4185
4313
|
pointsObject.activeTimeBatch = null;
|
|
4186
4314
|
}
|
|
4187
4315
|
|
|
4316
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'classTypeMultiGrowerBinProductIds' in jsonObject['freshPackIntegration'].points) {
|
|
4317
|
+
pointsObject.classTypeMultiGrowerBinProductIds = function () {
|
|
4318
|
+
if (jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds === null) {
|
|
4319
|
+
return null;
|
|
4320
|
+
}
|
|
4321
|
+
|
|
4322
|
+
if (typeof jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds !== 'number') {
|
|
4323
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds)) ? Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds));
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) ? jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds : Math.floor(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds);
|
|
4327
|
+
}();
|
|
4328
|
+
} else {
|
|
4329
|
+
pointsObject.classTypeMultiGrowerBinProductIds = null;
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4188
4332
|
return pointsObject;
|
|
4189
4333
|
}();
|
|
4190
4334
|
} else {
|
|
@@ -4197,6 +4341,14 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4197
4341
|
pointsDefaultValue.rejectCategories = 0;
|
|
4198
4342
|
pointsDefaultValue.productionFacilities = 0;
|
|
4199
4343
|
pointsDefaultValue.marketHolds = 0;
|
|
4344
|
+
pointsDefaultValue.varieties = null;
|
|
4345
|
+
pointsDefaultValue.produces = null;
|
|
4346
|
+
pointsDefaultValue.growingMethods = null;
|
|
4347
|
+
pointsDefaultValue.fruitClasses = null;
|
|
4348
|
+
pointsDefaultValue.fruitSizes = null;
|
|
4349
|
+
pointsDefaultValue.packStyles = null;
|
|
4350
|
+
pointsDefaultValue.nssLabelTypes = null;
|
|
4351
|
+
pointsDefaultValue.multiGrowerBinProducts = null;
|
|
4200
4352
|
pointsDefaultValue.apiCommunicationStatus = 0;
|
|
4201
4353
|
pointsDefaultValue.currentPackrunClearanceSummary = 0;
|
|
4202
4354
|
pointsDefaultValue.nextPackrunClearanceSummary = 0;
|
|
@@ -4205,6 +4357,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4205
4357
|
pointsDefaultValue.apiVersion = null;
|
|
4206
4358
|
pointsDefaultValue.activePackrunName = null;
|
|
4207
4359
|
pointsDefaultValue.activeTimeBatch = null;
|
|
4360
|
+
pointsDefaultValue.classTypeMultiGrowerBinProductIds = null;
|
|
4208
4361
|
return pointsDefaultValue;
|
|
4209
4362
|
}();
|
|
4210
4363
|
}
|
|
@@ -4279,6 +4432,10 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4279
4432
|
|
|
4280
4433
|
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'classTypeRejectCategoryIds' in jsonObject['freshPackIntegration']) {
|
|
4281
4434
|
freshPackIntegrationObject.classTypeRejectCategoryIds = function () {
|
|
4435
|
+
if (jsonObject['freshPackIntegration'].classTypeRejectCategoryIds === null) {
|
|
4436
|
+
return null;
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4282
4439
|
if (Array.isArray(jsonObject['freshPackIntegration'].classTypeRejectCategoryIds) !== true) {
|
|
4283
4440
|
return [];
|
|
4284
4441
|
}
|
|
@@ -4316,7 +4473,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4316
4473
|
});
|
|
4317
4474
|
}();
|
|
4318
4475
|
} else {
|
|
4319
|
-
freshPackIntegrationObject.classTypeRejectCategoryIds =
|
|
4476
|
+
freshPackIntegrationObject.classTypeRejectCategoryIds = null;
|
|
4320
4477
|
}
|
|
4321
4478
|
|
|
4322
4479
|
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'packrunSourceTrayClassTypes' in jsonObject['freshPackIntegration']) {
|
|
@@ -253,7 +253,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
253
253
|
/**
|
|
254
254
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
255
255
|
*
|
|
256
|
-
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
256
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
257
257
|
* @public
|
|
258
258
|
*/
|
|
259
259
|
|
|
@@ -1087,6 +1087,10 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
1087
1087
|
|
|
1088
1088
|
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration']) {
|
|
1089
1089
|
freshPackIntegrationObject.materialGroupId = function () {
|
|
1090
|
+
if (jsonObject['freshPackIntegration'].materialGroupId === null) {
|
|
1091
|
+
return null;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1090
1094
|
if (typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number') {
|
|
1091
1095
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
1092
1096
|
}
|
|
@@ -1094,7 +1098,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
1094
1098
|
return Number.isInteger(jsonObject['freshPackIntegration'].materialGroupId) ? jsonObject['freshPackIntegration'].materialGroupId : Math.floor(jsonObject['freshPackIntegration'].materialGroupId);
|
|
1095
1099
|
}();
|
|
1096
1100
|
} else {
|
|
1097
|
-
freshPackIntegrationObject.materialGroupId =
|
|
1101
|
+
freshPackIntegrationObject.materialGroupId = null;
|
|
1098
1102
|
}
|
|
1099
1103
|
|
|
1100
1104
|
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'binTypeId' in jsonObject['freshPackIntegration']) {
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -16651,6 +16651,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16651
16651
|
rejectCategories: number;
|
|
16652
16652
|
productionFacilities: number;
|
|
16653
16653
|
marketHolds: number;
|
|
16654
|
+
varieties: number | null;
|
|
16655
|
+
produces: number | null;
|
|
16656
|
+
growingMethods: number | null;
|
|
16657
|
+
fruitClasses: number | null;
|
|
16658
|
+
fruitSizes: number | null;
|
|
16659
|
+
packStyles: number | null;
|
|
16660
|
+
nssLabelTypes: number | null;
|
|
16661
|
+
multiGrowerBinProducts: number | null;
|
|
16654
16662
|
apiCommunicationStatus: number;
|
|
16655
16663
|
currentPackrunClearanceSummary: number;
|
|
16656
16664
|
nextPackrunClearanceSummary: number;
|
|
@@ -16659,6 +16667,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16659
16667
|
apiVersion: number | null;
|
|
16660
16668
|
activePackrunName: number | null;
|
|
16661
16669
|
activeTimeBatch: number | null;
|
|
16670
|
+
classTypeMultiGrowerBinProductIds: number | null;
|
|
16662
16671
|
};
|
|
16663
16672
|
/**
|
|
16664
16673
|
* Whether the FreshPack Integration is Enabled on this Packing Line
|
|
@@ -16683,7 +16692,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16683
16692
|
/**
|
|
16684
16693
|
* An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
16685
16694
|
*/
|
|
16686
|
-
classTypeRejectCategoryIds
|
|
16695
|
+
classTypeRejectCategoryIds?: ClassTypeRejectCategory[] | null;
|
|
16687
16696
|
/**
|
|
16688
16697
|
* An Optional Array of Class Types that should be collected from FreshPack Tray Totals on this Packing Line
|
|
16689
16698
|
*/
|
|
@@ -16867,6 +16876,18 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
16867
16876
|
* @return {Promise<PackrunController.PackrunInfeedReport>}
|
|
16868
16877
|
*/
|
|
16869
16878
|
static getInfeedReport(siteId: number, id: string): Promise<PackrunController.PackrunInfeedReport>;
|
|
16879
|
+
/**
|
|
16880
|
+
* Retrive a Packrun's Latest Summary Data [GET /packhouse/sites/{siteId}/packruns/{id}/latestSummaryData]
|
|
16881
|
+
*
|
|
16882
|
+
* Retrieves the Latest Summary Data for a Packrun
|
|
16883
|
+
*
|
|
16884
|
+
* @static
|
|
16885
|
+
* @public
|
|
16886
|
+
* @param {number} siteId The Site ID
|
|
16887
|
+
* @param {string} id The Packrun ID
|
|
16888
|
+
* @return {Promise<PackrunController.PackrunLatestSummaryData>}
|
|
16889
|
+
*/
|
|
16890
|
+
static getLatestSummaryData(siteId: number, id: string): Promise<PackrunController.PackrunLatestSummaryData>;
|
|
16870
16891
|
/**
|
|
16871
16892
|
* List all Packruns [GET /packhouse/sites/{siteId}/packruns]
|
|
16872
16893
|
*
|
|
@@ -17472,6 +17493,129 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17472
17493
|
*/
|
|
17473
17494
|
softSortEventsNotAccurateReason: string | null;
|
|
17474
17495
|
};
|
|
17496
|
+
/**
|
|
17497
|
+
* A **FruitSizeProfileItem** Type
|
|
17498
|
+
*/
|
|
17499
|
+
export type FruitSizeProfileItem = {
|
|
17500
|
+
/**
|
|
17501
|
+
* The Fruit Size
|
|
17502
|
+
*/
|
|
17503
|
+
fruitSize: string;
|
|
17504
|
+
/**
|
|
17505
|
+
* The Fruit Count
|
|
17506
|
+
*/
|
|
17507
|
+
fruitCount: number;
|
|
17508
|
+
/**
|
|
17509
|
+
* The Percentage of Total Fruit for this Fruit Size
|
|
17510
|
+
*/
|
|
17511
|
+
percentage: number;
|
|
17512
|
+
};
|
|
17513
|
+
/**
|
|
17514
|
+
* A **ClassTypePercentageItem** Type
|
|
17515
|
+
*/
|
|
17516
|
+
export type ClassTypePercentageItem = {
|
|
17517
|
+
/**
|
|
17518
|
+
* The Class Type
|
|
17519
|
+
*/
|
|
17520
|
+
classType: string;
|
|
17521
|
+
/**
|
|
17522
|
+
* The Class Type Name
|
|
17523
|
+
*/
|
|
17524
|
+
name: string;
|
|
17525
|
+
/**
|
|
17526
|
+
* The Percentage of Total Weight for this Class Type
|
|
17527
|
+
*/
|
|
17528
|
+
percentage: number;
|
|
17529
|
+
};
|
|
17530
|
+
/**
|
|
17531
|
+
* A **PackrunLatestSummaryData** Type
|
|
17532
|
+
*/
|
|
17533
|
+
export type PackrunLatestSummaryData = {
|
|
17534
|
+
/**
|
|
17535
|
+
* The Packrun ID
|
|
17536
|
+
*/
|
|
17537
|
+
id: string;
|
|
17538
|
+
/**
|
|
17539
|
+
* The Packrun Name
|
|
17540
|
+
*/
|
|
17541
|
+
name: string;
|
|
17542
|
+
/**
|
|
17543
|
+
* When the Packrun was Created
|
|
17544
|
+
*/
|
|
17545
|
+
createdTimestamp: Date;
|
|
17546
|
+
/**
|
|
17547
|
+
* The Grower Name
|
|
17548
|
+
*/
|
|
17549
|
+
growerName: string;
|
|
17550
|
+
/**
|
|
17551
|
+
* The Grower Code
|
|
17552
|
+
*/
|
|
17553
|
+
growerCode: string;
|
|
17554
|
+
/**
|
|
17555
|
+
* The Maturity Area
|
|
17556
|
+
*/
|
|
17557
|
+
maturityArea: string | null;
|
|
17558
|
+
/**
|
|
17559
|
+
* When the Packrun was Started
|
|
17560
|
+
*/
|
|
17561
|
+
startTimestamp: Date | null;
|
|
17562
|
+
/**
|
|
17563
|
+
* When the Packrun was Finished
|
|
17564
|
+
*/
|
|
17565
|
+
finishTimestamp: Date | null;
|
|
17566
|
+
/**
|
|
17567
|
+
* The Variety for the Packrun
|
|
17568
|
+
*/
|
|
17569
|
+
variety: VarietyItem;
|
|
17570
|
+
/**
|
|
17571
|
+
* The Growing Method for the Packrun
|
|
17572
|
+
*/
|
|
17573
|
+
growingMethod: GrowingMethodItem;
|
|
17574
|
+
/**
|
|
17575
|
+
* The Packing Line ID
|
|
17576
|
+
*/
|
|
17577
|
+
packingLineId: string;
|
|
17578
|
+
/**
|
|
17579
|
+
* The Packing Line Name
|
|
17580
|
+
*/
|
|
17581
|
+
packingLineName: string;
|
|
17582
|
+
/**
|
|
17583
|
+
* The Status of this Packrun
|
|
17584
|
+
*/
|
|
17585
|
+
status: string;
|
|
17586
|
+
/**
|
|
17587
|
+
* The Number of Bins Allocated for the Packrun
|
|
17588
|
+
*/
|
|
17589
|
+
allocatedBins: number;
|
|
17590
|
+
/**
|
|
17591
|
+
* The Number of Bins Tipped for the Packrun
|
|
17592
|
+
*/
|
|
17593
|
+
tippedBins: number;
|
|
17594
|
+
/**
|
|
17595
|
+
* An Array of Class 1 Fruit Profiles by Size for the Packrun
|
|
17596
|
+
*/
|
|
17597
|
+
class1FruitSizeProfile: FruitSizeProfileItem[];
|
|
17598
|
+
/**
|
|
17599
|
+
* The Total Class 1 Trays for this Packrun
|
|
17600
|
+
*/
|
|
17601
|
+
class1TotalTrays: number;
|
|
17602
|
+
/**
|
|
17603
|
+
* The Number of Class 1 Trays per Bin for this Packrun
|
|
17604
|
+
*/
|
|
17605
|
+
class1TraysPerBin: number;
|
|
17606
|
+
/**
|
|
17607
|
+
* The Average Class 1 Fruit Size for this Packrun
|
|
17608
|
+
*/
|
|
17609
|
+
class1AverageFruitSize: number;
|
|
17610
|
+
/**
|
|
17611
|
+
* The Total Class 2 Trays for this Packrun
|
|
17612
|
+
*/
|
|
17613
|
+
class2TotalTrays: number;
|
|
17614
|
+
/**
|
|
17615
|
+
* An Array of Class Types and their Percentages for this Packrun
|
|
17616
|
+
*/
|
|
17617
|
+
classTypes: ClassTypePercentageItem[];
|
|
17618
|
+
};
|
|
17475
17619
|
/**
|
|
17476
17620
|
* A **TimeBatch** Type
|
|
17477
17621
|
*/
|
|
@@ -18505,7 +18649,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/RejectBinScaleCont
|
|
|
18505
18649
|
/**
|
|
18506
18650
|
* The FreshPack Material Group ID to be used for Multi-Grower Bins from this Reject Bin Scale
|
|
18507
18651
|
*/
|
|
18508
|
-
materialGroupId: number;
|
|
18652
|
+
materialGroupId: number | null;
|
|
18509
18653
|
/**
|
|
18510
18654
|
* The FreshPack Bin Type ID to be used for Multi-Grower Bins from this Reject Bin Scale
|
|
18511
18655
|
*/
|
|
@@ -26877,7 +27021,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26877
27021
|
/**
|
|
26878
27022
|
* The FreshPack Integration Configuration for this Packing Line
|
|
26879
27023
|
*
|
|
26880
|
-
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
27024
|
+
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, varieties: ?number, produces: ?number, growingMethods: ?number, fruitClasses: ?number, fruitSizes: ?number, packStyles: ?number, nssLabelTypes: ?number, multiGrowerBinProducts: ?number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number, classTypeMultiGrowerBinProductIds: ?number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: ?Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
26881
27025
|
* @public
|
|
26882
27026
|
*/
|
|
26883
27027
|
freshPackIntegration: {
|
|
@@ -26889,6 +27033,14 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26889
27033
|
rejectCategories: number;
|
|
26890
27034
|
productionFacilities: number;
|
|
26891
27035
|
marketHolds: number;
|
|
27036
|
+
varieties: number | null;
|
|
27037
|
+
produces: number | null;
|
|
27038
|
+
growingMethods: number | null;
|
|
27039
|
+
fruitClasses: number | null;
|
|
27040
|
+
fruitSizes: number | null;
|
|
27041
|
+
packStyles: number | null;
|
|
27042
|
+
nssLabelTypes: number | null;
|
|
27043
|
+
multiGrowerBinProducts: number | null;
|
|
26892
27044
|
apiCommunicationStatus: number;
|
|
26893
27045
|
currentPackrunClearanceSummary: number;
|
|
26894
27046
|
nextPackrunClearanceSummary: number;
|
|
@@ -26897,6 +27049,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26897
27049
|
apiVersion: number | null;
|
|
26898
27050
|
activePackrunName: number | null;
|
|
26899
27051
|
activeTimeBatch: number | null;
|
|
27052
|
+
classTypeMultiGrowerBinProductIds: number | null;
|
|
26900
27053
|
};
|
|
26901
27054
|
enabled: boolean;
|
|
26902
27055
|
graderIds: number[];
|
|
@@ -26906,7 +27059,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26906
27059
|
classTypeRejectCategoryIds: {
|
|
26907
27060
|
classType: string;
|
|
26908
27061
|
rejectCategoryId: number;
|
|
26909
|
-
}[];
|
|
27062
|
+
}[] | null;
|
|
26910
27063
|
packrunSourceTrayClassTypes: string[] | null;
|
|
26911
27064
|
} | null;
|
|
26912
27065
|
/**
|
|
@@ -27592,13 +27745,13 @@ declare module '@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel' {
|
|
|
27592
27745
|
/**
|
|
27593
27746
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
27594
27747
|
*
|
|
27595
|
-
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
27748
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
27596
27749
|
* @public
|
|
27597
27750
|
*/
|
|
27598
27751
|
freshPackIntegration: {
|
|
27599
27752
|
points: any;
|
|
27600
27753
|
enabled: boolean;
|
|
27601
|
-
materialGroupId: number;
|
|
27754
|
+
materialGroupId: number | null;
|
|
27602
27755
|
binTypeId: number;
|
|
27603
27756
|
printerGroupId: number | null;
|
|
27604
27757
|
binCardPrintingEnabled: boolean;
|
package/package.json
CHANGED
|
@@ -629,13 +629,13 @@ export default PackingLineController;
|
|
|
629
629
|
* A **FreshPackIntegration** Type
|
|
630
630
|
*
|
|
631
631
|
* @typedef {Object} PackingLineController.FreshPackIntegration
|
|
632
|
-
* @property {{graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number}} points The Points used for this FreshPack Integration
|
|
632
|
+
* @property {{graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, varieties: ?number, produces: ?number, growingMethods: ?number, fruitClasses: ?number, fruitSizes: ?number, packStyles: ?number, nssLabelTypes: ?number, multiGrowerBinProducts: ?number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number, classTypeMultiGrowerBinProductIds: ?number}} points The Points used for this FreshPack Integration
|
|
633
633
|
* @property {boolean} enabled Whether the FreshPack Integration is Enabled on this Packing Line
|
|
634
634
|
* @property {number[]} graderIds An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
635
635
|
* @property {string} apiBaseUrl Base URL of the FreshPack Web Portal API
|
|
636
636
|
* @property {string} computerName A Computer Name to use when Performing Actions on the FreshPack API
|
|
637
637
|
* @property {number} productionFacilityId FreshPack Production Facility ID this Packing Line is associated with
|
|
638
|
-
* @property {Array<PackingLineController.ClassTypeRejectCategory>} classTypeRejectCategoryIds An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
638
|
+
* @property {?Array<PackingLineController.ClassTypeRejectCategory>} [classTypeRejectCategoryIds] An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
639
639
|
* @property {?string[]} [packrunSourceTrayClassTypes] An Optional Array of Class Types that should be collected from FreshPack Tray Totals on this Packing Line
|
|
640
640
|
* @memberof Controllers.Packhouse.Site
|
|
641
641
|
*/
|