@blues-inc/notehub-js 1.0.28 → 1.0.29-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +217 -190
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +118 -118
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +384 -339
- package/dist/api/RepositoryApi.js +605 -0
- package/dist/api/RouteApi.js +74 -74
- package/dist/index.js +56 -0
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +115 -0
- 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 +92 -0
- package/dist/model/DataSet.js +164 -0
- package/dist/model/DataSetField.js +137 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +94 -94
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +182 -182
- 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/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +243 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +23 -23
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -12
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +204 -0
- package/dist/model/QuestionDataResponseMap.js +143 -0
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +129 -0
- package/dist/model/Role.js +9 -9
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +52 -52
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/package.json +3 -3
|
@@ -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.29-beta.2
|
|
32
32
|
*/
|
|
33
33
|
var DeviceSession = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,143 +61,143 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new DeviceSession();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty('session')) {
|
|
65
|
+
obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('device')) {
|
|
68
|
+
obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('sn')) {
|
|
71
|
+
obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty('product')) {
|
|
74
|
+
obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty('fleets')) {
|
|
77
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty('cell')) {
|
|
80
|
+
obj['cell'] = _ApiClient["default"].convertToType(data['cell'], 'String');
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty('scan')) {
|
|
83
|
+
obj['scan'] = _ApiClient["default"].convertToType(data['scan'], 'Blob');
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty('triangulate')) {
|
|
86
|
+
obj['triangulate'] = _ApiClient["default"].convertToType(data['triangulate'], Object);
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty('rssi')) {
|
|
89
|
+
obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty('sinr')) {
|
|
92
|
+
obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty('rsrp')) {
|
|
95
|
+
obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty('rsrq')) {
|
|
98
|
+
obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty('bars')) {
|
|
101
|
+
obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty('rat')) {
|
|
104
|
+
obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
|
|
105
105
|
}
|
|
106
|
-
if (data.hasOwnProperty(
|
|
107
|
-
obj[
|
|
106
|
+
if (data.hasOwnProperty('bearer')) {
|
|
107
|
+
obj['bearer'] = _ApiClient["default"].convertToType(data['bearer'], 'String');
|
|
108
108
|
}
|
|
109
|
-
if (data.hasOwnProperty(
|
|
110
|
-
obj[
|
|
109
|
+
if (data.hasOwnProperty('ip')) {
|
|
110
|
+
obj['ip'] = _ApiClient["default"].convertToType(data['ip'], 'String');
|
|
111
111
|
}
|
|
112
|
-
if (data.hasOwnProperty(
|
|
113
|
-
obj[
|
|
112
|
+
if (data.hasOwnProperty('bssid')) {
|
|
113
|
+
obj['bssid'] = _ApiClient["default"].convertToType(data['bssid'], 'String');
|
|
114
114
|
}
|
|
115
|
-
if (data.hasOwnProperty(
|
|
116
|
-
obj[
|
|
115
|
+
if (data.hasOwnProperty('ssid')) {
|
|
116
|
+
obj['ssid'] = _ApiClient["default"].convertToType(data['ssid'], 'String');
|
|
117
117
|
}
|
|
118
|
-
if (data.hasOwnProperty(
|
|
119
|
-
obj[
|
|
118
|
+
if (data.hasOwnProperty('iccid')) {
|
|
119
|
+
obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
|
|
120
120
|
}
|
|
121
|
-
if (data.hasOwnProperty(
|
|
122
|
-
obj[
|
|
121
|
+
if (data.hasOwnProperty('apn')) {
|
|
122
|
+
obj['apn'] = _ApiClient["default"].convertToType(data['apn'], 'String');
|
|
123
123
|
}
|
|
124
|
-
if (data.hasOwnProperty(
|
|
125
|
-
obj[
|
|
124
|
+
if (data.hasOwnProperty('tower')) {
|
|
125
|
+
obj['tower'] = _TowerLocation["default"].constructFromObject(data['tower']);
|
|
126
126
|
}
|
|
127
|
-
if (data.hasOwnProperty(
|
|
128
|
-
obj[
|
|
127
|
+
if (data.hasOwnProperty('tri')) {
|
|
128
|
+
obj['tri'] = _TowerLocation["default"].constructFromObject(data['tri']);
|
|
129
129
|
}
|
|
130
|
-
if (data.hasOwnProperty(
|
|
131
|
-
obj[
|
|
130
|
+
if (data.hasOwnProperty('when')) {
|
|
131
|
+
obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Number');
|
|
132
132
|
}
|
|
133
|
-
if (data.hasOwnProperty(
|
|
134
|
-
obj[
|
|
133
|
+
if (data.hasOwnProperty('where_when')) {
|
|
134
|
+
obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
|
|
135
135
|
}
|
|
136
|
-
if (data.hasOwnProperty(
|
|
137
|
-
obj[
|
|
136
|
+
if (data.hasOwnProperty('where')) {
|
|
137
|
+
obj['where'] = _ApiClient["default"].convertToType(data['where'], 'String');
|
|
138
138
|
}
|
|
139
|
-
if (data.hasOwnProperty(
|
|
140
|
-
obj[
|
|
139
|
+
if (data.hasOwnProperty('where_lat')) {
|
|
140
|
+
obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
|
|
141
141
|
}
|
|
142
|
-
if (data.hasOwnProperty(
|
|
143
|
-
obj[
|
|
142
|
+
if (data.hasOwnProperty('where_lon')) {
|
|
143
|
+
obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
|
|
144
144
|
}
|
|
145
|
-
if (data.hasOwnProperty(
|
|
146
|
-
obj[
|
|
145
|
+
if (data.hasOwnProperty('where_location')) {
|
|
146
|
+
obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
|
|
147
147
|
}
|
|
148
|
-
if (data.hasOwnProperty(
|
|
149
|
-
obj[
|
|
148
|
+
if (data.hasOwnProperty('where_country')) {
|
|
149
|
+
obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
|
|
150
150
|
}
|
|
151
|
-
if (data.hasOwnProperty(
|
|
152
|
-
obj[
|
|
151
|
+
if (data.hasOwnProperty('where_timezone')) {
|
|
152
|
+
obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
|
|
153
153
|
}
|
|
154
|
-
if (data.hasOwnProperty(
|
|
155
|
-
obj[
|
|
154
|
+
if (data.hasOwnProperty('usage_actual')) {
|
|
155
|
+
obj['usage_actual'] = _ApiClient["default"].convertToType(data['usage_actual'], 'Boolean');
|
|
156
156
|
}
|
|
157
|
-
if (data.hasOwnProperty(
|
|
158
|
-
obj[
|
|
157
|
+
if (data.hasOwnProperty('voltage')) {
|
|
158
|
+
obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
|
|
159
159
|
}
|
|
160
|
-
if (data.hasOwnProperty(
|
|
161
|
-
obj[
|
|
160
|
+
if (data.hasOwnProperty('temp')) {
|
|
161
|
+
obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
|
|
162
162
|
}
|
|
163
|
-
if (data.hasOwnProperty(
|
|
164
|
-
obj[
|
|
163
|
+
if (data.hasOwnProperty('continuous')) {
|
|
164
|
+
obj['continuous'] = _ApiClient["default"].convertToType(data['continuous'], 'Boolean');
|
|
165
165
|
}
|
|
166
|
-
if (data.hasOwnProperty(
|
|
167
|
-
obj[
|
|
166
|
+
if (data.hasOwnProperty('tls')) {
|
|
167
|
+
obj['tls'] = _ApiClient["default"].convertToType(data['tls'], 'Boolean');
|
|
168
168
|
}
|
|
169
|
-
if (data.hasOwnProperty(
|
|
170
|
-
obj[
|
|
169
|
+
if (data.hasOwnProperty('work')) {
|
|
170
|
+
obj['work'] = _ApiClient["default"].convertToType(data['work'], 'Number');
|
|
171
171
|
}
|
|
172
|
-
if (data.hasOwnProperty(
|
|
173
|
-
obj[
|
|
172
|
+
if (data.hasOwnProperty('events')) {
|
|
173
|
+
obj['events'] = _ApiClient["default"].convertToType(data['events'], 'Number');
|
|
174
174
|
}
|
|
175
|
-
if (data.hasOwnProperty(
|
|
176
|
-
obj[
|
|
175
|
+
if (data.hasOwnProperty('moved')) {
|
|
176
|
+
obj['moved'] = _ApiClient["default"].convertToType(data['moved'], 'Number');
|
|
177
177
|
}
|
|
178
|
-
if (data.hasOwnProperty(
|
|
179
|
-
obj[
|
|
178
|
+
if (data.hasOwnProperty('orientation')) {
|
|
179
|
+
obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], 'String');
|
|
180
180
|
}
|
|
181
|
-
if (data.hasOwnProperty(
|
|
182
|
-
obj[
|
|
181
|
+
if (data.hasOwnProperty('hp_secs_total')) {
|
|
182
|
+
obj['hp_secs_total'] = _ApiClient["default"].convertToType(data['hp_secs_total'], 'Number');
|
|
183
183
|
}
|
|
184
|
-
if (data.hasOwnProperty(
|
|
185
|
-
obj[
|
|
184
|
+
if (data.hasOwnProperty('hp_secs_data')) {
|
|
185
|
+
obj['hp_secs_data'] = _ApiClient["default"].convertToType(data['hp_secs_data'], 'Number');
|
|
186
186
|
}
|
|
187
|
-
if (data.hasOwnProperty(
|
|
188
|
-
obj[
|
|
187
|
+
if (data.hasOwnProperty('hp_secs_gps')) {
|
|
188
|
+
obj['hp_secs_gps'] = _ApiClient["default"].convertToType(data['hp_secs_gps'], 'Number');
|
|
189
189
|
}
|
|
190
|
-
if (data.hasOwnProperty(
|
|
191
|
-
obj[
|
|
190
|
+
if (data.hasOwnProperty('hp_cycles_total')) {
|
|
191
|
+
obj['hp_cycles_total'] = _ApiClient["default"].convertToType(data['hp_cycles_total'], 'Number');
|
|
192
192
|
}
|
|
193
|
-
if (data.hasOwnProperty(
|
|
194
|
-
obj[
|
|
193
|
+
if (data.hasOwnProperty('hp_cycles_data')) {
|
|
194
|
+
obj['hp_cycles_data'] = _ApiClient["default"].convertToType(data['hp_cycles_data'], 'Number');
|
|
195
195
|
}
|
|
196
|
-
if (data.hasOwnProperty(
|
|
197
|
-
obj[
|
|
196
|
+
if (data.hasOwnProperty('hp_cycles_gps')) {
|
|
197
|
+
obj['hp_cycles_gps'] = _ApiClient["default"].convertToType(data['hp_cycles_gps'], 'Number');
|
|
198
198
|
}
|
|
199
|
-
if (data.hasOwnProperty(
|
|
200
|
-
obj[
|
|
199
|
+
if (data.hasOwnProperty('period')) {
|
|
200
|
+
obj['period'] = _DeviceUsage["default"].constructFromObject(data['period']);
|
|
201
201
|
}
|
|
202
202
|
} else if (data === null) {
|
|
203
203
|
return null;
|
|
@@ -214,91 +214,91 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
214
214
|
key: "validateJSON",
|
|
215
215
|
value: function validateJSON(data) {
|
|
216
216
|
// ensure the json data is a string
|
|
217
|
-
if (data[
|
|
218
|
-
throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data[
|
|
217
|
+
if (data['session'] && !(typeof data['session'] === 'string' || data['session'] instanceof String)) {
|
|
218
|
+
throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data['session']);
|
|
219
219
|
}
|
|
220
220
|
// ensure the json data is a string
|
|
221
|
-
if (data[
|
|
222
|
-
throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data[
|
|
221
|
+
if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
|
|
222
|
+
throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
|
|
223
223
|
}
|
|
224
224
|
// ensure the json data is a string
|
|
225
|
-
if (data[
|
|
226
|
-
throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data[
|
|
225
|
+
if (data['sn'] && !(typeof data['sn'] === 'string' || data['sn'] instanceof String)) {
|
|
226
|
+
throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data['sn']);
|
|
227
227
|
}
|
|
228
228
|
// ensure the json data is a string
|
|
229
|
-
if (data[
|
|
230
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
229
|
+
if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
|
|
230
|
+
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
|
|
231
231
|
}
|
|
232
232
|
// ensure the json data is an array
|
|
233
|
-
if (!Array.isArray(data[
|
|
234
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
233
|
+
if (!Array.isArray(data['fleets'])) {
|
|
234
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
235
235
|
}
|
|
236
236
|
// ensure the json data is a string
|
|
237
|
-
if (data[
|
|
238
|
-
throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data[
|
|
237
|
+
if (data['cell'] && !(typeof data['cell'] === 'string' || data['cell'] instanceof String)) {
|
|
238
|
+
throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data['cell']);
|
|
239
239
|
}
|
|
240
240
|
// ensure the json data is a string
|
|
241
|
-
if (data[
|
|
242
|
-
throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data[
|
|
241
|
+
if (data['rat'] && !(typeof data['rat'] === 'string' || data['rat'] instanceof String)) {
|
|
242
|
+
throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data['rat']);
|
|
243
243
|
}
|
|
244
244
|
// ensure the json data is a string
|
|
245
|
-
if (data[
|
|
246
|
-
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data[
|
|
245
|
+
if (data['bearer'] && !(typeof data['bearer'] === 'string' || data['bearer'] instanceof String)) {
|
|
246
|
+
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data['bearer']);
|
|
247
247
|
}
|
|
248
248
|
// ensure the json data is a string
|
|
249
|
-
if (data[
|
|
250
|
-
throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data[
|
|
249
|
+
if (data['ip'] && !(typeof data['ip'] === 'string' || data['ip'] instanceof String)) {
|
|
250
|
+
throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data['ip']);
|
|
251
251
|
}
|
|
252
252
|
// ensure the json data is a string
|
|
253
|
-
if (data[
|
|
254
|
-
throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data[
|
|
253
|
+
if (data['bssid'] && !(typeof data['bssid'] === 'string' || data['bssid'] instanceof String)) {
|
|
254
|
+
throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data['bssid']);
|
|
255
255
|
}
|
|
256
256
|
// ensure the json data is a string
|
|
257
|
-
if (data[
|
|
258
|
-
throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data[
|
|
257
|
+
if (data['ssid'] && !(typeof data['ssid'] === 'string' || data['ssid'] instanceof String)) {
|
|
258
|
+
throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data['ssid']);
|
|
259
259
|
}
|
|
260
260
|
// ensure the json data is a string
|
|
261
|
-
if (data[
|
|
262
|
-
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data[
|
|
261
|
+
if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
|
|
262
|
+
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data['iccid']);
|
|
263
263
|
}
|
|
264
264
|
// ensure the json data is a string
|
|
265
|
-
if (data[
|
|
266
|
-
throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data[
|
|
265
|
+
if (data['apn'] && !(typeof data['apn'] === 'string' || data['apn'] instanceof String)) {
|
|
266
|
+
throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data['apn']);
|
|
267
267
|
}
|
|
268
268
|
// validate the optional field `tower`
|
|
269
|
-
if (data[
|
|
269
|
+
if (data['tower']) {
|
|
270
270
|
// data not null
|
|
271
|
-
_TowerLocation["default"].validateJSON(data[
|
|
271
|
+
_TowerLocation["default"].validateJSON(data['tower']);
|
|
272
272
|
}
|
|
273
273
|
// validate the optional field `tri`
|
|
274
|
-
if (data[
|
|
274
|
+
if (data['tri']) {
|
|
275
275
|
// data not null
|
|
276
|
-
_TowerLocation["default"].validateJSON(data[
|
|
276
|
+
_TowerLocation["default"].validateJSON(data['tri']);
|
|
277
277
|
}
|
|
278
278
|
// ensure the json data is a string
|
|
279
|
-
if (data[
|
|
280
|
-
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data[
|
|
279
|
+
if (data['where'] && !(typeof data['where'] === 'string' || data['where'] instanceof String)) {
|
|
280
|
+
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data['where']);
|
|
281
281
|
}
|
|
282
282
|
// ensure the json data is a string
|
|
283
|
-
if (data[
|
|
284
|
-
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data[
|
|
283
|
+
if (data['where_location'] && !(typeof data['where_location'] === 'string' || data['where_location'] instanceof String)) {
|
|
284
|
+
throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data['where_location']);
|
|
285
285
|
}
|
|
286
286
|
// ensure the json data is a string
|
|
287
|
-
if (data[
|
|
288
|
-
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data[
|
|
287
|
+
if (data['where_country'] && !(typeof data['where_country'] === 'string' || data['where_country'] instanceof String)) {
|
|
288
|
+
throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data['where_country']);
|
|
289
289
|
}
|
|
290
290
|
// ensure the json data is a string
|
|
291
|
-
if (data[
|
|
292
|
-
throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data[
|
|
291
|
+
if (data['where_timezone'] && !(typeof data['where_timezone'] === 'string' || data['where_timezone'] instanceof String)) {
|
|
292
|
+
throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data['where_timezone']);
|
|
293
293
|
}
|
|
294
294
|
// ensure the json data is a string
|
|
295
|
-
if (data[
|
|
296
|
-
throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data[
|
|
295
|
+
if (data['orientation'] && !(typeof data['orientation'] === 'string' || data['orientation'] instanceof String)) {
|
|
296
|
+
throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data['orientation']);
|
|
297
297
|
}
|
|
298
298
|
// validate the optional field `period`
|
|
299
|
-
if (data[
|
|
299
|
+
if (data['period']) {
|
|
300
300
|
// data not null
|
|
301
|
-
_DeviceUsage["default"].validateJSON(data[
|
|
301
|
+
_DeviceUsage["default"].validateJSON(data['period']);
|
|
302
302
|
}
|
|
303
303
|
return true;
|
|
304
304
|
}
|
|
@@ -308,239 +308,239 @@ var DeviceSession = /*#__PURE__*/function () {
|
|
|
308
308
|
* Session UID
|
|
309
309
|
* @member {String} session
|
|
310
310
|
*/
|
|
311
|
-
DeviceSession.prototype[
|
|
311
|
+
DeviceSession.prototype['session'] = undefined;
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
314
|
* Device UID
|
|
315
315
|
* @member {String} device
|
|
316
316
|
*/
|
|
317
|
-
DeviceSession.prototype[
|
|
317
|
+
DeviceSession.prototype['device'] = undefined;
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
320
|
* Device Serial Number
|
|
321
321
|
* @member {String} sn
|
|
322
322
|
*/
|
|
323
|
-
DeviceSession.prototype[
|
|
323
|
+
DeviceSession.prototype['sn'] = undefined;
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
326
|
* Product UID
|
|
327
327
|
* @member {String} product
|
|
328
328
|
*/
|
|
329
|
-
DeviceSession.prototype[
|
|
329
|
+
DeviceSession.prototype['product'] = undefined;
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
332
|
* Array of Fleet UIDs
|
|
333
333
|
* @member {Array.<String>} fleets
|
|
334
334
|
*/
|
|
335
|
-
DeviceSession.prototype[
|
|
335
|
+
DeviceSession.prototype['fleets'] = undefined;
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
338
|
* Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
|
|
339
339
|
* @member {String} cell
|
|
340
340
|
*/
|
|
341
|
-
DeviceSession.prototype[
|
|
341
|
+
DeviceSession.prototype['cell'] = undefined;
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
344
|
* @member {Blob} scan
|
|
345
345
|
*/
|
|
346
|
-
DeviceSession.prototype[
|
|
346
|
+
DeviceSession.prototype['scan'] = undefined;
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* @member {Object} triangulate
|
|
350
350
|
*/
|
|
351
|
-
DeviceSession.prototype[
|
|
351
|
+
DeviceSession.prototype['triangulate'] = undefined;
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* @member {Number} rssi
|
|
355
355
|
*/
|
|
356
|
-
DeviceSession.prototype[
|
|
356
|
+
DeviceSession.prototype['rssi'] = undefined;
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
359
|
* @member {Number} sinr
|
|
360
360
|
*/
|
|
361
|
-
DeviceSession.prototype[
|
|
361
|
+
DeviceSession.prototype['sinr'] = undefined;
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
364
|
* @member {Number} rsrp
|
|
365
365
|
*/
|
|
366
|
-
DeviceSession.prototype[
|
|
366
|
+
DeviceSession.prototype['rsrp'] = undefined;
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
369
|
* @member {Number} rsrq
|
|
370
370
|
*/
|
|
371
|
-
DeviceSession.prototype[
|
|
371
|
+
DeviceSession.prototype['rsrq'] = undefined;
|
|
372
372
|
|
|
373
373
|
/**
|
|
374
374
|
* @member {Number} bars
|
|
375
375
|
*/
|
|
376
|
-
DeviceSession.prototype[
|
|
376
|
+
DeviceSession.prototype['bars'] = undefined;
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
379
|
* @member {String} rat
|
|
380
380
|
*/
|
|
381
|
-
DeviceSession.prototype[
|
|
381
|
+
DeviceSession.prototype['rat'] = undefined;
|
|
382
382
|
|
|
383
383
|
/**
|
|
384
384
|
* @member {String} bearer
|
|
385
385
|
*/
|
|
386
|
-
DeviceSession.prototype[
|
|
386
|
+
DeviceSession.prototype['bearer'] = undefined;
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* @member {String} ip
|
|
390
390
|
*/
|
|
391
|
-
DeviceSession.prototype[
|
|
391
|
+
DeviceSession.prototype['ip'] = undefined;
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
394
|
* @member {String} bssid
|
|
395
395
|
*/
|
|
396
|
-
DeviceSession.prototype[
|
|
396
|
+
DeviceSession.prototype['bssid'] = undefined;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* @member {String} ssid
|
|
400
400
|
*/
|
|
401
|
-
DeviceSession.prototype[
|
|
401
|
+
DeviceSession.prototype['ssid'] = undefined;
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
404
|
* @member {String} iccid
|
|
405
405
|
*/
|
|
406
|
-
DeviceSession.prototype[
|
|
406
|
+
DeviceSession.prototype['iccid'] = undefined;
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* @member {String} apn
|
|
410
410
|
*/
|
|
411
|
-
DeviceSession.prototype[
|
|
411
|
+
DeviceSession.prototype['apn'] = undefined;
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
414
|
* @member {module:model/TowerLocation} tower
|
|
415
415
|
*/
|
|
416
|
-
DeviceSession.prototype[
|
|
416
|
+
DeviceSession.prototype['tower'] = undefined;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
419
|
* @member {module:model/TowerLocation} tri
|
|
420
420
|
*/
|
|
421
|
-
DeviceSession.prototype[
|
|
421
|
+
DeviceSession.prototype['tri'] = undefined;
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
424
|
* Last known capture time of a note routed through this session
|
|
425
425
|
* @member {Number} when
|
|
426
426
|
*/
|
|
427
|
-
DeviceSession.prototype[
|
|
427
|
+
DeviceSession.prototype['when'] = undefined;
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
430
|
* @member {Number} where_when
|
|
431
431
|
*/
|
|
432
|
-
DeviceSession.prototype[
|
|
432
|
+
DeviceSession.prototype['where_when'] = undefined;
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* Where OLC
|
|
436
436
|
* @member {String} where
|
|
437
437
|
*/
|
|
438
|
-
DeviceSession.prototype[
|
|
438
|
+
DeviceSession.prototype['where'] = undefined;
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
441
|
* @member {Number} where_lat
|
|
442
442
|
*/
|
|
443
|
-
DeviceSession.prototype[
|
|
443
|
+
DeviceSession.prototype['where_lat'] = undefined;
|
|
444
444
|
|
|
445
445
|
/**
|
|
446
446
|
* @member {Number} where_lon
|
|
447
447
|
*/
|
|
448
|
-
DeviceSession.prototype[
|
|
448
|
+
DeviceSession.prototype['where_lon'] = undefined;
|
|
449
449
|
|
|
450
450
|
/**
|
|
451
451
|
* @member {String} where_location
|
|
452
452
|
*/
|
|
453
|
-
DeviceSession.prototype[
|
|
453
|
+
DeviceSession.prototype['where_location'] = undefined;
|
|
454
454
|
|
|
455
455
|
/**
|
|
456
456
|
* @member {String} where_country
|
|
457
457
|
*/
|
|
458
|
-
DeviceSession.prototype[
|
|
458
|
+
DeviceSession.prototype['where_country'] = undefined;
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
461
|
* @member {String} where_timezone
|
|
462
462
|
*/
|
|
463
|
-
DeviceSession.prototype[
|
|
463
|
+
DeviceSession.prototype['where_timezone'] = undefined;
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
466
|
* @member {Boolean} usage_actual
|
|
467
467
|
*/
|
|
468
|
-
DeviceSession.prototype[
|
|
468
|
+
DeviceSession.prototype['usage_actual'] = undefined;
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
471
|
* @member {Number} voltage
|
|
472
472
|
*/
|
|
473
|
-
DeviceSession.prototype[
|
|
473
|
+
DeviceSession.prototype['voltage'] = undefined;
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* @member {Number} temp
|
|
477
477
|
*/
|
|
478
|
-
DeviceSession.prototype[
|
|
478
|
+
DeviceSession.prototype['temp'] = undefined;
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* @member {Boolean} continuous
|
|
482
482
|
*/
|
|
483
|
-
DeviceSession.prototype[
|
|
483
|
+
DeviceSession.prototype['continuous'] = undefined;
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* @member {Boolean} tls
|
|
487
487
|
*/
|
|
488
|
-
DeviceSession.prototype[
|
|
488
|
+
DeviceSession.prototype['tls'] = undefined;
|
|
489
489
|
|
|
490
490
|
/**
|
|
491
491
|
* Last time work was done for this session
|
|
492
492
|
* @member {Number} work
|
|
493
493
|
*/
|
|
494
|
-
DeviceSession.prototype[
|
|
494
|
+
DeviceSession.prototype['work'] = undefined;
|
|
495
495
|
|
|
496
496
|
/**
|
|
497
497
|
* Number of events routed
|
|
498
498
|
* @member {Number} events
|
|
499
499
|
*/
|
|
500
|
-
DeviceSession.prototype[
|
|
500
|
+
DeviceSession.prototype['events'] = undefined;
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
503
|
* @member {Number} moved
|
|
504
504
|
*/
|
|
505
|
-
DeviceSession.prototype[
|
|
505
|
+
DeviceSession.prototype['moved'] = undefined;
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
508
|
* @member {String} orientation
|
|
509
509
|
*/
|
|
510
|
-
DeviceSession.prototype[
|
|
510
|
+
DeviceSession.prototype['orientation'] = undefined;
|
|
511
511
|
|
|
512
512
|
/**
|
|
513
513
|
* @member {Number} hp_secs_total
|
|
514
514
|
*/
|
|
515
|
-
DeviceSession.prototype[
|
|
515
|
+
DeviceSession.prototype['hp_secs_total'] = undefined;
|
|
516
516
|
|
|
517
517
|
/**
|
|
518
518
|
* @member {Number} hp_secs_data
|
|
519
519
|
*/
|
|
520
|
-
DeviceSession.prototype[
|
|
520
|
+
DeviceSession.prototype['hp_secs_data'] = undefined;
|
|
521
521
|
|
|
522
522
|
/**
|
|
523
523
|
* @member {Number} hp_secs_gps
|
|
524
524
|
*/
|
|
525
|
-
DeviceSession.prototype[
|
|
525
|
+
DeviceSession.prototype['hp_secs_gps'] = undefined;
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* @member {Number} hp_cycles_total
|
|
529
529
|
*/
|
|
530
|
-
DeviceSession.prototype[
|
|
530
|
+
DeviceSession.prototype['hp_cycles_total'] = undefined;
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* @member {Number} hp_cycles_data
|
|
534
534
|
*/
|
|
535
|
-
DeviceSession.prototype[
|
|
535
|
+
DeviceSession.prototype['hp_cycles_data'] = undefined;
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
538
|
* @member {Number} hp_cycles_gps
|
|
539
539
|
*/
|
|
540
|
-
DeviceSession.prototype[
|
|
540
|
+
DeviceSession.prototype['hp_cycles_gps'] = undefined;
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
543
|
* @member {module:model/DeviceUsage} period
|
|
544
544
|
*/
|
|
545
|
-
DeviceSession.prototype[
|
|
545
|
+
DeviceSession.prototype['period'] = undefined;
|
|
546
546
|
var _default = exports["default"] = DeviceSession;
|