@blues-inc/notehub-js 2.2.1 → 2.3.0-beta.2

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 (142) hide show
  1. package/README.md +247 -241
  2. package/dist/ApiClient.js +154 -154
  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 +352 -444
  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 +44 -44
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/model/Alert.js +76 -74
  15. package/dist/model/AlertDataInner.js +35 -35
  16. package/dist/model/AlertNotificationsInner.js +18 -18
  17. package/dist/model/AwsRoute.js +65 -65
  18. package/dist/model/AzureRoute.js +43 -43
  19. package/dist/model/BillingAccount.js +21 -21
  20. package/dist/model/BillingAccountRole.js +9 -9
  21. package/dist/model/BlynkRoute.js +28 -28
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CellularPlan.js +34 -34
  24. package/dist/model/CloneProjectRequest.js +20 -20
  25. package/dist/model/Contact.js +22 -22
  26. package/dist/model/CreateFleetRequest.js +17 -17
  27. package/dist/model/CreateMonitor.js +126 -125
  28. package/dist/model/CreateProductRequest.js +22 -22
  29. package/dist/model/CreateProjectRequest.js +16 -16
  30. package/dist/model/CreateUpdateRepository.js +17 -17
  31. package/dist/model/CurrentFirmware.js +12 -12
  32. package/dist/model/DFUEnv.js +12 -12
  33. package/dist/model/DFUState.js +65 -65
  34. package/dist/model/DataField.js +7 -7
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DataUsage.js +14 -14
  37. package/dist/model/DatacakeRoute.js +35 -35
  38. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  39. package/dist/model/Device.js +102 -101
  40. package/dist/model/DeviceDfuHistory.js +20 -19
  41. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  42. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  43. package/dist/model/DeviceDfuStateMachine.js +25 -24
  44. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  45. package/dist/model/DeviceDfuStatus.js +20 -20
  46. package/dist/model/DeviceDfuStatusPage.js +13 -12
  47. package/dist/model/DeviceSession.js +221 -221
  48. package/dist/model/DeviceTowerInfo.js +14 -14
  49. package/dist/model/DeviceUsage.js +32 -32
  50. package/dist/model/DfuActionRequest.js +7 -7
  51. package/dist/model/EmailNotification.js +7 -7
  52. package/dist/model/EnvTreeJsonNode.js +69 -67
  53. package/dist/model/EnvVar.js +18 -18
  54. package/dist/model/EnvironmentVariables.js +8 -8
  55. package/dist/model/Error.js +31 -31
  56. package/dist/model/Event.js +248 -248
  57. package/dist/model/Filter.js +16 -16
  58. package/dist/model/Firmware.js +49 -49
  59. package/dist/model/FirmwareInfo.js +60 -60
  60. package/dist/model/Fleet.js +35 -35
  61. package/dist/model/FleetConnectivityAssurance.js +6 -6
  62. package/dist/model/GetAlerts200Response.js +15 -14
  63. package/dist/model/GetBillingAccounts200Response.js +10 -9
  64. package/dist/model/GetDataUsage200Response.js +10 -9
  65. package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
  66. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  67. package/dist/model/GetDeviceFleets200Response.js +12 -11
  68. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  69. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  70. package/dist/model/GetDeviceLatest200Response.js +10 -9
  71. package/dist/model/GetDevicePlans200Response.js +10 -9
  72. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  73. package/dist/model/GetDeviceSessions200Response.js +17 -16
  74. package/dist/model/GetProducts200Response.js +10 -9
  75. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  76. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  77. package/dist/model/GetProjectDevices200Response.js +17 -16
  78. package/dist/model/GetProjectEvents200Response.js +21 -20
  79. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  80. package/dist/model/GetProjectMembers200Response.js +12 -11
  81. package/dist/model/GetProjects200Response.js +10 -9
  82. package/dist/model/GetSessionsUsage200Response.js +12 -11
  83. package/dist/model/GetWebhooks200Response.js +10 -9
  84. package/dist/model/GoogleRoute.js +33 -33
  85. package/dist/model/HandleNoteChanges200Response.js +11 -11
  86. package/dist/model/HandleNoteGet200Response.js +13 -13
  87. package/dist/model/HandleNoteSignal200Response.js +5 -5
  88. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  89. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  90. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  91. package/dist/model/HttpRoute.js +35 -35
  92. package/dist/model/Location.js +40 -40
  93. package/dist/model/Login200Response.js +7 -7
  94. package/dist/model/LoginRequest.js +12 -12
  95. package/dist/model/Monitor.js +100 -99
  96. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  97. package/dist/model/MqttRoute.js +68 -68
  98. package/dist/model/Note.js +10 -10
  99. package/dist/model/NotefileSchema.js +19 -18
  100. package/dist/model/NotehubRoute.js +98 -98
  101. package/dist/model/NotehubRouteSummary.js +23 -23
  102. package/dist/model/OAuth2Error.js +20 -20
  103. package/dist/model/OAuth2TokenResponse.js +23 -23
  104. package/dist/model/PersonalAccessToken.js +34 -34
  105. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  106. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  107. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  108. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  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/ProxyRoute.js +38 -24
  113. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  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 +27 -14
  120. package/dist/model/S3ArchiveRoute.js +79 -79
  121. package/dist/model/SatellitePlan.js +26 -26
  122. package/dist/model/SchemaProperty.js +38 -36
  123. package/dist/model/SimUsage.js +19 -19
  124. package/dist/model/SlackBearerNotification.js +25 -25
  125. package/dist/model/SlackRoute.js +48 -48
  126. package/dist/model/SlackWebHookNotification.js +20 -20
  127. package/dist/model/SnowflakeRoute.js +45 -45
  128. package/dist/model/ThingworxRoute.js +33 -33
  129. package/dist/model/TowerLocation.js +54 -54
  130. package/dist/model/TwilioRoute.js +43 -43
  131. package/dist/model/UpdateFleetRequest.js +30 -30
  132. package/dist/model/UploadMetadata.js +64 -64
  133. package/dist/model/UsageData.js +18 -18
  134. package/dist/model/UsageEventsData.js +29 -29
  135. package/dist/model/UsageEventsResponse.js +12 -11
  136. package/dist/model/UsageRouteLogsData.js +27 -27
  137. package/dist/model/UsageSessionsData.js +27 -27
  138. package/dist/model/UserDfuStateMachine.js +20 -20
  139. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  140. package/dist/model/UserFirmwareInfo.js +12 -12
  141. package/dist/model/WebhookSettings.js +15 -15
  142. package/package.json +3 -3
@@ -34,7 +34,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
34
34
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
35
35
  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); } /**
36
36
  * Notehub API
37
- * The OpenAPI definition for the Notehub.io API.
37
+ * The OpenAPI definition for the Notehub.io API.
38
38
  *
39
39
  * The version of the OpenAPI document: 1.2.0
40
40
  * Contact: engineering@blues.io
@@ -45,18 +45,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
45
45
  *
46
46
  */
