@blues-inc/notehub-js 2.3.0-beta.23 → 2.3.0-beta.24

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 +1 -1
  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 +1 -1
  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 +1 -1
  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 -1
  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 +1 -1
  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/Location.js +1 -1
  90. package/dist/model/Login200Response.js +1 -1
  91. package/dist/model/LoginRequest.js +1 -1
  92. package/dist/model/Monitor.js +1 -1
  93. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  94. package/dist/model/MqttRoute.js +1 -1
  95. package/dist/model/Note.js +1 -1
  96. package/dist/model/NoteInput.js +1 -1
  97. package/dist/model/Notefile.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 +1 -1
  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: 2.3.0-beta.23
9
+ - Package version: 2.3.0-beta.24
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,8 +134,6 @@ 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 |
139
137
  *NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
140
138
  *NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
141
139
  *NotehubJs.DeviceApi* | [**deleteDeviceEnvironmentVariable**](docs/DeviceApi.md#deleteDeviceEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} |
@@ -161,6 +159,8 @@ Class | Method | HTTP request | Description
161
159
  *NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
162
160
  *NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
163
161
  *NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
162
+ *NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariables**](docs/DeviceApi.md#setDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
163
+ *NotehubJs.DeviceApi* | [**setDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#setDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
164
164
  *NotehubJs.DeviceApi* | [**signalDevice**](docs/DeviceApi.md#signalDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal |
165
165
  *NotehubJs.DeviceApi* | [**updateDbNote**](docs/DeviceApi.md#updateDbNote) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
166
166
  *NotehubJs.EventApi* | [**getEvents**](docs/EventApi.md#getEvents) | **GET** /v1/projects/{projectOrProductUID}/events |
@@ -177,8 +177,6 @@ Class | Method | HTTP request | Description
177
177
  *NotehubJs.MonitorApi* | [**getMonitors**](docs/MonitorApi.md#getMonitors) | **GET** /v1/projects/{projectOrProductUID}/monitors |
178
178
  *NotehubJs.MonitorApi* | [**updateMonitor**](docs/MonitorApi.md#updateMonitor) | **PUT** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
179
179
  *NotehubJs.ProjectApi* | [**addDeviceToFleets**](docs/ProjectApi.md#addDeviceToFleets) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
180
- *NotehubJs.ProjectApi* | [**addFleetEnvironmentVariables**](docs/ProjectApi.md#addFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
181
- *NotehubJs.ProjectApi* | [**addProjectEnvironmentVariables**](docs/ProjectApi.md#addProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
182
180
  *NotehubJs.ProjectApi* | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectOrProductUID}/clone |
183
181
  *NotehubJs.ProjectApi* | [**createFleet**](docs/ProjectApi.md#createFleet) | **POST** /v1/projects/{projectOrProductUID}/fleets |
184
182
  *NotehubJs.ProjectApi* | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectOrProductUID}/products |
@@ -210,7 +208,9 @@ Class | Method | HTTP request | Description
210
208
  *NotehubJs.ProjectApi* | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectOrProductUID}/members |
211
209
  *NotehubJs.ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
212
210
  *NotehubJs.ProjectApi* | [**performDfuAction**](docs/ProjectApi.md#performDfuAction) | **POST** /v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action} |
211
+ *NotehubJs.ProjectApi* | [**setFleetEnvironmentVariables**](docs/ProjectApi.md#setFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
213
212
  *NotehubJs.ProjectApi* | [**setGlobalEventTransformation**](docs/ProjectApi.md#setGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
213
+ *NotehubJs.ProjectApi* | [**setProjectEnvironmentVariables**](docs/ProjectApi.md#setProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
214
214
  *NotehubJs.ProjectApi* | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
215
215
  *NotehubJs.ProjectApi* | [**uploadFirmware**](docs/ProjectApi.md#uploadFirmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
216
216
  *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 2.3.0-beta.23
29
+ * @version 2.3.0-beta.24
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/2.3.0-beta.23/Javascript';
76
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.3.0-beta.24/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 2.3.0-beta.23
31
+ * @version 2.3.0-beta.24
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 2.3.0-beta.23
33
+ * @version 2.3.0-beta.24
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 2.3.0-beta.23
31
+ * @version 2.3.0-beta.24
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
46
46
  /**
47
47
  * Device service.
48
48
  * @module api/DeviceApi
49
- * @version 2.3.0-beta.23
49
+ * @version 2.3.0-beta.24
50
50
  */
51
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
@@ -127,110 +127,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
127
127
  });
128
128
  }
129
129
 
130
- /**
131
- * Add environment variables of a device
132
- * @param {String} projectOrProductUID
133
- * @param {String} deviceUID
134
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
135
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
136
- */
137
- }, {
138
- key: "addDeviceEnvironmentVariablesWithHttpInfo",
139
- value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
140
- var postBody = environmentVariables;
141
- // verify the required parameter 'projectOrProductUID' is set
142
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
143
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
144
- }
145
- // verify the required parameter 'deviceUID' is set
146
- if (deviceUID === undefined || deviceUID === null) {
147
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
148
- }
149
- // verify the required parameter 'environmentVariables' is set
150
- if (environmentVariables === undefined || environmentVariables === null) {
151
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
152
- }
153
- var pathParams = {
154
- 'projectOrProductUID': projectOrProductUID,
155
- 'deviceUID': deviceUID
156
- };
157
- var queryParams = {};
158
- var headerParams = {};
159
- var formParams = {};
160
- var authNames = ['personalAccessToken'];
161
- var contentTypes = ['application/json'];
162
- var accepts = ['application/json'];
163
- var returnType = _EnvironmentVariables["default"];
164
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
165
- }
166
-
167
- /**
168
- * Add environment variables of a device
169
- * @param {String} projectOrProductUID
170
- * @param {String} deviceUID
171
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
172
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
173
- */
174
- }, {
175
- key: "addDeviceEnvironmentVariables",
176
- value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
177
- return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
178
- return response_and_data.data;
179
- });
180
- }
181
-
182
- /**
183
- * Add environment variables of a device with device pin authorization
184
- * @param {String} productUID
185
- * @param {String} deviceUID
186
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
187
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
188
- */
189
- }, {
190
- key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
191
- value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
192
- var postBody = environmentVariables;
193
- // verify the required parameter 'productUID' is set
194
- if (productUID === undefined || productUID === null) {
195
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
196
- }
197
- // verify the required parameter 'deviceUID' is set
198
- if (deviceUID === undefined || deviceUID === null) {
199
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
200
- }
201
- // verify the required parameter 'environmentVariables' is set
202
- if (environmentVariables === undefined || environmentVariables === null) {
203
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
204
- }
205
- var pathParams = {
206
- 'productUID': productUID,
207
- 'deviceUID': deviceUID
208
- };
209
- var queryParams = {};
210
- var headerParams = {};
211
- var formParams = {};
212
- var authNames = ['pin'];
213
- var contentTypes = ['application/json'];
214
- var accepts = ['application/json'];
215
- var returnType = _EnvironmentVariables["default"];
216
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
217
- }
218
-
219
- /**
220
- * Add environment variables of a device with device pin authorization
221
- * @param {String} productUID
222
- * @param {String} deviceUID
223
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
224
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
225
- */
226
- }, {
227
- key: "addDeviceEnvironmentVariablesByPin",
228
- value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
229
- return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
230
- return response_and_data.data;
231
- });
232
- }
233
-
234
130
  /**
235
131
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
236
132
  * @param {String} projectOrProductUID
@@ -1585,6 +1481,110 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1585
1481
  });
1586
1482
  }
1587
1483
 
1484
+ /**
1485
+ * Set environment variables of a device
1486
+ * @param {String} projectOrProductUID
1487
+ * @param {String} deviceUID
1488
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1489
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1490
+ */
1491
+ }, {
1492
+ key: "setDeviceEnvironmentVariablesWithHttpInfo",
1493
+ value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1494
+ var postBody = environmentVariables;
1495
+ // verify the required parameter 'projectOrProductUID' is set
1496
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1497
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1498
+ }
1499
+ // verify the required parameter 'deviceUID' is set
1500
+ if (deviceUID === undefined || deviceUID === null) {
1501
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1502
+ }
1503
+ // verify the required parameter 'environmentVariables' is set
1504
+ if (environmentVariables === undefined || environmentVariables === null) {
1505
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1506
+ }
1507
+ var pathParams = {
1508
+ 'projectOrProductUID': projectOrProductUID,
1509
+ 'deviceUID': deviceUID
1510
+ };
1511
+ var queryParams = {};
1512
+ var headerParams = {};
1513
+ var formParams = {};
1514
+ var authNames = ['personalAccessToken'];
1515
+ var contentTypes = ['application/json'];
1516
+ var accepts = ['application/json'];
1517
+ var returnType = _EnvironmentVariables["default"];
1518
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1519
+ }
1520
+
1521
+ /**
1522
+ * Set environment variables of a device
1523
+ * @param {String} projectOrProductUID
1524
+ * @param {String} deviceUID
1525
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1526
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1527
+ */
1528
+ }, {
1529
+ key: "setDeviceEnvironmentVariables",
1530
+ value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1531
+ return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1532
+ return response_and_data.data;
1533
+ });
1534
+ }
1535
+
1536
+ /**
1537
+ * Set environment variables of a device with device pin authorization
1538
+ * @param {String} productUID
1539
+ * @param {String} deviceUID
1540
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1541
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1542
+ */
1543
+ }, {
1544
+ key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1545
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1546
+ var postBody = environmentVariables;
1547
+ // verify the required parameter 'productUID' is set
1548
+ if (productUID === undefined || productUID === null) {
1549
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
1550
+ }
1551
+ // verify the required parameter 'deviceUID' is set
1552
+ if (deviceUID === undefined || deviceUID === null) {
1553
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1554
+ }
1555
+ // verify the required parameter 'environmentVariables' is set
1556
+ if (environmentVariables === undefined || environmentVariables === null) {
1557
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1558
+ }
1559
+ var pathParams = {
1560
+ 'productUID': productUID,
1561
+ 'deviceUID': deviceUID
1562
+ };
1563
+ var queryParams = {};
1564
+ var headerParams = {};
1565
+ var formParams = {};
1566
+ var authNames = ['pin'];
1567
+ var contentTypes = ['application/json'];
1568
+ var accepts = ['application/json'];
1569
+ var returnType = _EnvironmentVariables["default"];
1570
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1571
+ }
1572
+
1573
+ /**
1574
+ * Set environment variables of a device with device pin authorization
1575
+ * @param {String} productUID
1576
+ * @param {String} deviceUID
1577
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1578
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1579
+ */
1580
+ }, {
1581
+ key: "setDeviceEnvironmentVariablesByPin",
1582
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1583
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1584
+ return response_and_data.data;
1585
+ });
1586
+ }
1587
+
1588
1588
  /**
1589
1589
  * Send a signal from Notehub to a Notecard.
1590
1590
  * @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 2.3.0-beta.23
33
+ * @version 2.3.0-beta.24
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 2.3.0-beta.23
32
+ * @version 2.3.0-beta.24
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 2.3.0-beta.23
32
+ * @version 2.3.0-beta.24
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 2.3.0-beta.23
53
+ * @version 2.3.0-beta.24
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -117,102 +117,6 @@ 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
-
216
120
  /**
217
121
  * Clone a Project
218
122
  * @param {String} projectOrProductUID
@@ -1706,6 +1610,58 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1706
1610
  });
1707
1611
  }
1708
1612
 
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
+
1709
1665
  /**
1710
1666
  * Set the project-level event JSONata transformation
1711
1667
  * @param {String} projectOrProductUID
@@ -1751,6 +1707,50 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1751
1707
  });
1752
1708
  }
1753
1709
 
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 2.3.0-beta.23
33
+ * @version 2.3.0-beta.24
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Usage service.
32
32
  * @module api/UsageApi
33
- * @version 2.3.0-beta.23
33
+ * @version 2.3.0-beta.24
34
34
  */
35
35
  var UsageApi = 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
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 2.3.0-beta.23
32
+ * @version 2.3.0-beta.24
33
33
  */
34
34
  var WebhookApi = 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
  * The AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 2.3.0-beta.23
32
+ * @version 2.3.0-beta.24
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 2.3.0-beta.23
34
+ * @version 2.3.0-beta.24
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 2.3.0-beta.23
29
+ * @version 2.3.0-beta.24
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 2.3.0-beta.23
29
+ * @version 2.3.0-beta.24
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**