@ricado/api-client 2.7.4 → 2.7.6

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.
@@ -260,11 +260,16 @@ var _default = MAFSizerController;
260
260
  * A **MAFSizerIntegration** Type
261
261
  *
262
262
  * @typedef {Object} MAFSizerController.MAFSizerIntegration
263
- * @property {{stopBatchRequired: number}} points The Points used by this MAF Sizer Integration
263
+ * @property {{stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}} points The Points used by this MAF Sizer Integration
264
264
  * @property {boolean} enabled Whether this MAF Sizer Integration is Enabled
265
265
  * @property {number} sizerNumber The MAF Internal Number for this Sizer
266
266
  * @property {string} dumpSizerName The MAF Internal Name of this Sizer when interacting with the MAF Dump API
267
267
  * @property {string} statSizerName The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
268
+ * @property {?string} orpheaDatabaseHost The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
269
+ * @property {?number} orpheaDatabasePort The TCP Port of the MAF Orphea SQL Database for this Sizer
270
+ * @property {?string} orpheaDatabaseUsername The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
271
+ * @property {?string} orpheaDatabasePassword The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
272
+ * @property {?boolean} orpheaDatabaseEnabled Whether the MAF Orphea SQL Database Integration is Enabled
268
273
  * @memberof Controllers.Packhouse.Site
269
274
  */
270
275
 
@@ -515,7 +515,7 @@ 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, 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
518
+ * @property {{currentShiftId: number, currentShiftStatus: number, currentShiftBreakActive: ?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
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
@@ -2730,10 +2730,15 @@ var _default = PackrunController;
2730
2730
  * @property {string} varietyId The Variety for this Packrun
2731
2731
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
2732
2732
  * @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
2733
+ * @property {?string} [startingTimeBatch] The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
2733
2734
  * @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
2735
+ * @property {?string} [source] The Source of Data when this Packrun was Created
2736
+ * @property {?boolean} [allowFreshPackUpdates] Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
2734
2737
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
2735
2738
  * @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
2736
2739
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
2740
+ * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
2741
+ * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
2737
2742
  * @memberof Controllers.Packhouse.Site
2738
2743
  */
2739
2744
 
@@ -2751,10 +2756,15 @@ var _default = PackrunController;
2751
2756
  * @property {string} [varietyId] The Variety for this Packrun
2752
2757
  * @property {?string} [growingMethodId] The Growing Method for this Packrun
2753
2758
  * @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
2759
+ * @property {?string} [startingTimeBatch] The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
2754
2760
  * @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
2761
+ * @property {?string} [source] The Source of Data when this Packrun was Created
2762
+ * @property {?boolean} [allowFreshPackUpdates] Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
2755
2763
  * @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
2756
2764
  * @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
2757
2765
  * @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
2766
+ * @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
2767
+ * @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
2758
2768
  * @memberof Controllers.Packhouse.Site
2759
2769
  */
2760
2770
 
@@ -173,7 +173,7 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
173
173
  /**
174
174
  * The MAF Integration Configuration for this MAF Sizer
175
175
  *
176
- * @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
176
+ * @type {?{points: {stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string, orpheaDatabaseHost: ?string, orpheaDatabasePort: ?number, orpheaDatabaseUsername: ?string, orpheaDatabasePassword: ?string, orpheaDatabaseEnabled: ?boolean}}
177
177
  * @public
178
178
  */
179
179
 
@@ -984,12 +984,63 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
984
984
  pointsObject.stopBatchRequired = 0;
985
985
  }
986
986
 
987
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationStatus' in jsonObject['mafIntegration'].points) {
988
+ pointsObject.orpheaDatabaseCommunicationStatus = function () {
989
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus === null) {
990
+ return null;
991
+ }
992
+
993
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus !== 'number') {
994
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus));
995
+ }
996
+
997
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus);
998
+ }();
999
+ } else {
1000
+ pointsObject.orpheaDatabaseCommunicationStatus = null;
1001
+ }
1002
+
1003
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationLastCheck' in jsonObject['mafIntegration'].points) {
1004
+ pointsObject.orpheaDatabaseCommunicationLastCheck = function () {
1005
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck === null) {
1006
+ return null;
1007
+ }
1008
+
1009
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck !== 'number') {
1010
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck));
1011
+ }
1012
+
1013
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck);
1014
+ }();
1015
+ } else {
1016
+ pointsObject.orpheaDatabaseCommunicationLastCheck = null;
1017
+ }
1018
+
1019
+ if (_typeof(jsonObject['mafIntegration'].points) === 'object' && 'orpheaDatabaseCommunicationLastError' in jsonObject['mafIntegration'].points) {
1020
+ pointsObject.orpheaDatabaseCommunicationLastError = function () {
1021
+ if (jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError === null) {
1022
+ return null;
1023
+ }
1024
+
1025
+ if (typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError !== 'number') {
1026
+ return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError));
1027
+ }
1028
+
1029
+ return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError);
1030
+ }();
1031
+ } else {
1032
+ pointsObject.orpheaDatabaseCommunicationLastError = null;
1033
+ }
1034
+
987
1035
  return pointsObject;
