@ricado/api-client 2.5.9 → 2.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +3 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -2
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -1
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +27 -1
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +27 -1
- package/lib/Models/Packhouse/Site/PackingLineModel.js +255 -1
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +74 -1
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +74 -5
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +2 -2
- package/src/Controllers/Packhouse/Site/PackingLineController.js +3 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -2
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -1
- package/src/Models/Packhouse/Site/CompacSizerModel.js +37 -1
- package/src/Models/Packhouse/Site/MAFSizerModel.js +37 -1
- package/src/Models/Packhouse/Site/PackingLineModel.js +344 -1
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +95 -1
- package/src/PackageVersion.js +1 -1
|
@@ -184,7 +184,7 @@ var _default = CompacSizerController;
|
|
|
184
184
|
* @property {string} packingLineId The Packing Line ID that manages this Compac Sizer
|
|
185
185
|
* @property {string} sizerType The Sizer Type
|
|
186
186
|
* @property {number} [autoCreateBatchDelay] The Auto Create Batch Delay in Seconds for this Compac Sizer
|
|
187
|
-
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}} points The Points used by this Compac Sizer
|
|
187
|
+
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}} points The Points used by this Compac Sizer
|
|
188
188
|
* @property {Array<CompacSizerController.CompacSizerLane>} [lanes] The Lanes defined for this Compac Sizer
|
|
189
189
|
* @property {Array<CompacSizerController.CompacSizerFrame>} [frames] An Optional Array of Frames defined for this Compac Sizer
|
|
190
190
|
* @property {Array<CompacSizerController.CompacSizerOutlet>} [outlets] The Outlets defined for this Compac Sizer
|
|
@@ -202,7 +202,7 @@ var _default = CompacSizerController;
|
|
|
202
202
|
* @property {string} [packingLineId] The Packing Line ID that manages this Compac Sizer
|
|
203
203
|
* @property {string} [sizerType] The Sizer Type
|
|
204
204
|
* @property {number} [autoCreateBatchDelay] The Auto Create Batch Delay in Seconds for this Compac Sizer
|
|
205
|
-
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}} [points] The Points used by this Compac Sizer
|
|
205
|
+
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}} [points] The Points used by this Compac Sizer
|
|
206
206
|
* @property {Array<CompacSizerController.CompacSizerLane>} [lanes] The Lanes defined for this Compac Sizer
|
|
207
207
|
* @property {Array<CompacSizerController.CompacSizerFrame>} [frames] An Optional Array of Frames defined for this Compac Sizer
|
|
208
208
|
* @property {Array<CompacSizerController.CompacSizerOutlet>} [outlets] The Outlets defined for this Compac Sizer
|
|
@@ -184,7 +184,7 @@ var _default = MAFSizerController;
|
|
|
184
184
|
* @property {string} packingLineId The Packing Line ID that manages this MAF Sizer
|
|
185
185
|
* @property {string} sizerType The Sizer Type
|
|
186
186
|
* @property {number} [autoCreateBatchDelay] The Auto Create Batch Delay in Seconds for this MAF Sizer
|
|
187
|
-
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}} points The Points used by this MAF Sizer
|
|
187
|
+
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}} points The Points used by this MAF Sizer
|
|
188
188
|
* @property {Array<MAFSizerController.MAFSizerLane>} [lanes] The Lanes defined for this MAF Sizer
|
|
189
189
|
* @property {Array<MAFSizerController.MAFSizerOutlet>} [outlets] The Outlets defined for this MAF Sizer
|
|
190
190
|
* @property {Array<MAFSizerController.MAFSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this MAF Sizer
|
|
@@ -203,7 +203,7 @@ var _default = MAFSizerController;
|
|
|
203
203
|
* @property {string} [packingLineId] The Packing Line ID that manages this MAF Sizer
|
|
204
204
|
* @property {string} [sizerType] The Sizer Type
|
|
205
205
|
* @property {number} [autoCreateBatchDelay] The Auto Create Batch Delay in Seconds for this MAF Sizer
|
|
206
|
-
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}} [points] The Points used by this MAF Sizer
|
|
206
|
+
* @property {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}} [points] The Points used by this MAF Sizer
|
|
207
207
|
* @property {Array<MAFSizerController.MAFSizerLane>} [lanes] The Lanes defined for this MAF Sizer
|
|
208
208
|
* @property {Array<MAFSizerController.MAFSizerOutlet>} [outlets] The Outlets defined for this MAF Sizer
|
|
209
209
|
* @property {Array<MAFSizerController.MAFSizerFruitSize>} [fruitSizes] The Fruit Sizes defined and handled by this MAF Sizer
|
|
@@ -515,11 +515,12 @@ var _default = PackingLineController;
|
|
|
515
515
|
* A **ShiftManagement** Type
|
|
516
516
|
*
|
|
517
517
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
518
|
-
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: 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, class1TraysPerHourAdjustments: 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
|
|
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
|
|
518
|
+
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: 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, currentShiftTotalBinsTipped: ?number, currentShiftTotalClass1Trays: ?number, currentShiftTotalClass2Trays: ?number, currentShiftTotalDowntimePercentage: ?number, currentShiftTotalDowntimeSeconds: ?number, currentShiftTotalLayeredTraysPercentage: ?number, currentShiftAverageClass1TraysPerHour: ?number, currentShiftAverageCostPerTray: ?number, currentShiftAverageClass1Manning: ?number, currentShiftAverageClass2Manning: ?number, currentShiftAverageQualityR600Ideal: ?number, currentShiftAverageScorePercentage: ?number, currentShiftProjectedTotalBinsTipped: ?number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: 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
|
|
519
|
+
* @property {Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, currentShiftCustomQualityAverageValue: ?number, customQualityTargets: number, customQualityScoreWeighting: number}}>} customQualityConfiguration An Optional Array of Configuration Data for Custom Qualities in Shift Management
|
|
520
520
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
521
521
|
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|
|
522
522
|
* @property {boolean} manningUsesTeams Whether Manning is tracked at the Team Level on this Packing Line
|
|
523
|
+
* @property {?boolean} useDefaultManningAtShiftStart Whether the Default Manning Target should be used to Auto Populate the first Hourly Entry of a Shift on this Packing Line
|
|
523
524
|
* @memberof Controllers.Packhouse.Site
|
|
524
525
|
*/
|
|
525
526
|
|
|
@@ -182,7 +182,7 @@ 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 {{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, currentLiveWeight: ?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
|
|
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, currentLiveWeight: ?number, startLiveWeighingRequest: ?number, finishLiveWeighingRequest: ?number, fruitDeliveryActive: ?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
|
|
@@ -193,6 +193,7 @@ var _default = RejectBinScaleController;
|
|
|
193
193
|
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
194
194
|
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
195
195
|
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
196
|
+
* @property {?boolean} [autoWeighingFinishAtGrossTarget] Whether Live Weighing should be Automatically Finished when the Target Gross Weight is Met
|
|
196
197
|
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
197
198
|
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
198
199
|
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
@@ -208,7 +209,7 @@ var _default = RejectBinScaleController;
|
|
|
208
209
|
*
|
|
209
210
|
* @typedef {Object} RejectBinScaleController.UpdateData
|
|
210
211
|
* @property {string} [name] The Name of 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, currentLiveWeight: ?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
|
+
* @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, currentLiveWeight: ?number, startLiveWeighingRequest: ?number, finishLiveWeighingRequest: ?number, fruitDeliveryActive: ?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
213
|
* @property {string} [packingLineId] The Packing Line that owns this Reject Bin Scale
|
|
213
214
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
214
215
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
@@ -219,6 +220,7 @@ var _default = RejectBinScaleController;
|
|
|
219
220
|
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
220
221
|
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
221
222
|
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
223
|
+
* @property {?boolean} [autoWeighingFinishAtGrossTarget] Whether Live Weighing should be Automatically Finished when the Target Gross Weight is Met
|
|
222
224
|
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
223
225
|
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
224
226
|
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
@@ -413,7 +413,7 @@ var _default = SoftSortBeltController;
|
|
|
413
413
|
* @property {string[]} [beltIds] A List of Soft-Sort Belt IDs to Filter by
|
|
414
414
|
* @property {Date} [timestampBegin] The Beginning Timestamp of the Soft-Sort Event Results. Defaults to 24 Hours ago
|
|
415
415
|
* @property {Date} [timestampEnd] The End Timestamp of the Soft-Sort Event Results. Defaults to Now
|
|
416
|
-
* @property {
|
|
416
|
+
* @property {string} [packrunId] A Packrun ID to Filter by. Forces `timestampBegin` and `timestampEnd` to be Ignored
|
|
417
417
|
* @memberof Controllers.Packhouse.Site
|
|
418
418
|
*/
|
|
419
419
|
|
|
@@ -106,7 +106,7 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
106
106
|
/**
|
|
107
107
|
* The Points used by this Compac Sizer
|
|
108
108
|
*
|
|
109
|
-
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}}
|
|
109
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchVarietyId: number, currentBatchVarietyName: number, currentBatchComments: number, currentBatchStartTimestamp: number, currentBatchLayoutId: number, currentBatchLayoutName: number, currentBatchSizingProfileName: ?number, currentBatchFruitSizeProfile: ?number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineDroppedFruitPerMinute: number, machinePackedFruitPerMinute: number, machineMissedFruitPerMinute: number, machineRejectFruitPerMinute: number, machineTraysPerHour: number, machineTraysPerHourTarget: ?number, machineTonnesPerHour: number, machineRodsPerMinute: number, machineIncomingFruitPerMinuteBySize: ?number, machineRecycleFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteBySize: ?number, machineLanesFruitPerMinuteByGrade: ?number, createNewBatchRequest: number, createBatchOnPackrunChange: number, createBatchOnTimeBatchChange: number, restartServiceRequest: number, outletGroupSummaries: number, varieties: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number}}
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
@@ -123,6 +123,8 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
123
123
|
pointsDefaultValue.currentBatchLayoutName = 0;
|
|
124
124
|
pointsDefaultValue.currentBatchSizingProfileName = null;
|
|
125
125
|
pointsDefaultValue.currentBatchFruitSizeProfile = null;
|
|
126
|
+
pointsDefaultValue.currentBatchPackrunId = 0;
|
|
127
|
+
pointsDefaultValue.currentBatchPackrunName = 0;
|
|
126
128
|
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
127
129
|
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
128
130
|
pointsDefaultValue.machineCupFill = 0;
|
|
@@ -462,6 +464,30 @@ var CompacSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
462
464
|
pointsObject.currentBatchFruitSizeProfile = null;
|
|
463
465
|
}
|
|
464
466
|
|
|
467
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchPackrunId' in jsonObject['points']) {
|
|
468
|
+
pointsObject.currentBatchPackrunId = function () {
|
|
469
|
+
if (typeof jsonObject['points'].currentBatchPackrunId !== 'number') {
|
|
470
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunId)) ? Number(jsonObject['points'].currentBatchPackrunId) : Math.floor(Number(jsonObject['points'].currentBatchPackrunId));
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunId) ? jsonObject['points'].currentBatchPackrunId : Math.floor(jsonObject['points'].currentBatchPackrunId);
|
|
474
|
+
}();
|
|
475
|
+
} else {
|
|
476
|
+
pointsObject.currentBatchPackrunId = 0;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchPackrunName' in jsonObject['points']) {
|
|
480
|
+
pointsObject.currentBatchPackrunName = function () {
|
|
481
|
+
if (typeof jsonObject['points'].currentBatchPackrunName !== 'number') {
|
|
482
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunName)) ? Number(jsonObject['points'].currentBatchPackrunName) : Math.floor(Number(jsonObject['points'].currentBatchPackrunName));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunName) ? jsonObject['points'].currentBatchPackrunName : Math.floor(jsonObject['points'].currentBatchPackrunName);
|
|
486
|
+
}();
|
|
487
|
+
} else {
|
|
488
|
+
pointsObject.currentBatchPackrunName = 0;
|
|
489
|
+
}
|
|
490
|
+
|
|
465
491
|
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitWeight' in jsonObject['points']) {
|
|
466
492
|
pointsObject.machineAverageFruitWeight = function () {
|
|
467
493
|
if (typeof jsonObject['points'].machineAverageFruitWeight !== 'number') {
|
|
@@ -106,7 +106,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
106
106
|
/**
|
|
107
107
|
* The Points used by this MAF Sizer
|
|
108
108
|
*
|
|
109
|
-
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}}
|
|
109
|
+
* @type {{currentBatchId: number, currentBatchName: number, currentBatchGrowerCode: number, currentBatchGrowerName: number, currentBatchVarietyCode: number, currentBatchVarietyName: number, currentBatchPackrunId: number, currentBatchPackrunName: number, machineAverageFruitWeight: number, machineAverageFruitSize: number, machineCupFill: number, machineRecycledFruitPerMinute: number, machineTotalFruitPerMinute: number, machineTraysPerHour: number, machineTonnesPerHour: number, machineRodsPerMinute: number, outletGroupSummaries: number, packTypeOutletUtilizationTargets: number, class1TraysPerHour: ?number, createNewBatchRequest: ?number, createBatchOnPackrunChange: ?number, createBatchOnTimeBatchChange: ?number, restartServiceRequest: ?number}}
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
@@ -118,6 +118,8 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
pointsDefaultValue.currentBatchGrowerName = 0;
|
|
119
119
|
pointsDefaultValue.currentBatchVarietyCode = 0;
|
|
120
120
|
pointsDefaultValue.currentBatchVarietyName = 0;
|
|
121
|
+
pointsDefaultValue.currentBatchPackrunId = 0;
|
|
122
|
+
pointsDefaultValue.currentBatchPackrunName = 0;
|
|
121
123
|
pointsDefaultValue.machineAverageFruitWeight = 0;
|
|
122
124
|
pointsDefaultValue.machineAverageFruitSize = 0;
|
|
123
125
|
pointsDefaultValue.machineCupFill = 0;
|
|
@@ -387,6 +389,30 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
387
389
|
pointsObject.currentBatchVarietyName = 0;
|
|
388
390
|
}
|
|
389
391
|
|
|
392
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchPackrunId' in jsonObject['points']) {
|
|
393
|
+
pointsObject.currentBatchPackrunId = function () {
|
|
394
|
+
if (typeof jsonObject['points'].currentBatchPackrunId !== 'number') {
|
|
395
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunId)) ? Number(jsonObject['points'].currentBatchPackrunId) : Math.floor(Number(jsonObject['points'].currentBatchPackrunId));
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunId) ? jsonObject['points'].currentBatchPackrunId : Math.floor(jsonObject['points'].currentBatchPackrunId);
|
|
399
|
+
}();
|
|
400
|
+
} else {
|
|
401
|
+
pointsObject.currentBatchPackrunId = 0;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentBatchPackrunName' in jsonObject['points']) {
|
|
405
|
+
pointsObject.currentBatchPackrunName = function () {
|
|
406
|
+
if (typeof jsonObject['points'].currentBatchPackrunName !== 'number') {
|
|
407
|
+
return Number.isInteger(Number(jsonObject['points'].currentBatchPackrunName)) ? Number(jsonObject['points'].currentBatchPackrunName) : Math.floor(Number(jsonObject['points'].currentBatchPackrunName));
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return Number.isInteger(jsonObject['points'].currentBatchPackrunName) ? jsonObject['points'].currentBatchPackrunName : Math.floor(jsonObject['points'].currentBatchPackrunName);
|
|
411
|
+
}();
|
|
412
|
+
} else {
|
|
413
|
+
pointsObject.currentBatchPackrunName = 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
390
416
|
if (_typeof(jsonObject['points']) === 'object' && 'machineAverageFruitWeight' in jsonObject['points']) {
|
|
391
417
|
pointsObject.machineAverageFruitWeight = function () {
|
|
392
418
|
if (typeof jsonObject['points'].machineAverageFruitWeight !== 'number') {
|
|
@@ -189,7 +189,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
189
189
|
/**
|
|
190
190
|
* The Optional Shift Management Object for this Packing Line
|
|
191
191
|
*
|
|
192
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: 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, class1TraysPerHourAdjustments: 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}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
192
|
+
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: 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, currentShiftTotalBinsTipped: ?number, currentShiftTotalClass1Trays: ?number, currentShiftTotalClass2Trays: ?number, currentShiftTotalDowntimePercentage: ?number, currentShiftTotalDowntimeSeconds: ?number, currentShiftTotalLayeredTraysPercentage: ?number, currentShiftAverageClass1TraysPerHour: ?number, currentShiftAverageCostPerTray: ?number, currentShiftAverageClass1Manning: ?number, currentShiftAverageClass2Manning: ?number, currentShiftAverageQualityR600Ideal: ?number, currentShiftAverageScorePercentage: ?number, currentShiftProjectedTotalBinsTipped: ?number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: 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}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, currentShiftCustomQualityAverageValue: ?number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean, useDefaultManningAtShiftStart: ?boolean}}
|
|
193
193
|
* @public
|
|
194
194
|
*/
|
|
195
195
|
|
|
@@ -3081,6 +3081,214 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3081
3081
|
pointsObject.currentShiftScorePercentage = 0;
|
|
3082
3082
|
}
|
|
3083
3083
|
|
|
3084
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalBinsTipped' in jsonObject['shiftManagement'].points) {
|
|
3085
|
+
pointsObject.currentShiftTotalBinsTipped = function () {
|
|
3086
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped === null) {
|
|
3087
|
+
return null;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped !== 'number') {
|
|
3091
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped));
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped);
|
|
3095
|
+
}();
|
|
3096
|
+
} else {
|
|
3097
|
+
pointsObject.currentShiftTotalBinsTipped = null;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalClass1Trays' in jsonObject['shiftManagement'].points) {
|
|
3101
|
+
pointsObject.currentShiftTotalClass1Trays = function () {
|
|
3102
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays === null) {
|
|
3103
|
+
return null;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays !== 'number') {
|
|
3107
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays));
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays);
|
|
3111
|
+
}();
|
|
3112
|
+
} else {
|
|
3113
|
+
pointsObject.currentShiftTotalClass1Trays = null;
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalClass2Trays' in jsonObject['shiftManagement'].points) {
|
|
3117
|
+
pointsObject.currentShiftTotalClass2Trays = function () {
|
|
3118
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays === null) {
|
|
3119
|
+
return null;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays !== 'number') {
|
|
3123
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays));
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays);
|
|
3127
|
+
}();
|
|
3128
|
+
} else {
|
|
3129
|
+
pointsObject.currentShiftTotalClass2Trays = null;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalDowntimePercentage' in jsonObject['shiftManagement'].points) {
|
|
3133
|
+
pointsObject.currentShiftTotalDowntimePercentage = function () {
|
|
3134
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage === null) {
|
|
3135
|
+
return null;
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage !== 'number') {
|
|
3139
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage));
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage);
|
|
3143
|
+
}();
|
|
3144
|
+
} else {
|
|
3145
|
+
pointsObject.currentShiftTotalDowntimePercentage = null;
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalDowntimeSeconds' in jsonObject['shiftManagement'].points) {
|
|
3149
|
+
pointsObject.currentShiftTotalDowntimeSeconds = function () {
|
|
3150
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds === null) {
|
|
3151
|
+
return null;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds !== 'number') {
|
|
3155
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds));
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds);
|
|
3159
|
+
}();
|
|
3160
|
+
} else {
|
|
3161
|
+
pointsObject.currentShiftTotalDowntimeSeconds = null;
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftTotalLayeredTraysPercentage' in jsonObject['shiftManagement'].points) {
|
|
3165
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = function () {
|
|
3166
|
+
if (jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage === null) {
|
|
3167
|
+
return null;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage !== 'number') {
|
|
3171
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage));
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage);
|
|
3175
|
+
}();
|
|
3176
|
+
} else {
|
|
3177
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = null;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageClass1TraysPerHour' in jsonObject['shiftManagement'].points) {
|
|
3181
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = function () {
|
|
3182
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour === null) {
|
|
3183
|
+
return null;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour !== 'number') {
|
|
3187
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour));
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour);
|
|
3191
|
+
}();
|
|
3192
|
+
} else {
|
|
3193
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = null;
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageCostPerTray' in jsonObject['shiftManagement'].points) {
|
|
3197
|
+
pointsObject.currentShiftAverageCostPerTray = function () {
|
|
3198
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray === null) {
|
|
3199
|
+
return null;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray !== 'number') {
|
|
3203
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray));
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray);
|
|
3207
|
+
}();
|
|
3208
|
+
} else {
|
|
3209
|
+
pointsObject.currentShiftAverageCostPerTray = null;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageClass1Manning' in jsonObject['shiftManagement'].points) {
|
|
3213
|
+
pointsObject.currentShiftAverageClass1Manning = function () {
|
|
3214
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning === null) {
|
|
3215
|
+
return null;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3218
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning !== 'number') {
|
|
3219
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning));
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning);
|
|
3223
|
+
}();
|
|
3224
|
+
} else {
|
|
3225
|
+
pointsObject.currentShiftAverageClass1Manning = null;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageClass2Manning' in jsonObject['shiftManagement'].points) {
|
|
3229
|
+
pointsObject.currentShiftAverageClass2Manning = function () {
|
|
3230
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning === null) {
|
|
3231
|
+
return null;
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning !== 'number') {
|
|
3235
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning));
|
|
3236
|
+
}
|
|
3237
|
+
|
|
3238
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning);
|
|
3239
|
+
}();
|
|
3240
|
+
} else {
|
|
3241
|
+
pointsObject.currentShiftAverageClass2Manning = null;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageQualityR600Ideal' in jsonObject['shiftManagement'].points) {
|
|
3245
|
+
pointsObject.currentShiftAverageQualityR600Ideal = function () {
|
|
3246
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal === null) {
|
|
3247
|
+
return null;
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal !== 'number') {
|
|
3251
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal));
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal);
|
|
3255
|
+
}();
|
|
3256
|
+
} else {
|
|
3257
|
+
pointsObject.currentShiftAverageQualityR600Ideal = null;
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftAverageScorePercentage' in jsonObject['shiftManagement'].points) {
|
|
3261
|
+
pointsObject.currentShiftAverageScorePercentage = function () {
|
|
3262
|
+
if (jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage === null) {
|
|
3263
|
+
return null;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage !== 'number') {
|
|
3267
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage));
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage);
|
|
3271
|
+
}();
|
|
3272
|
+
} else {
|
|
3273
|
+
pointsObject.currentShiftAverageScorePercentage = null;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftProjectedTotalBinsTipped' in jsonObject['shiftManagement'].points) {
|
|
3277
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = function () {
|
|
3278
|
+
if (jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped === null) {
|
|
3279
|
+
return null;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
if (typeof jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped !== 'number') {
|
|
3283
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped));
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped);
|
|
3287
|
+
}();
|
|
3288
|
+
} else {
|
|
3289
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = null;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3084
3292
|
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points) {
|
|
3085
3293
|
pointsObject.class1TraysPerHourTargets = function () {
|
|
3086
3294
|
if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourTargets !== 'number') {
|
|
@@ -3310,6 +3518,19 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3310
3518
|
pointsDefaultValue.currentShiftQualityR600IdealTarget = 0;
|
|
3311
3519
|
pointsDefaultValue.currentShiftQualityR600Ideal = 0;
|
|
3312
3520
|
pointsDefaultValue.currentShiftScorePercentage = 0;
|
|
3521
|
+
pointsDefaultValue.currentShiftTotalBinsTipped = null;
|
|
3522
|
+
pointsDefaultValue.currentShiftTotalClass1Trays = null;
|
|
3523
|
+
pointsDefaultValue.currentShiftTotalClass2Trays = null;
|
|
3524
|
+
pointsDefaultValue.currentShiftTotalDowntimePercentage = null;
|
|
3525
|
+
pointsDefaultValue.currentShiftTotalDowntimeSeconds = null;
|
|
3526
|
+
pointsDefaultValue.currentShiftTotalLayeredTraysPercentage = null;
|
|
3527
|
+
pointsDefaultValue.currentShiftAverageClass1TraysPerHour = null;
|
|
3528
|
+
pointsDefaultValue.currentShiftAverageCostPerTray = null;
|
|
3529
|
+
pointsDefaultValue.currentShiftAverageClass1Manning = null;
|
|
3530
|
+
pointsDefaultValue.currentShiftAverageClass2Manning = null;
|
|
3531
|
+
pointsDefaultValue.currentShiftAverageQualityR600Ideal = null;
|
|
3532
|
+
pointsDefaultValue.currentShiftAverageScorePercentage = null;
|
|
3533
|
+
pointsDefaultValue.currentShiftProjectedTotalBinsTipped = null;
|
|
3313
3534
|
pointsDefaultValue.class1TraysPerHourTargets = 0;
|
|
3314
3535
|
pointsDefaultValue.class1TraysPerHourAdjustments = 0;
|
|
3315
3536
|
pointsDefaultValue.costPerTrayTargets = 0;
|
|
@@ -3403,6 +3624,22 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3403
3624
|
pointsObject.currentShiftCustomQualityValue = 0;
|
|
3404
3625
|
}
|
|
3405
3626
|
|
|
3627
|
+
if (_typeof(customQualityConfigurationItem.points) === 'object' && 'currentShiftCustomQualityAverageValue' in customQualityConfigurationItem.points) {
|
|
3628
|
+
pointsObject.currentShiftCustomQualityAverageValue = function () {
|
|
3629
|
+
if (customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue === null) {
|
|
3630
|
+
return null;
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
if (typeof customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue !== 'number') {
|
|
3634
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue));
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue);
|
|
3638
|
+
}();
|
|
3639
|
+
} else {
|
|
3640
|
+
pointsObject.currentShiftCustomQualityAverageValue = null;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3406
3643
|
if (_typeof(customQualityConfigurationItem.points) === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points) {
|
|
3407
3644
|
pointsObject.customQualityTargets = function () {
|
|
3408
3645
|
if (typeof customQualityConfigurationItem.points.customQualityTargets !== 'number') {
|
|
@@ -3434,6 +3671,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3434
3671
|
var pointsDefaultValue = {};
|
|
3435
3672
|
pointsDefaultValue.currentShiftCustomQualityTarget = 0;
|
|
3436
3673
|
pointsDefaultValue.currentShiftCustomQualityValue = 0;
|
|
3674
|
+
pointsDefaultValue.currentShiftCustomQualityAverageValue = null;
|
|
3437
3675
|
pointsDefaultValue.customQualityTargets = 0;
|
|
3438
3676
|
pointsDefaultValue.customQualityScoreWeighting = 0;
|
|
3439
3677
|
return pointsDefaultValue;
|
|
@@ -3568,6 +3806,22 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3568
3806
|
shiftManagementObject.manningUsesTeams = false;
|
|
3569
3807
|
}
|
|
3570
3808
|
|
|
3809
|
+
if (_typeof(jsonObject['shiftManagement']) === 'object' && 'useDefaultManningAtShiftStart' in jsonObject['shiftManagement']) {
|
|
3810
|
+
shiftManagementObject.useDefaultManningAtShiftStart = function () {
|
|
3811
|
+
if (jsonObject['shiftManagement'].useDefaultManningAtShiftStart === null) {
|
|
3812
|
+
return null;
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
if (typeof jsonObject['shiftManagement'].useDefaultManningAtShiftStart !== 'boolean') {
|
|
3816
|
+
return Boolean(jsonObject['shiftManagement'].useDefaultManningAtShiftStart);
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
return jsonObject['shiftManagement'].useDefaultManningAtShiftStart;
|
|
3820
|
+
}();
|
|
3821
|
+
} else {
|
|
3822
|
+
shiftManagementObject.useDefaultManningAtShiftStart = null;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3571
3825
|
return shiftManagementObject;
|
|
3572
3826
|
}();
|
|
3573
3827
|
}
|