@blues-inc/notehub-js 1.0.37-beta.13 → 1.0.37-beta.15

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 (135) hide show
  1. package/README.md +19 -18
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -64
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +135 -15
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +97 -97
  15. package/dist/model/Alert.js +91 -91
  16. package/dist/model/AlertDataInner.js +10 -10
  17. package/dist/model/AlertNotificationsInner.js +10 -10
  18. package/dist/model/Aws.js +86 -86
  19. package/dist/model/Azure.js +51 -51
  20. package/dist/model/BillingAccount.js +19 -19
  21. package/dist/model/Body.js +1 -1
  22. package/dist/model/CloneProjectRequest.js +25 -25
  23. package/dist/model/Contact.js +19 -19
  24. package/dist/model/CreateFleetRequest.js +1 -1
  25. package/dist/model/CreateMonitor.js +186 -186
  26. package/dist/model/CreateProductRequest.js +30 -30
  27. package/dist/model/CreateProjectRequest.js +20 -20
  28. package/dist/model/CreateUpdateRepository.js +18 -18
  29. package/dist/model/CurrentFirmware.js +12 -12
  30. package/dist/model/DFUEnv.js +1 -1
  31. package/dist/model/DFUState.js +60 -60
  32. package/dist/model/DataField.js +1 -1
  33. package/dist/model/DataSet.js +164 -0
  34. package/dist/model/DataSetField.js +14 -14
  35. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  36. package/dist/model/Device.js +134 -134
  37. package/dist/model/DeviceDfuHistory.js +15 -15
  38. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  39. package/dist/model/DeviceDfuStateMachine.js +14 -14
  40. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  41. package/dist/model/DeviceDfuStatus.js +15 -15
  42. package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
  43. package/dist/model/DeviceDfuStatusPage.js +1 -1
  44. package/dist/model/DeviceSession.js +278 -278
  45. package/dist/model/DeviceTowerInfo.js +15 -15
  46. package/dist/model/DeviceUsage.js +36 -36
  47. package/dist/model/DfuActionRequest.js +1 -1
  48. package/dist/model/EmailNotification.js +1 -1
  49. package/dist/model/EnvTreeJsonNode.js +76 -76
  50. package/dist/model/EnvVar.js +9 -9
  51. package/dist/model/EnvironmentVariables.js +1 -1
  52. package/dist/model/Error.js +38 -38
  53. package/dist/model/Event.js +340 -340
  54. package/dist/model/Firmware.js +45 -45
  55. package/dist/model/FirmwareInfo.js +71 -71
  56. package/dist/model/Fleet.js +31 -31
  57. package/dist/model/GetAlerts200Response.js +1 -1
  58. package/dist/model/GetBillingAccounts200Response.js +1 -1
  59. package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
  60. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  61. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  62. package/dist/model/GetDeviceLatest200Response.js +1 -1
  63. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  64. package/dist/model/GetDeviceSessions200Response.js +14 -14
  65. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  66. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  67. package/dist/model/GetProjectDevices200Response.js +1 -1
  68. package/dist/model/GetProjectEvents200Response.js +1 -1
  69. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  70. package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
  71. package/dist/model/GetProjectMembers200Response.js +1 -1
  72. package/dist/model/GetProjectProducts200Response.js +1 -1
  73. package/dist/model/GetProjects200Response.js +1 -1
  74. package/dist/model/GetWebhooks200Response.js +1 -1
  75. package/dist/model/Google.js +35 -35
  76. package/dist/model/HandleNoteChanges200Response.js +10 -10
  77. package/dist/model/HandleNoteGet200Response.js +1 -1
  78. package/dist/model/HandleNoteSignal200Response.js +1 -1
  79. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  80. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  81. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  82. package/dist/model/Http.js +43 -43
  83. package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
  84. package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
  85. package/dist/model/Location.js +38 -38
  86. package/dist/model/Login200Response.js +1 -1
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +135 -135
  89. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  90. package/dist/model/Mqtt.js +91 -91
  91. package/dist/model/Note.js +1 -1
  92. package/dist/model/NotefileSchema.js +1 -1
  93. package/dist/model/NotehubRoute.js +30 -30
  94. package/dist/model/NotehubRouteSchema.js +80 -80
  95. package/dist/model/PersonalAccessToken.js +37 -37
  96. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  97. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  98. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  99. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  100. package/dist/model/Product.js +29 -29
  101. package/dist/model/Project.js +35 -35
  102. package/dist/model/ProjectMember.js +19 -19
  103. package/dist/model/Proxy.js +21 -21
  104. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  105. package/dist/model/QuestionDataResponseLineChart.js +204 -0
  106. package/dist/model/{OAuth2Error.js → QuestionDataResponseMap.js} +42 -65
  107. package/dist/model/Radresponder.js +28 -28
  108. package/dist/model/Repository.js +22 -22
  109. package/dist/model/RouteLog.js +28 -28
  110. package/dist/model/SchemaProperty.js +36 -34
  111. package/dist/model/SimUsage.js +20 -20
  112. package/dist/model/Slack.js +71 -71
  113. package/dist/model/SlackBearerNotification.js +14 -14
  114. package/dist/model/SlackWebHookNotification.js +14 -14
  115. package/dist/model/Snowflake.js +57 -57
  116. package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
  117. package/dist/model/Thingworx.js +36 -36
  118. package/dist/model/TowerLocation.js +58 -58
  119. package/dist/model/Twilio.js +46 -46
  120. package/dist/model/UpdateFleetRequest.js +14 -14
  121. package/dist/model/UploadMetadata.js +68 -68
  122. package/dist/model/{AnalyticsEventsData.js → UsageEventsData.js} +42 -28
  123. package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +25 -25
  124. package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +43 -29
  125. package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +25 -25
  126. package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +37 -33
  127. package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +25 -25
  128. package/dist/model/UserDbRoute.js +26 -26
  129. package/dist/model/UserDfuStateMachine.js +14 -14
  130. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  131. package/dist/model/UserFirmwareInfo.js +1 -1
  132. package/dist/model/WebhookSettings.js +1 -1
  133. package/package.json +1 -1
  134. package/dist/model/OAuth2TokenResponse.js +0 -154
  135. package/dist/model/UsageData.js +0 -136
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Event model module.
28
28
  * @module model/Event
29
- * @version 1.0.37-beta.13
29
+ * @version 1.0.37-beta.15
30
30
  */
