@ricado/api-client 2.1.1 → 2.2.0

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.
Files changed (41) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  3. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  4. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  5. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  6. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  7. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  8. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  9. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  10. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  11. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  12. package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
  13. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  14. package/lib/Models/Packhouse/Site/PackingLineModel.js +524 -1
  15. package/lib/Models/Packhouse/Site/PackrunModel.js +66 -0
  16. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +167 -1
  17. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  18. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  19. package/lib/Models/Packhouse/Site/index.js +12 -0
  20. package/lib/PackageVersion.js +1 -1
  21. package/lib/index.d.ts +2241 -146
  22. package/package.json +1 -1
  23. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  24. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  25. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  26. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  27. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  28. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  29. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  30. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  31. package/src/Controllers/Packhouse/Site/index.js +8 -0
  32. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  33. package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
  34. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  35. package/src/Models/Packhouse/Site/PackingLineModel.js +705 -1
  36. package/src/Models/Packhouse/Site/PackrunModel.js +75 -0
  37. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +192 -1
  38. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  39. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  40. package/src/Models/Packhouse/Site/index.js +8 -0
  41. package/src/PackageVersion.js +1 -1
@@ -129,6 +129,30 @@ class PackrunModel extends BaseModel
129
129
  */
130
130
  this.timeBatches = undefined;
131
131
 
132
+ /**
133
+ * The FreshPack Grader ID associated with this Packrun
134
+ *
135
+ * @type {?number}
136
+ * @public
137
+ */
138
+ this.freshPackGraderId = undefined;
139
+
140
+ /**
141
+ * The FreshPack Bin Lot Code associated with this Packrun
142
+ *
143
+ * @type {?string}
144
+ * @public
145
+ */
146
+ this.freshPackBinLotCode = undefined;
147
+
148
+ /**
149
+ * The FreshPack Produce Code associated with this Packrun
150
+ *
151
+ * @type {?string}
152
+ * @public
153
+ */
154
+ this.freshPackProduceCode = undefined;
155
+
132
156
  /**
133
157
  * Whether the Packrun has been deleted
134
158
  *
@@ -363,6 +387,57 @@ class PackrunModel extends BaseModel
363
387
  }());
364
388
  }
365
389
 
390
+ if('freshPackGraderId' in jsonObject)
391
+ {
392
+ model.freshPackGraderId = (function(){
393
+ if(jsonObject['freshPackGraderId'] === null)
394
+ {
395
+ return null;
396
+ }
397
+
398
+ if(typeof jsonObject['freshPackGraderId'] !== 'number')
399
+ {
400
+ return Number.isInteger(Number(jsonObject['freshPackGraderId'])) ? Number(jsonObject['freshPackGraderId']) : Math.floor(Number(jsonObject['freshPackGraderId']));
401
+ }
402
+
403
+ return Number.isInteger(jsonObject['freshPackGraderId']) ? jsonObject['freshPackGraderId'] : Math.floor(jsonObject['freshPackGraderId']);
404
+ }());
405
+ }
406
+
407
+ if('freshPackBinLotCode' in jsonObject)
408
+ {
409
+ model.freshPackBinLotCode = (function(){
410
+ if(jsonObject['freshPackBinLotCode'] === null)
411
+ {
412
+ return null;
413
+ }
414
+
415
+ if(typeof jsonObject['freshPackBinLotCode'] !== 'string')
416
+ {
417
+ return String(jsonObject['freshPackBinLotCode']);
418
+ }
419
+
420
+ return jsonObject['freshPackBinLotCode'];
421
+ }());
422
+ }
423
+
424
+ if('freshPackProduceCode' in jsonObject)
425
+ {
426
+ model.freshPackProduceCode = (function(){
427
+ if(jsonObject['freshPackProduceCode'] === null)
428
+ {
429
+ return null;
430
+ }
431
+
432
+ if(typeof jsonObject['freshPackProduceCode'] !== 'string')
433
+ {
434
+ return String(jsonObject['freshPackProduceCode']);
435
+ }
436
+
437
+ return jsonObject['freshPackProduceCode'];
438
+ }());
439
+ }
440
+
366
441
  if('deleted' in jsonObject)
367
442
  {
368
443
  model.deleted = (function(){
@@ -97,6 +97,14 @@ class ShiftHourlyEntryModel extends BaseModel
97
97
  */
98
98
  this.averageManningTarget = undefined;
99
99
 
100
+ /**
101
+ * The Average Cost per Person working in all Areas for this Hour
102
+ *
103
+ * @type {?number}
104
+ * @public
105
+ */
106
+ this.averageCostPerManningUnit = undefined;
107
+
100
108
  /**
101
109
  * The Percentage of Total Tray Equivalents that are Layered for this Hour
102
110
  *
@@ -121,10 +129,18 @@ class ShiftHourlyEntryModel extends BaseModel
121
129
  */
