@ricado/api-client 1.4.1 → 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 (137) 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 +4 -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/index.d.ts +834 -1589
  69. package/package.json +1 -1
  70. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  71. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  72. package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  73. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  74. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  75. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  76. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  77. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  78. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  79. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  80. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  81. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  82. package/src/Controllers/Packhouse/Site/PackrunController.js +4 -4
  83. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  84. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  85. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  86. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  87. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  88. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  89. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  90. package/src/Controllers/Site/AlarmController.js +4 -4
  91. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  92. package/src/Controllers/Site/DefinitionController.js +4 -4
  93. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  94. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  95. package/src/Controllers/Site/PointController.js +4 -4
  96. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  97. package/src/Models/AccountPolicyModel.js +21 -117
  98. package/src/Models/ApiAccountModel.js +21 -117
  99. package/src/Models/CompanyModel.js +15 -87
  100. package/src/Models/FirebaseTokenModel.js +24 -132
  101. package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
  102. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
  103. package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
  104. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
  105. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
  106. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
  107. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
  108. package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
  109. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
  110. package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
  111. package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
  112. package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
  113. package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
  114. package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
  115. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
  116. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
  117. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
  118. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
  119. package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
  120. package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
  121. package/src/Models/RTUModel.js +18 -102
  122. package/src/Models/RTUPluginModel.js +15 -87
  123. package/src/Models/Site/AlarmGroupModel.js +27 -144
  124. package/src/Models/Site/AlarmModel.js +57 -294
  125. package/src/Models/Site/DefinitionModel.js +24 -129
  126. package/src/Models/Site/PermanentObjectDataModel.js +30 -159
  127. package/src/Models/Site/PermanentObjectModel.js +27 -144
  128. package/src/Models/Site/PointModel.js +39 -204
  129. package/src/Models/Site/TemporaryObjectModel.js +24 -129
  130. package/src/Models/Site/index.js +0 -2
  131. package/src/Models/SiteModel.js +18 -102
  132. package/src/Models/TokenModel.js +30 -162
  133. package/src/Models/UserAccountActionTokenModel.js +33 -177
  134. package/src/Models/UserAccountModel.js +30 -162
  135. package/src/PackageVersion.js +1 -1
  136. package/lib/Models/Site/BaseSiteModel.js +0 -58
  137. package/src/Models/Site/BaseSiteModel.js +0 -30
@@ -28,153 +28,57 @@ class ApiAccountModel extends BaseModel
28
28
  * The API Account 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
  * API Key
37
37
  *
38
38
  * @type {?string}
39
- * @private
39
+ * @public
40
40
  */
41
- this._key = undefined;
41
+ this.key = undefined;
42
42
 
43
43
  /**
44
44
  * The API Account Name
45
45
  *
46
46
  * @type {string}
47
- * @private
47
+ * @public
48
48
  */
49
- this._name = undefined;
49
+ this.name = undefined;
50
50
 
51
51
  /**
52
52
  * The Company this API Account belongs to
53
53
  *
54
54
  * @type {string}
55
- * @private
55
+ * @public
56
56
  */
57
- this._companyId = undefined;
57
+ this.companyId = undefined;
58
58
 
59
59
  /**
60
60
  * The Policies that apply to this API Account
61
61
  *
62
62
  * @type {string[]}
63
- * @private
63
+ * @public
64
64
  */
65
- this._policies = undefined;
65
+ this.policies = undefined;
66
66
 
67
67
  /**
68
68
  * Whether the API Account has been deleted
69
69
  *
70
70
  * @type {boolean}
71
- * @private
71
+ * @public
72
72
  */
73
- this._deleted = undefined;
73
+ this.deleted = undefined;
74
74
 
75
75
  /**
76
76
  * When the API Account was last updated
77
77
  *
78
78
  * @type {Date}
79
- * @private
79
+ * @public
80
80
  */