31
31
  var Event = /*#__PURE__*/function () {
32
32
  /**
@@ -59,185 +59,185 @@ var Event = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new Event();
62
- if (data.hasOwnProperty('app')) {
63
- obj['app'] = _ApiClient["default"].convertToType(data['app'], 'String');
62
+ if (data.hasOwnProperty('event')) {
63
+ obj['event'] = _ApiClient["default"].convertToType(data['event'], 'String');
64
64
  }
65
- if (data.hasOwnProperty('bars')) {
66
- obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
65
+ if (data.hasOwnProperty('session')) {
66
+ obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
67
67
  }
68
- if (data.hasOwnProperty('best_country')) {
69
- obj['best_country'] = _ApiClient["default"].convertToType(data['best_country'], 'String');
68
+ if (data.hasOwnProperty('tls')) {
69
+ obj['tls'] = _ApiClient["default"].convertToType(data['tls'], 'Boolean');
70
+ }
71
+ if (data.hasOwnProperty('transport')) {
72
+ obj['transport'] = _ApiClient["default"].convertToType(data['transport'], 'String');
70
73
  }
71
74
  if (data.hasOwnProperty('best_id')) {
72
75
  obj['best_id'] = _ApiClient["default"].convertToType(data['best_id'], 'String');
73
76
  }
74
- if (data.hasOwnProperty('best_lat')) {
75
- obj['best_lat'] = _ApiClient["default"].convertToType(data['best_lat'], 'Number');
76
- }
77
- if (data.hasOwnProperty('best_location')) {
78
- obj['best_location'] = _ApiClient["default"].convertToType(data['best_location'], 'String');
79
- }
80
- if (data.hasOwnProperty('best_location_type')) {
81
- obj['best_location_type'] = _ApiClient["default"].convertToType(data['best_location_type'], 'String');
82
- }
83
- if (data.hasOwnProperty('best_location_when')) {
84
- obj['best_location_when'] = _ApiClient["default"].convertToType(data['best_location_when'], 'Number');
85
- }
86
- if (data.hasOwnProperty('best_lon')) {
87
- obj['best_lon'] = _ApiClient["default"].convertToType(data['best_lon'], 'Number');
77
+ if (data.hasOwnProperty('device')) {
78
+ obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
88
79
  }
89
- if (data.hasOwnProperty('best_timezone')) {
90
- obj['best_timezone'] = _ApiClient["default"].convertToType(data['best_timezone'], 'String');
80
+ if (data.hasOwnProperty('sn')) {
81
+ obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
91
82
  }
92
- if (data.hasOwnProperty('body')) {
93
- obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
83
+ if (data.hasOwnProperty('product')) {
84
+ obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
94
85
  }
95
- if (data.hasOwnProperty('bssid')) {
96
- obj['bssid'] = _ApiClient["default"].convertToType(data['bssid'], 'String');
86
+ if (data.hasOwnProperty('app')) {
87
+ obj['app'] = _ApiClient["default"].convertToType(data['app'], 'String');
97
88
  }
98
- if (data.hasOwnProperty('device')) {
99
- obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
89
+ if (data.hasOwnProperty('received')) {
90
+ obj['received'] = _ApiClient["default"].convertToType(data['received'], 'Number');
100
91
  }
101
- if (data.hasOwnProperty('environment')) {
102
- obj['environment'] = _ApiClient["default"].convertToType(data['environment'], Object);
92
+ if (data.hasOwnProperty('req')) {
93
+ obj['req'] = _ApiClient["default"].convertToType(data['req'], 'String');
103
94
  }
104
- if (data.hasOwnProperty('event')) {
105
- obj['event'] = _ApiClient["default"].convertToType(data['event'], 'String');
95
+ if (data.hasOwnProperty('when')) {
96
+ obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Number');
106
97
  }
107
98
  if (data.hasOwnProperty('file')) {
108
99
  obj['file'] = _ApiClient["default"].convertToType(data['file'], 'String');
109
100
  }
110
- if (data.hasOwnProperty('moved')) {
111
- obj['moved'] = _ApiClient["default"].convertToType(data['moved'], 'Number');
112
- }
113
101
  if (data.hasOwnProperty('note')) {
114
102
  obj['note'] = _ApiClient["default"].convertToType(data['note'], 'String');
115
103
  }
116
- if (data.hasOwnProperty('ordering_code')) {
117
- obj['ordering_code'] = _ApiClient["default"].convertToType(data['ordering_code'], 'String');
104
+ if (data.hasOwnProperty('updates')) {
105
+ obj['updates'] = _ApiClient["default"].convertToType(data['updates'], 'Number');
118
106
  }
119
- if (data.hasOwnProperty('orientation')) {
120
- obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], 'String');
107
+ if (data.hasOwnProperty('body')) {
108
+ obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
121
109
  }
122
110
  if (data.hasOwnProperty('payload')) {
123
111
  obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String');
124
112
  }
125
- if (data.hasOwnProperty('product')) {
126
- obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
127
- }
128
- if (data.hasOwnProperty('rat')) {
129
- obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
113
+ if (data.hasOwnProperty('best_location_type')) {
114
+ obj['best_location_type'] = _ApiClient["default"].convertToType(data['best_location_type'], 'String');
130
115
  }
131
- if (data.hasOwnProperty('received')) {
132
- obj['received'] = _ApiClient["default"].convertToType(data['received'], 'Number');
116
+ if (data.hasOwnProperty('best_location_when')) {
117
+ obj['best_location_when'] = _ApiClient["default"].convertToType(data['best_location_when'], 'Number');
133
118
  }
134
- if (data.hasOwnProperty('req')) {
135
- obj['req'] = _ApiClient["default"].convertToType(data['req'], 'String');
119
+ if (data.hasOwnProperty('best_lat')) {
120
+ obj['best_lat'] = _ApiClient["default"].convertToType(data['best_lat'], 'Number');
136
121
  }
137
- if (data.hasOwnProperty('rsrp')) {
138
- obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
122
+ if (data.hasOwnProperty('best_lon')) {
123
+ obj['best_lon'] = _ApiClient["default"].convertToType(data['best_lon'], 'Number');
139
124
  }
140
- if (data.hasOwnProperty('rsrq')) {
141
- obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
125
+ if (data.hasOwnProperty('best_location')) {
126
+ obj['best_location'] = _ApiClient["default"].convertToType(data['best_location'], 'String');
142
127
  }
143
- if (data.hasOwnProperty('rssi')) {
144
- obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
128
+ if (data.hasOwnProperty('best_country')) {
129
+ obj['best_country'] = _ApiClient["default"].convertToType(data['best_country'], 'String');
145
130
  }
146
- if (data.hasOwnProperty('session')) {
147
- obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
131
+ if (data.hasOwnProperty('best_timezone')) {
132
+ obj['best_timezone'] = _ApiClient["default"].convertToType(data['best_timezone'], 'String');
148
133
  }
149
- if (data.hasOwnProperty('sinr')) {
150
- obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
134
+ if (data.hasOwnProperty('where_olc')) {
135
+ obj['where_olc'] = _ApiClient["default"].convertToType(data['where_olc'], 'String');
151
136
  }
152
- if (data.hasOwnProperty('sku')) {
153
- obj['sku'] = _ApiClient["default"].convertToType(data['sku'], 'String');
137
+ if (data.hasOwnProperty('where_when')) {
138
+ obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
154
139
  }
155
- if (data.hasOwnProperty('sn')) {
156
- obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
140
+ if (data.hasOwnProperty('where_lat')) {
141
+ obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
157
142
  }
158
- if (data.hasOwnProperty('ssid')) {
159
- obj['ssid'] = _ApiClient["default"].convertToType(data['ssid'], 'String');
143
+ if (data.hasOwnProperty('where_lon')) {
144
+ obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
160
145
  }
161
- if (data.hasOwnProperty('temp')) {
162
- obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
146
+ if (data.hasOwnProperty('where_location')) {
147
+ obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
163
148
  }
164
- if (data.hasOwnProperty('tls')) {
165
- obj['tls'] = _ApiClient["default"].convertToType(data['tls'], 'Boolean');
149
+ if (data.hasOwnProperty('where_country')) {
150
+ obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
166
151
  }
167
- if (data.hasOwnProperty('tower_country')) {
168
- obj['tower_country'] = _ApiClient["default"].convertToType(data['tower_country'], 'String');
152
+ if (data.hasOwnProperty('where_timezone')) {
153
+ obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
169
154
  }
170
- if (data.hasOwnProperty('tower_id')) {
171
- obj['tower_id'] = _ApiClient["default"].convertToType(data['tower_id'], 'String');
155
+ if (data.hasOwnProperty('tower_when')) {
156
+ obj['tower_when'] = _ApiClient["default"].convertToType(data['tower_when'], 'Number');
172
157
  }
173
158
  if (data.hasOwnProperty('tower_lat')) {
174
159
  obj['tower_lat'] = _ApiClient["default"].convertToType(data['tower_lat'], 'Number');
175
160
  }
176
- if (data.hasOwnProperty('tower_location')) {
177
- obj['tower_location'] = _ApiClient["default"].convertToType(data['tower_location'], 'String');
178
- }
179
161
  if (data.hasOwnProperty('tower_lon')) {
180
162
  obj['tower_lon'] = _ApiClient["default"].convertToType(data['tower_lon'], 'Number');
181
163
  }
164
+ if (data.hasOwnProperty('tower_country')) {
165
+ obj['tower_country'] = _ApiClient["default"].convertToType(data['tower_country'], 'String');
166
+ }
167
+ if (data.hasOwnProperty('tower_location')) {
168
+ obj['tower_location'] = _ApiClient["default"].convertToType(data['tower_location'], 'String');
169
+ }
182
170
  if (data.hasOwnProperty('tower_timezone')) {
183
171
  obj['tower_timezone'] = _ApiClient["default"].convertToType(data['tower_timezone'], 'String');
184
172
  }
185
- if (data.hasOwnProperty('tower_when')) {
186
- obj['tower_when'] = _ApiClient["default"].convertToType(data['tower_when'], 'Number');
187
- }
188
- if (data.hasOwnProperty('transport')) {
189
- obj['transport'] = _ApiClient["default"].convertToType(data['transport'], 'String');
173
+ if (data.hasOwnProperty('tower_id')) {
174
+ obj['tower_id'] = _ApiClient["default"].convertToType(data['tower_id'], 'String');
190
175
  }
191
- if (data.hasOwnProperty('tri_country')) {
192
- obj['tri_country'] = _ApiClient["default"].convertToType(data['tri_country'], 'String');
176
+ if (data.hasOwnProperty('tri_when')) {
177
+ obj['tri_when'] = _ApiClient["default"].convertToType(data['tri_when'], 'Number');
193
178
  }
194
179
  if (data.hasOwnProperty('tri_lat')) {
195
180
  obj['tri_lat'] = _ApiClient["default"].convertToType(data['tri_lat'], 'Number');
196
181
  }
182
+ if (data.hasOwnProperty('tri_lon')) {
183
+ obj['tri_lon'] = _ApiClient["default"].convertToType(data['tri_lon'], 'Number');
184
+ }
197
185
  if (data.hasOwnProperty('tri_location')) {
198
186
  obj['tri_location'] = _ApiClient["default"].convertToType(data['tri_location'], 'String');
199
187
  }
200
- if (data.hasOwnProperty('tri_lon')) {
201
- obj['tri_lon'] = _ApiClient["default"].convertToType(data['tri_lon'], 'Number');
188
+ if (data.hasOwnProperty('tri_country')) {
189
+ obj['tri_country'] = _ApiClient["default"].convertToType(data['tri_country'], 'String');
190
+ }
191
+ if (data.hasOwnProperty('tri_timezone')) {
192
+ obj['tri_timezone'] = _ApiClient["default"].convertToType(data['tri_timezone'], 'String');
202
193
  }
203
194
  if (data.hasOwnProperty('tri_points')) {
204
195
  obj['tri_points'] = _ApiClient["default"].convertToType(data['tri_points'], 'Number');
205
196
  }
206
- if (data.hasOwnProperty('tri_timezone')) {
207
- obj['tri_timezone'] = _ApiClient["default"].convertToType(data['tri_timezone'], 'String');
197
+ if (data.hasOwnProperty('moved')) {
198
+ obj['moved'] = _ApiClient["default"].convertToType(data['moved'], 'Number');
208
199
  }
209
- if (data.hasOwnProperty('tri_when')) {
210
- obj['tri_when'] = _ApiClient["default"].convertToType(data['tri_when'], 'Number');
200
+ if (data.hasOwnProperty('orientation')) {
201
+ obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], 'String');
211
202
  }
212
- if (data.hasOwnProperty('updates')) {
213
- obj['updates'] = _ApiClient["default"].convertToType(data['updates'], 'Number');
203
+ if (data.hasOwnProperty('rssi')) {
204
+ obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
214
205
  }
215
- if (data.hasOwnProperty('voltage')) {
216
- obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
206
+ if (data.hasOwnProperty('sinr')) {
207
+ obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
217
208
  }
218
- if (data.hasOwnProperty('when')) {
219
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Number');
209
+ if (data.hasOwnProperty('rsrp')) {
210
+ obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
220
211
  }
221
- if (data.hasOwnProperty('where_country')) {
222
- obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
212
+ if (data.hasOwnProperty('rsrq')) {
213
+ obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
223
214
  }
224
- if (data.hasOwnProperty('where_lat')) {
225
- obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
215
+ if (data.hasOwnProperty('rat')) {
216
+ obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
226
217
  }
227
- if (data.hasOwnProperty('where_location')) {
228
- obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
218
+ if (data.hasOwnProperty('bars')) {
219
+ obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
229
220
  }
230
- if (data.hasOwnProperty('where_lon')) {
231
- obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
221
+ if (data.hasOwnProperty('voltage')) {
222
+ obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
232
223
  }
233
- if (data.hasOwnProperty('where_olc')) {
234
- obj['where_olc'] = _ApiClient["default"].convertToType(data['where_olc'], 'String');
224
+ if (data.hasOwnProperty('temp')) {
225
+ obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
235
226
  }
236
- if (data.hasOwnProperty('where_timezone')) {
237
- obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
227
+ if (data.hasOwnProperty('environment')) {
228
+ obj['environment'] = _ApiClient["default"].convertToType(data['environment'], Object);
238
229
  }
239
- if (data.hasOwnProperty('where_when')) {
240
- obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
230
+ if (data.hasOwnProperty('sku')) {
231
+ obj['sku'] = _ApiClient["default"].convertToType(data['sku'], 'String');
232
+ }
233
+ if (data.hasOwnProperty('ordering_code')) {
234
+ obj['ordering_code'] = _ApiClient["default"].convertToType(data['ordering_code'], 'String');
235
+ }
236
+ if (data.hasOwnProperty('ssid')) {
237
+ obj['ssid'] = _ApiClient["default"].convertToType(data['ssid'], 'String');
238
+ }
239
+ if (data.hasOwnProperty('bssid')) {
240
+ obj['bssid'] = _ApiClient["default"].convertToType(data['bssid'], 'String');
241
241
  }
242
242
  } else if (data === null) {
243
243
  return null;
@@ -254,40 +254,40 @@ var Event = /*#__PURE__*/function () {
254
254
  key: "validateJSON",
255
255
  value: function validateJSON(data) {
256
256
  // ensure the json data is a string
257
- if (data['app'] && !(typeof data['app'] === 'string' || data['app'] instanceof String)) {
258
- throw new Error("Expected the field `app` to be a primitive type in the JSON string but got " + data['app']);
257
+ if (data['event'] && !(typeof data['event'] === 'string' || data['event'] instanceof String)) {
258
+ throw new Error("Expected the field `event` to be a primitive type in the JSON string but got " + data['event']);
259
259
  }
260
260
  // ensure the json data is a string
261
- if (data['best_country'] && !(typeof data['best_country'] === 'string' || data['best_country'] instanceof String)) {
262
- throw new Error("Expected the field `best_country` to be a primitive type in the JSON string but got " + data['best_country']);
261
+ if (data['session'] && !(typeof data['session'] === 'string' || data['session'] instanceof String)) {
262
+ throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data['session']);
263
263
  }
264
264
  // ensure the json data is a string
265
- if (data['best_id'] && !(typeof data['best_id'] === 'string' || data['best_id'] instanceof String)) {
266
- throw new Error("Expected the field `best_id` to be a primitive type in the JSON string but got " + data['best_id']);
265
+ if (data['transport'] && !(typeof data['transport'] === 'string' || data['transport'] instanceof String)) {
266
+ throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data['transport']);
267
267
  }
268
268
  // ensure the json data is a string
269
- if (data['best_location'] && !(typeof data['best_location'] === 'string' || data['best_location'] instanceof String)) {
270
- throw new Error("Expected the field `best_location` to be a primitive type in the JSON string but got " + data['best_location']);
269
+ if (data['best_id'] && !(typeof data['best_id'] === 'string' || data['best_id'] instanceof String)) {
270
+ throw new Error("Expected the field `best_id` to be a primitive type in the JSON string but got " + data['best_id']);
271
271
  }
272
272
  // ensure the json data is a string
273
- if (data['best_location_type'] && !(typeof data['best_location_type'] === 'string' || data['best_location_type'] instanceof String)) {
274
- throw new Error("Expected the field `best_location_type` to be a primitive type in the JSON string but got " + data['best_location_type']);
273
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
274
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
275
275
  }
276
276
  // ensure the json data is a string
277
- if (data['best_timezone'] && !(typeof data['best_timezone'] === 'string' || data['best_timezone'] instanceof String)) {
278
- throw new Error("Expected the field `best_timezone` to be a primitive type in the JSON string but got " + data['best_timezone']);
277
+ if (data['sn'] && !(typeof data['sn'] === 'string' || data['sn'] instanceof String)) {
278
+ throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data['sn']);
279
279
  }
280
280
  // ensure the json data is a string
281
- if (data['bssid'] && !(typeof data['bssid'] === 'string' || data['bssid'] instanceof String)) {
282
- throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data['bssid']);
281
+ if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
282
+ throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
283
283
  }
284
284
  // ensure the json data is a string
285
- if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
286
- throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
285
+ if (data['app'] && !(typeof data['app'] === 'string' || data['app'] instanceof String)) {
286
+ throw new Error("Expected the field `app` to be a primitive type in the JSON string but got " + data['app']);
287
287
  }
288
288
  // ensure the json data is a string
289
- if (data['event'] && !(typeof data['event'] === 'string' || data['event'] instanceof String)) {
290
- throw new Error("Expected the field `event` to be a primitive type in the JSON string but got " + data['event']);
289
+ if (data['req'] && !(typeof data['req'] === 'string' || data['req'] instanceof String)) {
290
+ throw new Error("Expected the field `req` to be a primitive type in the JSON string but got " + data['req']);
291
291
  }
292
292
  // ensure the json data is a string
293
293
  if (data['file'] && !(typeof data['file'] === 'string' || data['file'] instanceof String)) {
@@ -298,52 +298,44 @@ var Event = /*#__PURE__*/function () {
298
298
  throw new Error("Expected the field `note` to be a primitive type in the JSON string but got " + data['note']);
299
299
  }
300
300
  // ensure the json data is a string
301
- if (data['ordering_code'] && !(typeof data['ordering_code'] === 'string' || data['ordering_code'] instanceof String)) {
302
- throw new Error("Expected the field `ordering_code` to be a primitive type in the JSON string but got " + data['ordering_code']);
303
- }
304
- // ensure the json data is a string
305
- if (data['orientation'] && !(typeof data['orientation'] === 'string' || data['orientation'] instanceof String)) {
306
- throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data['orientation']);
307
- }
308
- // ensure the json data is a string
309
301
  if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) {
310
302
  throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']);
311
303
  }
312
304
  // ensure the json data is a string
313
- if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
314
- throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
305
+ if (data['best_location_type'] && !(typeof data['best_location_type'] === 'string' || data['best_location_type'] instanceof String)) {
306
+ throw new Error("Expected the field `best_location_type` to be a primitive type in the JSON string but got " + data['best_location_type']);
315
307
  }
316
308
  // ensure the json data is a string
317
- if (data['rat'] && !(typeof data['rat'] === 'string' || data['rat'] instanceof String)) {
318
- throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data['rat']);
309
+ if (data['best_location'] && !(typeof data['best_location'] === 'string' || data['best_location'] instanceof String)) {
310
+ throw new Error("Expected the field `best_location` to be a primitive type in the JSON string but got " + data['best_location']);
319
311
  }
320
312
  // ensure the json data is a string
321
- if (data['req'] && !(typeof data['req'] === 'string' || data['req'] instanceof String)) {
322
- throw new Error("Expected the field `req` to be a primitive type in the JSON string but got " + data['req']);
313
+ if (data['best_country'] && !(typeof data['best_country'] === 'string' || data['best_country'] instanceof String)) {
314
+ throw new Error("Expected the field `best_country` to be a primitive type in the JSON string but got " + data['best_country']);
323
315
  }
324
316
  // ensure the json data is a string
325
- if (data['session'] && !(typeof data['session'] === 'string' || data['session'] instanceof String)) {
326
- throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data['session']);
317
+ if (data['best_timezone'] && !(typeof data['best_timezone'] === 'string' || data['best_timezone'] instanceof String)) {
318
+ throw new Error("Expected the field `best_timezone` to be a primitive type in the JSON string but got " + data['best_timezone']);
327
319
  }
328
320
  // ensure the json data is a string
329
- if (data['sku'] && !(typeof data['sku'] === 'string' || data['sku'] instanceof String)) {
330
- throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data['sku']);
321
+ if (data['where_olc'] && !(typeof data['where_olc'] === 'string' || data['where_olc'] instanceof String)) {
322
+ throw new Error("Expected the field `where_olc` to be a primitive type in the JSON string but got " + data['where_olc']);
331
323
  }
332
324
  // ensure the json data is a string
333
- if (data['sn'] && !(typeof data['sn'] === 'string' || data['sn'] instanceof String)) {
334
- throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data['sn']);
325
+ if (data['where_location'] && !(typeof data['where_location'] === 'string' || data['where_location'] instanceof String)) {
326
+ throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data['where_location']);
335
327
  }
336
328
  // ensure the json data is a string
337
- if (data['ssid'] && !(typeof data['ssid'] === 'string' || data['ssid'] instanceof String)) {
338
- throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data['ssid']);
329
+ if (data['where_country'] && !(typeof data['where_country'] === 'string' || data['where_country'] instanceof String)) {
330
+ throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data['where_country']);
339
331
  }
340
332
  // ensure the json data is a string
341
- if (data['tower_country'] && !(typeof data['tower_country'] === 'string' || data['tower_country'] instanceof String)) {
342
- throw new Error("Expected the field `tower_country` to be a primitive type in the JSON string but got " + data['tower_country']);
333
+ if (data['where_timezone'] && !(typeof data['where_timezone'] === 'string' || data['where_timezone'] instanceof String)) {
334
+ throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data['where_timezone']);
343
335
  }
344
336
  // ensure the json data is a string
345
- if (data['tower_id'] && !(typeof data['tower_id'] === 'string' || data['tower_id'] instanceof String)) {
346
- throw new Error("Expected the field `tower_id` to be a primitive type in the JSON string but got " + data['tower_id']);
337
+ if (data['tower_country'] && !(typeof data['tower_country'] === 'string' || data['tower_country'] instanceof String)) {
338
+ throw new Error("Expected the field `tower_country` to be a primitive type in the JSON string but got " + data['tower_country']);
347
339
  }
348
340
  // ensure the json data is a string
349
341
  if (data['tower_location'] && !(typeof data['tower_location'] === 'string' || data['tower_location'] instanceof String)) {
@@ -354,130 +346,120 @@ var Event = /*#__PURE__*/function () {
354
346
  throw new Error("Expected the field `tower_timezone` to be a primitive type in the JSON string but got " + data['tower_timezone']);
355
347
  }
356
348
  // ensure the json data is a string
357
- if (data['transport'] && !(typeof data['transport'] === 'string' || data['transport'] instanceof String)) {
358
- throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data['transport']);
359
- }
360
- // ensure the json data is a string
361
- if (data['tri_country'] && !(typeof data['tri_country'] === 'string' || data['tri_country'] instanceof String)) {
362
- throw new Error("Expected the field `tri_country` to be a primitive type in the JSON string but got " + data['tri_country']);
349
+ if (data['tower_id'] && !(typeof data['tower_id'] === 'string' || data['tower_id'] instanceof String)) {
350
+ throw new Error("Expected the field `tower_id` to be a primitive type in the JSON string but got " + data['tower_id']);
363
351
  }
364
352
  // ensure the json data is a string
365
353
  if (data['tri_location'] && !(typeof data['tri_location'] === 'string' || data['tri_location'] instanceof String)) {
366
354
  throw new Error("Expected the field `tri_location` to be a primitive type in the JSON string but got " + data['tri_location']);
367
355
  }
368
356
  // ensure the json data is a string
357
+ if (data['tri_country'] && !(typeof data['tri_country'] === 'string' || data['tri_country'] instanceof String)) {
358
+ throw new Error("Expected the field `tri_country` to be a primitive type in the JSON string but got " + data['tri_country']);
359
+ }
360
+ // ensure the json data is a string
369
361
  if (data['tri_timezone'] && !(typeof data['tri_timezone'] === 'string' || data['tri_timezone'] instanceof String)) {
370
362
  throw new Error("Expected the field `tri_timezone` to be a primitive type in the JSON string but got " + data['tri_timezone']);
371
363
  }
372
364
  // ensure the json data is a string
373
- if (data['where_country'] && !(typeof data['where_country'] === 'string' || data['where_country'] instanceof String)) {
374
- throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data['where_country']);
365
+ if (data['orientation'] && !(typeof data['orientation'] === 'string' || data['orientation'] instanceof String)) {
366
+ throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data['orientation']);
375
367
  }
376
368
  // ensure the json data is a string
377
- if (data['where_location'] && !(typeof data['where_location'] === 'string' || data['where_location'] instanceof String)) {
378
- throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data['where_location']);
369
+ if (data['rat'] && !(typeof data['rat'] === 'string' || data['rat'] instanceof String)) {
370
+ throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data['rat']);
379
371
  }
380
372
  // ensure the json data is a string
381
- if (data['where_olc'] && !(typeof data['where_olc'] === 'string' || data['where_olc'] instanceof String)) {
382
- throw new Error("Expected the field `where_olc` to be a primitive type in the JSON string but got " + data['where_olc']);
373
+ if (data['sku'] && !(typeof data['sku'] === 'string' || data['sku'] instanceof String)) {
374
+ throw new Error("Expected the field `sku` to be a primitive type in the JSON string but got " + data['sku']);
383
375
  }
384
376
  // ensure the json data is a string
385
- if (data['where_timezone'] && !(typeof data['where_timezone'] === 'string' || data['where_timezone'] instanceof String)) {
386
- throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data['where_timezone']);
377
+ if (data['ordering_code'] && !(typeof data['ordering_code'] === 'string' || data['ordering_code'] instanceof String)) {
378
+ throw new Error("Expected the field `ordering_code` to be a primitive type in the JSON string but got " + data['ordering_code']);
379
+ }
380
+ // ensure the json data is a string
381
+ if (data['ssid'] && !(typeof data['ssid'] === 'string' || data['ssid'] instanceof String)) {
382
+ throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data['ssid']);
383
+ }
384
+ // ensure the json data is a string
385
+ if (data['bssid'] && !(typeof data['bssid'] === 'string' || data['bssid'] instanceof String)) {
386
+ throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data['bssid']);
387
387
  }
388
388
  return true;
389
389
  }
390
390
  }]);
