@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 ShiftHourlyEntryModel = /*#__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 Hourly Entry is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Shift ID this Hourly Entry is asssociated with
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.shiftId =
|
|
81
|
+
_this.shiftId = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Hourly Entry was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* The Start Timestamp of this Hourly Entry
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.startTimestamp =
|
|
97
|
+
_this.startTimestamp = new Date();
|
|
98
98
|
/**
|
|
99
99
|
* The End Timestamp of this Hourly Entry
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.endTimestamp =
|
|
105
|
+
_this.endTimestamp = new Date();
|
|
106
106
|
/**
|
|
107
107
|
* The Number of People working in all Areas except Class 2 for this Hour
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.class1Manning =
|
|
113
|
+
_this.class1Manning = null;
|
|
114
114
|
/**
|
|
115
115
|
* The Number of People working in the Class 2 Area for this Hour
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.class2Manning =
|
|
121
|
+
_this.class2Manning = null;
|
|
122
122
|
/**
|
|
123
123
|
* The Average Target Number of People that should be working for this Hour
|
|
124
124
|
*
|
|
@@ -126,7 +126,15 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.averageManningTarget =
|
|
129
|
+
_this.averageManningTarget = null;
|
|
130
|
+
/**
|
|
131
|
+
* The Average Cost per Person working in all Areas for this Hour
|
|
132
|
+
*
|
|
133
|
+
* @type {?number}
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
_this.averageCostPerManningUnit = null;
|
|
130
138
|
/**
|
|
131
139
|
* The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
132
140
|
*
|
|
@@ -134,7 +142,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
142
|
* @public
|
|
135
143
|
*/
|
|
136
144
|
|
|
137
|
-
_this.layeredTrayPercentage =
|
|
145
|
+
_this.layeredTrayPercentage = null;
|
|
138
146
|
/**
|
|
139
147
|
* The Average Class 1 Percentage for this Hour
|
|
140
148
|
*
|
|
@@ -142,7 +150,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
150
|
* @public
|
|
143
151
|
*/
|
|
144
152
|
|
|
145
|
-
_this.averageClass1Percentage =
|
|
153
|
+
_this.averageClass1Percentage = null;
|
|
146
154
|
/**
|
|
147
155
|
* The Number of Quality R600 Samples that were Ideal for this Hour
|
|
148
156
|
*
|
|
@@ -150,15 +158,23 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
158
|
* @public
|
|
151
159
|
*/
|
|
152
160
|
|
|
153
|
-
_this.qualityR600IdealSamplesPercentage =
|
|
161
|
+
_this.qualityR600IdealSamplesPercentage = null;
|
|
162
|
+
/**
|
|
163
|
+
* The Average Target Number of Quality R600 Samples that should be Ideal for this Hour
|
|
164
|
+
*
|
|
165
|
+
* @type {?number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.averageQualityR600IdealSamplesTarget = null;
|
|
154
170
|
/**
|
|
155
171
|
* An Array of Custom Quality Data Items for this Hour
|
|
156
172
|
*
|
|
157
|
-
* @type {Array<{id: string, name: string, type: string, value: number}>}
|
|
173
|
+
* @type {Array<{id: string, name: string, type: string, value: number, averageTarget: number}>}
|
|
158
174
|
* @public
|
|
159
175
|
*/
|
|
160
176
|
|
|
161
|
-
_this.customQualityData =
|
|
177
|
+
_this.customQualityData = [];
|
|
162
178
|
/**
|
|
163
179
|
* The Total Number of Bins Tipped for this Hour
|
|
164
180
|
*
|
|
@@ -166,7 +182,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
182
|
* @public
|
|
167
183
|
*/
|
|
168
184
|
|
|
169
|
-
_this.totalBinsTipped =
|
|
185
|
+
_this.totalBinsTipped = 0;
|
|
170
186
|
/**
|
|
171
187
|
* The Target Number of Bins to Tip for this Hour
|
|
172
188
|
*
|
|
@@ -174,7 +190,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
190
|
* @public
|
|
175
191
|
*/
|
|
176
192
|
|
|
177
|
-
_this.binsTippedTarget =
|
|
193
|
+
_this.binsTippedTarget = 0;
|
|
178
194
|
/**
|
|
179
195
|
* The Total Downtime for this Hour expressed in Seconds
|
|
180
196
|
*
|
|
@@ -182,7 +198,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
182
198
|
* @public
|
|
183
199
|
*/
|
|
184
200
|
|
|
185
|
-
_this.totalDowntime =
|
|
201
|
+
_this.totalDowntime = 0;
|
|
186
202
|
/**
|
|
187
203
|
* The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
|
|
188
204
|
*
|
|
@@ -190,7 +206,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
206
|
* @public
|
|
191
207
|
*/
|
|
192
208
|
|
|
193
|
-
_this.totalProductionTime =
|
|
209
|
+
_this.totalProductionTime = 0;
|
|
194
210
|
/**
|
|
195
211
|
* The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
196
212
|
*
|
|
@@ -198,7 +214,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
198
214
|
* @public
|
|
199
215
|
*/
|
|
200
216
|
|
|
201
|
-
_this.totalClass1Trays =
|
|
217
|
+
_this.totalClass1Trays = 0;
|
|
202
218
|
/**
|
|
203
219
|
* The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
204
220
|
*
|
|
@@ -206,7 +222,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
222
|
* @public
|
|
207
223
|
*/
|
|
208
224
|
|
|
209
|
-
_this.totalClass2Trays =
|
|
225
|
+
_this.totalClass2Trays = 0;
|
|
210
226
|
/**
|
|
211
227
|
* The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
212
228
|
*
|
|
@@ -214,7 +230,31 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
214
230
|
* @public
|
|
215
231
|
*/
|
|
216
232
|
|
|
217
|
-
_this.class1TraysPerHourExcludingDowntimeTarget =
|
|
233
|
+
_this.class1TraysPerHourExcludingDowntimeTarget = 0;
|
|
234
|
+
/**
|
|
235
|
+
* The Target Number of Class 1 Tray Equivalents that should be Packed after Adjustment (Manning %, Class 1 %, Soft-Sort %) for this Hour
|
|
236
|
+
*
|
|
237
|
+
* @type {?number}
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
_this.averageClass1TraysPerHourAdjustedTarget = null;
|
|
242
|
+
/**
|
|
243
|
+
* The Average Cost per Tray Equivalent for this Hour
|
|
244
|
+
*
|
|
245
|
+
* @type {?number}
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
_this.averageCostPerTray = null;
|
|
250
|
+
/**
|
|
251
|
+
* The Average Cost per Tray Equivalent Target for this Hour
|
|
252
|
+
*
|
|
253
|
+
* @type {?number}
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
_this.averageCostPerTrayTarget = null;
|
|
218
258
|
/**
|
|
219
259
|
* The Primary Issue Category for this Hourly Entry
|
|
220
260
|
*
|
|
@@ -222,7 +262,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
222
262
|
* @public
|
|
223
263
|
*/
|
|
224
264
|
|
|
225
|
-
_this.primaryIssueCategory =
|
|
265
|
+
_this.primaryIssueCategory = null;
|
|
226
266
|
/**
|
|
227
267
|
* The Primary Issue Tag for this Hourly Entry
|
|
228
268
|
*
|
|
@@ -230,7 +270,15 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
230
270
|
* @public
|
|
231
271
|
*/
|
|
232
272
|
|
|
233
|
-
_this.primaryIssueTag =
|
|
273
|
+
_this.primaryIssueTag = null;
|
|
274
|
+
/**
|
|
275
|
+
* A Percentage between 0% and 100% indicating how much the Primary Issue impacted Throughput for this Hourly Entry
|
|
276
|
+
*
|
|
277
|
+
* @type {?number}
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
_this.primaryIssuePercentage = null;
|
|
234
282
|
/**
|
|
235
283
|
* The Secondary Issue Category for this Hourly Entry
|
|
236
284
|
*
|
|
@@ -238,7 +286,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
238
286
|
* @public
|
|
239
287
|
*/
|
|
240
288
|
|
|
241
|
-
_this.secondaryIssueCategory =
|
|
289
|
+
_this.secondaryIssueCategory = null;
|
|
242
290
|
/**
|
|
243
291
|
* The Secondary Issue Tag for this Hourly Entry
|
|
244
292
|
*
|
|
@@ -246,7 +294,15 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
246
294
|
* @public
|
|
247
295
|
*/
|
|
248
296
|
|
|
249
|
-
_this.secondaryIssueTag =
|
|
297
|
+
_this.secondaryIssueTag = null;
|
|
298
|
+
/**
|
|
299
|
+
* A Percentage between 0% and 100% indicating how much the Secondary Issue impacted Throughput for this Hourly Entry
|
|
300
|
+
*
|
|
301
|
+
* @type {?number}
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
_this.secondaryIssuePercentage = null;
|
|
250
306
|
/**
|
|
251
307
|
* An Optional Focus for the Next Hour
|
|
252
308
|
*
|
|
@@ -254,7 +310,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
254
310
|
* @public
|
|
255
311
|
*/
|
|
256
312
|
|
|
257
|
-
_this.nextHourFocus =
|
|
313
|
+
_this.nextHourFocus = null;
|
|
258
314
|
/**
|
|
259
315
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
260
316
|
*
|
|
@@ -262,7 +318,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
262
318
|
* @public
|
|
263
319
|
*/
|
|
264
320
|
|
|
265
|
-
_this.satisfactionRating =
|
|
321
|
+
_this.satisfactionRating = null;
|
|
266
322
|
/**
|
|
267
323
|
* The Status of this Hourly Entry
|
|
268
324
|
*
|
|
@@ -270,7 +326,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
270
326
|
* @public
|
|
271
327
|
*/
|
|
272
328
|
|
|
273
|
-
_this.status =
|
|
329
|
+
_this.status = "";
|
|
274
330
|
/**
|
|
275
331
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
276
332
|
*
|
|
@@ -278,7 +334,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
278
334
|
* @public
|
|
279
335
|
*/
|
|
280
336
|
|
|
281
|
-
_this.class1TraysPerHourPotential =
|
|
337
|
+
_this.class1TraysPerHourPotential = 0;
|
|
282
338
|
/**
|
|
283
339
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
|
|
284
340
|
*
|
|
@@ -286,7 +342,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
286
342
|
* @public
|
|
287
343
|
*/
|
|
288
344
|
|
|
289
|
-
_this.class1TraysPerHourExcludingDowntime =
|
|
345
|
+
_this.class1TraysPerHourExcludingDowntime = 0;
|
|
290
346
|
/**
|
|
291
347
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
292
348
|
*
|
|
@@ -294,7 +350,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
294
350
|
* @public
|
|
295
351
|
*/
|
|
296
352
|
|
|
297
|
-
_this.class1TraysPerManHourPotential =
|
|
353
|
+
_this.class1TraysPerManHourPotential = null;
|
|
298
354
|
/**
|
|
299
355
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
|
|
300
356
|
*
|
|
@@ -302,7 +358,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
302
358
|
* @public
|
|
303
359
|
*/
|
|
304
360
|
|
|
305
|
-
_this.class1TraysPerManHourExcludingDowntime =
|
|
361
|
+
_this.class1TraysPerManHourExcludingDowntime = null;
|
|
306
362
|
/**
|
|
307
363
|
* The Manning Percentage based on the Average Target for this Hour
|
|
308
364
|
*
|
|
@@ -310,7 +366,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
310
366
|
* @public
|
|
311
367
|
*/
|
|
312
368
|
|
|
313
|
-
_this.manningPercentage =
|
|
369
|
+
_this.manningPercentage = null;
|
|
314
370
|
/**
|
|
315
371
|
* The Total Number of People working for this Hour
|
|
316
372
|
*
|
|
@@ -318,7 +374,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
318
374
|
* @public
|
|
319
375
|
*/
|
|
320
376
|
|
|
321
|
-
_this.totalManning =
|
|
377
|
+
_this.totalManning = null;
|
|
322
378
|
/**
|
|
323
379
|
* The Percentage of Production Time without Downtime for this Hour
|
|
324
380
|
*
|
|
@@ -326,7 +382,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
326
382
|
* @public
|
|
327
383
|
*/
|
|
328
384
|
|
|
329
|
-
_this.uptimePercentage =
|
|
385
|
+
_this.uptimePercentage = 0;
|
|
330
386
|
/**
|
|
331
387
|
* The Percentage of Downtime for this Hour
|
|
332
388
|
*
|
|
@@ -334,7 +390,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
334
390
|
* @public
|
|
335
391
|
*/
|
|
336
392
|
|
|
337
|
-
_this.downtimePercentage =
|
|
393
|
+
_this.downtimePercentage = 0;
|
|
338
394
|
/**
|
|
339
395
|
* Whether the Shift Hourly Entry has been deleted
|
|
340
396
|
*
|
|
@@ -342,7 +398,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
342
398
|
* @public
|
|
343
399
|
*/
|
|
344
400
|
|
|
345
|
-
_this.deleted =
|
|
401
|
+
_this.deleted = false;
|
|
346
402
|
/**
|
|
347
403
|
* When the Shift Hourly Entry was last updated
|
|
348
404
|
*
|
|
@@ -350,7 +406,7 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
350
406
|
* @public
|
|
351
407
|
*/
|
|
352
408
|
|
|
353
|
-
_this.updateTimestamp =
|
|
409
|
+
_this.updateTimestamp = new Date();
|
|
354
410
|
/**
|
|
355
411
|
* The Site ID associated with this Shift Hourly Entry
|
|
356
412
|
*
|
|
@@ -492,6 +548,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
492
548
|
}();
|
|
493
549
|
}
|
|
494
550
|
|
|
551
|
+
if ('averageCostPerManningUnit' in jsonObject) {
|
|
552
|
+
model.averageCostPerManningUnit = function () {
|
|
553
|
+
if (jsonObject['averageCostPerManningUnit'] === null) {
|
|
554
|
+
return null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if (typeof jsonObject['averageCostPerManningUnit'] !== 'number') {
|
|
558
|
+
return Number(jsonObject['averageCostPerManningUnit']);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
return jsonObject['averageCostPerManningUnit'];
|
|
562
|
+
}();
|
|
563
|
+
}
|
|
564
|
+
|
|
495
565
|
if ('layeredTrayPercentage' in jsonObject) {
|
|
496
566
|
model.layeredTrayPercentage = function () {
|
|
497
567
|
if (jsonObject['layeredTrayPercentage'] === null) {
|
|
@@ -534,6 +604,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
534
604
|
}();
|
|
535
605
|
}
|
|
536
606
|
|
|
607
|
+
if ('averageQualityR600IdealSamplesTarget' in jsonObject) {
|
|
608
|
+
model.averageQualityR600IdealSamplesTarget = function () {
|
|
609
|
+
if (jsonObject['averageQualityR600IdealSamplesTarget'] === null) {
|
|
610
|
+
return null;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (typeof jsonObject['averageQualityR600IdealSamplesTarget'] !== 'number') {
|
|
614
|
+
return Number(jsonObject['averageQualityR600IdealSamplesTarget']);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
return jsonObject['averageQualityR600IdealSamplesTarget'];
|
|
618
|
+
}();
|
|
619
|
+
}
|
|
620
|
+
|
|
537
621
|
if ('customQualityData' in jsonObject) {
|
|
538
622
|
model.customQualityData = function () {
|
|
539
623
|
if (Array.isArray(jsonObject['customQualityData']) !== true) {
|
|
@@ -592,6 +676,18 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
592
676
|
customQualityDataItemObject.value = 0;
|
|
593
677
|
}
|
|
594
678
|
|
|
679
|
+
if (_typeof(customQualityDataItem) === 'object' && 'averageTarget' in customQualityDataItem) {
|
|
680
|
+
customQualityDataItemObject.averageTarget = function () {
|
|
681
|
+
if (typeof customQualityDataItem.averageTarget !== 'number') {
|
|
682
|
+
return Number(customQualityDataItem.averageTarget);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
return customQualityDataItem.averageTarget;
|
|
686
|
+
}();
|
|
687
|
+
} else {
|
|
688
|
+
customQualityDataItemObject.averageTarget = 0;
|
|
689
|
+
}
|
|
690
|
+
|
|
595
691
|
return customQualityDataItemObject;
|
|
596
692
|
}();
|
|
597
693
|
});
|
|
@@ -668,6 +764,48 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
668
764
|
}();
|
|
669
765
|
}
|
|
670
766
|
|
|
767
|
+
if ('averageClass1TraysPerHourAdjustedTarget' in jsonObject) {
|
|
768
|
+
model.averageClass1TraysPerHourAdjustedTarget = function () {
|
|
769
|
+
if (jsonObject['averageClass1TraysPerHourAdjustedTarget'] === null) {
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
if (typeof jsonObject['averageClass1TraysPerHourAdjustedTarget'] !== 'number') {
|
|
774
|
+
return Number.isInteger(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget'])) ? Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']) : Math.floor(Number(jsonObject['averageClass1TraysPerHourAdjustedTarget']));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return Number.isInteger(jsonObject['averageClass1TraysPerHourAdjustedTarget']) ? jsonObject['averageClass1TraysPerHourAdjustedTarget'] : Math.floor(jsonObject['averageClass1TraysPerHourAdjustedTarget']);
|
|
778
|
+
}();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
if ('averageCostPerTray' in jsonObject) {
|
|
782
|
+
model.averageCostPerTray = function () {
|
|
783
|
+
if (jsonObject['averageCostPerTray'] === null) {
|
|
784
|
+
return null;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
if (typeof jsonObject['averageCostPerTray'] !== 'number') {
|
|
788
|
+
return Number(jsonObject['averageCostPerTray']);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
return jsonObject['averageCostPerTray'];
|
|
792
|
+
}();
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
if ('averageCostPerTrayTarget' in jsonObject) {
|
|
796
|
+
model.averageCostPerTrayTarget = function () {
|
|
797
|
+
if (jsonObject['averageCostPerTrayTarget'] === null) {
|
|
798
|
+
return null;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
if (typeof jsonObject['averageCostPerTrayTarget'] !== 'number') {
|
|
802
|
+
return Number(jsonObject['averageCostPerTrayTarget']);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
return jsonObject['averageCostPerTrayTarget'];
|
|
806
|
+
}();
|
|
807
|
+
}
|
|
808
|
+
|
|
671
809
|
if ('primaryIssueCategory' in jsonObject) {
|
|
672
810
|
model.primaryIssueCategory = function () {
|
|
673
811
|
if (jsonObject['primaryIssueCategory'] === null) {
|
|
@@ -696,6 +834,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
696
834
|
}();
|
|
697
835
|
}
|
|
698
836
|
|
|
837
|
+
if ('primaryIssuePercentage' in jsonObject) {
|
|
838
|
+
model.primaryIssuePercentage = function () {
|
|
839
|
+
if (jsonObject['primaryIssuePercentage'] === null) {
|
|
840
|
+
return null;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
if (typeof jsonObject['primaryIssuePercentage'] !== 'number') {
|
|
844
|
+
return Number(jsonObject['primaryIssuePercentage']);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
return jsonObject['primaryIssuePercentage'];
|
|
848
|
+
}();
|
|
849
|
+
}
|
|
850
|
+
|
|
699
851
|
if ('secondaryIssueCategory' in jsonObject) {
|
|
700
852
|
model.secondaryIssueCategory = function () {
|
|
701
853
|
if (jsonObject['secondaryIssueCategory'] === null) {
|
|
@@ -724,6 +876,20 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
724
876
|
}();
|
|
725
877
|
}
|
|
726
878
|
|
|
879
|
+
if ('secondaryIssuePercentage' in jsonObject) {
|
|
880
|
+
model.secondaryIssuePercentage = function () {
|
|
881
|
+
if (jsonObject['secondaryIssuePercentage'] === null) {
|
|
882
|
+
return null;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
if (typeof jsonObject['secondaryIssuePercentage'] !== 'number') {
|
|
886
|
+
return Number(jsonObject['secondaryIssuePercentage']);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
return jsonObject['secondaryIssuePercentage'];
|
|
890
|
+
}();
|
|
891
|
+
}
|
|
892
|
+
|
|
727
893
|
if ('nextHourFocus' in jsonObject) {
|
|
728
894
|
model.nextHourFocus = function () {
|
|
729
895
|
if (jsonObject['nextHourFocus'] === null) {
|
|
@@ -62,7 +62,7 @@ var ShiftModel = /*#__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 Shift is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* When this Shift was Created
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.createdTimestamp =
|
|
81
|
+
_this.createdTimestamp = new Date();
|
|
82
82
|
/**
|
|
83
83
|
* The Type of Shift
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.type =
|
|
89
|
+
_this.type = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Name of the Line Manager for this Shift
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.lineManagerName =
|
|
97
|
+
_this.lineManagerName = null;
|
|
98
98
|
/**
|
|
99
99
|
* The Target Number of Bins to Tip for this Shift
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.binsTippedTarget =
|
|
105
|
+
_this.binsTippedTarget = null;
|
|
106
106
|
/**
|
|
107
107
|
* *DEPRECATED* The Initial Number of People working in all Areas except Class 2 for this Hour
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.initialClass1Manning =
|
|
113
|
+
_this.initialClass1Manning = null;
|
|
114
114
|
/**
|
|
115
115
|
* *DEPRECATED* The Initial Number of People working in the Class 2 Area for this Hour
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.initialClass2Manning =
|
|
121
|
+
_this.initialClass2Manning = null;
|
|
122
122
|
/**
|
|
123
123
|
* When this Shift was Ready for Packing
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.readyTimestamp =
|
|
129
|
+
_this.readyTimestamp = null;
|
|
130
130
|
/**
|
|
131
131
|
* When this Shift was Started
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.startTimestamp =
|
|
137
|
+
_this.startTimestamp = null;
|
|
138
138
|
/**
|
|
139
139
|
* When this Shift was Finished
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.finishTimestamp =
|
|
145
|
+
_this.finishTimestamp = null;
|
|
146
146
|
/**
|
|
147
147
|
* When this Shift was Published
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.publishTimestamp =
|
|
153
|
+
_this.publishTimestamp = null;
|
|
154
154
|
/**
|
|
155
155
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.satisfactionRating =
|
|
161
|
+
_this.satisfactionRating = null;
|
|
162
162
|
/**
|
|
163
163
|
* *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.handoverNotes =
|
|
169
|
+
_this.handoverNotes = [];
|
|
170
170
|
/**
|
|
171
171
|
* An Optional Array of Notes for this Shift
|
|
172
172
|
*
|
|
@@ -174,7 +174,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
_this.areaNotes =
|
|
177
|
+
_this.areaNotes = [];
|
|
178
178
|
/**
|
|
179
179
|
* The Schedule for this Shift
|
|
180
180
|
*
|
|
@@ -182,7 +182,13 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
182
182
|
* @public
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
|
-
_this.schedule =
|
|
185
|
+
_this.schedule = function () {
|
|
186
|
+
var scheduleDefaultValue = {};
|
|
187
|
+
scheduleDefaultValue.startTime = "";
|
|
188
|
+
scheduleDefaultValue.endTime = "";
|
|
189
|
+
scheduleDefaultValue.breaks = [];
|
|
190
|
+
return scheduleDefaultValue;
|
|
191
|
+
}();
|
|
186
192
|
/**
|
|
187
193
|
* The Status of this Shift
|
|
188
194
|
*
|
|
@@ -190,7 +196,8 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
196
|
* @public
|
|
191
197
|
*/
|
|
192
198
|
|
|
193
|
-
|
|
199
|
+
|
|
200
|
+
_this.status = "";
|
|
194
201
|
/**
|
|
195
202
|
* Whether the Shift has been deleted
|
|
196
203
|
*
|
|
@@ -198,7 +205,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
198
205
|
* @public
|
|
199
206
|
*/
|
|
200
207
|
|
|
201
|
-
_this.deleted =
|
|
208
|
+
_this.deleted = false;
|
|
202
209
|
/**
|
|
203
210
|
* When the Shift was last updated
|
|
204
211
|
*
|
|
@@ -206,7 +213,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
213
|
* @public
|
|
207
214
|
*/
|
|
208
215
|
|
|
209
|
-
_this.updateTimestamp =
|
|
216
|
+
_this.updateTimestamp = new Date();
|
|
210
217
|
/**
|
|
211
218
|
* The Site ID associated with this Shift
|
|
212
219
|
*
|