@blues-inc/notehub-js 1.0.10 → 1.0.12

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 (83) hide show
  1. package/README.md +175 -180
  2. package/dist/ApiClient.js +155 -155
  3. package/dist/api/AuthorizationApi.js +15 -15
  4. package/dist/api/BillingAccountApi.js +13 -13
  5. package/dist/api/DeviceApi.js +157 -157
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +137 -137
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +14 -0
  16. package/dist/model/Aws.js +64 -64
  17. package/dist/model/Azure.js +42 -42
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/Edgeimpulse.js +214 -0
  32. package/dist/model/EdgeimpulseSensorsInner.js +106 -0
  33. package/dist/model/EnvironmentVariables.js +7 -7
  34. package/dist/model/Error.js +30 -30
  35. package/dist/model/Event.js +222 -222
  36. package/dist/model/Fleet.js +20 -20
  37. package/dist/model/GetBillingAccounts200Response.js +8 -9
  38. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  39. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  40. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  41. package/dist/model/GetDeviceLatest200Response.js +8 -9
  42. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  43. package/dist/model/GetDeviceSessions200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  45. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  46. package/dist/model/GetProjectDevices200Response.js +15 -16
  47. package/dist/model/GetProjectEvents200Response.js +20 -21
  48. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  49. package/dist/model/GetProjectFleets200Response.js +10 -11
  50. package/dist/model/GetProjectMembers200Response.js +10 -11
  51. package/dist/model/GetProjectProducts200Response.js +8 -9
  52. package/dist/model/GetProjects200Response.js +8 -9
  53. package/dist/model/Google.js +27 -27
  54. package/dist/model/HandleNoteChanges200Response.js +10 -10
  55. package/dist/model/HandleNoteGet200Response.js +12 -12
  56. package/dist/model/HandleNoteSignal200Response.js +4 -4
  57. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  58. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  59. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  60. package/dist/model/Http.js +34 -34
  61. package/dist/model/HttpFilter.js +18 -18
  62. package/dist/model/HttpTransform.js +19 -19
  63. package/dist/model/Location.js +39 -39
  64. package/dist/model/Login200Response.js +6 -6
  65. package/dist/model/LoginRequest.js +11 -11
  66. package/dist/model/Mqtt.js +65 -65
  67. package/dist/model/Note.js +9 -9
  68. package/dist/model/Product.js +25 -25
  69. package/dist/model/Project.js +33 -33
  70. package/dist/model/ProjectMember.js +21 -21
  71. package/dist/model/Proxy.js +23 -23
  72. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  73. package/dist/model/Radresponder.js +24 -24
  74. package/dist/model/Route.js +40 -35
  75. package/dist/model/RouteSchema.js +39 -38
  76. package/dist/model/Snowflake.js +44 -44
  77. package/dist/model/SnowflakeTransform.js +11 -11
  78. package/dist/model/Thingworx.js +32 -32
  79. package/dist/model/TowerLocation.js +51 -51
  80. package/dist/model/Twilio.js +42 -42
  81. package/dist/model/UpdateFleetRequest.js +16 -16
  82. package/dist/model/UserDbRoute.js +24 -24
  83. package/package.json +3 -3
