@blues-inc/notehub-js 4.0.0-beta.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +248 -247
  2. package/dist/ApiClient.js +155 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +379 -387
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +381 -381
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +62 -65
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -40
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/AwsRoute.js +65 -65
  19. package/dist/model/AzureRoute.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/BlynkRoute.js +28 -28
  23. package/dist/model/Body.js +5 -5
  24. package/dist/model/CellularPlan.js +34 -34
  25. package/dist/model/CloneProjectRequest.js +20 -20
  26. package/dist/model/Contact.js +22 -22
  27. package/dist/model/CreateFleetRequest.js +20 -20
  28. package/dist/model/CreateMonitor.js +131 -139
  29. package/dist/model/CreateProductRequest.js +22 -22
  30. package/dist/model/CreateProjectRequest.js +16 -16
  31. package/dist/model/CreateUpdateRepository.js +17 -17
  32. package/dist/model/CurrentFirmware.js +12 -12
  33. package/dist/model/DFUEnv.js +12 -12
  34. package/dist/model/DFUState.js +65 -65
  35. package/dist/model/DataField.js +7 -7
  36. package/dist/model/DataSetField.js +19 -19
  37. package/dist/model/DataUsage.js +14 -14
  38. package/dist/model/DatacakeRoute.js +35 -35
  39. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  40. package/dist/model/DeleteNotefilesRequest.js +7 -7
  41. package/dist/model/Device.js +106 -107
  42. package/dist/model/DeviceDfuHistory.js +19 -20
  43. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  44. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  45. package/dist/model/DeviceDfuStateMachine.js +24 -25
  46. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  47. package/dist/model/DeviceDfuStatus.js +20 -20
  48. package/dist/model/DeviceDfuStatusPage.js +12 -13
  49. package/dist/model/DeviceSession.js +221 -221
  50. package/dist/model/DeviceTowerInfo.js +14 -14
  51. package/dist/model/DeviceUsage.js +32 -32
  52. package/dist/model/DfuActionRequest.js +7 -7
  53. package/dist/model/EmailNotification.js +7 -7
  54. package/dist/model/EnvTreeJsonNode.js +67 -69
  55. package/dist/model/EnvVar.js +18 -18
  56. package/dist/model/EnvironmentVariables.js +8 -8
  57. package/dist/model/Error.js +31 -31
  58. package/dist/model/Event.js +248 -248
  59. package/dist/model/Filter.js +16 -16
  60. package/dist/model/Firmware.js +49 -49
  61. package/dist/model/FirmwareInfo.js +60 -60
  62. package/dist/model/Fleet.js +38 -38
  63. package/dist/model/FleetConnectivityAssurance.js +5 -5
  64. package/dist/model/GetAlerts200Response.js +14 -15
  65. package/dist/model/GetBillingAccounts200Response.js +9 -10
  66. package/dist/model/GetDataUsage200Response.js +9 -10
  67. package/dist/model/GetDataUsage200ResponseDataInner.js +40 -50
  68. package/dist/model/GetDbNote200Response.js +13 -13
  69. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  70. package/dist/model/GetDeviceFleets200Response.js +11 -12
  71. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  72. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  73. package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
  74. package/dist/model/GetDevicePlans200Response.js +9 -10
  75. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  76. package/dist/model/GetDevicePublicKeys200Response.js +16 -17
  77. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  78. package/dist/model/GetDeviceSessions200Response.js +16 -17
  79. package/dist/model/GetDevices200Response.js +16 -17
  80. package/dist/model/GetEvents200Response.js +20 -21
  81. package/dist/model/GetEventsByCursor200Response.js +23 -24
  82. package/dist/model/GetNotefile200Response.js +11 -11
  83. package/dist/model/GetProducts200Response.js +9 -10
  84. package/dist/model/GetProjectMembers200Response.js +11 -12
  85. package/dist/model/GetProjects200Response.js +9 -10
  86. package/dist/model/GetRouteLogsUsage200Response.js +11 -12
  87. package/dist/model/GetSessionsUsage200Response.js +11 -12
  88. package/dist/model/GetWebhooks200Response.js +9 -10
  89. package/dist/model/GoogleRoute.js +33 -33
  90. package/dist/model/HttpRoute.js +35 -35
  91. package/dist/model/Location.js +40 -40
  92. package/dist/model/Login200Response.js +7 -7
  93. package/dist/model/LoginRequest.js +12 -12
  94. package/dist/model/Monitor.js +100 -106
  95. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  96. package/dist/model/MqttRoute.js +68 -68
  97. package/dist/model/Note.js +31 -31
  98. package/dist/model/NoteInput.js +9 -9
  99. package/dist/model/Notefile.js +22 -23
  100. package/dist/model/NotefileSchema.js +18 -19
  101. package/dist/model/NotehubRoute.js +103 -103
  102. package/dist/model/NotehubRouteSummary.js +23 -23
  103. package/dist/model/OAuth2Error.js +20 -20
  104. package/dist/model/OAuth2TokenResponse.js +23 -23
  105. package/dist/model/PersonalAccessToken.js +34 -34
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  107. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  108. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  109. package/dist/model/Product.js +26 -26
  110. package/dist/model/Project.js +34 -34
  111. package/dist/model/ProjectMember.js +22 -22
  112. package/dist/model/ProvisionDeviceRequest.js +18 -18
  113. package/dist/model/ProxyRoute.js +29 -29
  114. package/dist/model/QubitroRoute.js +33 -33
  115. package/dist/model/RadRoute.js +31 -31
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/Role.js +9 -9
  118. package/dist/model/RouteLog.js +38 -38
  119. package/dist/model/RouteTransformSettings.js +18 -18
  120. package/dist/model/S3ArchiveRoute.js +79 -79
  121. package/dist/model/SatellitePlan.js +26 -26
  122. package/dist/model/SchemaProperty.js +36 -38
  123. package/dist/model/SignalDevice200Response.js +5 -5
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +48 -48
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +45 -45
  129. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  130. package/dist/model/ThingworxRoute.js +33 -33
  131. package/dist/model/TowerLocation.js +54 -54
  132. package/dist/model/TwilioRoute.js +43 -43
  133. package/dist/model/UpdateFleetRequest.js +33 -33
  134. package/dist/model/UploadMetadata.js +64 -64
  135. package/dist/model/UsageData.js +18 -18
  136. package/dist/model/UsageEventsData.js +37 -37
  137. package/dist/model/UsageEventsResponse.js +11 -12
  138. package/dist/model/UsageRouteLogsData.js +27 -27
  139. package/dist/model/UsageSessionsData.js +32 -32
  140. package/dist/model/UserDfuStateMachine.js +20 -20
  141. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  142. package/dist/model/UserFirmwareInfo.js +12 -12
  143. package/dist/model/WebhookSettings.js +15 -15
  144. package/package.json +3 -3
@@ -33,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
33
33
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
34
34
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
35
35
  * Notehub API
36
- * The OpenAPI definition for the Notehub.io API.
36
+ * The OpenAPI definition for the Notehub.io API.
37
37
  *
38
38
  * The version of the OpenAPI document: 1.2.0
39
39
  * Contact: engineering@blues.io
@@ -44,18 +44,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
44
44
  *
45
45
  */
