@ricado/api-client 2.3.16 → 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 (79) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Integrations/ExternalShiftManagementController.js +76 -0
  3. package/lib/Controllers/Packhouse/Integrations/index.js +25 -0
  4. package/lib/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +198 -0
  5. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
  6. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +959 -0
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
  9. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
  10. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
  11. package/lib/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
  12. package/lib/Controllers/Packhouse/Site/PackingLineController.js +435 -23
  13. package/lib/Controllers/Packhouse/Site/PackrunController.js +11 -2
  14. package/lib/Controllers/Packhouse/Site/RejectBinController.js +38 -2
  15. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
  16. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
  17. package/lib/Controllers/Packhouse/Site/ShiftController.js +1 -1
  18. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  19. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
  20. package/lib/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
  21. package/lib/Controllers/Packhouse/Site/index.js +6 -0
  22. package/lib/Controllers/Packhouse/index.js +5 -2
  23. package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +263 -0
  24. package/lib/Models/Packhouse/Site/BinTipBinModel.js +75 -5
  25. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +1276 -5
  26. package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +627 -0
  27. package/lib/Models/Packhouse/Site/CompacSizerModel.js +966 -72
  28. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +260 -8
  29. package/lib/Models/Packhouse/Site/MAFSizerModel.js +660 -85
  30. package/lib/Models/Packhouse/Site/PackingLineModel.js +3860 -551
  31. package/lib/Models/Packhouse/Site/PackrunModel.js +26 -4
  32. package/lib/Models/Packhouse/Site/RejectBinModel.js +214 -4
  33. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +576 -14
  34. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +113 -9
  35. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +98 -0
  36. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +50 -5
  37. package/lib/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +75 -5
  38. package/lib/Models/Packhouse/Site/index.js +6 -0
  39. package/lib/PackageVersion.js +1 -1
  40. package/lib/index.d.ts +6146 -2111
  41. package/package.json +1 -1
  42. package/src/Controllers/Packhouse/Integrations/ExternalShiftManagementController.js +58 -0
  43. package/src/Controllers/Packhouse/Integrations/index.js +16 -0
  44. package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +175 -0
  45. package/src/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
  46. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
  47. package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +1090 -0
  48. package/src/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
  49. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
  50. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
  51. package/src/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
  52. package/src/Controllers/Packhouse/Site/PackingLineController.js +435 -23
  53. package/src/Controllers/Packhouse/Site/PackrunController.js +11 -2
  54. package/src/Controllers/Packhouse/Site/RejectBinController.js +38 -2
  55. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
  56. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
  57. package/src/Controllers/Packhouse/Site/ShiftController.js +1 -1
  58. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  59. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
  60. package/src/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
  61. package/src/Controllers/Packhouse/Site/index.js +4 -0
  62. package/src/Controllers/Packhouse/index.js +2 -0
  63. package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +252 -0
  64. package/src/Models/Packhouse/Site/BinTipBinModel.js +97 -5
  65. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +1682 -5
  66. package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +715 -0
  67. package/src/Models/Packhouse/Site/CompacSizerModel.js +1319 -109
  68. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +339 -8
  69. package/src/Models/Packhouse/Site/MAFSizerModel.js +869 -92
  70. package/src/Models/Packhouse/Site/PackingLineModel.js +5086 -671
  71. package/src/Models/Packhouse/Site/PackrunModel.js +33 -4
  72. package/src/Models/Packhouse/Site/RejectBinModel.js +280 -4
  73. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +775 -15
  74. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +147 -10
  75. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +120 -0
  76. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +65 -5
  77. package/src/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +97 -5
  78. package/src/Models/Packhouse/Site/index.js +4 -0
  79. package/src/PackageVersion.js +1 -1
@@ -182,11 +182,11 @@ var _default = RejectBinScaleController;
182
182
  * @typedef {Object} RejectBinScaleController.CreateData
