@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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackrunController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/lib/Controllers/Site/AlarmController.js +4 -4
- package/lib/Controllers/Site/AlarmGroupController.js +4 -4
- package/lib/Controllers/Site/DefinitionController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/lib/Controllers/Site/PointController.js +6 -4
- package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
- package/lib/Models/AccountPolicyModel.js +26 -130
- package/lib/Models/ApiAccountModel.js +26 -130
- package/lib/Models/CompanyModel.js +20 -98
- package/lib/Models/FirebaseTokenModel.js +29 -146
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +40 -192
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +55 -272
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +43 -208
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +31 -144
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +49 -240
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +55 -272
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +37 -176
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +31 -144
- package/lib/Models/Packhouse/Site/PackTypeModel.js +37 -176
- package/lib/Models/Packhouse/Site/PackingLineModel.js +58 -288
- package/lib/Models/Packhouse/Site/PackrunModel.js +58 -288
- package/lib/Models/Packhouse/Site/RejectBinModel.js +40 -192
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +49 -240
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +43 -208
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +49 -240
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +124 -640
- package/lib/Models/Packhouse/Site/ShiftModel.js +70 -352
- package/lib/Models/Packhouse/Site/VarietyModel.js +37 -176
- package/lib/Models/RTUModel.js +23 -114
- package/lib/Models/RTUPluginModel.js +20 -98
- package/lib/Models/Site/AlarmGroupModel.js +34 -160
- package/lib/Models/Site/AlarmModel.js +64 -320
- package/lib/Models/Site/DefinitionModel.js +31 -144
- package/lib/Models/Site/PermanentObjectDataModel.js +37 -176
- package/lib/Models/Site/PermanentObjectModel.js +34 -160
- package/lib/Models/Site/PointModel.js +46 -224
- package/lib/Models/Site/TemporaryObjectModel.js +31 -144
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +23 -114
- package/lib/Models/TokenModel.js +35 -178
- package/lib/Models/UserAccountActionTokenModel.js +38 -194
- package/lib/Models/UserAccountModel.js +35 -178
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +9 -1
- package/lib/index.d.ts +842 -1591
- package/lib/index.js +67 -38
- package/package.json +2 -2
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackrunController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +6 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- package/src/Models/AccountPolicyModel.js +21 -117
- package/src/Models/ApiAccountModel.js +21 -117
- package/src/Models/CompanyModel.js +15 -87
- package/src/Models/FirebaseTokenModel.js +24 -132
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +33 -174
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
- package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
- package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
- package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
- package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
- package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
- package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +27 -144
- package/src/Models/Site/AlarmModel.js +57 -294
- package/src/Models/Site/DefinitionModel.js +24 -129
- package/src/Models/Site/PermanentObjectDataModel.js +30 -159
- package/src/Models/Site/PermanentObjectModel.js +27 -144
- package/src/Models/Site/PointModel.js +39 -204
- package/src/Models/Site/TemporaryObjectModel.js +24 -129
- package/src/Models/Site/index.js +0 -2
- package/src/Models/SiteModel.js +18 -102
- package/src/Models/TokenModel.js +30 -162
- package/src/Models/UserAccountActionTokenModel.js +33 -177
- package/src/Models/UserAccountModel.js +30 -162
- package/src/PackageVersion.js +1 -1
- package/src/Points.js +11 -1
- package/src/index.js +35 -3
- package/lib/Models/Site/BaseSiteModel.js +0 -58
- package/src/Models/Site/BaseSiteModel.js +0 -30
package/src/Models/TokenModel.js
CHANGED
|
@@ -28,213 +28,81 @@ class TokenModel extends BaseModel
|
|
|
28
28
|
* The Token ID
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @
|
|
31
|
+
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.
|
|
33
|
+
this.id = undefined;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Account this Token belongs to
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.
|
|
41
|
+
this.accountId = undefined;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The Account Type
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
|
-
* @
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.
|
|
49
|
+
this.accountType = undefined;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* When the Token was issued
|
|
53
53
|
*
|
|
54
54
|
* @type {Date}
|
|
55
|
-
* @
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.
|
|
57
|
+
this.issueTimestamp = undefined;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* When the Token will expire
|
|
61
61
|
*
|
|
62
62
|
* @type {Date}
|
|
63
|
-
* @
|
|
63
|
+
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.
|
|
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
|
-
* @
|
|
71
|
+
* @public
|
|
72
72
|
*/
|
|
73
|
-
this.
|
|
73
|
+
this.activityTimestamp = undefined;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* When the Token was unlocked
|
|
77
77
|
*
|
|
78
78
|
* @type {?Date}
|
|
79
|
-
* @
|
|
79
|
+
* @public
|
|
80
80
|
*/
|
|
81
|
-
this.
|
|
81
|
+
this.unlockTimestamp = undefined;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* When the Token was locked
|
|
85
85
|
*
|
|
86
86
|
* @type {?Date}
|
|
87
|
-
* @
|
|
87
|
+
* @public
|
|
88
88
|
*/
|
|
89
|
-
this.
|
|
89
|
+
this.lockTimestamp = undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Whether the Token has been deleted
|
|
93
93
|
*
|
|
94
94
|
* @type {boolean}
|
|
95
|
-
* @
|
|
95
|
+
* @public
|
|
96
96
|
*/
|
|
97
|
-
this.
|
|
97
|
+
this.deleted = undefined;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* When the Token was last updated
|
|
101
101
|
*
|
|
102
102
|
* @type {Date}
|
|
103
|
-
* @
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
* @
|
|
31
|
+
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.
|
|
33
|
+
this.id = undefined;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Account this Action Token belongs to
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.
|
|
41
|
+
this.accountId = undefined;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The Company this Action Token belongs to
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
|
-
* @
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.
|
|
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
|
-
* @
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.
|
|
57
|
+
this.action = undefined;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* When the Action Token was issued
|
|
61
61
|
*
|
|
62
62
|
* @type {Date}
|
|
63
|
-
* @
|
|
63
|
+
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.
|
|
65
|
+
this.issueTimestamp = undefined;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* When the Action Token will expire
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
71
|
-
* @
|
|
71
|
+
* @public
|
|
72
72
|
*/
|
|
73
|
-
this.
|
|
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
|
-
* @
|
|
79
|
+
* @public
|
|
80
80
|
*/
|
|
81
|
-
this.
|
|
81
|
+
this.activityTimestamp = undefined;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* When the Action was Completed
|
|
85
85
|
*
|
|
86
86
|
* @type {?Date}
|
|
87
|
-
* @
|
|
87
|
+
* @public
|
|
88
88
|
*/
|
|
89
|
-
this.
|
|
89
|
+
this.completedTimestamp = undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* When the Action Email was Sent
|
|
93
93
|
*
|
|
94
94
|
* @type {?Date}
|
|
95
|
-
* @
|
|
95
|
+
* @public
|
|
96
96
|
*/
|
|
97
|
-
this.
|
|
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
|
-
* @
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
|
-
this.
|
|
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
|
-
* @
|
|
111
|
+
* @public
|
|
112
112
|
*/
|
|
113
|
-
this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
281
|
+
model.updateTimestamp = (function(){
|
|
426
282
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
427
283
|
{
|
|
428
284
|
return new Date(String(jsonObject['updateTimestamp']));
|