@blues-inc/notehub-js 1.0.23-beta.5 → 1.0.23-beta.7
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 +17 -9
- package/dist/ApiClient.js +3 -3
- package/dist/api/AlertApi.js +2 -2
- package/dist/api/AuthorizationApi.js +2 -2
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +2 -2
- package/dist/api/EventApi.js +2 -2
- package/dist/api/MonitorApi.js +2 -2
- package/dist/api/ProjectApi.js +233 -108
- package/dist/api/RouteApi.js +2 -2
- package/dist/index.js +82 -33
- package/dist/model/Alert.js +2 -2
- package/dist/model/AlertDataInner.js +2 -2
- package/dist/model/AlertNotificationsInner.js +2 -2
- package/dist/model/Aws.js +2 -2
- package/dist/model/Azure.js +2 -2
- package/dist/model/BillingAccount.js +2 -2
- package/dist/model/BillingAccountRole.js +1 -1
- package/dist/model/Body.js +2 -2
- package/dist/model/CloneProjectRequest.js +2 -2
- package/dist/model/Contact.js +2 -2
- package/dist/model/CreateFleetRequest.js +2 -2
- package/dist/model/CreateMonitor.js +2 -2
- package/dist/model/CreateProductRequest.js +2 -2
- package/dist/model/CreateProjectRequest.js +2 -2
- package/dist/model/CurrentFirmware.js +105 -0
- package/dist/model/DFUEnv.js +2 -2
- package/dist/model/DFUState.js +2 -2
- package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
- package/dist/model/Device.js +2 -2
- package/dist/model/DeviceOtaStateMachine.js +152 -0
- package/dist/model/DeviceOtaStateMachineNode.js +132 -0
- package/dist/model/DeviceOtaStatus.js +139 -0
- package/dist/model/{FirmwareStatus.js → DeviceOtaStatusCurrent.js} +42 -28
- package/dist/model/{OTAStatusList.js → DeviceOtaStatusPage.js} +25 -25
- package/dist/model/DeviceSession.js +2 -2
- package/dist/model/DeviceTowerInfo.js +2 -2
- package/dist/model/DeviceUsage.js +2 -2
- package/dist/model/DfuActionRequest.js +92 -0
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvironmentVariables.js +2 -2
- package/dist/model/Error.js +2 -2
- package/dist/model/Event.js +2 -2
- package/dist/model/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +2 -2
- package/dist/model/Fleet.js +2 -2
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetBillingAccounts200Response.js +2 -2
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
- package/dist/model/GetDeviceLatest200Response.js +2 -2
- package/dist/model/GetDevicePublicKey200Response.js +2 -2
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
- package/dist/model/GetProjectDevices200Response.js +2 -2
- package/dist/model/GetProjectEvents200Response.js +2 -2
- package/dist/model/GetProjectEventsByCursor200Response.js +2 -2
- package/dist/model/GetProjectFleets200Response.js +2 -2
- package/dist/model/GetProjectMembers200Response.js +2 -2
- package/dist/model/GetProjectProducts200Response.js +2 -2
- package/dist/model/GetProjects200Response.js +2 -2
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +2 -2
- package/dist/model/Google.js +2 -2
- package/dist/model/HandleNoteChanges200Response.js +2 -2
- package/dist/model/HandleNoteGet200Response.js +2 -2
- package/dist/model/HandleNoteSignal200Response.js +2 -2
- package/dist/model/HandleNotefileChanges200Response.js +2 -2
- package/dist/model/HandleNotefileChangesPending200Response.js +2 -2
- package/dist/model/HandleNotefileDeleteRequest.js +2 -2
- package/dist/model/Http.js +2 -2
- package/dist/model/HttpFilter.js +2 -2
- package/dist/model/HttpTransform.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login200Response.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/Monitor.js +2 -2
- package/dist/model/MonitorAlertRoutesInner.js +2 -2
- package/dist/model/Mqtt.js +2 -2
- package/dist/model/Note.js +2 -2
- package/dist/model/PostProvisionProjectDeviceRequest.js +2 -2
- package/dist/model/Product.js +2 -2
- package/dist/model/Project.js +2 -2
- package/dist/model/ProjectMember.js +2 -2
- package/dist/model/Proxy.js +2 -2
- package/dist/model/PutDeviceFleetsRequest.js +2 -2
- package/dist/model/Radresponder.js +2 -2
- package/dist/model/Role.js +1 -1
- package/dist/model/Route.js +2 -2
- package/dist/model/RouteSchema.js +2 -2
- package/dist/model/Slack.js +2 -2
- package/dist/model/SlackBearerNotification.js +2 -2
- package/dist/model/SlackWebHookNotification.js +2 -2
- package/dist/model/Snowflake.js +2 -2
- package/dist/model/SnowflakeTransform.js +2 -2
- package/dist/model/Thingworx.js +2 -2
- package/dist/model/TowerLocation.js +2 -2
- package/dist/model/Twilio.js +2 -2
- package/dist/model/UpdateFleetRequest.js +2 -2
- package/dist/model/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +2 -2
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/{OTAUpdateStatus.js → UserDfuStateMachineStatus.js} +46 -41
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +2 -2
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @blues-inc/notehub-js
|
|
2
2
|
|
|
3
3
|
NotehubJs - JavaScript client for @blues-inc/notehub-js
|
|
4
|
-
The OpenAPI definition for the Notehub.io API.
|
|
4
|
+
The OpenAPI definition for the Notehub.io API.
|
|
5
5
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.1.0
|
|
9
|
-
- Package version: 1.0.23-beta.
|
|
9
|
+
- Package version: 1.0.23-beta.7
|
|
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
|
|
|
@@ -180,9 +180,12 @@ Class | Method | HTTP request | Description
|
|
|
180
180
|
*NotehubJs.ProjectApi* | [**deleteFleetEnvironmentVariable**](docs/ProjectApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
181
181
|
*NotehubJs.ProjectApi* | [**deleteProject**](docs/ProjectApi.md#deleteProject) | **DELETE** /v1/projects/{projectUID} |
|
|
182
182
|
*NotehubJs.ProjectApi* | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
183
|
+
*NotehubJs.ProjectApi* | [**dfuAction**](docs/ProjectApi.md#dfuAction) | **POST** /v1/projects/{projectUID}/dfu/{firmwareType}/{action} |
|
|
183
184
|
*NotehubJs.ProjectApi* | [**disableGlobalTransformation**](docs/ProjectApi.md#disableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/disable |
|
|
184
185
|
*NotehubJs.ProjectApi* | [**enableGlobalTransformation**](docs/ProjectApi.md#enableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/enable |
|
|
186
|
+
*NotehubJs.ProjectApi* | [**getDeviceDfuStatus**](docs/ProjectApi.md#getDeviceDfuStatus) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status |
|
|
185
187
|
*NotehubJs.ProjectApi* | [**getDeviceFleets**](docs/ProjectApi.md#getDeviceFleets) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
188
|
+
*NotehubJs.ProjectApi* | [**getDevicesDfuStatus**](docs/ProjectApi.md#getDevicesDfuStatus) | **GET** /v1/projects/{projectUID}/dfu/{firmwareType}/status |
|
|
186
189
|
*NotehubJs.ProjectApi* | [**getFirmwareInfo**](docs/ProjectApi.md#getFirmwareInfo) | **GET** /v1/projects/{projectUID}/firmware |
|
|
187
190
|
*NotehubJs.ProjectApi* | [**getFleetEnvironmentVariables**](docs/ProjectApi.md#getFleetEnvironmentVariables) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
|
|
188
191
|
*NotehubJs.ProjectApi* | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /v1/projects/{projectUID} |
|
|
@@ -190,7 +193,6 @@ Class | Method | HTTP request | Description
|
|
|
190
193
|
*NotehubJs.ProjectApi* | [**getProjectEnvironmentVariables**](docs/ProjectApi.md#getProjectEnvironmentVariables) | **GET** /v1/projects/{projectUID}/environment_variables |
|
|
191
194
|
*NotehubJs.ProjectApi* | [**getProjectFleets**](docs/ProjectApi.md#getProjectFleets) | **GET** /v1/projects/{projectUID}/fleets |
|
|
192
195
|
*NotehubJs.ProjectApi* | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectUID}/members |
|
|
193
|
-
*NotehubJs.ProjectApi* | [**getProjectOTAStatus**](docs/ProjectApi.md#getProjectOTAStatus) | **GET** /v1/projects/{projectUID}/ota/status |
|
|
194
196
|
*NotehubJs.ProjectApi* | [**getProjectProducts**](docs/ProjectApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
|
|
195
197
|
*NotehubJs.ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
|
|
196
198
|
*NotehubJs.ProjectApi* | [**putDeviceFleets**](docs/ProjectApi.md#putDeviceFleets) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
@@ -198,7 +200,6 @@ Class | Method | HTTP request | Description
|
|
|
198
200
|
*NotehubJs.ProjectApi* | [**putProjectEnvironmentVariables**](docs/ProjectApi.md#putProjectEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/environment_variables |
|
|
199
201
|
*NotehubJs.ProjectApi* | [**setGlobalTransformation**](docs/ProjectApi.md#setGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation |
|
|
200
202
|
*NotehubJs.ProjectApi* | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectUID}/fleets/{fleetUID} |
|
|
201
|
-
*NotehubJs.ProjectApi* | [**updateProjectFirmware**](docs/ProjectApi.md#updateProjectFirmware) | **POST** /v1/projects/{projectUID}/ota/update |
|
|
202
203
|
*NotehubJs.RouteApi* | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectUID}/routes |
|
|
203
204
|
*NotehubJs.RouteApi* | [**deleteRoute**](docs/RouteApi.md#deleteRoute) | **DELETE** /v1/projects/{projectUID}/routes/{routeUID} |
|
|
204
205
|
*NotehubJs.RouteApi* | [**getRoute**](docs/RouteApi.md#getRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID} |
|
|
@@ -223,19 +224,26 @@ Class | Method | HTTP request | Description
|
|
|
223
224
|
- [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
|
|
224
225
|
- [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
|
|
225
226
|
- [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
|
|
227
|
+
- [NotehubJs.CurrentFirmware](docs/CurrentFirmware.md)
|
|
226
228
|
- [NotehubJs.DFUEnv](docs/DFUEnv.md)
|
|
227
229
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
228
230
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
229
231
|
- [NotehubJs.Device](docs/Device.md)
|
|
232
|
+
- [NotehubJs.DeviceOtaStateMachine](docs/DeviceOtaStateMachine.md)
|
|
233
|
+
- [NotehubJs.DeviceOtaStateMachineNode](docs/DeviceOtaStateMachineNode.md)
|
|
234
|
+
- [NotehubJs.DeviceOtaStatus](docs/DeviceOtaStatus.md)
|
|
235
|
+
- [NotehubJs.DeviceOtaStatusCurrent](docs/DeviceOtaStatusCurrent.md)
|
|
236
|
+
- [NotehubJs.DeviceOtaStatusPage](docs/DeviceOtaStatusPage.md)
|
|
230
237
|
- [NotehubJs.DeviceSession](docs/DeviceSession.md)
|
|
231
238
|
- [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
|
|
232
239
|
- [NotehubJs.DeviceUsage](docs/DeviceUsage.md)
|
|
240
|
+
- [NotehubJs.DfuActionRequest](docs/DfuActionRequest.md)
|
|
233
241
|
- [NotehubJs.EmailNotification](docs/EmailNotification.md)
|
|
234
242
|
- [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
|
|
235
243
|
- [NotehubJs.Error](docs/Error.md)
|
|
236
244
|
- [NotehubJs.Event](docs/Event.md)
|
|
245
|
+
- [NotehubJs.Firmware](docs/Firmware.md)
|
|
237
246
|
- [NotehubJs.FirmwareInfo](docs/FirmwareInfo.md)
|
|
238
|
-
- [NotehubJs.FirmwareStatus](docs/FirmwareStatus.md)
|
|
239
247
|
- [NotehubJs.Fleet](docs/Fleet.md)
|
|
240
248
|
- [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
|
|
241
249
|
- [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
|
|
@@ -272,10 +280,6 @@ Class | Method | HTTP request | Description
|
|
|
272
280
|
- [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
|
|
273
281
|
- [NotehubJs.Mqtt](docs/Mqtt.md)
|
|
274
282
|
- [NotehubJs.Note](docs/Note.md)
|
|
275
|
-
- [NotehubJs.OTAStatus](docs/OTAStatus.md)
|
|
276
|
-
- [NotehubJs.OTAStatusList](docs/OTAStatusList.md)
|
|
277
|
-
- [NotehubJs.OTAUpdateRequest](docs/OTAUpdateRequest.md)
|
|
278
|
-
- [NotehubJs.OTAUpdateStatus](docs/OTAUpdateStatus.md)
|
|
279
283
|
- [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
|
|
280
284
|
- [NotehubJs.Product](docs/Product.md)
|
|
281
285
|
- [NotehubJs.Project](docs/Project.md)
|
|
@@ -295,7 +299,11 @@ Class | Method | HTTP request | Description
|
|
|
295
299
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
296
300
|
- [NotehubJs.Twilio](docs/Twilio.md)
|
|
297
301
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
302
|
+
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
298
303
|
- [NotehubJs.UserDbRoute](docs/UserDbRoute.md)
|
|
304
|
+
- [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
|
|
305
|
+
- [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.md)
|
|
306
|
+
- [NotehubJs.UserFirmwareInfo](docs/UserFirmwareInfo.md)
|
|
299
307
|
|
|
300
308
|
|
|
301
309
|
## Documentation for Authorization
|
package/dist/ApiClient.js
CHANGED
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.1.0
|
|
20
20
|
* 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
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 1.0.23-beta.
|
|
29
|
+
* @version 1.0.23-beta.7
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -74,7 +74,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
74
74
|
* @default {}
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {
|
|
77
|
-
'User-Agent': 'OpenAPI-Generator/1.0.23-beta.
|
|
77
|
+
'User-Agent': 'OpenAPI-Generator/1.0.23-beta.7/Javascript'
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.1.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 1.0.23-beta.
|
|
31
|
+
* @version 1.0.23-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.1.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Authorization service.
|
|
30
30
|
* @module api/AuthorizationApi
|
|
31
|
-
* @version 1.0.23-beta.
|
|
31
|
+
* @version 1.0.23-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.1.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 1.0.23-beta.
|
|
31
|
+
* @version 1.0.23-beta.7
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -32,7 +32,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
32
32
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
33
33
|
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); } /**
|
|
34
34
|
* Notehub API
|
|
35
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
35
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
36
36
|
*
|
|
37
37
|
* The version of the OpenAPI document: 1.1.0
|
|
38
38
|
* Contact: engineering@blues.io
|
|
@@ -45,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
/**
|
|
46
46
|
* Device service.
|
|
47
47
|
* @module api/DeviceApi
|
|
48
|
-
* @version 1.0.23-beta.
|
|
48
|
+
* @version 1.0.23-beta.7
|
|
49
49
|
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.1.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 1.0.23-beta.
|
|
33
|
+
* @version 1.0.23-beta.7
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.1.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 1.0.23-beta.
|
|
32
|
+
* @version 1.0.23-beta.7
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -10,6 +10,9 @@ var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRe
|
|
|
10
10
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
11
11
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
12
12
|
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
13
|
+
var _DeviceOtaStatus = _interopRequireDefault(require("../model/DeviceOtaStatus"));
|
|
14
|
+
var _DeviceOtaStatusPage = _interopRequireDefault(require("../model/DeviceOtaStatusPage"));
|
|
15
|
+
var _DfuActionRequest = _interopRequireDefault(require("../model/DfuActionRequest"));
|
|
13
16
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
14
17
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
15
18
|
var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
|
|
@@ -18,9 +21,6 @@ var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetP
|
|
|
18
21
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
19
22
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
20
23
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
21
|
-
var _OTAStatusList = _interopRequireDefault(require("../model/OTAStatusList"));
|
|
22
|
-
var _OTAUpdateRequest = _interopRequireDefault(require("../model/OTAUpdateRequest"));
|
|
23
|
-
var _OTAUpdateStatus = _interopRequireDefault(require("../model/OTAUpdateStatus"));
|
|
24
24
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
25
25
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
26
26
|
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
@@ -33,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
34
|
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); } /**
|
|
35
35
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
36
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
37
37
|
*
|
|
38
38
|
* The version of the OpenAPI document: 1.1.0
|
|
39
39
|
* Contact: engineering@blues.io
|
|
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
/**
|
|
47
47
|
* Project service.
|
|
48
48
|
* @module api/ProjectApi
|
|
49
|
-
* @version 1.0.23-beta.
|
|
49
|
+
* @version 1.0.23-beta.7
|
|
50
50
|
*/
|
|
51
51
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -469,6 +469,92 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Update/cancel host or notecard firmware updates
|
|
474
|
+
* @param {String} projectUID
|
|
475
|
+
* @param {module:model/String} firmwareType
|
|
476
|
+
* @param {module:model/String} action
|
|
477
|
+
* @param {Object} opts Optional parameters
|
|
478
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
479
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
480
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
481
|
+
* @param {String} opts.fleetUID
|
|
482
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
483
|
+
* @param {Array.<String>} opts.location Location filter
|
|
484
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
485
|
+
* @param {Array.<String>} opts.productUID
|
|
486
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
487
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
488
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
489
|
+
*/
|
|
490
|
+
}, {
|
|
491
|
+
key: "dfuActionWithHttpInfo",
|
|
492
|
+
value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
|
|
493
|
+
opts = opts || {};
|
|
494
|
+
var postBody = opts['dfuActionRequest'];
|
|
495
|
+
// verify the required parameter 'projectUID' is set
|
|
496
|
+
if (projectUID === undefined || projectUID === null) {
|
|
497
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
|
|
498
|
+
}
|
|
499
|
+
// verify the required parameter 'firmwareType' is set
|
|
500
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
501
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling dfuAction");
|
|
502
|
+
}
|
|
503
|
+
// verify the required parameter 'action' is set
|
|
504
|
+
if (action === undefined || action === null) {
|
|
505
|
+
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
506
|
+
}
|
|
507
|
+
var pathParams = {
|
|
508
|
+
'projectUID': projectUID,
|
|
509
|
+
'firmwareType': firmwareType,
|
|
510
|
+
'action': action
|
|
511
|
+
};
|
|
512
|
+
var queryParams = {
|
|
513
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
514
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
515
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
516
|
+
'fleetUID': opts['fleetUID'],
|
|
517
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
518
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
519
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
520
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
521
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
522
|
+
};
|
|
523
|
+
var headerParams = {};
|
|
524
|
+
var formParams = {};
|
|
525
|
+
var authNames = ['api_key'];
|
|
526
|
+
var contentTypes = ['application/json'];
|
|
527
|
+
var accepts = ['application/json'];
|
|
528
|
+
var returnType = null;
|
|
529
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Update/cancel host or notecard firmware updates
|
|
534
|
+
* @param {String} projectUID
|
|
535
|
+
* @param {module:model/String} firmwareType
|
|
536
|
+
* @param {module:model/String} action
|
|
537
|
+
* @param {Object} opts Optional parameters
|
|
538
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
539
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
540
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
541
|
+
* @param {String} opts.fleetUID
|
|
542
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
543
|
+
* @param {Array.<String>} opts.location Location filter
|
|
544
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
545
|
+
* @param {Array.<String>} opts.productUID
|
|
546
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
547
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
548
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
549
|
+
*/
|
|
550
|
+
}, {
|
|
551
|
+
key: "dfuAction",
|
|
552
|
+
value: function dfuAction(projectUID, firmwareType, action, opts) {
|
|
553
|
+
return this.dfuActionWithHttpInfo(projectUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
554
|
+
return response_and_data.data;
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
|
|
472
558
|
/**
|
|
473
559
|
* Disable the project-level event JSONata transformation
|
|
474
560
|
* @param {String} projectUID
|
|
@@ -547,6 +633,59 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
547
633
|
});
|
|
548
634
|
}
|
|
549
635
|
|
|
636
|
+
/**
|
|
637
|
+
* Get device DFU status for host or Notecard firmware
|
|
638
|
+
* @param {String} projectUID
|
|
639
|
+
* @param {String} deviceUID
|
|
640
|
+
* @param {module:model/String} firmwareType
|
|
641
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceOtaStatus} and HTTP response
|
|
642
|
+
*/
|
|
643
|
+
}, {
|
|
644
|
+
key: "getDeviceDfuStatusWithHttpInfo",
|
|
645
|
+
value: function getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType) {
|
|
646
|
+
var postBody = null;
|
|
647
|
+
// verify the required parameter 'projectUID' is set
|
|
648
|
+
if (projectUID === undefined || projectUID === null) {
|
|
649
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuStatus");
|
|
650
|
+
}
|
|
651
|
+
// verify the required parameter 'deviceUID' is set
|
|
652
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
653
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceDfuStatus");
|
|
654
|
+
}
|
|
655
|
+
// verify the required parameter 'firmwareType' is set
|
|
656
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
657
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
658
|
+
}
|
|
659
|
+
var pathParams = {
|
|
660
|
+
'projectUID': projectUID,
|
|
661
|
+
'deviceUID': deviceUID,
|
|
662
|
+
'firmwareType': firmwareType
|
|
663
|
+
};
|
|
664
|
+
var queryParams = {};
|
|
665
|
+
var headerParams = {};
|
|
666
|
+
var formParams = {};
|
|
667
|
+
var authNames = ['api_key'];
|
|
668
|
+
var contentTypes = [];
|
|
669
|
+
var accepts = ['application/json'];
|
|
670
|
+
var returnType = _DeviceOtaStatus["default"];
|
|
671
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Get device DFU status for host or Notecard firmware
|
|
676
|
+
* @param {String} projectUID
|
|
677
|
+
* @param {String} deviceUID
|
|
678
|
+
* @param {module:model/String} firmwareType
|
|
679
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceOtaStatus}
|
|
680
|
+
*/
|
|
681
|
+
}, {
|
|
682
|
+
key: "getDeviceDfuStatus",
|
|
683
|
+
value: function getDeviceDfuStatus(projectUID, deviceUID, firmwareType) {
|
|
684
|
+
return this.getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
|
|
685
|
+
return response_and_data.data;
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
|
|
550
689
|
/**
|
|
551
690
|
* Get Device Fleets
|
|
552
691
|
* @param {String} projectUID
|
|
@@ -593,6 +732,95 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
593
732
|
});
|
|
594
733
|
}
|
|
595
734
|
|
|
735
|
+
/**
|
|
736
|
+
* Get host or Notecard DFU status for all devices that match the filter criteria
|
|
737
|
+
* @param {String} projectUID
|
|
738
|
+
* @param {module:model/String} firmwareType
|
|
739
|
+
* @param {Object} opts Optional parameters
|
|
740
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
741
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
742
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
743
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
744
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
745
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
746
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
747
|
+
* @param {String} opts.fleetUID
|
|
748
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
749
|
+
* @param {Array.<String>} opts.location Location filter
|
|
750
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
751
|
+
* @param {Array.<String>} opts.productUID
|
|
752
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
753
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceOtaStatusPage} and HTTP response
|
|
754
|
+
*/
|
|
755
|
+
}, {
|
|
756
|
+
key: "getDevicesDfuStatusWithHttpInfo",
|
|
757
|
+
value: function getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts) {
|
|
758
|
+
opts = opts || {};
|
|
759
|
+
var postBody = null;
|
|
760
|
+
// verify the required parameter 'projectUID' is set
|
|
761
|
+
if (projectUID === undefined || projectUID === null) {
|
|
762
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuStatus");
|
|
763
|
+
}
|
|
764
|
+
// verify the required parameter 'firmwareType' is set
|
|
765
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
766
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
767
|
+
}
|
|
768
|
+
var pathParams = {
|
|
769
|
+
'projectUID': projectUID,
|
|
770
|
+
'firmwareType': firmwareType
|
|
771
|
+
};
|
|
772
|
+
var queryParams = {
|
|
773
|
+
'pageSize': opts['pageSize'],
|
|
774
|
+
'pageNum': opts['pageNum'],
|
|
775
|
+
'sortBy': opts['sortBy'],
|
|
776
|
+
'sortOrder': opts['sortOrder'],
|
|
777
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
778
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
779
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
780
|
+
'fleetUID': opts['fleetUID'],
|
|
781
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
782
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
783
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
784
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
785
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
786
|
+
};
|
|
787
|
+
var headerParams = {};
|
|
788
|
+
var formParams = {};
|
|
789
|
+
var authNames = ['api_key'];
|
|
790
|
+
var contentTypes = [];
|
|
791
|
+
var accepts = ['application/json'];
|
|
792
|
+
var returnType = _DeviceOtaStatusPage["default"];
|
|
793
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Get host or Notecard DFU status for all devices that match the filter criteria
|
|
798
|
+
* @param {String} projectUID
|
|
799
|
+
* @param {module:model/String} firmwareType
|
|
800
|
+
* @param {Object} opts Optional parameters
|
|
801
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
802
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
803
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
804
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
805
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
806
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
807
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
808
|
+
* @param {String} opts.fleetUID
|
|
809
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
810
|
+
* @param {Array.<String>} opts.location Location filter
|
|
811
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
812
|
+
* @param {Array.<String>} opts.productUID
|
|
813
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
814
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceOtaStatusPage}
|
|
815
|
+
*/
|
|
816
|
+
}, {
|
|
817
|
+
key: "getDevicesDfuStatus",
|
|
818
|
+
value: function getDevicesDfuStatus(projectUID, firmwareType, opts) {
|
|
819
|
+
return this.getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
|
|
820
|
+
return response_and_data.data;
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
|
|
596
824
|
/**
|
|
597
825
|
* Get Available Firmware Information
|
|
598
826
|
* @param {String} projectUID
|
|
@@ -898,64 +1126,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
1126
|
});
|
|
899
1127
|
}
|
|
900
1128
|
|
|
901
|
-
/**
|
|
902
|
-
* Get Project OTA Status
|
|
903
|
-
* @param {String} projectUID
|
|
904
|
-
* @param {Object} opts Optional parameters
|
|
905
|
-
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
906
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
907
|
-
* @param {Array.<String>} opts.deviceTags
|
|
908
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
909
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
910
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAStatusList>} and HTTP response
|
|
911
|
-
*/
|
|
912
|
-
}, {
|
|
913
|
-
key: "getProjectOTAStatusWithHttpInfo",
|
|
914
|
-
value: function getProjectOTAStatusWithHttpInfo(projectUID, opts) {
|
|
915
|
-
opts = opts || {};
|
|
916
|
-
var postBody = null;
|
|
917
|
-
// verify the required parameter 'projectUID' is set
|
|
918
|
-
if (projectUID === undefined || projectUID === null) {
|
|
919
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectOTAStatus");
|
|
920
|
-
}
|
|
921
|
-
var pathParams = {
|
|
922
|
-
'projectUID': projectUID
|
|
923
|
-
};
|
|
924
|
-
var queryParams = {
|
|
925
|
-
'deviceUIDs': this.apiClient.buildCollectionParam(opts['deviceUIDs'], 'multi'),
|
|
926
|
-
'fleetUIDs': this.apiClient.buildCollectionParam(opts['fleetUIDs'], 'multi'),
|
|
927
|
-
'deviceTags': this.apiClient.buildCollectionParam(opts['deviceTags'], 'multi'),
|
|
928
|
-
'pageSize': opts['pageSize'],
|
|
929
|
-
'pageNum': opts['pageNum']
|
|
930
|
-
};
|
|
931
|
-
var headerParams = {};
|
|
932
|
-
var formParams = {};
|
|
933
|
-
var authNames = ['api_key'];
|
|
934
|
-
var contentTypes = [];
|
|
935
|
-
var accepts = ['application/json'];
|
|
936
|
-
var returnType = [_OTAStatusList["default"]];
|
|
937
|
-
return this.apiClient.callApi('/v1/projects/{projectUID}/ota/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Get Project OTA Status
|
|
942
|
-
* @param {String} projectUID
|
|
943
|
-
* @param {Object} opts Optional parameters
|
|
944
|
-
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
945
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
946
|
-
* @param {Array.<String>} opts.deviceTags
|
|
947
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
948
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
949
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAStatusList>}
|
|
950
|
-
*/
|
|
951
|
-
}, {
|
|
952
|
-
key: "getProjectOTAStatus",
|
|
953
|
-
value: function getProjectOTAStatus(projectUID, opts) {
|
|
954
|
-
return this.getProjectOTAStatusWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
955
|
-
return response_and_data.data;
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
|
|
959
1129
|
/**
|
|
960
1130
|
* Get Products within a Project
|
|
961
1131
|
* @param {String} projectUID
|
|
@@ -1270,50 +1440,5 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1440
|
return response_and_data.data;
|
|
1271
1441
|
});
|
|
1272
1442
|
}
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* Update Project Firmware
|
|
1276
|
-
* @param {String} projectUID
|
|
1277
|
-
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1278
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAUpdateStatus>} and HTTP response
|
|
1279
|
-
*/
|
|
1280
|
-
}, {
|
|
1281
|
-
key: "updateProjectFirmwareWithHttpInfo",
|
|
1282
|
-
value: function updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest) {
|
|
1283
|
-
var postBody = oTAUpdateRequest;
|
|
1284
|
-
// verify the required parameter 'projectUID' is set
|
|
1285
|
-
if (projectUID === undefined || projectUID === null) {
|
|
1286
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateProjectFirmware");
|
|
1287
|
-
}
|
|
1288
|
-
// verify the required parameter 'oTAUpdateRequest' is set
|
|
1289
|
-
if (oTAUpdateRequest === undefined || oTAUpdateRequest === null) {
|
|
1290
|
-
throw new _Error["default"]("Missing the required parameter 'oTAUpdateRequest' when calling updateProjectFirmware");
|
|
1291
|
-
}
|
|
1292
|
-
var pathParams = {
|
|
1293
|
-
'projectUID': projectUID
|
|
1294
|
-
};
|
|
1295
|
-
var queryParams = {};
|
|
1296
|
-
var headerParams = {};
|
|
1297
|
-
var formParams = {};
|
|
1298
|
-
var authNames = ['api_key'];
|
|
1299
|
-
var contentTypes = ['application/json'];
|
|
1300
|
-
var accepts = ['application/json'];
|
|
1301
|
-
var returnType = [_OTAUpdateStatus["default"]];
|
|
1302
|
-
return this.apiClient.callApi('/v1/projects/{projectUID}/ota/update', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* Update Project Firmware
|
|
1307
|
-
* @param {String} projectUID
|
|
1308
|
-
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1309
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAUpdateStatus>}
|
|
1310
|
-
*/
|
|
1311
|
-
}, {
|
|
1312
|
-
key: "updateProjectFirmware",
|
|
1313
|
-
value: function updateProjectFirmware(projectUID, oTAUpdateRequest) {
|
|
1314
|
-
return this.updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest).then(function (response_and_data) {
|
|
1315
|
-
return response_and_data.data;
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
1443
|
}]);
|
|
1319
1444
|
}();
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.1.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 1.0.23-beta.
|
|
33
|
+
* @version 1.0.23-beta.7
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|