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