46
46
  /**
47
- * Device service.
48
- * @module api/DeviceApi
49
- * @version 4.0.0-beta.4
50
- */
47
+ * Device service.
48
+ * @module api/DeviceApi
49
+ * @version 4.0.0
50
+ */
51
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
53
- * Constructs a new DeviceApi.
54
- * @alias module:api/DeviceApi
55
- * @class
56
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
- * default to {@link module:ApiClient#instance} if unspecified.
58
- */
53
+ * Constructs a new DeviceApi.
54
+ * @alias module:api/DeviceApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
59
59
  function DeviceApi(apiClient) {
60
60
  _classCallCheck(this, DeviceApi);
61
61
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -63,10 +63,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
63
63
 
64
64
  /**
65
65
  * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
66
- * @param {String} projectOrProductUID
67
- * @param {String} deviceUID
68
- * @param {String} notefileID
69
- * @param {String} noteID
66
+ * @param {String} projectOrProductUID
67
+ * @param {String} deviceUID
68
+ * @param {String} notefileID
69
+ * @param {String} noteID
70
70
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
71
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
72
72
  */
@@ -95,27 +95,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
95
95
  throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
96
96
  }
97
97
  var pathParams = {
98
- 'projectOrProductUID': projectOrProductUID,
99
- 'deviceUID': deviceUID,
100
- 'notefileID': notefileID,
101
- 'noteID': noteID
98
+ projectOrProductUID: projectOrProductUID,
99
+ deviceUID: deviceUID,
100
+ notefileID: notefileID,
101
+ noteID: noteID
102
102
  };
103
103
  var queryParams = {};
104
104
  var headerParams = {};
105
105
  var formParams = {};
106
- var authNames = ['personalAccessToken'];
107
- var contentTypes = ['application/json'];
108
- var accepts = ['application/json'];
106
+ var authNames = ["personalAccessToken"];
107
+ var contentTypes = ["application/json"];
108
+ var accepts = ["application/json"];
109
109
  var returnType = null;
110
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
110
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
111
111
  }
112
112
 
113
113
  /**
114
114
  * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
115
- * @param {String} projectOrProductUID
116
- * @param {String} deviceUID
117
- * @param {String} notefileID
118
- * @param {String} noteID
115
+ * @param {String} projectOrProductUID
116
+ * @param {String} deviceUID
117
+ * @param {String} notefileID
118
+ * @param {String} noteID
119
119
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
120
120
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
121
121
  */
@@ -129,9 +129,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
129
129
 
130
130
  /**
131
131
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
132
- * @param {String} projectOrProductUID
133
- * @param {String} deviceUID
134
- * @param {String} notefileID
132
+ * @param {String} projectOrProductUID
133
+ * @param {String} deviceUID
134
+ * @param {String} notefileID
135
135
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
136
136
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
137
137
  */
@@ -156,25 +156,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
156
156
  throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
157
157
  }
158
158
  var pathParams = {
159
- 'projectOrProductUID': projectOrProductUID,
160
- 'deviceUID': deviceUID,
161
- 'notefileID': notefileID
159
+ projectOrProductUID: projectOrProductUID,
160
+ deviceUID: deviceUID,
161
+ notefileID: notefileID
162
162
  };
163
163
  var queryParams = {};
164
164
  var headerParams = {};
165
165
  var formParams = {};
166
- var authNames = ['personalAccessToken'];
167
- var contentTypes = ['application/json'];
168
- var accepts = ['application/json'];
166
+ var authNames = ["personalAccessToken"];
167
+ var contentTypes = ["application/json"];
168
+ var accepts = ["application/json"];
169
169
  var returnType = null;
170
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
170
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
171
171
  }
172
172
 
173
173
  /**
174
174
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
175
- * @param {String} projectOrProductUID
176
- * @param {String} deviceUID
177
- * @param {String} notefileID
175
+ * @param {String} projectOrProductUID
176
+ * @param {String} deviceUID
177
+ * @param {String} notefileID
178
178
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
179
179
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
180
180
  */
@@ -188,13 +188,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
188
188
 
189
189
  /**
190
190
  * Delete Device
191
- * @param {String} projectOrProductUID
192
- * @param {String} deviceUID
191
+ * @param {String} projectOrProductUID
192
+ * @param {String} deviceUID
193
+ * @param {Boolean} purge
193
194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
194
195
  */
195
196
  }, {
196
197
  key: "deleteDeviceWithHttpInfo",
197
- value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
198
+ value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
198
199
  var postBody = null;
199
200
  // verify the required parameter 'projectOrProductUID' is set
200
201
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
@@ -204,38 +205,45 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
204
205
  if (deviceUID === undefined || deviceUID === null) {
205
206
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
206
207
  }
208
+ // verify the required parameter 'purge' is set
209
+ if (purge === undefined || purge === null) {
210
+ throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
211
+ }
207
212
  var pathParams = {
208
- 'projectOrProductUID': projectOrProductUID,
209
- 'deviceUID': deviceUID
213
+ projectOrProductUID: projectOrProductUID,
214
+ deviceUID: deviceUID
215
+ };
216
+ var queryParams = {
217
+ purge: purge
210
218
  };
211
- var queryParams = {};
212
219
  var headerParams = {};
213
220
  var formParams = {};
214
- var authNames = ['personalAccessToken'];
221
+ var authNames = ["personalAccessToken"];
215
222
  var contentTypes = [];
216
- var accepts = ['application/json'];
223
+ var accepts = ["application/json"];
217
224
  var returnType = null;
218
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
219
226
  }
220
227
 
221
228
  /**
222
229
  * Delete Device
223
- * @param {String} projectOrProductUID
224
- * @param {String} deviceUID
230
+ * @param {String} projectOrProductUID
231
+ * @param {String} deviceUID
232
+ * @param {Boolean} purge
225
233
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
226
234
  */
227
235
  }, {
228
236
  key: "deleteDevice",
229
- value: function deleteDevice(projectOrProductUID, deviceUID) {
230
- return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
237
+ value: function deleteDevice(projectOrProductUID, deviceUID, purge) {
238
+ return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
231
239
  return response_and_data.data;
232
240
  });
233
241
  }
234
242
 
235
243
  /**
236
244
  * Delete environment variable of a device
237
- * @param {String} projectOrProductUID
238
- * @param {String} deviceUID
245
+ * @param {String} projectOrProductUID
246
+ * @param {String} deviceUID
239
247
  * @param {String} key The environment variable key to delete.
240
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
241
249
  */
@@ -256,24 +264,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
256
264
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
257
265
  }
258
266
  var pathParams = {
259
- 'projectOrProductUID': projectOrProductUID,
260
- 'deviceUID': deviceUID,
261
- 'key': key
267
+ projectOrProductUID: projectOrProductUID,
268
+ deviceUID: deviceUID,
269
+ key: key
262
270
  };
263
271
  var queryParams = {};
264
272
  var headerParams = {};
265
273
  var formParams = {};
266
- var authNames = ['personalAccessToken'];
274
+ var authNames = ["personalAccessToken"];
267
275
  var contentTypes = [];
268
- var accepts = ['application/json'];
276
+ var accepts = ["application/json"];
269
277
  var returnType = _EnvironmentVariables["default"];
270
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
278
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
271
279
  }
272
280
 
273
281
  /**
274
282
  * Delete environment variable of a device
275
- * @param {String} projectOrProductUID
276
- * @param {String} deviceUID
283
+ * @param {String} projectOrProductUID
284
+ * @param {String} deviceUID
277
285
  * @param {String} key The environment variable key to delete.
278
286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
279
287
  */
@@ -287,10 +295,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
287
295
 
288
296
  /**
289
297
  * Delete a note from a .db or .qi notefile
290
- * @param {String} projectOrProductUID
291
- * @param {String} deviceUID
292
- * @param {String} notefileID
293
- * @param {String} noteID
298
+ * @param {String} projectOrProductUID
299
+ * @param {String} deviceUID
300
+ * @param {String} notefileID
301
+ * @param {String} noteID
294
302
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
295
303
  */
