@ricado/api-client 2.5.8 → 2.5.9

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
@@ -16876,6 +16876,18 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
16876
16876
  * @return {Promise<PackrunController.PackrunInfeedReport>}
16877
16877
  */
16878
16878
  static getInfeedReport(siteId: number, id: string): Promise<PackrunController.PackrunInfeedReport>;
16879
+ /**
16880
+ * Retrive a Packrun's Latest Summary Data [GET /packhouse/sites/{siteId}/packruns/{id}/latestSummaryData]
16881
+ *
16882
+ * Retrieves the Latest Summary Data for a Packrun
16883
+ *
16884
+ * @static
16885
+ * @public
16886
+ * @param {number} siteId The Site ID
16887
+ * @param {string} id The Packrun ID
16888
+ * @return {Promise<PackrunController.PackrunLatestSummaryData>}
16889
+ */
16890
+ static getLatestSummaryData(siteId: number, id: string): Promise<PackrunController.PackrunLatestSummaryData>;
16879
16891
  /**
16880
16892
  * List all Packruns [GET /packhouse/sites/{siteId}/packruns]
16881
16893
  *
@@ -17481,6 +17493,129 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
17481
17493
  */
17482
17494
  softSortEventsNotAccurateReason: string | null;
17483
17495
  };
17496
+ /**
17497
+ * A **FruitSizeProfileItem** Type
17498
+ */
17499
+ export type FruitSizeProfileItem = {
17500
+ /**
17501
+ * The Fruit Size
17502
+ */
17503
+ fruitSize: string;
17504
+ /**
17505
+ * The Fruit Count
17506
+ */
17507
+ fruitCount: number;
17508
+ /**
17509
+ * The Percentage of Total Fruit for this Fruit Size
17510
+ */
17511
+ percentage: number;
17512
+ };
17513
+ /**
17514
+ * A **ClassTypePercentageItem** Type
17515
+ */
17516
+ export type ClassTypePercentageItem = {
17517
+ /**
17518
+ * The Class Type
17519
+ */
17520
+ classType: string;
17521
+ /**
17522
+ * The Class Type Name
17523
+ */
17524
+ name: string;
17525
+ /**
17526
+ * The Percentage of Total Weight for this Class Type
17527
+ */
17528
+ percentage: number;
17529
+ };
17530
+ /**
17531
+ * A **PackrunLatestSummaryData** Type
17532
+ */
17533
+ export type PackrunLatestSummaryData = {
17534
+ /**
17535
+ * The Packrun ID
17536
+ */
17537
+ id: string;
17538
+ /**
17539
+ * The Packrun Name
17540
+ */
17541
+ name: string;
17542
+ /**
17543
+ * When the Packrun was Created
17544
+ */
17545
+ createdTimestamp: Date;
17546
+ /**
17547
+ * The Grower Name
17548
+ */
17549
+ growerName: string;
17550
+ /**
17551
+ * The Grower Code
17552
+ */
17553
+ growerCode: string;
17554
+ /**
17555
+ * The Maturity Area
17556
+ */
17557
+ maturityArea: string | null;
17558
+ /**
17559
+ * When the Packrun was Started
17560
+ */
17561
+ startTimestamp: Date | null;
17562
+ /**
17563
+ * When the Packrun was Finished
17564
+ */
17565
+ finishTimestamp: Date | null;
17566
+ /**
17567
+ * The Variety for the Packrun
17568
+ */
17569
+ variety: VarietyItem;
17570
+ /**
17571
+ * The Growing Method for the Packrun
17572
+ */
17573
+ growingMethod: GrowingMethodItem;
17574
+ /**
17575
+ * The Packing Line ID
17576
+ */
17577
+ packingLineId: string;
17578
+ /**
17579
+ * The Packing Line Name
17580
+ */
17581
+ packingLineName: string;
17582
+ /**
17583
+ * The Status of this Packrun
17584
+ */
17585
+ status: string;
17586
+ /**
17587
+ * The Number of Bins Allocated for the Packrun
17588
+ */
17589
+ allocatedBins: number;
17590
+ /**
17591
+ * The Number of Bins Tipped for the Packrun
17592
+ */
17593
+ tippedBins: number;
17594
+ /**
17595
+ * An Array of Class 1 Fruit Profiles by Size for the Packrun
17596
+ */
17597
+ class1FruitSizeProfile: FruitSizeProfileItem[];
17598
+ /**
17599
+ * The Total Class 1 Trays for this Packrun
17600
+ */
17601
+ class1TotalTrays: number;
17602
+ /**
17603
+ * The Number of Class 1 Trays per Bin for this Packrun
17604
+ */
17605
+ class1TraysPerBin: number;
17606
+ /**
17607
+ * The Average Class 1 Fruit Size for this Packrun
17608
+ */
17609
+ class1AverageFruitSize: number;
17610
+ /**
17611
+ * The Total Class 2 Trays for this Packrun
17612
+ */
17613
+ class2TotalTrays: number;
17614
+ /**
17615
+ * An Array of Class Types and their Percentages for this Packrun
17616
+ */
17617
+ classTypes: ClassTypePercentageItem[];
17618
+ };
17484
17619
  /**
17485
17620
  * A **TimeBatch** Type
17486
17621
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.5.8",
3
+ "version": "2.5.9",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"