@ricado/api-client 1.2.6 → 2.0.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.
Files changed (141) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  3. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  5. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  6. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  7. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  8. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  9. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  10. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  11. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  12. package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  13. package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  14. package/lib/Controllers/Packhouse/Site/PackrunController.js +4 -4
  15. package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  16. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  17. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  18. package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
  19. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  20. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  21. package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
  22. package/lib/Controllers/Site/AlarmController.js +4 -4
  23. package/lib/Controllers/Site/AlarmGroupController.js +4 -4
  24. package/lib/Controllers/Site/DefinitionController.js +4 -4
  25. package/lib/Controllers/Site/PermanentObjectController.js +4 -4
  26. package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
  27. package/lib/Controllers/Site/PointController.js +6 -4
  28. package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
  29. package/lib/Models/AccountPolicyModel.js +26 -130
  30. package/lib/Models/ApiAccountModel.js +26 -130
  31. package/lib/Models/CompanyModel.js +20 -98
  32. package/lib/Models/FirebaseTokenModel.js +29 -146
  33. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +40 -192
  34. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +37 -176
  35. package/lib/Models/Packhouse/Site/CompacSizerModel.js +55 -272
  36. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +43 -208
  37. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +37 -176
  38. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +31 -144
  39. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +49 -240
  40. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +55 -272
  41. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +37 -176
  42. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +31 -144
  43. package/lib/Models/Packhouse/Site/PackTypeModel.js +37 -176
  44. package/lib/Models/Packhouse/Site/PackingLineModel.js +58 -288
  45. package/lib/Models/Packhouse/Site/PackrunModel.js +58 -288
  46. package/lib/Models/Packhouse/Site/RejectBinModel.js +40 -192
  47. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +49 -240
  48. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +43 -208
  49. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +49 -240
  50. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +124 -640
  51. package/lib/Models/Packhouse/Site/ShiftModel.js +70 -352
  52. package/lib/Models/Packhouse/Site/VarietyModel.js +37 -176
  53. package/lib/Models/RTUModel.js +23 -114
  54. package/lib/Models/RTUPluginModel.js +20 -98
  55. package/lib/Models/Site/AlarmGroupModel.js +34 -160
  56. package/lib/Models/Site/AlarmModel.js +64 -320
  57. package/lib/Models/Site/DefinitionModel.js +31 -144
  58. package/lib/Models/Site/PermanentObjectDataModel.js +37 -176
  59. package/lib/Models/Site/PermanentObjectModel.js +34 -160
  60. package/lib/Models/Site/PointModel.js +46 -224
  61. package/lib/Models/Site/TemporaryObjectModel.js +31 -144
  62. package/lib/Models/Site/index.js +0 -3
  63. package/lib/Models/SiteModel.js +23 -114
  64. package/lib/Models/TokenModel.js +35 -178
  65. package/lib/Models/UserAccountActionTokenModel.js +38 -194
  66. package/lib/Models/UserAccountModel.js +35 -178
  67. package/lib/PackageVersion.js +1 -1
  68. package/lib/Points.js +9 -1
  69. package/lib/index.d.ts +842 -1591
  70. package/lib/index.js +67 -38
  71. package/package.json +2 -2
  72. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  73. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  74. package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  75. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  76. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  77. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  78. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  79. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  80. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  81. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  82. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  83. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  84. package/src/Controllers/Packhouse/Site/PackrunController.js +4 -4
  85. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  86. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  87. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  88. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  89. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  90. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  91. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  92. package/src/Controllers/Site/AlarmController.js +4 -4
  93. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  94. package/src/Controllers/Site/DefinitionController.js +4 -4
  95. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  96. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  97. package/src/Controllers/Site/PointController.js +6 -4
  98. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  99. package/src/Models/AccountPolicyModel.js +21 -117
  100. package/src/Models/ApiAccountModel.js +21 -117
  101. package/src/Models/CompanyModel.js +15 -87
  102. package/src/Models/FirebaseTokenModel.js +24 -132
  103. package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
  104. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
  105. package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
  106. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
  107. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
  108. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
  109. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
  110. package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
  111. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
  112. package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
  113. package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
  114. package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
  115. package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
  116. package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
  117. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
  118. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
  119. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
  120. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
  121. package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
  122. package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
  123. package/src/Models/RTUModel.js +18 -102
  124. package/src/Models/RTUPluginModel.js +15 -87
  125. package/src/Models/Site/AlarmGroupModel.js +27 -144
  126. package/src/Models/Site/AlarmModel.js +57 -294
  127. package/src/Models/Site/DefinitionModel.js +24 -129
  128. package/src/Models/Site/PermanentObjectDataModel.js +30 -159
  129. package/src/Models/Site/PermanentObjectModel.js +27 -144
  130. package/src/Models/Site/PointModel.js +39 -204
  131. package/src/Models/Site/TemporaryObjectModel.js +24 -129
  132. package/src/Models/Site/index.js +0 -2
  133. package/src/Models/SiteModel.js +18 -102
  134. package/src/Models/TokenModel.js +30 -162
  135. package/src/Models/UserAccountActionTokenModel.js +33 -177
  136. package/src/Models/UserAccountModel.js +30 -162
  137. package/src/PackageVersion.js +1 -1
  138. package/src/Points.js +11 -1
  139. package/src/index.js +35 -3
  140. package/lib/Models/Site/BaseSiteModel.js +0 -58
  141. 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 BaseSiteModel from '../../../Models/Site/BaseSiteModel';