47
47
  /**
48
- * Device service.
49
- * @module api/DeviceApi
50
- * @version 2.2.1
51
- */
48
+ * Device service.
49
+ * @module api/DeviceApi
50
+ * @version 2.3.0-beta.2
51
+ */
52
52
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
53
  /**
54
- * Constructs a new DeviceApi.
55
- * @alias module:api/DeviceApi
56
- * @class
57
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
- * default to {@link module:ApiClient#instance} if unspecified.
59
- */
54
+ * Constructs a new DeviceApi.
55
+ * @alias module:api/DeviceApi
56
+ * @class
57
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
+ * default to {@link module:ApiClient#instance} if unspecified.
59
+ */
60
60
  function DeviceApi(apiClient) {
61
61
  _classCallCheck(this, DeviceApi);
62
62
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -64,8 +64,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
64
64
 
65
65
  /**
66
66
  * Delete environment variable of a device
67
- * @param {String} projectOrProductUID
68
- * @param {String} deviceUID
67
+ * @param {String} projectOrProductUID
68
+ * @param {String} deviceUID
69
69
  * @param {String} key The environment variable key to delete.
70
70
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
71
71
  */
@@ -86,24 +86,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
86
86
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
87
87
  }
88
88
  var pathParams = {
89
- projectOrProductUID: projectOrProductUID,
90
- deviceUID: deviceUID,
91
- key: key
89
+ 'projectOrProductUID': projectOrProductUID,
90
+ 'deviceUID': deviceUID,
91
+ 'key': key
92
92
  };
93
93
  var queryParams = {};
94
94
  var headerParams = {};
95
95
  var formParams = {};
96
- var authNames = ["personalAccessToken"];
96
+ var authNames = ['personalAccessToken'];
97
97
  var contentTypes = [];
98
- var accepts = ["application/json"];
98
+ var accepts = ['application/json'];
99
99
  var returnType = _EnvironmentVariables["default"];
100
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
100
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
101
101
  }
102
102
 
103
103
  /**
104
104
  * Delete environment variable of a device
105
- * @param {String} projectOrProductUID
106
- * @param {String} deviceUID
105
+ * @param {String} projectOrProductUID
106
+ * @param {String} deviceUID
107
107
  * @param {String} key The environment variable key to delete.
108
108
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
109
109
  */
@@ -117,9 +117,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
117
117
 
118
118
  /**
119
119
  * Delete Device
120
- * @param {String} projectOrProductUID
121
- * @param {String} deviceUID
122
- * @param {Boolean} purge
120
+ * @param {String} projectOrProductUID
121
+ * @param {String} deviceUID
122
+ * @param {Boolean} purge
123
123
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
124
124
  */
125
125
  }, {
@@ -139,26 +139,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
139
139
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
140
140
  }
141
141
  var pathParams = {
142
- projectOrProductUID: projectOrProductUID,
143
- deviceUID: deviceUID
142
+ 'projectOrProductUID': projectOrProductUID,
143
+ 'deviceUID': deviceUID
144
144
  };
145
145
  var queryParams = {
146
- purge: purge
146
+ 'purge': purge
147
147
  };
148
148
  var headerParams = {};
149
149
  var formParams = {};
150
- var authNames = ["personalAccessToken"];
150
+ var authNames = ['personalAccessToken'];
151
151
  var contentTypes = [];
152
- var accepts = ["application/json"];
152
+ var accepts = ['application/json'];
153
153
  var returnType = null;
154
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
154
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
155
  }
156
156
 
157
157
  /**
158
158
  * Delete Device
159
- * @param {String} projectOrProductUID
160
- * @param {String} deviceUID
161
- * @param {Boolean} purge
159
+ * @param {String} projectOrProductUID
160
+ * @param {String} deviceUID
161
+ * @param {Boolean} purge
162
162
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
163
163
  */
164
164
  }, {
@@ -171,8 +171,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
171
171
 
172
172
  /**
173
173
  * Disable Device
174
- * @param {String} projectOrProductUID
175
- * @param {String} deviceUID
174
+ * @param {String} projectOrProductUID
175
+ * @param {String} deviceUID
176
176
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
177
177
  */
178
178
  }, {
@@ -188,23 +188,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
188
188
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
189
189
  }
190
190
  var pathParams = {
191
- projectOrProductUID: projectOrProductUID,
192
- deviceUID: deviceUID
191
+ 'projectOrProductUID': projectOrProductUID,
192
+ 'deviceUID': deviceUID
193
193
  };
194
194
  var queryParams = {};
195
195
  var headerParams = {};
196
196
  var formParams = {};
197
- var authNames = ["personalAccessToken"];
197
+ var authNames = ['personalAccessToken'];
198
198
  var contentTypes = [];
199
- var accepts = ["application/json"];
199
+ var accepts = ['application/json'];
200
200
  var returnType = null;
201
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
201
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
202
202
  }
203
203
 
204
204
  /**
205
205
  * Disable Device
206
- * @param {String} projectOrProductUID
207
- * @param {String} deviceUID
206
+ * @param {String} projectOrProductUID
207
+ * @param {String} deviceUID
208
208
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
209
209
  */
210
210
  }, {
@@ -215,56 +215,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
215
215
  });
216
216
  }
217
217
 
218
- /**
219
- * Disable Connectivity Assurance
220
- * @param {String} projectOrProductUID
221
- * @param {String} deviceUID
222
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
223
- */
224
- }, {
225
- key: "disableDeviceConnectivityAssuranceWithHttpInfo",
226
- value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
227
- var postBody = null;
228
- // verify the required parameter 'projectOrProductUID' is set
229
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
230
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDeviceConnectivityAssurance");
231
- }
232
- // verify the required parameter 'deviceUID' is set
233
- if (deviceUID === undefined || deviceUID === null) {
234
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
235
- }
236
- var pathParams = {
237
- projectOrProductUID: projectOrProductUID,
238
- deviceUID: deviceUID
239
- };
240
- var queryParams = {};
241
- var headerParams = {};
242
- var formParams = {};
243
- var authNames = ["personalAccessToken"];
244
- var contentTypes = [];
245
- var accepts = ["application/json"];
246
- var returnType = null;
247
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
248
- }
249
-
250
- /**
251
- * Disable Connectivity Assurance
252
- * @param {String} projectOrProductUID
253
- * @param {String} deviceUID
254
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
255
- */
256
- }, {
257
- key: "disableDeviceConnectivityAssurance",
258
- value: function disableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
259
- return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
260
- return response_and_data.data;
261
- });
262
- }
263
-
264
218
  /**
265
219
  * Enable Device
266
- * @param {String} projectOrProductUID
267
- * @param {String} deviceUID
220
+ * @param {String} projectOrProductUID
221
+ * @param {String} deviceUID
268
222
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
269
223
  */
270
224
  }, {
@@ -280,23 +234,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
280
234
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
281
235
  }
282
236
  var pathParams = {
283
- projectOrProductUID: projectOrProductUID,
284
- deviceUID: deviceUID
237
+ 'projectOrProductUID': projectOrProductUID,
238
+ 'deviceUID': deviceUID
285
239
  };
286
240
  var queryParams = {};
287
241
  var headerParams = {};
288
242
  var formParams = {};
289
- var authNames = ["personalAccessToken"];
243
+ var authNames = ['personalAccessToken'];
290
244
  var contentTypes = [];
291
- var accepts = ["application/json"];
245
+ var accepts = ['application/json'];
292
246
  var returnType = null;
293
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
247
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
294
248
  }
295
249
 
296
250
  /**
297
251
  * Enable Device
298
- * @param {String} projectOrProductUID
299
- * @param {String} deviceUID
252
+ * @param {String} projectOrProductUID
253
+ * @param {String} deviceUID
300
254
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
301
255
  */
302
256
  }, {
@@ -307,56 +261,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
307
261
  });
308
262
  }
309
263
 
