@ricado/api-client 2.3.17 → 2.3.18

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.
Files changed (73) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +198 -0
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
  4. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
  5. package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +959 -0
  6. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
  7. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
  8. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
  9. package/lib/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
  10. package/lib/Controllers/Packhouse/Site/PackingLineController.js +435 -23
  11. package/lib/Controllers/Packhouse/Site/PackrunController.js +11 -2
  12. package/lib/Controllers/Packhouse/Site/RejectBinController.js +38 -2
  13. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
  14. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
  15. package/lib/Controllers/Packhouse/Site/ShiftController.js +1 -1
  16. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  17. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
  18. package/lib/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
  19. package/lib/Controllers/Packhouse/Site/index.js +6 -0
  20. package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +263 -0
  21. package/lib/Models/Packhouse/Site/BinTipBinModel.js +75 -5
  22. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +1276 -5
  23. package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +627 -0
  24. package/lib/Models/Packhouse/Site/CompacSizerModel.js +966 -72
  25. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +260 -8
  26. package/lib/Models/Packhouse/Site/MAFSizerModel.js +660 -85
  27. package/lib/Models/Packhouse/Site/PackingLineModel.js +3860 -551
  28. package/lib/Models/Packhouse/Site/PackrunModel.js +26 -4
  29. package/lib/Models/Packhouse/Site/RejectBinModel.js +214 -4
  30. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +576 -14
  31. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +113 -9
  32. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +98 -0
  33. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +50 -5
  34. package/lib/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +75 -5
  35. package/lib/Models/Packhouse/Site/index.js +6 -0
  36. package/lib/PackageVersion.js +1 -1
  37. package/lib/index.d.ts +6132 -2165
  38. package/package.json +1 -1
  39. package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +175 -0
  40. package/src/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
  41. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
  42. package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +1090 -0
  43. package/src/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
  44. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
  45. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
  46. package/src/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
  47. package/src/Controllers/Packhouse/Site/PackingLineController.js +435 -23
  48. package/src/Controllers/Packhouse/Site/PackrunController.js +11 -2
  49. package/src/Controllers/Packhouse/Site/RejectBinController.js +38 -2
  50. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
  51. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
  52. package/src/Controllers/Packhouse/Site/ShiftController.js +1 -1
  53. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  54. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
  55. package/src/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
  56. package/src/Controllers/Packhouse/Site/index.js +4 -0
  57. package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +252 -0
  58. package/src/Models/Packhouse/Site/BinTipBinModel.js +97 -5
  59. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +1682 -5
  60. package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +715 -0
  61. package/src/Models/Packhouse/Site/CompacSizerModel.js +1319 -109
  62. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +339 -8
  63. package/src/Models/Packhouse/Site/MAFSizerModel.js +869 -92
  64. package/src/Models/Packhouse/Site/PackingLineModel.js +5086 -671
  65. package/src/Models/Packhouse/Site/PackrunModel.js +33 -4
  66. package/src/Models/Packhouse/Site/RejectBinModel.js +280 -4
  67. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +775 -15
  68. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +147 -10
  69. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +120 -0
  70. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +65 -5
  71. package/src/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +97 -5
  72. package/src/Models/Packhouse/Site/index.js +4 -0
  73. package/src/PackageVersion.js +1 -1
@@ -161,11 +161,11 @@ export default RejectBinScaleController;
161
161
  * @typedef {Object} RejectBinScaleController.CreateData
162
162
  * @property {?number} [rtuId] The RTU this Reject Bin Scale belongs to
163
163
  * @property {string} name The Name of this Reject Bin Scale