@@ -25,18 +25,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
25
25
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
26
26
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27
27
  /**
28
- * Device service.
29
- * @module api/DeviceApi
30
- * @version 1.0.10
31
- */
28
+ * Device service.
29
+ * @module api/DeviceApi
30
+ * @version 1.0.12
31
+ */
32
32
  var DeviceApi = /*#__PURE__*/function () {
33
33
  /**
34
- * Constructs a new DeviceApi.
35
- * @alias module:api/DeviceApi
36
- * @class
37
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
38
- * default to {@link module:ApiClient#instance} if unspecified.
39
- */
34
+ * Constructs a new DeviceApi.
35
+ * @alias module:api/DeviceApi
36
+ * @class
37
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
38
+ * default to {@link module:ApiClient#instance} if unspecified.
39
+ */
40
40
  function DeviceApi(apiClient) {
41
41
  _classCallCheck(this, DeviceApi);
42
42
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -44,8 +44,8 @@ var DeviceApi = /*#__PURE__*/function () {
44
44
 
45
45
  /**
46
46
  * Delete environment variable of a device
47
- * @param {String} projectUID
48
- * @param {String} deviceUID
47
+ * @param {String} projectUID
48
+ * @param {String} deviceUID
49
49
  * @param {String} key The environment variable key to delete.
50
50
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
51
51
  */
@@ -66,24 +66,24 @@ var DeviceApi = /*#__PURE__*/function () {
66
66
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
67
67
  }
68
68
  var pathParams = {
69
- 'projectUID': projectUID,
70
- 'deviceUID': deviceUID,
71
- 'key': key
69
+ projectUID: projectUID,
70
+ deviceUID: deviceUID,
71
+ key: key
72
72
  };
73
73
  var queryParams = {};
74
74
  var headerParams = {};
75
75
  var formParams = {};
76
- var authNames = ['api_key'];
76
+ var authNames = ["api_key"];
77
77
  var contentTypes = [];
78
- var accepts = ['application/json'];
78
+ var accepts = ["application/json"];
79
79
  var returnType = _EnvironmentVariables["default"];
80
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
80
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
81
81
  }
82
82
 
83
83
  /**
84
84
  * Delete environment variable of a device
85
- * @param {String} projectUID
86
- * @param {String} deviceUID
85
+ * @param {String} projectUID
86
+ * @param {String} deviceUID
87
87
  * @param {String} key The environment variable key to delete.
88
88
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
89
89
  */
@@ -97,9 +97,9 @@ var DeviceApi = /*#__PURE__*/function () {
97
97
 
98
98
  /**
99
99
  * Remove Device from Fleets
100
- * @param {String} projectUID
101
- * @param {String} deviceUID
102
- * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
100
+ * @param {String} projectUID
101
+ * @param {String} deviceUID
102
+ * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
103
103
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
104
104
  */
105
105
  }, {
@@ -119,24 +119,24 @@ var DeviceApi = /*#__PURE__*/function () {
119
119
  throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
120
120
  }
121
121
  var pathParams = {
122
- 'projectUID': projectUID,
123
- 'deviceUID': deviceUID
122
+ projectUID: projectUID,
123
+ deviceUID: deviceUID
124
124
  };
125
125
  var queryParams = {};
126
126
  var headerParams = {};
127
127
  var formParams = {};
128
- var authNames = ['api_key'];
129
- var contentTypes = ['application/json'];
130
- var accepts = ['application/json'];
128
+ var authNames = ["api_key"];
129
+ var contentTypes = ["application/json"];
130
+ var accepts = ["application/json"];
131
131
  var returnType = _GetProjectFleets200Response["default"];
132
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
132
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
133
133
  }
134
134
 
135
135
  /**
136
136
  * Remove Device from Fleets
137
- * @param {String} projectUID
138
- * @param {String} deviceUID
139
- * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
137
+ * @param {String} projectUID
138
+ * @param {String} deviceUID
139
+ * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
140
140
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
141
141
  */
142
142
  }, {
@@ -149,8 +149,8 @@ var DeviceApi = /*#__PURE__*/function () {
149
149
 
150
150
  /**
151
151
  * Disable Device
152
- * @param {String} projectUID
153
- * @param {String} deviceUID
152
+ * @param {String} projectUID
153
+ * @param {String} deviceUID
154
154
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
155
155
  */
156
156
  }, {
@@ -166,23 +166,23 @@ var DeviceApi = /*#__PURE__*/function () {
166
166
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
167
167
  }
168
168
  var pathParams = {
169
- 'projectUID': projectUID,
170
- 'deviceUID': deviceUID
169
+ projectUID: projectUID,
170
+ deviceUID: deviceUID
171
171
  };
172
172
  var queryParams = {};
173
173
  var headerParams = {};
174
174
  var formParams = {};
175
- var authNames = ['api_key'];
175
+ var authNames = ["api_key"];
176
176
  var contentTypes = [];
177
- var accepts = ['application/json'];
177
+ var accepts = ["application/json"];
178
178
  var returnType = null;
179
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
179
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
180
180
  }
181
181
 
182
182
  /**
183
183
  * Disable Device
184
- * @param {String} projectUID
185
- * @param {String} deviceUID
184
+ * @param {String} projectUID
185
+ * @param {String} deviceUID
186
186
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
187
187
  */
188
188
  }, {
@@ -195,8 +195,8 @@ var DeviceApi = /*#__PURE__*/function () {
195
195
 
196
196
  /**
197
197
  * Enable Device
198
- * @param {String} projectUID
199
- * @param {String} deviceUID
198
+ * @param {String} projectUID
199
+ * @param {String} deviceUID
200
200
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
201
201
  */
202
202
  }, {
@@ -212,23 +212,23 @@ var DeviceApi = /*#__PURE__*/function () {
212
212
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
213
213
  }
214
214
  var pathParams = {
215
- 'projectUID': projectUID,
216
- 'deviceUID': deviceUID
215
+ projectUID: projectUID,
216
+ deviceUID: deviceUID
217
217
  };
218
218
  var queryParams = {};
219
219
  var headerParams = {};
220
220
  var formParams = {};
221
- var authNames = ['api_key'];
221
+ var authNames = ["api_key"];
222
222
  var contentTypes = [];
223
- var accepts = ['application/json'];
223
+ var accepts = ["application/json"];
224
224
  var returnType = null;
225
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
226
226
  }
227
227
 
228
228
  /**
229
229
  * Enable Device
230
- * @param {String} projectUID
231
- * @param {String} deviceUID
230
+ * @param {String} projectUID
231
+ * @param {String} deviceUID
232
232
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
233
233
  */
234
234
  }, {
@@ -241,8 +241,8 @@ var DeviceApi = /*#__PURE__*/function () {
241
241
 
242
242
  /**
243
243
  * Get environment variables of a device
244
- * @param {String} projectUID
245
- * @param {String} deviceUID
244
+ * @param {String} projectUID
245
+ * @param {String} deviceUID
246
246
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
247
247
  */
248
248
  }, {
@@ -258,23 +258,23 @@ var DeviceApi = /*#__PURE__*/function () {
258
258
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
259
259
  }
260
260
  var pathParams = {
261
- 'projectUID': projectUID,
262
- 'deviceUID': deviceUID
261
+ projectUID: projectUID,
262
+ deviceUID: deviceUID
263
263
  };
264
264
  var queryParams = {};
265
265
  var headerParams = {};
266
266
  var formParams = {};
267
- var authNames = ['api_key'];
267
+ var authNames = ["api_key"];
268
268
  var contentTypes = [];
269
- var accepts = ['application/json'];
269
+ var accepts = ["application/json"];
270
270
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
271
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
271
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
272
272
  }
273
273
 
274
274
  /**
275
275
  * Get environment variables of a device
276
- * @param {String} projectUID
277
- * @param {String} deviceUID
276
+ * @param {String} projectUID
277
+ * @param {String} deviceUID
278
278
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
279
279
  */
280
280
  }, {
@@ -287,8 +287,8 @@ var DeviceApi = /*#__PURE__*/function () {
287
287
 
288
288
  /**
289
289
  * Get environment variables of a device with device pin authorization
290
- * @param {String} projectUID
291
- * @param {String} deviceUID
290
+ * @param {String} projectUID
291
+ * @param {String} deviceUID
292
292
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
293
293
  */
294
294
  }, {
@@ -304,23 +304,23 @@ var DeviceApi = /*#__PURE__*/function () {
304
304
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
305
305
  }
306
306
  var pathParams = {
307
- 'projectUID': projectUID,
308
- 'deviceUID': deviceUID
307
+ projectUID: projectUID,
308
+ deviceUID: deviceUID
309
309
  };
310
310
  var queryParams = {};
311
311
  var headerParams = {};
312
312
  var formParams = {};
313
- var authNames = ['pin'];
313
+ var authNames = ["pin"];
314
314
  var contentTypes = [];
315
- var accepts = ['application/json'];
315
+ var accepts = ["application/json"];
316
316
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
317
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
317
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
318
318
  }
319
319
 
320
320
  /**
321
321
  * Get environment variables of a device with device pin authorization
322
- * @param {String} projectUID
323
- * @param {String} deviceUID
322
+ * @param {String} projectUID
323
+ * @param {String} deviceUID
324
324
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
325
325
  */
326
326
  }, {
@@ -333,8 +333,8 @@ var DeviceApi = /*#__PURE__*/function () {
333
333
 
334
334
  /**
335
335
  * Get Device Fleets
336
- * @param {String} projectUID
337
- * @param {String} deviceUID
336
+ * @param {String} projectUID
337
+ * @param {String} deviceUID
338
338
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
339
339
  */
340
340
  }, {
@@ -350,23 +350,23 @@ var DeviceApi = /*#__PURE__*/function () {
350
350
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
351
351
  }
352
352
  var pathParams = {
353
- 'projectUID': projectUID,
354
- 'deviceUID': deviceUID
353
+ projectUID: projectUID,
354
+ deviceUID: deviceUID
355
355
  };
356
356
  var queryParams = {};
357
357
  var headerParams = {};
358
358
  var formParams = {};
359
- var authNames = ['api_key'];
359
+ var authNames = ["api_key"];
360
360
  var contentTypes = [];
361
- var accepts = ['application/json'];
361
+ var accepts = ["application/json"];
362
362
  var returnType = _GetProjectFleets200Response["default"];
363
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
363
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
364
364
  }
365
365
 
366
366
  /**
367
367
  * Get Device Fleets
368
- * @param {String} projectUID
369
- * @param {String} deviceUID
368
+ * @param {String} projectUID
369
+ * @param {String} deviceUID
370
370
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
371
371
  */
372
372
  }, {
@@ -379,8 +379,8 @@ var DeviceApi = /*#__PURE__*/function () {
379
379
 
380
380
  /**
381
381
  * Get Device Health Log
382
- * @param {String} projectUID
383
- * @param {String} deviceUID
382
+ * @param {String} projectUID
383
+ * @param {String} deviceUID
384
384
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
385
385
  */
386
386
  }, {
@@ -396,23 +396,23 @@ var DeviceApi = /*#__PURE__*/function () {
396
396
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
397
397
  }
398
398
  var pathParams = {
399
- 'projectUID': projectUID,
400
- 'deviceUID': deviceUID
399
+ projectUID: projectUID,
400
+ deviceUID: deviceUID
401
401
  };
402
402
  var queryParams = {};
403
403
  var headerParams = {};
404
404
  var formParams = {};
405
- var authNames = ['api_key'];
405
+ var authNames = ["api_key"];
406
406
  var contentTypes = [];
407
- var accepts = ['application/json'];
407
+ var accepts = ["application/json"];
408
408
  var returnType = _GetDeviceHealthLog200Response["default"];
409
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
409
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
410
410
  }
411
411
 
412
412
  /**
413
413
  * Get Device Health Log
414
- * @param {String} projectUID
415
- * @param {String} deviceUID
414
+ * @param {String} projectUID
415
+ * @param {String} deviceUID
416
416
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
417
417
  */
418
418
  }, {
@@ -425,8 +425,8 @@ var DeviceApi = /*#__PURE__*/function () {
425
425
 
426
426
  /**
427
427
  * Get Device Latest Events
428
- * @param {String} projectUID
429
- * @param {String} deviceUID
428
+ * @param {String} projectUID
429
+ * @param {String} deviceUID
430
430
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
431
431
  */
432
432
  }, {
@@ -442,23 +442,23 @@ var DeviceApi = /*#__PURE__*/function () {
442
442
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
443
443
  }
444
444
  var pathParams = {
445
- 'projectUID': projectUID,
446
- 'deviceUID': deviceUID
445
+ projectUID: projectUID,
446
+ deviceUID: deviceUID
447
447
  };
448
448
  var queryParams = {};
449
449
  var headerParams = {};
450
450
  var formParams = {};
451
- var authNames = ['api_key'];
451
+ var authNames = ["api_key"];
452
452
  var contentTypes = [];
453
- var accepts = ['application/json'];
453
+ var accepts = ["application/json"];
454
454
  var returnType = _GetDeviceLatest200Response["default"];
455
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
455
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
456
456
  }
457
457
 
458
458
  /**
459
459
  * Get Device Latest Events
460
- * @param {String} projectUID
461
- * @param {String} deviceUID
460
+ * @param {String} projectUID
461
+ * @param {String} deviceUID
462
462
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
463
463
  */
464
464
  }, {
@@ -471,8 +471,8 @@ var DeviceApi = /*#__PURE__*/function () {
471
471
 
472
472
  /**
473
473
  * Get Device Public Key
474
- * @param {String} projectUID
475
- * @param {String} deviceUID
474
+ * @param {String} projectUID
475
+ * @param {String} deviceUID
476
476
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
477
477
  */
478
478
  }, {
@@ -488,23 +488,23 @@ var DeviceApi = /*#__PURE__*/function () {
488
488
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
489
489
  }
490
490
  var pathParams = {
491
- 'projectUID': projectUID,
492
- 'deviceUID': deviceUID
491
+ projectUID: projectUID,
492
+ deviceUID: deviceUID
493
493
  };
494
494
  var queryParams = {};
495
495
  var headerParams = {};
496
496
  var formParams = {};
497
- var authNames = ['api_key'];
497
+ var authNames = ["api_key"];
498
498
  var contentTypes = [];
499
- var accepts = ['application/json'];
499
+ var accepts = ["application/json"];
500
500
  var returnType = _GetDevicePublicKey200Response["default"];
501
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
501
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
502
502
  }
503
503
 
504
504
  /**
505
505
  * Get Device Public Key
506
- * @param {String} projectUID
507
- * @param {String} deviceUID
506
+ * @param {String} projectUID
507
+ * @param {String} deviceUID
508
508
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
509
509
  */
510
510
  }, {
@@ -517,8 +517,8 @@ var DeviceApi = /*#__PURE__*/function () {
517
517
 
518
518
  /**
519
519
  * Get Device Sessions
520
- * @param {String} projectUID
521
- * @param {String} deviceUID
520
+ * @param {String} projectUID
521
+ * @param {String} deviceUID
522
522
  * @param {Object} opts Optional parameters
523
523
  * @param {Number} opts.pageSize (default to 50)
524
524
  * @param {Number} opts.pageNum (default to 1)
@@ -538,26 +538,26 @@ var DeviceApi = /*#__PURE__*/function () {
538
538
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
539
539
  }
540
540
  var pathParams = {
541
- 'projectUID': projectUID,
542
- 'deviceUID': deviceUID
541
+ projectUID: projectUID,
542
+ deviceUID: deviceUID
543
543
  };
544
544
  var queryParams = {
545
- 'pageSize': opts['pageSize'],
546
- 'pageNum': opts['pageNum']
545
+ pageSize: opts["pageSize"],
546
+ pageNum: opts["pageNum"]
547
547
  };
548
548
  var headerParams = {};
549
549
  var formParams = {};
550
- var authNames = ['api_key'];
550
+ var authNames = ["api_key"];
551
551
  var contentTypes = [];
552
- var accepts = ['application/json'];
552
+ var accepts = ["application/json"];
553
553
  var returnType = _GetDeviceSessions200Response["default"];
554
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
554
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
555
555
  }
556
556
 
557
557
  /**
558
558
  * Get Device Sessions
559
- * @param {String} projectUID
560
- * @param {String} deviceUID
559
+ * @param {String} projectUID
560
+ * @param {String} deviceUID
561
561
  * @param {Object} opts Optional parameters
562
562
  * @param {Number} opts.pageSize (default to 50)
563
563
  * @param {Number} opts.pageNum (default to 1)
@@ -573,8 +573,8 @@ var DeviceApi = /*#__PURE__*/function () {
573
573
 
574
574
  /**
575
575
  * Send a signal from Notehub to a Notecard.
576
- * @param {String} projectUID
577
- * @param {String} deviceUID
576
+ * @param {String} projectUID
577
+ * @param {String} deviceUID
578
578
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
579
579
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
580
580
  */
@@ -595,23 +595,23 @@ var DeviceApi = /*#__PURE__*/function () {
595
595
  throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
596
596
  }
597
597
  var pathParams = {
598
- 'projectUID': projectUID,
599
- 'deviceUID': deviceUID
598
+ projectUID: projectUID,
599
+ deviceUID: deviceUID
600
600
  };
601
601
  var queryParams = {};
602
602
  var headerParams = {};
603
603
  var formParams = {};
604
- var authNames = ['api_key'];
605
- var contentTypes = ['application/json'];
606
- var accepts = ['application/json'];
604
+ var authNames = ["api_key"];
605
+ var contentTypes = ["application/json"];
606
+ var accepts = ["application/json"];
607
607
  var returnType = _HandleNoteSignal200Response["default"];
608
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
608
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
609
609
  }
610
610
 
611
611
  /**
612
612
  * Send a signal from Notehub to a Notecard.
613
- * @param {String} projectUID
614
- * @param {String} deviceUID
613
+ * @param {String} projectUID
614
+ * @param {String} deviceUID
615
615
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
616
616
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
617
617
  */
@@ -625,8 +625,8 @@ var DeviceApi = /*#__PURE__*/function () {
625
625
 
626
626
  /**
627
627
  * Put environment variables of a device
628
- * @param {String} projectUID
629
- * @param {String} deviceUID
628
+ * @param {String} projectUID
629
+ * @param {String} deviceUID
630
630
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
631
631
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
632
632
  */
@@ -647,23 +647,23 @@ var DeviceApi = /*#__PURE__*/function () {
647
647
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
648
648
  }
649
649
  var pathParams = {
650
- 'projectUID': projectUID,
651
- 'deviceUID': deviceUID
650
+ projectUID: projectUID,
651
+ deviceUID: deviceUID
652
652
  };
653
653
  var queryParams = {};
654
654
  var headerParams = {};
655
655
  var formParams = {};
656
- var authNames = ['api_key'];
657
- var contentTypes = ['application/json'];
658
- var accepts = ['application/json'];
656
+ var authNames = ["api_key"];
657
+ var contentTypes = ["application/json"];
658
+ var accepts = ["application/json"];
659
659
  var returnType = _EnvironmentVariables["default"];
660
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
660
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
661
661
  }
662
662
 
663
663
  /**
664
664
  * Put environment variables of a device
665
- * @param {String} projectUID
666
- * @param {String} deviceUID
665
+ * @param {String} projectUID
666
+ * @param {String} deviceUID
667
667
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
668
668
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
669
669
  */
@@ -677,8 +677,8 @@ var DeviceApi = /*#__PURE__*/function () {
677
677
 
678
678
  /**
679
679
  * Put environment variables of a device with device pin authorization
680
- * @param {String} projectUID
681
- * @param {String} deviceUID
680
+ * @param {String} projectUID
681
+ * @param {String} deviceUID
682
682
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
683
683
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
684
684
  */
@@ -699,23 +699,23 @@ var DeviceApi = /*#__PURE__*/function () {
699
699
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
700
700
  }
701
701
  var pathParams = {
702
- 'projectUID': projectUID,
703
- 'deviceUID': deviceUID
702
+ projectUID: projectUID,
703
+ deviceUID: deviceUID
704
704
  };
705
705
  var queryParams = {};
706
706
  var headerParams = {};
707
707
  var formParams = {};
708
- var authNames = ['pin'];
709
- var contentTypes = ['application/json'];
710
- var accepts = ['application/json'];
708
+ var authNames = ["pin"];
709
+ var contentTypes = ["application/json"];
710
+ var accepts = ["application/json"];
711
711
  var returnType = _EnvironmentVariables["default"];
712
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
712
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
713
713
  }
714
714
 
715
715
  /**
716
716
  * Put environment variables of a device with device pin authorization
717
- * @param {String} projectUID
718
- * @param {String} deviceUID
717
+ * @param {String} projectUID
718
+ * @param {String} deviceUID
719
719
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
720
720
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
721
721
  */
@@ -729,9 +729,9 @@ var DeviceApi = /*#__PURE__*/function () {
729
729
 
730
730
  /**
731
731
  * Add Device to Fleets
732
- * @param {String} projectUID
733
- * @param {String} deviceUID
734
- * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
732
+ * @param {String} projectUID
733
+ * @param {String} deviceUID
734
+ * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
735
735
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
736
736
  */
737
737
  }, {
@@ -751,24 +751,24 @@ var DeviceApi = /*#__PURE__*/function () {
751
751
  throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
752
752
  }
753
753
  var pathParams = {
754
- 'projectUID': projectUID,
755
- 'deviceUID': deviceUID
754
+ projectUID: projectUID,
755
+ deviceUID: deviceUID
756
756
  };
757
757
  var queryParams = {};
758
758
  var headerParams = {};
759
759
  var formParams = {};
760
- var authNames = ['api_key'];
761
- var contentTypes = ['application/json'];
762
- var accepts = ['application/json'];
760
+ var authNames = ["api_key"];
761
+ var contentTypes = ["application/json"];
762
+ var accepts = ["application/json"];
763
763
  var returnType = _GetProjectFleets200Response["default"];
764
- return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
764
+ return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
765
765
  }
766
766
 
767
767
  /**
768
768
  * Add Device to Fleets
769
- * @param {String} projectUID
770
- * @param {String} deviceUID
771
- * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
769
+ * @param {String} projectUID
770
+ * @param {String} deviceUID
771
+ * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
772
772
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
773
773
  */
774
774
  }, {