@ricado/api-client 2.3.10 → 2.3.13

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
@@ -2167,8 +2167,10 @@ declare module '@ricado/api-client/Controllers/UserAccountController' {
2167
2167
  declare module '@ricado/api-client/Controllers/Packhouse' {
2168
2168
  export default Packhouse;
2169
2169
  namespace Packhouse {
2170
+ export { ProductionDataExportController };
2170
2171
  export { Site };
2171
2172
  }
2173
+ import ProductionDataExportController from "@ricado/api-client/Controllers/Packhouse/ProductionDataExportController";
2172
2174
  import Site from "@ricado/api-client/Controllers/Packhouse/Site";
2173
2175
  }
2174
2176
 
@@ -3128,6 +3130,1123 @@ declare module '@ricado/api-client/Models/Site' {
3128
3130
  import TemporaryObjectModel from "@ricado/api-client/Models/Site/TemporaryObjectModel";
3129
3131
  }
3130
3132
 
3133
+ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportController' {
3134
+ export default ProductionDataExportController;
3135
+ /**
3136
+ * The Production Data Export Controller Class
3137
+ *
3138
+ * @class
3139
+ */
3140
+ class ProductionDataExportController {
3141
+ /**
3142
+ * Retrieve Production Data [GET /packhouse/production-data-export]
3143
+ *
3144
+ * Request a Production Data Export in the default JSON Format
3145
+ *
3146
+ * @static
3147
+ * @public
3148
+ * @return {Promise<ProductionDataExportController.ProductionData>}
3149
+ */
3150
+ static jsonExport(): Promise<ProductionDataExportController.ProductionData>;
3151
+ /**
3152
+ * Retrieve Production Data as an Excel Spreadsheet [GET /packhouse/production-data-export/excel]
3153
+ *
3154
+ * Request a Production Data Export in the form of an Excel Spreadsheet
3155
+ *
3156
+ * @static
3157
+ * @public
3158
+ * @return {Promise<boolean>}
3159
+ */
3160
+ static excelExport(): Promise<boolean>;
3161
+ /**
3162
+ * Retrieve Production Data as a CSV File [GET /packhouse/production-data-export/csv]
3163
+ *
3164
+ * Request a Production Data Export in the form of a CSV File
3165
+ *
3166
+ * @static
3167
+ * @public
3168
+ * @return {Promise<boolean>}
3169
+ */
3170
+ static csvExport(): Promise<boolean>;
3171
+ }
3172
+ namespace ProductionDataExportController {
3173
+ /**
3174
+ * A **PackrunData** Type
3175
+ */
3176
+ export type PackrunData = {
3177
+ /**
3178
+ * ID of the Site where this Packrun occurred
3179
+ */
3180
+ siteId: number;
3181
+ /**
3182
+ * Name of the Site where this Packrun occurred
3183
+ */
3184
+ siteName: string;
3185
+ /**
3186
+ * ID of the Packing Line where this Packrun occurred
3187
+ */
3188
+ packingLineId: string;
3189
+ /**
3190
+ * Name of the Packing Line where this Packrun occurred
3191
+ */
3192
+ packingLineName: string;
3193
+ /**
3194
+ * ISO Week when this Packrun occurred
3195
+ */
3196
+ isoWeek: number;
3197
+ /**
3198
+ * Timestamp when this Packrun was Started
3199
+ */
3200
+ startTimestamp: Date;
3201
+ /**
3202
+ * Timestamp when this Packrun was Finished
3203
+ */
3204
+ finishTimestamp: Date | null;
3205
+ /**
3206
+ * ID of the Packrun
3207
+ */
3208
+ packrunId: string;
3209
+ /**
3210
+ * Name of the Packrun
3211
+ */
3212
+ packrunName: string;
3213
+ /**
3214
+ * ID of the Variety associated with this Packrun
3215
+ */
3216
+ varietyId: string;
3217
+ /**
3218
+ * Code of the Variety associated with this Packrun
3219
+ */
3220
+ varietyCode: string;
3221
+ /**
3222
+ * ID of the Growing Method associated with this Packrun
3223
+ */
3224
+ growingMethodId: string;
3225
+ /**
3226
+ * Code of the Growing Method associated with this Packrun
3227
+ */
3228
+ growingMethodCode: string;
3229
+ /**
3230
+ * Grower Code of the Packrun
3231
+ */
3232
+ growerCode: string;
3233
+ /**
3234
+ * Grower Name of the Packrun
3235
+ */
3236
+ growerName: string;
3237
+ /**
3238
+ * Maturity Area of the Packrun
3239
+ */
3240
+ maturityArea: string;
3241
+ /**
3242
+ * Number of Bins Allocated to this Packrun
3243
+ */
3244
+ allocatedBins: number;
3245
+ /**
3246
+ * Number of Bins Tipped during this Packrun
3247
+ */
3248
+ totalBinsTipped: number;
3249
+ /**
3250
+ * Total Net Fruit Weight Tipped during this Packrun
3251
+ */
3252
+ totalNetWeightTipped: number;
3253
+ /**
3254
+ * Average Net Fruit Weight per Bin for this Packrun
3255
+ */
3256
+ averageNetWeightPerBin: number;
3257
+ /**
3258
+ * Average Bins Tipped per Hour during this Packrun
3259
+ */
3260
+ averageBinsTippedPerHour: number;
3261
+ /**
3262
+ * Average Time Taken in Seconds to Tip a Bin during this Packrun
3263
+ */
3264
+ averageTimePerTippedBin: number;
3265
+ /**
3266
+ * Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
3267
+ */
3268
+ averageBinTipWeightThroughput: number;
3269
+ /**
3270
+ * Number of Soft-Sort Events per Bin Tipped during this Packrun
3271
+ */
3272
+ softSortEventsPerBin: number;
3273
+ /**
3274
+ * Total Number of Soft-Sort Events that occurred during this Packrun
3275
+ */
3276
+ totalSoftSortEventsCount: number;
3277
+ /**
3278
+ * Average Duration in Seconds of a Soft-Sort Event during this Packrun
3279
+ */
3280
+ averageSoftSortEventsDuration: number;
3281
+ /**
3282
+ * Total Duration in Seconds of all Soft-Sort Events that occurred during this Packrun
3283
+ */
3284
+ totalSoftSortEventsDuration: number;
3285
+ /**
3286
+ * Whether the Soft-Sort Events for this Packrun were Accurate according to the Line Manager
3287
+ */
3288
+ softSortEventsAccurate: boolean | null;
3289
+ /**
3290
+ * A Reason for why the Soft-Sort Events were not Accurate
3291
+ */
3292
+ softSortEventsNotAccurateReason: string | null;
3293
+ /**
3294
+ * Class 1 Percentage for this Packrun
3295
+ */
3296
+ class1Percentage: number;
3297
+ /**
3298
+ * Class 2 Percentage for this Packrun
3299
+ */
3300
+ class2Percentage: number;
3301
+ /**
3302
+ * Class 3 Percentage for this Packrun
3303
+ */
3304
+ class3Percentage: number;
3305
+ /**
3306
+ * Non-Standard Supply Percentage for this Packrun
3307
+ */
3308
+ nssPercentage: number;
3309
+ /**
3310
+ * Undersize Percentage for this Packrun
3311
+ */
3312
+ undersizePercentage: number;
3313
+ /**
3314
+ * Culled / Low Dry Matter Percentage for this Packrun
3315
+ */
3316
+ cdmPercentage: number;
3317
+ /**
3318
+ * Waste Percentage for this Packrun
3319
+ */
3320
+ wastePercentage: number;
3321
+ /**
3322
+ * Soft-Sort Percentage for this Packrun
3323
+ */
3324
+ softSortPercentage: number;
3325
+ /**
3326
+ * Total Non-Class 1 Percentage for this Packrun
3327
+ */
3328
+ totalNonClass1Percentage: number;
3329
+ /**
3330
+ * Total Class 1 Weight in Kilograms for this Packrun
3331
+ */
3332
+ class1Weight: number;
3333
+ /**
3334
+ * Total Class 2 Weight in Kilograms for this Packrun
3335
+ */
3336
+ class2Weight: number;
3337
+ /**
3338
+ * Total Class 3 Weight in Kilograms for this Packrun
3339
+ */
3340
+ class3Weight: number;
3341
+ /**
3342
+ * Total Non-Standard Supply Weight in Kilograms for this Packrun
3343
+ */
3344
+ nssWeight: number;
3345
+ /**
3346
+ * Total Undersize Weight in Kilograms for this Packrun
3347
+ */
3348
+ undersizeWeight: number;
3349
+ /**
3350
+ * Total Culled / Low Dry Matter Weight in Kilograms for this Packrun
3351
+ */
3352
+ cdmWeight: number;
3353
+ /**
3354
+ * Total Waste Weight in Kilograms for this Packrun
3355
+ */
3356
+ wasteWeight: number;
3357
+ /**
3358
+ * Total Soft-Sort Weight in Kilograms for this Packrun
3359
+ */
3360
+ softSortWeight: number;
3361
+ /**
3362
+ * Total Non-Class 1 Weight in Kilograms for this Packrun
3363
+ */
3364
+ totalNonClass1Weight: number;
3365
+ /**
3366
+ * Total Class 1 Tray Equivalents Produced during this Packrun
3367
+ */
3368
+ totalClass1Trays: number;
3369
+ /**
3370
+ * Total Class 2 Tray Equivalents Produced during this Packrun
3371
+ */
3372
+ totalClass2Trays: number;
3373
+ /**
3374
+ * Total Number of Class 1 Fruit that were Packed during this Packrun
3375
+ */
3376
+ totalClass1FruitCount: number;
3377
+ /**
3378
+ * Total Number of Class 2 Fruit that were Packed during this Packrun
3379
+ */
3380
+ totalClass2FruitCount: number;
3381
+ /**
3382
+ * Average Class 1 Tray Equivalent Weight in Kilograms for this Packrun
3383
+ */
3384
+ averageClass1TrayWeight: number;
3385
+ /**
3386
+ * Average Class 2 Tray Equivalent Weight in Kilograms for this Packrun
3387
+ */
3388
+ averageClass2TrayWeight: number;
3389
+ /**
3390
+ * Average Class 1 Trays Produced per Bin Tipped for this Packrun
3391
+ */
3392
+ class1TraysPerBin: number;
3393
+ /**
3394
+ * Average Fruit Size for this Packrun
3395
+ */
3396
+ averageFruitSize: number;
3397
+ /**
3398
+ * Average Fruit Weight in Grams for this Packrun
3399
+ */
3400
+ averageFruitWeight: number;
3401
+ /**
3402
+ * Total Number of Reject Bins Weighed during this Packrun
3403
+ */
3404
+ totalRejectBinsCount: number;
3405
+ /**
3406
+ * Total Net Fruit Weight in Kilograms captured in Reject Bins during this Packrun
3407
+ */
3408
+ totalRejectBinsNetWeight: number;
3409
+ /**
3410
+ * Total Number of R600 Class 1 Fruit Sampled by Quality Control during this Packrun
3411
+ */
3412
+ qualityR600TotalFruitSampled: number | null;
3413
+ /**
3414
+ * Percentage of R600 Class 1 Fruit Sampled by Quality Control during this Packrun
3415
+ */
3416
+ qualityR600FruitSampledPercentage: number | null;
3417
+ /**
3418
+ * Average R600 Class 1 Fruit Size that was Sampled by Quality Control during this Packrun
3419
+ */
3420
+ qualityR600AverageSampledFruitSize: number | null;
3421
+ /**
3422
+ * Total Number of Class 1 R600 Samples Collected by Quality Control during this Packrun
3423
+ */
3424
+ qualityR600TotalSamplesCount: number | null;
3425
+ /**
3426
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Packrun
3427
+ */
3428
+ qualityR600IdealSamplesTarget: number | null;
3429
+ /**
3430
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Packrun
3431
+ */
3432
+ qualityR600IdealSamplesActual: number | null;
3433
+ /**
3434
+ * Percentage of Minor Packing Defects found in Class 1 R600 Samples during this Packrun
3435
+ */
3436
+ qualityR600MinorPackingDefects: number | null;
3437
+ /**
3438
+ * Percentage of Major Packing Defects found in Class 1 R600 Samples during this Packrun
3439
+ */
3440
+ qualityR600MajorPackingDefects: number | null;
3441
+ /**
3442
+ * Percentage of Soft Fruit found in Class 1 R600 Samples during this Packrun
3443
+ */
3444
+ qualityR600Softs: number | null;
3445
+ /**
3446
+ * Percentage of Cut (Flesh Damaged) Fruit found in Class 1 R600 Samples during this Packrun
3447
+ */
3448
+ qualityR600Cuts: number | null;
3449
+ /**
3450
+ * Percentage of Rotten Fruit found in Class 1 R600 Samples during this Packrun
3451
+ */
3452
+ qualityR600Rots: number | null;
3453
+ /**
3454
+ * Percentage of Export Fruit found in Class 2 during this Packrun
3455
+ */
3456
+ qualityExportFruitInClass2: number | null;
3457
+ /**
3458
+ * Percentage of Export Fruit found in Class 3 during this Packrun
3459
+ */
3460
+ qualityExportFruitInClass3: number | null;
3461
+ /**
3462
+ * Percentage of Export Fruit found in Waste during this Packrun
3463
+ */
3464
+ qualityExportFruitInWaste: number | null;
3465
+ /**
3466
+ * An Array of Shift IDs this Packrun is associated with
3467
+ */
3468
+ shiftIds: string[];
3469
+ /**
3470
+ * An Array of Shift Types that were encountered during this Packrun
3471
+ */
3472
+ shiftTypes: string[];
3473
+ /**
3474
+ * An Array of Line Managers who were involved with this Packrun
3475
+ */
3476
+ lineManagerNames: string[];
3477
+ /**
3478
+ * An Array of Quality Managers who were involved with this Packrun
3479
+ */
3480
+ qualityManagerNames: string[];
3481
+ /**
3482
+ * Total Shift Production Time in Seconds for this Packrun
3483
+ */
3484
+ totalProductionTime: number;
3485
+ /**
3486
+ * Total Shift Scheduled Break Time in Seconds for this Packrun
3487
+ */
3488
+ totalScheduledBreakTime: number;
3489
+ /**
3490
+ * Total Shift Downtime in Seconds for this Packrun
3491
+ */
3492
+ totalDowntime: number;
3493
+ /**
3494
+ * Number of Downtime Events that occurred during this Packrun
3495
+ */
3496
+ downtimeEventsCount: number;
3497
+ /**
3498
+ * Average Duration in Seconds of a Downtime Event during this Packrun
3499
+ */
3500
+ downtimeEventsAverageDuration: number;
3501
+ /**
3502
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Packrun
3503
+ */
3504
+ class1ManningTarget: number | null;
3505
+ /**
3506
+ * Average Number of People working on the Packing Line (excluding Class 2) during this Packrun
3507
+ */
3508
+ averageClass1Manning: number | null;
3509
+ /**
3510
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Packrun
3511
+ */
3512
+ class1ManningPercentage: number | null;
3513
+ /**
3514
+ * Target Number of People working in the Class 2 area of the Packing Line during this Packrun
3515
+ */
3516
+ class2ManningTarget: number | null;
3517
+ /**
3518
+ * Average Number of People working in the Class 2 area of the Packing Line during this Packrun
3519
+ */
3520
+ averageClass2Manning: number | null;
3521
+ /**
3522
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Packrun
3523
+ */
3524
+ class2ManningPercentage: number | null;
3525
+ /**
3526
+ * Target Number of People working on the Packing Line during this Packrun
3527
+ */
3528
+ totalManningTarget: number | null;
3529
+ /**
3530
+ * Average Number of People working on the Packing Line during this Packrun
3531
+ */
3532
+ averageTotalManning: number | null;
3533
+ /**
3534
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Packrun
3535
+ */
3536
+ totalManningPercentage: number | null;
3537
+ /**
3538
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Packrun
3539
+ */
3540
+ costPerManningUnitHour: number | null;
3541
+ /**
3542
+ * Total Hours Worked during this Packrun. Directly relates to Production Time
3543
+ */
3544
+ totalHoursWorked: number;
3545
+ /**
3546
+ * Total Hours Worked excluding Downtime during this Packrun. Directly relates to Production Time less Downtime
3547
+ */
3548
+ totalHoursWorkedExcludingDowntime: number;
3549
+ /**
3550
+ * Total Hours Paid during this Packrun. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
3551
+ */
3552
+ totalHoursPaid: number;
3553
+ /**
3554
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Packrun
3555
+ */
3556
+ class1TotalManningCost: number | null;
3557
+ /**
3558
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Packrun
3559
+ */
3560
+ class2TotalManningCost: number | null;
3561
+ /**
3562
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Packrun
3563
+ */
3564
+ class1DowntimeManningCost: number | null;
3565
+ /**
3566
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Packrun
3567
+ */
3568
+ class2DowntimeManningCost: number | null;
3569
+ /**
3570
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Packrun
3571
+ */
3572
+ class1CostPerTrayTarget: number | null;
3573
+ /**
3574
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Packrun
3575
+ */
3576
+ class1CostPerTrayActual: number | null;
3577
+ /**
3578
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Packrun
3579
+ */
3580
+ class2CostPerTrayActual: number | null;
3581
+ /**
3582
+ * Average Class 1 Tray Equivalents Produced per Hour during this Packrun
3583
+ */
3584
+ class1TraysPerHour: number;
3585
+ /**
3586
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Packrun
3587
+ */
3588
+ class1TraysPerHourExcludingDowntime: number;
3589
+ /**
3590
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Packrun
3591
+ */
3592
+ class1TraysPerHourExcludingDowntimeTarget: number;
3593
+ /**
3594
+ * Average Class 1 Tray Equivalents Produced per Person per Hour during this Packrun
3595
+ */
3596
+ class1TraysPerManHour: number | null;
3597
+ /**
3598
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Packrun
3599
+ */
3600
+ class1TraysPerManHourExcludingDowntime: number | null;
3601
+ /**
3602
+ * Average Class 2 Tray Equivalents Produced per Hour during this Packrun
3603
+ */
3604
+ class2TraysPerHour: number;
3605
+ /**
3606
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Packrun
3607
+ */
3608
+ class2TraysPerHourExcludingDowntime: number;
3609
+ /**
3610
+ * Average Class 2 Tray Equivalents Produced per Person per Hour during this Packrun
3611
+ */
3612
+ class2TraysPerManHour: number | null;
3613
+ /**
3614
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Packrun
3615
+ */
3616
+ class2TraysPerManHourExcludingDowntime: number | null;
3617
+ /**
3618
+ * Target Percentage of Layered Trays that should be Produced for this Packrun
3619
+ */
3620
+ class1LayeredPercentageTarget: number | null;
3621
+ /**
3622
+ * Actual Percentage of Layered Trays that were Produced during this Packrun
3623
+ */
3624
+ class1LayeredPercentage: number | null;
3625
+ /**
3626
+ * Actual Percentage of Bulk Packs that were Produced during this Packrun
3627
+ */
3628
+ class1BulkPercentage: number | null;
3629
+ };
3630
+ /**
3631
+ * A **ShiftData** Type
3632
+ */
3633
+ export type ShiftData = {
3634
+ /**
3635
+ * ID of the Site where this Shift took place
3636
+ */
3637
+ siteId: number;
3638
+ /**
3639
+ * Name of the Site where this Shift took place
3640
+ */
3641
+ siteName: string;
3642
+ /**
3643
+ * ID of the Packing Line where this Shift took place
3644
+ */
3645
+ packingLineId: string;
3646
+ /**
3647
+ * Name of the Packing Line where this Shift took place
3648
+ */
3649
+ packingLineName: string;
3650
+ /**
3651
+ * ID of the Shift
3652
+ */
3653
+ shiftId: string;
3654
+ /**
3655
+ * Type of the Shift
3656
+ */
3657
+ shiftType: string;
3658
+ /**
3659
+ * ISO Week when this Shift occurred
3660
+ */
3661
+ isoWeek: number;
3662
+ /**
3663
+ * Timestamp when this Shift was Started
3664
+ */
3665
+ startTimestamp: Date;
3666
+ /**
3667
+ * Timestamp when this Shift was Finished
3668
+ */
3669
+ finishTimestamp: Date | null;
3670
+ /**
3671
+ * Name of the Line Manager who ran this Shift
3672
+ */
3673
+ lineManagerName: string | null;
3674
+ /**
3675
+ * Name of the Quality Manager who ran this Shift
3676
+ */
3677
+ qualityManagerName: string | null;
3678
+ /**
3679
+ * An Array of Variety IDs that were Packed during this Shift
3680
+ */
3681
+ varietyIds: string[];
3682
+ /**
3683
+ * An Array of Variety Codes that were Packed during this Shift
3684
+ */
3685
+ varietyCodes: string[];
3686
+ /**
3687
+ * An Array of Growing Method IDs that were Packed during this Shift
3688
+ */
3689
+ growingMethodIds: string[];
3690
+ /**
3691
+ * An Array of Growing Method Codes that were Packed during this Shift
3692
+ */
3693
+ growingMethodCodes: string[];
3694
+ /**
3695
+ * Target Number of Bins to Tip during this Shift
3696
+ */
3697
+ binsTippedTarget: number;
3698
+ /**
3699
+ * Total Number of Bins Tipped during this Shift
3700
+ */
3701
+ totalBinsTipped: number;
3702
+ /**
3703
+ * Number of Bins Tipped per Hour during this Shift
3704
+ */
3705
+ binsTippedPerHour: number;
3706
+ /**
3707
+ * Number of Bins Tipped per Hour excluding Downtime during this Shift
3708
+ */
3709
+ binsTippedPerHourExcludingDowntime: number;
3710
+ /**
3711
+ * Total Production Time in Seconds for this Shift
3712
+ */
3713
+ totalProductionTime: number;
3714
+ /**
3715
+ * Total Scheduled Break Time in Seconds for this Shift
3716
+ */
3717
+ totalScheduledBreakTime: number;
3718
+ /**
3719
+ * Total Downtime in Seconds for this Shift
3720
+ */
3721
+ totalDowntime: number;
3722
+ /**
3723
+ * Number of Downtime Events that occurred during this Shift
3724
+ */
3725
+ downtimeEventsCount: number;
3726
+ /**
3727
+ * Average Duration in Seconds of a Downtime Event during this Shift
3728
+ */
3729
+ downtimeEventsAverageDuration: number;
3730
+ /**
3731
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Shift
3732
+ */
3733
+ class1ManningTarget: number | null;
3734
+ /**
3735
+ * Average Number of People working on the Packing Line (excluding Class 2) during this Shift
3736
+ */
3737
+ averageClass1Manning: number | null;
3738
+ /**
3739
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Shift
3740
+ */
3741
+ class1ManningPercentage: number | null;
3742
+ /**
3743
+ * Target Number of People working in the Class 2 area of the Packing Line during this Shift
3744
+ */
3745
+ class2ManningTarget: number | null;
3746
+ /**
3747
+ * Average Number of People working in the Class 2 area of the Packing Line during this Shift
3748
+ */
3749
+ averageClass2Manning: number | null;
3750
+ /**
3751
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Shift
3752
+ */
3753
+ class2ManningPercentage: number | null;
3754
+ /**
3755
+ * Target Number of People working on the Packing Line during this Shift
3756
+ */
3757
+ totalManningTarget: number | null;
3758
+ /**
3759
+ * Average Number of People working on the Packing Line during this Shift
3760
+ */
3761
+ averageTotalManning: number | null;
3762
+ /**
3763
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Shift
3764
+ */
3765
+ totalManningPercentage: number | null;
3766
+ /**
3767
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Shift
3768
+ */
3769
+ costPerManningUnitHour: number | null;
3770
+ /**
3771
+ * Total Hours Worked during this Shift. Directly relates to Production Time
3772
+ */
3773
+ totalHoursWorked: number;
3774
+ /**
3775
+ * Total Hours Worked excluding Downtime during this Shift. Directly relates to Production Time less Downtime
3776
+ */
3777
+ totalHoursWorkedExcludingDowntime: number;
3778
+ /**
3779
+ * Total Hours Paid during this Shift. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
3780
+ */
3781
+ totalHoursPaid: number;
3782
+ /**
3783
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Shift
3784
+ */
3785
+ class1TotalManningCost: number | null;
3786
+ /**
3787
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Shift
3788
+ */
3789
+ class2TotalManningCost: number | null;
3790
+ /**
3791
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Shift
3792
+ */
3793
+ class1DowntimeManningCost: number | null;
3794
+ /**
3795
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Shift
3796
+ */
3797
+ class2DowntimeManningCost: number | null;
3798
+ /**
3799
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Shift
3800
+ */
3801
+ class1CostPerTrayTarget: number | null;
3802
+ /**
3803
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Shift
3804
+ */
3805
+ class1CostPerTrayActual: number | null;
3806
+ /**
3807
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Shift
3808
+ */
3809
+ class2CostPerTrayActual: number | null;
3810
+ /**
3811
+ * Total Class 1 Tray Equivalents Produced during this Shift
3812
+ */
3813
+ totalClass1Trays: number;
3814
+ /**
3815
+ * Total Class 2 Tray Equivalents Produced during this Shift
3816
+ */
3817
+ totalClass2Trays: number;
3818
+ /**
3819
+ * Average Class 1 Tray Equivalents Produced per Hour during this Shift
3820
+ */
3821
+ class1TraysPerHour: number;
3822
+ /**
3823
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Shift
3824
+ */
3825
+ class1TraysPerHourExcludingDowntime: number;
3826
+ /**
3827
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Shift
3828
+ */
3829
+ class1TraysPerHourExcludingDowntimeTarget: number;
3830
+ /**
3831
+ * Average Class 1 Tray Equivalents Produced per Person per Hour during this Shift
3832
+ */
3833
+ class1TraysPerManHour: number | null;
3834
+ /**
3835
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Shift
3836
+ */
3837
+ class1TraysPerManHourExcludingDowntime: number | null;
3838
+ /**
3839
+ * Average Class 2 Tray Equivalents Produced per Hour during this Shift
3840
+ */
3841
+ class2TraysPerHour: number;
3842
+ /**
3843
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Shift
3844
+ */
3845
+ class2TraysPerHourExcludingDowntime: number;
3846
+ /**
3847
+ * Average Class 2 Tray Equivalents Produced per Person per Hour during this Shift
3848
+ */
3849
+ class2TraysPerManHour: number | null;
3850
+ /**
3851
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Shift
3852
+ */
3853
+ class2TraysPerManHourExcludingDowntime: number | null;
3854
+ /**
3855
+ * Target Percentage of Layered Trays that should be Produced for this Shift
3856
+ */
3857
+ class1LayeredPercentageTarget: number | null;
3858
+ /**
3859
+ * Actual Percentage of Layered Trays that were Produced during this Shift
3860
+ */
3861
+ class1LayeredPercentage: number | null;
3862
+ /**
3863
+ * Actual Percentage of Bulk Packs that were Produced during this Shift
3864
+ */
3865
+ class1BulkPercentage: number | null;
3866
+ /**
3867
+ * Average Class 1 Packout Percentage during this Shift
3868
+ */
3869
+ averageClass1Percentage: number | null;
3870
+ /**
3871
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Shift
3872
+ */
3873
+ qualityR600IdealSamplesTarget: number | null;
3874
+ /**
3875
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Shift
3876
+ */
3877
+ qualityR600IdealSamplesActual: number | null;
3878
+ /**
3879
+ * An Optional Satisfaction Rating between 1 and 10 from the Line Manager of this Shift
3880
+ */
3881
+ satisfactionRating: number | null;
3882
+ /**
3883
+ * An Optional Key Celebration the Line Manager observed during this Shift
3884
+ */
3885
+ keyCelebration: number | null;
3886
+ /**
3887
+ * An Optional Key Challenge the Line Manager observed during this Shift
3888
+ */
3889
+ keyChallenge: number | null;
3890
+ };
3891
+ /**
3892
+ * A **ShiftHourlyData** Type
3893
+ */
3894
+ export type ShiftHourlyData = {
3895
+ /**
3896
+ * ID of the Site where this Hour took place
3897
+ */
3898
+ siteId: number;
3899
+ /**
3900
+ * Name of the Site where this Hour took place
3901
+ */
3902
+ siteName: string;
3903
+ /**
3904
+ * ID of the Packing Line where this Hour took place
3905
+ */
3906
+ packingLineId: string;
3907
+ /**
3908
+ * Name of the Packing Line where this Hour took place
3909
+ */
3910
+ packingLineName: string;
3911
+ /**
3912
+ * ID of the Shift associated with this Hourly Entry
3913
+ */
3914
+ shiftId: string;
3915
+ /**
3916
+ * Type of the Shift associated with this Hourly Entry
3917
+ */
3918
+ shiftType: string;
3919
+ /**
3920
+ * ISO Week when this Hour Started
3921
+ */
3922
+ isoWeek: number;
3923
+ /**
3924
+ * Timestamp when this Hour Started
3925
+ */
3926
+ startTimestamp: Date;
3927
+ /**
3928
+ * Timestamp when this Hour Ended
3929
+ */
3930
+ endTimestamp: Date | null;
3931
+ /**
3932
+ * Name of the Line Manager who ran this Hour
3933
+ */
3934
+ lineManagerName: string | null;
3935
+ /**
3936
+ * Name of the Quality Manager who ran this Hour
3937
+ */
3938
+ qualityManagerName: string | null;
3939
+ /**
3940
+ * An Array of Variety IDs that were Packed during this Hour
3941
+ */
3942
+ varietyIds: string[];
3943
+ /**
3944
+ * An Array of Variety Codes that were Packed during this Hour
3945
+ */
3946
+ varietyCodes: string[];
3947
+ /**
3948
+ * An Array of Growing Method IDs that were Packed during this Hour
3949
+ */
3950
+ growingMethodIds: string[];
3951
+ /**
3952
+ * An Array of Growing Method Codes that were Packed during this Hour
3953
+ */
3954
+ growingMethodCodes: string[];
3955
+ /**
3956
+ * Total Number of Bins Tipped during this Hour
3957
+ */
3958
+ totalBinsTipped: number;
3959
+ /**
3960
+ * Total Production Time in Seconds for this Hour
3961
+ */
3962
+ totalProductionTime: number;
3963
+ /**
3964
+ * Total Scheduled Break Time in Seconds for this Hour
3965
+ */
3966
+ totalScheduledBreakTime: number;
3967
+ /**
3968
+ * Total Downtime in Seconds for this Hour
3969
+ */
3970
+ totalDowntime: number;
3971
+ /**
3972
+ * Number of Downtime Events that occurred during this Hour
3973
+ */
3974
+ downtimeEventsCount: number;
3975
+ /**
3976
+ * Average Duration in Seconds of a Downtime Event during this Hour
3977
+ */
3978
+ downtimeEventsAverageDuration: number;
3979
+ /**
3980
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Hour
3981
+ */
3982
+ class1ManningTarget: number | null;
3983
+ /**
3984
+ * Actual Number of People working on the Packing Line (excluding Class 2) during this Hour
3985
+ */
3986
+ class1Manning: number | null;
3987
+ /**
3988
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Hour
3989
+ */
3990
+ class1ManningPercentage: number | null;
3991
+ /**
3992
+ * Target Number of People working in the Class 2 area of the Packing Line during this Hour
3993
+ */
3994
+ class2ManningTarget: number | null;
3995
+ /**
3996
+ * Actual Number of People working in the Class 2 area of the Packing Line during this Hour
3997
+ */
3998
+ class2Manning: number | null;
3999
+ /**
4000
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Hour
4001
+ */
4002
+ class2ManningPercentage: number | null;
4003
+ /**
4004
+ * Target Number of People working on the Packing Line during this Hour
4005
+ */
4006
+ totalManningTarget: number | null;
4007
+ /**
4008
+ * Actual Number of People working on the Packing Line during this Hour
4009
+ */
4010
+ totalManning: number | null;
4011
+ /**
4012
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Hour
4013
+ */
4014
+ totalManningPercentage: number | null;
4015
+ /**
4016
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Hour
4017
+ */
4018
+ costPerManningUnitHour: number | null;
4019
+ /**
4020
+ * Total Hours Worked during this Hour. Directly relates to Production Time
4021
+ */
4022
+ totalMinutesWorked: number;
4023
+ /**
4024
+ * Total Hours Worked excluding Downtime during this Hour. Directly relates to Production Time less Downtime
4025
+ */
4026
+ totalMinutesWorkedExcludingDowntime: number;
4027
+ /**
4028
+ * Total Hours Paid during this Hour. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
4029
+ */
4030
+ totalMinutesPaid: number;
4031
+ /**
4032
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Hour
4033
+ */
4034
+ class1TotalManningCost: number | null;
4035
+ /**
4036
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Hour
4037
+ */
4038
+ class2TotalManningCost: number | null;
4039
+ /**
4040
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Hour
4041
+ */
4042
+ class1DowntimeManningCost: number | null;
4043
+ /**
4044
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Hour
4045
+ */
4046
+ class2DowntimeManningCost: number | null;
4047
+ /**
4048
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Hour
4049
+ */
4050
+ class1CostPerTrayTarget: number | null;
4051
+ /**
4052
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Hour
4053
+ */
4054
+ class1CostPerTrayActual: number | null;
4055
+ /**
4056
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Hour
4057
+ */
4058
+ class2CostPerTrayActual: number | null;
4059
+ /**
4060
+ * Total Class 1 Tray Equivalents Produced during this Hour
4061
+ */
4062
+ totalClass1Trays: number;
4063
+ /**
4064
+ * Total Class 2 Tray Equivalents Produced during this Hour
4065
+ */
4066
+ totalClass2Trays: number;
4067
+ /**
4068
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Hour
4069
+ */
4070
+ class1TraysPerHourExcludingDowntime: number;
4071
+ /**
4072
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Hour
4073
+ */
4074
+ class1TraysPerHourExcludingDowntimeTarget: number;
4075
+ /**
4076
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Hour
4077
+ */
4078
+ class1TraysPerManHourExcludingDowntime: number | null;
4079
+ /**
4080
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Hour
4081
+ */
4082
+ class2TraysPerHourExcludingDowntime: number;
4083
+ /**
4084
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Hour
4085
+ */
4086
+ class2TraysPerManHourExcludingDowntime: number | null;
4087
+ /**
4088
+ * Target Percentage of Layered Trays that should be Produced for this Hour
4089
+ */
4090
+ class1LayeredPercentageTarget: number | null;
4091
+ /**
4092
+ * Actual Percentage of Layered Trays that were Produced during this Hour
4093
+ */
4094
+ class1LayeredPercentage: number | null;
4095
+ /**
4096
+ * Actual Percentage of Bulk Packs that were Produced during this Hour
4097
+ */
4098
+ class1BulkPercentage: number | null;
4099
+ /**
4100
+ * Average Class 1 Packout Percentage during this Hour
4101
+ */
4102
+ averageClass1Percentage: number | null;
4103
+ /**
4104
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
4105
+ */
4106
+ qualityR600IdealSamplesTarget: number | null;
4107
+ /**
4108
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
4109
+ */
4110
+ qualityR600IdealSamplesActual: number | null;
4111
+ };
4112
+ /**
4113
+ * A **DowntimeData** Type
4114
+ */
4115
+ export type DowntimeData = {
4116
+ /**
4117
+ * ID of the Site where this Downtime Event occurred
4118
+ */
4119
+ siteId: number;
4120
+ /**
4121
+ * Name of the Site where this Downtime Event occurred
4122
+ */
4123
+ siteName: string;
4124
+ /**
4125
+ * ID of the Packing Line where this Downtime Event occurred
4126
+ */
4127
+ packingLineId: string;
4128
+ /**
4129
+ * Name of the Packing Line where this Downtime Event occurred
4130
+ */
4131
+ packingLineName: string;
4132
+ /**
4133
+ * ID of the Shift associated with this Downtime Event
4134
+ */
4135
+ shiftId: string;
4136
+ /**
4137
+ * Type of the Shift associated with this Downtime Event
4138
+ */
4139
+ shiftType: string;
4140
+ /**
4141
+ * ISO Week when this Downtime Event occurred
4142
+ */
4143
+ isoWeek: number;
4144
+ /**
4145
+ * Timestamp when this Downtime Event Started
4146
+ */
4147
+ startTimestamp: Date;
4148
+ /**
4149
+ * Timestamp when this Downtime Event Ended
4150
+ */
4151
+ endTimestamp: Date | null;
4152
+ /**
4153
+ * Reason Category for this Downtime Event
4154
+ */
4155
+ reasonCategory: string | null;
4156
+ /**
4157
+ * Reason Tag for this Downtime Event
4158
+ */
4159
+ reasonTag: string | null;
4160
+ /**
4161
+ * An Optional Summary of the Action taken to Remedy this Downtime Event
4162
+ */
4163
+ remedyAction: string | null;
4164
+ };
4165
+ /**
4166
+ * A **PackagingConsumptionData** Type
4167
+ */
4168
+ export type PackagingConsumptionData = {
4169
+ /**
4170
+ * ID of the Site where this Packaging Consumption occurred
4171
+ */
4172
+ siteId: number;
4173
+ /**
4174
+ * Name of the Site where this Packaging Consumption occurred
4175
+ */
4176
+ siteName: string;
4177
+ /**
4178
+ * ID of the Packing Line where this Packaging Consumption occurred
4179
+ */
4180
+ packingLineId: string;
4181
+ /**
4182
+ * Name of the Packing Line where this Packaging Consumption occurred
4183
+ */
4184
+ packingLineName: string;
4185
+ /**
4186
+ * ID of the Packrun associated with this Packaging Consumption
4187
+ */
4188
+ packrunId: string;
4189
+ /**
4190
+ * Name of the Packrun associated with this Packaging Consumption
4191
+ */
4192
+ packrunName: string;
4193
+ /**
4194
+ * ID of the Variety associated with this Packaging Consumption
4195
+ */
4196
+ varietyId: string;
4197
+ /**
4198
+ * Code of the Variety associated with this Packaging Consumption
4199
+ */
4200
+ varietyCode: string;
4201
+ /**
4202
+ * ISO Week when this Packaging Consumption occurred
4203
+ */
4204
+ isoWeek: number;
4205
+ /**
4206
+ * Timestamp when this Packaging Consumption Started
4207
+ */
4208
+ startTimestamp: Date;
4209
+ /**
4210
+ * Timestamp when this Packaging Consumption Ended
4211
+ */
4212
+ endTimestamp: Date | null;
4213
+ /**
4214
+ * Pack Type of the Packaging Consumed
4215
+ */
4216
+ packType: string;
4217
+ /**
4218
+ * Quantity of Packaging Consumed
4219
+ */
4220
+ quantity: number;
4221
+ };
4222
+ /**
4223
+ * A **ProductionData** Type
4224
+ */
4225
+ export type ProductionData = {
4226
+ /**
4227
+ * An Array of Packrun Data
4228
+ */
4229
+ packruns: PackrunData[];
4230
+ /**
4231
+ * An Array of Shift Data
4232
+ */
4233
+ shifts: ShiftData[];
4234
+ /**
4235
+ * An Array of Shift Hourly Entry Data
4236
+ */
4237
+ shiftHourlyEntries: ShiftHourlyData[];
4238
+ /**
4239
+ * An Array of Downtime Event Data
4240
+ */
4241
+ downtimeEvents: DowntimeData[];
4242
+ /**
4243
+ * An Array of Packaging Consumption Data
4244
+ */
4245
+ packagingConsumption: PackagingConsumptionData[];
4246
+ };
4247
+ }
4248
+ }
4249
+
3131
4250
  declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3132
