@ricado/api-client 2.7.3 → 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/lib/index.d.ts CHANGED
@@ -13867,6 +13867,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/FreshQualityPackru
13867
13867
  * An Array of Class 1 R600 Samples
13868
13868
  */
13869
13869
  class1R600Samples?: Sample[] | undefined;
13870
+ /**
13871
+ * An Array of Class 2 R600 Samples
13872
+ */
13873
+ class2R600Samples?: Sample[] | undefined;
13870
13874
  /**
13871
13875
  * An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
13872
13876
  */
@@ -13896,6 +13900,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/FreshQualityPackru
13896
13900
  * An Array of Class 1 R600 Samples
13897
13901
  */
13898
13902
  class1R600Samples?: Sample[] | undefined;
13903
+ /**
13904
+ * An Array of Class 2 R600 Samples
13905
+ */
13906
+ class2R600Samples?: Sample[] | undefined;
13899
13907
  /**
13900
13908
  * An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
13901
13909
  */
@@ -16678,6 +16686,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
16678
16686
  points: {
16679
16687
  currentShiftId: number;
16680
16688
  currentShiftStatus: number;
16689
+ currentShiftBreakActive: number | null;
16681
16690
  createNewDayShiftRequest: number;
16682
16691
  createNewNightShiftRequest: number;
16683
16692
  startCurrentShiftRequest: number;
@@ -17110,6 +17119,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
17110
17119
  currentPackrunMaturityAreaSamples: number | null;
17111
17120
  currentPackrunCustomSamples: number | null;
17112
17121
  sampleTypes: number | null;
17122
+ currentPackrunClass2Samples: number | null;
17113
17123
  };
17114
17124
  /**
17115
17125
  * Whether the FreshQuality Integration is Enabled on this Packing Line
@@ -17131,6 +17141,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
17131
17141
  * An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
17132
17142
  */
17133
17143
  sampleTypeIds: number[];
17144
+ /**
17145
+ * An Array of FreshQuality Sample Type IDs that are used for Class 2 R600 on this Packing Line
17146
+ */
17147
+ class2SampleTypeIds: number[];
17134
17148
  /**
17135
17149
  * An Array of FreshQuality Sample Type IDs that are used for Reject Analysis on this Packing Line
17136
17150
  */
@@ -17456,10 +17470,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17456
17470
  * The Number of Allocated Bins for this Packrun
17457
17471
  */
17458
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;
17459
17477
  /**
17460
17478
  * The Time Batches for this Packrun
17461
17479
  */
17462
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;
17463
17489
  /**
17464
17490
  * The FreshPack Grader ID associated with this Packrun
17465
17491
  */
@@ -17472,6 +17498,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17472
17498
  * The FreshPack Produce Code associated with this Packrun
17473
17499
  */
17474
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;
17475
17509
  };
17476
17510
  /**
17477
17511
  * The Update Data for a Packrun
@@ -17517,10 +17551,22 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17517
17551
  * The Number of Allocated Bins for this Packrun
17518
17552
  */
17519
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;
17520
17558
  /**
17521
17559
  * The Time Batches for this Packrun
17522
17560
  */
17523
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;
17524
17570
  /**
17525
17571
  * The FreshPack Grader ID associated with this Packrun
17526
17572
  */
@@ -17533,6 +17579,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17533
17579
  * The FreshPack Produce Code associated with this Packrun
17534
17580
  */
17535
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;
17536
17590
  };
17537
17591
  /**
17538
17592
  * A **UserAccount** Type
@@ -28061,6 +28115,23 @@ declare module '@ricado/api-client/Models/Packhouse/Site/FreshQualityPackrunSumm
28061
28115
  fruitCount: number;
28062
28116
  }[];
28063
28117
  }[];
28118
+ /**
28119
+ * An Array of Class 2 R600 Samples
28120
+ *
28121
+ * @type {Array<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array<{name: string, group: string, fruitCount: number}>}>}
28122
+ * @public
28123
+ */
28124
+ class2R600Samples: {
28125
+ fruitSize: string;
28126
+ packType: string;
28127
+ timestamp: Date;
28128
+ fruitCount: number;
28129
+ defects: {
28130
+ name: string;
28131
+ group: string;
28132
+ fruitCount: number;
28133
+ }[];
28134
+ }[];
28064
28135
  /**
28065
28136
  * An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
28066
28137
  *
@@ -29295,13 +29366,14 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
29295
29366
  /**
29296
29367
  * The Optional Shift Management Object for this Packing Line
29297
29368
  *
29298
- * @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}}
29299
29370
  * @public
29300
29371
  */