988
1036
  }();
989
1037
  } else {
990
1038
  mafIntegrationObject.points = function () {
991
1039
  var pointsDefaultValue = {};
992
1040
  pointsDefaultValue.stopBatchRequired = 0;
1041
+ pointsDefaultValue.orpheaDatabaseCommunicationStatus = null;
1042
+ pointsDefaultValue.orpheaDatabaseCommunicationLastCheck = null;
1043
+ pointsDefaultValue.orpheaDatabaseCommunicationLastError = null;
993
1044
  return pointsDefaultValue;
994
1045
  }();
995
1046
  }
@@ -1009,10 +1060,10 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
1009
1060
  if (_typeof(jsonObject['mafIntegration']) === 'object' && 'sizerNumber' in jsonObject['mafIntegration']) {
1010
1061
  mafIntegrationObject.sizerNumber = function () {
1011
1062
  if (typeof jsonObject['mafIntegration'].sizerNumber !== 'number') {
1012
- return Number(jsonObject['mafIntegration'].sizerNumber);
1063
+ return Number.isInteger(Number(jsonObject['mafIntegration'].sizerNumber)) ? Number(jsonObject['mafIntegration'].sizerNumber) : Math.floor(Number(jsonObject['mafIntegration'].sizerNumber));
1013
1064
  }
1014
1065
 
1015
- return jsonObject['mafIntegration'].sizerNumber;
1066
+ return Number.isInteger(jsonObject['mafIntegration'].sizerNumber) ? jsonObject['mafIntegration'].sizerNumber : Math.floor(jsonObject['mafIntegration'].sizerNumber);
1016
1067
  }();
1017
1068
  } else {
1018
1069
  mafIntegrationObject.sizerNumber = 0;
@@ -1042,6 +1093,86 @@ var MAFSizerModel = /*#__PURE__*/function (_BaseModel) {
1042
1093
  mafIntegrationObject.statSizerName = "";
1043
1094
  }
1044
1095
 
1096
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseHost' in jsonObject['mafIntegration']) {
1097
+ mafIntegrationObject.orpheaDatabaseHost = function () {
1098
+ if (jsonObject['mafIntegration'].orpheaDatabaseHost === null) {
1099
+ return null;
1100
+ }
1101
+
1102
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseHost !== 'string') {
1103
+ return String(jsonObject['mafIntegration'].orpheaDatabaseHost);
1104
+ }
1105
+
1106
+ return jsonObject['mafIntegration'].orpheaDatabaseHost;
1107
+ }();
1108
+ } else {
1109
+ mafIntegrationObject.orpheaDatabaseHost = null;
1110
+ }
1111
+
1112
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabasePort' in jsonObject['mafIntegration']) {
1113
+ mafIntegrationObject.orpheaDatabasePort = function () {
1114
+ if (jsonObject['mafIntegration'].orpheaDatabasePort === null) {
1115
+ return null;
1116
+ }
1117
+
1118
+ if (typeof jsonObject['mafIntegration'].orpheaDatabasePort !== 'number') {
1119
+ return Number.isInteger(Number(jsonObject['mafIntegration'].orpheaDatabasePort)) ? Number(jsonObject['mafIntegration'].orpheaDatabasePort) : Math.floor(Number(jsonObject['mafIntegration'].orpheaDatabasePort));
1120
+ }
1121
+
1122
+ return Number.isInteger(jsonObject['mafIntegration'].orpheaDatabasePort) ? jsonObject['mafIntegration'].orpheaDatabasePort : Math.floor(jsonObject['mafIntegration'].orpheaDatabasePort);
1123
+ }();
1124
+ } else {
1125
+ mafIntegrationObject.orpheaDatabasePort = null;
1126
+ }
1127
+
1128
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseUsername' in jsonObject['mafIntegration']) {
1129
+ mafIntegrationObject.orpheaDatabaseUsername = function () {
1130
+ if (jsonObject['mafIntegration'].orpheaDatabaseUsername === null) {
1131
+ return null;
1132
+ }
1133
+
1134
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseUsername !== 'string') {
1135
+ return String(jsonObject['mafIntegration'].orpheaDatabaseUsername);
1136
+ }
1137
+
1138
+ return jsonObject['mafIntegration'].orpheaDatabaseUsername;
1139
+ }();
1140
+ } else {
1141
+ mafIntegrationObject.orpheaDatabaseUsername = null;
1142
+ }
1143
+
1144
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabasePassword' in jsonObject['mafIntegration']) {
1145
+ mafIntegrationObject.orpheaDatabasePassword = function () {
1146
+ if (jsonObject['mafIntegration'].orpheaDatabasePassword === null) {
1147
+ return null;
1148
+ }
1149
+
1150
+ if (typeof jsonObject['mafIntegration'].orpheaDatabasePassword !== 'string') {
1151
+ return String(jsonObject['mafIntegration'].orpheaDatabasePassword);
1152
+ }
1153
+
1154
+ return jsonObject['mafIntegration'].orpheaDatabasePassword;
1155
+ }();
1156
+ } else {
1157
+ mafIntegrationObject.orpheaDatabasePassword = null;
1158
+ }
1159
+
1160
+ if (_typeof(jsonObject['mafIntegration']) === 'object' && 'orpheaDatabaseEnabled' in jsonObject['mafIntegration']) {
1161
+ mafIntegrationObject.orpheaDatabaseEnabled = function () {
1162
+ if (jsonObject['mafIntegration'].orpheaDatabaseEnabled === null) {
1163
+ return null;
1164
+ }
1165
+
1166
+ if (typeof jsonObject['mafIntegration'].orpheaDatabaseEnabled !== 'boolean') {
1167
+ return Boolean(jsonObject['mafIntegration'].orpheaDatabaseEnabled);
1168
+ }
1169
+
1170
+ return jsonObject['mafIntegration'].orpheaDatabaseEnabled;
1171
+ }();
1172
+ } else {
1173
+ mafIntegrationObject.orpheaDatabaseEnabled = null;
1174
+ }
1175
+
1045
1176
  return mafIntegrationObject;
