@ricado/api-client 2.3.15 → 2.3.17

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.
@@ -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
 
@@ -8,10 +8,12 @@
8
8
  * @namespace Controllers.Packhouse
9
9
  */
10
10
  import ProductionDataExportController from './ProductionDataExportController';
11
+ import Integrations from './Integrations/index';
11
12
  import Site from './Site/index';
12
13
 
13
14
  const Packhouse = {
14
15
  ProductionDataExportController,
16
+ Integrations,
15
17
  Site,
16
18
  };
17
19
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.3.15';
2
+ export const version = '2.3.17';