@blues-inc/notehub-js 1.0.37-beta.14 → 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.
- package/README.md +27 -21
- package/dist/ApiClient.js +6 -4
- package/dist/api/AlertApi.js +2 -2
- package/dist/api/AuthorizationApi.js +1 -64
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +36 -36
- package/dist/api/EventApi.js +6 -6
- package/dist/api/ExternalDevicesApi.js +4 -4
- package/dist/api/MonitorApi.js +15 -15
- package/dist/api/ProjectApi.js +49 -49
- package/dist/api/RouteApi.js +7 -7
- package/dist/api/UsageApi.js +225 -0
- package/dist/api/WebhookApi.js +6 -6
- package/dist/index.js +108 -94
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/Aws.js +86 -86
- 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/DataSet.js +164 -0
- 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/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/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
- 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/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
- 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/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
- 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/{AwsFilter.js → HttpFilter.js} +32 -32
- package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
- 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/QuestionDataResponseLineChart.js +204 -0
- package/dist/model/{OAuth2Error.js → QuestionDataResponseMap.js} +42 -65
- 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 +36 -34
- package/dist/model/SimUsage.js +20 -20
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
- 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/{AnalyticsEventsData.js → UsageEventsData.js} +42 -28
- package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +25 -25
- package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +43 -29
- package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +25 -25
- package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +37 -33
- package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +25 -25
- 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/OAuth2TokenResponse.js +0 -154
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.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('
|
|
63
|
-
obj['
|
|
62
|
+
if (data.hasOwnProperty('event')) {
|
|
63
|
+
obj['event'] = _ApiClient["default"].convertToType(data['event'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('session')) {
|
|
66
|
+
obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
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('
|
|
75
|
-
obj['
|
|
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('
|
|
90
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('sn')) {
|
|
81
|
+
obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
|
|
91
82
|
}
|
|
92
|
-
if (data.hasOwnProperty('
|
|
93
|
-
obj['
|
|
83
|
+
if (data.hasOwnProperty('product')) {
|
|
84
|
+
obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
|
|
94
85
|
}
|
|
95
|
-
if (data.hasOwnProperty('
|
|
96
|
-
obj['
|
|
86
|
+
if (data.hasOwnProperty('app')) {
|
|
87
|
+
obj['app'] = _ApiClient["default"].convertToType(data['app'], 'String');
|
|
97
88
|
}
|
|
98
|
-
if (data.hasOwnProperty('
|
|
99
|
-
obj['
|
|
89
|
+
if (data.hasOwnProperty('received')) {
|
|
90
|
+
obj['received'] = _ApiClient["default"].convertToType(data['received'], 'Number');
|
|
100
91
|
}
|
|
101
|
-
if (data.hasOwnProperty('
|
|
102
|
-
obj['
|
|
92
|
+
if (data.hasOwnProperty('req')) {
|
|
93
|
+
obj['req'] = _ApiClient["default"].convertToType(data['req'], 'String');
|
|
103
94
|
}
|
|
104
|
-
if (data.hasOwnProperty('
|
|
105
|
-
obj['
|
|
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('
|
|
117
|
-
obj['
|
|
104
|
+
if (data.hasOwnProperty('updates')) {
|
|
105
|
+
obj['updates'] = _ApiClient["default"].convertToType(data['updates'], 'Number');
|
|
118
106
|
}
|
|
119
|
-
if (data.hasOwnProperty('
|
|
120
|
-
obj['
|
|
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('
|
|
126
|
-
obj['
|
|
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('
|
|
132
|
-
obj['
|
|
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('
|
|
135
|
-
obj['
|
|
119
|
+
if (data.hasOwnProperty('best_lat')) {
|
|
120
|
+
obj['best_lat'] = _ApiClient["default"].convertToType(data['best_lat'], 'Number');
|
|
136
121
|
}
|
|
137
|
-
if (data.hasOwnProperty('
|
|
138
|
-
obj['
|
|
122
|
+
if (data.hasOwnProperty('best_lon')) {
|
|
123
|
+
obj['best_lon'] = _ApiClient["default"].convertToType(data['best_lon'], 'Number');
|
|
139
124
|
}
|
|
140
|
-
if (data.hasOwnProperty('
|
|
141
|
-
obj['
|
|
125
|
+
if (data.hasOwnProperty('best_location')) {
|
|
126
|
+
obj['best_location'] = _ApiClient["default"].convertToType(data['best_location'], 'String');
|
|
142
127
|
}
|
|
143
|
-
if (data.hasOwnProperty('
|
|
144
|
-
obj['
|
|
128
|
+
if (data.hasOwnProperty('best_country')) {
|
|
129
|
+
obj['best_country'] = _ApiClient["default"].convertToType(data['best_country'], 'String');
|
|
145
130
|
}
|
|
146
|
-
if (data.hasOwnProperty('
|
|
147
|
-
obj['
|
|
131
|
+
if (data.hasOwnProperty('best_timezone')) {
|
|
132
|
+
obj['best_timezone'] = _ApiClient["default"].convertToType(data['best_timezone'], 'String');
|
|
148
133
|
}
|
|
149
|
-
if (data.hasOwnProperty('
|
|
150
|
-
obj['
|
|
134
|
+
if (data.hasOwnProperty('where_olc')) {
|
|
135
|
+
obj['where_olc'] = _ApiClient["default"].convertToType(data['where_olc'], 'String');
|
|
151
136
|
}
|
|
152
|
-
if (data.hasOwnProperty('
|
|
153
|
-
obj['
|
|
137
|
+
if (data.hasOwnProperty('where_when')) {
|
|
138
|
+
obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
|
|
154
139
|
}
|
|
155
|
-
if (data.hasOwnProperty('
|
|
156
|
-
obj['
|
|
140
|
+
if (data.hasOwnProperty('where_lat')) {
|
|
141
|
+
obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
|
|
157
142
|
}
|
|
158
|
-
if (data.hasOwnProperty('
|
|
159
|
-
obj['
|
|
143
|
+
if (data.hasOwnProperty('where_lon')) {
|
|
144
|
+
obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
|
|
160
145
|
}
|
|
161
|
-
if (data.hasOwnProperty('
|
|
162
|
-
obj['
|
|
146
|
+
if (data.hasOwnProperty('where_location')) {
|
|
147
|
+
obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
|
|
163
148
|
}
|
|
164
|
-
if (data.hasOwnProperty('
|
|
165
|
-
obj['
|
|
149
|
+
if (data.hasOwnProperty('where_country')) {
|
|
150
|
+
obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
|
|
166
151
|
}
|
|
167
|
-
if (data.hasOwnProperty('
|
|
168
|
-
obj['
|
|
152
|
+
if (data.hasOwnProperty('where_timezone')) {
|
|
153
|
+
obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
|
|
169
154
|
}
|
|
170
|
-
if (data.hasOwnProperty('
|
|
171
|
-
obj['
|
|
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('
|
|
186
|
-
obj['
|
|
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('
|
|
192
|
-
obj['
|
|
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('
|
|
201
|
-
obj['
|
|
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('
|
|
207
|
-
obj['
|
|
197
|
+
if (data.hasOwnProperty('moved')) {
|
|
198
|
+
obj['moved'] = _ApiClient["default"].convertToType(data['moved'], 'Number');
|
|
208
199
|
}
|
|
209
|
-
if (data.hasOwnProperty('
|
|
210
|
-
obj['
|
|
200
|
+
if (data.hasOwnProperty('orientation')) {
|
|
201
|
+
obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], 'String');
|
|
211
202
|
}
|
|
212
|
-
if (data.hasOwnProperty('
|
|
213
|
-
obj['
|
|
203
|
+
if (data.hasOwnProperty('rssi')) {
|
|
204
|
+
obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
|
|
214
205
|
}
|
|
215
|
-
if (data.hasOwnProperty('
|
|
216
|
-
obj['
|
|
206
|
+
if (data.hasOwnProperty('sinr')) {
|
|
207
|
+
obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
|
|
217
208
|
}
|
|
218
|
-
if (data.hasOwnProperty('
|
|
219
|
-
obj['
|
|
209
|
+
if (data.hasOwnProperty('rsrp')) {
|
|
210
|
+
obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
|
|
220
211
|
}
|
|
221
|
-
if (data.hasOwnProperty('
|
|
222
|
-
obj['
|
|
212
|
+
if (data.hasOwnProperty('rsrq')) {
|
|
213
|
+
obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
|
|
223
214
|
}
|
|
224
|
-
if (data.hasOwnProperty('
|
|
225
|
-
obj['
|
|
215
|
+
if (data.hasOwnProperty('rat')) {
|
|
216
|
+
obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
|
|
226
217
|
}
|
|
227
|
-
if (data.hasOwnProperty('
|
|
228
|
-
obj['
|
|
218
|
+
if (data.hasOwnProperty('bars')) {
|
|
219
|
+
obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
|
|
229
220
|
}
|
|
230
|
-
if (data.hasOwnProperty('
|
|
231
|
-
obj['
|
|
221
|
+
if (data.hasOwnProperty('voltage')) {
|
|
222
|
+
obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
|
|
232
223
|
}
|
|
233
|
-
if (data.hasOwnProperty('
|
|
234
|
-
obj['
|
|
224
|
+
if (data.hasOwnProperty('temp')) {
|
|
225
|
+
obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
|
|
235
226
|
}
|
|
236
|
-
if (data.hasOwnProperty('
|
|
237
|
-
obj['
|
|
227
|
+
if (data.hasOwnProperty('environment')) {
|
|
228
|
+
obj['environment'] = _ApiClient["default"].convertToType(data['environment'], Object);
|
|
238
229
|
}
|
|
239
|
-
if (data.hasOwnProperty('
|
|
240
|
-
obj['
|
|
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['
|
|
258
|
-
throw new Error("Expected the field `
|
|
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['
|
|
262
|
-
throw new Error("Expected the field `
|
|
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['
|
|
266
|
-
throw new Error("Expected the field `
|
|
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['
|
|
270
|
-
throw new Error("Expected the field `
|
|
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['
|
|
274
|
-
throw new Error("Expected the field `
|
|
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['
|
|
278
|
-
throw new Error("Expected the field `
|
|
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['
|
|
282
|
-
throw new Error("Expected the field `
|
|
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['
|
|
286
|
-
throw new Error("Expected the field `
|
|
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['
|
|
290
|
-
throw new Error("Expected the field `
|
|
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['
|
|
314
|
-
throw new Error("Expected the field `
|
|
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['
|
|
318
|
-
throw new Error("Expected the field `
|
|
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['
|
|
322
|
-
throw new Error("Expected the field `
|
|
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['
|
|
326
|
-
throw new Error("Expected the field `
|
|
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['
|
|
330
|
-
throw new Error("Expected the field `
|
|
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['
|
|
334
|
-
throw new Error("Expected the field `
|
|
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['
|
|
338
|
-
throw new Error("Expected the field `
|
|
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['
|
|
342
|
-
throw new Error("Expected the field `
|
|
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['
|
|
346
|
-
throw new Error("Expected the field `
|
|
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['
|
|
358
|
-
throw new Error("Expected the field `
|
|
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['
|
|
374
|
-
throw new Error("Expected the field `
|
|
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['
|
|
378
|
-
throw new Error("Expected the field `
|
|
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['
|
|
382
|
-
throw new Error("Expected the field `
|
|
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['
|
|
386
|
-
throw new Error("Expected the field `
|
|
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
|
-
*
|
|
394
|
-
* @member {String}
|
|
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['
|
|
396
|
+
Event.prototype['event'] = undefined;
|
|
415
397
|
|
|
416
398
|
/**
|
|
417
|
-
*
|
|
418
|
-
* @member {
|
|
399
|
+
* Session UID (globally unique)
|
|
400
|
+
* @member {String} session
|
|
419
401
|
*/
|
|
420
|
-
Event.prototype['
|
|
402
|
+
Event.prototype['session'] = undefined;
|
|
421
403
|
|
|
422
404
|
/**
|
|
423
|
-
*
|
|
424
|
-
* @member {
|
|
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['
|
|
408
|
+
Event.prototype['tls'] = undefined;
|
|
427
409
|
|
|
428
410
|
/**
|
|
429
|
-
*
|
|
430
|
-
* @member {String}
|
|
411
|
+
* The transport used for this event, e.g., \"cellular\", \"wifi\", \", etc.
|
|
412
|
+
* @member {String} transport
|
|
431
413
|
*/
|
|
432
|
-
Event.prototype['
|
|
414
|
+
Event.prototype['transport'] = undefined;
|
|
433
415
|
|
|
434
416
|
/**
|
|
435
|
-
*
|
|
436
|
-
* @member {
|
|
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['
|
|
420
|
+
Event.prototype['best_id'] = undefined;
|
|
439
421
|
|
|
440
422
|
/**
|
|
441
|
-
*
|
|
442
|
-
* @member {
|
|
423
|
+
* Device UID (globally unique)
|
|
424
|
+
* @member {String} device
|
|
443
425
|
*/
|
|
444
|
-
Event.prototype['
|
|
426
|
+
Event.prototype['device'] = undefined;
|
|
445
427
|
|
|
446
428
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @member {String}
|
|
429
|
+
* The device serial number
|
|
430
|
+
* @member {String} sn
|
|
449
431
|
*/
|
|
450
|
-
Event.prototype['
|
|
432
|
+
Event.prototype['sn'] = undefined;
|
|
451
433
|
|
|
452
434
|
/**
|
|
453
|
-
*
|
|
454
|
-
* @member {
|
|
435
|
+
* Product UID (globally unique)
|
|
436
|
+
* @member {String} product
|
|
455
437
|
*/
|
|
456
|
-
Event.prototype['
|
|
438
|
+
Event.prototype['product'] = undefined;
|
|
457
439
|
|
|
458
440
|
/**
|
|
459
|
-
*
|
|
460
|
-
* @member {String}
|
|
441
|
+
* App UID (globally unique)
|
|
442
|
+
* @member {String} app
|
|
461
443
|
*/
|
|
462
|
-
Event.prototype['
|
|
444
|
+
Event.prototype['app'] = undefined;
|
|
463
445
|
|
|
464
446
|
/**
|
|
465
|
-
*
|
|
466
|
-
* @member {
|
|
447
|
+
* The unix timestamp when the event was received
|
|
448
|
+
* @member {Number} received
|
|
467
449
|
*/
|
|
468
|
-
Event.prototype['
|
|
450
|
+
Event.prototype['received'] = undefined;
|
|
469
451
|
|
|
470
452
|
/**
|
|
471
|
-
*
|
|
472
|
-
* @member {
|
|
453
|
+
* The notecard request
|
|
454
|
+
* @member {String} req
|
|
473
455
|
*/
|
|
474
|
-
Event.prototype['
|
|
456
|
+
Event.prototype['req'] = undefined;
|
|
475
457
|
|
|
476
458
|
/**
|
|
477
|
-
*
|
|
478
|
-
* @member {
|
|
459
|
+
* When the event was captured on the device
|
|
460
|
+
* @member {Number} when
|
|
479
461
|
*/
|
|
480
|
-
Event.prototype['
|
|
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
|
-
*
|
|
502
|
-
* @member {String} ordering_code
|
|
477
|
+
* @member {Number} updates
|
|
503
478
|
*/
|
|
504
|
-
Event.prototype['
|
|
479
|
+
Event.prototype['updates'] = undefined;
|
|
505
480
|
|
|
506
481
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @member {
|
|
482
|
+
* A JSON object containing event details
|
|
483
|
+
* @member {Object} body
|
|
509
484
|
*/
|
|
510
|
-
Event.prototype['
|
|
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
|
-
*
|
|
520
|
-
* @member {String}
|
|
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['
|
|
497
|
+
Event.prototype['best_location_type'] = undefined;
|
|
529
498
|
|
|
530
499
|
/**
|
|
531
|
-
*
|
|
532
|
-
* @member {Number}
|
|
500
|
+
* Unix timestamp
|
|
501
|
+
* @member {Number} best_location_when
|
|
533
502
|
*/
|
|
534
|
-
Event.prototype['
|
|
503
|
+
Event.prototype['best_location_when'] = undefined;
|
|
535
504
|
|
|
536
505
|
/**
|
|
537
|
-
*
|
|
538
|
-
* @member {
|
|
506
|
+
* Latitude
|
|
507
|
+
* @member {Number} best_lat
|
|
539
508
|
*/
|
|
540
|
-
Event.prototype['
|
|
509
|
+
Event.prototype['best_lat'] = undefined;
|
|
541
510
|
|
|
542
511
|
/**
|
|
543
|
-
*
|
|
544
|
-
* @member {Number}
|
|
512
|
+
* Longitude
|
|
513
|
+
* @member {Number} best_lon
|
|
545
514
|
*/
|
|
546
|
-
Event.prototype['
|
|
515
|
+
Event.prototype['best_lon'] = undefined;
|
|
547
516
|
|
|
548
517
|
/**
|
|
549
|
-
*
|
|
550
|
-
* @member {
|
|
518
|
+
* Location
|
|
519
|
+
* @member {String} best_location
|
|
551
520
|
*/
|
|
552
|
-
Event.prototype['
|
|
521
|
+
Event.prototype['best_location'] = undefined;
|
|
553
522
|
|
|
554
523
|
/**
|
|
555
|
-
*
|
|
556
|
-
* @member {
|
|
524
|
+
* Country
|
|
525
|
+
* @member {String} best_country
|
|
557
526
|
*/
|
|
558
|
-
Event.prototype['
|
|
527
|
+
Event.prototype['best_country'] = undefined;
|
|
559
528
|
|
|
560
529
|
/**
|
|
561
|
-
*
|
|
562
|
-
* @member {String}
|
|
530
|
+
* Timezone
|
|
531
|
+
* @member {String} best_timezone
|
|
563
532
|
*/
|
|
564
|
-
Event.prototype['
|
|
533
|
+
Event.prototype['best_timezone'] = undefined;
|
|
565
534
|
|
|
566
535
|
/**
|
|
567
|
-
*
|
|
568
|
-
* @member {
|
|
536
|
+
* Open Location Code
|
|
537
|
+
* @member {String} where_olc
|
|
569
538
|
*/
|
|
570
|
-
Event.prototype['
|
|
539
|
+
Event.prototype['where_olc'] = undefined;
|
|
571
540
|
|
|
572
541
|
/**
|
|
573
|
-
*
|
|
574
|
-
* @member {
|
|
542
|
+
* Unix timestamp
|
|
543
|
+
* @member {Number} where_when
|
|
575
544
|
*/
|
|
576
|
-
Event.prototype['
|
|
545
|
+
Event.prototype['where_when'] = undefined;
|
|
577
546
|
|
|
578
547
|
/**
|
|
579
|
-
*
|
|
580
|
-
* @member {
|
|
548
|
+
* Latitude
|
|
549
|
+
* @member {Number} where_lat
|
|
581
550
|
*/
|
|
582
|
-
Event.prototype['
|
|
551
|
+
Event.prototype['where_lat'] = undefined;
|
|
583
552
|
|
|
584
553
|
/**
|
|
585
|
-
*
|
|
586
|
-
* @member {
|
|
554
|
+
* Longitude
|
|
555
|
+
* @member {Number} where_lon
|
|
587
556
|
*/
|
|
588
|
-
Event.prototype['
|
|
557
|
+
Event.prototype['where_lon'] = undefined;
|
|
589
558
|
|
|
590
559
|
/**
|
|
591
|
-
*
|
|
592
|
-
* @member {
|
|
560
|
+
* Location
|
|
561
|
+
* @member {String} where_location
|
|
593
562
|
*/
|
|
594
|
-
Event.prototype['
|
|
563
|
+
Event.prototype['where_location'] = undefined;
|
|
595
564
|
|
|
596
565
|
/**
|
|
597
|
-
*
|
|
598
|
-
* @member {
|
|
566
|
+
* Country
|
|
567
|
+
* @member {String} where_country
|
|
599
568
|
*/
|
|
600
|
-
Event.prototype['
|
|
569
|
+
Event.prototype['where_country'] = undefined;
|
|
601
570
|
|
|
602
571
|
/**
|
|
603
|
-
*
|
|
604
|
-
* @member {String}
|
|
572
|
+
* Timezone
|
|
573
|
+
* @member {String} where_timezone
|
|
605
574
|
*/
|
|
606
|
-
Event.prototype['
|
|
575
|
+
Event.prototype['where_timezone'] = undefined;
|
|
607
576
|
|
|
608
577
|
/**
|
|
609
|
-
*
|
|
610
|
-
* @member {
|
|
578
|
+
* Unix timestamp
|
|
579
|
+
* @member {Number} tower_when
|
|
611
580
|
*/
|
|
612
|
-
Event.prototype['
|
|
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
|
-
*
|
|
634
|
-
* @member {String}
|
|
596
|
+
* Country
|
|
597
|
+
* @member {String} tower_country
|
|
635
598
|
*/
|
|
636
|
-
Event.prototype['
|
|
599
|
+
Event.prototype['tower_country'] = undefined;
|
|
637
600
|
|
|
638
601
|
/**
|
|
639
|
-
*
|
|
640
|
-
* @member {
|
|
602
|
+
* Location
|
|
603
|
+
* @member {String} tower_location
|
|
641
604
|
*/
|
|
642
|
-
Event.prototype['
|
|
605
|
+
Event.prototype['tower_location'] = undefined;
|
|
643
606
|
|
|
644
607
|
/**
|
|
645
|
-
*
|
|
646
|
-
* @member {String}
|
|
608
|
+
* Timezone
|
|
609
|
+
* @member {String} tower_timezone
|
|
647
610
|
*/
|
|
648
|
-
Event.prototype['
|
|
611
|
+
Event.prototype['tower_timezone'] = undefined;
|
|
649
612
|
|
|
650
613
|
/**
|
|
651
|
-
*
|
|
652
|
-
* @member {String}
|
|
614
|
+
* Tower ID
|
|
615
|
+
* @member {String} tower_id
|
|
653
616
|
*/
|
|
654
|
-
Event.prototype['
|
|
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
|
-
*
|
|
670
|
-
* @member {
|
|
644
|
+
* Country
|
|
645
|
+
* @member {String} tri_country
|
|
671
646
|
*/
|
|
672
|
-
Event.prototype['
|
|
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
|
-
*
|
|
682
|
-
* @member {
|
|
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['
|
|
665
|
+
Event.prototype['moved'] = undefined;
|
|
685
666
|
|
|
686
667
|
/**
|
|
687
|
-
*
|
|
688
|
-
* @member {
|
|
668
|
+
* The orientation of the device. Only available on _session.qo events.
|
|
669
|
+
* @member {String} orientation
|
|
689
670
|
*/
|
|
690
|
-
Event.prototype['
|
|
671
|
+
Event.prototype['orientation'] = undefined;
|
|
691
672
|
|
|
692
673
|
/**
|
|
693
|
-
*
|
|
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['
|
|
677
|
+
Event.prototype['rssi'] = undefined;
|
|
696
678
|
|
|
697
679
|
/**
|
|
698
|
-
*
|
|
699
|
-
* @member {Number}
|
|
680
|
+
* SINR. Only available on _session.qo events.
|
|
681
|
+
* @member {Number} sinr
|
|
700
682
|
*/
|
|
701
|
-
Event.prototype['
|
|
683
|
+
Event.prototype['sinr'] = undefined;
|
|
702
684
|
|
|
703
685
|
/**
|
|
704
|
-
*
|
|
705
|
-
* @member {Number}
|
|
686
|
+
* RSRP. Only available on _session.qo events.
|
|
687
|
+
* @member {Number} rsrp
|
|
706
688
|
*/
|
|
707
|
-
Event.prototype['
|
|
689
|
+
Event.prototype['rsrp'] = undefined;
|
|
708
690
|
|
|
709
691
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @member {
|
|
692
|
+
* RSRQ. Only available on _session.qo events.
|
|
693
|
+
* @member {Number} rsrq
|
|
712
694
|
*/
|
|
713
|
-
Event.prototype['
|
|
695
|
+
Event.prototype['rsrq'] = undefined;
|
|
714
696
|
|
|
715
697
|
/**
|
|
716
|
-
*
|
|
717
|
-
* @member {
|
|
698
|
+
* Rat. Only available on _session.qo events.
|
|
699
|
+
* @member {String} rat
|
|
718
700
|
*/
|
|
719
|
-
Event.prototype['
|
|
701
|
+
Event.prototype['rat'] = undefined;
|
|
720
702
|
|
|
721
703
|
/**
|
|
722
|
-
*
|
|
723
|
-
* @member {
|
|
704
|
+
* Bars. Only available on _session.qo events.
|
|
705
|
+
* @member {Number} bars
|
|
724
706
|
*/
|
|
725
|
-
Event.prototype['
|
|
707
|
+
Event.prototype['bars'] = undefined;
|
|
726
708
|
|
|
727
709
|
/**
|
|
728
|
-
*
|
|
729
|
-
* @member {Number}
|
|
710
|
+
* Device voltage. Only available on _session.qo events.
|
|
711
|
+
* @member {Number} voltage
|
|
730
712
|
*/
|
|
731
|
-
Event.prototype['
|
|
713
|
+
Event.prototype['voltage'] = undefined;
|
|
732
714
|
|
|
733
715
|
/**
|
|
734
|
-
*
|
|
735
|
-
* @member {
|
|
716
|
+
* Device temperature. Only available on _session.qo events.
|
|
717
|
+
* @member {Number} temp
|
|
736
718
|
*/
|
|
737
|
-
Event.prototype['
|
|
719
|
+
Event.prototype['temp'] = undefined;
|
|
738
720
|
|
|
739
721
|
/**
|
|
740
|
-
*
|
|
741
|
-
* @member {
|
|
722
|
+
* Routed environment variables beginning with \"$\". Only available on _session.qo events.
|
|
723
|
+
* @member {Object} environment
|
|
742
724
|
*/
|
|
743
|
-
Event.prototype['
|
|
725
|
+
Event.prototype['environment'] = undefined;
|
|
744
726
|
|
|
745
727
|
/**
|
|
746
|
-
*
|
|
747
|
-
* @member {
|
|
728
|
+
* SKU. Only available on _session.qo events.
|
|
729
|
+
* @member {String} sku
|
|
748
730
|
*/
|
|
749
|
-
Event.prototype['
|
|
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;
|