@blues-inc/notehub-js 1.0.35 → 1.0.36-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 (130) hide show
  1. package/README.md +245 -222
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/ApiAccessApi.js +238 -0
  5. package/dist/api/AuthorizationApi.js +16 -16
  6. package/dist/api/BillingAccountApi.js +14 -14
  7. package/dist/api/DeviceApi.js +404 -351
  8. package/dist/api/EventApi.js +130 -130
  9. package/dist/api/ExternalDevicesApi.js +41 -41
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +441 -355
  12. package/dist/api/RepositoryApi.js +103 -103
  13. package/dist/api/RouteApi.js +81 -81
  14. package/dist/api/WebhookApi.js +51 -51
  15. package/dist/index.js +49 -0
  16. package/dist/model/Alert.js +76 -74
  17. package/dist/model/AlertDataInner.js +35 -35
  18. package/dist/model/AlertNotificationsInner.js +18 -18
  19. package/dist/model/ApiKey.js +159 -0
  20. package/dist/model/ApiKeyCreatedBy.js +116 -0
  21. package/dist/model/ApiKeyInfo.js +112 -0
  22. package/dist/model/ApiKeySecret.js +105 -0
  23. package/dist/model/Aws.js +65 -65
  24. package/dist/model/Azure.js +43 -43
  25. package/dist/model/BillingAccount.js +21 -21
  26. package/dist/model/BillingAccountRole.js +9 -9
  27. package/dist/model/Body.js +5 -5
  28. package/dist/model/CloneProjectRequest.js +20 -20
  29. package/dist/model/Contact.js +22 -22
  30. package/dist/model/CreateFleetRequest.js +12 -12
  31. package/dist/model/CreateMonitor.js +126 -125
  32. package/dist/model/CreateProductRequest.js +22 -22
  33. package/dist/model/CreateProjectRequest.js +16 -16
  34. package/dist/model/CreateUpdateRepository.js +17 -17
  35. package/dist/model/CurrentFirmware.js +12 -12
  36. package/dist/model/DFUEnv.js +12 -12
  37. package/dist/model/DFUState.js +65 -65
  38. package/dist/model/DataField.js +7 -7
  39. package/dist/model/DataSet.js +30 -29
  40. package/dist/model/DataSetField.js +19 -19
  41. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  42. package/dist/model/Device.js +102 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  45. package/dist/model/DeviceDfuStateMachine.js +25 -24
  46. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  47. package/dist/model/DeviceDfuStatus.js +20 -20
  48. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  49. package/dist/model/DeviceDfuStatusPage.js +13 -12
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +269 -0
  56. package/dist/model/EnvVar.js +119 -0
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/Firmware.js +49 -49
  61. package/dist/model/FirmwareInfo.js +60 -60
  62. package/dist/model/Fleet.js +36 -27
  63. package/dist/model/GetAlerts200Response.js +15 -14
  64. package/dist/model/GetBillingAccounts200Response.js +10 -9
  65. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  66. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  68. package/dist/model/GetDeviceLatest200Response.js +10 -9
  69. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  70. package/dist/model/GetDeviceSessions200Response.js +17 -16
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  73. package/dist/model/GetProjectDevices200Response.js +17 -16
  74. package/dist/model/GetProjectEvents200Response.js +21 -20
  75. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  76. package/dist/model/GetProjectFleets200Response.js +12 -11
  77. package/dist/model/GetProjectMembers200Response.js +12 -11
  78. package/dist/model/GetProjectProducts200Response.js +10 -9
  79. package/dist/model/GetProjects200Response.js +10 -9
  80. package/dist/model/GetWebhooks200Response.js +10 -9
  81. package/dist/model/Google.js +33 -33
  82. package/dist/model/HandleNoteChanges200Response.js +11 -11
  83. package/dist/model/HandleNoteGet200Response.js +13 -13
  84. package/dist/model/HandleNoteSignal200Response.js +5 -5
  85. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  86. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  87. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  88. package/dist/model/Http.js +35 -35
  89. package/dist/model/HttpFilter.js +19 -19
  90. package/dist/model/HttpTransform.js +20 -20
  91. package/dist/model/Location.js +40 -40
  92. package/dist/model/Login200Response.js +7 -7
  93. package/dist/model/LoginRequest.js +12 -12
  94. package/dist/model/Monitor.js +100 -99
  95. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  96. package/dist/model/Mqtt.js +66 -66
  97. package/dist/model/Note.js +10 -10
  98. package/dist/model/NotefileSchema.js +19 -18
  99. package/dist/model/NotehubRoute.js +36 -36
  100. package/dist/model/NotehubRouteSchema.js +45 -46
  101. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  102. package/dist/model/Product.js +26 -26
  103. package/dist/model/Project.js +34 -34
  104. package/dist/model/ProjectMember.js +22 -22
  105. package/dist/model/Proxy.js +24 -24
  106. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  107. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  108. package/dist/model/QuestionDataResponseMap.js +16 -16
  109. package/dist/model/Radresponder.js +25 -25
  110. package/dist/model/Repository.js +22 -22
  111. package/dist/model/Role.js +9 -9
  112. package/dist/model/RouteLog.js +44 -35
  113. package/dist/model/SchemaProperty.js +40 -38
  114. package/dist/model/SimUsage.js +19 -19
  115. package/dist/model/Slack.js +53 -53
  116. package/dist/model/SlackBearerNotification.js +25 -25
  117. package/dist/model/SlackWebHookNotification.js +20 -20
  118. package/dist/model/Snowflake.js +45 -45
  119. package/dist/model/SnowflakeTransform.js +12 -12
  120. package/dist/model/Thingworx.js +33 -33
  121. package/dist/model/TowerLocation.js +54 -54
  122. package/dist/model/Twilio.js +43 -43
  123. package/dist/model/UpdateFleetRequest.js +31 -22
  124. package/dist/model/UploadMetadata.js +59 -59
  125. package/dist/model/UserDbRoute.js +25 -25
  126. package/dist/model/UserDfuStateMachine.js +20 -20
  127. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  128. package/dist/model/UserFirmwareInfo.js +12 -12
  129. package/dist/model/WebhookSettings.js +15 -15
  130. package/package.json +3 -3
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Body = _interopRequireDefault(require("../model/Body"));
9
9
  var _Device = _interopRequireDefault(require("../model/Device"));
10
+ var _EnvTreeJsonNode = _interopRequireDefault(require("../model/EnvTreeJsonNode"));
10
11
  var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
11
12
  var _Error = _interopRequireDefault(require("../model/Error"));
12
13
  var _GetDeviceEnvironmentVariables200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariables200Response"));
@@ -32,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
32
33
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
34
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
34
35
  * Notehub API
35
- * The OpenAPI definition for the Notehub.io API.
36
+ * The OpenAPI definition for the Notehub.io API.
36
37
  *
37
38
  * The version of the OpenAPI document: 1.2.0
38
39
  * Contact: engineering@blues.io
@@ -43,18 +44,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
43
44
  *
44
45
  */
