@ricado/api-client 2.3.12 → 2.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -2167,8 +2167,10 @@ declare module '@ricado/api-client/Controllers/UserAccountController' {
2167
2167
  declare module '@ricado/api-client/Controllers/Packhouse' {
2168
2168
  export default Packhouse;
2169
2169
  namespace Packhouse {
2170
+ export { ProductionDataExportController };
2170
2171
  export { Site };
2171
2172
  }
2173
+ import ProductionDataExportController from "@ricado/api-client/Controllers/Packhouse/ProductionDataExportController";
2172
2174
  import Site from "@ricado/api-client/Controllers/Packhouse/Site";
2173
2175
  }
2174
2176
 
@@ -3128,6 +3130,1123 @@ declare module '@ricado/api-client/Models/Site' {
3128
3130
  import TemporaryObjectModel from "@ricado/api-client/Models/Site/TemporaryObjectModel";
3129
3131
  }
3130
3132
 
3133
+ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportController' {
3134
+ export default ProductionDataExportController;
3135
+ /**
3136
+ * The Production Data Export Controller Class
3137
+ *
3138
+ * @class
3139
+ */
3140
+ class ProductionDataExportController {
3141
+ /**
3142
+ * Retrieve Production Data [GET /packhouse/production-data-export]
3143
+ *
3144
+ * Request a Production Data Export in the default JSON Format
3145
+ *
3146
+ * @static
3147
+ * @public
3148
+ * @return {Promise<ProductionDataExportController.ProductionData>}
3149
+ */
3150
+ static jsonExport(): Promise<ProductionDataExportController.ProductionData>;
3151
+ /**
3152
+ * Retrieve Production Data as an Excel Spreadsheet [GET /packhouse/production-data-export/excel]
3153
+ *
3154
+ * Request a Production Data Export in the form of an Excel Spreadsheet
3155
+ *
3156
+ * @static
3157
+ * @public
3158
+ * @return {Promise<boolean>}
3159
+ */
3160
+ static excelExport(): Promise<boolean>;
3161
+ /**
3162
+ * Retrieve Production Data as a CSV File [GET /packhouse/production-data-export/csv]
3163
+ *
3164
+ * Request a Production Data Export in the form of a CSV File
3165
+ *
3166
+ * @static
3167
+ * @public
3168
+ * @return {Promise<boolean>}
3169
+ */
3170
+ static csvExport(): Promise<boolean>;
3171
+ }
3172
+ namespace ProductionDataExportController {
3173
+ /**
3174
+ * A **PackrunData** Type
3175
+ */
3176
+ export type PackrunData = {
3177
+ /**
3178
+ * ID of the Site where this Packrun occurred
3179
+ */
3180
+ siteId: number;
3181
+ /**
3182
+ * Name of the Site where this Packrun occurred
3183
+ */
3184
+ siteName: string;
3185
+ /**
3186
+ * ID of the Packing Line where this Packrun occurred
3187
+ */
3188
+ packingLineId: string;
3189
+ /**
3190
+ * Name of the Packing Line where this Packrun occurred
3191
+ */
3192
+ packingLineName: string;
3193
+ /**
3194
+ * ISO Week when this Packrun occurred
3195
+ */
3196
+ isoWeek: number;
3197
+ /**
3198
+ * Timestamp when this Packrun was Started
3199
+ */
3200
+ startTimestamp: Date;
3201
+ /**
3202
+ * Timestamp when this Packrun was Finished
3203
+ */
3204
+ finishTimestamp: Date | null;
3205
+ /**
3206
+ * ID of the Packrun
3207
+ */
3208
+ packrunId: string;
3209
+ /**
3210
+ * Name of the Packrun
3211
+ */
3212
+ packrunName: string;
3213
+ /**
3214
+ * ID of the Variety associated with this Packrun
3215
+ */
3216
+ varietyId: string;
3217
+ /**
3218
+ * Code of the Variety associated with this Packrun
3219
+ */
3220
+ varietyCode: string;
3221
+ /**
3222
+ * ID of the Growing Method associated with this Packrun
3223
+ */
3224
+ growingMethodId: string;
3225
+ /**
3226
+ * Code of the Growing Method associated with this Packrun
3227
+ */
3228
+ growingMethodCode: string;
3229
+ /**
3230
+ * Grower Code of the Packrun
3231
+ */
3232
+ growerCode: string;
3233
+ /**
3234
+ * Grower Name of the Packrun
3235
+ */
3236
+ growerName: string;
3237
+ /**
3238
+ * Maturity Area of the Packrun
3239
+ */
3240
+ maturityArea: string;
3241
+ /**
3242
+ * Number of Bins Allocated to this Packrun
3243
+ */
3244
+ allocatedBins: number;
3245
+ /**
3246
+ * Number of Bins Tipped during this Packrun
3247
+ */
3248
+ totalBinsTipped: number;
3249
+ /**
3250
+ * Total Net Fruit Weight Tipped during this Packrun
3251
+ */
3252
+ totalNetWeightTipped: number;
3253
+ /**
3254
+ * Average Net Fruit Weight per Bin for this Packrun
3255
+ */
3256
+ averageNetWeightPerBin: number;
3257
+ /**
3258
+ * Average Bins Tipped per Hour during this Packrun
3259
+ */
3260
+ averageBinsTippedPerHour: number;
3261
+ /**
3262
+ * Average Time Taken in Seconds to Tip a Bin during this Packrun
3263
+ */
3264
+ averageTimePerTippedBin: number;
3265
+ /**
3266
+ * Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
3267
+ */
3268
+ averageBinTipWeightThroughput: number;
3269
+ /**
3270
+ * Number of Soft-Sort Events per Bin Tipped during this Packrun
3271
+ */
3272
+ softSortEventsPerBin: number;
3273
+ /**
3274
+ * Total Number of Soft-Sort Events that occurred during this Packrun
3275
+ */
3276
+ totalSoftSortEventsCount: number;
3277
+ /**
3278
+ * Average Duration in Seconds of a Soft-Sort Event during this Packrun
3279
+ */
3280
+ averageSoftSortEventsDuration: number;
3281
+ /**
3282
+ * Total Duration in Seconds of all Soft-Sort Events that occurred during this Packrun
3283
+ */
3284
+ totalSoftSortEventsDuration: number;
3285
+ /**
3286
+ * Whether the Soft-Sort Events for this Packrun were Accurate according to the Line Manager
3287
+ */
3288
+ softSortEventsAccurate: boolean | null;
3289
+ /**
3290
+ * A Reason for why the Soft-Sort Events were not Accurate
3291
+ */
3292
+ softSortEventsNotAccurateReason: string | null;
3293
+ /**
3294
+ * Class 1 Percentage for this Packrun
3295
+ */
3296
+ class1Percentage: number;
3297
+ /**
3298
+ * Class 2 Percentage for this Packrun
3299
+ */
3300
+ class2Percentage: number;
3301
+ /**
3302
+ * Class 3 Percentage for this Packrun
3303
+ */
3304
+ class3Percentage: number;
3305
+ /**
3306
+ * Non-Standard Supply Percentage for this Packrun
3307
+ */
3308
+ nssPercentage: number;
3309
+ /**
3310
+ * Undersize Percentage for this Packrun
3311
+ */
3312
+ undersizePercentage: number;
3313
+ /**
3314
+ * Culled / Low Dry Matter Percentage for this Packrun
3315
+ */
3316
+ cdmPercentage: number;
3317
+ /**
3318
+ * Waste Percentage for this Packrun
3319
+ */
3320
+ wastePercentage: number;
3321
+ /**
3322
+ * Soft-Sort Percentage for this Packrun
3323
+ */
3324
+ softSortPercentage: number;
3325
+ /**
3326
+ * Total Non-Class 1 Percentage for this Packrun
3327
+ */
3328
+ totalNonClass1Percentage: number;
3329
+ /**
3330
+ * Total Class 1 Weight in Kilograms for this Packrun
3331
+ */
3332
+ class1Weight: number;
3333
+ /**
3334
+ * Total Class 2 Weight in Kilograms for this Packrun
3335
+ */
3336
+ class2Weight: number;
3337
+ /**
3338
+ * Total Class 3 Weight in Kilograms for this Packrun
3339
+ */
3340
+ class3Weight: number;
3341
+ /**
3342
+ * Total Non-Standard Supply Weight in Kilograms for this Packrun
3343
+ */
3344
+ nssWeight: number;
3345
+ /**
3346
+ * Total Undersize Weight in Kilograms for this Packrun
3347
+ */
3348
+ undersizeWeight: number;
3349
+ /**
3350
+ * Total Culled / Low Dry Matter Weight in Kilograms for this Packrun
3351
+ */
3352
+ cdmWeight: number;
3353
+ /**
3354
+ * Total Waste Weight in Kilograms for this Packrun
3355
+ */
3356
+ wasteWeight: number;
3357
+ /**
3358
+ * Total Soft-Sort Weight in Kilograms for this Packrun
3359
+ */
3360
+ softSortWeight: number;
3361
+ /**
3362
+ * Total Non-Class 1 Weight in Kilograms for this Packrun
3363
+ */
3364
+ totalNonClass1Weight: number;
3365
+ /**
3366
+ * Total Class 1 Tray Equivalents Produced during this Packrun
3367
+ */
3368
+ totalClass1Trays: number;
3369
+ /**
3370
+ * Total Class 2 Tray Equivalents Produced during this Packrun
3371
+ */
3372
+ totalClass2Trays: number;
3373
+ /**
3374
+ * Total Number of Class 1 Fruit that were Packed during this Packrun
3375
+ */
3376
+ totalClass1FruitCount: number;
3377
+ /**
3378
+ * Total Number of Class 2 Fruit that were Packed during this Packrun
3379
+ */
3380
+ totalClass2FruitCount: number;
3381
+ /**
3382
+ * Average Class 1 Tray Equivalent Weight in Kilograms for this Packrun
3383
+ */
3384
+ averageClass1TrayWeight: number;
3385
+ /**
3386
+ * Average Class 2 Tray Equivalent Weight in Kilograms for this Packrun
3387
+ */
3388
+ averageClass2TrayWeight: number;
3389
+ /**
3390
+ * Average Class 1 Trays Produced per Bin Tipped for this Packrun
3391
+ */
3392
+ class1TraysPerBin: number;
3393
+ /**
3394
+ * Average Fruit Size for this Packrun
3395
+ */
3396
+ averageFruitSize: number;
3397
+ /**
3398
+ * Average Fruit Weight in Grams for this Packrun
3399
+ */
3400
+ averageFruitWeight: number;
3401
+ /**
3402
+ * Total Number of Reject Bins Weighed during this Packrun
3403
+ */
3404
+ totalRejectBinsCount: number;
3405
+ /**
3406
+ * Total Net Fruit Weight in Kilograms captured in Reject Bins during this Packrun
3407
+ */
3408
+ totalRejectBinsNetWeight: number;
3409
+ /**
3410
+ * Total Number of R600 Class 1 Fruit Sampled by Quality Control during this Packrun
3411
+ */
3412
+ qualityR600TotalFruitSampled: number | null;
3413
+ /**
3414
+ * Percentage of R600 Class 1 Fruit Sampled by Quality Control during this Packrun
3415
+ */
3416
+ qualityR600FruitSampledPercentage: number | null;
3417
+ /**
3418
+ * Average R600 Class 1 Fruit Size that was Sampled by Quality Control during this Packrun
3419
+ */
3420
+ qualityR600AverageSampledFruitSize: number | null;
3421
+ /**
3422
+ * Total Number of Class 1 R600 Samples Collected by Quality Control during this Packrun
3423
+ */
3424
+ qualityR600TotalSamplesCount: number | null;
3425
+ /**
3426
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Packrun
3427
+ */
3428
+ qualityR600IdealSamplesTarget: number | null;
3429
+ /**
3430
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Packrun
3431
+ */
3432
+ qualityR600IdealSamplesActual: number | null;
3433
+ /**
3434
+ * Percentage of Minor Packing Defects found in Class 1 R600 Samples during this Packrun
3435
+ */
3436
+ qualityR600MinorPackingDefects: number | null;
3437
+ /**
3438
+ * Percentage of Major Packing Defects found in Class 1 R600 Samples during this Packrun
3439
+ */
3440
+ qualityR600MajorPackingDefects: number | null;
3441
+ /**
3442
+ * Percentage of Soft Fruit found in Class 1 R600 Samples during this Packrun
3443
+ */
3444
+ qualityR600Softs: number | null;
3445
+ /**
3446
+ * Percentage of Cut (Flesh Damaged) Fruit found in Class 1 R600 Samples during this Packrun
3447
+ */
3448
+ qualityR600Cuts: number | null;
3449
+ /**
3450
+ * Percentage of Rotten Fruit found in Class 1 R600 Samples during this Packrun
3451
+ */
3452
+ qualityR600Rots: number | null;
3453
+ /**
3454
+ * Percentage of Export Fruit found in Class 2 during this Packrun
3455
+ */
3456
+ qualityExportFruitInClass2: number | null;
3457
+ /**
3458
+ * Percentage of Export Fruit found in Class 3 during this Packrun
3459
+ */
3460
+ qualityExportFruitInClass3: number | null;
3461
+ /**
3462
+ * Percentage of Export Fruit found in Waste during this Packrun
3463
+ */
3464
+ qualityExportFruitInWaste: number | null;
3465
+ /**
3466
+ * An Array of Shift IDs this Packrun is associated with
3467
+ */
3468
+ shiftIds: string[];
3469
+ /**
3470
+ * An Array of Shift Types that were encountered during this Packrun
3471
+ */
3472
+ shiftTypes: string[];
3473
+ /**
3474
+ * An Array of Line Managers who were involved with this Packrun
3475
+ */
3476
+ lineManagerNames: string[];
3477
+ /**
3478
+ * An Array of Quality Managers who were involved with this Packrun
3479
+ */
3480
+ qualityManagerNames: string[];
3481
+ /**
3482
+ * Total Shift Production Time in Seconds for this Packrun
3483
+ */
3484
+ totalProductionTime: number;
3485
+ /**
3486
+ * Total Shift Scheduled Break Time in Seconds for this Packrun
3487
+ */
3488
+ totalScheduledBreakTime: number;
3489
+ /**
3490
+ * Total Shift Downtime in Seconds for this Packrun
3491
+ */
3492
+ totalDowntime: number;
3493
+ /**
3494
+ * Number of Downtime Events that occurred during this Packrun
3495
+ */
3496
+ downtimeEventsCount: number;
3497
+ /**
3498
+ * Average Duration in Seconds of a Downtime Event during this Packrun
3499
+ */
3500
+ downtimeEventsAverageDuration: number;
3501
+ /**
3502
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Packrun
3503
+ */
3504
+ class1ManningTarget: number | null;
3505
+ /**
3506
+ * Average Number of People working on the Packing Line (excluding Class 2) during this Packrun
3507
+ */
3508
+ averageClass1Manning: number | null;
3509
+ /**
3510
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Packrun
3511
+ */
3512
+ class1ManningPercentage: number | null;
3513
+ /**
3514
+ * Target Number of People working in the Class 2 area of the Packing Line during this Packrun
3515
+ */
3516
+ class2ManningTarget: number | null;
3517
+ /**
3518
+ * Average Number of People working in the Class 2 area of the Packing Line during this Packrun
3519
+ */
3520
+ averageClass2Manning: number | null;
3521
+ /**
3522
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Packrun
3523
+ */
3524
+ class2ManningPercentage: number | null;
3525
+ /**
3526
+ * Target Number of People working on the Packing Line during this Packrun
3527
+ */
3528
+ totalManningTarget: number | null;
3529
+ /**
3530
+ * Average Number of People working on the Packing Line during this Packrun
3531
+ */
3532
+ averageTotalManning: number | null;
3533
+ /**
3534
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Packrun
3535
+ */
3536
+ totalManningPercentage: number | null;
3537
+ /**
3538
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Packrun
3539
+ */
3540
+ costPerManningUnitHour: number | null;
3541
+ /**
3542
+ * Total Hours Worked during this Packrun. Directly relates to Production Time
3543
+ */
3544
+ totalHoursWorked: number;
3545
+ /**
3546
+ * Total Hours Worked excluding Downtime during this Packrun. Directly relates to Production Time less Downtime
3547
+ */
3548
+ totalHoursWorkedExcludingDowntime: number;
3549
+ /**
3550
+ * Total Hours Paid during this Packrun. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
3551
+ */
3552
+ totalHoursPaid: number;
3553
+ /**
3554
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Packrun
3555
+ */
3556
+ class1TotalManningCost: number | null;
3557
+ /**
3558
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Packrun
3559
+ */
3560
+ class2TotalManningCost: number | null;
3561
+ /**
3562
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Packrun
3563
+ */
3564
+ class1DowntimeManningCost: number | null;
3565
+ /**
3566
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Packrun
3567
+ */
3568
+ class2DowntimeManningCost: number | null;
3569
+ /**
3570
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Packrun
3571
+ */
3572
+ class1CostPerTrayTarget: number | null;
3573
+ /**
3574
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Packrun
3575
+ */
3576
+ class1CostPerTrayActual: number | null;
3577
+ /**
3578
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Packrun
3579
+ */
3580
+ class2CostPerTrayActual: number | null;
3581
+ /**
3582
+ * Average Class 1 Tray Equivalents Produced per Hour during this Packrun
3583
+ */
3584
+ class1TraysPerHour: number;
3585
+ /**
3586
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Packrun
3587
+ */
3588
+ class1TraysPerHourExcludingDowntime: number;
3589
+ /**
3590
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Packrun
3591
+ */
3592
+ class1TraysPerHourExcludingDowntimeTarget: number;
3593
+ /**
3594
+ * Average Class 1 Tray Equivalents Produced per Person per Hour during this Packrun
3595
+ */
3596
+ class1TraysPerManHour: number | null;
3597
+ /**
3598
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Packrun
3599
+ */
3600
+ class1TraysPerManHourExcludingDowntime: number | null;
3601
+ /**
3602
+ * Average Class 2 Tray Equivalents Produced per Hour during this Packrun
3603
+ */
3604
+ class2TraysPerHour: number;
3605
+ /**
3606
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Packrun
3607
+ */
3608
+ class2TraysPerHourExcludingDowntime: number;
3609
+ /**
3610
+ * Average Class 2 Tray Equivalents Produced per Person per Hour during this Packrun
3611
+ */
3612
+ class2TraysPerManHour: number | null;
3613
+ /**
3614
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Packrun
3615
+ */
3616
+ class2TraysPerManHourExcludingDowntime: number | null;
3617
+ /**
3618
+ * Target Percentage of Layered Trays that should be Produced for this Packrun
3619
+ */
3620
+ class1LayeredPercentageTarget: number | null;
3621
+ /**
3622
+ * Actual Percentage of Layered Trays that were Produced during this Packrun
3623
+ */
3624
+ class1LayeredPercentage: number | null;
3625
+ /**
3626
+ * Actual Percentage of Bulk Packs that were Produced during this Packrun
3627
+ */
3628
+ class1BulkPercentage: number | null;
3629
+ };
3630
+ /**
3631
+ * A **ShiftData** Type
3632
+ */
3633
+ export type ShiftData = {
3634
+ /**
3635
+ * ID of the Site where this Shift took place
3636
+ */
3637
+ siteId: number;
3638
+ /**
3639
+ * Name of the Site where this Shift took place
3640
+ */
3641
+ siteName: string;
3642
+ /**
3643
+ * ID of the Packing Line where this Shift took place
3644
+ */
3645
+ packingLineId: string;
3646
+ /**
3647
+ * Name of the Packing Line where this Shift took place
3648
+ */
3649
+ packingLineName: string;
3650
+ /**
3651
+ * ID of the Shift
3652
+ */
3653
+ shiftId: string;
3654
+ /**
3655
+ * Type of the Shift
3656
+ */
3657
+ shiftType: string;
3658
+ /**
3659
+ * ISO Week when this Shift occurred
3660
+ */
3661
+ isoWeek: number;
3662
+ /**
3663
+ * Timestamp when this Shift was Started
3664
+ */
3665
+ startTimestamp: Date;
3666
+ /**
3667
+ * Timestamp when this Shift was Finished
3668
+ */
3669
+ finishTimestamp: Date | null;
3670
+ /**
3671
+ * Name of the Line Manager who ran this Shift
3672
+ */
3673
+ lineManagerName: string | null;
3674
+ /**
3675
+ * Name of the Quality Manager who ran this Shift
3676
+ */
3677
+ qualityManagerName: string | null;
3678
+ /**
3679
+ * An Array of Variety IDs that were Packed during this Shift
3680
+ */
3681
+ varietyIds: string[];
3682
+ /**
3683
+ * An Array of Variety Codes that were Packed during this Shift
3684
+ */
3685
+ varietyCodes: string[];
3686
+ /**
3687
+ * An Array of Growing Method IDs that were Packed during this Shift
3688
+ */
3689
+ growingMethodIds: string[];
3690
+ /**
3691
+ * An Array of Growing Method Codes that were Packed during this Shift
3692
+ */
3693
+ growingMethodCodes: string[];
3694
+ /**
3695
+ * Target Number of Bins to Tip during this Shift
3696
+ */
3697
+ binsTippedTarget: number;
3698
+ /**
3699
+ * Total Number of Bins Tipped during this Shift
3700
+ */
3701
+ totalBinsTipped: number;
3702
+ /**
3703
+ * Number of Bins Tipped per Hour during this Shift
3704
+ */
3705
+ binsTippedPerHour: number;
3706
+ /**
3707
+ * Number of Bins Tipped per Hour excluding Downtime during this Shift
3708
+ */
3709
+ binsTippedPerHourExcludingDowntime: number;
3710
+ /**
3711
+ * Total Production Time in Seconds for this Shift
3712
+ */
3713
+ totalProductionTime: number;
3714
+ /**
3715
+ * Total Scheduled Break Time in Seconds for this Shift
3716
+ */
3717
+ totalScheduledBreakTime: number;
3718
+ /**
3719
+ * Total Downtime in Seconds for this Shift
3720
+ */
3721
+ totalDowntime: number;
3722
+ /**
3723
+ * Number of Downtime Events that occurred during this Shift
3724
+ */
3725
+ downtimeEventsCount: number;
3726
+ /**
3727
+ * Average Duration in Seconds of a Downtime Event during this Shift
3728
+ */
3729
+ downtimeEventsAverageDuration: number;
3730
+ /**
3731
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Shift
3732
+ */
3733
+ class1ManningTarget: number | null;
3734
+ /**
3735
+ * Average Number of People working on the Packing Line (excluding Class 2) during this Shift
3736
+ */
3737
+ averageClass1Manning: number | null;
3738
+ /**
3739
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Shift
3740
+ */
3741
+ class1ManningPercentage: number | null;
3742
+ /**
3743
+ * Target Number of People working in the Class 2 area of the Packing Line during this Shift
3744
+ */
3745
+ class2ManningTarget: number | null;
3746
+ /**
3747
+ * Average Number of People working in the Class 2 area of the Packing Line during this Shift
3748
+ */
3749
+ averageClass2Manning: number | null;
3750
+ /**
3751
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Shift
3752
+ */
3753
+ class2ManningPercentage: number | null;
3754
+ /**
3755
+ * Target Number of People working on the Packing Line during this Shift
3756
+ */
3757
+ totalManningTarget: number | null;
3758
+ /**
3759
+ * Average Number of People working on the Packing Line during this Shift
3760
+ */
3761
+ averageTotalManning: number | null;
3762
+ /**
3763
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Shift
3764
+ */
3765
+ totalManningPercentage: number | null;
3766
+ /**
3767
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Shift
3768
+ */
3769
+ costPerManningUnitHour: number | null;
3770
+ /**
3771
+ * Total Hours Worked during this Shift. Directly relates to Production Time
3772
+ */
3773
+ totalHoursWorked: number;
3774
+ /**
3775
+ * Total Hours Worked excluding Downtime during this Shift. Directly relates to Production Time less Downtime
3776
+ */
3777
+ totalHoursWorkedExcludingDowntime: number;
3778
+ /**
3779
+ * Total Hours Paid during this Shift. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
3780
+ */
3781
+ totalHoursPaid: number;
3782
+ /**
3783
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Shift
3784
+ */
3785
+ class1TotalManningCost: number | null;
3786
+ /**
3787
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Shift
3788
+ */
3789
+ class2TotalManningCost: number | null;
3790
+ /**
3791
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Shift
3792
+ */
3793
+ class1DowntimeManningCost: number | null;
3794
+ /**
3795
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Shift
3796
+ */
3797
+ class2DowntimeManningCost: number | null;
3798
+ /**
3799
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Shift
3800
+ */
3801
+ class1CostPerTrayTarget: number | null;
3802
+ /**
3803
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Shift
3804
+ */
3805
+ class1CostPerTrayActual: number | null;
3806
+ /**
3807
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Shift
3808
+ */
3809
+ class2CostPerTrayActual: number | null;
3810
+ /**
3811
+ * Total Class 1 Tray Equivalents Produced during this Shift
3812
+ */
3813
+ totalClass1Trays: number;
3814
+ /**
3815
+ * Total Class 2 Tray Equivalents Produced during this Shift
3816
+ */
3817
+ totalClass2Trays: number;
3818
+ /**
3819
+ * Average Class 1 Tray Equivalents Produced per Hour during this Shift
3820
+ */
3821
+ class1TraysPerHour: number;
3822
+ /**
3823
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Shift
3824
+ */
3825
+ class1TraysPerHourExcludingDowntime: number;
3826
+ /**
3827
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Shift
3828
+ */
3829
+ class1TraysPerHourExcludingDowntimeTarget: number;
3830
+ /**
3831
+ * Average Class 1 Tray Equivalents Produced per Person per Hour during this Shift
3832
+ */
3833
+ class1TraysPerManHour: number | null;
3834
+ /**
3835
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Shift
3836
+ */
3837
+ class1TraysPerManHourExcludingDowntime: number | null;
3838
+ /**
3839
+ * Average Class 2 Tray Equivalents Produced per Hour during this Shift
3840
+ */
3841
+ class2TraysPerHour: number;
3842
+ /**
3843
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Shift
3844
+ */
3845
+ class2TraysPerHourExcludingDowntime: number;
3846
+ /**
3847
+ * Average Class 2 Tray Equivalents Produced per Person per Hour during this Shift
3848
+ */
3849
+ class2TraysPerManHour: number | null;
3850
+ /**
3851
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Shift
3852
+ */
3853
+ class2TraysPerManHourExcludingDowntime: number | null;
3854
+ /**
3855
+ * Target Percentage of Layered Trays that should be Produced for this Shift
3856
+ */
3857
+ class1LayeredPercentageTarget: number | null;
3858
+ /**
3859
+ * Actual Percentage of Layered Trays that were Produced during this Shift
3860
+ */
3861
+ class1LayeredPercentage: number | null;
3862
+ /**
3863
+ * Actual Percentage of Bulk Packs that were Produced during this Shift
3864
+ */
3865
+ class1BulkPercentage: number | null;
3866
+ /**
3867
+ * Average Class 1 Packout Percentage during this Shift
3868
+ */
3869
+ averageClass1Percentage: number | null;
3870
+ /**
3871
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Shift
3872
+ */
3873
+ qualityR600IdealSamplesTarget: number | null;
3874
+ /**
3875
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Shift
3876
+ */
3877
+ qualityR600IdealSamplesActual: number | null;
3878
+ /**
3879
+ * An Optional Satisfaction Rating between 1 and 10 from the Line Manager of this Shift
3880
+ */
3881
+ satisfactionRating: number | null;
3882
+ /**
3883
+ * An Optional Key Celebration the Line Manager observed during this Shift
3884
+ */
3885
+ keyCelebration: number | null;
3886
+ /**
3887
+ * An Optional Key Challenge the Line Manager observed during this Shift
3888
+ */
3889
+ keyChallenge: number | null;
3890
+ };
3891
+ /**
3892
+ * A **ShiftHourlyData** Type
3893
+ */
3894
+ export type ShiftHourlyData = {
3895
+ /**
3896
+ * ID of the Site where this Hour took place
3897
+ */
3898
+ siteId: number;
3899
+ /**
3900
+ * Name of the Site where this Hour took place
3901
+ */
3902
+ siteName: string;
3903
+ /**
3904
+ * ID of the Packing Line where this Hour took place
3905
+ */
3906
+ packingLineId: string;
3907
+ /**
3908
+ * Name of the Packing Line where this Hour took place
3909
+ */
3910
+ packingLineName: string;
3911
+ /**
3912
+ * ID of the Shift associated with this Hourly Entry
3913
+ */
3914
+ shiftId: string;
3915
+ /**
3916
+ * Type of the Shift associated with this Hourly Entry
3917
+ */
3918
+ shiftType: string;
3919
+ /**
3920
+ * ISO Week when this Hour Started
3921
+ */
3922
+ isoWeek: number;
3923
+ /**
3924
+ * Timestamp when this Hour Started
3925
+ */
3926
+ startTimestamp: Date;
3927
+ /**
3928
+ * Timestamp when this Hour Ended
3929
+ */
3930
+ endTimestamp: Date | null;
3931
+ /**
3932
+ * Name of the Line Manager who ran this Hour
3933
+ */
3934
+ lineManagerName: string | null;
3935
+ /**
3936
+ * Name of the Quality Manager who ran this Hour
3937
+ */
3938
+ qualityManagerName: string | null;
3939
+ /**
3940
+ * An Array of Variety IDs that were Packed during this Hour
3941
+ */
3942
+ varietyIds: string[];
3943
+ /**
3944
+ * An Array of Variety Codes that were Packed during this Hour
3945
+ */
3946
+ varietyCodes: string[];
3947
+ /**
3948
+ * An Array of Growing Method IDs that were Packed during this Hour
3949
+ */
3950
+ growingMethodIds: string[];
3951
+ /**
3952
+ * An Array of Growing Method Codes that were Packed during this Hour
3953
+ */
3954
+ growingMethodCodes: string[];
3955
+ /**
3956
+ * Total Number of Bins Tipped during this Hour
3957
+ */
3958
+ totalBinsTipped: number;
3959
+ /**
3960
+ * Total Production Time in Seconds for this Hour
3961
+ */
3962
+ totalProductionTime: number;
3963
+ /**
3964
+ * Total Scheduled Break Time in Seconds for this Hour
3965
+ */
3966
+ totalScheduledBreakTime: number;
3967
+ /**
3968
+ * Total Downtime in Seconds for this Hour
3969
+ */
3970
+ totalDowntime: number;
3971
+ /**
3972
+ * Number of Downtime Events that occurred during this Hour
3973
+ */
3974
+ downtimeEventsCount: number;
3975
+ /**
3976
+ * Average Duration in Seconds of a Downtime Event during this Hour
3977
+ */
3978
+ downtimeEventsAverageDuration: number;
3979
+ /**
3980
+ * Target Number of People working on the Packing Line (excluding Class 2) during this Hour
3981
+ */
3982
+ class1ManningTarget: number | null;
3983
+ /**
3984
+ * Actual Number of People working on the Packing Line (excluding Class 2) during this Hour
3985
+ */
3986
+ class1Manning: number | null;
3987
+ /**
3988
+ * Percentage of Target vs Actual Number of People working on the Packing Line (excluding Class 2) during this Hour
3989
+ */
3990
+ class1ManningPercentage: number | null;
3991
+ /**
3992
+ * Target Number of People working in the Class 2 area of the Packing Line during this Hour
3993
+ */
3994
+ class2ManningTarget: number | null;
3995
+ /**
3996
+ * Actual Number of People working in the Class 2 area of the Packing Line during this Hour
3997
+ */
3998
+ class2Manning: number | null;
3999
+ /**
4000
+ * Percentage of Target vs Actual Number of People working in the Class 2 area of the Packing Line during this Hour
4001
+ */
4002
+ class2ManningPercentage: number | null;
4003
+ /**
4004
+ * Target Number of People working on the Packing Line during this Hour
4005
+ */
4006
+ totalManningTarget: number | null;
4007
+ /**
4008
+ * Actual Number of People working on the Packing Line during this Hour
4009
+ */
4010
+ totalManning: number | null;
4011
+ /**
4012
+ * Percentage of Target vs Actual Number of People working on the Packing Line during this Hour
4013
+ */
4014
+ totalManningPercentage: number | null;
4015
+ /**
4016
+ * Average Cost ($) per Person per Hour working on the Packing Line for this Hour
4017
+ */
4018
+ costPerManningUnitHour: number | null;
4019
+ /**
4020
+ * Total Hours Worked during this Hour. Directly relates to Production Time
4021
+ */
4022
+ totalMinutesWorked: number;
4023
+ /**
4024
+ * Total Hours Worked excluding Downtime during this Hour. Directly relates to Production Time less Downtime
4025
+ */
4026
+ totalMinutesWorkedExcludingDowntime: number;
4027
+ /**
4028
+ * Total Hours Paid during this Hour. Directly relates to Production Time and the Paid portion of Scheduled Break Time combined
4029
+ */
4030
+ totalMinutesPaid: number;
4031
+ /**
4032
+ * Total Cost ($) of Manning the Packing Line (excluding Class 2) during this Hour
4033
+ */
4034
+ class1TotalManningCost: number | null;
4035
+ /**
4036
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line during this Hour
4037
+ */
4038
+ class2TotalManningCost: number | null;
4039
+ /**
4040
+ * Cost ($) of Manning the Packing Line (excluding Class 2) in all Downtime Events during this Hour
4041
+ */
4042
+ class1DowntimeManningCost: number | null;
4043
+ /**
4044
+ * Total Cost ($) of Manning the Class 2 area of the Packing Line in all Downtime Events during this Hour
4045
+ */
4046
+ class2DowntimeManningCost: number | null;
4047
+ /**
4048
+ * Target Cost (cents) per Class 1 Tray Equivalent Produced during this Hour
4049
+ */
4050
+ class1CostPerTrayTarget: number | null;
4051
+ /**
4052
+ * Actual Cost (cents) per Class 1 Tray Equivalent Produced during this Hour
4053
+ */
4054
+ class1CostPerTrayActual: number | null;
4055
+ /**
4056
+ * Actual Cost (cents) per Class 2 Tray Equivalent Produced during this Hour
4057
+ */
4058
+ class2CostPerTrayActual: number | null;
4059
+ /**
4060
+ * Total Class 1 Tray Equivalents Produced during this Hour
4061
+ */
4062
+ totalClass1Trays: number;
4063
+ /**
4064
+ * Total Class 2 Tray Equivalents Produced during this Hour
4065
+ */
4066
+ totalClass2Trays: number;
4067
+ /**
4068
+ * Average Class 1 Tray Equivalents Produced per Hour excluding Downtime during this Hour
4069
+ */
4070
+ class1TraysPerHourExcludingDowntime: number;
4071
+ /**
4072
+ * Target Class 1 Tray Equivalents to Produce per Hour excluding Downtime during this Hour
4073
+ */
4074
+ class1TraysPerHourExcludingDowntimeTarget: number;
4075
+ /**
4076
+ * Average Class 1 Tray Equivalents Produced per Person per Hour excluding Downtime during this Hour
4077
+ */
4078
+ class1TraysPerManHourExcludingDowntime: number | null;
4079
+ /**
4080
+ * Average Class 2 Tray Equivalents Produced per Hour excluding Downtime during this Hour
4081
+ */
4082
+ class2TraysPerHourExcludingDowntime: number;
4083
+ /**
4084
+ * Average Class 2 Tray Equivalents Produced per Person per Hour excluding Downtime during this Hour
4085
+ */
4086
+ class2TraysPerManHourExcludingDowntime: number | null;
4087
+ /**
4088
+ * Target Percentage of Layered Trays that should be Produced for this Hour
4089
+ */
4090
+ class1LayeredPercentageTarget: number | null;
4091
+ /**
4092
+ * Actual Percentage of Layered Trays that were Produced during this Hour
4093
+ */
4094
+ class1LayeredPercentage: number | null;
4095
+ /**
4096
+ * Actual Percentage of Bulk Packs that were Produced during this Hour
4097
+ */
4098
+ class1BulkPercentage: number | null;
4099
+ /**
4100
+ * Average Class 1 Packout Percentage during this Hour
4101
+ */
4102
+ averageClass1Percentage: number | null;
4103
+ /**
4104
+ * Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
4105
+ */
4106
+ qualityR600IdealSamplesTarget: number | null;
4107
+ /**
4108
+ * Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
4109
+ */
4110
+ qualityR600IdealSamplesActual: number | null;
4111
+ };
4112
+ /**
4113
+ * A **DowntimeData** Type
4114
+ */
4115
+ export type DowntimeData = {
4116
+ /**
4117
+ * ID of the Site where this Downtime Event occurred
4118
+ */
4119
+ siteId: number;
4120
+ /**
4121
+ * Name of the Site where this Downtime Event occurred
4122
+ */
4123
+ siteName: string;
4124
+ /**
4125
+ * ID of the Packing Line where this Downtime Event occurred
4126
+ */
4127
+ packingLineId: string;
4128
+ /**
4129
+ * Name of the Packing Line where this Downtime Event occurred
4130
+ */
4131
+ packingLineName: string;
4132
+ /**
4133
+ * ID of the Shift associated with this Downtime Event
4134
+ */
4135
+ shiftId: string;
4136
+ /**
4137
+ * Type of the Shift associated with this Downtime Event
4138
+ */
4139
+ shiftType: string;
4140
+ /**
4141
+ * ISO Week when this Downtime Event occurred
4142
+ */
4143
+ isoWeek: number;
4144
+ /**
4145
+ * Timestamp when this Downtime Event Started
4146
+ */
4147
+ startTimestamp: Date;
4148
+ /**
4149
+ * Timestamp when this Downtime Event Ended
4150
+ */
4151
+ endTimestamp: Date | null;
4152
+ /**
4153
+ * Reason Category for this Downtime Event
4154
+ */
4155
+ reasonCategory: string | null;
4156
+ /**
4157
+ * Reason Tag for this Downtime Event
4158
+ */
4159
+ reasonTag: string | null;
4160
+ /**
4161
+ * An Optional Summary of the Action taken to Remedy this Downtime Event
4162
+ */
4163
+ remedyAction: string | null;
4164
+ };
4165
+ /**
4166
+ * A **PackagingConsumptionData** Type
4167
+ */
4168
+ export type PackagingConsumptionData = {
4169
+ /**
4170
+ * ID of the Site where this Packaging Consumption occurred
4171
+ */
4172
+ siteId: number;
4173
+ /**
4174
+ * Name of the Site where this Packaging Consumption occurred
4175
+ */
4176
+ siteName: string;
4177
+ /**
4178
+ * ID of the Packing Line where this Packaging Consumption occurred
4179
+ */
4180
+ packingLineId: string;
4181
+ /**
4182
+ * Name of the Packing Line where this Packaging Consumption occurred
4183
+ */
4184
+ packingLineName: string;
4185
+ /**
4186
+ * ID of the Packrun associated with this Packaging Consumption
4187
+ */
4188
+ packrunId: string;
4189
+ /**
4190
+ * Name of the Packrun associated with this Packaging Consumption
4191
+ */
4192
+ packrunName: string;
4193
+ /**
4194
+ * ID of the Variety associated with this Packaging Consumption
4195
+ */
4196
+ varietyId: string;
4197
+ /**
4198
+ * Code of the Variety associated with this Packaging Consumption
4199
+ */
4200
+ varietyCode: string;
4201
+ /**
4202
+ * ISO Week when this Packaging Consumption occurred
4203
+ */
4204
+ isoWeek: number;
4205
+ /**
4206
+ * Timestamp when this Packaging Consumption Started
4207
+ */
4208
+ startTimestamp: Date;
4209
+ /**
4210
+ * Timestamp when this Packaging Consumption Ended
4211
+ */
4212
+ endTimestamp: Date | null;
4213
+ /**
4214
+ * Pack Type of the Packaging Consumed
4215
+ */
4216
+ packType: string;
4217
+ /**
4218
+ * Quantity of Packaging Consumed
4219
+ */
4220
+ quantity: number;
4221
+ };
4222
+ /**
4223
+ * A **ProductionData** Type
4224
+ */
4225
+ export type ProductionData = {
4226
+ /**
4227
+ * An Array of Packrun Data
4228
+ */
4229
+ packruns: PackrunData[];
4230
+ /**
4231
+ * An Array of Shift Data
4232
+ */
4233
+ shifts: ShiftData[];
4234
+ /**
4235
+ * An Array of Shift Hourly Entry Data
4236
+ */
4237
+ shiftHourlyEntries: ShiftHourlyData[];
4238
+ /**
4239
+ * An Array of Downtime Event Data
4240
+ */
4241
+ downtimeEvents: DowntimeData[];
4242
+ /**
4243
+ * An Array of Packaging Consumption Data
4244
+ */
4245
+ packagingConsumption: PackagingConsumptionData[];
4246
+ };
4247
+ }
4248
+ }
4249
+
3131
4250
  declare module '@ricado/api-client/Controllers/Packhouse/Site' {
3132
4251
  export default Site;
3133
4252
  namespace Site {