@blues-inc/notehub-js 3.0.0-beta.2 → 3.0.0-beta.21

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 (141) hide show
  1. package/README.md +5 -5
  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 +105 -105
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +97 -97
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +6 -15
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  15. package/dist/model/Alert.js +1 -1
  16. package/dist/model/AlertDataInner.js +7 -2
  17. package/dist/model/AlertNotificationsInner.js +1 -1
  18. package/dist/model/AwsRoute.js +1 -1
  19. package/dist/model/AzureRoute.js +1 -1
  20. package/dist/model/BillingAccount.js +1 -1
  21. package/dist/model/BlynkRoute.js +1 -1
  22. package/dist/model/Body.js +1 -1
  23. package/dist/model/CellularPlan.js +1 -1
  24. package/dist/model/CloneProjectRequest.js +1 -1
  25. package/dist/model/Contact.js +1 -1
  26. package/dist/model/CreateFleetRequest.js +1 -1
  27. package/dist/model/CreateMonitor.js +17 -10
  28. package/dist/model/CreateProductRequest.js +1 -1
  29. package/dist/model/CreateProjectRequest.js +1 -1
  30. package/dist/model/CreateUpdateRepository.js +1 -1
  31. package/dist/model/CurrentFirmware.js +1 -1
  32. package/dist/model/DFUEnv.js +1 -1
  33. package/dist/model/DFUState.js +1 -1
  34. package/dist/model/DataField.js +1 -1
  35. package/dist/model/DataSetField.js +1 -1
  36. package/dist/model/DataUsage.js +1 -1
  37. package/dist/model/DatacakeRoute.js +1 -1
  38. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  39. package/dist/model/DeleteNotefilesRequest.js +1 -1
  40. package/dist/model/Device.js +1 -14
  41. package/dist/model/DeviceDfuHistory.js +1 -1
  42. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  43. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  44. package/dist/model/DeviceDfuStateMachine.js +1 -1
  45. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  46. package/dist/model/DeviceDfuStatus.js +1 -1
  47. package/dist/model/DeviceDfuStatusPage.js +1 -1
  48. package/dist/model/DeviceSession.js +1 -1
  49. package/dist/model/DeviceTowerInfo.js +1 -1
  50. package/dist/model/DeviceUsage.js +1 -1
  51. package/dist/model/DfuActionRequest.js +1 -1
  52. package/dist/model/EmailNotification.js +1 -1
  53. package/dist/model/EnvTreeJsonNode.js +1 -1
  54. package/dist/model/EnvVar.js +1 -1
  55. package/dist/model/EnvironmentVariables.js +1 -1
  56. package/dist/model/Error.js +1 -1
  57. package/dist/model/Event.js +1 -1
  58. package/dist/model/Filter.js +1 -1
  59. package/dist/model/Firmware.js +1 -1
  60. package/dist/model/FirmwareInfo.js +1 -1
  61. package/dist/model/Fleet.js +1 -1
  62. package/dist/model/FleetConnectivityAssurance.js +27 -4
  63. package/dist/model/GetAlerts200Response.js +1 -1
  64. package/dist/model/GetBillingAccounts200Response.js +1 -1
  65. package/dist/model/GetDataUsage200Response.js +1 -1
  66. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  67. package/dist/model/GetDbNote200Response.js +1 -1
  68. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  69. package/dist/model/GetDeviceFleets200Response.js +1 -1
  70. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  71. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  72. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  73. package/dist/model/GetDevicePlans200Response.js +1 -1
  74. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  75. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  76. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  77. package/dist/model/GetDeviceSessions200Response.js +1 -1
  78. package/dist/model/GetDevices200Response.js +1 -1
  79. package/dist/model/GetEvents200Response.js +1 -1
  80. package/dist/model/GetEventsByCursor200Response.js +1 -1
  81. package/dist/model/GetNotefile200Response.js +1 -1
  82. package/dist/model/GetProducts200Response.js +1 -1
  83. package/dist/model/GetProjectMembers200Response.js +1 -1
  84. package/dist/model/GetProjects200Response.js +1 -1
  85. package/dist/model/GetSessionsUsage200Response.js +1 -1
  86. package/dist/model/GetWebhooks200Response.js +1 -1
  87. package/dist/model/GoogleRoute.js +1 -1
  88. package/dist/model/HttpRoute.js +1 -1
  89. package/dist/model/ListNotefiles200Response.js +1 -1
  90. package/dist/model/ListPendingNotefiles200Response.js +1 -1
  91. package/dist/model/Location.js +1 -1
  92. package/dist/model/Login200Response.js +1 -1
  93. package/dist/model/LoginRequest.js +1 -1
  94. package/dist/model/Monitor.js +8 -3
  95. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  96. package/dist/model/MqttRoute.js +1 -1
  97. package/dist/model/Note.js +1 -1
  98. package/dist/model/NotefileSchema.js +1 -1
  99. package/dist/model/NotehubRoute.js +1 -1
  100. package/dist/model/NotehubRouteSummary.js +1 -1
  101. package/dist/model/OAuth2Error.js +1 -1
  102. package/dist/model/OAuth2TokenResponse.js +1 -1
  103. package/dist/model/PersonalAccessToken.js +1 -1
  104. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  105. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  106. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  107. package/dist/model/Product.js +1 -1
  108. package/dist/model/Project.js +1 -1
  109. package/dist/model/ProjectMember.js +1 -1
  110. package/dist/model/ProvisionDeviceRequest.js +1 -1
  111. package/dist/model/ProxyRoute.js +1 -1
  112. package/dist/model/QubitroRoute.js +1 -1
  113. package/dist/model/RadRoute.js +1 -1
  114. package/dist/model/Repository.js +1 -1
  115. package/dist/model/RouteLog.js +1 -1
  116. package/dist/model/RouteTransformSettings.js +1 -1
  117. package/dist/model/S3ArchiveRoute.js +1 -1
  118. package/dist/model/SatellitePlan.js +1 -1
  119. package/dist/model/SchemaProperty.js +1 -1
  120. package/dist/model/SignalDevice200Response.js +1 -1
  121. package/dist/model/SimUsage.js +1 -1
  122. package/dist/model/SlackBearerNotification.js +1 -1
  123. package/dist/model/SlackRoute.js +1 -1
  124. package/dist/model/SlackWebHookNotification.js +1 -1
  125. package/dist/model/SnowflakeRoute.js +1 -1
  126. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  127. package/dist/model/ThingworxRoute.js +1 -1
  128. package/dist/model/TowerLocation.js +1 -1
  129. package/dist/model/TwilioRoute.js +1 -1
  130. package/dist/model/UpdateFleetRequest.js +1 -1
  131. package/dist/model/UploadMetadata.js +1 -1
  132. package/dist/model/UsageData.js +1 -1
  133. package/dist/model/UsageEventsData.js +2 -2
  134. package/dist/model/UsageEventsResponse.js +1 -1
  135. package/dist/model/UsageRouteLogsData.js +1 -1
  136. package/dist/model/UsageSessionsData.js +1 -1
  137. package/dist/model/UserDfuStateMachine.js +1 -1
  138. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  139. package/dist/model/UserFirmwareInfo.js +1 -1
  140. package/dist/model/WebhookSettings.js +1 -1
  141. 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: 3.0.0-beta.2
