@blues-inc/notehub-js 1.0.23-beta.7 → 1.0.23-beta.8

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.
Files changed (106) hide show
  1. package/README.md +8 -16
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +1 -1
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/MonitorApi.js +1 -1
  9. package/dist/api/ProjectApi.js +107 -232
  10. package/dist/api/RouteApi.js +1 -1
  11. package/dist/index.js +33 -82
  12. package/dist/model/Alert.js +1 -1
  13. package/dist/model/AlertDataInner.js +1 -1
  14. package/dist/model/AlertNotificationsInner.js +1 -1
  15. package/dist/model/Aws.js +1 -1
  16. package/dist/model/Azure.js +1 -1
  17. package/dist/model/BillingAccount.js +1 -1
  18. package/dist/model/Body.js +1 -1
  19. package/dist/model/CloneProjectRequest.js +1 -1
  20. package/dist/model/Contact.js +1 -1
  21. package/dist/model/CreateFleetRequest.js +1 -1
  22. package/dist/model/CreateMonitor.js +1 -1
  23. package/dist/model/CreateProductRequest.js +1 -1
  24. package/dist/model/CreateProjectRequest.js +1 -1
  25. package/dist/model/DFUEnv.js +1 -1
  26. package/dist/model/DFUState.js +1 -1
  27. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  28. package/dist/model/Device.js +1 -1
  29. package/dist/model/DeviceSession.js +1 -1
  30. package/dist/model/DeviceTowerInfo.js +1 -1
  31. package/dist/model/DeviceUsage.js +1 -1
  32. package/dist/model/EmailNotification.js +1 -1
  33. package/dist/model/EnvironmentVariables.js +1 -1
  34. package/dist/model/Error.js +1 -1
  35. package/dist/model/Event.js +1 -1
  36. package/dist/model/FirmwareInfo.js +1 -1
  37. package/dist/model/{DeviceOtaStatusCurrent.js → FirmwareStatus.js} +27 -41
  38. package/dist/model/Fleet.js +1 -1
  39. package/dist/model/GetAlerts200Response.js +1 -1
  40. package/dist/model/GetBillingAccounts200Response.js +1 -1
  41. package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
  42. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  43. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  44. package/dist/model/GetDeviceLatest200Response.js +1 -1
  45. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  46. package/dist/model/GetDeviceSessions200Response.js +1 -1
  47. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  48. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  49. package/dist/model/GetProjectDevices200Response.js +1 -1
  50. package/dist/model/GetProjectEvents200Response.js +1 -1
  51. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  52. package/dist/model/GetProjectFleets200Response.js +1 -1
  53. package/dist/model/GetProjectMembers200Response.js +1 -1
  54. package/dist/model/GetProjectProducts200Response.js +1 -1
  55. package/dist/model/GetProjects200Response.js +1 -1
  56. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
  57. package/dist/model/Google.js +1 -1
  58. package/dist/model/HandleNoteChanges200Response.js +1 -1
  59. package/dist/model/HandleNoteGet200Response.js +1 -1
  60. package/dist/model/HandleNoteSignal200Response.js +1 -1
  61. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  62. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  63. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  64. package/dist/model/Http.js +1 -1
  65. package/dist/model/HttpFilter.js +1 -1
  66. package/dist/model/HttpTransform.js +1 -1
  67. package/dist/model/Location.js +1 -1
  68. package/dist/model/Login200Response.js +1 -1
  69. package/dist/model/LoginRequest.js +1 -1
  70. package/dist/model/Monitor.js +1 -1
  71. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  72. package/dist/model/Mqtt.js +1 -1
  73. package/dist/model/Note.js +1 -1
  74. package/dist/model/OTAStatus.js +306 -0
  75. package/dist/model/{DeviceOtaStatusPage.js → OTAStatusList.js} +24 -24
  76. package/dist/model/OTAUpdateRequest.js +214 -0
  77. package/dist/model/{UserDfuStateMachineStatus.js → OTAUpdateStatus.js} +40 -45
  78. package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
  79. package/dist/model/Product.js +1 -1
  80. package/dist/model/Project.js +1 -1
  81. package/dist/model/ProjectMember.js +1 -1
  82. package/dist/model/Proxy.js +1 -1
  83. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  84. package/dist/model/Radresponder.js +1 -1
  85. package/dist/model/Route.js +1 -1
  86. package/dist/model/RouteSchema.js +1 -1
  87. package/dist/model/Slack.js +1 -1
  88. package/dist/model/SlackBearerNotification.js +1 -1
  89. package/dist/model/SlackWebHookNotification.js +1 -1
  90. package/dist/model/Snowflake.js +1 -1
  91. package/dist/model/SnowflakeTransform.js +1 -1
  92. package/dist/model/Thingworx.js +1 -1
  93. package/dist/model/TowerLocation.js +1 -1
  94. package/dist/model/Twilio.js +1 -1
  95. package/dist/model/UpdateFleetRequest.js +1 -1
  96. package/dist/model/UserDbRoute.js +1 -1
  97. package/package.json +1 -1
  98. package/dist/model/CurrentFirmware.js +0 -105
  99. package/dist/model/DeviceOtaStateMachine.js +0 -152
  100. package/dist/model/DeviceOtaStateMachineNode.js +0 -132
  101. package/dist/model/DeviceOtaStatus.js +0 -139
  102. package/dist/model/DfuActionRequest.js +0 -92
  103. package/dist/model/Firmware.js +0 -195
  104. package/dist/model/UploadMetadata.js +0 -221
  105. package/dist/model/UserDfuStateMachine.js +0 -127
  106. package/dist/model/UserFirmwareInfo.js +0 -107
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.1.0
9
- - Package version: 1.0.23-beta.7
9
+ - Package version: 1.0.23-beta.8
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,12 +180,9 @@ 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} |
184
183
  *NotehubJs.ProjectApi* | [**disableGlobalTransformation**](docs/ProjectApi.md#disableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/disable |
185
184
  *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 |
187
185
  *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 |
189
186
  *NotehubJs.ProjectApi* | [**getFirmwareInfo**](docs/ProjectApi.md#getFirmwareInfo) | **GET** /v1/projects/{projectUID}/firmware |
190
187
  *NotehubJs.ProjectApi* | [**getFleetEnvironmentVariables**](docs/ProjectApi.md#getFleetEnvironmentVariables) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
191
188
  *NotehubJs.ProjectApi* | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /v1/projects/{projectUID} |
@@ -193,6 +190,7 @@ Class | Method | HTTP request | Description
193
190
  *NotehubJs.ProjectApi* | [**getProjectEnvironmentVariables**](docs/ProjectApi.md#getProjectEnvironmentVariables) | **GET** /v1/projects/{projectUID}/environment_variables |
194
191
  *NotehubJs.ProjectApi* | [**getProjectFleets**](docs/ProjectApi.md#getProjectFleets) | **GET** /v1/projects/{projectUID}/fleets |
195
192
  *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 |
196
194
  *NotehubJs.ProjectApi* | [**getProjectProducts**](docs/ProjectApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
197
195
  *NotehubJs.ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
198
196
  *NotehubJs.ProjectApi* | [**putDeviceFleets**](docs/ProjectApi.md#putDeviceFleets) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
@@ -200,6 +198,7 @@ Class | Method | HTTP request | Description
200
198
  *NotehubJs.ProjectApi* | [**putProjectEnvironmentVariables**](docs/ProjectApi.md#putProjectEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/environment_variables |
201
199
  *NotehubJs.ProjectApi* | [**setGlobalTransformation**](docs/ProjectApi.md#setGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation |
202
200
  *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 |
203
202
  *NotehubJs.RouteApi* | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectUID}/routes |
204
203
  *NotehubJs.RouteApi* | [**deleteRoute**](docs/RouteApi.md#deleteRoute) | **DELETE** /v1/projects/{projectUID}/routes/{routeUID} |
205
204
  *NotehubJs.RouteApi* | [**getRoute**](docs/RouteApi.md#getRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID} |
@@ -224,26 +223,19 @@ Class | Method | HTTP request | Description
224
223
  - [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
225
224
  - [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
226
225
  - [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
227
- - [NotehubJs.CurrentFirmware](docs/CurrentFirmware.md)
228
226
  - [NotehubJs.DFUEnv](docs/DFUEnv.md)
229
227
  - [NotehubJs.DFUState](docs/DFUState.md)
230
228
  - [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
231
229
  - [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)
237
230
  - [NotehubJs.DeviceSession](docs/DeviceSession.md)
238
231
  - [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
239
232
  - [NotehubJs.DeviceUsage](docs/DeviceUsage.md)
240
- - [NotehubJs.DfuActionRequest](docs/DfuActionRequest.md)
241
233
  - [NotehubJs.EmailNotification](docs/EmailNotification.md)
242
234
  - [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
243
235
  - [NotehubJs.Error](docs/Error.md)
244
236
  - [NotehubJs.Event](docs/Event.md)
245
- - [NotehubJs.Firmware](docs/Firmware.md)
246
237
  - [NotehubJs.FirmwareInfo](docs/FirmwareInfo.md)
238
+ - [NotehubJs.FirmwareStatus](docs/FirmwareStatus.md)
247
239
  - [NotehubJs.Fleet](docs/Fleet.md)
248
240
  - [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
249
241
  - [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
@@ -280,6 +272,10 @@ Class | Method | HTTP request | Description
280
272
  - [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
281
273
  - [NotehubJs.Mqtt](docs/Mqtt.md)
282
274
  - [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)
283
279
  - [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
284
280
  - [NotehubJs.Product](docs/Product.md)
285
281
  - [NotehubJs.Project](docs/Project.md)
@@ -299,11 +295,7 @@ Class | Method | HTTP request | Description
299
295
  - [NotehubJs.TowerLocation](docs/TowerLocation.md)
300
296
  - [NotehubJs.Twilio](docs/Twilio.md)
301
297
  - [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
302
- - [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
303
298
  - [NotehubJs.UserDbRoute](docs/UserDbRoute.md)
304
- - [NotehubJs.UserDfuStateMachine](docs/UserDfuStateMachine.md)
305
- - [NotehubJs.UserDfuStateMachineStatus](docs/UserDfuStateMachineStatus.md)
306
- - [NotehubJs.UserFirmwareInfo](docs/UserFirmwareInfo.md)
307
299
 
308
300
 
309
301
  ## Documentation for Authorization
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 1.0.23-beta.7
29
+ * @version 1.0.23-beta.8
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.7/Javascript'
77
+ 'User-Agent': 'OpenAPI-Generator/1.0.23-beta.8/Javascript'
78
78
  };
79
79
 
80
80
  /**
@@ -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.7
31
+ * @version 1.0.23-beta.8
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -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.7
31
+ * @version 1.0.23-beta.8
32
32
  */
33
33
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -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.7
31
+ * @version 1.0.23-beta.8
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -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.7
48
+ * @version 1.0.23-beta.8
49
49
  */
50
50
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
51
51
  /**
@@ -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.7
33
+ * @version 1.0.23-beta.8
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -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.7
32
+ * @version 1.0.23-beta.8
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -10,9 +10,6 @@ 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"));
16
13
  var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
17
14
  var _Error = _interopRequireDefault(require("../model/Error"));
18
15
  var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
@@ -21,6 +18,9 @@ var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetP
21
18
  var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
22
19
  var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
23
20
  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"));
@@ -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.7
49
+ * @version 1.0.23-beta.8
50
50
  */
51
51
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
@@ -469,92 +469,6 @@ 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
-
558
472
  /**
559
473
  * Disable the project-level event JSONata transformation
560
474
  * @param {String} projectUID
@@ -633,59 +547,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
633
547
  });
634
548
  }
635
549
 
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
-
689
550
  /**
690
551
  * Get Device Fleets
691
552
  * @param {String} projectUID
@@ -732,95 +593,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
732
593
  });
733
594
  }
734
595
 
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
-
824
596
  /**
825
597
  * Get Available Firmware Information
826
598
  * @param {String} projectUID
@@ -1126,6 +898,64 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1126
898
  });
1127
899
  }
1128
900
 
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
+
1129
959
  /**
1130
960
  * Get Products within a Project
1131
961
  * @param {String} projectUID
@@ -1440,5 +1270,50 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1440
1270
  return response_and_data.data;
1441
1271
  });
1442
1272
  }
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
+ }
1443
1318
  }]);
1444
1319
  }();
@@ -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.7
33
+ * @version 1.0.23-beta.8
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**