@blues-inc/notehub-js 6.0.0-beta.9 → 6.1.0
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 +268 -250
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +106 -16
- package/dist/api/DeviceApi.js +397 -341
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +438 -0
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +403 -403
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +91 -0
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CancelJobRun200Response.js +111 -0
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateJob201Response.js +115 -0
- package/dist/model/CreateMonitor.js +127 -128
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +111 -0
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +82 -60
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- 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 +9 -10
- package/dist/model/GetDataUsage200Response.js +12 -13
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetJobRuns200Response.js +131 -0
- package/dist/model/GetJobs200Response.js +131 -0
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +14 -15
- package/dist/model/GetSessionsUsage200Response.js +15 -16
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +167 -0
- package/dist/model/JobRun.js +246 -0
- 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 +101 -102
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/RunJob200Response.js +115 -0
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +61 -43
- package/dist/model/UsageEventsResponse.js +14 -15
- package/dist/model/UsageRouteLogsData.js +36 -27
- package/dist/model/UsageSessionsData.js +67 -36
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/model/Filter.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,12 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Filter model module.
|
|
28
28
|
* @module model/Filter
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.1.0
|
|
30
30
|
*/
|
|
31
31
|
var Filter = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>Filter</code>.
|
|
34
|
-
* Filter applied to route data. Controls which notefiles are sent through the route.
|
|
34
|
+
* Filter applied to route data. Controls which notefiles are sent through the route.
|
|
35
35
|
* @alias module:model/Filter
|
|
36
36
|
*/
|
|
37
37
|
function Filter() {
|
|
@@ -60,14 +60,14 @@ var Filter = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new Filter();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("files")) {
|
|
64
|
+
obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("system_notefiles")) {
|
|
67
|
+
obj["system_notefiles"] = _ApiClient["default"].convertToType(data["system_notefiles"], "Boolean");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("type")) {
|
|
70
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -84,12 +84,12 @@ var Filter = /*#__PURE__*/function () {
|
|
|
84
84
|
key: "validateJSON",
|
|
85
85
|
value: function validateJSON(data) {
|
|
86
86
|
// ensure the json data is an array
|
|
87
|
-
if (!Array.isArray(data[
|
|
88
|
-
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data[
|
|
87
|
+
if (!Array.isArray(data["files"])) {
|
|
88
|
+
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data["files"]);
|
|
89
89
|
}
|
|
90
90
|
// ensure the json data is a string
|
|
91
|
-
if (data[
|
|
92
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
91
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
93
93
|
}
|
|
94
94
|
return true;
|
|
95
95
|
}
|
|
@@ -99,17 +99,17 @@ var Filter = /*#__PURE__*/function () {
|
|
|
99
99
|
* List of notefile names or patterns to filter on.
|
|
100
100
|
* @member {Array.<String>} files
|
|
101
101
|
*/
|
|
102
|
-
Filter.prototype[
|
|
102
|
+
Filter.prototype["files"] = undefined;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Whether system notefiles should be included.
|
|
106
106
|
* @member {Boolean} system_notefiles
|
|
107
107
|
*/
|
|
108
|
-
Filter.prototype[
|
|
108
|
+
Filter.prototype["system_notefiles"] = undefined;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Type of filter to apply (corresponds to `hublib.NotefileFilterType`).
|
|
112
112
|
* @member {String} type
|
|
113
113
|
*/
|
|
114
|
-
Filter.prototype[
|
|
114
|
+
Filter.prototype["type"] = undefined;
|
|
115
115
|
var _default = exports["default"] = Filter;
|
package/dist/model/Firmware.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -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 6.
|
|
29
|
+
* @version 6.1.0
|
|
30
30
|
*/
|
|
31
31
|
var Firmware = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,38 +59,38 @@ var Firmware = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new Firmware();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("builder")) {
|
|
63
|
+
obj["builder"] = _ApiClient["default"].convertToType(data["builder"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("built")) {
|
|
66
|
+
obj["built"] = _ApiClient["default"].convertToType(data["built"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("firmware")) {
|
|
69
|
+
obj["firmware"] = _ApiClient["default"].convertToType(data["firmware"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("org")) {
|
|
72
|
+
obj["org"] = _ApiClient["default"].convertToType(data["org"], "String");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("product")) {
|
|
75
|
+
obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("target")) {
|
|
78
|
+
obj["target"] = _ApiClient["default"].convertToType(data["target"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("ver_build")) {
|
|
81
|
+
obj["ver_build"] = _ApiClient["default"].convertToType(data["ver_build"], "Number");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("ver_major")) {
|
|
84
|
+
obj["ver_major"] = _ApiClient["default"].convertToType(data["ver_major"], "Number");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("ver_minor")) {
|
|
87
|
+
obj["ver_minor"] = _ApiClient["default"].convertToType(data["ver_minor"], "Number");
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("ver_patch")) {
|
|
90
|
+
obj["ver_patch"] = _ApiClient["default"].convertToType(data["ver_patch"], "Number");
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty("version")) {
|
|
93
|
+
obj["version"] = _ApiClient["default"].convertToType(data["version"], "String");
|
|
94
94
|
}
|
|
95
95
|
} else if (data === null) {
|
|
96
96
|
return null;
|
|
@@ -107,32 +107,32 @@ var Firmware = /*#__PURE__*/function () {
|
|
|
107
107
|
key: "validateJSON",
|
|
108
108
|
value: function validateJSON(data) {
|
|
109
109
|
// ensure the json data is a string
|
|
110
|
-
if (data[
|
|
111
|
-
throw new Error("Expected the field `builder` to be a primitive type in the JSON string but got " + data[
|
|
110
|
+
if (data["builder"] && !(typeof data["builder"] === "string" || data["builder"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `builder` to be a primitive type in the JSON string but got " + data["builder"]);
|
|
112
112
|
}
|
|
113
113
|
// ensure the json data is a string
|
|
114
|
-
if (data[
|
|
115
|
-
throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data[
|
|
114
|
+
if (data["built"] && !(typeof data["built"] === "string" || data["built"] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data["built"]);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is a string
|
|
118
|
-
if (data[
|
|
119
|
-
throw new Error("Expected the field `firmware` to be a primitive type in the JSON string but got " + data[
|
|
118
|
+
if (data["firmware"] && !(typeof data["firmware"] === "string" || data["firmware"] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `firmware` to be a primitive type in the JSON string but got " + data["firmware"]);
|
|
120
120
|
}
|
|
121
121
|
// ensure the json data is a string
|
|
122
|
-
if (data[
|
|
123
|
-
throw new Error("Expected the field `org` to be a primitive type in the JSON string but got " + data[
|
|
122
|
+
if (data["org"] && !(typeof data["org"] === "string" || data["org"] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `org` to be a primitive type in the JSON string but got " + data["org"]);
|
|
124
124
|
}
|
|
125
125
|
// ensure the json data is a string
|
|
126
|
-
if (data[
|
|
127
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data["product"] && !(typeof data["product"] === "string" || data["product"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data["product"]);
|
|
128
128
|
}
|
|
129
129
|
// ensure the json data is a string
|
|
130
|
-
if (data[
|
|
131
|
-
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data[
|
|
130
|
+
if (data["target"] && !(typeof data["target"] === "string" || data["target"] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data["target"]);
|
|
132
132
|
}
|
|
133
133
|
// ensure the json data is a string
|
|
134
|
-
if (data[
|
|
135
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data[
|
|
134
|
+
if (data["version"] && !(typeof data["version"] === "string" || data["version"] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data["version"]);
|
|
136
136
|
}
|
|
137
137
|
return true;
|
|
138
138
|
}
|
|
@@ -141,55 +141,55 @@ var Firmware = /*#__PURE__*/function () {
|
|
|
141
141
|
/**
|
|
142
142
|
* @member {String} builder
|
|
143
143
|
*/
|
|
144
|
-
Firmware.prototype[
|
|
144
|
+
Firmware.prototype["builder"] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* @member {String} built
|
|
148
148
|
*/
|
|
149
|
-
Firmware.prototype[
|
|
149
|
+
Firmware.prototype["built"] = undefined;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @member {String} firmware
|
|
153
153
|
*/
|
|
154
|
-
Firmware.prototype[
|
|
154
|
+
Firmware.prototype["firmware"] = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* @member {String} org
|
|
158
158
|
*/
|
|
159
|
-
Firmware.prototype[
|
|
159
|
+
Firmware.prototype["org"] = undefined;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* @member {String} product
|
|
163
163
|
*/
|
|
164
|
-
Firmware.prototype[
|
|
164
|
+
Firmware.prototype["product"] = undefined;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* @member {String} target
|
|
168
168
|
*/
|
|
169
|
-
Firmware.prototype[
|
|
169
|
+
Firmware.prototype["target"] = undefined;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* @member {Number} ver_build
|
|
173
173
|
*/
|
|
174
|
-
Firmware.prototype[
|
|
174
|
+
Firmware.prototype["ver_build"] = undefined;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* @member {Number} ver_major
|
|
178
178
|
*/
|
|
179
|
-
Firmware.prototype[
|
|
179
|
+
Firmware.prototype["ver_major"] = undefined;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* @member {Number} ver_minor
|
|
183
183
|
*/
|
|
184
|
-
Firmware.prototype[
|
|
184
|
+
Firmware.prototype["ver_minor"] = undefined;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* @member {Number} ver_patch
|
|
188
188
|
*/
|
|
189
|
-
Firmware.prototype[
|
|
189
|
+
Firmware.prototype["ver_patch"] = undefined;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* @member {String} version
|
|
193
193
|
*/
|
|
194
|
-
Firmware.prototype[
|
|
194
|
+
Firmware.prototype["version"] = undefined;
|
|
195
195
|
var _default = exports["default"] = Firmware;
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -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 6.
|
|
29
|
+
* @version 6.1.0
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,41 +59,47 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new FirmwareInfo();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("built")) {
|
|
63
|
+
obj["built"] = _ApiClient["default"].convertToType(data["built"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("created")) {
|
|
66
|
+
obj["created"] = _ApiClient["default"].convertToType(data["created"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("description")) {
|
|
69
|
+
obj["description"] = _ApiClient["default"].convertToType(data["description"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("filename")) {
|
|
72
|
+
obj["filename"] = _ApiClient["default"].convertToType(data["filename"], "String");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("info")) {
|
|
75
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], Object);
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("md5")) {
|
|
78
|
+
obj["md5"] = _ApiClient["default"].convertToType(data["md5"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("notes")) {
|
|
81
|
+
obj["notes"] = _ApiClient["default"].convertToType(data["notes"], "String");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("organization")) {
|
|
84
|
+
obj["organization"] = _ApiClient["default"].convertToType(data["organization"], "String");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("product")) {
|
|
87
|
+
obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("published")) {
|
|
90
|
+
obj["published"] = _ApiClient["default"].convertToType(data["published"], "Boolean");
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty("tags")) {
|
|
93
|
+
obj["tags"] = _ApiClient["default"].convertToType(data["tags"], "String");
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty("target")) {
|
|
96
|
+
obj["target"] = _ApiClient["default"].convertToType(data["target"], "String");
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty("type")) {
|
|
99
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty("version")) {
|
|
102
|
+
obj["version"] = _ApiClient["default"].convertToType(data["version"], "String");
|
|
97
103
|
}
|
|
98
104
|
} else if (data === null) {
|
|
99
105
|
return null;
|
|
@@ -110,48 +116,52 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
110
116
|
key: "validateJSON",
|
|
111
117
|
value: function validateJSON(data) {
|
|
112
118
|
// ensure the json data is a string
|
|
113
|
-
if (data[
|
|
114
|
-
throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data[
|
|
119
|
+
if (data["built"] && !(typeof data["built"] === "string" || data["built"] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data["built"]);
|
|
115
121
|
}
|
|
116
122
|
// ensure the json data is a string
|
|
117
|
-
if (data[
|
|
118
|
-
throw new Error("Expected the field `created` to be a primitive type in the JSON string but got " + data[
|
|
123
|
+
if (data["created"] && !(typeof data["created"] === "string" || data["created"] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `created` to be a primitive type in the JSON string but got " + data["created"]);
|
|
119
125
|
}
|
|
120
126
|
// ensure the json data is a string
|
|
121
|
-
if (data[
|
|
122
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data[
|
|
127
|
+
if (data["description"] && !(typeof data["description"] === "string" || data["description"] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data["description"]);
|
|
123
129
|
}
|
|
124
130
|
// ensure the json data is a string
|
|
125
|
-
if (data[
|
|
126
|
-
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data[
|
|
131
|
+
if (data["filename"] && !(typeof data["filename"] === "string" || data["filename"] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data["filename"]);
|
|
127
133
|
}
|
|
128
134
|
// ensure the json data is a string
|
|
129
|
-
if (data[
|
|
130
|
-
throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data[
|
|
135
|
+
if (data["md5"] && !(typeof data["md5"] === "string" || data["md5"] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data["md5"]);
|
|
131
137
|
}
|
|
132
138
|
// ensure the json data is a string
|
|
133
|
-
if (data[
|
|
134
|
-
throw new Error("Expected the field `
|
|
139
|
+
if (data["notes"] && !(typeof data["notes"] === "string" || data["notes"] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data["notes"]);
|
|
135
141
|
}
|
|
136
142
|
// ensure the json data is a string
|
|
137
|
-
if (data[
|
|
138
|
-
throw new Error("Expected the field `
|
|
143
|
+
if (data["organization"] && !(typeof data["organization"] === "string" || data["organization"] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data["organization"]);
|
|
139
145
|
}
|
|
140
146
|
// ensure the json data is a string
|
|
141
|
-
if (data[
|
|
142
|
-
throw new Error("Expected the field `
|
|
147
|
+
if (data["product"] && !(typeof data["product"] === "string" || data["product"] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data["product"]);
|
|
143
149
|
}
|
|
144
150
|
// ensure the json data is a string
|
|
145
|
-
if (data[
|
|
146
|
-
throw new Error("Expected the field `
|
|
151
|
+
if (data["tags"] && !(typeof data["tags"] === "string" || data["tags"] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data["tags"]);
|
|
147
153
|
}
|
|
148
154
|
// ensure the json data is a string
|
|
149
|
-
if (data[
|
|
150
|
-
throw new Error("Expected the field `
|
|
155
|
+
if (data["target"] && !(typeof data["target"] === "string" || data["target"] instanceof String)) {
|
|
156
|
+
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data["target"]);
|
|
151
157
|
}
|
|
152
158
|
// ensure the json data is a string
|
|
153
|
-
if (data[
|
|
154
|
-
throw new Error("Expected the field `
|
|
159
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is a string
|
|
163
|
+
if (data["version"] && !(typeof data["version"] === "string" || data["version"] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data["version"]);
|
|
155
165
|
}
|
|
156
166
|
return true;
|
|
157
167
|
}
|
|
@@ -161,71 +171,83 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
161
171
|
* The date the firmware was built.
|
|
162
172
|
* @member {String} built
|
|
163
173
|
*/
|
|
164
|
-
FirmwareInfo.prototype[
|
|
174
|
+
FirmwareInfo.prototype["built"] = undefined;
|
|
165
175
|
|
|
166
176
|
/**
|
|
167
177
|
* The date the firmware was created.
|
|
168
178
|
* @member {String} created
|
|
169
179
|
*/
|
|
170
|
-
FirmwareInfo.prototype[
|
|
180
|
+
FirmwareInfo.prototype["created"] = undefined;
|
|
171
181
|
|
|
172
182
|
/**
|
|
173
183
|
* A description of the firmware.
|
|
174
184
|
* @member {String} description
|
|
175
185
|
*/
|
|
176
|
-
FirmwareInfo.prototype[
|
|
186
|
+
FirmwareInfo.prototype["description"] = undefined;
|
|
177
187
|
|
|
178
188
|
/**
|
|
179
189
|
* The name of the firmware file.
|
|
180
190
|
* @member {String} filename
|
|
181
191
|
*/
|
|
182
|
-
FirmwareInfo.prototype[
|
|
192
|
+
FirmwareInfo.prototype["filename"] = undefined;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* User-defined metadata
|
|
196
|
+
* @member {Object} info
|
|
197
|
+
*/
|
|
198
|
+
FirmwareInfo.prototype["info"] = undefined;
|
|
183
199
|
|
|
184
200
|
/**
|
|
185
201
|
* The MD5 hash of the firmware file.
|
|
186
202
|
* @member {String} md5
|
|
187
203
|
*/
|
|
188
|
-
FirmwareInfo.prototype[
|
|
204
|
+
FirmwareInfo.prototype["md5"] = undefined;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* User-defined notes
|
|
208
|
+
* @member {String} notes
|
|
209
|
+
*/
|
|
210
|
+
FirmwareInfo.prototype["notes"] = undefined;
|
|
189
211
|
|
|
190
212
|
/**
|
|
191
213
|
* The organization that owns the firmware.
|
|
192
214
|
* @member {String} organization
|
|
193
215
|
*/
|
|
194
|
-
FirmwareInfo.prototype[
|
|
216
|
+
FirmwareInfo.prototype["organization"] = undefined;
|
|
195
217
|
|
|
196
218
|
/**
|
|
197
219
|
* The product that the firmware is for.
|
|
198
220
|
* @member {String} product
|
|
199
221
|
*/
|
|
200
|
-
FirmwareInfo.prototype[
|
|
222
|
+
FirmwareInfo.prototype["product"] = undefined;
|
|
201
223
|
|
|
202
224
|
/**
|
|
203
225
|
* True if the firmware is published.
|
|
204
226
|
* @member {Boolean} published
|
|
205
227
|
*/
|
|
206
|
-
FirmwareInfo.prototype[
|
|
228
|
+
FirmwareInfo.prototype["published"] = undefined;
|
|
207
229
|
|
|
208
230
|
/**
|
|
209
231
|
* A list of tags associated with the firmware.
|
|
210
232
|
* @member {String} tags
|
|
211
233
|
*/
|
|
212
|
-
FirmwareInfo.prototype[
|
|
234
|
+
FirmwareInfo.prototype["tags"] = undefined;
|
|
213
235
|
|
|
214
236
|
/**
|
|
215
237
|
* The target device for the firmware.
|
|
216
238
|
* @member {String} target
|
|
217
239
|
*/
|
|
218
|
-
FirmwareInfo.prototype[
|
|
240
|
+
FirmwareInfo.prototype["target"] = undefined;
|
|
219
241
|
|
|
220
242
|
/**
|
|
221
243
|
* The type of firmware.
|
|
222
244
|
* @member {String} type
|
|
223
245
|
*/
|
|
224
|
-
FirmwareInfo.prototype[
|
|
246
|
+
FirmwareInfo.prototype["type"] = undefined;
|
|
225
247
|
|
|
226
248
|
/**
|
|
227
249
|
* The version of the firmware.
|
|
228
250
|
* @member {String} version
|
|
229
251
|
*/
|
|
230
|
-
FirmwareInfo.prototype[
|
|
252
|
+
FirmwareInfo.prototype["version"] = undefined;
|
|
231
253
|
var _default = exports["default"] = FirmwareInfo;
|