1046
1177
  }();
1047
1178
  }
@@ -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, 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}}
192
+ * @type {?{points: {currentShiftId: number, currentShiftStatus: number, currentShiftBreakActive: ?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
 
@@ -2769,6 +2769,22 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
2769
2769
  pointsObject.currentShiftStatus = 0;
2770
2770
  }
2771
2771
 
2772
+ if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'currentShiftBreakActive' in jsonObject['shiftManagement'].points) {
2773
+ pointsObject.currentShiftBreakActive = function () {
2774
+ if (jsonObject['shiftManagement'].points.currentShiftBreakActive === null) {
2775
+ return null;
2776
+ }
2777
+
2778
+ if (typeof jsonObject['shiftManagement'].points.currentShiftBreakActive !== 'number') {
2779
+ return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftBreakActive)) ? Number(jsonObject['shiftManagement'].points.currentShiftBreakActive) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftBreakActive));
2780
+ }
2781
+
2782
+ return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftBreakActive) ? jsonObject['shiftManagement'].points.currentShiftBreakActive : Math.floor(jsonObject['shiftManagement'].points.currentShiftBreakActive);
2783
+ }();
2784
+ } else {
2785
+ pointsObject.currentShiftBreakActive = null;
2786
+ }
2787
+
2772
2788
  if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'createNewDayShiftRequest' in jsonObject['shiftManagement'].points) {
2773
2789
  pointsObject.createNewDayShiftRequest = function () {
2774
2790
  if (typeof jsonObject['shiftManagement'].points.createNewDayShiftRequest !== 'number') {
@@ -3492,6 +3508,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
3492
3508
  var pointsDefaultValue = {};
3493
3509
  pointsDefaultValue.currentShiftId = 0;
3494
3510
  pointsDefaultValue.currentShiftStatus = 0;
3511
+ pointsDefaultValue.currentShiftBreakActive = null;
3495
3512
  pointsDefaultValue.createNewDayShiftRequest = 0;
3496
3513
  pointsDefaultValue.createNewNightShiftRequest = 0;
3497
3514
  pointsDefaultValue.startCurrentShiftRequest = 0;
@@ -151,6 +151,14 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
151
151
  */
152
152
 
153
153
  _this.allocatedBins = 0;
154
+ /**
155
+ * The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
156
+ *
157
+ * @type {?string}
158
+ * @public
159
+ */
160
+
161
+ _this.startingTimeBatch = null;
154
162
  /**
155
163
  * The Time Batches for this Packrun
156
164
  *
@@ -159,6 +167,22 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
159
167
  */
160
168
 
161
169
  _this.timeBatches = [];
170
+ /**
171
+ * The Source of Data when this Packrun was Created
172
+ *
173
+ * @type {?string}
174
+ * @public
175
+ */
176
+
177
+ _this.source = null;
178
+ /**
179
+ * Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
180
+ *
181
+ * @type {?boolean}
182
+ * @public
183
+ */
184
+
185
+ _this.allowFreshPackUpdates = null;
162
186
  /**
163
187
  * The FreshPack Grader ID associated with this Packrun
164
188
  *
@@ -183,6 +207,22 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
183
207
  */
184
208
 
185
209
  _this.freshPackProduceCode = null;
210
+ /**
211
+ * The FreshPack Packing Schedule ID associated with this Packrun
212
+ *
213
+ * @type {?number}
214
+ * @public
215
+ */
216
+
217
+ _this.freshPackPackingScheduleId = null;
218
+ /**
219
+ * The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
220
+ *
221
+ * @type {?number}
222
+ * @public
223
+ */
224
+
225
+ _this.freshPackInitialTippedBins = null;
186
226
  /**
187
227
  * Whether the Packrun has been deleted
188
228
  *
@@ -370,6 +410,20 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
370
410
  }();
371
411
  }
372
412
 
413
+ if ('startingTimeBatch' in jsonObject) {
414
+ model.startingTimeBatch = function () {
415
+ if (jsonObject['startingTimeBatch'] === null) {
416
+ return null;
417
+ }
418
+
419
+ if (typeof jsonObject['startingTimeBatch'] !== 'string') {
420
+ return String(jsonObject['startingTimeBatch']);
421
+ }
422
+
423
+ return jsonObject['startingTimeBatch'];
424
+ }();
425
+ }
426
+
373
427
  if ('timeBatches' in jsonObject) {
374
428
  model.timeBatches = function () {
375
429
  if (Array.isArray(jsonObject['timeBatches']) !== true) {
@@ -410,6 +464,34 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
410
464
  }();
411
465
  }
412
466
 
467
+ if ('source' in jsonObject) {
468
+ model.source = function () {
469
+ if (jsonObject['source'] === null) {
470
+ return null;
471
+ }
472
+
473
+ if (typeof jsonObject['source'] !== 'string') {
474
+ return String(jsonObject['source']);
475
+ }
476
+
477
+ return jsonObject['source'];
478
+ }();
479
+ }
480
+
481
+ if ('allowFreshPackUpdates' in jsonObject) {
482
+ model.allowFreshPackUpdates = function () {
483
+ if (jsonObject['allowFreshPackUpdates'] === null) {
484
+ return null;
485
+ }
486
+
487
+ if (typeof jsonObject['allowFreshPackUpdates'] !== 'boolean') {
488
+ return Boolean(jsonObject['allowFreshPackUpdates']);
489
+ }
490
+
491
+ return jsonObject['allowFreshPackUpdates'];
492
+ }();
493
+ }
494
+
413
495
  if ('freshPackGraderId' in jsonObject) {
414
496
  model.freshPackGraderId = function () {
415
497
  if (jsonObject['freshPackGraderId'] === null) {
@@ -452,6 +534,34 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
452
534
  }();
453
535
  }
454
536
 
537
+ if ('freshPackPackingScheduleId' in jsonObject) {
538
+ model.freshPackPackingScheduleId = function () {
539
+ if (jsonObject['freshPackPackingScheduleId'] === null) {
540
+ return null;
541
+ }
542
+
543
+ if (typeof jsonObject['freshPackPackingScheduleId'] !== 'number') {
544
+ return Number.isInteger(Number(jsonObject['freshPackPackingScheduleId'])) ? Number(jsonObject['freshPackPackingScheduleId']) : Math.floor(Number(jsonObject['freshPackPackingScheduleId']));
545
+ }
546
+
547
+ return Number.isInteger(jsonObject['freshPackPackingScheduleId']) ? jsonObject['freshPackPackingScheduleId'] : Math.floor(jsonObject['freshPackPackingScheduleId']);
548
+ }();
549
+ }
550
+
551
+ if ('freshPackInitialTippedBins' in jsonObject) {
552
+ model.freshPackInitialTippedBins = function () {
553
+ if (jsonObject['freshPackInitialTippedBins'] === null) {
554
+ return null;
555
+ }
556
+
557
+ if (typeof jsonObject['freshPackInitialTippedBins'] !== 'number') {
558
+ return Number.isInteger(Number(jsonObject['freshPackInitialTippedBins'])) ? Number(jsonObject['freshPackInitialTippedBins']) : Math.floor(Number(jsonObject['freshPackInitialTippedBins']));
559
+ }
560
+
561
+ return Number.isInteger(jsonObject['freshPackInitialTippedBins']) ? jsonObject['freshPackInitialTippedBins'] : Math.floor(jsonObject['freshPackInitialTippedBins']);
562
+ }();
563
+ }
564
+
455
565
  if ('deleted' in jsonObject) {
456
566
  model.deleted = function () {
457
567
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- var version = '2.7.4';
8
+ var version = '2.7.6';
9
9
  exports.version = version;