391
391
  }();
392
392
  /**
393
- * App UID (globally unique)
394
- * @member {String} app
395
- */
396
- Event.prototype['app'] = undefined;
397
-
398
- /**
399
- * Bars. Only available on _session.qo events.
400
- * @member {Number} bars
401
- */
402
- Event.prototype['bars'] = undefined;
403
-
404
- /**
405
- * Country
406
- * @member {String} best_country
407
- */
408
- Event.prototype['best_country'] = undefined;
409
-
410
- /**
411
- * The device serial number, or the DeviceUID if the serial number is not set
412
- * @member {String} best_id
393
+ * Event UID (globally unique)
394
+ * @member {String} event
413
395
  */
414
- Event.prototype['best_id'] = undefined;
396
+ Event.prototype['event'] = undefined;
415
397
 
416
398
  /**
417
- * Latitude
418
- * @member {Number} best_lat
399
+ * Session UID (globally unique)
400
+ * @member {String} session
419
401
  */
420
- Event.prototype['best_lat'] = undefined;
402
+ Event.prototype['session'] = undefined;
421
403
 
422
404
  /**
423
- * Location
424
- * @member {String} best_location
405
+ * Whether TLS was used on the connection between the device and notehub. Only available on _session.qo events.
406
+ * @member {Boolean} tls
425
407
  */
