@ricado/api-client 2.2.0 → 2.3.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 (98) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/DataItems/PointValueItem.js +3 -3
  3. package/lib/Models/AccountPolicyModel.js +7 -7
  4. package/lib/Models/ApiAccountModel.js +7 -7
  5. package/lib/Models/CompanyModel.js +5 -5
  6. package/lib/Models/FirebaseTokenModel.js +8 -8
  7. package/lib/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  8. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  9. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  10. package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  11. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  12. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  13. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  14. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  15. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  16. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  17. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  18. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  19. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  20. package/lib/Models/Packhouse/Site/PackingLineModel.js +16 -16
  21. package/lib/Models/Packhouse/Site/PackrunModel.js +18 -18
  22. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  23. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  24. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  25. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  26. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  27. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  28. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  29. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  30. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  31. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  32. package/lib/Models/RTUModel.js +6 -6
  33. package/lib/Models/RTUPluginModel.js +5 -5
  34. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  35. package/lib/Models/Site/AlarmModel.js +17 -17
  36. package/lib/Models/Site/DefinitionModel.js +6 -6
  37. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  38. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  39. package/lib/Models/Site/PointModel.js +11 -11
  40. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  41. package/lib/Models/SiteModel.js +6 -6
  42. package/lib/Models/TokenModel.js +10 -10
  43. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  44. package/lib/Models/UserAccountModel.js +10 -10
  45. package/lib/PackageVersion.js +1 -1
  46. package/lib/Points.js +22 -12
  47. package/lib/WebSocketHelper.js +29 -13
  48. package/lib/index.d.ts +361 -361
  49. package/lib/index.js +3 -3
  50. package/package.json +1 -1
  51. package/src/DataItems/PointValueItem.js +3 -3
  52. package/src/Models/AccountPolicyModel.js +7 -7
  53. package/src/Models/ApiAccountModel.js +7 -7
  54. package/src/Models/CompanyModel.js +5 -5
  55. package/src/Models/FirebaseTokenModel.js +8 -8
  56. package/src/Models/Packhouse/Site/BinTipBinModel.js +13 -13
  57. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  58. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  59. package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -14
  60. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  61. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  62. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  63. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  64. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  65. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  66. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
  67. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  68. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  69. package/src/Models/Packhouse/Site/PackingLineModel.js +16 -16
  70. package/src/Models/Packhouse/Site/PackrunModel.js +18 -18
  71. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  72. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
  73. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  74. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  75. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
  76. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  77. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
  78. package/src/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
  79. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
  80. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  81. package/src/Models/RTUModel.js +6 -6
  82. package/src/Models/RTUPluginModel.js +5 -5
  83. package/src/Models/Site/AlarmGroupModel.js +7 -7
  84. package/src/Models/Site/AlarmModel.js +17 -17
  85. package/src/Models/Site/DefinitionModel.js +6 -6
  86. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  87. package/src/Models/Site/PermanentObjectModel.js +7 -7
  88. package/src/Models/Site/PointModel.js +11 -11
  89. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  90. package/src/Models/SiteModel.js +6 -6
  91. package/src/Models/TokenModel.js +10 -10
  92. package/src/Models/UserAccountActionTokenModel.js +11 -11
  93. package/src/Models/UserAccountModel.js +10 -10
  94. package/src/PackageVersion.js +1 -1
  95. package/src/Points.js +24 -12
  96. package/src/WebSocketHelper.js +34 -13
  97. package/src/index.js +3 -3
  98. package/types/tslint.json +2 -1
@@ -62,7 +62,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Alarm belongs to
68
68
  *
@@ -70,7 +70,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Alarm Group this Alarm is a part of
76
76
  *
