@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
@@ -28,213 +28,81 @@ class TokenModel extends BaseModel
28
28
  * The 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 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 Account Type
45
45
  *
46
46
  * @type {string}
47
- * @private
47
+ * @public
48
48
  */
49
- this._accountType = undefined;
49
+ this.accountType = undefined;
50
50
 
51
51
  /**
52
52
  * When the Token was issued
53
53
  *
54
54
  * @type {Date}
55
- * @private
55
+ * @public
56
56
  */
57
- this._issueTimestamp = undefined;
57
+ this.issueTimestamp = undefined;
58
58
 
59
59
  /**
60
60
  * When the Token will expire
61
61
  *
62
62
  * @type {Date}
63
- * @private
63
+ * @public
64
64
  */
65
- this._expireTimestamp = undefined;
65
+ this.expireTimestamp = undefined;
66
66
 
67
67
  /**
68
68
  * When the last API call using this Token was made
69
69
  *
70
70
  * @type {?Date}
71
- * @private
71
+ * @public
72
72
  */
73
- this._activityTimestamp = undefined;
73
+ this.activityTimestamp = undefined;
74
74
 
75
75
  /**
76
76
  * When the Token was unlocked
77
77
  *
78
78
  * @type {?Date}
79
- * @private
79
+ * @public
80
80
  */
81
- this._unlockTimestamp = undefined;
81
+ this.unlockTimestamp = undefined;
82
82
 
83
83
  /**
84
84
  * When the Token was locked
85
85
  *
86
86
  * @type {?Date}
87
- * @private
87
+ * @public
88
88
  */
89
- this._lockTimestamp = undefined;
89
+ this.lockTimestamp = undefined;
90
90
 
91
91
  /**
92
92
  * Whether the Token has been deleted
93
93
  *
94
94
  * @type {boolean}
95
- * @private
95
+ * @public
96
96
  */
97
- this._deleted = undefined;
97
+ this.deleted = undefined;
98
98
 
99
99
  /**
100
100
  * When the Token was last updated
101
101
  *
102
102
  * @type {Date}
103
- * @private
103
+ * @public
104
104
  */
105
- this._updateTimestamp = undefined;
106
- }
107
-
108
- /**
109
- * The Token ID
110
- *
111
- * @public
112
- * @type {string}
113
- */
114
- get id()
115
- {
116
- return this._id;
117
- }
118
-
119
- /**
120
- * The Account this Token belongs to
121
- *
122
- * @public
123
- * @type {string}
124
- */
125
- get accountId()
126
- {
127
- return this._accountId;
128
- }
129
-
130
- /**
131
- * The Account Type
132
- *
133
- * @public
134
- * @type {string}
135
- */
136
- get accountType()
137
- {
138
- return this._accountType;
139
- }
140
-
141
- /**
142
- * When the Token was issued
143
- *
144
- * @public
145
- * @type {Date}
146
- */
147
- get issueTimestamp()
148
- {
149
- return this._issueTimestamp;
150
- }
151
-
152
- /**
153
- * When the Token will expire
154
- *
155
- * @public
156
- * @type {Date}
157
- */
158
- get expireTimestamp()
159
- {
160
- return this._expireTimestamp;
161
- }
162
-
163
- /**
164
- * When the last API call using this Token was made
165
- *
166
- * @public
167
- * @type {?Date}
168
- */
169
- get activityTimestamp()
170
- {
171
- return this._activityTimestamp;
172
- }
173
-
174
- /**
175
- * When the Token was unlocked
176
- *
177
- * @public
178
- * @type {?Date}
179
- */
180
- get unlockTimestamp()
181
- {
182
- return this._unlockTimestamp;
183
- }
184
-
185
- /**
186
- * When the Token was locked
187
- *
188
- * @public
189
- * @type {?Date}
190
- */
191
- get lockTimestamp()
192
- {
193
- return this._lockTimestamp;
194
- }
195
-
196
- /**
197
- * Whether the Token has been deleted
198
- *
199
- * @public
200
- * @type {boolean}
201
- */
202
- get deleted()
203
- {
204
- return this._deleted;
205
- }
206
-
207
- /**
208
- * When the Token was last updated
209
- *
210
- * @public
211
- * @type {Date}
212
- */
213
- get updateTimestamp()
214
- {
215
- return this._updateTimestamp;
216
- }
217
-
218
- /**
219
- * Convert this **TokenModel** to a JSON Object
220
- *
221
- * @public
222
- * @return {Object<string, any>}
223
- */
224
- toJSON()
225
- {
226
- return {
227
- id: this._id,
228
- accountId: this._accountId,
229
- accountType: this._accountType,
230
- issueTimestamp: this._issueTimestamp,
231
- expireTimestamp: this._expireTimestamp,
232
- activityTimestamp: this._activityTimestamp,
233
- unlockTimestamp: this._unlockTimestamp,
234
- lockTimestamp: this._lockTimestamp,
235
- deleted: this._deleted,
236
- updateTimestamp: this._updateTimestamp
237
- };
105
+ this.updateTimestamp = undefined;
238
106
  }