81
- this._updateTimestamp = undefined;
82
- }
83
-
84
- /**
85
- * The API Account ID
86
- *
87
- * @public
88
- * @type {string}
89
- */
90
- get id()
91
- {
92
- return this._id;
93
- }
94
-
95
- /**
96
- * API Key
97
- *
98
- * @public
99
- * @type {?string}
100
- */
101
- get key()
102
- {
103
- return this._key;
104
- }
105
-
106
- /**
107
- * The API Account Name
108
- *
109
- * @public
110
- * @type {string}
111
- */
112
- get name()
113
- {
114
- return this._name;
115
- }
116
-
117
- /**
118
- * The Company this API Account belongs to
119
- *
120
- * @public
121
- * @type {string}
122
- */
123
- get companyId()
124
- {
125
- return this._companyId;
126
- }
127
-
128
- /**
129
- * The Policies that apply to this API Account
130
- *
131
- * @public
132
- * @type {string[]}
133
- */
134
- get policies()
135
- {
136
- return this._policies;
137
- }
138
-
139
- /**
140
- * Whether the API Account has been deleted
141
- *
142
- * @public
143
- * @type {boolean}
144
- */
145
- get deleted()
146
- {
147
- return this._deleted;
148
- }
149
-
150
- /**
151
- * When the API Account was last updated
152
- *
153
- * @public
154
- * @type {Date}
155
- */
156
- get updateTimestamp()
157
- {
158
- return this._updateTimestamp;
159
- }
160
-
161
- /**
162
- * Convert this **ApiAccountModel** to a JSON Object
163
- *
164
- * @public
165
- * @return {Object<string, any>}
166
- */
167
- toJSON()
168
- {
169
- return {
170
- id: this._id,
171
- key: this._key,
172
- name: this._name,
173
- companyId: this._companyId,
174
- policies: this._policies,
175
- deleted: this._deleted,
176
- updateTimestamp: this._updateTimestamp
177
- };
81
+ this.updateTimestamp = undefined;
178
82
  }
179
83
 
180
84
  /**
@@ -207,7 +111,7 @@ class ApiAccountModel extends BaseModel
207
111
 
208
112
  if('id' in jsonObject)
209
113
  {
210
- model._id = (function(){
114
+ model.id = (function(){
211
115
  if(typeof jsonObject['id'] !== 'string')
212
116
  {
213
117
  return String(jsonObject['id']);
@@ -219,7 +123,7 @@ class ApiAccountModel extends BaseModel
219
123
 
220
124
  if('key' in jsonObject)
221
125
  {
222
- model._key = (function(){
126
+ model.key = (function(){
223
127
  if(jsonObject['key'] === null)
224
128
  {
225
129
  return null;
@@ -236,7 +140,7 @@ class ApiAccountModel extends BaseModel
236
140
 
237
141
  if('name' in jsonObject)
238
142
  {
239
- model._name = (function(){
143
+ model.name = (function(){
240
144
  if(typeof jsonObject['name'] !== 'string')
241
145
  {
242
146
  return String(jsonObject['name']);
@@ -248,7 +152,7 @@ class ApiAccountModel extends BaseModel
248
152
 
249
153
  if('companyId' in jsonObject)
250
154
  {
251
- model._companyId = (function(){
155
+ model.companyId = (function(){
252
156
  if(typeof jsonObject['companyId'] !== 'string')
253
157
  {
254
158
  return String(jsonObject['companyId']);
@@ -260,7 +164,7 @@ class ApiAccountModel extends BaseModel
260
164
 
261
165
  if('policies' in jsonObject)
262
166
  {
263
- model._policies = (function(){
167
+ model.policies = (function(){
264
168
  if(Array.isArray(jsonObject['policies']) !== true)
265
169
  {
266
170
  return [];
@@ -281,7 +185,7 @@ class ApiAccountModel extends BaseModel
281
185
 
282
186
  if('deleted' in jsonObject)
283
187
  {
284
- model._deleted = (function(){
188
+ model.deleted = (function(){
285
189
  if(typeof jsonObject['deleted'] !== 'boolean')
286
190
  {
287
191
  return Boolean(jsonObject['deleted']);
@@ -293,7 +197,7 @@ class ApiAccountModel extends BaseModel
293
197
 
294
198
  if('updateTimestamp' in jsonObject)
295
199
  {
296
- model._updateTimestamp = (function(){
200
+ model.updateTimestamp = (function(){
297
201
  if(typeof jsonObject['updateTimestamp'] !== 'string')
298
202
  {
299
203
  return new Date(String(jsonObject['updateTimestamp']));
@@ -28,113 +28,41 @@ class CompanyModel extends BaseModel
28
28
  * The Company 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 Company Display Name
37
37
  *
38
38
  * @type {string}
39
- * @private
39
+ * @public
40
40
  */
