@ricado/api-client 1.4.0 → 2.0.2
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 +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +6 -6
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackrunController.js +292 -6
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +6 -6
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +5 -5
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/VarietyController.js +5 -5
- 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 +6 -6
- package/lib/Controllers/Site/AlarmGroupController.js +5 -5
- package/lib/Controllers/Site/DefinitionController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectDataController.js +6 -6
- package/lib/Controllers/Site/PointController.js +8 -6
- package/lib/Controllers/Site/TemporaryObjectController.js +5 -5
- 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 -195
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -179
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -275
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -211
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -179
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -147
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -243
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -275
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -179
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -147
- package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -179
- package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -291
- package/lib/Models/Packhouse/Site/PackrunModel.js +61 -291
- package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -195
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -243
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -211
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -243
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -643
- package/lib/Models/Packhouse/Site/ShiftModel.js +73 -355
- package/lib/Models/Packhouse/Site/VarietyModel.js +40 -179
- package/lib/Models/RTUModel.js +26 -117
- package/lib/Models/RTUPluginModel.js +23 -101
- package/lib/Models/Site/AlarmGroupModel.js +37 -163
- package/lib/Models/Site/AlarmModel.js +67 -323
- package/lib/Models/Site/DefinitionModel.js +34 -147
- package/lib/Models/Site/PermanentObjectDataModel.js +40 -179
- package/lib/Models/Site/PermanentObjectModel.js +37 -163
- package/lib/Models/Site/PointModel.js +49 -227
- package/lib/Models/Site/TemporaryObjectModel.js +34 -147
- 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 +931 -1589
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackrunController.js +365 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +6 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- 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 +33 -174
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
- package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
- package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
- package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
- package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
- package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
- package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +27 -144
- package/src/Models/Site/AlarmModel.js +57 -294
- package/src/Models/Site/DefinitionModel.js +24 -129
- package/src/Models/Site/PermanentObjectDataModel.js +30 -159
- package/src/Models/Site/PermanentObjectModel.js +27 -144
- package/src/Models/Site/PointModel.js +39 -204
- package/src/Models/Site/TemporaryObjectModel.js +24 -129
- 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,24 +4,23 @@
|
|
|
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
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
-
* @param {number} siteId The Site ID associated with this Shift Hourly Entry
|
|
23
22
|
*/
|
|
24
|
-
constructor(
|
|
23
|
+
constructor()
|
|
25
24
|
{
|
|
26
25
|
super();
|
|
27
26
|
|
|
@@ -29,772 +28,297 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
29
28
|
* The Shift Hourly Entry ID
|
|
30
29
|
*
|
|
31
30
|
* @type {string}
|
|
32
|
-
* @
|
|
31
|
+
* @public
|
|
33
32
|
*/
|
|
34
|
-
this.
|
|
33
|
+
this.id = undefined;
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* The Packing Line ID this Hourly Entry is associated with
|
|
38
37
|
*
|
|
39
38
|
* @type {string}
|
|
40
|
-
* @
|
|
39
|
+
* @public
|
|
41
40
|
*/
|
|
42
|
-
this.
|
|
41
|
+
this.packingLineId = undefined;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* The Shift ID this Hourly Entry is asssociated with
|
|
46
45
|
*
|
|
47
46
|
* @type {string}
|
|
48
|
-
* @
|
|
47
|
+
* @public
|
|
49
48
|
*/
|
|
50
|
-
this.
|
|
49
|
+
this.shiftId = undefined;
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
52
|
* When this Hourly Entry was Created
|
|
54
53
|
*
|
|
55
54
|
* @type {Date}
|
|
56
|
-
* @
|
|
55
|
+
* @public
|
|
57
56
|
*/
|
|
58
|
-
this.
|
|
57
|
+
this.createdTimestamp = undefined;
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
60
|
* The Start Timestamp of this Hourly Entry
|
|
62
61
|
*
|
|
63
62
|
* @type {Date}
|
|
64
|
-
* @
|
|
63
|
+
* @public
|
|
65
64
|
*/
|
|
66
|
-
this.
|
|
65
|
+
this.startTimestamp = undefined;
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* The End Timestamp of this Hourly Entry
|
|
70
69
|
*
|
|
71
70
|
* @type {Date}
|
|
72
|
-
* @
|
|
71
|
+
* @public
|
|
73
72
|
*/
|
|
74
|
-
this.
|
|
73
|
+
this.endTimestamp = undefined;
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
76
|
* The Number of People working in all Areas except Class 2 for this Hour
|
|
78
77
|
*
|
|
79
78
|
* @type {?number}
|
|
80
|
-
* @
|
|
79
|
+
* @public
|
|
81
80
|
*/
|
|
82
|
-
this.
|
|
81
|
+
this.class1Manning = undefined;
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
84
|
* The Number of People working in the Class 2 Area for this Hour
|
|
86
85
|
*
|
|
87
86
|
* @type {?number}
|
|
88
|
-
* @
|
|
87
|
+
* @public
|
|
89
88
|
*/
|
|
90
|
-
this.
|
|
89
|
+
this.class2Manning = undefined;
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
92
|
* The Average Target Number of People that should be working for this Hour
|
|
94
93
|
*
|
|
95
94
|
* @type {?number}
|
|
96
|
-
* @
|
|
95
|
+
* @public
|
|
97
96
|
*/
|
|
98
|
-
this.
|
|
97
|
+
this.averageManningTarget = undefined;
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* The Percentage of Total Tray Equivalents that are Layered for this Hour
|
|
102
101
|
*
|
|
103
102
|
* @type {?number}
|
|
104
|
-
* @
|
|
103
|
+
* @public
|
|
105
104
|
*/
|
|
106
|
-
this.
|
|
105
|
+
this.layeredTrayPercentage = undefined;
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
108
|
* The Average Class 1 Percentage for this Hour
|
|
110
109
|
*
|
|
111
110
|
* @type {?number}
|
|
112
|
-
* @
|
|
111
|
+
* @public
|
|
113
112
|
*/
|
|
114
|
-
this.
|
|
113
|
+
this.averageClass1Percentage = undefined;
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
116
|
* The Number of Quality R600 Samples that were Ideal for this Hour
|
|
118
117
|
*
|
|
119
118
|
* @type {?number}
|
|
120
|
-
* @
|
|
119
|
+
* @public
|
|
121
120
|
*/
|
|
122
|
-
this.
|
|
121
|
+
this.qualityR600IdealSamplesPercentage = undefined;
|
|
123
122
|
|
|
124
123
|
/**
|
|
125
124
|
* An Array of Custom Quality Data Items for this Hour
|
|
126
125
|
*
|
|
127
126
|
* @type {Array<{id: string, name: string, type: string, value: number}>}
|
|
128
|
-
* @
|
|
127
|
+
* @public
|
|
129
128
|
*/
|
|
130
|
-
this.
|
|
129
|
+
this.customQualityData = undefined;
|
|
131
130
|
|
|
132
131
|
/**
|
|
133
132
|
* The Total Number of Bins Tipped for this Hour
|
|
134
133
|
*
|
|
135
134
|
* @type {number}
|
|
136
|
-
* @
|
|
135
|
+
* @public
|
|
137
136
|
*/
|
|
138
|
-
this.
|
|
137
|
+
this.totalBinsTipped = undefined;
|
|
139
138
|
|
|
140
139
|
/**
|
|
141
140
|
* The Target Number of Bins to Tip for this Hour
|
|
142
141
|
*
|
|
143
142
|
* @type {number}
|
|
144
|
-
* @
|
|
143
|
+
* @public
|
|
145
144
|
*/
|
|
146
|
-
this.
|
|
145
|
+
this.binsTippedTarget = undefined;
|
|
147
146
|
|
|
148
147
|
/**
|
|
149
148
|
* The Total Downtime for this Hour expressed in Seconds
|
|
150
149
|
*
|
|
151
150
|
* @type {number}
|
|
152
|
-
* @
|
|
151
|
+
* @public
|
|
153
152
|
*/
|
|
154
|
-
this.
|
|
153
|
+
this.totalDowntime = undefined;
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
156
|
* The Total Time that could be Utilized for Packing Fruit (excludes Planned Downtime such as Smoko Breaks) for this Hour expressed in Seconds
|
|
158
157
|
*
|
|
159
158
|
* @type {number}
|
|
160
|
-
* @
|
|
159
|
+
* @public
|
|
161
160
|
*/
|
|
162
|
-
this.
|
|
161
|
+
this.totalProductionTime = undefined;
|
|
163
162
|
|
|
164
163
|
/**
|
|
165
164
|
* The Total Number of Class 1 Tray Equivalents Packed for this Hour
|
|
166
165
|
*
|
|
167
166
|
* @type {number}
|
|
168
|
-
* @
|
|
167
|
+
* @public
|
|
169
168
|
*/
|
|
170
|
-
this.
|
|
169
|
+
this.totalClass1Trays = undefined;
|
|
171
170
|
|
|
172
171
|
/**
|
|
173
172
|
* The Total Number of Class 2 Tray Equivalents Packed for this Hour
|
|
174
173
|
*
|
|
175
174
|
* @type {number}
|
|
176
|
-
* @
|
|
175
|
+
* @public
|
|
177
176
|
*/
|
|
178
|
-
this.
|
|
177
|
+
this.totalClass2Trays = undefined;
|
|
179
178
|
|
|
180
179
|
/**
|
|
181
180
|
* The Target Number of Class 1 Tray Equivalents that should be Packed excluding all Downtime for this Hour
|
|
182
181
|
*
|
|
183
182
|
* @type {number}
|
|
184
|
-
* @
|
|
183
|
+
* @public
|
|
185
184
|
*/
|
|
186
|
-
this.
|
|
185
|
+
this.class1TraysPerHourExcludingDowntimeTarget = undefined;
|
|
187
186
|
|
|
188
187
|
/**
|
|
189
188
|
* The Primary Issue Category for this Hourly Entry
|
|
190
189
|
*
|
|
191
190
|
* @type {?string}
|
|
192
|
-
* @
|
|
191
|
+
* @public
|
|
193
192
|
*/
|
|
194
|
-
this.
|
|
193
|
+
this.primaryIssueCategory = undefined;
|
|
195
194
|
|
|
196
195
|
/**
|
|
197
196
|
* The Primary Issue Tag for this Hourly Entry
|
|
198
197
|
*
|
|
199
198
|
* @type {?string}
|
|
200
|
-
* @
|
|
199
|
+
* @public
|
|
201
200
|
*/
|
|
202
|
-
this.
|
|
201
|
+
this.primaryIssueTag = undefined;
|
|
203
202
|
|
|
204
203
|
/**
|
|
205
204
|
* The Secondary Issue Category for this Hourly Entry
|
|
206
205
|
*
|
|
207
206
|
* @type {?string}
|
|
208
|
-
* @
|
|
207
|
+
* @public
|
|
209
208
|
*/
|
|
210
|
-
this.
|
|
209
|
+
this.secondaryIssueCategory = undefined;
|
|
211
210
|
|
|
212
211
|
/**
|
|
213
212
|
* The Secondary Issue Tag for this Hourly Entry
|
|
214
213
|
*
|
|
215
214
|
* @type {?string}
|
|
216
|
-
* @
|
|
215
|
+
* @public
|
|
217
216
|
*/
|
|
218
|
-
this.
|
|
217
|
+
this.secondaryIssueTag = undefined;
|
|
219
218
|
|
|
220
219
|
/**
|
|
221
220
|
* An Optional Focus for the Next Hour
|
|
222
221
|
*
|
|
223
222
|
* @type {?string}
|
|
224
|
-
* @
|
|
223
|
+
* @public
|
|
225
224
|
*/
|
|
226
|
-
this.
|
|
225
|
+
this.nextHourFocus = undefined;
|
|
227
226
|
|
|
228
227
|
/**
|
|
229
228
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Hour
|
|
230
229
|
*
|
|
231
230
|
* @type {?number}
|
|
232
|
-
* @
|
|
231
|
+
* @public
|
|
233
232
|
*/
|
|
234
|
-
this.
|
|
233
|
+
this.satisfactionRating = undefined;
|
|
235
234
|
|
|
236
235
|
/**
|
|
237
236
|
* The Status of this Hourly Entry
|
|
238
237
|
*
|
|
239
238
|
* @type {string}
|
|
240
|
-
* @
|
|
239
|
+
* @public
|
|
241
240
|
*/
|
|
242
|
-
this.
|
|
241
|
+
this.status = undefined;
|
|
243
242
|
|
|
244
243
|
/**
|
|
245
244
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
246
245
|
*
|
|
247
246
|
* @type {number}
|
|
248
|
-
* @
|
|
247
|
+
* @public
|
|
249
248
|
*/
|
|
250
|
-
this.
|
|
249
|
+
this.class1TraysPerHourPotential = undefined;
|
|
251
250
|
|
|
252
251
|
/**
|
|
253
252
|
* The Number of Class 1 Tray Equivalents that would have been Packed this Hour with Zero Downtime
|
|
254
253
|
*
|
|
255
254
|
* @type {number}
|
|
256
|
-
* @
|
|
255
|
+
* @public
|
|
257
256
|
*/
|
|
258
|
-
this.
|
|
257
|
+
this.class1TraysPerHourExcludingDowntime = undefined;
|
|
259
258
|
|
|
260
259
|
/**
|
|
261
260
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour without Planned Downtime (e.g. Smoko Breaks)
|
|
262
261
|
*
|
|
263
262
|
* @type {?number}
|
|
264
|
-
* @
|
|
263
|
+
* @public
|
|
265
264
|
*/
|
|
266
|
-
this.
|
|
265
|
+
this.class1TraysPerManHourPotential = undefined;
|
|
267
266
|
|
|
268
267
|
/**
|
|
269
268
|
* The Number of Class 1 Tray Equivalents that would have been Packed per Person this Hour with Zero Downtime
|
|
270
269
|
*
|
|
271
270
|
* @type {?number}
|
|
272
|
-
* @
|
|
271
|
+
* @public
|
|
273
272
|
*/
|
|
274
|
-
this.
|
|
273
|
+
this.class1TraysPerManHourExcludingDowntime = undefined;
|
|
275
274
|
|
|
276
275
|
/**
|
|
277
276
|
* The Manning Percentage based on the Average Target for this Hour
|
|
278
277
|
*
|
|
279
278
|
* @type {?number}
|
|
280
|
-
* @
|
|
279
|
+
* @public
|
|
281
280
|
*/
|
|
282
|
-
this.
|
|
281
|
+
this.manningPercentage = undefined;
|
|
283
282
|
|
|
284
283
|
/**
|
|
285
284
|
* The Total Number of People working for this Hour
|
|
286
285
|
*
|
|
287
286
|
* @type {?number}
|
|
288
|
-
* @
|
|
287
|
+
* @public
|
|
289
288
|
*/
|
|
290
|
-
this.
|
|
289
|
+
this.totalManning = undefined;
|
|
291
290
|
|
|
292
291
|
/**
|
|
293
292
|
* The Percentage of Production Time without Downtime for this Hour
|
|
294
293
|
*
|
|
295
294
|
* @type {number}
|
|
296
|
-
* @
|
|
295
|
+
* @public
|
|
297
296
|
*/
|
|
298
|
-
this.
|
|
297
|
+
this.uptimePercentage = undefined;
|
|
299
298
|
|
|
300
299
|
/**
|
|
301
300
|
* The Percentage of Downtime for this Hour
|
|
302
301
|
*
|
|
303
302
|
* @type {number}
|
|
304
|
-
* @
|
|
303
|
+
* @public
|
|
305
304
|
*/
|
|
306
|
-
this.
|
|
305
|
+
this.downtimePercentage = undefined;
|
|
307
306
|
|
|
308
307
|
/**
|
|
309
308
|
* Whether the Shift Hourly Entry has been deleted
|
|
310
309
|
*
|
|
311
310
|
* @type {boolean}
|
|
312
|
-
* @
|
|
311
|
+
* @public
|
|
313
312
|
*/
|
|
314
|
-
this.
|
|
313
|
+
this.deleted = undefined;
|
|
315
314
|
|
|
316
315
|
/**
|
|
317
316
|
* When the Shift Hourly Entry was last updated
|
|
318
317
|
*
|
|
319
318
|
* @type {Date}
|
|
320
|
-
* @
|
|
319
|
+
* @public
|
|
321
320
|
*/
|
|
322
|
-
this.
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* The Site ID associated with this Shift Hourly Entry
|
|
326
|
-
*
|
|
327
|
-
* @type {number}
|
|
328
|
-
* @private
|
|
329
|
-
*/
|
|
330
|
-
this._siteId = siteId;
|
|
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
|
-
};
|
|
321
|
+
this.updateTimestamp = undefined;
|
|
798
322
|
}
|
|
799
323
|
|
|
800
324
|
/**
|
|
@@ -803,12 +327,11 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
803
327
|
* @static
|
|
804
328
|
* @public
|
|
805
329
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
806
|
-
* @param {number} siteId The Site ID associated with this Shift Hourly Entry
|
|
807
330
|
* @return {ShiftHourlyEntryModel}
|
|
808
331
|
*/
|
|
809
|
-
static fromJSON(json
|
|
332
|
+
static fromJSON(json)
|
|
810
333
|
{
|
|
811
|
-
let model = new ShiftHourlyEntryModel(
|
|
334
|
+
let model = new ShiftHourlyEntryModel();
|
|
812
335
|
|
|
813
336
|
/**
|
|
814
337
|
* The JSON Object
|
|
@@ -828,7 +351,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
828
351
|
|
|
829
352
|
if('id' in jsonObject)
|
|
830
353
|
{
|
|
831
|
-
model.
|
|
354
|
+
model.id = (function(){
|
|
832
355
|
if(typeof jsonObject['id'] !== 'string')
|
|
833
356
|
{
|
|
834
357
|
return String(jsonObject['id']);
|
|
@@ -840,7 +363,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
840
363
|
|
|
841
364
|
if('packingLineId' in jsonObject)
|
|
842
365
|
{
|
|
843
|
-
model.
|
|
366
|
+
model.packingLineId = (function(){
|
|
844
367
|
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
845
368
|
{
|
|
846
369
|
return String(jsonObject['packingLineId']);
|
|
@@ -852,7 +375,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
852
375
|
|
|
853
376
|
if('shiftId' in jsonObject)
|
|
854
377
|
{
|
|
855
|
-
model.
|
|
378
|
+
model.shiftId = (function(){
|
|
856
379
|
if(typeof jsonObject['shiftId'] !== 'string')
|
|
857
380
|
{
|
|
858
381
|
return String(jsonObject['shiftId']);
|
|
@@ -864,7 +387,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
864
387
|
|
|
865
388
|
if('createdTimestamp' in jsonObject)
|
|
866
389
|
{
|
|
867
|
-
model.
|
|
390
|
+
model.createdTimestamp = (function(){
|
|
868
391
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
869
392
|
{
|
|
870
393
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -876,7 +399,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
876
399
|
|
|
877
400
|
if('startTimestamp' in jsonObject)
|
|
878
401
|
{
|
|
879
|
-
model.
|
|
402
|
+
model.startTimestamp = (function(){
|
|
880
403
|
if(typeof jsonObject['startTimestamp'] !== 'string')
|
|
881
404
|
{
|
|
882
405
|
return new Date(String(jsonObject['startTimestamp']));
|
|
@@ -888,7 +411,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
888
411
|
|
|
889
412
|
if('endTimestamp' in jsonObject)
|
|
890
413
|
{
|
|
891
|
-
model.
|
|
414
|
+
model.endTimestamp = (function(){
|
|
892
415
|
if(typeof jsonObject['endTimestamp'] !== 'string')
|
|
893
416
|
{
|
|
894
417
|
return new Date(String(jsonObject['endTimestamp']));
|
|
@@ -900,7 +423,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
900
423
|
|
|
901
424
|
if('class1Manning' in jsonObject)
|
|
902
425
|
{
|
|
903
|
-
model.
|
|
426
|
+
model.class1Manning = (function(){
|
|
904
427
|
if(jsonObject['class1Manning'] === null)
|
|
905
428
|
{
|
|
906
429
|
return null;
|
|
@@ -917,7 +440,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
917
440
|
|
|
918
441
|
if('class2Manning' in jsonObject)
|
|
919
442
|
{
|
|
920
|
-
model.
|
|
443
|
+
model.class2Manning = (function(){
|
|
921
444
|
if(jsonObject['class2Manning'] === null)
|
|
922
445
|
{
|
|
923
446
|
return null;
|
|
@@ -934,7 +457,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
934
457
|
|
|
935
458
|
if('averageManningTarget' in jsonObject)
|
|
936
459
|
{
|
|
937
|
-
model.
|
|
460
|
+
model.averageManningTarget = (function(){
|
|
938
461
|
if(jsonObject['averageManningTarget'] === null)
|
|
939
462
|
{
|
|
940
463
|
return null;
|
|
@@ -951,7 +474,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
951
474
|
|
|
952
475
|
if('layeredTrayPercentage' in jsonObject)
|
|
953
476
|
{
|
|
954
|
-
model.
|
|
477
|
+
model.layeredTrayPercentage = (function(){
|
|
955
478
|
if(jsonObject['layeredTrayPercentage'] === null)
|
|
956
479
|
{
|
|
957
480
|
return null;
|
|
@@ -968,7 +491,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
968
491
|
|
|
969
492
|
if('averageClass1Percentage' in jsonObject)
|
|
970
493
|
{
|
|
971
|
-
model.
|
|
494
|
+
model.averageClass1Percentage = (function(){
|
|
972
495
|
if(jsonObject['averageClass1Percentage'] === null)
|
|
973
496
|
{
|
|
974
497
|
return null;
|
|
@@ -985,7 +508,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
985
508
|
|
|
986
509
|
if('qualityR600IdealSamplesPercentage' in jsonObject)
|
|
987
510
|
{
|
|
988
|
-
model.
|
|
511
|
+
model.qualityR600IdealSamplesPercentage = (function(){
|
|
989
512
|
if(jsonObject['qualityR600IdealSamplesPercentage'] === null)
|
|
990
513
|
{
|
|
991
514
|
return null;
|
|
@@ -1002,7 +525,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1002
525
|
|
|
1003
526
|
if('customQualityData' in jsonObject)
|
|
1004
527
|
{
|
|
1005
|
-
model.
|
|
528
|
+
model.customQualityData = (function(){
|
|
1006
529
|
if(Array.isArray(jsonObject['customQualityData']) !== true)
|
|
1007
530
|
{
|
|
1008
531
|
return [];
|
|
@@ -1084,7 +607,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1084
607
|
|
|
1085
608
|
if('totalBinsTipped' in jsonObject)
|
|
1086
609
|
{
|
|
1087
|
-
model.
|
|
610
|
+
model.totalBinsTipped = (function(){
|
|
1088
611
|
if(typeof jsonObject['totalBinsTipped'] !== 'number')
|
|
1089
612
|
{
|
|
1090
613
|
return Number.isInteger(Number(jsonObject['totalBinsTipped'])) ? Number(jsonObject['totalBinsTipped']) : Math.floor(Number(jsonObject['totalBinsTipped']));
|
|
@@ -1096,7 +619,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1096
619
|
|
|
1097
620
|
if('binsTippedTarget' in jsonObject)
|
|
1098
621
|
{
|
|
1099
|
-
model.
|
|
622
|
+
model.binsTippedTarget = (function(){
|
|
1100
623
|
if(typeof jsonObject['binsTippedTarget'] !== 'number')
|
|
1101
624
|
{
|
|
1102
625
|
return Number.isInteger(Number(jsonObject['binsTippedTarget'])) ? Number(jsonObject['binsTippedTarget']) : Math.floor(Number(jsonObject['binsTippedTarget']));
|
|
@@ -1108,7 +631,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1108
631
|
|
|
1109
632
|
if('totalDowntime' in jsonObject)
|
|
1110
633
|
{
|
|
1111
|
-
model.
|
|
634
|
+
model.totalDowntime = (function(){
|
|
1112
635
|
if(typeof jsonObject['totalDowntime'] !== 'number')
|
|
1113
636
|
{
|
|
1114
637
|
return Number.isInteger(Number(jsonObject['totalDowntime'])) ? Number(jsonObject['totalDowntime']) : Math.floor(Number(jsonObject['totalDowntime']));
|
|
@@ -1120,7 +643,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1120
643
|
|
|
1121
644
|
if('totalProductionTime' in jsonObject)
|
|
1122
645
|
{
|
|
1123
|
-
model.
|
|
646
|
+
model.totalProductionTime = (function(){
|
|
1124
647
|
if(typeof jsonObject['totalProductionTime'] !== 'number')
|
|
1125
648
|
{
|
|
1126
649
|
return Number.isInteger(Number(jsonObject['totalProductionTime'])) ? Number(jsonObject['totalProductionTime']) : Math.floor(Number(jsonObject['totalProductionTime']));
|
|
@@ -1132,7 +655,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1132
655
|
|
|
1133
656
|
if('totalClass1Trays' in jsonObject)
|
|
1134
657
|
{
|
|
1135
|
-
model.
|
|
658
|
+
model.totalClass1Trays = (function(){
|
|
1136
659
|
if(typeof jsonObject['totalClass1Trays'] !== 'number')
|
|
1137
660
|
{
|
|
1138
661
|
return Number.isInteger(Number(jsonObject['totalClass1Trays'])) ? Number(jsonObject['totalClass1Trays']) : Math.floor(Number(jsonObject['totalClass1Trays']));
|
|
@@ -1144,7 +667,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1144
667
|
|
|
1145
668
|
if('totalClass2Trays' in jsonObject)
|
|
1146
669
|
{
|
|
1147
|
-
model.
|
|
670
|
+
model.totalClass2Trays = (function(){
|
|
1148
671
|
if(typeof jsonObject['totalClass2Trays'] !== 'number')
|
|
1149
672
|
{
|
|
1150
673
|
return Number.isInteger(Number(jsonObject['totalClass2Trays'])) ? Number(jsonObject['totalClass2Trays']) : Math.floor(Number(jsonObject['totalClass2Trays']));
|
|
@@ -1156,7 +679,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1156
679
|
|
|
1157
680
|
if('class1TraysPerHourExcludingDowntimeTarget' in jsonObject)
|
|
1158
681
|
{
|
|
1159
|
-
model.
|
|
682
|
+
model.class1TraysPerHourExcludingDowntimeTarget = (function(){
|
|
1160
683
|
if(typeof jsonObject['class1TraysPerHourExcludingDowntimeTarget'] !== 'number')
|
|
1161
684
|
{
|
|
1162
685
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntimeTarget']));
|
|
@@ -1168,7 +691,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1168
691
|
|
|
1169
692
|
if('primaryIssueCategory' in jsonObject)
|
|
1170
693
|
{
|
|
1171
|
-
model.
|
|
694
|
+
model.primaryIssueCategory = (function(){
|
|
1172
695
|
if(jsonObject['primaryIssueCategory'] === null)
|
|
1173
696
|
{
|
|
1174
697
|
return null;
|
|
@@ -1185,7 +708,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1185
708
|
|
|
1186
709
|
if('primaryIssueTag' in jsonObject)
|
|
1187
710
|
{
|
|
1188
|
-
model.
|
|
711
|
+
model.primaryIssueTag = (function(){
|
|
1189
712
|
if(jsonObject['primaryIssueTag'] === null)
|
|
1190
713
|
{
|
|
1191
714
|
return null;
|
|
@@ -1202,7 +725,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1202
725
|
|
|
1203
726
|
if('secondaryIssueCategory' in jsonObject)
|
|
1204
727
|
{
|
|
1205
|
-
model.
|
|
728
|
+
model.secondaryIssueCategory = (function(){
|
|
1206
729
|
if(jsonObject['secondaryIssueCategory'] === null)
|
|
1207
730
|
{
|
|
1208
731
|
return null;
|
|
@@ -1219,7 +742,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1219
742
|
|
|
1220
743
|
if('secondaryIssueTag' in jsonObject)
|
|
1221
744
|
{
|
|
1222
|
-
model.
|
|
745
|
+
model.secondaryIssueTag = (function(){
|
|
1223
746
|
if(jsonObject['secondaryIssueTag'] === null)
|
|
1224
747
|
{
|
|
1225
748
|
return null;
|
|
@@ -1236,7 +759,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1236
759
|
|
|
1237
760
|
if('nextHourFocus' in jsonObject)
|
|
1238
761
|
{
|
|
1239
|
-
model.
|
|
762
|
+
model.nextHourFocus = (function(){
|
|
1240
763
|
if(jsonObject['nextHourFocus'] === null)
|
|
1241
764
|
{
|
|
1242
765
|
return null;
|
|
@@ -1253,7 +776,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1253
776
|
|
|
1254
777
|
if('satisfactionRating' in jsonObject)
|
|
1255
778
|
{
|
|
1256
|
-
model.
|
|
779
|
+
model.satisfactionRating = (function(){
|
|
1257
780
|
if(jsonObject['satisfactionRating'] === null)
|
|
1258
781
|
{
|
|
1259
782
|
return null;
|
|
@@ -1270,7 +793,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1270
793
|
|
|
1271
794
|
if('status' in jsonObject)
|
|
1272
795
|
{
|
|
1273
|
-
model.
|
|
796
|
+
model.status = (function(){
|
|
1274
797
|
if(typeof jsonObject['status'] !== 'string')
|
|
1275
798
|
{
|
|
1276
799
|
return String(jsonObject['status']);
|
|
@@ -1282,7 +805,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1282
805
|
|
|
1283
806
|
if('class1TraysPerHourPotential' in jsonObject)
|
|
1284
807
|
{
|
|
1285
|
-
model.
|
|
808
|
+
model.class1TraysPerHourPotential = (function(){
|
|
1286
809
|
if(typeof jsonObject['class1TraysPerHourPotential'] !== 'number')
|
|
1287
810
|
{
|
|
1288
811
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourPotential'])) ? Number(jsonObject['class1TraysPerHourPotential']) : Math.floor(Number(jsonObject['class1TraysPerHourPotential']));
|
|
@@ -1294,7 +817,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1294
817
|
|
|
1295
818
|
if('class1TraysPerHourExcludingDowntime' in jsonObject)
|
|
1296
819
|
{
|
|
1297
|
-
model.
|
|
820
|
+
model.class1TraysPerHourExcludingDowntime = (function(){
|
|
1298
821
|
if(typeof jsonObject['class1TraysPerHourExcludingDowntime'] !== 'number')
|
|
1299
822
|
{
|
|
1300
823
|
return Number.isInteger(Number(jsonObject['class1TraysPerHourExcludingDowntime'])) ? Number(jsonObject['class1TraysPerHourExcludingDowntime']) : Math.floor(Number(jsonObject['class1TraysPerHourExcludingDowntime']));
|
|
@@ -1306,7 +829,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1306
829
|
|
|
1307
830
|
if('class1TraysPerManHourPotential' in jsonObject)
|
|
1308
831
|
{
|
|
1309
|
-
model.
|
|
832
|
+
model.class1TraysPerManHourPotential = (function(){
|
|
1310
833
|
if(jsonObject['class1TraysPerManHourPotential'] === null)
|
|
1311
834
|
{
|
|
1312
835
|
return null;
|
|
@@ -1323,7 +846,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1323
846
|
|
|
1324
847
|
if('class1TraysPerManHourExcludingDowntime' in jsonObject)
|
|
1325
848
|
{
|
|
1326
|
-
model.
|
|
849
|
+
model.class1TraysPerManHourExcludingDowntime = (function(){
|
|
1327
850
|
if(jsonObject['class1TraysPerManHourExcludingDowntime'] === null)
|
|
1328
851
|
{
|
|
1329
852
|
return null;
|
|
@@ -1340,7 +863,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1340
863
|
|
|
1341
864
|
if('manningPercentage' in jsonObject)
|
|
1342
865
|
{
|
|
1343
|
-
model.
|
|
866
|
+
model.manningPercentage = (function(){
|
|
1344
867
|
if(jsonObject['manningPercentage'] === null)
|
|
1345
868
|
{
|
|
1346
869
|
return null;
|
|
@@ -1357,7 +880,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1357
880
|
|
|
1358
881
|
if('totalManning' in jsonObject)
|
|
1359
882
|
{
|
|
1360
|
-
model.
|
|
883
|
+
model.totalManning = (function(){
|
|
1361
884
|
if(jsonObject['totalManning'] === null)
|
|
1362
885
|
{
|
|
1363
886
|
return null;
|
|
@@ -1374,7 +897,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1374
897
|
|
|
1375
898
|
if('uptimePercentage' in jsonObject)
|
|
1376
899
|
{
|
|
1377
|
-
model.
|
|
900
|
+
model.uptimePercentage = (function(){
|
|
1378
901
|
if(typeof jsonObject['uptimePercentage'] !== 'number')
|
|
1379
902
|
{
|
|
1380
903
|
return Number(jsonObject['uptimePercentage']);
|
|
@@ -1386,7 +909,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1386
909
|
|
|
1387
910
|
if('downtimePercentage' in jsonObject)
|
|
1388
911
|
{
|
|
1389
|
-
model.
|
|
912
|
+
model.downtimePercentage = (function(){
|
|
1390
913
|
if(typeof jsonObject['downtimePercentage'] !== 'number')
|
|
1391
914
|
{
|
|
1392
915
|
return Number(jsonObject['downtimePercentage']);
|
|
@@ -1398,7 +921,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1398
921
|
|
|
1399
922
|
if('deleted' in jsonObject)
|
|
1400
923
|
{
|
|
1401
|
-
model.
|
|
924
|
+
model.deleted = (function(){
|
|
1402
925
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
1403
926
|
{
|
|
1404
927
|
return Boolean(jsonObject['deleted']);
|
|
@@ -1410,7 +933,7 @@ class ShiftHourlyEntryModel extends BaseSiteModel
|
|
|
1410
933
|
|
|
1411
934
|
if('updateTimestamp' in jsonObject)
|
|
1412
935
|
{
|
|
1413
|
-
model.
|
|
936
|
+
model.updateTimestamp = (function(){
|
|
1414
937
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
1415
938
|
{
|
|
1416
939
|
return new Date(String(jsonObject['updateTimestamp']));
|