239
107
 
240
108
  /**
@@ -267,7 +135,7 @@ class TokenModel extends BaseModel
267
135
 
268
136
  if('id' in jsonObject)
269
137
  {
270
- model._id = (function(){
138
+ model.id = (function(){
271
139
  if(typeof jsonObject['id'] !== 'string')
272
140
  {
273
141
  return String(jsonObject['id']);
@@ -279,7 +147,7 @@ class TokenModel extends BaseModel
279
147
 
280
148
  if('accountId' in jsonObject)
281
149
  {
282
- model._accountId = (function(){
150
+ model.accountId = (function(){
283
151
  if(typeof jsonObject['accountId'] !== 'string')
284
152
  {
285
153
  return String(jsonObject['accountId']);
@@ -291,7 +159,7 @@ class TokenModel extends BaseModel
291
159
 
292
160
  if('accountType' in jsonObject)
293
161
  {
294
- model._accountType = (function(){
162
+ model.accountType = (function(){
295
163
  if(typeof jsonObject['accountType'] !== 'string')
296
164
  {
297
165
  return String(jsonObject['accountType']);
@@ -303,7 +171,7 @@ class TokenModel extends BaseModel
303
171
 
304
172
  if('issueTimestamp' in jsonObject)
305
173
  {
306
- model._issueTimestamp = (function(){
174
+ model.issueTimestamp = (function(){
307
175
  if(typeof jsonObject['issueTimestamp'] !== 'string')
308
176
  {
309
177
  return new Date(String(jsonObject['issueTimestamp']));
@@ -315,7 +183,7 @@ class TokenModel extends BaseModel
315
183
 
316
184
  if('expireTimestamp' in jsonObject)
317
185
  {
318
- model._expireTimestamp = (function(){
186
+ model.expireTimestamp = (function(){
319
187
  if(typeof jsonObject['expireTimestamp'] !== 'string')
320
188
  {
321
189
  return new Date(String(jsonObject['expireTimestamp']));
@@ -327,7 +195,7 @@ class TokenModel extends BaseModel
327
195
 
328
196
  if('activityTimestamp' in jsonObject)
329
197
  {
330
- model._activityTimestamp = (function(){
198
+ model.activityTimestamp = (function(){
331
199
  if(jsonObject['activityTimestamp'] === null)
332
200
  {
333
201
  return null;
@@ -344,7 +212,7 @@ class TokenModel extends BaseModel
344
212
 
345
213
  if('unlockTimestamp' in jsonObject)
346
214
  {
347
- model._unlockTimestamp = (function(){
215
+ model.unlockTimestamp = (function(){
348
216
  if(jsonObject['unlockTimestamp'] === null)
349
217
  {
350
218
  return null;
@@ -361,7 +229,7 @@ class TokenModel extends BaseModel
361
229
 
362
230
  if('lockTimestamp' in jsonObject)
363
231
  {
364
- model._lockTimestamp = (function(){
232
+ model.lockTimestamp = (function(){
365
233
  if(jsonObject['lockTimestamp'] === null)
366
234
  {
367
235
  return null;
@@ -378,7 +246,7 @@ class TokenModel extends BaseModel
378
246
 
379
247
  if('deleted' in jsonObject)
380
248
  {
381
- model._deleted = (function(){
249
+ model.deleted = (function(){
382
250
  if(typeof jsonObject['deleted'] !== 'boolean')
383
251
  {
384
252
  return Boolean(jsonObject['deleted']);
@@ -390,7 +258,7 @@ class TokenModel extends BaseModel
390
258
 
391
259
  if('updateTimestamp' in jsonObject)
392
260
  {
393
- model._updateTimestamp = (function(){
261
+ model.updateTimestamp = (function(){
394
262
  if(typeof jsonObject['updateTimestamp'] !== 'string')
395
263
  {
396
264
  return new Date(String(jsonObject['updateTimestamp']));
@@ -28,233 +28,89 @@ class UserAccountActionTokenModel extends BaseModel
28
28
  * The User Account Action 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 Action 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 Company this Action Token belongs to
45
45
  *
46
46
  * @type {string}
47
- * @private
47
+ * @public
48
48
  */
49
- this._companyId = undefined;
49
+ this.companyId = undefined;
50
50
 
51
51
  /**
52
52
  * The Action that can be Performed using this Action Token
53
53
  *
54
54
  * @type {string}
55
- * @private
55
+ * @public
56
56
  */
57
- this._action = undefined;
57
+ this.action = undefined;
58
58
 