296
304
  }, {
@@ -314,27 +322,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
314
322
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
315
323
  }
316
324
  var pathParams = {
317
- 'projectOrProductUID': projectOrProductUID,
318
- 'deviceUID': deviceUID,
319
- 'notefileID': notefileID,
320
- 'noteID': noteID
325
+ projectOrProductUID: projectOrProductUID,
326
+ deviceUID: deviceUID,
327
+ notefileID: notefileID,
328
+ noteID: noteID
321
329
  };
322
330
  var queryParams = {};
323
331
  var headerParams = {};
324
332
  var formParams = {};
325
- var authNames = ['personalAccessToken'];
333
+ var authNames = ["personalAccessToken"];
326
334
  var contentTypes = [];
327
- var accepts = ['application/json'];
335
+ var accepts = ["application/json"];
328
336
  var returnType = null;
329
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
337
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
330
338
  }
331
339
 
332
340
  /**
333
341
  * Delete a note from a .db or .qi notefile
334
- * @param {String} projectOrProductUID
335
- * @param {String} deviceUID
336
- * @param {String} notefileID
337
- * @param {String} noteID
342
+ * @param {String} projectOrProductUID
343
+ * @param {String} deviceUID
344
+ * @param {String} notefileID
345
+ * @param {String} noteID
338
346
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
339
347
  */
340
348
  }, {
@@ -347,9 +355,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
347
355
 
348
356
  /**
349
357
  * Deletes Notefiles and the Notes they contain.
350
- * @param {String} projectOrProductUID
351
- * @param {String} deviceUID
352
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
358
+ * @param {String} projectOrProductUID
359
+ * @param {String} deviceUID
360
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
353
361
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
354
362
  */
355
363
  }, {
@@ -369,24 +377,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
369
377
  throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
370
378
  }
371
379
  var pathParams = {
372
- 'projectOrProductUID': projectOrProductUID,
373
- 'deviceUID': deviceUID
380
+ projectOrProductUID: projectOrProductUID,
381
+ deviceUID: deviceUID
374
382
  };
375
383
  var queryParams = {};
376
384
  var headerParams = {};
377
385
  var formParams = {};
378
- var authNames = ['personalAccessToken'];
379
- var contentTypes = ['application/json'];
380
- var accepts = ['application/json'];
386
+ var authNames = ["personalAccessToken"];
387
+ var contentTypes = ["application/json"];
388
+ var accepts = ["application/json"];
381
389
  var returnType = null;
382
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
390
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
383
391
  }
384
392
 
385
393
  /**
386
394
  * Deletes Notefiles and the Notes they contain.
387
- * @param {String} projectOrProductUID
388
- * @param {String} deviceUID
389
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
395
+ * @param {String} projectOrProductUID
396
+ * @param {String} deviceUID
397
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
390
398
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
391
399
  */
392
400
  }, {
@@ -399,8 +407,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
399
407
 
400
408
  /**
401
409
  * Disable Device
402
- * @param {String} projectOrProductUID
403
- * @param {String} deviceUID
410
+ * @param {String} projectOrProductUID
411
+ * @param {String} deviceUID
404
412
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
405
413
  */
406
414
  }, {
@@ -416,23 +424,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
416
424
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
417
425
  }
418
426
  var pathParams = {
419
- 'projectOrProductUID': projectOrProductUID,
420
- 'deviceUID': deviceUID
427
+ projectOrProductUID: projectOrProductUID,
428
+ deviceUID: deviceUID
421
429
  };
422
430
  var queryParams = {};
423
431
  var headerParams = {};
424
432
  var formParams = {};
425
- var authNames = ['personalAccessToken'];
433
+ var authNames = ["personalAccessToken"];
426
434
  var contentTypes = [];
427
- var accepts = ['application/json'];
435
+ var accepts = ["application/json"];
428
436
  var returnType = null;
429
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
437
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
430
438
  }
431
439
 
432
440
  /**
433
441
  * Disable Device
434
- * @param {String} projectOrProductUID
435
- * @param {String} deviceUID
442
+ * @param {String} projectOrProductUID
443
+ * @param {String} deviceUID
436
444
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
437
445
  */
438
446
  }, {
@@ -445,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
445
453
 
446
454
  /**
447
455
  * Disable Connectivity Assurance
448
- * @param {String} projectOrProductUID
449
- * @param {String} deviceUID
456
+ * @param {String} projectOrProductUID
457
+ * @param {String} deviceUID
450
458
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
451
459
  */
452
460
  }, {
@@ -462,23 +470,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
462
470
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
463
471
  }
464
472
  var pathParams = {
465
- 'projectOrProductUID': projectOrProductUID,
466
- 'deviceUID': deviceUID
473
+ projectOrProductUID: projectOrProductUID,
474
+ deviceUID: deviceUID
467
475
  };
468
476
  var queryParams = {};
469
477
  var headerParams = {};
470
478
  var formParams = {};
471
- var authNames = ['personalAccessToken'];
479
+ var authNames = ["personalAccessToken"];
472
480
  var contentTypes = [];
473
- var accepts = ['application/json'];
481
+ var accepts = ["application/json"];
474
482
  var returnType = null;
475
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
483
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
476
484
  }
477
485
 
478
486
  /**
479
487
  * Disable Connectivity Assurance
480
- * @param {String} projectOrProductUID
481
- * @param {String} deviceUID
488
+ * @param {String} projectOrProductUID
489
+ * @param {String} deviceUID
482
490
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
483
491
  */
484
492
  }, {
@@ -491,8 +499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
491
499
 
492
500
  /**
493
501
  * Enable Device
494
- * @param {String} projectOrProductUID
495
- * @param {String} deviceUID
502
+ * @param {String} projectOrProductUID
503
+ * @param {String} deviceUID
496
504
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
497
505
  */
498
506
  }, {
@@ -508,23 +516,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
508
516
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
509
517
  }
510
518
  var pathParams = {
511
- 'projectOrProductUID': projectOrProductUID,
512
- 'deviceUID': deviceUID
519
+ projectOrProductUID: projectOrProductUID,
520
+ deviceUID: deviceUID
513
521
  };
514
522
  var queryParams = {};
515
523
  var headerParams = {};
516
524
  var formParams = {};
517
- var authNames = ['personalAccessToken'];
525
+ var authNames = ["personalAccessToken"];
518
526
  var contentTypes = [];
519
- var accepts = ['application/json'];
527
+ var accepts = ["application/json"];
520
528
  var returnType = null;
521
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
529
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
522
530
  }
523
531
 
524
532
  /**
525
533
  * Enable Device
526
- * @param {String} projectOrProductUID
527
- * @param {String} deviceUID
534
+ * @param {String} projectOrProductUID
535
+ * @param {String} deviceUID
528
536
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
529
537
  */
530
538
  }, {
@@ -537,8 +545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
537
545
 
538
546
  /**
539
547
  * Enable Connectivity Assurance
540
- * @param {String} projectOrProductUID
541
- * @param {String} deviceUID
548
+ * @param {String} projectOrProductUID
549
+ * @param {String} deviceUID
542
550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
543
551
  */
544
552
  }, {
@@ -554,23 +562,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
554
562
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
555
563
  }
556
564
  var pathParams = {
557
- 'projectOrProductUID': projectOrProductUID,
558
- 'deviceUID': deviceUID
565
+ projectOrProductUID: projectOrProductUID,
566
+ deviceUID: deviceUID
559
567
  };
560
568
  var queryParams = {};
561
569
  var headerParams = {};
562
570
  var formParams = {};
563
- var authNames = ['personalAccessToken'];
571
+ var authNames = ["personalAccessToken"];
564
572
  var contentTypes = [];