@@ -78,7 +78,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.groupId = undefined;
81
+ _this.groupId = "";
82
82
  /**
83
83
  * The Alarm Name
84
84
  *
@@ -86,7 +86,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.name = undefined;
89
+ _this.name = "";
90
90
  /**
91
91
  * Whether the Alarm is Critical or not
92
92
  *
@@ -94,7 +94,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.critical = undefined;
97
+ _this.critical = false;
98
98
  /**
99
99
  * The Python Script with the Conditions to Trip this Alarm
100
100
  *
@@ -102,7 +102,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.tripScript = undefined;
105
+ _this.tripScript = "";
106
106
  /**
107
107
  * The Python Script with the Conditions to Reset this Alarm
108
108
  *
@@ -110,7 +110,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.resetScript = undefined;
113
+ _this.resetScript = null;
114
114
  /**
115
115
  * The Delay before this Alarm will Trip in Milliseconds
116
116
  *
@@ -118,7 +118,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.tripDelay = undefined;
121
+ _this.tripDelay = 0;
122
122
  /**
123
123
  * The Delay before this Alarm will Reset in Milliseconds
124
124
  *
@@ -126,7 +126,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.resetDelay = undefined;
129
+ _this.resetDelay = 0;
130
130
  /**
131
131
  * Whether the Alarm should Automatically Reset
132
132
  *
@@ -134,7 +134,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.autoReset = undefined;
137
+ _this.autoReset = false;
138
138
  /**
139
139
  * The Delay before this Alarm should Auto Reset in Milliseconds
140
140
  *
@@ -142,7 +142,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.autoResetDelay = undefined;
145
+ _this.autoResetDelay = 0;
146
146
  /**
147
147
  * The Point used to store the Alarm Tripped State
148
148
  *
@@ -150,7 +150,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
150
150
  * @public
151
151
  */
152
152
 
153
- _this.trippedStatePoint = undefined;
153
+ _this.trippedStatePoint = 0;
154
154
  /**
155
155
  * The Point used to store the Alarm Tripped Timestamp
156
156
  *
@@ -158,7 +158,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
158
158
  * @public
159
159
  */
160
160
 
161
- _this.trippedTimestampPoint = undefined;
161
+ _this.trippedTimestampPoint = 0;
162
162
  /**
163
163
  * The Point used to store the Alarm's Internal Trip Start
164
164
  *
@@ -166,7 +166,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
166
166
  * @public
167
167
  */
168
168
 
169
- _this.internalTripStartPoint = undefined;
169
+ _this.internalTripStartPoint = 0;
170
170
  /**
171
171
  * The Point used to store the Alarm's Internal Reset Start
172
172
  *
@@ -174,7 +174,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
174
174
  * @public
175
175
  */
176
176
 
177
- _this.internalResetStartPoint = undefined;
177
+ _this.internalResetStartPoint = 0;
178
178
  /**
179
179
  * Whether the Alarm has been deleted
180
180
  *
@@ -182,7 +182,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
182
182
  * @public
183
183
  */
184
184
 
185
- _this.deleted = undefined;
185
+ _this.deleted = false;
186
186
  /**
187
187
  * When the Alarm was last updated
188
188
  *
@@ -190,7 +190,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
190
190
  * @public
191
191
  */
192
192
 