426
- Event.prototype['best_location'] = undefined;
408
+ Event.prototype['tls'] = undefined;
427
409
 
428
410
  /**
429
- * One of \"gps\", \"triangulated\", or \"tower\"
430
- * @member {String} best_location_type
411
+ * The transport used for this event, e.g., \"cellular\", \"wifi\", \", etc.
412
+ * @member {String} transport
431
413
  */
432
- Event.prototype['best_location_type'] = undefined;
414
+ Event.prototype['transport'] = undefined;
433
415
 
434
416
  /**
435
- * Unix timestamp
436
- * @member {Number} best_location_when
417
+ * The device serial number, or the DeviceUID if the serial number is not set
418
+ * @member {String} best_id
437
419
  */
438
- Event.prototype['best_location_when'] = undefined;
420
+ Event.prototype['best_id'] = undefined;
439
421
 
440
422
  /**
441
- * Longitude
442
- * @member {Number} best_lon
423
+ * Device UID (globally unique)
424
+ * @member {String} device
443
425
  */
444
- Event.prototype['best_lon'] = undefined;
426
+ Event.prototype['device'] = undefined;
445
427
 
446
428
  /**
447
- * Timezone
448
- * @member {String} best_timezone
429
+ * The device serial number
430
+ * @member {String} sn
449
431
  */
