@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.
Files changed (136) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/AccountPolicyController.js +1 -1
  3. package/lib/Controllers/ApiAccountController.js +2 -2
  4. package/lib/Controllers/CompanyController.js +1 -1
  5. package/lib/Controllers/FirebaseTokenController.js +1 -1
  6. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +2 -2
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
  10. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
  11. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
  12. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
  13. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
  14. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
  15. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
  16. package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
  17. package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
  18. package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
  19. package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
  20. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
  21. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
  22. package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
  23. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
  24. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
  25. package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
  26. package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
  27. package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
  28. package/lib/Controllers/RTUController.js +1 -1
  29. package/lib/Controllers/RTUPluginController.js +1 -1
  30. package/lib/Controllers/Site/AlarmController.js +2 -2
  31. package/lib/Controllers/Site/AlarmGroupController.js +1 -1
  32. package/lib/Controllers/Site/DefinitionController.js +1 -1
  33. package/lib/Controllers/Site/PermanentObjectController.js +1 -1
  34. package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
  35. package/lib/Controllers/Site/PointController.js +2 -2
  36. package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
  37. package/lib/Controllers/SiteController.js +1 -1
  38. package/lib/Controllers/TokenController.js +2 -2
  39. package/lib/Controllers/ToolsController.js +1 -1
  40. package/lib/Controllers/UserAccountActionTokenController.js +2 -2
  41. package/lib/Controllers/UserAccountController.js +2 -2
  42. package/lib/DataItems/PointValueItem.js +2 -2
  43. package/lib/Errors/BadRequestError.js +7 -3
  44. package/lib/Errors/ForbiddenError.js +7 -3
  45. package/lib/Errors/NetworkError.js +7 -3
  46. package/lib/Errors/NotAllowedError.js +7 -3
  47. package/lib/Errors/NotFoundError.js +7 -3
  48. package/lib/Errors/ServerError.js +7 -3
  49. package/lib/Errors/UnauthorizedError.js +7 -3
  50. package/lib/Models/AccountPolicyModel.js +29 -133
  51. package/lib/Models/ApiAccountModel.js +29 -133
  52. package/lib/Models/BaseModel.js +6 -2
  53. package/lib/Models/CompanyModel.js +23 -101
  54. package/lib/Models/FirebaseTokenModel.js +32 -149
  55. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
  56. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
  57. package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
  58. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
  59. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
  60. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
  61. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
  62. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
  63. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
  64. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
  65. package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
  66. package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
  67. package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
  68. package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
  69. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
  70. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
  71. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
  72. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
  73. package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
  74. package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
  75. package/lib/Models/RTUModel.js +26 -117
  76. package/lib/Models/RTUPluginModel.js +23 -101
  77. package/lib/Models/Site/AlarmGroupModel.js +37 -153
  78. package/lib/Models/Site/AlarmModel.js +67 -313
  79. package/lib/Models/Site/DefinitionModel.js +34 -137
  80. package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
  81. package/lib/Models/Site/PermanentObjectModel.js +37 -153
  82. package/lib/Models/Site/PointModel.js +49 -217
  83. package/lib/Models/Site/TemporaryObjectModel.js +34 -137
  84. package/lib/Models/Site/index.js +0 -3
  85. package/lib/Models/SiteModel.js +26 -117
  86. package/lib/Models/TokenModel.js +38 -181
  87. package/lib/Models/UserAccountActionTokenModel.js +41 -197
  88. package/lib/Models/UserAccountModel.js +38 -181
  89. package/lib/PackageVersion.js +1 -1
  90. package/lib/Points.js +1 -1
  91. package/lib/RequestHelper.js +2 -2
  92. package/lib/WebSocketHelper.js +1 -1
  93. package/lib/index.d.ts +945 -1206
  94. package/package.json +3 -3
  95. package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
  96. package/src/Models/AccountPolicyModel.js +21 -117
  97. package/src/Models/ApiAccountModel.js +21 -117
  98. package/src/Models/CompanyModel.js +15 -87
  99. package/src/Models/FirebaseTokenModel.js +24 -132
  100. package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
  101. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
  102. package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
  103. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
  104. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
  105. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
  106. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
  107. package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
  108. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
  109. package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
  110. package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
  111. package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
  112. package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
  113. package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
  114. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
  115. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
  116. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
  117. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
  118. package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
  119. package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
  120. package/src/Models/RTUModel.js +18 -102
  121. package/src/Models/RTUPluginModel.js +15 -87
  122. package/src/Models/Site/AlarmGroupModel.js +26 -133
  123. package/src/Models/Site/AlarmModel.js +56 -283
  124. package/src/Models/Site/DefinitionModel.js +23 -118
  125. package/src/Models/Site/PermanentObjectDataModel.js +29 -148
  126. package/src/Models/Site/PermanentObjectModel.js +26 -133
  127. package/src/Models/Site/PointModel.js +38 -193
  128. package/src/Models/Site/TemporaryObjectModel.js +23 -118
  129. package/src/Models/Site/index.js +0 -2
  130. package/src/Models/SiteModel.js +18 -102
  131. package/src/Models/TokenModel.js +30 -162
  132. package/src/Models/UserAccountActionTokenModel.js +33 -177
  133. package/src/Models/UserAccountModel.js +30 -162
  134. package/src/PackageVersion.js +1 -1
  135. package/lib/Models/Site/BaseSiteModel.js +0 -58
  136. 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 BaseSiteModel from '../../../Models/Site/BaseSiteModel';
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 BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class PackingLineModel extends BaseSiteModel
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
- * @private
32
+ * @public
33
33
  */