45
46
  /**
46
- * Device service.
47
- * @module api/DeviceApi
48
- * @version 1.0.35
49
- */
47
+ * Device service.
48
+ * @module api/DeviceApi
49
+ * @version 1.0.36-beta.2
50
+ */
50
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
51
52
  /**
52
- * Constructs a new DeviceApi.
53
- * @alias module:api/DeviceApi
54
- * @class
55
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
56
- * default to {@link module:ApiClient#instance} if unspecified.
57
- */
53
+ * Constructs a new DeviceApi.
54
+ * @alias module:api/DeviceApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
58
59
  function DeviceApi(apiClient) {
59
60
  _classCallCheck(this, DeviceApi);
60
61
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -62,8 +63,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
62
63
 
63
64
  /**
64
65
  * Delete environment variable of a device
65
- * @param {String} projectOrProductUID
66
- * @param {String} deviceUID
66
+ * @param {String} projectOrProductUID
67
+ * @param {String} deviceUID
67
68
  * @param {String} key The environment variable key to delete.
68
69
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
69
70
  */
@@ -84,24 +85,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
84
85
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
85
86
  }
86
87
  var pathParams = {
87
- projectOrProductUID: projectOrProductUID,
88
- deviceUID: deviceUID,
89
- key: key
88
+ 'projectOrProductUID': projectOrProductUID,
89
+ 'deviceUID': deviceUID,
90
+ 'key': key
90
91
  };
91
92
  var queryParams = {};
92
93
  var headerParams = {};
93
94
  var formParams = {};
94
- var authNames = ["api_key"];
95
+ var authNames = ['api_key'];
95
96
  var contentTypes = [];
96
- var accepts = ["application/json"];
97
+ var accepts = ['application/json'];
97
98
  var returnType = _EnvironmentVariables["default"];
98
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
99
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
99
100
  }
100
101
 
101
102
  /**
102
103
  * Delete environment variable of a device
103
- * @param {String} projectOrProductUID
104
- * @param {String} deviceUID
104
+ * @param {String} projectOrProductUID
105
+ * @param {String} deviceUID
105
106
  * @param {String} key The environment variable key to delete.
106
107
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
107
108
  */
@@ -115,9 +116,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
115
116
 
116
117
  /**
117
118
  * Delete Device
118
- * @param {String} projectOrProductUID
119
- * @param {String} deviceUID
120
- * @param {Boolean} purge
119
+ * @param {String} projectOrProductUID
120
+ * @param {String} deviceUID
121
+ * @param {Boolean} purge
121
122
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
122
123
  */
123
124
  }, {
@@ -137,26 +138,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
137
138
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
138
139
  }
139
140
  var pathParams = {
140
- projectOrProductUID: projectOrProductUID,
141
- deviceUID: deviceUID
141
+ 'projectOrProductUID': projectOrProductUID,
142
+ 'deviceUID': deviceUID
142
143
  };
143
144
  var queryParams = {
144
- purge: purge
145
+ 'purge': purge
145
146
  };
146
147
  var headerParams = {};
147
148
  var formParams = {};
148
- var authNames = ["api_key"];
149
+ var authNames = ['api_key'];
149
150
  var contentTypes = [];
150
- var accepts = ["application/json"];
151
+ var accepts = ['application/json'];
151
152
  var returnType = null;
152
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
153
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
153
154
  }
154
155
 
155
156
  /**
156
157
  * Delete Device
157
- * @param {String} projectOrProductUID
158
- * @param {String} deviceUID
159
- * @param {Boolean} purge
158
+ * @param {String} projectOrProductUID
159
+ * @param {String} deviceUID
160
+ * @param {Boolean} purge
160
161
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
161
162
  */
162
163
  }, {
@@ -169,8 +170,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
169
170
 
170
171
  /**
171
172
  * Disable Device
172
- * @param {String} projectOrProductUID
173
- * @param {String} deviceUID
173
+ * @param {String} projectOrProductUID
174
+ * @param {String} deviceUID
174
175
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
175
176
  */
176
177
  }, {
@@ -186,23 +187,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
186
187
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
187
188
  }
188
189
  var pathParams = {
189
- projectOrProductUID: projectOrProductUID,
190
- deviceUID: deviceUID
190
+ 'projectOrProductUID': projectOrProductUID,
191
+ 'deviceUID': deviceUID
191
192
  };
192
193
  var queryParams = {};
193
194
  var headerParams = {};
194
195
  var formParams = {};
195
- var authNames = ["api_key"];
196
+ var authNames = ['api_key'];
196
197
  var contentTypes = [];
197
- var accepts = ["application/json"];
198
+ var accepts = ['application/json'];
198
199
  var returnType = null;
199
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
200
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
200
201
  }
201
202
 
202
203
  /**
203
204
  * Disable Device
204
- * @param {String} projectOrProductUID
205
- * @param {String} deviceUID
205
+ * @param {String} projectOrProductUID
206
+ * @param {String} deviceUID
206
207
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
207
208
  */
208
209
  }, {
@@ -215,8 +216,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
215
216
 
216
217
  /**
217
218
  * Disable Connectivity Assurance
218
- * @param {String} projectOrProductUID
219
- * @param {String} deviceUID
219
+ * @param {String} projectOrProductUID
220
+ * @param {String} deviceUID
220
221
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
221
222
  */
222
223
  }, {
@@ -232,23 +233,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
232
233
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
233
234
  }
234
235
  var pathParams = {
235
- projectOrProductUID: projectOrProductUID,
236
- deviceUID: deviceUID
236
+ 'projectOrProductUID': projectOrProductUID,
237
+ 'deviceUID': deviceUID
237
238
  };
238
239
  var queryParams = {};
239
240
  var headerParams = {};
240
241
  var formParams = {};
241
- var authNames = ["api_key"];
242
+ var authNames = ['api_key'];
242
243
  var contentTypes = [];
243
- var accepts = ["application/json"];
244
+ var accepts = ['application/json'];
244
245
  var returnType = null;
245
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
246
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
246
247
  }
247
248
 
248
249
  /**
249
250
  * Disable Connectivity Assurance
250
- * @param {String} projectOrProductUID
251
- * @param {String} deviceUID
251
+ * @param {String} projectOrProductUID
252
+ * @param {String} deviceUID
252
253
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
253
254
  */
254
255
  }, {
@@ -261,8 +262,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
261
262
 
262
263
  /**
263
264
  * Enable Device
264
- * @param {String} projectOrProductUID
265
- * @param {String} deviceUID
265
+ * @param {String} projectOrProductUID
266
+ * @param {String} deviceUID
266
267
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
267
268
  */
268
269
  }, {
@@ -278,23 +279,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
278
279
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
279
280
  }
280
281
  var pathParams = {
281
- projectOrProductUID: projectOrProductUID,
282
- deviceUID: deviceUID
282
+ 'projectOrProductUID': projectOrProductUID,
283
+ 'deviceUID': deviceUID
283
284
  };
284
285
  var queryParams = {};
285
286
  var headerParams = {};
286
287
  var formParams = {};
287
- var authNames = ["api_key"];
288
+ var authNames = ['api_key'];
288
289
  var contentTypes = [];
289
- var accepts = ["application/json"];
290
+ var accepts = ['application/json'];
290
291
  var returnType = null;
291
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
292
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
292
293
  }
293
294
 
294
295
  /**
295
296
  * Enable Device
296
- * @param {String} projectOrProductUID
297
- * @param {String} deviceUID
297
+ * @param {String} projectOrProductUID
298
+ * @param {String} deviceUID
298
299
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
299
300
  */
