@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 Reject Bin Scale
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class RejectBinScaleModel extends
|
|
16
|
+
class RejectBinScaleModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* RejectBinScaleModel Constructor
|
|
@@ -29,272 +29,105 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
29
29
|
* The Reject Bin Scale 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 Reject Bin Scale 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 Name of this Reject Bin Scale
|
|
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 Reject Bin Scale
|
|
54
54
|
*
|
|
55
55
|
* @type {Object}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.points = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Packing Line that owns this Reject Bin Scale
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.packingLineId = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
70
70
|
*
|
|
71
71
|
* @type {?string}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.packrunSourceId = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Packrun Group this Reject Bin Scale is a part of
|
|
78
78
|
*
|
|
79
79
|
* @type {?number}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.packrunGroup = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
86
86
|
*
|
|
87
87
|
* @type {Object[]}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.sources = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
94
94
|
*
|
|
95
95
|
* @type {?number}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.autoPackrunChange = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
102
102
|
*
|
|
103
103
|
* @type {?Object}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
106
|
+
this.freshPackIntegration = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Whether the Reject Bin Scale has been deleted
|
|
110
110
|
*
|
|
111
111
|
* @type {boolean}
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.
|
|
114
|
+
this.deleted = undefined;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* When the Reject Bin Scale was last updated
|
|
118
118
|
*
|
|
119
119
|
* @type {Date}
|
|
120
|
-
* @
|
|
120
|
+
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.
|
|
122
|
+
this.updateTimestamp = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The Site ID associated with this Reject Bin Scale
|
|
126
126
|
*
|
|
127
127
|
* @type {number}
|
|
128
|
-
* @
|
|
128
|
+
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* The Reject Bin Scale ID
|
|
135
|
-
*
|
|
136
|
-
* @public
|
|
137
|
-
* @type {string}
|
|
138
|
-
*/
|
|
139
|
-
get id()
|
|
140
|
-
{
|
|
141
|
-
return this._id;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* The RTU this Reject Bin Scale belongs to
|
|
146
|
-
*
|
|
147
|
-
* @public
|
|
148
|
-
* @type {?number}
|
|
149
|
-
*/
|
|
150
|
-
get rtuId()
|
|
151
|
-
{
|
|
152
|
-
return this._rtuId;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* The Name of this Reject Bin Scale
|
|
157
|
-
*
|
|
158
|
-
* @public
|
|
159
|
-
* @type {string}
|
|
160
|
-
*/
|
|
161
|
-
get name()
|
|
162
|
-
{
|
|
163
|
-
return this._name;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The Points used by this Reject Bin Scale
|
|
168
|
-
*
|
|
169
|
-
* @public
|
|
170
|
-
* @type {Object}
|
|
171
|
-
*/
|
|
172
|
-
get points()
|
|
173
|
-
{
|
|
174
|
-
return this._points;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The Packing Line that owns this Reject Bin Scale
|
|
179
|
-
*
|
|
180
|
-
* @public
|
|
181
|
-
* @type {string}
|
|
182
|
-
*/
|
|
183
|
-
get packingLineId()
|
|
184
|
-
{
|
|
185
|
-
return this._packingLineId;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The Permanent Object that provides the Next Packrun for this Reject Bin Scale
|
|
190
|
-
*
|
|
191
|
-
* @public
|
|
192
|
-
* @type {?string}
|
|
193
|
-
*/
|
|
194
|
-
get packrunSourceId()
|
|
195
|
-
{
|
|
196
|
-
return this._packrunSourceId;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The Packrun Group this Reject Bin Scale is a part of
|
|
201
|
-
*
|
|
202
|
-
* @public
|
|
203
|
-
* @type {?number}
|
|
204
|
-
*/
|
|
205
|
-
get packrunGroup()
|
|
206
|
-
{
|
|
207
|
-
return this._packrunGroup;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
212
|
-
*
|
|
213
|
-
* @public
|
|
214
|
-
* @type {Object[]}
|
|
215
|
-
*/
|
|
216
|
-
get sources()
|
|
217
|
-
{
|
|
218
|
-
return this._sources;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
223
|
-
*
|
|
224
|
-
* @public
|
|
225
|
-
* @type {?number}
|
|
226
|
-
*/
|
|
227
|
-
get autoPackrunChange()
|
|
228
|
-
{
|
|
229
|
-
return this._autoPackrunChange;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
234
|
-
*
|
|
235
|
-
* @public
|
|
236
|
-
* @type {?Object}
|
|
237
|
-
*/
|
|
238
|
-
get freshPackIntegration()
|
|
239
|
-
{
|
|
240
|
-
return this._freshPackIntegration;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Whether the Reject Bin Scale has been deleted
|
|
245
|
-
*
|
|
246
|
-
* @public
|
|
247
|
-
* @type {boolean}
|
|
248
|
-
*/
|
|
249
|
-
get deleted()
|
|
250
|
-
{
|
|
251
|
-
return this._deleted;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* When the Reject Bin Scale was last updated
|
|
256
|
-
*
|
|
257
|
-
* @public
|
|
258
|
-
* @type {Date}
|
|
259
|
-
*/
|
|
260
|
-
get updateTimestamp()
|
|
261
|
-
{
|
|
262
|
-
return this._updateTimestamp;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* The Site ID associated with this Reject Bin Scale
|
|
267
|
-
*
|
|
268
|
-
* @public
|
|
269
|
-
* @type {number}
|
|
270
|
-
*/
|
|
271
|
-
get siteId()
|
|
272
|
-
{
|
|
273
|
-
return this._siteId;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Convert this **RejectBinScaleModel** to a JSON Object
|
|
278
|
-
*
|
|
279
|
-
* @public
|
|
280
|
-
* @return {Object<string, any>}
|
|
281
|
-
*/
|
|
282
|
-
toJSON()
|
|
283
|
-
{
|
|
284
|
-
return {
|
|
285
|
-
id: this._id,
|
|
286
|
-
rtuId: this._rtuId,
|
|
287
|
-
name: this._name,
|
|
288
|
-
points: this._points,
|
|
289
|
-
packingLineId: this._packingLineId,
|
|
290
|
-
packrunSourceId: this._packrunSourceId,
|
|
291
|
-
packrunGroup: this._packrunGroup,
|
|
292
|
-
sources: this._sources,
|
|
293
|
-
autoPackrunChange: this._autoPackrunChange,
|
|
294
|
-
freshPackIntegration: this._freshPackIntegration,
|
|
295
|
-
deleted: this._deleted,
|
|
296
|
-
updateTimestamp: this._updateTimestamp
|
|
297
|
-
};
|
|
130
|
+
this.siteId = siteId;
|
|
298
131
|
}
|
|
299
132
|
|
|
300
133
|
/**
|
|
@@ -328,7 +161,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
328
161
|
|
|
329
162
|
if('id' in jsonObject)
|
|
330
163
|
{
|
|
331
|
-
model.
|
|
164
|
+
model.id = (function(){
|
|
332
165
|
if(typeof jsonObject['id'] !== 'string')
|
|
333
166
|
{
|
|
334
167
|
return String(jsonObject['id']);
|
|
@@ -340,7 +173,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
340
173
|
|
|
341
174
|
if('rtuId' in jsonObject)
|
|
342
175
|
{
|
|
343
|
-
model.
|
|
176
|
+
model.rtuId = (function(){
|
|
344
177
|
if(jsonObject['rtuId'] === null)
|
|
345
178
|
{
|
|
346
179
|
return null;
|
|
@@ -357,7 +190,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
357
190
|
|
|
358
191
|
if('name' in jsonObject)
|
|
359
192
|
{
|
|
360
|
-
model.
|
|
193
|
+
model.name = (function(){
|
|
361
194
|
if(typeof jsonObject['name'] !== 'string')
|
|
362
195
|
{
|
|
363
196
|
return String(jsonObject['name']);
|
|
@@ -369,7 +202,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
369
202
|
|
|
370
203
|
if('points' in jsonObject)
|
|
371
204
|
{
|
|
372
|
-
model.
|
|
205
|
+
model.points = (function(){
|
|
373
206
|
if(typeof jsonObject['points'] !== 'object')
|
|
374
207
|
{
|
|
375
208
|
return Object(jsonObject['points']);
|
|
@@ -381,7 +214,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
381
214
|
|
|
382
215
|
if('packingLineId' in jsonObject)
|
|
383
216
|
{
|
|
384
|
-
model.
|
|
217
|
+
model.packingLineId = (function(){
|
|
385
218
|
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
386
219
|
{
|
|
387
220
|
return String(jsonObject['packingLineId']);
|
|
@@ -393,7 +226,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
393
226
|
|
|
394
227
|
if('packrunSourceId' in jsonObject)
|
|
395
228
|
{
|
|
396
|
-
model.
|
|
229
|
+
model.packrunSourceId = (function(){
|
|
397
230
|
if(jsonObject['packrunSourceId'] === null)
|
|
398
231
|
{
|
|
399
232
|
return null;
|
|
@@ -410,7 +243,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
410
243
|
|
|
411
244
|
if('packrunGroup' in jsonObject)
|
|
412
245
|
{
|
|
413
|
-
model.
|
|
246
|
+
model.packrunGroup = (function(){
|
|
414
247
|
if(jsonObject['packrunGroup'] === null)
|
|
415
248
|
{
|
|
416
249
|
return null;
|
|
@@ -427,7 +260,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
427
260
|
|
|
428
261
|
if('sources' in jsonObject)
|
|
429
262
|
{
|
|
430
|
-
model.
|
|
263
|
+
model.sources = (function(){
|
|
431
264
|
if(Array.isArray(jsonObject['sources']) !== true)
|
|
432
265
|
{
|
|
433
266
|
return [];
|
|
@@ -448,7 +281,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
448
281
|
|
|
449
282
|
if('autoPackrunChange' in jsonObject)
|
|
450
283
|
{
|
|
451
|
-
model.
|
|
284
|
+
model.autoPackrunChange = (function(){
|
|
452
285
|
if(jsonObject['autoPackrunChange'] === null)
|
|
453
286
|
{
|
|
454
287
|
return null;
|
|
@@ -465,7 +298,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
465
298
|
|
|
466
299
|
if('freshPackIntegration' in jsonObject)
|
|
467
300
|
{
|
|
468
|
-
model.
|
|
301
|
+
model.freshPackIntegration = (function(){
|
|
469
302
|
if(jsonObject['freshPackIntegration'] === null)
|
|
470
303
|
{
|
|
471
304
|
return null;
|
|
@@ -482,7 +315,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
482
315
|
|
|
483
316
|
if('deleted' in jsonObject)
|
|
484
317
|
{
|
|
485
|
-
model.
|
|
318
|
+
model.deleted = (function(){
|
|
486
319
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
487
320
|
{
|
|
488
321
|
return Boolean(jsonObject['deleted']);
|
|
@@ -494,7 +327,7 @@ class RejectBinScaleModel extends BaseSiteModel
|
|
|
494
327
|
|
|
495
328
|
if('updateTimestamp' in jsonObject)
|
|
496
329
|
{
|
|
497
|
-
model.
|
|
330
|
+
model.updateTimestamp = (function(){
|
|
498
331
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
499
332
|
{
|
|
500
333
|
return new Date(String(jsonObject['updateTimestamp']));
|