310
- /**
311
- * Enable Connectivity Assurance
312
- * @param {String} projectOrProductUID
313
- * @param {String} deviceUID
314
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
315
- */
316
- }, {
317
- key: "enableDeviceConnectivityAssuranceWithHttpInfo",
318
- value: function enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
319
- var postBody = null;
320
- // verify the required parameter 'projectOrProductUID' is set
321
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
322
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDeviceConnectivityAssurance");
323
- }
324
- // verify the required parameter 'deviceUID' is set
325
- if (deviceUID === undefined || deviceUID === null) {
326
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
327
- }
328
- var pathParams = {
329
- projectOrProductUID: projectOrProductUID,
330
- deviceUID: deviceUID
331
- };
332
- var queryParams = {};
333
- var headerParams = {};
334
- var formParams = {};
335
- var authNames = ["personalAccessToken"];
336
- var contentTypes = [];
337
- var accepts = ["application/json"];
338
- var returnType = null;
339
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
- }
341
-
342
- /**
343
- * Enable Connectivity Assurance
344
- * @param {String} projectOrProductUID
345
- * @param {String} deviceUID
346
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
347
- */
348
- }, {
349
- key: "enableDeviceConnectivityAssurance",
350
- value: function enableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
351
- return this.enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
352
- return response_and_data.data;
353
- });
354
- }
355
-
356
264
  /**
357
265
  * Get Device
358
- * @param {String} projectOrProductUID
359
- * @param {String} deviceUID
266
+ * @param {String} projectOrProductUID
267
+ * @param {String} deviceUID
360
268
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
361
269
  */
362
270
  }, {
@@ -372,23 +280,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
372
280
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
373
281
  }
374
282
  var pathParams = {
375
- projectOrProductUID: projectOrProductUID,
376
- deviceUID: deviceUID
283
+ 'projectOrProductUID': projectOrProductUID,
284
+ 'deviceUID': deviceUID
377
285
  };
378
286
  var queryParams = {};
379
287
  var headerParams = {};
380
288
  var formParams = {};
381
- var authNames = ["personalAccessToken"];
289
+ var authNames = ['personalAccessToken'];
382
290
  var contentTypes = [];
383
- var accepts = ["application/json"];
291
+ var accepts = ['application/json'];
384
292
  var returnType = _Device["default"];
385
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
293
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
386
294
  }
387
295
 
388
296
  /**
389
297
  * Get Device
390
- * @param {String} projectOrProductUID
391
- * @param {String} deviceUID
298
+ * @param {String} projectOrProductUID
299
+ * @param {String} deviceUID
392
300
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
393
301
  */
394
302
  }, {
@@ -401,8 +309,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
401
309
 
402
310
  /**
403
311
  * Get environment variable hierarchy for a device
404
- * @param {String} projectOrProductUID
405
- * @param {String} deviceUID
312
+ * @param {String} projectOrProductUID
313
+ * @param {String} deviceUID
406
314
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
407
315
  */
408
316
  }, {
@@ -418,23 +326,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
418
326
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
419
327
  }
420
328
  var pathParams = {
421
- projectOrProductUID: projectOrProductUID,
422
- deviceUID: deviceUID
329
+ 'projectOrProductUID': projectOrProductUID,
330
+ 'deviceUID': deviceUID
423
331
  };
424
332
  var queryParams = {};
425
333
  var headerParams = {};
426
334
  var formParams = {};
427
- var authNames = ["personalAccessToken"];
335
+ var authNames = ['personalAccessToken'];
428
336
  var contentTypes = [];
429
- var accepts = ["application/json"];
337
+ var accepts = ['application/json'];
430
338
  var returnType = _EnvTreeJsonNode["default"];
431
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
339
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
432
340
  }
433
341
 
434
342
  /**
435
343
  * Get environment variable hierarchy for a device
436
- * @param {String} projectOrProductUID
437
- * @param {String} deviceUID
344
+ * @param {String} projectOrProductUID
345
+ * @param {String} deviceUID
438
346
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
439
347
  */
440
348
  }, {
@@ -447,8 +355,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
447
355
 
448
356
  /**
449
357
  * Get environment variables of a device
450
- * @param {String} projectOrProductUID
451
- * @param {String} deviceUID
358
+ * @param {String} projectOrProductUID
359
+ * @param {String} deviceUID
452
360
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
453
361
  */
454
362
  }, {
@@ -464,23 +372,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
464
372
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
465
373
  }
466
374
  var pathParams = {
467
- projectOrProductUID: projectOrProductUID,
468
- deviceUID: deviceUID
375
+ 'projectOrProductUID': projectOrProductUID,
376
+ 'deviceUID': deviceUID
469
377
  };
470
378
  var queryParams = {};
471
379
  var headerParams = {};
472
380
  var formParams = {};
473
- var authNames = ["personalAccessToken"];
381
+ var authNames = ['personalAccessToken'];
474
382
  var contentTypes = [];
475
- var accepts = ["application/json"];
383
+ var accepts = ['application/json'];
476
384
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
477
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
385
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
478
386
  }
479
387
 
480
388
  /**
481
389
  * Get environment variables of a device
482
- * @param {String} projectOrProductUID
483
- * @param {String} deviceUID
390
+ * @param {String} projectOrProductUID
391
+ * @param {String} deviceUID
484
392
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
485
393
  */
486
394
  }, {
@@ -493,8 +401,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
493
401
 
494
402
  /**
495
403
  * Get environment variables of a device with device pin authorization
496
- * @param {String} productUID
497
- * @param {String} deviceUID
404
+ * @param {String} productUID
405
+ * @param {String} deviceUID
498
406
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
499
407
  */
500
408
  }, {
@@ -510,23 +418,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
510
418
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
511
419
  }
512
420
  var pathParams = {
513
- productUID: productUID,
514
- deviceUID: deviceUID
421
+ 'productUID': productUID,
422
+ 'deviceUID': deviceUID
515
423
  };
516
424
  var queryParams = {};
517
425
  var headerParams = {};
518
426
  var formParams = {};
519
- var authNames = ["pin"];
427
+ var authNames = ['pin'];
520
428
  var contentTypes = [];
521
- var accepts = ["application/json"];
429
+ var accepts = ['application/json'];
522
430
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
523
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
431
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
524
432
  }
525
433
 
526
434
  /**
527
435
  * Get environment variables of a device with device pin authorization
528
- * @param {String} productUID
529
- * @param {String} deviceUID
436
+ * @param {String} productUID
437
+ * @param {String} deviceUID
530
438
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
531
439
  */
