@blues-inc/notehub-js 3.0.0-beta.21 → 3.0.0-beta.22
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 +12 -11
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +197 -253
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +97 -97
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +78 -6
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +2 -7
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +9 -1
- package/dist/model/CreateMonitor.js +10 -17
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +14 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +9 -1
- package/dist/model/FleetConnectivityAssurance.js +4 -27
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +132 -0
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +3 -8
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +90 -10
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +29 -36
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +9 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +17 -6
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +15 -5
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/ListPendingNotefiles200Response.js +0 -115
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The CreateMonitor model module.
|
|
33
33
|
* @module model/CreateMonitor
|
|
34
|
-
* @version 3.0.0-beta.
|
|
34
|
+
* @version 3.0.0-beta.22
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -41,13 +41,12 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
41
41
|
* @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>}
|
|
42
42
|
* @param description {String}
|
|
43
43
|
* @param name {String}
|
|
44
|
-
* @param
|
|
45
|
-
* @param threshold {Number} The type of condition to apply to the value selected by the source_selector
|
|
44
|
+
* @param notefileFilter {Array.<String>}
|
|
46
45
|
*/
|
|
47
|
-
function CreateMonitor(alertRoutes, description, name,
|
|
46
|
+
function CreateMonitor(alertRoutes, description, name, notefileFilter) {
|
|
48
47
|
_classCallCheck(this, CreateMonitor);
|
|
49
48
|
_Monitor["default"].initialize(this);
|
|
50
|
-
CreateMonitor.initialize(this, alertRoutes, description, name,
|
|
49
|
+
CreateMonitor.initialize(this, alertRoutes, description, name, notefileFilter);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -57,12 +56,11 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
57
56
|
*/
|
|
58
57
|
return _createClass(CreateMonitor, null, [{
|
|
59
58
|
key: "initialize",
|
|
60
|
-
value: function initialize(obj, alertRoutes, description, name,
|
|
59
|
+
value: function initialize(obj, alertRoutes, description, name, notefileFilter) {
|
|
61
60
|
obj['alert_routes'] = alertRoutes;
|
|
62
61
|
obj['description'] = description;
|
|
63
62
|
obj['name'] = name;
|
|
64
|
-
obj['
|
|
65
|
-
obj['threshold'] = threshold;
|
|
63
|
+
obj['notefile_filter'] = notefileFilter;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
/**
|
|
@@ -234,7 +232,7 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
234
232
|
}
|
|
235
233
|
}]);
|
|
236
234
|
}();
|
|
237
|
-
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "
|
|
235
|
+
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "notefile_filter"];
|
|
238
236
|
|
|
239
237
|
/**
|
|
240
238
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
@@ -322,7 +320,7 @@ CreateMonitor.prototype['silenced'] = undefined;
|
|
|
322
320
|
CreateMonitor.prototype['source_selector'] = undefined;
|
|
323
321
|
|
|
324
322
|
/**
|
|
325
|
-
* The type of source to monitor.
|
|
323
|
+
* The type of source to monitor. Currently only \"event\" is supported.
|
|
326
324
|
* @member {module:model/CreateMonitor.SourceTypeEnum} source_type
|
|
327
325
|
*/
|
|
328
326
|
CreateMonitor.prototype['source_type'] = undefined;
|
|
@@ -410,7 +408,7 @@ _Monitor["default"].prototype['silenced'] = undefined;
|
|
|
410
408
|
*/
|
|
411
409
|
_Monitor["default"].prototype['source_selector'] = undefined;
|
|
412
410
|
/**
|
|
413
|
-
* The type of source to monitor.
|
|
411
|
+
* The type of source to monitor. Currently only \"event\" is supported.
|
|
414
412
|
* @member {module:model/Monitor.SourceTypeEnum} source_type
|
|
415
413
|
*/
|
|
416
414
|
_Monitor["default"].prototype['source_type'] = undefined;
|
|
@@ -505,11 +503,6 @@ CreateMonitor['SourceTypeEnum'] = {
|
|
|
505
503
|
* value: "event"
|
|
506
504
|
* @const
|
|
507
505
|
*/
|
|
508
|
-
"event": "event"
|
|
509
|
-
/**
|
|
510
|
-
* value: "heartbeat"
|
|
511
|
-
* @const
|
|
512
|
-
*/
|
|
513
|
-
"heartbeat": "heartbeat"
|
|
506
|
+
"event": "event"
|
|
514
507
|
};
|
|
515
508
|
var _default = exports["default"] = CreateMonitor;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProductRequest model module.
|
|
31
31
|
* @module model/CreateProductRequest
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CurrentFirmware model module.
|
|
29
29
|
* @module model/CurrentFirmware
|
|
30
|
-
* @version 3.0.0-beta.
|
|
30
|
+
* @version 3.0.0-beta.22
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DFUState model module.
|
|
28
28
|
* @module model/DFUState
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DFUState = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataField.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataField model module.
|
|
28
28
|
* @module model/DataField
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DataField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataSetField model module.
|
|
28
28
|
* @module model/DataSetField
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DataSetField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataUsage.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The DataUsage model module.
|
|
31
31
|
* @module model/DataUsage
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var DataUsage = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DatacakeRoute model module.
|
|
30
30
|
* @module model/DatacakeRoute
|
|
31
|
-
* @version 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.22
|
|
32
32
|
*/
|
|
33
33
|
var DatacakeRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The DeleteDeviceFromFleetsRequest model module.
|
|
31
31
|
* @module model/DeleteDeviceFromFleetsRequest
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var DeleteDeviceFromFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeleteNotefilesRequest model module.
|
|
28
28
|
* @module model/DeleteNotefilesRequest
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DeleteNotefilesRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Device.js
CHANGED
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
/**
|
|
35
35
|
* The Device model module.
|
|
36
36
|
* @module model/Device
|
|
37
|
-
* @version 3.0.0-beta.
|
|
37
|
+
* @version 3.0.0-beta.22
|
|
38
38
|
*/
|
|
39
39
|
var Device = /*#__PURE__*/function () {
|
|
40
40
|
/**
|
|
@@ -80,6 +80,9 @@ var Device = /*#__PURE__*/function () {
|
|
|
80
80
|
value: function constructFromObject(data, obj) {
|
|
81
81
|
if (data) {
|
|
82
82
|
obj = obj || new Device();
|
|
83
|
+
if (data.hasOwnProperty('best_location')) {
|
|
84
|
+
obj['best_location'] = _Location["default"].constructFromObject(data['best_location']);
|
|
85
|
+
}
|
|
83
86
|
if (data.hasOwnProperty('cellular_usage')) {
|
|
84
87
|
obj['cellular_usage'] = _ApiClient["default"].convertToType(data['cellular_usage'], [_SimUsage["default"]]);
|
|
85
88
|
}
|
|
@@ -161,11 +164,16 @@ var Device = /*#__PURE__*/function () {
|
|
|
161
164
|
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
162
165
|
}
|
|
163
166
|
}
|
|
167
|
+
// validate the optional field `best_location`
|
|
164
168
|
} catch (err) {
|
|
165
169
|
_iterator.e(err);
|
|
166
170
|
} finally {
|
|
167
171
|
_iterator.f();
|
|
168
172
|
}
|
|
173
|
+
if (data['best_location']) {
|
|
174
|
+
// data not null
|
|
175
|
+
_Location["default"].validateJSON(data['best_location']);
|
|
176
|
+
}
|
|
169
177
|
if (data['cellular_usage']) {
|
|
170
178
|
// data not null
|
|
171
179
|
// ensure the json data is an array
|
|
@@ -251,6 +259,11 @@ var Device = /*#__PURE__*/function () {
|
|
|
251
259
|
}();
|
|
252
260
|
Device.RequiredProperties = ["fleet_uids", "product_uid", "provisioned", "temperature", "uid", "voltage"];
|
|
253
261
|
|
|
262
|
+
/**
|
|
263
|
+
* @member {module:model/Location} best_location
|
|
264
|
+
*/
|
|
265
|
+
Device.prototype['best_location'] = undefined;
|
|
266
|
+
|
|
254
267
|
/**
|
|
255
268
|
* @member {Array.<module:model/SimUsage>} cellular_usage
|
|
256
269
|
*/
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The DeviceDfuHistory model module.
|
|
33
33
|
* @module model/DeviceDfuHistory
|
|
34
|
-
* @version 3.0.0-beta.
|
|
34
|
+
* @version 3.0.0-beta.22
|
|
35
35
|
*/
|
|
36
36
|
var DeviceDfuHistory = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceDfuHistoryCurrent model module.
|
|
28
28
|
* @module model/DeviceDfuHistoryCurrent
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuHistoryPage model module.
|
|
32
32
|
* @module model/DeviceDfuHistoryPage
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuHistoryPage = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuStateMachine model module.
|
|
32
32
|
* @module model/DeviceDfuStateMachine
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuStateMachine = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceDfuStateMachineNode model module.
|
|
28
28
|
* @module model/DeviceDfuStateMachineNode
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DeviceDfuStateMachineNode = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DeviceDfuStatus model module.
|
|
30
30
|
* @module model/DeviceDfuStatus
|
|
31
|
-
* @version 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.22
|
|
32
32
|
*/
|
|
33
33
|
var DeviceDfuStatus = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The DeviceDfuStatusPage model module.
|
|
32
32
|
* @module model/DeviceDfuStatusPage
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var DeviceDfuStatusPage = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.22
|
|
32
32
|
*/
|
|
33
33
|
var DeviceSession = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceTowerInfo model module.
|
|
28
28
|
* @module model/DeviceTowerInfo
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeviceUsage model module.
|
|
28
28
|
* @module model/DeviceUsage
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DeviceUsage = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DfuActionRequest model module.
|
|
28
28
|
* @module model/DfuActionRequest
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var DfuActionRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The EmailNotification model module.
|
|
28
28
|
* @module model/EmailNotification
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var EmailNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The EnvTreeJsonNode model module.
|
|
32
32
|
* @module model/EnvTreeJsonNode
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/EnvVar.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The EnvironmentVariables model module.
|
|
31
31
|
* @module model/EnvironmentVariables
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Error.js
CHANGED
package/dist/model/Event.js
CHANGED
package/dist/model/Filter.js
CHANGED
package/dist/model/Firmware.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Firmware model module.
|
|
28
28
|
* @module model/Firmware
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var Firmware = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The FirmwareInfo model module.
|
|
28
28
|
* @module model/FirmwareInfo
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Fleet.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The Fleet model module.
|
|
32
32
|
* @module model/Fleet
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var Fleet = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -87,6 +87,9 @@ var Fleet = /*#__PURE__*/function () {
|
|
|
87
87
|
if (data.hasOwnProperty('smart_rule')) {
|
|
88
88
|
obj['smart_rule'] = _ApiClient["default"].convertToType(data['smart_rule'], 'String');
|
|
89
89
|
}
|
|
90
|
+
if (data.hasOwnProperty('smart_rule_enabled')) {
|
|
91
|
+
obj['smart_rule_enabled'] = _ApiClient["default"].convertToType(data['smart_rule_enabled'], 'Boolean');
|
|
92
|
+
}
|
|
90
93
|
if (data.hasOwnProperty('uid')) {
|
|
91
94
|
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
|
|
92
95
|
}
|
|
@@ -174,6 +177,11 @@ Fleet.prototype['label'] = undefined;
|
|
|
174
177
|
*/
|
|
175
178
|
Fleet.prototype['smart_rule'] = undefined;
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* @member {Boolean} smart_rule_enabled
|
|
182
|
+
*/
|
|
183
|
+
Fleet.prototype['smart_rule_enabled'] = undefined;
|
|
184
|
+
|
|
177
185
|
/**
|
|
178
186
|
* Fleet UID
|
|
179
187
|
* @member {String} uid
|
|
@@ -7,9 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
10
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
11
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
12
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -29,17 +26,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
26
|
/**
|
|
30
27
|
* The FleetConnectivityAssurance model module.
|
|
31
28
|
* @module model/FleetConnectivityAssurance
|
|
32
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
33
30
|
*/
|
|
34
31
|
var FleetConnectivityAssurance = /*#__PURE__*/function () {
|
|
35
32
|
/**
|
|
36
33
|
* Constructs a new <code>FleetConnectivityAssurance</code>.
|
|
37
34
|
* @alias module:model/FleetConnectivityAssurance
|
|
38
|
-
* @param enabled {Boolean} Whether Connectivity Assurance is enabled for this fleet
|
|
39
35
|
*/
|
|
40
|
-
function FleetConnectivityAssurance(
|
|
36
|
+
function FleetConnectivityAssurance() {
|
|
41
37
|
_classCallCheck(this, FleetConnectivityAssurance);
|
|
42
|
-
FleetConnectivityAssurance.initialize(this
|
|
38
|
+
FleetConnectivityAssurance.initialize(this);
|
|
43
39
|
}
|
|
44
40
|
|
|
45
41
|
/**
|
|
@@ -49,9 +45,7 @@ var FleetConnectivityAssurance = /*#__PURE__*/function () {
|
|
|
49
45
|
*/
|
|
50
46
|
return _createClass(FleetConnectivityAssurance, null, [{
|
|
51
47
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj
|
|
53
|
-
obj['enabled'] = enabled;
|
|
54
|
-
}
|
|
48
|
+
value: function initialize(obj) {}
|
|
55
49
|
|
|
56
50
|
/**
|
|
57
51
|
* Constructs a <code>FleetConnectivityAssurance</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -82,27 +76,10 @@ var FleetConnectivityAssurance = /*#__PURE__*/function () {
|
|
|
82
76
|
}, {
|
|
83
77
|
key: "validateJSON",
|
|
84
78
|
value: function validateJSON(data) {
|
|
85
|
-
// check to make sure all required properties are present in the JSON string
|
|
86
|
-
var _iterator = _createForOfIteratorHelper(FleetConnectivityAssurance.RequiredProperties),
|
|
87
|
-
_step;
|
|
88
|
-
try {
|
|
89
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
90
|
-
var property = _step.value;
|
|
91
|
-
if (!data[property]) {
|
|
92
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
} catch (err) {
|
|
96
|
-
_iterator.e(err);
|
|
97
|
-
} finally {
|
|
98
|
-
_iterator.f();
|
|
99
|
-
}
|
|
100
79
|
return true;
|
|
101
80
|
}
|
|
102
81
|
}]);
|
|
103
82
|
}();
|
|
104
|
-
FleetConnectivityAssurance.RequiredProperties = ["enabled"];
|
|
105
|
-
|
|
106
83
|
/**
|
|
107
84
|
* Whether Connectivity Assurance is enabled for this fleet
|
|
108
85
|
* @member {Boolean} enabled
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetAlerts200Response model module.
|
|
32
32
|
* @module model/GetAlerts200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetAlerts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetBillingAccounts200Response model module.
|
|
32
32
|
* @module model/GetBillingAccounts200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200Response model module.
|
|
32
32
|
* @module model/GetDataUsage200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200ResponseDataInner model module.
|
|
32
32
|
* @module model/GetDataUsage200ResponseDataInner
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200ResponseDataInner = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDbNote200Response model module.
|
|
28
28
|
* @module model/GetDbNote200Response
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.22
|
|
30
30
|
*/
|
|
31
31
|
var GetDbNote200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceEnvironmentVariablesByPin200Response model module.
|
|
31
31
|
* @module model/GetDeviceEnvironmentVariablesByPin200Response
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.22
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceEnvironmentVariablesByPin200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceFleets200Response model module.
|
|
32
32
|
* @module model/GetDeviceFleets200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceFleets200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceHealthLog200Response model module.
|
|
32
32
|
* @module model/GetDeviceHealthLog200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.22
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|