@blues-inc/notehub-js 1.0.23-beta.9 → 1.0.24
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 +190 -187
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -23
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +352 -352
- package/dist/api/EventApi.js +134 -124
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +599 -330
- package/dist/api/RouteApi.js +103 -103
- package/dist/index.js +102 -39
- package/dist/model/Alert.js +75 -77
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +126 -127
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/{OTAUpdateStatus.js → CurrentFirmware.js} +34 -47
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceDfuHistory.js +138 -0
- package/dist/model/DeviceDfuHistoryPage.js +120 -0
- package/dist/model/DeviceDfuStateMachine.js +151 -0
- package/dist/model/DeviceDfuStateMachineNode.js +132 -0
- package/dist/model/DeviceDfuStatus.js +129 -0
- package/dist/model/DeviceDfuStatusCurrent.js +158 -0
- package/dist/model/{OTAStatusList.js → DeviceDfuStatusPage.js} +33 -34
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/DfuActionRequest.js +92 -0
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +15 -16
- package/dist/model/GetBillingAccounts200Response.js +10 -11
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +12 -13
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +10 -11
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +17 -18
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -18
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +17 -18
- package/dist/model/GetProjectEvents200Response.js +21 -22
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -25
- package/dist/model/GetProjectFleets200Response.js +12 -13
- package/dist/model/GetProjectMembers200Response.js +12 -13
- package/dist/model/GetProjectProducts200Response.js +10 -11
- package/dist/model/GetProjects200Response.js +10 -11
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +100 -101
- package/dist/model/MonitorAlertRoutesInner.js +11 -10
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/{Route.js → NotehubRoute.js} +56 -56
- package/dist/model/{RouteSchema.js → NotehubRouteSchema.js} +71 -70
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/UserDfuStateMachineStatus.js +123 -0
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +3 -3
- package/dist/model/FirmwareStatus.js +0 -144
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _DeviceDfuStatus = _interopRequireDefault(require("./DeviceDfuStatus"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
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); }
|
|
11
11
|
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; } } }; }
|
|
@@ -17,9 +17,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
32
|
-
* @module model/
|
|
33
|
-
* @version 1.0.
|
|
31
|
+
* The DeviceDfuStatusPage model module.
|
|
32
|
+
* @module model/DeviceDfuStatusPage
|
|
33
|
+
* @version 1.0.24
|
|
34
34
|
*/
|
|
35
|
-
var
|
|
35
|
+
var DeviceDfuStatusPage = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
|
-
* Constructs a new <code>
|
|
38
|
-
* @alias module:model/
|
|
37
|
+
* Constructs a new <code>DeviceDfuStatusPage</code>.
|
|
38
|
+
* @alias module:model/DeviceDfuStatusPage
|
|
39
39
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
40
|
+
function DeviceDfuStatusPage() {
|
|
41
|
+
_classCallCheck(this, DeviceDfuStatusPage);
|
|
42
|
+
DeviceDfuStatusPage.initialize(this);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -47,27 +47,27 @@ var OTAStatusList = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
return _createClass(
|
|
50
|
+
return _createClass(DeviceDfuStatusPage, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj) {}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Constructs a <code>
|
|
55
|
+
* Constructs a <code>DeviceDfuStatusPage</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
56
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
57
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
-
* @param {module:model/
|
|
59
|
-
* @return {module:model/
|
|
58
|
+
* @param {module:model/DeviceDfuStatusPage} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/DeviceDfuStatusPage} The populated <code>DeviceDfuStatusPage</code> instance.
|
|
60
60
|
*/
|
|
61
61
|
}, {
|
|
62
62
|
key: "constructFromObject",
|
|
63
63
|
value: function constructFromObject(data, obj) {
|
|
64
64
|
if (data) {
|
|
65
|
-
obj = obj || new
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
65
|
+
obj = obj || new DeviceDfuStatusPage();
|
|
66
|
+
if (data.hasOwnProperty("devices")) {
|
|
67
|
+
obj["devices"] = _ApiClient["default"].convertToType(data["devices"], [_DeviceDfuStatus["default"]]);
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("has_more")) {
|
|
70
|
+
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -76,46 +76,45 @@ var OTAStatusList = /*#__PURE__*/function () {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>
|
|
79
|
+
* Validates the JSON data with respect to <code>DeviceDfuStatusPage</code>.
|
|
80
80
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DeviceDfuStatusPage</code>.
|
|
82
82
|
*/
|
|
83
83
|
}, {
|
|
84
84
|
key: "validateJSON",
|
|
85
85
|
value: function validateJSON(data) {
|
|
86
|
-
if (data[
|
|
86
|
+
if (data["devices"]) {
|
|
87
87
|
// data not null
|
|
88
88
|
// ensure the json data is an array
|
|
89
|
-
if (!Array.isArray(data[
|
|
90
|
-
throw new Error("Expected the field `devices` to be an array in the JSON data but got " + data[
|
|
89
|
+
if (!Array.isArray(data["devices"])) {
|
|
90
|
+
throw new Error("Expected the field `devices` to be an array in the JSON data but got " + data["devices"]);
|
|
91
91
|
}
|
|
92
92
|
// validate the optional field `devices` (array)
|
|
93
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
93
|
+
var _iterator = _createForOfIteratorHelper(data["devices"]),
|
|
94
94
|
_step;
|
|
95
95
|
try {
|
|
96
96
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
97
97
|
var item = _step.value;
|
|
98
|
-
|
|
98
|
+
_DeviceDfuStatus["default"].validateJsonObject(item);
|
|
99
99
|
}
|
|
100
100
|
} catch (err) {
|
|
101
101
|
_iterator.e(err);
|
|
102
102
|
} finally {
|
|
103
103
|
_iterator.f();
|
|
104
104
|
}
|
|
105
|
-
;
|
|
106
105
|
}
|
|
107
106
|
return true;
|
|
108
107
|
}
|
|
109
108
|
}]);
|
|
110
109
|
}();
|
|
111
110
|
/**
|
|
112
|
-
* @member {Array.<module:model/
|
|
111
|
+
* @member {Array.<module:model/DeviceDfuStatus>} devices
|
|
113
112
|
*/
|
|
114
|
-
|
|
113
|
+
DeviceDfuStatusPage.prototype["devices"] = undefined;
|
|
115
114
|
|
|
116
115
|
/**
|
|
117
|
-
* Indicates whether more items are available
|
|
118
116
|
* @member {Boolean} has_more
|
|
117
|
+
* @default false
|
|
119
118
|
*/
|
|
120
|
-
|
|
121
|
-
var _default = exports["default"] =
|
|
119
|
+
DeviceDfuStatusPage.prototype["has_more"] = false;
|
|
120
|
+
var _default = exports["default"] = DeviceDfuStatusPage;
|