@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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +6 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +10 -0
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +134 -3
- 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 +110 -2
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +6 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +10 -0
- package/src/Models/Packhouse/Site/MAFSizerModel.js +177 -3
- package/src/Models/Packhouse/Site/PackingLineModel.js +24 -1
- package/src/Models/Packhouse/Site/PackrunModel.js +125 -0
- package/src/PackageVersion.js +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -14950,6 +14950,9 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/MAFSizerController
|
|
|
14950
14950
|
*/
|
|
14951
14951
|
points: {
|
|
14952
14952
|
stopBatchRequired: number;
|
|
14953
|
+
orpheaDatabaseCommunicationStatus: number | null;
|
|
14954
|
+
orpheaDatabaseCommunicationLastCheck: number | null;
|
|
14955
|
+
orpheaDatabaseCommunicationLastError: number | null;
|
|
14953
14956
|
};
|
|
14954
14957
|
/**
|
|
14955
14958
|
* Whether this MAF Sizer Integration is Enabled
|
|
@@ -14967,6 +14970,26 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/MAFSizerController
|
|
|
14967
14970
|
* The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
|
|
14968
14971
|
*/
|
|
14969
14972
|
statSizerName: string;
|
|
14973
|
+
/**
|
|
14974
|
+
* The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
|
|
14975
|
+
*/
|
|
14976
|
+
orpheaDatabaseHost: string | null;
|
|
14977
|
+
/**
|
|
14978
|
+
* The TCP Port of the MAF Orphea SQL Database for this Sizer
|
|
14979
|
+
*/
|
|
14980
|
+
orpheaDatabasePort: number | null;
|
|
14981
|
+
/**
|
|
14982
|
+
* The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
|
|
14983
|
+
*/
|
|
14984
|
+
orpheaDatabaseUsername: string | null;
|
|
14985
|
+
/**
|
|
14986
|
+
* The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
|
|
14987
|
+
*/
|
|
14988
|
+
orpheaDatabasePassword: string | null;
|
|
14989
|
+
/**
|
|
14990
|
+
* Whether the MAF Orphea SQL Database Integration is Enabled
|
|
14991
|
+
*/
|
|
14992
|
+
orpheaDatabaseEnabled: boolean | null;
|
|
14970
14993
|
};
|
|
14971
14994
|
/**
|
|
14972
14995
|
* A **RiserSource** Type
|
|
@@ -16686,6 +16709,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16686
16709
|
points: {
|
|
16687
16710
|
currentShiftId: number;
|
|
16688
16711
|
currentShiftStatus: number;
|
|
16712
|
+
currentShiftBreakActive: number | null;
|
|
16689
16713
|
createNewDayShiftRequest: number;
|
|
16690
16714
|
createNewNightShiftRequest: number;
|
|
16691
16715
|
startCurrentShiftRequest: number;
|
|
@@ -17469,10 +17493,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17469
17493
|
* The Number of Allocated Bins for this Packrun
|
|
17470
17494
|
*/
|
|
17471
17495
|
allocatedBins?: number | undefined;
|
|
17496
|
+
/**
|
|
17497
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
17498
|
+
*/
|
|
17499
|
+
startingTimeBatch?: string | null | undefined;
|
|
17472
17500
|
/**
|
|
17473
17501
|
* The Time Batches for this Packrun
|
|
17474
17502
|
*/
|
|
17475
17503
|
timeBatches?: TimeBatch[] | undefined;
|
|
17504
|
+
/**
|
|
17505
|
+
* The Source of Data when this Packrun was Created
|
|
17506
|
+
*/
|
|
17507
|
+
source?: string | null | undefined;
|
|
17508
|
+
/**
|
|
17509
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
17510
|
+
*/
|
|
17511
|
+
allowFreshPackUpdates?: boolean | null | undefined;
|
|
17476
17512
|
/**
|
|
17477
17513
|
* The FreshPack Grader ID associated with this Packrun
|
|
17478
17514
|
*/
|
|
@@ -17485,6 +17521,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17485
17521
|
* The FreshPack Produce Code associated with this Packrun
|
|
17486
17522
|
*/
|
|
17487
17523
|
freshPackProduceCode?: string | null | undefined;
|
|
17524
|
+
/**
|
|
17525
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
17526
|
+
*/
|
|
17527
|
+
freshPackPackingScheduleId?: number | null | undefined;
|
|
17528
|
+
/**
|
|
17529
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
17530
|
+
*/
|
|
17531
|
+
freshPackInitialTippedBins?: number | null | undefined;
|
|
17488
17532
|
};
|
|
17489
17533
|
/**
|
|
17490
17534
|
* The Update Data for a Packrun
|
|
@@ -17530,10 +17574,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17530
17574
|
* The Number of Allocated Bins for this Packrun
|
|
17531
17575
|
*/
|
|
17532
17576
|
allocatedBins?: number | undefined;
|
|
17577
|
+
/**
|
|
17578
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
17579
|
+
*/
|
|
17580
|
+
startingTimeBatch?: string | null | undefined;
|
|
17533
17581
|
/**
|
|
17534
17582
|
* The Time Batches for this Packrun
|
|
17535
17583
|
*/
|
|
17536
17584
|
timeBatches?: TimeBatch[] | undefined;
|
|
17585
|
+
/**
|
|
17586
|
+
* The Source of Data when this Packrun was Created
|
|
17587
|
+
*/
|
|
17588
|
+
source?: string | null | undefined;
|
|
17589
|
+
/**
|
|
17590
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
17591
|
+
*/
|
|
17592
|
+
allowFreshPackUpdates?: boolean | null | undefined;
|
|
17537
17593
|
/**
|
|
17538
17594
|
* The FreshPack Grader ID associated with this Packrun
|
|
17539
17595
|
*/
|
|
@@ -17546,6 +17602,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17546
17602
|
* The FreshPack Produce Code associated with this Packrun
|
|
17547
17603
|
*/
|
|
17548
17604
|
freshPackProduceCode?: string | null | undefined;
|
|
17605
|
+
/**
|
|
17606
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
17607
|
+
*/
|
|
17608
|
+
freshPackPackingScheduleId?: number | null | undefined;
|
|
17609
|
+
/**
|
|
17610
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
17611
|
+
*/
|
|
17612
|
+
freshPackInitialTippedBins?: number | null | undefined;
|
|
17549
17613
|
};
|
|
17550
17614
|
/**
|
|
17551
17615
|
* A **UserAccount** Type
|
|
@@ -28594,17 +28658,25 @@ declare module '@ricado/api-client/Models/Packhouse/Site/MAFSizerModel' {
|
|
|
28594
28658
|
/**
|
|
28595
28659
|
* The MAF Integration Configuration for this MAF Sizer
|
|
28596
28660
|
*
|
|
28597
|
-
* @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
|
|
28661
|
+
* @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}}
|
|
28598
28662
|
* @public
|
|
28599
28663
|
*/
|
|
28600
28664
|
mafIntegration: {
|
|
28601
28665
|
points: {
|
|
28602
28666
|
stopBatchRequired: number;
|
|
28667
|
+
orpheaDatabaseCommunicationStatus: number | null;
|
|
28668
|
+
orpheaDatabaseCommunicationLastCheck: number | null;
|
|
28669
|
+
orpheaDatabaseCommunicationLastError: number | null;
|
|
28603
28670
|
};
|
|
28604
28671
|
enabled: boolean;
|
|
28605
28672
|
sizerNumber: number;
|
|
28606
28673
|
dumpSizerName: string;
|
|
28607
28674
|
statSizerName: string;
|
|
28675
|
+
orpheaDatabaseHost: string | null;
|
|
28676
|
+
orpheaDatabasePort: number | null;
|
|
28677
|
+
orpheaDatabaseUsername: string | null;
|
|
28678
|
+
orpheaDatabasePassword: string | null;
|
|
28679
|
+
orpheaDatabaseEnabled: boolean | null;
|
|
28608
28680
|
} | null;
|
|
28609
28681
|
/**
|
|
28610
28682
|
* An Array of Sources that deliver Fruit to this MAF Sizer
|
|
@@ -29325,13 +29397,14 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
29325
29397
|
/**
|
|
29326
29398
|
* The Optional Shift Management Object for this Packing Line
|
|
29327
29399
|
*
|
|
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}}
|
|
29400
|
+
* @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
29401
|
* @public
|
|
29330
29402
|
*/
|
|
29331
29403
|
shiftManagement: {
|
|
29332
29404
|
points: {
|
|
29333
29405
|
currentShiftId: number;
|
|
29334
29406
|
currentShiftStatus: number;
|
|
29407
|
+
currentShiftBreakActive: number | null;
|
|
29335
29408
|
createNewDayShiftRequest: number;
|
|
29336
29409
|
createNewNightShiftRequest: number;
|
|
29337
29410
|
startCurrentShiftRequest: number;
|
|
@@ -29721,6 +29794,13 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29721
29794
|
* @public
|
|
29722
29795
|
*/
|
|
29723
29796
|
allocatedBins: number;
|
|
29797
|
+
/**
|
|
29798
|
+
* The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
|
|
29799
|
+
*
|
|
29800
|
+
* @type {?string}
|
|
29801
|
+
* @public
|
|
29802
|
+
*/
|
|
29803
|
+
startingTimeBatch: string | null;
|
|
29724
29804
|
/**
|
|
29725
29805
|
* The Time Batches for this Packrun
|
|
29726
29806
|
*
|
|
@@ -29731,6 +29811,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29731
29811
|
id: string;
|
|
29732
29812
|
timestamp: Date;
|
|
29733
29813
|
}[];
|
|
29814
|
+
/**
|
|
29815
|
+
* The Source of Data when this Packrun was Created
|
|
29816
|
+
*
|
|
29817
|
+
* @type {?string}
|
|
29818
|
+
* @public
|
|
29819
|
+
*/
|
|
29820
|
+
source: string | null;
|
|
29821
|
+
/**
|
|
29822
|
+
* Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
|
|
29823
|
+
*
|
|
29824
|
+
* @type {?boolean}
|
|
29825
|
+
* @public
|
|
29826
|
+
*/
|
|
29827
|
+
allowFreshPackUpdates: boolean | null;
|
|
29734
29828
|
/**
|
|
29735
29829
|
* The FreshPack Grader ID associated with this Packrun
|
|
29736
29830
|
*
|
|
@@ -29752,6 +29846,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
29752
29846
|
* @public
|
|
29753
29847
|
*/
|
|
29754
29848
|
freshPackProduceCode: string | null;
|
|
29849
|
+
/**
|
|
29850
|
+
* The FreshPack Packing Schedule ID associated with this Packrun
|
|
29851
|
+
*
|
|
29852
|
+
* @type {?number}
|
|
29853
|
+
* @public
|
|
29854
|
+
*/
|
|
29855
|
+
freshPackPackingScheduleId: number | null;
|
|
29856
|
+
/**
|
|
29857
|
+
* The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
|
|
29858
|
+
*
|
|
29859
|
+
* @type {?number}
|
|
29860
|
+
* @public
|
|
29861
|
+
*/
|
|
29862
|
+
freshPackInitialTippedBins: number | null;
|
|
29755
29863
|
/**
|
|
29756
29864
|
* Whether the Packrun has been deleted
|
|
29757
29865
|
*
|
package/package.json
CHANGED
|
@@ -239,11 +239,16 @@ export default MAFSizerController;
|
|
|
239
239
|
* A **MAFSizerIntegration** Type
|
|
240
240
|
*
|
|
241
241
|
* @typedef {Object} MAFSizerController.MAFSizerIntegration
|
|
242
|
-
* @property {{stopBatchRequired: number}} points The Points used by this MAF Sizer Integration
|
|
242
|
+
* @property {{stopBatchRequired: number, orpheaDatabaseCommunicationStatus: ?number, orpheaDatabaseCommunicationLastCheck: ?number, orpheaDatabaseCommunicationLastError: ?number}} points The Points used by this MAF Sizer Integration
|
|
243
243
|
* @property {boolean} enabled Whether this MAF Sizer Integration is Enabled
|
|
244
244
|
* @property {number} sizerNumber The MAF Internal Number for this Sizer
|
|
245
245
|
* @property {string} dumpSizerName The MAF Internal Name of this Sizer when interacting with the MAF Dump API
|
|
246
246
|
* @property {string} statSizerName The MAF Internal Name of this Sizer when interacting with the MAF Sizer Stat API
|
|
247
|
+
* @property {?string} orpheaDatabaseHost The Hostname or IP Address of the MAF Orphea SQL Database for this Sizer
|
|
248
|
+
* @property {?number} orpheaDatabasePort The TCP Port of the MAF Orphea SQL Database for this Sizer
|
|
249
|
+
* @property {?string} orpheaDatabaseUsername The Username to Authenticate with the MAF Orphea SQL Database for this Sizer
|
|
250
|
+
* @property {?string} orpheaDatabasePassword The Password to Authenticate with the MAF Orphea SQL Database for this Sizer
|
|
251
|
+
* @property {?boolean} orpheaDatabaseEnabled Whether the MAF Orphea SQL Database Integration is Enabled
|
|
247
252
|
* @memberof Controllers.Packhouse.Site
|
|
248
253
|
*/
|
|
249
254
|
|
|
@@ -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
|
|
|
@@ -166,7 +166,7 @@ class MAFSizerModel extends BaseModel
|
|
|
166
166
|
/**
|
|
167
167
|
* The MAF Integration Configuration for this MAF Sizer
|
|
168
168
|
*
|
|
169
|
-
* @type {?{points: {stopBatchRequired: number}, enabled: boolean, sizerNumber: number, dumpSizerName: string, statSizerName: string}}
|
|
169
|
+
* @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}}
|
|
170
170
|
* @public
|
|
171
171
|
*/
|
|
172
172
|
this.mafIntegration = null;
|
|
@@ -1198,6 +1198,69 @@ class MAFSizerModel extends BaseModel
|
|
|
1198
1198
|
{
|
|
1199
1199
|
pointsObject.stopBatchRequired = 0;
|
|
1200
1200
|
}
|
|
1201
|
+
|
|
1202
|
+
if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationStatus' in jsonObject['mafIntegration'].points)
|
|
1203
|
+
{
|
|
1204
|
+
pointsObject.orpheaDatabaseCommunicationStatus = (function(){
|
|
1205
|
+
if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus === null)
|
|
1206
|
+
{
|
|
1207
|
+
return null;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus !== 'number')
|
|
1211
|
+
{
|
|
1212
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus));
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationStatus);
|
|
1216
|
+
}());
|
|
1217
|
+
}
|
|
1218
|
+
else
|
|
1219
|
+
{
|
|
1220
|
+
pointsObject.orpheaDatabaseCommunicationStatus = null;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationLastCheck' in jsonObject['mafIntegration'].points)
|
|
1224
|
+
{
|
|
1225
|
+
pointsObject.orpheaDatabaseCommunicationLastCheck = (function(){
|
|
1226
|
+
if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck === null)
|
|
1227
|
+
{
|
|
1228
|
+
return null;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck !== 'number')
|
|
1232
|
+
{
|
|
1233
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck));
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastCheck);
|
|
1237
|
+
}());
|
|
1238
|
+
}
|
|
1239
|
+
else
|
|
1240
|
+
{
|
|
1241
|
+
pointsObject.orpheaDatabaseCommunicationLastCheck = null;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
if(typeof jsonObject['mafIntegration'].points === 'object' && 'orpheaDatabaseCommunicationLastError' in jsonObject['mafIntegration'].points)
|
|
1245
|
+
{
|
|
1246
|
+
pointsObject.orpheaDatabaseCommunicationLastError = (function(){
|
|
1247
|
+
if(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError === null)
|
|
1248
|
+
{
|
|
1249
|
+
return null;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
if(typeof jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError !== 'number')
|
|
1253
|
+
{
|
|
1254
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError)) ? Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) : Math.floor(Number(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError));
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
return Number.isInteger(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError) ? jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError : Math.floor(jsonObject['mafIntegration'].points.orpheaDatabaseCommunicationLastError);
|
|
1258
|
+
}());
|
|
1259
|
+
}
|
|
1260
|
+
else
|
|
1261
|
+
{
|
|
1262
|
+
pointsObject.orpheaDatabaseCommunicationLastError = null;
|
|
1263
|
+
}
|
|
1201
1264
|
|
|
1202
1265
|
return pointsObject;
|
|
1203
1266
|
}());
|
|
@@ -1209,6 +1272,12 @@ class MAFSizerModel extends BaseModel
|
|
|
1209
1272
|
|
|
1210
1273
|
pointsDefaultValue.stopBatchRequired = 0;
|
|
1211
1274
|
|
|
1275
|
+
pointsDefaultValue.orpheaDatabaseCommunicationStatus = null;
|
|
1276
|
+
|
|
1277
|
+
pointsDefaultValue.orpheaDatabaseCommunicationLastCheck = null;
|
|
1278
|
+
|
|
1279
|
+
pointsDefaultValue.orpheaDatabaseCommunicationLastError = null;
|
|
1280
|
+
|
|
1212
1281
|
return pointsDefaultValue;
|
|
1213
1282
|
}());
|
|
1214
1283
|
}
|
|
@@ -1234,10 +1303,10 @@ class MAFSizerModel extends BaseModel
|
|
|
1234
1303
|
mafIntegrationObject.sizerNumber = (function(){
|
|
1235
1304
|
if(typeof jsonObject['mafIntegration'].sizerNumber !== 'number')
|
|
1236
1305
|
{
|
|
1237
|
-
return Number(jsonObject['mafIntegration'].sizerNumber);
|
|
1306
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].sizerNumber)) ? Number(jsonObject['mafIntegration'].sizerNumber) : Math.floor(Number(jsonObject['mafIntegration'].sizerNumber));
|
|
1238
1307
|
}
|
|
1239
1308
|
|
|
1240
|
-
return jsonObject['mafIntegration'].sizerNumber;
|
|
1309
|
+
return Number.isInteger(jsonObject['mafIntegration'].sizerNumber) ? jsonObject['mafIntegration'].sizerNumber : Math.floor(jsonObject['mafIntegration'].sizerNumber);
|
|
1241
1310
|
}());
|
|
1242
1311
|
}
|
|
1243
1312
|
else
|
|
@@ -1276,6 +1345,111 @@ class MAFSizerModel extends BaseModel
|
|
|
1276
1345
|
{
|
|
1277
1346
|
mafIntegrationObject.statSizerName = "";
|
|
1278
1347
|
}
|
|
1348
|
+
|
|
1349
|
+
if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseHost' in jsonObject['mafIntegration'])
|
|
1350
|
+
{
|
|
1351
|
+
mafIntegrationObject.orpheaDatabaseHost = (function(){
|
|
1352
|
+
if(jsonObject['mafIntegration'].orpheaDatabaseHost === null)
|
|
1353
|
+
{
|
|
1354
|
+
return null;
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if(typeof jsonObject['mafIntegration'].orpheaDatabaseHost !== 'string')
|
|
1358
|
+
{
|
|
1359
|
+
return String(jsonObject['mafIntegration'].orpheaDatabaseHost);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
return jsonObject['mafIntegration'].orpheaDatabaseHost;
|
|
1363
|
+
}());
|
|
1364
|
+
}
|
|
1365
|
+
else
|
|
1366
|
+
{
|
|
1367
|
+
mafIntegrationObject.orpheaDatabaseHost = null;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabasePort' in jsonObject['mafIntegration'])
|
|
1371
|
+
{
|
|
1372
|
+
mafIntegrationObject.orpheaDatabasePort = (function(){
|
|
1373
|
+
if(jsonObject['mafIntegration'].orpheaDatabasePort === null)
|
|
1374
|
+
{
|
|
1375
|
+
return null;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
if(typeof jsonObject['mafIntegration'].orpheaDatabasePort !== 'number')
|
|
1379
|
+
{
|
|
1380
|
+
return Number.isInteger(Number(jsonObject['mafIntegration'].orpheaDatabasePort)) ? Number(jsonObject['mafIntegration'].orpheaDatabasePort) : Math.floor(Number(jsonObject['mafIntegration'].orpheaDatabasePort));
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
return Number.isInteger(jsonObject['mafIntegration'].orpheaDatabasePort) ? jsonObject['mafIntegration'].orpheaDatabasePort : Math.floor(jsonObject['mafIntegration'].orpheaDatabasePort);
|
|
1384
|
+
}());
|
|
1385
|
+
}
|
|
1386
|
+
else
|
|
1387
|
+
{
|
|
1388
|
+
mafIntegrationObject.orpheaDatabasePort = null;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseUsername' in jsonObject['mafIntegration'])
|
|
1392
|
+
{
|
|
1393
|
+
mafIntegrationObject.orpheaDatabaseUsername = (function(){
|
|
1394
|
+
if(jsonObject['mafIntegration'].orpheaDatabaseUsername === null)
|
|
1395
|
+
{
|
|
1396
|
+
return null;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
if(typeof jsonObject['mafIntegration'].orpheaDatabaseUsername !== 'string')
|
|
1400
|
+
{
|
|
1401
|
+
return String(jsonObject['mafIntegration'].orpheaDatabaseUsername);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
return jsonObject['mafIntegration'].orpheaDatabaseUsername;
|
|
1405
|
+
}());
|
|
1406
|
+
}
|
|
1407
|
+
else
|
|
1408
|
+
{
|
|
1409
|
+
mafIntegrationObject.orpheaDatabaseUsername = null;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabasePassword' in jsonObject['mafIntegration'])
|
|
1413
|
+
{
|
|
1414
|
+
mafIntegrationObject.orpheaDatabasePassword = (function(){
|
|
1415
|
+
if(jsonObject['mafIntegration'].orpheaDatabasePassword === null)
|
|
1416
|
+
{
|
|
1417
|
+
return null;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
if(typeof jsonObject['mafIntegration'].orpheaDatabasePassword !== 'string')
|
|
1421
|
+
{
|
|
1422
|
+
return String(jsonObject['mafIntegration'].orpheaDatabasePassword);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
return jsonObject['mafIntegration'].orpheaDatabasePassword;
|
|
1426
|
+
}());
|
|
1427
|
+
}
|
|
1428
|
+
else
|
|
1429
|
+
{
|
|
1430
|
+
mafIntegrationObject.orpheaDatabasePassword = null;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
if(typeof jsonObject['mafIntegration'] === 'object' && 'orpheaDatabaseEnabled' in jsonObject['mafIntegration'])
|
|
1434
|
+
{
|
|
1435
|
+
mafIntegrationObject.orpheaDatabaseEnabled = (function(){
|
|
1436
|
+
if(jsonObject['mafIntegration'].orpheaDatabaseEnabled === null)
|
|
1437
|
+
{
|
|
1438
|
+
return null;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
if(typeof jsonObject['mafIntegration'].orpheaDatabaseEnabled !== 'boolean')
|
|
1442
|
+
{
|
|
1443
|
+
return Boolean(jsonObject['mafIntegration'].orpheaDatabaseEnabled);
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
return jsonObject['mafIntegration'].orpheaDatabaseEnabled;
|
|
1447
|
+
}());
|
|
1448
|
+
}
|
|
1449
|
+
else
|
|
1450
|
+
{
|
|
1451
|
+
mafIntegrationObject.orpheaDatabaseEnabled = null;
|
|
1452
|
+
}
|
|
1279
1453
|
|
|
1280
1454
|
return mafIntegrationObject;
|
|
1281
1455
|
}());
|
|
@@ -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;
|