565
- var accepts = ['application/json'];
573
+ var accepts = ["application/json"];
566
574
  var returnType = null;
567
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
575
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
568
576
  }
569
577
 
570
578
  /**
571
579
  * Enable Connectivity Assurance
572
- * @param {String} projectOrProductUID
573
- * @param {String} deviceUID
580
+ * @param {String} projectOrProductUID
581
+ * @param {String} deviceUID
574
582
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
575
583
  */
576
584
  }, {
@@ -583,10 +591,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
583
591
 
584
592
  /**
585
593
  * Get a note from a .db or .qi notefile
586
- * @param {String} projectOrProductUID
587
- * @param {String} deviceUID
588
- * @param {String} notefileID
589
- * @param {String} noteID
594
+ * @param {String} projectOrProductUID
595
+ * @param {String} deviceUID
596
+ * @param {String} notefileID
597
+ * @param {String} noteID
590
598
  * @param {Object} opts Optional parameters
591
599
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
592
600
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -614,30 +622,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
614
622
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
615
623
  }
616
624
  var pathParams = {
617
- 'projectOrProductUID': projectOrProductUID,
618
- 'deviceUID': deviceUID,
619
- 'notefileID': notefileID,
620
- 'noteID': noteID
625
+ projectOrProductUID: projectOrProductUID,
626
+ deviceUID: deviceUID,
627
+ notefileID: notefileID,
628
+ noteID: noteID
621
629
  };
622
630
  var queryParams = {
623
- 'delete': opts['_delete'],
624
- 'deleted': opts['deleted']
631
+ "delete": opts["_delete"],
632
+ deleted: opts["deleted"]
625
633
  };
626
634
  var headerParams = {};
627
635
  var formParams = {};
628
- var authNames = ['personalAccessToken'];
636
+ var authNames = ["personalAccessToken"];
629
637
  var contentTypes = [];
630
- var accepts = ['application/json'];
638
+ var accepts = ["application/json"];
631
639
  var returnType = _GetDbNote200Response["default"];
632
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
640
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
633
641
  }
634
642
 
635
643
  /**
636
644
  * Get a note from a .db or .qi notefile
637
- * @param {String} projectOrProductUID
638
- * @param {String} deviceUID
639
- * @param {String} notefileID
640
- * @param {String} noteID
645
+ * @param {String} projectOrProductUID
646
+ * @param {String} deviceUID
647
+ * @param {String} notefileID
648
+ * @param {String} noteID
641
649
  * @param {Object} opts Optional parameters
642
650
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
643
651
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -653,8 +661,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
653
661
 
654
662
  /**
655
663
  * Get Device
656
- * @param {String} projectOrProductUID
657
- * @param {String} deviceUID
664
+ * @param {String} projectOrProductUID
665
+ * @param {String} deviceUID
658
666
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
659
667
  */
660
668
  }, {
@@ -670,23 +678,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
670
678
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
671
679
  }
672
680
  var pathParams = {
673
- 'projectOrProductUID': projectOrProductUID,
674
- 'deviceUID': deviceUID
681
+ projectOrProductUID: projectOrProductUID,
682
+ deviceUID: deviceUID
675
683
  };
676
684
  var queryParams = {};
677
685
  var headerParams = {};
678
686
  var formParams = {};
679
- var authNames = ['personalAccessToken'];
687
+ var authNames = ["personalAccessToken"];
680
688
  var contentTypes = [];
681
- var accepts = ['application/json'];
689
+ var accepts = ["application/json"];
682
690
  var returnType = _Device["default"];
683
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
691
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
684
692
  }
685
693
 
686
694
  /**
687
695
  * Get Device
688
- * @param {String} projectOrProductUID
689
- * @param {String} deviceUID
696
+ * @param {String} projectOrProductUID
697
+ * @param {String} deviceUID
690
698
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
691
699
  */
692
700
  }, {
@@ -699,8 +707,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
699
707
 
700
708
  /**
701
709
  * Get environment variable hierarchy for a device
702
- * @param {String} projectOrProductUID
703
- * @param {String} deviceUID
710
+ * @param {String} projectOrProductUID
711
+ * @param {String} deviceUID
704
712
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
705
713
  */
706
714
  }, {
@@ -716,23 +724,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
716
724
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
717
725
  }
718
726
  var pathParams = {
719
- 'projectOrProductUID': projectOrProductUID,
720
- 'deviceUID': deviceUID
727
+ projectOrProductUID: projectOrProductUID,
728
+ deviceUID: deviceUID
721
729
  };
722
730
  var queryParams = {};
723
731
  var headerParams = {};
724
732
  var formParams = {};
725
- var authNames = ['personalAccessToken'];
733
+ var authNames = ["personalAccessToken"];
726
734
  var contentTypes = [];
727
- var accepts = ['application/json'];
735
+ var accepts = ["application/json"];
728
736
  var returnType = _EnvTreeJsonNode["default"];
729
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
737
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
730
738
  }
731
739
 
732
740
  /**
733
741
  * Get environment variable hierarchy for a device
734
- * @param {String} projectOrProductUID
735
- * @param {String} deviceUID
742
+ * @param {String} projectOrProductUID
743
+ * @param {String} deviceUID
736
744
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
737
745
  */
738
746
  }, {
@@ -745,8 +753,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
745
753
 
746
754
  /**
747
755
  * Get environment variables of a device
748
- * @param {String} projectOrProductUID
749
- * @param {String} deviceUID
756
+ * @param {String} projectOrProductUID
757
+ * @param {String} deviceUID
750
758
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
751
759
  */
752
760
  }, {
@@ -762,23 +770,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
762
770
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
763
771
  }
764
772
  var pathParams = {
765
- 'projectOrProductUID': projectOrProductUID,
766
- 'deviceUID': deviceUID
773
+ projectOrProductUID: projectOrProductUID,
774
+ deviceUID: deviceUID
767
775
  };
768
776
  var queryParams = {};
769
777
  var headerParams = {};
770
778
  var formParams = {};
771
- var authNames = ['personalAccessToken'];
779
+ var authNames = ["personalAccessToken"];
772
780
  var contentTypes = [];
773
- var accepts = ['application/json'];
781
+ var accepts = ["application/json"];
774
782
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
775
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
783
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
776
784
  }
777
785
 
778
786
  /**
779
787
  * Get environment variables of a device
780
- * @param {String} projectOrProductUID
781
- * @param {String} deviceUID
788
+ * @param {String} projectOrProductUID
789
+ * @param {String} deviceUID
782
790
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
783
791
  */
