@ricado/api-client 1.4.0 → 2.0.2

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 (162) 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 +6 -6
  7. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +6 -6
  8. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +5 -5
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +6 -6
  10. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +6 -6
  11. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +5 -5
  12. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +6 -6
  13. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +6 -6
  14. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +6 -6
  15. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +5 -5
  16. package/lib/Controllers/Packhouse/Site/PackTypeController.js +5 -5
  17. package/lib/Controllers/Packhouse/Site/PackingLineController.js +5 -5
  18. package/lib/Controllers/Packhouse/Site/PackrunController.js +292 -6
  19. package/lib/Controllers/Packhouse/Site/RejectBinController.js +6 -6
  20. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +5 -5
  21. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +6 -6
  22. package/lib/Controllers/Packhouse/Site/ShiftController.js +6 -6
  23. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +6 -6
  24. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +6 -6
  25. package/lib/Controllers/Packhouse/Site/VarietyController.js +5 -5
  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 +6 -6
  31. package/lib/Controllers/Site/AlarmGroupController.js +5 -5
  32. package/lib/Controllers/Site/DefinitionController.js +5 -5
  33. package/lib/Controllers/Site/PermanentObjectController.js +5 -5
  34. package/lib/Controllers/Site/PermanentObjectDataController.js +6 -6
  35. package/lib/Controllers/Site/PointController.js +8 -6
  36. package/lib/Controllers/Site/TemporaryObjectController.js +5 -5
  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 -195
  56. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -179
  57. package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -275
  58. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -211
  59. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -179
  60. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -147
  61. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -243
  62. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -275
  63. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -179
  64. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -147
  65. package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -179
  66. package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -291
  67. package/lib/Models/Packhouse/Site/PackrunModel.js +61 -291
  68. package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -195
  69. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -243
  70. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -211
  71. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -243
  72. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -643
  73. package/lib/Models/Packhouse/Site/ShiftModel.js +73 -355
  74. package/lib/Models/Packhouse/Site/VarietyModel.js +40 -179
  75. package/lib/Models/RTUModel.js +26 -117
  76. package/lib/Models/RTUPluginModel.js +23 -101
  77. package/lib/Models/Site/AlarmGroupModel.js +37 -163
  78. package/lib/Models/Site/AlarmModel.js +67 -323
  79. package/lib/Models/Site/DefinitionModel.js +34 -147
  80. package/lib/Models/Site/PermanentObjectDataModel.js +40 -179
  81. package/lib/Models/Site/PermanentObjectModel.js +37 -163
  82. package/lib/Models/Site/PointModel.js +49 -227
  83. package/lib/Models/Site/TemporaryObjectModel.js +34 -147
  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 +931 -1589
  94. package/package.json +3 -3
  95. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  96. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  97. package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  98. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  99. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  100. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  101. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  102. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  103. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  104. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  105. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  106. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  107. package/src/Controllers/Packhouse/Site/PackrunController.js +365 -4
  108. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  109. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  110. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  111. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  112. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  113. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  114. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  115. package/src/Controllers/Site/AlarmController.js +4 -4
  116. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  117. package/src/Controllers/Site/DefinitionController.js +4 -4
  118. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  119. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  120. package/src/Controllers/Site/PointController.js +6 -4
  121. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  122. package/src/Models/AccountPolicyModel.js +21 -117
  123. package/src/Models/ApiAccountModel.js +21 -117
  124. package/src/Models/CompanyModel.js +15 -87
  125. package/src/Models/FirebaseTokenModel.js +24 -132
  126. package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
  127. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
  128. package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
  129. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
  130. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
  131. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
  132. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
  133. package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
  134. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
  135. package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
  136. package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
  137. package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
  138. package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
  139. package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
  140. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
  141. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
  142. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
  143. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
  144. package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
  145. package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
  146. package/src/Models/RTUModel.js +18 -102
  147. package/src/Models/RTUPluginModel.js +15 -87
  148. package/src/Models/Site/AlarmGroupModel.js +27 -144
  149. package/src/Models/Site/AlarmModel.js +57 -294
  150. package/src/Models/Site/DefinitionModel.js +24 -129
  151. package/src/Models/Site/PermanentObjectDataModel.js +30 -159
  152. package/src/Models/Site/PermanentObjectModel.js +27 -144
  153. package/src/Models/Site/PointModel.js +39 -204
  154. package/src/Models/Site/TemporaryObjectModel.js +24 -129
  155. package/src/Models/Site/index.js +0 -2
  156. package/src/Models/SiteModel.js +18 -102
  157. package/src/Models/TokenModel.js +30 -162
  158. package/src/Models/UserAccountActionTokenModel.js +33 -177
  159. package/src/Models/UserAccountModel.js +30 -162
  160. package/src/PackageVersion.js +1 -1
  161. package/lib/Models/Site/BaseSiteModel.js +0 -58
  162. 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 Compac Sizer Outlet Product Change
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
14
- * @extends BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class CompacSizerOutletProductChangeModel extends BaseSiteModel
16
+ class CompacSizerOutletProductChangeModel extends BaseModel
17
17
  {
18
18
  /**
19
19
  * CompacSizerOutletProductChangeModel Constructor
20
20
  *
21
21
  * @protected
22
- * @param {number} siteId The Site ID associated with this Compac Sizer Outlet Product Change
23
22
  */
24
- constructor(siteId)
23
+ constructor()
25
24
  {
26
25
  super();
27
26
 
@@ -29,232 +28,81 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
29
28
  * The Compac Sizer Outlet Product Change 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 Compac Sizer ID this Outlet Change is associated with
38
37
  *
39
38
  * @type {string}
40
- * @private
39
+ * @public
41
40
  */
42
- this._compacSizerId = undefined;
41
+ this.compacSizerId = undefined;
43
42
 
44
43
  /**
45
44
  * The Sizer Outlet Number this Outlet Change is associated with
46
45
  *
47
46
  * @type {string}
48
- * @private
47
+ * @public
49
48
  */
50
- this._outletNumber = undefined;
49
+ this.outletNumber = undefined;
51
50
 
52
51
  /**
53
52
  * When this Outlet Change occurred
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 ID of the Previous Product that was active on the Outlet
62
61
  *
63
62
  * @type {?string}
64
- * @private
63
+ * @public
65
64
  */
66
- this._previousProductId = undefined;
65
+ this.previousProductId = undefined;
67
66
 
68
67
  /**
69
68
  * The Name of the Previous Product that was active on the Outlet
70
69
  *
71
70
  * @type {?string}
72
- * @private
71
+ * @public
73
72
  */
74
- this._previousProductName = undefined;
73
+ this.previousProductName = undefined;
75
74
 
76
75
  /**
77
76
  * The ID of the New Product that is now active on the Outlet
78
77
  *
79
78
  * @type {string}
80
- * @private
79
+ * @public
81
80
  */
82
- this._newProductId = undefined;
81
+ this.newProductId = undefined;
83
82
 
84
83
  /**
85
84
  * The Name of the New Product that is now active on the Outlet
86
85
  *
87
86
  * @type {string}
88
- * @private
87
+ * @public
89
88
  */
90
- this._newProductName = undefined;
89
+ this.newProductName = undefined;
91
90
 
92
91
  /**
93
92
  * Whether the Compac Sizer Outlet Product Change has been deleted
94
93
  *
95
94
  * @type {boolean}
96
- * @private
95
+ * @public
97
96
  */
98
- this._deleted = undefined;
97
+ this.deleted = undefined;
99
98
 
100
99
  /**
101
100
  * When the Compac Sizer Outlet Product Change was last updated
102
101
  *
103
102
  * @type {Date}
104
- * @private
103
+ * @public
105
104
  */
106
- this._updateTimestamp = undefined;
107
-
108
- /**
109
- * The Site ID associated with this Compac Sizer Outlet Product Change
110
- *
111
- * @type {number}
112
- * @private
113
- */
114
- this._siteId = siteId;
115
- }
116
-
117
- /**
118
- * The Compac Sizer Outlet Product Change ID
119
- *
120
- * @public
121
- * @type {string}
122
- */
123
- get id()
124
- {
125
- return this._id;
126
- }
127
-
128
- /**
129
- * The Compac Sizer ID this Outlet Change is associated with
130
- *
131
- * @public
132
- * @type {string}
133
- */
134
- get compacSizerId()
135
- {
136
- return this._compacSizerId;
137
- }
138
-
139
- /**
140
- * The Sizer Outlet Number this Outlet Change is associated with
141
- *
142
- * @public
143
- * @type {string}
144
- */
145
- get outletNumber()
146
- {
147
- return this._outletNumber;
148
- }
149
-
150
- /**
151
- * When this Outlet Change occurred
152
- *
153
- * @public
154
- * @type {Date}
155
- */
156
- get createdTimestamp()
157
- {
158
- return this._createdTimestamp;
159
- }
160
-
161
- /**
162
- * The ID of the Previous Product that was active on the Outlet
163
- *
164
- * @public
165
- * @type {?string}
166
- */
167
- get previousProductId()
168
- {
169
- return this._previousProductId;
170
- }
171
-
172
- /**
173
- * The Name of the Previous Product that was active on the Outlet
174
- *
175
- * @public
176
- * @type {?string}
177
- */
178
- get previousProductName()
179
- {
180
- return this._previousProductName;
181
- }
182
-
183
- /**
184
- * The ID of the New Product that is now active on the Outlet
185
- *
186
- * @public
187
- * @type {string}
188
- */
189
- get newProductId()
190
- {
191
- return this._newProductId;
192
- }
193
-
194
- /**
195
- * The Name of the New Product that is now active on the Outlet
196
- *
197
- * @public
198
- * @type {string}
199
- */
200
- get newProductName()
201
- {
202
- return this._newProductName;
203
- }
204
-
205
- /**
206
- * Whether the Compac Sizer Outlet Product Change has been deleted
207
- *
208
- * @public
209
- * @type {boolean}
210
- */
211
- get deleted()
212
- {
213
- return this._deleted;
214
- }
215
-
216
- /**
217
- * When the Compac Sizer Outlet Product Change 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 Compac Sizer Outlet Product Change
229
- *
230
- * @public
231
- * @type {number}
232
- */
233
- get siteId()
234
- {
235
- return this._siteId;
236
- }
237
-
238
- /**
239
- * Convert this **CompacSizerOutletProductChangeModel** to a JSON Object
240
- *
241
- * @public
242
- * @return {Object<string, any>}
243
- */
244
- toJSON()
245
- {
246
- return {
247
- id: this._id,
248
- compacSizerId: this._compacSizerId,
249
- outletNumber: this._outletNumber,
250
- createdTimestamp: this._createdTimestamp,
251
- previousProductId: this._previousProductId,
252
- previousProductName: this._previousProductName,
253
- newProductId: this._newProductId,
254
- newProductName: this._newProductName,
255
- deleted: this._deleted,
256
- updateTimestamp: this._updateTimestamp
257
- };
105
+ this.updateTimestamp = undefined;
258
106
  }
259
107
 
260
108
  /**
@@ -263,12 +111,11 @@ class CompacSizerOutletProductChangeModel 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 Compac Sizer Outlet Product Change
267
114
  * @return {CompacSizerOutletProductChangeModel}
268
115
  */
269
- static fromJSON(json, siteId)
116
+ static fromJSON(json)
270
117
  {
271
- let model = new CompacSizerOutletProductChangeModel(siteId);
118
+ let model = new CompacSizerOutletProductChangeModel();
272
119
 
273
120
  /**
274
121
  * The JSON Object
@@ -288,7 +135,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
288
135
 
289
136
  if('id' in jsonObject)
290
137
  {
291
- model._id = (function(){
138
+ model.id = (function(){
292
139
  if(typeof jsonObject['id'] !== 'string')
293
140
  {
294
141
  return String(jsonObject['id']);
@@ -300,7 +147,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
300
147
 
301
148
  if('compacSizerId' in jsonObject)
302
149
  {
303
- model._compacSizerId = (function(){
150
+ model.compacSizerId = (function(){
304
151
  if(typeof jsonObject['compacSizerId'] !== 'string')
305
152
  {
306
153
  return String(jsonObject['compacSizerId']);
@@ -312,7 +159,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
312
159
 
313
160
  if('outletNumber' in jsonObject)
314
161
  {
315
- model._outletNumber = (function(){
162
+ model.outletNumber = (function(){
316
163
  if(typeof jsonObject['outletNumber'] !== 'string')
317
164
  {
318
165
  return String(jsonObject['outletNumber']);
@@ -324,7 +171,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
324
171
 
325
172
  if('createdTimestamp' in jsonObject)
326
173
  {
327
- model._createdTimestamp = (function(){
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 CompacSizerOutletProductChangeModel extends BaseSiteModel
336
183
 
337
184
  if('previousProductId' in jsonObject)
338
185
  {
339
- model._previousProductId = (function(){
186
+ model.previousProductId = (function(){
340
187
  if(jsonObject['previousProductId'] === null)
341
188
  {
342
189
  return null;
@@ -353,7 +200,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
353
200
 
354
201
  if('previousProductName' in jsonObject)
355
202
  {
356
- model._previousProductName = (function(){
203
+ model.previousProductName = (function(){
357
204
  if(jsonObject['previousProductName'] === null)
358
205
  {
359
206
  return null;
@@ -370,7 +217,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
370
217
 
371
218
  if('newProductId' in jsonObject)
372
219
  {
373
- model._newProductId = (function(){
220
+ model.newProductId = (function(){
374
221
  if(typeof jsonObject['newProductId'] !== 'string')
375
222
  {
376
223
  return String(jsonObject['newProductId']);
@@ -382,7 +229,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
382
229
 
383
230
  if('newProductName' in jsonObject)
384
231
  {
385
- model._newProductName = (function(){
232
+ model.newProductName = (function(){
386
233
  if(typeof jsonObject['newProductName'] !== 'string')
387
234
  {
388
235
  return String(jsonObject['newProductName']);
@@ -394,7 +241,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
394
241
 
395
242
  if('deleted' in jsonObject)
396
243
  {
397
- model._deleted = (function(){
244
+ model.deleted = (function(){
398
245
  if(typeof jsonObject['deleted'] !== 'boolean')
399
246
  {
400
247
  return Boolean(jsonObject['deleted']);
@@ -406,7 +253,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
406
253
 
407
254
  if('updateTimestamp' in jsonObject)
408
255
  {
409
- model._updateTimestamp = (function(){
256
+ model.updateTimestamp = (function(){
410
257
  if(typeof jsonObject['updateTimestamp'] !== 'string')
411
258
  {
412
259
  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 Compac Sizer Outlet Type Change
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
14
- * @extends BaseSiteModel
14
+ * @extends BaseModel
15
15
  */
16
- class CompacSizerOutletTypeChangeModel extends BaseSiteModel
16
+ class CompacSizerOutletTypeChangeModel extends BaseModel
17
17
  {
18
18
  /**
19
19
  * CompacSizerOutletTypeChangeModel Constructor
20
20
  *
21
21
  * @protected
22
- * @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type Change
23
22
  */
24
- constructor(siteId)
23
+ constructor()
25
24
  {
26
25
  super();
27
26
 
@@ -29,192 +28,65 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
29
28
  * The Compac Sizer Outlet Type Change 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 Compac Sizer ID this Outlet Type Change is associated with
38
37
  *
39
38
  * @type {string}
40
- * @private
39
+ * @public
41
40
  */
42
- this._compacSizerId = undefined;
41
+ this.compacSizerId = undefined;
43
42
 
44
43
  /**
45
44
  * The Sizer Outlet Number this Outlet Type Change is associated with
46
45
  *
47
46
  * @type {string}
48
- * @private
47
+ * @public
49
48
  */
50
- this._outletNumber = undefined;
49
+ this.outletNumber = undefined;
51
50
 
52
51
  /**
53
52
  * When this Outlet Type Change occurred
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 ID of the Previous Type that was active on the Outlet
62
61
  *
63
62
  * @type {?string}
64
- * @private
63
+ * @public
65
64
  */
66
- this._previousTypeId = undefined;
65
+ this.previousTypeId = undefined;
67
66
 
68
67
  /**
69
68
  * The ID of the New Type that is now active on the Outlet
70
69
  *
71
70
  * @type {string}
72
- * @private
71
+ * @public
73
72
  */
74
- this._newTypeId = undefined;
73
+ this.newTypeId = undefined;
75
74
 
76
75
  /**
77
76
  * Whether the Compac Sizer Outlet Type Change has been deleted
78
77
  *
79
78
  * @type {boolean}
80
- * @private
79
+ * @public
81
80
  */
82
- this._deleted = undefined;
81
+ this.deleted = undefined;
83
82
 
84
83
  /**
85
84
  * When the Compac Sizer Outlet Type Change was last updated
86
85
  *
87
86
  * @type {Date}
88
- * @private
87
+ * @public
89
88
  */
90
- this._updateTimestamp = undefined;
91
-
92
- /**
93
- * The Site ID associated with this Compac Sizer Outlet Type Change
94
- *
95
- * @type {number}
96
- * @private
97
- */
98
- this._siteId = siteId;
99
- }
100
-
101
- /**
102
- * The Compac Sizer Outlet Type Change ID
103
- *
104
- * @public
105
- * @type {string}
106
- */
107
- get id()
108
- {
109
- return this._id;
110
- }
111
-
112
- /**
113
- * The Compac Sizer ID this Outlet Type Change is associated with
114
- *
115
- * @public
116
- * @type {string}
117
- */
118
- get compacSizerId()
119
- {
120
- return this._compacSizerId;
121
- }
122
-
123
- /**
124
- * The Sizer Outlet Number this Outlet Type Change is associated with
125
- *
126
- * @public
127
- * @type {string}
128
- */
129
- get outletNumber()
130
- {
131
- return this._outletNumber;
132
- }
133
-
134
- /**
135
- * When this Outlet Type Change occurred
136
- *
137
- * @public
138
- * @type {Date}
139
- */
140
- get createdTimestamp()
141
- {
142
- return this._createdTimestamp;
143
- }
144
-
145
- /**
146
- * The ID of the Previous Type that was active on the Outlet
147
- *
148
- * @public
149
- * @type {?string}
150
- */
151
- get previousTypeId()
152
- {
153
- return this._previousTypeId;
154
- }
155
-
156
- /**
157
- * The ID of the New Type that is now active on the Outlet
158
- *
159
- * @public
160
- * @type {string}
161
- */
162
- get newTypeId()
163
- {
164
- return this._newTypeId;
165
- }
166
-
167
- /**
168
- * Whether the Compac Sizer Outlet Type Change has been deleted
169
- *
170
- * @public
171
- * @type {boolean}
172
- */
173
- get deleted()
174
- {
175
- return this._deleted;
176
- }
177
-
178
- /**
179
- * When the Compac Sizer Outlet Type Change was last updated
180
- *
181
- * @public
182
- * @type {Date}
183
- */
184
- get updateTimestamp()
185
- {
186
- return this._updateTimestamp;
187
- }
188
-
189
- /**
190
- * The Site ID associated with this Compac Sizer Outlet Type Change
191
- *
192
- * @public
193
- * @type {number}
194
- */
195
- get siteId()
196
- {
197
- return this._siteId;
198
- }
199
-
200
- /**
201
- * Convert this **CompacSizerOutletTypeChangeModel** to a JSON Object
202
- *
203
- * @public
204
- * @return {Object<string, any>}
205
- */
206
- toJSON()
207
- {
208
- return {
209
- id: this._id,
210
- compacSizerId: this._compacSizerId,
211
- outletNumber: this._outletNumber,
212
- createdTimestamp: this._createdTimestamp,
213
- previousTypeId: this._previousTypeId,
214
- newTypeId: this._newTypeId,
215
- deleted: this._deleted,
216
- updateTimestamp: this._updateTimestamp
217
- };
89
+ this.updateTimestamp = undefined;
218
90
  }
219
91
 
220
92
  /**
@@ -223,12 +95,11 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
223
95
  * @static
224
96
  * @public
225
97
  * @param {Object<string, any>|string} json A JSON Object or JSON String
226
- * @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type Change
227
98
  * @return {CompacSizerOutletTypeChangeModel}
228
99
  */
229
- static fromJSON(json, siteId)
100
+ static fromJSON(json)
230
101
  {
231
- let model = new CompacSizerOutletTypeChangeModel(siteId);
102
+ let model = new CompacSizerOutletTypeChangeModel();
232
103
 
233
104
  /**
234
105
  * The JSON Object
@@ -248,7 +119,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
248
119
 
249
120
  if('id' in jsonObject)
250
121
  {
251
- model._id = (function(){
122
+ model.id = (function(){
252
123
  if(typeof jsonObject['id'] !== 'string')
253
124
  {
254
125
  return String(jsonObject['id']);
@@ -260,7 +131,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
260
131
 
261
132
  if('compacSizerId' in jsonObject)
262
133
  {
263
- model._compacSizerId = (function(){
134
+ model.compacSizerId = (function(){
264
135
  if(typeof jsonObject['compacSizerId'] !== 'string')
265
136
  {
266
137
  return String(jsonObject['compacSizerId']);
@@ -272,7 +143,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
272
143
 
273
144
  if('outletNumber' in jsonObject)
274
145
  {
275
- model._outletNumber = (function(){
146
+ model.outletNumber = (function(){
276
147
  if(typeof jsonObject['outletNumber'] !== 'string')
277
148
  {
278
149
  return String(jsonObject['outletNumber']);
@@ -284,7 +155,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
284
155
 
285
156
  if('createdTimestamp' in jsonObject)
286
157
  {
287
- model._createdTimestamp = (function(){
158
+ model.createdTimestamp = (function(){
288
159
  if(typeof jsonObject['createdTimestamp'] !== 'string')
289
160
  {
290
161
  return new Date(String(jsonObject['createdTimestamp']));
@@ -296,7 +167,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
296
167
 
297
168
  if('previousTypeId' in jsonObject)
298
169
  {
299
- model._previousTypeId = (function(){
170
+ model.previousTypeId = (function(){
300
171
  if(jsonObject['previousTypeId'] === null)
301
172
  {
302
173
  return null;
@@ -313,7 +184,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
313
184
 
314
185
  if('newTypeId' in jsonObject)
315
186
  {
316
- model._newTypeId = (function(){
187
+ model.newTypeId = (function(){
317
188
  if(typeof jsonObject['newTypeId'] !== 'string')
318
189
  {
319
190
  return String(jsonObject['newTypeId']);
@@ -325,7 +196,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
325
196
 
326
197
  if('deleted' in jsonObject)
327
198
  {
328
- model._deleted = (function(){
199
+ model.deleted = (function(){
329
200
  if(typeof jsonObject['deleted'] !== 'boolean')
330
201
  {
331
202
  return Boolean(jsonObject['deleted']);
@@ -337,7 +208,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
337
208
 
338
209
  if('updateTimestamp' in jsonObject)
339
210
  {
340
- model._updateTimestamp = (function(){
211
+ model.updateTimestamp = (function(){
341
212
  if(typeof jsonObject['updateTimestamp'] !== 'string')
342
213
  {
343
214
  return new Date(String(jsonObject['updateTimestamp']));