193
- _this.updateTimestamp = undefined;
193
+ _this.updateTimestamp = new Date();
194
194
  /**
195
195
  * The Site ID associated with this Alarm
196
196
  *
@@ -62,7 +62,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Definition Key Index
68
68
  *
@@ -70,7 +70,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.keyIndex = undefined;
73
+ _this.keyIndex = "";
74
74
  /**
75
75
  * The Definition Type
76
76
  *
@@ -78,7 +78,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.type = undefined;
81
+ _this.type = "";
82
82
  /**
83
83
  * The Definition Data
84
84
  *
@@ -86,7 +86,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.data = undefined;
89
+ _this.data = {};
90
90
  /**
91
91
  * Whether the Definition has been deleted
92
92
  *
@@ -94,7 +94,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.deleted = undefined;
97
+ _this.deleted = false;
98
98
  /**
99
99
  * When the Definition was last updated
100
100
  *
@@ -102,7 +102,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.updateTimestamp = undefined;
105
+ _this.updateTimestamp = new Date();
106
106
  /**
107
107
  * The Site ID associated with this Definition
108
108
  *
@@ -62,7 +62,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * An Optional Key Index for this Data
68
68
  *
@@ -70,7 +70,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.keyIndex = undefined;
73
+ _this.keyIndex = "";
74
74
  /**
75
75
  * The Permanent Object this Data is related to
76
76
  *
@@ -78,7 +78,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.permanentObjectId = undefined;
81
+ _this.permanentObjectId = "";
82
82
  /**
83
83
  * The Permanent Object Data Type
84
84
  *
@@ -86,7 +86,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.type = undefined;
89
+ _this.type = "";
90
90
  /**
91
91
  * The Timestamp when this Data was Created
92
92
  *
@@ -94,7 +94,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.timestamp = undefined;
97
+ _this.timestamp = new Date();
98
98
  /**
99
99
  * The Data Object specific to this Permanent Object Data Type
100
100
  *
@@ -102,7 +102,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.data = undefined;
105
+ _this.data = {};
106
106
  /**
107
107
  * Whether the Permanent Object Data has been deleted
108
108
  *
@@ -110,7 +110,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.deleted = undefined;
113
+ _this.deleted = false;
114
114
  /**
115
115
  * When the Permanent Object Data was last updated
116
116
  *
@@ -118,7 +118,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.updateTimestamp = undefined;
121
+ _this.updateTimestamp = new Date();
122
122
  /**
123
123
  * The Site ID associated with this Permanent Object Data
124
124
  *
@@ -62,7 +62,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The RTU this Permanent Object belongs to
68
68
  *
@@ -70,7 +70,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Permanent Object Key Index
76
76
  *
@@ -78,7 +78,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.keyIndex = undefined;
81
+ _this.keyIndex = "";
82
82
  /**
83
83
  * The Permanent Object Type
84
84
  *
@@ -86,7 +86,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.type = undefined;
89
+ _this.type = "";
90
90
  /**
91
91
  * The Permanent Object Definition
92
92
  *
@@ -94,7 +94,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.definition = undefined;
97
+ _this.definition = {};
98
98
  /**
99
99
  * Whether the Permanent Object has been deleted
100
100
  *
@@ -102,7 +102,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.deleted = undefined;
105
+ _this.deleted = false;
106
106
  /**
107
107
  * When the Permanent Object was last updated
108
108
  *
@@ -110,7 +110,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.updateTimestamp = undefined;
113
+ _this.updateTimestamp = new Date();
114
114
  /**
115
115
  * The Site ID associated with this Permanent Object
116
116
  *
@@ -62,7 +62,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = 0;
66
66
  /**
67
67
  * The RTU this Point belongs to
68
68
  *
@@ -70,7 +70,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.rtuId = undefined;
73
+ _this.rtuId = null;
74
74
  /**
75
75
  * The Plugin ID
76
76
  *
@@ -78,7 +78,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.pluginId = undefined;
81
+ _this.pluginId = null;
82
82
  /**
83
83
  * The Point Name
84
84
  *
@@ -86,7 +86,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.name = undefined;
89
+ _this.name = "";
90
90
  /**
91
91
  * The Point Type
92
92
  *
@@ -94,7 +94,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.type = undefined;
97
+ _this.type = "";
98
98
  /**
99
99
  * The Point's Value Type
100
100
  *
@@ -102,7 +102,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.valueType = undefined;
105
+ _this.valueType = "";
106
106
  /**
107
107
  * The Permissions
108
108
  *
@@ -110,7 +110,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
110
110
  * @public
111
111
  */
112
112
 
113
- _this.permissions = undefined;
113
+ _this.permissions = "";
114
114
  /**
115
115
  * Whether the Point is Enabled
116
116
  *
@@ -118,7 +118,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
118
118
  * @public
119
119
  */
120
120
 
121
- _this.enabled = undefined;
121
+ _this.enabled = false;
122
122
  /**
123
123
  * The Point Settings
124
124
  *
@@ -126,7 +126,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
126
126
  * @public
127
127
  */
128
128
 
129
- _this.settings = undefined;
129
+ _this.settings = {};
130
130
  /**
131
131
  * Whether the Point has been deleted
132
132
  *
@@ -134,7 +134,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
134
134
  * @public
135
135
  */
136
136
 
137
- _this.deleted = undefined;
137
+ _this.deleted = false;
138
138
  /**
139
139
  * When the Point was last updated
140
140
  *
@@ -142,7 +142,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
142
142
  * @public
143
143
  */
144
144
 
145
- _this.updateTimestamp = undefined;
145
+ _this.updateTimestamp = new Date();
146
146
  /**
147
147
  * The Site ID associated with this Point
148
148
  *
@@ -62,7 +62,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
62
62
  * @public
63
63
  */
64
64
 
65
- _this.id = undefined;
65
+ _this.id = "";
66
66
  /**
67
67
  * The Temporary Object Key Index
68
68
  *
@@ -70,7 +70,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
70
70
  * @public
71
71
  */
72
72
 
73
- _this.keyIndex = undefined;
73
+ _this.keyIndex = "";
74
74
  /**
75
75
  * The Temporary Object Type
76
76
  *
@@ -78,7 +78,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
78
78
  * @public
79
79
  */
80
80
 