450
- Event.prototype['best_timezone'] = undefined;
432
+ Event.prototype['sn'] = undefined;
451
433
 
452
434
  /**
453
- * A JSON object containing event details
454
- * @member {Object} body
435
+ * Product UID (globally unique)
436
+ * @member {String} product
455
437
  */
456
- Event.prototype['body'] = undefined;
438
+ Event.prototype['product'] = undefined;
457
439
 
458
440
  /**
459
- * BSSID. Only available on _session.qo events.
460
- * @member {String} bssid
441
+ * App UID (globally unique)
442
+ * @member {String} app
461
443
  */
462
- Event.prototype['bssid'] = undefined;
444
+ Event.prototype['app'] = undefined;
463
445
 
464
446
  /**
465
- * Device UID (globally unique)
466
- * @member {String} device
447
+ * The unix timestamp when the event was received
448
+ * @member {Number} received
467
449
  */
468
- Event.prototype['device'] = undefined;
450
+ Event.prototype['received'] = undefined;
469
451
 
470
452
  /**
471
- * Routed environment variables beginning with \"$\". Only available on _session.qo events.
472
- * @member {Object} environment
453
+ * The notecard request
454
+ * @member {String} req
473
455
  */
474
- Event.prototype['environment'] = undefined;
456
+ Event.prototype['req'] = undefined;
475
457
 