164
- * @property {Object} points The Points used by this Reject Bin Scale
164
+ * @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} points The Points used by this Reject Bin Scale
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 {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
168
+ * @property {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
@@ -178,7 +178,7 @@ export default RejectBinScaleController;
178
178
  * @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
179
179
  * @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
180
180
  * @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
181
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
181
+ * @property {?RejectBinScaleController.FreshPackBinScaleIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
182
182
  * @memberof Controllers.Packhouse.Site
183
183
  */
184
184
 
@@ -187,11 +187,11 @@ export default RejectBinScaleController;
187
187
  *
188
188
  * @typedef {Object} RejectBinScaleController.UpdateData
189
189
  * @property {string} [name] The Name of this Reject Bin Scale
190
- * @property {Object} [points] The Points used by this Reject Bin Scale
190
+ * @property {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}} [points] The Points used by this Reject Bin Scale
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 {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
194
+ * @property {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
@@ -204,6 +204,52 @@ export default RejectBinScaleController;
204
204
  * @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
205
205
  * @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
206
206
  * @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
207
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
207
+ * @property {?RejectBinScaleController.FreshPackBinScaleIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
208
+ * @memberof Controllers.Packhouse.Site
209
+ */
210
+
211
+ /**
212
+ * A **SortingTableSource** Type
213
+ *
214
+ * @typedef {Object} RejectBinScaleController.SortingTableSource
215
+ * @property {string} type Type of this Reject Bin Scale Source
216
+ * @property {string} sortingTableId ID of the Sorting Table Object
217
+ * @property {string} classType The Default Class Type of this Reject Bin Scale Source
218
+ * @property {Array<{varietyId: string, classType: string}>} varietyClassTypes An Array of Varieties and Class Types to override the Default Class Type
219
+ * @memberof Controllers.Packhouse.Site
220
+ */
221
+
222
+ /**
223
+ * A **BeltSource** Type
224
+ *
225
+ * @typedef {Object} RejectBinScaleController.BeltSource
226
+ * @property {string} type Type of this Reject Bin Scale Source
227
+ * @property {?string} beltName Name of the Belt
228
+ * @property {string} classType The Default Class Type of this Reject Bin Scale Source
229
+ * @property {Array<{varietyId: string, classType: string}>} varietyClassTypes An Array of Varieties and Class Types to override the Default Class Type
230
+ * @memberof Controllers.Packhouse.Site
231
+ */
232
+
233
+ /**
234
+ * A **SizerOutletSource** Type
235
+ *
236
+ * @typedef {Object} RejectBinScaleController.SizerOutletSource
237
+ * @property {string} type Type of this Reject Bin Scale Source
238
+ * @property {string} sizerId ID of the Sizer Object
239
+ * @property {number} outletNumber Outlet Number of the Sizer Outlet
240
+ * @memberof Controllers.Packhouse.Site
241
+ */
242
+
243
+ /**
244
+ * A **FreshPackBinScaleIntegration** Type
245
+ *
246
+ * @typedef {Object} RejectBinScaleController.FreshPackBinScaleIntegration
247
+ * @property {Object} points The Points used by this FreshPack Bin Scale Integration
248
+ * @property {boolean} enabled Whether this FreshPack Bin Scale Integration is Enabled
249
+ * @property {number} materialGroupId The FreshPack Material Group ID to be used for Multi-Grower Bins from this Reject Bin Scale
250
+ * @property {number} binTypeId The FreshPack Bin Type ID to be used for Multi-Grower Bins from this Reject Bin Scale
251
+ * @property {?number} printerGroupId The FreshPack Printer Group ID to be used when Printing Multi-Grower Bin Cards for this Reject Bin Scale
252
+ * @property {boolean} binCardPrintingEnabled Whether Bin Card Printing is Enabled
253
+ * @property {boolean} [useWindowsDriverApi] Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
208
254
  * @memberof Controllers.Packhouse.Site
209
255
  */
@@ -972,8 +972,8 @@ 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 {Object[]} [sources] The Source Weights that make up the Net Weight
976
- * @property {Object[]} freshPackMultiGrowerBinWeights The Multi-Grower Bin Weights that will be submitted to FreshPack
975
+ * @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource[]} [sources] The Source Weights that make up the Net Weight
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
  */
979
979
 
@@ -985,8 +985,8 @@ 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 {Object[]} [sources] The Source Weights that make up the Net Weight
989
- * @property {Object[]} [freshPackMultiGrowerBinWeights] The Multi-Grower Bin Weights that will be submitted to FreshPack
988
+ * @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource[]} [sources] The Source Weights that make up the Net Weight
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
  */
992
992
 
@@ -1010,4 +1010,70 @@ export default RejectBinWeightController;
1010
1010
  * @property {?Date} createdTimestamp When the Comment was Created
1011
1011
  * @property {?Date} updatedTimestamp When the Comment was last Updated
1012
1012
  * @memberof Controllers.Packhouse.Site
1013
+ */
1014
+
1015
+ /**
1016
+ * A **SortingTableSource** Type
1017
+ *
1018
+ * @typedef {Object} RejectBinWeightController.SortingTableSource
1019
+ * @property {string} type Type of this Reject Bin Source
1020
+ * @property {string} sortingTableId ID of the Sorting Table Object
1021
+ * @property {?string} sortingTableName Name of the Sorting Table
1022
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
1023
+ * @memberof Controllers.Packhouse.Site
1024
+ */
1025
+
1026
+ /**
1027
+ * A **BeltSource** Type
1028
+ *
1029
+ * @typedef {Object} RejectBinWeightController.BeltSource
1030
+ * @property {string} type Type of this Reject Bin Source
1031
+ * @property {?string} beltName Name of the Belt
1032
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
1033
+ * @memberof Controllers.Packhouse.Site
1034
+ */
1035
+
1036
+ /**
1037
+ * A **SizerOutletSource** Type
1038
+ *
1039
+ * @typedef {Object} RejectBinWeightController.SizerOutletSource
1040
+ * @property {string} type Type of this Reject Bin Source
1041
+ * @property {string} sizerId ID of the Sizer Object
1042
+ * @property {?string} sizerName Name of the Sizer
1043
+ * @property {number} outletNumber Outlet Number of the Sizer Outlet
1044
+ * @property {?string} outletName Name of the Sizer Outlet
1045
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
1046
+ * @memberof Controllers.Packhouse.Site
1047
+ */
1048
+
1049
+ /**
1050
+ * A **MixedSource** Type
1051
+ *
1052
+ * @typedef {Object} RejectBinWeightController.MixedSource
1053
+ * @property {string} type Type of this Reject Bin Source
1054
+ * @property {string[]} mixedNames An Array of Mixed Source Names
1055
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
1056
+ * @memberof Controllers.Packhouse.Site
1057
+ */
1058
+
1059
+ /**
1060
+ * Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
1061
+ *
1062
+ * @typedef {Object} RejectBinWeightController.BinWeightApiStatus
1063
+ * @property {number} requestCount Number of Requests made to the FreshPack API
1064
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
1065
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
1066
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
1067
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
1068
+ * @memberof Controllers.Packhouse.Site
1069
+ */
1070
+
1071
+ /**
1072
+ * A **FreshPackMultiGrowerBinWeight** Type
1073
+ *
1074
+ * @typedef {Object} RejectBinWeightController.FreshPackMultiGrowerBinWeight
1075
+ * @property {string} classType The Class Type of this Multi-Grower Bin Weight
1076
+ * @property {number} weight The Net Weight in Kilograms of this Multi-Grower Bin Weight
1077
+ * @property {?RejectBinWeightController.BinWeightApiStatus} weightApi Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
1078
+ * @memberof Controllers.Packhouse.Site
1013
1079
  */
@@ -1074,7 +1074,7 @@ export default ShiftController;
1074
1074
  * A **ShiftAreaNote** Type
1075
1075
  *
1076
1076
  * @typedef {Object} ShiftController.ShiftAreaNote
1077
- * @property {string} area The Area this Notes applies to
1077
+ * @property {string} area The Area this Note applies to
1078
1078
  * @property {Date} timestamp The Timestamp when this Note was Created
1079
1079
  * @property {string} content The Content for this Note
1080
1080
  * @memberof Controllers.Packhouse.Site
@@ -987,6 +987,8 @@ export default ShiftHourlyEntryController;
987
987
  * @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
988
988
  * @property {?number} [averageClass1ManningTarget] The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
989
989
  * @property {?number} [averageClass2ManningTarget] The Average Target Number of People that should be working in the Class 2 Area for this Hour
990
+ * @property {?Array<ShiftHourlyEntryController.ManningTeam>} [manningTeams] An Array of Manning Teams and their Headcounts for this Hour. Only Applies when *manningUsesTeams* is *true*
991
+ * @property {?boolean} [manningUsesTeams] Whether Manning is tracked at the Team Level for this Hour
990
992
  * @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
991
993
  * @property {?number} [layeredTrayPercentage] The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
992
994
  * @property {?number} [layeredTrayPercentageTarget] The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
@@ -1029,6 +1031,8 @@ export default ShiftHourlyEntryController;
1029
1031
  * @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
1030
1032
  * @property {?number} [averageClass1ManningTarget] The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
1031
1033
  * @property {?number} [averageClass2ManningTarget] The Average Target Number of People that should be working in the Class 2 Area for this Hour
1034
+ * @property {?Array<ShiftHourlyEntryController.ManningTeam>} [manningTeams] An Array of Manning Teams and their Headcounts for this Hour. Only Applies when *manningUsesTeams* is *true*
1035
+ * @property {?boolean} [manningUsesTeams] Whether Manning is tracked at the Team Level for this Hour
1032
1036
  * @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
1033
1037
  * @property {?number} [layeredTrayPercentage] The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
1034
1038
  * @property {?number} [layeredTrayPercentageTarget] The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
@@ -1080,6 +1084,17 @@ export default ShiftHourlyEntryController;
1080
1084
  * @memberof Controllers.Packhouse.Site
1081
1085
  */
1082
1086
 
1087
+ /**
1088
+ * A **ManningTeam** Type
1089
+ *
1090
+ * @typedef {Object} ShiftHourlyEntryController.ManningTeam
1091
+ * @property {string} id ID of the Team
1092
+ * @property {string} name Name of the Team
1093
+ * @property {number} headcount Total Number of People Working in this Team
1094
+ * @property {string} group The Group this Team is associated with
1095
+ * @memberof Controllers.Packhouse.Site
1096
+ */
1097
+
1083
1098
  /**
1084
1099
  * A **CustomQualityDataItem** Type
1085
1100
  *
@@ -446,7 +446,7 @@ export default SoftSortBeltController;
446
446
  * @typedef {Object} SoftSortBeltController.CreateData
447
447
  * @property {?number} [rtuId] The RTU this Soft Sort Belt belongs to
448
448
  * @property {string} name The Name of this Soft Sort Belt
449
- * @property {Object} points The Points used by this Soft Sort Belt
449
+ * @property {{runAuto: number, slowMode: ?number, stopMode: number}} points The Points used by this Soft Sort Belt
450
450
  * @property {string} packingLineId The Packing Line that owns this Soft Sort Belt
451
451
  * @memberof Controllers.Packhouse.Site
452
452
  */
@@ -456,7 +456,7 @@ export default SoftSortBeltController;
456
456
  *
457
457
  * @typedef {Object} SoftSortBeltController.UpdateData
458
458
  * @property {string} [name] The Name of this Soft Sort Belt
459
- * @property {Object} [points] The Points used by this Soft Sort Belt
459
+ * @property {{runAuto: number, slowMode: ?number, stopMode: number}} [points] The Points used by this Soft Sort Belt
460
460
  * @property {string} [packingLineId] The Packing Line that owns this Soft Sort Belt
461
461
  * @memberof Controllers.Packhouse.Site
462
462
  */
@@ -978,7 +978,7 @@ export default SoftSortPackrunSummaryController;
978
978
  * @property {?Date} [eventsFinalizedTimestamp] Whether the Soft-Sort Events Data for this Summary has been Finalized
979
979
  * @property {?boolean} [eventsAccurate] Whether the Soft-Sort Events for this Summary are considered accurate or not
980
980
  * @property {?string} [eventsNotAccurateReason] A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
981
- * @property {?Object} [freshPackSoftSortApi] The FreshPack Soft-Sort API Data
981
+ * @property {?SoftSortPackrunSummaryController.SoftSortApiStatus} [freshPackSoftSortApi] Results from Interacting with the FreshPack API to Send Soft-Sort Events Data
982
982
  * @memberof Controllers.Packhouse.Site
983
983
  */
984
984
 
@@ -995,7 +995,7 @@ export default SoftSortPackrunSummaryController;
995
995
  * @property {?Date} [eventsFinalizedTimestamp] Whether the Soft-Sort Events Data for this Summary has been Finalized
996
996
  * @property {?boolean} [eventsAccurate] Whether the Soft-Sort Events for this Summary are considered accurate or not
997
997
  * @property {?string} [eventsNotAccurateReason] A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
998
- * @property {?Object} [freshPackSoftSortApi] The FreshPack Soft-Sort API Data
998
+ * @property {?SoftSortPackrunSummaryController.SoftSortApiStatus} [freshPackSoftSortApi] Results from Interacting with the FreshPack API to Send Soft-Sort Events Data
999
999
  * @memberof Controllers.Packhouse.Site
1000
1000
  */
1001
1001
 
@@ -1019,4 +1019,16 @@ export default SoftSortPackrunSummaryController;
1019
1019
  * @property {?Date} createdTimestamp When the Comment was Created
1020
1020
  * @property {?Date} updatedTimestamp When the Comment was last Updated
1021
1021
  * @memberof Controllers.Packhouse.Site
1022
+ */
1023
+
1024
+ /**
1025
+ * A **SoftSortApiStatus** Type
1026
+ *
1027
+ * @typedef {Object} SoftSortPackrunSummaryController.SoftSortApiStatus
1028
+ * @property {number} requestCount Number of Requests made to the FreshPack API
1029
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
1030
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
1031
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
1032
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
1033
+ * @memberof Controllers.Packhouse.Site
1022
1034
  */
@@ -7,10 +7,12 @@
7
7
  /**
8
8
  * @namespace Controllers.Packhouse.Site
9
9
  */
10
+ import BinTipBarcodeScannerController from './BinTipBarcodeScannerController';
10
11
  import BinTipBinCardController from './BinTipBinCardController';
11
12
  import BinTipBinController from './BinTipBinController';
12
13
  import BinTipWeightController from './BinTipWeightController';
13
14
  import CompacSizerBatchController from './CompacSizerBatchController';
15
+ import CompacSizerBinWeightController from './CompacSizerBinWeightController';
14
16
  import CompacSizerController from './CompacSizerController';
15
17
  import CompacSizerOutletProductChangeController from './CompacSizerOutletProductChangeController';
16
18
  import CompacSizerOutletTypeChangeController from './CompacSizerOutletTypeChangeController';
@@ -41,10 +43,12 @@ import SoftSortPackrunSummaryController from './SoftSortPackrunSummaryController
41
43
  import VarietyController from './VarietyController';
42
44
 
43
45
  const Site = {
46
+ BinTipBarcodeScannerController,
44
47
  BinTipBinCardController,
45
48
  BinTipBinController,
46
49
  BinTipWeightController,
47
50
  CompacSizerBatchController,
51
+ CompacSizerBinWeightController,
48
52
  CompacSizerController,
49
53
  CompacSizerOutletProductChangeController,
50
54
  CompacSizerOutletTypeChangeController,
@@ -0,0 +1,252 @@
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 BaseModel from '../../../Models/BaseModel';
8
+
9
+ /**
10
+ * Model Class for a Bin Tip Barcode Scanner
11
+ *
12
+ * @class
13
+ * @hideconstructor
14
+ * @extends BaseModel
15
+ */
16
+ class BinTipBarcodeScannerModel extends BaseModel
17
+ {
18
+ /**
19
+ * BinTipBarcodeScannerModel Constructor
20
+ *
21
+ * @protected
22
+ * @param {number} siteId The Site ID associated with this Bin Tip Barcode Scanner
23
+ */
24
+ constructor(siteId)
25
+ {
26
+ super();
27
+
28
+ /**
29
+ * The Bin Tip Barcode Scanner ID
30
+ *
31
+ * @type {string}
32
+ * @public
33
+ */
34
+ this.id = "";
35
+
36
+ /**
37
+ * The RTU this Bin Tip Barcode Scanner Belt belongs to
38
+ *
39
+ * @type {?number}
40
+ * @public
41
+ */
42
+ this.rtuId = null;
43
+
44
+ /**
45
+ * The Name of this Bin Tip Barcode Scanner
46
+ *
47
+ * @type {string}
48
+ * @public
49
+ */
50
+ this.name = "";
51
+
52
+ /**
53
+ * The Points used by this Bin Tip Barcode Scanner
54
+ *
55
+ * @type {{scannerErrorBeepRequest: number, restartServiceRequest: number}}
56
+ * @public
57
+ */
58
+ this.points = (function(){
59
+ let pointsDefaultValue = {};
60
+
61
+ pointsDefaultValue.scannerErrorBeepRequest = 0;
62
+
63
+ pointsDefaultValue.restartServiceRequest = 0;
64
+
65
+ return pointsDefaultValue;
66
+ }());
67
+
68
+ /**
69
+ * The Bin Tip that owns this Barcode Scanner
70
+ *
71
+ * @type {string}
72
+ * @public
73
+ */
74
+ this.binTipId = "";
75
+
76
+ /**
77
+ * Whether the Bin Tip Barcode Scanner has been deleted
78
+ *
79
+ * @type {boolean}
80
+ * @public
81
+ */
82
+ this.deleted = false;
83
+
84
+ /**
85
+ * When the Bin Tip Barcode Scanner was last updated
86
+ *
87
+ * @type {Date}
88
+ * @public
89
+ */
90
+ this.updateTimestamp = new Date();
91
+
92
+ /**
93
+ * The Site ID associated with this Bin Tip Barcode Scanner
94
+ *
95
+ * @type {number}
96
+ * @public
97
+ */
98
+ this.siteId = siteId;
99
+ }
100
+
101
+ /**
102
+ * Create a new **BinTipBarcodeScannerModel** from a JSON Object or JSON String
103
+ *
104
+ * @static
105
+ * @public
106
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
107
+ * @param {number} siteId The Site ID associated with this Bin Tip Barcode Scanner
108
+ * @return {BinTipBarcodeScannerModel}
109
+ */
110
+ static fromJSON(json, siteId)
111
+ {
112
+ let model = new BinTipBarcodeScannerModel(siteId);
113
+
114
+ /**
115
+ * The JSON Object
116
+ *
117
+ * @type {Object<string, any>}
118
+ */
119
+ let jsonObject = {};
120
+
121
+ if(typeof json === 'string')
122
+ {
123
+ jsonObject = JSON.parse(json);
124
+ }
125
+ else if(typeof json === 'object')
126
+ {
127
+ jsonObject = json;
128
+ }
129
+
130
+ if('id' in jsonObject)
131
+ {
132
+ model.id = (function(){
133
+ if(typeof jsonObject['id'] !== 'string')
134
+ {
135
+ return String(jsonObject['id']);
136
+ }
137
+
138
+ return jsonObject['id'];
139
+ }());
140
+ }
141
+
142
+ if('rtuId' in jsonObject)
143
+ {
144
+ model.rtuId = (function(){
145
+ if(jsonObject['rtuId'] === null)
146
+ {
147
+ return null;
148
+ }
149
+
150
+ if(typeof jsonObject['rtuId'] !== 'number')
151
+ {
152
+ return Number.isInteger(Number(jsonObject['rtuId'])) ? Number(jsonObject['rtuId']) : Math.floor(Number(jsonObject['rtuId']));
153
+ }
154
+
155
+ return Number.isInteger(jsonObject['rtuId']) ? jsonObject['rtuId'] : Math.floor(jsonObject['rtuId']);
156
+ }());
157
+ }
158
+
159
+ if('name' in jsonObject)
160
+ {
161
+ model.name = (function(){
162
+ if(typeof jsonObject['name'] !== 'string')
163
+ {
164
+ return String(jsonObject['name']);
165
+ }
166
+
167
+ return jsonObject['name'];
168
+ }());
169
+ }
170
+
171
+ if('points' in jsonObject)
172
+ {
173
+ model.points = (function(){
174
+ let pointsObject = {};
175
+
176
+ if(typeof jsonObject['points'] === 'object' && 'scannerErrorBeepRequest' in jsonObject['points'])
177
+ {
178
+ pointsObject.scannerErrorBeepRequest = (function(){
179
+ if(typeof jsonObject['points'].scannerErrorBeepRequest !== 'number')
180
+ {
181
+ return Number.isInteger(Number(jsonObject['points'].scannerErrorBeepRequest)) ? Number(jsonObject['points'].scannerErrorBeepRequest) : Math.floor(Number(jsonObject['points'].scannerErrorBeepRequest));
182
+ }
183
+
184
+ return Number.isInteger(jsonObject['points'].scannerErrorBeepRequest) ? jsonObject['points'].scannerErrorBeepRequest : Math.floor(jsonObject['points'].scannerErrorBeepRequest);
185
+ }());
186
+ }
187
+ else
188
+ {
189
+ pointsObject.scannerErrorBeepRequest = 0;
190
+ }
191
+
192
+ if(typeof jsonObject['points'] === 'object' && 'restartServiceRequest' in jsonObject['points'])
193
+ {
194
+ pointsObject.restartServiceRequest = (function(){
195
+ if(typeof jsonObject['points'].restartServiceRequest !== 'number')
196
+ {
197
+ return Number.isInteger(Number(jsonObject['points'].restartServiceRequest)) ? Number(jsonObject['points'].restartServiceRequest) : Math.floor(Number(jsonObject['points'].restartServiceRequest));
198
+ }
199
+
200
+ return Number.isInteger(jsonObject['points'].restartServiceRequest) ? jsonObject['points'].restartServiceRequest : Math.floor(jsonObject['points'].restartServiceRequest);
201
+ }());
202
+ }
203
+ else
204
+ {
205
+ pointsObject.restartServiceRequest = 0;
206
+ }
207
+
208
+ return pointsObject;
209
+ }());
210
+ }
211
+
212
+ if('binTipId' in jsonObject)
213
+ {
214
+ model.binTipId = (function(){
215
+ if(typeof jsonObject['binTipId'] !== 'string')
216
+ {
217
+ return String(jsonObject['binTipId']);
218
+ }
219
+
220
+ return jsonObject['binTipId'];
221
+ }());
222
+ }
223
+
224
+ if('deleted' in jsonObject)
225
+ {
226
+ model.deleted = (function(){
227
+ if(typeof jsonObject['deleted'] !== 'boolean')
228
+ {
229
+ return Boolean(jsonObject['deleted']);
230
+ }
231
+
232
+ return jsonObject['deleted'];
233
+ }());
234
+ }
235
+
236
+ if('updateTimestamp' in jsonObject)
237
+ {
238
+ model.updateTimestamp = (function(){
239
+ if(typeof jsonObject['updateTimestamp'] !== 'string')
240
+ {
241
+ return new Date(String(jsonObject['updateTimestamp']));
242
+ }
243
+
244
+ return new Date(jsonObject['updateTimestamp']);
245
+ }());
246
+ }
247
+
248
+ return model;
249
+ }
250
+ }
251
+
252
+ export default BinTipBarcodeScannerModel;