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