@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
@@ -28,173 +28,65 @@ class FirebaseTokenModel extends BaseModel
28
28
  * The Firebase Token ID
29
29
  *
30
30
  * @type {string}
31
- * @private
31
+ * @public
32
32
  */
33
- this._id = undefined;
33
+ this.id = undefined;
34
34
 
35
35
  /**
36
36
  * The Account this Firebase Token belongs to
37
37
  *
38
38
  * @type {string}
39
- * @private
39
+ * @public
40
40
  */
41
- this._accountId = undefined;
41
+ this.accountId = undefined;
42
42
 
43
43
  /**
44
44
  * The Firebase Token
45
45
  *
46
46
  * @type {string}
47
- * @private
47
+ * @public
48
48
  */
49
- this._token = undefined;
49
+ this.token = undefined;
50
50
 
51
51
  /**
52
52
  * Whether the Firebase Token should receive Notifications
53
53
  *
54
54
  * @type {boolean}
55
- * @private
55
+ * @public
56
56
  */
57
- this._enabled = undefined;
57
+ this.enabled = undefined;
58
58
 
59
59
  /**
60
60
  * The Device Name
61
61
  *
62
62
  * @type {string}
63
- * @private
63
+ * @public
64
64
  */
65
- this._deviceName = undefined;
65
+ this.deviceName = undefined;
66
66
 
67
67
  /**
68
68
  * The Device Platform
69
69
  *
70
70
  * @type {string}
71
- * @private
71
+ * @public
72
72
  */
73
- this._devicePlatform = undefined;
73
+ this.devicePlatform = undefined;
74
74
 
75
75
  /**
76
76
  * Whether the Firebase Token has been deleted
77
77
  *
78
78
  * @type {boolean}
79
- * @private
79
+ * @public
80
80
  */
81
- this._deleted = undefined;
81
+ this.deleted = undefined;
82
82
 
83
83
  /**
84
84
  * When the Firebase Token was last updated
85
85
  *
86
86
  * @type {Date}
87
- * @private
87
+ * @public
88
88
  */
89
- this._updateTimestamp = undefined;
90
- }
91
-
92
- /**
93
- * The Firebase Token ID
94
- *
95
- * @public
96
- * @type {string}
97
- */
98
- get id()
99
- {
100
- return this._id;
101
- }
102
-
103
- /**
104
- * The Account this Firebase Token belongs to
105
- *
106
- * @public
107
- * @type {string}
108
- */
109
- get accountId()
110
- {
111
- return this._accountId;
112
- }
113
-
114
- /**
115
- * The Firebase Token
116
- *
117
- * @public
118
- * @type {string}
119
- */
120
- get token()
121
- {
122
- return this._token;
123
- }
124
-
125
- /**
126
- * Whether the Firebase Token should receive Notifications
127
- *
128
- * @public
129
- * @type {boolean}
130
- */
131
- get enabled()
132
- {
133
- return this._enabled;
134
- }
135
-
136
- /**
137
- * The Device Name
138
- *
139
- * @public
140
- * @type {string}
141
- */
142
- get deviceName()
143
- {
144
- return this._deviceName;
145
- }
146
-
147
- /**
148
- * The Device Platform
149
- *
150
- * @public
151
- * @type {string}
152
- */
153
- get devicePlatform()
154
- {
155
- return this._devicePlatform;
156
- }
157
-
158
- /**
159
- * Whether the Firebase Token has been deleted
160
- *
161
- * @public
162
- * @type {boolean}
163
- */
164
- get deleted()
165
- {
166
- return this._deleted;
167
- }
168
-
169
- /**
170
- * When the Firebase Token was last updated
171
- *
172
- * @public
173
- * @type {Date}
174
- */
175
- get updateTimestamp()
176
- {
177
- return this._updateTimestamp;
178
- }
179
-
180
- /**
181
- * Convert this **FirebaseTokenModel** to a JSON Object
182
- *
183
- * @public
184
- * @return {Object<string, any>}
185
- */
186
- toJSON()
187
- {
188
- return {
189
- id: this._id,
190
- accountId: this._accountId,
191
- token: this._token,
192
- enabled: this._enabled,
193
- deviceName: this._deviceName,
194
- devicePlatform: this._devicePlatform,
195
- deleted: this._deleted,
196
- updateTimestamp: this._updateTimestamp
197
- };
89
+ this.updateTimestamp = undefined;
198
90
  }
