@blues-inc/notehub-js 6.1.0 → 6.2.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 +22 -16
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +3 -3
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +114 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +7 -0
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccount200Response.js +1 -1
- package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +117 -0
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 6.
|
|
9
|
+
- Package version: 6.2.0
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -100,27 +100,30 @@ module: {
|
|
|
100
100
|
Please follow the [installation](#installation) instruction and execute the following JS code:
|
|
101
101
|
|
|
102
102
|
```javascript
|
|
103
|
-
var NotehubJs = require(
|
|
103
|
+
var NotehubJs = require("@blues-inc/notehub-js");
|
|
104
104
|
|
|
105
105
|
var defaultClient = NotehubJs.ApiClient.instance;
|
|
106
106
|
// Configure Bearer access token for authorization: personalAccessToken
|
|
107
|
-
var personalAccessToken = defaultClient.authentications[
|
|
108
|
-
personalAccessToken.accessToken = "YOUR ACCESS TOKEN"
|
|
107
|
+
var personalAccessToken = defaultClient.authentications["personalAccessToken"];
|
|
108
|
+
personalAccessToken.accessToken = "YOUR ACCESS TOKEN";
|
|
109
109
|
|
|
110
|
-
var api = new NotehubJs.AlertApi()
|
|
111
|
-
var projectOrProductUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // {String}
|
|
110
|
+
var api = new NotehubJs.AlertApi();
|
|
111
|
+
var projectOrProductUID = "app:2606f411-dea6-44a0-9743-1130f57d77d8"; // {String}
|
|
112
112
|
var opts = {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
pageSize: 50, // {Number}
|
|
114
|
+
pageNum: 1, // {Number}
|
|
115
|
+
monitorUID: "monitorUID_example", // {String}
|
|
116
116
|
};
|
|
117
|
-
api.getAlerts(projectOrProductUID, opts).then(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
api.getAlerts(projectOrProductUID, opts).then(
|
|
118
|
+
function (data) {
|
|
119
|
+
console.log(
|
|
120
|
+
"API called successfully. Returned data: " + JSON.stringify(data)
|
|
121
|
+
);
|
|
122
|
+
},
|
|
123
|
+
function (error) {
|
|
124
|
+
console.error(error);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
124
127
|
```
|
|
125
128
|
|
|
126
129
|
## Documentation for API Endpoints
|
|
@@ -191,6 +194,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
191
194
|
| _NotehubJs.ProjectApi_ | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectOrProductUID}/products |
|
|
192
195
|
| _NotehubJs.ProjectApi_ | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /v1/projects |
|
|
193
196
|
| _NotehubJs.ProjectApi_ | [**deleteDeviceFromFleets**](docs/ProjectApi.md#deleteDeviceFromFleets) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
|
|
197
|
+
| _NotehubJs.ProjectApi_ | [**deleteFirmware**](docs/ProjectApi.md#deleteFirmware) | **DELETE** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
194
198
|
| _NotehubJs.ProjectApi_ | [**deleteFleet**](docs/ProjectApi.md#deleteFleet) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
|
|
195
199
|
| _NotehubJs.ProjectApi_ | [**deleteFleetEnvironmentVariable**](docs/ProjectApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
196
200
|
| _NotehubJs.ProjectApi_ | [**deleteProduct**](docs/ProjectApi.md#deleteProduct) | **DELETE** /v1/projects/{projectOrProductUID}/products/{productUID} |
|
|
@@ -222,6 +226,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
222
226
|
| _NotehubJs.ProjectApi_ | [**setFleetEnvironmentVariables**](docs/ProjectApi.md#setFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
|
|
223
227
|
| _NotehubJs.ProjectApi_ | [**setGlobalEventTransformation**](docs/ProjectApi.md#setGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
|
|
224
228
|
| _NotehubJs.ProjectApi_ | [**setProjectEnvironmentVariables**](docs/ProjectApi.md#setProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
|
|
229
|
+
| _NotehubJs.ProjectApi_ | [**updateFirmware**](docs/ProjectApi.md#updateFirmware) | **POST** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
225
230
|
| _NotehubJs.ProjectApi_ | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
|
|
226
231
|
| _NotehubJs.ProjectApi_ | [**uploadFirmware**](docs/ProjectApi.md#uploadFirmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
227
232
|
| _NotehubJs.RouteApi_ | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectOrProductUID}/routes |
|
|
@@ -376,6 +381,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
376
381
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
377
382
|
- [NotehubJs.TwilioRoute](docs/TwilioRoute.md)
|
|
378
383
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
384
|
+
- [NotehubJs.UpdateHostFirmwareRequest](docs/UpdateHostFirmwareRequest.md)
|
|
379
385
|
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
380
386
|
- [NotehubJs.UsageData](docs/UsageData.md)
|
|
381
387
|
- [NotehubJs.UsageEventsData](docs/UsageEventsData.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.2.0
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
68
68
|
*/
|
|
69
69
|
this.defaultHeaders = {};
|
|
70
70
|
if (typeof window === "undefined") {
|
|
71
|
-
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.
|
|
71
|
+
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.2.0/Javascript";
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Authorization service.
|
|
32
32
|
* @module api/AuthorizationApi
|
|
33
|
-
* @version 6.
|
|
33
|
+
* @version 6.2.0
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* BillingAccount service.
|
|
32
32
|
* @module api/BillingAccountApi
|
|
33
|
-
* @version 6.
|
|
33
|
+
* @version 6.2.0
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -85,7 +85,7 @@ var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Get Billing Account Balance history
|
|
88
|
+
* Get Billing Account Balance history
|
|
89
89
|
* @param {String} billingAccountUID
|
|
90
90
|
* @param {Object} opts Optional parameters
|
|
91
91
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -118,7 +118,7 @@ var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Get Billing Account Balance history
|
|
121
|
+
* Get Billing Account Balance history
|
|
122
122
|
* @param {String} billingAccountUID
|
|
123
123
|
* @param {Object} opts Optional parameters
|
|
124
124
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
package/dist/api/DeviceApi.js
CHANGED
package/dist/api/EventApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
package/dist/api/MonitorApi.js
CHANGED
package/dist/api/ProjectApi.js
CHANGED
|
@@ -30,6 +30,7 @@ var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"))
|
|
|
30
30
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
31
31
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
32
32
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
33
|
+
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
33
34
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
34
35
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
35
36
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -51,7 +52,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
51
52
|
/**
|
|
52
53
|
* Project service.
|
|
53
54
|
* @module api/ProjectApi
|
|
54
|
-
* @version 6.
|
|
55
|
+
* @version 6.2.0
|
|
55
56
|
*/
|
|
56
57
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
57
58
|
/**
|
|
@@ -342,6 +343,59 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
348
|
+
* @param {String} projectOrProductUID
|
|
349
|
+
* @param {module:model/String} firmwareType
|
|
350
|
+
* @param {String} filename
|
|
351
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
352
|
+
*/
|
|
353
|
+
}, {
|
|
354
|
+
key: "deleteFirmwareWithHttpInfo",
|
|
355
|
+
value: function deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
|
|
356
|
+
var postBody = null;
|
|
357
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
358
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
359
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFirmware");
|
|
360
|
+
}
|
|
361
|
+
// verify the required parameter 'firmwareType' is set
|
|
362
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
363
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling deleteFirmware");
|
|
364
|
+
}
|
|
365
|
+
// verify the required parameter 'filename' is set
|
|
366
|
+
if (filename === undefined || filename === null) {
|
|
367
|
+
throw new _Error["default"]("Missing the required parameter 'filename' when calling deleteFirmware");
|
|
368
|
+
}
|
|
369
|
+
var pathParams = {
|
|
370
|
+
projectOrProductUID: projectOrProductUID,
|
|
371
|
+
firmwareType: firmwareType,
|
|
372
|
+
filename: filename
|
|
373
|
+
};
|
|
374
|
+
var queryParams = {};
|
|
375
|
+
var headerParams = {};
|
|
376
|
+
var formParams = {};
|
|
377
|
+
var authNames = ["personalAccessToken"];
|
|
378
|
+
var contentTypes = [];
|
|
379
|
+
var accepts = ["application/json"];
|
|
380
|
+
var returnType = null;
|
|
381
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
386
|
+
* @param {String} projectOrProductUID
|
|
387
|
+
* @param {module:model/String} firmwareType
|
|
388
|
+
* @param {String} filename
|
|
389
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
390
|
+
*/
|
|
391
|
+
}, {
|
|
392
|
+
key: "deleteFirmware",
|
|
393
|
+
value: function deleteFirmware(projectOrProductUID, firmwareType, filename) {
|
|
394
|
+
return this.deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
|
|
395
|
+
return response_and_data.data;
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
|
|
345
399
|
/**
|
|
346
400
|
* Delete Fleet
|
|
347
401
|
* @param {String} projectOrProductUID
|
|
@@ -1852,6 +1906,65 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1852
1906
|
});
|
|
1853
1907
|
}
|
|
1854
1908
|
|
|
1909
|
+
/**
|
|
1910
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1911
|
+
* @param {String} projectOrProductUID
|
|
1912
|
+
* @param {module:model/String} firmwareType
|
|
1913
|
+
* @param {String} filename
|
|
1914
|
+
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1915
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
1916
|
+
*/
|
|
1917
|
+
}, {
|
|
1918
|
+
key: "updateFirmwareWithHttpInfo",
|
|
1919
|
+
value: function updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1920
|
+
var postBody = updateHostFirmwareRequest;
|
|
1921
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1922
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1923
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFirmware");
|
|
1924
|
+
}
|
|
1925
|
+
// verify the required parameter 'firmwareType' is set
|
|
1926
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
1927
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling updateFirmware");
|
|
1928
|
+
}
|
|
1929
|
+
// verify the required parameter 'filename' is set
|
|
1930
|
+
if (filename === undefined || filename === null) {
|
|
1931
|
+
throw new _Error["default"]("Missing the required parameter 'filename' when calling updateFirmware");
|
|
1932
|
+
}
|
|
1933
|
+
// verify the required parameter 'updateHostFirmwareRequest' is set
|
|
1934
|
+
if (updateHostFirmwareRequest === undefined || updateHostFirmwareRequest === null) {
|
|
1935
|
+
throw new _Error["default"]("Missing the required parameter 'updateHostFirmwareRequest' when calling updateFirmware");
|
|
1936
|
+
}
|
|
1937
|
+
var pathParams = {
|
|
1938
|
+
projectOrProductUID: projectOrProductUID,
|
|
1939
|
+
firmwareType: firmwareType,
|
|
1940
|
+
filename: filename
|
|
1941
|
+
};
|
|
1942
|
+
var queryParams = {};
|
|
1943
|
+
var headerParams = {};
|
|
1944
|
+
var formParams = {};
|
|
1945
|
+
var authNames = ["personalAccessToken"];
|
|
1946
|
+
var contentTypes = ["application/json"];
|
|
1947
|
+
var accepts = ["application/json"];
|
|
1948
|
+
var returnType = _FirmwareInfo["default"];
|
|
1949
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1954
|
+
* @param {String} projectOrProductUID
|
|
1955
|
+
* @param {module:model/String} firmwareType
|
|
1956
|
+
* @param {String} filename
|
|
1957
|
+
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1958
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1959
|
+
*/
|
|
1960
|
+
}, {
|
|
1961
|
+
key: "updateFirmware",
|
|
1962
|
+
value: function updateFirmware(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1963
|
+
return this.updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest).then(function (response_and_data) {
|
|
1964
|
+
return response_and_data.data;
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1855
1968
|
/**
|
|
1856
1969
|
* Update Fleet
|
|
1857
1970
|
* @param {String} projectOrProductUID
|
package/dist/api/RouteApi.js
CHANGED
package/dist/api/UsageApi.js
CHANGED
package/dist/api/WebhookApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -873,6 +873,12 @@ Object.defineProperty(exports, "UpdateFleetRequest", {
|
|
|
873
873
|
return _UpdateFleetRequest["default"];
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
+
Object.defineProperty(exports, "UpdateHostFirmwareRequest", {
|
|
877
|
+
enumerable: true,
|
|
878
|
+
get: function get() {
|
|
879
|
+
return _UpdateHostFirmwareRequest["default"];
|
|
880
|
+
}
|
|
881
|
+
});
|
|
876
882
|
Object.defineProperty(exports, "UploadMetadata", {
|
|
877
883
|
enumerable: true,
|
|
878
884
|
get: function get() {
|
|
@@ -1080,6 +1086,7 @@ var _ThingworxRoute = _interopRequireDefault(require("./model/ThingworxRoute"));
|
|
|
1080
1086
|
var _TowerLocation = _interopRequireDefault(require("./model/TowerLocation"));
|
|
1081
1087
|
var _TwilioRoute = _interopRequireDefault(require("./model/TwilioRoute"));
|
|
1082
1088
|
var _UpdateFleetRequest = _interopRequireDefault(require("./model/UpdateFleetRequest"));
|
|
1089
|
+
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("./model/UpdateHostFirmwareRequest"));
|
|
1083
1090
|
var _UploadMetadata = _interopRequireDefault(require("./model/UploadMetadata"));
|
|
1084
1091
|
var _UsageData = _interopRequireDefault(require("./model/UsageData"));
|
|
1085
1092
|
var _UsageEventsData = _interopRequireDefault(require("./model/UsageEventsData"));
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.2.0
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.2.0
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/AwsRoute.js
CHANGED
package/dist/model/AzureRoute.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 6.
|
|
33
|
+
* @version 6.2.0
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/BlynkRoute.js
CHANGED
package/dist/model/Body.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CancelJobRun200Response model module.
|
|
31
31
|
* @module model/CancelJobRun200Response
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CancelJobRun200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CreateFleetRequest model module.
|
|
29
29
|
* @module model/CreateFleetRequest
|
|
30
|
-
* @version 6.
|
|
30
|
+
* @version 6.2.0
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateJob201Response model module.
|
|
31
31
|
* @module model/CreateJob201Response
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateJob201Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProductRequest model module.
|
|
31
31
|
* @module model/CreateProductRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 6.
|
|
32
|
+
* @version 6.2.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 6.
|
|
29
|
+
* @version 6.2.0
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CurrentFirmware model module.
|
|
29
29
|
* @module model/CurrentFirmware
|
|
30
|
-
* @version 6.
|
|
30
|
+
* @version 6.2.0
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
package/dist/model/DataField.js
CHANGED