81
- _this.type = undefined;
81
+ _this.type = "";
82
82
  /**
83
83
  * The Temporary Object Definition
84
84
  *
@@ -86,7 +86,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
86
86
  * @public
87
87
  */
88
88
 
89
- _this.definition = undefined;
89
+ _this.definition = {};
90
90
  /**
91
91
  * Whether the Temporary Object has been deleted
92
92
  *
@@ -94,7 +94,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
94
94
  * @public
95
95
  */
96
96
 
97
- _this.deleted = undefined;
97
+ _this.deleted = false;
98
98
  /**
99
99
  * When the Temporary Object was last updated
100
100
  *
@@ -102,7 +102,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
102
102
  * @public
103
103
  */
104
104
 
105
- _this.updateTimestamp = undefined;
105
+ _this.updateTimestamp = new Date();
106
106
  /**
107
107
  * The Site ID associated with this Temporary Object
108
108
  *
@@ -61,7 +61,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = 0;
65
65
  /**
66
66
  * The Site Name
67
67
  *
@@ -69,7 +69,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.name = undefined;
72
+ _this.name = "";
73
73
  /**
74
74
  * The Company this Site belongs to
75
75
  *
@@ -77,7 +77,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.companyId = undefined;
80
+ _this.companyId = "";
81
81
  /**
82
82
  * Whether the Site is Enabled
83
83
  *
@@ -85,7 +85,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.enabled = undefined;
88
+ _this.enabled = false;
89
89
  /**
90
90
  * Whether the Site has been deleted
91
91
  *
@@ -93,7 +93,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.deleted = undefined;
96
+ _this.deleted = false;
97
97
  /**
98
98
  * When the Site was last updated
99
99
  *
@@ -101,7 +101,7 @@ var SiteModel = /*#__PURE__*/function (_BaseModel) {
101
101
  * @public
102
102
  */
103
103
 
104
- _this.updateTimestamp = undefined;
104
+ _this.updateTimestamp = new Date();
105
105
  return _this;
106
106
  }
107
107
  /**
@@ -61,7 +61,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
64
+ _this.id = "";
65
65
  /**
66
66
  * The Account this Token belongs to
67
67
  *
@@ -69,7 +69,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
69
69
  * @public
70
70
  */
71
71
 
72
- _this.accountId = undefined;
72
+ _this.accountId = "";
73
73
  /**
74
74
  * The Account Type
75
75
  *
@@ -77,7 +77,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
77
77
  * @public
78
78
  */
79
79
 
80
- _this.accountType = undefined;
80
+ _this.accountType = "";
81
81
  /**
82
82
  * When the Token was issued
83
83
  *
@@ -85,7 +85,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
85
85
  * @public
86
86
  */
87
87
 
88
- _this.issueTimestamp = undefined;
88
+ _this.issueTimestamp = new Date();
89
89
  /**
90
90
  * When the Token will expire
91
91
  *
@@ -93,7 +93,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
93
93
  * @public
94
94
  */
95
95
 
96
- _this.expireTimestamp = undefined;
96
+ _this.expireTimestamp = new Date();
97
97
  /**
98
98
  * When the last API call using this Token was made
99
99
  *
@@ -101,7 +101,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
101
101
  * @public
102
102
  */
103
103
 
104
- _this.activityTimestamp = undefined;
104
+ _this.activityTimestamp = null;
105
105
  /**
106
106
  * When the Token was unlocked
107
107
  *
@@ -109,7 +109,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
109
109
  * @public
110
110
  */
111
111
 
112
- _this.unlockTimestamp = undefined;
112
+ _this.unlockTimestamp = null;
113
113
  /**
114
114
  * When the Token was locked
115
115
  *
@@ -117,7 +117,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
117
117
  * @public
118
118
  */
119
119
 
120
- _this.lockTimestamp = undefined;
120
+ _this.lockTimestamp = null;
121
121
  /**
122
122
  * Whether the Token has been deleted
123
123
  *
@@ -125,7 +125,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
125
125
  * @public
126
126
  */
127
127
 
128
- _this.deleted = undefined;
128
+ _this.deleted = false;
129
129
  /**
130
130
  * When the Token was last updated
131
131
  *
@@ -133,7 +133,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
133
133
  * @public
134
134
  */
135
135
 
136
- _this.updateTimestamp = undefined;
136
+ _this.updateTimestamp = new Date();
137
137
  return _this;
138
138
  }
139
139
  /**