199
91
 
200
92
  /**
@@ -227,7 +119,7 @@ class FirebaseTokenModel extends BaseModel
227
119
 
228
120
  if('id' in jsonObject)
229
121
  {
230
- model._id = (function(){
122
+ model.id = (function(){
231
123
  if(typeof jsonObject['id'] !== 'string')
232
124
  {
233
125
  return String(jsonObject['id']);
@@ -239,7 +131,7 @@ class FirebaseTokenModel extends BaseModel
239
131
 
240
132
  if('accountId' in jsonObject)
241
133
  {
242
- model._accountId = (function(){
134
+ model.accountId = (function(){
243
135
  if(typeof jsonObject['accountId'] !== 'string')
244
136
  {
245
137
  return String(jsonObject['accountId']);
@@ -251,7 +143,7 @@ class FirebaseTokenModel extends BaseModel
251
143
 
252
144
  if('token' in jsonObject)
253
145
  {
254
- model._token = (function(){
146
+ model.token = (function(){
255
147
  if(typeof jsonObject['token'] !== 'string')
256
148
  {
257
149
  return String(jsonObject['token']);
@@ -263,7 +155,7 @@ class FirebaseTokenModel extends BaseModel
263
155
 
264
156
  if('enabled' in jsonObject)
265
157
  {
266
- model._enabled = (function(){
158
+ model.enabled = (function(){
267
159
  if(typeof jsonObject['enabled'] !== 'boolean')
268
160
  {
269
161
  return Boolean(jsonObject['enabled']);
@@ -275,7 +167,7 @@ class FirebaseTokenModel extends BaseModel
275
167
 
276
168
  if('deviceName' in jsonObject)
277
169
  {
278
- model._deviceName = (function(){
170
+ model.deviceName = (function(){
279
171
  if(typeof jsonObject['deviceName'] !== 'string')
280
172
  {
281
173
  return String(jsonObject['deviceName']);
@@ -287,7 +179,7 @@ class FirebaseTokenModel extends BaseModel
287
179
 
288
180
  if('devicePlatform' in jsonObject)
289
181
  {
290
- model._devicePlatform = (function(){
182
+ model.devicePlatform = (function(){
291
183
  if(typeof jsonObject['devicePlatform'] !== 'string')
292
184
  {
293
185
  return String(jsonObject['devicePlatform']);
@@ -299,7 +191,7 @@ class FirebaseTokenModel extends BaseModel
299
191
 
300
192
  if('deleted' in jsonObject)
301
193
  {
302
- model._deleted = (function(){
194
+ model.deleted = (function(){
303
195
  if(typeof jsonObject['deleted'] !== 'boolean')
304
196
  {
305
197
  return Boolean(jsonObject['deleted']);
@@ -311,7 +203,7 @@ class FirebaseTokenModel extends BaseModel
311
203
 
312
204
  if('updateTimestamp' in jsonObject)
313
205
  {
314
- model._updateTimestamp = (function(){
206
+ model.updateTimestamp = (function(){
315
207
  if(typeof jsonObject['updateTimestamp'] !== 'string')
316
208
  {
317
209
  return new Date(String(jsonObject['updateTimestamp']));
@@ -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 Bin Tip Weight
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
14
- * @extends BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class BinTipWeightModel extends BaseSiteModel
16
+ class BinTipWeightModel extends BaseModel
17
17
  {
18
18
  /**
19
19
  * BinTipWeightModel Constructor
20
20
  *
21
21
  * @protected
22
- * @param {number} siteId The Site ID associated with this Bin Tip Weight
23
22
  */
