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