@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
@@ -159,6 +159,30 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
159
159
  */
160
160
 
161
161
  _this.timeBatches = undefined;
162
+ /**
163
+ * The FreshPack Grader ID associated with this Packrun
164
+ *
165
+ * @type {?number}
166
+ * @public
167
+ */
168
+
169
+ _this.freshPackGraderId = undefined;
170
+ /**
171
+ * The FreshPack Bin Lot Code associated with this Packrun
172
+ *
173
+ * @type {?string}
174
+ * @public
175
+ */
176
+
177
+ _this.freshPackBinLotCode = undefined;
178
+ /**
179
+ * The FreshPack Produce Code associated with this Packrun
180
+ *
181
+ * @type {?string}
182
+ * @public
183
+ */
184
+
185
+ _this.freshPackProduceCode = undefined;
162
186
  /**
163
187
  * Whether the Packrun has been deleted
164
188
  *
@@ -364,6 +388,48 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
364
388
  }();
365
389
  }
366
390
 
391
+ if ('freshPackGraderId' in jsonObject) {
392
+ model.freshPackGraderId = function () {
393
+ if (jsonObject['freshPackGraderId'] === null) {
394
+ return null;
395
+ }
396
+
397
+ if (typeof jsonObject['freshPackGraderId'] !== 'number') {
398
+ return Number.isInteger(Number(jsonObject['freshPackGraderId'])) ? Number(jsonObject['freshPackGraderId']) : Math.floor(Number(jsonObject['freshPackGraderId']));
399
+ }
400
+
401
+ return Number.isInteger(jsonObject['freshPackGraderId']) ? jsonObject['freshPackGraderId'] : Math.floor(jsonObject['freshPackGraderId']);
402
+ }();
403
+ }
404
+
405
+ if ('freshPackBinLotCode' in jsonObject) {
406
+ model.freshPackBinLotCode = function () {
407
+ if (jsonObject['freshPackBinLotCode'] === null) {
408
+ return null;
409
+ }
410
+
411
+ if (typeof jsonObject['freshPackBinLotCode'] !== 'string') {
412
+ return String(jsonObject['freshPackBinLotCode']);
413
+ }
414
+
415
+ return jsonObject['freshPackBinLotCode'];
416
+ }();
417
+ }
418
+
419
+ if ('freshPackProduceCode' in jsonObject) {
420
+ model.freshPackProduceCode = function () {
421
+ if (jsonObject['freshPackProduceCode'] === null) {
422
+ return null;
423
+ }
424
+
425
+ if (typeof jsonObject['freshPackProduceCode'] !== 'string') {
426
+ return String(jsonObject['freshPackProduceCode']);
427
+ }
428
+
429
+ return jsonObject['freshPackProduceCode'];
430
+ }();
431
+ }
432
+
367
433
  if ('deleted' in jsonObject) {
368
434
  model.deleted = function () {
369
435
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -127,6 +127,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
127
127
  */
128
128
 
129
129
  _this.averageManningTarget = undefined;
130
+ /**
131
+ * The Average Cost per Person working in all Areas for this Hour
132
+ *
133
+ * @type {?number}
134
+ * @public
135
+ */
136
+
137
+ _this.averageCostPerManningUnit = undefined;
130
138
  /**
131
139
  * The Percentage of Total Tray Equivalents that are Layered for this Hour
132
140
  *
@@ -151,10 +159,18 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
151
159
  */
152
160
 
153
161
  _this.qualityR600IdealSamplesPercentage = undefined;
162
+ /**
163
+ * The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
164
+ *
165
+ * @type {?number}
166
+ * @public
167
+ */
168
+
169
+ _this.averageQualityR600IdealSamplesTarget = undefined;
154
170
  /**
155
171
  * An Array of Custom Quality Data Items for this Hour
156
172
  *
157
- * @type {Array<{id: string, name: string, type: string, value: number}>}
173
+ * @type {Array<{id: string, name: string, type: string, value: number, averageTarget: number}>}
158
174
  * @public
159
175
  */
