@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 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
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
-
* @param {number} siteId The Site ID associated with this Packing Line
|
|
23
22
|
*/
|
|
24
|
-
constructor(
|
|
23
|
+
constructor()
|
|
25
24
|
{
|
|
26
25
|
super();
|
|
27
26
|
|
|
@@ -29,332 +28,121 @@ class PackingLineModel extends BaseSiteModel
|
|
|
29
28
|
* The Packing Line 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 RTU this Packing Line belongs to
|
|
38
37
|
*
|
|
39
38
|
* @type {?number}
|
|
40
|
-
* @
|
|
39
|
+
* @public
|
|
41
40
|
*/
|
|
42
|
-
this.
|
|
41
|
+
this.rtuId = undefined;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* The Packing Line Name
|
|
46
45
|
*
|
|
47
46
|
* @type {string}
|
|
48
|
-
* @
|
|
47
|
+
* @public
|
|
49
48
|
*/
|
|
50
|
-
this.
|
|
49
|
+
this.name = undefined;
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
52
|
* The Points used by this Packing Line
|
|
54
53
|
*
|
|
55
54
|
* @type {Object}
|
|
56
|
-
* @
|
|
55
|
+
* @public
|
|
57
56
|
*/
|
|
58
|
-
this.
|
|
57
|
+
this.points = undefined;
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
60
|
* The Sizer Objects that belong to this Packing Line
|
|
62
61
|
*
|
|
63
62
|
* @type {Object[]}
|
|
64
|
-
* @
|
|
63
|
+
* @public
|
|
65
64
|
*/
|
|
66
|
-
this.
|
|
65
|
+
this.sizers = undefined;
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* The Bin Tip Objects that belong to this this Packing Line
|
|
70
69
|
*
|
|
71
70
|
* @type {Object[]}
|
|
72
|
-
* @
|
|
71
|
+
* @public
|
|
73
72
|
*/
|
|
74
|
-
this.
|
|
73
|
+
this.binTips = undefined;
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
76
|
* The Reject Bin Scale Objects that belong to this Packing Line
|
|
78
77
|
*
|
|
79
78
|
* @type {Object[]}
|
|
80
|
-
* @
|
|
79
|
+
* @public
|
|
81
80
|
*/
|
|
82
|
-
this.
|
|
81
|
+
this.rejectBinScales = undefined;
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
84
|
* The Automation Object for this Packing Line
|
|
86
85
|
*
|
|
87
86
|
* @type {?Object}
|
|
88
|
-
* @
|
|
87
|
+
* @public
|
|
89
88
|
*/
|
|
90
|
-
this.
|
|
89
|
+
this.automation = undefined;
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
92
|
* The Alarm Groups that are used by this Packing Line
|
|
94
93
|
*
|
|
95
94
|
* @type {string[]}
|
|
96
|
-
* @
|
|
95
|
+
* @public
|
|
97
96
|
*/
|
|
98
|
-
this.
|
|
97
|
+
this.alarmGroups = undefined;
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* The Class Types that are defined for this Packing Line
|
|
102
101
|
*
|
|
103
102
|
* @type {Object[]}
|
|
104
|
-
* @
|
|
103
|
+
* @public
|
|
105
104
|
*/
|
|
106
|
-
this.
|
|
105
|
+
this.classTypes = undefined;
|
|
107
106
|
|
|
108
107
|
/**
|
|
109
108
|
* The Optional Shift Management Object for this Packing Line
|
|
110
109
|
*
|
|
111
110
|
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
|
|
112
|
-
* @
|
|
111
|
+
* @public
|
|
113
112
|
*/
|
|
114
|
-
this.
|
|
113
|
+
this.shiftManagement = undefined;
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
116
|
* The FreshPack Integration Configuration for this Packing Line
|
|
118
117
|
*
|
|
119
118
|
* @type {?Object}
|
|
120
|
-
* @
|
|
119
|
+
* @public
|
|
121
120
|
*/
|
|
122
|
-
this.
|
|
121
|
+
this.freshPackIntegration = undefined;
|
|
123
122
|
|
|
124
123
|
/**
|
|
125
124
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
126
125
|
*
|
|
127
126
|
* @type {?Object}
|
|
128
|
-
* @
|
|
127
|
+
* @public
|
|
129
128
|
*/
|
|
130
|
-
this.
|
|
129
|
+
this.freshQualityIntegration = undefined;
|
|
131
130
|
|
|
132
131
|
/**
|
|
133
132
|
* Whether the Packing Line has been deleted
|
|
134
133
|
*
|
|
135
134
|
* @type {boolean}
|
|
136
|
-
* @
|
|
135
|
+
* @public
|
|
137
136
|
*/
|
|
138
|
-
this.
|
|
137
|
+
this.deleted = undefined;
|
|
139
138
|
|
|
140
139
|
/**
|
|
141
140
|
* When the Packing Line was last updated
|
|
142
141
|
*
|
|
143
142
|
* @type {Date}
|
|
144
|
-
* @
|
|
143
|
+
* @public
|
|
145
144
|
*/
|
|
146
|
-
this.
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The Site ID associated with this Packing Line
|
|
150
|
-
*
|
|
151
|
-
* @type {number}
|
|
152
|
-
* @private
|
|
153
|
-
*/
|
|
154
|
-
this._siteId = siteId;
|
|
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
|
-
};
|
|
145
|
+
this.updateTimestamp = undefined;
|
|
358
146
|
}
|
|
359
147
|
|
|
360
148
|
/**
|
|
@@ -363,12 +151,11 @@ class PackingLineModel extends BaseSiteModel
|
|
|
363
151
|
* @static
|
|
364
152
|
* @public
|
|
365
153
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
366
|
-
* @param {number} siteId The Site ID associated with this Packing Line
|
|
367
154
|
* @return {PackingLineModel}
|
|
368
155
|
*/
|
|
369
|
-
static fromJSON(json
|
|
156
|
+
static fromJSON(json)
|
|
370
157
|
{
|
|
371
|
-
let model = new PackingLineModel(
|
|
158
|
+
let model = new PackingLineModel();
|
|
372
159
|
|
|
373
160
|
/**
|
|
374
161
|
* The JSON Object
|
|
@@ -388,7 +175,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
388
175
|
|
|
389
176
|
if('id' in jsonObject)
|
|
390
177
|
{
|
|
391
|
-
model.
|
|
178
|
+
model.id = (function(){
|
|
392
179
|
if(typeof jsonObject['id'] !== 'string')
|
|
393
180
|
{
|
|
394
181
|
return String(jsonObject['id']);
|
|
@@ -400,7 +187,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
400
187
|
|
|
401
188
|
if('rtuId' in jsonObject)
|
|
402
189
|
{
|
|
403
|
-
model.
|
|
190
|
+
model.rtuId = (function(){
|
|
404
191
|
if(jsonObject['rtuId'] === null)
|
|
405
192
|
{
|
|
406
193
|
return null;
|
|
@@ -417,7 +204,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
417
204
|
|
|
418
205
|
if('name' in jsonObject)
|
|
419
206
|
{
|
|
420
|
-
model.
|
|
207
|
+
model.name = (function(){
|
|
421
208
|
if(typeof jsonObject['name'] !== 'string')
|
|
422
209
|
{
|
|
423
210
|
return String(jsonObject['name']);
|
|
@@ -429,7 +216,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
429
216
|
|
|
430
217
|
if('points' in jsonObject)
|
|
431
218
|
{
|
|
432
|
-
model.
|
|
219
|
+
model.points = (function(){
|
|
433
220
|
if(typeof jsonObject['points'] !== 'object')
|
|
434
221
|
{
|
|
435
222
|
return Object(jsonObject['points']);
|
|
@@ -441,7 +228,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
441
228
|
|
|
442
229
|
if('sizers' in jsonObject)
|
|
443
230
|
{
|
|
444
|
-
model.
|
|
231
|
+
model.sizers = (function(){
|
|
445
232
|
if(Array.isArray(jsonObject['sizers']) !== true)
|
|
446
233
|
{
|
|
447
234
|
return [];
|
|
@@ -462,7 +249,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
462
249
|
|
|
463
250
|
if('binTips' in jsonObject)
|
|
464
251
|
{
|
|
465
|
-
model.
|
|
252
|
+
model.binTips = (function(){
|
|
466
253
|
if(Array.isArray(jsonObject['binTips']) !== true)
|
|
467
254
|
{
|
|
468
255
|
return [];
|
|
@@ -483,7 +270,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
483
270
|
|
|
484
271
|
if('rejectBinScales' in jsonObject)
|
|
485
272
|
{
|
|
486
|
-
model.
|
|
273
|
+
model.rejectBinScales = (function(){
|
|
487
274
|
if(Array.isArray(jsonObject['rejectBinScales']) !== true)
|
|
488
275
|
{
|
|
489
276
|
return [];
|
|
@@ -504,7 +291,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
504
291
|
|
|
505
292
|
if('automation' in jsonObject)
|
|
506
293
|
{
|
|
507
|
-
model.
|
|
294
|
+
model.automation = (function(){
|
|
508
295
|
if(jsonObject['automation'] === null)
|
|
509
296
|
{
|
|
510
297
|
return null;
|
|
@@ -521,7 +308,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
521
308
|
|
|
522
309
|
if('alarmGroups' in jsonObject)
|
|
523
310
|
{
|
|
524
|
-
model.
|
|
311
|
+
model.alarmGroups = (function(){
|
|
525
312
|
if(Array.isArray(jsonObject['alarmGroups']) !== true)
|
|
526
313
|
{
|
|
527
314
|
return [];
|
|
@@ -542,7 +329,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
542
329
|
|
|
543
330
|
if('classTypes' in jsonObject)
|
|
544
331
|
{
|
|
545
|
-
model.
|
|
332
|
+
model.classTypes = (function(){
|
|
546
333
|
if(Array.isArray(jsonObject['classTypes']) !== true)
|
|
547
334
|
{
|
|
548
335
|
return [];
|
|
@@ -563,7 +350,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
563
350
|
|
|
564
351
|
if('shiftManagement' in jsonObject)
|
|
565
352
|
{
|
|
566
|
-
model.
|
|
353
|
+
model.shiftManagement = (function(){
|
|
567
354
|
if(jsonObject['shiftManagement'] === null)
|
|
568
355
|
{
|
|
569
356
|
return null;
|
|
@@ -772,7 +559,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
772
559
|
|
|
773
560
|
if('freshPackIntegration' in jsonObject)
|
|
774
561
|
{
|
|
775
|
-
model.
|
|
562
|
+
model.freshPackIntegration = (function(){
|
|
776
563
|
if(jsonObject['freshPackIntegration'] === null)
|
|
777
564
|
{
|
|
778
565
|
return null;
|
|
@@ -789,7 +576,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
789
576
|
|
|
790
577
|
if('freshQualityIntegration' in jsonObject)
|
|
791
578
|
{
|
|
792
|
-
model.
|
|
579
|
+
model.freshQualityIntegration = (function(){
|
|
793
580
|
if(jsonObject['freshQualityIntegration'] === null)
|
|
794
581
|
{
|
|
795
582
|
return null;
|
|
@@ -806,7 +593,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
806
593
|
|
|
807
594
|
if('deleted' in jsonObject)
|
|
808
595
|
{
|
|
809
|
-
model.
|
|
596
|
+
model.deleted = (function(){
|
|
810
597
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
811
598
|
{
|
|
812
599
|
return Boolean(jsonObject['deleted']);
|
|
@@ -818,7 +605,7 @@ class PackingLineModel extends BaseSiteModel
|
|
|
818
605
|
|
|
819
606
|
if('updateTimestamp' in jsonObject)
|
|
820
607
|
{
|
|
821
|
-
model.
|
|
608
|
+
model.updateTimestamp = (function(){
|
|
822
609
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
823
610
|
{
|
|
824
611
|
return new Date(String(jsonObject['updateTimestamp']));
|