@blues-inc/notehub-js 1.0.37-beta.10 → 1.0.37-beta.11
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 +13 -11
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +66 -3
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +18 -28
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +65 -58
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +164 -0
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
- package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/OAuth2Error.js +166 -0
- package/dist/model/OAuth2TokenResponse.js +154 -0
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +204 -0
- package/dist/model/QuestionDataResponseMap.js +143 -0
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +36 -34
- package/dist/model/SimUsage.js +20 -20
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +64 -77
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/PersonalAccessToken.js +0 -168
- package/dist/model/PersonalAccessTokenCreatedBy.js +0 -116
- package/dist/model/PersonalAccessTokenInfo.js +0 -121
- package/dist/model/PersonalAccessTokenSecret.js +0 -105
|
@@ -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.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.11
|
|
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['
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('bars')) {
|
|
68
|
-
obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
|
|
64
|
+
if (data.hasOwnProperty('session')) {
|
|
65
|
+
obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
|
|
69
66
|
}
|
|
70
|
-
if (data.hasOwnProperty('
|
|
71
|
-
obj['
|
|
67
|
+
if (data.hasOwnProperty('session_began')) {
|
|
68
|
+
obj['session_began'] = _ApiClient["default"].convertToType(data['session_began'], 'Number');
|
|
72
69
|
}
|
|
73
|
-
if (data.hasOwnProperty('
|
|
74
|
-
obj['
|
|
70
|
+
if (data.hasOwnProperty('why_session_opened')) {
|
|
71
|
+
obj['why_session_opened'] = _ApiClient["default"].convertToType(data['why_session_opened'], 'String');
|
|
75
72
|
}
|
|
76
|
-
if (data.hasOwnProperty('
|
|
77
|
-
obj['
|
|
73
|
+
if (data.hasOwnProperty('session_ended')) {
|
|
74
|
+
obj['session_ended'] = _ApiClient["default"].convertToType(data['session_ended'], 'Number');
|
|
78
75
|
}
|
|
79
|
-
if (data.hasOwnProperty('
|
|
80
|
-
obj['
|
|
76
|
+
if (data.hasOwnProperty('why_session_closed')) {
|
|
77
|
+
obj['why_session_closed'] = _ApiClient["default"].convertToType(data['why_session_closed'], 'String');
|
|
81
78
|
}
|
|
82
79
|
if (data.hasOwnProperty('device')) {
|
|
83
80
|
obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
|
|
84
81
|
}
|
|
85
|
-
if (data.hasOwnProperty('
|
|
86
|
-
obj['
|
|
82
|
+
if (data.hasOwnProperty('sn')) {
|
|
83
|
+
obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
|
|
87
84
|
}
|
|
88
|
-
if (data.hasOwnProperty('
|
|
89
|
-
obj['
|
|
85
|
+
if (data.hasOwnProperty('product')) {
|
|
86
|
+
obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
|
|
90
87
|
}
|
|
91
88
|
if (data.hasOwnProperty('fleets')) {
|
|
92
89
|
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
93
90
|
}
|
|
94
|
-
if (data.hasOwnProperty('
|
|
95
|
-
obj['
|
|
91
|
+
if (data.hasOwnProperty('cell')) {
|
|
92
|
+
obj['cell'] = _ApiClient["default"].convertToType(data['cell'], 'String');
|
|
96
93
|
}
|
|
97
|
-
if (data.hasOwnProperty('
|
|
98
|
-
obj['
|
|
94
|
+
if (data.hasOwnProperty('scan')) {
|
|
95
|
+
obj['scan'] = _ApiClient["default"].convertToType(data['scan'], 'Blob');
|
|
99
96
|
}
|
|
100
|
-
if (data.hasOwnProperty('
|
|
101
|
-
obj['
|
|
97
|
+
if (data.hasOwnProperty('triangulate')) {
|
|
98
|
+
obj['triangulate'] = _ApiClient["default"].convertToType(data['triangulate'], Object);
|
|
102
99
|
}
|
|
103
|
-
if (data.hasOwnProperty('
|
|
104
|
-
obj['
|
|
100
|
+
if (data.hasOwnProperty('rssi')) {
|
|
101
|
+
obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
|
|
105
102
|
}
|
|
106
|
-
if (data.hasOwnProperty('
|
|
107
|
-
obj['
|
|
103
|
+
if (data.hasOwnProperty('sinr')) {
|
|
104
|
+
obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
|
|
108
105
|
}
|
|
109
|
-
if (data.hasOwnProperty('
|
|
110
|
-
obj['
|
|
106
|
+
if (data.hasOwnProperty('rsrp')) {
|
|
107
|
+
obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
|
|
111
108
|
}
|
|
112
|
-
if (data.hasOwnProperty('
|
|
113
|
-
obj['
|
|
109
|
+
if (data.hasOwnProperty('rsrq')) {
|
|
110
|
+
obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
|
|
114
111
|
}
|
|
115
|
-
if (data.hasOwnProperty('
|
|
116
|
-
obj['
|
|
112
|
+
if (data.hasOwnProperty('bars')) {
|
|
113
|
+
obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
|
|
117
114
|
}
|
|
118
|
-
if (data.hasOwnProperty('
|
|
119
|
-
obj['
|
|
115
|
+
if (data.hasOwnProperty('rat')) {
|
|
116
|
+
obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
|
|
120
117
|
}
|
|
121
|
-
if (data.hasOwnProperty('
|
|
122
|
-
obj['
|
|
118
|
+
if (data.hasOwnProperty('bearer')) {
|
|
119
|
+
obj['bearer'] = _ApiClient["default"].convertToType(data['bearer'], 'String');
|
|
123
120
|
}
|
|
124
|
-
if (data.hasOwnProperty('
|
|
125
|
-
obj['
|
|
121
|
+
if (data.hasOwnProperty('ip')) {
|
|
122
|
+
obj['ip'] = _ApiClient["default"].convertToType(data['ip'], 'String');
|
|
126
123
|
}
|
|
127
|
-
if (data.hasOwnProperty('
|
|
128
|
-
obj['
|
|
124
|
+
if (data.hasOwnProperty('bssid')) {
|
|
125
|
+
obj['bssid'] = _ApiClient["default"].convertToType(data['bssid'], 'String');
|
|
129
126
|
}
|
|
130
|
-
if (data.hasOwnProperty('
|
|
131
|
-
obj['
|
|
127
|
+
if (data.hasOwnProperty('ssid')) {
|
|
128
|
+
obj['ssid'] = _ApiClient["default"].convertToType(data['ssid'], 'String');
|
|
132
129
|
}
|
|
133
|
-
if (data.hasOwnProperty('
|
|
134
|
-
obj['
|
|
130
|
+
if (data.hasOwnProperty('iccid')) {
|
|
131
|
+
obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
|
|
135
132
|
}
|
|
136
|
-
if (data.hasOwnProperty('
|
|
137
|
-
obj['
|
|
133
|
+
if (data.hasOwnProperty('apn')) {
|
|
134
|
+
obj['apn'] = _ApiClient["default"].convertToType(data['apn'], 'String');
|
|
138
135
|
}
|
|
139
|
-
if (data.hasOwnProperty('
|
|
140
|
-
obj['
|
|
136
|
+
if (data.hasOwnProperty('transport')) {
|
|
137
|
+
obj['transport'] = _ApiClient["default"].convertToType(data['transport'], 'String');
|
|
141
138
|
}
|
|
142
|
-
if (data.hasOwnProperty('
|
|
143
|
-
obj['
|
|
139
|
+
if (data.hasOwnProperty('tower')) {
|
|
140
|
+
obj['tower'] = _TowerLocation["default"].constructFromObject(data['tower']);
|
|
144
141
|
}
|
|
145
|
-
if (data.hasOwnProperty('
|
|
146
|
-
obj['
|
|
142
|
+
if (data.hasOwnProperty('tri')) {
|
|
143
|
+
obj['tri'] = _TowerLocation["default"].constructFromObject(data['tri']);
|
|
147
144
|
}
|
|
148
|
-
if (data.hasOwnProperty('
|
|
149
|
-
obj['
|
|
145
|
+
if (data.hasOwnProperty('when')) {
|
|
146
|
+
obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Number');
|
|
150
147
|
}
|
|
151
|
-
if (data.hasOwnProperty('
|
|
152
|
-
obj['
|
|
148
|
+
if (data.hasOwnProperty('where_when')) {
|
|
149
|
+
obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
|
|
153
150
|
}
|
|
154
|
-
if (data.hasOwnProperty('
|
|
155
|
-
obj['
|
|
151
|
+
if (data.hasOwnProperty('where')) {
|
|
152
|
+
obj['where'] = _ApiClient["default"].convertToType(data['where'], 'String');
|
|
156
153
|
}
|
|
157
|
-
if (data.hasOwnProperty('
|
|
158
|
-
obj['
|
|
154
|
+
if (data.hasOwnProperty('where_lat')) {
|
|
155
|
+
obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
|
|
159
156
|
}
|
|
160
|
-
if (data.hasOwnProperty('
|
|
161
|
-
obj['
|
|
157
|
+
if (data.hasOwnProperty('where_lon')) {
|
|
158
|
+
obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
|
|
162
159
|
}
|
|
163
|
-
if (data.hasOwnProperty('
|
|
164
|
-
obj['
|
|
160
|
+
if (data.hasOwnProperty('where_location')) {
|
|
161
|
+
obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
|
|
165
162
|
}
|
|
166
|
-
if (data.hasOwnProperty('
|
|
167
|
-
obj['
|
|
163
|
+
if (data.hasOwnProperty('where_country')) {
|
|
164
|
+
obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
|
|
168
165
|
}
|
|
169
|
-
if (data.hasOwnProperty('
|
|
170
|
-
obj['
|
|
166
|
+
if (data.hasOwnProperty('where_timezone')) {
|
|
167
|
+
obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
|
|
171
168
|
}
|
|
172
|
-
if (data.hasOwnProperty('
|
|
173
|
-
obj['
|
|
169
|
+
if (data.hasOwnProperty('usage_actual')) {
|
|
170
|
+
obj['usage_actual'] = _ApiClient["default"].convertToType(data['usage_actual'], 'Boolean');
|
|
174
171
|
}
|
|
175
|
-
if (data.hasOwnProperty('
|
|
176
|
-
obj['
|
|
172
|
+
if (data.hasOwnProperty('voltage')) {
|
|
173
|
+
obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
|
|
177
174
|
}
|
|
178
175
|
if (data.hasOwnProperty('temp')) {
|
|
179
176
|
obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
|
|
180
177
|
}
|
|
178
|
+
if (data.hasOwnProperty('continuous')) {
|
|
179
|
+
obj['continuous'] = _ApiClient["default"].convertToType(data['continuous'], 'Boolean');
|
|
180
|
+
}
|
|
181
181
|
if (data.hasOwnProperty('tls')) {
|
|
182
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,75 +247,74 @@ 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 `
|
|
252
|
-
}
|
|
253
|
-
// ensure the json data is a string
|
|
254
|
-
if (data['bearer'] && !(typeof data['bearer'] === 'string' || data['bearer'] instanceof String)) {
|
|
255
|
-
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data['bearer']);
|
|
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']);
|
|
256
252
|
}
|
|
257
253
|
// ensure the json data is a string
|
|
258
|
-
if (data['
|
|
259
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
260
256
|
}
|
|
261
257
|
// ensure the json data is a string
|
|
262
|
-
if (data['
|
|
263
|
-
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']);
|
|
264
260
|
}
|
|
265
261
|
// ensure the json data is a string
|
|
266
262
|
if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
|
|
267
263
|
throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
|
|
268
264
|
}
|
|
265
|
+
// ensure the json data is a string
|
|
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']);
|
|
272
|
+
}
|
|
269
273
|
// ensure the json data is an array
|
|
270
274
|
if (!Array.isArray(data['fleets'])) {
|
|
271
275
|
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
272
276
|
}
|
|
273
277
|
// ensure the json data is a string
|
|
274
|
-
if (data['
|
|
275
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
276
280
|
}
|
|
277
281
|
// ensure the json data is a string
|
|
278
|
-
if (data['
|
|
279
|
-
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']);
|
|
280
284
|
}
|
|
281
285
|
// ensure the json data is a string
|
|
282
|
-
if (data['
|
|
283
|
-
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']);
|
|
284
288
|
}
|
|
285
|
-
//
|
|
286
|
-
if (data['
|
|
287
|
-
|
|
288
|
-
_DeviceUsage["default"].validateJSON(data['period']);
|
|
289
|
+
// ensure the json data is a string
|
|
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']);
|
|
289
292
|
}
|
|
290
293
|
// ensure the json data is a string
|
|
291
|
-
if (data['
|
|
292
|
-
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']);
|
|
293
296
|
}
|
|
294
297
|
// ensure the json data is a string
|
|
295
|
-
if (data['
|
|
296
|
-
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']);
|
|
297
300
|
}
|
|
298
301
|
// ensure the json data is a string
|
|
299
|
-
if (data['
|
|
300
|
-
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']);
|
|
301
304
|
}
|
|
302
305
|
// ensure the json data is a string
|
|
303
|
-
if (data['
|
|
304
|
-
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']);
|
|
305
308
|
}
|
|
306
309
|
// ensure the json data is a string
|
|
307
|
-
if (data['
|
|
308
|
-
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']);
|
|
309
312
|
}
|
|
310
313
|
// validate the optional field `tower`
|
|
311
314
|
if (data['tower']) {
|
|
312
315
|
// data not null
|
|
313
316
|
_TowerLocation["default"].validateJSON(data['tower']);
|
|
314
317
|
}
|
|
315
|
-
// ensure the json data is a string
|
|
316
|
-
if (data['transport'] && !(typeof data['transport'] === 'string' || data['transport'] instanceof String)) {
|
|
317
|
-
throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data['transport']);
|
|
318
|
-
}
|
|
319
318
|
// validate the optional field `tri`
|
|
320
319
|
if (data['tri']) {
|
|
321
320
|
// data not null
|
|
@@ -326,60 +325,59 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
326
325
|
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data['where']);
|
|
327
326
|
}
|
|
328
327
|
// ensure the json data is a string
|
|
329
|
-
if (data['where_country'] && !(typeof data['where_country'] === 'string' || data['where_country'] instanceof String)) {
|
|
330
|
-
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data['where_country']);
|
|
331
|
-
}
|
|
332
|
-
// ensure the json data is a string
|
|
333
328
|
if (data['where_location'] && !(typeof data['where_location'] === 'string' || data['where_location'] instanceof String)) {
|
|
334
329
|
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data['where_location']);
|
|
335
330
|
}
|
|
336
331
|
// ensure the json data is a string
|
|
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
|
+
}
|
|
335
|
+
// ensure the json data is a string
|
|
337
336
|
if (data['where_timezone'] && !(typeof data['where_timezone'] === 'string' || data['where_timezone'] instanceof String)) {
|
|
338
337
|
throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data['where_timezone']);
|
|
339
338
|
}
|
|
340
339
|
// ensure the json data is a string
|
|
341
|
-
if (data['
|
|
342
|
-
throw new Error("Expected the field `
|
|
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']);
|
|
343
342
|
}
|
|
344
|
-
//
|
|
345
|
-
if (data['
|
|
346
|
-
|
|
343
|
+
// validate the optional field `period`
|
|
344
|
+
if (data['period']) {
|
|
345
|
+
// data not null
|
|
346
|
+
_DeviceUsage["default"].validateJSON(data['period']);
|
|
347
347
|
}
|
|
348
348
|
return true;
|
|
349
349
|
}
|
|
350
350
|
}]);
|
|
351
351
|
}();
|
|
352
352
|
/**
|
|
353
|
-
*
|
|
354
|
-
|
|
355
|
-
DeviceSession.prototype['apn'] = undefined;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* @member {Number} bars
|
|
353
|
+
* Session UID
|
|
354
|
+
* @member {String} session
|
|
359
355
|
*/
|
|
360
|
-
DeviceSession.prototype['
|
|
356
|
+
DeviceSession.prototype['session'] = undefined;
|
|
361
357
|
|
|
362
358
|
/**
|
|
363
|
-
*
|
|
359
|
+
* UNIX timestamp of session start
|
|
360
|
+
* @member {Number} session_began
|
|
364
361
|
*/
|
|
365
|
-
DeviceSession.prototype['
|
|
362
|
+
DeviceSession.prototype['session_began'] = undefined;
|
|
366
363
|
|
|
367
364
|
/**
|
|
368
|
-
*
|
|
365
|
+
* Reason for session opening
|
|
366
|
+
* @member {String} why_session_opened
|
|
369
367
|
*/
|
|
370
|
-
DeviceSession.prototype['
|
|
368
|
+
DeviceSession.prototype['why_session_opened'] = undefined;
|
|
371
369
|
|
|
372
370
|
/**
|
|
373
|
-
*
|
|
374
|
-
* @member {
|
|
371
|
+
* UNIX timestamp of session end
|
|
372
|
+
* @member {Number} session_ended
|
|
375
373
|
*/
|
|
376
|
-
DeviceSession.prototype['
|
|
374
|
+
DeviceSession.prototype['session_ended'] = undefined;
|
|
377
375
|
|
|
378
376
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @member {
|
|
377
|
+
* Reason for session closing
|
|
378
|
+
* @member {String} why_session_closed
|
|
381
379
|
*/
|
|
382
|
-
DeviceSession.prototype['
|
|
380
|
+
DeviceSession.prototype['why_session_closed'] = undefined;
|
|
383
381
|
|
|
384
382
|
/**
|
|
385
383
|
* Device UID
|
|
@@ -388,16 +386,16 @@ DeviceSession.prototype['continuous'] = undefined;
|
|
|
388
386
|
DeviceSession.prototype['device'] = undefined;
|
|
389
387
|
|
|
390
388
|
/**
|
|
391
|
-
*
|
|
392
|
-
* @member {
|
|
389
|
+
* Device Serial Number
|
|
390
|
+
* @member {String} sn
|
|
393
391
|
*/
|
|
394
|
-
DeviceSession.prototype['
|
|
392
|
+
DeviceSession.prototype['sn'] = undefined;
|
|
395
393
|
|
|
396
394
|
/**
|
|
397
|
-
*
|
|
398
|
-
* @member {
|
|
395
|
+
* Product UID
|
|
396
|
+
* @member {String} product
|
|
399
397
|
*/
|
|
400
|
-
DeviceSession.prototype['
|
|
398
|
+
DeviceSession.prototype['product'] = undefined;
|
|
401
399
|
|
|
402
400
|
/**
|
|
403
401
|
* Array of Fleet UIDs
|
|
@@ -406,157 +404,161 @@ DeviceSession.prototype['failed_connects'] = undefined;
|
|
|
406
404
|
DeviceSession.prototype['fleets'] = undefined;
|
|
407
405
|
|
|
408
406
|
/**
|
|
409
|
-
*
|
|
407
|
+
* Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
|
|
408
|
+
* @member {String} cell
|
|
410
409
|
*/
|
|
411
|
-
DeviceSession.prototype['
|
|
410
|
+
DeviceSession.prototype['cell'] = undefined;
|
|
412
411
|
|
|
413
412
|
/**
|
|
414
|
-
* @member {
|
|
413
|
+
* @member {Blob} scan
|
|
415
414
|
*/
|
|
416
|
-
DeviceSession.prototype['
|
|
415
|
+
DeviceSession.prototype['scan'] = undefined;
|
|
417
416
|
|
|
418
417
|
/**
|
|
419
|
-
* @member {
|
|
418
|
+
* @member {Object} triangulate
|
|
420
419
|
*/
|
|
421
|
-
DeviceSession.prototype['
|
|
420
|
+
DeviceSession.prototype['triangulate'] = undefined;
|
|
422
421
|
|
|
423
422
|
/**
|
|
424
|
-
* @member {Number}
|
|
423
|
+
* @member {Number} rssi
|
|
425
424
|
*/
|
|
426
|
-
DeviceSession.prototype['
|
|
425
|
+
DeviceSession.prototype['rssi'] = undefined;
|
|
427
426
|
|
|
428
427
|
/**
|
|
429
|
-
* @member {Number}
|
|
428
|
+
* @member {Number} sinr
|
|
430
429
|
*/
|
|
431
|
-
DeviceSession.prototype['
|
|
430
|
+
DeviceSession.prototype['sinr'] = undefined;
|
|
432
431
|
|
|
433
432
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @member {Number} hp_secs_total
|
|
433
|
+
* @member {Number} rsrp
|
|
436
434
|
*/
|
|
437
|
-
DeviceSession.prototype['
|
|
435
|
+
DeviceSession.prototype['rsrp'] = undefined;
|
|
438
436
|
|
|
439
437
|
/**
|
|
440
|
-
* @member {
|
|
438
|
+
* @member {Number} rsrq
|
|
441
439
|
*/
|
|
442
|
-
DeviceSession.prototype['
|
|
440
|
+
DeviceSession.prototype['rsrq'] = undefined;
|
|
443
441
|
|
|
444
442
|
/**
|
|
445
|
-
* @member {
|
|
443
|
+
* @member {Number} bars
|
|
446
444
|
*/
|
|
447
|
-
DeviceSession.prototype['
|
|
445
|
+
DeviceSession.prototype['bars'] = undefined;
|
|
448
446
|
|
|
449
447
|
/**
|
|
450
|
-
* @member {
|
|
448
|
+
* @member {String} rat
|
|
451
449
|
*/
|
|
452
|
-
DeviceSession.prototype['
|
|
450
|
+
DeviceSession.prototype['rat'] = undefined;
|
|
453
451
|
|
|
454
452
|
/**
|
|
455
|
-
* @member {String}
|
|
453
|
+
* @member {String} bearer
|
|
456
454
|
*/
|
|
457
|
-
DeviceSession.prototype['
|
|
455
|
+
DeviceSession.prototype['bearer'] = undefined;
|
|
458
456
|
|
|
459
457
|
/**
|
|
460
|
-
*
|
|
461
|
-
* @member {Number} penalty_secs
|
|
458
|
+
* @member {String} ip
|
|
462
459
|
*/
|
|
463
|
-
DeviceSession.prototype['
|
|
460
|
+
DeviceSession.prototype['ip'] = undefined;
|
|
464
461
|
|
|
465
462
|
/**
|
|
466
|
-
* @member {
|
|
463
|
+
* @member {String} bssid
|
|
467
464
|
*/
|
|
468
|
-
DeviceSession.prototype['
|
|
465
|
+
DeviceSession.prototype['bssid'] = undefined;
|
|
469
466
|
|
|
470
467
|
/**
|
|
471
|
-
* @member {
|
|
468
|
+
* @member {String} ssid
|
|
472
469
|
*/
|
|
473
|
-
DeviceSession.prototype['
|
|
470
|
+
DeviceSession.prototype['ssid'] = undefined;
|
|
474
471
|
|
|
475
472
|
/**
|
|
476
|
-
* @member {
|
|
473
|
+
* @member {String} iccid
|
|
477
474
|
*/
|
|
478
|
-
DeviceSession.prototype['
|
|
475
|
+
DeviceSession.prototype['iccid'] = undefined;
|
|
479
476
|
|
|
480
477
|
/**
|
|
481
|
-
* @member {
|
|
478
|
+
* @member {String} apn
|
|
482
479
|
*/
|
|
483
|
-
DeviceSession.prototype['
|
|
480
|
+
DeviceSession.prototype['apn'] = undefined;
|
|
484
481
|
|
|
485
482
|
/**
|
|
486
|
-
*
|
|
483
|
+
* Type of network transport
|
|
484
|
+
* @member {String} transport
|
|
487
485
|
*/
|
|
488
|
-
DeviceSession.prototype['
|
|
486
|
+
DeviceSession.prototype['transport'] = undefined;
|
|
489
487
|
|
|
490
488
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @member {String} product
|
|
489
|
+
* @member {module:model/TowerLocation} tower
|
|
493
490
|
*/
|
|
494
|
-
DeviceSession.prototype['
|
|
491
|
+
DeviceSession.prototype['tower'] = undefined;
|
|
495
492
|
|
|
496
493
|
/**
|
|
497
|
-
* @member {
|
|
494
|
+
* @member {module:model/TowerLocation} tri
|
|
498
495
|
*/
|
|
499
|
-
DeviceSession.prototype['
|
|
496
|
+
DeviceSession.prototype['tri'] = undefined;
|
|
500
497
|
|
|
501
498
|
/**
|
|
502
|
-
*
|
|
499
|
+
* Last known capture time of a note routed through this session in Unix timestamp
|
|
500
|
+
* @member {Number} when
|
|
503
501
|
*/
|
|
504
|
-
DeviceSession.prototype['
|
|
502
|
+
DeviceSession.prototype['when'] = undefined;
|
|
505
503
|
|
|
506
504
|
/**
|
|
507
|
-
*
|
|
505
|
+
* Unix timestamp of last GPS location
|
|
506
|
+
* @member {Number} where_when
|
|
508
507
|
*/
|
|
509
|
-
DeviceSession.prototype['
|
|
508
|
+
DeviceSession.prototype['where_when'] = undefined;
|
|
510
509
|
|
|
511
510
|
/**
|
|
512
|
-
*
|
|
511
|
+
* Open Location Code from last GPS location
|
|
512
|
+
* @member {String} where
|
|
513
513
|
*/
|
|
514
|
-
DeviceSession.prototype['
|
|
514
|
+
DeviceSession.prototype['where'] = undefined;
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
|
-
* @member {
|
|
517
|
+
* @member {Number} where_lat
|
|
518
518
|
*/
|
|
519
|
-
DeviceSession.prototype['
|
|
519
|
+
DeviceSession.prototype['where_lat'] = undefined;
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
|
-
*
|
|
523
|
-
* @member {String} session
|
|
522
|
+
* @member {Number} where_lon
|
|
524
523
|
*/
|
|
525
|
-
DeviceSession.prototype['
|
|
524
|
+
DeviceSession.prototype['where_lon'] = undefined;
|
|
526
525
|
|
|
527
526
|
/**
|
|
528
|
-
*
|
|
529
|
-
* @member {Number} session_began
|
|
527
|
+
* @member {String} where_location
|
|
530
528
|
*/
|
|
531
|
-
DeviceSession.prototype['
|
|
529
|
+
DeviceSession.prototype['where_location'] = undefined;
|
|
532
530
|
|
|
533
531
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @member {Number} session_ended
|
|
532
|
+
* @member {String} where_country
|
|
536
533
|
*/
|
|
537
|
-
DeviceSession.prototype['
|
|
534
|
+
DeviceSession.prototype['where_country'] = undefined;
|
|
538
535
|
|
|
539
536
|
/**
|
|
540
|
-
* @member {
|
|
537
|
+
* @member {String} where_timezone
|
|
541
538
|
*/
|
|
542
|
-
DeviceSession.prototype['
|
|
539
|
+
DeviceSession.prototype['where_timezone'] = undefined;
|
|
543
540
|
|
|
544
541
|
/**
|
|
545
|
-
*
|
|
546
|
-
* @member {String} sn
|
|
542
|
+
* @member {Boolean} usage_actual
|
|
547
543
|
*/
|
|
548
|
-
DeviceSession.prototype['
|
|
544
|
+
DeviceSession.prototype['usage_actual'] = undefined;
|
|
549
545
|
|
|
550
546
|
/**
|
|
551
|
-
* @member {
|
|
547
|
+
* @member {Number} voltage
|
|
552
548
|
*/
|
|
553
|
-
DeviceSession.prototype['
|
|
549
|
+
DeviceSession.prototype['voltage'] = undefined;
|
|
554
550
|
|
|
555
551
|
/**
|
|
556
552
|
* @member {Number} temp
|
|
557
553
|
*/
|
|
558
554
|
DeviceSession.prototype['temp'] = undefined;
|
|
559
555
|
|
|
556
|
+
/**
|
|
557
|
+
* Was this a continuous connection?
|
|
558
|
+
* @member {Boolean} continuous
|
|
559
|
+
*/
|
|
560
|
+
DeviceSession.prototype['continuous'] = undefined;
|
|
561
|
+
|
|
560
562
|
/**
|
|
561
563
|
* Was TLS used?
|
|
562
564
|
* @member {Boolean} tls
|
|
@@ -564,94 +566,92 @@ DeviceSession.prototype['temp'] = undefined;
|
|
|
564
566
|
DeviceSession.prototype['tls'] = undefined;
|
|
565
567
|
|
|
566
568
|
/**
|
|
567
|
-
*
|
|
569
|
+
* Unix timestamp of the last time work was done for this session
|
|
570
|
+
* @member {Number} work
|
|
568
571
|
*/
|
|
569
|
-
DeviceSession.prototype['
|
|
572
|
+
DeviceSession.prototype['work'] = undefined;
|
|
570
573
|
|
|
571
574
|
/**
|
|
572
|
-
*
|
|
573
|
-
* @member {
|
|
575
|
+
* Number of events routed
|
|
576
|
+
* @member {Number} events
|
|
574
577
|
*/
|
|
575
|
-
DeviceSession.prototype['
|
|
578
|
+
DeviceSession.prototype['events'] = undefined;
|
|
576
579
|
|
|
577
580
|
/**
|
|
578
|
-
* @member {
|
|
581
|
+
* @member {Number} moved
|
|
579
582
|
*/
|
|
580
|
-
DeviceSession.prototype['
|
|
583
|
+
DeviceSession.prototype['moved'] = undefined;
|
|
581
584
|
|
|
582
585
|
/**
|
|
583
|
-
* @member {
|
|
586
|
+
* @member {String} orientation
|
|
584
587
|
*/
|
|
585
|
-
DeviceSession.prototype['
|
|
588
|
+
DeviceSession.prototype['orientation'] = undefined;
|
|
586
589
|
|
|
587
590
|
/**
|
|
588
|
-
*
|
|
591
|
+
* Total number of seconds in high power mode
|
|
592
|
+
* @member {Number} hp_secs_total
|
|
589
593
|
*/
|
|
590
|
-
DeviceSession.prototype['
|
|
594
|
+
DeviceSession.prototype['hp_secs_total'] = undefined;
|
|
591
595
|
|
|
592
596
|
/**
|
|
593
|
-
* @member {Number}
|
|
597
|
+
* @member {Number} hp_secs_data
|
|
594
598
|
*/
|
|
595
|
-
DeviceSession.prototype['
|
|
599
|
+
DeviceSession.prototype['hp_secs_data'] = undefined;
|
|
596
600
|
|
|
597
601
|
/**
|
|
598
|
-
*
|
|
599
|
-
* @member {Number} when
|
|
602
|
+
* @member {Number} hp_secs_gps
|
|
600
603
|
*/
|
|
601
|
-
DeviceSession.prototype['
|
|
604
|
+
DeviceSession.prototype['hp_secs_gps'] = undefined;
|
|
602
605
|
|
|
603
606
|
/**
|
|
604
|
-
*
|
|
605
|
-
* @member {String} where
|
|
607
|
+
* @member {Number} hp_cycles_total
|
|
606
608
|
*/
|
|
607
|
-
DeviceSession.prototype['
|
|
609
|
+
DeviceSession.prototype['hp_cycles_total'] = undefined;
|
|
608
610
|
|
|
609
611
|
/**
|
|
610
|
-
* @member {
|
|
612
|
+
* @member {Number} hp_cycles_data
|
|
611
613
|
*/
|
|
612
|
-
DeviceSession.prototype['
|
|
614
|
+
DeviceSession.prototype['hp_cycles_data'] = undefined;
|
|
613
615
|
|
|
614
616
|
/**
|
|
615
|
-
* @member {Number}
|
|
617
|
+
* @member {Number} hp_cycles_gps
|
|
616
618
|
*/
|
|
617
|
-
DeviceSession.prototype['
|
|
619
|
+
DeviceSession.prototype['hp_cycles_gps'] = undefined;
|
|
618
620
|
|
|
619
621
|
/**
|
|
620
|
-
* @member {
|
|
622
|
+
* @member {module:model/DeviceUsage} period
|
|
621
623
|
*/
|
|
622
|
-
DeviceSession.prototype['
|
|
624
|
+
DeviceSession.prototype['period'] = undefined;
|
|
623
625
|
|
|
624
626
|
/**
|
|
625
|
-
* @member {
|
|
627
|
+
* @member {Boolean} power_charging
|
|
626
628
|
*/
|
|
627
|
-
DeviceSession.prototype['
|
|
629
|
+
DeviceSession.prototype['power_charging'] = undefined;
|
|
628
630
|
|
|
629
631
|
/**
|
|
630
|
-
* @member {
|
|
632
|
+
* @member {Boolean} power_usb
|
|
631
633
|
*/
|
|
632
|
-
DeviceSession.prototype['
|
|
634
|
+
DeviceSession.prototype['power_usb'] = undefined;
|
|
633
635
|
|
|
634
636
|
/**
|
|
635
|
-
*
|
|
636
|
-
* @member {Number} where_when
|
|
637
|
+
* @member {Boolean} power_primary
|
|
637
638
|
*/
|
|
638
|
-
DeviceSession.prototype['
|
|
639
|
+
DeviceSession.prototype['power_primary'] = undefined;
|
|
639
640
|
|
|
640
641
|
/**
|
|
641
|
-
*
|
|
642
|
-
* @member {String} why_session_closed
|
|
642
|
+
* @member {Number} power_mah
|
|
643
643
|
*/
|
|
644
|
-
DeviceSession.prototype['
|
|
644
|
+
DeviceSession.prototype['power_mah'] = undefined;
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
|
-
*
|
|
648
|
-
* @member {
|
|
647
|
+
* Number of seconds in penalty in the prior session
|
|
648
|
+
* @member {Number} penalty_secs
|
|
649
649
|
*/
|
|
650
|
-
DeviceSession.prototype['
|
|
650
|
+
DeviceSession.prototype['penalty_secs'] = undefined;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
|
-
*
|
|
654
|
-
* @member {Number}
|
|
653
|
+
* Number of failed connection attempts in the prior session
|
|
654
|
+
* @member {Number} failed_connects
|
|
655
655
|
*/
|
|
656
|
-
DeviceSession.prototype['
|
|
656
|
+
DeviceSession.prototype['failed_connects'] = undefined;
|
|
657
657
|
var _default = exports["default"] = DeviceSession;
|