160
176
 
@@ -215,6 +231,30 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
215
231
  */
216
232
 
217
233
  _this.class1TraysPerHourExcludingDowntimeTarget = undefined;
234
+ /**
235
+ * The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
236
+ *
237
+ * @type {?number}
238
+ * @public
239
+ */
240
+
241
+ _this.averageClass1TraysPerHourAdjustedTarget = undefined;
242
+ /**
243
+ * The Average Cost per Tray Equivalent for this Hour
244
+ *
245
+ * @type {?number}
246
+ * @public
247
+ */
248
+
249
+ _this.averageCostPerTray = undefined;
250
+ /**
251
+ * The Average Cost per Tray Equivalent Target for this Hour
252
+ *
253
+ * @type {?number}
254
+ * @public
255
+ */
256
+
257
+ _this.averageCostPerTrayTarget = undefined;
218
258
  /**
219
259
  * The Primary Issue Category for this Hourly Entry
220
260
  *
@@ -231,6 +271,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
231
271
  */
232
272
 
233
273
  _this.primaryIssueTag = undefined;
274
+ /**
275
+ * A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
276
+ *
277
+ * @type {?number}
278
+ * @public
279
+ */
280
+
281
+ _this.primaryIssuePercentage = undefined;
234
282
  /**
235
283
  * The Secondary Issue Category for this Hourly Entry
236
284
  *
@@ -247,6 +295,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
247
295
  */
248
296
 
249
297
  _this.secondaryIssueTag = undefined;