784
792
  }, {
@@ -791,14 +799,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
791
799
 
792
800
  /**
793
801
  * Get environment variables of a device with device pin authorization
794
- * @param {String} productUID
795
- * @param {String} deviceUID
796
- * @param {String} xAuthToken For accessing endpoints by Device pin.
802
+ * @param {String} productUID
803
+ * @param {String} deviceUID
797
804
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
798
805
  */
799
806
  }, {
800
807
  key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
801
- value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken) {
808
+ value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
802
809
  var postBody = null;
803
810
  // verify the required parameter 'productUID' is set
804
811
  if (productUID === undefined || productUID === null) {
@@ -808,45 +815,38 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
808
815
  if (deviceUID === undefined || deviceUID === null) {
809
816
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
810
817
  }
811
- // verify the required parameter 'xAuthToken' is set
812
- if (xAuthToken === undefined || xAuthToken === null) {
813
- throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
814
- }
815
818
  var pathParams = {
816
- 'productUID': productUID,
817
- 'deviceUID': deviceUID
819
+ productUID: productUID,
820
+ deviceUID: deviceUID
818
821
  };
819
822
  var queryParams = {};
820
- var headerParams = {
821
- 'X-Auth-Token': xAuthToken
822
- };
823
+ var headerParams = {};
823
824
  var formParams = {};
824
- var authNames = [];
825
+ var authNames = ["pin"];
825
826
  var contentTypes = [];
826
- var accepts = ['application/json'];
827
+ var accepts = ["application/json"];
827
828
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
828
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
829
+ return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
829
830
  }
830
831
 
831
832
  /**
832
833
  * Get environment variables of a device with device pin authorization
833
- * @param {String} productUID
834
- * @param {String} deviceUID
835
- * @param {String} xAuthToken For accessing endpoints by Device pin.
834
+ * @param {String} productUID
835
+ * @param {String} deviceUID
836
836
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
837
837
  */
838
838
  }, {
839
839
  key: "getDeviceEnvironmentVariablesByPin",
840
- value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken) {
841
- return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken).then(function (response_and_data) {
840
+ value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
841
+ return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
842
842
  return response_and_data.data;
843
843
  });
844
844
  }
845
845
 
846
846
  /**
847
847
  * Get Device Health Log
848
- * @param {String} projectOrProductUID
849
- * @param {String} deviceUID
848
+ * @param {String} projectOrProductUID
849
+ * @param {String} deviceUID
850
850
  * @param {Object} opts Optional parameters
851
851
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
852
852
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -867,27 +867,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
867
867
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
868
868
  }
869
869
  var pathParams = {
870
- 'projectOrProductUID': projectOrProductUID,
871
- 'deviceUID': deviceUID
870
+ projectOrProductUID: projectOrProductUID,
871
+ deviceUID: deviceUID
872
872
  };
873
873
  var queryParams = {
874
- 'startDate': opts['startDate'],
875
- 'endDate': opts['endDate'],
876
- 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
874
+ startDate: opts["startDate"],
875
+ endDate: opts["endDate"],
876
+ log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
877
877
  };
878
878
  var headerParams = {};
879
879
  var formParams = {};
880
- var authNames = ['personalAccessToken'];
880
+ var authNames = ["personalAccessToken"];
881
881
  var contentTypes = [];
882
- var accepts = ['application/json'];
882
+ var accepts = ["application/json"];
883
883
  var returnType = _GetDeviceHealthLog200Response["default"];
884
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
884
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
885
885
  }
886
886
 
887
887
  /**
888
888
  * Get Device Health Log
889
- * @param {String} projectOrProductUID
890
- * @param {String} deviceUID
889
+ * @param {String} projectOrProductUID
890
+ * @param {String} deviceUID
891
891
  * @param {Object} opts Optional parameters
892
892
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
893
893
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -904,8 +904,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
904
904
 
905
905
  /**
906
906
  * Get Device Latest Events
907
- * @param {String} projectOrProductUID
908
- * @param {String} deviceUID
907
+ * @param {String} projectOrProductUID
908
+ * @param {String} deviceUID
909
909
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
910
910
  */
911
911
  }, {
@@ -921,23 +921,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
921
921
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
922
922
  }
923
923
  var pathParams = {
924
- 'projectOrProductUID': projectOrProductUID,
925
- 'deviceUID': deviceUID
924
+ projectOrProductUID: projectOrProductUID,
925
+ deviceUID: deviceUID
926
926
  };
927
927
  var queryParams = {};
928
928
  var headerParams = {};
929
929
  var formParams = {};
930
- var authNames = ['personalAccessToken'];
930
+ var authNames = ["personalAccessToken"];
931
931
  var contentTypes = [];
932
- var accepts = ['application/json'];
932
+ var accepts = ["application/json"];
933
933
  var returnType = _GetDeviceLatestEvents200Response["default"];
934
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
934
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
935
935
  }
936
936
 
937
937
  /**
938
938
  * Get Device Latest Events
939
- * @param {String} projectOrProductUID
940
- * @param {String} deviceUID
939
+ * @param {String} projectOrProductUID
940
+ * @param {String} deviceUID
941
941
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
942
942
  */
943
943
  }, {
@@ -950,8 +950,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
950
950
 
951
951
  /**
952
952
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
953
- * @param {String} projectOrProductUID
954
- * @param {String} deviceUID
953
+ * @param {String} projectOrProductUID
954
+ * @param {String} deviceUID
955
955
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
956
956
  */
957
957
  }, {
@@ -967,23 +967,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
967
967
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
968
968
  }
969
969
  var pathParams = {
970
- 'projectOrProductUID': projectOrProductUID,
971
- 'deviceUID': deviceUID
970
+ projectOrProductUID: projectOrProductUID,
971
+ deviceUID: deviceUID
972
972
  };
973
973
  var queryParams = {};
974
974
  var headerParams = {};
975
975
  var formParams = {};
976
- var authNames = ['personalAccessToken'];
976
+ var authNames = ["personalAccessToken"];
977
977
  var contentTypes = [];
978
- var accepts = ['application/json'];
978
+ var accepts = ["application/json"];
979
979
  var returnType = _GetDevicePlans200Response["default"];
980
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
980
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
981
981
  }
982
982
 
983
983
  /**
984
984
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
985
- * @param {String} projectOrProductUID
986
- * @param {String} deviceUID
985
+ * @param {String} projectOrProductUID
986
+ * @param {String} deviceUID
987
987
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
988
988
  */
989
989
  }, {
@@ -996,8 +996,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
996
996
 
997
997
  /**
998
998
  * Get Device Public Key
999
- * @param {String} projectOrProductUID
1000
- * @param {String} deviceUID
999
+ * @param {String} projectOrProductUID
1000
+ * @param {String} deviceUID
1001
1001
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
1002
1002
  */
1003
1003
  }, {
@@ -1013,23 +1013,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1013
1013
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
1014
1014
  }
1015
1015
  var pathParams = {
1016
- 'projectOrProductUID': projectOrProductUID,
1017
- 'deviceUID': deviceUID
1016
+ projectOrProductUID: projectOrProductUID,
1017
+ deviceUID: deviceUID
1018
1018
  };
1019
1019
  var queryParams = {};
1020
1020
  var headerParams = {};
1021
1021
  var formParams = {};
1022
- var authNames = ['personalAccessToken'];
1022
+ var authNames = ["personalAccessToken"];
1023
1023
  var contentTypes = [];
1024
- var accepts = ['application/json'];
1024
+ var accepts = ["application/json"];
1025
1025
  var returnType = _GetDevicePublicKey200Response["default"];
1026
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1026
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1027
1027
  }
1028
1028
 
1029
1029
  /**
1030
1030
  * Get Device Public Key
1031
- * @param {String} projectOrProductUID
1032
- * @param {String} deviceUID
1031
+ * @param {String} projectOrProductUID
1032
+ * @param {String} deviceUID
1033
1033
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
1034
1034
  */
