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