@blues-inc/notehub-js 1.0.36-beta.9 → 1.0.37
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 +227 -241
- 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 +362 -362
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +370 -370
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -7
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AnalyticsEventsData.js +17 -17
- package/dist/model/AnalyticsEventsResponse.js +11 -12
- package/dist/model/AnalyticsRouteLogsData.js +22 -22
- package/dist/model/AnalyticsRouteLogsResponse.js +11 -12
- package/dist/model/AnalyticsSessionsData.js +22 -22
- package/dist/model/AnalyticsSessionsResponse.js +11 -12
- 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 +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- 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/GetWebhooks200Response.js +9 -10
- 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/PersonalAccessToken.js +40 -31
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +24 -15
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- 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/RouteLog.js +38 -38
- 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 +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- 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 +15 -15
- package/package.json +3 -3
- package/dist/api/ApiAccessApi.js +0 -238
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DeviceSession model module.
|
|
30
30
|
* @module model/DeviceSession
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.37
|
|
32
32
|
*/
|
|
33
33
|
var DeviceSession = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,176 +61,176 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new DeviceSession();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("session")) {
|
|
65
|
+
obj["session"] = _ApiClient["default"].convertToType(data["session"], "String");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("session_began")) {
|
|
68
|
+
obj["session_began"] = _ApiClient["default"].convertToType(data["session_began"], "Number");
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("why_session_opened")) {
|
|
71
|
+
obj["why_session_opened"] = _ApiClient["default"].convertToType(data["why_session_opened"], "String");
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("session_ended")) {
|
|
74
|
+
obj["session_ended"] = _ApiClient["default"].convertToType(data["session_ended"], "Number");
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("why_session_closed")) {
|
|
77
|
+
obj["why_session_closed"] = _ApiClient["default"].convertToType(data["why_session_closed"], "String");
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty("device")) {
|
|
80
|
+
obj["device"] = _ApiClient["default"].convertToType(data["device"], "String");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty("sn")) {
|
|
83
|
+
obj["sn"] = _ApiClient["default"].convertToType(data["sn"], "String");
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("product")) {
|
|
86
|
+
obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty("fleets")) {
|
|
89
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty("cell")) {
|
|
92
|
+
obj["cell"] = _ApiClient["default"].convertToType(data["cell"], "String");
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty("scan")) {
|
|
95
|
+
obj["scan"] = _ApiClient["default"].convertToType(data["scan"], "Blob");
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty("triangulate")) {
|
|
98
|
+
obj["triangulate"] = _ApiClient["default"].convertToType(data["triangulate"], Object);
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty("rssi")) {
|
|
101
|
+
obj["rssi"] = _ApiClient["default"].convertToType(data["rssi"], "Number");
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty("sinr")) {
|
|
104
|
+
obj["sinr"] = _ApiClient["default"].convertToType(data["sinr"], "Number");
|
|
105
105
|
}
|
|
106
|
-
if (data.hasOwnProperty(
|
|
107
|
-
obj[
|
|
106
|
+
if (data.hasOwnProperty("rsrp")) {
|
|
107
|
+
obj["rsrp"] = _ApiClient["default"].convertToType(data["rsrp"], "Number");
|
|
108
108
|
}
|
|
109
|
-
if (data.hasOwnProperty(
|
|
110
|
-
obj[
|
|
109
|
+
if (data.hasOwnProperty("rsrq")) {
|
|
110
|
+
obj["rsrq"] = _ApiClient["default"].convertToType(data["rsrq"], "Number");
|
|
111
111
|
}
|
|
112
|
-
if (data.hasOwnProperty(
|
|
113
|
-
obj[
|
|
112
|
+
if (data.hasOwnProperty("bars")) {
|
|
113
|
+
obj["bars"] = _ApiClient["default"].convertToType(data["bars"], "Number");
|
|
114
114
|
}
|
|
115
|
-
if (data.hasOwnProperty(
|
|
116
|
-
obj[
|
|
115
|
+
if (data.hasOwnProperty("rat")) {
|
|
116
|
+
obj["rat"] = _ApiClient["default"].convertToType(data["rat"], "String");
|
|
117
117
|
}
|
|
118
|
-
if (data.hasOwnProperty(
|
|
119
|
-
obj[
|
|
118
|
+
if (data.hasOwnProperty("bearer")) {
|
|
119
|
+
obj["bearer"] = _ApiClient["default"].convertToType(data["bearer"], "String");
|
|
120
120
|
}
|
|
121
|
-
if (data.hasOwnProperty(
|
|
122
|
-
obj[
|
|
121
|
+
if (data.hasOwnProperty("ip")) {
|
|
122
|
+
obj["ip"] = _ApiClient["default"].convertToType(data["ip"], "String");
|
|
123
123
|
}
|
|
124
|
-
if (data.hasOwnProperty(
|
|
125
|
-
obj[
|
|
124
|
+
if (data.hasOwnProperty("bssid")) {
|
|
125
|
+
obj["bssid"] = _ApiClient["default"].convertToType(data["bssid"], "String");
|
|
126
126
|
}
|
|
127
|
-
if (data.hasOwnProperty(
|
|
128
|
-
obj[
|
|
127
|
+
if (data.hasOwnProperty("ssid")) {
|
|
128
|
+
obj["ssid"] = _ApiClient["default"].convertToType(data["ssid"], "String");
|
|
129
129
|
}
|
|
130
|
-
if (data.hasOwnProperty(
|
|
131
|
-
obj[
|
|
130
|
+
if (data.hasOwnProperty("iccid")) {
|
|
131
|
+
obj["iccid"] = _ApiClient["default"].convertToType(data["iccid"], "String");
|
|
132
132
|
}
|
|
133
|
-
if (data.hasOwnProperty(
|
|
134
|
-
obj[
|
|
133
|
+
if (data.hasOwnProperty("apn")) {
|
|
134
|
+
obj["apn"] = _ApiClient["default"].convertToType(data["apn"], "String");
|
|
135
135
|
}
|
|
136
|
-
if (data.hasOwnProperty(
|
|
137
|
-
obj[
|
|
136
|
+
if (data.hasOwnProperty("transport")) {
|
|
137
|
+
obj["transport"] = _ApiClient["default"].convertToType(data["transport"], "String");
|
|
138
138
|
}
|
|
139
|
-
if (data.hasOwnProperty(
|
|
140
|
-
obj[
|
|
139
|
+
if (data.hasOwnProperty("tower")) {
|
|
140
|
+
obj["tower"] = _TowerLocation["default"].constructFromObject(data["tower"]);
|
|
141
141
|
}
|
|
142
|
-
if (data.hasOwnProperty(
|
|
143
|
-
obj[
|
|
142
|
+
if (data.hasOwnProperty("tri")) {
|
|
143
|
+
obj["tri"] = _TowerLocation["default"].constructFromObject(data["tri"]);
|
|
144
144
|
}
|
|
145
|
-
if (data.hasOwnProperty(
|
|
146
|
-
obj[
|
|
145
|
+
if (data.hasOwnProperty("when")) {
|
|
146
|
+
obj["when"] = _ApiClient["default"].convertToType(data["when"], "Number");
|
|
147
147
|
}
|
|
148
|
-
if (data.hasOwnProperty(
|
|
149
|
-
obj[
|
|
148
|
+
if (data.hasOwnProperty("where_when")) {
|
|
149
|
+
obj["where_when"] = _ApiClient["default"].convertToType(data["where_when"], "Number");
|
|
150
150
|
}
|
|
151
|
-
if (data.hasOwnProperty(
|
|
152
|
-
obj[
|
|
151
|
+
if (data.hasOwnProperty("where")) {
|
|
152
|
+
obj["where"] = _ApiClient["default"].convertToType(data["where"], "String");
|
|
153
153
|
}
|
|
154
|
-
if (data.hasOwnProperty(
|
|
155
|
-
obj[
|
|
154
|
+
if (data.hasOwnProperty("where_lat")) {
|
|
155
|
+
obj["where_lat"] = _ApiClient["default"].convertToType(data["where_lat"], "Number");
|
|
156
156
|
}
|
|
157
|
-
if (data.hasOwnProperty(
|
|
158
|
-
obj[
|
|
157
|
+
if (data.hasOwnProperty("where_lon")) {
|
|
158
|
+
obj["where_lon"] = _ApiClient["default"].convertToType(data["where_lon"], "Number");
|
|
159
159
|
}
|
|
160
|
-
if (data.hasOwnProperty(
|
|
161
|
-
obj[
|
|
160
|
+
if (data.hasOwnProperty("where_location")) {
|
|
161
|
+
obj["where_location"] = _ApiClient["default"].convertToType(data["where_location"], "String");
|
|
162
162
|
}
|
|
163
|
-
if (data.hasOwnProperty(
|
|
164
|
-
obj[
|
|
163
|
+
if (data.hasOwnProperty("where_country")) {
|
|
164
|
+
obj["where_country"] = _ApiClient["default"].convertToType(data["where_country"], "String");
|
|
165
165
|
}
|
|
166
|
-
if (data.hasOwnProperty(
|
|
167
|
-
obj[
|
|
166
|
+
if (data.hasOwnProperty("where_timezone")) {
|
|
167
|
+
obj["where_timezone"] = _ApiClient["default"].convertToType(data["where_timezone"], "String");
|
|
168
168
|
}
|
|
169
|
-
if (data.hasOwnProperty(
|
|
170
|
-
obj[
|
|
169
|
+
if (data.hasOwnProperty("usage_actual")) {
|
|
170
|
+
obj["usage_actual"] = _ApiClient["default"].convertToType(data["usage_actual"], "Boolean");
|
|
171
171
|
}
|
|
172
|
-
if (data.hasOwnProperty(
|
|
173
|
-
obj[
|
|
172
|
+
if (data.hasOwnProperty("voltage")) {
|
|
173
|
+
obj["voltage"] = _ApiClient["default"].convertToType(data["voltage"], "Number");
|
|
174
174
|
}
|
|
175
|
-
if (data.hasOwnProperty(
|
|
176
|
-
obj[
|
|
175
|
+
if (data.hasOwnProperty("temp")) {
|
|
176
|
+
obj["temp"] = _ApiClient["default"].convertToType(data["temp"], "Number");
|
|
177
177
|
}
|
|
178
|
-
if (data.hasOwnProperty(
|
|
179
|
-
obj[
|
|
178
|
+
if (data.hasOwnProperty("continuous")) {
|
|
179
|
+
obj["continuous"] = _ApiClient["default"].convertToType(data["continuous"], "Boolean");
|
|
180
180
|
}
|
|
181
|
-
if (data.hasOwnProperty(
|
|
182
|
-
obj[
|
|
181
|
+
if (data.hasOwnProperty("tls")) {
|
|
182
|
+
obj["tls"] = _ApiClient["default"].convertToType(data["tls"], "Boolean");
|
|
183
183
|
}
|
|
184
|
-
if (data.hasOwnProperty(
|
|
185
|
-
obj[
|
|
184
|
+
if (data.hasOwnProperty("work")) {
|
|
185
|
+
obj["work"] = _ApiClient["default"].convertToType(data["work"], "Number");
|
|
186
186
|
}
|
|
187
|
-
if (data.hasOwnProperty(
|
|
188
|
-
obj[
|
|
187
|
+
if (data.hasOwnProperty("events")) {
|
|
188
|
+
obj["events"] = _ApiClient["default"].convertToType(data["events"], "Number");
|
|
189
189
|
}
|
|
190
|
-
if (data.hasOwnProperty(
|
|
191
|
-
obj[
|
|
190
|
+
if (data.hasOwnProperty("moved")) {
|
|
191
|
+
obj["moved"] = _ApiClient["default"].convertToType(data["moved"], "Number");
|
|
192
192
|
}
|
|
193
|
-
if (data.hasOwnProperty(
|
|
194
|
-
obj[
|
|
193
|
+
if (data.hasOwnProperty("orientation")) {
|
|
194
|
+
obj["orientation"] = _ApiClient["default"].convertToType(data["orientation"], "String");
|
|
195
195
|
}
|
|
196
|
-
if (data.hasOwnProperty(
|
|
197
|
-
obj[
|
|
196
|
+
if (data.hasOwnProperty("hp_secs_total")) {
|
|
197
|
+
obj["hp_secs_total"] = _ApiClient["default"].convertToType(data["hp_secs_total"], "Number");
|
|
198
198
|
}
|
|
199
|
-
if (data.hasOwnProperty(
|
|
200
|
-
obj[
|
|
199
|
+
if (data.hasOwnProperty("hp_secs_data")) {
|
|
200
|
+
obj["hp_secs_data"] = _ApiClient["default"].convertToType(data["hp_secs_data"], "Number");
|
|
201
201
|
}
|
|
202
|
-
if (data.hasOwnProperty(
|
|
203
|
-
obj[
|
|
202
|
+
if (data.hasOwnProperty("hp_secs_gps")) {
|
|
203
|
+
obj["hp_secs_gps"] = _ApiClient["default"].convertToType(data["hp_secs_gps"], "Number");
|
|
204
204
|
}
|
|
205
|
-
if (data.hasOwnProperty(
|
|
206
|
-
obj[
|
|
205
|
+
if (data.hasOwnProperty("hp_cycles_total")) {
|
|
206
|
+
obj["hp_cycles_total"] = _ApiClient["default"].convertToType(data["hp_cycles_total"], "Number");
|
|
207
207
|
}
|
|
208
|
-
if (data.hasOwnProperty(
|
|
209
|
-
obj[
|
|
208
|
+
if (data.hasOwnProperty("hp_cycles_data")) {
|
|
209
|
+
obj["hp_cycles_data"] = _ApiClient["default"].convertToType(data["hp_cycles_data"], "Number");
|
|
210
210
|
}
|
|
211
|
-
if (data.hasOwnProperty(
|
|
212
|
-
obj[
|
|
211
|
+
if (data.hasOwnProperty("hp_cycles_gps")) {
|
|
212
|
+
obj["hp_cycles_gps"] = _ApiClient["default"].convertToType(data["hp_cycles_gps"], "Number");
|
|
213
213
|
}
|
|
214
|
-
if (data.hasOwnProperty(
|
|
215
|
-
obj[
|
|
214
|
+
if (data.hasOwnProperty("period")) {
|
|
215
|
+
obj["period"] = _DeviceUsage["default"].constructFromObject(data["period"]);
|
|
216
216
|
}
|
|
217
|
-
if (data.hasOwnProperty(
|
|
218
|
-
obj[
|
|
217
|
+
if (data.hasOwnProperty("power_charging")) {
|
|
218
|
+
obj["power_charging"] = _ApiClient["default"].convertToType(data["power_charging"], "Boolean");
|
|
219
219
|
}
|
|
220
|
-
if (data.hasOwnProperty(
|
|
221
|
-
obj[
|
|
220
|
+
if (data.hasOwnProperty("power_usb")) {
|
|
221
|
+
obj["power_usb"] = _ApiClient["default"].convertToType(data["power_usb"], "Boolean");
|
|
222
222
|
}
|
|
223
|
-
if (data.hasOwnProperty(
|
|
224
|
-
obj[
|
|
223
|
+
if (data.hasOwnProperty("power_primary")) {
|
|
224
|
+
obj["power_primary"] = _ApiClient["default"].convertToType(data["power_primary"], "Boolean");
|
|
225
225
|
}
|
|
226
|
-
if (data.hasOwnProperty(
|
|
227
|
-
obj[
|
|
226
|
+
if (data.hasOwnProperty("power_mah")) {
|
|
227
|
+
obj["power_mah"] = _ApiClient["default"].convertToType(data["power_mah"], "Number");
|
|
228
228
|
}
|
|
229
|
-
if (data.hasOwnProperty(
|
|
230
|
-
obj[
|
|
229
|
+
if (data.hasOwnProperty("penalty_secs")) {
|
|
230
|
+
obj["penalty_secs"] = _ApiClient["default"].convertToType(data["penalty_secs"], "Number");
|
|
231
231
|
}
|
|
232
|
-
if (data.hasOwnProperty(
|
|
233
|
-
obj[
|
|
232
|
+
if (data.hasOwnProperty("failed_connects")) {
|
|
233
|
+
obj["failed_connects"] = _ApiClient["default"].convertToType(data["failed_connects"], "Number");
|
|
234
234
|
}
|
|
235
235
|
} else if (data === null) {
|
|
236
236
|
return null;
|
|
@@ -247,103 +247,103 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
247
247
|
key: "validateJSON",
|
|
248
248
|
value: function validateJSON(data) {
|
|
249
249
|
// ensure the json data is a string
|
|
250
|
-
if (data[
|
|
251
|
-
throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data[
|
|
250
|
+
if (data["session"] && !(typeof data["session"] === "string" || data["session"] instanceof String)) {
|
|
251
|
+
throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data["session"]);
|
|
252
252
|
}
|
|
253
253
|
// ensure the json data is a string
|
|
254
|
-
if (data[
|
|
255
|
-
throw new Error("Expected the field `why_session_opened` to be a primitive type in the JSON string but got " + data[
|
|
254
|
+
if (data["why_session_opened"] && !(typeof data["why_session_opened"] === "string" || data["why_session_opened"] instanceof String)) {
|
|
255
|
+
throw new Error("Expected the field `why_session_opened` to be a primitive type in the JSON string but got " + data["why_session_opened"]);
|
|
256
256
|
}
|
|
257
257
|
// ensure the json data is a string
|
|
258
|
-
if (data[
|
|
259
|
-
throw new Error("Expected the field `why_session_closed` to be a primitive type in the JSON string but got " + data[
|
|
258
|
+
if (data["why_session_closed"] && !(typeof data["why_session_closed"] === "string" || data["why_session_closed"] instanceof String)) {
|
|
259
|
+
throw new Error("Expected the field `why_session_closed` to be a primitive type in the JSON string but got " + data["why_session_closed"]);
|
|
260
260
|
}
|
|
261
261
|
// ensure the json data is a string
|
|
262
|
-
if (data[
|
|
263
|
-
throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data[
|
|
262
|
+
if (data["device"] && !(typeof data["device"] === "string" || data["device"] instanceof String)) {
|
|
263
|
+
throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data["device"]);
|
|
264
264
|
}
|
|
265
265
|
// ensure the json data is a string
|
|
266
|
-
if (data[
|
|
267
|
-
throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data[
|
|
266
|
+
if (data["sn"] && !(typeof data["sn"] === "string" || data["sn"] instanceof String)) {
|
|
267
|
+
throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data["sn"]);
|
|
268
268
|
}
|
|
269
269
|
// ensure the json data is a string
|
|
270
|
-
if (data[
|
|
271
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
270
|
+
if (data["product"] && !(typeof data["product"] === "string" || data["product"] instanceof String)) {
|
|
271
|
+
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data["product"]);
|
|
272
272
|
}
|
|
273
273
|
// ensure the json data is an array
|
|
274
|
-
if (!Array.isArray(data[
|
|
275
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
274
|
+
if (!Array.isArray(data["fleets"])) {
|
|
275
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
276
276
|
}
|
|
277
277
|
// ensure the json data is a string
|
|
278
|
-
if (data[
|
|
279
|
-
throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data[
|
|
278
|
+
if (data["cell"] && !(typeof data["cell"] === "string" || data["cell"] instanceof String)) {
|
|
279
|
+
throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data["cell"]);
|
|
280
280
|
}
|
|
281
281
|
// ensure the json data is a string
|
|
282
|
-
if (data[
|
|
283
|
-
throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data[
|
|
282
|
+
if (data["rat"] && !(typeof data["rat"] === "string" || data["rat"] instanceof String)) {
|
|
283
|
+
throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data["rat"]);
|
|
284
284
|
}
|
|
285
285
|
// ensure the json data is a string
|
|
286
|
-
if (data[
|
|
287
|
-
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data[
|
|
286
|
+
if (data["bearer"] && !(typeof data["bearer"] === "string" || data["bearer"] instanceof String)) {
|
|
287
|
+
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data["bearer"]);
|
|
288
288
|
}
|
|
289
289
|
// ensure the json data is a string
|
|
290
|
-
if (data[
|
|
291
|
-
throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data[
|
|
290
|
+
if (data["ip"] && !(typeof data["ip"] === "string" || data["ip"] instanceof String)) {
|
|
291
|
+
throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data["ip"]);
|
|
292
292
|
}
|
|
293
293
|
// ensure the json data is a string
|
|
294
|
-
if (data[
|
|
295
|
-
throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data[
|
|
294
|
+
if (data["bssid"] && !(typeof data["bssid"] === "string" || data["bssid"] instanceof String)) {
|
|
295
|
+
throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data["bssid"]);
|
|
296
296
|
}
|
|
297
297
|
// ensure the json data is a string
|
|
298
|
-
if (data[
|
|
299
|
-
throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data[
|
|
298
|
+
if (data["ssid"] && !(typeof data["ssid"] === "string" || data["ssid"] instanceof String)) {
|
|
299
|
+
throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data["ssid"]);
|
|
300
300
|
}
|
|
301
301
|
// ensure the json data is a string
|
|
302
|
-
if (data[
|
|
303
|
-
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data[
|
|
302
|
+
if (data["iccid"] && !(typeof data["iccid"] === "string" || data["iccid"] instanceof String)) {
|
|
303
|
+
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data["iccid"]);
|
|
304
304
|
}
|
|
305
305
|
// ensure the json data is a string
|
|
306
|
-
if (data[
|
|
307
|
-
throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data[
|
|
306
|
+
if (data["apn"] && !(typeof data["apn"] === "string" || data["apn"] instanceof String)) {
|
|
307
|
+
throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data["apn"]);
|
|
308
308
|
}
|
|
309
309
|
// ensure the json data is a string
|
|
310
|
-
if (data[
|
|
311
|
-
throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data[
|
|
310
|
+
if (data["transport"] && !(typeof data["transport"] === "string" || data["transport"] instanceof String)) {
|
|
311
|
+
throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data["transport"]);
|
|
312
312
|
}
|
|
313
313
|
// validate the optional field `tower`
|
|
314
|
-
if (data[
|
|
314
|
+
if (data["tower"]) {
|
|
315
315
|
// data not null
|
|
316
|
-
_TowerLocation["default"].validateJSON(data[
|
|
316
|
+
_TowerLocation["default"].validateJSON(data["tower"]);
|
|
317
317
|
}
|
|
318
318
|
// validate the optional field `tri`
|
|
319
|
-
if (data[
|
|
319
|
+
if (data["tri"]) {
|
|
320
320
|
// data not null
|
|
321
|
-
_TowerLocation["default"].validateJSON(data[
|
|
321
|
+
_TowerLocation["default"].validateJSON(data["tri"]);
|
|
322
322
|
}
|
|
323
323
|
// ensure the json data is a string
|
|
324
|
-
if (data[
|
|
325
|
-
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data[
|
|
324
|
+
if (data["where"] && !(typeof data["where"] === "string" || data["where"] instanceof String)) {
|
|
325
|
+
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data["where"]);
|
|
326
326
|
}
|
|
327
327
|
// ensure the json data is a string
|
|
328
|
-
if (data[
|
|
329
|
-
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data[
|
|
328
|
+
if (data["where_location"] && !(typeof data["where_location"] === "string" || data["where_location"] instanceof String)) {
|
|
329
|
+
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data["where_location"]);
|
|
330
330
|
}
|
|
331
331
|
// ensure the json data is a string
|
|
332
|
-
if (data[
|
|
333
|
-
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data[
|
|
332
|
+
if (data["where_country"] && !(typeof data["where_country"] === "string" || data["where_country"] instanceof String)) {
|
|
333
|
+
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data["where_country"]);
|
|
334
334
|
}
|
|
335
335
|
// ensure the json data is a string
|
|
336
|
-
if (data[
|
|
337
|
-
throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data[
|
|
336
|
+
if (data["where_timezone"] && !(typeof data["where_timezone"] === "string" || data["where_timezone"] instanceof String)) {
|
|
337
|
+
throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data["where_timezone"]);
|
|
338
338
|
}
|
|
339
339
|
// ensure the json data is a string
|
|
340
|
-
if (data[
|
|
341
|
-
throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data[
|
|
340
|
+
if (data["orientation"] && !(typeof data["orientation"] === "string" || data["orientation"] instanceof String)) {
|
|
341
|
+
throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data["orientation"]);
|
|
342
342
|
}
|
|
343
343
|
// validate the optional field `period`
|
|
344
|
-
if (data[
|
|
344
|
+
if (data["period"]) {
|
|
345
345
|
// data not null
|
|
346
|
-
_DeviceUsage["default"].validateJSON(data[
|
|
346
|
+
_DeviceUsage["default"].validateJSON(data["period"]);
|
|
347
347
|
}
|
|
348
348
|
return true;
|
|
349
349
|
}
|
|
@@ -353,305 +353,305 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
353
353
|
* Session UID
|
|
354
354
|
* @member {String} session
|
|
355
355
|
*/
|
|
356
|
-
DeviceSession.prototype[
|
|
356
|
+
DeviceSession.prototype["session"] = undefined;
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
359
|
* UNIX timestamp of session start
|
|
360
360
|
* @member {Number} session_began
|
|
361
361
|
*/
|
|
362
|
-
DeviceSession.prototype[
|
|
362
|
+
DeviceSession.prototype["session_began"] = undefined;
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
365
|
* Reason for session opening
|
|
366
366
|
* @member {String} why_session_opened
|
|
367
367
|
*/
|
|
368
|
-
DeviceSession.prototype[
|
|
368
|
+
DeviceSession.prototype["why_session_opened"] = undefined;
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
371
|
* UNIX timestamp of session end
|
|
372
372
|
* @member {Number} session_ended
|
|
373
373
|
*/
|
|
374
|
-
DeviceSession.prototype[
|
|
374
|
+
DeviceSession.prototype["session_ended"] = undefined;
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Reason for session closing
|
|
378
378
|
* @member {String} why_session_closed
|
|
379
379
|
*/
|
|
380
|
-
DeviceSession.prototype[
|
|
380
|
+
DeviceSession.prototype["why_session_closed"] = undefined;
|
|
381
381
|
|
|
382
382
|
/**
|
|
383
383
|
* Device UID
|
|
384
384
|
* @member {String} device
|
|
385
385
|
*/
|
|
386
|
-
DeviceSession.prototype[
|
|
386
|
+
DeviceSession.prototype["device"] = undefined;
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* Device Serial Number
|
|
390
390
|
* @member {String} sn
|
|
391
391
|
*/
|
|
392
|
-
DeviceSession.prototype[
|
|
392
|
+
DeviceSession.prototype["sn"] = undefined;
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* Product UID
|
|
396
396
|
* @member {String} product
|
|
397
397
|
*/
|
|
398
|
-
DeviceSession.prototype[
|
|
398
|
+
DeviceSession.prototype["product"] = undefined;
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* Array of Fleet UIDs
|
|
402
402
|
* @member {Array.<String>} fleets
|
|
403
403
|
*/
|
|
404
|
-
DeviceSession.prototype[
|
|
404
|
+
DeviceSession.prototype["fleets"] = undefined;
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
407
|
* Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
|
|
408
408
|
* @member {String} cell
|
|
409
409
|
*/
|
|
410
|
-
DeviceSession.prototype[
|
|
410
|
+
DeviceSession.prototype["cell"] = undefined;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* @member {Blob} scan
|
|
414
414
|
*/
|
|
415
|
-
DeviceSession.prototype[
|
|
415
|
+
DeviceSession.prototype["scan"] = undefined;
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* @member {Object} triangulate
|
|
419
419
|
*/
|
|
420
|
-
DeviceSession.prototype[
|
|
420
|
+
DeviceSession.prototype["triangulate"] = undefined;
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* @member {Number} rssi
|
|
424
424
|
*/
|
|
425
|
-
DeviceSession.prototype[
|
|
425
|
+
DeviceSession.prototype["rssi"] = undefined;
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* @member {Number} sinr
|
|
429
429
|
*/
|
|
430
|
-
DeviceSession.prototype[
|
|
430
|
+
DeviceSession.prototype["sinr"] = undefined;
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* @member {Number} rsrp
|
|
434
434
|
*/
|
|
435
|
-
DeviceSession.prototype[
|
|
435
|
+
DeviceSession.prototype["rsrp"] = undefined;
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
438
|
* @member {Number} rsrq
|
|
439
439
|
*/
|
|
440
|
-
DeviceSession.prototype[
|
|
440
|
+
DeviceSession.prototype["rsrq"] = undefined;
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
443
|
* @member {Number} bars
|
|
444
444
|
*/
|
|
445
|
-
DeviceSession.prototype[
|
|
445
|
+
DeviceSession.prototype["bars"] = undefined;
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
448
|
* @member {String} rat
|
|
449
449
|
*/
|
|
450
|
-
DeviceSession.prototype[
|
|
450
|
+
DeviceSession.prototype["rat"] = undefined;
|
|
451
451
|
|
|
452
452
|
/**
|
|
453
453
|
* @member {String} bearer
|
|
454
454
|
*/
|
|
455
|
-
DeviceSession.prototype[
|
|
455
|
+
DeviceSession.prototype["bearer"] = undefined;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* @member {String} ip
|
|
459
459
|
*/
|
|
460
|
-
DeviceSession.prototype[
|
|
460
|
+
DeviceSession.prototype["ip"] = undefined;
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
463
|
* @member {String} bssid
|
|
464
464
|
*/
|
|
465
|
-
DeviceSession.prototype[
|
|
465
|
+
DeviceSession.prototype["bssid"] = undefined;
|
|
466
466
|
|
|
467
467
|
/**
|
|
468
468
|
* @member {String} ssid
|
|
469
469
|
*/
|
|
470
|
-
DeviceSession.prototype[
|
|
470
|
+
DeviceSession.prototype["ssid"] = undefined;
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* @member {String} iccid
|
|
474
474
|
*/
|
|
475
|
-
DeviceSession.prototype[
|
|
475
|
+
DeviceSession.prototype["iccid"] = undefined;
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* @member {String} apn
|
|
479
479
|
*/
|
|
480
|
-
DeviceSession.prototype[
|
|
480
|
+
DeviceSession.prototype["apn"] = undefined;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
483
|
* Type of network transport
|
|
484
484
|
* @member {String} transport
|
|
485
485
|
*/
|
|
486
|
-
DeviceSession.prototype[
|
|
486
|
+
DeviceSession.prototype["transport"] = undefined;
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* @member {module:model/TowerLocation} tower
|
|
490
490
|
*/
|
|
491
|
-
DeviceSession.prototype[
|
|
491
|
+
DeviceSession.prototype["tower"] = undefined;
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* @member {module:model/TowerLocation} tri
|
|
495
495
|
*/
|
|
496
|
-
DeviceSession.prototype[
|
|
496
|
+
DeviceSession.prototype["tri"] = undefined;
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Last known capture time of a note routed through this session in Unix timestamp
|
|
500
500
|
* @member {Number} when
|
|
501
501
|
*/
|
|
502
|
-
DeviceSession.prototype[
|
|
502
|
+
DeviceSession.prototype["when"] = undefined;
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* Unix timestamp of last GPS location
|
|
506
506
|
* @member {Number} where_when
|
|
507
507
|
*/
|
|
508
|
-
DeviceSession.prototype[
|
|
508
|
+
DeviceSession.prototype["where_when"] = undefined;
|
|
509
509
|
|
|
510
510
|
/**
|
|
511
511
|
* Open Location Code from last GPS location
|
|
512
512
|
* @member {String} where
|
|
513
513
|
*/
|
|
514
|
-
DeviceSession.prototype[
|
|
514
|
+
DeviceSession.prototype["where"] = undefined;
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
517
|
* @member {Number} where_lat
|
|
518
518
|
*/
|
|
519
|
-
DeviceSession.prototype[
|
|
519
|
+
DeviceSession.prototype["where_lat"] = undefined;
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* @member {Number} where_lon
|
|
523
523
|
*/
|
|
524
|
-
DeviceSession.prototype[
|
|
524
|
+
DeviceSession.prototype["where_lon"] = undefined;
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
527
|
* @member {String} where_location
|
|
528
528
|
*/
|
|
529
|
-
DeviceSession.prototype[
|
|
529
|
+
DeviceSession.prototype["where_location"] = undefined;
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
532
|
* @member {String} where_country
|
|
533
533
|
*/
|
|
534
|
-
DeviceSession.prototype[
|
|
534
|
+
DeviceSession.prototype["where_country"] = undefined;
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
537
|
* @member {String} where_timezone
|
|
538
538
|
*/
|
|
539
|
-
DeviceSession.prototype[
|
|
539
|
+
DeviceSession.prototype["where_timezone"] = undefined;
|
|
540
540
|
|
|
541
541
|
/**
|
|
542
542
|
* @member {Boolean} usage_actual
|
|
543
543
|
*/
|
|
544
|
-
DeviceSession.prototype[
|
|
544
|
+
DeviceSession.prototype["usage_actual"] = undefined;
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
547
|
* @member {Number} voltage
|
|
548
548
|
*/
|
|
549
|
-
DeviceSession.prototype[
|
|
549
|
+
DeviceSession.prototype["voltage"] = undefined;
|
|
550
550
|
|
|
551
551
|
/**
|
|
552
552
|
* @member {Number} temp
|
|
553
553
|
*/
|
|
554
|
-
DeviceSession.prototype[
|
|
554
|
+
DeviceSession.prototype["temp"] = undefined;
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* Was this a continuous connection?
|
|
558
558
|
* @member {Boolean} continuous
|
|
559
559
|
*/
|
|
560
|
-
DeviceSession.prototype[
|
|
560
|
+
DeviceSession.prototype["continuous"] = undefined;
|
|
561
561
|
|
|
562
562
|
/**
|
|
563
563
|
* Was TLS used?
|
|
564
564
|
* @member {Boolean} tls
|
|
565
565
|
*/
|
|
566
|
-
DeviceSession.prototype[
|
|
566
|
+
DeviceSession.prototype["tls"] = undefined;
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
569
|
* Unix timestamp of the last time work was done for this session
|
|
570
570
|
* @member {Number} work
|
|
571
571
|
*/
|
|
572
|
-
DeviceSession.prototype[
|
|
572
|
+
DeviceSession.prototype["work"] = undefined;
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* Number of events routed
|
|
576
576
|
* @member {Number} events
|
|
577
577
|
*/
|
|
578
|
-
DeviceSession.prototype[
|
|
578
|
+
DeviceSession.prototype["events"] = undefined;
|
|
579
579
|
|
|
580
580
|
/**
|
|
581
581
|
* @member {Number} moved
|
|
582
582
|
*/
|
|
583
|
-
DeviceSession.prototype[
|
|
583
|
+
DeviceSession.prototype["moved"] = undefined;
|
|
584
584
|
|
|
585
585
|
/**
|
|
586
586
|
* @member {String} orientation
|
|
587
587
|
*/
|
|
588
|
-
DeviceSession.prototype[
|
|
588
|
+
DeviceSession.prototype["orientation"] = undefined;
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
591
|
* Total number of seconds in high power mode
|
|
592
592
|
* @member {Number} hp_secs_total
|
|
593
593
|
*/
|
|
594
|
-
DeviceSession.prototype[
|
|
594
|
+
DeviceSession.prototype["hp_secs_total"] = undefined;
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
597
|
* @member {Number} hp_secs_data
|
|
598
598
|
*/
|
|
599
|
-
DeviceSession.prototype[
|
|
599
|
+
DeviceSession.prototype["hp_secs_data"] = undefined;
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
602
|
* @member {Number} hp_secs_gps
|
|
603
603
|
*/
|
|
604
|
-
DeviceSession.prototype[
|
|
604
|
+
DeviceSession.prototype["hp_secs_gps"] = undefined;
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
607
|
* @member {Number} hp_cycles_total
|
|
608
608
|
*/
|
|
609
|
-
DeviceSession.prototype[
|
|
609
|
+
DeviceSession.prototype["hp_cycles_total"] = undefined;
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
612
|
* @member {Number} hp_cycles_data
|
|
613
613
|
*/
|
|
614
|
-
DeviceSession.prototype[
|
|
614
|
+
DeviceSession.prototype["hp_cycles_data"] = undefined;
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* @member {Number} hp_cycles_gps
|
|
618
618
|
*/
|
|
619
|
-
DeviceSession.prototype[
|
|
619
|
+
DeviceSession.prototype["hp_cycles_gps"] = undefined;
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
622
|
* @member {module:model/DeviceUsage} period
|
|
623
623
|
*/
|
|
624
|
-
DeviceSession.prototype[
|
|
624
|
+
DeviceSession.prototype["period"] = undefined;
|
|
625
625
|
|
|
626
626
|
/**
|
|
627
627
|
* @member {Boolean} power_charging
|
|
628
628
|
*/
|
|
629
|
-
DeviceSession.prototype[
|
|
629
|
+
DeviceSession.prototype["power_charging"] = undefined;
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* @member {Boolean} power_usb
|
|
633
633
|
*/
|
|
634
|
-
DeviceSession.prototype[
|
|
634
|
+
DeviceSession.prototype["power_usb"] = undefined;
|
|
635
635
|
|
|
636
636
|
/**
|
|
637
637
|
* @member {Boolean} power_primary
|
|
638
638
|
*/
|
|
639
|
-
DeviceSession.prototype[
|
|
639
|
+
DeviceSession.prototype["power_primary"] = undefined;
|
|
640
640
|
|
|
641
641
|
/**
|
|
642
642
|
* @member {Number} power_mah
|
|
643
643
|
*/
|
|
644
|
-
DeviceSession.prototype[
|
|
644
|
+
DeviceSession.prototype["power_mah"] = undefined;
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* Number of seconds in penalty in the prior session
|
|
648
648
|
* @member {Number} penalty_secs
|
|
649
649
|
*/
|
|
650
|
-
DeviceSession.prototype[
|
|
650
|
+
DeviceSession.prototype["penalty_secs"] = undefined;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Number of failed connection attempts in the prior session
|
|
654
654
|
* @member {Number} failed_connects
|
|
655
655
|
*/
|
|
656
|
-
DeviceSession.prototype[
|
|
656
|
+
DeviceSession.prototype["failed_connects"] = undefined;
|
|
657
657
|
var _default = exports["default"] = DeviceSession;
|