@ricado/api-client 2.3.25 → 2.3.26
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/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PrePackSampleController.js +23 -23
- package/lib/Models/Packhouse/Site/PackingLineModel.js +14 -1
- package/lib/Models/Packhouse/Site/PrePackSampleModel.js +7 -7
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +33 -31
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/src/Controllers/Packhouse/Site/PrePackSampleController.js +23 -23
- package/src/Models/Packhouse/Site/PackingLineModel.js +19 -1
- package/src/Models/Packhouse/Site/PrePackSampleModel.js +7 -7
- package/src/PackageVersion.js +1 -1
|
@@ -515,7 +515,7 @@ var _default = PackingLineController;
|
|
|
515
515
|
* A **ShiftManagement** Type
|
|
516
516
|
*
|
|
517
517
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
518
|
-
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
518
|
+
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
519
519
|
* @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
|
|
520
520
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
521
521
|
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|
|
@@ -20,7 +20,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Controller Class for
|
|
23
|
+
* Controller Class for PrePack Samples
|
|
24
24
|
*
|
|
25
25
|
* @class
|
|
26
26
|
*/
|
|
@@ -33,12 +33,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
33
33
|
key: "getOne",
|
|
34
34
|
value:
|
|
35
35
|
/**
|
|
36
|
-
* Retrieve a
|
|
36
|
+
* Retrieve a PrePack Sample [GET /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
37
37
|
*
|
|
38
38
|
* @static
|
|
39
39
|
* @public
|
|
40
40
|
* @param {number} siteId The Site ID
|
|
41
|
-
* @param {string} id The
|
|
41
|
+
* @param {string} id The PrePack Sample ID
|
|
42
42
|
* @return {Promise<PrePackSampleModel>}
|
|
43
43
|
*/
|
|
44
44
|
function getOne(siteId, id) {
|
|
@@ -55,13 +55,13 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Update a
|
|
58
|
+
* Update a PrePack Sample [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
59
59
|
*
|
|
60
60
|
* @static
|
|
61
61
|
* @public
|
|
62
62
|
* @param {number} siteId The Site ID
|
|
63
|
-
* @param {string} id The
|
|
64
|
-
* @param {PrePackSampleController.UpdateData} updateData The
|
|
63
|
+
* @param {string} id The PrePack Sample ID
|
|
64
|
+
* @param {PrePackSampleController.UpdateData} updateData The PrePack Sample Update Data
|
|
65
65
|
* @return {Promise<PrePackSampleModel>}
|
|
66
66
|
*/
|
|
67
67
|
|
|
@@ -81,12 +81,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Delete a
|
|
84
|
+
* Delete a PrePack Sample [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
85
85
|
*
|
|
86
86
|
* @static
|
|
87
87
|
* @public
|
|
88
88
|
* @param {number} siteId The Site ID
|
|
89
|
-
* @param {string} id The
|
|
89
|
+
* @param {string} id The PrePack Sample ID
|
|
90
90
|
* @return {Promise<boolean>}
|
|
91
91
|
*/
|
|
92
92
|
|
|
@@ -104,12 +104,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
104
104
|
/**
|
|
105
105
|
* Retrieve Comments [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
106
106
|
*
|
|
107
|
-
* Retrieves Comments for a
|
|
107
|
+
* Retrieves Comments for a PrePack Sample
|
|
108
108
|
*
|
|
109
109
|
* @static
|
|
110
110
|
* @public
|
|
111
111
|
* @param {number} siteId The Site ID
|
|
112
|
-
* @param {string} id The
|
|
112
|
+
* @param {string} id The PrePack Sample ID
|
|
113
113
|
* @return {Promise<Array<PrePackSampleController.CommentItem>>}
|
|
114
114
|
*/
|
|
115
115
|
|
|
@@ -265,12 +265,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
265
265
|
/**
|
|
266
266
|
* Create a Comment [POST /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
267
267
|
*
|
|
268
|
-
* Create a Comment for a
|
|
268
|
+
* Create a Comment for a PrePack Sample
|
|
269
269
|
*
|
|
270
270
|
* @static
|
|
271
271
|
* @public
|
|
272
272
|
* @param {number} siteId The Site ID
|
|
273
|
-
* @param {string} id The
|
|
273
|
+
* @param {string} id The PrePack Sample ID
|
|
274
274
|
* @param {string} content The Content of the New Comment
|
|
275
275
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
276
276
|
*/
|
|
@@ -421,12 +421,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
421
421
|
/**
|
|
422
422
|
* Retrieve a Comment [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
423
423
|
*
|
|
424
|
-
* Retrieves Comments for a
|
|
424
|
+
* Retrieves Comments for a PrePack Sample
|
|
425
425
|
*
|
|
426
426
|
* @static
|
|
427
427
|
* @public
|
|
428
428
|
* @param {number} siteId The Site ID
|
|
429
|
-
* @param {string} id The
|
|
429
|
+
* @param {string} id The PrePack Sample ID
|
|
430
430
|
* @param {string} commentId The Comment ID
|
|
431
431
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
432
432
|
*/
|
|
@@ -575,12 +575,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
575
575
|
/**
|
|
576
576
|
* Update a Comment [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
577
577
|
*
|
|
578
|
-
* Update a Comment for a
|
|
578
|
+
* Update a Comment for a PrePack Sample
|
|
579
579
|
*
|
|
580
580
|
* @static
|
|
581
581
|
* @public
|
|
582
582
|
* @param {number} siteId The Site ID
|
|
583
|
-
* @param {string} id The
|
|
583
|
+
* @param {string} id The PrePack Sample ID
|
|
584
584
|
* @param {string} commentId The Comment ID
|
|
585
585
|
* @param {string} content The Updated Content for the Comment
|
|
586
586
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
@@ -732,12 +732,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
732
732
|
/**
|
|
733
733
|
* Delete a Comment [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
734
734
|
*
|
|
735
|
-
* Delete a Comment for a
|
|
735
|
+
* Delete a Comment for a PrePack Sample
|
|
736
736
|
*
|
|
737
737
|
* @static
|
|
738
738
|
* @public
|
|
739
739
|
* @param {number} siteId The Site ID
|
|
740
|
-
* @param {string} id The
|
|
740
|
+
* @param {string} id The PrePack Sample ID
|
|
741
741
|
* @param {string} commentId The Comment ID
|
|
742
742
|
* @return {Promise<boolean>}
|
|
743
743
|
*/
|
|
@@ -754,7 +754,7 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
|
-
* List all
|
|
757
|
+
* List all PrePack Samples [GET /packhouse/sites/{siteId}/prepack-samples]
|
|
758
758
|
*
|
|
759
759
|
* @static
|
|
760
760
|
* @public
|
|
@@ -788,12 +788,12 @@ var PrePackSampleController = /*#__PURE__*/function () {
|
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
|
-
* Create a
|
|
791
|
+
* Create a PrePack Sample [POST /packhouse/sites/{siteId}/prepack-samples]
|
|
792
792
|
*
|
|
793
793
|
* @static
|
|
794
794
|
* @public
|
|
795
795
|
* @param {number} siteId The Site ID
|
|
796
|
-
* @param {PrePackSampleController.CreateData} createData The
|
|
796
|
+
* @param {PrePackSampleController.CreateData} createData The PrePack Sample Create Data
|
|
797
797
|
* @return {Promise<PrePackSampleModel>}
|
|
798
798
|
*/
|
|
799
799
|
|
|
@@ -834,7 +834,7 @@ var _default = PrePackSampleController;
|
|
|
834
834
|
*/
|
|
835
835
|
|
|
836
836
|
/**
|
|
837
|
-
* The Create Data for a
|
|
837
|
+
* The Create Data for a PrePack Sample
|
|
838
838
|
*
|
|
839
839
|
* @typedef {Object} PrePackSampleController.CreateData
|
|
840
840
|
* @property {string} packingLineId The Packing Line ID this Sample is associated with
|
|
@@ -848,7 +848,7 @@ var _default = PrePackSampleController;
|
|
|
848
848
|
*/
|
|
849
849
|
|
|
850
850
|
/**
|
|
851
|
-
* The Update Data for a
|
|
851
|
+
* The Update Data for a PrePack Sample
|
|
852
852
|
*
|
|
853
853
|
* @typedef {Object} PrePackSampleController.UpdateData
|
|
854
854
|
* @property {string} [packingLineId] The Packing Line ID this Sample is associated with
|
|
@@ -189,7 +189,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
189
189
|
/**
|
|
190
190
|
* The Optional Shift Management Object for this Packing Line
|
|
191
191
|
*
|
|
192
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
192
|
+
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
193
193
|
* @public
|
|
194
194
|
*/
|
|
195
195
|
|
|
@@ -3093,6 +3093,18 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3093
3093
|
pointsObject.class1TraysPerHourTargets = 0;
|
|
3094
3094
|
}
|
|
3095
3095
|
|
|
3096
|
+
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'class1TraysPerHourAdjustments' in jsonObject['shiftManagement'].points) {
|
|
3097
|
+
pointsObject.class1TraysPerHourAdjustments = function () {
|
|
3098
|
+
if (typeof jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments !== 'number') {
|
|
3099
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments));
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments) ? jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourAdjustments);
|
|
3103
|
+
}();
|
|
3104
|
+
} else {
|
|
3105
|
+
pointsObject.class1TraysPerHourAdjustments = 0;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3096
3108
|
if (_typeof(jsonObject['shiftManagement'].points) === 'object' && 'costPerTrayTargets' in jsonObject['shiftManagement'].points) {
|
|
3097
3109
|
pointsObject.costPerTrayTargets = function () {
|
|
3098
3110
|
if (typeof jsonObject['shiftManagement'].points.costPerTrayTargets !== 'number') {
|
|
@@ -3299,6 +3311,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
3299
3311
|
pointsDefaultValue.currentShiftQualityR600Ideal = 0;
|
|
3300
3312
|
pointsDefaultValue.currentShiftScorePercentage = 0;
|
|
3301
3313
|
pointsDefaultValue.class1TraysPerHourTargets = 0;
|
|
3314
|
+
pointsDefaultValue.class1TraysPerHourAdjustments = 0;
|
|
3302
3315
|
pointsDefaultValue.costPerTrayTargets = 0;
|
|
3303
3316
|
pointsDefaultValue.manningTargets = 0;
|
|
3304
3317
|
pointsDefaultValue.qualityR600IdealTargets = 0;
|
|
@@ -32,7 +32,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
32
32
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Model Class for a
|
|
35
|
+
* Model Class for a PrePack Sample
|
|
36
36
|
*
|
|
37
37
|
* @class
|
|
38
38
|
* @hideconstructor
|
|
@@ -47,7 +47,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
47
47
|
* PrePackSampleModel Constructor
|
|
48
48
|
*
|
|
49
49
|
* @protected
|
|
50
|
-
* @param {number} siteId The Site ID associated with this
|
|
50
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
51
51
|
*/
|
|
52
52
|
function PrePackSampleModel(siteId) {
|
|
53
53
|
var _this;
|
|
@@ -56,7 +56,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
56
56
|
|
|
57
57
|
_this = _super.call(this);
|
|
58
58
|
/**
|
|
59
|
-
* The
|
|
59
|
+
* The PrePack Sample ID
|
|
60
60
|
*
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @public
|
|
@@ -120,7 +120,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
120
120
|
|
|
121
121
|
_this.totalFruitSampled = 0;
|
|
122
122
|
/**
|
|
123
|
-
* Whether the
|
|
123
|
+
* Whether the PrePack Sample has been deleted
|
|
124
124
|
*
|
|
125
125
|
* @type {boolean}
|
|
126
126
|
* @public
|
|
@@ -128,7 +128,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
128
128
|
|
|
129
129
|
_this.deleted = false;
|
|
130
130
|
/**
|
|
131
|
-
* When the
|
|
131
|
+
* When the PrePack Sample was last updated
|
|
132
132
|
*
|
|
133
133
|
* @type {Date}
|
|
134
134
|
* @public
|
|
@@ -136,7 +136,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
136
136
|
|
|
137
137
|
_this.updateTimestamp = new Date();
|
|
138
138
|
/**
|
|
139
|
-
* The Site ID associated with this
|
|
139
|
+
* The Site ID associated with this PrePack Sample
|
|
140
140
|
*
|
|
141
141
|
* @type {number}
|
|
142
142
|
* @public
|
|
@@ -151,7 +151,7 @@ var PrePackSampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
151
151
|
* @static
|
|
152
152
|
* @public
|
|
153
153
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
154
|
-
* @param {number} siteId The Site ID associated with this
|
|
154
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
155
155
|
* @return {PrePackSampleModel}
|
|
156
156
|
*/
|
|
157
157
|
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -14280,6 +14280,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
14280
14280
|
currentShiftQualityR600Ideal: number;
|
|
14281
14281
|
currentShiftScorePercentage: number;
|
|
14282
14282
|
class1TraysPerHourTargets: number;
|
|
14283
|
+
class1TraysPerHourAdjustments: number;
|
|
14283
14284
|
costPerTrayTargets: number;
|
|
14284
14285
|
manningTargets: number;
|
|
14285
14286
|
qualityR600IdealTargets: number;
|
|
@@ -15379,63 +15380,63 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
15379
15380
|
declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleController' {
|
|
15380
15381
|
export default PrePackSampleController;
|
|
15381
15382
|
/**
|
|
15382
|
-
* Controller Class for
|
|
15383
|
+
* Controller Class for PrePack Samples
|
|
15383
15384
|
*
|
|
15384
15385
|
* @class
|
|
15385
15386
|
*/
|
|
15386
15387
|
class PrePackSampleController {
|
|
15387
15388
|
/**
|
|
15388
|
-
* Retrieve a
|
|
15389
|
+
* Retrieve a PrePack Sample [GET /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15389
15390
|
*
|
|
15390
15391
|
* @static
|
|
15391
15392
|
* @public
|
|
15392
15393
|
* @param {number} siteId The Site ID
|
|
15393
|
-
* @param {string} id The
|
|
15394
|
+
* @param {string} id The PrePack Sample ID
|
|
15394
15395
|
* @return {Promise<PrePackSampleModel>}
|
|
15395
15396
|
*/
|
|
15396
15397
|
static getOne(siteId: number, id: string): Promise<PrePackSampleModel>;
|
|
15397
15398
|
/**
|
|
15398
|
-
* Update a
|
|
15399
|
+
* Update a PrePack Sample [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15399
15400
|
*
|
|
15400
15401
|
* @static
|
|
15401
15402
|
* @public
|
|
15402
15403
|
* @param {number} siteId The Site ID
|
|
15403
|
-
* @param {string} id The
|
|
15404
|
-
* @param {PrePackSampleController.UpdateData} updateData The
|
|
15404
|
+
* @param {string} id The PrePack Sample ID
|
|
15405
|
+
* @param {PrePackSampleController.UpdateData} updateData The PrePack Sample Update Data
|
|
15405
15406
|
* @return {Promise<PrePackSampleModel>}
|
|
15406
15407
|
*/
|
|
15407
15408
|
static update(siteId: number, id: string, updateData: PrePackSampleController.UpdateData): Promise<PrePackSampleModel>;
|
|
15408
15409
|
/**
|
|
15409
|
-
* Delete a
|
|
15410
|
+
* Delete a PrePack Sample [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}]
|
|
15410
15411
|
*
|
|
15411
15412
|
* @static
|
|
15412
15413
|
* @public
|
|
15413
15414
|
* @param {number} siteId The Site ID
|
|
15414
|
-
* @param {string} id The
|
|
15415
|
+
* @param {string} id The PrePack Sample ID
|
|
15415
15416
|
* @return {Promise<boolean>}
|
|
15416
15417
|
*/
|
|
15417
15418
|
static delete(siteId: number, id: string): Promise<boolean>;
|
|
15418
15419
|
/**
|
|
15419
15420
|
* Retrieve Comments [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15420
15421
|
*
|
|
15421
|
-
* Retrieves Comments for a
|
|
15422
|
+
* Retrieves Comments for a PrePack Sample
|
|
15422
15423
|
*
|
|
15423
15424
|
* @static
|
|
15424
15425
|
* @public
|
|
15425
15426
|
* @param {number} siteId The Site ID
|
|
15426
|
-
* @param {string} id The
|
|
15427
|
+
* @param {string} id The PrePack Sample ID
|
|
15427
15428
|
* @return {Promise<Array<PrePackSampleController.CommentItem>>}
|
|
15428
15429
|
*/
|
|
15429
15430
|
static getComments(siteId: number, id: string): Promise<Array<PrePackSampleController.CommentItem>>;
|
|
15430
15431
|
/**
|
|
15431
15432
|
* Create a Comment [POST /packhouse/sites/{siteId}/prepack-samples/{id}/comments]
|
|
15432
15433
|
*
|
|
15433
|
-
* Create a Comment for a
|
|
15434
|
+
* Create a Comment for a PrePack Sample
|
|
15434
15435
|
*
|
|
15435
15436
|
* @static
|
|
15436
15437
|
* @public
|
|
15437
15438
|
* @param {number} siteId The Site ID
|
|
15438
|
-
* @param {string} id The
|
|
15439
|
+
* @param {string} id The PrePack Sample ID
|
|
15439
15440
|
* @param {string} content The Content of the New Comment
|
|
15440
15441
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15441
15442
|
*/
|
|
@@ -15443,12 +15444,12 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15443
15444
|
/**
|
|
15444
15445
|
* Retrieve a Comment [GET /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15445
15446
|
*
|
|
15446
|
-
* Retrieves Comments for a
|
|
15447
|
+
* Retrieves Comments for a PrePack Sample
|
|
15447
15448
|
*
|
|
15448
15449
|
* @static
|
|
15449
15450
|
* @public
|
|
15450
15451
|
* @param {number} siteId The Site ID
|
|
15451
|
-
* @param {string} id The
|
|
15452
|
+
* @param {string} id The PrePack Sample ID
|
|
15452
15453
|
* @param {string} commentId The Comment ID
|
|
15453
15454
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
15454
15455
|
*/
|
|
@@ -15456,12 +15457,12 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15456
15457
|
/**
|
|
15457
15458
|
* Update a Comment [PATCH /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15458
15459
|
*
|
|
15459
|
-
* Update a Comment for a
|
|
15460
|
+
* Update a Comment for a PrePack Sample
|
|
15460
15461
|
*
|
|
15461
15462
|
* @static
|
|
15462
15463
|
* @public
|
|
15463
15464
|
* @param {number} siteId The Site ID
|
|
15464
|
-
* @param {string} id The
|
|
15465
|
+
* @param {string} id The PrePack Sample ID
|
|
15465
15466
|
* @param {string} commentId The Comment ID
|
|
15466
15467
|
* @param {string} content The Updated Content for the Comment
|
|
15467
15468
|
* @return {Promise<PrePackSampleController.CommentItem>}
|
|
@@ -15470,18 +15471,18 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15470
15471
|
/**
|
|
15471
15472
|
* Delete a Comment [DELETE /packhouse/sites/{siteId}/prepack-samples/{id}/comments/{commentId}]
|
|
15472
15473
|
*
|
|
15473
|
-
* Delete a Comment for a
|
|
15474
|
+
* Delete a Comment for a PrePack Sample
|
|
15474
15475
|
*
|
|
15475
15476
|
* @static
|
|
15476
15477
|
* @public
|
|
15477
15478
|
* @param {number} siteId The Site ID
|
|
15478
|
-
* @param {string} id The
|
|
15479
|
+
* @param {string} id The PrePack Sample ID
|
|
15479
15480
|
* @param {string} commentId The Comment ID
|
|
15480
15481
|
* @return {Promise<boolean>}
|
|
15481
15482
|
*/
|
|
15482
15483
|
static deleteOneComment(siteId: number, id: string, commentId: string): Promise<boolean>;
|
|
15483
15484
|
/**
|
|
15484
|
-
* List all
|
|
15485
|
+
* List all PrePack Samples [GET /packhouse/sites/{siteId}/prepack-samples]
|
|
15485
15486
|
*
|
|
15486
15487
|
* @static
|
|
15487
15488
|
* @public
|
|
@@ -15491,12 +15492,12 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15491
15492
|
*/
|
|
15492
15493
|
static getAll(siteId: number, queryParameters?: PrePackSampleController.GetAllQueryParameters | undefined): Promise<PrePackSampleModel[]>;
|
|
15493
15494
|
/**
|
|
15494
|
-
* Create a
|
|
15495
|
+
* Create a PrePack Sample [POST /packhouse/sites/{siteId}/prepack-samples]
|
|
15495
15496
|
*
|
|
15496
15497
|
* @static
|
|
15497
15498
|
* @public
|
|
15498
15499
|
* @param {number} siteId The Site ID
|
|
15499
|
-
* @param {PrePackSampleController.CreateData} createData The
|
|
15500
|
+
* @param {PrePackSampleController.CreateData} createData The PrePack Sample Create Data
|
|
15500
15501
|
* @return {Promise<PrePackSampleModel>}
|
|
15501
15502
|
*/
|
|
15502
15503
|
static create(siteId: number, createData: PrePackSampleController.CreateData): Promise<PrePackSampleModel>;
|
|
@@ -15540,7 +15541,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15540
15541
|
updateTimestampEnd?: Date;
|
|
15541
15542
|
};
|
|
15542
15543
|
/**
|
|
15543
|
-
* The Create Data for a
|
|
15544
|
+
* The Create Data for a PrePack Sample
|
|
15544
15545
|
*/
|
|
15545
15546
|
export type CreateData = {
|
|
15546
15547
|
/**
|
|
@@ -15573,7 +15574,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PrePackSampleContr
|
|
|
15573
15574
|
totalFruitSampled?: number;
|
|
15574
15575
|
};
|
|
15575
15576
|
/**
|
|
15576
|
-
* The Update Data for a
|
|
15577
|
+
* The Update Data for a PrePack Sample
|
|
15577
15578
|
*/
|
|
15578
15579
|
export type UpdateData = {
|
|
15579
15580
|
/**
|
|
@@ -23385,7 +23386,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23385
23386
|
/**
|
|
23386
23387
|
* The Optional Shift Management Object for this Packing Line
|
|
23387
23388
|
*
|
|
23388
|
-
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
23389
|
+
* @type {?{points: {currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>, manningUsesTeams: boolean}}
|
|
23389
23390
|
* @public
|
|
23390
23391
|
*/
|
|
23391
23392
|
shiftManagement: {
|
|
@@ -23419,6 +23420,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
23419
23420
|
currentShiftQualityR600Ideal: number;
|
|
23420
23421
|
currentShiftScorePercentage: number;
|
|
23421
23422
|
class1TraysPerHourTargets: number;
|
|
23423
|
+
class1TraysPerHourAdjustments: number;
|
|
23422
23424
|
costPerTrayTargets: number;
|
|
23423
23425
|
manningTargets: number;
|
|
23424
23426
|
qualityR600IdealTargets: number;
|
|
@@ -23800,7 +23802,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackrunModel' {
|
|
|
23800
23802
|
declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
23801
23803
|
export default PrePackSampleModel;
|
|
23802
23804
|
/**
|
|
23803
|
-
* Model Class for a
|
|
23805
|
+
* Model Class for a PrePack Sample
|
|
23804
23806
|
*
|
|
23805
23807
|
* @class
|
|
23806
23808
|
* @hideconstructor
|
|
@@ -23813,7 +23815,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
|
23813
23815
|
* @static
|
|
23814
23816
|
* @public
|
|
23815
23817
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
23816
|
-
* @param {number} siteId The Site ID associated with this
|
|
23818
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
23817
23819
|
* @return {PrePackSampleModel}
|
|
23818
23820
|
*/
|
|
23819
23821
|
static fromJSON(json: {
|
|
@@ -23823,11 +23825,11 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
|
23823
23825
|
* PrePackSampleModel Constructor
|
|
23824
23826
|
*
|
|
23825
23827
|
* @protected
|
|
23826
|
-
* @param {number} siteId The Site ID associated with this
|
|
23828
|
+
* @param {number} siteId The Site ID associated with this PrePack Sample
|
|
23827
23829
|
*/
|
|
23828
23830
|
protected constructor();
|
|
23829
23831
|
/**
|
|
23830
|
-
* The
|
|
23832
|
+
* The PrePack Sample ID
|
|
23831
23833
|
*
|
|
23832
23834
|
* @type {string}
|
|
23833
23835
|
* @public
|
|
@@ -23887,21 +23889,21 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PrePackSampleModel' {
|
|
|
23887
23889
|
*/
|
|
23888
23890
|
totalFruitSampled: number;
|
|
23889
23891
|
/**
|
|
23890
|
-
* Whether the
|
|
23892
|
+
* Whether the PrePack Sample has been deleted
|
|
23891
23893
|
*
|
|
23892
23894
|
* @type {boolean}
|
|
23893
23895
|
* @public
|
|
23894
23896
|
*/
|
|
23895
23897
|
deleted: boolean;
|
|
23896
23898
|
/**
|
|
23897
|
-
* When the
|
|
23899
|
+
* When the PrePack Sample was last updated
|
|
23898
23900
|
*
|
|
23899
23901
|
* @type {Date}
|
|
23900
23902
|
* @public
|
|
23901
23903
|
*/
|
|
23902
23904
|
updateTimestamp: Date;
|
|
23903
23905
|
/**
|
|
23904
|
-
* The Site ID associated with this
|
|
23906
|
+
* The Site ID associated with this PrePack Sample
|
|
23905
23907
|
*
|
|
23906
23908
|
* @type {number}
|
|
23907
23909
|
* @public
|
package/package.json
CHANGED
|
@@ -494,7 +494,7 @@ export default PackingLineController;
|
|
|
494
494
|
* A **ShiftManagement** Type
|
|
495
495
|
*
|
|
496
496
|
* @typedef {Object} PackingLineController.ShiftManagement
|
|
497
|
-
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
497
|
+
* @property {{currentShiftId: number, currentShiftStatus: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentGrowerChangeMeetingId: number, startGrowerChangeMeetingRequest: number, finishGrowerChangeMeetingRequest: number, shiftSchedules: number, currentShiftModifyHourlyEntryRequest: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftClass1ManningTarget: number, currentShiftClass2ManningTarget: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, class1TraysPerHourAdjustments: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, layeredTrayPercentageTargets: number, class1PercentageTargets: ?number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number, summaryReportEmailContacts: number, currentShiftUpdateManningTeamsRequest: ?number, currentShiftUpdateManningTeamsTimestamp: ?number, manningTeams: ?number}} points The Points used for Shift Management
|
|
498
498
|
* @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
|
|
499
499
|
* @property {boolean} enabled Whether Shift Management is Enabled on this Packing Line
|
|
500
500
|
* @property {Array<PackingLineController.ShiftTaskDefinition>} taskDefinitions An Array of Shift Task Types for this Packing Line
|