@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
@@ -179,19 +179,20 @@ var _default = PackingLineController;
179
179
  * @typedef {Object} PackingLineController.CreateData
180
180
  * @property {?number} [rtuId] The RTU this Packing Line belongs to
181
181
  * @property {string} name The Packing Line Name
182
- * @property {Object} points The Points used by this Packing Line
183
- * @property {Object[]} [sizers] The Sizer Objects that belong to this Packing Line
184
- * @property {Object[]} [binTips] The Bin Tip Objects that belong to this this Packing Line
185
- * @property {Object[]} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
186
- * @property {?Object} [secondaryPackingLine] An Optional Secondary Packing Line Reference
187
- * @property {?Object} [automation] The Automation Object for this Packing Line
182
+ * @property {string} [shortName] A Short Name for the Packing Line Name. Typically used in Reports and Tables showing multiple Packing Lines
183
+ * @property {{currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, currentPackrunVarietyCode: number, startNextPackrunRequest: number, finishCurrentPackrunRequest: number, availablePackrunList: number, createFromAvailablePackrun: number, currentTimeBatch: number, createNewTimeBatchRequest: number, currentPackrunExportPercentage: number, currentPackrunRejectPercentage: number, currentPackrunFruitSizeSummary: number, currentPackrunTotalExportTrays: number, currentPackrunExportTraysPerBin: number, currentPackrunAverageExportFruitSize: number, currentPackrunTotalClass1LayeredTrays: number, currentPackrunTotalClass1BulkTrays: number, currentPackrunTotalClass2Trays: number, currentPackrunSoftSortEventsPerBin: number, serviceModeActive: number, serviceModeBeginRequest: number, serviceModeFinishRequest: number, serviceModeStartTimestamp: number, serviceModeMaximumDuration: number, disabled: ?number, currentPackrunRecentPackrunSummaries: number, currentPackrunHistoricalPackrunSummaries: number, nextPackrunRecentPackrunSummaries: number, nextPackrunHistoricalPackrunSummaries: number}} points The Points used by this Packing Line
184
+ * @property {Array<PackingLineController.SizerReference>} [sizers] The Sizer Objects that belong to this Packing Line
185
+ * @property {Array<PackingLineController.BinTipReference>} [binTips] The Bin Tip Objects that belong to this this Packing Line
186
+ * @property {Array<PackingLineController.RejectBinScaleReference>} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
187
+ * @property {?PackingLineController.SecondaryPackingLineReference} [secondaryPackingLine] An Optional Secondary Packing Line Reference
188
+ * @property {?PackingLineController.Automation} [automation] The Automation Object for this Packing Line
188
189
  * @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
189
- * @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
190
+ * @property {Array<PackingLineController.ClassType>} [classTypes] The Class Types that are defined for this Packing Line
190
191
  * @property {?PackingLineController.ShiftManagement} [shiftManagement] The Optional Shift Management Object for this Packing Line