300
301
  }, {
@@ -307,8 +308,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
307
308
 
308
309
  /**
309
310
  * Enable Connectivity Assurance
310
- * @param {String} projectOrProductUID
311
- * @param {String} deviceUID
311
+ * @param {String} projectOrProductUID
312
+ * @param {String} deviceUID
312
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
313
314
  */
314
315
  }, {
@@ -324,23 +325,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
324
325
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
325
326
  }
326
327
  var pathParams = {
327
- projectOrProductUID: projectOrProductUID,
328
- deviceUID: deviceUID
328
+ 'projectOrProductUID': projectOrProductUID,
329
+ 'deviceUID': deviceUID
329
330
  };
330
331
  var queryParams = {};
331
332
  var headerParams = {};
332
333
  var formParams = {};
333
- var authNames = ["api_key"];
334
+ var authNames = ['api_key'];
334
335
  var contentTypes = [];
335
- var accepts = ["application/json"];
336
+ var accepts = ['application/json'];
336
337
  var returnType = null;
337
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
339
  }
339
340
 
340
341
  /**
341
342
  * Enable Connectivity Assurance
342
- * @param {String} projectOrProductUID
343
- * @param {String} deviceUID
343
+ * @param {String} projectOrProductUID
344
+ * @param {String} deviceUID
344
345
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
345
346
  */
346
347
  }, {
@@ -353,8 +354,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
353
354
 
354
355
  /**
355
356
  * Get Device
356
- * @param {String} projectOrProductUID
357
- * @param {String} deviceUID
357
+ * @param {String} projectOrProductUID
358
+ * @param {String} deviceUID
358
359
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
359
360
  */
360
361
  }, {
@@ -370,23 +371,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
370
371
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
371
372
  }
372
373
  var pathParams = {
373
- projectOrProductUID: projectOrProductUID,
374
- deviceUID: deviceUID
374
+ 'projectOrProductUID': projectOrProductUID,
375
+ 'deviceUID': deviceUID
375
376
  };
376
377
  var queryParams = {};
377
378
  var headerParams = {};
378
379
  var formParams = {};
379
- var authNames = ["api_key"];
380
+ var authNames = ['api_key'];
380
381
  var contentTypes = [];
381
- var accepts = ["application/json"];
382
+ var accepts = ['application/json'];
382
383
  var returnType = _Device["default"];
383
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
384
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
384
385
  }
385
386
 
386
387
  /**
387
388
  * Get Device
388
- * @param {String} projectOrProductUID
389
- * @param {String} deviceUID
389
+ * @param {String} projectOrProductUID
390
+ * @param {String} deviceUID
390
391
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
391
392
  */
392
393
  }, {
@@ -397,10 +398,56 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
397
398
  });
398
399
  }
399
400
 
401
+ /**
402
+ * Get environment variable hierarchy for a device
403
+ * @param {String} projectOrProductUID
404
+ * @param {String} deviceUID
405
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
406
+ */
407
+ }, {
408
+ key: "getDeviceEnvironmentHierarchyWithHttpInfo",
409
+ value: function getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID) {
410
+ var postBody = null;
411
+ // verify the required parameter 'projectOrProductUID' is set
412
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
413
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentHierarchy");
414
+ }
415
+ // verify the required parameter 'deviceUID' is set
416
+ if (deviceUID === undefined || deviceUID === null) {
417
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
418
+ }
419
+ var pathParams = {
420
+ 'projectOrProductUID': projectOrProductUID,
421
+ 'deviceUID': deviceUID
422
+ };
423
+ var queryParams = {};
424
+ var headerParams = {};
425
+ var formParams = {};
426
+ var authNames = ['api_key'];
427
+ var contentTypes = [];
428
+ var accepts = ['application/json'];
429
+ var returnType = _EnvTreeJsonNode["default"];
430
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
431
+ }
432
+
433
+ /**
434
+ * Get environment variable hierarchy for a device
435
+ * @param {String} projectOrProductUID
436
+ * @param {String} deviceUID
437
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
438
+ */
439
+ }, {
440
+ key: "getDeviceEnvironmentHierarchy",
441
+ value: function getDeviceEnvironmentHierarchy(projectOrProductUID, deviceUID) {
442
+ return this.getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
443
+ return response_and_data.data;
444
+ });
445
+ }
446
+
400
447
  /**
401
448
  * Get environment variables of a device
402
- * @param {String} projectOrProductUID
403
- * @param {String} deviceUID
449
+ * @param {String} projectOrProductUID
450
+ * @param {String} deviceUID
404
451
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
405
452
  */
406
453
  }, {
@@ -416,23 +463,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
416
463
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
417
464
  }
418
465
  var pathParams = {
419
- projectOrProductUID: projectOrProductUID,
420
- deviceUID: deviceUID
466
+ 'projectOrProductUID': projectOrProductUID,
467
+ 'deviceUID': deviceUID
421
468
  };
422
469
  var queryParams = {};
423
470
  var headerParams = {};
424
471
  var formParams = {};
425
- var authNames = ["api_key"];
472
+ var authNames = ['api_key'];
426
473
  var contentTypes = [];
427
- var accepts = ["application/json"];
474
+ var accepts = ['application/json'];
428
475
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
429
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
476
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
430
477
  }
431
478
 
432
479
  /**
433
480
  * Get environment variables of a device
434
- * @param {String} projectOrProductUID
435
- * @param {String} deviceUID
481
+ * @param {String} projectOrProductUID
482
+ * @param {String} deviceUID
436
483
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
437
484
  */
438
485
  }, {
@@ -445,8 +492,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
445
492
 
446
493
  /**
447
494
  * Get environment variables of a device with device pin authorization
448
- * @param {String} productUID
449
- * @param {String} deviceUID
495
+ * @param {String} productUID
496
+ * @param {String} deviceUID
450
497
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
451
498
  */
452
499
  }, {
@@ -462,23 +509,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
462
509
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
463
510
  }
464
511
  var pathParams = {
465
- productUID: productUID,
466
- deviceUID: deviceUID
512
+ 'productUID': productUID,
513
+ 'deviceUID': deviceUID
467
514
  };
468
515
  var queryParams = {};
469
516
  var headerParams = {};
470
517
  var formParams = {};
471
- var authNames = ["pin"];
518
+ var authNames = ['pin'];
472
519
  var contentTypes = [];
473
- var accepts = ["application/json"];
520
+ var accepts = ['application/json'];
474
521
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
475
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
522
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
476
523
  }
477
524
 
478
525
  /**
479
526
  * Get environment variables of a device with device pin authorization
480
- * @param {String} productUID
481
- * @param {String} deviceUID
527
+ * @param {String} productUID
528
+ * @param {String} deviceUID
482
529
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
483
530
  */
484
531
  }, {
@@ -491,8 +538,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
491
538
 
492
539
  /**
493
540
  * Get Device Health Log
494
- * @param {String} projectOrProductUID
495
- * @param {String} deviceUID
541
+ * @param {String} projectOrProductUID
542
+ * @param {String} deviceUID
496
543
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
497
544
  */
498
545
  }, {
@@ -508,23 +555,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
508
555
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
509
556
  }