476
458
  /**
477
- * Event UID (globally unique)
478
- * @member {String} event
459
+ * When the event was captured on the device
460
+ * @member {Number} when
479
461
  */
480
- Event.prototype['event'] = undefined;
462
+ Event.prototype['when'] = undefined;
481
463
 
482
464
  /**
483
465
  * The notefile associated with this event
@@ -485,12 +467,6 @@ Event.prototype['event'] = undefined;
485
467
  */
486
468
  Event.prototype['file'] = undefined;
487
469
 
488
- /**
489
- * The number of times the device was sensed to have moved between the last session and this session. Only available on _session.qo events.
490
- * @member {Number} moved
491
- */
492
- Event.prototype['moved'] = undefined;
493
-
494
470
  /**
495
471
  * The note ID in the notefile
496
472
  * @member {String} note
@@ -498,16 +474,15 @@ Event.prototype['moved'] = undefined;
498
474
  Event.prototype['note'] = undefined;
499
475
 
500
476
  /**
501
- * Ordering code. Only available on _session.qo events.
502
- * @member {String} ordering_code
477
+ * @member {Number} updates
503
478
  */
504
- Event.prototype['ordering_code'] = undefined;
479
+ Event.prototype['updates'] = undefined;
505
480
 
506
481
  /**
507
- * The orientation of the device. Only available on _session.qo events.
508
- * @member {String} orientation
482
+ * A JSON object containing event details
483
+ * @member {Object} body
509
484
  */