191
- * @property {?Object} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
192
- * @property {?Object} [mafIntegration] The MAF Integration Configuration for this Packing Line
193
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
194
- * @property {?Object} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
192
+ * @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
193
+ * @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
194
+ * @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
195
+ * @property {?PackingLineController.FreshPackIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
195
196
  * @memberof Controllers.Packhouse.Site
196
197
  */
197
198
 
@@ -200,19 +201,293 @@ var _default = PackingLineController;
200
201
  *
201
202
  * @typedef {Object} PackingLineController.UpdateData
202
203
  * @property {string} [name] The Packing Line Name
203
- * @property {Object} [points] The Points used by this Packing Line
204
- * @property {Object[]} [sizers] The Sizer Objects that belong to this Packing Line
205
- * @property {Object[]} [binTips] The Bin Tip Objects that belong to this this Packing Line
206
- * @property {Object[]} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
207
- * @property {?Object} [secondaryPackingLine] An Optional Secondary Packing Line Reference
208
- * @property {?Object} [automation] The Automation Object for this Packing Line
204
+ * @property {string} [shortName] A Short Name for the Packing Line Name. Typically used in Reports and Tables showing multiple Packing Lines
205
+ * @property {{currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, currentPackrunVarietyCode: number, startNextPackrunRequest: number, finishCurrentPackrunRequest: number, availablePackrunList: number, createFromAvailablePackrun: number, currentTimeBatch: number, createNewTimeBatchRequest: number, currentPackrunExportPercentage: number, currentPackrunRejectPercentage: number, currentPackrunFruitSizeSummary: number, currentPackrunTotalExportTrays: number, currentPackrunExportTraysPerBin: number, currentPackrunAverageExportFruitSize: number, currentPackrunTotalClass1LayeredTrays: number, currentPackrunTotalClass1BulkTrays: number, currentPackrunTotalClass2Trays: number, currentPackrunSoftSortEventsPerBin: number, serviceModeActive: number, serviceModeBeginRequest: number, serviceModeFinishRequest: number, serviceModeStartTimestamp: number, serviceModeMaximumDuration: number, disabled: ?number, currentPackrunRecentPackrunSummaries: number, currentPackrunHistoricalPackrunSummaries: number, nextPackrunRecentPackrunSummaries: number, nextPackrunHistoricalPackrunSummaries: number}} [points] The Points used by this Packing Line
206
+ * @property {Array<PackingLineController.SizerReference>} [sizers] The Sizer Objects that belong to this Packing Line
207
+ * @property {Array<PackingLineController.BinTipReference>} [binTips] The Bin Tip Objects that belong to this this Packing Line
208
+ * @property {Array<PackingLineController.RejectBinScaleReference>} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
209
+ * @property {?PackingLineController.SecondaryPackingLineReference} [secondaryPackingLine] An Optional Secondary Packing Line Reference
210
+ * @property {?PackingLineController.Automation} [automation] The Automation Object for this Packing Line
209
211
  * @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
210
- * @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
212
+ * @property {Array<PackingLineController.ClassType>} [classTypes] The Class Types that are defined for this Packing Line
211
213
  * @property {?PackingLineController.ShiftManagement} [shiftManagement] The Optional Shift Management Object for this Packing Line
212
- * @property {?Object} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
213
- * @property {?Object} [mafIntegration] The MAF Integration Configuration for this Packing Line
214
- * @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
215
- * @property {?Object} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
214
+ * @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
215
+ * @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
216
+ * @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
217
+ * @property {?PackingLineController.FreshPackIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
218
+ * @memberof Controllers.Packhouse.Site
219
+ */
220
+
221
+ /**
222
+ * A **SizerReference** Type
223
+ *
224
+ * @typedef {Object} PackingLineController.SizerReference
225
+ * @property {string} id ID of a Sizer Object
226
+ * @property {number} displayOrder Display Order of the Sizer
227
+ * @property {boolean} [ownedBySecondaryPackingLine] Whether this Sizer is Owned and Managed by a Secondary Packing Line
228
+ * @memberof Controllers.Packhouse.Site
229
+ */
230
+
231
+ /**
232
+ * A **BinTipReference** Type
233
+ *
234
+ * @typedef {Object} PackingLineController.BinTipReference
235
+ * @property {string} id ID of a Bin Tip Object
236
+ * @property {number} displayOrder Display Order of the Bin Tip
237
+ * @memberof Controllers.Packhouse.Site
238
+ */
239
+
240
+ /**
241
+ * A **RejectBinScaleReference** Type
242
+ *
243
+ * @typedef {Object} PackingLineController.RejectBinScaleReference
244
+ * @property {string} id ID of a Reject Bin Scale Object
245
+ * @property {number} displayOrder Display Order of the Reject Bin Scale
246
+ * @memberof Controllers.Packhouse.Site
247
+ */
248
+
249
+ /**
250
+ * A **SecondaryPackingLineReference** Type
251
+ *
252
+ * @typedef {Object} PackingLineController.SecondaryPackingLineReference
253
+ * @property {string} id ID of the Secondary Packing Line
254
+ * @memberof Controllers.Packhouse.Site
255
+ */
256
+
257
+ /**
258
+ * A **AutoControlGroupBasicControl** Type
259
+ *
260
+ * @typedef {Object} PackingLineController.AutoControlGroupBasicControl
261
+ * @property {{status: number, control: number}} points The Points used for this Basic Control
262
+ * @property {string} name Name of this Basic Control
263
+ * @memberof Controllers.Packhouse.Site
264
+ */
265
+
266
+ /**
267
+ * A **StartSequence** Type
268
+ *
269
+ * @typedef {Object} PackingLineController.StartSequence
270
+ * @property {number} startDelay The Start Delay for this Start Sequence Step specified in Milliseconds
271
+ * @property {number} startOrder The Start Order for this Start Sequence Step
272
+ * @property {string[]} vsds An Array of VSD Objects that are Automated by this Auto Control Group
273
+ * @property {string[]} contactors An Array of Contactor Objects that are Automated by this Auto Control Group
274
+ * @property {Array<PackingLineController.AutoControlGroupBasicControl>} basicControls An Array of Basic Controls that are Automated by this Auto Control Group
275
+ * @memberof Controllers.Packhouse.Site
276
+ */
277
+
278
+ /**
279
+ * A **AutoControlGroup** Type
280
+ *
281
+ * @typedef {Object} PackingLineController.AutoControlGroup
282
+ * @property {string} id A Unique ID for this Auto Control Group
283
+ * @property {string} name Name for this Auto Control Group
284
+ * @property {{runControl: number, startRequest: number, stopRequest: number, status: number, disabled: number}} points The Points used for this Auto Control Group
285
+ * @property {?number} [startDelay] An Optional Start Delay for this Auto Control Group specified in Milliseconds
286
+ * @property {boolean} [userStartWithoutDependencies] Whether the User can Start this Auto Control Group individually without relying on Downstream and Neighbour Dependencies
287
+ * @property {Array<PackingLineController.StartSequence>} startSequences An Array of Start Sequence Steps for this Auto Control Group
288
+ * @property {string[]} downstreamDependencyGroups An Array of other Auto Control Groups that are directly Downstream of this Auto Control Group
289
+ * @property {string[]} neighbourDependencyGroups An Array of other Auto Control Groups that are direct Neighbours of this Auto Control Group
290
+ * @property {string[]} shutdownAlarms An Array of Alarms that will Shutdown this Auto Control Group
291
+ * @memberof Controllers.Packhouse.Site
292
+ */
293
+
294
+ /**
295
+ * A **AutoSpeedGroup** Type
296
+ *
297
+ * @typedef {Object} PackingLineController.AutoSpeedGroup
298
+ * @property {string} id A Unique ID for this Auto Speed Group
299
+ * @property {string} name Name for this Auto Speed Group
300
+ * @property {string[]} vsds An Array of VSD Objects that have their Speed Automated by this Auto Speed Group
301
+ * @property {{autoSetpoint: number, overrideSetpoint: number, overrideMode: number}} points The Points used for this Auto Speed Group
302
+ * @property {string} sectionId ID of the Auto Speed Section this Auto Speed Group should be displayed under
303
+ * @property {number} displayOrder Display Order of this Auto Speed Group
304
+ * @property {boolean} [supportsAutoMode] Whether this Auto Speed Group can be Managed by an Auto Target when Override Mode is not Active
305
+ * @memberof Controllers.Packhouse.Site
306
+ */
307
+
308
+ /**
309
+ * A **AutoTarget** Type
310
+ *
311
+ * @typedef {Object} PackingLineController.AutoTarget
312
+ * @property {string} id A Unique ID for this Auto Target
313
+ * @property {string} name Name for this Auto Target
314
+ * @property {string} description Description for this Auto Target
315
+ * @property {string} type The Type of Auto Target
316
+ * @property {?string} units Optional Units for this Auto Target
317
+ * @property {number} minValue The Minimum Value for this Auto Target
318
+ * @property {number} maxValue The Maximum Value for this Auto Target
319
+ * @property {{setpoint: number, actual: number}} points The Points used for this Auto Target
320
+ * @memberof Controllers.Packhouse.Site
321
+ */
322
+
323
+ /**
324
+ * A **VsdReference** Type
325
+ *
326
+ * @typedef {Object} PackingLineController.VsdReference
327
+ * @property {string} id ID of a VSD Object
328
+ * @property {number} displayOrder Display Order of the VSD
329
+ * @memberof Controllers.Packhouse.Site
330
+ */
331
+
332
+ /**
333
+ * A **ContactorReference** Type
334
+ *
335
+ * @typedef {Object} PackingLineController.ContactorReference
336
+ * @property {string} id ID of a Contactor Object
337
+ * @property {number} displayOrder Display Order of the Contactor
338
+ * @memberof Controllers.Packhouse.Site
339
+ */
340
+
341
+ /**
342
+ * A **BasicControl** Type
343
+ *
344
+ * @typedef {Object} PackingLineController.BasicControl
345
+ * @property {{status: number, control: number}} points The Points used for this Basic Control
346
+ * @property {string} name Name of this Basic Control
347
+ * @property {number} displayOrder Display Order of this Basic Control
348
+ * @memberof Controllers.Packhouse.Site
349
+ */
350
+
351
+ /**
352
+ * A **LightControl** Type
353
+ *
354
+ * @typedef {Object} PackingLineController.LightControl
355
+ * @property {string} name Name of this Light Control
356
+ * @property {{status: number, control: number}} points The Points used for this Light Control
357
+ * @memberof Controllers.Packhouse.Site
358
+ */
359
+
360
+ /**
361
+ * A **InfeedManagementItem** Type
362
+ *
363
+ * @typedef {Object} PackingLineController.InfeedManagementItem
364
+ * @property {string} id A Unique ID for this Infeed Management Item
365
+ * @property {string} name Name for this Infeed Management Item
366
+ * @property {{infeedFruitPerMinuteTarget: number, infeedFruitPerMinuteActual: number, sizerFruitPerMinuteActual: number, sizerRecycleFruitPerMinute: number, riser1FruitPerMinuteActual: ?number, riser1LightsControlMode: ?number, riser1LightsManualControl: ?number, riser1LightsStatus: ?number, riser2FruitPerMinuteActual: ?number, riser2LightsControlMode: ?number, riser2LightsManualControl: ?number, riser2LightsStatus: ?number}} points The Points used for this Infeed Management Item
367
+ * @property {number} riserCount Number of Risers that are part of this Infeed Management Item
368
+ * @property {number} displayOrder Display Order of this Infeed Management Item
369
+ * @property {?string} [riser1AutoControlGroupId] ID of the Auto Control Group for the first Riser. Only applies if `riserCount` >= 1
370
+ * @property {?string} [riser2AutoControlGroupId] ID of the Auto Control Group for the second Riser. Only applies if `riserCount` >= 2
371
+ * @memberof Controllers.Packhouse.Site
372
+ */
373
+
374
+ /**
375
+ * A **ButtonControl** Type
376
+ *
377
+ * @typedef {Object} PackingLineController.ButtonControl
378
+ * @property {string} icon The Icon to be displayed within this Button
379
+ * @property {string} name Name of this Button Control
380
+ * @property {string} type Type of this Button Control
381
+ * @property {{control: number, disable: number}} points The Points used for this Button Control
382
+ * @property {number} resetDelay Delay in milliseconds between setting the Control Point to `true` and then `false`
383
+ * @property {number} displayOrder Display Order of this Button Control
384
+ * @memberof Controllers.Packhouse.Site
385
+ */
386
+
387
+ /**
388
+ * A **AutoSpeedSection** Type
389
+ *
390
+ * @typedef {Object} PackingLineController.AutoSpeedSection
391
+ * @property {string} id A Unique ID for this Auto Speed Section
392
+ * @property {string} name Name for this Auto Speed Section
393
+ * @property {number} displayOrder Display Order of this Auto Speed Section
394
+ * @property {Array<PackingLineController.ButtonControl>} [buttonControls] An Optional Array of Button Controls for this Auto Speed Section
395
+ * @property {?string} [splitGroupId] Optional ID shared between two Auto Speed Sections that should be displayed side-by-side
396
+ * @property {?string} [splitGroupPosition] Optional Position for this Auto Speed Section when displaying two side-by-side
397
+ * @memberof Controllers.Packhouse.Site
398
+ */
399
+
400
+ /**
401
+ * A **ConfigurationPoint** Type
402
+ *
403
+ * @typedef {Object} PackingLineController.ConfigurationPoint
404
+ * @property {string} name Name of this Configuration Point
405
+ * @property {string} type The Type of Configuration Point
406
+ * @property {number} point ID of the Boolean Point to be Configurable
407
+ * @property {?string} units Optional Units for this Configuration Point
408
+ * @property {number} minValue The Minimum Value for this Configuration Point
409
+ * @property {number} maxValue The Maximum Value for this Configuration Point
410
+ * @memberof Controllers.Packhouse.Site
411
+ */
412
+
413
+ /**
414
+ * A **ConfigurationGroup** Type
415
+ *
416
+ * @typedef {Object} PackingLineController.ConfigurationGroup
417
+ * @property {string} id A Unique ID for this Configuration Group
418
+ * @property {string} name Name for this Configuration Group
419
+ * @property {string} sectionId ID of the Configuration Section this Configuration Group should be displayed under
420
+ * @property {number} displayOrder Display Order of this Configuration Group
421
+ * @property {PackingLineController.ConfigurationPoint|PackingLineController.ConfigurationPoint[]} configurationPoints An Array of Configuration Points to be displayed in this Configuration Group
422
+ * @memberof Controllers.Packhouse.Site
423
+ */
424
+
425
+ /**
426
+ * A **ConfigurationSection** Type
427
+ *
428
+ * @typedef {Object} PackingLineController.ConfigurationSection
429
+ * @property {string} id A Unique ID for this Configuration Section
430
+ * @property {string} name Name for this Configuration Section
431
+ * @property {number} displayOrder Display Order of this Configuration Section
432
+ * @memberof Controllers.Packhouse.Site
433
+ */
434
+
435
+ /**
436
+ * A **MomentaryControlPoint** Type
437
+ *
438
+ * @typedef {Object} PackingLineController.MomentaryControlPoint
439
+ * @property {string} name Name of this Momentary Control Point
440
+ * @property {number} point ID of the Boolean Point to be used for Momentary Control
441
+ * @memberof Controllers.Packhouse.Site
442
+ */
443
+
444
+ /**
445
+ * A **MomentaryControl** Type
446
+ *
447
+ * @typedef {Object} PackingLineController.MomentaryControl
448
+ * @property {string} name Name of this Momentary Control
449
+ * @property {Array<PackingLineController.MomentaryControlPoint>} points An Array of Points used by this Momentary Control
450
+ * @property {number} displayOrder Display Order of this Momentary Control
451
+ * @memberof Controllers.Packhouse.Site
452
+ */
453
+
454
+ /**
455
+ * A **MomentaryControlGroup** Type
456
+ *
457
+ * @typedef {Object} PackingLineController.MomentaryControlGroup
458
+ * @property {string} name Name of this Momentary Control Group
459
+ * @property {Array<PackingLineController.MomentaryControl>} momentaryControls An Array of Momentary Controls for this Momentary Control Group
460
+ * @memberof Controllers.Packhouse.Site
461
+ */
462
+
463
+ /**
464
+ * A **Automation** Type
465
+ *
466
+ * @typedef {Object} PackingLineController.Automation
467
+ * @property {{controlMode: number, autoStartAllRequest: number, stopAllRequest: number, status: number, startWarningSiren: number, safetySystemHealthy: ?number}} points The Points used for Automation
468
+ * @property {Array<PackingLineController.AutoControlGroup>} autoControlGroups An Array of Auto Control Groups
469
+ * @property {Array<PackingLineController.AutoSpeedGroup>} autoSpeedGroups An Array of Auto Speed Groups
470
+ * @property {Array<PackingLineController.AutoTarget>} autoTargets An Array of Auto Targets
471
+ * @property {Array<PackingLineController.VsdReference>} vsds An Array of VSD References that are Automated by this Packing Line
472
+ * @property {Array<PackingLineController.ContactorReference>} contactors An Array of Contactor References that are Automated by this Packing Line
473
+ * @property {Array<PackingLineController.BasicControl>} basicControls An Array of Basic Controls that are Automated by this Packing Line
474
+ * @property {string[]} shutdownAlarms An Array of Alarms that will Shutdown the Automation for this Packing Line
475
+ * @property {Array<PackingLineController.LightControl>} lightControls An Optional Array of Light Controls for this Packing Line
476
+ * @property {Array<PackingLineController.InfeedManagementItem>} infeedManagement An Optional Array of Infeed Management Definitions for this Packing Line
477
+ * @property {Array<PackingLineController.AutoSpeedSection>} autoSpeedSections An Array of Sections that organize Auto Speed Groups for this Packing Line
478
+ * @property {Array<PackingLineController.ConfigurationGroup>} configurationGroups An Array of Groups that provide Configuration Options for this Packing Line
479
+ * @property {Array<PackingLineController.ConfigurationSection>} configurationSections An Array of Sections that organize Configuration Groups for this Packing Line
480
+ * @property {Array<PackingLineController.MomentaryControlGroup>} momentaryControlGroups An Array of Momentary Controls for User Interaction on this Packing Line
481
+ * @memberof Controllers.Packhouse.Site
482
+ */
483
+
484
+ /**
485
+ * A **ClassType** Type
486
+ *
487
+ * @typedef {Object} PackingLineController.ClassType
488
+ * @property {string} name User Facing Name of this Class Type
489
+ * @property {{currentPackrunPercentage: number, currentPackrunWeight: ?number}} points The Points used by a Class Type
490
+ * @property {string} classType The Class Type being defined
216
491
  * @memberof Controllers.Packhouse.Site
217
492
  */
218
493
 
@@ -240,10 +515,147 @@ var _default = PackingLineController;
240
515
  * A **ShiftManagement** Type
241
516
  *
242
517
  * @typedef {Object} PackingLineController.ShiftManagement
243
- * @property {{currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}} points The Points used for Shift Management
518
+ * @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
244
519
  * @property {Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>} customQualityConfiguration An Optional Array of Configuration Data for Custom Qualities in Shift Management
245
520
  * @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
246
521
  * @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
522
+ * @property {boolean} manningUsesTeams Whether Manning is tracked at the Team Level on this Packing Line
523
+ * @memberof Controllers.Packhouse.Site
524
+ */
525
+
526
+ /**
527
+ * A **ManualStepPointAction** Type
528
+ *
529
+ * @typedef {Object} PackingLineController.ManualStepPointAction
530
+ * @property {string} trigger When this Action should be performed. 'begin' performed once when this Step becomes Active. 'end' performed once when this Step is no longer Active. 'always' performed constantly while this Step is Active
531
+ * @property {number} pointId The Point ID to be written to
532
+ * @property {any} value Value to be written to the Point
533
+ * @memberof Controllers.Packhouse.Site
534
+ */
535
+
536
+ /**
537
+ * A **ManualStepAutoControlGroupAction** Type
538
+ *
539
+ * @typedef {Object} PackingLineController.ManualStepAutoControlGroupAction
540
+ * @property {string} trigger When this Action should be performed. 'begin' performed once when this Step becomes Active. 'end' performed once when this Step is no longer Active. 'always' performed constantly while this Step is Active
541
+ * @property {string} groupId ID of an Automation Auto Control Group
542
+ * @property {string} action The Action to be performed on the Auto Control Group
543
+ * @memberof Controllers.Packhouse.Site
544
+ */
545
+
546
+ /**
547
+ * A **ManualStep** Type
548
+ *
549
+ * @typedef {Object} PackingLineController.ManualStep
550
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
551
+ * @property {string} type The Type of Step
552
+ * @property {string} title A Title for this Manual Step
553
+ * @property {?string} subtitle An Optional Subtitle for this Manual Step
554
+ * @property {string} description A Description for this Manual Step
555
+ * @property {Array<PackingLineController.ManualStepPointAction>} [pointActions] An Optional Array of Actions that should be performed on Points by setting them to a predefined Value based on a Trigger
556
+ * @property {Array<PackingLineController.ManualStepAutoControlGroupAction>} [autoControlGroupActions]
557
+ * @memberof Controllers.Packhouse.Site
558
+ */
559
+
560
+ /**
561
+ * A **ClearSizersStep** Type
562
+ *
563
+ * @typedef {Object} PackingLineController.ClearSizersStep
564
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
565
+ * @property {string} type The Type of Step
566
+ * @property {string[]} sizerIds An Array of Sizer IDs to be included in this Step
567
+ * @memberof Controllers.Packhouse.Site
568
+ */
569
+
570
+ /**
571
+ * A **CreateSizerBatchesStep** Type
572
+ *
573
+ * @typedef {Object} PackingLineController.CreateSizerBatchesStep
574
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
575
+ * @property {string} type The Type of Step
576
+ * @property {string[]} sizerIds An Array of Sizer IDs to be included in this Step
577
+ * @memberof Controllers.Packhouse.Site
578
+ */
579
+
580
+ /**
581
+ * A **CheckFruitSizeProfileStep** Type
582
+ *
583
+ * @typedef {Object} PackingLineController.CheckFruitSizeProfileStep
584
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
585
+ * @property {string} type The Type of Step
586
+ * @property {string} sizerId ID of the Sizer to be included in this Step
587
+ * @memberof Controllers.Packhouse.Site
588
+ */
589
+
590
+ /**
591
+ * A **AutoMAFActionStep** Type
592
+ *
593
+ * @typedef {Object} PackingLineController.AutoMAFActionStep
594
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
595
+ * @property {string} type The Type of Step
596
+ * @property {string} title A Title for this Auto MAF Action Step
597
+ * @property {?string} subtitle An Optional Subtitle for this Auto MAF Action Step
598
+ * @property {string} description A Description for this Auto MAF Action Step
599
+ * @property {string} actionType Type of MAF Action to be performed
600
+ * @property {string} trigger When this Action should be performed. 'begin' performed once when this Step becomes Active. 'end' performed once when this Step is no longer Active. 'always' performed constantly while this Step is Active
601
+ * @property {?any} actionReference An Optional Reference for this Action (e.g. The Internal MAF Name of a Sizer or Numeric Sizer ID
602
+ * @memberof Controllers.Packhouse.Site
603
+ */
604
+
605
+ /**
606
+ * A **ManualMAFActionStep** Type
607
+ *
608
+ * @typedef {Object} PackingLineController.ManualMAFActionStep
609
+ * @property {number} index An Index used to Order Steps and compare with the Current Step Point value
610
+ * @property {string} type The Type of Step
611
+ * @property {string} title A Title for this Manual MAF Action Step
612
+ * @property {?string} subtitle An Optional Subtitle for this Manual MAF Action Step
613
+ * @property {string} description A Description for this Manual MAF Action Step
614
+ * @property {string} actionType Type of MAF Action to be performed
615
+ * @property {string} trigger When this Action should be performed. 'begin' performed once when this Step becomes Active. 'end' performed once when this Step is no longer Active. 'always' performed constantly while this Step is Active
616
+ * @property {?any} actionReference An Optional Reference for this Action (e.g. The Internal MAF Name of a Sizer or Numeric Sizer ID
617
+ * @memberof Controllers.Packhouse.Site
618
+ */
619
+
620
+ /**
621
+ * A **AdvancedPackrunManagement** Type
622
+ *
623
+ * @typedef {Object} PackingLineController.AdvancedPackrunManagement
624
+ * @property {{startPackrunChangeRequest: number, cancelPackrunChangeRequest: number, advancePackrunChangeRequest: number, skipPackrunChangeStepRequest: number, packrunChangeCurrentStep: number, packrunChangeAutomationActionsEnabled: number}} points The Points used for Advanced Packrun Management
625
+ * @property {PackingLineController.ManualStep|PackingLineController.ClearSizersStep|PackingLineController.CreateSizerBatchesStep|PackingLineController.CheckFruitSizeProfileStep|PackingLineController.AutoMAFActionStep|PackingLineController.ManualMAFActionStep[]} steps An Array of Steps that define the Advanced Packrun Management process
626
+ * @property {boolean} enabled Whether Advanced Packrun Managed is Enabled on this Packing Line
627
+ * @memberof Controllers.Packhouse.Site
628
+ */
629
+
630
+ /**
631
+ * A **MafIntegration** Type
632
+ *
633
+ * @typedef {Object} PackingLineController.MafIntegration
634
+ * @property {{apiCommunicationStatus: number, batchManagementStateNumber: number, batchManagementStateMessage: number, batchManagementLineName: number, batchManagementCurrentLot: number, batchManagementEndOfDay: number, skipBrushesSweepRequest: number, finishPackrunBeginRequest: number, finishPackrunCancelRequest: number, finishPackrunAdvanceRequest: number, finishPackrunSkipStepRequest: number, finishPackrunCurrentStep: number, timeBatchChangeBeginRequest: number, timeBatchChangeCancelRequest: number, timeBatchChangeAdvanceRequest: number, timeBatchChangeSkipStepRequest: number, timeBatchChangeCurrentStep: number}} points The Points used for this MAF Integration
635
+ * @property {boolean} enabled Whether the MAF Integration is Enabled on this Packing Line
636
+ * @property {string} tracAddress The IP Address or Server Name of the MAF TRAC PC
637
+ * @memberof Controllers.Packhouse.Site
638
+ */
639
+
640
+ /**
641
+ * A **ClassTypeRejectCategory** Type
642
+ *
643
+ * @typedef {Object} PackingLineController.ClassTypeRejectCategory
644
+ * @property {string} classType A Class Type that is already defined on this Packing Line
645
+ * @property {number} rejectCategoryId The FreshPack Reject Category ID that should be associated with the Class Type
646
+ * @memberof Controllers.Packhouse.Site
647
+ */
648
+
649
+ /**
650
+ * A **FreshPackIntegration** Type
651
+ *
652
+ * @typedef {Object} PackingLineController.FreshPackIntegration
653
+ * @property {{currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number}} points The Points used for this FreshQuality Integration
654
+ * @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
655
+ * @property {string} username Username for Authenticating with the FreshQuality API
656
+ * @property {string} password Password for Authenticating with the FreshQuality API
657
+ * @property {string} apiBaseUrl Base URL of the FreshQuality API
658
+ * @property {number[]} sampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
247
659
  * @memberof Controllers.Packhouse.Site
248
660
  */
249
661
 
@@ -1970,7 +1970,7 @@ var _default = PackrunController;
1970
1970
  * @property {string} varietyId The Variety for this Packrun
1971
1971
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
1972
1972
  * @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
1973
- * @property {Object[]} [timeBatches] The Time Batches for this Packrun
1973
+ * @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
1974
1974
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
1975
1975
  * @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
1976
1976
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
@@ -1991,7 +1991,7 @@ var _default = PackrunController;
1991
1991
  * @property {string} [varietyId] The Variety for this Packrun
1992
1992
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
1993
1993
  * @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
1994
- * @property {Object[]} [timeBatches] The Time Batches for this Packrun
1994
+ * @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
1995
1995
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
1996
1996
  * @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
1997
1997
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
@@ -2153,4 +2153,13 @@ var _default = PackrunController;
2153
2153
  * @memberof Controllers.Packhouse.Site
2154
2154
  */
2155
2155
 
2156
+ /**
2157
+ * A **TimeBatch** Type
2158
+ *
2159
+ * @typedef {Object} PackrunController.TimeBatch
2160
+ * @property {string} id The Single Letter ID of this Time Batch (Starts at A and proceeds through to Z)
2161
+ * @property {Date} timestamp Timestamp when this Time Batch was Created
2162
+ * @memberof Controllers.Packhouse.Site
2163
+ */
2164
+
2156
2165
  exports.default = _default;
@@ -840,7 +840,7 @@ var _default = RejectBinController;
840
840
  * @property {string} rejectBinScaleName The Name of the Reject Bin Scale where this Bin was Created
841
841
  * @property {?number} [tareWeight] The Tare Weight Captured by the Reject Bin Scale
842
842
  * @property {?Date} [finalizedTimestamp] When this Reject Bin was Finalized (No new Weights)
843
- * @property {Object[]} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
843
+ * @property {Array<RejectBinController.FreshPackMultiGrowerBin>} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
844
844
  * @memberof Controllers.Packhouse.Site
845
845
  */
846
846
 
@@ -853,7 +853,7 @@ var _default = RejectBinController;
853
853
  * @property {string} [rejectBinScaleName] The Name of the Reject Bin Scale where this Bin was Created
854
854
  * @property {?number} [tareWeight] The Tare Weight Captured by the Reject Bin Scale
855
855
  * @property {?Date} [finalizedTimestamp] When this Reject Bin was Finalized (No new Weights)
856
- * @property {Object[]} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
856
+ * @property {Array<RejectBinController.FreshPackMultiGrowerBin>} [freshPackMultiGrowerBins] The Multi-Grower Bins that will be submitted to FreshPack
857
857
  * @memberof Controllers.Packhouse.Site
858
858
  */
859
859
 
@@ -879,4 +879,40 @@ var _default = RejectBinController;
879
879
  * @memberof Controllers.Packhouse.Site
880
880
  */
881
881
 
882
+ /**
883
+ * Results from Interacting with the FreshPack API to Create a Multi-Grower Bin
884
+ *
885
+ * @typedef {Object} RejectBinController.BinNumberApiStatus
886
+ * @property {number} requestCount Number of Requests made to the FreshPack API
887
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
888
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
889
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
890
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
891
+ * @memberof Controllers.Packhouse.Site
892
+ */
893
+
894
+ /**
895
+ * Results from Interacting with the FreshPack API to Print a Multi-Grower Bin Card
896
+ *
897
+ * @typedef {Object} RejectBinController.BinCardApiStatus
898
+ * @property {number} requestCount Number of Requests made to the FreshPack API
899
+ * @property {?Date} requestTimestamp Timestamp of the last Request made to the FreshPack API
900
+ * @property {?number} responseCode Response Code from the last FreshPack API Request
901
+ * @property {?string} responseMessage Response Message from the last FreshPack API Request
902
+ * @property {boolean} completed Whether Interaction with the FreshPack API has been Completed
903
+ * @memberof Controllers.Packhouse.Site
904
+ */
905
+
906
+ /**
907
+ * A **FreshPackMultiGrowerBin** Type
908
+ *
909
+ * @typedef {Object} RejectBinController.FreshPackMultiGrowerBin
910
+ * @property {string} classType The Class Type of this Multi-Grower Bin
911
+ * @property {?string} binNumber The FreshPack Assigned Number of this Multi-Grower Bin
912
+ * @property {boolean} printBinCard Whether a Bin Card should be Printed when the Reject Bin is Finalized
913
+ * @property {?RejectBinController.BinNumberApiStatus} binNumberApi Results from Interacting with the FreshPack API to Create a Multi-Grower Bin
914
+ * @property {?RejectBinController.BinCardApiStatus} binCardApi Results from Interacting with the FreshPack API to Print a Multi-Grower Bin Card
915
+ * @memberof Controllers.Packhouse.Site
916
+ */
917
+
882
918
  exports.default = _default;