510
557
  var pathParams = {
511
- projectOrProductUID: projectOrProductUID,
512
- deviceUID: deviceUID
558
+ 'projectOrProductUID': projectOrProductUID,
559
+ 'deviceUID': deviceUID
513
560
  };
514
561
  var queryParams = {};
515
562
  var headerParams = {};
516
563
  var formParams = {};
517
- var authNames = ["api_key"];
564
+ var authNames = ['api_key'];
518
565
  var contentTypes = [];
519
- var accepts = ["application/json"];
566
+ var accepts = ['application/json'];
520
567
  var returnType = _GetDeviceHealthLog200Response["default"];
521
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
568
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
522
569
  }
523
570
 
524
571
  /**
525
572
  * Get Device Health Log
526
- * @param {String} projectOrProductUID
527
- * @param {String} deviceUID
573
+ * @param {String} projectOrProductUID
574
+ * @param {String} deviceUID
528
575
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
529
576
  */
530
577
  }, {
@@ -537,8 +584,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
537
584
 
538
585
  /**
539
586
  * Get Device Latest Events
540
- * @param {String} projectOrProductUID
541
- * @param {String} deviceUID
587
+ * @param {String} projectOrProductUID
588
+ * @param {String} deviceUID
542
589
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
543
590
  */
544
591
  }, {
@@ -554,23 +601,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
554
601
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
555
602
  }
556
603
  var pathParams = {
557
- projectOrProductUID: projectOrProductUID,
558
- deviceUID: deviceUID
604
+ 'projectOrProductUID': projectOrProductUID,
605
+ 'deviceUID': deviceUID
559
606
  };
560
607
  var queryParams = {};
561
608
  var headerParams = {};
562
609
  var formParams = {};
563
- var authNames = ["api_key"];
610
+ var authNames = ['api_key'];
564
611
  var contentTypes = [];
565
- var accepts = ["application/json"];
612
+ var accepts = ['application/json'];
566
613
  var returnType = _GetDeviceLatest200Response["default"];
567
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
614
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
568
615
  }
569
616
 
570
617
  /**
571
618
  * Get Device Latest Events
572
- * @param {String} projectOrProductUID
573
- * @param {String} deviceUID
619
+ * @param {String} projectOrProductUID
620
+ * @param {String} deviceUID
574
621
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
575
622
  */
576
623
  }, {
@@ -583,8 +630,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
583
630
 
584
631
  /**
585
632
  * Get Device Public Key
586
- * @param {String} projectOrProductUID
587
- * @param {String} deviceUID
633
+ * @param {String} projectOrProductUID
634
+ * @param {String} deviceUID
588
635
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
589
636
  */
590
637
  }, {
@@ -600,23 +647,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
600
647
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
601
648
  }
602
649
  var pathParams = {
603
- projectOrProductUID: projectOrProductUID,
604
- deviceUID: deviceUID
650
+ 'projectOrProductUID': projectOrProductUID,
651
+ 'deviceUID': deviceUID
605
652
  };
606
653
  var queryParams = {};
607
654
  var headerParams = {};
608
655
  var formParams = {};
609
- var authNames = ["api_key"];
656
+ var authNames = ['api_key'];
610
657
  var contentTypes = [];
611
- var accepts = ["application/json"];
658
+ var accepts = ['application/json'];
612
659
  var returnType = _GetDevicePublicKey200Response["default"];
613
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
660
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
614
661
  }
615
662
 
616
663
  /**
617
664
  * Get Device Public Key
618
- * @param {String} projectOrProductUID
619
- * @param {String} deviceUID
665
+ * @param {String} projectOrProductUID
666
+ * @param {String} deviceUID
620
667
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
621
668
  */
622
669
  }, {
@@ -629,11 +676,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
629
676
 
630
677
  /**
631
678
  * Get Device Sessions
632
- * @param {String} projectOrProductUID
633
- * @param {String} deviceUID
679
+ * @param {String} projectOrProductUID
680
+ * @param {String} deviceUID
634
681
  * @param {Object} opts Optional parameters
635
682
  * @param {Number} opts.pageSize (default to 50)
636
683
  * @param {Number} opts.pageNum (default to 1)
684
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
685
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
637
686
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
638
687
  */
639
688
  }, {
@@ -650,29 +699,33 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
650
699
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
651
700
  }
652
701
  var pathParams = {
653
- projectOrProductUID: projectOrProductUID,
654
- deviceUID: deviceUID
702
+ 'projectOrProductUID': projectOrProductUID,
703
+ 'deviceUID': deviceUID
655
704
  };
656
705
  var queryParams = {
657
- pageSize: opts["pageSize"],
658
- pageNum: opts["pageNum"]
706
+ 'pageSize': opts['pageSize'],
707
+ 'pageNum': opts['pageNum'],
708
+ 'startDate': opts['startDate'],
709
+ 'endDate': opts['endDate']
659
710
  };
660
711
  var headerParams = {};
661
712
  var formParams = {};
662
- var authNames = ["api_key"];
713
+ var authNames = ['api_key'];
663
714
  var contentTypes = [];
664
- var accepts = ["application/json"];
715
+ var accepts = ['application/json'];
665
716
  var returnType = _GetDeviceSessions200Response["default"];
666
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
717
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
667
718
  }
668
719
 
669
720
  /**
670
721
  * Get Device Sessions
671
- * @param {String} projectOrProductUID
672
- * @param {String} deviceUID
722
+ * @param {String} projectOrProductUID
723
+ * @param {String} deviceUID
673
724
  * @param {Object} opts Optional parameters
674
725
  * @param {Number} opts.pageSize (default to 50)
675
726
  * @param {Number} opts.pageNum (default to 1)
727
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
728
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
676
729
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
677
730
  */
678
731
  }, {
@@ -685,7 +738,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
685
738
 
686
739
  /**
687
740
  * Get Device Public Keys of a Project
688
- * @param {String} projectOrProductUID
741
+ * @param {String} projectOrProductUID
689
742
  * @param {Object} opts Optional parameters
690
743
  * @param {Number} opts.pageSize (default to 50)
691
744
  * @param {Number} opts.pageNum (default to 1)
@@ -701,24 +754,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
701
754
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
702
755
  }
703
756
  var pathParams = {
704
- projectOrProductUID: projectOrProductUID
757
+ 'projectOrProductUID': projectOrProductUID
705
758
  };
706
759
  var queryParams = {
707
- pageSize: opts["pageSize"],
708
- pageNum: opts["pageNum"]
760
+ 'pageSize': opts['pageSize'],
761
+ 'pageNum': opts['pageNum']
709
762
  };
710
763
  var headerParams = {};
711
764
  var formParams = {};
712
- var authNames = ["api_key"];
765
+ var authNames = ['api_key'];
713
766
  var contentTypes = [];
714
- var accepts = ["application/json"];
767
+ var accepts = ['application/json'];
715
768
  var returnType = _GetProjectDevicePublicKeys200Response["default"];
716
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
769
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
717
770
  }
718
771
 
719
772
  /**
720
773
  * Get Device Public Keys of a Project
721
- * @param {String} projectOrProductUID
774
+ * @param {String} projectOrProductUID
722
775
  * @param {Object} opts Optional parameters
723
776
  * @param {Number} opts.pageSize (default to 50)
724
777
  * @param {Number} opts.pageNum (default to 1)
@@ -734,18 +787,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
734
787
 
735
788
  /**
736
789
  * Get Devices of a Project
737
- * @param {String} projectOrProductUID
790
+ * @param {String} projectOrProductUID
738
791
  * @param {Object} opts Optional parameters
739
792
  * @param {Number} opts.pageSize (default to 50)
740
793
  * @param {Number} opts.pageNum (default to 1)
741
794
  * @param {Array.<String>} opts.deviceUID A Device UID.
742
795
  * @param {Array.<String>} opts.tag Tag filter
743
796
  * @param {Array.<String>} opts.serialNumber Serial number filter
744
- * @param {Array.<String>} opts.fleetUID
797
+ * @param {Array.<String>} opts.fleetUID
745
798
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
746
799
  * @param {Array.<String>} opts.location Location filter
747
800
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
748
- * @param {Array.<String>} opts.productUID
801
+ * @param {Array.<String>} opts.productUID
749
802
  * @param {Array.<String>} opts.sku SKU filter
750
803
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
751
804
  */
@@ -759,44 +812,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
759
812
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
760
813
  }