532
440
  }, {
@@ -539,8 +447,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
539
447
 
540
448
  /**
541
449
  * Get Device Health Log
542
- * @param {String} projectOrProductUID
543
- * @param {String} deviceUID
450
+ * @param {String} projectOrProductUID
451
+ * @param {String} deviceUID
544
452
  * @param {Object} opts Optional parameters
545
453
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
546
454
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -561,27 +469,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
561
469
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
562
470
  }
563
471
  var pathParams = {
564
- projectOrProductUID: projectOrProductUID,
565
- deviceUID: deviceUID
472
+ 'projectOrProductUID': projectOrProductUID,
473
+ 'deviceUID': deviceUID
566
474
  };
567
475
  var queryParams = {
568
- startDate: opts["startDate"],
569
- endDate: opts["endDate"],
570
- log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
476
+ 'startDate': opts['startDate'],
477
+ 'endDate': opts['endDate'],
478
+ 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
571
479
  };
572
480
  var headerParams = {};
573
481
  var formParams = {};
574
- var authNames = ["personalAccessToken"];
482
+ var authNames = ['personalAccessToken'];
575
483
  var contentTypes = [];
576
- var accepts = ["application/json"];
484
+ var accepts = ['application/json'];
577
485
  var returnType = _GetDeviceHealthLog200Response["default"];
578
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
486
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
579
487
  }
580
488
 
581
489
  /**
582
490
  * Get Device Health Log
583
- * @param {String} projectOrProductUID
584
- * @param {String} deviceUID
491
+ * @param {String} projectOrProductUID
492
+ * @param {String} deviceUID
585
493
  * @param {Object} opts Optional parameters
586
494
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
587
495
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -598,8 +506,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
598
506
 
599
507
  /**
600
508
  * Get Device Latest Events
601
- * @param {String} projectOrProductUID
602
- * @param {String} deviceUID
509
+ * @param {String} projectOrProductUID
510
+ * @param {String} deviceUID
603
511
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
604
512
  */
605
513
  }, {
@@ -615,23 +523,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
615
523
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
616
524
  }
617
525
  var pathParams = {
618
- projectOrProductUID: projectOrProductUID,
619
- deviceUID: deviceUID
526
+ 'projectOrProductUID': projectOrProductUID,
527
+ 'deviceUID': deviceUID
620
528
  };
621
529
  var queryParams = {};
622
530
  var headerParams = {};
623
531
  var formParams = {};
624
- var authNames = ["personalAccessToken"];
532
+ var authNames = ['personalAccessToken'];
625
533
  var contentTypes = [];
626
- var accepts = ["application/json"];
534
+ var accepts = ['application/json'];
627
535
  var returnType = _GetDeviceLatest200Response["default"];
628
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
536
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
629
537
  }
630
538
 
631
539
  /**
632
540
  * Get Device Latest Events
633
- * @param {String} projectOrProductUID
634
- * @param {String} deviceUID
541
+ * @param {String} projectOrProductUID
542
+ * @param {String} deviceUID
635
543
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
636
544
  */
637
545
  }, {
@@ -644,8 +552,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
644
552
 
645
553
  /**
646
554
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
647
- * @param {String} projectOrProductUID
648
- * @param {String} deviceUID
555
+ * @param {String} projectOrProductUID
556
+ * @param {String} deviceUID
649
557
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
650
558
  */
651
559
  }, {
@@ -661,23 +569,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
661
569
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
662
570
  }
663
571
  var pathParams = {
664
- projectOrProductUID: projectOrProductUID,
665
- deviceUID: deviceUID
572
+ 'projectOrProductUID': projectOrProductUID,
573
+ 'deviceUID': deviceUID
666
574
  };
667
575
  var queryParams = {};
668
576
  var headerParams = {};
669
577
  var formParams = {};
670
- var authNames = ["personalAccessToken"];
578
+ var authNames = ['personalAccessToken'];
671
579
  var contentTypes = [];
672
- var accepts = ["application/json"];
580
+ var accepts = ['application/json'];
673
581
  var returnType = _GetDevicePlans200Response["default"];
674
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
582
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
675
583
  }
676
584
 
677
585
  /**
678
586
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
679
- * @param {String} projectOrProductUID
680
- * @param {String} deviceUID
587
+ * @param {String} projectOrProductUID
588
+ * @param {String} deviceUID
681
589
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
682
590
  */
683
591
  }, {
@@ -690,8 +598,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
690
598
 
691
599
  /**
692
600
  * Get Device Public Key
693
- * @param {String} projectOrProductUID
694
- * @param {String} deviceUID
601
+ * @param {String} projectOrProductUID
602
+ * @param {String} deviceUID
695
603
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
696
604
  */
697
605
  }, {
@@ -707,23 +615,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
707
615
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
708
616
  }
709
617
  var pathParams = {
710
- projectOrProductUID: projectOrProductUID,
711
- deviceUID: deviceUID
618
+ 'projectOrProductUID': projectOrProductUID,
619
+ 'deviceUID': deviceUID
712
620
  };
713
621
  var queryParams = {};
714
622
  var headerParams = {};
715
623
  var formParams = {};
716
- var authNames = ["personalAccessToken"];
624
+ var authNames = ['personalAccessToken'];
717
625
  var contentTypes = [];
718
- var accepts = ["application/json"];
626
+ var accepts = ['application/json'];
719
627
  var returnType = _GetDevicePublicKey200Response["default"];
720
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
628
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
721
629
  }
722
630
 
723
631
  /**
724
632
  * Get Device Public Key
725
- * @param {String} projectOrProductUID
726
- * @param {String} deviceUID
633
+ * @param {String} projectOrProductUID
634
+ * @param {String} deviceUID
727
635
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
728
636
  */
729
637
  }, {
@@ -736,8 +644,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
736
644
 
737
645
  /**
738
646
  * Get Device Sessions
739
- * @param {String} projectOrProductUID
740
- * @param {String} deviceUID
647
+ * @param {String} projectOrProductUID
648
+ * @param {String} deviceUID
741
649
  * @param {Object} opts Optional parameters
742
650
  * @param {Number} opts.pageSize (default to 50)
743
651
  * @param {Number} opts.pageNum (default to 1)
@@ -759,28 +667,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
759
667
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
760
668
  }
761
669
  var pathParams = {
762
- projectOrProductUID: projectOrProductUID,
763
- deviceUID: deviceUID
670
+ 'projectOrProductUID': projectOrProductUID,
671
+ 'deviceUID': deviceUID
764
672
  };
765
673
  var queryParams = {
766
- pageSize: opts["pageSize"],
767
- pageNum: opts["pageNum"],
768
- startDate: opts["startDate"],
769
- endDate: opts["endDate"]
674
+ 'pageSize': opts['pageSize'],
675
+ 'pageNum': opts['pageNum'],
676
+ 'startDate': opts['startDate'],
677
+ 'endDate': opts['endDate']
770
678
  };
771
679
  var headerParams = {};
772
680
  var formParams = {};
773
- var authNames = ["personalAccessToken"];
681
+ var authNames = ['personalAccessToken'];
774
682
  var contentTypes = [];
775
- var accepts = ["application/json"];
683
+ var accepts = ['application/json'];
776
684
  var returnType = _GetDeviceSessions200Response["default"];
777
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
685
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
778
686
  }
779
687
 
780
688
  /**
781
689
  * Get Device Sessions
782
- * @param {String} projectOrProductUID
783
- * @param {String} deviceUID
690
+ * @param {String} projectOrProductUID
691
+ * @param {String} deviceUID
784
692
  * @param {Object} opts Optional parameters
785
693
  * @param {Number} opts.pageSize (default to 50)
786
694
  * @param {Number} opts.pageNum (default to 1)
@@ -798,7 +706,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
798
706
 
799
707
  /**
800
708
  * Get Device Public Keys of a Project
801
- * @param {String} projectOrProductUID
709
+ * @param {String} projectOrProductUID
802
710
  * @param {Object} opts Optional parameters
803
711
  * @param {Number} opts.pageSize (default to 50)
804
712
  * @param {Number} opts.pageNum (default to 1)
@@ -814,24 +722,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
814
722
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
815
723
  }
816
724
  var pathParams = {
817
- projectOrProductUID: projectOrProductUID
725
+ 'projectOrProductUID': projectOrProductUID
818
726
  };
819
727
  var queryParams = {
820
- pageSize: opts["pageSize"],
821
- pageNum: opts["pageNum"]
728
+ 'pageSize': opts['pageSize'],
729
+ 'pageNum': opts['pageNum']
822
730
  };
823
731
  var headerParams = {};
824
732
  var formParams = {};
825
- var authNames = ["personalAccessToken"];
733
+ var authNames = ['personalAccessToken'];
826
734
  var contentTypes = [];
827
- var accepts = ["application/json"];
735
+ var accepts = ['application/json'];
828
736
  var returnType = _GetProjectDevicePublicKeys200Response["default"];
829
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
737
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
830
738
  }
831
739
 
832
740
  /**
833
741
  * Get Device Public Keys of a Project
834
- * @param {String} projectOrProductUID
742
+ * @param {String} projectOrProductUID
835
743
  * @param {Object} opts Optional parameters
836
744
  * @param {Number} opts.pageSize (default to 50)
837
745
  * @param {Number} opts.pageNum (default to 1)
@@ -847,18 +755,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
847
755
 
848
756
  /**
849
757
  * Get Devices of a Project
850
- * @param {String} projectOrProductUID
758
+ * @param {String} projectOrProductUID
851
759
  * @param {Object} opts Optional parameters
852
760
  * @param {Number} opts.pageSize (default to 50)
853
761
  * @param {Number} opts.pageNum (default to 1)
854
762
  * @param {Array.<String>} opts.deviceUID A Device UID.
855
763
  * @param {Array.<String>} opts.tag Tag filter
856
764
  * @param {Array.<String>} opts.serialNumber Serial number filter
857
- * @param {Array.<String>} opts.fleetUID
765
+ * @param {Array.<String>} opts.fleetUID
858
766
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
859
767
  * @param {Array.<String>} opts.location Location filter
860
768
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
861
- * @param {Array.<String>} opts.productUID
769
+ * @param {Array.<String>} opts.productUID
862
770
  * @param {Array.<String>} opts.sku SKU filter
863
771
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
864
772
  */
@@ -872,44 +780,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
872
780
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
873
781
  }