1035
1035
  }, {
@@ -1042,7 +1042,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1042
1042
 
1043
1043
  /**
1044
1044
  * Get Device Public Keys of a Project
1045
- * @param {String} projectOrProductUID
1045
+ * @param {String} projectOrProductUID
1046
1046
  * @param {Object} opts Optional parameters
1047
1047
  * @param {Number} opts.pageSize (default to 50)
1048
1048
  * @param {Number} opts.pageNum (default to 1)
@@ -1058,24 +1058,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1058
1058
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
1059
1059
  }
1060
1060
  var pathParams = {
1061
- 'projectOrProductUID': projectOrProductUID
1061
+ projectOrProductUID: projectOrProductUID
1062
1062
  };
1063
1063
  var queryParams = {
1064
- 'pageSize': opts['pageSize'],
1065
- 'pageNum': opts['pageNum']
1064
+ pageSize: opts["pageSize"],
1065
+ pageNum: opts["pageNum"]
1066
1066
  };
1067
1067
  var headerParams = {};
1068
1068
  var formParams = {};
1069
- var authNames = ['personalAccessToken'];
1069
+ var authNames = ["personalAccessToken"];
1070
1070
  var contentTypes = [];
1071
- var accepts = ['application/json'];
1071
+ var accepts = ["application/json"];
1072
1072
  var returnType = _GetDevicePublicKeys200Response["default"];
1073
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1073
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1074
1074
  }
1075
1075
 
1076
1076
  /**
1077
1077
  * Get Device Public Keys of a Project
1078
- * @param {String} projectOrProductUID
1078
+ * @param {String} projectOrProductUID
1079
1079
  * @param {Object} opts Optional parameters
1080
1080
  * @param {Number} opts.pageSize (default to 50)
1081
1081
  * @param {Number} opts.pageNum (default to 1)
@@ -1091,8 +1091,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1091
1091
 
1092
1092
  /**
1093
1093
  * Get Device Sessions
1094
- * @param {String} projectOrProductUID
1095
- * @param {String} deviceUID
1094
+ * @param {String} projectOrProductUID
1095
+ * @param {String} deviceUID
1096
1096
  * @param {Object} opts Optional parameters
1097
1097
  * @param {Number} opts.pageSize (default to 50)
1098
1098
  * @param {Number} opts.pageNum (default to 1)
@@ -1114,28 +1114,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1114
1114
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
1115
1115
  }
1116
1116
  var pathParams = {
1117
- 'projectOrProductUID': projectOrProductUID,
1118
- 'deviceUID': deviceUID
1117
+ projectOrProductUID: projectOrProductUID,
1118
+ deviceUID: deviceUID
1119
1119
  };
1120
1120
  var queryParams = {
1121
- 'pageSize': opts['pageSize'],
1122
- 'pageNum': opts['pageNum'],
1123
- 'startDate': opts['startDate'],
1124
- 'endDate': opts['endDate']
1121
+ pageSize: opts["pageSize"],
1122
+ pageNum: opts["pageNum"],
1123
+ startDate: opts["startDate"],
1124
+ endDate: opts["endDate"]
1125
1125
  };
1126
1126
  var headerParams = {};
1127
1127
  var formParams = {};
1128
- var authNames = ['personalAccessToken'];
1128
+ var authNames = ["personalAccessToken"];
1129
1129
  var contentTypes = [];
1130
- var accepts = ['application/json'];
1130
+ var accepts = ["application/json"];
1131
1131
  var returnType = _GetDeviceSessions200Response["default"];
1132
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1132
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1133
1133
  }
1134
1134
 
1135
1135
  /**
1136
1136
  * Get Device Sessions
1137
- * @param {String} projectOrProductUID
1138
- * @param {String} deviceUID
1137
+ * @param {String} projectOrProductUID
1138
+ * @param {String} deviceUID
1139
1139
  * @param {Object} opts Optional parameters
1140
1140
  * @param {Number} opts.pageSize (default to 50)
1141
1141
  * @param {Number} opts.pageNum (default to 1)
@@ -1153,18 +1153,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1153
1153
 
1154
1154
  /**
1155
1155
  * Get Devices of a Project
1156
- * @param {String} projectOrProductUID
1156
+ * @param {String} projectOrProductUID
1157
1157
  * @param {Object} opts Optional parameters
1158
1158
  * @param {Number} opts.pageSize (default to 50)
1159
1159
  * @param {Number} opts.pageNum (default to 1)
1160
1160
  * @param {Array.<String>} opts.deviceUID A Device UID.
1161
1161
  * @param {Array.<String>} opts.tag Tag filter
1162
1162
  * @param {Array.<String>} opts.serialNumber Serial number filter
1163
- * @param {Array.<String>} opts.fleetUID
1163
+ * @param {Array.<String>} opts.fleetUID
1164
1164
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1165
1165
  * @param {Array.<String>} opts.location Location filter
1166
1166
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1167
- * @param {Array.<String>} opts.productUID
1167
+ * @param {Array.<String>} opts.productUID
1168
1168
  * @param {Array.<String>} opts.sku SKU filter
1169
1169
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1170
1170
  */
@@ -1178,44 +1178,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1178
1178
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
1179
1179
  }
1180
1180
  var pathParams = {
1181
- 'projectOrProductUID': projectOrProductUID
1181
+ projectOrProductUID: projectOrProductUID
1182
1182
  };
1183
1183
  var queryParams = {
1184
- 'pageSize': opts['pageSize'],
1185
- 'pageNum': opts['pageNum'],
1186
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1187
- 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1188
- 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1189
- 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
1190
- 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1191
- 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1192
- 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1193
- 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1194
- 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1184
+ pageSize: opts["pageSize"],
1185
+ pageNum: opts["pageNum"],
1186
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1187
+ tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1188
+ serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
1189
+ fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
1190
+ notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
1191
+ location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
1192
+ hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
1193
+ productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
1194
+ sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1195
1195
  };
1196
1196
  var headerParams = {};
1197
1197
  var formParams = {};
1198
- var authNames = ['personalAccessToken'];
1198
+ var authNames = ["personalAccessToken"];
1199
1199
  var contentTypes = [];
1200
- var accepts = ['application/json'];
1200
+ var accepts = ["application/json"];
1201
1201
  var returnType = _GetDevices200Response["default"];
1202
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1202
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1203
1203
  }
1204
1204
 
1205
1205
  /**
1206
1206
  * Get Devices of a Project
1207
- * @param {String} projectOrProductUID
1207
+ * @param {String} projectOrProductUID
1208
1208
  * @param {Object} opts Optional parameters
1209
1209
  * @param {Number} opts.pageSize (default to 50)
1210
1210
  * @param {Number} opts.pageNum (default to 1)
1211
1211
  * @param {Array.<String>} opts.deviceUID A Device UID.
1212
1212
  * @param {Array.<String>} opts.tag Tag filter
1213
1213
  * @param {Array.<String>} opts.serialNumber Serial number filter
1214
- * @param {Array.<String>} opts.fleetUID
1214
+ * @param {Array.<String>} opts.fleetUID
1215
1215
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1216
1216
  * @param {Array.<String>} opts.location Location filter
1217
1217
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1218
- * @param {Array.<String>} opts.productUID
1218
+ * @param {Array.<String>} opts.productUID
1219
1219
  * @param {Array.<String>} opts.sku SKU filter
1220
1220
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1221
1221
  */
@@ -1229,8 +1229,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1229
1229
 
1230
1230
  /**
1231
1231
  * Get Devices of a Fleet within a Project
1232
- * @param {String} projectOrProductUID
1233
- * @param {String} fleetUID
1232
+ * @param {String} projectOrProductUID
1233
+ * @param {String} fleetUID
1234
1234
  * @param {Object} opts Optional parameters
1235
1235
  * @param {Number} opts.pageSize (default to 50)
1236
1236
  * @param {Number} opts.pageNum (default to 1)
@@ -1240,7 +1240,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1240
1240
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1241
1241
  * @param {Array.<String>} opts.location Location filter
1242
1242
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1243
- * @param {Array.<String>} opts.productUID
1243
+ * @param {Array.<String>} opts.productUID
1244
1244
  * @param {Array.<String>} opts.sku SKU filter
1245
1245
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1246
1246
  */
@@ -1258,34 +1258,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1258
1258
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
1259
1259
  }