761
814
  var pathParams = {
762
- projectOrProductUID: projectOrProductUID
815
+ 'projectOrProductUID': projectOrProductUID
763
816
  };
764
817
  var queryParams = {
765
- pageSize: opts["pageSize"],
766
- pageNum: opts["pageNum"],
767
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
768
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
769
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
770
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
771
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
772
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
773
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
774
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
775
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
818
+ 'pageSize': opts['pageSize'],
819
+ 'pageNum': opts['pageNum'],
820
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
821
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
822
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
823
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
824
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
825
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
826
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
827
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
828
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
776
829
  };
777
830
  var headerParams = {};
778
831
  var formParams = {};
779
- var authNames = ["api_key"];
832
+ var authNames = ['api_key'];
780
833
  var contentTypes = [];
781
- var accepts = ["application/json"];
834
+ var accepts = ['application/json'];
782
835
  var returnType = _GetProjectDevices200Response["default"];
783
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
836
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
784
837
  }
785
838
 
786
839
  /**
787
840
  * Get Devices of a Project
788
- * @param {String} projectOrProductUID
841
+ * @param {String} projectOrProductUID
789
842
  * @param {Object} opts Optional parameters
790
843
  * @param {Number} opts.pageSize (default to 50)
791
844
  * @param {Number} opts.pageNum (default to 1)
792
845
  * @param {Array.<String>} opts.deviceUID A Device UID.
793
846
  * @param {Array.<String>} opts.tag Tag filter
794
847
  * @param {Array.<String>} opts.serialNumber Serial number filter
795
- * @param {Array.<String>} opts.fleetUID
848
+ * @param {Array.<String>} opts.fleetUID
796
849
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
797
850
  * @param {Array.<String>} opts.location Location filter
798
851
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
799
- * @param {Array.<String>} opts.productUID
852
+ * @param {Array.<String>} opts.productUID
800
853
  * @param {Array.<String>} opts.sku SKU filter
801
854
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
802
855
  */
@@ -810,8 +863,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
810
863
 
811
864
  /**
812
865
  * Get Devices of a Fleet within a Project
813
- * @param {String} projectOrProductUID
814
- * @param {String} fleetUID
866
+ * @param {String} projectOrProductUID
867
+ * @param {String} fleetUID
815
868
  * @param {Object} opts Optional parameters
816
869
  * @param {Number} opts.pageSize (default to 50)
817
870
  * @param {Number} opts.pageNum (default to 1)
@@ -821,7 +874,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
821
874
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
822
875
  * @param {Array.<String>} opts.location Location filter
823
876
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
824
- * @param {Array.<String>} opts.productUID
877
+ * @param {Array.<String>} opts.productUID
825
878
  * @param {Array.<String>} opts.sku SKU filter
826
879
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
827
880
  */
@@ -839,34 +892,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
839
892
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
840
893
  }
841
894
  var pathParams = {
842
- projectOrProductUID: projectOrProductUID,
843
- fleetUID: fleetUID
895
+ 'projectOrProductUID': projectOrProductUID,
896
+ 'fleetUID': fleetUID
844
897
  };
845
898
  var queryParams = {
846
- pageSize: opts["pageSize"],
847
- pageNum: opts["pageNum"],
848
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
849
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
850
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
851
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
852
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
853
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
854
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
855
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
899
+ 'pageSize': opts['pageSize'],
900
+ 'pageNum': opts['pageNum'],
901
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
902
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
903
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
904
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
905
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
906
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
907
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
908
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
856
909
  };
857
910
  var headerParams = {};
858
911
  var formParams = {};
859
- var authNames = ["api_key"];
912
+ var authNames = ['api_key'];
860
913
  var contentTypes = [];
861
- var accepts = ["application/json"];
914
+ var accepts = ['application/json'];
862
915
  var returnType = _GetProjectDevices200Response["default"];
863
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
916
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
864
917
  }
865
918
 
866
919
  /**
867
920
  * Get Devices of a Fleet within a Project
868
- * @param {String} projectOrProductUID
869
- * @param {String} fleetUID
921
+ * @param {String} projectOrProductUID
922
+ * @param {String} fleetUID
870
923
  * @param {Object} opts Optional parameters
871
924
  * @param {Number} opts.pageSize (default to 50)
872
925
  * @param {Number} opts.pageNum (default to 1)
@@ -876,7 +929,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
876
929
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
877
930
  * @param {Array.<String>} opts.location Location filter
878
931
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
879
- * @param {Array.<String>} opts.productUID
932
+ * @param {Array.<String>} opts.productUID
880
933
  * @param {Array.<String>} opts.sku SKU filter
881
934
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
882
935
  */
@@ -890,9 +943,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
890
943
 
891
944
  /**
892
945
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
893
- * @param {String} projectOrProductUID
894
- * @param {String} deviceUID
895
- * @param {String} notefileID
946
+ * @param {String} projectOrProductUID
947
+ * @param {String} deviceUID
948
+ * @param {String} notefileID
896
949
  * @param {module:model/Note} note Body or payload of note to be added to the device
897
950
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
898
951
  */
@@ -917,25 +970,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
917
970
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
918
971
  }
919
972
  var pathParams = {
920
- projectOrProductUID: projectOrProductUID,
921
- deviceUID: deviceUID,
922
- notefileID: notefileID
973
+ 'projectOrProductUID': projectOrProductUID,
974
+ 'deviceUID': deviceUID,
975
+ 'notefileID': notefileID
923
976
  };
924
977
  var queryParams = {};
925
978
  var headerParams = {};
926
979
  var formParams = {};
927
- var authNames = ["api_key"];
928
- var contentTypes = ["application/json"];
929
- var accepts = ["application/json"];
980
+ var authNames = ['api_key'];
981
+ var contentTypes = ['application/json'];
982
+ var accepts = ['application/json'];
930
983
  var returnType = null;
931
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
984
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
932
985
  }
933
986
 
934
987
  /**
935
988
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
936
- * @param {String} projectOrProductUID
937
- * @param {String} deviceUID
938
- * @param {String} notefileID
989
+ * @param {String} projectOrProductUID
990
+ * @param {String} deviceUID
991
+ * @param {String} notefileID
939
992
  * @param {module:model/Note} note Body or payload of note to be added to the device
940
993
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
941
994
  */