874
782
  var pathParams = {
875
- projectOrProductUID: projectOrProductUID
783
+ 'projectOrProductUID': projectOrProductUID
876
784
  };
877
785
  var queryParams = {
878
- pageSize: opts["pageSize"],
879
- pageNum: opts["pageNum"],
880
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
881
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
882
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
883
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
884
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
885
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
886
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
887
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
888
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
786
+ 'pageSize': opts['pageSize'],
787
+ 'pageNum': opts['pageNum'],
788
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
789
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
790
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
791
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
792
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
793
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
794
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
795
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
796
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
889
797
  };
890
798
  var headerParams = {};
891
799
  var formParams = {};
892
- var authNames = ["personalAccessToken"];
800
+ var authNames = ['personalAccessToken'];
893
801
  var contentTypes = [];
894
- var accepts = ["application/json"];
802
+ var accepts = ['application/json'];
895
803
  var returnType = _GetProjectDevices200Response["default"];
896
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
804
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
897
805
  }
898
806
 
899
807
  /**
900
808
  * Get Devices of a Project
901
- * @param {String} projectOrProductUID
809
+ * @param {String} projectOrProductUID
902
810
  * @param {Object} opts Optional parameters
903
811
  * @param {Number} opts.pageSize (default to 50)
904
812
  * @param {Number} opts.pageNum (default to 1)
905
813
  * @param {Array.<String>} opts.deviceUID A Device UID.
906
814
  * @param {Array.<String>} opts.tag Tag filter
907
815
  * @param {Array.<String>} opts.serialNumber Serial number filter
908
- * @param {Array.<String>} opts.fleetUID
816
+ * @param {Array.<String>} opts.fleetUID
909
817
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
910
818
  * @param {Array.<String>} opts.location Location filter
911
819
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
912
- * @param {Array.<String>} opts.productUID
820
+ * @param {Array.<String>} opts.productUID
913
821
  * @param {Array.<String>} opts.sku SKU filter
914
822
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
915
823
  */
@@ -923,8 +831,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
923
831
 
924
832
  /**
925
833
  * Get Devices of a Fleet within a Project
926
- * @param {String} projectOrProductUID
927
- * @param {String} fleetUID
834
+ * @param {String} projectOrProductUID
835
+ * @param {String} fleetUID
928
836
  * @param {Object} opts Optional parameters
929
837
  * @param {Number} opts.pageSize (default to 50)
930
838
  * @param {Number} opts.pageNum (default to 1)
@@ -934,7 +842,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
934
842
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
935
843
  * @param {Array.<String>} opts.location Location filter
936
844
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
937
- * @param {Array.<String>} opts.productUID
845
+ * @param {Array.<String>} opts.productUID
938
846
  * @param {Array.<String>} opts.sku SKU filter
939
847
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
940
848
  */
@@ -952,34 +860,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
952
860
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
953
861
  }
954
862
  var pathParams = {
955
- projectOrProductUID: projectOrProductUID,
956
- fleetUID: fleetUID
863
+ 'projectOrProductUID': projectOrProductUID,
864
+ 'fleetUID': fleetUID
957
865
  };
958
866
  var queryParams = {
959
- pageSize: opts["pageSize"],
960
- pageNum: opts["pageNum"],
961
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
962
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
963
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
964
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
965
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
966
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
967
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
968
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
867
+ 'pageSize': opts['pageSize'],
868
+ 'pageNum': opts['pageNum'],
869
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
870
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
871
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
872
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
873
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
874
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
875
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
876
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
969
877
  };
970
878
  var headerParams = {};
971
879
  var formParams = {};
972
- var authNames = ["personalAccessToken"];
880
+ var authNames = ['personalAccessToken'];
973
881
  var contentTypes = [];
974
- var accepts = ["application/json"];
882
+ var accepts = ['application/json'];
975
883
  var returnType = _GetProjectDevices200Response["default"];
976
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
884
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
977
885
  }
978
886
 
979
887
  /**
980
888
  * Get Devices of a Fleet within a Project
981
- * @param {String} projectOrProductUID
982
- * @param {String} fleetUID
889
+ * @param {String} projectOrProductUID
890
+ * @param {String} fleetUID
983
891
  * @param {Object} opts Optional parameters
984
892
  * @param {Number} opts.pageSize (default to 50)
985
893
  * @param {Number} opts.pageNum (default to 1)
@@ -989,7 +897,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
989
897
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
990
898
  * @param {Array.<String>} opts.location Location filter
991
899
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
992
- * @param {Array.<String>} opts.productUID
900
+ * @param {Array.<String>} opts.productUID
993
901
  * @param {Array.<String>} opts.sku SKU filter
994
902
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
995
903
  */
@@ -1003,9 +911,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1003
911
 
1004
912
  /**
1005
913
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1006
- * @param {String} projectOrProductUID
1007
- * @param {String} deviceUID
1008
- * @param {String} notefileID
914
+ * @param {String} projectOrProductUID
915
+ * @param {String} deviceUID
916
+ * @param {String} notefileID
1009
917
  * @param {module:model/Note} note Body or payload of note to be added to the device
1010
918
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1011
919
  */
@@ -1030,25 +938,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1030
938
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
1031
939
  }
1032
940
  var pathParams = {
1033
- projectOrProductUID: projectOrProductUID,
1034
- deviceUID: deviceUID,
1035
- notefileID: notefileID
941
+ 'projectOrProductUID': projectOrProductUID,
942
+ 'deviceUID': deviceUID,
943
+ 'notefileID': notefileID
1036
944
  };