1260
1260
  var pathParams = {
1261
- 'projectOrProductUID': projectOrProductUID,
1262
- 'fleetUID': fleetUID
1261
+ projectOrProductUID: projectOrProductUID,
1262
+ fleetUID: fleetUID
1263
1263
  };
1264
1264
  var queryParams = {
1265
- 'pageSize': opts['pageSize'],
1266
- 'pageNum': opts['pageNum'],
1267
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1268
- 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1269
- 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1270
- 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1271
- 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1272
- 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1273
- 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1274
- 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1265
+ pageSize: opts["pageSize"],
1266
+ pageNum: opts["pageNum"],
1267
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1268
+ tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1269
+ serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
1270
+ notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
1271
+ location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
1272
+ hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
1273
+ productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
1274
+ sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1275
1275
  };
1276
1276
  var headerParams = {};
1277
1277
  var formParams = {};
1278
- var authNames = ['personalAccessToken'];
1278
+ var authNames = ["personalAccessToken"];
1279
1279
  var contentTypes = [];
1280
- var accepts = ['application/json'];
1280
+ var accepts = ["application/json"];
1281
1281
  var returnType = _GetDevices200Response["default"];
1282
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1282
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1283
1283
  }
1284
1284
 
1285
1285
  /**
1286
1286
  * Get Devices of a Fleet within a Project
1287
- * @param {String} projectOrProductUID
1288
- * @param {String} fleetUID
1287
+ * @param {String} projectOrProductUID
1288
+ * @param {String} fleetUID
1289
1289
  * @param {Object} opts Optional parameters
1290
1290
  * @param {Number} opts.pageSize (default to 50)
1291
1291
  * @param {Number} opts.pageNum (default to 1)
@@ -1295,7 +1295,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1295
1295
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1296
1296
  * @param {Array.<String>} opts.location Location filter
1297
1297
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1298
- * @param {Array.<String>} opts.productUID
1298
+ * @param {Array.<String>} opts.productUID
1299
1299
  * @param {Array.<String>} opts.sku SKU filter
1300
1300
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1301
1301
  */
@@ -1309,9 +1309,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1309
1309
 
1310
1310
  /**
1311
1311
  * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1312
- * @param {String} projectOrProductUID
1313
- * @param {String} deviceUID
1314
- * @param {String} notefileID
1312
+ * @param {String} projectOrProductUID
1313
+ * @param {String} deviceUID
1314
+ * @param {String} notefileID
1315
1315
  * @param {Object} opts Optional parameters
1316
1316
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1317
1317
  * @param {Boolean} opts.deleted true to return deleted notes.
@@ -1336,29 +1336,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1336
1336
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
1337
1337
  }
1338
1338
  var pathParams = {
1339
- 'projectOrProductUID': projectOrProductUID,
1340
- 'deviceUID': deviceUID,
1341
- 'notefileID': notefileID
1339
+ projectOrProductUID: projectOrProductUID,
1340
+ deviceUID: deviceUID,
1341
+ notefileID: notefileID
1342
1342
  };
1343
1343
  var queryParams = {
1344
- 'max': opts['max'],
1345
- 'deleted': opts['deleted'],
1346
- 'delete': opts['_delete']
1344
+ max: opts["max"],
1345
+ deleted: opts["deleted"],
1346
+ "delete": opts["_delete"]
1347
1347
  };
1348
1348
  var headerParams = {};
1349
1349
  var formParams = {};
1350
- var authNames = ['personalAccessToken'];
1350
+ var authNames = ["personalAccessToken"];
1351
1351
  var contentTypes = [];
1352
- var accepts = ['application/json'];
1352
+ var accepts = ["application/json"];
1353
1353
  var returnType = _GetNotefile200Response["default"];
1354
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1354
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1355
1355
  }
1356
1356
 
1357
1357
  /**
1358
1358
  * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1359
- * @param {String} projectOrProductUID
1360
- * @param {String} deviceUID
1361
- * @param {String} notefileID
1359
+ * @param {String} projectOrProductUID
1360
+ * @param {String} deviceUID
1361
+ * @param {String} notefileID
1362
1362
  * @param {Object} opts Optional parameters
1363
1363
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1364
1364
  * @param {Boolean} opts.deleted true to return deleted notes.
@@ -1375,8 +1375,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1375
1375
 
1376
1376
  /**
1377
1377
  * Lists .qi and .db files for the device
1378
- * @param {String} projectOrProductUID
1379
- * @param {String} deviceUID
1378
+ * @param {String} projectOrProductUID
1379
+ * @param {String} deviceUID
1380
1380
  * @param {Object} opts Optional parameters
1381
1381
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1382
1382
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
@@ -1396,26 +1396,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1396
1396
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
1397
1397
  }
1398
1398
  var pathParams = {
1399
- 'projectOrProductUID': projectOrProductUID,
1400
- 'deviceUID': deviceUID
1399
+ projectOrProductUID: projectOrProductUID,
1400
+ deviceUID: deviceUID
1401
1401
  };
1402
1402
  var queryParams = {
1403
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1404
- 'pending': opts['pending']
1403
+ files: this.apiClient.buildCollectionParam(opts["files"], "multi"),
1404
+ pending: opts["pending"]
1405
1405
  };
1406
1406
  var headerParams = {};
1407
1407
  var formParams = {};
1408
- var authNames = ['personalAccessToken'];
1408
+ var authNames = ["personalAccessToken"];
1409
1409
  var contentTypes = [];
1410
- var accepts = ['application/json'];
1410
+ var accepts = ["application/json"];
1411
1411
  var returnType = [_Notefile["default"]];
1412
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1412
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1413
1413
  }
1414
1414
 
1415
1415
  /**
1416
1416
  * Lists .qi and .db files for the device
1417
- * @param {String} projectOrProductUID
1418
- * @param {String} deviceUID
1417
+ * @param {String} projectOrProductUID
1418
+ * @param {String} deviceUID
1419
1419
  * @param {Object} opts Optional parameters
1420
1420
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1421
1421
  * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
@@ -1431,8 +1431,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1431
1431
 
1432
1432
  /**
1433
1433
  * Provision Device for a Project
1434
- * @param {String} projectOrProductUID
1435
- * @param {String} deviceUID
1434
+ * @param {String} projectOrProductUID
1435
+ * @param {String} deviceUID
1436
1436
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1437
1437
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1438
1438
  */
@@ -1453,23 +1453,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1453
1453
  throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1454
1454
  }
1455
1455
  var pathParams = {
1456
- 'projectOrProductUID': projectOrProductUID,
1457
- 'deviceUID': deviceUID
1456
+ projectOrProductUID: projectOrProductUID,
1457
+ deviceUID: deviceUID
1458
1458
  };
1459
1459
  var queryParams = {};
1460
1460
  var headerParams = {};
1461
1461
  var formParams = {};
1462
- var authNames = ['personalAccessToken'];
1463
- var contentTypes = ['application/json'];
1464
- var accepts = ['application/json'];
1462
+ var authNames = ["personalAccessToken"];
1463
+ var contentTypes = ["application/json"];
1464
+ var accepts = ["application/json"];
1465
1465
  var returnType = Object;
1466
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1466
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1467
1467
  }
1468
1468
 
1469
1469
  /**
1470
1470
  * Provision Device for a Project
1471
- * @param {String} projectOrProductUID
1472
- * @param {String} deviceUID
1471
+ * @param {String} projectOrProductUID
1472
+ * @param {String} deviceUID
1473
1473
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1474
1474
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1475
1475
  */
@@ -1483,8 +1483,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1483
1483
 