122
130
  this.qualityR600IdealSamplesPercentage = undefined;
123
131
 
132
+ /**
133
+ * The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
134
+ *
135
+ * @type {?number}
136
+ * @public
137
+ */
138
+ this.averageQualityR600IdealSamplesTarget = undefined;
139
+
124
140
  /**
125
141
  * An Array of Custom Quality Data Items for this Hour
126
142
  *
127
- * @type {Array<{id: string, name: string, type: string, value: number}>}
143
+ * @type {Array<{id: string, name: string, type: string, value: number, averageTarget: number}>}
128
144
  * @public
129
145
  */
130
146
  this.customQualityData = undefined;
@@ -185,6 +201,30 @@ class ShiftHourlyEntryModel extends BaseModel
185
201
  */
186
202
  this.class1TraysPerHourExcludingDowntimeTarget = undefined;
187
203
 
204
+ /**
205
+ * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
206
+ *
207
+ * @type {?number}
208
+ * @public
209
+ */
210
+ this.averageClass1TraysPerHourAdjustedTarget = undefined;
211
+
212
+ /**
213
+ * The Average Cost per Tray Equivalent for this Hour
214
+ *
215
+ * @type {?number}
216
+ * @public
217
+ */
218
+ this.averageCostPerTray = undefined;
219
+
220
+ /**
221
+ * The Average Cost per Tray Equivalent Target for this Hour
222
+ *
223
+ * @type {?number}
224
+ * @public
225
+ */
226
+ this.averageCostPerTrayTarget = undefined;
227
+
188
228
  /**
189
229
  * The Primary Issue Category for this Hourly Entry
190
230
  *
@@ -201,6 +241,14 @@ class ShiftHourlyEntryModel extends BaseModel
201
241
  */
202
242
  this.primaryIssueTag = undefined;
203
243
 
244
+ /**
245
+ * A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
246
+ *
247
+ * @type {?number}
248
+ * @public
249
+ */
250
+ this.primaryIssuePercentage = undefined;
251
+
204
252
  /**
205
253
  * The Secondary Issue Category for this Hourly Entry
206
254
  *
@@ -217,6 +265,14 @@ class ShiftHourlyEntryModel extends BaseModel
217
265
  */
218
266
  this.secondaryIssueTag = undefined;
219
267
 