1037
945
  var queryParams = {};
1038
946
  var headerParams = {};
1039
947
  var formParams = {};
1040
- var authNames = ["personalAccessToken"];
1041
- var contentTypes = ["application/json"];
1042
- var accepts = ["application/json"];
948
+ var authNames = ['personalAccessToken'];
949
+ var contentTypes = ['application/json'];
950
+ var accepts = ['application/json'];
1043
951
  var returnType = null;
1044
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
952
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1045
953
  }
1046
954
 
1047
955
  /**
1048
956
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1049
- * @param {String} projectOrProductUID
1050
- * @param {String} deviceUID
1051
- * @param {String} notefileID
957
+ * @param {String} projectOrProductUID
958
+ * @param {String} deviceUID
959
+ * @param {String} notefileID
1052
960
  * @param {module:model/Note} note Body or payload of note to be added to the device
1053
961
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1054
962
  */
@@ -1062,9 +970,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1062
970
 
1063
971
  /**
1064
972
  * Incrementally retrieve changes within a specific Notefile.
1065
- * @param {String} projectOrProductUID
1066
- * @param {String} deviceUID
1067
- * @param {String} notefileID
973
+ * @param {String} projectOrProductUID
974
+ * @param {String} deviceUID
975
+ * @param {String} notefileID
1068
976
  * @param {Object} opts Optional parameters
1069
977
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1070
978
  * @param {Boolean} opts.deleted true to return deleted notes.
@@ -1089,29 +997,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1089
997
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
1090
998
  }
1091
999
  var pathParams = {
1092
- projectOrProductUID: projectOrProductUID,
1093
- deviceUID: deviceUID,
1094
- notefileID: notefileID
1000
+ 'projectOrProductUID': projectOrProductUID,
1001
+ 'deviceUID': deviceUID,
1002
+ 'notefileID': notefileID
1095
1003
  };
1096
1004
  var queryParams = {
1097
- max: opts["max"],
1098
- deleted: opts["deleted"],
1099
- "delete": opts["_delete"]
1005
+ 'max': opts['max'],
1006
+ 'deleted': opts['deleted'],
1007
+ 'delete': opts['_delete']
1100
1008
  };
1101
1009
  var headerParams = {};
1102
1010
  var formParams = {};
1103
- var authNames = ["personalAccessToken"];
1011
+ var authNames = ['personalAccessToken'];
1104
1012
  var contentTypes = [];
1105
- var accepts = ["application/json"];
1013
+ var accepts = ['application/json'];
1106
1014
  var returnType = _HandleNoteChanges200Response["default"];
1107
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1015
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1108
1016
  }
1109
1017
 
1110
1018
  /**
1111
1019
  * Incrementally retrieve changes within a specific Notefile.
1112
- * @param {String} projectOrProductUID
1113
- * @param {String} deviceUID
1114
- * @param {String} notefileID
1020
+ * @param {String} projectOrProductUID
1021
+ * @param {String} deviceUID
1022
+ * @param {String} notefileID
1115
1023
  * @param {Object} opts Optional parameters
1116
1024
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1117
1025
  * @param {Boolean} opts.deleted true to return deleted notes.
@@ -1128,10 +1036,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1128
1036
 
1129
1037
  /**
1130
1038
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1131
- * @param {String} projectOrProductUID
1132
- * @param {String} deviceUID
1133
- * @param {String} notefileID
1134
- * @param {String} noteID
1039
+ * @param {String} projectOrProductUID
1040
+ * @param {String} deviceUID
1041
+ * @param {String} notefileID
1042
+ * @param {String} noteID
1135
1043
  * @param {module:model/Note} note Body or payload of note to be added to the device
1136
1044
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1137
1045
  */
@@ -1160,27 +1068,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1160
1068
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
1161
1069
  }
1162
1070
  var pathParams = {
1163
- projectOrProductUID: projectOrProductUID,
1164
- deviceUID: deviceUID,
1165
- notefileID: notefileID,
1166
- noteID: noteID
1071
+ 'projectOrProductUID': projectOrProductUID,
1072
+ 'deviceUID': deviceUID,
1073
+ 'notefileID': notefileID,
1074
+ 'noteID': noteID
1167
1075
  };
1168
1076
  var queryParams = {};
1169
1077
  var headerParams = {};
1170
1078
  var formParams = {};
1171
- var authNames = ["personalAccessToken"];
1172
- var contentTypes = ["application/json"];
1173
- var accepts = ["application/json"];
1079
+ var authNames = ['personalAccessToken'];
1080
+ var contentTypes = ['application/json'];
1081
+ var accepts = ['application/json'];
1174
1082
  var returnType = null;
1175
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1083
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1176
1084
  }
1177
1085
 
1178
1086
  /**
1179
1087
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1180
- * @param {String} projectOrProductUID
1181
- * @param {String} deviceUID
1182
- * @param {String} notefileID
1183
- * @param {String} noteID
1088
+ * @param {String} projectOrProductUID
1089
+ * @param {String} deviceUID
1090
+ * @param {String} notefileID
1091
+ * @param {String} noteID
1184
1092
  * @param {module:model/Note} note Body or payload of note to be added to the device
1185
1093
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1186
1094
  */
@@ -1194,10 +1102,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1194
1102
 
1195
1103
  /**
1196
1104
  * Delete a note from a DB notefile
1197
- * @param {String} projectOrProductUID
1198
- * @param {String} deviceUID
1199
- * @param {String} notefileID
1200
- * @param {String} noteID
1105
+ * @param {String} projectOrProductUID
1106
+ * @param {String} deviceUID
1107
+ * @param {String} notefileID
1108
+ * @param {String} noteID
1201
1109
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1202
1110
  */
1203
1111
  }, {
@@ -1221,27 +1129,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1221
1129
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
1222
1130
  }
1223
1131
  var pathParams = {
1224
- projectOrProductUID: projectOrProductUID,
1225
- deviceUID: deviceUID,
1226
- notefileID: notefileID,
1227
- noteID: noteID
1132
+ 'projectOrProductUID': projectOrProductUID,
1133
+ 'deviceUID': deviceUID,
1134
+ 'notefileID': notefileID,
1135
+ 'noteID': noteID
1228
1136
  };
1229
1137
  var queryParams = {};
1230
1138
  var headerParams = {};
1231
1139
  var formParams = {};
1232
- var authNames = ["personalAccessToken"];
1140
+ var authNames = ['personalAccessToken'];
1233
1141
  var contentTypes = [];
1234
- var accepts = ["application/json"];
1142
+ var accepts = ['application/json'];
1235
1143
  var returnType = null;
1236
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1144
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1237
1145
  }
1238
1146
 
1239
1147
  /**
1240
1148
  * Delete a note from a DB notefile
1241
- * @param {String} projectOrProductUID
1242
- * @param {String} deviceUID
1243
- * @param {String} notefileID
1244
- * @param {String} noteID
1149
+ * @param {String} projectOrProductUID
1150
+ * @param {String} deviceUID
1151
+ * @param {String} notefileID
1152
+ * @param {String} noteID
1245
1153
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1246
1154
  */