59
59
  /**
60
60
  * When the Action Token was issued
61
61
  *
62
62
  * @type {Date}
63
- * @private
63
+ * @public
64
64
  */
65
- this._issueTimestamp = undefined;
65
+ this.issueTimestamp = undefined;
66
66
 
67
67
  /**
68
68
  * When the Action Token will expire
69
69
  *
70
70
  * @type {Date}
71
- * @private
71
+ * @public
72
72
  */
73
- this._expireTimestamp = undefined;
73
+ this.expireTimestamp = undefined;
74
74
 
75
75
  /**
76
76
  * When the last API call using this Action Token was made
77
77
  *
78
78
  * @type {?Date}
79
- * @private
79
+ * @public
80
80
  */
81
- this._activityTimestamp = undefined;
81
+ this.activityTimestamp = undefined;
82
82
 
83
83
  /**
84
84
  * When the Action was Completed
85
85
  *
86
86
  * @type {?Date}
87
- * @private
87
+ * @public
88
88
  */
89
- this._completedTimestamp = undefined;
89
+ this.completedTimestamp = undefined;
90
90
 
91
91
  /**
92
92
  * When the Action Email was Sent
93
93
  *
94
94
  * @type {?Date}
95
- * @private
95
+ * @public
96
96
  */
97
- this._emailTimestamp = undefined;
97
+ this.emailTimestamp = undefined;
98
98
 
99
99
  /**
100
100
  * Whether the User Account Action Token has been deleted
101
101
  *
102
102
  * @type {boolean}
103
- * @private
103
+ * @public
104
104
  */
105
- this._deleted = undefined;
105
+ this.deleted = undefined;
106
106
 
107
107
  /**
108
108
  * When the User Account Action Token was last updated
109
109
  *
110
110
  * @type {Date}
111
- * @private
111
+ * @public
112
112
  */
113
- this._updateTimestamp = undefined;
114
- }
115
-
116
- /**
117
- * The User Account Action Token ID
118
- *
119
- * @public
120
- * @type {string}
121
- */
122
- get id()
123
- {
124
- return this._id;
125
- }
126
-
127
- /**
128
- * The Account this Action Token belongs to
129
- *
130
- * @public
131
- * @type {string}
132
- */
133
- get accountId()
134
- {
135
- return this._accountId;
136
- }
137
-
138
- /**
139
- * The Company this Action Token belongs to
140
- *
141
- * @public
142
- * @type {string}
143
- */
144
- get companyId()
145
- {
146
- return this._companyId;
147
- }
148
-
149
- /**
150
- * The Action that can be Performed using this Action Token
151
- *
152
- * @public
153
- * @type {string}
154
- */
155
- get action()
156
- {
157
- return this._action;
158
- }
159
-
160
- /**
161
- * When the Action Token was issued
162
- *
163
- * @public
164
- * @type {Date}
165
- */
166
- get issueTimestamp()
167
- {
168
- return this._issueTimestamp;
169
- }
170
-
171
- /**
172
- * When the Action Token will expire
173
- *
174
- * @public
175
- * @type {Date}
176
- */
177
- get expireTimestamp()
178
- {
179
- return this._expireTimestamp;
180
- }
181
-
182
- /**
183
- * When the last API call using this Action Token was made
184
- *
185
- * @public
186
- * @type {?Date}
187
- */
188
- get activityTimestamp()
189
- {
190
- return this._activityTimestamp;
191
- }
192
-
193
- /**
194
- * When the Action was Completed
195
- *
196
- * @public
197
- * @type {?Date}
198
- */
199
- get completedTimestamp()
200
- {
201
- return this._completedTimestamp;
202
- }
203
-
204
- /**
205
- * When the Action Email was Sent
206
- *
207
- * @public
208
- * @type {?Date}
209
- */
210
- get emailTimestamp()
211
- {
212
- return this._emailTimestamp;
213
- }
214
-
215
- /**
216
- * Whether the User Account Action Token has been deleted
217
- *
218
- * @public
219
- * @type {boolean}
220
- */
221
- get deleted()
222
- {
223
- return this._deleted;
224
- }
225
-
226
- /**
227
- * When the User Account Action Token was last updated
228
- *
229
- * @public
230
- * @type {Date}
231
- */
232
- get updateTimestamp()
233
- {
234
- return this._updateTimestamp;
235
- }
236
-
237
- /**
238
- * Convert this **UserAccountActionTokenModel** to a JSON Object
239
- *
240
- * @public
241
- * @return {Object<string, any>}
242
- */
243
- toJSON()
244
- {
245
- return {
246
- id: this._id,
247
- accountId: this._accountId,
248
- companyId: this._companyId,
249
- action: this._action,
250
- issueTimestamp: this._issueTimestamp,
251
- expireTimestamp: this._expireTimestamp,
252
- activityTimestamp: this._activityTimestamp,
253
- completedTimestamp: this._completedTimestamp,
254
- emailTimestamp: this._emailTimestamp,
255
- deleted: this._deleted,
256
- updateTimestamp: this._updateTimestamp
257
- };
113
+ this.updateTimestamp = undefined;
258
114
  }
