@ricado/api-client 2.0.2 → 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/README.md +5 -7
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -5
- package/lib/Controllers/Packhouse/Site/PackrunController.js +46 -4
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
- package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/lib/Controllers/Packhouse/Site/index.js +15 -0
- package/lib/Controllers/Site/AlarmController.js +4 -4
- package/lib/Controllers/Site/AlarmGroupController.js +4 -4
- package/lib/Controllers/Site/DefinitionController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/lib/Controllers/Site/PointController.js +4 -4
- package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
- package/lib/Errors/BadRequestError.js +1 -1
- package/lib/Errors/ForbiddenError.js +1 -1
- package/lib/Errors/NetworkError.js +1 -1
- package/lib/Errors/NotAllowedError.js +1 -1
- package/lib/Errors/NotFoundError.js +1 -1
- package/lib/Errors/ServerError.js +1 -1
- package/lib/Errors/UnauthorizedError.js +1 -1
- package/lib/Models/AccountPolicyModel.js +1 -1
- package/lib/Models/ApiAccountModel.js +1 -1
- package/lib/Models/CompanyModel.js +1 -1
- package/lib/Models/FirebaseTokenModel.js +1 -1
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -5
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +14 -4
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +14 -4
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -4
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +14 -4
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +14 -4
- package/lib/Models/Packhouse/Site/PackTypeModel.js +14 -4
- package/lib/Models/Packhouse/Site/PackingLineModel.js +538 -5
- package/lib/Models/Packhouse/Site/PackrunModel.js +80 -4
- package/lib/Models/Packhouse/Site/RejectBinModel.js +14 -4
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +274 -8
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +181 -5
- package/lib/Models/Packhouse/Site/ShiftModel.js +14 -4
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
- package/lib/Models/Packhouse/Site/VarietyModel.js +14 -4
- package/lib/Models/Packhouse/Site/index.js +15 -0
- package/lib/Models/RTUModel.js +1 -1
- package/lib/Models/RTUPluginModel.js +1 -1
- package/lib/Models/Site/AlarmGroupModel.js +14 -4
- package/lib/Models/Site/AlarmModel.js +14 -4
- package/lib/Models/Site/DefinitionModel.js +14 -4
- package/lib/Models/Site/PermanentObjectDataModel.js +14 -4
- package/lib/Models/Site/PermanentObjectModel.js +14 -4
- package/lib/Models/Site/PointModel.js +14 -4
- package/lib/Models/Site/TemporaryObjectModel.js +14 -4
- package/lib/Models/SiteModel.js +1 -1
- package/lib/Models/TokenModel.js +1 -1
- package/lib/Models/UserAccountActionTokenModel.js +1 -1
- package/lib/Models/UserAccountModel.js +1 -1
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +4039 -1071
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -5
- package/src/Controllers/Packhouse/Site/PackrunController.js +56 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Packhouse/Site/index.js +10 -0
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +4 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -4
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
- package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/PackingLineModel.js +718 -4
- package/src/Models/Packhouse/Site/PackrunModel.js +88 -3
- package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +310 -7
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +205 -4
- package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
- package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
- package/src/Models/Packhouse/Site/index.js +10 -0
- package/src/Models/Site/AlarmGroupModel.js +13 -3
- package/src/Models/Site/AlarmModel.js +13 -3
- package/src/Models/Site/DefinitionModel.js +13 -3
- package/src/Models/Site/PermanentObjectDataModel.js +13 -3
- package/src/Models/Site/PermanentObjectModel.js +13 -3
- package/src/Models/Site/PointModel.js +13 -3
- package/src/Models/Site/TemporaryObjectModel.js +13 -3
- package/src/PackageVersion.js +1 -1
|
@@ -43,7 +43,7 @@ var PackTypeController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/pack-types/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _PackTypeModel.default.fromJSON(result);
|
|
46
|
+
return _PackTypeModel.default.fromJSON(result, siteId);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var PackTypeController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/pack-types/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _PackTypeModel.default.fromJSON(result);
|
|
72
|
+
return _PackTypeModel.default.fromJSON(result, siteId);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var PackTypeController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _PackTypeModel.default.fromJSON(resultItem);
|
|
125
|
+
return _PackTypeModel.default.fromJSON(resultItem, siteId);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var PackTypeController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/pack-types"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _PackTypeModel.default.fromJSON(result);
|
|
152
|
+
return _PackTypeModel.default.fromJSON(result, siteId);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/packing-lines/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _PackingLineModel.default.fromJSON(result);
|
|
46
|
+
return _PackingLineModel.default.fromJSON(result, siteId);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/packing-lines/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _PackingLineModel.default.fromJSON(result);
|
|
72
|
+
return _PackingLineModel.default.fromJSON(result, siteId);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _PackingLineModel.default.fromJSON(resultItem);
|
|
125
|
+
return _PackingLineModel.default.fromJSON(resultItem, siteId);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var PackingLineController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/packing-lines"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _PackingLineModel.default.fromJSON(result);
|
|
152
|
+
return _PackingLineModel.default.fromJSON(result, siteId);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -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
|
|
|
@@ -45,7 +45,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/packruns/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _PackrunModel.default.fromJSON(result);
|
|
48
|
+
return _PackrunModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/packruns/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _PackrunModel.default.fromJSON(result);
|
|
74
|
+
return _PackrunModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -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
|
|
|
@@ -1581,7 +1613,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1581
1613
|
|
|
1582
1614
|
return result.map(function (resultItem) {
|
|
1583
1615
|
return function () {
|
|
1584
|
-
return _PackrunModel.default.fromJSON(resultItem);
|
|
1616
|
+
return _PackrunModel.default.fromJSON(resultItem, siteId);
|
|
1585
1617
|
}();
|
|
1586
1618
|
});
|
|
1587
1619
|
}();
|
|
@@ -1608,7 +1640,7 @@ var PackrunController = /*#__PURE__*/function () {
|
|
|
1608
1640
|
return new Promise(function (resolve, reject) {
|
|
1609
1641
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/packruns"), createData).then(function (result) {
|
|
1610
1642
|
var resolveValue = function () {
|
|
1611
|
-
return _PackrunModel.default.fromJSON(result);
|
|
1643
|
+
return _PackrunModel.default.fromJSON(result, siteId);
|
|
1612
1644
|
}();
|
|
1613
1645
|
|
|
1614
1646
|
resolve(resolveValue);
|
|
@@ -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
|
|
|
@@ -45,7 +45,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bins/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _RejectBinModel.default.fromJSON(result);
|
|
48
|
+
return _RejectBinModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bins/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _RejectBinModel.default.fromJSON(result);
|
|
74
|
+
return _RejectBinModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _RejectBinModel.default.fromJSON(resultItem);
|
|
523
|
+
return _RejectBinModel.default.fromJSON(resultItem, siteId);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var RejectBinController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bins"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _RejectBinModel.default.fromJSON(result);
|
|
550
|
+
return _RejectBinModel.default.fromJSON(result, siteId);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _RejectBinScaleModel.default.fromJSON(result);
|
|
46
|
+
return _RejectBinScaleModel.default.fromJSON(result, siteId);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _RejectBinScaleModel.default.fromJSON(result);
|
|
72
|
+
return _RejectBinScaleModel.default.fromJSON(result, siteId);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _RejectBinScaleModel.default.fromJSON(resultItem);
|
|
125
|
+
return _RejectBinScaleModel.default.fromJSON(resultItem, siteId);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var RejectBinScaleController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bin-scales"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _RejectBinScaleModel.default.fromJSON(result);
|
|
152
|
+
return _RejectBinScaleModel.default.fromJSON(result, siteId);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -187,7 +187,18 @@ var _default = RejectBinScaleController;
|
|
|
187
187
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
188
188
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
189
189
|
* @property {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
190
|
-
* @property {?number} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
190
|
+
* @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
191
|
+
* @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
|
|
192
|
+
* @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
193
|
+
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
194
|
+
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
195
|
+
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
196
|
+
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
197
|
+
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
198
|
+
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
199
|
+
* @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
|
|
200
|
+
* @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
|
|
201
|
+
* @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
|
|
191
202
|
* @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
|
|
192
203
|
* @memberof Controllers.Packhouse.Site
|
|
193
204
|
*/
|
|
@@ -202,7 +213,18 @@ var _default = RejectBinScaleController;
|
|
|
202
213
|
* @property {?string} [packrunSourceId] The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
203
214
|
* @property {?number} [packrunGroup] The Packrun Group this Reject Bin Scale is a part of
|
|
204
215
|
* @property {Object[]} [sources] An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
205
|
-
* @property {?number} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
216
|
+
* @property {?{delay: ?number}} [autoPackrunChange] The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
217
|
+
* @property {?boolean} [supportsLiveWeighing] Whether this Reject Bin Scale supports Live Weighing
|
|
218
|
+
* @property {?number} [autoWeighingStartThreshold] The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
219
|
+
* @property {?number} [autoWeighingStartDelay] The Delay in Milliseconds before Auto Live Weighing would Start
|
|
220
|
+
* @property {?number} [autoWeighingFinishThreshold] The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
221
|
+
* @property {?number} [autoWeighingFinishDelay] The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
222
|
+
* @property {?number} [manualInterventionMaximumDuration] The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
223
|
+
* @property {?number} [liveWeighingIncreaseTolerance] The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
224
|
+
* @property {?number} [liveWeighingDecreaseTolerance] The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
225
|
+
* @property {?number} [liveWeighingUpdateInterval] The Interval in Milliseconds between Live Weighing Updates
|
|
226
|
+
* @property {?boolean} [liveWeighingUsesStableStatus] Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
|
|
227
|
+
* @property {?number} [incorrectOperationTolerance] The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
|
|
206
228
|
* @property {?Object} [freshPackIntegration] The FreshPack Integration Configuration for this Reject Bin Scale
|
|
207
229
|
* @memberof Controllers.Packhouse.Site
|
|
208
230
|
*/
|
|
@@ -45,7 +45,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _RejectBinWeightModel.default.fromJSON(result);
|
|
48
|
+
return _RejectBinWeightModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _RejectBinWeightModel.default.fromJSON(result);
|
|
74
|
+
return _RejectBinWeightModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _RejectBinWeightModel.default.fromJSON(resultItem);
|
|
523
|
+
return _RejectBinWeightModel.default.fromJSON(resultItem, siteId);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var RejectBinWeightController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/reject-bin-weights"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _RejectBinWeightModel.default.fromJSON(result);
|
|
550
|
+
return _RejectBinWeightModel.default.fromJSON(result, siteId);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftModel.default.fromJSON(result);
|
|
48
|
+
return _ShiftModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shifts/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftModel.default.fromJSON(result);
|
|
74
|
+
return _ShiftModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftModel.default.fromJSON(resultItem);
|
|
523
|
+
return _ShiftModel.default.fromJSON(resultItem, siteId);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shifts"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftModel.default.fromJSON(result);
|
|
550
|
+
return _ShiftModel.default.fromJSON(result, siteId);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
48
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
74
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftFocusMeetingModel.default.fromJSON(resultItem);
|
|
523
|
+
return _ShiftFocusMeetingModel.default.fromJSON(resultItem, siteId);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
550
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
48
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
74
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftHourlyEntryModel.default.fromJSON(resultItem);
|
|
523
|
+
return _ShiftHourlyEntryModel.default.fromJSON(resultItem, siteId);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
550
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -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
|
|