510
- Event.prototype['orientation'] = undefined;
485
+ Event.prototype['body'] = undefined;
511
486
 
512
487
  /**
513
488
  * A base64-encoded binary payload
@@ -516,100 +491,94 @@ Event.prototype['orientation'] = undefined;
516
491
  Event.prototype['payload'] = undefined;
517
492
 
518
493
  /**
519
- * Product UID (globally unique)
520
- * @member {String} product
521
- */
522
- Event.prototype['product'] = undefined;
523
-
524
- /**
525
- * Rat. Only available on _session.qo events.
526
- * @member {String} rat
494
+ * One of \"gps\", \"triangulated\", or \"tower\"
495
+ * @member {String} best_location_type
527
496
  */
528
- Event.prototype['rat'] = undefined;
497
+ Event.prototype['best_location_type'] = undefined;
529
498
 
530
499
  /**
531
- * The unix timestamp when the event was received
532
- * @member {Number} received
500
+ * Unix timestamp
501
+ * @member {Number} best_location_when
533
502
  */
534
- Event.prototype['received'] = undefined;
503
+ Event.prototype['best_location_when'] = undefined;
535
504
 
536
505
  /**
537
- * The notecard request
538
- * @member {String} req
506
+ * Latitude
507
+ * @member {Number} best_lat
539
508
  */
540
- Event.prototype['req'] = undefined;
509
+ Event.prototype['best_lat'] = undefined;
541
510
 
542
511
  /**
543
- * RSRP. Only available on _session.qo events.
544
- * @member {Number} rsrp
512
+ * Longitude
513
+ * @member {Number} best_lon
545
514
  */
546
- Event.prototype['rsrp'] = undefined;
515
+ Event.prototype['best_lon'] = undefined;
547
516
 
548
517
  /**
549
- * RSRQ. Only available on _session.qo events.
550
- * @member {Number} rsrq
518
+ * Location
519
+ * @member {String} best_location
551
520
  */
552
- Event.prototype['rsrq'] = undefined;
521
+ Event.prototype['best_location'] = undefined;
553
522
 
554
523
  /**
555
- * Received Signal Strength Indicator (RSSI) is an estimated measurement of how well a device can receive signals. Only available on _session.qo events.
556
- * @member {Number} rssi
524
+ * Country
525
+ * @member {String} best_country
557
526
  */
558
- Event.prototype['rssi'] = undefined;
527
+ Event.prototype['best_country'] = undefined;
559
528
 
560
529
  /**
561
- * Session UID (globally unique)
562
- * @member {String} session
530
+ * Timezone
531
+ * @member {String} best_timezone
563
532
  */
564
- Event.prototype['session'] = undefined;
533
+ Event.prototype['best_timezone'] = undefined;
565
534
 
566
535
  /**
567
- * SINR. Only available on _session.qo events.
568
- * @member {Number} sinr
536
+ * Open Location Code
537
+ * @member {String} where_olc
569
538
  */
570
- Event.prototype['sinr'] = undefined;
539
+ Event.prototype['where_olc'] = undefined;
571
540
 
572
541
  /**
573
- * SKU. Only available on _session.qo events.
574
- * @member {String} sku
542
+ * Unix timestamp
543
+ * @member {Number} where_when
575
544
  */
576
- Event.prototype['sku'] = undefined;
545
+ Event.prototype['where_when'] = undefined;
577
546
 
578
547
  /**
579
- * The device serial number
580
- * @member {String} sn
548
+ * Latitude
549
+ * @member {Number} where_lat
581
550
  */
582
- Event.prototype['sn'] = undefined;
551
+ Event.prototype['where_lat'] = undefined;
583
552
 
584
553
  /**
585
- * SSID. Only available on _session.qo events.
586
- * @member {String} ssid
554
+ * Longitude
555
+ * @member {Number} where_lon
587
556
  */
588
- Event.prototype['ssid'] = undefined;
557
+ Event.prototype['where_lon'] = undefined;
589
558
 
590
559
  /**
591
- * Device temperature. Only available on _session.qo events.
592
- * @member {Number} temp
560
+ * Location
561
+ * @member {String} where_location
593
562
  */
594
- Event.prototype['temp'] = undefined;
563
+ Event.prototype['where_location'] = undefined;
595
564
 
596
565
  /**
597
- * Whether TLS was used on the connection between the device and notehub. Only available on _session.qo events.
598
- * @member {Boolean} tls
566
+ * Country
567
+ * @member {String} where_country
599
568
  */
600
- Event.prototype['tls'] = undefined;
569
+ Event.prototype['where_country'] = undefined;
601
570
 
602
571
  /**
603
- * Country
604
- * @member {String} tower_country
572
+ * Timezone
573
+ * @member {String} where_timezone
605
574
  */
606
- Event.prototype['tower_country'] = undefined;
575
+ Event.prototype['where_timezone'] = undefined;
607
576
 
608
577
  /**
609
- * Tower ID
610
- * @member {String} tower_id
578
+ * Unix timestamp
579
+ * @member {Number} tower_when
611
580
  */
612
- Event.prototype['tower_id'] = undefined;
581
+ Event.prototype['tower_when'] = undefined;
613
582
 
614
583
  /**
615
584
  * Latitude
@@ -617,12 +586,6 @@ Event.prototype['tower_id'] = undefined;
617
586
  */
618
587
  Event.prototype['tower_lat'] = undefined;
619
588
 
620
- /**
621
- * Location
622
- * @member {String} tower_location
623
- */
624
- Event.prototype['tower_location'] = undefined;
625
-
626
589
  /**
627
590
  * Longitude
628
591
  * @member {Number} tower_lon
@@ -630,28 +593,34 @@ Event.prototype['tower_location'] = undefined;
630
593
  Event.prototype['tower_lon'] = undefined;
631
594
 
632
595
  /**
633
- * Timezone
634
- * @member {String} tower_timezone
596
+ * Country
597
+ * @member {String} tower_country
635
598
  */
636
- Event.prototype['tower_timezone'] = undefined;
599
+ Event.prototype['tower_country'] = undefined;
637
600
 
638
601
  /**
639
- * Unix timestamp
640
- * @member {Number} tower_when
602
+ * Location
603
+ * @member {String} tower_location
641
604
  */
642
- Event.prototype['tower_when'] = undefined;
605
+ Event.prototype['tower_location'] = undefined;
643
606
 
