@ricado/api-client 2.3.12 → 2.3.15

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: string | null;
3902
+ /**
3903
+ * An Optional Key Challenge the Line Manager observed during this Shift
3904
+ */
3905
+ keyChallenge: string | 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 {