@blues-inc/notehub-js 6.0.0 → 6.1.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -116
- 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 +93 -3
- package/dist/api/DeviceApi.js +58 -2
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +438 -0
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +156 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +105 -0
- package/dist/model/AWSRoleConfig.js +131 -0
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +14 -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/CancelJobRun200Response.js +111 -0
- 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 +1 -1
- package/dist/model/CreateJob201Response.js +115 -0
- package/dist/model/CreateMonitor.js +57 -2
- 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/DeleteJob200Response.js +111 -0
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +1 -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 +23 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccount200Response.js +137 -0
- package/dist/model/GetBillingAccount200ResponsePlan.js +141 -0
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +111 -0
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +130 -0
- 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/GetJobRuns200Response.js +131 -0
- package/dist/model/GetJobs200Response.js +131 -0
- 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 +1 -1
- 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/Job.js +167 -0
- package/dist/model/JobRun.js +246 -0
- 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 +42 -2
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- 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/RunJob200Response.js +115 -0
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.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 +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +117 -0
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +19 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +10 -1
- package/dist/model/UsageSessionsData.js +36 -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/AwsRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The AwsRoute model module.
|
|
30
30
|
* @module model/AwsRoute
|
|
31
|
-
* @version 6.0.
|
|
31
|
+
* @version 6.1.0-beta.10
|
|
32
32
|
*/
|
|
33
33
|
var AwsRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -93,6 +93,9 @@ var AwsRoute = /*#__PURE__*/function () {
|
|
|
93
93
|
if (data.hasOwnProperty("region")) {
|
|
94
94
|
obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
|
|
95
95
|
}
|
|
96
|
+
if (data.hasOwnProperty("role_arn")) {
|
|
97
|
+
obj["role_arn"] = _ApiClient["default"].convertToType(data["role_arn"], "String");
|
|
98
|
+
}
|
|
96
99
|
if (data.hasOwnProperty("throttle_ms")) {
|
|
97
100
|
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
98
101
|
}
|
|
@@ -152,6 +155,10 @@ var AwsRoute = /*#__PURE__*/function () {
|
|
|
152
155
|
if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
|
|
153
156
|
throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
|
|
154
157
|
}
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data["role_arn"] && !(typeof data["role_arn"] === "string" || data["role_arn"] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `role_arn` to be a primitive type in the JSON string but got " + data["role_arn"]);
|
|
161
|
+
}
|
|
155
162
|
// validate the optional field `transform`
|
|
156
163
|
if (data["transform"]) {
|
|
157
164
|
// data not null
|
|
@@ -215,6 +222,12 @@ AwsRoute.prototype["message_group_id"] = undefined;
|
|
|
215
222
|
*/
|
|
216
223
|
AwsRoute.prototype["region"] = undefined;
|
|
217
224
|
|
|
225
|
+
/**
|
|
226
|
+
* IAM Role ARN for role-based authentication via STS AssumeRole
|
|
227
|
+
* @member {String} role_arn
|
|
228
|
+
*/
|
|
229
|
+
AwsRoute.prototype["role_arn"] = undefined;
|
|
230
|
+
|
|
218
231
|
/**
|
|
219
232
|
* @member {Number} throttle_ms
|
|
220
233
|
*/
|
package/dist/model/AzureRoute.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 6.0.
|
|
33
|
+
* @version 6.1.0-beta.10
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/BlynkRoute.js
CHANGED
package/dist/model/Body.js
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
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
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); } /**
|
|
18
|
+
* Notehub API
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
22
|
+
* Contact: engineering@blues.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The CancelJobRun200Response model module.
|
|
31
|
+
* @module model/CancelJobRun200Response
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
33
|
+
*/
|
|
34
|
+
var CancelJobRun200Response = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CancelJobRun200Response</code>.
|
|
37
|
+
* @alias module:model/CancelJobRun200Response
|
|
38
|
+
* @param successful {Boolean} True if cancellation was successful
|
|
39
|
+
*/
|
|
40
|
+
function CancelJobRun200Response(successful) {
|
|
41
|
+
_classCallCheck(this, CancelJobRun200Response);
|
|
42
|
+
CancelJobRun200Response.initialize(this, successful);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(CancelJobRun200Response, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, successful) {
|
|
53
|
+
obj["successful"] = successful;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>CancelJobRun200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/CancelJobRun200Response} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/CancelJobRun200Response} The populated <code>CancelJobRun200Response</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new CancelJobRun200Response();
|
|
68
|
+
if (data.hasOwnProperty("successful")) {
|
|
69
|
+
obj["successful"] = _ApiClient["default"].convertToType(data["successful"], "Boolean");
|
|
70
|
+
}
|
|
71
|
+
} else if (data === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>CancelJobRun200Response</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CancelJobRun200Response</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(CancelJobRun200Response.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
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
}]);
|
|
103
|
+
}();
|
|
104
|
+
CancelJobRun200Response.RequiredProperties = ["successful"];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* True if cancellation was successful
|
|
108
|
+
* @member {Boolean} successful
|
|
109
|
+
*/
|
|
110
|
+
CancelJobRun200Response.prototype["successful"] = undefined;
|
|
111
|
+
var _default = exports["default"] = CancelJobRun200Response;
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CellularPlan model module.
|
|
29
29
|
* @module model/CellularPlan
|
|
30
|
-
* @version 6.0.
|
|
30
|
+
* @version 6.1.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CellularPlan = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 6.0.
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CreateFleetRequest model module.
|
|
29
29
|
* @module model/CreateFleetRequest
|
|
30
|
-
* @version 6.0.
|
|
30
|
+
* @version 6.1.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
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
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); } /**
|
|
18
|
+
* Notehub API
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
22
|
+
* Contact: engineering@blues.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The CreateJob201Response model module.
|
|
31
|
+
* @module model/CreateJob201Response
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
33
|
+
*/
|
|
34
|
+
var CreateJob201Response = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>CreateJob201Response</code>.
|
|
37
|
+
* @alias module:model/CreateJob201Response
|
|
38
|
+
* @param jobUid {String} The unique identifier for the created job
|
|
39
|
+
*/
|
|
40
|
+
function CreateJob201Response(jobUid) {
|
|
41
|
+
_classCallCheck(this, CreateJob201Response);
|
|
42
|
+
CreateJob201Response.initialize(this, jobUid);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(CreateJob201Response, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, jobUid) {
|
|
53
|
+
obj["job_uid"] = jobUid;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>CreateJob201Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/CreateJob201Response} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/CreateJob201Response} The populated <code>CreateJob201Response</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new CreateJob201Response();
|
|
68
|
+
if (data.hasOwnProperty("job_uid")) {
|
|
69
|
+
obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
|
|
70
|
+
}
|
|
71
|
+
} else if (data === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>CreateJob201Response</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateJob201Response</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(CreateJob201Response.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
|
+
// ensure the json data is a string
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}]);
|
|
107
|
+
}();
|
|
108
|
+
CreateJob201Response.RequiredProperties = ["job_uid"];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The unique identifier for the created job
|
|
112
|
+
* @member {String} job_uid
|
|
113
|
+
*/
|
|
114
|
+
CreateJob201Response.prototype["job_uid"] = undefined;
|
|
115
|
+
var _default = exports["default"] = CreateJob201Response;
|
|
@@ -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 6.0.
|
|
34
|
+
* @version 6.1.0-beta.10
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -132,6 +132,15 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
132
132
|
if (data.hasOwnProperty("uid")) {
|
|
133
133
|
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
134
134
|
}
|
|
135
|
+
if (data.hasOwnProperty("usage_scope")) {
|
|
136
|
+
obj["usage_scope"] = _ApiClient["default"].convertToType(data["usage_scope"], "String");
|
|
137
|
+
}
|
|
138
|
+
if (data.hasOwnProperty("usage_type")) {
|
|
139
|
+
obj["usage_type"] = _ApiClient["default"].convertToType(data["usage_type"], "String");
|
|
140
|
+
}
|
|
141
|
+
if (data.hasOwnProperty("usage_window")) {
|
|
142
|
+
obj["usage_window"] = _ApiClient["default"].convertToType(data["usage_window"], "Number");
|
|
143
|
+
}
|
|
135
144
|
} else if (data === null) {
|
|
136
145
|
return null;
|
|
137
146
|
}
|
|
@@ -229,6 +238,14 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
229
238
|
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
230
239
|
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
231
240
|
}
|
|
241
|
+
// ensure the json data is a string
|
|
242
|
+
if (data["usage_scope"] && !(typeof data["usage_scope"] === "string" || data["usage_scope"] instanceof String)) {
|
|
243
|
+
throw new Error("Expected the field `usage_scope` to be a primitive type in the JSON string but got " + data["usage_scope"]);
|
|
244
|
+
}
|
|
245
|
+
// ensure the json data is a string
|
|
246
|
+
if (data["usage_type"] && !(typeof data["usage_type"] === "string" || data["usage_type"] instanceof String)) {
|
|
247
|
+
throw new Error("Expected the field `usage_type` to be a primitive type in the JSON string but got " + data["usage_type"]);
|
|
248
|
+
}
|
|
232
249
|
return true;
|
|
233
250
|
}
|
|
234
251
|
}]);
|
|
@@ -337,6 +354,24 @@ CreateMonitor.prototype["threshold"] = undefined;
|
|
|
337
354
|
*/
|
|
338
355
|
CreateMonitor.prototype["uid"] = undefined;
|
|
339
356
|
|
|
357
|
+
/**
|
|
358
|
+
* For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
|
|
359
|
+
* @member {String} usage_scope
|
|
360
|
+
*/
|
|
361
|
+
CreateMonitor.prototype["usage_scope"] = undefined;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
|
|
365
|
+
* @member {String} usage_type
|
|
366
|
+
*/
|
|
367
|
+
CreateMonitor.prototype["usage_type"] = undefined;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
|
|
371
|
+
* @member {Number} usage_window
|
|
372
|
+
*/
|
|
373
|
+
CreateMonitor.prototype["usage_window"] = undefined;
|
|
374
|
+
|
|
340
375
|
// Implement Monitor interface:
|
|
341
376
|
/**
|
|
342
377
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
@@ -422,6 +457,21 @@ _Monitor["default"].prototype["threshold"] = undefined;
|
|
|
422
457
|
* @member {String} uid
|
|
423
458
|
*/
|
|
424
459
|
_Monitor["default"].prototype["uid"] = undefined;
|
|
460
|
+
/**
|
|
461
|
+
* For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
|
|
462
|
+
* @member {String} usage_scope
|
|
463
|
+
*/
|
|
464
|
+
_Monitor["default"].prototype["usage_scope"] = undefined;
|
|
465
|
+
/**
|
|
466
|
+
* For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
|
|
467
|
+
* @member {String} usage_type
|
|
468
|
+
*/
|
|
469
|
+
_Monitor["default"].prototype["usage_type"] = undefined;
|
|
470
|
+
/**
|
|
471
|
+
* For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
|
|
472
|
+
* @member {Number} usage_window
|
|
473
|
+
*/
|
|
474
|
+
_Monitor["default"].prototype["usage_window"] = undefined;
|
|
425
475
|
|
|
426
476
|
/**
|
|
427
477
|
* Allowed values for the <code>aggregate_function</code> property.
|
|
@@ -491,7 +541,12 @@ CreateMonitor["ConditionTypeEnum"] = {
|
|
|
491
541
|
* value: "not_equal_to"
|
|
492
542
|
* @const
|
|
493
543
|
*/
|
|
494
|
-
not_equal_to: "not_equal_to"
|
|
544
|
+
not_equal_to: "not_equal_to",
|
|
545
|
+
/**
|
|
546
|
+
* value: "count"
|
|
547
|
+
* @const
|
|
548
|
+
*/
|
|
549
|
+
count: "count"
|
|
495
550
|
};
|
|
496
551
|
|
|
497
552
|
/**
|
|
@@ -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 6.0.
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
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 6.0.
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
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 6.0.
|
|
29
|
+
* @version 6.1.0-beta.10
|
|
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 6.0.
|
|
30
|
+
* @version 6.1.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
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 DataSetField model module.
|
|
28
28
|
* @module model/DataSetField
|
|
29
|
-
* @version 6.0.
|
|
29
|
+
* @version 6.1.0-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var DataSetField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataUsage.js
CHANGED
|
@@ -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 6.0.
|
|
31
|
+
* @version 6.1.0-beta.10
|
|
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 6.0.
|
|
32
|
+
* @version 6.1.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var DeleteDeviceFromFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|