@ricado/api-client 2.3.18 → 2.3.20
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/BinTipBarcodeScannerController.js +4 -2
- package/lib/Controllers/Packhouse/Site/BinTipBarcodeScannerResultController.js +207 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +156 -8
- package/lib/Models/Packhouse/Site/BinTipBarcodeScannerResultModel.js +315 -0
- package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +1 -1
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +1 -1
- package/lib/Models/Packhouse/Site/PackingLineModel.js +2 -2
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +1 -1
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +1 -1
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +362 -40
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +4 -2
- package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerResultController.js +184 -0
- package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +2 -2
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -2
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +208 -8
- package/src/Models/Packhouse/Site/BinTipBarcodeScannerResultModel.js +305 -0
- package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +1 -1
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/src/Models/Packhouse/Site/MAFSizerModel.js +1 -1
- package/src/Models/Packhouse/Site/PackingLineModel.js +2 -2
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +1 -1
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +1 -1
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
package/package.json
CHANGED
|
@@ -159,8 +159,9 @@ export default BinTipBarcodeScannerController;
|
|
|
159
159
|
* @typedef {Object} BinTipBarcodeScannerController.CreateData
|
|
160
160
|
* @property {?number} [rtuId] The RTU this Bin Tip Barcode Scanner Belt belongs to
|
|
161
161
|
* @property {string} name The Name of this Bin Tip Barcode Scanner
|
|
162
|
-
* @property {{scannerErrorBeepRequest: number, restartServiceRequest: number}} points The Points used by this Bin Tip Barcode Scanner
|
|
163
162
|
* @property {string} binTipId The Bin Tip that owns this Barcode Scanner
|
|
163
|
+
* @property {{scannerCommunicationStatus: number, scannerChargingStatus: number, scannerChargingTimeRemaining: number, scannerBatteryTemperature: number, scannerBatteryPercentage: number, scannerBatteryCurrent: number, scannerBatteryVoltage: number, scannerErrorBeepRequest: number, serviceCommunicationStatus: number, serviceCommunicationLatency: number, restartServiceRequest: number, recentScanResults: number}} points The Points used by this Bin Tip Barcode Scanner
|
|
164
|
+
* @property {string} mode The Mode for this Bin Tip Barcode Scanner
|
|
164
165
|
* @memberof Controllers.Packhouse.Site
|
|
165
166
|
*/
|
|
166
167
|
|
|
@@ -169,7 +170,8 @@ export default BinTipBarcodeScannerController;
|
|
|
169
170
|
*
|
|
170
171
|
* @typedef {Object} BinTipBarcodeScannerController.UpdateData
|
|
171
172
|
* @property {string} [name] The Name of this Bin Tip Barcode Scanner
|
|
172
|
-
* @property {{scannerErrorBeepRequest: number, restartServiceRequest: number}} [points] The Points used by this Bin Tip Barcode Scanner
|
|
173
173
|
* @property {string} [binTipId] The Bin Tip that owns this Barcode Scanner
|
|
174
|
+
* @property {{scannerCommunicationStatus: number, scannerChargingStatus: number, scannerChargingTimeRemaining: number, scannerBatteryTemperature: number, scannerBatteryPercentage: number, scannerBatteryCurrent: number, scannerBatteryVoltage: number, scannerErrorBeepRequest: number, serviceCommunicationStatus: number, serviceCommunicationLatency: number, restartServiceRequest: number, recentScanResults: number}} [points] The Points used by this Bin Tip Barcode Scanner
|
|
175
|
+
* @property {string} [mode] The Mode for this Bin Tip Barcode Scanner
|
|
174
176
|
* @memberof Controllers.Packhouse.Site
|
|
175
177
|
*/
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import RequestHelper from '../../../RequestHelper';
|
|
8
|
+
import BinTipBarcodeScannerResultModel from '../../../Models/Packhouse/Site/BinTipBarcodeScannerResultModel';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Controller Class for Bin Tip Barcode Scanner Results
|
|
12
|
+
*
|
|
13
|
+
* @class
|
|
14
|
+
*/
|
|
15
|
+
class BinTipBarcodeScannerResultController
|
|
16
|
+
{
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a Bin Tip Barcode Scanner Result [GET /packhouse/sites/{siteId}/bin-tip-barcode-scanner-results/{id}]
|
|
19
|
+
*
|
|
20
|
+
* @static
|
|
21
|
+
* @public
|
|
22
|
+
* @param {number} siteId The Site ID
|
|
23
|
+
* @param {string} id The Bin Tip Barcode Scanner Result ID
|
|
24
|
+
* @return {Promise<BinTipBarcodeScannerResultModel>}
|
|
25
|
+
*/
|
|
26
|
+
static getOne(siteId, id)
|
|
27
|
+
{
|
|
28
|
+
return new Promise((resolve, reject) => {
|
|
29
|
+
RequestHelper.getRequest(`/packhouse/sites/${siteId}/bin-tip-barcode-scanner-results/${id}`)
|
|
30
|
+
.then((result) => {
|
|
31
|
+
let resolveValue = (function(){
|
|
32
|
+
return BinTipBarcodeScannerResultModel.fromJSON(result, siteId);
|
|
33
|
+
}());
|
|
34
|
+
|
|
35
|
+
resolve(resolveValue);
|
|
36
|
+
})
|
|
37
|
+
.catch(error => reject(error));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Update a Bin Tip Barcode Scanner Result [PATCH /packhouse/sites/{siteId}/bin-tip-barcode-scanner-results/{id}]
|
|
43
|
+
*
|
|
44
|
+
* @static
|
|
45
|
+
* @public
|
|
46
|
+
* @param {number} siteId The Site ID
|
|
47
|
+
* @param {string} id The Bin Tip Barcode Scanner Result ID
|
|
48
|
+
* @param {BinTipBarcodeScannerResultController.UpdateData} updateData The Bin Tip Barcode Scanner Result Update Data
|
|
49
|
+
* @return {Promise<BinTipBarcodeScannerResultModel>}
|
|
50
|
+
*/
|
|
51
|
+
static update(siteId, id, updateData)
|
|
52
|
+
{
|
|
53
|
+
return new Promise((resolve, reject) => {
|
|
54
|
+
RequestHelper.patchRequest(`/packhouse/sites/${siteId}/bin-tip-barcode-scanner-results/${id}`, updateData)
|
|
55
|
+
.then((result) => {
|
|
56
|
+
let resolveValue = (function(){
|
|
57
|
+
return BinTipBarcodeScannerResultModel.fromJSON(result, siteId);
|
|
58
|
+
}());
|
|
59
|
+
|
|
60
|
+
resolve(resolveValue);
|
|
61
|
+
})
|
|
62
|
+
.catch(error => reject(error));
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Delete a Bin Tip Barcode Scanner Result [DELETE /packhouse/sites/{siteId}/bin-tip-barcode-scanner-results/{id}]
|
|
68
|
+
*
|
|
69
|
+
* @static
|
|
70
|
+
* @public
|
|
71
|
+
* @param {number} siteId The Site ID
|
|
72
|
+
* @param {string} id The Bin Tip Barcode Scanner Result ID
|
|
73
|
+
* @return {Promise<boolean>}
|
|
74
|
+
*/
|
|
75
|
+
static delete(siteId, id)
|
|
76
|
+
{
|
|
77
|
+
return new Promise((resolve, reject) => {
|
|
78
|
+
RequestHelper.deleteRequest(`/packhouse/sites/${siteId}/bin-tip-barcode-scanner-results/${id}`)
|
|
79
|
+
.then((result) => {
|
|
80
|
+
resolve(result ?? true);
|
|
81
|
+
})
|
|
82
|
+
.catch(error => reject(error));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* List all Bin Tip Barcode Scanner Results [GET /packhouse/sites/{siteId}/bin-tip-barcode-scanner-results]
|
|
88
|
+
*
|
|
89
|
+
* @static
|
|
90
|
+
* @public
|
|
91
|
+
* @param {number} siteId The Site ID
|
|
92
|
+
* @param {BinTipBarcodeScannerResultController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
|
|
93
|
+
* @return {Promise<BinTipBarcodeScannerResultModel[]>}
|
|
94
|
+
*/
|
|
95
|
+
static getAll(siteId, queryParameters = {})
|
|
96
|
+
{
|
|
97
|
+
return new Promise((resolve, reject) => {
|
|
98
|
+
RequestHelper.getRequest(`/packhouse/sites/${siteId}/bin-tip-barcode-scanner-results`, queryParameters)
|
|
99
|
+
.then((result) => {
|
|
100
|
+
let resolveValue = (function(){
|
|
101
|
+
if(Array.isArray(result) !== true)
|
|
102
|
+
{
|
|
103
|
+
return [];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return result.map((resultItem) => {
|
|
107
|
+
return (function(){
|
|
108
|
+
return BinTipBarcodeScannerResultModel.fromJSON(resultItem, siteId);
|
|
109
|
+
}());
|
|
110
|
+
});
|
|
111
|
+
}());
|
|
112
|
+
|
|
113
|
+
resolve(resolveValue);
|
|
114
|
+
})
|
|
115
|
+
.catch(error => reject(error));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Create a Bin Tip Barcode Scanner Result [POST /packhouse/sites/{siteId}/bin-tip-barcode-scanner-results]
|
|
121
|
+
*
|
|
122
|
+
* @static
|
|
123
|
+
* @public
|
|
124
|
+
* @param {number} siteId The Site ID
|
|
125
|
+
* @param {BinTipBarcodeScannerResultController.CreateData} createData The Bin Tip Barcode Scanner Result Create Data
|
|
126
|
+
* @return {Promise<BinTipBarcodeScannerResultModel>}
|
|
127
|
+
*/
|
|
128
|
+
static create(siteId, createData)
|
|
129
|
+
{
|
|
130
|
+
return new Promise((resolve, reject) => {
|
|
131
|
+
RequestHelper.postRequest(`/packhouse/sites/${siteId}/bin-tip-barcode-scanner-results`, createData)
|
|
132
|
+
.then((result) => {
|
|
133
|
+
let resolveValue = (function(){
|
|
134
|
+
return BinTipBarcodeScannerResultModel.fromJSON(result, siteId);
|
|
135
|
+
}());
|
|
136
|
+
|
|
137
|
+
resolve(resolveValue);
|
|
138
|
+
})
|
|
139
|
+
.catch(error => reject(error));
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export default BinTipBarcodeScannerResultController;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The Optional Query Parameters for the getAll Function
|
|
148
|
+
*
|
|
149
|
+
* @typedef {Object} BinTipBarcodeScannerResultController.GetAllQueryParameters
|
|
150
|
+
* @property {string} [barcodeScannerId] The Bin Tip Barcode Scanner ID associated with this Result
|
|
151
|
+
* @property {string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
152
|
+
* @property {string} [type] The Type of this Barcode Scanner Result
|
|
153
|
+
* @property {?string} [packrunId] The Packrun ID associated with this Barcode Scanner Result
|
|
154
|
+
* @property {Date} [createdTimestampBegin] Filter by the Timestamp when this Barcode Scanner Result was Created. Results Greater than or Equal to Timestamp
|
|
155
|
+
* @property {Date} [createdTimestampEnd] Filter by the Timestamp when this Barcode Scanner Result was Created. Results Less than or Equal to Timestamp
|
|
156
|
+
* @memberof Controllers.Packhouse.Site
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The Create Data for a Bin Tip Barcode Scanner Result
|
|
161
|
+
*
|
|
162
|
+
* @typedef {Object} BinTipBarcodeScannerResultController.CreateData
|
|
163
|
+
* @property {string} barcodeScannerId The Bin Tip Barcode Scanner ID associated with this Result
|
|
164
|
+
* @property {string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
165
|
+
* @property {Date} [createdTimestamp] When this Barcode Scanner Result was Created
|
|
166
|
+
* @property {string} type The Type of this Barcode Scanner Result
|
|
167
|
+
* @property {?string} [packrunId] The Packrun ID associated with this Barcode Scanner Result
|
|
168
|
+
* @property {boolean} result Whether the Bin Number was Valid and could be matched with a Current or Scheduled Packrun
|
|
169
|
+
* @property {?string} resultMessage An Optional Message to accompany the Result. Typically only present when the Result is **false**
|
|
170
|
+
* @memberof Controllers.Packhouse.Site
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The Update Data for a Bin Tip Barcode Scanner Result
|
|
175
|
+
*
|
|
176
|
+
* @typedef {Object} BinTipBarcodeScannerResultController.UpdateData
|
|
177
|
+
* @property {string} [barcodeScannerId] The Bin Tip Barcode Scanner ID associated with this Result
|
|
178
|
+
* @property {Date} [createdTimestamp] When this Barcode Scanner Result was Created
|
|
179
|
+
* @property {string} [type] The Type of this Barcode Scanner Result
|
|
180
|
+
* @property {?string} [packrunId] The Packrun ID associated with this Barcode Scanner Result
|
|
181
|
+
* @property {boolean} [result] Whether the Bin Number was Valid and could be matched with a Current or Scheduled Packrun
|
|
182
|
+
* @property {?string} [resultMessage] An Optional Message to accompany the Result. Typically only present when the Result is **false**
|
|
183
|
+
* @memberof Controllers.Packhouse.Site
|
|
184
|
+
*/
|
|
@@ -970,7 +970,7 @@ export default CompacSizerBinWeightController;
|
|
|
970
970
|
* @property {string} [packrunId] The Packrun ID associated with this Bin Weight
|
|
971
971
|
* @property {Date} [createdTimestamp] When this Bin Weight was Created
|
|
972
972
|
* @property {?string} [timeBatchId] The Time Batch ID associated with this Bin Weight
|
|
973
|
-
* @property {CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource
|
|
973
|
+
* @property {Array<CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource>} [sources] The Sources and Weights that make up this Bin Weight
|
|
974
974
|
* @property {Array<CompacSizerBinWeightController.FreshPackMultiGrowerBinWeight>} freshPackMultiGrowerBinWeights The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
975
975
|
* @property {Array<CompacSizerBinWeightController.FreshPackMultiGrowerBin>} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
|
|
976
976
|
* @memberof Controllers.Packhouse.Site
|
|
@@ -983,7 +983,7 @@ export default CompacSizerBinWeightController;
|
|
|
983
983
|
* @property {string} [compacSizerId] The Compac Sizer ID this Bin Weight is associated with
|
|
984
984
|
* @property {Date} [createdTimestamp] When this Bin Weight was Created
|
|
985
985
|
* @property {?string} [timeBatchId] The Time Batch ID associated with this Bin Weight
|
|
986
|
-
* @property {CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource
|
|
986
|
+
* @property {Array<CompacSizerBinWeightController.OutletSource|CompacSizerBinWeightController.SizerBulkSource>} [sources] The Sources and Weights that make up this Bin Weight
|
|
987
987
|
* @property {Array<CompacSizerBinWeightController.FreshPackMultiGrowerBinWeight>} [freshPackMultiGrowerBinWeights] The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
988
988
|
* @property {Array<CompacSizerBinWeightController.FreshPackMultiGrowerBin>} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
|
|
989
989
|
* @memberof Controllers.Packhouse.Site
|
|
@@ -169,7 +169,7 @@ export default CompacSizerController;
|
|
|
169
169
|
* @property {Array<CompacSizerController.CompacSizerOutlet>} [outlets] The Outlets defined for this Compac Sizer
|
|
170
170
|
* @property {Array<CompacSizerController.CompacSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this Compac Sizer
|
|
171
171
|
* @property {?CompacSizerController.FreshPackCompacSizerIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Compac Sizer
|
|
172
|
-
* @property {CompacSizerController.RiserSource|CompacSizerController.SizerSource
|
|
172
|
+
* @property {Array<CompacSizerController.RiserSource|CompacSizerController.SizerSource>} [sources] An Array of Sources that deliver Fruit to this Compac Sizer
|
|
173
173
|
* @memberof Controllers.Packhouse.Site
|
|
174
174
|
*/
|
|
175
175
|
|
|
@@ -187,7 +187,7 @@ export default CompacSizerController;
|
|
|
187
187
|
* @property {Array<CompacSizerController.CompacSizerOutlet>} [outlets] The Outlets defined for this Compac Sizer
|
|
188
188
|
* @property {Array<CompacSizerController.CompacSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this Compac Sizer
|
|
189
189
|
* @property {?CompacSizerController.FreshPackCompacSizerIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Compac Sizer
|
|
190
|
-
* @property {CompacSizerController.RiserSource|CompacSizerController.SizerSource
|
|
190
|
+
* @property {Array<CompacSizerController.RiserSource|CompacSizerController.SizerSource>} [sources] An Array of Sources that deliver Fruit to this Compac Sizer
|
|
191
191
|
* @memberof Controllers.Packhouse.Site
|
|
192
192
|
*/
|
|
193
193
|
|
|
@@ -169,7 +169,7 @@ export default MAFSizerController;
|
|
|
169
169
|
* @property {Array<MAFSizerController.MAFSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this MAF Sizer
|
|
170
170
|
* @property {?MAFSizerController.FreshPackMAFSizerIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this MAF Sizer
|
|
171
171
|
* @property {?MAFSizerController.MAFSizerIntegration} [mafIntegration] The MAF Integration Configuration for this MAF Sizer
|
|
172
|
-
* @property {MAFSizerController.RiserSource|MAFSizerController.SizerSource
|
|
172
|
+
* @property {Array<MAFSizerController.RiserSource|MAFSizerController.SizerSource>} [sources] An Array of Sources that deliver Fruit to this MAF Sizer
|
|
173
173
|
* @property {Array<MAFSizerController.ArticleClassType>} [articleClassTypes] An Array of Article to Class Type Maps for this MAF Sizer
|
|
174
174
|
* @memberof Controllers.Packhouse.Site
|
|
175
175
|
*/
|
|
@@ -188,7 +188,7 @@ export default MAFSizerController;
|
|
|
188
188
|
* @property {Array<MAFSizerController.MAFSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this MAF Sizer
|
|
189
189
|
* @property {?MAFSizerController.FreshPackMAFSizerIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this MAF Sizer
|
|
190
190
|
* @property {?MAFSizerController.MAFSizerIntegration} [mafIntegration] The MAF Integration Configuration for this MAF Sizer
|
|
191
|
-
* @property {MAFSizerController.RiserSource|MAFSizerController.SizerSource
|
|
191
|
+
* @property {Array<MAFSizerController.RiserSource|MAFSizerController.SizerSource>} [sources] An Array of Sources that deliver Fruit to this MAF Sizer
|
|
192
192
|
* @property {Array<MAFSizerController.ArticleClassType>} [articleClassTypes] An Array of Article to Class Type Maps for this MAF Sizer
|
|
193
193
|
* @memberof Controllers.Packhouse.Site
|
|
194
194
|
*/
|
|
@@ -397,7 +397,7 @@ export default PackingLineController;
|
|
|
397
397
|
* @property {string} name Name for this Configuration Group
|
|
398
398
|
* @property {string} sectionId ID of the Configuration Section this Configuration Group should be displayed under
|
|
399
399
|
* @property {number} displayOrder Display Order of this Configuration Group
|
|
400
|
-
* @property {PackingLineController.ConfigurationPoint|PackingLineController.ConfigurationPoint
|
|
400
|
+
* @property {Array<PackingLineController.ConfigurationPoint|PackingLineController.ConfigurationPoint>} configurationPoints An Array of Configuration Points to be displayed in this Configuration Group
|
|
401
401
|
* @memberof Controllers.Packhouse.Site
|
|
402
402
|
*/
|
|
403
403
|
|
|
@@ -601,7 +601,7 @@ export default PackingLineController;
|
|
|
601
601
|
*
|
|
602
602
|
* @typedef {Object} PackingLineController.AdvancedPackrunManagement
|
|
603
603
|
* @property {{startPackrunChangeRequest: number, cancelPackrunChangeRequest: number, advancePackrunChangeRequest: number, skipPackrunChangeStepRequest: number, packrunChangeCurrentStep: number, packrunChangeAutomationActionsEnabled: number}} points The Points used for Advanced Packrun Management
|
|
604
|
-
* @property {PackingLineController.ManualStep|PackingLineController.ClearSizersStep|PackingLineController.CreateSizerBatchesStep|PackingLineController.CheckFruitSizeProfileStep|PackingLineController.AutoMAFActionStep|PackingLineController.ManualMAFActionStep
|
|
604
|
+
* @property {Array<PackingLineController.ManualStep|PackingLineController.ClearSizersStep|PackingLineController.CreateSizerBatchesStep|PackingLineController.CheckFruitSizeProfileStep|PackingLineController.AutoMAFActionStep|PackingLineController.ManualMAFActionStep>} steps An Array of Steps that define the Advanced Packrun Management process
|
|
605
605
|
* @property {boolean} enabled Whether Advanced Packrun Managed is Enabled on this Packing Line
|
|
606
606
|
* @memberof Controllers.Packhouse.Site
|
|
607
607
|
*/
|
|
@@ -165,7 +165,7 @@ export default RejectBinScaleController;
|
|
|
165
165
|
* @property {string} packingLineId The Packing Line that owns this Reject Bin Scale
|
|
166
166
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
167
167
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
168
|
-
* @property {RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource
|
|
168
|
+
* @property {Array<RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource>} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
169
169
|
* @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
170
170
|
* @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
|
|
171
171
|
* @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
@@ -191,7 +191,7 @@ export default RejectBinScaleController;
|
|
|
191
191
|
* @property {string} [packingLineId] The Packing Line that owns this Reject Bin Scale
|
|
192
192
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
193
193
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
194
|
-
* @property {RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource
|
|
194
|
+
* @property {Array<RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource>} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
195
195
|
* @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
196
196
|
* @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
|
|
197
197
|
* @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
@@ -972,7 +972,7 @@ export default RejectBinWeightController;
|
|
|
972
972
|
* @property {Date} [createdTimestamp] When this Reject Bin Weight was Created
|
|
973
973
|
* @property {?string} [packrunId] The Packrun this Reject Weight is associated with
|
|
974
974
|
* @property {number} netWeight The Net Weight Captured by the Reject Bin Scale
|
|
975
|
-
* @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource
|
|
975
|
+
* @property {Array<RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource>} [sources] The Source Weights that make up the Net Weight
|
|
976
976
|
* @property {Array<RejectBinWeightController.FreshPackMultiGrowerBinWeight>} freshPackMultiGrowerBinWeights The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
977
977
|
* @memberof Controllers.Packhouse.Site
|
|
978
978
|
*/
|
|
@@ -985,7 +985,7 @@ export default RejectBinWeightController;
|
|
|
985
985
|
* @property {Date} [createdTimestamp] When this Reject Bin Weight was Created
|
|
986
986
|
* @property {?string} [packrunId] The Packrun this Reject Weight is associated with
|
|
987
987
|
* @property {number} [netWeight] The Net Weight Captured by the Reject Bin Scale
|
|
988
|
-
* @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource
|
|
988
|
+
* @property {Array<RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource>} [sources] The Source Weights that make up the Net Weight
|
|
989
989
|
* @property {Array<RejectBinWeightController.FreshPackMultiGrowerBinWeight>} [freshPackMultiGrowerBinWeights] The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
990
990
|
* @memberof Controllers.Packhouse.Site
|
|
991
991
|
*/
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @namespace Controllers.Packhouse.Site
|
|
9
9
|
*/
|
|
10
10
|
import BinTipBarcodeScannerController from './BinTipBarcodeScannerController';
|
|
11
|
+
import BinTipBarcodeScannerResultController from './BinTipBarcodeScannerResultController';
|
|
11
12
|
import BinTipBinCardController from './BinTipBinCardController';
|
|
12
13
|
import BinTipBinController from './BinTipBinController';
|
|
13
14
|
import BinTipWeightController from './BinTipWeightController';
|
|
@@ -44,6 +45,7 @@ import VarietyController from './VarietyController';
|
|
|
44
45
|
|
|
45
46
|
const Site = {
|
|
46
47
|
BinTipBarcodeScannerController,
|
|
48
|
+
BinTipBarcodeScannerResultController,
|
|
47
49
|
BinTipBinCardController,
|
|
48
50
|
BinTipBinController,
|
|
49
51
|
BinTipWeightController,
|
|
@@ -49,29 +49,57 @@ class BinTipBarcodeScannerModel extends BaseModel
|
|
|
49
49
|
*/
|
|
50
50
|
this.name = "";
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* The Bin Tip that owns this Barcode Scanner
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.binTipId = "";
|
|
59
|
+
|
|
52
60
|
/**
|
|
53
61
|
* The Points used by this Bin Tip Barcode Scanner
|
|
54
62
|
*
|
|
55
|
-
* @type {{scannerErrorBeepRequest: number, restartServiceRequest: number}}
|
|
63
|
+
* @type {{scannerCommunicationStatus: number, scannerChargingStatus: number, scannerChargingTimeRemaining: number, scannerBatteryTemperature: number, scannerBatteryPercentage: number, scannerBatteryCurrent: number, scannerBatteryVoltage: number, scannerErrorBeepRequest: number, serviceCommunicationStatus: number, serviceCommunicationLatency: number, restartServiceRequest: number, recentScanResults: number}}
|
|
56
64
|
* @public
|
|
57
65
|
*/
|
|
58
66
|
this.points = (function(){
|
|
59
67
|
let pointsDefaultValue = {};
|
|
60
68
|
|
|
69
|
+
pointsDefaultValue.scannerCommunicationStatus = 0;
|
|
70
|
+
|
|
71
|
+
pointsDefaultValue.scannerChargingStatus = 0;
|
|
72
|
+
|
|
73
|
+
pointsDefaultValue.scannerChargingTimeRemaining = 0;
|
|
74
|
+
|
|
75
|
+
pointsDefaultValue.scannerBatteryTemperature = 0;
|
|
76
|
+
|
|
77
|
+
pointsDefaultValue.scannerBatteryPercentage = 0;
|
|
78
|
+
|
|
79
|
+
pointsDefaultValue.scannerBatteryCurrent = 0;
|
|
80
|
+
|
|
81
|
+
pointsDefaultValue.scannerBatteryVoltage = 0;
|
|
82
|
+
|
|
61
83
|
pointsDefaultValue.scannerErrorBeepRequest = 0;
|
|
62
84
|
|
|
85
|
+
pointsDefaultValue.serviceCommunicationStatus = 0;
|
|
86
|
+
|
|
87
|
+
pointsDefaultValue.serviceCommunicationLatency = 0;
|
|
88
|
+
|
|
63
89
|
pointsDefaultValue.restartServiceRequest = 0;
|
|
64
90
|
|
|
91
|
+
pointsDefaultValue.recentScanResults = 0;
|
|
92
|
+
|
|
65
93
|
return pointsDefaultValue;
|
|
66
94
|
}());
|
|
67
95
|
|
|
68
96
|
/**
|
|
69
|
-
* The
|
|
97
|
+
* The Mode for this Bin Tip Barcode Scanner
|
|
70
98
|
*
|
|
71
99
|
* @type {string}
|
|
72
100
|
* @public
|
|
73
101
|
*/
|
|
74
|
-
this.
|
|
102
|
+
this.mode = "";
|
|
75
103
|
|
|
76
104
|
/**
|
|
77
105
|
* Whether the Bin Tip Barcode Scanner has been deleted
|
|
@@ -168,11 +196,135 @@ class BinTipBarcodeScannerModel extends BaseModel
|
|
|
168
196
|
}());
|
|
169
197
|
}
|
|
170
198
|
|
|
199
|
+
if('binTipId' in jsonObject)
|
|
200
|
+
{
|
|
201
|
+
model.binTipId = (function(){
|
|
202
|
+
if(typeof jsonObject['binTipId'] !== 'string')
|
|
203
|
+
{
|
|
204
|
+
return String(jsonObject['binTipId']);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return jsonObject['binTipId'];
|
|
208
|
+
}());
|
|
209
|
+
}
|
|
210
|
+
|
|
171
211
|
if('points' in jsonObject)
|
|
172
212
|
{
|
|
173
213
|
model.points = (function(){
|
|
174
214
|
let pointsObject = {};
|
|
175
215
|
|
|
216
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerCommunicationStatus' in jsonObject['points'])
|
|
217
|
+
{
|
|
218
|
+
pointsObject.scannerCommunicationStatus = (function(){
|
|
219
|
+
if(typeof jsonObject['points'].scannerCommunicationStatus !== 'number')
|
|
220
|
+
{
|
|
221
|
+
return Number.isInteger(Number(jsonObject['points'].scannerCommunicationStatus)) ? Number(jsonObject['points'].scannerCommunicationStatus) : Math.floor(Number(jsonObject['points'].scannerCommunicationStatus));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return Number.isInteger(jsonObject['points'].scannerCommunicationStatus) ? jsonObject['points'].scannerCommunicationStatus : Math.floor(jsonObject['points'].scannerCommunicationStatus);
|
|
225
|
+
}());
|
|
226
|
+
}
|
|
227
|
+
else
|
|
228
|
+
{
|
|
229
|
+
pointsObject.scannerCommunicationStatus = 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerChargingStatus' in jsonObject['points'])
|
|
233
|
+
{
|
|
234
|
+
pointsObject.scannerChargingStatus = (function(){
|
|
235
|
+
if(typeof jsonObject['points'].scannerChargingStatus !== 'number')
|
|
236
|
+
{
|
|
237
|
+
return Number.isInteger(Number(jsonObject['points'].scannerChargingStatus)) ? Number(jsonObject['points'].scannerChargingStatus) : Math.floor(Number(jsonObject['points'].scannerChargingStatus));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return Number.isInteger(jsonObject['points'].scannerChargingStatus) ? jsonObject['points'].scannerChargingStatus : Math.floor(jsonObject['points'].scannerChargingStatus);
|
|
241
|
+
}());
|
|
242
|
+
}
|
|
243
|
+
else
|
|
244
|
+
{
|
|
245
|
+
pointsObject.scannerChargingStatus = 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerChargingTimeRemaining' in jsonObject['points'])
|
|
249
|
+
{
|
|
250
|
+
pointsObject.scannerChargingTimeRemaining = (function(){
|
|
251
|
+
if(typeof jsonObject['points'].scannerChargingTimeRemaining !== 'number')
|
|
252
|
+
{
|
|
253
|
+
return Number.isInteger(Number(jsonObject['points'].scannerChargingTimeRemaining)) ? Number(jsonObject['points'].scannerChargingTimeRemaining) : Math.floor(Number(jsonObject['points'].scannerChargingTimeRemaining));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return Number.isInteger(jsonObject['points'].scannerChargingTimeRemaining) ? jsonObject['points'].scannerChargingTimeRemaining : Math.floor(jsonObject['points'].scannerChargingTimeRemaining);
|
|
257
|
+
}());
|
|
258
|
+
}
|
|
259
|
+
else
|
|
260
|
+
{
|
|
261
|
+
pointsObject.scannerChargingTimeRemaining = 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerBatteryTemperature' in jsonObject['points'])
|
|
265
|
+
{
|
|
266
|
+
pointsObject.scannerBatteryTemperature = (function(){
|
|
267
|
+
if(typeof jsonObject['points'].scannerBatteryTemperature !== 'number')
|
|
268
|
+
{
|
|
269
|
+
return Number.isInteger(Number(jsonObject['points'].scannerBatteryTemperature)) ? Number(jsonObject['points'].scannerBatteryTemperature) : Math.floor(Number(jsonObject['points'].scannerBatteryTemperature));
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
return Number.isInteger(jsonObject['points'].scannerBatteryTemperature) ? jsonObject['points'].scannerBatteryTemperature : Math.floor(jsonObject['points'].scannerBatteryTemperature);
|
|
273
|
+
}());
|
|
274
|
+
}
|
|
275
|
+
else
|
|
276
|
+
{
|
|
277
|
+
pointsObject.scannerBatteryTemperature = 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerBatteryPercentage' in jsonObject['points'])
|
|
281
|
+
{
|
|
282
|
+
pointsObject.scannerBatteryPercentage = (function(){
|
|
283
|
+
if(typeof jsonObject['points'].scannerBatteryPercentage !== 'number')
|
|
284
|
+
{
|
|
285
|
+
return Number.isInteger(Number(jsonObject['points'].scannerBatteryPercentage)) ? Number(jsonObject['points'].scannerBatteryPercentage) : Math.floor(Number(jsonObject['points'].scannerBatteryPercentage));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
return Number.isInteger(jsonObject['points'].scannerBatteryPercentage) ? jsonObject['points'].scannerBatteryPercentage : Math.floor(jsonObject['points'].scannerBatteryPercentage);
|
|
289
|
+
}());
|
|
290
|
+
}
|
|
291
|
+
else
|
|
292
|
+
{
|
|
293
|
+
pointsObject.scannerBatteryPercentage = 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerBatteryCurrent' in jsonObject['points'])
|
|
297
|
+
{
|
|
298
|
+
pointsObject.scannerBatteryCurrent = (function(){
|
|
299
|
+
if(typeof jsonObject['points'].scannerBatteryCurrent !== 'number')
|
|
300
|
+
{
|
|
301
|
+
return Number.isInteger(Number(jsonObject['points'].scannerBatteryCurrent)) ? Number(jsonObject['points'].scannerBatteryCurrent) : Math.floor(Number(jsonObject['points'].scannerBatteryCurrent));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return Number.isInteger(jsonObject['points'].scannerBatteryCurrent) ? jsonObject['points'].scannerBatteryCurrent : Math.floor(jsonObject['points'].scannerBatteryCurrent);
|
|
305
|
+
}());
|
|
306
|
+
}
|
|
307
|
+
else
|
|
308
|
+
{
|
|
309
|
+
pointsObject.scannerBatteryCurrent = 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if(typeof jsonObject['points'] === 'object' && 'scannerBatteryVoltage' in jsonObject['points'])
|
|
313
|
+
{
|
|
314
|
+
pointsObject.scannerBatteryVoltage = (function(){
|
|
315
|
+
if(typeof jsonObject['points'].scannerBatteryVoltage !== 'number')
|
|
316
|
+
{
|
|
317
|
+
return Number.isInteger(Number(jsonObject['points'].scannerBatteryVoltage)) ? Number(jsonObject['points'].scannerBatteryVoltage) : Math.floor(Number(jsonObject['points'].scannerBatteryVoltage));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return Number.isInteger(jsonObject['points'].scannerBatteryVoltage) ? jsonObject['points'].scannerBatteryVoltage : Math.floor(jsonObject['points'].scannerBatteryVoltage);
|
|
321
|
+
}());
|
|
322
|
+
}
|
|
323
|
+
else
|
|
324
|
+
{
|
|
325
|
+
pointsObject.scannerBatteryVoltage = 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
176
328
|
if(typeof jsonObject['points'] === 'object' && 'scannerErrorBeepRequest' in jsonObject['points'])
|
|
177
329
|
{
|
|
178
330
|
pointsObject.scannerErrorBeepRequest = (function(){
|
|
@@ -189,6 +341,38 @@ class BinTipBarcodeScannerModel extends BaseModel
|
|
|
189
341
|
pointsObject.scannerErrorBeepRequest = 0;
|
|
190
342
|
}
|
|
191
343
|
|
|
344
|
+
if(typeof jsonObject['points'] === 'object' && 'serviceCommunicationStatus' in jsonObject['points'])
|
|
345
|
+
{
|
|
346
|
+
pointsObject.serviceCommunicationStatus = (function(){
|
|
347
|
+
if(typeof jsonObject['points'].serviceCommunicationStatus !== 'number')
|
|
348
|
+
{
|
|
349
|
+
return Number.isInteger(Number(jsonObject['points'].serviceCommunicationStatus)) ? Number(jsonObject['points'].serviceCommunicationStatus) : Math.floor(Number(jsonObject['points'].serviceCommunicationStatus));
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
return Number.isInteger(jsonObject['points'].serviceCommunicationStatus) ? jsonObject['points'].serviceCommunicationStatus : Math.floor(jsonObject['points'].serviceCommunicationStatus);
|
|
353
|
+
}());
|
|
354
|
+
}
|
|
355
|
+
else
|
|
356
|
+
{
|
|
357
|
+
pointsObject.serviceCommunicationStatus = 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if(typeof jsonObject['points'] === 'object' && 'serviceCommunicationLatency' in jsonObject['points'])
|
|
361
|
+
{
|
|
362
|
+
pointsObject.serviceCommunicationLatency = (function(){
|
|
363
|
+
if(typeof jsonObject['points'].serviceCommunicationLatency !== 'number')
|
|
364
|
+
{
|
|
365
|
+
return Number.isInteger(Number(jsonObject['points'].serviceCommunicationLatency)) ? Number(jsonObject['points'].serviceCommunicationLatency) : Math.floor(Number(jsonObject['points'].serviceCommunicationLatency));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
return Number.isInteger(jsonObject['points'].serviceCommunicationLatency) ? jsonObject['points'].serviceCommunicationLatency : Math.floor(jsonObject['points'].serviceCommunicationLatency);
|
|
369
|
+
}());
|
|
370
|
+
}
|
|
371
|
+
else
|
|
372
|
+
{
|
|
373
|
+
pointsObject.serviceCommunicationLatency = 0;
|
|
374
|
+
}
|
|
375
|
+
|
|
192
376
|
if(typeof jsonObject['points'] === 'object' && 'restartServiceRequest' in jsonObject['points'])
|
|
193
377
|
{
|
|
194
378
|
pointsObject.restartServiceRequest = (function(){
|
|
@@ -204,20 +388,36 @@ class BinTipBarcodeScannerModel extends BaseModel
|
|
|
204
388
|
{
|
|
205
389
|
pointsObject.restartServiceRequest = 0;
|
|
206
390
|
}
|
|
391
|
+
|
|
392
|
+
if(typeof jsonObject['points'] === 'object' && 'recentScanResults' in jsonObject['points'])
|
|
393
|
+
{
|
|
394
|
+
pointsObject.recentScanResults = (function(){
|
|
395
|
+
if(typeof jsonObject['points'].recentScanResults !== 'number')
|
|
396
|
+
{
|
|
397
|
+
return Number.isInteger(Number(jsonObject['points'].recentScanResults)) ? Number(jsonObject['points'].recentScanResults) : Math.floor(Number(jsonObject['points'].recentScanResults));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return Number.isInteger(jsonObject['points'].recentScanResults) ? jsonObject['points'].recentScanResults : Math.floor(jsonObject['points'].recentScanResults);
|
|
401
|
+
}());
|
|
402
|
+
}
|
|
403
|
+
else
|
|
404
|
+
{
|
|
405
|
+
pointsObject.recentScanResults = 0;
|
|
406
|
+
}
|
|
207
407
|
|
|
208
408
|
return pointsObject;
|
|
209
409
|
}());
|
|
210
410
|
}
|
|
211
411
|
|
|
212
|
-
if('
|
|
412
|
+
if('mode' in jsonObject)
|
|
213
413
|
{
|
|
214
|
-
model.
|
|
215
|
-
if(typeof jsonObject['
|
|
414
|
+
model.mode = (function(){
|
|
415
|
+
if(typeof jsonObject['mode'] !== 'string')
|
|
216
416
|
{
|
|
217
|
-
return String(jsonObject['
|
|
417
|
+
return String(jsonObject['mode']);
|
|
218
418
|
}
|
|
219
419
|
|
|
220
|
-
return jsonObject['
|
|
420
|
+
return jsonObject['mode'];
|
|
221
421
|
}());
|
|
222
422
|
}
|
|
223
423
|
|