7
+ import BaseModel from '../../../Models/BaseModel';
8
8
 
9
9
  /**
10
10
  * Model Class for a Packrun
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
14
- * @extends BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class PackrunModel extends BaseSiteModel
16
+ class PackrunModel extends BaseModel
17
17
  {
18
18
  /**
19
19
  * PackrunModel Constructor
20
20
  *
21
21
  * @protected
22
- * @param {number} siteId The Site ID associated with this Packrun
23
22
  */
24
- constructor(siteId)
23
+ constructor()
25
24
  {
26
25
  super();
27
26
 
@@ -29,332 +28,121 @@ class PackrunModel extends BaseSiteModel
29
28
  * The Packrun ID
30
29
  *
31
30
  * @type {string}
32
- * @private
31
+ * @public
33
32
  */
34
- this._id = undefined;
33
+ this.id = undefined;
35
34
 
36
35
  /**
37
36
  * The Packing Line ID this Packrun is associated with
38
37
  *
39
38
  * @type {string}
40
- * @private
39
+ * @public
41
40
  */
42
- this._packingLineId = undefined;
41
+ this.packingLineId = undefined;
43
42
 
44
43
  /**
45
44
  * The Packrun Name
46
45
  *
47
46
  * @type {string}
48
- * @private
47
+ * @public
49
48
  */
50
- this._name = undefined;
49
+ this.name = undefined;
51
50
 
52
51
  /**
53
52
  * When this Packrun was Created
54
53
  *
55
54
  * @type {Date}
56
- * @private
55
+ * @public
57
56
  */
58
- this._createdTimestamp = undefined;
57
+ this.createdTimestamp = undefined;
59
58
 
60
59
  /**
61
60
  * The Grower Name for this Packrun
62
61
  *
63
62
  * @type {string}
64
- * @private
63
+ * @public
65
64
  */
66
- this._growerName = undefined;
65
+ this.growerName = undefined;
67
66
 
68
67
  /**
69
68
  * The Grower Code for this Packrun
70
69
  *
71
70
  * @type {string}
72
- * @private
71
+ * @public
73
72
  */
74
- this._growerCode = undefined;
73
+ this.growerCode = undefined;
75
74
 
76
75
  /**
77
76
  * The Maturity Area for this Packrun
78
77
  *
79
78
  * @type {string}
80
- * @private
79
+ * @public
81
80
  */
82
- this._maturityArea = undefined;
81
+ this.maturityArea = undefined;
83
82
 
84
83
  /**
85
84
  * When this Packrun was Started
86
85
  *
87
86
  * @type {?Date}
88
- * @private
87
+ * @public
89
88
  */
90
- this._startTimestamp = undefined;
89
+ this.startTimestamp = undefined;
91
90
 
92
91
  /**
93
92
  * When this Packrun was Finished
94
93
  *
95
94
  * @type {?Date}
96
- * @private
95
+ * @public
97
96
  */
98
- this._finishTimestamp = undefined;
97
+ this.finishTimestamp = undefined;
99
98
 
100
99
  /**
101
100
  * The Variety for this Packrun
102
101
  *
103
102
  * @type {string}
104
- * @private
103
+ * @public
105
104
  */
106
- this._varietyId = undefined;
105
+ this.varietyId = undefined;
107
106
 
108
107
  /**
109
108
  * The Growing Method for this Packrun
110
109
  *
111
110
  * @type {?string}
112
- * @private
111
+ * @public
113
112
  */
114
- this._growingMethodId = undefined;
113
+ this.growingMethodId = undefined;
115
114
 
116
115
  /**
117
116
  * The Number of Allocated Bins for this Packrun
118
117
  *
119
118
  * @type {number}
120
- * @private
119
+ * @public
121
120
  */
122
- this._allocatedBins = undefined;
121
+ this.allocatedBins = undefined;
123
122
 
124
123
  /**
125
124
  * The Time Batches for this Packrun
126
125
  *
127
126
  * @type {Object[]}
128
- * @private
127
+ * @public
129
128
  */
130
- this._timeBatches = undefined;
129
+ this.timeBatches = undefined;
131
130
 
132
131
  /**
133
132
  * Whether the Packrun has been deleted
134
133
  *
135
134
  * @type {boolean}
136
- * @private
135
+ * @public
137
136
  */
138
- this._deleted = undefined;
137
+ this.deleted = undefined;
139
138
 
140
139
  /**
141
140
  * When the Packrun was last updated
142
141
  *
143
142
  * @type {Date}
144
- * @private
143
+ * @public
145
144
  */
146
- this._updateTimestamp = undefined;
147
-
148
- /**
149
- * The Site ID associated with this Packrun
150
- *
151
- * @type {number}
152
- * @private
153
- */
154
- this._siteId = siteId;
155
- }
156
-
157
- /**
158
- * The Packrun ID
159
- *
160
- * @public
161
- * @type {string}
162
- */
163
- get id()
164
- {
165
- return this._id;
166
- }
167
-
168
- /**
169
- * The Packing Line ID this Packrun is associated with
170
- *
171
- * @public
172
- * @type {string}
173
- */
174
- get packingLineId()
175
- {
176
- return this._packingLineId;
177
- }
178
-
179
- /**
180
- * The Packrun Name
181
- *
182
- * @public
183
- * @type {string}
184
- */
185
- get name()
186
- {
187
- return this._name;
188
- }
189
-
190
- /**
191
- * When this Packrun was Created
192
- *
193
- * @public
194
- * @type {Date}
195
- */
196
- get createdTimestamp()
197
- {
198
- return this._createdTimestamp;
199
- }
200
-
201
- /**
202
- * The Grower Name for this Packrun
203
- *
204
- * @public
205
- * @type {string}
206
- */
207
- get growerName()
208
- {
209
- return this._growerName;
210
- }
211
-
212
- /**
213
- * The Grower Code for this Packrun
214
- *
215
- * @public
216
- * @type {string}
217
- */
218
- get growerCode()
219
- {
220
- return this._growerCode;
221
- }
222
-
223
- /**
224
- * The Maturity Area for this Packrun
225
- *
226
- * @public
227
- * @type {string}
228
- */
229
- get maturityArea()
230
- {
231
- return this._maturityArea;
232
- }
233
-
234
- /**
235
- * When this Packrun was Started
236
- *
237
- * @public
238
- * @type {?Date}
239
- */
240
- get startTimestamp()
241
- {
242
- return this._startTimestamp;
243
- }
244
-
245
- /**
246
- * When this Packrun was Finished
247
- *
248
- * @public
249
- * @type {?Date}
250
- */
251
- get finishTimestamp()
252
- {
253
- return this._finishTimestamp;
254
- }
255
-
256
- /**
257
- * The Variety for this Packrun
258
- *
259
- * @public
260
- * @type {string}
261
- */
262
- get varietyId()
263
- {
264
- return this._varietyId;
265
- }
266
-
267
- /**
268
- * The Growing Method for this Packrun
269
- *
270
- * @public
271
- * @type {?string}
272
- */
273
- get growingMethodId()
274
- {
275
- return this._growingMethodId;
276
- }
277
-
278
- /**
279
- * The Number of Allocated Bins for this Packrun
280
- *
281
- * @public
282
- * @type {number}
283
- */
284
- get allocatedBins()
285
- {
286
- return this._allocatedBins;
287
- }
288
-
289
- /**
290
- * The Time Batches for this Packrun
291
- *
292
- * @public
293
- * @type {Object[]}
294
- */
295
- get timeBatches()
296
- {
297
- return this._timeBatches;
298
- }
299
-
300
- /**
301
- * Whether the Packrun has been deleted
302
- *
303
- * @public
304
- * @type {boolean}
305
- */
306
- get deleted()
307
- {
308
- return this._deleted;
309
- }
310
-
311
- /**
312
- * When the Packrun 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 Packrun
324
- *
325
- * @public
326
- * @type {number}
327
- */
328
- get siteId()
329
- {
330
- return this._siteId;
331
- }
332
-
333
- /**
334
- * Convert this **PackrunModel** to a JSON Object
335
- *
336
- * @public
337
- * @return {Object<string, any>}
338
- */
339
- toJSON()
340
- {
341
- return {
342
- id: this._id,
343
- packingLineId: this._packingLineId,
344
- name: this._name,
345
- createdTimestamp: this._createdTimestamp,
346
- growerName: this._growerName,
347
- growerCode: this._growerCode,
348
- maturityArea: this._maturityArea,
349
- startTimestamp: this._startTimestamp,
350
- finishTimestamp: this._finishTimestamp,
351
- varietyId: this._varietyId,
352
- growingMethodId: this._growingMethodId,
353
- allocatedBins: this._allocatedBins,
354
- timeBatches: this._timeBatches,
355
- deleted: this._deleted,
356
- updateTimestamp: this._updateTimestamp
357
- };
145
+ this.updateTimestamp = undefined;
358
146
  }