268
+ /**
269
+ * A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
270
+ *
271
+ * @type {?number}
272
+ * @public
273
+ */
274
+ this.secondaryIssuePercentage = undefined;
275
+
220
276
  /**
221
277
  * An Optional Focus for the Next Hour
222
278
  *
@@ -482,6 +538,23 @@ class ShiftHourlyEntryModel extends BaseModel
482
538
  }());
483
539
  }
484
540
 
541
+ if('averageCostPerManningUnit' in jsonObject)
542
+ {
543
+ model.averageCostPerManningUnit = (function(){
544
+ if(jsonObject['averageCostPerManningUnit'] === null)
545
+ {
546
+ return null;
547
+ }
548
+
549
+ if(typeof jsonObject['averageCostPerManningUnit'] !== 'number')
550
+ {
551
+ return Number(jsonObject['averageCostPerManningUnit']);
552
+ }
553
+
554
+ return jsonObject['averageCostPerManningUnit'];
555
+ }());
556
+ }
557
+
485
558
  if('layeredTrayPercentage' in jsonObject)
486
559
  {
487
560
  model.layeredTrayPercentage = (function(){
@@ -533,6 +606,23 @@ class ShiftHourlyEntryModel extends BaseModel
533
606
  }());
534
607
  }
535
608
 
609
+ if('averageQualityR600IdealSamplesTarget' in jsonObject)
610
+ {
611
+ model.averageQualityR600IdealSamplesTarget = (function(){
612
+ if(jsonObject['averageQualityR600IdealSamplesTarget'] === null)
613
+ {
614
+ return null;
615
+ }
616
+
617
+ if(typeof jsonObject['averageQualityR600IdealSamplesTarget'] !== 'number')
618
+ {
619
+ return Number(jsonObject['averageQualityR600IdealSamplesTarget']);
620
+ }
621
+
622
+ return jsonObject['averageQualityR600IdealSamplesTarget'];
623
+ }());
624
+ }
625
+
536
626
  if('customQualityData' in jsonObject)
537
627
  {
538
628
  model.customQualityData = (function(){
@@ -608,6 +698,22 @@ class ShiftHourlyEntryModel extends BaseModel
608
698
  {
609
699
  customQualityDataItemObject.value = 0;
610
700
  }
701
+
702
+ if(typeof customQualityDataItem === 'object' && 'averageTarget' in customQualityDataItem)
703
+ {
704
+ customQualityDataItemObject.averageTarget = (function(){
705
+ if(typeof customQualityDataItem.averageTarget !== 'number')
706
+ {
707
+ return Number(customQualityDataItem.averageTarget);
708
+ }
709
+
710
+ return customQualityDataItem.averageTarget;
711
+ }());
712
+ }
713
+ else
714
+ {
715
+ customQualityDataItemObject.averageTarget = 0;
716
+ }
611
717
 
612
718
  return customQualityDataItemObject;
613
719
  }());
@@ -699,6 +805,57 @@ class ShiftHourlyEntryModel extends BaseModel
699
805
  }());
700
806
  }
701
807
 
808
+ if('averageClass1TraysPerHourAdjustedTarget' in jsonObject)
809
+ {
810
+ model.averageClass1TraysPerHourAdjustedTarget = (function(){
811
+ if(jsonObject['averageClass1TraysPerHourAdjustedTarget'] === null)
812
+ {
813
+ return null;
814
+ }
815
+
816
+ if(typeof jsonObject['averageClass1TraysPerHourAdjustedTarget'] !== 'number')
817
+ {
818
+ return Number.isInteger(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget'])) ? Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']) : Math.floor(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']));
819
+ }
820
+
821
+ return Number.isInteger(jsonObject['averageClass1TraysPerHourAdjustedTarget']) ? jsonObject['averageClass1TraysPerHourAdjustedTarget'] : Math.floor(jsonObject['averageClass1TraysPerHourAdjustedTarget']);
822
+ }());
823
+ }
824
+
825
+ if('averageCostPerTray' in jsonObject)
826
+ {
827
+ model.averageCostPerTray = (function(){
828
+ if(jsonObject['averageCostPerTray'] === null)
829
+ {
830
+ return null;
831
+ }
832
+
833
+ if(typeof jsonObject['averageCostPerTray'] !== 'number')
834
+ {
835
+ return Number(jsonObject['averageCostPerTray']);
836
+ }
837
+
838
+ return jsonObject['averageCostPerTray'];
839
+ }());
840
+ }
841
+
842
+ if('averageCostPerTrayTarget' in jsonObject)
843
+ {
844
+ model.averageCostPerTrayTarget = (function(){
845
+ if(jsonObject['averageCostPerTrayTarget'] === null)
846
+ {
847
+ return null;
848
+ }
849
+
850
+ if(typeof jsonObject['averageCostPerTrayTarget'] !== 'number')
851
+ {
852
+ return Number(jsonObject['averageCostPerTrayTarget']);
853
+ }
854
+
855
+ return jsonObject['averageCostPerTrayTarget'];
856
+ }());
857
+ }
858
+
702
859
  if('primaryIssueCategory' in jsonObject)
703
860
  {
704
861
  model.primaryIssueCategory = (function(){
@@ -733,6 +890,23 @@ class ShiftHourlyEntryModel extends BaseModel
733
890
  }());
734
891
  }
735
892
 
893
+ if('primaryIssuePercentage' in jsonObject)
894
+ {
895
+ model.primaryIssuePercentage = (function(){
896
+ if(jsonObject['primaryIssuePercentage'] === null)
897
+ {
898
+ return null;
899
+ }
900
+
901
+ if(typeof jsonObject['primaryIssuePercentage'] !== 'number')
902
+ {
903
+ return Number(jsonObject['primaryIssuePercentage']);
904
+ }
905
+
906
+ return jsonObject['primaryIssuePercentage'];
907
+ }());
908
+ }
909
+
736
910
  if('secondaryIssueCategory' in jsonObject)
737
911
  {
738
912
  model.secondaryIssueCategory = (function(){
@@ -767,6 +941,23 @@ class ShiftHourlyEntryModel extends BaseModel
767
941
  }());
768
942
  }
769
943
 
944
+ if('secondaryIssuePercentage' in jsonObject)
945
+ {
946
+ model.secondaryIssuePercentage = (function(){
947
+ if(jsonObject['secondaryIssuePercentage'] === null)
948
+ {
949
+ return null;
950
+ }
951
+
952
+ if(typeof jsonObject['secondaryIssuePercentage'] !== 'number')
953
+ {
954
+ return Number(jsonObject['secondaryIssuePercentage']);
955
+ }
956
+
957
+ return jsonObject['secondaryIssuePercentage'];
958
+ }());
959
+ }
960
+
770
961
  if('nextHourFocus' in jsonObject)
771
962
  {
772
963
  model.nextHourFocus = (function(){