@ricado/api-client 2.7.4 → 2.7.5
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/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +10 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +18 -1
- package/lib/Models/Packhouse/Site/PackrunModel.js +110 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +78 -1
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +10 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +24 -1
- package/src/Models/Packhouse/Site/PackrunModel.js +125 -0
- package/src/PackageVersion.js +1 -1
|
@@ -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
|
|
|
@@ -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') {
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -16686,6 +16686,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16686
16686
|
points: {
|
|
16687
16687
|
currentShiftId: number;
|
|
16688
16688
|
currentShiftStatus: number;
|
|
16689
|
+
currentShiftBreakActive: number | null;
|
|
16689
16690
|
createNewDayShiftRequest: number;
|
|
16690
16691
|
createNewNightShiftRequest: number;
|
|
16691
16692
|
startCurrentShiftRequest: number;
|
|
@@ -17469,10 +17470,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17469
17470
|
* The Number of Allocated Bins for this Packrun
|
|
17470
17471
|
*/
|
|
17471
17472
|
allocatedBins?: number | undefined;
|
|
17473
|
+
/**
|
|
17474
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
17475
|
+
*/
|
|
17476
|
+
startingTimeBatch?: string | null | undefined;
|
|
17472
17477
|
/**
|
|
17473
17478
|
* The Time Batches for this Packrun
|
|
17474
17479
|
*/
|
|
17475
17480
|
timeBatches?: TimeBatch[] | undefined;
|
|
17481
|
+
/**
|
|
17482
|
+
* The Source of Data when this Packrun was Created
|
|
17483
|
+
*/
|
|
17484
|
+
source?: string | null | undefined;
|
|
17485
|
+
/**
|
|
17486
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
17487
|
+
*/
|
|
17488
|
+
allowFreshPackUpdates?: boolean | null | undefined;
|
|
17476
17489
|
/**
|
|
17477
17490
|
* The FreshPack Grader ID associated with this Packrun
|
|
17478
17491
|
*/
|
|
@@ -17485,6 +17498,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17485
17498
|
* The FreshPack Produce Code associated with this Packrun
|
|
17486
17499
|
*/
|
|
17487
17500
|
freshPackProduceCode?: string | null | undefined;
|
|
17501
|
+
/**
|
|
17502
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
17503
|
+
*/
|
|
17504
|
+
freshPackPackingScheduleId?: number | null | undefined;
|
|
17505
|
+
/**
|
|
17506
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
17507
|
+
*/
|
|
17508
|
+
freshPackInitialTippedBins?: number | null | undefined;
|
|
17488
17509
|
};
|
|
17489
17510
|
/**
|
|
17490
17511
|
* The Update Data for a Packrun
|
|
@@ -17530,10 +17551,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17530
17551
|
* The Number of Allocated Bins for this Packrun
|
|
17531
17552
|
*/
|
|
17532
17553
|
allocatedBins?: number | undefined;
|
|
17554
|
+
/**
|
|
17555
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
17556
|
+
*/
|
|
17557
|
+
startingTimeBatch?: string | null | undefined;
|
|
17533
17558
|
/**
|
|
17534
17559
|
* The Time Batches for this Packrun
|
|
17535
17560
|
*/
|
|
17536
17561
|
timeBatches?: TimeBatch[] | undefined;
|
|
17562
|
+
/**
|
|
17563
|
+
* The Source of Data when this Packrun was Created
|
|
17564
|
+
*/
|
|
17565
|
+
source?: string | null | undefined;
|
|
17566
|
+
/**
|
|
17567
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
17568
|
+
*/
|
|
17569
|
+
allowFreshPackUpdates?: boolean | null | undefined;
|
|
17537
17570
|
/**
|
|
17538
17571
|
* The FreshPack Grader ID associated with this Packrun
|
|
17539
17572
|
*/
|
|
@@ -17546,6 +17579,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17546
17579
|
* The FreshPack Produce Code associated with this Packrun
|
|
17547
17580
|
*/
|
|
17548
17581
|
freshPackProduceCode?: string | null | undefined;
|
|
17582
|
+
/**
|
|
17583
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
17584
|
+
*/
|
|
17585
|
+
freshPackPackingScheduleId?: number | null | undefined;
|
|
17586
|
+
/**
|
|
17587
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
17588
|
+
*/
|
|
17589
|
+
freshPackInitialTippedBins?: number | null | undefined;
|
|
17549
17590
|
};
|
|
17550
17591
|
/**
|
|
17551
17592
|
* A **UserAccount** Type
|
|
@@ -29325,13 +29366,14 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
29325
29366
|
/**
|
|
29326
29367
|
* The Optional Shift Management Object for this Packing Line
|
|
29327
29368
|
*
|
|
29328
|
-
* @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}}
|
|
29369
|
+
* @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}}
|
|
29329
29370
|
* @public
|
|
29330
29371
|
*/
|
|
29331
29372
|
shiftManagement: {
|
|
29332
29373
|
points: {
|
|
29333
29374
|
currentShiftId: number;
|
|
29334
29375
|
currentShiftStatus: number;
|
|
29376
|
+
currentShiftBreakActive: number | null;
|
|
29335
29377
|
createNewDayShiftRequest: number;
|
|
29336
29378
|
createNewNightShiftRequest: number;
|
|
29337
29379
|
startCurrentShiftRequest: number;
|
|
@@ -29721,6 +29763,13 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29721
29763
|
* @public
|
|
29722
29764
|
*/
|
|
29723
29765
|
allocatedBins: number;
|
|
29766
|
+
/**
|
|
29767
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
29768
|
+
*
|
|
29769
|
+
* @type {?string}
|
|
29770
|
+
* @public
|
|
29771
|
+
*/
|
|
29772
|
+
startingTimeBatch: string | null;
|
|
29724
29773
|
/**
|
|
29725
29774
|
* The Time Batches for this Packrun
|
|
29726
29775
|
*
|
|
@@ -29731,6 +29780,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29731
29780
|
id: string;
|
|
29732
29781
|
timestamp: Date;
|
|
29733
29782
|
}[];
|
|
29783
|
+
/**
|
|
29784
|
+
* The Source of Data when this Packrun was Created
|
|
29785
|
+
*
|
|
29786
|
+
* @type {?string}
|
|
29787
|
+
* @public
|
|
29788
|
+
*/
|
|
29789
|
+
source: string | null;
|
|
29790
|
+
/**
|
|
29791
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
29792
|
+
*
|
|
29793
|
+
* @type {?boolean}
|
|
29794
|
+
* @public
|
|
29795
|
+
*/
|
|
29796
|
+
allowFreshPackUpdates: boolean | null;
|
|
29734
29797
|
/**
|
|
29735
29798
|
* The FreshPack Grader ID associated with this Packrun
|
|
29736
29799
|
*
|
|
@@ -29752,6 +29815,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29752
29815
|
* @public
|
|
29753
29816
|
*/
|
|
29754
29817
|
freshPackProduceCode: string | null;
|
|
29818
|
+
/**
|
|
29819
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
29820
|
+
*
|
|
29821
|
+
* @type {?number}
|
|
29822
|
+
* @public
|
|
29823
|
+
*/
|
|
29824
|
+
freshPackPackingScheduleId: number | null;
|
|
29825
|
+
/**
|
|
29826
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
29827
|
+
*
|
|
29828
|
+
* @type {?number}
|
|
29829
|
+
* @public
|
|
29830
|
+
*/
|
|
29831
|
+
freshPackInitialTippedBins: number | null;
|
|
29755
29832
|
/**
|
|
29756
29833
|
* Whether the Packrun has been deleted
|
|
29757
29834
|
*
|
package/package.json
CHANGED
|
@@ -494,7 +494,7 @@ export default PackingLineController;
|
|
|
494
494
|
* A **ShiftManagement** Type
|
|
495
495
|
*
|
|
496
496
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
497
|
-
* @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
|
|
497
|
+
* @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
|
|
498
498
|
* @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
|
|
499
499
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
500
500
|
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|
|
@@ -3402,10 +3402,15 @@ export default PackrunController;
|
|
|
3402
3402
|
* @property {string} varietyId The Variety for this Packrun
|
|
3403
3403
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
3404
3404
|
* @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
|
|
3405
|
+
* @property {?string} [startingTimeBatch] The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
3405
3406
|
* @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
|
|
3407
|
+
* @property {?string} [source] The Source of Data when this Packrun was Created
|
|
3408
|
+
* @property {?boolean} [allowFreshPackUpdates] Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
3406
3409
|
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
3407
3410
|
* @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
|
|
3408
3411
|
* @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
|
|
3412
|
+
* @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
|
|
3413
|
+
* @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
3409
3414
|
* @memberof Controllers.Packhouse.Site
|
|
3410
3415
|
*/
|
|
3411
3416
|
|
|
@@ -3423,10 +3428,15 @@ export default PackrunController;
|
|
|
3423
3428
|
* @property {string} [varietyId] The Variety for this Packrun
|
|
3424
3429
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
3425
3430
|
* @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
|
|
3431
|
+
* @property {?string} [startingTimeBatch] The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
3426
3432
|
* @property {Array<PackrunController.TimeBatch>} [timeBatches] The Time Batches for this Packrun
|
|
3433
|
+
* @property {?string} [source] The Source of Data when this Packrun was Created
|
|
3434
|
+
* @property {?boolean} [allowFreshPackUpdates] Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
3427
3435
|
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
3428
3436
|
* @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
|
|
3429
3437
|
* @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
|
|
3438
|
+
* @property {?number} [freshPackPackingScheduleId] The FreshPack Packing Schedule ID associated with this Packrun
|
|
3439
|
+
* @property {?number} [freshPackInitialTippedBins] The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
3430
3440
|
* @memberof Controllers.Packhouse.Site
|
|
3431
3441
|
*/
|
|
3432
3442
|
|
|
@@ -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, 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
|
+
* @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}}
|
|
194
194
|
* @public
|
|
195
195
|
*/
|
|
196
196
|
this.shiftManagement = null;
|
|
@@ -3539,6 +3539,27 @@ class PackingLineModel extends BaseModel
|
|
|
3539
3539
|
pointsObject.currentShiftStatus = 0;
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftBreakActive' in jsonObject['shiftManagement'].points)
|
|
3543
|
+
{
|
|
3544
|
+
pointsObject.currentShiftBreakActive = (function(){
|
|
3545
|
+
if(jsonObject['shiftManagement'].points.currentShiftBreakActive === null)
|
|
3546
|
+
{
|
|
3547
|
+
return null;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftBreakActive !== 'number')
|
|
3551
|
+
{
|
|
3552
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftBreakActive)) ? Number(jsonObject['shiftManagement'].points.currentShiftBreakActive) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftBreakActive));
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftBreakActive) ? jsonObject['shiftManagement'].points.currentShiftBreakActive : Math.floor(jsonObject['shiftManagement'].points.currentShiftBreakActive);
|
|
3556
|
+
}());
|
|
3557
|
+
}
|
|
3558
|
+
else
|
|
3559
|
+
{
|
|
3560
|
+
pointsObject.currentShiftBreakActive = null;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3542
3563
|
if(typeof jsonObject['shiftManagement'].points === 'object' && 'createNewDayShiftRequest' in jsonObject['shiftManagement'].points)
|
|
3543
3564
|
{
|
|
3544
3565
|
pointsObject.createNewDayShiftRequest = (function(){
|
|
@@ -4500,6 +4521,8 @@ class PackingLineModel extends BaseModel
|
|
|
4500
4521
|
|
|
4501
4522
|
pointsDefaultValue.currentShiftStatus = 0;
|
|
4502
4523
|
|
|
4524
|
+
pointsDefaultValue.currentShiftBreakActive = null;
|
|
4525
|
+
|
|
4503
4526
|
pointsDefaultValue.createNewDayShiftRequest = 0;
|
|
4504
4527
|
|
|
4505
4528
|
pointsDefaultValue.createNewNightShiftRequest = 0;
|