@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 Downtime Event
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class DowntimeEventModel extends
|
|
16
|
+
class DowntimeEventModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* DowntimeEventModel Constructor
|
|
@@ -29,312 +29,121 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
29
29
|
* The Downtime Event 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 Downtime Event 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 Downtime Event 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 Downtime Event 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
|
* When this Downtime Event Started
|
|
62
62
|
*
|
|
63
63
|
* @type {Date}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.startTimestamp = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When this Downtime Event Ended
|
|
70
70
|
*
|
|
71
71
|
* @type {?Date}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.endTimestamp = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Reason Category for this Downtime Event
|
|
78
78
|
*
|
|
79
79
|
* @type {?string}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.reasonCategory = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Reason Tag for this Downtime Event
|
|
86
86
|
*
|
|
87
87
|
* @type {?string}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.reasonTag = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* An Optional Summary of the Action taken to Remedy this Downtime Event
|
|
94
94
|
*
|
|
95
95
|
* @type {?string}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.remedyAction = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* An Optional Rating between 1 and 10 on how likely this Downtime Event could have been Avoided
|
|
102
102
|
*
|
|
103
103
|
* @type {?number}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
106
|
+
this.avoidableRating = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Source which Created this Downtime Event
|
|
110
110
|
*
|
|
111
111
|
* @type {string}
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.
|
|
114
|
+
this.source = undefined;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Status of this Downtime Event
|
|
118
118
|
*
|
|
119
119
|
* @type {string}
|
|
120
|
-
* @
|
|
120
|
+
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.
|
|
122
|
+
this.status = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Whether the Downtime Event has been deleted
|
|
126
126
|
*
|
|
127
127
|
* @type {boolean}
|
|
128
|
-
* @
|
|
128
|
+
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.
|
|
130
|
+
this.deleted = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* When the Downtime Event was last updated
|
|
134
134
|
*
|
|
135
135
|
* @type {Date}
|
|
136
|
-
* @
|
|
136
|
+
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.
|
|
138
|
+
this.updateTimestamp = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Site ID associated with this Downtime Event
|
|
142
142
|
*
|
|
143
143
|
* @type {number}
|
|
144
|
-
* @
|
|
144
|
+
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* The Downtime Event ID
|
|
151
|
-
*
|
|
152
|
-
* @public
|
|
153
|
-
* @type {string}
|
|
154
|
-
*/
|
|
155
|
-
get id()
|
|
156
|
-
{
|
|
157
|
-
return this._id;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* The Packing Line ID this Downtime Event is associated with
|
|
162
|
-
*
|
|
163
|
-
* @public
|
|
164
|
-
* @type {string}
|
|
165
|
-
*/
|
|
166
|
-
get packingLineId()
|
|
167
|
-
{
|
|
168
|
-
return this._packingLineId;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* The Shift ID this Downtime Event is asssociated with
|
|
173
|
-
*
|
|
174
|
-
* @public
|
|
175
|
-
* @type {string}
|
|
176
|
-
*/
|
|
177
|
-
get shiftId()
|
|
178
|
-
{
|
|
179
|
-
return this._shiftId;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* When this Downtime Event was Created
|
|
184
|
-
*
|
|
185
|
-
* @public
|
|
186
|
-
* @type {Date}
|
|
187
|
-
*/
|
|
188
|
-
get createdTimestamp()
|
|
189
|
-
{
|
|
190
|
-
return this._createdTimestamp;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* When this Downtime Event Started
|
|
195
|
-
*
|
|
196
|
-
* @public
|
|
197
|
-
* @type {Date}
|
|
198
|
-
*/
|
|
199
|
-
get startTimestamp()
|
|
200
|
-
{
|
|
201
|
-
return this._startTimestamp;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* When this Downtime Event Ended
|
|
206
|
-
*
|
|
207
|
-
* @public
|
|
208
|
-
* @type {?Date}
|
|
209
|
-
*/
|
|
210
|
-
get endTimestamp()
|
|
211
|
-
{
|
|
212
|
-
return this._endTimestamp;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The Reason Category for this Downtime Event
|
|
217
|
-
*
|
|
218
|
-
* @public
|
|
219
|
-
* @type {?string}
|
|
220
|
-
*/
|
|
221
|
-
get reasonCategory()
|
|
222
|
-
{
|
|
223
|
-
return this._reasonCategory;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* The Reason Tag for this Downtime Event
|
|
228
|
-
*
|
|
229
|
-
* @public
|
|
230
|
-
* @type {?string}
|
|
231
|
-
*/
|
|
232
|
-
get reasonTag()
|
|
233
|
-
{
|
|
234
|
-
return this._reasonTag;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* An Optional Summary of the Action taken to Remedy this Downtime Event
|
|
239
|
-
*
|
|
240
|
-
* @public
|
|
241
|
-
* @type {?string}
|
|
242
|
-
*/
|
|
243
|
-
get remedyAction()
|
|
244
|
-
{
|
|
245
|
-
return this._remedyAction;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* An Optional Rating between 1 and 10 on how likely this Downtime Event could have been Avoided
|
|
250
|
-
*
|
|
251
|
-
* @public
|
|
252
|
-
* @type {?number}
|
|
253
|
-
*/
|
|
254
|
-
get avoidableRating()
|
|
255
|
-
{
|
|
256
|
-
return this._avoidableRating;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* The Source which Created this Downtime Event
|
|
261
|
-
*
|
|
262
|
-
* @public
|
|
263
|
-
* @type {string}
|
|
264
|
-
*/
|
|
265
|
-
get source()
|
|
266
|
-
{
|
|
267
|
-
return this._source;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* The Status of this Downtime Event
|
|
272
|
-
*
|
|
273
|
-
* @public
|
|
274
|
-
* @type {string}
|
|
275
|
-
*/
|
|
276
|
-
get status()
|
|
277
|
-
{
|
|
278
|
-
return this._status;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Whether the Downtime Event has been deleted
|
|
283
|
-
*
|
|
284
|
-
* @public
|
|
285
|
-
* @type {boolean}
|
|
286
|
-
*/
|
|
287
|
-
get deleted()
|
|
288
|
-
{
|
|
289
|
-
return this._deleted;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* When the Downtime Event was last updated
|
|
294
|
-
*
|
|
295
|
-
* @public
|
|
296
|
-
* @type {Date}
|
|
297
|
-
*/
|
|
298
|
-
get updateTimestamp()
|
|
299
|
-
{
|
|
300
|
-
return this._updateTimestamp;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* The Site ID associated with this Downtime Event
|
|
305
|
-
*
|
|
306
|
-
* @public
|
|
307
|
-
* @type {number}
|
|
308
|
-
*/
|
|
309
|
-
get siteId()
|
|
310
|
-
{
|
|
311
|
-
return this._siteId;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Convert this **DowntimeEventModel** to a JSON Object
|
|
316
|
-
*
|
|
317
|
-
* @public
|
|
318
|
-
* @return {Object<string, any>}
|
|
319
|
-
*/
|
|
320
|
-
toJSON()
|
|
321
|
-
{
|
|
322
|
-
return {
|
|
323
|
-
id: this._id,
|
|
324
|
-
packingLineId: this._packingLineId,
|
|
325
|
-
shiftId: this._shiftId,
|
|
326
|
-
createdTimestamp: this._createdTimestamp,
|
|
327
|
-
startTimestamp: this._startTimestamp,
|
|
328
|
-
endTimestamp: this._endTimestamp,
|
|
329
|
-
reasonCategory: this._reasonCategory,
|
|
330
|
-
reasonTag: this._reasonTag,
|
|
331
|
-
remedyAction: this._remedyAction,
|
|
332
|
-
avoidableRating: this._avoidableRating,
|
|
333
|
-
source: this._source,
|
|
334
|
-
status: this._status,
|
|
335
|
-
deleted: this._deleted,
|
|
336
|
-
updateTimestamp: this._updateTimestamp
|
|
337
|
-
};
|
|
146
|
+
this.siteId = siteId;
|
|
338
147
|
}
|
|
339
148
|
|
|
340
149
|
/**
|
|
@@ -368,7 +177,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
368
177
|
|
|
369
178
|
if('id' in jsonObject)
|
|
370
179
|
{
|
|
371
|
-
model.
|
|
180
|
+
model.id = (function(){
|
|
372
181
|
if(typeof jsonObject['id'] !== 'string')
|
|
373
182
|
{
|
|
374
183
|
return String(jsonObject['id']);
|
|
@@ -380,7 +189,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
380
189
|
|
|
381
190
|
if('packingLineId' in jsonObject)
|
|
382
191
|
{
|
|
383
|
-
model.
|
|
192
|
+
model.packingLineId = (function(){
|
|
384
193
|
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
385
194
|
{
|
|
386
195
|
return String(jsonObject['packingLineId']);
|
|
@@ -392,7 +201,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
392
201
|
|
|
393
202
|
if('shiftId' in jsonObject)
|
|
394
203
|
{
|
|
395
|
-
model.
|
|
204
|
+
model.shiftId = (function(){
|
|
396
205
|
if(typeof jsonObject['shiftId'] !== 'string')
|
|
397
206
|
{
|
|
398
207
|
return String(jsonObject['shiftId']);
|
|
@@ -404,7 +213,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
404
213
|
|
|
405
214
|
if('createdTimestamp' in jsonObject)
|
|
406
215
|
{
|
|
407
|
-
model.
|
|
216
|
+
model.createdTimestamp = (function(){
|
|
408
217
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
409
218
|
{
|
|
410
219
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -416,7 +225,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
416
225
|
|
|
417
226
|
if('startTimestamp' in jsonObject)
|
|
418
227
|
{
|
|
419
|
-
model.
|
|
228
|
+
model.startTimestamp = (function(){
|
|
420
229
|
if(typeof jsonObject['startTimestamp'] !== 'string')
|
|
421
230
|
{
|
|
422
231
|
return new Date(String(jsonObject['startTimestamp']));
|
|
@@ -428,7 +237,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
428
237
|
|
|
429
238
|
if('endTimestamp' in jsonObject)
|
|
430
239
|
{
|
|
431
|
-
model.
|
|
240
|
+
model.endTimestamp = (function(){
|
|
432
241
|
if(jsonObject['endTimestamp'] === null)
|
|
433
242
|
{
|
|
434
243
|
return null;
|
|
@@ -445,7 +254,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
445
254
|
|
|
446
255
|
if('reasonCategory' in jsonObject)
|
|
447
256
|
{
|
|
448
|
-
model.
|
|
257
|
+
model.reasonCategory = (function(){
|
|
449
258
|
if(jsonObject['reasonCategory'] === null)
|
|
450
259
|
{
|
|
451
260
|
return null;
|
|
@@ -462,7 +271,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
462
271
|
|
|
463
272
|
if('reasonTag' in jsonObject)
|
|
464
273
|
{
|
|
465
|
-
model.
|
|
274
|
+
model.reasonTag = (function(){
|
|
466
275
|
if(jsonObject['reasonTag'] === null)
|
|
467
276
|
{
|
|
468
277
|
return null;
|
|
@@ -479,7 +288,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
479
288
|
|
|
480
289
|
if('remedyAction' in jsonObject)
|
|
481
290
|
{
|
|
482
|
-
model.
|
|
291
|
+
model.remedyAction = (function(){
|
|
483
292
|
if(jsonObject['remedyAction'] === null)
|
|
484
293
|
{
|
|
485
294
|
return null;
|
|
@@ -496,7 +305,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
496
305
|
|
|
497
306
|
if('avoidableRating' in jsonObject)
|
|
498
307
|
{
|
|
499
|
-
model.
|
|
308
|
+
model.avoidableRating = (function(){
|
|
500
309
|
if(jsonObject['avoidableRating'] === null)
|
|
501
310
|
{
|
|
502
311
|
return null;
|
|
@@ -513,7 +322,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
513
322
|
|
|
514
323
|
if('source' in jsonObject)
|
|
515
324
|
{
|
|
516
|
-
model.
|
|
325
|
+
model.source = (function(){
|
|
517
326
|
if(typeof jsonObject['source'] !== 'string')
|
|
518
327
|
{
|
|
519
328
|
return String(jsonObject['source']);
|
|
@@ -525,7 +334,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
525
334
|
|
|
526
335
|
if('status' in jsonObject)
|
|
527
336
|
{
|
|
528
|
-
model.
|
|
337
|
+
model.status = (function(){
|
|
529
338
|
if(typeof jsonObject['status'] !== 'string')
|
|
530
339
|
{
|
|
531
340
|
return String(jsonObject['status']);
|
|
@@ -537,7 +346,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
537
346
|
|
|
538
347
|
if('deleted' in jsonObject)
|
|
539
348
|
{
|
|
540
|
-
model.
|
|
349
|
+
model.deleted = (function(){
|
|
541
350
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
542
351
|
{
|
|
543
352
|
return Boolean(jsonObject['deleted']);
|
|
@@ -549,7 +358,7 @@ class DowntimeEventModel extends BaseSiteModel
|
|
|
549
358
|
|
|
550
359
|
if('updateTimestamp' in jsonObject)
|
|
551
360
|
{
|
|
552
|
-
model.
|
|
361
|
+
model.updateTimestamp = (function(){
|
|
553
362
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
554
363
|
{
|
|
555
364
|
return new Date(String(jsonObject['updateTimestamp']));
|