@@ -949,9 +1002,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
949
1002
 
950
1003
  /**
951
1004
  * Incrementally retrieve changes within a specific Notefile.
952
- * @param {String} projectOrProductUID
953
- * @param {String} deviceUID
954
- * @param {String} notefileID
1005
+ * @param {String} projectOrProductUID
1006
+ * @param {String} deviceUID
1007
+ * @param {String} notefileID
955
1008
  * @param {Object} opts Optional parameters
956
1009
  * @param {String} opts.tracker The change tracker ID.
957
1010
  * @param {Number} opts.max The maximum number of Notes to return in the request.
@@ -979,32 +1032,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
979
1032
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
980
1033
  }
981
1034
  var pathParams = {
982
- projectOrProductUID: projectOrProductUID,
983
- deviceUID: deviceUID,
984
- notefileID: notefileID
1035
+ 'projectOrProductUID': projectOrProductUID,
1036
+ 'deviceUID': deviceUID,
1037
+ 'notefileID': notefileID
985
1038
  };
986
1039
  var queryParams = {
987
- tracker: opts["tracker"],
988
- max: opts["max"],
989
- start: opts["start"],
990
- stop: opts["stop"],
991
- deleted: opts["deleted"],
992
- "delete": opts["_delete"]
1040
+ 'tracker': opts['tracker'],
1041
+ 'max': opts['max'],
1042
+ 'start': opts['start'],
1043
+ 'stop': opts['stop'],
1044
+ 'deleted': opts['deleted'],
1045
+ 'delete': opts['_delete']
993
1046
  };
994
1047
  var headerParams = {};
995
1048
  var formParams = {};
996
- var authNames = ["api_key"];
1049
+ var authNames = ['api_key'];
997
1050
  var contentTypes = [];
998
- var accepts = ["application/json"];
1051
+ var accepts = ['application/json'];
999
1052
  var returnType = _HandleNoteChanges200Response["default"];
1000
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1053
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1001
1054
  }
1002
1055
 
1003
1056
  /**
1004
1057
  * Incrementally retrieve changes within a specific Notefile.
1005
- * @param {String} projectOrProductUID
1006
- * @param {String} deviceUID
1007
- * @param {String} notefileID
1058
+ * @param {String} projectOrProductUID
1059
+ * @param {String} deviceUID
1060
+ * @param {String} notefileID
1008
1061
  * @param {Object} opts Optional parameters
1009
1062
  * @param {String} opts.tracker The change tracker ID.
1010
1063
  * @param {Number} opts.max The maximum number of Notes to return in the request.
@@ -1024,10 +1077,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1024
1077
 
1025
1078
  /**
1026
1079
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1027
- * @param {String} projectOrProductUID
1028
- * @param {String} deviceUID
1029
- * @param {String} notefileID
1030
- * @param {String} noteID
1080
+ * @param {String} projectOrProductUID
1081
+ * @param {String} deviceUID
1082
+ * @param {String} notefileID
1083
+ * @param {String} noteID
1031
1084
  * @param {module:model/Note} note Body or payload of note to be added to the device
1032
1085
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1033
1086
  */
@@ -1056,27 +1109,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1056
1109
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
1057
1110
  }
1058
1111
  var pathParams = {
1059
- projectOrProductUID: projectOrProductUID,
1060
- deviceUID: deviceUID,
1061
- notefileID: notefileID,
1062
- noteID: noteID
1112
+ 'projectOrProductUID': projectOrProductUID,
1113
+ 'deviceUID': deviceUID,
1114
+ 'notefileID': notefileID,
1115
+ 'noteID': noteID
1063
1116
  };
1064
1117
  var queryParams = {};
1065
1118
  var headerParams = {};
1066
1119
  var formParams = {};
1067
- var authNames = ["api_key"];
1068
- var contentTypes = ["application/json"];
1069
- var accepts = ["application/json"];
1120
+ var authNames = ['api_key'];
1121
+ var contentTypes = ['application/json'];
1122
+ var accepts = ['application/json'];
1070
1123
  var returnType = null;
1071
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1124
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1072
1125
  }
1073
1126
 
1074
1127
  /**
1075
1128
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1076
- * @param {String} projectOrProductUID
1077
- * @param {String} deviceUID
1078
- * @param {String} notefileID
1079
- * @param {String} noteID
1129
+ * @param {String} projectOrProductUID
1130
+ * @param {String} deviceUID
1131
+ * @param {String} notefileID
1132
+ * @param {String} noteID
1080
1133
  * @param {module:model/Note} note Body or payload of note to be added to the device
1081
1134
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1082
1135
  */
@@ -1090,10 +1143,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1090
1143
 
1091
1144
  /**
1092
1145
  * Delete a note from a DB notefile
1093
- * @param {String} projectOrProductUID
1094
- * @param {String} deviceUID
1095
- * @param {String} notefileID
1096
- * @param {String} noteID
1146
+ * @param {String} projectOrProductUID
1147
+ * @param {String} deviceUID
1148
+ * @param {String} notefileID
1149
+ * @param {String} noteID
1097
1150
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1098
1151
  */
1099
1152
  }, {
@@ -1117,27 +1170,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1117
1170
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
1118
1171
  }
1119
1172
  var pathParams = {
1120
- projectOrProductUID: projectOrProductUID,
1121
- deviceUID: deviceUID,
1122
- notefileID: notefileID,
1123
- noteID: noteID
1173
+ 'projectOrProductUID': projectOrProductUID,
1174
+ 'deviceUID': deviceUID,
1175
+ 'notefileID': notefileID,
1176
+ 'noteID': noteID
1124
1177
  };
1125
1178
  var queryParams = {};
1126
1179
  var headerParams = {};
1127
1180
  var formParams = {};
1128
- var authNames = ["api_key"];
1181
+ var authNames = ['api_key'];
1129
1182
  var contentTypes = [];
1130
- var accepts = ["application/json"];
1183
+ var accepts = ['application/json'];
1131
1184
  var returnType = null;
1132
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1185
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1133
1186
  }
1134
1187
 
1135
1188
  /**
1136
1189
  * Delete a note from a DB notefile
1137
- * @param {String} projectOrProductUID
1138
- * @param {String} deviceUID
1139
- * @param {String} notefileID
1140
- * @param {String} noteID
1190
+ * @param {String} projectOrProductUID
1191
+ * @param {String} deviceUID
1192
+ * @param {String} notefileID
1193
+ * @param {String} noteID
1141
1194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1142
1195
  */