183
183
  * @property {?number} [rtuId] The RTU this Reject Bin Scale belongs to
184
184
  * @property {string} name The Name of this Reject Bin Scale
185
- * @property {Object} points The Points used by this Reject Bin Scale
185
+ * @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
186
186
  * @property {string} packingLineId The Packing Line that owns this Reject Bin Scale
187
187
  * @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
188
188
  * @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
189
- * @property {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
189
+ * @property {RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
190
190
  * @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
191
191
  * @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
192
192
  * @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
@@ -199,7 +199,7 @@ var _default = RejectBinScaleController;
199
199
  * @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
200
200
  * @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
201
201
  * @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
202
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
202
+ * @property {?RejectBinScaleController.FreshPackBinScaleIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
203
203
  * @memberof Controllers.Packhouse.Site
204
204
  */
205
205
 
@@ -208,11 +208,11 @@ var _default = RejectBinScaleController;
208
208
  *
209
209
  * @typedef {Object} RejectBinScaleController.UpdateData
210
210
  * @property {string} [name] The Name of this Reject Bin Scale
211
- * @property {Object} [points] The Points used by this Reject Bin Scale
211
+ * @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
212
212
  * @property {string} [packingLineId] The Packing Line that owns this Reject Bin Scale
213
213
  * @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
214
214
  * @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
215
- * @property {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
215
+ * @property {RejectBinScaleController.SortingTableSource|RejectBinScaleController.BeltSource|RejectBinScaleController.SizerOutletSource[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
216
216
  * @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
217
217
  * @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
218
218
  * @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
@@ -225,7 +225,53 @@ var _default = RejectBinScaleController;
225
225
  * @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
226
226
  * @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
227
227
  * @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
228
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
228
+ * @property {?RejectBinScaleController.FreshPackBinScaleIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
229
+ * @memberof Controllers.Packhouse.Site
230
+ */
231
+
232
+ /**
233
+ * A **SortingTableSource** Type
234
+ *
235
+ * @typedef {Object} RejectBinScaleController.SortingTableSource
236
+ * @property {string} type Type of this Reject Bin Scale Source
237
+ * @property {string} sortingTableId ID of the Sorting Table Object
238
+ * @property {string} classType The Default Class Type of this Reject Bin Scale Source
239
+ * @property {Array<{varietyId: string, classType: string}>} varietyClassTypes An Array of Varieties and Class Types to override the Default Class Type
240
+ * @memberof Controllers.Packhouse.Site
241
+ */
242
+
243
+ /**
244
+ * A **BeltSource** Type
245
+ *
246
+ * @typedef {Object} RejectBinScaleController.BeltSource
247
+ * @property {string} type Type of this Reject Bin Scale Source
248
+ * @property {?string} beltName Name of the Belt
249
+ * @property {string} classType The Default Class Type of this Reject Bin Scale Source
250
+ * @property {Array<{varietyId: string, classType: string}>} varietyClassTypes An Array of Varieties and Class Types to override the Default Class Type
251
+ * @memberof Controllers.Packhouse.Site
252
+ */
253
+
254
+ /**
255
+ * A **SizerOutletSource** Type
256
+ *
257
+ * @typedef {Object} RejectBinScaleController.SizerOutletSource
258
+ * @property {string} type Type of this Reject Bin Scale Source
259
+ * @property {string} sizerId ID of the Sizer Object
260
+ * @property {number} outletNumber Outlet Number of the Sizer Outlet
261
+ * @memberof Controllers.Packhouse.Site
262
+ */
263
+
264
+ /**
265
+ * A **FreshPackBinScaleIntegration** Type
266
+ *
267
+ * @typedef {Object} RejectBinScaleController.FreshPackBinScaleIntegration
268
+ * @property {Object} points The Points used by this FreshPack Bin Scale Integration
269
+ * @property {boolean} enabled Whether this FreshPack Bin Scale Integration is Enabled
270
+ * @property {number} materialGroupId The FreshPack Material Group ID to be used for Multi-Grower Bins from this Reject Bin Scale
271
+ * @property {number} binTypeId The FreshPack Bin Type ID to be used for Multi-Grower Bins from this Reject Bin Scale
272
+ * @property {?number} printerGroupId The FreshPack Printer Group ID to be used when Printing Multi-Grower Bin Cards for this Reject Bin Scale
273
+ * @property {boolean} binCardPrintingEnabled Whether Bin Card Printing is Enabled
274
+ * @property {boolean} [useWindowsDriverApi] Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
229
275
  * @memberof Controllers.Packhouse.Site
230
276
  */
231
277
 
@@ -839,8 +839,8 @@ var _default = RejectBinWeightController;
839
839
  * @property {Date} [createdTimestamp] When this Reject Bin Weight was Created
840
840
  * @property {?string} [packrunId] The Packrun this Reject Weight is associated with
841
841
  * @property {number} netWeight The Net Weight Captured by the Reject Bin Scale
842
- * @property {Object[]} [sources] The Source Weights that make up the Net Weight
843
- * @property {Object[]} freshPackMultiGrowerBinWeights The Multi-Grower Bin Weights that will be submitted to FreshPack
842
+ * @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource[]} [sources] The Source Weights that make up the Net Weight
843
+ * @property {Array<RejectBinWeightController.FreshPackMultiGrowerBinWeight>} freshPackMultiGrowerBinWeights The Multi-Grower Bin Weights that will be submitted to FreshPack
844
844
  * @memberof Controllers.Packhouse.Site
845
845
  */
846
846
 
@@ -852,8 +852,8 @@ var _default = RejectBinWeightController;
852
852
  * @property {Date} [createdTimestamp] When this Reject Bin Weight was Created
853
853
  * @property {?string} [packrunId] The Packrun this Reject Weight is associated with
854
854
  * @property {number} [netWeight] The Net Weight Captured by the Reject Bin Scale
855
- * @property {Object[]} [sources] The Source Weights that make up the Net Weight
856
- * @property {Object[]} [freshPackMultiGrowerBinWeights] The Multi-Grower Bin Weights that will be submitted to FreshPack
855
+ * @property {RejectBinWeightController.SortingTableSource|RejectBinWeightController.BeltSource|RejectBinWeightController.SizerOutletSource|RejectBinWeightController.MixedSource[]} [sources] The Source Weights that make up the Net Weight
856
+ * @property {Array<RejectBinWeightController.FreshPackMultiGrowerBinWeight>} [freshPackMultiGrowerBinWeights] The Multi-Grower Bin Weights that will be submitted to FreshPack
857
857
  * @memberof Controllers.Packhouse.Site
858
858
  */
859
859
 
@@ -879,4 +879,70 @@ var _default = RejectBinWeightController;
879
879
  * @memberof Controllers.Packhouse.Site
880
880
  */
881
881
 
882
+ /**
883
+ * A **SortingTableSource** Type
884
+ *
885
+ * @typedef {Object} RejectBinWeightController.SortingTableSource
886
+ * @property {string} type Type of this Reject Bin Source
887
+ * @property {string} sortingTableId ID of the Sorting Table Object
888
+ * @property {?string} sortingTableName Name of the Sorting Table
889
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
890
+ * @memberof Controllers.Packhouse.Site
891
+ */
892
+
893
+ /**
894
+ * A **BeltSource** Type
895
+ *
896
+ * @typedef {Object} RejectBinWeightController.BeltSource
897
+ * @property {string} type Type of this Reject Bin Source
898
+ * @property {?string} beltName Name of the Belt
899
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
900
+ * @memberof Controllers.Packhouse.Site
901
+ */
902
+
903
+ /**
904
+ * A **SizerOutletSource** Type
905
+ *
906
+ * @typedef {Object} RejectBinWeightController.SizerOutletSource
907
+ * @property {string} type Type of this Reject Bin Source
908
+ * @property {string} sizerId ID of the Sizer Object
909
+ * @property {?string} sizerName Name of the Sizer
910
+ * @property {number} outletNumber Outlet Number of the Sizer Outlet
911
+ * @property {?string} outletName Name of the Sizer Outlet
912
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
913
+ * @memberof Controllers.Packhouse.Site
914
+ */
915
+
916
+ /**
917
+ * A **MixedSource** Type
918
+ *
919
+ * @typedef {Object} RejectBinWeightController.MixedSource
920
+ * @property {string} type Type of this Reject Bin Source
921
+ * @property {string[]} mixedNames An Array of Mixed Source Names
922
+ * @property {Array<{classType: string, weight: number, fruitCount: ?number}>} weights An Array of Weights by Class Type for this Reject Bin Source
923
+ * @memberof Controllers.Packhouse.Site
924
+ */
925
+
926
+ /**
927
+ * Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
928
+ *
929
+ * @typedef {Object} RejectBinWeightController.BinWeightApiStatus
930
+ * @property {number} requestCount Number of Requests made to the FreshPack API
931
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
932
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
933
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
934
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
935
+ * @memberof Controllers.Packhouse.Site
936
+ */
937
+
938
+ /**
939
+ * A **FreshPackMultiGrowerBinWeight** Type
940
+ *
941
+ * @typedef {Object} RejectBinWeightController.FreshPackMultiGrowerBinWeight
942
+ * @property {string} classType The Class Type of this Multi-Grower Bin Weight
943
+ * @property {number} weight The Net Weight in Kilograms of this Multi-Grower Bin Weight
944
+ * @property {?RejectBinWeightController.BinWeightApiStatus} weightApi Results from Interacting with the FreshPack API to Send Multi-Grower Bin Weights
945
+ * @memberof Controllers.Packhouse.Site
946
+ */
947
+
882
948
  exports.default = _default;
@@ -942,7 +942,7 @@ var _default = ShiftController;
942
942
  * A **ShiftAreaNote** Type
943
943
  *
944
944
  * @typedef {Object} ShiftController.ShiftAreaNote
945
- * @property {string} area The Area this Notes applies to
945
+ * @property {string} area The Area this Note applies to
946
946
  * @property {Date} timestamp The Timestamp when this Note was Created
947
947
  * @property {string} content The Content for this Note
948
948
  * @memberof Controllers.Packhouse.Site
@@ -854,6 +854,8 @@ var _default = ShiftHourlyEntryController;
854
854
  * @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
855
855
  * @property {?number} [averageClass1ManningTarget] The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
856
856
  * @property {?number} [averageClass2ManningTarget] The Average Target Number of People that should be working in the Class 2 Area for this Hour
857
+ * @property {?Array<ShiftHourlyEntryController.ManningTeam>} [manningTeams] An Array of Manning Teams and their Headcounts for this Hour. Only Applies when *manningUsesTeams* is *true*
858
+ * @property {?boolean} [manningUsesTeams] Whether Manning is tracked at the Team Level for this Hour
857
859
  * @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
858
860
  * @property {?number} [layeredTrayPercentage] The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
859
861
  * @property {?number} [layeredTrayPercentageTarget] The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
@@ -896,6 +898,8 @@ var _default = ShiftHourlyEntryController;
896
898
  * @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
897
899
  * @property {?number} [averageClass1ManningTarget] The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
898
900
  * @property {?number} [averageClass2ManningTarget] The Average Target Number of People that should be working in the Class 2 Area for this Hour
901
+ * @property {?Array<ShiftHourlyEntryController.ManningTeam>} [manningTeams] An Array of Manning Teams and their Headcounts for this Hour. Only Applies when *manningUsesTeams* is *true*
902
+ * @property {?boolean} [manningUsesTeams] Whether Manning is tracked at the Team Level for this Hour
899
903
  * @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
900
904
  * @property {?number} [layeredTrayPercentage] The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
901
905
  * @property {?number} [layeredTrayPercentageTarget] The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
@@ -947,6 +951,17 @@ var _default = ShiftHourlyEntryController;
947
951
  * @memberof Controllers.Packhouse.Site
948
952
  */
949
953
 
954
+ /**
955
+ * A **ManningTeam** Type
956
+ *
957
+ * @typedef {Object} ShiftHourlyEntryController.ManningTeam
958
+ * @property {string} id ID of the Team
959
+ * @property {string} name Name of the Team
960
+ * @property {number} headcount Total Number of People Working in this Team
961
+ * @property {string} group The Group this Team is associated with
962
+ * @memberof Controllers.Packhouse.Site
963
+ */
964
+
950
965
  /**
951
966
  * A **CustomQualityDataItem** Type
952
967
  *
@@ -423,7 +423,7 @@ var _default = SoftSortBeltController;
423
423
  * @typedef {Object} SoftSortBeltController.CreateData
424
424
  * @property {?number} [rtuId] The RTU this Soft Sort Belt belongs to
425
425
  * @property {string} name The Name of this Soft Sort Belt
426
- * @property {Object} points The Points used by this Soft Sort Belt
426
+ * @property {{runAuto: number, slowMode: ?number, stopMode: number}} points The Points used by this Soft Sort Belt
427
427
  * @property {string} packingLineId The Packing Line that owns this Soft Sort Belt
428
428
  * @memberof Controllers.Packhouse.Site
429
429
  */
@@ -433,7 +433,7 @@ var _default = SoftSortBeltController;
433
433
  *
434
434
  * @typedef {Object} SoftSortBeltController.UpdateData
435
435
  * @property {string} [name] The Name of this Soft Sort Belt
436
- * @property {Object} [points] The Points used by this Soft Sort Belt
436
+ * @property {{runAuto: number, slowMode: ?number, stopMode: number}} [points] The Points used by this Soft Sort Belt
437
437
  * @property {string} [packingLineId] The Packing Line that owns this Soft Sort Belt
438
438
  * @memberof Controllers.Packhouse.Site
439
439
  */
@@ -845,7 +845,7 @@ var _default = SoftSortPackrunSummaryController;
845
845
  * @property {?Date} [eventsFinalizedTimestamp] Whether the Soft-Sort Events Data for this Summary has been Finalized
846
846
  * @property {?boolean} [eventsAccurate] Whether the Soft-Sort Events for this Summary are considered accurate or not
847
847
  * @property {?string} [eventsNotAccurateReason] A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
848
- * @property {?Object} [freshPackSoftSortApi] The FreshPack Soft-Sort API Data
848
+ * @property {?SoftSortPackrunSummaryController.SoftSortApiStatus} [freshPackSoftSortApi] Results from Interacting with the FreshPack API to Send Soft-Sort Events Data
849
849
  * @memberof Controllers.Packhouse.Site
850
850
  */
851
851
 
@@ -862,7 +862,7 @@ var _default = SoftSortPackrunSummaryController;
862
862
  * @property {?Date} [eventsFinalizedTimestamp] Whether the Soft-Sort Events Data for this Summary has been Finalized
863
863
  * @property {?boolean} [eventsAccurate] Whether the Soft-Sort Events for this Summary are considered accurate or not
864
864
  * @property {?string} [eventsNotAccurateReason] A Reason for why the Events for this Summary are not accurate. Applies when `eventsAccurate` is false
865
- * @property {?Object} [freshPackSoftSortApi] The FreshPack Soft-Sort API Data
865
+ * @property {?SoftSortPackrunSummaryController.SoftSortApiStatus} [freshPackSoftSortApi] Results from Interacting with the FreshPack API to Send Soft-Sort Events Data
866
866
  * @memberof Controllers.Packhouse.Site
867
867
  */
868
868
 
@@ -888,4 +888,16 @@ var _default = SoftSortPackrunSummaryController;
888
888
  * @memberof Controllers.Packhouse.Site
889
889
  */
890
890
 
891
+ /**
892
+ * A **SoftSortApiStatus** Type
893
+ *
894
+ * @typedef {Object} SoftSortPackrunSummaryController.SoftSortApiStatus
895
+ * @property {number} requestCount Number of Requests made to the FreshPack API
896
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
897
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
898
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
899
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
900
+ * @memberof Controllers.Packhouse.Site
901
+ */
902
+
891
903
  exports.default = _default;
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _BinTipBarcodeScannerController = _interopRequireDefault(require("./BinTipBarcodeScannerController"));
9
+
8
10
  var _BinTipBinCardController = _interopRequireDefault(require("./BinTipBinCardController"));
9
11
 
10
12
  var _BinTipBinController = _interopRequireDefault(require("./BinTipBinController"));
@@ -13,6 +15,8 @@ var _BinTipWeightController = _interopRequireDefault(require("./BinTipWeightCont
13
15
 
14
16
  var _CompacSizerBatchController = _interopRequireDefault(require("./CompacSizerBatchController"));
15
17
 
18
+ var _CompacSizerBinWeightController = _interopRequireDefault(require("./CompacSizerBinWeightController"));
19
+
16
20
  var _CompacSizerController = _interopRequireDefault(require("./CompacSizerController"));
17
21
 
18
22
  var _CompacSizerOutletProductChangeController = _interopRequireDefault(require("./CompacSizerOutletProductChangeController"));
@@ -81,10 +85,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
81
85
  * @namespace Controllers.Packhouse.Site
82
86
  */
83
87
  var Site = {
88
+ BinTipBarcodeScannerController: _BinTipBarcodeScannerController.default,
84
89
  BinTipBinCardController: _BinTipBinCardController.default,
85
90
  BinTipBinController: _BinTipBinController.default,
86
91
  BinTipWeightController: _BinTipWeightController.default,
87
92
  CompacSizerBatchController: _CompacSizerBatchController.default,
93
+ CompacSizerBinWeightController: _CompacSizerBinWeightController.default,
88
94
  CompacSizerController: _CompacSizerController.default,
89
95
  CompacSizerOutletProductChangeController: _CompacSizerOutletProductChangeController.default,
90
96
  CompacSizerOutletTypeChangeController: _CompacSizerOutletTypeChangeController.default,
@@ -7,7 +7,9 @@ exports.default = void 0;
7
7
 
8
8
  var _ProductionDataExportController = _interopRequireDefault(require("./ProductionDataExportController"));
9
9
 
10
- var _index = _interopRequireDefault(require("./Site/index"));
10
+ var _index = _interopRequireDefault(require("./Integrations/index"));
11
+
12
+ var _index2 = _interopRequireDefault(require("./Site/index"));
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
@@ -22,7 +24,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
22
24
  */
23
25
  var Packhouse = {
24
26
  ProductionDataExportController: _ProductionDataExportController.default,
25
- Site: _index.default
27
+ Integrations: _index.default,
28
+ Site: _index2.default
26
29
  };
27
30
  var _default = Packhouse;
28
31
  exports.default = _default;
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ /**
35
+ * Model Class for a Bin Tip Barcode Scanner
36
+ *
37
+ * @class
38
+ * @hideconstructor
39
+ * @extends BaseModel
40
+ */
41
+ var BinTipBarcodeScannerModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(BinTipBarcodeScannerModel, _BaseModel);
43
+
44
+ var _super = _createSuper(BinTipBarcodeScannerModel);
45
+
46
+ /**
47
+ * BinTipBarcodeScannerModel Constructor
48
+ *
49
+ * @protected
50
+ * @param {number} siteId The Site ID associated with this Bin Tip Barcode Scanner
51
+ */
52
+ function BinTipBarcodeScannerModel(siteId) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, BinTipBarcodeScannerModel);
56
+
57
+ _this = _super.call(this);
58
+ /**
59
+ * The Bin Tip Barcode Scanner ID
60
+ *
61
+ * @type {string}
62
+ * @public
63
+ */
64
+
65
+ _this.id = "";
66
+ /**
67
+ * The RTU this Bin Tip Barcode Scanner Belt belongs to
68
+ *
69
+ * @type {?number}
70
+ * @public
71
+ */
72
+
73
+ _this.rtuId = null;
74
+ /**
75
+ * The Name of this Bin Tip Barcode Scanner
76
+ *
77
+ * @type {string}
78
+ * @public
79
+ */
80
+
81
+ _this.name = "";
82
+ /**
83
+ * The Points used by this Bin Tip Barcode Scanner
84
+ *
85
+ * @type {{scannerErrorBeepRequest: number, restartServiceRequest: number}}
86
+ * @public
87
+ */
88
+
89
+ _this.points = function () {
90
+ var pointsDefaultValue = {};
91
+ pointsDefaultValue.scannerErrorBeepRequest = 0;
92
+ pointsDefaultValue.restartServiceRequest = 0;
93
+ return pointsDefaultValue;
94
+ }();
95
+ /**
96
+ * The Bin Tip that owns this Barcode Scanner
97
+ *
98
+ * @type {string}
99
+ * @public
100
+ */
101
+
102
+
103
+ _this.binTipId = "";
104
+ /**
105
+ * Whether the Bin Tip Barcode Scanner has been deleted
106
+ *
107
+ * @type {boolean}
108
+ * @public
109
+ */
110
+
111
+ _this.deleted = false;
112
+ /**
113
+ * When the Bin Tip Barcode Scanner was last updated
114
+ *
115
+ * @type {Date}
116
+ * @public
117
+ */
118
+
119
+ _this.updateTimestamp = new Date();
120
+ /**
121
+ * The Site ID associated with this Bin Tip Barcode Scanner
122
+ *
123
+ * @type {number}
124
+ * @public
125
+ */
126
+
127
+ _this.siteId = siteId;
128
+ return _this;
129
+ }
130
+ /**
131
+ * Create a new **BinTipBarcodeScannerModel** from a JSON Object or JSON String
132
+ *
133
+ * @static
134
+ * @public
135
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
136
+ * @param {number} siteId The Site ID associated with this Bin Tip Barcode Scanner
137
+ * @return {BinTipBarcodeScannerModel}
138
+ */
139
+
140
+
141
+ _createClass(BinTipBarcodeScannerModel, null, [{
142
+ key: "fromJSON",
143
+ value: function fromJSON(json, siteId) {
144
+ var model = new BinTipBarcodeScannerModel(siteId);
145
+ /**
146
+ * The JSON Object
147
+ *
148
+ * @type {Object<string, any>}
149
+ */
150
+
151
+ var jsonObject = {};
152
+
153
+ if (typeof json === 'string') {
154
+ jsonObject = JSON.parse(json);
155
+ } else if (_typeof(json) === 'object') {
156
+ jsonObject = json;
157
+ }
158
+
159
+ if ('id' in jsonObject) {
160
+ model.id = function () {
161
+ if (typeof jsonObject['id'] !== 'string') {
162
+ return String(jsonObject['id']);
163
+ }
164
+
165
+ return jsonObject['id'];
166
+ }();
167
+ }
168
+
169
+ if ('rtuId' in jsonObject) {
170
+ model.rtuId = function () {
171
+ if (jsonObject['rtuId'] === null) {
172
+ return null;
173
+ }
174
+
175
+ if (typeof jsonObject['rtuId'] !== 'number') {
176
+ return Number.isInteger(Number(jsonObject['rtuId'])) ? Number(jsonObject['rtuId']) : Math.floor(Number(jsonObject['rtuId']));
177
+ }
178
+
179
+ return Number.isInteger(jsonObject['rtuId']) ? jsonObject['rtuId'] : Math.floor(jsonObject['rtuId']);
180
+ }();
181
+ }
182
+
183
+ if ('name' in jsonObject) {
184
+ model.name = function () {
185
+ if (typeof jsonObject['name'] !== 'string') {
186
+ return String(jsonObject['name']);
187
+ }
188
+
189
+ return jsonObject['name'];
190
+ }();
191
+ }
192
+
193
+ if ('points' in jsonObject) {
194
+ model.points = function () {
195
+ var pointsObject = {};
196
+
197
+ if (_typeof(jsonObject['points']) === 'object' && 'scannerErrorBeepRequest' in jsonObject['points']) {
198
+ pointsObject.scannerErrorBeepRequest = function () {
199
+ if (typeof jsonObject['points'].scannerErrorBeepRequest !== 'number') {
200
+ return Number.isInteger(Number(jsonObject['points'].scannerErrorBeepRequest)) ? Number(jsonObject['points'].scannerErrorBeepRequest) : Math.floor(Number(jsonObject['points'].scannerErrorBeepRequest));
201
+ }
202
+
203
+ return Number.isInteger(jsonObject['points'].scannerErrorBeepRequest) ? jsonObject['points'].scannerErrorBeepRequest : Math.floor(jsonObject['points'].scannerErrorBeepRequest);
204
+ }();
205
+ } else {
206
+ pointsObject.scannerErrorBeepRequest = 0;
207
+ }
208
+
209
+ if (_typeof(jsonObject['points']) === 'object' && 'restartServiceRequest' in jsonObject['points']) {
210
+ pointsObject.restartServiceRequest = function () {
211
+ if (typeof jsonObject['points'].restartServiceRequest !== 'number') {
212
+ return Number.isInteger(Number(jsonObject['points'].restartServiceRequest)) ? Number(jsonObject['points'].restartServiceRequest) : Math.floor(Number(jsonObject['points'].restartServiceRequest));
213
+ }
214
+
215
+ return Number.isInteger(jsonObject['points'].restartServiceRequest) ? jsonObject['points'].restartServiceRequest : Math.floor(jsonObject['points'].restartServiceRequest);
216
+ }();
217
+ } else {
218
+ pointsObject.restartServiceRequest = 0;
219
+ }
220
+
221
+ return pointsObject;
222
+ }();
223
+ }
224
+
225
+ if ('binTipId' in jsonObject) {
226
+ model.binTipId = function () {
227
+ if (typeof jsonObject['binTipId'] !== 'string') {
228
+ return String(jsonObject['binTipId']);
229
+ }
230
+
231
+ return jsonObject['binTipId'];
232
+ }();
233
+ }
234
+
235
+ if ('deleted' in jsonObject) {
236
+ model.deleted = function () {
237
+ if (typeof jsonObject['deleted'] !== 'boolean') {
238
+ return Boolean(jsonObject['deleted']);
239
+ }
240
+
241
+ return jsonObject['deleted'];
242
+ }();
243
+ }
244
+
245
+ if ('updateTimestamp' in jsonObject) {
246
+ model.updateTimestamp = function () {
247
+ if (typeof jsonObject['updateTimestamp'] !== 'string') {
248
+ return new Date(String(jsonObject['updateTimestamp']));
249
+ }
250
+
251
+ return new Date(jsonObject['updateTimestamp']);
252
+ }();
253
+ }
254
+
255
+ return model;
256
+ }
257
+ }]);
258
+
259
+ return BinTipBarcodeScannerModel;
260
+ }(_BaseModel2.default);
261
+
262
+ var _default = BinTipBarcodeScannerModel;
263
+ exports.default = _default;