@blues-inc/notehub-js 3.0.0 → 4.0.0-beta.1
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 +247 -247
- package/dist/ApiClient.js +150 -155
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +471 -511
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +117 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- 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/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +25 -17
- package/dist/model/CreateMonitor.js +126 -125
- 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/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +115 -101
- 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 +60 -60
- package/dist/model/Fleet.js +43 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- 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/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 +132 -0
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- 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 +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
- package/dist/model/Notefile.js +159 -0
- 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/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- 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 +38 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +48 -37
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +41 -31
- 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/ListPendingNotefiles200Response.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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,41 +59,41 @@ 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('md5')) {
|
|
75
|
+
obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('organization')) {
|
|
78
|
+
obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('product')) {
|
|
81
|
+
obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('published')) {
|
|
84
|
+
obj['published'] = _ApiClient["default"].convertToType(data['published'], 'Boolean');
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty('tags')) {
|
|
87
|
+
obj['tags'] = _ApiClient["default"].convertToType(data['tags'], 'String');
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty('target')) {
|
|
90
|
+
obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String');
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty('type')) {
|
|
93
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty('version')) {
|
|
96
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
97
97
|
}
|
|
98
98
|
} else if (data === null) {
|
|
99
99
|
return null;
|
|
@@ -110,48 +110,48 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
110
110
|
key: "validateJSON",
|
|
111
111
|
value: function validateJSON(data) {
|
|
112
112
|
// 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[
|
|
113
|
+
if (data['built'] && !(typeof data['built'] === 'string' || data['built'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `built` to be a primitive type in the JSON string but got " + data['built']);
|
|
115
115
|
}
|
|
116
116
|
// 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[
|
|
117
|
+
if (data['created'] && !(typeof data['created'] === 'string' || data['created'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `created` to be a primitive type in the JSON string but got " + data['created']);
|
|
119
119
|
}
|
|
120
120
|
// 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[
|
|
121
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
123
123
|
}
|
|
124
124
|
// 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[
|
|
125
|
+
if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
|
|
127
127
|
}
|
|
128
128
|
// 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[
|
|
129
|
+
if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
|
|
131
131
|
}
|
|
132
132
|
// ensure the json data is a string
|
|
133
|
-
if (data[
|
|
134
|
-
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data[
|
|
133
|
+
if (data['organization'] && !(typeof data['organization'] === 'string' || data['organization'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data['organization']);
|
|
135
135
|
}
|
|
136
136
|
// ensure the json data is a string
|
|
137
|
-
if (data[
|
|
138
|
-
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data[
|
|
137
|
+
if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
|
|
139
139
|
}
|
|
140
140
|
// ensure the json data is a string
|
|
141
|
-
if (data[
|
|
142
|
-
throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data[
|
|
141
|
+
if (data['tags'] && !(typeof data['tags'] === 'string' || data['tags'] instanceof String)) {
|
|
142
|
+
throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data['tags']);
|
|
143
143
|
}
|
|
144
144
|
// ensure the json data is a string
|
|
145
|
-
if (data[
|
|
146
|
-
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data[
|
|
145
|
+
if (data['target'] && !(typeof data['target'] === 'string' || data['target'] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + data['target']);
|
|
147
147
|
}
|
|
148
148
|
// ensure the json data is a string
|
|
149
|
-
if (data[
|
|
150
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
149
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
150
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
151
151
|
}
|
|
152
152
|
// ensure the json data is a string
|
|
153
|
-
if (data[
|
|
154
|
-
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data[
|
|
153
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
154
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
155
155
|
}
|
|
156
156
|
return true;
|
|
157
157
|
}
|
|
@@ -161,71 +161,71 @@ var FirmwareInfo = /*#__PURE__*/function () {
|
|
|
161
161
|
* The date the firmware was built.
|
|
162
162
|
* @member {String} built
|
|
163
163
|
*/
|
|
164
|
-
FirmwareInfo.prototype[
|
|
164
|
+
FirmwareInfo.prototype['built'] = undefined;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* The date the firmware was created.
|
|
168
168
|
* @member {String} created
|
|
169
169
|
*/
|
|
170
|
-
FirmwareInfo.prototype[
|
|
170
|
+
FirmwareInfo.prototype['created'] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* A description of the firmware.
|
|
174
174
|
* @member {String} description
|
|
175
175
|
*/
|
|
176
|
-
FirmwareInfo.prototype[
|
|
176
|
+
FirmwareInfo.prototype['description'] = undefined;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* The name of the firmware file.
|
|
180
180
|
* @member {String} filename
|
|
181
181
|
*/
|
|
182
|
-
FirmwareInfo.prototype[
|
|
182
|
+
FirmwareInfo.prototype['filename'] = undefined;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* The MD5 hash of the firmware file.
|
|
186
186
|
* @member {String} md5
|
|
187
187
|
*/
|
|
188
|
-
FirmwareInfo.prototype[
|
|
188
|
+
FirmwareInfo.prototype['md5'] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* The organization that owns the firmware.
|
|
192
192
|
* @member {String} organization
|
|
193
193
|
*/
|
|
194
|
-
FirmwareInfo.prototype[
|
|
194
|
+
FirmwareInfo.prototype['organization'] = undefined;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* The product that the firmware is for.
|
|
198
198
|
* @member {String} product
|
|
199
199
|
*/
|
|
200
|
-
FirmwareInfo.prototype[
|
|
200
|
+
FirmwareInfo.prototype['product'] = undefined;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* True if the firmware is published.
|
|
204
204
|
* @member {Boolean} published
|
|
205
205
|
*/
|
|
206
|
-
FirmwareInfo.prototype[
|
|
206
|
+
FirmwareInfo.prototype['published'] = undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* A list of tags associated with the firmware.
|
|
210
210
|
* @member {String} tags
|
|
211
211
|
*/
|
|
212
|
-
FirmwareInfo.prototype[
|
|
212
|
+
FirmwareInfo.prototype['tags'] = undefined;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* The target device for the firmware.
|
|
216
216
|
* @member {String} target
|
|
217
217
|
*/
|
|
218
|
-
FirmwareInfo.prototype[
|
|
218
|
+
FirmwareInfo.prototype['target'] = undefined;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* The type of firmware.
|
|
222
222
|
* @member {String} type
|
|
223
223
|
*/
|
|
224
|
-
FirmwareInfo.prototype[
|
|
224
|
+
FirmwareInfo.prototype['type'] = undefined;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* The version of the firmware.
|
|
228
228
|
* @member {String} version
|
|
229
229
|
*/
|
|
230
|
-
FirmwareInfo.prototype[
|
|
230
|
+
FirmwareInfo.prototype['version'] = undefined;
|
|
231
231
|
var _default = exports["default"] = FirmwareInfo;
|