@blues-inc/notehub-js 3.0.0 → 4.0.0-beta.1
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 +247 -247
- package/dist/ApiClient.js +150 -155
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +471 -511
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +117 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +25 -17
- 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/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +115 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- 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/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +43 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +132 -0
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- 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/MqttRoute.js +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +38 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +48 -37
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +41 -31
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/ListPendingNotefiles200Response.js +0 -115
|
@@ -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
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
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,103 +247,103 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
247
247
|
key: "validateJSON",
|
|
248
248
|
value: function validateJSON(data) {
|
|
249
249
|
// ensure the json data is a string
|
|
250
|
-
if (data[
|
|
251
|
-
throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data[
|
|
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 `bearer` to be a primitive type in the JSON string but got " + data[
|
|
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 `bssid` to be a primitive type in the JSON string but got " + data[
|
|
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 `cell` to be a primitive type in the JSON string but got " + data[
|
|
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 `device` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
268
268
|
}
|
|
269
269
|
// ensure the json data is an array
|
|
270
|
-
if (!Array.isArray(data[
|
|
271
|
-
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']);
|
|
272
272
|
}
|
|
273
273
|
// ensure the json data is a string
|
|
274
|
-
if (data[
|
|
275
|
-
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
276
276
|
}
|
|
277
277
|
// ensure the json data is a string
|
|
278
|
-
if (data[
|
|
279
|
-
throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
280
280
|
}
|
|
281
281
|
// ensure the json data is a string
|
|
282
|
-
if (data[
|
|
283
|
-
throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
284
284
|
}
|
|
285
285
|
// validate the optional field `period`
|
|
286
|
-
if (data[
|
|
286
|
+
if (data['period']) {
|
|
287
287
|
// data not null
|
|
288
|
-
_DeviceUsage["default"].validateJSON(data[
|
|
288
|
+
_DeviceUsage["default"].validateJSON(data['period']);
|
|
289
289
|
}
|
|
290
290
|
// ensure the json data is a string
|
|
291
|
-
if (data[
|
|
292
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
293
293
|
}
|
|
294
294
|
// ensure the json data is a string
|
|
295
|
-
if (data[
|
|
296
|
-
throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
297
297
|
}
|
|
298
298
|
// ensure the json data is a string
|
|
299
|
-
if (data[
|
|
300
|
-
throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
301
301
|
}
|
|
302
302
|
// ensure the json data is a string
|
|
303
|
-
if (data[
|
|
304
|
-
throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
305
305
|
}
|
|
306
306
|
// ensure the json data is a string
|
|
307
|
-
if (data[
|
|
308
|
-
throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
309
309
|
}
|
|
310
310
|
// validate the optional field `tower`
|
|
311
|
-
if (data[
|
|
311
|
+
if (data['tower']) {
|
|
312
312
|
// data not null
|
|
313
|
-
_TowerLocation["default"].validateJSON(data[
|
|
313
|
+
_TowerLocation["default"].validateJSON(data['tower']);
|
|
314
314
|
}
|
|
315
315
|
// ensure the json data is a string
|
|
316
|
-
if (data[
|
|
317
|
-
throw new Error("Expected the field `transport` to be a primitive type in the JSON string but got " + data[
|
|
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
318
|
}
|
|
319
319
|
// validate the optional field `tri`
|
|
320
|
-
if (data[
|
|
320
|
+
if (data['tri']) {
|
|
321
321
|
// data not null
|
|
322
|
-
_TowerLocation["default"].validateJSON(data[
|
|
322
|
+
_TowerLocation["default"].validateJSON(data['tri']);
|
|
323
323
|
}
|
|
324
324
|
// ensure the json data is a string
|
|
325
|
-
if (data[
|
|
326
|
-
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']);
|
|
327
327
|
}
|
|
328
328
|
// ensure the json data is a string
|
|
329
|
-
if (data[
|
|
330
|
-
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data[
|
|
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
331
|
}
|
|
332
332
|
// ensure the json data is a string
|
|
333
|
-
if (data[
|
|
334
|
-
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
335
335
|
}
|
|
336
336
|
// ensure the json data is a string
|
|
337
|
-
if (data[
|
|
338
|
-
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']);
|
|
339
339
|
}
|
|
340
340
|
// ensure the json data is a string
|
|
341
|
-
if (data[
|
|
342
|
-
throw new Error("Expected the field `why_session_closed` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
343
343
|
}
|
|
344
344
|
// ensure the json data is a string
|
|
345
|
-
if (data[
|
|
346
|
-
throw new Error("Expected the field `why_session_opened` to be a primitive type in the JSON string but got " + data[
|
|
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
|
}
|
|
@@ -352,306 +352,306 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
352
352
|
/**
|
|
353
353
|
* @member {String} apn
|
|
354
354
|
*/
|
|
355
|
-
DeviceSession.prototype[
|
|
355
|
+
DeviceSession.prototype['apn'] = undefined;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* @member {Number} bars
|
|
359
359
|
*/
|
|
360
|
-
DeviceSession.prototype[
|
|
360
|
+
DeviceSession.prototype['bars'] = undefined;
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
363
|
* @member {String} bearer
|
|
364
364
|
*/
|
|
365
|
-
DeviceSession.prototype[
|
|
365
|
+
DeviceSession.prototype['bearer'] = undefined;
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* @member {String} bssid
|
|
369
369
|
*/
|
|
370
|
-
DeviceSession.prototype[
|
|
370
|
+
DeviceSession.prototype['bssid'] = undefined;
|
|
371
371
|
|
|
372
372
|
/**
|
|
373
373
|
* Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
|
|
374
374
|
* @member {String} cell
|
|
375
375
|
*/
|
|
376
|
-
DeviceSession.prototype[
|
|
376
|
+
DeviceSession.prototype['cell'] = undefined;
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
379
|
* Was this a continuous connection?
|
|
380
380
|
* @member {Boolean} continuous
|
|
381
381
|
*/
|
|
382
|
-
DeviceSession.prototype[
|
|
382
|
+
DeviceSession.prototype['continuous'] = undefined;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* Device UID
|
|
386
386
|
* @member {String} device
|
|
387
387
|
*/
|
|
388
|
-
DeviceSession.prototype[
|
|
388
|
+
DeviceSession.prototype['device'] = undefined;
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
391
|
* Number of events routed
|
|
392
392
|
* @member {Number} events
|
|
393
393
|
*/
|
|
394
|
-
DeviceSession.prototype[
|
|
394
|
+
DeviceSession.prototype['events'] = undefined;
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
397
|
* Number of failed connection attempts in the prior session
|
|
398
398
|
* @member {Number} failed_connects
|
|
399
399
|
*/
|
|
400
|
-
DeviceSession.prototype[
|
|
400
|
+
DeviceSession.prototype['failed_connects'] = undefined;
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
403
|
* Array of Fleet UIDs
|
|
404
404
|
* @member {Array.<String>} fleets
|
|
405
405
|
*/
|
|
406
|
-
DeviceSession.prototype[
|
|
406
|
+
DeviceSession.prototype['fleets'] = undefined;
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* @member {Number} hp_cycles_data
|
|
410
410
|
*/
|
|
411
|
-
DeviceSession.prototype[
|
|
411
|
+
DeviceSession.prototype['hp_cycles_data'] = undefined;
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
414
|
* @member {Number} hp_cycles_gps
|
|
415
415
|
*/
|
|
416
|
-
DeviceSession.prototype[
|
|
416
|
+
DeviceSession.prototype['hp_cycles_gps'] = undefined;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* @member {Number} hp_cycles_total
|
|
420
420
|
*/
|
|
421
|
-
DeviceSession.prototype[
|
|
421
|
+
DeviceSession.prototype['hp_cycles_total'] = undefined;
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
424
|
* @member {Number} hp_secs_data
|
|
425
425
|
*/
|
|
426
|
-
DeviceSession.prototype[
|
|
426
|
+
DeviceSession.prototype['hp_secs_data'] = undefined;
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* @member {Number} hp_secs_gps
|
|
430
430
|
*/
|
|
431
|
-
DeviceSession.prototype[
|
|
431
|
+
DeviceSession.prototype['hp_secs_gps'] = undefined;
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
434
|
* Total number of seconds in high power mode
|
|
435
435
|
* @member {Number} hp_secs_total
|
|
436
436
|
*/
|
|
437
|
-
DeviceSession.prototype[
|
|
437
|
+
DeviceSession.prototype['hp_secs_total'] = undefined;
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* @member {String} iccid
|
|
441
441
|
*/
|
|
442
|
-
DeviceSession.prototype[
|
|
442
|
+
DeviceSession.prototype['iccid'] = undefined;
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* @member {String} ip
|
|
446
446
|
*/
|
|
447
|
-
DeviceSession.prototype[
|
|
447
|
+
DeviceSession.prototype['ip'] = undefined;
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
450
|
* @member {Number} moved
|
|
451
451
|
*/
|
|
452
|
-
DeviceSession.prototype[
|
|
452
|
+
DeviceSession.prototype['moved'] = undefined;
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
455
|
* @member {String} orientation
|
|
456
456
|
*/
|
|
457
|
-
DeviceSession.prototype[
|
|
457
|
+
DeviceSession.prototype['orientation'] = undefined;
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
460
|
* Number of seconds in penalty in the prior session
|
|
461
461
|
* @member {Number} penalty_secs
|
|
462
462
|
*/
|
|
463
|
-
DeviceSession.prototype[
|
|
463
|
+
DeviceSession.prototype['penalty_secs'] = undefined;
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* @member {module:model/DeviceUsage} period
|
|
467
467
|
*/
|
|
468
|
-
DeviceSession.prototype[
|
|
468
|
+
DeviceSession.prototype['period'] = undefined;
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
471
|
* @member {Boolean} power_charging
|
|
472
472
|
*/
|
|
473
|
-
DeviceSession.prototype[
|
|
473
|
+
DeviceSession.prototype['power_charging'] = undefined;
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* @member {Number} power_mah
|
|
477
477
|
*/
|
|
478
|
-
DeviceSession.prototype[
|
|
478
|
+
DeviceSession.prototype['power_mah'] = undefined;
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* @member {Boolean} power_primary
|
|
482
482
|
*/
|
|
483
|
-
DeviceSession.prototype[
|
|
483
|
+
DeviceSession.prototype['power_primary'] = undefined;
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* @member {Boolean} power_usb
|
|
487
487
|
*/
|
|
488
|
-
DeviceSession.prototype[
|
|
488
|
+
DeviceSession.prototype['power_usb'] = undefined;
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
491
|
* Product UID
|
|
492
492
|
* @member {String} product
|
|
493
493
|
*/
|
|
494
|
-
DeviceSession.prototype[
|
|
494
|
+
DeviceSession.prototype['product'] = undefined;
|
|
495
495
|
|
|
496
496
|
/**
|
|
497
497
|
* @member {String} rat
|
|
498
498
|
*/
|
|
499
|
-
DeviceSession.prototype[
|
|
499
|
+
DeviceSession.prototype['rat'] = undefined;
|
|
500
500
|
|
|
501
501
|
/**
|
|
502
502
|
* @member {Number} rsrp
|
|
503
503
|
*/
|
|
504
|
-
DeviceSession.prototype[
|
|
504
|
+
DeviceSession.prototype['rsrp'] = undefined;
|
|
505
505
|
|
|
506
506
|
/**
|
|
507
507
|
* @member {Number} rsrq
|
|
508
508
|
*/
|
|
509
|
-
DeviceSession.prototype[
|
|
509
|
+
DeviceSession.prototype['rsrq'] = undefined;
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* @member {Number} rssi
|
|
513
513
|
*/
|
|
514
|
-
DeviceSession.prototype[
|
|
514
|
+
DeviceSession.prototype['rssi'] = undefined;
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
517
|
* @member {Blob} scan
|
|
518
518
|
*/
|
|
519
|
-
DeviceSession.prototype[
|
|
519
|
+
DeviceSession.prototype['scan'] = undefined;
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* Session UID
|
|
523
523
|
* @member {String} session
|
|
524
524
|
*/
|
|
525
|
-
DeviceSession.prototype[
|
|
525
|
+
DeviceSession.prototype['session'] = undefined;
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* UNIX timestamp of session start
|
|
529
529
|
* @member {Number} session_began
|
|
530
530
|
*/
|
|
531
|
-
DeviceSession.prototype[
|
|
531
|
+
DeviceSession.prototype['session_began'] = undefined;
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
534
|
* UNIX timestamp of session end
|
|
535
535
|
* @member {Number} session_ended
|
|
536
536
|
*/
|
|
537
|
-
DeviceSession.prototype[
|
|
537
|
+
DeviceSession.prototype['session_ended'] = undefined;
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
540
|
* @member {Number} sinr
|
|
541
541
|
*/
|
|
542
|
-
DeviceSession.prototype[
|
|
542
|
+
DeviceSession.prototype['sinr'] = undefined;
|
|
543
543
|
|
|
544
544
|
/**
|
|
545
545
|
* Device Serial Number
|
|
546
546
|
* @member {String} sn
|
|
547
547
|
*/
|
|
548
|
-
DeviceSession.prototype[
|
|
548
|
+
DeviceSession.prototype['sn'] = undefined;
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* @member {String} ssid
|
|
552
552
|
*/
|
|
553
|
-
DeviceSession.prototype[
|
|
553
|
+
DeviceSession.prototype['ssid'] = undefined;
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* @member {Number} temp
|
|
557
557
|
*/
|
|
558
|
-
DeviceSession.prototype[
|
|
558
|
+
DeviceSession.prototype['temp'] = undefined;
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* Was TLS used?
|
|
562
562
|
* @member {Boolean} tls
|
|
563
563
|
*/
|
|
564
|
-
DeviceSession.prototype[
|
|
564
|
+
DeviceSession.prototype['tls'] = undefined;
|
|
565
565
|
|
|
566
566
|
/**
|
|
567
567
|
* @member {module:model/TowerLocation} tower
|
|
568
568
|
*/
|
|
569
|
-
DeviceSession.prototype[
|
|
569
|
+
DeviceSession.prototype['tower'] = undefined;
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* Type of network transport
|
|
573
573
|
* @member {String} transport
|
|
574
574
|
*/
|
|
575
|
-
DeviceSession.prototype[
|
|
575
|
+
DeviceSession.prototype['transport'] = undefined;
|
|
576
576
|
|
|
577
577
|
/**
|
|
578
578
|
* @member {module:model/TowerLocation} tri
|
|
579
579
|
*/
|
|
580
|
-
DeviceSession.prototype[
|
|
580
|
+
DeviceSession.prototype['tri'] = undefined;
|
|
581
581
|
|
|
582
582
|
/**
|
|
583
583
|
* @member {Object} triangulate
|
|
584
584
|
*/
|
|
585
|
-
DeviceSession.prototype[
|
|
585
|
+
DeviceSession.prototype['triangulate'] = undefined;
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
588
|
* @member {Boolean} usage_actual
|
|
589
589
|
*/
|
|
590
|
-
DeviceSession.prototype[
|
|
590
|
+
DeviceSession.prototype['usage_actual'] = undefined;
|
|
591
591
|
|
|
592
592
|
/**
|
|
593
593
|
* @member {Number} voltage
|
|
594
594
|
*/
|
|
595
|
-
DeviceSession.prototype[
|
|
595
|
+
DeviceSession.prototype['voltage'] = undefined;
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
598
|
* Last known capture time of a note routed through this session in Unix timestamp
|
|
599
599
|
* @member {Number} when
|
|
600
600
|
*/
|
|
601
|
-
DeviceSession.prototype[
|
|
601
|
+
DeviceSession.prototype['when'] = undefined;
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
604
|
* Open Location Code from last GPS location
|
|
605
605
|
* @member {String} where
|
|
606
606
|
*/
|
|
607
|
-
DeviceSession.prototype[
|
|
607
|
+
DeviceSession.prototype['where'] = undefined;
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
610
|
* @member {String} where_country
|
|
611
611
|
*/
|
|
612
|
-
DeviceSession.prototype[
|
|
612
|
+
DeviceSession.prototype['where_country'] = undefined;
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
615
|
* @member {Number} where_lat
|
|
616
616
|
*/
|
|
617
|
-
DeviceSession.prototype[
|
|
617
|
+
DeviceSession.prototype['where_lat'] = undefined;
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* @member {String} where_location
|
|
621
621
|
*/
|
|
622
|
-
DeviceSession.prototype[
|
|
622
|
+
DeviceSession.prototype['where_location'] = undefined;
|
|
623
623
|
|
|
624
624
|
/**
|
|
625
625
|
* @member {Number} where_lon
|
|
626
626
|
*/
|
|
627
|
-
DeviceSession.prototype[
|
|
627
|
+
DeviceSession.prototype['where_lon'] = undefined;
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
630
|
* @member {String} where_timezone
|
|
631
631
|
*/
|
|
632
|
-
DeviceSession.prototype[
|
|
632
|
+
DeviceSession.prototype['where_timezone'] = undefined;
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
635
|
* Unix timestamp of last GPS location
|
|
636
636
|
* @member {Number} where_when
|
|
637
637
|
*/
|
|
638
|
-
DeviceSession.prototype[
|
|
638
|
+
DeviceSession.prototype['where_when'] = undefined;
|
|
639
639
|
|
|
640
640
|
/**
|
|
641
641
|
* Reason for session closing
|
|
642
642
|
* @member {String} why_session_closed
|
|
643
643
|
*/
|
|
644
|
-
DeviceSession.prototype[
|
|
644
|
+
DeviceSession.prototype['why_session_closed'] = undefined;
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* Reason for session opening
|
|
648
648
|
* @member {String} why_session_opened
|
|
649
649
|
*/
|
|
650
|
-
DeviceSession.prototype[
|
|
650
|
+
DeviceSession.prototype['why_session_opened'] = undefined;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Unix timestamp of the last time work was done for this session
|
|
654
654
|
* @member {Number} work
|
|
655
655
|
*/
|
|
656
|
-
DeviceSession.prototype[
|
|
656
|
+
DeviceSession.prototype['work'] = undefined;
|
|
657
657
|
var _default = exports["default"] = DeviceSession;
|