@ricado/api-client 2.3.13 → 2.3.16

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.
@@ -37,11 +37,18 @@ var ProductionDataExportController = /*#__PURE__*/function () {
37
37
  *
38
38
  * @static
39
39
  * @public
40
+ * @param {Date} dateBegin The Beginning Date of the Production Data Export
41
+ * @param {Date} dateEnd The End Date of the Production Data Export
42
+ * @param {ProductionDataExportController.JsonExportQueryParameters} [queryParameters] The Optional Query Parameters
40
43
  * @return {Promise<ProductionDataExportController.ProductionData>}
41
44
  */
42
- function jsonExport() {
45
+ function jsonExport(dateBegin, dateEnd) {
46
+ var queryParameters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
43
47
  return new Promise(function (resolve, reject) {
44
- _RequestHelper.default.getRequest("/packhouse/production-data-export").then(function (result) {
48
+ _RequestHelper.default.getRequest("/packhouse/production-data-export", Object.assign(queryParameters, {
49
+ dateBegin: dateBegin,
50
+ dateEnd: dateEnd
51
+ })).then(function (result) {
45
52
  var resolveValue = function () {
46
53
  var resultObject = {};
47
54
 
@@ -311,6 +318,18 @@ var ProductionDataExportController = /*#__PURE__*/function () {
311
318
  packrunsItemObject.averageBinsTippedPerHour = 0;
312
319
  }
313
320
 
321
+ if (_typeof(packrunsItem) === 'object' && 'averageBinsTippedPerHourExcludingDowntime' in packrunsItem) {
322
+ packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = function () {
323
+ if (typeof packrunsItem.averageBinsTippedPerHourExcludingDowntime !== 'number') {
324
+ return Number(packrunsItem.averageBinsTippedPerHourExcludingDowntime);
325
+ }
326
+
327
+ return packrunsItem.averageBinsTippedPerHourExcludingDowntime;
328
+ }();
329
+ } else {
330
+ packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = 0;
331
+ }
332
+
314
333
  if (_typeof(packrunsItem) === 'object' && 'averageTimePerTippedBin' in packrunsItem) {
315
334
  packrunsItemObject.averageTimePerTippedBin = function () {
316
335
  if (typeof packrunsItem.averageTimePerTippedBin !== 'number') {
@@ -2531,11 +2550,11 @@ var ProductionDataExportController = /*#__PURE__*/function () {
2531
2550
  return null;
2532
2551
  }
2533
2552
 
2534
- if (typeof shiftsItem.keyCelebration !== 'number') {
2535
- return Number.isInteger(Number(shiftsItem.keyCelebration)) ? Number(shiftsItem.keyCelebration) : Math.floor(Number(shiftsItem.keyCelebration));
2553
+ if (typeof shiftsItem.keyCelebration !== 'string') {
2554
+ return String(shiftsItem.keyCelebration);
2536
2555
  }
2537
2556
 
2538
- return Number.isInteger(shiftsItem.keyCelebration) ? shiftsItem.keyCelebration : Math.floor(shiftsItem.keyCelebration);
2557
+ return shiftsItem.keyCelebration;
2539
2558
  }();
2540
2559
  } else {
2541
2560
  shiftsItemObject.keyCelebration = null;
@@ -2547,11 +2566,11 @@ var ProductionDataExportController = /*#__PURE__*/function () {
2547
2566
  return null;
2548
2567
  }
2549
2568
 
2550
- if (typeof shiftsItem.keyChallenge !== 'number') {
2551
- return Number.isInteger(Number(shiftsItem.keyChallenge)) ? Number(shiftsItem.keyChallenge) : Math.floor(Number(shiftsItem.keyChallenge));
2569
+ if (typeof shiftsItem.keyChallenge !== 'string') {
2570
+ return String(shiftsItem.keyChallenge);
2552
2571
  }
2553
2572
 
2554
- return Number.isInteger(shiftsItem.keyChallenge) ? shiftsItem.keyChallenge : Math.floor(shiftsItem.keyChallenge);
2573
+ return shiftsItem.keyChallenge;
2555
2574
  }();
2556
2575
  } else {
2557
2576
  shiftsItemObject.keyChallenge = null;
@@ -3367,6 +3386,118 @@ var ProductionDataExportController = /*#__PURE__*/function () {
3367
3386
  shiftHourlyEntriesItemObject.qualityR600IdealSamplesActual = null;
3368
3387
  }
3369
3388
 
3389
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssueCategory' in shiftHourlyEntriesItem) {
3390
+ shiftHourlyEntriesItemObject.primaryIssueCategory = function () {
3391
+ if (shiftHourlyEntriesItem.primaryIssueCategory === null) {
3392
+ return null;
3393
+ }
3394
+
3395
+ if (typeof shiftHourlyEntriesItem.primaryIssueCategory !== 'string') {
3396
+ return String(shiftHourlyEntriesItem.primaryIssueCategory);
3397
+ }
3398
+
3399
+ return shiftHourlyEntriesItem.primaryIssueCategory;
3400
+ }();
3401
+ } else {
3402
+ shiftHourlyEntriesItemObject.primaryIssueCategory = null;
3403
+ }
3404
+
3405
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssueTag' in shiftHourlyEntriesItem) {
3406
+ shiftHourlyEntriesItemObject.primaryIssueTag = function () {
3407
+ if (shiftHourlyEntriesItem.primaryIssueTag === null) {
3408
+ return null;
3409
+ }
3410
+
3411
+ if (typeof shiftHourlyEntriesItem.primaryIssueTag !== 'string') {
3412
+ return String(shiftHourlyEntriesItem.primaryIssueTag);
3413
+ }
3414
+
3415
+ return shiftHourlyEntriesItem.primaryIssueTag;
3416
+ }();
3417
+ } else {
3418
+ shiftHourlyEntriesItemObject.primaryIssueTag = null;
3419
+ }
3420
+
3421
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssuePercentage' in shiftHourlyEntriesItem) {
3422
+ shiftHourlyEntriesItemObject.primaryIssuePercentage = function () {
3423
+ if (shiftHourlyEntriesItem.primaryIssuePercentage === null) {
3424
+ return null;
3425
+ }
3426
+
3427
+ if (typeof shiftHourlyEntriesItem.primaryIssuePercentage !== 'number') {
3428
+ return Number(shiftHourlyEntriesItem.primaryIssuePercentage);
3429
+ }
3430
+
3431
+ return shiftHourlyEntriesItem.primaryIssuePercentage;
3432
+ }();
3433
+ } else {
3434
+ shiftHourlyEntriesItemObject.primaryIssuePercentage = null;
3435
+ }
3436
+
3437
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssueCategory' in shiftHourlyEntriesItem) {
3438
+ shiftHourlyEntriesItemObject.secondaryIssueCategory = function () {
3439
+ if (shiftHourlyEntriesItem.secondaryIssueCategory === null) {
3440
+ return null;
3441
+ }
3442
+
3443
+ if (typeof shiftHourlyEntriesItem.secondaryIssueCategory !== 'string') {
3444
+ return String(shiftHourlyEntriesItem.secondaryIssueCategory);
3445
+ }
3446
+
3447
+ return shiftHourlyEntriesItem.secondaryIssueCategory;
3448
+ }();
3449
+ } else {
3450
+ shiftHourlyEntriesItemObject.secondaryIssueCategory = null;
3451
+ }
3452
+
3453
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssueTag' in shiftHourlyEntriesItem) {
3454
+ shiftHourlyEntriesItemObject.secondaryIssueTag = function () {
3455
+ if (shiftHourlyEntriesItem.secondaryIssueTag === null) {
3456
+ return null;
3457
+ }
3458
+
3459
+ if (typeof shiftHourlyEntriesItem.secondaryIssueTag !== 'string') {
3460
+ return String(shiftHourlyEntriesItem.secondaryIssueTag);
3461
+ }
3462
+
3463
+ return shiftHourlyEntriesItem.secondaryIssueTag;
3464
+ }();
3465
+ } else {
3466
+ shiftHourlyEntriesItemObject.secondaryIssueTag = null;
3467
+ }
3468
+
3469
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssuePercentage' in shiftHourlyEntriesItem) {
3470
+ shiftHourlyEntriesItemObject.secondaryIssuePercentage = function () {
3471
+ if (shiftHourlyEntriesItem.secondaryIssuePercentage === null) {
3472
+ return null;
3473
+ }
3474
+
3475
+ if (typeof shiftHourlyEntriesItem.secondaryIssuePercentage !== 'number') {
3476
+ return Number(shiftHourlyEntriesItem.secondaryIssuePercentage);
3477
+ }
3478
+
3479
+ return shiftHourlyEntriesItem.secondaryIssuePercentage;
3480
+ }();
3481
+ } else {
3482
+ shiftHourlyEntriesItemObject.secondaryIssuePercentage = null;
3483
+ }
3484
+
3485
+ if (_typeof(shiftHourlyEntriesItem) === 'object' && 'nextHourFocus' in shiftHourlyEntriesItem) {
3486
+ shiftHourlyEntriesItemObject.nextHourFocus = function () {
3487
+ if (shiftHourlyEntriesItem.nextHourFocus === null) {
3488
+ return null;
3489
+ }
3490
+
3491
+ if (typeof shiftHourlyEntriesItem.nextHourFocus !== 'string') {
3492
+ return String(shiftHourlyEntriesItem.nextHourFocus);
3493
+ }
3494
+
3495
+ return shiftHourlyEntriesItem.nextHourFocus;
3496
+ }();
3497
+ } else {
3498
+ shiftHourlyEntriesItemObject.nextHourFocus = null;
3499
+ }
3500
+
3370
3501
  return shiftHourlyEntriesItemObject;
3371
3502
  }();
3372
3503
  });
@@ -3788,6 +3919,15 @@ var ProductionDataExportController = /*#__PURE__*/function () {
3788
3919
  }();
3789
3920
 
3790
3921
  var _default = ProductionDataExportController;
3922
+ /**
3923
+ * The Optional Query Parameters for the jsonExport Function
3924
+ *
3925
+ * @typedef {Object} ProductionDataExportController.JsonExportQueryParameters
3926
+ * @property {number[]} [siteIds] A List of Site IDs to Filter by
3927
+ * @property {string[]} [packingLineIds] A List of Packing Line IDs to Filter by
3928
+ * @memberof Controllers.Packhouse
3929
+ */
3930
+
3791
3931
  /**
3792
3932
  * A **PackrunData** Type
3793
3933
  *
@@ -3813,6 +3953,7 @@ var _default = ProductionDataExportController;
3813
3953
  * @property {number} totalNetWeightTipped Total Net Fruit Weight Tipped during this Packrun
3814
3954
  * @property {number} averageNetWeightPerBin Average Net Fruit Weight per Bin for this Packrun
3815
3955
  * @property {number} averageBinsTippedPerHour Average Bins Tipped per Hour during this Packrun
3956
+ * @property {number} averageBinsTippedPerHourExcludingDowntime Average Bins Tipped per Hour excluding Downtime during this Packrun
3816
3957
  * @property {number} averageTimePerTippedBin Average Time Taken in Seconds to Tip a Bin during this Packrun
3817
3958
  * @property {number} averageBinTipWeightThroughput Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
3818
3959
  * @property {number} softSortEventsPerBin Number of Soft-Sort Events per Bin Tipped during this Packrun
@@ -3974,8 +4115,8 @@ var _default = ProductionDataExportController;
3974
4115
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Shift
3975
4116
  * @property {?number} qualityR600IdealSamplesActual Actual Percentage of R600 Samples that were in the Ideal Range during this Shift
3976
4117
  * @property {?number} satisfactionRating An Optional Satisfaction Rating between 1 and 10 from the Line Manager of this Shift
3977
- * @property {?number} keyCelebration An Optional Key Celebration the Line Manager observed during this Shift
3978
- * @property {?number} keyChallenge An Optional Key Challenge the Line Manager observed during this Shift
4118
+ * @property {?string} keyCelebration An Optional Key Celebration the Line Manager observed during this Shift
4119
+ * @property {?string} keyChallenge An Optional Key Challenge the Line Manager observed during this Shift
3979
4120
  * @memberof Controllers.Packhouse
3980
4121
  */
3981
4122
 
@@ -4037,6 +4178,13 @@ var _default = ProductionDataExportController;
4037
4178
  * @property {?number} averageClass1Percentage Average Class 1 Packout Percentage during this Hour
4038
4179
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
4039
4180
  * @property {?number} qualityR600IdealSamplesActual Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
4181
+ * @property {?string} primaryIssueCategory Category of the Primary Issue that constrained throughput during this Hour
4182
+ * @property {?string} primaryIssueTag Tag of the Primary Issue that constrained throughput during this Hour
4183
+ * @property {?number} primaryIssuePercentage Percentage representing how much the Primary Issue constrained throughput during this Hour
4184
+ * @property {?string} secondaryIssueCategory Category of the Secondary Issue that constrained throughput during this Hour
4185
+ * @property {?string} secondaryIssueTag Tag of the Secondary Issue that constrained throughput during this Hour
4186
+ * @property {?number} secondaryIssuePercentage Percentage representing how much the Secondary Issue constrained throughput during this Hour
4187
+ * @property {?string} nextHourFocus An Optional Focus for the Next Hour based on experiences and review during this Hour
4040
4188
  * @memberof Controllers.Packhouse
4041
4189
  */
4042
4190
 
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- var version = '2.3.13';
8
+ var version = '2.3.16';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -3145,9 +3145,12 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3145
3145
  *
3146
3146
  * @static
3147
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
3148
3151
  * @return {Promise<ProductionDataExportController.ProductionData>}
3149
3152
  */
3150
- static jsonExport(): Promise<ProductionDataExportController.ProductionData>;
3153
+ static jsonExport(dateBegin: Date, dateEnd: Date, queryParameters?: ProductionDataExportController.JsonExportQueryParameters | undefined): Promise<ProductionDataExportController.ProductionData>;
3151
3154
  /**
3152
3155
  * Retrieve Production Data as an Excel Spreadsheet [GET /packhouse/production-data-export/excel]
3153
3156
  *
@@ -3170,6 +3173,19 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3170
3173
  static csvExport(): Promise<boolean>;
3171
3174
  }
3172
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
+ };
3173
3189
  /**
3174
3190
  * A **PackrunData** Type
3175
3191
  */
@@ -3258,6 +3274,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3258
3274
  * Average Bins Tipped per Hour during this Packrun
3259
3275
  */
3260
3276
  averageBinsTippedPerHour: number;
3277
+ /**
3278
+ * Average Bins Tipped per Hour excluding Downtime during this Packrun
3279
+ */
3280
+ averageBinsTippedPerHourExcludingDowntime: number;
3261
3281
  /**
3262
3282
  * Average Time Taken in Seconds to Tip a Bin during this Packrun
3263
3283
  */
@@ -3882,11 +3902,11 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3882
3902
  /**
3883
3903
  * An Optional Key Celebration the Line Manager observed during this Shift
3884
3904
  */
3885
- keyCelebration: number | null;
3905
+ keyCelebration: string | null;
3886
3906
  /**
3887
3907
  * An Optional Key Challenge the Line Manager observed during this Shift
3888
3908
  */
3889
- keyChallenge: number | null;
3909
+ keyChallenge: string | null;
3890
3910
  };
3891
3911
  /**
3892
3912
  * A **ShiftHourlyData** Type
@@ -4108,6 +4128,34 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
4108
4128
  * Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
4109
4129
  */
4110
4130
  qualityR600IdealSamplesActual: number | null;
4131
+ /**
4132
+ * Category of the Primary Issue that constrained throughput during this Hour
4133
+ */
4134
+ primaryIssueCategory: string | null;
4135
+ /**
4136
+ * Tag of the Primary Issue that constrained throughput during this Hour
4137
+ */
4138
+ primaryIssueTag: string | null;
4139
+ /**
4140
+ * Percentage representing how much the Primary Issue constrained throughput during this Hour
4141
+ */
4142
+ primaryIssuePercentage: number | null;
4143
+ /**
4144
+ * Category of the Secondary Issue that constrained throughput during this Hour
4145
+ */
4146
+ secondaryIssueCategory: string | null;
4147
+ /**
4148
+ * Tag of the Secondary Issue that constrained throughput during this Hour
4149
+ */
4150
+ secondaryIssueTag: string | null;
4151
+ /**
4152
+ * Percentage representing how much the Secondary Issue constrained throughput during this Hour
4153
+ */
4154
+ secondaryIssuePercentage: number | null;
4155
+ /**
4156
+ * An Optional Focus for the Next Hour based on experiences and review during this Hour
4157
+ */
4158
+ nextHourFocus: string | null;
4111
4159
  };
4112
4160
  /**
4113
4161
  * A **DowntimeData** Type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.13",
3
+ "version": "2.3.16",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -20,12 +20,15 @@ class ProductionDataExportController
20
20
  *
21
21
  * @static
22
22
  * @public
23
+ * @param {Date} dateBegin The Beginning Date of the Production Data Export
24
+ * @param {Date} dateEnd The End Date of the Production Data Export
25
+ * @param {ProductionDataExportController.JsonExportQueryParameters} [queryParameters] The Optional Query Parameters
23
26
  * @return {Promise<ProductionDataExportController.ProductionData>}
24
27
  */
25
- static jsonExport()
28
+ static jsonExport(dateBegin, dateEnd, queryParameters = {})
26
29
  {
27
30
  return new Promise((resolve, reject) => {
28
- RequestHelper.getRequest(`/packhouse/production-data-export`)
31
+ RequestHelper.getRequest(`/packhouse/production-data-export`, Object.assign(queryParameters, {dateBegin, dateEnd}))
29
32
  .then((result) => {
30
33
  let resolveValue = (function(){
31
34
  let resultObject = {};
@@ -383,6 +386,22 @@ class ProductionDataExportController
383
386
  packrunsItemObject.averageBinsTippedPerHour = 0;
384
387
  }
385
388
 
389
+ if(typeof packrunsItem === 'object' && 'averageBinsTippedPerHourExcludingDowntime' in packrunsItem)
390
+ {
391
+ packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = (function(){
392
+ if(typeof packrunsItem.averageBinsTippedPerHourExcludingDowntime !== 'number')
393
+ {
394
+ return Number(packrunsItem.averageBinsTippedPerHourExcludingDowntime);
395
+ }
396
+
397
+ return packrunsItem.averageBinsTippedPerHourExcludingDowntime;
398
+ }());
399
+ }
400
+ else
401
+ {
402
+ packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = 0;
403
+ }
404
+
386
405
  if(typeof packrunsItem === 'object' && 'averageTimePerTippedBin' in packrunsItem)
387
406
  {
388
407
  packrunsItemObject.averageTimePerTippedBin = (function(){
@@ -3304,12 +3323,12 @@ class ProductionDataExportController
3304
3323
  return null;
3305
3324
  }
3306
3325
 
3307
- if(typeof shiftsItem.keyCelebration !== 'number')
3326
+ if(typeof shiftsItem.keyCelebration !== 'string')
3308
3327
  {
3309
- return Number.isInteger(Number(shiftsItem.keyCelebration)) ? Number(shiftsItem.keyCelebration) : Math.floor(Number(shiftsItem.keyCelebration));
3328
+ return String(shiftsItem.keyCelebration);
3310
3329
  }
3311
3330
 
3312
- return Number.isInteger(shiftsItem.keyCelebration) ? shiftsItem.keyCelebration : Math.floor(shiftsItem.keyCelebration);
3331
+ return shiftsItem.keyCelebration;
3313
3332
  }());
3314
3333
  }
3315
3334
  else
@@ -3325,12 +3344,12 @@ class ProductionDataExportController
3325
3344
  return null;
3326
3345
  }
3327
3346
 
3328
- if(typeof shiftsItem.keyChallenge !== 'number')
3347
+ if(typeof shiftsItem.keyChallenge !== 'string')
3329
3348
  {
3330
- return Number.isInteger(Number(shiftsItem.keyChallenge)) ? Number(shiftsItem.keyChallenge) : Math.floor(Number(shiftsItem.keyChallenge));
3349
+ return String(shiftsItem.keyChallenge);
3331
3350
  }
3332
3351
 
3333
- return Number.isInteger(shiftsItem.keyChallenge) ? shiftsItem.keyChallenge : Math.floor(shiftsItem.keyChallenge);
3352
+ return shiftsItem.keyChallenge;
3334
3353
  }());
3335
3354
  }
3336
3355
  else
@@ -4399,6 +4418,153 @@ class ProductionDataExportController
4399
4418
  {
4400
4419
  shiftHourlyEntriesItemObject.qualityR600IdealSamplesActual = null;
4401
4420
  }
4421
+
4422
+ if(typeof shiftHourlyEntriesItem === 'object' && 'primaryIssueCategory' in shiftHourlyEntriesItem)
4423
+ {
4424
+ shiftHourlyEntriesItemObject.primaryIssueCategory = (function(){
4425
+ if(shiftHourlyEntriesItem.primaryIssueCategory === null)
4426
+ {
4427
+ return null;
4428
+ }
4429
+
4430
+ if(typeof shiftHourlyEntriesItem.primaryIssueCategory !== 'string')
4431
+ {
4432
+ return String(shiftHourlyEntriesItem.primaryIssueCategory);
4433
+ }
4434
+
4435
+ return shiftHourlyEntriesItem.primaryIssueCategory;
4436
+ }());
4437
+ }
4438
+ else
4439
+ {
4440
+ shiftHourlyEntriesItemObject.primaryIssueCategory = null;
4441
+ }
4442
+
4443
+ if(typeof shiftHourlyEntriesItem === 'object' && 'primaryIssueTag' in shiftHourlyEntriesItem)
4444
+ {
4445
+ shiftHourlyEntriesItemObject.primaryIssueTag = (function(){
4446
+ if(shiftHourlyEntriesItem.primaryIssueTag === null)
4447
+ {
4448
+ return null;
4449
+ }
4450
+
4451
+ if(typeof shiftHourlyEntriesItem.primaryIssueTag !== 'string')
4452
+ {
4453
+ return String(shiftHourlyEntriesItem.primaryIssueTag);
4454
+ }
4455
+
4456
+ return shiftHourlyEntriesItem.primaryIssueTag;
4457
+ }());
4458
+ }
4459
+ else
4460
+ {
4461
+ shiftHourlyEntriesItemObject.primaryIssueTag = null;
4462
+ }
4463
+
4464
+ if(typeof shiftHourlyEntriesItem === 'object' && 'primaryIssuePercentage' in shiftHourlyEntriesItem)
4465
+ {
4466
+ shiftHourlyEntriesItemObject.primaryIssuePercentage = (function(){
4467
+ if(shiftHourlyEntriesItem.primaryIssuePercentage === null)
4468
+ {
4469
+ return null;
4470
+ }
4471
+
4472
+ if(typeof shiftHourlyEntriesItem.primaryIssuePercentage !== 'number')
4473
+ {
4474
+ return Number(shiftHourlyEntriesItem.primaryIssuePercentage);
4475
+ }
4476
+
4477
+ return shiftHourlyEntriesItem.primaryIssuePercentage;
4478
+ }());
4479
+ }
4480
+ else
4481
+ {
4482
+ shiftHourlyEntriesItemObject.primaryIssuePercentage = null;
4483
+ }
4484
+
4485
+ if(typeof shiftHourlyEntriesItem === 'object' && 'secondaryIssueCategory' in shiftHourlyEntriesItem)
4486
+ {
4487
+ shiftHourlyEntriesItemObject.secondaryIssueCategory = (function(){
4488
+ if(shiftHourlyEntriesItem.secondaryIssueCategory === null)
4489
+ {
4490
+ return null;
4491
+ }
4492
+
4493
+ if(typeof shiftHourlyEntriesItem.secondaryIssueCategory !== 'string')
4494
+ {
4495
+ return String(shiftHourlyEntriesItem.secondaryIssueCategory);
4496
+ }
4497
+
4498
+ return shiftHourlyEntriesItem.secondaryIssueCategory;
4499
+ }());
4500
+ }
4501
+ else
4502
+ {
4503
+ shiftHourlyEntriesItemObject.secondaryIssueCategory = null;
4504
+ }
4505
+
4506
+ if(typeof shiftHourlyEntriesItem === 'object' && 'secondaryIssueTag' in shiftHourlyEntriesItem)
4507
+ {
4508
+ shiftHourlyEntriesItemObject.secondaryIssueTag = (function(){
4509
+ if(shiftHourlyEntriesItem.secondaryIssueTag === null)
4510
+ {
4511
+ return null;
4512
+ }
4513
+
4514
+ if(typeof shiftHourlyEntriesItem.secondaryIssueTag !== 'string')
4515
+ {
4516
+ return String(shiftHourlyEntriesItem.secondaryIssueTag);
4517
+ }
4518
+
4519
+ return shiftHourlyEntriesItem.secondaryIssueTag;
4520
+ }());
4521
+ }
4522
+ else
4523
+ {
4524
+ shiftHourlyEntriesItemObject.secondaryIssueTag = null;
4525
+ }
4526
+
4527
+ if(typeof shiftHourlyEntriesItem === 'object' && 'secondaryIssuePercentage' in shiftHourlyEntriesItem)
4528
+ {
4529
+ shiftHourlyEntriesItemObject.secondaryIssuePercentage = (function(){
4530
+ if(shiftHourlyEntriesItem.secondaryIssuePercentage === null)
4531
+ {
4532
+ return null;
4533
+ }
4534
+
4535
+ if(typeof shiftHourlyEntriesItem.secondaryIssuePercentage !== 'number')
4536
+ {
4537
+ return Number(shiftHourlyEntriesItem.secondaryIssuePercentage);
4538
+ }
4539
+
4540
+ return shiftHourlyEntriesItem.secondaryIssuePercentage;
4541
+ }());
4542
+ }
4543
+ else
4544
+ {
4545
+ shiftHourlyEntriesItemObject.secondaryIssuePercentage = null;
4546
+ }
4547
+
4548
+ if(typeof shiftHourlyEntriesItem === 'object' && 'nextHourFocus' in shiftHourlyEntriesItem)
4549
+ {
4550
+ shiftHourlyEntriesItemObject.nextHourFocus = (function(){
4551
+ if(shiftHourlyEntriesItem.nextHourFocus === null)
4552
+ {
4553
+ return null;
4554
+ }
4555
+
4556
+ if(typeof shiftHourlyEntriesItem.nextHourFocus !== 'string')
4557
+ {
4558
+ return String(shiftHourlyEntriesItem.nextHourFocus);
4559
+ }
4560
+
4561
+ return shiftHourlyEntriesItem.nextHourFocus;
4562
+ }());
4563
+ }
4564
+ else
4565
+ {
4566
+ shiftHourlyEntriesItemObject.nextHourFocus = null;
4567
+ }
4402
4568
 
4403
4569
  return shiftHourlyEntriesItemObject;
4404
4570
  }());
@@ -4931,6 +5097,15 @@ class ProductionDataExportController
4931
5097
 
4932
5098
  export default ProductionDataExportController;
4933
5099
 
5100
+ /**
5101
+ * The Optional Query Parameters for the jsonExport Function
5102
+ *
5103
+ * @typedef {Object} ProductionDataExportController.JsonExportQueryParameters
5104
+ * @property {number[]} [siteIds] A List of Site IDs to Filter by
5105
+ * @property {string[]} [packingLineIds] A List of Packing Line IDs to Filter by
5106
+ * @memberof Controllers.Packhouse
5107
+ */
5108
+
4934
5109
  /**
4935
5110
  * A **PackrunData** Type
4936
5111
  *
@@ -4956,6 +5131,7 @@ export default ProductionDataExportController;
4956
5131
  * @property {number} totalNetWeightTipped Total Net Fruit Weight Tipped during this Packrun
4957
5132
  * @property {number} averageNetWeightPerBin Average Net Fruit Weight per Bin for this Packrun
4958
5133
  * @property {number} averageBinsTippedPerHour Average Bins Tipped per Hour during this Packrun
5134
+ * @property {number} averageBinsTippedPerHourExcludingDowntime Average Bins Tipped per Hour excluding Downtime during this Packrun
4959
5135
  * @property {number} averageTimePerTippedBin Average Time Taken in Seconds to Tip a Bin during this Packrun
4960
5136
  * @property {number} averageBinTipWeightThroughput Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
4961
5137
  * @property {number} softSortEventsPerBin Number of Soft-Sort Events per Bin Tipped during this Packrun
@@ -5117,8 +5293,8 @@ export default ProductionDataExportController;
5117
5293
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Shift
5118
5294
  * @property {?number} qualityR600IdealSamplesActual Actual Percentage of R600 Samples that were in the Ideal Range during this Shift
5119
5295
  * @property {?number} satisfactionRating An Optional Satisfaction Rating between 1 and 10 from the Line Manager of this Shift
5120
- * @property {?number} keyCelebration An Optional Key Celebration the Line Manager observed during this Shift
5121
- * @property {?number} keyChallenge An Optional Key Challenge the Line Manager observed during this Shift
5296
+ * @property {?string} keyCelebration An Optional Key Celebration the Line Manager observed during this Shift
5297
+ * @property {?string} keyChallenge An Optional Key Challenge the Line Manager observed during this Shift
5122
5298
  * @memberof Controllers.Packhouse
5123
5299
  */
5124
5300
 
@@ -5180,6 +5356,13 @@ export default ProductionDataExportController;
5180
5356
  * @property {?number} averageClass1Percentage Average Class 1 Packout Percentage during this Hour
5181
5357
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
5182
5358
  * @property {?number} qualityR600IdealSamplesActual Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
5359
+ * @property {?string} primaryIssueCategory Category of the Primary Issue that constrained throughput during this Hour
5360
+ * @property {?string} primaryIssueTag Tag of the Primary Issue that constrained throughput during this Hour
5361
+ * @property {?number} primaryIssuePercentage Percentage representing how much the Primary Issue constrained throughput during this Hour
5362
+ * @property {?string} secondaryIssueCategory Category of the Secondary Issue that constrained throughput during this Hour
5363
+ * @property {?string} secondaryIssueTag Tag of the Secondary Issue that constrained throughput during this Hour
5364
+ * @property {?number} secondaryIssuePercentage Percentage representing how much the Secondary Issue constrained throughput during this Hour
5365
+ * @property {?string} nextHourFocus An Optional Focus for the Next Hour based on experiences and review during this Hour
5183
5366
  * @memberof Controllers.Packhouse
5184
5367
  */
5185
5368
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.3.13';
2
+ export const version = '2.3.16';