24
- constructor(siteId)
23
+ constructor()
25
24
  {
26
25
  super();
27
26
 
@@ -29,212 +28,73 @@ class BinTipWeightModel extends BaseSiteModel
29
28
  * The Bin Tip Weight 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 Bin Tip ID associated with this Bin Weight
38
37
  *
39
38
  * @type {string}
40
- * @private
39
+ * @public
41
40
  */
42
- this._binTipId = undefined;
41
+ this.binTipId = undefined;
43
42
 
44
43
  /**
45
44
  * The Packrun ID associated with this Bin Weight
46
45
  *
47
46
  * @type {string}
48
- * @private
47
+ * @public
49
48
  */
50
- this._packrunId = undefined;
49
+ this.packrunId = undefined;
51
50
 
52
51
  /**
53
52
  * When this Bin Weight 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 Bin Weight Type
62
61
  *
63
62
  * @type {string}
64
- * @private
63
+ * @public
65
64
  */
66
- this._weightType = undefined;
65
+ this.weightType = undefined;
67
66
 
68
67
  /**
69
68
  * The Bin Weight
70
69
  *
71
70
  * @type {number}
72
- * @private
71
+ * @public
73
72
  */
74
- this._weight = undefined;
73
+ this.weight = undefined;
75
74
 
76
75
  /**
77
76
  * The Bin Scale ID associated with this Bin Weight
78
77
  *
79
78
  * @type {?string}
80
- * @private
79
+ * @public
81
80
  */
82
- this._binScaleId = undefined;
81
+ this.binScaleId = undefined;
83
82
 
84
83
  /**
85
84
  * Whether the Bin Tip Weight has been deleted
86
85
  *
87
86
  * @type {boolean}
88
- * @private
87
+ * @public
89
88
  */
90
- this._deleted = undefined;
89
+ this.deleted = undefined;
91
90
 
92
91
  /**
93
92
  * When the Bin Tip Weight was last updated
94
93
  *
95
94
  * @type {Date}
96
- * @private
95
+ * @public
97
96
  */
98
- this._updateTimestamp = undefined;
99
-
100
- /**
101
- * The Site ID associated with this Bin Tip Weight
102
- *
103
- * @type {number}
104
- * @private
105
- */
106
- this._siteId = siteId;
107
- }
108
-
109
- /**
110
- * The Bin Tip Weight ID
111
- *
112
- * @public
113
- * @type {string}
114
- */
115
- get id()
116
- {
117
- return this._id;
118
- }
119
-
120
- /**
121
- * The Bin Tip ID associated with this Bin Weight
122
- *
123
- * @public
124
- * @type {string}
125
- */
126
- get binTipId()
127
- {
128
- return this._binTipId;
129
- }
130
-
131
- /**
132
- * The Packrun ID associated with this Bin Weight
133
- *
134
- * @public
135
- * @type {string}
136
- */
137
- get packrunId()
138
- {
139
- return this._packrunId;
140
- }
141
-
142
- /**
143
- * When this Bin Weight was Created
144
- *
145
- * @public
146
- * @type {Date}
147
- */
148
- get createdTimestamp()
149
- {
150
- return this._createdTimestamp;
151
- }
152
-
153
- /**
154
- * The Bin Weight Type
155
- *
156
- * @public
157
- * @type {string}
158
- */
159
- get weightType()
160
- {
161
- return this._weightType;
162
- }
163
-
164
- /**
165
- * The Bin Weight
166
- *
167
- * @public
168
- * @type {number}
169
- */
170
- get weight()
171
- {
172
- return this._weight;
173
- }
174
-
175
- /**
176
- * The Bin Scale ID associated with this Bin Weight
177
- *
178
- * @public
179
- * @type {?string}
180
- */
181
- get binScaleId()
182
- {
183
- return this._binScaleId;
184
- }
185
-
186
- /**
187
- * Whether the Bin Tip Weight has been deleted
188
- *
189
- * @public
190
- * @type {boolean}
191
- */
192
- get deleted()
193
- {
194
- return this._deleted;
195
- }
196
-
197
- /**
198
- * When the Bin Tip Weight was last updated
199
- *
200
- * @public
201
- * @type {Date}
202
- */
203
- get updateTimestamp()
204
- {
205
- return this._updateTimestamp;
206
- }
207
-
208
- /**
209
- * The Site ID associated with this Bin Tip Weight
210
- *
211
- * @public
212
- * @type {number}
213
- */
214
- get siteId()
215
- {
216
- return this._siteId;
217
- }
218
-
219
- /**
220
- * Convert this **BinTipWeightModel** to a JSON Object
221
- *
222
- * @public
223
- * @return {Object<string, any>}
224
- */
225
- toJSON()
226
- {
227
- return {
228
- id: this._id,
229
- binTipId: this._binTipId,
230
- packrunId: this._packrunId,
231
- createdTimestamp: this._createdTimestamp,
232
- weightType: this._weightType,
233
- weight: this._weight,
234
- binScaleId: this._binScaleId,
235
- deleted: this._deleted,
236
- updateTimestamp: this._updateTimestamp
237
- };
97
+ this.updateTimestamp = undefined;
238
98
  }