259
115
 
260
116
  /**
@@ -287,7 +143,7 @@ class UserAccountActionTokenModel extends BaseModel
287
143
 
288
144
  if('id' in jsonObject)
289
145
  {
290
- model._id = (function(){
146
+ model.id = (function(){
291
147
  if(typeof jsonObject['id'] !== 'string')
292
148
  {
293
149
  return String(jsonObject['id']);
@@ -299,7 +155,7 @@ class UserAccountActionTokenModel extends BaseModel
299
155
 
300
156
  if('accountId' in jsonObject)
301
157
  {
302
- model._accountId = (function(){
158
+ model.accountId = (function(){
303
159
  if(typeof jsonObject['accountId'] !== 'string')
304
160
  {
305
161
  return String(jsonObject['accountId']);
@@ -311,7 +167,7 @@ class UserAccountActionTokenModel extends BaseModel
311
167
 
312
168
  if('companyId' in jsonObject)
313
169
  {
314
- model._companyId = (function(){
170
+ model.companyId = (function(){
315
171
  if(typeof jsonObject['companyId'] !== 'string')
316
172
  {
317
173
  return String(jsonObject['companyId']);
@@ -323,7 +179,7 @@ class UserAccountActionTokenModel extends BaseModel
323
179
 
324
180
  if('action' in jsonObject)
325
181
  {
326
- model._action = (function(){
182
+ model.action = (function(){
327
183
  if(typeof jsonObject['action'] !== 'string')
328
184
  {
329
185
  return String(jsonObject['action']);
@@ -335,7 +191,7 @@ class UserAccountActionTokenModel extends BaseModel
335
191
 
336
192
  if('issueTimestamp' in jsonObject)
337
193
  {
338
- model._issueTimestamp = (function(){
194
+ model.issueTimestamp = (function(){
339
195
  if(typeof jsonObject['issueTimestamp'] !== 'string')
340
196
  {
341
197
  return new Date(String(jsonObject['issueTimestamp']));
@@ -347,7 +203,7 @@ class UserAccountActionTokenModel extends BaseModel
347
203
 
348
204
  if('expireTimestamp' in jsonObject)
349
205
  {
350
- model._expireTimestamp = (function(){
206
+ model.expireTimestamp = (function(){
351
207
  if(typeof jsonObject['expireTimestamp'] !== 'string')
352
208
  {
353
209
  return new Date(String(jsonObject['expireTimestamp']));
@@ -359,7 +215,7 @@ class UserAccountActionTokenModel extends BaseModel
359
215
 
360
216
  if('activityTimestamp' in jsonObject)
361
217
  {
362
- model._activityTimestamp = (function(){
218
+ model.activityTimestamp = (function(){
363
219
  if(jsonObject['activityTimestamp'] === null)
364
220
  {
365
221
  return null;
@@ -376,7 +232,7 @@ class UserAccountActionTokenModel extends BaseModel
376
232
 
377
233
  if('completedTimestamp' in jsonObject)
378
234
  {
379
- model._completedTimestamp = (function(){
235
+ model.completedTimestamp = (function(){
380
236
  if(jsonObject['completedTimestamp'] === null)
381
237
  {
382
238
  return null;
@@ -393,7 +249,7 @@ class UserAccountActionTokenModel extends BaseModel
393
249
 
394
250
  if('emailTimestamp' in jsonObject)
395
251
  {
396
- model._emailTimestamp = (function(){
252
+ model.emailTimestamp = (function(){
397
253
  if(jsonObject['emailTimestamp'] === null)
398
254
  {
399
255
  return null;
@@ -410,7 +266,7 @@ class UserAccountActionTokenModel extends BaseModel
410
266
 
411
267
  if('deleted' in jsonObject)
412
268
  {
413
- model._deleted = (function(){
269
+ model.deleted = (function(){
414
270
  if(typeof jsonObject['deleted'] !== 'boolean')
415
271
  {
416
272
  return Boolean(jsonObject['deleted']);
@@ -422,7 +278,7 @@ class UserAccountActionTokenModel extends BaseModel
422
278
 
423
279
  if('updateTimestamp' in jsonObject)
424
280
  {
425
- model._updateTimestamp = (function(){
281
+ model.updateTimestamp = (function(){
426
282
  if(typeof jsonObject['updateTimestamp'] !== 'string')
427
283
  {
428
284
  return new Date(String(jsonObject['updateTimestamp']));