1247
1155
  }, {
@@ -1254,10 +1162,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1254
1162
 
1255
1163
  /**
1256
1164
  * Get a note from a DB notefile
1257
- * @param {String} projectOrProductUID
1258
- * @param {String} deviceUID
1259
- * @param {String} notefileID
1260
- * @param {String} noteID
1165
+ * @param {String} projectOrProductUID
1166
+ * @param {String} deviceUID
1167
+ * @param {String} notefileID
1168
+ * @param {String} noteID
1261
1169
  * @param {Object} opts Optional parameters
1262
1170
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1263
1171
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1285,30 +1193,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1285
1193
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
1286
1194
  }
1287
1195
  var pathParams = {
1288
- projectOrProductUID: projectOrProductUID,
1289
- deviceUID: deviceUID,
1290
- notefileID: notefileID,
1291
- noteID: noteID
1196
+ 'projectOrProductUID': projectOrProductUID,
1197
+ 'deviceUID': deviceUID,
1198
+ 'notefileID': notefileID,
1199
+ 'noteID': noteID
1292
1200
  };
1293
1201
  var queryParams = {
1294
- "delete": opts["_delete"],
1295
- deleted: opts["deleted"]
1202
+ 'delete': opts['_delete'],
1203
+ 'deleted': opts['deleted']
1296
1204
  };
1297
1205
  var headerParams = {};
1298
1206
  var formParams = {};
1299
- var authNames = ["personalAccessToken"];
1207
+ var authNames = ['personalAccessToken'];
1300
1208
  var contentTypes = [];
1301
- var accepts = ["application/json"];
1209
+ var accepts = ['application/json'];
1302
1210
  var returnType = _HandleNoteGet200Response["default"];
1303
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1211
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1304
1212
  }
1305
1213
 
1306
1214
  /**
1307
1215
  * Get a note from a DB notefile
1308
- * @param {String} projectOrProductUID
1309
- * @param {String} deviceUID
1310
- * @param {String} notefileID
1311
- * @param {String} noteID
1216
+ * @param {String} projectOrProductUID
1217
+ * @param {String} deviceUID
1218
+ * @param {String} notefileID
1219
+ * @param {String} noteID
1312
1220
  * @param {Object} opts Optional parameters
1313
1221
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1314
1222
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1324,8 +1232,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1324
1232
 
1325
1233
  /**
1326
1234
  * Send a signal from Notehub to a Notecard.
1327
- * @param {String} projectOrProductUID
1328
- * @param {String} deviceUID
1235
+ * @param {String} projectOrProductUID
1236
+ * @param {String} deviceUID
1329
1237
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1330
1238
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
1331
1239
  */
@@ -1346,23 +1254,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1346
1254
  throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
1347
1255
  }
1348
1256
  var pathParams = {
1349
- projectOrProductUID: projectOrProductUID,
1350
- deviceUID: deviceUID
1257
+ 'projectOrProductUID': projectOrProductUID,
1258
+ 'deviceUID': deviceUID
1351
1259
  };
1352
1260
  var queryParams = {};
1353
1261
  var headerParams = {};
1354
1262
  var formParams = {};
1355
- var authNames = ["personalAccessToken"];
1356
- var contentTypes = ["application/json"];
1357
- var accepts = ["application/json"];
1263
+ var authNames = ['personalAccessToken'];
1264
+ var contentTypes = ['application/json'];
1265
+ var accepts = ['application/json'];
1358
1266
  var returnType = _HandleNoteSignal200Response["default"];
1359
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1267
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1360
1268
  }
1361
1269
 
1362
1270
  /**
1363
1271
  * Send a signal from Notehub to a Notecard.
1364
- * @param {String} projectOrProductUID
1365
- * @param {String} deviceUID
1272
+ * @param {String} projectOrProductUID
1273
+ * @param {String} deviceUID
1366
1274
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1367
1275
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
1368
1276
  */
@@ -1376,10 +1284,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1376
1284
 
1377
1285
  /**
1378
1286
  * Update a note in a DB notefile
1379
- * @param {String} projectOrProductUID
1380
- * @param {String} deviceUID
1381
- * @param {String} notefileID
1382
- * @param {String} noteID
1287
+ * @param {String} projectOrProductUID
1288
+ * @param {String} deviceUID
1289
+ * @param {String} notefileID
1290
+ * @param {String} noteID
1383
1291
  * @param {module:model/Note} note Body or payload of note to be added to the device
1384
1292
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1385
1293
  */
@@ -1408,27 +1316,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1408
1316
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
1409
1317
  }
1410
1318
  var pathParams = {
1411
- projectOrProductUID: projectOrProductUID,
1412
- deviceUID: deviceUID,
1413
- notefileID: notefileID,
1414
- noteID: noteID
1319
+ 'projectOrProductUID': projectOrProductUID,
1320
+ 'deviceUID': deviceUID,
1321
+ 'notefileID': notefileID,
1322
+ 'noteID': noteID
1415
1323
  };
1416
1324
  var queryParams = {};
1417
1325
  var headerParams = {};
1418
1326
  var formParams = {};
1419
- var authNames = ["personalAccessToken"];
1420
- var contentTypes = ["application/json"];
1421
- var accepts = ["application/json"];
1327
+ var authNames = ['personalAccessToken'];
1328
+ var contentTypes = ['application/json'];
1329
+ var accepts = ['application/json'];
1422
1330
  var returnType = null;
1423
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1331
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1424
1332
  }
1425
1333
 
1426
1334
  /**
1427
1335
  * Update a note in a DB notefile
1428
- * @param {String} projectOrProductUID
1429
- * @param {String} deviceUID
1430
- * @param {String} notefileID
1431
- * @param {String} noteID
1336
+ * @param {String} projectOrProductUID
1337
+ * @param {String} deviceUID
1338
+ * @param {String} notefileID
1339
+ * @param {String} noteID
1432
1340
  * @param {module:model/Note} note Body or payload of note to be added to the device
1433
1341
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1434
1342
  */
@@ -1442,8 +1350,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1442
1350
 
1443
1351
  /**
1444
1352
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1445
- * @param {String} projectOrProductUID
1446
- * @param {String} deviceUID
1353
+ * @param {String} projectOrProductUID
1354
+ * @param {String} deviceUID
1447
1355
  * @param {Object} opts Optional parameters
1448
1356
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1449
1357
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChanges200Response} and HTTP response
@@ -1462,25 +1370,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1370
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
1463
1371
  }
1464
1372
  var pathParams = {
1465
- projectOrProductUID: projectOrProductUID,
1466
- deviceUID: deviceUID
1373
+ 'projectOrProductUID': projectOrProductUID,
1374
+ 'deviceUID': deviceUID
1467
1375
  };
1468
1376
  var queryParams = {
1469
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1377
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1470
1378
  };
1471
1379
  var headerParams = {};
1472
1380
  var formParams = {};
1473
- var authNames = ["personalAccessToken"];
1381
+ var authNames = ['personalAccessToken'];
1474
1382
  var contentTypes = [];
1475
- var accepts = ["application/json"];
1383
+ var accepts = ['application/json'];
1476
1384
  var returnType = _HandleNotefileChanges200Response["default"];
1477
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1385
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1478
1386
  }
1479
1387
 
1480
1388
  /**
1481
1389
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1482
- * @param {String} projectOrProductUID
1483
- * @param {String} deviceUID
1390
+ * @param {String} projectOrProductUID
1391
+ * @param {String} deviceUID
1484
1392
  * @param {Object} opts Optional parameters
1485
1393
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1486
1394
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChanges200Response}
@@ -1495,8 +1403,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1495
1403
 
1496
1404
  /**
1497
1405
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1498
- * @param {String} projectOrProductUID
1499
- * @param {String} deviceUID
1406
+ * @param {String} projectOrProductUID
1407
+ * @param {String} deviceUID
1500
1408
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
1501
1409
  */
