@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 Packing Line
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class PackingLineModel extends
|
|
16
|
+
class PackingLineModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* PackingLineModel Constructor
|
|
@@ -29,332 +29,129 @@ class PackingLineModel extends BaseSiteModel
|
|
|
29
29
|
* The Packing Line 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 RTU this Packing Line belongs to
|
|
38
38
|
*
|
|
39
39
|
* @type {?number}
|
|
40
|
-
* @
|
|
40
|
+
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.rtuId = undefined;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packing Line Name
|
|
46
46
|
*
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.name = undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Packing Line
|
|
54
54
|
*
|
|
55
55
|
* @type {Object}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.points = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Sizer Objects that belong to this Packing Line
|
|
62
62
|
*
|
|
63
63
|
* @type {Object[]}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.sizers = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Bin Tip Objects that belong to this this Packing Line
|
|
70
70
|
*
|
|
71
71
|
* @type {Object[]}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.binTips = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Reject Bin Scale Objects that belong to this Packing Line
|
|
78
78
|
*
|
|
79
79
|
* @type {Object[]}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.rejectBinScales = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Automation Object for this Packing Line
|
|
86
86
|
*
|
|
87
87
|
* @type {?Object}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.automation = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Alarm Groups that are used by this Packing Line
|
|
94
94
|
*
|
|
95
95
|
* @type {string[]}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.alarmGroups = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Class Types that are defined for this Packing Line
|
|
102
102
|
*
|
|
103
103
|
* @type {Object[]}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
106
|
+
this.classTypes = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Optional Shift Management Object for this Packing Line
|
|
110
110
|
*
|
|
111
111
|
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.
|
|
114
|
+
this.shiftManagement = undefined;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The FreshPack Integration Configuration for this Packing Line
|
|
118
118
|
*
|
|
119
119
|
* @type {?Object}
|
|
120
|
-
* @
|
|
120
|
+
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.
|
|
122
|
+
this.freshPackIntegration = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
126
126
|
*
|
|
127
127
|
* @type {?Object}
|
|
128
|
-
* @
|
|
128
|
+
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.
|
|
130
|
+
this.freshQualityIntegration = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Whether the Packing Line has been deleted
|
|
134
134
|
*
|
|
135
135
|
* @type {boolean}
|
|
136
|
-
* @
|
|
136
|
+
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.
|
|
138
|
+
this.deleted = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* When the Packing Line was last updated
|
|
142
142
|
*
|
|
143
143
|
* @type {Date}
|
|
144
|
-
* @
|
|
144
|
+
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.
|
|
146
|
+
this.updateTimestamp = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* The Site ID associated with this Packing Line
|
|
150
150
|
*
|
|
151
151
|
* @type {number}
|
|
152
|
-
* @
|
|
152
|
+
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The Packing Line ID
|
|
159
|
-
*
|
|
160
|
-
* @public
|
|
161
|
-
* @type {string}
|
|
162
|
-
*/
|
|
163
|
-
get id()
|
|
164
|
-
{
|
|
165
|
-
return this._id;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* The RTU this Packing Line belongs to
|
|
170
|
-
*
|
|
171
|
-
* @public
|
|
172
|
-
* @type {?number}
|
|
173
|
-
*/
|
|
174
|
-
get rtuId()
|
|
175
|
-
{
|
|
176
|
-
return this._rtuId;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The Packing Line Name
|
|
181
|
-
*
|
|
182
|
-
* @public
|
|
183
|
-
* @type {string}
|
|
184
|
-
*/
|
|
185
|
-
get name()
|
|
186
|
-
{
|
|
187
|
-
return this._name;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* The Points used by this Packing Line
|
|
192
|
-
*
|
|
193
|
-
* @public
|
|
194
|
-
* @type {Object}
|
|
195
|
-
*/
|
|
196
|
-
get points()
|
|
197
|
-
{
|
|
198
|
-
return this._points;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* The Sizer Objects that belong to this Packing Line
|
|
203
|
-
*
|
|
204
|
-
* @public
|
|
205
|
-
* @type {Object[]}
|
|
206
|
-
*/
|
|
207
|
-
get sizers()
|
|
208
|
-
{
|
|
209
|
-
return this._sizers;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The Bin Tip Objects that belong to this this Packing Line
|
|
214
|
-
*
|
|
215
|
-
* @public
|
|
216
|
-
* @type {Object[]}
|
|
217
|
-
*/
|
|
218
|
-
get binTips()
|
|
219
|
-
{
|
|
220
|
-
return this._binTips;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* The Reject Bin Scale Objects that belong to this Packing Line
|
|
225
|
-
*
|
|
226
|
-
* @public
|
|
227
|
-
* @type {Object[]}
|
|
228
|
-
*/
|
|
229
|
-
get rejectBinScales()
|
|
230
|
-
{
|
|
231
|
-
return this._rejectBinScales;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* The Automation Object for this Packing Line
|
|
236
|
-
*
|
|
237
|
-
* @public
|
|
238
|
-
* @type {?Object}
|
|
239
|
-
*/
|
|
240
|
-
get automation()
|
|
241
|
-
{
|
|
242
|
-
return this._automation;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The Alarm Groups that are used by this Packing Line
|
|
247
|
-
*
|
|
248
|
-
* @public
|
|
249
|
-
* @type {string[]}
|
|
250
|
-
*/
|
|
251
|
-
get alarmGroups()
|
|
252
|
-
{
|
|
253
|
-
return this._alarmGroups;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* The Class Types that are defined for this Packing Line
|
|
258
|
-
*
|
|
259
|
-
* @public
|
|
260
|
-
* @type {Object[]}
|
|
261
|
-
*/
|
|
262
|
-
get classTypes()
|
|
263
|
-
{
|
|
264
|
-
return this._classTypes;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* The Optional Shift Management Object for this Packing Line
|
|
269
|
-
*
|
|
270
|
-
* @public
|
|
271
|
-
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
|
|
272
|
-
*/
|
|
273
|
-
get shiftManagement()
|
|
274
|
-
{
|
|
275
|
-
return this._shiftManagement;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* The FreshPack Integration Configuration for this Packing Line
|
|
280
|
-
*
|
|
281
|
-
* @public
|
|
282
|
-
* @type {?Object}
|
|
283
|
-
*/
|
|
284
|
-
get freshPackIntegration()
|
|
285
|
-
{
|
|
286
|
-
return this._freshPackIntegration;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* The FreshQuality Integration Configuration for this Packing Line
|
|
291
|
-
*
|
|
292
|
-
* @public
|
|
293
|
-
* @type {?Object}
|
|
294
|
-
*/
|
|
295
|
-
get freshQualityIntegration()
|
|
296
|
-
{
|
|
297
|
-
return this._freshQualityIntegration;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Whether the Packing Line has been deleted
|
|
302
|
-
*
|
|
303
|
-
* @public
|
|
304
|
-
* @type {boolean}
|
|
305
|
-
*/
|
|
306
|
-
get deleted()
|
|
307
|
-
{
|
|
308
|
-
return this._deleted;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* When the Packing Line was last updated
|
|
313
|
-
*
|
|
314
|
-
* @public
|
|
315
|
-
* @type {Date}
|
|
316
|
-
*/
|
|
317
|
-
get updateTimestamp()
|
|
318
|
-
{
|
|
319
|
-
return this._updateTimestamp;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* The Site ID associated with this Packing Line
|
|
324
|
-
*
|
|
325
|
-
* @public
|
|
326
|
-
* @type {number}
|
|
327
|
-
*/
|
|
328
|
-
get siteId()
|
|
329
|
-
{
|
|
330
|
-
return this._siteId;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Convert this **PackingLineModel** to a JSON Object
|
|
335
|
-
*
|
|
336
|
-
* @public
|
|
337
|
-
* @return {Object<string, any>}
|
|
338
|
-
*/
|
|
339
|
-
toJSON()
|
|
340
|
-
{
|
|
341
|
-
return {
|
|
342
|
-
id: this._id,
|
|
343
|
-
rtuId: this._rtuId,
|
|
344
|
-
name: this._name,
|
|
345
|
-
points: this._points,
|
|
346
|
-
sizers: this._sizers,
|
|
347
|
-
binTips: this._binTips,
|
|
348
|
-
rejectBinScales: this._rejectBinScales,
|
|
349
|
-
automation: this._automation,
|
|
350
|
-
alarmGroups: this._alarmGroups,
|
|
351
|
-
classTypes: this._classTypes,
|
|
352
|
-
shiftManagement: this._shiftManagement,
|
|
353
|
-
freshPackIntegration: this._freshPackIntegration,
|
|
354
|
-
freshQualityIntegration: this._freshQualityIntegration,
|
|
355
|
-
deleted: this._deleted,
|
|
356
|
-
updateTimestamp: this._updateTimestamp
|
|
357
|
-
};
|
|
154
|
+
this.siteId = siteId;
|
|
358
155
|
}
|
|
359
156
|
|
|
360
157
|
/**
|
|
@@ -388,7 +185,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
388
185
|
|
|
389
186
|
if('id' in jsonObject)
|
|
390
187
|
{
|
|
391
|
-
model.
|
|
188
|
+
model.id = (function(){
|
|
392
189
|
if(typeof jsonObject['id'] !== 'string')
|
|
393
190
|
{
|
|
394
191
|
return String(jsonObject['id']);
|
|
@@ -400,7 +197,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
400
197
|
|
|
401
198
|
if('rtuId' in jsonObject)
|
|
402
199
|
{
|
|
403
|
-
model.
|
|
200
|
+
model.rtuId = (function(){
|
|
404
201
|
if(jsonObject['rtuId'] === null)
|
|
405
202
|
{
|
|
406
203
|
return null;
|
|
@@ -417,7 +214,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
417
214
|
|
|
418
215
|
if('name' in jsonObject)
|
|
419
216
|
{
|
|
420
|
-
model.
|
|
217
|
+
model.name = (function(){
|
|
421
218
|
if(typeof jsonObject['name'] !== 'string')
|
|
422
219
|
{
|
|
423
220
|
return String(jsonObject['name']);
|
|
@@ -429,7 +226,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
429
226
|
|
|
430
227
|
if('points' in jsonObject)
|
|
431
228
|
{
|
|
432
|
-
model.
|
|
229
|
+
model.points = (function(){
|
|
433
230
|
if(typeof jsonObject['points'] !== 'object')
|
|
434
231
|
{
|
|
435
232
|
return Object(jsonObject['points']);
|
|
@@ -441,7 +238,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
441
238
|
|
|
442
239
|
if('sizers' in jsonObject)
|
|
443
240
|
{
|
|
444
|
-
model.
|
|
241
|
+
model.sizers = (function(){
|
|
445
242
|
if(Array.isArray(jsonObject['sizers']) !== true)
|
|
446
243
|
{
|
|
447
244
|
return [];
|
|
@@ -462,7 +259,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
462
259
|
|
|
463
260
|
if('binTips' in jsonObject)
|
|
464
261
|
{
|
|
465
|
-
model.
|
|
262
|
+
model.binTips = (function(){
|
|
466
263
|
if(Array.isArray(jsonObject['binTips']) !== true)
|
|
467
264
|
{
|
|
468
265
|
return [];
|
|
@@ -483,7 +280,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
483
280
|
|
|
484
281
|
if('rejectBinScales' in jsonObject)
|
|
485
282
|
{
|
|
486
|
-
model.
|
|
283
|
+
model.rejectBinScales = (function(){
|
|
487
284
|
if(Array.isArray(jsonObject['rejectBinScales']) !== true)
|
|
488
285
|
{
|
|
489
286
|
return [];
|
|
@@ -504,7 +301,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
504
301
|
|
|
505
302
|
if('automation' in jsonObject)
|
|
506
303
|
{
|
|
507
|
-
model.
|
|
304
|
+
model.automation = (function(){
|
|
508
305
|
if(jsonObject['automation'] === null)
|
|
509
306
|
{
|
|
510
307
|
return null;
|
|
@@ -521,7 +318,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
521
318
|
|
|
522
319
|
if('alarmGroups' in jsonObject)
|
|
523
320
|
{
|
|
524
|
-
model.
|
|
321
|
+
model.alarmGroups = (function(){
|
|
525
322
|
if(Array.isArray(jsonObject['alarmGroups']) !== true)
|
|
526
323
|
{
|
|
527
324
|
return [];
|
|
@@ -542,7 +339,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
542
339
|
|
|
543
340
|
if('classTypes' in jsonObject)
|
|
544
341
|
{
|
|
545
|
-
model.
|
|
342
|
+
model.classTypes = (function(){
|
|
546
343
|
if(Array.isArray(jsonObject['classTypes']) !== true)
|
|
547
344
|
{
|
|
548
345
|
return [];
|
|
@@ -563,7 +360,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
563
360
|
|
|
564
361
|
if('shiftManagement' in jsonObject)
|
|
565
362
|
{
|
|
566
|
-
model.
|
|
363
|
+
model.shiftManagement = (function(){
|
|
567
364
|
if(jsonObject['shiftManagement'] === null)
|
|
568
365
|
{
|
|
569
366
|
return null;
|
|
@@ -772,7 +569,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
772
569
|
|
|
773
570
|
if('freshPackIntegration' in jsonObject)
|
|
774
571
|
{
|
|
775
|
-
model.
|
|
572
|
+
model.freshPackIntegration = (function(){
|
|
776
573
|
if(jsonObject['freshPackIntegration'] === null)
|
|
777
574
|
{
|
|
778
575
|
return null;
|
|
@@ -789,7 +586,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
789
586
|
|
|
790
587
|
if('freshQualityIntegration' in jsonObject)
|
|
791
588
|
{
|
|
792
|
-
model.
|
|
589
|
+
model.freshQualityIntegration = (function(){
|
|
793
590
|
if(jsonObject['freshQualityIntegration'] === null)
|
|
794
591
|
{
|
|
795
592
|
return null;
|
|
@@ -806,7 +603,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
806
603
|
|
|
807
604
|
if('deleted' in jsonObject)
|
|
808
605
|
{
|
|
809
|
-
model.
|
|
606
|
+
model.deleted = (function(){
|
|
810
607
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
811
608
|
{
|
|
812
609
|
return Boolean(jsonObject['deleted']);
|
|
@@ -818,7 +615,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
818
615
|
|
|
819
616
|
if('updateTimestamp' in jsonObject)
|
|
820
617
|
{
|
|
821
|
-
model.
|
|
618
|
+
model.updateTimestamp = (function(){
|
|
822
619
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
823
620
|
{
|
|
824
621
|
return new Date(String(jsonObject['updateTimestamp']));
|