@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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/index.js +12 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +524 -1
- package/lib/Models/Packhouse/Site/PackrunModel.js +66 -0
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +167 -1
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +2241 -146
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/index.js +8 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +705 -1
- package/src/Models/Packhouse/Site/PackrunModel.js +75 -0
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +192 -1
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/PackageVersion.js +1 -1
|
@@ -183,6 +183,7 @@ var _default = PackingLineController;
|
|
|
183
183
|
* @property {Object[]} [sizers] The Sizer Objects that belong to this Packing Line
|
|
184
184
|
* @property {Object[]} [binTips] The Bin Tip Objects that belong to this this Packing Line
|
|
185
185
|
* @property {Object[]} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
|
|
186
|
+
* @property {?Object} [secondaryPackingLine] An Optional Secondary Packing Line Reference
|
|
186
187
|
* @property {?Object} [automation] The Automation Object for this Packing Line
|
|
187
188
|
* @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
|
|
188
189
|
* @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
|
|
@@ -201,6 +202,7 @@ var _default = PackingLineController;
|
|
|
201
202
|
* @property {Object[]} [sizers] The Sizer Objects that belong to this Packing Line
|
|
202
203
|
* @property {Object[]} [binTips] The Bin Tip Objects that belong to this this Packing Line
|
|
203
204
|
* @property {Object[]} [rejectBinScales] The Reject Bin Scale Objects that belong to this Packing Line
|
|
205
|
+
* @property {?Object} [secondaryPackingLine] An Optional Secondary Packing Line Reference
|
|
204
206
|
* @property {?Object} [automation] The Automation Object for this Packing Line
|
|
205
207
|
* @property {string[]} [alarmGroups] The Alarm Groups that are used by this Packing Line
|
|
206
208
|
* @property {Object[]} [classTypes] The Class Types that are defined for this Packing Line
|
|
@@ -210,12 +212,34 @@ var _default = PackingLineController;
|
|
|
210
212
|
* @memberof Controllers.Packhouse.Site
|
|
211
213
|
*/
|
|
212
214
|
|
|
215
|
+
/**
|
|
216
|
+
* A **ShiftTaskTagDefinition** Type
|
|
217
|
+
*
|
|
218
|
+
* @typedef {Object} PackingLineController.ShiftTaskTagDefinition
|
|
219
|
+
* @property {string} id The Unique Tag ID
|
|
220
|
+
* @property {string} name The Tag Display Name
|
|
221
|
+
* @property {string} color The Tag Display Color
|
|
222
|
+
* @property {boolean} deleted Whether the Tag has been Deleted
|
|
223
|
+
* @memberof Controllers.Packhouse.Site
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* A **ShiftTaskDefinition** Type
|
|
228
|
+
*
|
|
229
|
+
* @typedef {Object} PackingLineController.ShiftTaskDefinition
|
|
230
|
+
* @property {string} type The Task Type
|
|
231
|
+
* @property {Array<PackingLineController.ShiftTaskTagDefinition>} tags An Array of Tags defined for the Task Type
|
|
232
|
+
* @memberof Controllers.Packhouse.Site
|
|
233
|
+
*/
|
|
234
|
+
|
|
213
235
|
/**
|
|
214
236
|
* A **ShiftManagement** Type
|
|
215
237
|
*
|
|
216
238
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
217
|
-
* @property {{currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}} points The Points used for Shift Management
|
|
239
|
+
* @property {{currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}} points The Points used for Shift Management
|
|
240
|
+
* @property {Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>} customQualityConfiguration An Optional Array of Configuration Data for Custom Qualities in Shift Management
|
|
218
241
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
242
|
+
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|
|
219
243
|
* @memberof Controllers.Packhouse.Site
|
|
220
244
|
*/
|
|
221
245
|
|
|
@@ -1549,6 +1549,38 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1549
1549
|
resultObject.totalSoftSortEventsDuration = 0;
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
|
+
if (_typeof(result) === 'object' && 'softSortEventsIsAccurate' in result) {
|
|
1553
|
+
resultObject.softSortEventsIsAccurate = function () {
|
|
1554
|
+
if (result.softSortEventsIsAccurate === null) {
|
|
1555
|
+
return null;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
if (typeof result.softSortEventsIsAccurate !== 'boolean') {
|
|
1559
|
+
return Boolean(result.softSortEventsIsAccurate);
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
return result.softSortEventsIsAccurate;
|
|
1563
|
+
}();
|
|
1564
|
+
} else {
|
|
1565
|
+
resultObject.softSortEventsIsAccurate = null;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
if (_typeof(result) === 'object' && 'softSortEventsNotAccurateReason' in result) {
|
|
1569
|
+
resultObject.softSortEventsNotAccurateReason = function () {
|
|
1570
|
+
if (result.softSortEventsNotAccurateReason === null) {
|
|
1571
|
+
return null;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
if (typeof result.softSortEventsNotAccurateReason !== 'string') {
|
|
1575
|
+
return String(result.softSortEventsNotAccurateReason);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
return result.softSortEventsNotAccurateReason;
|
|
1579
|
+
}();
|
|
1580
|
+
} else {
|
|
1581
|
+
resultObject.softSortEventsNotAccurateReason = null;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1552
1584
|
return resultObject;
|
|
1553
1585
|
}();
|
|
1554
1586
|
|
|
@@ -1634,6 +1666,8 @@ var _default = PackrunController;
|
|
|
1634
1666
|
* @property {string} [maturityArea] The Maturity Area for this Packrun
|
|
1635
1667
|
* @property {string} [varietyId] The Variety for this Packrun
|
|
1636
1668
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
1669
|
+
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
1670
|
+
* @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
|
|
1637
1671
|
* @property {Date} [createdTimestampBegin] Filter by the Timestamp when this Packrun was Created. Results Greater than or Equal to Timestamp
|
|
1638
1672
|
* @property {Date} [createdTimestampEnd] Filter by the Timestamp when this Packrun was Created. Results Less than or Equal to Timestamp
|
|
1639
1673
|
* @property {Date} [startTimestampBegin] Filter by the Timestamp when this Packrun was Started. Results Greater than or Equal to Timestamp
|
|
@@ -1659,6 +1693,9 @@ var _default = PackrunController;
|
|
|
1659
1693
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
1660
1694
|
* @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
|
|
1661
1695
|
* @property {Object[]} [timeBatches] The Time Batches for this Packrun
|
|
1696
|
+
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
1697
|
+
* @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
|
|
1698
|
+
* @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
|
|
1662
1699
|
* @memberof Controllers.Packhouse.Site
|
|
1663
1700
|
*/
|
|
1664
1701
|
|
|
@@ -1677,6 +1714,9 @@ var _default = PackrunController;
|
|
|
1677
1714
|
* @property {?string} [growingMethodId] The Growing Method for this Packrun
|
|
1678
1715
|
* @property {number} [allocatedBins] The Number of Allocated Bins for this Packrun
|
|
1679
1716
|
* @property {Object[]} [timeBatches] The Time Batches for this Packrun
|
|
1717
|
+
* @property {?number} [freshPackGraderId] The FreshPack Grader ID associated with this Packrun
|
|
1718
|
+
* @property {?string} [freshPackBinLotCode] The FreshPack Bin Lot Code associated with this Packrun
|
|
1719
|
+
* @property {?string} [freshPackProduceCode] The FreshPack Produce Code associated with this Packrun
|
|
1680
1720
|
* @memberof Controllers.Packhouse.Site
|
|
1681
1721
|
*/
|
|
1682
1722
|
|
|
@@ -1818,6 +1858,8 @@ var _default = PackrunController;
|
|
|
1818
1858
|
* @property {number} totalSoftSortEventsCount The Number of Soft-Sort Events that occurred for the Packrun
|
|
1819
1859
|
* @property {number} averageSoftSortEventsDuration The Average Duration of Soft-Sort Events for the Packrun expressed in Seconds
|
|
1820
1860
|
* @property {number} totalSoftSortEventsDuration The Total Duration of all Soft-Sort Events for the Packrun expressed in Seconds
|
|
1861
|
+
* @property {?boolean} softSortEventsIsAccurate Whether the Soft-Sort Events Data is considered accurate or not
|
|
1862
|
+
* @property {?string} softSortEventsNotAccurateReason A Reason for why the Soft-Sort Events Data is not accurate. Applies when `softSortEventsIsAccurate` is false
|
|
1821
1863
|
* @memberof Controllers.Packhouse.Site
|
|
1822
1864
|
*/
|
|
1823
1865
|
|
|
@@ -596,9 +596,11 @@ var _default = ShiftHourlyEntryController;
|
|
|
596
596
|
* @property {?number} [class1Manning] The Number of People working in all Areas except Class 2 for this Hour
|
|
597
597
|
* @property {?number} [class2Manning] The Number of People working in the Class 2 Area for this Hour
|
|
598
598
|
* @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
|
|
599
|
+
* @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
|
|
599
600
|
* @property {?number} [layeredTrayPercentage] The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
600
601
|
* @property {?number} [averageClass1Percentage] The Average Class 1 Percentage for this Hour
|
|
601
602
|
* @property {?number} [qualityR600IdealSamplesPercentage] The Number of Quality R600 Samples that were Ideal for this Hour
|
|
603
|
+
* @property {?number} [averageQualityR600IdealSamplesTarget] The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
|
|
602
604
|
* @property {Array<ShiftHourlyEntryController.CustomQualityDataItem>} [customQualityData] An Array of Custom Quality Data Items for this Hour
|
|
603
605
|
* @property {number} [totalBinsTipped] The Total Number of Bins Tipped for this Hour
|
|
604
606
|
* @property {number} [binsTippedTarget] The Target Number of Bins to Tip for this Hour
|
|
@@ -607,10 +609,15 @@ var _default = ShiftHourlyEntryController;
|
|
|
607
609
|
* @property {number} [totalClass1Trays] The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
608
610
|
* @property {number} [totalClass2Trays] The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
609
611
|
* @property {number} [class1TraysPerHourExcludingDowntimeTarget] The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
612
|
+
* @property {?number} [averageClass1TraysPerHourAdjustedTarget] The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
|
|
613
|
+
* @property {?number} [averageCostPerTray] The Average Cost per Tray Equivalent for this Hour
|
|
614
|
+
* @property {?number} [averageCostPerTrayTarget] The Average Cost per Tray Equivalent Target for this Hour
|
|
610
615
|
* @property {?string} [primaryIssueCategory] The Primary Issue Category for this Hourly Entry
|
|
611
616
|
* @property {?string} [primaryIssueTag] The Primary Issue Tag for this Hourly Entry
|
|
617
|
+
* @property {?number} [primaryIssuePercentage] A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
|
|
612
618
|
* @property {?string} [secondaryIssueCategory] The Secondary Issue Category for this Hourly Entry
|
|
613
619
|
* @property {?string} [secondaryIssueTag] The Secondary Issue Tag for this Hourly Entry
|
|
620
|
+
* @property {?number} [secondaryIssuePercentage] A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
|
|
614
621
|
* @property {?string} [nextHourFocus] An Optional Focus for the Next Hour
|
|
615
622
|
* @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
616
623
|
* @property {string} [status] The Status of this Hourly Entry
|
|
@@ -628,9 +635,11 @@ var _default = ShiftHourlyEntryController;
|
|
|
628
635
|
* @property {?number} [class1Manning] The Number of People working in all Areas except Class 2 for this Hour
|
|
629
636
|
* @property {?number} [class2Manning] The Number of People working in the Class 2 Area for this Hour
|
|
630
637
|
* @property {?number} [averageManningTarget] The Average Target Number of People that should be working for this Hour
|
|
638
|
+
* @property {?number} [averageCostPerManningUnit] The Average Cost per Person working in all Areas for this Hour
|
|
631
639
|
* @property {?number} [layeredTrayPercentage] The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
632
640
|
* @property {?number} [averageClass1Percentage] The Average Class 1 Percentage for this Hour
|
|
633
641
|
* @property {?number} [qualityR600IdealSamplesPercentage] The Number of Quality R600 Samples that were Ideal for this Hour
|
|
642
|
+
* @property {?number} [averageQualityR600IdealSamplesTarget] The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
|
|
634
643
|
* @property {Array<ShiftHourlyEntryController.CustomQualityDataItem>} [customQualityData] An Array of Custom Quality Data Items for this Hour
|
|
635
644
|
* @property {number} [totalBinsTipped] The Total Number of Bins Tipped for this Hour
|
|
636
645
|
* @property {number} [binsTippedTarget] The Target Number of Bins to Tip for this Hour
|
|
@@ -639,10 +648,15 @@ var _default = ShiftHourlyEntryController;
|
|
|
639
648
|
* @property {number} [totalClass1Trays] The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
640
649
|
* @property {number} [totalClass2Trays] The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
641
650
|
* @property {number} [class1TraysPerHourExcludingDowntimeTarget] The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
651
|
+
* @property {?number} [averageClass1TraysPerHourAdjustedTarget] The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
|
|
652
|
+
* @property {?number} [averageCostPerTray] The Average Cost per Tray Equivalent for this Hour
|
|
653
|
+
* @property {?number} [averageCostPerTrayTarget] The Average Cost per Tray Equivalent Target for this Hour
|
|
642
654
|
* @property {?string} [primaryIssueCategory] The Primary Issue Category for this Hourly Entry
|
|
643
655
|
* @property {?string} [primaryIssueTag] The Primary Issue Tag for this Hourly Entry
|
|
656
|
+
* @property {?number} [primaryIssuePercentage] A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
|
|
644
657
|
* @property {?string} [secondaryIssueCategory] The Secondary Issue Category for this Hourly Entry
|
|
645
658
|
* @property {?string} [secondaryIssueTag] The Secondary Issue Tag for this Hourly Entry
|
|
659
|
+
* @property {?number} [secondaryIssuePercentage] A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
|
|
646
660
|
* @property {?string} [nextHourFocus] An Optional Focus for the Next Hour
|
|
647
661
|
* @property {?number} [satisfactionRating] An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
648
662
|
* @property {string} [status] The Status of this Hourly Entry
|
|
@@ -668,6 +682,7 @@ var _default = ShiftHourlyEntryController;
|
|
|
668
682
|
* @property {string} name The Name of this Custom Quality Data Item
|
|
669
683
|
* @property {string} type The Display Type for this Custom Quality Data Item
|
|
670
684
|
* @property {number} value The Number Value for this Custom Quality Data Item
|
|
685
|
+
* @property {number} averageTarget The Average Target for this Custom Quality Data Item
|
|
671
686
|
* @memberof Controllers.Packhouse.Site
|
|
672
687
|
*/
|
|
673
688
|
|