1143
1196
  }, {
@@ -1150,10 +1203,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1150
1203
 
1151
1204
  /**
1152
1205
  * Get a note from a DB notefile
1153
- * @param {String} projectOrProductUID
1154
- * @param {String} deviceUID
1155
- * @param {String} notefileID
1156
- * @param {String} noteID
1206
+ * @param {String} projectOrProductUID
1207
+ * @param {String} deviceUID
1208
+ * @param {String} notefileID
1209
+ * @param {String} noteID
1157
1210
  * @param {Object} opts Optional parameters
1158
1211
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1159
1212
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1181,30 +1234,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1181
1234
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
1182
1235
  }
1183
1236
  var pathParams = {
1184
- projectOrProductUID: projectOrProductUID,
1185
- deviceUID: deviceUID,
1186
- notefileID: notefileID,
1187
- noteID: noteID
1237
+ 'projectOrProductUID': projectOrProductUID,
1238
+ 'deviceUID': deviceUID,
1239
+ 'notefileID': notefileID,
1240
+ 'noteID': noteID
1188
1241
  };
1189
1242
  var queryParams = {
1190
- "delete": opts["_delete"],
1191
- deleted: opts["deleted"]
1243
+ 'delete': opts['_delete'],
1244
+ 'deleted': opts['deleted']
1192
1245
  };
1193
1246
  var headerParams = {};
1194
1247
  var formParams = {};
1195
- var authNames = ["api_key"];
1248
+ var authNames = ['api_key'];
1196
1249
  var contentTypes = [];
1197
- var accepts = ["application/json"];
1250
+ var accepts = ['application/json'];
1198
1251
  var returnType = _HandleNoteGet200Response["default"];
1199
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1252
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1200
1253
  }
1201
1254
 
1202
1255
  /**
1203
1256
  * Get a note from a DB notefile
1204
- * @param {String} projectOrProductUID
1205
- * @param {String} deviceUID
1206
- * @param {String} notefileID
1207
- * @param {String} noteID
1257
+ * @param {String} projectOrProductUID
1258
+ * @param {String} deviceUID
1259
+ * @param {String} notefileID
1260
+ * @param {String} noteID
1208
1261
  * @param {Object} opts Optional parameters
1209
1262
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1210
1263
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1220,8 +1273,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1220
1273
 
1221
1274
  /**
1222
1275
  * Send a signal from Notehub to a Notecard.
1223
- * @param {String} projectOrProductUID
1224
- * @param {String} deviceUID
1276
+ * @param {String} projectOrProductUID
1277
+ * @param {String} deviceUID
1225
1278
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1226
1279
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
1227
1280
  */
@@ -1242,23 +1295,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1242
1295
  throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
1243
1296
  }
1244
1297
  var pathParams = {
1245
- projectOrProductUID: projectOrProductUID,
1246
- deviceUID: deviceUID
1298
+ 'projectOrProductUID': projectOrProductUID,
1299
+ 'deviceUID': deviceUID
1247
1300
  };
1248
1301
  var queryParams = {};
1249
1302
  var headerParams = {};
1250
1303
  var formParams = {};
1251
- var authNames = ["api_key"];
1252
- var contentTypes = ["application/json"];
1253
- var accepts = ["application/json"];
1304
+ var authNames = ['api_key'];
1305
+ var contentTypes = ['application/json'];
1306
+ var accepts = ['application/json'];
1254
1307
  var returnType = _HandleNoteSignal200Response["default"];
1255
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1308
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1256
1309
  }
1257
1310
 
1258
1311
  /**
1259
1312
  * Send a signal from Notehub to a Notecard.
1260
- * @param {String} projectOrProductUID
1261
- * @param {String} deviceUID
1313
+ * @param {String} projectOrProductUID
1314
+ * @param {String} deviceUID
1262
1315
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1263
1316
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
1264
1317
  */
@@ -1272,10 +1325,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1272
1325
 
1273
1326
  /**
1274
1327
  * Update a note in a DB notefile
1275
- * @param {String} projectOrProductUID
1276
- * @param {String} deviceUID
1277
- * @param {String} notefileID
1278
- * @param {String} noteID
1328
+ * @param {String} projectOrProductUID
1329
+ * @param {String} deviceUID
1330
+ * @param {String} notefileID
1331
+ * @param {String} noteID
1279
1332
  * @param {module:model/Note} note Body or payload of note to be added to the device
1280
1333
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1281
1334
  */
@@ -1304,27 +1357,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1304
1357
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
1305
1358
  }
1306
1359
  var pathParams = {
1307
- projectOrProductUID: projectOrProductUID,
1308
- deviceUID: deviceUID,
1309
- notefileID: notefileID,
1310
- noteID: noteID
1360
+ 'projectOrProductUID': projectOrProductUID,
1361
+ 'deviceUID': deviceUID,
1362
+ 'notefileID': notefileID,
1363
+ 'noteID': noteID
1311
1364
  };
1312
1365
  var queryParams = {};
1313
1366
  var headerParams = {};
1314
1367
  var formParams = {};
1315
- var authNames = ["api_key"];
1316
- var contentTypes = ["application/json"];
1317
- var accepts = ["application/json"];
1368
+ var authNames = ['api_key'];
1369
+ var contentTypes = ['application/json'];
1370
+ var accepts = ['application/json'];
1318
1371
  var returnType = null;
1319
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1372
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1320
1373
  }
1321
1374
 
1322
1375
  /**
1323
1376
  * Update a note in a DB notefile
1324
- * @param {String} projectOrProductUID
1325
- * @param {String} deviceUID
1326
- * @param {String} notefileID
1327
- * @param {String} noteID
1377
+ * @param {String} projectOrProductUID
1378
+ * @param {String} deviceUID
1379
+ * @param {String} notefileID
1380
+ * @param {String} noteID
1328
1381
  * @param {module:model/Note} note Body or payload of note to be added to the device
1329
1382
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1330
1383
  */
@@ -1338,8 +1391,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1338
1391
 
1339
1392
  /**
1340
1393
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1341
- * @param {String} projectOrProductUID
1342
- * @param {String} deviceUID
1394
+ * @param {String} projectOrProductUID
1395
+ * @param {String} deviceUID
1343
1396
  * @param {Object} opts Optional parameters
1344
1397
  * @param {String} opts.tracker The change tracker ID.
1345
1398
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
@@ -1359,26 +1412,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1359
1412
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
1360
1413
  }
1361
1414
  var pathParams = {
1362
- projectOrProductUID: projectOrProductUID,
1363
- deviceUID: deviceUID
1415
+ 'projectOrProductUID': projectOrProductUID,
1416
+ 'deviceUID': deviceUID
1364
1417
  };
1365
1418
  var queryParams = {
1366
- tracker: opts["tracker"],
1367
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1419
+ 'tracker': opts['tracker'],
1420
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1368
1421
  };
1369
1422
  var headerParams = {};
1370
1423
  var formParams = {};
1371
- var authNames = ["api_key"];
1424
+ var authNames = ['api_key'];
1372
1425
  var contentTypes = [];
1373
- var accepts = ["application/json"];
1426
+ var accepts = ['application/json'];
1374
1427
  var returnType = _HandleNotefileChanges200Response["default"];
1375
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1428
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1376
1429
  }
1377
1430
 
1378
1431
  /**
1379
1432
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1380
- * @param {String} projectOrProductUID
1381
- * @param {String} deviceUID
1433
+ * @param {String} projectOrProductUID
1434
+ * @param {String} deviceUID
1382
1435
  * @param {Object} opts Optional parameters
1383
1436
  * @param {String} opts.tracker The change tracker ID.
1384
1437
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
@@ -1394,8 +1447,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1394
1447
 
1395
1448
  /**
1396
1449
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1397
- * @param {String} projectOrProductUID
1398
- * @param {String} deviceUID
1450
+ * @param {String} projectOrProductUID
1451
+ * @param {String} deviceUID
1399
1452
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
1400
1453
  */
