@ricado/api-client 2.1.1 → 2.3.1
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 +29 -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/DataItems/PointValueItem.js +3 -3
- package/lib/Models/AccountPolicyModel.js +7 -7
- package/lib/Models/ApiAccountModel.js +7 -7
- package/lib/Models/CompanyModel.js +5 -5
- package/lib/Models/FirebaseTokenModel.js +8 -8
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/lib/Models/Packhouse/Site/PackingLineModel.js +583 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
- package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- 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 +7 -7
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/Models/RTUModel.js +6 -6
- package/lib/Models/RTUPluginModel.js +5 -5
- package/lib/Models/Site/AlarmGroupModel.js +7 -7
- package/lib/Models/Site/AlarmModel.js +17 -17
- package/lib/Models/Site/DefinitionModel.js +6 -6
- package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
- package/lib/Models/Site/PermanentObjectModel.js +7 -7
- package/lib/Models/Site/PointModel.js +11 -11
- package/lib/Models/Site/TemporaryObjectModel.js +6 -6
- package/lib/Models/SiteModel.js +6 -6
- package/lib/Models/TokenModel.js +10 -10
- package/lib/Models/UserAccountActionTokenModel.js +11 -11
- package/lib/Models/UserAccountModel.js +10 -10
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +22 -12
- package/lib/WebSocketHelper.js +29 -13
- package/lib/index.d.ts +2473 -348
- package/lib/index.js +3 -3
- 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 +29 -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/DataItems/PointValueItem.js +3 -3
- package/src/Models/AccountPolicyModel.js +7 -7
- package/src/Models/ApiAccountModel.js +7 -7
- package/src/Models/CompanyModel.js +5 -5
- package/src/Models/FirebaseTokenModel.js +8 -8
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/src/Models/Packhouse/Site/PackingLineModel.js +770 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
- package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- 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 +7 -7
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/Models/RTUModel.js +6 -6
- package/src/Models/RTUPluginModel.js +5 -5
- package/src/Models/Site/AlarmGroupModel.js +7 -7
- package/src/Models/Site/AlarmModel.js +17 -17
- package/src/Models/Site/DefinitionModel.js +6 -6
- package/src/Models/Site/PermanentObjectDataModel.js +8 -8
- package/src/Models/Site/PermanentObjectModel.js +7 -7
- package/src/Models/Site/PointModel.js +11 -11
- package/src/Models/Site/TemporaryObjectModel.js +6 -6
- package/src/Models/SiteModel.js +6 -6
- package/src/Models/TokenModel.js +10 -10
- package/src/Models/UserAccountActionTokenModel.js +11 -11
- package/src/Models/UserAccountModel.js +10 -10
- package/src/PackageVersion.js +1 -1
- package/src/Points.js +24 -12
- package/src/WebSocketHelper.js +34 -13
- package/src/index.js +3 -3
- package/types/tslint.json +2 -1
|
@@ -62,7 +62,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Packing Line ID this Packrun is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Packrun Name
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.name =
|
|
81
|
+
_this.name = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Packrun was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* The Grower Name for this Packrun
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.growerName =
|
|
97
|
+
_this.growerName = "";
|
|
98
98
|
/**
|
|
99
99
|
* The Grower Code for this Packrun
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.growerCode =
|
|
105
|
+
_this.growerCode = "";
|
|
106
106
|
/**
|
|
107
107
|
* The Maturity Area for this Packrun
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.maturityArea =
|
|
113
|
+
_this.maturityArea = "";
|
|
114
114
|
/**
|
|
115
115
|
* When this Packrun was Started
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.startTimestamp =
|
|
121
|
+
_this.startTimestamp = null;
|
|
122
122
|
/**
|
|
123
123
|
* When this Packrun was Finished
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.finishTimestamp =
|
|
129
|
+
_this.finishTimestamp = null;
|
|
130
130
|
/**
|
|
131
131
|
* The Variety for this Packrun
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.varietyId =
|
|
137
|
+
_this.varietyId = "";
|
|
138
138
|
/**
|
|
139
139
|
* The Growing Method for this Packrun
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.growingMethodId =
|
|
145
|
+
_this.growingMethodId = null;
|
|
146
146
|
/**
|
|
147
147
|
* The Number of Allocated Bins for this Packrun
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.allocatedBins =
|
|
153
|
+
_this.allocatedBins = 0;
|
|
154
154
|
/**
|
|
155
155
|
* The Time Batches for this Packrun
|
|
156
156
|
*
|
|
@@ -158,7 +158,31 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.timeBatches =
|
|
161
|
+
_this.timeBatches = [];
|
|
162
|
+
/**
|
|
163
|
+
* The FreshPack Grader ID associated with this Packrun
|
|
164
|
+
*
|
|
165
|
+
* @type {?number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.freshPackGraderId = null;
|
|
170
|
+
/**
|
|
171
|
+
* The FreshPack Bin Lot Code associated with this Packrun
|
|
172
|
+
*
|
|
173
|
+
* @type {?string}
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
_this.freshPackBinLotCode = null;
|
|
178
|
+
/**
|
|
179
|
+
* The FreshPack Produce Code associated with this Packrun
|
|
180
|
+
*
|
|
181
|
+
* @type {?string}
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
_this.freshPackProduceCode = null;
|
|
162
186
|
/**
|
|
163
187
|
* Whether the Packrun has been deleted
|
|
164
188
|
*
|
|
@@ -166,7 +190,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
190
|
* @public
|
|
167
191
|
*/
|
|
168
192
|
|
|
169
|
-
_this.deleted =
|
|
193
|
+
_this.deleted = false;
|
|
170
194
|
/**
|
|
171
195
|
* When the Packrun was last updated
|
|
172
196
|
*
|
|
@@ -174,7 +198,7 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
198
|
* @public
|
|
175
199
|
*/
|
|
176
200
|
|
|
177
|
-
_this.updateTimestamp =
|
|
201
|
+
_this.updateTimestamp = new Date();
|
|
178
202
|
/**
|
|
179
203
|
* The Site ID associated with this Packrun
|
|
180
204
|
*
|
|
@@ -364,6 +388,48 @@ var PackrunModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
364
388
|
}();
|
|
365
389
|
}
|
|
366
390
|
|
|
391
|
+
if ('freshPackGraderId' in jsonObject) {
|
|
392
|
+
model.freshPackGraderId = function () {
|
|
393
|
+
if (jsonObject['freshPackGraderId'] === null) {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (typeof jsonObject['freshPackGraderId'] !== 'number') {
|
|
398
|
+
return Number.isInteger(Number(jsonObject['freshPackGraderId'])) ? Number(jsonObject['freshPackGraderId']) : Math.floor(Number(jsonObject['freshPackGraderId']));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return Number.isInteger(jsonObject['freshPackGraderId']) ? jsonObject['freshPackGraderId'] : Math.floor(jsonObject['freshPackGraderId']);
|
|
402
|
+
}();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if ('freshPackBinLotCode' in jsonObject) {
|
|
406
|
+
model.freshPackBinLotCode = function () {
|
|
407
|
+
if (jsonObject['freshPackBinLotCode'] === null) {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (typeof jsonObject['freshPackBinLotCode'] !== 'string') {
|
|
412
|
+
return String(jsonObject['freshPackBinLotCode']);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return jsonObject['freshPackBinLotCode'];
|
|
416
|
+
}();
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if ('freshPackProduceCode' in jsonObject) {
|
|
420
|
+
model.freshPackProduceCode = function () {
|
|
421
|
+
if (jsonObject['freshPackProduceCode'] === null) {
|
|
422
|
+
return null;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (typeof jsonObject['freshPackProduceCode'] !== 'string') {
|
|
426
|
+
return String(jsonObject['freshPackProduceCode']);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return jsonObject['freshPackProduceCode'];
|
|
430
|
+
}();
|
|
431
|
+
}
|
|
432
|
+
|
|
367
433
|
if ('deleted' in jsonObject) {
|
|
368
434
|
model.deleted = function () {
|
|
369
435
|
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
@@ -62,7 +62,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Reject Bin Scale ID this Reject Bin is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rejectBinScaleId =
|
|
73
|
+
_this.rejectBinScaleId = "";
|
|
74
74
|
/**
|
|
75
75
|
* When this Reject Bin was Created
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.createdTimestamp =
|
|
81
|
+
_this.createdTimestamp = new Date();
|
|
82
82
|
/**
|
|
83
83
|
* The Name of the Reject Bin Scale where this Bin was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.rejectBinScaleName =
|
|
89
|
+
_this.rejectBinScaleName = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Tare Weight Captured by the Reject Bin Scale
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.tareWeight =
|
|
97
|
+
_this.tareWeight = null;
|
|
98
98
|
/**
|
|
99
99
|
* When this Reject Bin was Finalized (No new Weights)
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.finalizedTimestamp =
|
|
105
|
+
_this.finalizedTimestamp = null;
|
|
106
106
|
/**
|
|
107
107
|
* The Multi-Grower Bins that will be submitted to FreshPack
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.freshPackMultiGrowerBins =
|
|
113
|
+
_this.freshPackMultiGrowerBins = [];
|
|
114
114
|
/**
|
|
115
115
|
* Whether the Reject Bin has been deleted
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.deleted =
|
|
121
|
+
_this.deleted = false;
|
|
122
122
|
/**
|
|
123
123
|
* When the Reject Bin was last updated
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var RejectBinModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.updateTimestamp =
|
|
129
|
+
_this.updateTimestamp = new Date();
|
|
130
130
|
/**
|
|
131
131
|
* The Site ID associated with this Reject Bin
|
|
132
132
|
*
|
|
@@ -62,7 +62,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Reject Bin Scale belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Name of this Reject Bin Scale
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.name =
|
|
81
|
+
_this.name = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Points used by this Reject Bin Scale
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.points =
|
|
89
|
+
_this.points = {};
|
|
90
90
|
/**
|
|
91
91
|
* The Packing Line that owns this Reject Bin Scale
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.packingLineId =
|
|
97
|
+
_this.packingLineId = "";
|
|
98
98
|
/**
|
|
99
99
|
* The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.packrunSourceId =
|
|
105
|
+
_this.packrunSourceId = null;
|
|
106
106
|
/**
|
|
107
107
|
* The Packrun Group this Reject Bin Scale is a part of
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.packrunGroup =
|
|
113
|
+
_this.packrunGroup = null;
|
|
114
114
|
/**
|
|
115
115
|
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.sources =
|
|
121
|
+
_this.sources = [];
|
|
122
122
|
/**
|
|
123
123
|
* The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.autoPackrunChange =
|
|
129
|
+
_this.autoPackrunChange = null;
|
|
130
130
|
/**
|
|
131
131
|
* Whether this Reject Bin Scale supports Live Weighing
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.supportsLiveWeighing =
|
|
137
|
+
_this.supportsLiveWeighing = null;
|
|
138
138
|
/**
|
|
139
139
|
* The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.autoWeighingStartThreshold =
|
|
145
|
+
_this.autoWeighingStartThreshold = null;
|
|
146
146
|
/**
|
|
147
147
|
* The Delay in Milliseconds before Auto Live Weighing would Start
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.autoWeighingStartDelay =
|
|
153
|
+
_this.autoWeighingStartDelay = null;
|
|
154
154
|
/**
|
|
155
155
|
* The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.autoWeighingFinishThreshold =
|
|
161
|
+
_this.autoWeighingFinishThreshold = null;
|
|
162
162
|
/**
|
|
163
163
|
* The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.autoWeighingFinishDelay =
|
|
169
|
+
_this.autoWeighingFinishDelay = null;
|
|
170
170
|
/**
|
|
171
171
|
* The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
172
172
|
*
|
|
@@ -174,7 +174,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
_this.manualInterventionMaximumDuration =
|
|
177
|
+
_this.manualInterventionMaximumDuration = null;
|
|
178
178
|
/**
|
|
179
179
|
* The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
180
180
|
*
|
|
@@ -182,7 +182,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
182
182
|
* @public
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
|
-
_this.liveWeighingIncreaseTolerance =
|
|
185
|
+
_this.liveWeighingIncreaseTolerance = null;
|
|
186
186
|
/**
|
|
187
187
|
* The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
188
188
|
*
|
|
@@ -190,7 +190,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
190
|
* @public
|
|
191
191
|
*/
|
|
192
192
|
|
|
193
|
-
_this.liveWeighingDecreaseTolerance =
|
|
193
|
+
_this.liveWeighingDecreaseTolerance = null;
|
|
194
194
|
/**
|
|
195
195
|
* The Interval in Milliseconds between Live Weighing Updates
|
|
196
196
|
*
|
|
@@ -198,7 +198,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
198
198
|
* @public
|
|
199
199
|
*/
|
|
200
200
|
|
|
201
|
-
_this.liveWeighingUpdateInterval =
|
|
201
|
+
_this.liveWeighingUpdateInterval = null;
|
|
202
202
|
/**
|
|
203
203
|
* Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
|
|
204
204
|
*
|
|
@@ -206,7 +206,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
208
|
|
|
209
|
-
_this.liveWeighingUsesStableStatus =
|
|
209
|
+
_this.liveWeighingUsesStableStatus = null;
|
|
210
210
|
/**
|
|
211
211
|
* The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
|
|
212
212
|
*
|
|
@@ -214,7 +214,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
214
214
|
* @public
|
|
215
215
|
*/
|
|
216
216
|
|
|
217
|
-
_this.incorrectOperationTolerance =
|
|
217
|
+
_this.incorrectOperationTolerance = null;
|
|
218
218
|
/**
|
|
219
219
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
220
220
|
*
|
|
@@ -222,7 +222,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
222
222
|
* @public
|
|
223
223
|
*/
|
|
224
224
|
|
|
225
|
-
_this.freshPackIntegration =
|
|
225
|
+
_this.freshPackIntegration = null;
|
|
226
226
|
/**
|
|
227
227
|
* Whether the Reject Bin Scale has been deleted
|
|
228
228
|
*
|
|
@@ -230,7 +230,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
230
230
|
* @public
|
|
231
231
|
*/
|
|
232
232
|
|
|
233
|
-
_this.deleted =
|
|
233
|
+
_this.deleted = false;
|
|
234
234
|
/**
|
|
235
235
|
* When the Reject Bin Scale was last updated
|
|
236
236
|
*
|
|
@@ -238,7 +238,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
238
238
|
* @public
|
|
239
239
|
*/
|
|
240
240
|
|
|
241
|
-
_this.updateTimestamp =
|
|
241
|
+
_this.updateTimestamp = new Date();
|
|
242
242
|
/**
|
|
243
243
|
* The Site ID associated with this Reject Bin Scale
|
|
244
244
|
*
|
|
@@ -62,7 +62,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Reject Bin Scale ID this Reject Weight is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rejectBinScaleId =
|
|
73
|
+
_this.rejectBinScaleId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Reject Bin ID this Reject Weight is associated with
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.rejectBinId =
|
|
81
|
+
_this.rejectBinId = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Reject Bin Weight was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* The Packrun this Reject Weight is associated with
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.packrunId =
|
|
97
|
+
_this.packrunId = null;
|
|
98
98
|
/**
|
|
99
99
|
* The Net Weight Captured by the Reject Bin Scale
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.netWeight =
|
|
105
|
+
_this.netWeight = 0;
|
|
106
106
|
/**
|
|
107
107
|
* The Source Weights that make up the Net Weight
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.sources =
|
|
113
|
+
_this.sources = [];
|
|
114
114
|
/**
|
|
115
115
|
* The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.freshPackMultiGrowerBinWeights =
|
|
121
|
+
_this.freshPackMultiGrowerBinWeights = [];
|
|
122
122
|
/**
|
|
123
123
|
* Whether the Reject Bin Weight has been deleted
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.deleted =
|
|
129
|
+
_this.deleted = false;
|
|
130
130
|
/**
|
|
131
131
|
* When the Reject Bin Weight was last updated
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.updateTimestamp =
|
|
137
|
+
_this.updateTimestamp = new Date();
|
|
138
138
|
/**
|
|
139
139
|
* The Site ID associated with this Reject Bin Weight
|
|
140
140
|
*
|
|
@@ -62,7 +62,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Packing Line ID this Focus Meeting is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Shift ID this Focus Meeting is asssociated with
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.shiftId =
|
|
81
|
+
_this.shiftId = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Focus Meeting was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* When this Focus Meeting is Scheduled to Begin
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.scheduledTimestamp =
|
|
97
|
+
_this.scheduledTimestamp = new Date();
|
|
98
98
|
/**
|
|
99
99
|
* When this Focus Meeting was Started
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.startTimestamp =
|
|
105
|
+
_this.startTimestamp = null;
|
|
106
106
|
/**
|
|
107
107
|
* When this Focus Meeting was Completed
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.finishTimestamp =
|
|
113
|
+
_this.finishTimestamp = null;
|
|
114
114
|
/**
|
|
115
115
|
* An Optional Key Focus until the Next Meeting
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.nextKeyFocus =
|
|
121
|
+
_this.nextKeyFocus = null;
|
|
122
122
|
/**
|
|
123
123
|
* An Optional Rating between 1 and 10 on how Successful the Focus Meeting was
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.successRating =
|
|
129
|
+
_this.successRating = null;
|
|
130
130
|
/**
|
|
131
131
|
* The Status of this Focus Meeting
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.status =
|
|
137
|
+
_this.status = "";
|
|
138
138
|
/**
|
|
139
139
|
* Whether the Shift Focus Meeting has been deleted
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.deleted =
|
|
145
|
+
_this.deleted = false;
|
|
146
146
|
/**
|
|
147
147
|
* When the Shift Focus Meeting was last updated
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.updateTimestamp =
|
|
153
|
+
_this.updateTimestamp = new Date();
|
|
154
154
|
/**
|
|
155
155
|
* The Site ID associated with this Shift Focus Meeting
|
|
156
156
|
*
|