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