@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.3
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 +285 -293
- 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 +30 -30
- package/dist/api/DeviceApi.js +354 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +127 -74
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +403 -702
- 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 +0 -35
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- 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 +6 -6
- 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 +8 -8
- package/dist/model/CreateMonitor.js +128 -127
- 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 +6 -6
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +107 -106
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- 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 +69 -67
- 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 +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +13 -12
- package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetJobRuns200Response.js +12 -11
- package/dist/model/GetJobs200Response.js +12 -11
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +15 -14
- package/dist/model/GetSessionsUsage200Response.js +16 -15
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +50 -28
- package/dist/model/JobRun.js +57 -57
- 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 +102 -101
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- 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 +23 -22
- package/dist/model/NotefileSchema.js +19 -18
- 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 +8 -8
- 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 +38 -36
- 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 +49 -49
- package/dist/model/UsageEventsResponse.js +15 -14
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- 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/CreateProjectSecretRequest.js +0 -130
- package/dist/model/GetProjectSecretsResponse.js +0 -131
- package/dist/model/ProjectSecret.js +0 -164
- package/dist/model/UpdateHostFirmwareRequest.js +0 -117
- package/dist/model/UpdateProjectSecretRequest.js +0 -115
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.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.3
|
|
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.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.3
|
|
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.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.3
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,47 +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
97
|
}
|
|
98
|
-
if (data.hasOwnProperty(
|
|
99
|
-
obj[
|
|
98
|
+
if (data.hasOwnProperty('type')) {
|
|
99
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
100
100
|
}
|
|
101
|
-
if (data.hasOwnProperty(
|
|
102
|
-
obj[
|
|
101
|
+
if (data.hasOwnProperty('version')) {
|
|
102
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
103
103
|
}
|
|
104
104
|
} else if (data === null) {
|
|
105
105
|
return null;
|
|
@@ -116,52 +116,52 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
116
116
|
key: "validateJSON",
|
|
117
117
|
value: function validateJSON(data) {
|
|
118
118
|
// ensure the json data is a string
|
|
119
|
-
if (data[
|
|
120
|
-
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']);
|
|
121
121
|
}
|
|
122
122
|
// ensure the json data is a string
|
|
123
|
-
if (data[
|
|
124
|
-
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']);
|
|
125
125
|
}
|
|
126
126
|
// ensure the json data is a string
|
|
127
|
-
if (data[
|
|
128
|
-
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']);
|
|
129
129
|
}
|
|
130
130
|
// ensure the json data is a string
|
|
131
|
-
if (data[
|
|
132
|
-
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']);
|
|
133
133
|
}
|
|
134
134
|
// ensure the json data is a string
|
|
135
|
-
if (data[
|
|
136
|
-
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']);
|
|
137
137
|
}
|
|
138
138
|
// ensure the json data is a string
|
|
139
|
-
if (data[
|
|
140
|
-
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
141
141
|
}
|
|
142
142
|
// ensure the json data is a string
|
|
143
|
-
if (data[
|
|
144
|
-
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
145
145
|
}
|
|
146
146
|
// ensure the json data is a string
|
|
147
|
-
if (data[
|
|
148
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
149
149
|
}
|
|
150
150
|
// ensure the json data is a string
|
|
151
|
-
if (data[
|
|
152
|
-
throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
153
153
|
}
|
|
154
154
|
// ensure the json data is a string
|
|
155
|
-
if (data[
|
|
156
|
-
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
157
157
|
}
|
|
158
158
|
// ensure the json data is a string
|
|
159
|
-
if (data[
|
|
160
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
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
161
|
}
|
|
162
162
|
// ensure the json data is a string
|
|
163
|
-
if (data[
|
|
164
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data[
|
|
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']);
|
|
165
165
|
}
|
|
166
166
|
return true;
|
|
167
167
|
}
|
|
@@ -171,83 +171,83 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
171
171
|
* The date the firmware was built.
|
|
172
172
|
* @member {String} built
|
|
173
173
|
*/
|
|
174
|
-
FirmwareInfo.prototype[
|
|
174
|
+
FirmwareInfo.prototype['built'] = undefined;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* The date the firmware was created.
|
|
178
178
|
* @member {String} created
|
|
179
179
|
*/
|
|
180
|
-
FirmwareInfo.prototype[
|
|
180
|
+
FirmwareInfo.prototype['created'] = undefined;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* A description of the firmware.
|
|
184
184
|
* @member {String} description
|
|
185
185
|
*/
|
|
186
|
-
FirmwareInfo.prototype[
|
|
186
|
+
FirmwareInfo.prototype['description'] = undefined;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* The name of the firmware file.
|
|
190
190
|
* @member {String} filename
|
|
191
191
|
*/
|
|
192
|
-
FirmwareInfo.prototype[
|
|
192
|
+
FirmwareInfo.prototype['filename'] = undefined;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* User-defined metadata
|
|
196
196
|
* @member {Object} info
|
|
197
197
|
*/
|
|
198
|
-
FirmwareInfo.prototype[
|
|
198
|
+
FirmwareInfo.prototype['info'] = undefined;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* The MD5 hash of the firmware file.
|
|
202
202
|
* @member {String} md5
|
|
203
203
|
*/
|
|
204
|
-
FirmwareInfo.prototype[
|
|
204
|
+
FirmwareInfo.prototype['md5'] = undefined;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* User-defined notes
|
|
208
208
|
* @member {String} notes
|
|
209
209
|
*/
|
|
210
|
-
FirmwareInfo.prototype[
|
|
210
|
+
FirmwareInfo.prototype['notes'] = undefined;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* The organization that owns the firmware.
|
|
214
214
|
* @member {String} organization
|
|
215
215
|
*/
|
|
216
|
-
FirmwareInfo.prototype[
|
|
216
|
+
FirmwareInfo.prototype['organization'] = undefined;
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
219
|
* The product that the firmware is for.
|
|
220
220
|
* @member {String} product
|
|
221
221
|
*/
|
|
222
|
-
FirmwareInfo.prototype[
|
|
222
|
+
FirmwareInfo.prototype['product'] = undefined;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* True if the firmware is published.
|
|
226
226
|
* @member {Boolean} published
|
|
227
227
|
*/
|
|
228
|
-
FirmwareInfo.prototype[
|
|
228
|
+
FirmwareInfo.prototype['published'] = undefined;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* A list of tags associated with the firmware.
|
|
232
232
|
* @member {String} tags
|
|
233
233
|
*/
|
|
234
|
-
FirmwareInfo.prototype[
|
|
234
|
+
FirmwareInfo.prototype['tags'] = undefined;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* The target device for the firmware.
|
|
238
238
|
* @member {String} target
|
|
239
239
|
*/
|
|
240
|
-
FirmwareInfo.prototype[
|
|
240
|
+
FirmwareInfo.prototype['target'] = undefined;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* The type of firmware.
|
|
244
244
|
* @member {String} type
|
|
245
245
|
*/
|
|
246
|
-
FirmwareInfo.prototype[
|
|
246
|
+
FirmwareInfo.prototype['type'] = undefined;
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* The version of the firmware.
|
|
250
250
|
* @member {String} version
|
|
251
251
|
*/
|
|
252
|
-
FirmwareInfo.prototype[
|
|
252
|
+
FirmwareInfo.prototype['version'] = undefined;
|
|
253
253
|
var _default = exports["default"] = FirmwareInfo;
|