@ricado/api-client 1.4.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/AccountPolicyController.js +1 -1
- package/lib/Controllers/ApiAccountController.js +2 -2
- package/lib/Controllers/CompanyController.js +1 -1
- package/lib/Controllers/FirebaseTokenController.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
- package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
- package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
- package/lib/Controllers/RTUController.js +1 -1
- package/lib/Controllers/RTUPluginController.js +1 -1
- package/lib/Controllers/Site/AlarmController.js +2 -2
- package/lib/Controllers/Site/AlarmGroupController.js +1 -1
- package/lib/Controllers/Site/DefinitionController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
- package/lib/Controllers/Site/PointController.js +2 -2
- package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
- package/lib/Controllers/SiteController.js +1 -1
- package/lib/Controllers/TokenController.js +2 -2
- package/lib/Controllers/ToolsController.js +1 -1
- package/lib/Controllers/UserAccountActionTokenController.js +2 -2
- package/lib/Controllers/UserAccountController.js +2 -2
- package/lib/DataItems/PointValueItem.js +2 -2
- package/lib/Errors/BadRequestError.js +7 -3
- package/lib/Errors/ForbiddenError.js +7 -3
- package/lib/Errors/NetworkError.js +7 -3
- package/lib/Errors/NotAllowedError.js +7 -3
- package/lib/Errors/NotFoundError.js +7 -3
- package/lib/Errors/ServerError.js +7 -3
- package/lib/Errors/UnauthorizedError.js +7 -3
- package/lib/Models/AccountPolicyModel.js +29 -133
- package/lib/Models/ApiAccountModel.js +29 -133
- package/lib/Models/BaseModel.js +6 -2
- package/lib/Models/CompanyModel.js +23 -101
- package/lib/Models/FirebaseTokenModel.js +32 -149
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
- package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
- package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
- package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
- package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
- package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
- package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
- package/lib/Models/RTUModel.js +26 -117
- package/lib/Models/RTUPluginModel.js +23 -101
- package/lib/Models/Site/AlarmGroupModel.js +37 -153
- package/lib/Models/Site/AlarmModel.js +67 -313
- package/lib/Models/Site/DefinitionModel.js +34 -137
- package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
- package/lib/Models/Site/PermanentObjectModel.js +37 -153
- package/lib/Models/Site/PointModel.js +49 -217
- package/lib/Models/Site/TemporaryObjectModel.js +34 -137
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +26 -117
- package/lib/Models/TokenModel.js +38 -181
- package/lib/Models/UserAccountActionTokenModel.js +41 -197
- package/lib/Models/UserAccountModel.js +38 -181
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +1 -1
- package/lib/RequestHelper.js +2 -2
- package/lib/WebSocketHelper.js +1 -1
- package/lib/index.d.ts +945 -1206
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
- package/src/Models/AccountPolicyModel.js +21 -117
- package/src/Models/ApiAccountModel.js +21 -117
- package/src/Models/CompanyModel.js +15 -87
- package/src/Models/FirebaseTokenModel.js +24 -132
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
- package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
- package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
- package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
- package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
- package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
- package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +26 -133
- package/src/Models/Site/AlarmModel.js +56 -283
- package/src/Models/Site/DefinitionModel.js +23 -118
- package/src/Models/Site/PermanentObjectDataModel.js +29 -148
- package/src/Models/Site/PermanentObjectModel.js +26 -133
- package/src/Models/Site/PointModel.js +38 -193
- package/src/Models/Site/TemporaryObjectModel.js +23 -118
- package/src/Models/Site/index.js +0 -2
- package/src/Models/SiteModel.js +18 -102
- package/src/Models/TokenModel.js +30 -162
- package/src/Models/UserAccountActionTokenModel.js +33 -177
- package/src/Models/UserAccountModel.js +30 -162
- package/src/PackageVersion.js +1 -1
- package/lib/Models/Site/BaseSiteModel.js +0 -58
- package/src/Models/Site/BaseSiteModel.js +0 -30
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* Do Not Edit this File Manually!
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Model Class for a Shift Hourly Entry
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class ShiftHourlyEntryModel extends
|
|
16
|
+
class ShiftHourlyEntryModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* ShiftHourlyEntryModel Constructor
|
|
@@ -29,772 +29,305 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
29
29
|
* The Shift Hourly Entry ID
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @
|
|
32
|
+
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.
|
|
34
|
+
this.id = undefined;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Packing Line ID this Hourly Entry is associated with
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @
|
|
40
|
+
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.packingLineId = undefined;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Shift ID this Hourly Entry is asssociated with
|
|
46
46
|
*
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.shiftId = undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Hourly Entry was Created
|
|
54
54
|
*
|
|
55
55
|
* @type {Date}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Start Timestamp of this Hourly Entry
|
|
62
62
|
*
|
|
63
63
|
* @type {Date}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.startTimestamp = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The End Timestamp of this Hourly Entry
|
|
70
70
|
*
|
|
71
71
|
* @type {Date}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.endTimestamp = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Number of People working in all Areas except Class 2 for this Hour
|
|
78
78
|
*
|
|
79
79
|
* @type {?number}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.class1Manning = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Number of People working in the Class 2 Area for this Hour
|
|
86
86
|
*
|
|
87
87
|
* @type {?number}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.class2Manning = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Average Target Number of People that should be working for this Hour
|
|
94
94
|
*
|
|
95
95
|
* @type {?number}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.averageManningTarget = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
102
102
|
*
|
|
103
103
|
* @type {?number}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
106
|
+
this.layeredTrayPercentage = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Average Class 1 Percentage for this Hour
|
|
110
110
|
*
|
|
111
111
|
* @type {?number}
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.
|
|
114
|
+
this.averageClass1Percentage = undefined;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Number of Quality R600 Samples that were Ideal for this Hour
|
|
118
118
|
*
|
|
119
119
|
* @type {?number}
|
|
120
|
-
* @
|
|
120
|
+
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.
|
|
122
|
+
this.qualityR600IdealSamplesPercentage = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* An Array of Custom Quality Data Items for this Hour
|
|
126
126
|
*
|
|
127
127
|
* @type {Array<{id: string, name: string, type: string, value: number}>}
|
|
128
|
-
* @
|
|
128
|
+
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.
|
|
130
|
+
this.customQualityData = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* The Total Number of Bins Tipped for this Hour
|
|
134
134
|
*
|
|
135
135
|
* @type {number}
|
|
136
|
-
* @
|
|
136
|
+
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.
|
|
138
|
+
this.totalBinsTipped = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Target Number of Bins to Tip for this Hour
|
|
142
142
|
*
|
|
143
143
|
* @type {number}
|
|
144
|
-
* @
|
|
144
|
+
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.
|
|
146
|
+
this.binsTippedTarget = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The Total Downtime for this Hour expressed in Seconds
|
|
150
150
|
*
|
|
151
151
|
* @type {number}
|
|
152
|
-
* @
|
|
152
|
+
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.
|
|
154
|
+
this.totalDowntime = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
|
|
158
158
|
*
|
|
159
159
|
* @type {number}
|
|
160
|
-
* @
|
|
160
|
+
* @public
|
|
161
161
|
*/
|
|
162
|
-
this.
|
|
162
|
+
this.totalProductionTime = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
166
166
|
*
|
|
167
167
|
* @type {number}
|
|
168
|
-
* @
|
|
168
|
+
* @public
|
|
169
169
|
*/
|
|
170
|
-
this.
|
|
170
|
+
this.totalClass1Trays = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
174
174
|
*
|
|
175
175
|
* @type {number}
|
|
176
|
-
* @
|
|
176
|
+
* @public
|
|
177
177
|
*/
|
|
178
|
-
this.
|
|
178
|
+
this.totalClass2Trays = undefined;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
182
182
|
*
|
|
183
183
|
* @type {number}
|
|
184
|
-
* @
|
|
184
|
+
* @public
|
|
185
185
|
*/
|
|
186
|
-
this.
|
|
186
|
+
this.class1TraysPerHourExcludingDowntimeTarget = undefined;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* The Primary Issue Category for this Hourly Entry
|
|
190
190
|
*
|
|
191
191
|
* @type {?string}
|
|
192
|
-
* @
|
|
192
|
+
* @public
|
|
193
193
|
*/
|
|
194
|
-
this.
|
|
194
|
+
this.primaryIssueCategory = undefined;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* The Primary Issue Tag for this Hourly Entry
|
|
198
198
|
*
|
|
199
199
|
* @type {?string}
|
|
200
|
-
* @
|
|
200
|
+
* @public
|
|
201
201
|
*/
|
|
202
|
-
this.
|
|
202
|
+
this.primaryIssueTag = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* The Secondary Issue Category for this Hourly Entry
|
|
206
206
|
*
|
|
207
207
|
* @type {?string}
|
|
208
|
-
* @
|
|
208
|
+
* @public
|
|
209
209
|
*/
|
|
210
|
-
this.
|
|
210
|
+
this.secondaryIssueCategory = undefined;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* The Secondary Issue Tag for this Hourly Entry
|
|
214
214
|
*
|
|
215
215
|
* @type {?string}
|
|
216
|
-
* @
|
|
216
|
+
* @public
|
|
217
217
|
*/
|
|
218
|
-
this.
|
|
218
|
+
this.secondaryIssueTag = undefined;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* An Optional Focus for the Next Hour
|
|
222
222
|
*
|
|
223
223
|
* @type {?string}
|
|
224
|
-
* @
|
|
224
|
+
* @public
|
|
225
225
|
*/
|
|
226
|
-
this.
|
|
226
|
+
this.nextHourFocus = undefined;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
230
230
|
*
|
|
231
231
|
* @type {?number}
|
|
232
|
-
* @
|
|
232
|
+
* @public
|
|
233
233
|
*/
|
|
234
|
-
this.
|
|
234
|
+
this.satisfactionRating = undefined;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* The Status of this Hourly Entry
|
|
238
238
|
*
|
|
239
239
|
* @type {string}
|
|
240
|
-
* @
|
|
240
|
+
* @public
|
|
241
241
|
*/
|
|
242
|
-
this.
|
|
242
|
+
this.status = undefined;
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
245
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
246
246
|
*
|
|
247
247
|
* @type {number}
|
|
248
|
-
* @
|
|
248
|
+
* @public
|
|
249
249
|
*/
|
|
250
|
-
this.
|
|
250
|
+
this.class1TraysPerHourPotential = undefined;
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
|
|
254
254
|
*
|
|
255
255
|
* @type {number}
|
|
256
|
-
* @
|
|
256
|
+
* @public
|
|
257
257
|
*/
|
|
258
|
-
this.
|
|
258
|
+
this.class1TraysPerHourExcludingDowntime = undefined;
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
262
262
|
*
|
|
263
263
|
* @type {?number}
|
|
264
|
-
* @
|
|
264
|
+
* @public
|
|
265
265
|
*/
|
|
266
|
-
this.
|
|
266
|
+
this.class1TraysPerManHourPotential = undefined;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
|
|
270
270
|
*
|
|
271
271
|
* @type {?number}
|
|
272
|
-
* @
|
|
272
|
+
* @public
|
|
273
273
|
*/
|
|
274
|
-
this.
|
|
274
|
+
this.class1TraysPerManHourExcludingDowntime = undefined;
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
277
|
* The Manning Percentage based on the Average Target for this Hour
|
|
278
278
|
*
|
|
279
279
|
* @type {?number}
|
|
280
|
-
* @
|
|
280
|
+
* @public
|
|
281
281
|
*/
|
|
282
|
-
this.
|
|
282
|
+
this.manningPercentage = undefined;
|
|
283
283
|
|
|
284
284
|
/**
|
|
285
285
|
* The Total Number of People working for this Hour
|
|
286
286
|
*
|
|
287
287
|
* @type {?number}
|
|
288
|
-
* @
|
|
288
|
+
* @public
|
|
289
289
|
*/
|
|
290
|
-
this.
|
|
290
|
+
this.totalManning = undefined;
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* The Percentage of Production Time without Downtime for this Hour
|
|
294
294
|
*
|
|
295
295
|
* @type {number}
|
|
296
|
-
* @
|
|
296
|
+
* @public
|
|
297
297
|
*/
|
|
298
|
-
this.
|
|
298
|
+
this.uptimePercentage = undefined;
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* The Percentage of Downtime for this Hour
|
|
302
302
|
*
|
|
303
303
|
* @type {number}
|
|
304
|
-
* @
|
|
304
|
+
* @public
|
|
305
305
|
*/
|
|
306
|
-
this.
|
|
306
|
+
this.downtimePercentage = undefined;
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* Whether the Shift Hourly Entry has been deleted
|
|
310
310
|
*
|
|
311
311
|
* @type {boolean}
|
|
312
|
-
* @
|
|
312
|
+
* @public
|
|
313
313
|
*/
|
|
314
|
-
this.
|
|
314
|
+
this.deleted = undefined;
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
317
|
* When the Shift Hourly Entry was last updated
|
|
318
318
|
*
|
|
319
319
|
* @type {Date}
|
|
320
|
-
* @
|
|
320
|
+
* @public
|
|
321
321
|
*/
|
|
322
|
-
this.
|
|
322
|
+
this.updateTimestamp = undefined;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* The Site ID associated with this Shift Hourly Entry
|
|
326
326
|
*
|
|
327
327
|
* @type {number}
|
|
328
|
-
* @
|
|
328
|
+
* @public
|
|
329
329
|
*/
|
|
330
|
-
this.
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* The Shift Hourly Entry ID
|
|
335
|
-
*
|
|
336
|
-
* @public
|
|
337
|
-
* @type {string}
|
|
338
|
-
*/
|
|
339
|
-
get id()
|
|
340
|
-
{
|
|
341
|
-
return this._id;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* The Packing Line ID this Hourly Entry is associated with
|
|
346
|
-
*
|
|
347
|
-
* @public
|
|
348
|
-
* @type {string}
|
|
349
|
-
*/
|
|
350
|
-
get packingLineId()
|
|
351
|
-
{
|
|
352
|
-
return this._packingLineId;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The Shift ID this Hourly Entry is asssociated with
|
|
357
|
-
*
|
|
358
|
-
* @public
|
|
359
|
-
* @type {string}
|
|
360
|
-
*/
|
|
361
|
-
get shiftId()
|
|
362
|
-
{
|
|
363
|
-
return this._shiftId;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* When this Hourly Entry was Created
|
|
368
|
-
*
|
|
369
|
-
* @public
|
|
370
|
-
* @type {Date}
|
|
371
|
-
*/
|
|
372
|
-
get createdTimestamp()
|
|
373
|
-
{
|
|
374
|
-
return this._createdTimestamp;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* The Start Timestamp of this Hourly Entry
|
|
379
|
-
*
|
|
380
|
-
* @public
|
|
381
|
-
* @type {Date}
|
|
382
|
-
*/
|
|
383
|
-
get startTimestamp()
|
|
384
|
-
{
|
|
385
|
-
return this._startTimestamp;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* The End Timestamp of this Hourly Entry
|
|
390
|
-
*
|
|
391
|
-
* @public
|
|
392
|
-
* @type {Date}
|
|
393
|
-
*/
|
|
394
|
-
get endTimestamp()
|
|
395
|
-
{
|
|
396
|
-
return this._endTimestamp;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The Number of People working in all Areas except Class 2 for this Hour
|
|
401
|
-
*
|
|
402
|
-
* @public
|
|
403
|
-
* @type {?number}
|
|
404
|
-
*/
|
|
405
|
-
get class1Manning()
|
|
406
|
-
{
|
|
407
|
-
return this._class1Manning;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* The Number of People working in the Class 2 Area for this Hour
|
|
412
|
-
*
|
|
413
|
-
* @public
|
|
414
|
-
* @type {?number}
|
|
415
|
-
*/
|
|
416
|
-
get class2Manning()
|
|
417
|
-
{
|
|
418
|
-
return this._class2Manning;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* The Average Target Number of People that should be working for this Hour
|
|
423
|
-
*
|
|
424
|
-
* @public
|
|
425
|
-
* @type {?number}
|
|
426
|
-
*/
|
|
427
|
-
get averageManningTarget()
|
|
428
|
-
{
|
|
429
|
-
return this._averageManningTarget;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
434
|
-
*
|
|
435
|
-
* @public
|
|
436
|
-
* @type {?number}
|
|
437
|
-
*/
|
|
438
|
-
get layeredTrayPercentage()
|
|
439
|
-
{
|
|
440
|
-
return this._layeredTrayPercentage;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* The Average Class 1 Percentage for this Hour
|
|
445
|
-
*
|
|
446
|
-
* @public
|
|
447
|
-
* @type {?number}
|
|
448
|
-
*/
|
|
449
|
-
get averageClass1Percentage()
|
|
450
|
-
{
|
|
451
|
-
return this._averageClass1Percentage;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* The Number of Quality R600 Samples that were Ideal for this Hour
|
|
456
|
-
*
|
|
457
|
-
* @public
|
|
458
|
-
* @type {?number}
|
|
459
|
-
*/
|
|
460
|
-
get qualityR600IdealSamplesPercentage()
|
|
461
|
-
{
|
|
462
|
-
return this._qualityR600IdealSamplesPercentage;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* An Array of Custom Quality Data Items for this Hour
|
|
467
|
-
*
|
|
468
|
-
* @public
|
|
469
|
-
* @type {Array<{id: string, name: string, type: string, value: number}>}
|
|
470
|
-
*/
|
|
471
|
-
get customQualityData()
|
|
472
|
-
{
|
|
473
|
-
return this._customQualityData;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* The Total Number of Bins Tipped for this Hour
|
|
478
|
-
*
|
|
479
|
-
* @public
|
|
480
|
-
* @type {number}
|
|
481
|
-
*/
|
|
482
|
-
get totalBinsTipped()
|
|
483
|
-
{
|
|
484
|
-
return this._totalBinsTipped;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* The Target Number of Bins to Tip for this Hour
|
|
489
|
-
*
|
|
490
|
-
* @public
|
|
491
|
-
* @type {number}
|
|
492
|
-
*/
|
|
493
|
-
get binsTippedTarget()
|
|
494
|
-
{
|
|
495
|
-
return this._binsTippedTarget;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* The Total Downtime for this Hour expressed in Seconds
|
|
500
|
-
*
|
|
501
|
-
* @public
|
|
502
|
-
* @type {number}
|
|
503
|
-
*/
|
|
504
|
-
get totalDowntime()
|
|
505
|
-
{
|
|
506
|
-
return this._totalDowntime;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
|
|
511
|
-
*
|
|
512
|
-
* @public
|
|
513
|
-
* @type {number}
|
|
514
|
-
*/
|
|
515
|
-
get totalProductionTime()
|
|
516
|
-
{
|
|
517
|
-
return this._totalProductionTime;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
522
|
-
*
|
|
523
|
-
* @public
|
|
524
|
-
* @type {number}
|
|
525
|
-
*/
|
|
526
|
-
get totalClass1Trays()
|
|
527
|
-
{
|
|
528
|
-
return this._totalClass1Trays;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
533
|
-
*
|
|
534
|
-
* @public
|
|
535
|
-
* @type {number}
|
|
536
|
-
*/
|
|
537
|
-
get totalClass2Trays()
|
|
538
|
-
{
|
|
539
|
-
return this._totalClass2Trays;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
544
|
-
*
|
|
545
|
-
* @public
|
|
546
|
-
* @type {number}
|
|
547
|
-
*/
|
|
548
|
-
get class1TraysPerHourExcludingDowntimeTarget()
|
|
549
|
-
{
|
|
550
|
-
return this._class1TraysPerHourExcludingDowntimeTarget;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* The Primary Issue Category for this Hourly Entry
|
|
555
|
-
*
|
|
556
|
-
* @public
|
|
557
|
-
* @type {?string}
|
|
558
|
-
*/
|
|
559
|
-
get primaryIssueCategory()
|
|
560
|
-
{
|
|
561
|
-
return this._primaryIssueCategory;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* The Primary Issue Tag for this Hourly Entry
|
|
566
|
-
*
|
|
567
|
-
* @public
|
|
568
|
-
* @type {?string}
|
|
569
|
-
*/
|
|
570
|
-
get primaryIssueTag()
|
|
571
|
-
{
|
|
572
|
-
return this._primaryIssueTag;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* The Secondary Issue Category for this Hourly Entry
|
|
577
|
-
*
|
|
578
|
-
* @public
|
|
579
|
-
* @type {?string}
|
|
580
|
-
*/
|
|
581
|
-
get secondaryIssueCategory()
|
|
582
|
-
{
|
|
583
|
-
return this._secondaryIssueCategory;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* The Secondary Issue Tag for this Hourly Entry
|
|
588
|
-
*
|
|
589
|
-
* @public
|
|
590
|
-
* @type {?string}
|
|
591
|
-
*/
|
|
592
|
-
get secondaryIssueTag()
|
|
593
|
-
{
|
|
594
|
-
return this._secondaryIssueTag;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* An Optional Focus for the Next Hour
|
|
599
|
-
*
|
|
600
|
-
* @public
|
|
601
|
-
* @type {?string}
|
|
602
|
-
*/
|
|
603
|
-
get nextHourFocus()
|
|
604
|
-
{
|
|
605
|
-
return this._nextHourFocus;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
610
|
-
*
|
|
611
|
-
* @public
|
|
612
|
-
* @type {?number}
|
|
613
|
-
*/
|
|
614
|
-
get satisfactionRating()
|
|
615
|
-
{
|
|
616
|
-
return this._satisfactionRating;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* The Status of this Hourly Entry
|
|
621
|
-
*
|
|
622
|
-
* @public
|
|
623
|
-
* @type {string}
|
|
624
|
-
*/
|
|
625
|
-
get status()
|
|
626
|
-
{
|
|
627
|
-
return this._status;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
632
|
-
*
|
|
633
|
-
* @public
|
|
634
|
-
* @type {number}
|
|
635
|
-
*/
|
|
636
|
-
get class1TraysPerHourPotential()
|
|
637
|
-
{
|
|
638
|
-
return this._class1TraysPerHourPotential;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
|
|
643
|
-
*
|
|
644
|
-
* @public
|
|
645
|
-
* @type {number}
|
|
646
|
-
*/
|
|
647
|
-
get class1TraysPerHourExcludingDowntime()
|
|
648
|
-
{
|
|
649
|
-
return this._class1TraysPerHourExcludingDowntime;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/**
|
|
653
|
-
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
654
|
-
*
|
|
655
|
-
* @public
|
|
656
|
-
* @type {?number}
|
|
657
|
-
*/
|
|
658
|
-
get class1TraysPerManHourPotential()
|
|
659
|
-
{
|
|
660
|
-
return this._class1TraysPerManHourPotential;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
|
|
665
|
-
*
|
|
666
|
-
* @public
|
|
667
|
-
* @type {?number}
|
|
668
|
-
*/
|
|
669
|
-
get class1TraysPerManHourExcludingDowntime()
|
|
670
|
-
{
|
|
671
|
-
return this._class1TraysPerManHourExcludingDowntime;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* The Manning Percentage based on the Average Target for this Hour
|
|
676
|
-
*
|
|
677
|
-
* @public
|
|
678
|
-
* @type {?number}
|
|
679
|
-
*/
|
|
680
|
-
get manningPercentage()
|
|
681
|
-
{
|
|
682
|
-
return this._manningPercentage;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* The Total Number of People working for this Hour
|
|
687
|
-
*
|
|
688
|
-
* @public
|
|
689
|
-
* @type {?number}
|
|
690
|
-
*/
|
|
691
|
-
get totalManning()
|
|
692
|
-
{
|
|
693
|
-
return this._totalManning;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* The Percentage of Production Time without Downtime for this Hour
|
|
698
|
-
*
|
|
699
|
-
* @public
|
|
700
|
-
* @type {number}
|
|
701
|
-
*/
|
|
702
|
-
get uptimePercentage()
|
|
703
|
-
{
|
|
704
|
-
return this._uptimePercentage;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* The Percentage of Downtime for this Hour
|
|
709
|
-
*
|
|
710
|
-
* @public
|
|
711
|
-
* @type {number}
|
|
712
|
-
*/
|
|
713
|
-
get downtimePercentage()
|
|
714
|
-
{
|
|
715
|
-
return this._downtimePercentage;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* Whether the Shift Hourly Entry has been deleted
|
|
720
|
-
*
|
|
721
|
-
* @public
|
|
722
|
-
* @type {boolean}
|
|
723
|
-
*/
|
|
724
|
-
get deleted()
|
|
725
|
-
{
|
|
726
|
-
return this._deleted;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
/**
|
|
730
|
-
* When the Shift Hourly Entry was last updated
|
|
731
|
-
*
|
|
732
|
-
* @public
|
|
733
|
-
* @type {Date}
|
|
734
|
-
*/
|
|
735
|
-
get updateTimestamp()
|
|
736
|
-
{
|
|
737
|
-
return this._updateTimestamp;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* The Site ID associated with this Shift Hourly Entry
|
|
742
|
-
*
|
|
743
|
-
* @public
|
|
744
|
-
* @type {number}
|
|
745
|
-
*/
|
|
746
|
-
get siteId()
|
|
747
|
-
{
|
|
748
|
-
return this._siteId;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* Convert this **ShiftHourlyEntryModel** to a JSON Object
|
|
753
|
-
*
|
|
754
|
-
* @public
|
|
755
|
-
* @return {Object<string, any>}
|
|
756
|
-
*/
|
|
757
|
-
toJSON()
|
|
758
|
-
{
|
|
759
|
-
return {
|
|
760
|
-
id: this._id,
|
|
761
|
-
packingLineId: this._packingLineId,
|
|
762
|
-
shiftId: this._shiftId,
|
|
763
|
-
createdTimestamp: this._createdTimestamp,
|
|
764
|
-
startTimestamp: this._startTimestamp,
|
|
765
|
-
endTimestamp: this._endTimestamp,
|
|
766
|
-
class1Manning: this._class1Manning,
|
|
767
|
-
class2Manning: this._class2Manning,
|
|
768
|
-
averageManningTarget: this._averageManningTarget,
|
|
769
|
-
layeredTrayPercentage: this._layeredTrayPercentage,
|
|
770
|
-
averageClass1Percentage: this._averageClass1Percentage,
|
|
771
|
-
qualityR600IdealSamplesPercentage: this._qualityR600IdealSamplesPercentage,
|
|
772
|
-
customQualityData: this._customQualityData,
|
|
773
|
-
totalBinsTipped: this._totalBinsTipped,
|
|
774
|
-
binsTippedTarget: this._binsTippedTarget,
|
|
775
|
-
totalDowntime: this._totalDowntime,
|
|
776
|
-
totalProductionTime: this._totalProductionTime,
|
|
777
|
-
totalClass1Trays: this._totalClass1Trays,
|
|
778
|
-
totalClass2Trays: this._totalClass2Trays,
|
|
779
|
-
class1TraysPerHourExcludingDowntimeTarget: this._class1TraysPerHourExcludingDowntimeTarget,
|
|
780
|
-
primaryIssueCategory: this._primaryIssueCategory,
|
|
781
|
-
primaryIssueTag: this._primaryIssueTag,
|
|
782
|
-
secondaryIssueCategory: this._secondaryIssueCategory,
|
|
783
|
-
secondaryIssueTag: this._secondaryIssueTag,
|
|
784
|
-
nextHourFocus: this._nextHourFocus,
|
|
785
|
-
satisfactionRating: this._satisfactionRating,
|
|
786
|
-
status: this._status,
|
|
787
|
-
class1TraysPerHourPotential: this._class1TraysPerHourPotential,
|
|
788
|
-
class1TraysPerHourExcludingDowntime: this._class1TraysPerHourExcludingDowntime,
|
|
789
|
-
class1TraysPerManHourPotential: this._class1TraysPerManHourPotential,
|
|
790
|
-
class1TraysPerManHourExcludingDowntime: this._class1TraysPerManHourExcludingDowntime,
|
|
791
|
-
manningPercentage: this._manningPercentage,
|
|
792
|
-
totalManning: this._totalManning,
|
|
793
|
-
uptimePercentage: this._uptimePercentage,
|
|
794
|
-
downtimePercentage: this._downtimePercentage,
|
|
795
|
-
deleted: this._deleted,
|
|
796
|
-
updateTimestamp: this._updateTimestamp
|
|
797
|
-
};
|
|
330
|
+
this.siteId = siteId;
|
|
798
331
|
}
|
|
799
332
|
|
|
800
333
|
/**
|
|
@@ -828,7 +361,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
828
361
|
|
|
829
362
|
if('id' in jsonObject)
|
|
830
363
|
{
|
|
831
|
-
model.
|
|
364
|
+
model.id = (function(){
|
|
832
365
|
if(typeof jsonObject['id'] !== 'string')
|
|
833
366
|
{
|
|
834
367
|
return String(jsonObject['id']);
|
|
@@ -840,7 +373,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
840
373
|
|
|
841
374
|
if('packingLineId' in jsonObject)
|
|
842
375
|
{
|
|
843
|
-
model.
|
|
376
|
+
model.packingLineId = (function(){
|
|
844
377
|
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
845
378
|
{
|
|
846
379
|
return String(jsonObject['packingLineId']);
|
|
@@ -852,7 +385,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
852
385
|
|
|
853
386
|
if('shiftId' in jsonObject)
|
|
854
387
|
{
|
|
855
|
-
model.
|
|
388
|
+
model.shiftId = (function(){
|
|
856
389
|
if(typeof jsonObject['shiftId'] !== 'string')
|
|
857
390
|
{
|
|
858
391
|
return String(jsonObject['shiftId']);
|
|
@@ -864,7 +397,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
864
397
|
|
|
865
398
|
if('createdTimestamp' in jsonObject)
|
|
866
399
|
{
|
|
867
|
-
model.
|
|
400
|
+
model.createdTimestamp = (function(){
|
|
868
401
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
869
402
|
{
|
|
870
403
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -876,7 +409,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
876
409
|
|
|
877
410
|
if('startTimestamp' in jsonObject)
|
|
878
411
|
{
|
|
879
|
-
model.
|
|
412
|
+
model.startTimestamp = (function(){
|
|
880
413
|
if(typeof jsonObject['startTimestamp'] !== 'string')
|
|
881
414
|
{
|
|
882
415
|
return new Date(String(jsonObject['startTimestamp']));
|
|
@@ -888,7 +421,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
888
421
|
|
|
889
422
|
if('endTimestamp' in jsonObject)
|
|
890
423
|
{
|
|
891
|
-
model.
|
|
424
|
+
model.endTimestamp = (function(){
|
|
892
425
|
if(typeof jsonObject['endTimestamp'] !== 'string')
|
|
893
426
|
{
|
|
894
427
|
return new Date(String(jsonObject['endTimestamp']));
|
|
@@ -900,7 +433,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
900
433
|
|
|
901
434
|
if('class1Manning' in jsonObject)
|
|
902
435
|
{
|
|
903
|
-
model.
|
|
436
|
+
model.class1Manning = (function(){
|
|
904
437
|
if(jsonObject['class1Manning'] === null)
|
|
905
438
|
{
|
|
906
439
|
return null;
|
|
@@ -917,7 +450,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
917
450
|
|
|
918
451
|
if('class2Manning' in jsonObject)
|
|
919
452
|
{
|
|
920
|
-
model.
|
|
453
|
+
model.class2Manning = (function(){
|
|
921
454
|
if(jsonObject['class2Manning'] === null)
|
|
922
455
|
{
|
|
923
456
|
return null;
|
|
@@ -934,7 +467,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
934
467
|
|
|
935
468
|
if('averageManningTarget' in jsonObject)
|
|
936
469
|
{
|
|
937
|
-
model.
|
|
470
|
+
model.averageManningTarget = (function(){
|
|
938
471
|
if(jsonObject['averageManningTarget'] === null)
|
|
939
472
|
{
|
|
940
473
|
return null;
|
|
@@ -951,7 +484,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
951
484
|
|
|
952
485
|
if('layeredTrayPercentage' in jsonObject)
|
|
953
486
|
{
|
|
954
|
-
model.
|
|
487
|
+
model.layeredTrayPercentage = (function(){
|
|
955
488
|
if(jsonObject['layeredTrayPercentage'] === null)
|
|
956
489
|
{
|
|
957
490
|
return null;
|
|
@@ -968,7 +501,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
968
501
|
|
|
969
502
|
if('averageClass1Percentage' in jsonObject)
|
|
970
503
|
{
|
|
971
|
-
model.
|
|
504
|
+
model.averageClass1Percentage = (function(){
|
|
972
505
|
if(jsonObject['averageClass1Percentage'] === null)
|
|
973
506
|
{
|
|
974
507
|
return null;
|
|
@@ -985,7 +518,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
985
518
|
|
|
986
519
|
if('qualityR600IdealSamplesPercentage' in jsonObject)
|
|
987
520
|
{
|
|
988
|
-
model.
|
|
521
|
+
model.qualityR600IdealSamplesPercentage = (function(){
|
|
989
522
|
if(jsonObject['qualityR600IdealSamplesPercentage'] === null)
|
|
990
523
|
{
|
|
991
524
|
return null;
|
|
@@ -1002,7 +535,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1002
535
|
|
|
1003
536
|
if('customQualityData' in jsonObject)
|
|
1004
537
|
{
|
|
1005
|
-
model.
|
|
538
|
+
model.customQualityData = (function(){
|
|
1006
539
|
if(Array.isArray(jsonObject['customQualityData']) !== true)
|
|
1007
540
|
{
|
|
1008
541
|
return [];
|
|
@@ -1084,7 +617,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1084
617
|
|
|
1085
618
|
if('totalBinsTipped' in jsonObject)
|
|
1086
619
|
{
|
|
1087
|
-
model.
|
|
620
|
+
model.totalBinsTipped = (function(){
|
|
1088
621
|
if(typeof jsonObject['totalBinsTipped'] !== 'number')
|
|
1089
622
|
{
|
|
1090
623
|
return Number.isInteger(Number(jsonObject['totalBinsTipped'])) ? Number(jsonObject['totalBinsTipped']) : Math.floor(Number(jsonObject['totalBinsTipped']));
|
|
@@ -1096,7 +629,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1096
629
|
|
|
1097
630
|
if('binsTippedTarget' in jsonObject)
|
|
1098
631
|
{
|
|
1099
|
-
model.
|
|
632
|
+
model.binsTippedTarget = (function(){
|
|
1100
633
|
if(typeof jsonObject['binsTippedTarget'] !== 'number')
|
|
1101
634
|
{
|
|
1102
635
|
return Number.isInteger(Number(jsonObject['binsTippedTarget'])) ? Number(jsonObject['binsTippedTarget']) : Math.floor(Number(jsonObject['binsTippedTarget']));
|
|
@@ -1108,7 +641,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1108
641
|
|
|
1109
642
|
if('totalDowntime' in jsonObject)
|
|
1110
643
|
{
|
|
1111
|
-
model.
|
|
644
|
+
model.totalDowntime = (function(){
|
|
1112
645
|
if(typeof jsonObject['totalDowntime'] !== 'number')
|
|
1113
646
|
{
|
|
1114
647
|
return Number.isInteger(Number(jsonObject['totalDowntime'])) ? Number(jsonObject['totalDowntime']) : Math.floor(Number(jsonObject['totalDowntime']));
|
|
@@ -1120,7 +653,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1120
653
|
|
|
1121
654
|
if('totalProductionTime' in jsonObject)
|
|
1122
655
|
{
|
|
1123
|
-
model.
|
|
656
|
+
model.totalProductionTime = (function(){
|
|
1124
657
|
if(typeof jsonObject['totalProductionTime'] !== 'number')
|
|
1125
658
|
{
|
|
1126
659
|
return Number.isInteger(Number(jsonObject['totalProductionTime'])) ? Number(jsonObject['totalProductionTime']) : Math.floor(Number(jsonObject['totalProductionTime']));
|
|
@@ -1132,7 +665,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1132
665
|
|
|
1133
666
|
if('totalClass1Trays' in jsonObject)
|
|
1134
667
|
{
|
|
1135
|
-
model.
|
|
668
|
+
model.totalClass1Trays = (function(){
|
|
1136
669
|
if(typeof jsonObject['totalClass1Trays'] !== 'number')
|
|
1137
670
|
{
|
|
1138
671
|
return Number.isInteger(Number(jsonObject['totalClass1Trays'])) ? Number(jsonObject['totalClass1Trays']) : Math.floor(Number(jsonObject['totalClass1Trays']));
|
|
@@ -1144,7 +677,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1144
677
|
|
|
1145
678
|
if('totalClass2Trays' in jsonObject)
|
|
1146
679
|
{
|
|
1147
|
-
model.
|
|
680
|
+
model.totalClass2Trays = (function(){
|
|
1148
681
|
if(typeof jsonObject['totalClass2Trays'] !== 'number')
|
|
1149
682
|
{
|
|
1150
683
|
return Number.isInteger(Number(jsonObject['totalClass2Trays'])) ? Number(jsonObject['totalClass2Trays']) : Math.floor(Number(jsonObject['totalClass2Trays']));
|
|
@@ -1156,7 +689,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1156
689
|
|
|
1157
690
|
if('class1TraysPerHourExcludingDowntimeTarget' in jsonObject)
|
|
1158
691
|
{
|
|
1159
|
-
model.
|
|
692
|
+
model.class1TraysPerHourExcludingDowntimeTarget = (function(){
|
|
1160
693
|
if(typeof jsonObject['class1TraysPerHourExcludingDowntimeTarget'] !== 'number')
|
|
1161
694
|
{
|
|
1162
695
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']));
|
|
@@ -1168,7 +701,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1168
701
|
|
|
1169
702
|
if('primaryIssueCategory' in jsonObject)
|
|
1170
703
|
{
|
|
1171
|
-
model.
|
|
704
|
+
model.primaryIssueCategory = (function(){
|
|
1172
705
|
if(jsonObject['primaryIssueCategory'] === null)
|
|
1173
706
|
{
|
|
1174
707
|
return null;
|
|
@@ -1185,7 +718,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1185
718
|
|
|
1186
719
|
if('primaryIssueTag' in jsonObject)
|
|
1187
720
|
{
|
|
1188
|
-
model.
|
|
721
|
+
model.primaryIssueTag = (function(){
|
|
1189
722
|
if(jsonObject['primaryIssueTag'] === null)
|
|
1190
723
|
{
|
|
1191
724
|
return null;
|
|
@@ -1202,7 +735,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1202
735
|
|
|
1203
736
|
if('secondaryIssueCategory' in jsonObject)
|
|
1204
737
|
{
|
|
1205
|
-
model.
|
|
738
|
+
model.secondaryIssueCategory = (function(){
|
|
1206
739
|
if(jsonObject['secondaryIssueCategory'] === null)
|
|
1207
740
|
{
|
|
1208
741
|
return null;
|
|
@@ -1219,7 +752,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1219
752
|
|
|
1220
753
|
if('secondaryIssueTag' in jsonObject)
|
|
1221
754
|
{
|
|
1222
|
-
model.
|
|
755
|
+
model.secondaryIssueTag = (function(){
|
|
1223
756
|
if(jsonObject['secondaryIssueTag'] === null)
|
|
1224
757
|
{
|
|
1225
758
|
return null;
|
|
@@ -1236,7 +769,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1236
769
|
|
|
1237
770
|
if('nextHourFocus' in jsonObject)
|
|
1238
771
|
{
|
|
1239
|
-
model.
|
|
772
|
+
model.nextHourFocus = (function(){
|
|
1240
773
|
if(jsonObject['nextHourFocus'] === null)
|
|
1241
774
|
{
|
|
1242
775
|
return null;
|
|
@@ -1253,7 +786,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1253
786
|
|
|
1254
787
|
if('satisfactionRating' in jsonObject)
|
|
1255
788
|
{
|
|
1256
|
-
model.
|
|
789
|
+
model.satisfactionRating = (function(){
|
|
1257
790
|
if(jsonObject['satisfactionRating'] === null)
|
|
1258
791
|
{
|
|
1259
792
|
return null;
|
|
@@ -1270,7 +803,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1270
803
|
|
|
1271
804
|
if('status' in jsonObject)
|
|
1272
805
|
{
|
|
1273
|
-
model.
|
|
806
|
+
model.status = (function(){
|
|
1274
807
|
if(typeof jsonObject['status'] !== 'string')
|
|
1275
808
|
{
|
|
1276
809
|
return String(jsonObject['status']);
|
|
@@ -1282,7 +815,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1282
815
|
|
|
1283
816
|
if('class1TraysPerHourPotential' in jsonObject)
|
|
1284
817
|
{
|
|
1285
|
-
model.
|
|
818
|
+
model.class1TraysPerHourPotential = (function(){
|
|
1286
819
|
if(typeof jsonObject['class1TraysPerHourPotential'] !== 'number')
|
|
1287
820
|
{
|
|
1288
821
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourPotential'])) ? Number(jsonObject['class1TraysPerHourPotential']) : Math.floor(Number(jsonObject['class1TraysPerHourPotential']));
|
|
@@ -1294,7 +827,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1294
827
|
|
|
1295
828
|
if('class1TraysPerHourExcludingDowntime' in jsonObject)
|
|
1296
829
|
{
|
|
1297
|
-
model.
|
|
830
|
+
model.class1TraysPerHourExcludingDowntime = (function(){
|
|
1298
831
|
if(typeof jsonObject['class1TraysPerHourExcludingDowntime'] !== 'number')
|
|
1299
832
|
{
|
|
1300
833
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntime'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntime']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntime']));
|
|
@@ -1306,7 +839,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1306
839
|
|
|
1307
840
|
if('class1TraysPerManHourPotential' in jsonObject)
|
|
1308
841
|
{
|
|
1309
|
-
model.
|
|
842
|
+
model.class1TraysPerManHourPotential = (function(){
|
|
1310
843
|
if(jsonObject['class1TraysPerManHourPotential'] === null)
|
|
1311
844
|
{
|
|
1312
845
|
return null;
|
|
@@ -1323,7 +856,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1323
856
|
|
|
1324
857
|
if('class1TraysPerManHourExcludingDowntime' in jsonObject)
|
|
1325
858
|
{
|
|
1326
|
-
model.
|
|
859
|
+
model.class1TraysPerManHourExcludingDowntime = (function(){
|
|
1327
860
|
if(jsonObject['class1TraysPerManHourExcludingDowntime'] === null)
|
|
1328
861
|
{
|
|
1329
862
|
return null;
|
|
@@ -1340,7 +873,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1340
873
|
|
|
1341
874
|
if('manningPercentage' in jsonObject)
|
|
1342
875
|
{
|
|
1343
|
-
model.
|
|
876
|
+
model.manningPercentage = (function(){
|
|
1344
877
|
if(jsonObject['manningPercentage'] === null)
|
|
1345
878
|
{
|
|
1346
879
|
return null;
|
|
@@ -1357,7 +890,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1357
890
|
|
|
1358
891
|
if('totalManning' in jsonObject)
|
|
1359
892
|
{
|
|
1360
|
-
model.
|
|
893
|
+
model.totalManning = (function(){
|
|
1361
894
|
if(jsonObject['totalManning'] === null)
|
|
1362
895
|
{
|
|
1363
896
|
return null;
|
|
@@ -1374,7 +907,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1374
907
|
|
|
1375
908
|
if('uptimePercentage' in jsonObject)
|
|
1376
909
|
{
|
|
1377
|
-
model.
|
|
910
|
+
model.uptimePercentage = (function(){
|
|
1378
911
|
if(typeof jsonObject['uptimePercentage'] !== 'number')
|
|
1379
912
|
{
|
|
1380
913
|
return Number(jsonObject['uptimePercentage']);
|
|
@@ -1386,7 +919,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1386
919
|
|
|
1387
920
|
if('downtimePercentage' in jsonObject)
|
|
1388
921
|
{
|
|
1389
|
-
model.
|
|
922
|
+
model.downtimePercentage = (function(){
|
|
1390
923
|
if(typeof jsonObject['downtimePercentage'] !== 'number')
|
|
1391
924
|
{
|
|
1392
925
|
return Number(jsonObject['downtimePercentage']);
|
|
@@ -1398,7 +931,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1398
931
|
|
|
1399
932
|
if('deleted' in jsonObject)
|
|
1400
933
|
{
|
|
1401
|
-
model.
|
|
934
|
+
model.deleted = (function(){
|
|
1402
935
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
1403
936
|
{
|
|
1404
937
|
return Boolean(jsonObject['deleted']);
|
|
@@ -1410,7 +943,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1410
943
|
|
|
1411
944
|
if('updateTimestamp' in jsonObject)
|
|
1412
945
|
{
|
|
1413
|
-
model.
|
|
946
|
+
model.updateTimestamp = (function(){
|
|
1414
947
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
1415
948
|
{
|
|
1416
949
|
return new Date(String(jsonObject['updateTimestamp']));
|