298
+ /**
299
+ * A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
300
+ *
301
+ * @type {?number}
302
+ * @public
303
+ */
304
+
305
+ _this.secondaryIssuePercentage = undefined;
250
306
  /**
251
307
  * An Optional Focus for the Next Hour
252
308
  *
@@ -492,6 +548,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
492
548
  }();
493
549
  }
494
550
 
551
+ if ('averageCostPerManningUnit' in jsonObject) {
552
+ model.averageCostPerManningUnit = function () {
553
+ if (jsonObject['averageCostPerManningUnit'] === null) {
554
+ return null;
555
+ }
556
+
557
+ if (typeof jsonObject['averageCostPerManningUnit'] !== 'number') {
558
+ return Number(jsonObject['averageCostPerManningUnit']);
559
+ }
560
+
561
+ return jsonObject['averageCostPerManningUnit'];
562
+ }();
563
+ }
564
+
495
565
  if ('layeredTrayPercentage' in jsonObject) {
496
566
  model.layeredTrayPercentage = function () {
497
567
  if (jsonObject['layeredTrayPercentage'] === null) {
@@ -534,6 +604,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
534
604
  }();
535
605
  }
536
606
 
607
+ if ('averageQualityR600IdealSamplesTarget' in jsonObject) {
608
+ model.averageQualityR600IdealSamplesTarget = function () {
609
+ if (jsonObject['averageQualityR600IdealSamplesTarget'] === null) {
610
+ return null;
611
+ }
612
+
613
+ if (typeof jsonObject['averageQualityR600IdealSamplesTarget'] !== 'number') {
614
+ return Number(jsonObject['averageQualityR600IdealSamplesTarget']);
615
+ }
616
+
617
+ return jsonObject['averageQualityR600IdealSamplesTarget'];
618
+ }();
619
+ }
620
+
537
621
  if ('customQualityData' in jsonObject) {
538
622
  model.customQualityData = function () {
539
623
  if (Array.isArray(jsonObject['customQualityData']) !== true) {
@@ -592,6 +676,18 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
592
676
  customQualityDataItemObject.value = 0;
593
677
  }
594
678
 
679
+ if (_typeof(customQualityDataItem) === 'object' && 'averageTarget' in customQualityDataItem) {
680
+ customQualityDataItemObject.averageTarget = function () {
681
+ if (typeof customQualityDataItem.averageTarget !== 'number') {
682
+ return Number(customQualityDataItem.averageTarget);
683
+ }
684
+
685
+ return customQualityDataItem.averageTarget;
686
+ }();
687
+ } else {
688
+ customQualityDataItemObject.averageTarget = 0;
689
+ }
690
+
595
691
  return customQualityDataItemObject;
596
692
  }();
597
693
  });
@@ -668,6 +764,48 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
668
764
  }();
669
765
  }
670
766
 
767
+ if ('averageClass1TraysPerHourAdjustedTarget' in jsonObject) {
768
+ model.averageClass1TraysPerHourAdjustedTarget = function () {
769
+ if (jsonObject['averageClass1TraysPerHourAdjustedTarget'] === null) {
770
+ return null;
771
+ }
772
+
773
+ if (typeof jsonObject['averageClass1TraysPerHourAdjustedTarget'] !== 'number') {
774
+ return Number.isInteger(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget'])) ? Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']) : Math.floor(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']));
775
+ }
776
+
777
+ return Number.isInteger(jsonObject['averageClass1TraysPerHourAdjustedTarget']) ? jsonObject['averageClass1TraysPerHourAdjustedTarget'] : Math.floor(jsonObject['averageClass1TraysPerHourAdjustedTarget']);
778
+ }();
779
+ }
780
+
781
+ if ('averageCostPerTray' in jsonObject) {
782
+ model.averageCostPerTray = function () {
783
+ if (jsonObject['averageCostPerTray'] === null) {
784
+ return null;
785
+ }
786
+
787
+ if (typeof jsonObject['averageCostPerTray'] !== 'number') {
788
+ return Number(jsonObject['averageCostPerTray']);
789
+ }
790
+
791
+ return jsonObject['averageCostPerTray'];
792
+ }();
793
+ }
794
+
795
+ if ('averageCostPerTrayTarget' in jsonObject) {
796
+ model.averageCostPerTrayTarget = function () {
797
+ if (jsonObject['averageCostPerTrayTarget'] === null) {
798
+ return null;
799
+ }
800
+
801
+ if (typeof jsonObject['averageCostPerTrayTarget'] !== 'number') {
802
+ return Number(jsonObject['averageCostPerTrayTarget']);
803
+ }
804
+
805
+ return jsonObject['averageCostPerTrayTarget'];
806
+ }();
807
+ }
808
+
671
809
  if ('primaryIssueCategory' in jsonObject) {
672
810
  model.primaryIssueCategory = function () {
673
811
  if (jsonObject['primaryIssueCategory'] === null) {
@@ -696,6 +834,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
696
834
  }();
697
835
  }
698
836
 
837
+ if ('primaryIssuePercentage' in jsonObject) {
838
+ model.primaryIssuePercentage = function () {
839
+ if (jsonObject['primaryIssuePercentage'] === null) {
840
+ return null;
841
+ }
842
+
843
+ if (typeof jsonObject['primaryIssuePercentage'] !== 'number') {
844
+ return Number(jsonObject['primaryIssuePercentage']);
845
+ }
846
+
847
+ return jsonObject['primaryIssuePercentage'];
848
+ }();
849
+ }
850
+
699
851
  if ('secondaryIssueCategory' in jsonObject) {
700
852
  model.secondaryIssueCategory = function () {
701
853
  if (jsonObject['secondaryIssueCategory'] === null) {
@@ -724,6 +876,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
724
876
  }();
725
877
  }
726
878
 
879
+ if ('secondaryIssuePercentage' in jsonObject) {
880
+ model.secondaryIssuePercentage = function () {
881
+ if (jsonObject['secondaryIssuePercentage'] === null) {
882
+ return null;
883
+ }
884
+
885
+ if (typeof jsonObject['secondaryIssuePercentage'] !== 'number') {
886
+ return Number(jsonObject['secondaryIssuePercentage']);
887
+ }
888
+
889
+ return jsonObject['secondaryIssuePercentage'];
890
+ }();
891
+ }
892
+
727
893
  if ('nextHourFocus' in jsonObject) {
728
894
  model.nextHourFocus = function () {
729
895
  if (jsonObject['nextHourFocus'] === null) {