4251
  export default Site;
3133
4252
  namespace Site {
@@ -3158,6 +4277,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3158
4277
  export { ShiftFocusMeetingController };
3159
4278
  export { ShiftHourlyEntryController };
3160
4279
  export { ShiftQualitySummaryController };
4280
+ export { ShiftSummaryReportController };
3161
4281
  export { ShiftTaskController };
3162
4282
  export { SoftSortBeltController };
3163
4283
  export { SoftSortPackrunSummaryController };
@@ -3190,6 +4310,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3190
4310
  import ShiftFocusMeetingController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftFocusMeetingController";
3191
4311
  import ShiftHourlyEntryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryController";
3192
4312
  import ShiftQualitySummaryController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController";
4313
+ import ShiftSummaryReportController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftSummaryReportController";
3193
4314
  import ShiftTaskController from "@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskController";
3194
4315
  import SoftSortBeltController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortBeltController";
3195
4316
  import SoftSortPackrunSummaryController from "@ricado/api-client/Controllers/Packhouse/Site/SoftSortPackrunSummaryController";
@@ -4761,6 +5882,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4761
5882
  export { ShiftHourlyEntryModel };
4762
5883
  export { ShiftModel };
4763
5884
  export { ShiftQualitySummaryModel };
5885
+ export { ShiftSummaryReportModel };
4764
5886
  export { ShiftTaskModel };
4765
5887
  export { SoftSortBeltModel };
4766
5888
  export { SoftSortPackrunSummaryModel };
@@ -4793,6 +5915,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site' {
4793
5915
  import ShiftHourlyEntryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel";
4794
5916
  import ShiftModel from "@ricado/api-client/Models/Packhouse/Site/ShiftModel";
4795
5917
  import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
5918
+ import ShiftSummaryReportModel from "@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel";
4796
5919
  import ShiftTaskModel from "@ricado/api-client/Models/Packhouse/Site/ShiftTaskModel";
4797
5920
  import SoftSortBeltModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortBeltModel";
4798
5921
  import SoftSortPackrunSummaryModel from "@ricado/api-client/Models/Packhouse/Site/SoftSortPackrunSummaryModel";
@@ -12566,78 +13689,223 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryCo
12566
13689
  */
12567
13690
  export type GetAllQueryParameters = {
12568
13691
  /**
12569
- * The Packing Line ID this Hourly Entry is associated with
13692
+ * The Packing Line ID this Hourly Entry is associated with
13693
+ */
13694
+ packingLineId?: string;
13695
+ /**
13696
+ * The Shift ID this Hourly Entry is asssociated with
13697
+ */
13698
+ shiftId?: string;
13699
+ /**
13700
+ * The Primary Issue Category for this Hourly Entry
13701
+ */
13702
+ primaryIssueCategory?: string | null;
13703
+ /**
13704
+ * The Primary Issue Tag for this Hourly Entry
13705
+ */
13706
+ primaryIssueTag?: string | null;
13707
+ /**
13708
+ * The Secondary Issue Category for this Hourly Entry
13709
+ */
13710
+ secondaryIssueCategory?: string | null;
13711
+ /**
13712
+ * The Secondary Issue Tag for this Hourly Entry
13713
+ */
13714
+ secondaryIssueTag?: string | null;
13715
+ /**
13716
+ * The Status of this Hourly Entry
13717
+ */
13718
+ status?: string;
13719
+ /**
13720
+ * Filter by the Timestamp when Hourly Entries were Created. Results Greater than or Equal to Timestamp
13721
+ */
13722
+ createdTimestampBegin?: Date;
13723
+ /**
13724
+ * Filter by the Timestamp when Hourly Entries were Created. Results Less than or Equal to Timestamp
13725
+ */
13726
+ createdTimestampEnd?: Date;
13727
+ /**
13728
+ * Filter by the Start Timestamp of Hourly Entries. Results Greater than or Equal to Timestamp
13729
+ */
13730
+ startTimestampBegin?: Date;
13731
+ /**
13732
+ * Filter by the Start Timestamp of Hourly Entries. Results Less than or Equal to Timestamp
13733
+ */
13734
+ startTimestampEnd?: Date;
13735
+ /**
13736
+ * Filter by the End Timestamp of Hourly Entries. Results Greater than or Equal to Timestamp
13737
+ */
13738
+ endTimestampBegin?: Date;
13739
+ /**
13740
+ * Filter by the End Timestamp of Hourly Entries. Results Less than or Equal to Timestamp
13741
+ */
13742
+ endTimestampEnd?: Date;
13743
+ /**
13744
+ * Filter by the Timestamp when Hourly Entries were last Updated. Results Greater than or Equal to Timestamp
13745
+ */
13746
+ updateTimestampBegin?: Date;
13747
+ /**
13748
+ * Filter by the Timestamp when Hourly Entries were last Updated. Results Less than or Equal to Timestamp
13749
+ */
13750
+ updateTimestampEnd?: Date;
13751
+ };
13752
+ /**
13753
+ * The Create Data for a Shift Hourly Entry
13754
+ */
13755
+ export type CreateData = {
13756
+ /**
13757
+ * The Packing Line ID this Hourly Entry is associated with
13758
+ */
13759
+ packingLineId: string;
13760
+ /**
13761
+ * The Shift ID this Hourly Entry is asssociated with
13762
+ */
13763
+ shiftId?: string;
13764
+ /**
13765
+ * When this Hourly Entry was Created
13766
+ */
13767
+ createdTimestamp?: Date;
13768
+ /**
13769
+ * The Start Timestamp of this Hourly Entry
13770
+ */
13771
+ startTimestamp: Date;
13772
+ /**
13773
+ * The End Timestamp of this Hourly Entry
13774
+ */
13775
+ endTimestamp: Date;
13776
+ /**
13777
+ * The Number of People working in all Areas except Class 2 for this Hour
13778
+ */
13779
+ class1Manning?: number | null;
13780
+ /**
13781
+ * The Number of People working in the Class 2 Area for this Hour
13782
+ */
13783
+ class2Manning?: number | null;
13784
+ /**
13785
+ * The Average Target Number of People that should be working for this Hour
13786
+ */
13787
+ averageManningTarget?: number | null;
13788
+ /**
13789
+ * The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
13790
+ */
13791
+ averageClass1ManningTarget?: number | null;
13792
+ /**
13793
+ * The Average Target Number of People that should be working in the Class 2 Area for this Hour
13794
+ */
13795
+ averageClass2ManningTarget?: number | null;
13796
+ /**
13797
+ * The Average Cost per Person working in all Areas for this Hour
13798
+ */
13799
+ averageCostPerManningUnit?: number | null;
13800
+ /**
13801
+ * The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
13802
+ */
13803
+ layeredTrayPercentage?: number | null;
13804
+ /**
13805
+ * The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
13806
+ */
13807
+ layeredTrayPercentageTarget?: number | null;
13808
+ /**
13809
+ * The Average Class 1 Percentage for this Hour
13810
+ */
13811
+ averageClass1Percentage?: number | null;
13812
+ /**
13813
+ * The Number of Quality R600 Samples that were Ideal for this Hour
13814
+ */
13815
+ qualityR600IdealSamplesPercentage?: number | null;
13816
+ /**
13817
+ * The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
13818
+ */
13819
+ averageQualityR600IdealSamplesTarget?: number | null;
13820
+ /**
13821
+ * An Array of Custom Quality Data Items for this Hour
13822
+ */
13823
+ customQualityData?: CustomQualityDataItem[];
13824
+ /**
13825
+ * The Total Number of Bins Tipped for this Hour
13826
+ */
13827
+ totalBinsTipped?: number;
13828
+ /**
13829
+ * The Target Number of Bins to Tip for this Hour
13830
+ */
13831
+ binsTippedTarget?: number;
13832
+ /**
13833
+ * The Total Downtime for this Hour expressed in Seconds
13834
+ */
13835
+ totalDowntime?: number;
13836
+ /**
13837
+ * The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
12570
13838
  */
12571
- packingLineId?: string;
13839
+ totalProductionTime?: number;
12572
13840
  /**
12573
- * The Shift ID this Hourly Entry is asssociated with
13841
+ * The Total Number of Class 1 Tray Equivalents Packed for this Hour
12574
13842
  */
12575
- shiftId?: string;
13843
+ totalClass1Trays?: number;
12576
13844
  /**
12577
- * The Primary Issue Category for this Hourly Entry
13845
+ * The Total Number of Class 2 Tray Equivalents Packed for this Hour
12578
13846
  */
12579
- primaryIssueCategory?: string | null;
13847
+ totalClass2Trays?: number;
12580
13848
  /**
12581
- * The Primary Issue Tag for this Hourly Entry
13849
+ * The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
12582
13850
  */
12583
- primaryIssueTag?: string | null;
13851
+ class1TraysPerHourExcludingDowntimeTarget?: number;
12584
13852
  /**
12585
- * The Secondary Issue Category for this Hourly Entry
13853
+ * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %) for this Hour
12586
13854
  */
12587
- secondaryIssueCategory?: string | null;
13855
+ averageClass1TraysPerHourAdjustedTarget?: number | null;
12588
13856
  /**
12589
- * The Secondary Issue Tag for this Hourly Entry
13857
+ * The Average Cost per Tray Equivalent for this Hour
12590
13858
  */
12591
- secondaryIssueTag?: string | null;
13859
+ averageCostPerTray?: number | null;
12592
13860
  /**
12593
- * The Status of this Hourly Entry
13861
+ * The Average Cost per Tray Equivalent Target after Adjustment (Class 1 %, Soft-Sort %) for this Hour
12594
13862
  */
12595
- status?: string;
13863
+ averageCostPerTrayTarget?: number | null;
12596
13864
  /**
12597
- * Filter by the Timestamp when Hourly Entries were Created. Results Greater than or Equal to Timestamp
13865
+ * The Primary Issue Category for this Hourly Entry
12598
13866
  */
12599
- createdTimestampBegin?: Date;
13867
+ primaryIssueCategory?: string | null;
12600
13868
  /**
12601
- * Filter by the Timestamp when Hourly Entries were Created. Results Less than or Equal to Timestamp
13869
+ * The Primary Issue Tag for this Hourly Entry
12602
13870
  */
12603
- createdTimestampEnd?: Date;
13871
+ primaryIssueTag?: string | null;
12604
13872
  /**
12605
- * Filter by the Start Timestamp of Hourly Entries. Results Greater than or Equal to Timestamp
13873
+ * A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
12606
13874
  */
12607
- startTimestampBegin?: Date;
13875
+ primaryIssuePercentage?: number | null;
12608
13876
  /**
12609
- * Filter by the Start Timestamp of Hourly Entries. Results Less than or Equal to Timestamp
13877
+ * The Secondary Issue Category for this Hourly Entry
12610
13878
  */
12611
- startTimestampEnd?: Date;
13879
+ secondaryIssueCategory?: string | null;
12612
13880
  /**
12613
- * Filter by the End Timestamp of Hourly Entries. Results Greater than or Equal to Timestamp
13881
+ * The Secondary Issue Tag for this Hourly Entry
12614
13882
  */
12615
- endTimestampBegin?: Date;
13883
+ secondaryIssueTag?: string | null;
12616
13884
  /**
12617
- * Filter by the End Timestamp of Hourly Entries. Results Less than or Equal to Timestamp
13885
+ * A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
12618
13886
  */
12619
- endTimestampEnd?: Date;
13887
+ secondaryIssuePercentage?: number | null;
12620
13888
  /**
12621
- * Filter by the Timestamp when Hourly Entries were last Updated. Results Greater than or Equal to Timestamp
13889
+ * An Optional Focus for the Next Hour
12622
13890
  */
12623
- updateTimestampBegin?: Date;
13891
+ nextHourFocus?: string | null;
12624
13892
  /**
12625
- * Filter by the Timestamp when Hourly Entries were last Updated. Results Less than or Equal to Timestamp
13893
+ * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
12626
13894
  */
12627
- updateTimestampEnd?: Date;
13895
+ satisfactionRating?: number | null;
13896
+ /**
13897
+ * The Status of this Hourly Entry
13898
+ */
13899
+ status?: string;
12628
13900
  };
12629
13901
  /**
12630
- * The Create Data for a Shift Hourly Entry
13902
+ * The Update Data for a Shift Hourly Entry
12631
13903
  */
12632
- export type CreateData = {
13904
+ export type UpdateData = {
12633
13905
  /**
12634
13906
  * The Packing Line ID this Hourly Entry is associated with
12635
13907
  */
12636
- packingLineId: string;
12637
- /**
12638
- * The Shift ID this Hourly Entry is asssociated with
12639
- */
12640
- shiftId?: string;
13908
+ packingLineId?: string;
12641
13909
  /**
12642
13910
  * When this Hourly Entry was Created
12643
13911
  */
@@ -12645,11 +13913,11 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryCo
12645
13913
  /**
12646
13914
  * The Start Timestamp of this Hourly Entry
12647
13915
  */
12648
- startTimestamp: Date;
13916
+ startTimestamp?: Date;
12649
13917
  /**
12650
13918
  * The End Timestamp of this Hourly Entry
12651
13919
  */
12652
- endTimestamp: Date;
13920
+ endTimestamp?: Date;
12653
13921
  /**
12654
13922
  * The Number of People working in all Areas except Class 2 for this Hour
12655
13923
  */
@@ -12776,149 +14044,325 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryCo
12776
14044
  status?: string;
12777
14045
  };
12778
14046
  /**
12779
- * The Update Data for a Shift Hourly Entry
14047
+ * A **UserAccount** Type
14048
+ */
14049
+ export type UserAccount = {
14050
+ /**
14051
+ * The User Account ID
14052
+ */
14053
+ id: string | null;
14054
+ /**
14055
+ * The User's First Name
14056
+ */
14057
+ firstName: string | null;
14058
+ /**
14059
+ * The User's Last Name
14060
+ */
14061
+ lastName: string | null;
14062
+ };
14063
+ /**
14064
+ * A **CommentItem** Type
14065
+ */
14066
+ export type CommentItem = {
14067
+ /**
14068
+ * The Comment ID
14069
+ */
14070
+ id: string;
14071
+ userAccount: UserAccount;
14072
+ /**
14073
+ * The Content of the Comment
14074
+ */
14075
+ content: string | null;
14076
+ /**
14077
+ * When the Comment was Created
14078
+ */
14079
+ createdTimestamp: Date | null;
14080
+ /**
14081
+ * When the Comment was last Updated
14082
+ */
14083
+ updatedTimestamp: Date | null;
14084
+ };
14085
+ /**
14086
+ * A **CustomQualityDataItem** Type
14087
+ */
14088
+ export type CustomQualityDataItem = {
14089
+ /**
14090
+ * The ID of this Custom Quality Data Item
14091
+ */
14092
+ id: string;
14093
+ /**
14094
+ * The Name of this Custom Quality Data Item
14095
+ */
14096
+ name: string;
14097
+ /**
14098
+ * The Display Type for this Custom Quality Data Item
14099
+ */
14100
+ type: string;
14101
+ /**
14102
+ * The Number Value for this Custom Quality Data Item
14103
+ */
14104
+ value: number;
14105
+ /**
14106
+ * The Average Target for this Custom Quality Data Item
14107
+ */
14108
+ averageTarget: number | null;
14109
+ };
14110
+ }
14111
+ import ShiftHourlyEntryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel";
14112
+ }
14113
+
14114
+ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController' {
14115
+ export default ShiftQualitySummaryController;
14116
+ /**
14117
+ * Controller Class for Shift Quality Summaries
14118
+ *
14119
+ * @class
14120
+ */
14121
+ class ShiftQualitySummaryController {
14122
+ /**
14123
+ * Retrieve a Shift Quality Summary [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14124
+ *
14125
+ * @static
14126
+ * @public
14127
+ * @param {number} siteId The Site ID
14128
+ * @param {string} id The Shift Quality Summary ID
14129
+ * @return {Promise<ShiftQualitySummaryModel>}
14130
+ */
14131
+ static getOne(siteId: number, id: string): Promise<ShiftQualitySummaryModel>;
14132
+ /**
14133
+ * Update a Shift Quality Summary [PATCH /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14134
+ *
14135
+ * @static
14136
+ * @public
14137
+ * @param {number} siteId The Site ID
14138
+ * @param {string} id The Shift Quality Summary ID
14139
+ * @param {ShiftQualitySummaryController.UpdateData} updateData The Shift Quality Summary Update Data
14140
+ * @return {Promise<ShiftQualitySummaryModel>}
14141
+ */
14142
+ static update(siteId: number, id: string, updateData: ShiftQualitySummaryController.UpdateData): Promise<ShiftQualitySummaryModel>;
14143
+ /**
14144
+ * Delete a Shift Quality Summary [DELETE /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14145
+ *
14146
+ * @static
14147
+ * @public
14148
+ * @param {number} siteId The Site ID
14149
+ * @param {string} id The Shift Quality Summary ID
14150
+ * @return {Promise<boolean>}
14151
+ */
14152
+ static delete(siteId: number, id: string): Promise<boolean>;
14153
+ /**
14154
+ * Retrieve Comments [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments]
14155
+ *
14156
+ * Retrieves Comments for a Shift Quality Summary
14157
+ *
14158
+ * @static
14159
+ * @public
14160
+ * @param {number} siteId The Site ID
14161
+ * @param {string} id The Shift Quality Summary ID
14162
+ * @return {Promise<Array<ShiftQualitySummaryController.CommentItem>>}
14163
+ */
14164
+ static getComments(siteId: number, id: string): Promise<Array<ShiftQualitySummaryController.CommentItem>>;
14165
+ /**
14166
+ * Create a Comment [POST /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments]
14167
+ *
14168
+ * Create a Comment for a Shift Quality Summary
14169
+ *
14170
+ * @static
14171
+ * @public
14172
+ * @param {number} siteId The Site ID
14173
+ * @param {string} id The Shift Quality Summary ID
14174
+ * @param {string} content The Content of the New Comment
14175
+ * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14176
+ */
14177
+ static createComment(siteId: number, id: string, content: string): Promise<ShiftQualitySummaryController.CommentItem>;
14178
+ /**
14179
+ * Retrieve a Comment [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14180
+ *
14181
+ * Retrieves Comments for a Shift Quality Summary
14182
+ *
14183
+ * @static
14184
+ * @public
14185
+ * @param {number} siteId The Site ID
14186
+ * @param {string} id The Shift Quality Summary ID
14187
+ * @param {string} commentId The Comment ID
14188
+ * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14189
+ */
14190
+ static getOneComment(siteId: number, id: string, commentId: string): Promise<ShiftQualitySummaryController.CommentItem>;
14191
+ /**
14192
+ * Update a Comment [PATCH /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14193
+ *
14194
+ * Update a Comment for a Shift Quality Summary
14195
+ *
14196
+ * @static
14197
+ * @public
14198
+ * @param {number} siteId The Site ID
14199
+ * @param {string} id The Shift Quality Summary ID
14200
+ * @param {string} commentId The Comment ID
14201
+ * @param {string} content The Updated Content for the Comment
14202
+ * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14203
+ */
14204
+ static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<ShiftQualitySummaryController.CommentItem>;
14205
+ /**
14206
+ * Delete a Comment [DELETE /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14207
+ *
14208
+ * Delete a Comment for a Shift Quality Summary
14209
+ *
14210
+ * @static
14211
+ * @public
14212
+ * @param {number} siteId The Site ID
14213
+ * @param {string} id The Shift Quality Summary ID
14214
+ * @param {string} commentId The Comment ID
14215
+ * @return {Promise<boolean>}
14216
+ */
14217
+ static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
14218
+ /**
14219
+ * List all Shift Quality Summaries [GET /packhouse/sites/{siteId}/shift-quality-summaries]
14220
+ *
14221
+ * @static
14222
+ * @public
14223
+ * @param {number} siteId The Site ID
14224
+ * @param {ShiftQualitySummaryController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
14225
+ * @return {Promise<ShiftQualitySummaryModel[]>}
14226
+ */
14227
+ static getAll(siteId: number, queryParameters?: ShiftQualitySummaryController.GetAllQueryParameters | undefined): Promise<ShiftQualitySummaryModel[]>;
14228
+ /**
14229
+ * Create a Shift Quality Summary [POST /packhouse/sites/{siteId}/shift-quality-summaries]
14230
+ *
14231
+ * @static
14232
+ * @public
14233
+ * @param {number} siteId The Site ID
14234
+ * @param {ShiftQualitySummaryController.CreateData} createData The Shift Quality Summary Create Data
14235
+ * @return {Promise<ShiftQualitySummaryModel>}
12780
14236
  */
12781
- export type UpdateData = {
14237
+ static create(siteId: number, createData: ShiftQualitySummaryController.CreateData): Promise<ShiftQualitySummaryModel>;
14238
+ }
14239
+ namespace ShiftQualitySummaryController {
14240
+ /**
14241
+ * The Optional Query Parameters for the getAll Function
14242
+ */
14243
+ export type GetAllQueryParameters = {
12782
14244
  /**
12783
- * The Packing Line ID this Hourly Entry is associated with
14245
+ * The Packing Line ID this Quality Summary is associated with
12784
14246
  */
12785
14247
  packingLineId?: string;
12786
14248
  /**
12787
- * When this Hourly Entry was Created
12788
- */
12789
- createdTimestamp?: Date;
12790
- /**
12791
- * The Start Timestamp of this Hourly Entry
12792
- */
12793
- startTimestamp?: Date;
12794
- /**
12795
- * The End Timestamp of this Hourly Entry
12796
- */
12797
- endTimestamp?: Date;
12798
- /**
12799
- * The Number of People working in all Areas except Class 2 for this Hour
12800
- */
12801
- class1Manning?: number | null;
12802
- /**
12803
- * The Number of People working in the Class 2 Area for this Hour
12804
- */
12805
- class2Manning?: number | null;
12806
- /**
12807
- * The Average Target Number of People that should be working for this Hour
12808
- */
12809
- averageManningTarget?: number | null;
12810
- /**
12811
- * The Average Target Number of People that should be working in all Areas except Class 2 for this Hour
14249
+ * The Shift ID this Quality Summary is asssociated with
12812
14250
  */
12813
- averageClass1ManningTarget?: number | null;
14251
+ shiftId?: string;
12814
14252
  /**
12815
- * The Average Target Number of People that should be working in the Class 2 Area for this Hour
14253
+ * When this Quality Summary was Published
12816
14254
  */
12817
- averageClass2ManningTarget?: number | null;
14255
+ publishTimestamp?: Date | null;
12818
14256
  /**
12819
- * The Average Cost per Person working in all Areas for this Hour
14257
+ * The User ID of the Quality Manager for this Summary
12820
14258
  */
12821
- averageCostPerManningUnit?: number | null;
14259
+ qualityManagerUserId?: string;
12822
14260
  /**
12823
- * The Actual Percentage of Total Tray Equivalents that are Layered for this Hour
14261
+ * The Name of the Quality Manager for this Summary
12824
14262
  */
12825
- layeredTrayPercentage?: number | null;
14263
+ qualityManagerName?: string;
12826
14264
  /**
12827
- * The Target Percentage of Total Tray Equivalents that should be Layered for this Hour
14265
+ * Filter by the Timestamp when Quality Summaries were Created. Results Greater than or Equal to Timestamp
12828
14266
  */
12829
- layeredTrayPercentageTarget?: number | null;
14267
+ createdTimestampBegin?: Date;
12830
14268
  /**
12831
- * The Average Class 1 Percentage for this Hour
14269
+ * Filter by the Timestamp when Quality Summaries were Created. Results Less than or Equal to Timestamp
12832
14270
  */
12833
- averageClass1Percentage?: number | null;
14271
+ createdTimestampEnd?: Date;
12834
14272
  /**
12835
- * The Number of Quality R600 Samples that were Ideal for this Hour
14273
+ * Filter by the Timestamp when Quality Summaries were last Updated. Results Greater than or Equal to Timestamp
12836
14274
  */
12837
- qualityR600IdealSamplesPercentage?: number | null;
14275
+ updateTimestampBegin?: Date;
12838
14276
  /**
12839
- * The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
14277
+ * Filter by the Timestamp when Quality Summaries were last Updated. Results Less than or Equal to Timestamp
12840
14278
  */
12841
- averageQualityR600IdealSamplesTarget?: number | null;
14279
+ updateTimestampEnd?: Date;
14280
+ };
14281
+ /**
14282
+ * The Create Data for a Shift Quality Summary
14283
+ */
14284
+ export type CreateData = {
12842
14285
  /**
12843
- * An Array of Custom Quality Data Items for this Hour
14286
+ * The Packing Line ID this Quality Summary is associated with
12844
14287
  */
12845
- customQualityData?: CustomQualityDataItem[];
14288
+ packingLineId: string;
12846
14289
  /**
12847
- * The Total Number of Bins Tipped for this Hour
14290
+ * The Shift ID this Quality Summary is asssociated with
12848
14291
  */
12849
- totalBinsTipped?: number;
14292
+ shiftId?: string;
12850
14293
  /**
12851
- * The Target Number of Bins to Tip for this Hour
14294
+ * When this Quality Summary was Created
12852
14295
  */
12853
- binsTippedTarget?: number;
14296
+ createdTimestamp?: Date;
12854
14297
  /**
12855
- * The Total Downtime for this Hour expressed in Seconds
14298
+ * When this Quality Summary was Published
12856
14299
  */
12857
- totalDowntime?: number;
14300
+ publishTimestamp?: Date | null;
12858
14301
  /**
12859
- * The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
14302
+ * The User ID of the Quality Manager for this Summary
12860
14303
  */
12861
- totalProductionTime?: number;
14304
+ qualityManagerUserId: string;
12862
14305
  /**
12863
- * The Total Number of Class 1 Tray Equivalents Packed for this Hour
14306
+ * The Name of the Quality Manager for this Summary
12864
14307
  */
12865
- totalClass1Trays?: number;
14308
+ qualityManagerName: string;
12866
14309
  /**
12867
- * The Total Number of Class 2 Tray Equivalents Packed for this Hour
14310
+ * An Array of Accuracy Results for this Summary
12868
14311
  */
12869
- totalClass2Trays?: number;
14312
+ accuracyResults?: AccuracyResult[];
12870
14313
  /**
12871
- * The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
14314
+ * An Array of Audit Results for this Summary
12872
14315
  */
12873
- class1TraysPerHourExcludingDowntimeTarget?: number;
14316
+ auditResults?: AuditResult[];
12874
14317
  /**
12875
- * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %) for this Hour
14318
+ * An Array of Packrun Results for this Summary
12876
14319
  */
12877
- averageClass1TraysPerHourAdjustedTarget?: number | null;
14320
+ packrunResults?: PackrunResult[];
12878
14321
  /**
12879
- * The Average Cost per Tray Equivalent for this Hour
14322
+ * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
12880
14323
  */
12881
- averageCostPerTray?: number | null;
14324
+ satisfactionRating?: number | null;
14325
+ };
14326
+ /**
14327
+ * The Update Data for a Shift Quality Summary
14328
+ */
14329
+ export type UpdateData = {
12882
14330
  /**
12883
- * The Average Cost per Tray Equivalent Target after Adjustment (Class 1 %, Soft-Sort %) for this Hour
14331
+ * The Packing Line ID this Quality Summary is associated with
12884
14332
  */
12885
- averageCostPerTrayTarget?: number | null;
14333
+ packingLineId?: string;
12886
14334
  /**
12887
- * The Primary Issue Category for this Hourly Entry
14335
+ * When this Quality Summary was Created
12888
14336
  */
12889
- primaryIssueCategory?: string | null;
14337
+ createdTimestamp?: Date;
12890
14338
  /**
12891
- * The Primary Issue Tag for this Hourly Entry
14339
+ * When this Quality Summary was Published
12892
14340
  */
12893
- primaryIssueTag?: string | null;
14341
+ publishTimestamp?: Date | null;
12894
14342
  /**
12895
- * A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
14343
+ * The User ID of the Quality Manager for this Summary
12896
14344
  */
12897
- primaryIssuePercentage?: number | null;
14345
+ qualityManagerUserId?: string;
12898
14346
  /**
12899
- * The Secondary Issue Category for this Hourly Entry
14347
+ * The Name of the Quality Manager for this Summary
12900
14348
  */
12901
- secondaryIssueCategory?: string | null;
14349
+ qualityManagerName?: string;
12902
14350
  /**
12903
- * The Secondary Issue Tag for this Hourly Entry
14351
+ * An Array of Accuracy Results for this Summary
12904
14352
  */
12905
- secondaryIssueTag?: string | null;
14353
+ accuracyResults?: AccuracyResult[];
12906
14354
  /**
12907
- * A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
14355
+ * An Array of Audit Results for this Summary
12908
14356
  */
12909
- secondaryIssuePercentage?: number | null;
14357
+ auditResults?: AuditResult[];
12910
14358
  /**
12911
- * An Optional Focus for the Next Hour
14359
+ * An Array of Packrun Results for this Summary
12912
14360
  */
12913
- nextHourFocus?: string | null;
14361
+ packrunResults?: PackrunResult[];
12914
14362
  /**
12915
- * An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
14363
+ * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
12916
14364
  */
12917
14365
  satisfactionRating?: number | null;
12918
- /**
12919
- * The Status of this Hourly Entry
12920
- */
12921
- status?: string;
12922
14366
  };
12923
14367
  /**
12924
14368
  * A **UserAccount** Type
@@ -12960,286 +14404,316 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftHourlyEntryCo
12960
14404
  updatedTimestamp: Date | null;
12961
14405
  };
12962
14406
  /**
12963
- * A **CustomQualityDataItem** Type
14407
+ * A **AccuracyResult** Type
12964
14408
  */
12965
- export type CustomQualityDataItem = {
14409
+ export type AccuracyResult = {
12966
14410
  /**
12967
- * The ID of this Custom Quality Data Item
14411
+ * The Accuracy Type
12968
14412
  */
12969
- id: string;
14413
+ type: string;
12970
14414
  /**
12971
- * The Name of this Custom Quality Data Item
14415
+ * The Accuracy Result Value
12972
14416
  */
12973
- name: string;
14417
+ value: number;
14418
+ };
14419
+ /**
14420
+ * A **AuditResult** Type
14421
+ */
14422
+ export type AuditResult = {
12974
14423
  /**
12975
- * The Display Type for this Custom Quality Data Item
14424
+ * The Audit Type
12976
14425
  */
12977
14426
  type: string;
12978
14427
  /**
12979
- * The Number Value for this Custom Quality Data Item
14428
+ * The Audit Result Value
12980
14429
  */
12981
14430
  value: number;
14431
+ };
14432
+ /**
14433
+ * A **PackrunResult** Type
14434
+ */
14435
+ export type PackrunResult = {
12982
14436
  /**
12983
- * The Average Target for this Custom Quality Data Item
14437
+ * The ID of the associated Packrun
12984
14438
  */
12985
- averageTarget: number | null;
14439
+ packrunId: string;
14440
+ /**
14441
+ * The Name of the associated Packrun
14442
+ */
14443
+ packrunName: string;
14444
+ /**
14445
+ * The R600 Minor Defects Percentage
14446
+ */
14447
+ minorPackingDefects: number;
14448
+ /**
14449
+ * The R600 Major Defects Percentage
14450
+ */
14451
+ majorPackingDefects: number;
14452
+ /**
14453
+ * The R600 Softs Percentage
14454
+ */
14455
+ softs: number;
14456
+ /**
14457
+ * The R600 Cuts (e.g. Flesh Damage) Percentage
14458
+ */
14459
+ cuts: number;
14460
+ /**
14461
+ * The R600 Rots Percentage
14462
+ */
14463
+ rots: number;
14464
+ /**
14465
+ * The Softs Line Average Sample Size
14466
+ */
14467
+ softsLineAverageSampleSize: number | null;
14468
+ /**
14469
+ * The Softs Line Average Value
14470
+ */
14471
+ softsLineAverageValue: number | null;
14472
+ /**
14473
+ * The Percentage of Export (Class 1) Fruit found in Class 2
14474
+ */
14475
+ exportFruitInClass2: number | null;
14476
+ /**
14477
+ * The Percentage of Export (Class 1) Fruit found in Local Market
14478
+ */
14479
+ exportFruitInLocalMarket: number | null;
14480
+ /**
14481
+ * The Percentage of Export (Class 1) Fruit found in Waste
14482
+ */
14483
+ exportFruitInWaste: number | null;
12986
14484
  };
12987
14485
  }
12988
- import ShiftHourlyEntryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftHourlyEntryModel";
14486
+ import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
12989
14487
  }
12990
14488
 
12991
- declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummaryController' {
12992
- export default ShiftQualitySummaryController;
14489
+ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftSummaryReportController' {
14490
+ export default ShiftSummaryReportController;
12993
14491
  /**
12994
- * Controller Class for Shift Quality Summaries
14492
+ * Controller Class for Shift Summary Reports
12995
14493
  *
12996
14494
  * @class
12997
14495
  */
12998
- class ShiftQualitySummaryController {
14496
+ class ShiftSummaryReportController {
12999
14497
  /**
13000
- * Retrieve a Shift Quality Summary [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14498
+ * Retrieve a Shift Summary Report [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13001
14499
  *
13002
14500
  * @static
13003
14501
  * @public
13004
14502
  * @param {number} siteId The Site ID
13005
- * @param {string} id The Shift Quality Summary ID
13006
- * @return {Promise<ShiftQualitySummaryModel>}
14503
+ * @param {string} id The Shift Summary Report ID
14504
+ * @return {Promise<ShiftSummaryReportModel>}
13007
14505
  */
13008
- static getOne(siteId: number, id: string): Promise<ShiftQualitySummaryModel>;
14506
+ static getOne(siteId: number, id: string): Promise<ShiftSummaryReportModel>;
13009
14507
  /**
13010
- * Update a Shift Quality Summary [PATCH /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14508
+ * Update a Shift Summary Report [PATCH /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13011
14509
  *
13012
14510
  * @static
13013
14511
  * @public
13014
- * @param {number} siteId The Site ID
13015
- * @param {string} id The Shift Quality Summary ID
13016
- * @param {ShiftQualitySummaryController.UpdateData} updateData The Shift Quality Summary Update Data
13017
- * @return {Promise<ShiftQualitySummaryModel>}
14512
+ * @param {number} siteId The Site ID
14513
+ * @param {string} id The Shift Summary Report ID
14514
+ * @param {ShiftSummaryReportController.UpdateData} updateData The Shift Summary Report Update Data
14515
+ * @return {Promise<ShiftSummaryReportModel>}
13018
14516
  */
13019
- static update(siteId: number, id: string, updateData: ShiftQualitySummaryController.UpdateData): Promise<ShiftQualitySummaryModel>;
14517
+ static update(siteId: number, id: string, updateData: ShiftSummaryReportController.UpdateData): Promise<ShiftSummaryReportModel>;
13020
14518
  /**
13021
- * Delete a Shift Quality Summary [DELETE /packhouse/sites/{siteId}/shift-quality-summaries/{id}]
14519
+ * Delete a Shift Summary Report [DELETE /packhouse/sites/{siteId}/shift-summary-reports/{id}]
13022
14520
  *
13023
14521
  * @static
13024
14522
  * @public
13025
14523
  * @param {number} siteId The Site ID
13026
- * @param {string} id The Shift Quality Summary ID
14524
+ * @param {string} id The Shift Summary Report ID
13027
14525
  * @return {Promise<boolean>}
13028
14526
  */
13029
14527
  static delete(siteId: number, id: string): Promise<boolean>;
13030
14528
  /**
13031
- * Retrieve Comments [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments]
14529
+ * Retrieve Comments [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments]
13032
14530
  *
13033
- * Retrieves Comments for a Shift Quality Summary
14531
+ * Retrieves Comments for a Shift Summary Report
13034
14532
  *
13035
14533
  * @static
13036
14534
  * @public
13037
14535
  * @param {number} siteId The Site ID
13038
- * @param {string} id The Shift Quality Summary ID
13039
- * @return {Promise<Array<ShiftQualitySummaryController.CommentItem>>}
14536
+ * @param {string} id The Shift Summary Report ID
14537
+ * @return {Promise<Array<ShiftSummaryReportController.CommentItem>>}
13040
14538
  */
13041
- static getComments(siteId: number, id: string): Promise<Array<ShiftQualitySummaryController.CommentItem>>;
14539
+ static getComments(siteId: number, id: string): Promise<Array<ShiftSummaryReportController.CommentItem>>;
13042
14540
  /**
13043
- * Create a Comment [POST /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments]
14541
+ * Create a Comment [POST /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments]
13044
14542
  *
13045
- * Create a Comment for a Shift Quality Summary
14543
+ * Create a Comment for a Shift Summary Report
13046
14544
  *
13047
14545
  * @static
13048
14546
  * @public
13049
14547
  * @param {number} siteId The Site ID
13050
- * @param {string} id The Shift Quality Summary ID
14548
+ * @param {string} id The Shift Summary Report ID
13051
14549
  * @param {string} content The Content of the New Comment
13052
- * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14550
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13053
14551
  */
13054
- static createComment(siteId: number, id: string, content: string): Promise<ShiftQualitySummaryController.CommentItem>;
14552
+ static createComment(siteId: number, id: string, content: string): Promise<ShiftSummaryReportController.CommentItem>;
13055
14553
  /**
13056
- * Retrieve a Comment [GET /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14554
+ * Retrieve a Comment [GET /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13057
14555
  *
13058
- * Retrieves Comments for a Shift Quality Summary
14556
+ * Retrieves Comments for a Shift Summary Report
13059
14557
  *
13060
14558
  * @static
13061
14559
  * @public
13062
14560
  * @param {number} siteId The Site ID
13063
- * @param {string} id The Shift Quality Summary ID
14561
+ * @param {string} id The Shift Summary Report ID
13064
14562
  * @param {string} commentId The Comment ID
13065
- * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14563
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13066
14564
  */
13067
- static getOneComment(siteId: number, id: string, commentId: string): Promise<ShiftQualitySummaryController.CommentItem>;
14565
+ static getOneComment(siteId: number, id: string, commentId: string): Promise<ShiftSummaryReportController.CommentItem>;
13068
14566
  /**
13069
- * Update a Comment [PATCH /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14567
+ * Update a Comment [PATCH /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13070
14568
  *
13071
- * Update a Comment for a Shift Quality Summary
14569
+ * Update a Comment for a Shift Summary Report
13072
14570
  *
13073
14571
  * @static
13074
14572
  * @public
13075
14573
  * @param {number} siteId The Site ID
13076
- * @param {string} id The Shift Quality Summary ID
14574
+ * @param {string} id The Shift Summary Report ID
13077
14575
  * @param {string} commentId The Comment ID
13078
14576
  * @param {string} content The Updated Content for the Comment
13079
- * @return {Promise<ShiftQualitySummaryController.CommentItem>}
14577
+ * @return {Promise<ShiftSummaryReportController.CommentItem>}
13080
14578
  */
13081
- static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<ShiftQualitySummaryController.CommentItem>;
14579
+ static updateOneComment(siteId: number, id: string, commentId: string, content: string): Promise<ShiftSummaryReportController.CommentItem>;
13082
14580
  /**
13083
- * Delete a Comment [DELETE /packhouse/sites/{siteId}/shift-quality-summaries/{id}/comments/{commentId}]
14581
+ * Delete a Comment [DELETE /packhouse/sites/{siteId}/shift-summary-reports/{id}/comments/{commentId}]
13084
14582
  *
13085
- * Delete a Comment for a Shift Quality Summary
14583
+ * Delete a Comment for a Shift Summary Report
13086
14584
  *
13087
14585
  * @static
13088
14586
  * @public
13089
14587
  * @param {number} siteId The Site ID
13090
- * @param {string} id The Shift Quality Summary ID
14588
+ * @param {string} id The Shift Summary Report ID
13091
14589
  * @param {string} commentId The Comment ID
13092
14590
  * @return {Promise<boolean>}
13093
14591
  */
13094
14592
  static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
13095
14593
  /**
13096
- * List all Shift Quality Summaries [GET /packhouse/sites/{siteId}/shift-quality-summaries]
14594
+ * List all Shift Summary Reports [GET /packhouse/sites/{siteId}/shift-summary-reports]
13097
14595
  *
13098
14596
  * @static
13099
14597
  * @public
13100
14598
  * @param {number} siteId The Site ID
13101
- * @param {ShiftQualitySummaryController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
13102
- * @return {Promise<ShiftQualitySummaryModel[]>}
14599
+ * @param {ShiftSummaryReportController.GetAllQueryParameters} [queryParameters] The Optional Query Parameters
14600
+ * @return {Promise<ShiftSummaryReportModel[]>}
13103
14601
  */
13104
- static getAll(siteId: number, queryParameters?: ShiftQualitySummaryController.GetAllQueryParameters | undefined): Promise<ShiftQualitySummaryModel[]>;
14602
+ static getAll(siteId: number, queryParameters?: ShiftSummaryReportController.GetAllQueryParameters | undefined): Promise<ShiftSummaryReportModel[]>;
13105
14603
  /**
13106
- * Create a Shift Quality Summary [POST /packhouse/sites/{siteId}/shift-quality-summaries]
14604
+ * Create a Shift Summary Report [POST /packhouse/sites/{siteId}/shift-summary-reports]
13107
14605
  *
13108
14606
  * @static
13109
14607
  * @public
13110
14608
  * @param {number} siteId The Site ID
13111
- * @param {ShiftQualitySummaryController.CreateData} createData The Shift Quality Summary Create Data
13112
- * @return {Promise<ShiftQualitySummaryModel>}
14609
+ * @param {ShiftSummaryReportController.CreateData} createData The Shift Summary Report Create Data
14610
+ * @return {Promise<ShiftSummaryReportModel>}
13113
14611
  */
13114
- static create(siteId: number, createData: ShiftQualitySummaryController.CreateData): Promise<ShiftQualitySummaryModel>;
14612
+ static create(siteId: number, createData: ShiftSummaryReportController.CreateData): Promise<ShiftSummaryReportModel>;
13115
14613
  }
13116
- namespace ShiftQualitySummaryController {
14614
+ namespace ShiftSummaryReportController {
13117
14615
  /**
13118
14616
  * The Optional Query Parameters for the getAll Function
13119
14617
  */
13120
14618
  export type GetAllQueryParameters = {
13121
14619
  /**
13122
- * The Packing Line ID this Quality Summary is associated with
14620
+ * The Packing Line ID this Summary Report is associated with
13123
14621
  */
13124
14622
  packingLineId?: string;
13125
14623
  /**
13126
- * The Shift ID this Quality Summary is asssociated with
14624
+ * The Shift ID this Summary Report relates to
13127
14625
  */
13128
14626
  shiftId?: string;
13129
14627
  /**
13130
- * When this Quality Summary was Published
13131
- */
13132
- publishTimestamp?: Date | null;
13133
- /**
13134
- * The User ID of the Quality Manager for this Summary
13135
- */
13136
- qualityManagerUserId?: string;
13137
- /**
13138
- * The Name of the Quality Manager for this Summary
14628
+ * Whether the Report is in the process of being Emailed
13139
14629
  */
13140
- qualityManagerName?: string;
14630
+ status?: string;
13141
14631
  /**
13142
- * Filter by the Timestamp when Quality Summaries were Created. Results Greater than or Equal to Timestamp
14632
+ * Filter by the Timestamp when Summary Reports were Created. Results Greater than or Equal to Timestamp
13143
14633
  */
13144
14634
  createdTimestampBegin?: Date;
13145
14635
  /**
13146
- * Filter by the Timestamp when Quality Summaries were Created. Results Less than or Equal to Timestamp
14636
+ * Filter by the Timestamp when Summary Reports were Created. Results Less than or Equal to Timestamp
13147
14637
  */
13148
14638
  createdTimestampEnd?: Date;
13149
14639
  /**
13150
- * Filter by the Timestamp when Quality Summaries were last Updated. Results Greater than or Equal to Timestamp
14640
+ * Filter by the Timestamp when Summary Reports were last Updated. Results Greater than or Equal to Timestamp
13151
14641
  */
13152
14642
  updateTimestampBegin?: Date;
13153
14643
  /**
13154
- * Filter by the Timestamp when Quality Summaries were last Updated. Results Less than or Equal to Timestamp
14644
+ * Filter by the Timestamp when Summary Reports were last Updated. Results Less than or Equal to Timestamp
13155
14645
  */
13156
14646
  updateTimestampEnd?: Date;
13157
14647
  };
13158
14648
  /**
13159
- * The Create Data for a Shift Quality Summary
14649
+ * The Create Data for a Shift Summary Report
13160
14650
  */
13161
14651
  export type CreateData = {
13162
14652
  /**
13163
- * The Packing Line ID this Quality Summary is associated with
14653
+ * The Packing Line ID this Summary Report is associated with
13164
14654
  */
13165
14655
  packingLineId: string;
13166
14656
  /**
13167
- * The Shift ID this Quality Summary is asssociated with
14657
+ * The Shift ID this Summary Report relates to
13168
14658
  */
13169
14659
  shiftId?: string;
13170
14660
  /**
13171
- * When this Quality Summary was Created
14661
+ * When this Summary Report was Created
13172
14662
  */
13173
14663
  createdTimestamp?: Date;
13174
14664
  /**
13175
- * When this Quality Summary was Published
13176
- */
13177
- publishTimestamp?: Date | null;
13178
- /**
13179
- * The User ID of the Quality Manager for this Summary
13180
- */
13181
- qualityManagerUserId: string;
13182
- /**
13183
- * The Name of the Quality Manager for this Summary
14665
+ * The Base64 Encoded PDF Report
13184
14666
  */
13185
- qualityManagerName: string;
14667
+ pdfReportContent?: string | null;
13186
14668
  /**
13187
- * An Array of Accuracy Results for this Summary
14669
+ * The Filename that should be used with the PDF Report
13188
14670
  */
13189
- accuracyResults?: AccuracyResult[];
14671
+ pdfReportFileName: string | null;
13190
14672
  /**
13191
- * An Array of Audit Results for this Summary
14673
+ * The SendGrid API Status indicating progress when sending emails
13192
14674
  */
13193
- auditResults?: AuditResult[];
14675
+ sendGridApi?: SendGridApiResult | null;
13194
14676
  /**
13195
- * An Array of Packrun Results for this Summary
14677
+ * Whether the Report is in the process of being Emailed
13196
14678
  */
13197
- packrunResults?: PackrunResult[];
14679
+ status: string;
13198
14680
  /**
13199
- * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
14681
+ * An Array of Email Contacts that were sent this Summary Report
13200
14682
  */
13201
- satisfactionRating?: number | null;
14683
+ emailContacts?: EmailContact[];
13202
14684
  };
13203
14685
  /**
13204
- * The Update Data for a Shift Quality Summary
14686
+ * The Update Data for a Shift Summary Report
13205
14687
  */
13206
14688
  export type UpdateData = {
13207
14689
  /**
13208
- * The Packing Line ID this Quality Summary is associated with
14690
+ * The Packing Line ID this Summary Report is associated with
13209
14691
  */
13210
14692
  packingLineId?: string;
13211
14693
  /**
13212
- * When this Quality Summary was Created
14694
+ * When this Summary Report was Created
13213
14695
  */
13214
14696
  createdTimestamp?: Date;
13215
14697
  /**
13216
- * When this Quality Summary was Published
13217
- */
13218
- publishTimestamp?: Date | null;
13219
- /**
13220
- * The User ID of the Quality Manager for this Summary
13221
- */
13222
- qualityManagerUserId?: string;
13223
- /**
13224
- * The Name of the Quality Manager for this Summary
14698
+ * The Base64 Encoded PDF Report
13225
14699
  */
13226
- qualityManagerName?: string;
14700
+ pdfReportContent?: string | null;
13227
14701
  /**
13228
- * An Array of Accuracy Results for this Summary
14702
+ * The Filename that should be used with the PDF Report
13229
14703
  */
13230
- accuracyResults?: AccuracyResult[];
14704
+ pdfReportFileName?: string | null;
13231
14705
  /**
13232
- * An Array of Audit Results for this Summary
14706
+ * The SendGrid API Status indicating progress when sending emails
13233
14707
  */
13234
- auditResults?: AuditResult[];
14708
+ sendGridApi?: SendGridApiResult | null;
13235
14709
  /**
13236
- * An Array of Packrun Results for this Summary
14710
+ * Whether the Report is in the process of being Emailed
13237
14711
  */
13238
- packrunResults?: PackrunResult[];
14712
+ status?: string;
13239
14713
  /**
13240
- * An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
14714
+ * An Array of Email Contacts that were sent this Summary Report
13241
14715
  */
13242
- satisfactionRating?: number | null;
14716
+ emailContacts?: EmailContact[];
13243
14717
  };
13244
14718
  /**
13245
14719
  * A **UserAccount** Type
@@ -13281,86 +14755,49 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftQualitySummar
13281
14755
  updatedTimestamp: Date | null;
13282
14756
  };
13283
14757
  /**
13284
- * A **AccuracyResult** Type
14758
+ * A **SendGridApiResult** Type
13285
14759
  */
13286
- export type AccuracyResult = {
14760
+ export type SendGridApiResult = {
13287
14761
  /**
13288
- * The Accuracy Type
14762
+ * The Number of API Requests made to SendGrid
13289
14763
  */
13290
- type: string;
14764
+ requestCount: number;
13291
14765
  /**
13292
- * The Accuracy Result Value
14766
+ * When the latest API Request was made
13293
14767
  */
13294
- value: number;
13295
- };
13296
- /**
13297
- * A **AuditResult** Type
13298
- */
13299
- export type AuditResult = {
14768
+ requestTimestamp: Date | null;
13300
14769
  /**
13301
- * The Audit Type
14770
+ * The HTTP Response Code received from the SendGrid API
13302
14771
  */
13303
- type: string;
14772
+ responseCode: number | null;
13304
14773
  /**
13305
- * The Audit Result Value
14774
+ * The HTTP Response Message received from the SendGrid API
13306
14775
  */
13307
- value: number;
14776
+ responseMessage: string | null;
14777
+ /**
14778
+ * Whether the sending of API Requests has been completed
14779
+ */
14780
+ completed: boolean;
13308
14781
  };
13309
14782
  /**
13310
- * A **PackrunResult** Type
14783
+ * A **EmailContact** Type
13311
14784
  */
13312
- export type PackrunResult = {
13313
- /**
13314
- * The ID of the associated Packrun
13315
- */
13316
- packrunId: string;
13317
- /**
13318
- * The Name of the associated Packrun
13319
- */
13320
- packrunName: string;
13321
- /**
13322
- * The R600 Minor Defects Percentage
13323
- */
13324
- minorPackingDefects: number;
14785
+ export type EmailContact = {
13325
14786
  /**
13326
- * The R600 Major Defects Percentage
13327
- */
13328
- majorPackingDefects: number;
13329
- /**
13330
- * The R600 Softs Percentage
13331
- */
13332
- softs: number;
13333
- /**
13334
- * The R600 Cuts (e.g. Flesh Damage) Percentage
13335
- */
13336
- cuts: number;
13337
- /**
13338
- * The R600 Rots Percentage
13339
- */
13340
- rots: number;
13341
- /**
13342
- * The Softs Line Average Sample Size
13343
- */
13344
- softsLineAverageSampleSize: number | null;
13345
- /**
13346
- * The Softs Line Average Value
13347
- */
13348
- softsLineAverageValue: number | null;
13349
- /**
13350
- * The Percentage of Export (Class 1) Fruit found in Class 2
14787
+ * Email Address of the Contact
13351
14788
  */
13352
- exportFruitInClass2: number | null;
14789
+ email: string;
13353
14790
  /**
13354
- * The Percentage of Export (Class 1) Fruit found in Local Market
14791
+ * First Name of the Contact
13355
14792
  */
13356
- exportFruitInLocalMarket: number | null;
14793
+ firstName: string;
13357
14794
  /**
13358
- * The Percentage of Export (Class 1) Fruit found in Waste
14795
+ * Last Name of the Contact
13359
14796
  */
13360
- exportFruitInWaste: number | null;
14797
+ lastName: string;
13361
14798
  };
13362
14799
  }
13363
- import ShiftQualitySummaryModel from "@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryModel";
14800
+ import ShiftSummaryReportModel from "@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel";
13364
14801
  }
13365
14802
 
13366
14803
  declare module '@ricado/api-client/Controllers/Packhouse/Site/ShiftTaskController' {
@@ -18063,6 +19500,133 @@ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftQualitySummaryMode
18063
19500
  import BaseModel from "@ricado/api-client/Models/BaseModel";
18064
19501
  }
18065
19502
 
19503
+ declare module '@ricado/api-client/Models/Packhouse/Site/ShiftSummaryReportModel' {
19504
+ export default ShiftSummaryReportModel;
19505
+ /**
19506
+ * Model Class for a Shift Summary Report
19507
+ *
19508
+ * @class
19509
+ * @hideconstructor
19510
+ * @extends BaseModel
19511
+ */
19512
+ class ShiftSummaryReportModel extends BaseModel {
19513
+ /**
19514
+ * Create a new **ShiftSummaryReportModel** from a JSON Object or JSON String
19515
+ *
19516
+ * @static
19517
+ * @public
19518
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
19519
+ * @param {number} siteId The Site ID associated with this Shift Summary Report
19520
+ * @return {ShiftSummaryReportModel}
19521
+ */
19522
+ static fromJSON(json: {
19523
+ [x: string]: any;
19524
+ } | string, siteId: number): ShiftSummaryReportModel;
19525
+ /**
19526
+ * ShiftSummaryReportModel Constructor
19527
+ *
19528
+ * @protected
19529
+ * @param {number} siteId The Site ID associated with this Shift Summary Report
19530
+ */
19531
+ protected constructor();
19532
+ /**
19533
+ * The Shift Summary Report ID
19534
+ *
19535
+ * @type {string}
19536
+ * @public
19537
+ */
19538
+ id: string;
19539
+ /**
19540
+ * The Packing Line ID this Summary Report is associated with
19541
+ *
19542
+ * @type {string}
19543
+ * @public
19544
+ */
19545
+ packingLineId: string;
19546
+ /**
19547
+ * The Shift ID this Summary Report relates to
19548
+ *
19549
+ * @type {string}
19550
+ * @public
19551
+ */
19552
+ shiftId: string;
19553
+ /**
19554
+ * When this Summary Report was Created
19555
+ *
19556
+ * @type {Date}
19557
+ * @public
19558
+ */
19559
+ createdTimestamp: Date;
19560
+ /**
19561
+ * The Base64 Encoded PDF Report
19562
+ *
19563
+ * @type {?string}
19564
+ * @public
19565
+ */
19566
+ pdfReportContent: string | null;
19567
+ /**
19568
+ * The Filename that should be used with the PDF Report
19569
+ *
19570
+ * @type {?string}
19571
+ * @public
19572
+ */
19573
+ pdfReportFileName: string | null;
19574
+ /**
19575
+ * The SendGrid API Status indicating progress when sending emails
19576
+ *
19577
+ * @type {?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}
19578
+ * @public
19579
+ */
19580
+ sendGridApi: {
19581
+ requestCount: number;
19582
+ requestTimestamp: Date | null;
19583
+ responseCode: number | null;
19584
+ responseMessage: string | null;
19585
+ completed: boolean;
19586
+ } | null;
19587
+ /**
19588
+ * Whether the Report is in the process of being Emailed
19589
+ *
19590
+ * @type {string}
19591
+ * @public
19592
+ */
19593
+ status: string;
19594
+ /**
19595
+ * An Array of Email Contacts that were sent this Summary Report
19596
+ *
19597
+ * @type {Array<{email: string, firstName: string, lastName: string}>}
19598
+ * @public
19599
+ */
19600
+ emailContacts: {
19601
+ email: string;
19602
+ firstName: string;
19603
+ lastName: string;
19604
+ }[];
19605
+ /**
19606
+ * Whether the Shift Summary Report has been deleted
19607
+ *
19608
+ * @type {boolean}
19609
+ * @public
19610
+ */
19611
+ deleted: boolean;
19612
+ /**
19613
+ * When the Shift Summary Report was last updated
19614
+ *
19615
+ * @type {Date}
19616
+ * @public
19617
+ */
19618
+ updateTimestamp: Date;
19619
+ /**
19620
+ * The Site ID associated with this Shift Summary Report
19621
+ *
19622
+ * @type {number}
19623
+ * @public
19624
+ */
19625
+ siteId: number;
19626
+ }
19627
+ import BaseModel from "@ricado/api-client/Models/BaseModel";
19628
+ }
19629
+
18066
19630
  declare module '@ricado/api-client/Models/Packhouse/Site/ShiftTaskModel' {
18067
19631
  export default ShiftTaskModel;
18068
19632
  /**