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