1484
1484
  /**
1485
1485
  * Set environment variables of a device
1486
- * @param {String} projectOrProductUID
1487
- * @param {String} deviceUID
1486
+ * @param {String} projectOrProductUID
1487
+ * @param {String} deviceUID
1488
1488
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1489
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
1490
  */
@@ -1505,23 +1505,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1505
1505
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1506
1506
  }
1507
1507
  var pathParams = {
1508
- 'projectOrProductUID': projectOrProductUID,
1509
- 'deviceUID': deviceUID
1508
+ projectOrProductUID: projectOrProductUID,
1509
+ deviceUID: deviceUID
1510
1510
  };
1511
1511
  var queryParams = {};
1512
1512
  var headerParams = {};
1513
1513
  var formParams = {};
1514
- var authNames = ['personalAccessToken'];
1515
- var contentTypes = ['application/json'];
1516
- var accepts = ['application/json'];
1514
+ var authNames = ["personalAccessToken"];
1515
+ var contentTypes = ["application/json"];
1516
+ var accepts = ["application/json"];
1517
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);
1518
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1519
1519
  }
1520
1520
 
1521
1521
  /**
1522
1522
  * Set environment variables of a device
1523
- * @param {String} projectOrProductUID
1524
- * @param {String} deviceUID
1523
+ * @param {String} projectOrProductUID
1524
+ * @param {String} deviceUID
1525
1525
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1526
1526
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1527
1527
  */
@@ -1535,15 +1535,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1535
1535
 
1536
1536
  /**
1537
1537
  * Set environment variables of a device with device pin authorization
1538
- * @param {String} productUID
1539
- * @param {String} deviceUID
1540
- * @param {String} xAuthToken For accessing endpoints by Device pin.
1538
+ * @param {String} productUID
1539
+ * @param {String} deviceUID
1541
1540
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1542
1541
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1543
1542
  */
1544
1543
  }, {
1545
1544
  key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1546
- value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables) {
1545
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1547
1546
  var postBody = environmentVariables;
1548
1547
  // verify the required parameter 'productUID' is set
1549
1548
  if (productUID === undefined || productUID === null) {
@@ -1553,50 +1552,43 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1553
1552
  if (deviceUID === undefined || deviceUID === null) {
1554
1553
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1555
1554
  }
1556
- // verify the required parameter 'xAuthToken' is set
1557
- if (xAuthToken === undefined || xAuthToken === null) {
1558
- throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling setDeviceEnvironmentVariablesByPin");
1559
- }
1560
1555
  // verify the required parameter 'environmentVariables' is set
1561
1556
  if (environmentVariables === undefined || environmentVariables === null) {
1562
1557
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1563
1558
  }
1564
1559
  var pathParams = {
1565
- 'productUID': productUID,
1566
- 'deviceUID': deviceUID
1560
+ productUID: productUID,
1561
+ deviceUID: deviceUID
1567
1562
  };
1568
1563
  var queryParams = {};
1569
- var headerParams = {
1570
- 'X-Auth-Token': xAuthToken
1571
- };
1564
+ var headerParams = {};
1572
1565
  var formParams = {};
1573
- var authNames = [];
1574
- var contentTypes = ['application/json'];
1575
- var accepts = ['application/json'];
1566
+ var authNames = ["pin"];
1567
+ var contentTypes = ["application/json"];
1568
+ var accepts = ["application/json"];
1576
1569
  var returnType = _EnvironmentVariables["default"];
1577
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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);
1578
1571
  }
1579
1572
 
1580
1573
  /**
1581
1574
  * Set environment variables of a device with device pin authorization
1582
- * @param {String} productUID
1583
- * @param {String} deviceUID
1584
- * @param {String} xAuthToken For accessing endpoints by Device pin.
1575
+ * @param {String} productUID
1576
+ * @param {String} deviceUID
1585
1577
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1586
1578
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1587
1579
  */
1588
1580
  }, {
1589
1581
  key: "setDeviceEnvironmentVariablesByPin",
1590
- value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken, environmentVariables) {
1591
- return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables).then(function (response_and_data) {
1582
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1583
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1592
1584
  return response_and_data.data;
1593
1585
  });
1594
1586
  }
1595
1587
 
1596
1588
  /**
1597
1589
  * Send a signal from Notehub to a Notecard.
1598
- * @param {String} projectOrProductUID
1599
- * @param {String} deviceUID
1590
+ * @param {String} projectOrProductUID
1591
+ * @param {String} deviceUID
1600
1592
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1601
1593
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1602
1594
  */
@@ -1617,23 +1609,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1617
1609
  throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1618
1610
  }
1619
1611
  var pathParams = {
1620
- 'projectOrProductUID': projectOrProductUID,
1621
- 'deviceUID': deviceUID
1612
+ projectOrProductUID: projectOrProductUID,
1613
+ deviceUID: deviceUID
1622
1614
  };
1623
1615
  var queryParams = {};
1624
1616
  var headerParams = {};
1625
1617
  var formParams = {};
1626
- var authNames = ['personalAccessToken'];
1627
- var contentTypes = ['application/json'];
1628
- var accepts = ['application/json'];
1618
+ var authNames = ["personalAccessToken"];
1619
+ var contentTypes = ["application/json"];
1620
+ var accepts = ["application/json"];
1629
1621
  var returnType = _SignalDevice200Response["default"];
1630
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1622
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1631
1623
  }
1632
1624
 
1633
1625
  /**
1634
1626
  * Send a signal from Notehub to a Notecard.
1635
- * @param {String} projectOrProductUID
1636
- * @param {String} deviceUID
1627
+ * @param {String} projectOrProductUID
1628
+ * @param {String} deviceUID
1637
1629
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1638
1630
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1639
1631
  */
@@ -1647,10 +1639,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1647
1639
 
1648
1640
  /**
1649
1641
  * Update a note in a .db or .qi notefile
1650
- * @param {String} projectOrProductUID
1651
- * @param {String} deviceUID
1652
- * @param {String} notefileID
1653
- * @param {String} noteID
1642
+ * @param {String} projectOrProductUID
1643
+ * @param {String} deviceUID
1644
+ * @param {String} notefileID
1645
+ * @param {String} noteID
1654
1646
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1655
1647
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1656
1648
  */
@@ -1679,27 +1671,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1679
1671
  throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1680
1672
  }
1681
1673
  var pathParams = {
1682
- 'projectOrProductUID': projectOrProductUID,
1683
- 'deviceUID': deviceUID,
1684
- 'notefileID': notefileID,
1685
- 'noteID': noteID
1674
+ projectOrProductUID: projectOrProductUID,
1675
+ deviceUID: deviceUID,
1676
+ notefileID: notefileID,
1677
+ noteID: noteID
1686
1678
  };
1687
1679
  var queryParams = {};
1688
1680
  var headerParams = {};
1689
1681
  var formParams = {};
1690
- var authNames = ['personalAccessToken'];
1691
- var contentTypes = ['application/json'];
1692
- var accepts = ['application/json'];
1682
+ var authNames = ["personalAccessToken"];
1683
+ var contentTypes = ["application/json"];
1684
+ var accepts = ["application/json"];
1693
1685
  var returnType = null;
1694
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1686
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1695
1687
  }
1696
1688
 
1697
1689
  /**
1698
1690
  * Update a note in a .db or .qi notefile
1699
- * @param {String} projectOrProductUID
1700
- * @param {String} deviceUID
1701
- * @param {String} notefileID
1702
- * @param {String} noteID
1691
+ * @param {String} projectOrProductUID
1692
+ * @param {String} deviceUID
1693
+ * @param {String} notefileID
1694
+ * @param {String} noteID
1703
1695
  * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1704
1696
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1705
1697
  */