34
- this._id = undefined;
34
+ this.id = undefined;
35
35
 
36
36
  /**
37
37
  * The RTU this Packing Line belongs to
38
38
  *
39
39
  * @type {?number}
40
- * @private
40
+ * @public
41
41
  */
42
- this._rtuId = undefined;
42
+ this.rtuId = undefined;
43
43
 
44
44
  /**
45
45
  * The Packing Line Name
46
46
  *
47
47
  * @type {string}
48
- * @private
48
+ * @public
49
49
  */
50
- this._name = undefined;
50
+ this.name = undefined;
51
51
 
52
52
  /**
53
53
  * The Points used by this Packing Line
54
54
  *
55
55
  * @type {Object}
56
- * @private
56
+ * @public
57
57
  */
58
- this._points = undefined;
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
- * @private
64
+ * @public
65
65
  */
66
- this._sizers = undefined;
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
- * @private
72
+ * @public
73
73
  */
74
- this._binTips = undefined;
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
- * @private
80
+ * @public
81
81
  */
82
- this._rejectBinScales = undefined;
82
+ this.rejectBinScales = undefined;
83
83
 
84
84
  /**
85
85
  * The Automation Object for this Packing Line
86
86
  *
87
87
  * @type {?Object}
88
- * @private
88
+ * @public
89
89
  */
90
- this._automation = undefined;
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
- * @private
96
+ * @public
97
97
  */
98
- this._alarmGroups = undefined;
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
- * @private
104
+ * @public
105
105
  */
106
- this._classTypes = undefined;
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
- * @private
112
+ * @public
113
113
  */
114
- this._shiftManagement = undefined;
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
- * @private
120
+ * @public
121
121
  */
122
- this._freshPackIntegration = undefined;
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
- * @private
128
+ * @public
129
129
  */
130
- this._freshQualityIntegration = undefined;
130
+ this.freshQualityIntegration = undefined;
131
131
 
132
132
  /**
133
133
  * Whether the Packing Line has been deleted
134
134
  *
135
135
  * @type {boolean}
136
- * @private
136
+ * @public
137
137
  */
138
- this._deleted = undefined;
138
+ this.deleted = undefined;
139
139
 
140
140
  /**
141
141
  * When the Packing Line was last updated
142
142
  *
143
143
  * @type {Date}
144
- * @private
144
+ * @public
145
145
  */
146
- this._updateTimestamp = undefined;
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
- * @private
152
+ * @public
153
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
- };
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._id = (function(){
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._rtuId = (function(){
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._name = (function(){
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._points = (function(){
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._sizers = (function(){
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._binTips = (function(){
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._rejectBinScales = (function(){
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._automation = (function(){
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._alarmGroups = (function(){
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._classTypes = (function(){
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._shiftManagement = (function(){
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._freshPackIntegration = (function(){
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._freshQualityIntegration = (function(){
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._deleted = (function(){
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._updateTimestamp = (function(){
618
+ model.updateTimestamp = (function(){
822
619
  if(typeof jsonObject['updateTimestamp'] !== 'string')
823
620
  {
824
621
  return new Date(String(jsonObject['updateTimestamp']));