@ricado/api-client 2.5.9 → 2.5.10
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/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 +73 -4
- 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/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
|
@@ -190,7 +190,7 @@ class PackingLineModel extends BaseModel
|
|
|
190
190
|
/**
|
|
191
191
|
* The Optional Shift Management Object for this Packing Line
|
|
192
192
|
*
|
|
193
|
-
* @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}}
|
|
193
|
+
* @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}}
|
|
194
194
|
* @public
|
|
195
195
|
*/
|
|
196
196
|
this.shiftManagement = null;
|
|
@@ -3955,6 +3955,279 @@ class PackingLineModel extends BaseModel
|
|
|
3955
3955
|
pointsObject.currentShiftScorePercentage = 0;
|
|
3956
3956
|
}
|
|
3957
3957
|
|
|
3958
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalBinsTipped' in jsonObject['shiftManagement'].points)
|
|
3959
|
+
{
|
|
3960
|
+
pointsObject.currentShiftTotalBinsTipped = (function(){
|
|
3961
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped === null)
|
|
3962
|
+
{
|
|
3963
|
+
return null;
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped !== 'number')
|
|
3967
|
+
{
|
|
3968
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped));
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalBinsTipped);
|
|
3972
|
+
}());
|
|
3973
|
+
}
|
|
3974
|
+
else
|
|
3975
|
+
{
|
|
3976
|
+
pointsObject.currentShiftTotalBinsTipped = null;
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalClass1Trays' in jsonObject['shiftManagement'].points)
|
|
3980
|
+
{
|
|
3981
|
+
pointsObject.currentShiftTotalClass1Trays = (function(){
|
|
3982
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays === null)
|
|
3983
|
+
{
|
|
3984
|
+
return null;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays !== 'number')
|
|
3988
|
+
{
|
|
3989
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays));
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass1Trays);
|
|
3993
|
+
}());
|
|
3994
|
+
}
|
|
3995
|
+
else
|
|
3996
|
+
{
|
|
3997
|
+
pointsObject.currentShiftTotalClass1Trays = null;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalClass2Trays' in jsonObject['shiftManagement'].points)
|
|
4001
|
+
{
|
|
4002
|
+
pointsObject.currentShiftTotalClass2Trays = (function(){
|
|
4003
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays === null)
|
|
4004
|
+
{
|
|
4005
|
+
return null;
|
|
4006
|
+
}
|
|
4007
|
+
|
|
4008
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays !== 'number')
|
|
4009
|
+
{
|
|
4010
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays));
|
|
4011
|
+
}
|
|
4012
|
+
|
|
4013
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays) ? jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalClass2Trays);
|
|
4014
|
+
}());
|
|
4015
|
+
}
|
|
4016
|
+
else
|
|
4017
|
+
{
|
|
4018
|
+
pointsObject.currentShiftTotalClass2Trays = null;
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalDowntimePercentage' in jsonObject['shiftManagement'].points)
|
|
4022
|
+
{
|
|
4023
|
+
pointsObject.currentShiftTotalDowntimePercentage = (function(){
|
|
4024
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage === null)
|
|
4025
|
+
{
|
|
4026
|
+
return null;
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage !== 'number')
|
|
4030
|
+
{
|
|
4031
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage));
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimePercentage);
|
|
4035
|
+
}());
|
|
4036
|
+
}
|
|
4037
|
+
else
|
|
4038
|
+
{
|
|
4039
|
+
pointsObject.currentShiftTotalDowntimePercentage = null;
|
|
4040
|
+
}
|
|
4041
|
+
|
|
4042
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalDowntimeSeconds' in jsonObject['shiftManagement'].points)
|
|
4043
|
+
{
|
|
4044
|
+
pointsObject.currentShiftTotalDowntimeSeconds = (function(){
|
|
4045
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds === null)
|
|
4046
|
+
{
|
|
4047
|
+
return null;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds !== 'number')
|
|
4051
|
+
{
|
|
4052
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds));
|
|
4053
|
+
}
|
|
4054
|
+
|
|
4055
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds) ? jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalDowntimeSeconds);
|
|
4056
|
+
}());
|
|
4057
|
+
}
|
|
4058
|
+
else
|
|
4059
|
+
{
|
|
4060
|
+
pointsObject.currentShiftTotalDowntimeSeconds = null;
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftTotalLayeredTraysPercentage' in jsonObject['shiftManagement'].points)
|
|
4064
|
+
{
|
|
4065
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = (function(){
|
|
4066
|
+
if(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage === null)
|
|
4067
|
+
{
|
|
4068
|
+
return null;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage !== 'number')
|
|
4072
|
+
{
|
|
4073
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage));
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage) ? jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftTotalLayeredTraysPercentage);
|
|
4077
|
+
}());
|
|
4078
|
+
}
|
|
4079
|
+
else
|
|
4080
|
+
{
|
|
4081
|
+
pointsObject.currentShiftTotalLayeredTraysPercentage = null;
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass1TraysPerHour' in jsonObject['shiftManagement'].points)
|
|
4085
|
+
{
|
|
4086
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = (function(){
|
|
4087
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour === null)
|
|
4088
|
+
{
|
|
4089
|
+
return null;
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour !== 'number')
|
|
4093
|
+
{
|
|
4094
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour));
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1TraysPerHour);
|
|
4098
|
+
}());
|
|
4099
|
+
}
|
|
4100
|
+
else
|
|
4101
|
+
{
|
|
4102
|
+
pointsObject.currentShiftAverageClass1TraysPerHour = null;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageCostPerTray' in jsonObject['shiftManagement'].points)
|
|
4106
|
+
{
|
|
4107
|
+
pointsObject.currentShiftAverageCostPerTray = (function(){
|
|
4108
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray === null)
|
|
4109
|
+
{
|
|
4110
|
+
return null;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray !== 'number')
|
|
4114
|
+
{
|
|
4115
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray));
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageCostPerTray);
|
|
4119
|
+
}());
|
|
4120
|
+
}
|
|
4121
|
+
else
|
|
4122
|
+
{
|
|
4123
|
+
pointsObject.currentShiftAverageCostPerTray = null;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass1Manning' in jsonObject['shiftManagement'].points)
|
|
4127
|
+
{
|
|
4128
|
+
pointsObject.currentShiftAverageClass1Manning = (function(){
|
|
4129
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning === null)
|
|
4130
|
+
{
|
|
4131
|
+
return null;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning !== 'number')
|
|
4135
|
+
{
|
|
4136
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning));
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass1Manning);
|
|
4140
|
+
}());
|
|
4141
|
+
}
|
|
4142
|
+
else
|
|
4143
|
+
{
|
|
4144
|
+
pointsObject.currentShiftAverageClass1Manning = null;
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4147
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageClass2Manning' in jsonObject['shiftManagement'].points)
|
|
4148
|
+
{
|
|
4149
|
+
pointsObject.currentShiftAverageClass2Manning = (function(){
|
|
4150
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning === null)
|
|
4151
|
+
{
|
|
4152
|
+
return null;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning !== 'number')
|
|
4156
|
+
{
|
|
4157
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning));
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageClass2Manning);
|
|
4161
|
+
}());
|
|
4162
|
+
}
|
|
4163
|
+
else
|
|
4164
|
+
{
|
|
4165
|
+
pointsObject.currentShiftAverageClass2Manning = null;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageQualityR600Ideal' in jsonObject['shiftManagement'].points)
|
|
4169
|
+
{
|
|
4170
|
+
pointsObject.currentShiftAverageQualityR600Ideal = (function(){
|
|
4171
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal === null)
|
|
4172
|
+
{
|
|
4173
|
+
return null;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal !== 'number')
|
|
4177
|
+
{
|
|
4178
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal));
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageQualityR600Ideal);
|
|
4182
|
+
}());
|
|
4183
|
+
}
|
|
4184
|
+
else
|
|
4185
|
+
{
|
|
4186
|
+
pointsObject.currentShiftAverageQualityR600Ideal = null;
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftAverageScorePercentage' in jsonObject['shiftManagement'].points)
|
|
4190
|
+
{
|
|
4191
|
+
pointsObject.currentShiftAverageScorePercentage = (function(){
|
|
4192
|
+
if(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage === null)
|
|
4193
|
+
{
|
|
4194
|
+
return null;
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage !== 'number')
|
|
4198
|
+
{
|
|
4199
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage));
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftAverageScorePercentage);
|
|
4203
|
+
}());
|
|
4204
|
+
}
|
|
4205
|
+
else
|
|
4206
|
+
{
|
|
4207
|
+
pointsObject.currentShiftAverageScorePercentage = null;
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftProjectedTotalBinsTipped' in jsonObject['shiftManagement'].points)
|
|
4211
|
+
{
|
|
4212
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = (function(){
|
|
4213
|
+
if(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped === null)
|
|
4214
|
+
{
|
|
4215
|
+
return null;
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped !== 'number')
|
|
4219
|
+
{
|
|
4220
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped)) ? Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped));
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped) ? jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped : Math.floor(jsonObject['shiftManagement'].points.currentShiftProjectedTotalBinsTipped);
|
|
4224
|
+
}());
|
|
4225
|
+
}
|
|
4226
|
+
else
|
|
4227
|
+
{
|
|
4228
|
+
pointsObject.currentShiftProjectedTotalBinsTipped = null;
|
|
4229
|
+
}
|
|
4230
|
+
|
|
3958
4231
|
if(typeof jsonObject['shiftManagement'].points === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points)
|
|
3959
4232
|
{
|
|
3960
4233
|
pointsObject.class1TraysPerHourTargets = (function(){
|
|
@@ -4279,6 +4552,32 @@ class PackingLineModel extends BaseModel
|
|
|
4279
4552
|
|
|
4280
4553
|
pointsDefaultValue.currentShiftScorePercentage = 0;
|
|
4281
4554
|
|
|
4555
|
+
pointsDefaultValue.currentShiftTotalBinsTipped = null;
|
|
4556
|
+
|
|
4557
|
+
pointsDefaultValue.currentShiftTotalClass1Trays = null;
|
|
4558
|
+
|
|
4559
|
+
pointsDefaultValue.currentShiftTotalClass2Trays = null;
|
|
4560
|
+
|
|
4561
|
+
pointsDefaultValue.currentShiftTotalDowntimePercentage = null;
|
|
4562
|
+
|
|
4563
|
+
pointsDefaultValue.currentShiftTotalDowntimeSeconds = null;
|
|
4564
|
+
|
|
4565
|
+
pointsDefaultValue.currentShiftTotalLayeredTraysPercentage = null;
|
|
4566
|
+
|
|
4567
|
+
pointsDefaultValue.currentShiftAverageClass1TraysPerHour = null;
|
|
4568
|
+
|
|
4569
|
+
pointsDefaultValue.currentShiftAverageCostPerTray = null;
|
|
4570
|
+
|
|
4571
|
+
pointsDefaultValue.currentShiftAverageClass1Manning = null;
|
|
4572
|
+
|
|
4573
|
+
pointsDefaultValue.currentShiftAverageClass2Manning = null;
|
|
4574
|
+
|
|
4575
|
+
pointsDefaultValue.currentShiftAverageQualityR600Ideal = null;
|
|
4576
|
+
|
|
4577
|
+
pointsDefaultValue.currentShiftAverageScorePercentage = null;
|
|
4578
|
+
|
|
4579
|
+
pointsDefaultValue.currentShiftProjectedTotalBinsTipped = null;
|
|
4580
|
+
|
|
4282
4581
|
pointsDefaultValue.class1TraysPerHourTargets = 0;
|
|
4283
4582
|
|
|
4284
4583
|
pointsDefaultValue.class1TraysPerHourAdjustments = 0;
|
|
@@ -4410,6 +4709,27 @@ class PackingLineModel extends BaseModel
|
|
|
4410
4709
|
pointsObject.currentShiftCustomQualityValue = 0;
|
|
4411
4710
|
}
|
|
4412
4711
|
|
|
4712
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'currentShiftCustomQualityAverageValue' in customQualityConfigurationItem.points)
|
|
4713
|
+
{
|
|
4714
|
+
pointsObject.currentShiftCustomQualityAverageValue = (function(){
|
|
4715
|
+
if(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue === null)
|
|
4716
|
+
{
|
|
4717
|
+
return null;
|
|
4718
|
+
}
|
|
4719
|
+
|
|
4720
|
+
if(typeof customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue !== 'number')
|
|
4721
|
+
{
|
|
4722
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue));
|
|
4723
|
+
}
|
|
4724
|
+
|
|
4725
|
+
return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityAverageValue);
|
|
4726
|
+
}());
|
|
4727
|
+
}
|
|
4728
|
+
else
|
|
4729
|
+
{
|
|
4730
|
+
pointsObject.currentShiftCustomQualityAverageValue = null;
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4413
4733
|
if(typeof customQualityConfigurationItem.points === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points)
|
|
4414
4734
|
{
|
|
4415
4735
|
pointsObject.customQualityTargets = (function(){
|
|
@@ -4454,6 +4774,8 @@ class PackingLineModel extends BaseModel
|
|
|
4454
4774
|
|
|
4455
4775
|
pointsDefaultValue.currentShiftCustomQualityValue = 0;
|
|
4456
4776
|
|
|
4777
|
+
pointsDefaultValue.currentShiftCustomQualityAverageValue = null;
|
|
4778
|
+
|
|
4457
4779
|
pointsDefaultValue.customQualityTargets = 0;
|
|
4458
4780
|
|
|
4459
4781
|
pointsDefaultValue.customQualityScoreWeighting = 0;
|
|
@@ -4627,6 +4949,27 @@ class PackingLineModel extends BaseModel
|
|
|
4627
4949
|
{
|
|
4628
4950
|
shiftManagementObject.manningUsesTeams = false;
|
|
4629
4951
|
}
|
|
4952
|
+
|
|
4953
|
+
if(typeof jsonObject['shiftManagement'] === 'object' && 'useDefaultManningAtShiftStart' in jsonObject['shiftManagement'])
|
|
4954
|
+
{
|
|
4955
|
+
shiftManagementObject.useDefaultManningAtShiftStart = (function(){
|
|
4956
|
+
if(jsonObject['shiftManagement'].useDefaultManningAtShiftStart === null)
|
|
4957
|
+
{
|
|
4958
|
+
return null;
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
if(typeof jsonObject['shiftManagement'].useDefaultManningAtShiftStart !== 'boolean')
|
|
4962
|
+
{
|
|
4963
|
+
return Boolean(jsonObject['shiftManagement'].useDefaultManningAtShiftStart);
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
return jsonObject['shiftManagement'].useDefaultManningAtShiftStart;
|
|
4967
|
+
}());
|
|
4968
|
+
}
|
|
4969
|
+
else
|
|
4970
|
+
{
|
|
4971
|
+
shiftManagementObject.useDefaultManningAtShiftStart = null;
|
|
4972
|
+
}
|
|
4630
4973
|
|
|
4631
4974
|
return shiftManagementObject;
|
|
4632
4975
|
}());
|
|
@@ -52,7 +52,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Reject Bin Scale
|
|
54
54
|
*
|
|
55
|
-
* @type {{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}}
|
|
55
|
+
* @type {{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}}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
58
|
this.points = (function(){
|
|
@@ -94,6 +94,12 @@ class RejectBinScaleModel extends BaseModel
|
|
|
94
94
|
|
|
95
95
|
pointsDefaultValue.currentLiveWeight = null;
|
|
96
96
|
|
|
97
|
+
pointsDefaultValue.startLiveWeighingRequest = null;
|
|
98
|
+
|
|
99
|
+
pointsDefaultValue.finishLiveWeighingRequest = null;
|
|
100
|
+
|
|
101
|
+
pointsDefaultValue.fruitDeliveryActive = null;
|
|
102
|
+
|
|
97
103
|
pointsDefaultValue.status = 0;
|
|
98
104
|
|
|
99
105
|
pointsDefaultValue.currentPackrunId = 0;
|
|
@@ -203,6 +209,14 @@ class RejectBinScaleModel extends BaseModel
|
|
|
203
209
|
*/
|
|
204
210
|
this.autoWeighingFinishDelay = null;
|
|
205
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Whether Live Weighing should be Automatically Finished when the Target Gross Weight is Met
|
|
214
|
+
*
|
|
215
|
+
* @type {?boolean}
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
this.autoWeighingFinishAtGrossTarget = null;
|
|
219
|
+
|
|
206
220
|
/**
|
|
207
221
|
* The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
208
222
|
*
|
|
@@ -732,6 +746,69 @@ class RejectBinScaleModel extends BaseModel
|
|
|
732
746
|
pointsObject.currentLiveWeight = null;
|
|
733
747
|
}
|
|
734
748
|
|
|
749
|
+
if(typeof jsonObject['points'] === 'object' && 'startLiveWeighingRequest' in jsonObject['points'])
|
|
750
|
+
{
|
|
751
|
+
pointsObject.startLiveWeighingRequest = (function(){
|
|
752
|
+
if(jsonObject['points'].startLiveWeighingRequest === null)
|
|
753
|
+
{
|
|
754
|
+
return null;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
if(typeof jsonObject['points'].startLiveWeighingRequest !== 'number')
|
|
758
|
+
{
|
|
759
|
+
return Number.isInteger(Number(jsonObject['points'].startLiveWeighingRequest)) ? Number(jsonObject['points'].startLiveWeighingRequest) : Math.floor(Number(jsonObject['points'].startLiveWeighingRequest));
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
return Number.isInteger(jsonObject['points'].startLiveWeighingRequest) ? jsonObject['points'].startLiveWeighingRequest : Math.floor(jsonObject['points'].startLiveWeighingRequest);
|
|
763
|
+
}());
|
|
764
|
+
}
|
|
765
|
+
else
|
|
766
|
+
{
|
|
767
|
+
pointsObject.startLiveWeighingRequest = null;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if(typeof jsonObject['points'] === 'object' && 'finishLiveWeighingRequest' in jsonObject['points'])
|
|
771
|
+
{
|
|
772
|
+
pointsObject.finishLiveWeighingRequest = (function(){
|
|
773
|
+
if(jsonObject['points'].finishLiveWeighingRequest === null)
|
|
774
|
+
{
|
|
775
|
+
return null;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
if(typeof jsonObject['points'].finishLiveWeighingRequest !== 'number')
|
|
779
|
+
{
|
|
780
|
+
return Number.isInteger(Number(jsonObject['points'].finishLiveWeighingRequest)) ? Number(jsonObject['points'].finishLiveWeighingRequest) : Math.floor(Number(jsonObject['points'].finishLiveWeighingRequest));
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
return Number.isInteger(jsonObject['points'].finishLiveWeighingRequest) ? jsonObject['points'].finishLiveWeighingRequest : Math.floor(jsonObject['points'].finishLiveWeighingRequest);
|
|
784
|
+
}());
|
|
785
|
+
}
|
|
786
|
+
else
|
|
787
|
+
{
|
|
788
|
+
pointsObject.finishLiveWeighingRequest = null;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
if(typeof jsonObject['points'] === 'object' && 'fruitDeliveryActive' in jsonObject['points'])
|
|
792
|
+
{
|
|
793
|
+
pointsObject.fruitDeliveryActive = (function(){
|
|
794
|
+
if(jsonObject['points'].fruitDeliveryActive === null)
|
|
795
|
+
{
|
|
796
|
+
return null;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
if(typeof jsonObject['points'].fruitDeliveryActive !== 'number')
|
|
800
|
+
{
|
|
801
|
+
return Number.isInteger(Number(jsonObject['points'].fruitDeliveryActive)) ? Number(jsonObject['points'].fruitDeliveryActive) : Math.floor(Number(jsonObject['points'].fruitDeliveryActive));
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
return Number.isInteger(jsonObject['points'].fruitDeliveryActive) ? jsonObject['points'].fruitDeliveryActive : Math.floor(jsonObject['points'].fruitDeliveryActive);
|
|
805
|
+
}());
|
|
806
|
+
}
|
|
807
|
+
else
|
|
808
|
+
{
|
|
809
|
+
pointsObject.fruitDeliveryActive = null;
|
|
810
|
+
}
|
|
811
|
+
|
|
735
812
|
if(typeof jsonObject['points'] === 'object' && 'status' in jsonObject['points'])
|
|
736
813
|
{
|
|
737
814
|
pointsObject.status = (function(){
|
|
@@ -1156,6 +1233,23 @@ class RejectBinScaleModel extends BaseModel
|
|
|
1156
1233
|
}());
|
|
1157
1234
|
}
|
|
1158
1235
|
|
|
1236
|
+
if('autoWeighingFinishAtGrossTarget' in jsonObject)
|
|
1237
|
+
{
|
|
1238
|
+
model.autoWeighingFinishAtGrossTarget = (function(){
|
|
1239
|
+
if(jsonObject['autoWeighingFinishAtGrossTarget'] === null)
|
|
1240
|
+
{
|
|
1241
|
+
return null;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
if(typeof jsonObject['autoWeighingFinishAtGrossTarget'] !== 'boolean')
|
|
1245
|
+
{
|
|
1246
|
+
return Boolean(jsonObject['autoWeighingFinishAtGrossTarget']);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
return jsonObject['autoWeighingFinishAtGrossTarget'];
|
|
1250
|
+
}());
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1159
1253
|
if('manualInterventionMaximumDuration' in jsonObject)
|
|
1160
1254
|
{
|
|
1161
1255
|
model.manualInterventionMaximumDuration = (function(){
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.5.
|
|
2
|
+
export const version = '2.5.10';
|