9
+ - Package version: 3.0.0-beta.21
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
 
@@ -134,6 +134,8 @@ Class | Method | HTTP request | Description
134
134
  *NotehubJs.AuthorizationApi* | [**oAuth2ClientCredentials**](docs/AuthorizationApi.md#oAuth2ClientCredentials) | **POST** /oauth2/token | Issue an OAuth 2.0 access token (Client Credentials)
135
135
  *NotehubJs.BillingAccountApi* | [**getBillingAccounts**](docs/BillingAccountApi.md#getBillingAccounts) | **GET** /v1/billing-accounts |
136
136
  *NotehubJs.DeviceApi* | [**addDbNote**](docs/DeviceApi.md#addDbNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
137
+ *NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariables**](docs/DeviceApi.md#addDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
138
+ *NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#addDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
137
139
  *NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
138
140
  *NotehubJs.DeviceApi* | [**deleteDbNote**](docs/DeviceApi.md#deleteDbNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
139
141
  *NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
@@ -160,8 +162,6 @@ Class | Method | HTTP request | Description
160
162
  *NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes |
161
163
  *NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
162
164
  *NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
163
- *NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariables**](docs/DeviceApi.md#setDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
164
- *NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#setDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
165
165
  *NotehubJs.DeviceApi* | [**signalDevice**](docs/DeviceApi.md#signalDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal |
166
166
  *NotehubJs.DeviceApi* | [**updateDbNote**](docs/DeviceApi.md#updateDbNote) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
167
167
  *NotehubJs.EventApi* | [**getEvents**](docs/EventApi.md#getEvents) | **GET** /v1/projects/{projectOrProductUID}/events |
@@ -178,6 +178,8 @@ Class | Method | HTTP request | Description
178
178
  *NotehubJs.MonitorApi* | [**getMonitors**](docs/MonitorApi.md#getMonitors) | **GET** /v1/projects/{projectOrProductUID}/monitors |
179
179
  *NotehubJs.MonitorApi* | [**updateMonitor**](docs/MonitorApi.md#updateMonitor) | **PUT** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
180
180
  *NotehubJs.ProjectApi* | [**addDeviceToFleets**](docs/ProjectApi.md#addDeviceToFleets) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
181
+ *NotehubJs.ProjectApi* | [**addFleetEnvironmentVariables**](docs/ProjectApi.md#addFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
182
+ *NotehubJs.ProjectApi* | [**addProjectEnvironmentVariables**](docs/ProjectApi.md#addProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
181
183
  *NotehubJs.ProjectApi* | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectOrProductUID}/clone |
182
184
  *NotehubJs.ProjectApi* | [**createFleet**](docs/ProjectApi.md#createFleet) | **POST** /v1/projects/{projectOrProductUID}/fleets |
183
185
  *NotehubJs.ProjectApi* | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectOrProductUID}/products |
@@ -209,9 +211,7 @@ Class | Method | HTTP request | Description
209
211
  *NotehubJs.ProjectApi* | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectOrProductUID}/members |
210
212
  *NotehubJs.ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
211
213
  *NotehubJs.ProjectApi* | [**performDfuAction**](docs/ProjectApi.md#performDfuAction) | **POST** /v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action} |
212
- *NotehubJs.ProjectApi* | [**setFleetEnvironmentVariables**](docs/ProjectApi.md#setFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
213
214
  *NotehubJs.ProjectApi* | [**setGlobalEventTransformation**](docs/ProjectApi.md#setGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
214
- *NotehubJs.ProjectApi* | [**setProjectEnvironmentVariables**](docs/ProjectApi.md#setProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
215
215
  *NotehubJs.ProjectApi* | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
216
216
  *NotehubJs.ProjectApi* | [**uploadFirmware**](docs/ProjectApi.md#uploadFirmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
217
217
  *NotehubJs.RouteApi* | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectOrProductUID}/routes |
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 3.0.0-beta.2
29
+ * @version 3.0.0-beta.21
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -73,7 +73,7 @@ var ApiClient = /*#__PURE__*/function () {
73
73
  */
74
74
  this.defaultHeaders = {};
75
75
  if (typeof window === 'undefined') {
76
- this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/3.0.0-beta.2/Javascript';
76
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/3.0.0-beta.21/Javascript';
77
77
  }
78
78
 
79
79
  /**
@@ -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 3.0.0-beta.2
31
+ * @version 3.0.0-beta.21
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -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 3.0.0-beta.2
33
+ * @version 3.0.0-beta.21
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -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 3.0.0-beta.2
31
+ * @version 3.0.0-beta.21
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -47,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
47
  /**
48
48
  * Device service.
49
49
  * @module api/DeviceApi
50
- * @version 3.0.0-beta.2
50
+ * @version 3.0.0-beta.21
51
51
  */
52
52
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
53
  /**
@@ -128,6 +128,110 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
128
128
  });
129
129
  }
130
130
 
131
+ /**
132
+ * Add environment variables of a device
133
+ * @param {String} projectOrProductUID
134
+ * @param {String} deviceUID
135
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
136
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
137
+ */
138
+ }, {
139
+ key: "addDeviceEnvironmentVariablesWithHttpInfo",
140
+ value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
141
+ var postBody = environmentVariables;
142
+ // verify the required parameter 'projectOrProductUID' is set
143
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
144
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
145
+ }
146
+ // verify the required parameter 'deviceUID' is set
147
+ if (deviceUID === undefined || deviceUID === null) {
148
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
149
+ }
150
+ // verify the required parameter 'environmentVariables' is set
151
+ if (environmentVariables === undefined || environmentVariables === null) {
152
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
153
+ }
154
+ var pathParams = {
155
+ 'projectOrProductUID': projectOrProductUID,
156
+ 'deviceUID': deviceUID
157
+ };
158
+ var queryParams = {};
159
+ var headerParams = {};
160
+ var formParams = {};
161
+ var authNames = ['personalAccessToken'];
162
+ var contentTypes = ['application/json'];
163
+ var accepts = ['application/json'];
164
+ var returnType = _EnvironmentVariables["default"];
165
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
166
+ }
167
+
168
+ /**
169
+ * Add environment variables of a device
170
+ * @param {String} projectOrProductUID
171
+ * @param {String} deviceUID
172
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
173
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
174
+ */
175
+ }, {
176
+ key: "addDeviceEnvironmentVariables",
177
+ value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
178
+ return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
179
+ return response_and_data.data;
180
+ });
181
+ }
182
+
183
+ /**
184
+ * Add environment variables of a device with device pin authorization
185
+ * @param {String} productUID
186
+ * @param {String} deviceUID
187
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
188
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
189
+ */
190
+ }, {
191
+ key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
192
+ value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
193
+ var postBody = environmentVariables;
194
+ // verify the required parameter 'productUID' is set
195
+ if (productUID === undefined || productUID === null) {
196
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
197
+ }
198
+ // verify the required parameter 'deviceUID' is set
199
+ if (deviceUID === undefined || deviceUID === null) {
200
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
201
+ }
202
+ // verify the required parameter 'environmentVariables' is set
203
+ if (environmentVariables === undefined || environmentVariables === null) {
204
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
205
+ }
206
+ var pathParams = {
207
+ 'productUID': productUID,
208
+ 'deviceUID': deviceUID
209
+ };
210
+ var queryParams = {};
211
+ var headerParams = {};
212
+ var formParams = {};
213
+ var authNames = ['pin'];
214
+ var contentTypes = ['application/json'];
215
+ var accepts = ['application/json'];
216
+ var returnType = _EnvironmentVariables["default"];
217
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
218
+ }
219
+
220
+ /**
221
+ * Add environment variables of a device with device pin authorization
222
+ * @param {String} productUID
223
+ * @param {String} deviceUID
224
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
225
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
226
+ */
227
+ }, {
228
+ key: "addDeviceEnvironmentVariablesByPin",
229
+ value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
230
+ return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
231
+ return response_and_data.data;
232
+ });
233
+ }
234
+
131
235
  /**
132
236
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
133
237
  * @param {String} projectOrProductUID
@@ -1537,110 +1641,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1537
1641
  });
1538
1642
  }
1539
1643
 
1540
- /**
1541
- * Set environment variables of a device
1542
- * @param {String} projectOrProductUID
1543
- * @param {String} deviceUID
1544
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1545
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1546
- */
1547
- }, {
1548
- key: "setDeviceEnvironmentVariablesWithHttpInfo",
1549
- value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1550
- var postBody = environmentVariables;
1551
- // verify the required parameter 'projectOrProductUID' is set
1552
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1553
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1554
- }
1555
- // verify the required parameter 'deviceUID' is set
1556
- if (deviceUID === undefined || deviceUID === null) {
1557
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1558
- }
1559
- // verify the required parameter 'environmentVariables' is set
1560
- if (environmentVariables === undefined || environmentVariables === null) {
1561
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1562
- }
1563
- var pathParams = {
1564
- 'projectOrProductUID': projectOrProductUID,
1565
- 'deviceUID': deviceUID
1566
- };
1567
- var queryParams = {};
1568
- var headerParams = {};
1569
- var formParams = {};
1570
- var authNames = ['personalAccessToken'];
1571
- var contentTypes = ['application/json'];
1572
- var accepts = ['application/json'];
1573
- var returnType = _EnvironmentVariables["default"];
1574
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1575
- }
1576
-
1577
- /**
1578
- * Set environment variables of a device
1579
- * @param {String} projectOrProductUID
1580
- * @param {String} deviceUID
1581
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1582
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1583
- */
1584
- }, {
1585
- key: "setDeviceEnvironmentVariables",
1586
- value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1587
- return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1588
- return response_and_data.data;
1589
- });
1590
- }
1591
-
1592
- /**
1593
- * Set environment variables of a device with device pin authorization
1594
- * @param {String} productUID
1595
- * @param {String} deviceUID
1596
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
- */
1599
- }, {
1600
- key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1601
- value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1602
- var postBody = environmentVariables;
1603
- // verify the required parameter 'productUID' is set
1604
- if (productUID === undefined || productUID === null) {
1605
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
1606
- }
1607
- // verify the required parameter 'deviceUID' is set
1608
- if (deviceUID === undefined || deviceUID === null) {
1609
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1610
- }
1611
- // verify the required parameter 'environmentVariables' is set
1612
- if (environmentVariables === undefined || environmentVariables === null) {
1613
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1614
- }
1615
- var pathParams = {
1616
- 'productUID': productUID,
1617
- 'deviceUID': deviceUID
1618
- };
1619
- var queryParams = {};
1620
- var headerParams = {};
1621
- var formParams = {};
1622
- var authNames = ['pin'];
1623
- var contentTypes = ['application/json'];
1624
- var accepts = ['application/json'];
1625
- var returnType = _EnvironmentVariables["default"];
1626
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1627
- }
1628
-
1629
- /**
1630
- * Set environment variables of a device with device pin authorization
1631
- * @param {String} productUID
1632
- * @param {String} deviceUID
1633
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
- */
1636
- }, {
1637
- key: "setDeviceEnvironmentVariablesByPin",
1638
- value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1639
- return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1640
- return response_and_data.data;
1641
- });
1642
- }
1643
-
1644
1644
  /**
1645
1645
  * Send a signal from Notehub to a Notecard.
1646
1646
  * @param {String} projectOrProductUID
@@ -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 3.0.0-beta.2
33
+ * @version 3.0.0-beta.21
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
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 3.0.0-beta.2
32
+ * @version 3.0.0-beta.21
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__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
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 3.0.0-beta.2
32
+ * @version 3.0.0-beta.21
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
50
50
  /**
51
51
  * Project service.
52
52
  * @module api/ProjectApi
53
- * @version 3.0.0-beta.2
53
+ * @version 3.0.0-beta.21
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -117,6 +117,102 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
117
117
  });
118
118
  }
119
119
 
120
+ /**
121
+ * Add environment variables of a fleet
122
+ * @param {String} projectOrProductUID
123
+ * @param {String} fleetUID
124
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
125
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
126
+ */
127
+ }, {
128
+ key: "addFleetEnvironmentVariablesWithHttpInfo",
129
+ value: function addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
130
+ var postBody = environmentVariables;
131
+ // verify the required parameter 'projectOrProductUID' is set
132
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
133
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addFleetEnvironmentVariables");
134
+ }
135
+ // verify the required parameter 'fleetUID' is set
136
+ if (fleetUID === undefined || fleetUID === null) {
137
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling addFleetEnvironmentVariables");
138
+ }
139
+ // verify the required parameter 'environmentVariables' is set
140
+ if (environmentVariables === undefined || environmentVariables === null) {
141
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addFleetEnvironmentVariables");
142
+ }
143
+ var pathParams = {
144
+ 'projectOrProductUID': projectOrProductUID,
145
+ 'fleetUID': fleetUID
146
+ };
147
+ var queryParams = {};
148
+ var headerParams = {};
149
+ var formParams = {};
150
+ var authNames = ['personalAccessToken'];
151
+ var contentTypes = ['application/json'];
152
+ var accepts = ['application/json'];
153
+ var returnType = _EnvironmentVariables["default"];
154
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
+ }
156
+
157
+ /**
158
+ * Add environment variables of a fleet
159
+ * @param {String} projectOrProductUID
160
+ * @param {String} fleetUID
161
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
162
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
163
+ */
164
+ }, {
165
+ key: "addFleetEnvironmentVariables",
166
+ value: function addFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
167
+ return this.addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
168
+ return response_and_data.data;
169
+ });
170
+ }
171
+
172
+ /**
173
+ * Add environment variables of a project
174
+ * @param {String} projectOrProductUID
175
+ * @param {Object} opts Optional parameters
176
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
177
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
178
+ */
179
+ }, {
180
+ key: "addProjectEnvironmentVariablesWithHttpInfo",
181
+ value: function addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
182
+ opts = opts || {};
183
+ var postBody = opts['environmentVariables'];
184
+ // verify the required parameter 'projectOrProductUID' is set
185
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
186
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addProjectEnvironmentVariables");
187
+ }
188
+ var pathParams = {
189
+ 'projectOrProductUID': projectOrProductUID
190
+ };
191
+ var queryParams = {};
192
+ var headerParams = {};
193
+ var formParams = {};
194
+ var authNames = ['personalAccessToken'];
195
+ var contentTypes = ['application/json'];
196
+ var accepts = ['application/json'];
197
+ var returnType = _EnvironmentVariables["default"];
198
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
199
+ }
200
+
201
+ /**
202
+ * Add environment variables of a project
203
+ * @param {String} projectOrProductUID
204
+ * @param {Object} opts Optional parameters
205
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
206
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
207
+ */
208
+ }, {
209
+ key: "addProjectEnvironmentVariables",
210
+ value: function addProjectEnvironmentVariables(projectOrProductUID, opts) {
211
+ return this.addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
212
+ return response_and_data.data;
213
+ });
214
+ }
215
+
120
216
  /**
121
217
  * Clone a Project
122
218
  * @param {String} projectOrProductUID
@@ -1610,58 +1706,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1610
1706
  });
1611
1707
  }
1612
1708
 
1613
- /**
1614
- * Set environment variables of a fleet
1615
- * @param {String} projectOrProductUID
1616
- * @param {String} fleetUID
1617
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1618
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1619
- */
1620
- }, {
1621
- key: "setFleetEnvironmentVariablesWithHttpInfo",
1622
- value: function setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
1623
- var postBody = environmentVariables;
1624
- // verify the required parameter 'projectOrProductUID' is set
1625
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1626
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setFleetEnvironmentVariables");
1627
- }
1628
- // verify the required parameter 'fleetUID' is set
1629
- if (fleetUID === undefined || fleetUID === null) {
1630
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling setFleetEnvironmentVariables");
1631
- }
1632
- // verify the required parameter 'environmentVariables' is set
1633
- if (environmentVariables === undefined || environmentVariables === null) {
1634
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
1635
- }
1636
- var pathParams = {
1637
- 'projectOrProductUID': projectOrProductUID,
1638
- 'fleetUID': fleetUID
1639
- };
1640
- var queryParams = {};
1641
- var headerParams = {};
1642
- var formParams = {};
1643
- var authNames = ['personalAccessToken'];
1644
- var contentTypes = ['application/json'];
1645
- var accepts = ['application/json'];
1646
- var returnType = _EnvironmentVariables["default"];
1647
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1648
- }
1649
-
1650
- /**
1651
- * Set environment variables of a fleet
1652
- * @param {String} projectOrProductUID
1653
- * @param {String} fleetUID
1654
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1655
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1656
- */
1657
- }, {
1658
- key: "setFleetEnvironmentVariables",
1659
- value: function setFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
1660
- return this.setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
1661
- return response_and_data.data;
1662
- });
1663
- }
1664
-
1665
1709
  /**
1666
1710
  * Set the project-level event JSONata transformation
1667
1711
  * @param {String} projectOrProductUID
@@ -1707,50 +1751,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1707
1751
  });
1708
1752
  }
1709
1753
 
1710
- /**
1711
- * Set environment variables of a project
1712
- * @param {String} projectOrProductUID
1713
- * @param {Object} opts Optional parameters
1714
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1715
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1716
- */
1717
- }, {
1718
- key: "setProjectEnvironmentVariablesWithHttpInfo",
1719
- value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
1720
- opts = opts || {};
1721
- var postBody = opts['environmentVariables'];
1722
- // verify the required parameter 'projectOrProductUID' is set
1723
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1724
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
1725
- }
1726
- var pathParams = {
1727
- 'projectOrProductUID': projectOrProductUID
1728
- };
1729
- var queryParams = {};
1730
- var headerParams = {};
1731
- var formParams = {};
1732
- var authNames = ['personalAccessToken'];
1733
- var contentTypes = ['application/json'];
1734
- var accepts = ['application/json'];
1735
- var returnType = _EnvironmentVariables["default"];
1736
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1737
- }
1738
-
1739
- /**
1740
- * Set environment variables of a project
1741
- * @param {String} projectOrProductUID
1742
- * @param {Object} opts Optional parameters
1743
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1744
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1745
- */
1746
- }, {
1747
- key: "setProjectEnvironmentVariables",
1748
- value: function setProjectEnvironmentVariables(projectOrProductUID, opts) {
1749
- return this.setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1750
- return response_and_data.data;
1751
- });
1752
- }
1753
-
1754
1754
  /**
1755
1755
  * Update Fleet
1756
1756
  * @param {String} projectOrProductUID
@@ -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 3.0.0-beta.2
33
+ * @version 3.0.0-beta.21
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**