644
607
  /**
645
- * The transport used for this event, e.g., \"cellular\", \"wifi\", \", etc.
646
- * @member {String} transport
608
+ * Timezone
609
+ * @member {String} tower_timezone
647
610
  */
648
- Event.prototype['transport'] = undefined;
611
+ Event.prototype['tower_timezone'] = undefined;
649
612
 
650
613
  /**
651
- * Country
652
- * @member {String} tri_country
614
+ * Tower ID
615
+ * @member {String} tower_id
653
616
  */
654
- Event.prototype['tri_country'] = undefined;
617
+ Event.prototype['tower_id'] = undefined;
618
+
619
+ /**
620
+ * Unix timestamp
621
+ * @member {Number} tri_when
622
+ */
623
+ Event.prototype['tri_when'] = undefined;
655
624
 
656
625
  /**
657
626
  * Latitude
@@ -659,6 +628,12 @@ Event.prototype['tri_country'] = undefined;
659
628
  */
660
629
  Event.prototype['tri_lat'] = undefined;
661
630
 
631
+ /**
632
+ * Longitude
633
+ * @member {Number} tri_lon
634
+ */
635
+ Event.prototype['tri_lon'] = undefined;
636
+
662
637
  /**
663
638
  * Location
664
639
  * @member {String} tri_location
@@ -666,10 +641,16 @@ Event.prototype['tri_lat'] = undefined;
666
641
  Event.prototype['tri_location'] = undefined;
667
642
 
668
643
  /**
669
- * Longitude
670
- * @member {Number} tri_lon
644
+ * Country
645
+ * @member {String} tri_country
671
646
  */
672
- Event.prototype['tri_lon'] = undefined;
647
+ Event.prototype['tri_country'] = undefined;
648
+
649
+ /**
650
+ * Timezone
651
+ * @member {String} tri_timezone
652
+ */
653
+ Event.prototype['tri_timezone'] = undefined;
673
654
 
674
655
  /**
675
656
  * Triangulation points
@@ -678,73 +659,92 @@ Event.prototype['tri_lon'] = undefined;
678
659
  Event.prototype['tri_points'] = undefined;
679
660
 
680
661
  /**
681
- * Timezone
682
- * @member {String} tri_timezone
662
+ * The number of times the device was sensed to have moved between the last session and this session. Only available on _session.qo events.
663
+ * @member {Number} moved
683
664
  */
684
- Event.prototype['tri_timezone'] = undefined;
665
+ Event.prototype['moved'] = undefined;
685
666
 
686
667
  /**
687
- * Unix timestamp
688
- * @member {Number} tri_when
668
+ * The orientation of the device. Only available on _session.qo events.
669
+ * @member {String} orientation
689
670
  */
690
- Event.prototype['tri_when'] = undefined;
671
+ Event.prototype['orientation'] = undefined;
691
672
 
692
673
  /**
693
- * @member {Number} updates
674
+ * Received Signal Strength Indicator (RSSI) is an estimated measurement of how well a device can receive signals. Only available on _session.qo events.
675
+ * @member {Number} rssi
694
676
  */
695
- Event.prototype['updates'] = undefined;
677
+ Event.prototype['rssi'] = undefined;
696
678
 
697
679
  /**
698
- * Device voltage. Only available on _session.qo events.
699
- * @member {Number} voltage
680
+ * SINR. Only available on _session.qo events.
681
+ * @member {Number} sinr
700
682
  */
701
- Event.prototype['voltage'] = undefined;
683
+ Event.prototype['sinr'] = undefined;
702
684
 
703
685
  /**
704
- * When the event was captured on the device
705
- * @member {Number} when
686
+ * RSRP. Only available on _session.qo events.
687
+ * @member {Number} rsrp
706
688
  */
707
- Event.prototype['when'] = undefined;
689
+ Event.prototype['rsrp'] = undefined;
708
690
 
709
691
  /**
710
- * Country
711
- * @member {String} where_country
692
+ * RSRQ. Only available on _session.qo events.
693
+ * @member {Number} rsrq
712
694
  */
713
- Event.prototype['where_country'] = undefined;
695
+ Event.prototype['rsrq'] = undefined;
714
696
 
715
697
  /**
716
- * Latitude
717
- * @member {Number} where_lat
698
+ * Rat. Only available on _session.qo events.
699
+ * @member {String} rat
718
700
  */
719
- Event.prototype['where_lat'] = undefined;
701
+ Event.prototype['rat'] = undefined;
720
702
 
721
703
  /**
722
- * Location
723
- * @member {String} where_location
704
+ * Bars. Only available on _session.qo events.
705
+ * @member {Number} bars
724
706
  */
725
- Event.prototype['where_location'] = undefined;
707
+ Event.prototype['bars'] = undefined;
726
708
 
727
709
  /**
728
- * Longitude
729
- * @member {Number} where_lon
710
+ * Device voltage. Only available on _session.qo events.
711
+ * @member {Number} voltage
730
712
  */
731
- Event.prototype['where_lon'] = undefined;
713
+ Event.prototype['voltage'] = undefined;
732
714
 
733
715
  /**
734
- * Open Location Code
735
- * @member {String} where_olc
716
+ * Device temperature. Only available on _session.qo events.
717
+ * @member {Number} temp
736
718
  */
737
- Event.prototype['where_olc'] = undefined;
719
+ Event.prototype['temp'] = undefined;
738
720
 
739
721
  /**
740
- * Timezone
741
- * @member {String} where_timezone
722
+ * Routed environment variables beginning with \"$\". Only available on _session.qo events.
723
+ * @member {Object} environment
742
724
  */
743
- Event.prototype['where_timezone'] = undefined;
725
+ Event.prototype['environment'] = undefined;
744
726
 
745
727
  /**
746
- * Unix timestamp
747
- * @member {Number} where_when
728
+ * SKU. Only available on _session.qo events.
729
+ * @member {String} sku
748
730
  */
749
- Event.prototype['where_when'] = undefined;
731
+ Event.prototype['sku'] = undefined;
732
+
733
+ /**
734
+ * Ordering code. Only available on _session.qo events.
735
+ * @member {String} ordering_code
736
+ */
737
+ Event.prototype['ordering_code'] = undefined;
738
+
739
+ /**
740
+ * SSID. Only available on _session.qo events.
741
+ * @member {String} ssid
742
+ */
743
+ Event.prototype['ssid'] = undefined;
744
+
745
+ /**
746
+ * BSSID. Only available on _session.qo events.
747
+ * @member {String} bssid
748
+ */
749
+ Event.prototype['bssid'] = undefined;
750
750
  var _default = exports["default"] = Event;