359
147
 
360
148
  /**
@@ -363,12 +151,11 @@ class PackrunModel 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 Packrun
367
154
  * @return {PackrunModel}
368
155
  */
369
- static fromJSON(json, siteId)
156
+ static fromJSON(json)
370
157
  {
371
- let model = new PackrunModel(siteId);
158
+ let model = new PackrunModel();
372
159
 
373
160
  /**
374
161
  * The JSON Object
@@ -388,7 +175,7 @@ class PackrunModel extends BaseSiteModel
388
175
 
389
176
  if('id' in jsonObject)
390
177
  {
391
- model._id = (function(){
178
+ model.id = (function(){
392
179
  if(typeof jsonObject['id'] !== 'string')
393
180
  {
394
181
  return String(jsonObject['id']);
@@ -400,7 +187,7 @@ class PackrunModel extends BaseSiteModel
400
187
 
401
188
  if('packingLineId' in jsonObject)
402
189
  {
403
- model._packingLineId = (function(){
190
+ model.packingLineId = (function(){
404
191
  if(typeof jsonObject['packingLineId'] !== 'string')
405
192
  {
406
193
  return String(jsonObject['packingLineId']);
@@ -412,7 +199,7 @@ class PackrunModel extends BaseSiteModel
412
199
 
413
200
  if('name' in jsonObject)
414
201
  {
415
- model._name = (function(){
202
+ model.name = (function(){
416
203
  if(typeof jsonObject['name'] !== 'string')
417
204
  {
418
205
  return String(jsonObject['name']);
@@ -424,7 +211,7 @@ class PackrunModel extends BaseSiteModel
424
211
 
425
212
  if('createdTimestamp' in jsonObject)
426
213
  {
427
- model._createdTimestamp = (function(){
214
+ model.createdTimestamp = (function(){
428
215
  if(typeof jsonObject['createdTimestamp'] !== 'string')
429
216
  {
430
217
  return new Date(String(jsonObject['createdTimestamp']));
@@ -436,7 +223,7 @@ class PackrunModel extends BaseSiteModel
436
223
 
437
224
  if('growerName' in jsonObject)
438
225
  {
439
- model._growerName = (function(){
226
+ model.growerName = (function(){
440
227
  if(typeof jsonObject['growerName'] !== 'string')
441
228
  {
442
229
  return String(jsonObject['growerName']);
@@ -448,7 +235,7 @@ class PackrunModel extends BaseSiteModel
448
235
 
449
236
  if('growerCode' in jsonObject)
450
237
  {
451
- model._growerCode = (function(){
238
+ model.growerCode = (function(){
452
239
  if(typeof jsonObject['growerCode'] !== 'string')
453
240
  {
454
241
  return String(jsonObject['growerCode']);
@@ -460,7 +247,7 @@ class PackrunModel extends BaseSiteModel
460
247
 
461
248
  if('maturityArea' in jsonObject)
462
249
  {
463
- model._maturityArea = (function(){
250
+ model.maturityArea = (function(){
464
251
  if(typeof jsonObject['maturityArea'] !== 'string')
465
252
  {
466
253
  return String(jsonObject['maturityArea']);
@@ -472,7 +259,7 @@ class PackrunModel extends BaseSiteModel
472
259
 
473
260
  if('startTimestamp' in jsonObject)
474
261
  {
475
- model._startTimestamp = (function(){
262
+ model.startTimestamp = (function(){
476
263
  if(jsonObject['startTimestamp'] === null)
477
264
  {
478
265
  return null;
@@ -489,7 +276,7 @@ class PackrunModel extends BaseSiteModel
489
276
 
490
277
  if('finishTimestamp' in jsonObject)
491
278
  {
492
- model._finishTimestamp = (function(){
279
+ model.finishTimestamp = (function(){
493
280
  if(jsonObject['finishTimestamp'] === null)
494
281
  {
495
282
  return null;
@@ -506,7 +293,7 @@ class PackrunModel extends BaseSiteModel
506
293
 
507
294
  if('varietyId' in jsonObject)
508
295
  {
509
- model._varietyId = (function(){
296
+ model.varietyId = (function(){
510
297
  if(typeof jsonObject['varietyId'] !== 'string')
511
298
  {
512
299
  return String(jsonObject['varietyId']);
@@ -518,7 +305,7 @@ class PackrunModel extends BaseSiteModel
518
305
 
519
306
  if('growingMethodId' in jsonObject)
520
307
  {
521
- model._growingMethodId = (function(){
308
+ model.growingMethodId = (function(){
522
309
  if(jsonObject['growingMethodId'] === null)
523
310
  {
524
311
  return null;
@@ -535,7 +322,7 @@ class PackrunModel extends BaseSiteModel
535
322
 
536
323
  if('allocatedBins' in jsonObject)
537
324
  {
538
- model._allocatedBins = (function(){
325
+ model.allocatedBins = (function(){
539
326
  if(typeof jsonObject['allocatedBins'] !== 'number')
540
327
  {
541
328
  return Number.isInteger(Number(jsonObject['allocatedBins'])) ? Number(jsonObject['allocatedBins']) : Math.floor(Number(jsonObject['allocatedBins']));
@@ -547,7 +334,7 @@ class PackrunModel extends BaseSiteModel
547
334
 
548
335
  if('timeBatches' in jsonObject)
549
336
  {
550
- model._timeBatches = (function(){
337
+ model.timeBatches = (function(){
551
338
  if(Array.isArray(jsonObject['timeBatches']) !== true)
552
339
  {
553
340
  return [];
@@ -568,7 +355,7 @@ class PackrunModel extends BaseSiteModel
568
355
 
569
356
  if('deleted' in jsonObject)
570
357
  {
571
- model._deleted = (function(){
358
+ model.deleted = (function(){
572
359
  if(typeof jsonObject['deleted'] !== 'boolean')
573
360
  {
574
361
  return Boolean(jsonObject['deleted']);
@@ -580,7 +367,7 @@ class PackrunModel extends BaseSiteModel
580
367
 
581
368
  if('updateTimestamp' in jsonObject)
582
369
  {
583
- model._updateTimestamp = (function(){
370
+ model.updateTimestamp = (function(){
584
371
  if(typeof jsonObject['updateTimestamp'] !== 'string')
585
372
  {
586
373
  return new Date(String(jsonObject['updateTimestamp']));