1502
1410
  }, {
@@ -1512,23 +1420,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1512
1420
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
1513
1421
  }
1514
1422
  var pathParams = {
1515
- projectOrProductUID: projectOrProductUID,
1516
- deviceUID: deviceUID
1423
+ 'projectOrProductUID': projectOrProductUID,
1424
+ 'deviceUID': deviceUID
1517
1425
  };
1518
1426
  var queryParams = {};
1519
1427
  var headerParams = {};
1520
1428
  var formParams = {};
1521
- var authNames = ["personalAccessToken"];
1429
+ var authNames = ['personalAccessToken'];
1522
1430
  var contentTypes = [];
1523
- var accepts = ["application/json"];
1431
+ var accepts = ['application/json'];
1524
1432
  var returnType = _HandleNotefileChangesPending200Response["default"];
1525
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1433
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1526
1434
  }
1527
1435
 
1528
1436
  /**
1529
1437
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1530
- * @param {String} projectOrProductUID
1531
- * @param {String} deviceUID
1438
+ * @param {String} projectOrProductUID
1439
+ * @param {String} deviceUID
1532
1440
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
1533
1441
  */
1534
1442
  }, {
@@ -1541,9 +1449,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1541
1449
 
1542
1450
  /**
1543
1451
  * Deletes Notefiles and the Notes they contain.
1544
- * @param {String} projectOrProductUID
1545
- * @param {String} deviceUID
1546
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1452
+ * @param {String} projectOrProductUID
1453
+ * @param {String} deviceUID
1454
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1547
1455
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1548
1456
  */
1549
1457
  }, {
@@ -1563,24 +1471,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1563
1471
  throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
1564
1472
  }
1565
1473
  var pathParams = {
1566
- projectOrProductUID: projectOrProductUID,
1567
- deviceUID: deviceUID
1474
+ 'projectOrProductUID': projectOrProductUID,
1475
+ 'deviceUID': deviceUID
1568
1476
  };
1569
1477
  var queryParams = {};
1570
1478
  var headerParams = {};
1571
1479
  var formParams = {};
1572
- var authNames = ["personalAccessToken"];
1573
- var contentTypes = ["application/json"];
1574
- var accepts = ["application/json"];
1480
+ var authNames = ['personalAccessToken'];
1481
+ var contentTypes = ['application/json'];
1482
+ var accepts = ['application/json'];
1575
1483
  var returnType = null;
1576
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1484
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1577
1485
  }
1578
1486
 
1579
1487
  /**
1580
1488
  * Deletes Notefiles and the Notes they contain.
1581
- * @param {String} projectOrProductUID
1582
- * @param {String} deviceUID
1583
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1489
+ * @param {String} projectOrProductUID
1490
+ * @param {String} deviceUID
1491
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1584
1492
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1585
1493
  */
1586
1494
  }, {
@@ -1593,8 +1501,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1593
1501
 
1594
1502
  /**
1595
1503
  * Provision Device for a Project
1596
- * @param {String} projectOrProductUID
1597
- * @param {String} deviceUID
1504
+ * @param {String} projectOrProductUID
1505
+ * @param {String} deviceUID
1598
1506
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1599
1507
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1600
1508
  */
@@ -1615,23 +1523,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1615
1523
  throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
1616
1524
  }
1617
1525
  var pathParams = {
1618
- projectOrProductUID: projectOrProductUID,
1619
- deviceUID: deviceUID
1526
+ 'projectOrProductUID': projectOrProductUID,
1527
+ 'deviceUID': deviceUID
1620
1528
  };
1621
1529
  var queryParams = {};
1622
1530
  var headerParams = {};
1623
1531
  var formParams = {};
1624
- var authNames = ["personalAccessToken"];
1625
- var contentTypes = ["application/json"];
1626
- var accepts = ["application/json"];
1532
+ var authNames = ['personalAccessToken'];
1533
+ var contentTypes = ['application/json'];
1534
+ var accepts = ['application/json'];
1627
1535
  var returnType = Object;
1628
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1536
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1629
1537
  }
1630
1538
 
1631
1539
  /**
1632
1540
  * Provision Device for a Project
1633
- * @param {String} projectOrProductUID
1634
- * @param {String} deviceUID
1541
+ * @param {String} projectOrProductUID
1542
+ * @param {String} deviceUID
1635
1543
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1636
1544
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1637
1545
  */
@@ -1645,8 +1553,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1645
1553
 
1646
1554
  /**
1647
1555
  * Put environment variables of a device
1648
- * @param {String} projectOrProductUID
1649
- * @param {String} deviceUID
1556
+ * @param {String} projectOrProductUID
1557
+ * @param {String} deviceUID
1650
1558
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1651
1559
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1652
1560
  */
@@ -1667,23 +1575,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1667
1575
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
1668
1576
  }
1669
1577
  var pathParams = {
1670
- projectOrProductUID: projectOrProductUID,
1671
- deviceUID: deviceUID
1578
+ 'projectOrProductUID': projectOrProductUID,
1579
+ 'deviceUID': deviceUID
1672
1580
  };
1673
1581
  var queryParams = {};
1674
1582
  var headerParams = {};
1675
1583
  var formParams = {};
1676
- var authNames = ["personalAccessToken"];
1677
- var contentTypes = ["application/json"];
1678
- var accepts = ["application/json"];
1584
+ var authNames = ['personalAccessToken'];
1585
+ var contentTypes = ['application/json'];
1586
+ var accepts = ['application/json'];
1679
1587
  var returnType = _EnvironmentVariables["default"];
1680
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1588
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1681
1589
  }
1682
1590
 
1683
1591
  /**
1684
1592
  * Put environment variables of a device
1685
- * @param {String} projectOrProductUID
1686
- * @param {String} deviceUID
1593
+ * @param {String} projectOrProductUID
1594
+ * @param {String} deviceUID
1687
1595
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1688
1596
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1689
1597
  */
@@ -1697,8 +1605,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1697
1605
 
1698
1606
  /**
1699
1607
  * Put environment variables of a device with device pin authorization
1700
- * @param {String} productUID
1701
- * @param {String} deviceUID
1608
+ * @param {String} productUID
1609
+ * @param {String} deviceUID
1702
1610
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1703
1611
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1704
1612
  */
@@ -1719,23 +1627,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1719
1627
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
1720
1628
  }
1721
1629
  var pathParams = {
1722
- productUID: productUID,
1723
- deviceUID: deviceUID
1630
+ 'productUID': productUID,
1631
+ 'deviceUID': deviceUID
1724
1632
  };
1725
1633
  var queryParams = {};
1726
1634
  var headerParams = {};
1727
1635
  var formParams = {};
1728
- var authNames = ["pin"];
1729
- var contentTypes = ["application/json"];
1730
- var accepts = ["application/json"];
1636
+ var authNames = ['pin'];
1637
+ var contentTypes = ['application/json'];
1638
+ var accepts = ['application/json'];
1731
1639
  var returnType = _EnvironmentVariables["default"];
1732
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1640
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1733
1641
  }
1734
1642
 
1735
1643
  /**
1736
1644
  * Put environment variables of a device with device pin authorization
1737
- * @param {String} productUID
1738
- * @param {String} deviceUID
1645
+ * @param {String} productUID
1646
+ * @param {String} deviceUID
1739
1647
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1740
1648
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1741
1649
  */