1401
1454
  }, {
@@ -1411,23 +1464,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1411
1464
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
1412
1465
  }
1413
1466
  var pathParams = {
1414
- projectOrProductUID: projectOrProductUID,
1415
- deviceUID: deviceUID
1467
+ 'projectOrProductUID': projectOrProductUID,
1468
+ 'deviceUID': deviceUID
1416
1469
  };
1417
1470
  var queryParams = {};
1418
1471
  var headerParams = {};
1419
1472
  var formParams = {};
1420
- var authNames = ["api_key"];
1473
+ var authNames = ['api_key'];
1421
1474
  var contentTypes = [];
1422
- var accepts = ["application/json"];
1475
+ var accepts = ['application/json'];
1423
1476
  var returnType = _HandleNotefileChangesPending200Response["default"];
1424
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1477
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1425
1478
  }
1426
1479
 
1427
1480
  /**
1428
1481
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1429
- * @param {String} projectOrProductUID
1430
- * @param {String} deviceUID
1482
+ * @param {String} projectOrProductUID
1483
+ * @param {String} deviceUID
1431
1484
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
1432
1485
  */
1433
1486
  }, {
@@ -1440,9 +1493,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1440
1493
 
1441
1494
  /**
1442
1495
  * Deletes Notefiles and the Notes they contain.
1443
- * @param {String} projectOrProductUID
1444
- * @param {String} deviceUID
1445
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1496
+ * @param {String} projectOrProductUID
1497
+ * @param {String} deviceUID
1498
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1446
1499
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1447
1500
  */
1448
1501
  }, {
@@ -1462,24 +1515,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1515
  throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
1463
1516
  }
1464
1517
  var pathParams = {
1465
- projectOrProductUID: projectOrProductUID,
1466
- deviceUID: deviceUID
1518
+ 'projectOrProductUID': projectOrProductUID,
1519
+ 'deviceUID': deviceUID
1467
1520
  };
1468
1521
  var queryParams = {};
1469
1522
  var headerParams = {};
1470
1523
  var formParams = {};
1471
- var authNames = ["api_key"];
1472
- var contentTypes = ["application/json"];
1473
- var accepts = ["application/json"];
1524
+ var authNames = ['api_key'];
1525
+ var contentTypes = ['application/json'];
1526
+ var accepts = ['application/json'];
1474
1527
  var returnType = null;
1475
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1528
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1476
1529
  }
1477
1530
 
1478
1531
  /**
1479
1532
  * Deletes Notefiles and the Notes they contain.
1480
- * @param {String} projectOrProductUID
1481
- * @param {String} deviceUID
1482
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1533
+ * @param {String} projectOrProductUID
1534
+ * @param {String} deviceUID
1535
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1483
1536
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1484
1537
  */
1485
1538
  }, {
@@ -1492,8 +1545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1492
1545
 
1493
1546
  /**
1494
1547
  * Provision Device for a Project
1495
- * @param {String} projectOrProductUID
1496
- * @param {String} deviceUID
1548
+ * @param {String} projectOrProductUID
1549
+ * @param {String} deviceUID
1497
1550
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1498
1551
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1499
1552
  */
@@ -1514,23 +1567,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1567
  throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
1515
1568
  }
1516
1569
  var pathParams = {
1517
- projectOrProductUID: projectOrProductUID,
1518
- deviceUID: deviceUID
1570
+ 'projectOrProductUID': projectOrProductUID,
1571
+ 'deviceUID': deviceUID
1519
1572
  };
1520
1573
  var queryParams = {};
1521
1574
  var headerParams = {};
1522
1575
  var formParams = {};
1523
- var authNames = ["api_key"];
1524
- var contentTypes = ["application/json"];
1525
- var accepts = ["application/json"];
1576
+ var authNames = ['api_key'];
1577
+ var contentTypes = ['application/json'];
1578
+ var accepts = ['application/json'];
1526
1579
  var returnType = Object;
1527
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1580
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1528
1581
  }
1529
1582
 
1530
1583
  /**
1531
1584
  * Provision Device for a Project
1532
- * @param {String} projectOrProductUID
1533
- * @param {String} deviceUID
1585
+ * @param {String} projectOrProductUID
1586
+ * @param {String} deviceUID
1534
1587
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1535
1588
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1536
1589
  */
@@ -1544,8 +1597,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1544
1597
 
1545
1598
  /**
1546
1599
  * Put environment variables of a device
1547
- * @param {String} projectOrProductUID
1548
- * @param {String} deviceUID
1600
+ * @param {String} projectOrProductUID
1601
+ * @param {String} deviceUID
1549
1602
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1550
1603
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1551
1604
  */
@@ -1566,23 +1619,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1566
1619
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
1567
1620
  }
1568
1621
  var pathParams = {
1569
- projectOrProductUID: projectOrProductUID,
1570
- deviceUID: deviceUID
1622
+ 'projectOrProductUID': projectOrProductUID,
1623
+ 'deviceUID': deviceUID
1571
1624
  };
1572
1625
  var queryParams = {};
1573
1626
  var headerParams = {};
1574
1627
  var formParams = {};
1575
- var authNames = ["api_key"];
1576
- var contentTypes = ["application/json"];
1577
- var accepts = ["application/json"];
1628
+ var authNames = ['api_key'];
1629
+ var contentTypes = ['application/json'];
1630
+ var accepts = ['application/json'];
1578
1631
  var returnType = _EnvironmentVariables["default"];
1579
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1632
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1580
1633
  }
1581
1634
 
1582
1635
  /**
1583
1636
  * Put environment variables of a device
1584
- * @param {String} projectOrProductUID
1585
- * @param {String} deviceUID
1637
+ * @param {String} projectOrProductUID
1638
+ * @param {String} deviceUID
1586
1639
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1587
1640
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1588
1641
  */
@@ -1596,8 +1649,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1596
1649
 
1597
1650
  /**
1598
1651
  * Put environment variables of a device with device pin authorization
1599
- * @param {String} productUID
1600
- * @param {String} deviceUID
1652
+ * @param {String} productUID
1653
+ * @param {String} deviceUID
1601
1654
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1602
1655
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1603
1656
  */
@@ -1618,23 +1671,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1618
1671
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
1619
1672
  }
1620
1673
  var pathParams = {
1621
- productUID: productUID,
1622
- deviceUID: deviceUID
1674
+ 'productUID': productUID,
1675
+ 'deviceUID': deviceUID
1623
1676
  };
1624
1677
  var queryParams = {};
1625
1678
  var headerParams = {};
1626
1679
  var formParams = {};
1627
- var authNames = ["pin"];
1628
- var contentTypes = ["application/json"];
1629
- var accepts = ["application/json"];
1680
+ var authNames = ['pin'];
1681
+ var contentTypes = ['application/json'];
1682
+ var accepts = ['application/json'];
1630
1683
  var returnType = _EnvironmentVariables["default"];
1631
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1684
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1632
1685
  }
1633
1686
 
1634
1687
  /**
1635
1688
  * Put environment variables of a device with device pin authorization
1636
- * @param {String} productUID
1637
- * @param {String} deviceUID
1689
+ * @param {String} productUID
1690
+ * @param {String} deviceUID
1638
1691
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1639
1692
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1640
1693
  */