@ricado/api-client 1.3.0 → 2.0.1
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/Packhouse/Site/BinTipWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackrunController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/lib/Controllers/Site/AlarmController.js +4 -4
- package/lib/Controllers/Site/AlarmGroupController.js +4 -4
- package/lib/Controllers/Site/DefinitionController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/lib/Controllers/Site/PointController.js +6 -4
- package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
- package/lib/Models/AccountPolicyModel.js +26 -130
- package/lib/Models/ApiAccountModel.js +26 -130
- package/lib/Models/CompanyModel.js +20 -98
- package/lib/Models/FirebaseTokenModel.js +29 -146
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +40 -192
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +55 -272
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +43 -208
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +31 -144
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +49 -240
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +55 -272
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +37 -176
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +31 -144
- package/lib/Models/Packhouse/Site/PackTypeModel.js +37 -176
- package/lib/Models/Packhouse/Site/PackingLineModel.js +58 -288
- package/lib/Models/Packhouse/Site/PackrunModel.js +58 -288
- package/lib/Models/Packhouse/Site/RejectBinModel.js +40 -192
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +49 -240
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +43 -208
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +49 -240
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +124 -640
- package/lib/Models/Packhouse/Site/ShiftModel.js +70 -352
- package/lib/Models/Packhouse/Site/VarietyModel.js +37 -176
- package/lib/Models/RTUModel.js +23 -114
- package/lib/Models/RTUPluginModel.js +20 -98
- package/lib/Models/Site/AlarmGroupModel.js +34 -160
- package/lib/Models/Site/AlarmModel.js +64 -320
- package/lib/Models/Site/DefinitionModel.js +31 -144
- package/lib/Models/Site/PermanentObjectDataModel.js +37 -176
- package/lib/Models/Site/PermanentObjectModel.js +34 -160
- package/lib/Models/Site/PointModel.js +46 -224
- package/lib/Models/Site/TemporaryObjectModel.js +31 -144
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +23 -114
- package/lib/Models/TokenModel.js +35 -178
- package/lib/Models/UserAccountActionTokenModel.js +38 -194
- package/lib/Models/UserAccountModel.js +35 -178
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +841 -1588
- package/lib/index.js +67 -38
- 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 +4 -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/src/index.js +35 -3
- 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 Reject Bin Weight
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class RejectBinWeightModel extends
|
|
16
|
+
class RejectBinWeightModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* RejectBinWeightModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
-
* @param {number} siteId The Site ID associated with this Reject Bin Weight
|
|
23
22
|
*/
|
|
24
|
-
constructor(
|
|
23
|
+
constructor()
|
|
25
24
|
{
|
|
26
25
|
super();
|
|
27
26
|
|
|
@@ -29,232 +28,81 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
29
28
|
* The Reject Bin Weight 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 Reject Bin Scale ID this Reject Weight is associated with
|
|
38
37
|
*
|
|
39
38
|
* @type {string}
|
|
40
|
-
* @
|
|
39
|
+
* @public
|
|
41
40
|
*/
|
|
42
|
-
this.
|
|
41
|
+
this.rejectBinScaleId = undefined;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* The Reject Bin ID this Reject Weight is associated with
|
|
46
45
|
*
|
|
47
46
|
* @type {string}
|
|
48
|
-
* @
|
|
47
|
+
* @public
|
|
49
48
|
*/
|
|
50
|
-
this.
|
|
49
|
+
this.rejectBinId = undefined;
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
52
|
* When this Reject Bin Weight was Created
|
|
54
53
|
*
|
|
55
54
|
* @type {Date}
|
|
56
|
-
* @
|
|
55
|
+
* @public
|
|
57
56
|
*/
|
|
58
|
-
this.
|
|
57
|
+
this.createdTimestamp = undefined;
|
|
59
58
|
|
|
60
59
|
/**
|
|
61
60
|
* The Packrun this Reject Weight is associated with
|
|
62
61
|
*
|
|
63
62
|
* @type {?string}
|
|
64
|
-
* @
|
|
63
|
+
* @public
|
|
65
64
|
*/
|
|
66
|
-
this.
|
|
65
|
+
this.packrunId = undefined;
|
|
67
66
|
|
|
68
67
|
/**
|
|
69
68
|
* The Net Weight Captured by the Reject Bin Scale
|
|
70
69
|
*
|
|
71
70
|
* @type {number}
|
|
72
|
-
* @
|
|
71
|
+
* @public
|
|
73
72
|
*/
|
|
74
|
-
this.
|
|
73
|
+
this.netWeight = undefined;
|
|
75
74
|
|
|
76
75
|
/**
|
|
77
76
|
* The Source Weights that make up the Net Weight
|
|
78
77
|
*
|
|
79
78
|
* @type {Object[]}
|
|
80
|
-
* @
|
|
79
|
+
* @public
|
|
81
80
|
*/
|
|
82
|
-
this.
|
|
81
|
+
this.sources = undefined;
|
|
83
82
|
|
|
84
83
|
/**
|
|
85
84
|
* The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
86
85
|
*
|
|
87
86
|
* @type {Object[]}
|
|
88
|
-
* @
|
|
87
|
+
* @public
|
|
89
88
|
*/
|
|
90
|
-
this.
|
|
89
|
+
this.freshPackMultiGrowerBinWeights = undefined;
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
92
|
* Whether the Reject Bin Weight has been deleted
|
|
94
93
|
*
|
|
95
94
|
* @type {boolean}
|
|
96
|
-
* @
|
|
95
|
+
* @public
|
|
97
96
|
*/
|
|
98
|
-
this.
|
|
97
|
+
this.deleted = undefined;
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* When the Reject Bin Weight was last updated
|
|
102
101
|
*
|
|
103
102
|
* @type {Date}
|
|
104
|
-
* @
|
|
103
|
+
* @public
|
|
105
104
|
*/
|
|
106
|
-
this.
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The Site ID associated with this Reject Bin Weight
|
|
110
|
-
*
|
|
111
|
-
* @type {number}
|
|
112
|
-
* @private
|
|
113
|
-
*/
|
|
114
|
-
this._siteId = siteId;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The Reject Bin Weight ID
|
|
119
|
-
*
|
|
120
|
-
* @public
|
|
121
|
-
* @type {string}
|
|
122
|
-
*/
|
|
123
|
-
get id()
|
|
124
|
-
{
|
|
125
|
-
return this._id;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* The Reject Bin Scale ID this Reject Weight is associated with
|
|
130
|
-
*
|
|
131
|
-
* @public
|
|
132
|
-
* @type {string}
|
|
133
|
-
*/
|
|
134
|
-
get rejectBinScaleId()
|
|
135
|
-
{
|
|
136
|
-
return this._rejectBinScaleId;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The Reject Bin ID this Reject Weight is associated with
|
|
141
|
-
*
|
|
142
|
-
* @public
|
|
143
|
-
* @type {string}
|
|
144
|
-
*/
|
|
145
|
-
get rejectBinId()
|
|
146
|
-
{
|
|
147
|
-
return this._rejectBinId;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* When this Reject Bin Weight was Created
|
|
152
|
-
*
|
|
153
|
-
* @public
|
|
154
|
-
* @type {Date}
|
|
155
|
-
*/
|
|
156
|
-
get createdTimestamp()
|
|
157
|
-
{
|
|
158
|
-
return this._createdTimestamp;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The Packrun this Reject Weight is associated with
|
|
163
|
-
*
|
|
164
|
-
* @public
|
|
165
|
-
* @type {?string}
|
|
166
|
-
*/
|
|
167
|
-
get packrunId()
|
|
168
|
-
{
|
|
169
|
-
return this._packrunId;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The Net Weight Captured by the Reject Bin Scale
|
|
174
|
-
*
|
|
175
|
-
* @public
|
|
176
|
-
* @type {number}
|
|
177
|
-
*/
|
|
178
|
-
get netWeight()
|
|
179
|
-
{
|
|
180
|
-
return this._netWeight;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The Source Weights that make up the Net Weight
|
|
185
|
-
*
|
|
186
|
-
* @public
|
|
187
|
-
* @type {Object[]}
|
|
188
|
-
*/
|
|
189
|
-
get sources()
|
|
190
|
-
{
|
|
191
|
-
return this._sources;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
196
|
-
*
|
|
197
|
-
* @public
|
|
198
|
-
* @type {Object[]}
|
|
199
|
-
*/
|
|
200
|
-
get freshPackMultiGrowerBinWeights()
|
|
201
|
-
{
|
|
202
|
-
return this._freshPackMultiGrowerBinWeights;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Whether the Reject Bin Weight has been deleted
|
|
207
|
-
*
|
|
208
|
-
* @public
|
|
209
|
-
* @type {boolean}
|
|
210
|
-
*/
|
|
211
|
-
get deleted()
|
|
212
|
-
{
|
|
213
|
-
return this._deleted;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* When the Reject Bin Weight was last updated
|
|
218
|
-
*
|
|
219
|
-
* @public
|
|
220
|
-
* @type {Date}
|
|
221
|
-
*/
|
|
222
|
-
get updateTimestamp()
|
|
223
|
-
{
|
|
224
|
-
return this._updateTimestamp;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* The Site ID associated with this Reject Bin Weight
|
|
229
|
-
*
|
|
230
|
-
* @public
|
|
231
|
-
* @type {number}
|
|
232
|
-
*/
|
|
233
|
-
get siteId()
|
|
234
|
-
{
|
|
235
|
-
return this._siteId;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Convert this **RejectBinWeightModel** to a JSON Object
|
|
240
|
-
*
|
|
241
|
-
* @public
|
|
242
|
-
* @return {Object<string, any>}
|
|
243
|
-
*/
|
|
244
|
-
toJSON()
|
|
245
|
-
{
|
|
246
|
-
return {
|
|
247
|
-
id: this._id,
|
|
248
|
-
rejectBinScaleId: this._rejectBinScaleId,
|
|
249
|
-
rejectBinId: this._rejectBinId,
|
|
250
|
-
createdTimestamp: this._createdTimestamp,
|
|
251
|
-
packrunId: this._packrunId,
|
|
252
|
-
netWeight: this._netWeight,
|
|
253
|
-
sources: this._sources,
|
|
254
|
-
freshPackMultiGrowerBinWeights: this._freshPackMultiGrowerBinWeights,
|
|
255
|
-
deleted: this._deleted,
|
|
256
|
-
updateTimestamp: this._updateTimestamp
|
|
257
|
-
};
|
|
105
|
+
this.updateTimestamp = undefined;
|
|
258
106
|
}
|
|
259
107
|
|
|
260
108
|
/**
|
|
@@ -263,12 +111,11 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
263
111
|
* @static
|
|
264
112
|
* @public
|
|
265
113
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
266
|
-
* @param {number} siteId The Site ID associated with this Reject Bin Weight
|
|
267
114
|
* @return {RejectBinWeightModel}
|
|
268
115
|
*/
|
|
269
|
-
static fromJSON(json
|
|
116
|
+
static fromJSON(json)
|
|
270
117
|
{
|
|
271
|
-
let model = new RejectBinWeightModel(
|
|
118
|
+
let model = new RejectBinWeightModel();
|
|
272
119
|
|
|
273
120
|
/**
|
|
274
121
|
* The JSON Object
|
|
@@ -288,7 +135,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
288
135
|
|
|
289
136
|
if('id' in jsonObject)
|
|
290
137
|
{
|
|
291
|
-
model.
|
|
138
|
+
model.id = (function(){
|
|
292
139
|
if(typeof jsonObject['id'] !== 'string')
|
|
293
140
|
{
|
|
294
141
|
return String(jsonObject['id']);
|
|
@@ -300,7 +147,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
300
147
|
|
|
301
148
|
if('rejectBinScaleId' in jsonObject)
|
|
302
149
|
{
|
|
303
|
-
model.
|
|
150
|
+
model.rejectBinScaleId = (function(){
|
|
304
151
|
if(typeof jsonObject['rejectBinScaleId'] !== 'string')
|
|
305
152
|
{
|
|
306
153
|
return String(jsonObject['rejectBinScaleId']);
|
|
@@ -312,7 +159,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
312
159
|
|
|
313
160
|
if('rejectBinId' in jsonObject)
|
|
314
161
|
{
|
|
315
|
-
model.
|
|
162
|
+
model.rejectBinId = (function(){
|
|
316
163
|
if(typeof jsonObject['rejectBinId'] !== 'string')
|
|
317
164
|
{
|
|
318
165
|
return String(jsonObject['rejectBinId']);
|
|
@@ -324,7 +171,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
324
171
|
|
|
325
172
|
if('createdTimestamp' in jsonObject)
|
|
326
173
|
{
|
|
327
|
-
model.
|
|
174
|
+
model.createdTimestamp = (function(){
|
|
328
175
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
329
176
|
{
|
|
330
177
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -336,7 +183,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
336
183
|
|
|
337
184
|
if('packrunId' in jsonObject)
|
|
338
185
|
{
|
|
339
|
-
model.
|
|
186
|
+
model.packrunId = (function(){
|
|
340
187
|
if(jsonObject['packrunId'] === null)
|
|
341
188
|
{
|
|
342
189
|
return null;
|
|
@@ -353,7 +200,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
353
200
|
|
|
354
201
|
if('netWeight' in jsonObject)
|
|
355
202
|
{
|
|
356
|
-
model.
|
|
203
|
+
model.netWeight = (function(){
|
|
357
204
|
if(typeof jsonObject['netWeight'] !== 'number')
|
|
358
205
|
{
|
|
359
206
|
return Number(jsonObject['netWeight']);
|
|
@@ -365,7 +212,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
365
212
|
|
|
366
213
|
if('sources' in jsonObject)
|
|
367
214
|
{
|
|
368
|
-
model.
|
|
215
|
+
model.sources = (function(){
|
|
369
216
|
if(Array.isArray(jsonObject['sources']) !== true)
|
|
370
217
|
{
|
|
371
218
|
return [];
|
|
@@ -386,7 +233,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
386
233
|
|
|
387
234
|
if('freshPackMultiGrowerBinWeights' in jsonObject)
|
|
388
235
|
{
|
|
389
|
-
model.
|
|
236
|
+
model.freshPackMultiGrowerBinWeights = (function(){
|
|
390
237
|
if(Array.isArray(jsonObject['freshPackMultiGrowerBinWeights']) !== true)
|
|
391
238
|
{
|
|
392
239
|
return [];
|
|
@@ -407,7 +254,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
407
254
|
|
|
408
255
|
if('deleted' in jsonObject)
|
|
409
256
|
{
|
|
410
|
-
model.
|
|
257
|
+
model.deleted = (function(){
|
|
411
258
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
412
259
|
{
|
|
413
260
|
return Boolean(jsonObject['deleted']);
|
|
@@ -419,7 +266,7 @@ class RejectBinWeightModel extends BaseSiteModel
|
|
|
419
266
|
|
|
420
267
|
if('updateTimestamp' in jsonObject)
|
|
421
268
|
{
|
|
422
|
-
model.
|
|
269
|
+
model.updateTimestamp = (function(){
|
|
423
270
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
424
271
|
{
|
|
425
272
|
return new Date(String(jsonObject['updateTimestamp']));
|