@ricado/api-client 2.3.11 → 2.3.14

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