41
- this._displayName = undefined;
41
+ this.displayName = undefined;
42
42
 
43
43
  /**
44
44
  * The Company Legal Name
45
45
  *
46
46
  * @type {string}
47
- * @private
47
+ * @public
48
48
  */
49
- this._legalName = undefined;
49
+ this.legalName = undefined;
50
50
 
51
51
  /**
52
52
  * Whether the Company has been deleted
53
53
  *
54
54
  * @type {boolean}
55
- * @private
55
+ * @public
56
56
  */
57
- this._deleted = undefined;
57
+ this.deleted = undefined;
58
58
 
59
59
  /**
60
60
  * When the Company was last updated
61
61
  *
62
62
  * @type {Date}
63
- * @private
63
+ * @public
64
64
  */
65
- this._updateTimestamp = undefined;
66
- }
67
-
68
- /**
69
- * The Company ID
70
- *
71
- * @public
72
- * @type {string}
73
- */
74
- get id()
75
- {
76
- return this._id;
77
- }
78
-
79
- /**
80
- * The Company Display Name
81
- *
82
- * @public
83
- * @type {string}
84
- */
85
- get displayName()
86
- {
87
- return this._displayName;
88
- }
89
-
90
- /**
91
- * The Company Legal Name
92
- *
93
- * @public
94
- * @type {string}
95
- */
96
- get legalName()
97
- {
98
- return this._legalName;
99
- }
100
-
101
- /**
102
- * Whether the Company has been deleted
103
- *
104
- * @public
105
- * @type {boolean}
106
- */
107
- get deleted()
108
- {
109
- return this._deleted;
110
- }
111
-
112
- /**
113
- * When the Company was last updated
114
- *
115
- * @public
116
- * @type {Date}
117
- */
118
- get updateTimestamp()
119
- {
120
- return this._updateTimestamp;
121
- }
122
-
123
- /**
124
- * Convert this **CompanyModel** to a JSON Object
125
- *
126
- * @public
127
- * @return {Object<string, any>}
128
- */
129
- toJSON()
130
- {
131
- return {
132
- id: this._id,
133
- displayName: this._displayName,
134
- legalName: this._legalName,
135
- deleted: this._deleted,
136
- updateTimestamp: this._updateTimestamp
137
- };
65
+ this.updateTimestamp = undefined;
138
66
  }
139
67
 
140
68
  /**
@@ -167,7 +95,7 @@ class CompanyModel extends BaseModel
167
95
 
168
96
  if('id' in jsonObject)
169
97
  {
170
- model._id = (function(){
98
+ model.id = (function(){
171
99
  if(typeof jsonObject['id'] !== 'string')
172
100
  {
173
101
  return String(jsonObject['id']);
@@ -179,7 +107,7 @@ class CompanyModel extends BaseModel
179
107
 
180
108
  if('displayName' in jsonObject)
181
109
  {
182
- model._displayName = (function(){
110
+ model.displayName = (function(){
183
111
  if(typeof jsonObject['displayName'] !== 'string')
184
112
  {
185
113
  return String(jsonObject['displayName']);
@@ -191,7 +119,7 @@ class CompanyModel extends BaseModel
191
119
 
192
120
  if('legalName' in jsonObject)
193
121
  {
194
- model._legalName = (function(){
122
+ model.legalName = (function(){
195
123
  if(typeof jsonObject['legalName'] !== 'string')
196
124
  {
197
125
  return String(jsonObject['legalName']);
@@ -203,7 +131,7 @@ class CompanyModel extends BaseModel
203
131
 
204
132
  if('deleted' in jsonObject)
205
133
  {
206
- model._deleted = (function(){
134
+ model.deleted = (function(){
207
135
  if(typeof jsonObject['deleted'] !== 'boolean')
208
136
  {
209
137
  return Boolean(jsonObject['deleted']);
@@ -215,7 +143,7 @@ class CompanyModel extends BaseModel
215
143
 
216
144
  if('updateTimestamp' in jsonObject)
217
145
  {
218
- model._updateTimestamp = (function(){
146
+ model.updateTimestamp = (function(){
219
147
  if(typeof jsonObject['updateTimestamp'] !== 'string')
220
148
  {
221
149
  return new Date(String(jsonObject['updateTimestamp']));
@@ -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']));