29301
29372
  shiftManagement: {
29302
29373
  points: {
29303
29374
  currentShiftId: number;
29304
29375
  currentShiftStatus: number;
29376
+ currentShiftBreakActive: number | null;
29305
29377
  createNewDayShiftRequest: number;
29306
29378
  createNewNightShiftRequest: number;
29307
29379
  startCurrentShiftRequest: number;
@@ -29522,7 +29594,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
29522
29594
  /**
29523
29595
  * The FreshQuality Integration Configuration for this Packing Line
29524
29596
  *
29525
- * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, currentPackrunMaturityAreaSamples: ?number, currentPackrunCustomSamples: ?number, sampleTypes: ?number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[], maturityAreaSampleTypeIds: number[], customSampleTypeIds: number[]}}
29597
+ * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, currentPackrunMaturityAreaSamples: ?number, currentPackrunCustomSamples: ?number, sampleTypes: ?number, currentPackrunClass2Samples: ?number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], class2SampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[], maturityAreaSampleTypeIds: number[], customSampleTypeIds: number[]}}
29526
29598
  * @public
29527
29599
  */
29528
29600
  freshQualityIntegration: {
@@ -29541,12 +29613,14 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
29541
29613
  currentPackrunMaturityAreaSamples: number | null;
29542
29614
  currentPackrunCustomSamples: number | null;
29543
29615
  sampleTypes: number | null;
29616
+ currentPackrunClass2Samples: number | null;
29544
29617
  };
29545
29618
  enabled: boolean;
29546
29619
  username: string;
29547
29620
  password: string;
29548
29621
  apiBaseUrl: string;
29549
29622
  sampleTypeIds: number[];
29623
+ class2SampleTypeIds: number[];
29550
29624
  rejectAnalysisSampleTypeIds: number[];
29551
29625
  maturityAreaSampleTypeIds: number[];
29552
29626
  customSampleTypeIds: number[];
@@ -29689,6 +29763,13 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
29689
29763
  * @public
29690
29764
  */
29691
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;
29692
29773
  /**
29693
29774
  * The Time Batches for this Packrun
29694
29775
  *
@@ -29699,6 +29780,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
29699
29780
  id: string;
29700
29781
  timestamp: Date;
29701
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;
29702
29797
  /**
29703
29798
  * The FreshPack Grader ID associated with this Packrun
29704
29799
  *
@@ -29720,6 +29815,20 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
29720
29815
  * @public
29721
29816
  */
29722
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;
29723
29832
  /**
29724
29833
  * Whether the Packrun has been deleted
29725
29834
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -972,6 +972,7 @@ export default FreshQualityPackrunSummaryController;
972
972
  * @property {Date} [createdTimestamp] When this Summary was Created
973
973
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
974
974
  * @property {Array<FreshQualityPackrunSummaryController.Sample>} [class1R600Samples] An Array of Class 1 R600 Samples
975
+ * @property {Array<FreshQualityPackrunSummaryController.Sample>} [class2R600Samples] An Array of Class 2 R600 Samples
975
976
  * @property {Array<FreshQualityPackrunSummaryController.CategorySummary>} [categorySummaries] An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
976
977
  * @property {number} [totalFruitSampled] The Total Number of Fruit Sampled in this Packrun Summary
977
978
  * @memberof Controllers.Packhouse.Site
@@ -985,6 +986,7 @@ export default FreshQualityPackrunSummaryController;
985
986
  * @property {Date} [createdTimestamp] When this Summary was Created
986
987
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
987
988
  * @property {Array<FreshQualityPackrunSummaryController.Sample>} [class1R600Samples] An Array of Class 1 R600 Samples
989
+ * @property {Array<FreshQualityPackrunSummaryController.Sample>} [class2R600Samples] An Array of Class 2 R600 Samples
988
990
  * @property {Array<FreshQualityPackrunSummaryController.CategorySummary>} [categorySummaries] An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
989
991
  * @property {number} [totalFruitSampled] The Total Number of Fruit Sampled in this Packrun Summary
990
992
  * @memberof Controllers.Packhouse.Site
@@ -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
@@ -645,12 +645,13 @@ export default PackingLineController;
645
645
  * A **FreshQualityIntegration** Type
646
646
  *
647
647
  * @typedef {Object} PackingLineController.FreshQualityIntegration
648
- * @property {{currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, currentPackrunMaturityAreaSamples: ?number, currentPackrunCustomSamples: ?number, sampleTypes: ?number}} points The Points used for this FreshQuality Integration
648
+ * @property {{currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, currentPackrunMaturityAreaSamples: ?number, currentPackrunCustomSamples: ?number, sampleTypes: ?number, currentPackrunClass2Samples: ?number}} points The Points used for this FreshQuality Integration
649
649
  * @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
650
650
  * @property {string} username Username for Authenticating with the FreshQuality API
651
651
  * @property {string} password Password for Authenticating with the FreshQuality API
652
652
  * @property {string} apiBaseUrl Base URL of the FreshQuality API
653
653
  * @property {number[]} sampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
654
+ * @property {number[]} class2SampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Class 2 R600 on this Packing Line
654
655
  * @property {number[]} rejectAnalysisSampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Reject Analysis on this Packing Line
655
656
  * @property {number[]} maturityAreaSampleTypeIds An Array of FreshQuality Sample Type IDs that should be fetched for Maturity Area Samples on this Packing Line
656
657
  * @property {number[]} customSampleTypeIds An Array of FreshQuality Sample Type IDs that should be fetched for Custom Samples on 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
 
@@ -73,6 +73,14 @@ class FreshQualityPackrunSummaryModel extends BaseModel
73
73
  */
74
74
  this.class1R600Samples = [];
75
75
 
76
+ /**
77
+ * An Array of Class 2 R600 Samples
78
+ *
79
+ * @type {Array<{fruitSize: string, packType: string, timestamp: Date, fruitCount: number, defects: Array<{name: string, group: string, fruitCount: number}>}>}
80
+ * @public
81
+ */
82
+ this.class2R600Samples = [];
83
+
76
84
  /**
77
85
  * An Array of Defect Category Summaries (e.g. Minor Packing Defects, Softs)
78
86
  *
@@ -360,6 +368,158 @@ class FreshQualityPackrunSummaryModel extends BaseModel
360
368
  }());
361
369
  }
362
370
 
371
+ if('class2R600Samples' in jsonObject)
372
+ {
373
+ model.class2R600Samples = (function(){
374
+ if(Array.isArray(jsonObject['class2R600Samples']) !== true)
375
+ {
376
+ return [];
377
+ }
378
+
379
+ return jsonObject['class2R600Samples'].map((class2R600SamplesItem) => {
380
+ return (function(){
381
+ let class2R600SamplesItemObject = {};
382
+
383
+ if(typeof class2R600SamplesItem === 'object' && 'fruitSize' in class2R600SamplesItem)
384
+ {
385
+ class2R600SamplesItemObject.fruitSize = (function(){
386
+ if(typeof class2R600SamplesItem.fruitSize !== 'string')
387
+ {
388
+ return String(class2R600SamplesItem.fruitSize);
389
+ }
390
+
391
+ return class2R600SamplesItem.fruitSize;
392
+ }());
393
+ }
394
+ else
395
+ {
396
+ class2R600SamplesItemObject.fruitSize = "";
397
+ }
398
+
399
+ if(typeof class2R600SamplesItem === 'object' && 'packType' in class2R600SamplesItem)
400
+ {
401
+ class2R600SamplesItemObject.packType = (function(){
402
+ if(typeof class2R600SamplesItem.packType !== 'string')
403
+ {
404
+ return String(class2R600SamplesItem.packType);
405
+ }
406
+
407
+ return class2R600SamplesItem.packType;
408
+ }());
409
+ }
410
+ else
411
+ {
412
+ class2R600SamplesItemObject.packType = "";
413
+ }
414
+
415
+ if(typeof class2R600SamplesItem === 'object' && 'timestamp' in class2R600SamplesItem)
416
+ {
417
+ class2R600SamplesItemObject.timestamp = (function(){
418
+ if(typeof class2R600SamplesItem.timestamp !== 'string')
419
+ {
420
+ return new Date(String(class2R600SamplesItem.timestamp));
421
+ }
422
+
423
+ return new Date(class2R600SamplesItem.timestamp);
424
+ }());
425
+ }
426
+ else
427
+ {
428
+ class2R600SamplesItemObject.timestamp = new Date();
429
+ }
430
+
431
+ if(typeof class2R600SamplesItem === 'object' && 'fruitCount' in class2R600SamplesItem)
432
+ {
433
+ class2R600SamplesItemObject.fruitCount = (function(){
434
+ if(typeof class2R600SamplesItem.fruitCount !== 'number')
435
+ {
436
+ return Number.isInteger(Number(class2R600SamplesItem.fruitCount)) ? Number(class2R600SamplesItem.fruitCount) : Math.floor(Number(class2R600SamplesItem.fruitCount));
437
+ }
438
+
439
+ return Number.isInteger(class2R600SamplesItem.fruitCount) ? class2R600SamplesItem.fruitCount : Math.floor(class2R600SamplesItem.fruitCount);
440
+ }());
441
+ }
442
+ else
443
+ {
444
+ class2R600SamplesItemObject.fruitCount = 0;
445
+ }
446
+
447
+ if(typeof class2R600SamplesItem === 'object' && 'defects' in class2R600SamplesItem)
448
+ {
449
+ class2R600SamplesItemObject.defects = (function(){
450
+ if(Array.isArray(class2R600SamplesItem.defects) !== true)
451
+ {
452
+ return [];
453
+ }
454
+
455
+ return class2R600SamplesItem.defects.map((defectsItem) => {
456
+ return (function(){
457
+ let defectsItemObject = {};
458
+
459
+ if(typeof defectsItem === 'object' && 'name' in defectsItem)
460
+ {
461
+ defectsItemObject.name = (function(){
462
+ if(typeof defectsItem.name !== 'string')
463
+ {
464
+ return String(defectsItem.name);
465
+ }
466
+
467
+ return defectsItem.name;
468
+ }());
469
+ }
470
+ else
471
+ {
472
+ defectsItemObject.name = "";
473
+ }
474
+
475
+ if(typeof defectsItem === 'object' && 'group' in defectsItem)
476
+ {
477
+ defectsItemObject.group = (function(){
478
+ if(typeof defectsItem.group !== 'string')
479
+ {
480
+ return String(defectsItem.group);
481
+ }
482
+
483
+ return defectsItem.group;
484
+ }());
485
+ }
486
+ else
487
+ {
488
+ defectsItemObject.group = "";
489
+ }
490
+
491
+ if(typeof defectsItem === 'object' && 'fruitCount' in defectsItem)
492
+ {
493
+ defectsItemObject.fruitCount = (function(){
494
+ if(typeof defectsItem.fruitCount !== 'number')
495
+ {
496
+ return Number.isInteger(Number(defectsItem.fruitCount)) ? Number(defectsItem.fruitCount) : Math.floor(Number(defectsItem.fruitCount));
497
+ }
498
+
499
+ return Number.isInteger(defectsItem.fruitCount) ? defectsItem.fruitCount : Math.floor(defectsItem.fruitCount);
500
+ }());
501
+ }
502
+ else
503
+ {
504
+ defectsItemObject.fruitCount = 0;
505
+ }
506
+
507
+ return defectsItemObject;
508
+ }());
509
+ });
510
+ }());
511
+ }
512
+ else
513
+ {
514
+ class2R600SamplesItemObject.defects = [];
515
+ }
516
+
517
+ return class2R600SamplesItemObject;
518
+ }());
519
+ });
520
+ }());
521
+ }
522
+
363
523
  if('categorySummaries' in jsonObject)
364
524
  {
365
525
  model.categorySummaries = (function(){