@ricado/api-client 2.3.15 → 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.
@@ -318,6 +318,18 @@ var ProductionDataExportController = /*#__PURE__*/function () {
318
318
  packrunsItemObject.averageBinsTippedPerHour = 0;
319
319
  }
320
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
+
321
333
  if (_typeof(packrunsItem) === 'object' && 'averageTimePerTippedBin' in packrunsItem) {
322
334
  packrunsItemObject.averageTimePerTippedBin = function () {
323
335
  if (typeof packrunsItem.averageTimePerTippedBin !== 'number') {
@@ -3374,6 +3386,118 @@ var ProductionDataExportController = /*#__PURE__*/function () {
3374
3386
  shiftHourlyEntriesItemObject.qualityR600IdealSamplesActual = null;
3375
3387
  }
3376
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
+
3377
3501
  return shiftHourlyEntriesItemObject;
3378
3502
  }();
3379
3503
  });
@@ -3829,6 +3953,7 @@ var _default = ProductionDataExportController;
3829
3953
  * @property {number} totalNetWeightTipped Total Net Fruit Weight Tipped during this Packrun
3830
3954
  * @property {number} averageNetWeightPerBin Average Net Fruit Weight per Bin for this Packrun
3831
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
3832
3957
  * @property {number} averageTimePerTippedBin Average Time Taken in Seconds to Tip a Bin during this Packrun
3833
3958
  * @property {number} averageBinTipWeightThroughput Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
3834
3959
  * @property {number} softSortEventsPerBin Number of Soft-Sort Events per Bin Tipped during this Packrun
@@ -4053,6 +4178,13 @@ var _default = ProductionDataExportController;
4053
4178
  * @property {?number} averageClass1Percentage Average Class 1 Packout Percentage during this Hour
4054
4179
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
4055
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
4056
4188
  * @memberof Controllers.Packhouse
4057
4189
  */
4058
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.15';
8
+ var version = '2.3.16';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -3274,6 +3274,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
3274
3274
  * Average Bins Tipped per Hour during this Packrun
3275
3275
  */
3276
3276
  averageBinsTippedPerHour: number;
3277
+ /**
3278
+ * Average Bins Tipped per Hour excluding Downtime during this Packrun
3279
+ */
3280
+ averageBinsTippedPerHourExcludingDowntime: number;
3277
3281
  /**
3278
3282
  * Average Time Taken in Seconds to Tip a Bin during this Packrun
3279
3283
  */
@@ -4124,6 +4128,34 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
4124
4128
  * Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
4125
4129
  */
4126
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;
4127
4159
  };
4128
4160
  /**
4129
4161
  * A **DowntimeData** Type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.15",
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"
@@ -386,6 +386,22 @@ class ProductionDataExportController
386
386
  packrunsItemObject.averageBinsTippedPerHour = 0;
387
387
  }
388
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
+
389
405
  if(typeof packrunsItem === 'object' && 'averageTimePerTippedBin' in packrunsItem)
390
406
  {
391
407
  packrunsItemObject.averageTimePerTippedBin = (function(){
@@ -4402,6 +4418,153 @@ class ProductionDataExportController
4402
4418
  {
4403
4419
  shiftHourlyEntriesItemObject.qualityR600IdealSamplesActual = null;
4404
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
+ }
4405
4568
 
4406
4569
  return shiftHourlyEntriesItemObject;
4407
4570
  }());
@@ -4968,6 +5131,7 @@ export default ProductionDataExportController;
4968
5131
  * @property {number} totalNetWeightTipped Total Net Fruit Weight Tipped during this Packrun
4969
5132
  * @property {number} averageNetWeightPerBin Average Net Fruit Weight per Bin for this Packrun
4970
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
4971
5135
  * @property {number} averageTimePerTippedBin Average Time Taken in Seconds to Tip a Bin during this Packrun
4972
5136
  * @property {number} averageBinTipWeightThroughput Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
4973
5137
  * @property {number} softSortEventsPerBin Number of Soft-Sort Events per Bin Tipped during this Packrun
@@ -5192,6 +5356,13 @@ export default ProductionDataExportController;
5192
5356
  * @property {?number} averageClass1Percentage Average Class 1 Packout Percentage during this Hour
5193
5357
  * @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
5194
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
5195
5366
  * @memberof Controllers.Packhouse
5196
5367
  */
5197
5368
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.3.15';
2
+ export const version = '2.3.16';