@blues-inc/notehub-js 1.0.31 → 1.0.32-beta.2
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 +231 -211
- 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/ExternalDevicesApi.js +203 -0
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +399 -340
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +74 -74
- package/dist/api/WebhookApi.js +282 -0
- package/dist/index.js +28 -0
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSet.js +30 -29
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +296 -185
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +35 -33
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +243 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +34 -23
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +23 -12
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/GetWebhooks200Response.js +112 -0
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/SchemaProperty.js +40 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +70 -58
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +114 -0
- package/package.json +3 -3
|
@@ -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.32-beta.2
|
|
32
32
|
*/
|
|
33
33
|
var DeviceSession = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,143 +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
|
+
}
|
|
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');
|
|
201
234
|
}
|
|
202
235
|
} else if (data === null) {
|
|
203
236
|
return null;
|
|
@@ -214,91 +247,103 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
214
247
|
key: "validateJSON",
|
|
215
248
|
value: function validateJSON(data) {
|
|
216
249
|
// ensure the json data is a string
|
|
217
|
-
if (data[
|
|
218
|
-
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
|
+
}
|
|
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']);
|
|
219
256
|
}
|
|
220
257
|
// ensure the json data is a string
|
|
221
|
-
if (data[
|
|
222
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
223
260
|
}
|
|
224
261
|
// ensure the json data is a string
|
|
225
|
-
if (data[
|
|
226
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
227
264
|
}
|
|
228
265
|
// ensure the json data is a string
|
|
229
|
-
if (data[
|
|
230
|
-
throw new Error("Expected the field `
|
|
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
|
+
}
|
|
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']);
|
|
231
272
|
}
|
|
232
273
|
// ensure the json data is an array
|
|
233
|
-
if (!Array.isArray(data[
|
|
234
|
-
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
|
+
}
|
|
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']);
|
|
235
280
|
}
|
|
236
281
|
// ensure the json data is a string
|
|
237
|
-
if (data[
|
|
238
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
239
284
|
}
|
|
240
285
|
// ensure the json data is a string
|
|
241
|
-
if (data[
|
|
242
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
243
288
|
}
|
|
244
289
|
// ensure the json data is a string
|
|
245
|
-
if (data[
|
|
246
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
247
292
|
}
|
|
248
293
|
// ensure the json data is a string
|
|
249
|
-
if (data[
|
|
250
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
251
296
|
}
|
|
252
297
|
// ensure the json data is a string
|
|
253
|
-
if (data[
|
|
254
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
255
300
|
}
|
|
256
301
|
// ensure the json data is a string
|
|
257
|
-
if (data[
|
|
258
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
259
304
|
}
|
|
260
305
|
// ensure the json data is a string
|
|
261
|
-
if (data[
|
|
262
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
263
308
|
}
|
|
264
309
|
// ensure the json data is a string
|
|
265
|
-
if (data[
|
|
266
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
267
312
|
}
|
|
268
313
|
// validate the optional field `tower`
|
|
269
|
-
if (data[
|
|
314
|
+
if (data['tower']) {
|
|
270
315
|
// data not null
|
|
271
|
-
_TowerLocation["default"].validateJSON(data[
|
|
316
|
+
_TowerLocation["default"].validateJSON(data['tower']);
|
|
272
317
|
}
|
|
273
318
|
// validate the optional field `tri`
|
|
274
|
-
if (data[
|
|
319
|
+
if (data['tri']) {
|
|
275
320
|
// data not null
|
|
276
|
-
_TowerLocation["default"].validateJSON(data[
|
|
321
|
+
_TowerLocation["default"].validateJSON(data['tri']);
|
|
277
322
|
}
|
|
278
323
|
// ensure the json data is a string
|
|
279
|
-
if (data[
|
|
280
|
-
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']);
|
|
281
326
|
}
|
|
282
327
|
// ensure the json data is a string
|
|
283
|
-
if (data[
|
|
284
|
-
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']);
|
|
285
330
|
}
|
|
286
331
|
// ensure the json data is a string
|
|
287
|
-
if (data[
|
|
288
|
-
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']);
|
|
289
334
|
}
|
|
290
335
|
// ensure the json data is a string
|
|
291
|
-
if (data[
|
|
292
|
-
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']);
|
|
293
338
|
}
|
|
294
339
|
// ensure the json data is a string
|
|
295
|
-
if (data[
|
|
296
|
-
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']);
|
|
297
342
|
}
|
|
298
343
|
// validate the optional field `period`
|
|
299
|
-
if (data[
|
|
344
|
+
if (data['period']) {
|
|
300
345
|
// data not null
|
|
301
|
-
_DeviceUsage["default"].validateJSON(data[
|
|
346
|
+
_DeviceUsage["default"].validateJSON(data['period']);
|
|
302
347
|
}
|
|
303
348
|
return true;
|
|
304
349
|
}
|
|
@@ -308,239 +353,305 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
308
353
|
* Session UID
|
|
309
354
|
* @member {String} session
|
|
310
355
|
*/
|
|
311
|
-
DeviceSession.prototype[
|
|
356
|
+
DeviceSession.prototype['session'] = undefined;
|
|
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;
|
|
312
381
|
|
|
313
382
|
/**
|
|
314
383
|
* Device UID
|
|
315
384
|
* @member {String} device
|
|
316
385
|
*/
|
|
317
|
-
DeviceSession.prototype[
|
|
386
|
+
DeviceSession.prototype['device'] = undefined;
|
|
318
387
|
|
|
319
388
|
/**
|
|
320
389
|
* Device Serial Number
|
|
321
390
|
* @member {String} sn
|
|
322
391
|
*/
|
|
323
|
-
DeviceSession.prototype[
|
|
392
|
+
DeviceSession.prototype['sn'] = undefined;
|
|
324
393
|
|
|
325
394
|
/**
|
|
326
395
|
* Product UID
|
|
327
396
|
* @member {String} product
|
|
328
397
|
*/
|
|
329
|
-
DeviceSession.prototype[
|
|
398
|
+
DeviceSession.prototype['product'] = undefined;
|
|
330
399
|
|
|
331
400
|
/**
|
|
332
401
|
* Array of Fleet UIDs
|
|
333
402
|
* @member {Array.<String>} fleets
|
|
334
403
|
*/
|
|
335
|
-
DeviceSession.prototype[
|
|
404
|
+
DeviceSession.prototype['fleets'] = undefined;
|
|
336
405
|
|
|
337
406
|
/**
|
|
338
407
|
* Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
|
|
339
408
|
* @member {String} cell
|
|
340
409
|
*/
|
|
341
|
-
DeviceSession.prototype[
|
|
410
|
+
DeviceSession.prototype['cell'] = undefined;
|
|
342
411
|
|
|
343
412
|
/**
|
|
344
413
|
* @member {Blob} scan
|
|
345
414
|
*/
|
|
346
|
-
DeviceSession.prototype[
|
|
415
|
+
DeviceSession.prototype['scan'] = undefined;
|
|
347
416
|
|
|
348
417
|
/**
|
|
349
418
|
* @member {Object} triangulate
|
|
350
419
|
*/
|
|
351
|
-
DeviceSession.prototype[
|
|
420
|
+
DeviceSession.prototype['triangulate'] = undefined;
|
|
352
421
|
|
|
353
422
|
/**
|
|
354
423
|
* @member {Number} rssi
|
|
355
424
|
*/
|
|
356
|
-
DeviceSession.prototype[
|
|
425
|
+
DeviceSession.prototype['rssi'] = undefined;
|
|
357
426
|
|
|
358
427
|
/**
|
|
359
428
|
* @member {Number} sinr
|
|
360
429
|
*/
|
|
361
|
-
DeviceSession.prototype[
|
|
430
|
+
DeviceSession.prototype['sinr'] = undefined;
|
|
362
431
|
|
|
363
432
|
/**
|
|
364
433
|
* @member {Number} rsrp
|
|
365
434
|
*/
|
|
366
|
-
DeviceSession.prototype[
|
|
435
|
+
DeviceSession.prototype['rsrp'] = undefined;
|
|
367
436
|
|
|
368
437
|
/**
|
|
369
438
|
* @member {Number} rsrq
|
|
370
439
|
*/
|
|
371
|
-
DeviceSession.prototype[
|
|
440
|
+
DeviceSession.prototype['rsrq'] = undefined;
|
|
372
441
|
|
|
373
442
|
/**
|
|
374
443
|
* @member {Number} bars
|
|
375
444
|
*/
|
|
376
|
-
DeviceSession.prototype[
|
|
445
|
+
DeviceSession.prototype['bars'] = undefined;
|
|
377
446
|
|
|
378
447
|
/**
|
|
379
448
|
* @member {String} rat
|
|
380
449
|
*/
|
|
381
|
-
DeviceSession.prototype[
|
|
450
|
+
DeviceSession.prototype['rat'] = undefined;
|
|
382
451
|
|
|
383
452
|
/**
|
|
384
453
|
* @member {String} bearer
|
|
385
454
|
*/
|
|
386
|
-
DeviceSession.prototype[
|
|
455
|
+
DeviceSession.prototype['bearer'] = undefined;
|
|
387
456
|
|
|
388
457
|
/**
|
|
389
458
|
* @member {String} ip
|
|
390
459
|
*/
|
|
391
|
-
DeviceSession.prototype[
|
|
460
|
+
DeviceSession.prototype['ip'] = undefined;
|
|
392
461
|
|
|
393
462
|
/**
|
|
394
463
|
* @member {String} bssid
|
|
395
464
|
*/
|
|
396
|
-
DeviceSession.prototype[
|
|
465
|
+
DeviceSession.prototype['bssid'] = undefined;
|
|
397
466
|
|
|
398
467
|
/**
|
|
399
468
|
* @member {String} ssid
|
|
400
469
|
*/
|
|
401
|
-
DeviceSession.prototype[
|
|
470
|
+
DeviceSession.prototype['ssid'] = undefined;
|
|
402
471
|
|
|
403
472
|
/**
|
|
404
473
|
* @member {String} iccid
|
|
405
474
|
*/
|
|
406
|
-
DeviceSession.prototype[
|
|
475
|
+
DeviceSession.prototype['iccid'] = undefined;
|
|
407
476
|
|
|
408
477
|
/**
|
|
409
478
|
* @member {String} apn
|
|
410
479
|
*/
|
|
411
|
-
DeviceSession.prototype[
|
|
480
|
+
DeviceSession.prototype['apn'] = undefined;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Type of network transport
|
|
484
|
+
* @member {String} transport
|
|
485
|
+
*/
|
|
486
|
+
DeviceSession.prototype['transport'] = undefined;
|
|
412
487
|
|
|
413
488
|
/**
|
|
414
489
|
* @member {module:model/TowerLocation} tower
|
|
415
490
|
*/
|
|
416
|
-
DeviceSession.prototype[
|
|
491
|
+
DeviceSession.prototype['tower'] = undefined;
|
|
417
492
|
|
|
418
493
|
/**
|
|
419
494
|
* @member {module:model/TowerLocation} tri
|
|
420
495
|
*/
|
|
421
|
-
DeviceSession.prototype[
|
|
496
|
+
DeviceSession.prototype['tri'] = undefined;
|
|
422
497
|
|
|
423
498
|
/**
|
|
424
|
-
* Last known capture time of a note routed through this session
|
|
499
|
+
* Last known capture time of a note routed through this session in Unix timestamp
|
|
425
500
|
* @member {Number} when
|
|
426
501
|
*/
|
|
427
|
-
DeviceSession.prototype[
|
|
502
|
+
DeviceSession.prototype['when'] = undefined;
|
|
428
503
|
|
|
429
504
|
/**
|
|
505
|
+
* Unix timestamp of last GPS location
|
|
430
506
|
* @member {Number} where_when
|
|
431
507
|
*/
|
|
432
|
-
DeviceSession.prototype[
|
|
508
|
+
DeviceSession.prototype['where_when'] = undefined;
|
|
433
509
|
|
|
434
510
|
/**
|
|
435
|
-
*
|
|
511
|
+
* Open Location Code from last GPS location
|
|
436
512
|
* @member {String} where
|
|
437
513
|
*/
|
|
438
|
-
DeviceSession.prototype[
|
|
514
|
+
DeviceSession.prototype['where'] = undefined;
|
|
439
515
|
|
|
440
516
|
/**
|
|
441
517
|
* @member {Number} where_lat
|
|
442
518
|
*/
|
|
443
|
-
DeviceSession.prototype[
|
|
519
|
+
DeviceSession.prototype['where_lat'] = undefined;
|
|
444
520
|
|
|
445
521
|
/**
|
|
446
522
|
* @member {Number} where_lon
|
|
447
523
|
*/
|
|
448
|
-
DeviceSession.prototype[
|
|
524
|
+
DeviceSession.prototype['where_lon'] = undefined;
|
|
449
525
|
|
|
450
526
|
/**
|
|
451
527
|
* @member {String} where_location
|
|
452
528
|
*/
|
|
453
|
-
DeviceSession.prototype[
|
|
529
|
+
DeviceSession.prototype['where_location'] = undefined;
|
|
454
530
|
|
|
455
531
|
/**
|
|
456
532
|
* @member {String} where_country
|
|
457
533
|
*/
|
|
458
|
-
DeviceSession.prototype[
|
|
534
|
+
DeviceSession.prototype['where_country'] = undefined;
|
|
459
535
|
|
|
460
536
|
/**
|
|
461
537
|
* @member {String} where_timezone
|
|
462
538
|
*/
|
|
463
|
-
DeviceSession.prototype[
|
|
539
|
+
DeviceSession.prototype['where_timezone'] = undefined;
|
|
464
540
|
|
|
465
541
|
/**
|
|
466
542
|
* @member {Boolean} usage_actual
|
|
467
543
|
*/
|
|
468
|
-
DeviceSession.prototype[
|
|
544
|
+
DeviceSession.prototype['usage_actual'] = undefined;
|
|
469
545
|
|
|
470
546
|
/**
|
|
471
547
|
* @member {Number} voltage
|
|
472
548
|
*/
|
|
473
|
-
DeviceSession.prototype[
|
|
549
|
+
DeviceSession.prototype['voltage'] = undefined;
|
|
474
550
|
|
|
475
551
|
/**
|
|
476
552
|
* @member {Number} temp
|
|
477
553
|
*/
|
|
478
|
-
DeviceSession.prototype[
|
|
554
|
+
DeviceSession.prototype['temp'] = undefined;
|
|
479
555
|
|
|
480
556
|
/**
|
|
557
|
+
* Was this a continuous connection?
|
|
481
558
|
* @member {Boolean} continuous
|
|
482
559
|
*/
|
|
483
|
-
DeviceSession.prototype[
|
|
560
|
+
DeviceSession.prototype['continuous'] = undefined;
|
|
484
561
|
|
|
485
562
|
/**
|
|
563
|
+
* Was TLS used?
|
|
486
564
|
* @member {Boolean} tls
|
|
487
565
|
*/
|
|
488
|
-
DeviceSession.prototype[
|
|
566
|
+
DeviceSession.prototype['tls'] = undefined;
|
|
489
567
|
|
|
490
568
|
/**
|
|
491
|
-
*
|
|
569
|
+
* Unix timestamp of the last time work was done for this session
|
|
492
570
|
* @member {Number} work
|
|
493
571
|
*/
|
|
494
|
-
DeviceSession.prototype[
|
|
572
|
+
DeviceSession.prototype['work'] = undefined;
|
|
495
573
|
|
|
496
574
|
/**
|
|
497
575
|
* Number of events routed
|
|
498
576
|
* @member {Number} events
|
|
499
577
|
*/
|
|
500
|
-
DeviceSession.prototype[
|
|
578
|
+
DeviceSession.prototype['events'] = undefined;
|
|
501
579
|
|
|
502
580
|
/**
|
|
503
581
|
* @member {Number} moved
|
|
504
582
|
*/
|
|
505
|
-
DeviceSession.prototype[
|
|
583
|
+
DeviceSession.prototype['moved'] = undefined;
|
|
506
584
|
|
|
507
585
|
/**
|
|
508
586
|
* @member {String} orientation
|
|
509
587
|
*/
|
|
510
|
-
DeviceSession.prototype[
|
|
588
|
+
DeviceSession.prototype['orientation'] = undefined;
|
|
511
589
|
|
|
512
590
|
/**
|
|
591
|
+
* Total number of seconds in high power mode
|
|
513
592
|
* @member {Number} hp_secs_total
|
|
514
593
|
*/
|
|
515
|
-
DeviceSession.prototype[
|
|
594
|
+
DeviceSession.prototype['hp_secs_total'] = undefined;
|
|
516
595
|
|
|
517
596
|
/**
|
|
518
597
|
* @member {Number} hp_secs_data
|
|
519
598
|
*/
|
|
520
|
-
DeviceSession.prototype[
|
|
599
|
+
DeviceSession.prototype['hp_secs_data'] = undefined;
|
|
521
600
|
|
|
522
601
|
/**
|
|
523
602
|
* @member {Number} hp_secs_gps
|
|
524
603
|
*/
|
|
525
|
-
DeviceSession.prototype[
|
|
604
|
+
DeviceSession.prototype['hp_secs_gps'] = undefined;
|
|
526
605
|
|
|
527
606
|
/**
|
|
528
607
|
* @member {Number} hp_cycles_total
|
|
529
608
|
*/
|
|
530
|
-
DeviceSession.prototype[
|
|
609
|
+
DeviceSession.prototype['hp_cycles_total'] = undefined;
|
|
531
610
|
|
|
532
611
|
/**
|
|
533
612
|
* @member {Number} hp_cycles_data
|
|
534
613
|
*/
|
|
535
|
-
DeviceSession.prototype[
|
|
614
|
+
DeviceSession.prototype['hp_cycles_data'] = undefined;
|
|
536
615
|
|
|
537
616
|
/**
|
|
538
617
|
* @member {Number} hp_cycles_gps
|
|
539
618
|
*/
|
|
540
|
-
DeviceSession.prototype[
|
|
619
|
+
DeviceSession.prototype['hp_cycles_gps'] = undefined;
|
|
541
620
|
|
|
542
621
|
/**
|
|
543
622
|
* @member {module:model/DeviceUsage} period
|
|
544
623
|
*/
|
|
545
|
-
DeviceSession.prototype[
|
|
624
|
+
DeviceSession.prototype['period'] = undefined;
|
|
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;
|
|
546
657
|
var _default = exports["default"] = DeviceSession;
|