239
99
 
240
100
  /**
@@ -243,12 +103,11 @@ class BinTipWeightModel extends BaseSiteModel
243
103
  * @static
244
104
  * @public
245
105
  * @param {Object<string, any>|string} json A JSON Object or JSON String
246
- * @param {number} siteId The Site ID associated with this Bin Tip Weight
247
106
  * @return {BinTipWeightModel}
248
107
  */
249
- static fromJSON(json, siteId)
108
+ static fromJSON(json)
250
109
  {
251
- let model = new BinTipWeightModel(siteId);
110
+ let model = new BinTipWeightModel();
252
111
 
253
112
  /**
254
113
  * The JSON Object
@@ -268,7 +127,7 @@ class BinTipWeightModel extends BaseSiteModel
268
127
 
269
128
  if('id' in jsonObject)
270
129
  {
271
- model._id = (function(){
130
+ model.id = (function(){
272
131
  if(typeof jsonObject['id'] !== 'string')
273
132
  {
274
133
  return String(jsonObject['id']);
@@ -280,7 +139,7 @@ class BinTipWeightModel extends BaseSiteModel
280
139
 
281
140
  if('binTipId' in jsonObject)
282
141
  {
283
- model._binTipId = (function(){
142
+ model.binTipId = (function(){
284
143
  if(typeof jsonObject['binTipId'] !== 'string')
285
144
  {
286
145
  return String(jsonObject['binTipId']);
@@ -292,7 +151,7 @@ class BinTipWeightModel extends BaseSiteModel
292
151
 
293
152
  if('packrunId' in jsonObject)
294
153
  {
295
- model._packrunId = (function(){
154
+ model.packrunId = (function(){
296
155
  if(typeof jsonObject['packrunId'] !== 'string')
297
156
  {
298
157
  return String(jsonObject['packrunId']);
@@ -304,7 +163,7 @@ class BinTipWeightModel extends BaseSiteModel
304
163
 
305
164
  if('createdTimestamp' in jsonObject)
306
165
  {
307
- model._createdTimestamp = (function(){
166
+ model.createdTimestamp = (function(){
308
167
  if(typeof jsonObject['createdTimestamp'] !== 'string')
309
168
  {
310
169
  return new Date(String(jsonObject['createdTimestamp']));
@@ -316,7 +175,7 @@ class BinTipWeightModel extends BaseSiteModel
316
175
 
317
176
  if('weightType' in jsonObject)
318
177
  {
319
- model._weightType = (function(){
178
+ model.weightType = (function(){
320
179
  if(typeof jsonObject['weightType'] !== 'string')
321
180
  {
322
181
  return String(jsonObject['weightType']);
@@ -328,7 +187,7 @@ class BinTipWeightModel extends BaseSiteModel
328
187
 
329
188
  if('weight' in jsonObject)
330
189
  {
331
- model._weight = (function(){
190
+ model.weight = (function(){
332
191
  if(typeof jsonObject['weight'] !== 'number')
333
192
  {
334
193
  return Number(jsonObject['weight']);
@@ -340,7 +199,7 @@ class BinTipWeightModel extends BaseSiteModel
340
199
 
341
200
  if('binScaleId' in jsonObject)
342
201
  {
343
- model._binScaleId = (function(){
202
+ model.binScaleId = (function(){
344
203
  if(jsonObject['binScaleId'] === null)
345
204
  {
346
205
  return null;
@@ -357,7 +216,7 @@ class BinTipWeightModel extends BaseSiteModel
357
216
 
358
217
  if('deleted' in jsonObject)
359
218
  {
360
- model._deleted = (function(){
219
+ model.deleted = (function(){
361
220
  if(typeof jsonObject['deleted'] !== 'boolean')
362
221
  {
363
222
  return Boolean(jsonObject['deleted']);
@@ -369,7 +228,7 @@ class BinTipWeightModel extends BaseSiteModel
369
228
 
370
229
  if('updateTimestamp' in jsonObject)
371
230
  {
372
- model._updateTimestamp = (function(){
231
+ model.updateTimestamp = (function(){
373
232
  if(typeof jsonObject['updateTimestamp'] !== 'string')
374
233
  {
375
234
  return new Date(String(jsonObject['updateTimestamp']));