@blues-inc/notehub-js 3.0.0-beta.21 → 3.0.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +12 -11
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +197 -253
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +97 -97
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +78 -6
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +21 -14
  15. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  16. package/dist/model/Alert.js +1 -1
  17. package/dist/model/AlertDataInner.js +2 -7
  18. package/dist/model/AlertNotificationsInner.js +1 -1
  19. package/dist/model/AwsRoute.js +1 -1
  20. package/dist/model/AzureRoute.js +1 -1
  21. package/dist/model/BillingAccount.js +1 -1
  22. package/dist/model/BlynkRoute.js +1 -1
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CellularPlan.js +1 -1
  25. package/dist/model/CloneProjectRequest.js +1 -1
  26. package/dist/model/Contact.js +1 -1
  27. package/dist/model/CreateFleetRequest.js +9 -1
  28. package/dist/model/CreateMonitor.js +10 -17
  29. package/dist/model/CreateProductRequest.js +1 -1
  30. package/dist/model/CreateProjectRequest.js +1 -1
  31. package/dist/model/CreateUpdateRepository.js +1 -1
  32. package/dist/model/CurrentFirmware.js +1 -1
  33. package/dist/model/DFUEnv.js +1 -1
  34. package/dist/model/DFUState.js +1 -1
  35. package/dist/model/DataField.js +1 -1
  36. package/dist/model/DataSetField.js +1 -1
  37. package/dist/model/DataUsage.js +1 -1
  38. package/dist/model/DatacakeRoute.js +1 -1
  39. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  40. package/dist/model/DeleteNotefilesRequest.js +1 -1
  41. package/dist/model/Device.js +14 -1
  42. package/dist/model/DeviceDfuHistory.js +1 -1
  43. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  44. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  45. package/dist/model/DeviceDfuStateMachine.js +1 -1
  46. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  47. package/dist/model/DeviceDfuStatus.js +1 -1
  48. package/dist/model/DeviceDfuStatusPage.js +1 -1
  49. package/dist/model/DeviceSession.js +1 -1
  50. package/dist/model/DeviceTowerInfo.js +1 -1
  51. package/dist/model/DeviceUsage.js +1 -1
  52. package/dist/model/DfuActionRequest.js +1 -1
  53. package/dist/model/EmailNotification.js +1 -1
  54. package/dist/model/EnvTreeJsonNode.js +1 -1
  55. package/dist/model/EnvVar.js +1 -1
  56. package/dist/model/EnvironmentVariables.js +1 -1
  57. package/dist/model/Error.js +1 -1
  58. package/dist/model/Event.js +1 -1
  59. package/dist/model/Filter.js +1 -1
  60. package/dist/model/Firmware.js +1 -1
  61. package/dist/model/FirmwareInfo.js +1 -1
  62. package/dist/model/Fleet.js +9 -1
  63. package/dist/model/FleetConnectivityAssurance.js +4 -27
  64. package/dist/model/GetAlerts200Response.js +1 -1
  65. package/dist/model/GetBillingAccounts200Response.js +1 -1
  66. package/dist/model/GetDataUsage200Response.js +1 -1
  67. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  68. package/dist/model/GetDbNote200Response.js +1 -1
  69. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  70. package/dist/model/GetDeviceFleets200Response.js +1 -1
  71. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  72. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  73. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  74. package/dist/model/GetDevicePlans200Response.js +1 -1
  75. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  76. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  77. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  78. package/dist/model/GetDeviceSessions200Response.js +1 -1
  79. package/dist/model/GetDevices200Response.js +1 -1
  80. package/dist/model/GetEvents200Response.js +1 -1
  81. package/dist/model/GetEventsByCursor200Response.js +1 -1
  82. package/dist/model/GetNotefile200Response.js +1 -1
  83. package/dist/model/GetProducts200Response.js +1 -1
  84. package/dist/model/GetProjectMembers200Response.js +1 -1
  85. package/dist/model/GetProjects200Response.js +1 -1
  86. package/dist/model/GetRouteLogsUsage200Response.js +132 -0
  87. package/dist/model/GetSessionsUsage200Response.js +1 -1
  88. package/dist/model/GetWebhooks200Response.js +1 -1
  89. package/dist/model/GoogleRoute.js +1 -1
  90. package/dist/model/HttpRoute.js +1 -1
  91. package/dist/model/Location.js +1 -1
  92. package/dist/model/Login200Response.js +1 -1
  93. package/dist/model/LoginRequest.js +1 -1
  94. package/dist/model/Monitor.js +3 -8
  95. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  96. package/dist/model/MqttRoute.js +1 -1
  97. package/dist/model/Note.js +90 -10
  98. package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +29 -36
  99. package/dist/model/Notefile.js +159 -0
  100. package/dist/model/NotefileSchema.js +1 -1
  101. package/dist/model/NotehubRoute.js +1 -1
  102. package/dist/model/NotehubRouteSummary.js +1 -1
  103. package/dist/model/OAuth2Error.js +1 -1
  104. package/dist/model/OAuth2TokenResponse.js +1 -1
  105. package/dist/model/PersonalAccessToken.js +1 -1
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  107. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  108. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  109. package/dist/model/Product.js +1 -1
  110. package/dist/model/Project.js +1 -1
  111. package/dist/model/ProjectMember.js +1 -1
  112. package/dist/model/ProvisionDeviceRequest.js +1 -1
  113. package/dist/model/ProxyRoute.js +1 -1
  114. package/dist/model/QubitroRoute.js +1 -1
  115. package/dist/model/RadRoute.js +1 -1
  116. package/dist/model/Repository.js +1 -1
  117. package/dist/model/RouteLog.js +1 -1
  118. package/dist/model/RouteTransformSettings.js +1 -1
  119. package/dist/model/S3ArchiveRoute.js +1 -1
  120. package/dist/model/SatellitePlan.js +1 -1
  121. package/dist/model/SchemaProperty.js +1 -1
  122. package/dist/model/SignalDevice200Response.js +1 -1
  123. package/dist/model/SimUsage.js +1 -1
  124. package/dist/model/SlackBearerNotification.js +1 -1
  125. package/dist/model/SlackRoute.js +1 -1
  126. package/dist/model/SlackWebHookNotification.js +1 -1
  127. package/dist/model/SnowflakeRoute.js +1 -1
  128. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  129. package/dist/model/ThingworxRoute.js +1 -1
  130. package/dist/model/TowerLocation.js +1 -1
  131. package/dist/model/TwilioRoute.js +1 -1
  132. package/dist/model/UpdateFleetRequest.js +9 -1
  133. package/dist/model/UploadMetadata.js +1 -1
  134. package/dist/model/UsageData.js +1 -1
  135. package/dist/model/UsageEventsData.js +17 -6
  136. package/dist/model/UsageEventsResponse.js +1 -1
  137. package/dist/model/UsageRouteLogsData.js +1 -1
  138. package/dist/model/UsageSessionsData.js +15 -5
  139. package/dist/model/UserDfuStateMachine.js +1 -1
  140. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  141. package/dist/model/UserFirmwareInfo.js +1 -1
  142. package/dist/model/WebhookSettings.js +1 -1
  143. package/package.json +1 -1
  144. package/dist/model/ListPendingNotefiles200Response.js +0 -115
@@ -21,9 +21,8 @@ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/G
21
21
  var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
22
22
  var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
23
23
  var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
24
- var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
- var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
26
- var _Note = _interopRequireDefault(require("../model/Note"));
24
+ var _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
25
+ var _Notefile = _interopRequireDefault(require("../model/Notefile"));
27
26
  var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
28
27
  var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -47,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
46
  /**
48
47
  * Device service.
49
48
  * @module api/DeviceApi
50
- * @version 3.0.0-beta.21
49
+ * @version 3.0.0-beta.22
51
50
  */
52
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
52
  /**
@@ -63,18 +62,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
63
62
  }
64
63
 
65
64
  /**
66
- * Add a Note to a .db notefile
65
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
67
66
  * @param {String} projectOrProductUID
68
67
  * @param {String} deviceUID
69
68
  * @param {String} notefileID
70
69
  * @param {String} noteID
71
- * @param {module:model/Note} note Body or payload of note to be added to the device
70
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
72
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
73
72
  */
74
73
  return _createClass(DeviceApi, [{
75
74
  key: "addDbNoteWithHttpInfo",
76
- value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
77
- var postBody = note;
75
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
76
+ var postBody = noteInput;
78
77
  // verify the required parameter 'projectOrProductUID' is set
79
78
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
80
79
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
@@ -91,9 +90,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
91
90
  if (noteID === undefined || noteID === null) {
92
91
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
93
92
  }
94
- // verify the required parameter 'note' is set
95
- if (note === undefined || note === null) {
96
- throw new _Error["default"]("Missing the required parameter 'note' when calling addDbNote");
93
+ // verify the required parameter 'noteInput' is set
94
+ if (noteInput === undefined || noteInput === null) {
95
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
97
96
  }
98
97
  var pathParams = {
99
98
  'projectOrProductUID': projectOrProductUID,
@@ -112,122 +111,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
112
111
  }
113
112
 
114
113
  /**
115
- * Add a Note to a .db notefile
114
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
116
115
  * @param {String} projectOrProductUID
117
116
  * @param {String} deviceUID
118
117
  * @param {String} notefileID
119
118
  * @param {String} noteID
120
- * @param {module:model/Note} note Body or payload of note to be added to the device
119
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
121
120
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
122
121
  */
123
122
  }, {
124
123
  key: "addDbNote",
125
- value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
126
- return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
127
- return response_and_data.data;
128
- });
129
- }
130
-
131
- /**
132
- * Add environment variables of a device
133
- * @param {String} projectOrProductUID
134
- * @param {String} deviceUID
135
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
136
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
137
- */
138
- }, {
139
- key: "addDeviceEnvironmentVariablesWithHttpInfo",
140
- value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
141
- var postBody = environmentVariables;
142
- // verify the required parameter 'projectOrProductUID' is set
143
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
144
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
145
- }
146
- // verify the required parameter 'deviceUID' is set
147
- if (deviceUID === undefined || deviceUID === null) {
148
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
149
- }
150
- // verify the required parameter 'environmentVariables' is set
151
- if (environmentVariables === undefined || environmentVariables === null) {
152
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
153
- }
154
- var pathParams = {
155
- 'projectOrProductUID': projectOrProductUID,
156
- 'deviceUID': deviceUID
157
- };
158
- var queryParams = {};
159
- var headerParams = {};
160
- var formParams = {};
161
- var authNames = ['personalAccessToken'];
162
- var contentTypes = ['application/json'];
163
- var accepts = ['application/json'];
164
- var returnType = _EnvironmentVariables["default"];
165
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
166
- }
167
-
168
- /**
169
- * Add environment variables of a device
170
- * @param {String} projectOrProductUID
171
- * @param {String} deviceUID
172
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
173
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
174
- */
175
- }, {
176
- key: "addDeviceEnvironmentVariables",
177
- value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
178
- return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
179
- return response_and_data.data;
180
- });
181
- }
182
-
183
- /**
184
- * Add environment variables of a device with device pin authorization
185
- * @param {String} productUID
186
- * @param {String} deviceUID
187
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
188
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
189
- */
190
- }, {
191
- key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
192
- value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
193
- var postBody = environmentVariables;
194
- // verify the required parameter 'productUID' is set
195
- if (productUID === undefined || productUID === null) {
196
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
197
- }
198
- // verify the required parameter 'deviceUID' is set
199
- if (deviceUID === undefined || deviceUID === null) {
200
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
201
- }
202
- // verify the required parameter 'environmentVariables' is set
203
- if (environmentVariables === undefined || environmentVariables === null) {
204
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
205
- }
206
- var pathParams = {
207
- 'productUID': productUID,
208
- 'deviceUID': deviceUID
209
- };
210
- var queryParams = {};
211
- var headerParams = {};
212
- var formParams = {};
213
- var authNames = ['pin'];
214
- var contentTypes = ['application/json'];
215
- var accepts = ['application/json'];
216
- var returnType = _EnvironmentVariables["default"];
217
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
218
- }
219
-
220
- /**
221
- * Add environment variables of a device with device pin authorization
222
- * @param {String} productUID
223
- * @param {String} deviceUID
224
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
225
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
226
- */
227
- }, {
228
- key: "addDeviceEnvironmentVariablesByPin",
229
- value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
230
- return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
124
+ value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
125
+ return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
231
126
  return response_and_data.data;
232
127
  });
233
128
  }
@@ -237,13 +132,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
237
132
  * @param {String} projectOrProductUID
238
133
  * @param {String} deviceUID
239
134
  * @param {String} notefileID
240
- * @param {module:model/Note} note Body or payload of note to be added to the device
135
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
241
136
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
242
137
  */
243
138
  }, {
244
139
  key: "addQiNoteWithHttpInfo",
245
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
246
- var postBody = note;
140
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
141
+ var postBody = noteInput;
247
142
  // verify the required parameter 'projectOrProductUID' is set
248
143
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
249
144
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
@@ -256,9 +151,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
256
151
  if (notefileID === undefined || notefileID === null) {
257
152
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
258
153
  }
259
- // verify the required parameter 'note' is set
260
- if (note === undefined || note === null) {
261
- throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
154
+ // verify the required parameter 'noteInput' is set
155
+ if (noteInput === undefined || noteInput === null) {
156
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
262
157
  }
263
158
  var pathParams = {
264
159
  'projectOrProductUID': projectOrProductUID,
@@ -280,73 +175,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
280
175
  * @param {String} projectOrProductUID
281
176
  * @param {String} deviceUID
282
177
  * @param {String} notefileID
283
- * @param {module:model/Note} note Body or payload of note to be added to the device
178
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
284
179
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
285
180
  */
286
181
  }, {
287
182
  key: "addQiNote",
288
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
289
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
290
- return response_and_data.data;
291
- });
292
- }
293
-
294
- /**
295
- * Delete a note from a .db notefile
296
- * @param {String} projectOrProductUID
297
- * @param {String} deviceUID
298
- * @param {String} notefileID
299
- * @param {String} noteID
300
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
301
- */
302
- }, {
303
- key: "deleteDbNoteWithHttpInfo",
304
- value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
305
- var postBody = null;
306
- // verify the required parameter 'projectOrProductUID' is set
307
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
308
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
309
- }
310
- // verify the required parameter 'deviceUID' is set
311
- if (deviceUID === undefined || deviceUID === null) {
312
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
313
- }
314
- // verify the required parameter 'notefileID' is set
315
- if (notefileID === undefined || notefileID === null) {
316
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
317
- }
318
- // verify the required parameter 'noteID' is set
319
- if (noteID === undefined || noteID === null) {
320
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
321
- }
322
- var pathParams = {
323
- 'projectOrProductUID': projectOrProductUID,
324
- 'deviceUID': deviceUID,
325
- 'notefileID': notefileID,
326
- 'noteID': noteID
327
- };
328
- var queryParams = {};
329
- var headerParams = {};
330
- var formParams = {};
331
- var authNames = ['personalAccessToken'];
332
- var contentTypes = [];
333
- var accepts = ['application/json'];
334
- var returnType = null;
335
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
336
- }
337
-
338
- /**
339
- * Delete a note from a .db notefile
340
- * @param {String} projectOrProductUID
341
- * @param {String} deviceUID
342
- * @param {String} notefileID
343
- * @param {String} noteID
344
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
345
- */
346
- }, {
347
- key: "deleteDbNote",
348
- value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
349
- return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
183
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
184
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
350
185
  return response_and_data.data;
351
186
  });
352
187
  }
@@ -458,6 +293,66 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
458
293
  });
459
294
  }
460
295
 
296
+ /**
297
+ * Delete a note from a .db or .qi notefile
298
+ * @param {String} projectOrProductUID
299
+ * @param {String} deviceUID
300
+ * @param {String} notefileID
301
+ * @param {String} noteID
302
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
303
+ */
304
+ }, {
305
+ key: "deleteNoteWithHttpInfo",
306
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
307
+ var postBody = null;
308
+ // verify the required parameter 'projectOrProductUID' is set
309
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
310
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
311
+ }
312
+ // verify the required parameter 'deviceUID' is set
313
+ if (deviceUID === undefined || deviceUID === null) {
314
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
315
+ }
316
+ // verify the required parameter 'notefileID' is set
317
+ if (notefileID === undefined || notefileID === null) {
318
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
319
+ }
320
+ // verify the required parameter 'noteID' is set
321
+ if (noteID === undefined || noteID === null) {
322
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
323
+ }
324
+ var pathParams = {
325
+ 'projectOrProductUID': projectOrProductUID,
326
+ 'deviceUID': deviceUID,
327
+ 'notefileID': notefileID,
328
+ 'noteID': noteID
329
+ };
330
+ var queryParams = {};
331
+ var headerParams = {};
332
+ var formParams = {};
333
+ var authNames = ['personalAccessToken'];
334
+ var contentTypes = [];
335
+ var accepts = ['application/json'];
336
+ var returnType = null;
337
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
+ }
339
+
340
+ /**
341
+ * Delete a note from a .db or .qi notefile
342
+ * @param {String} projectOrProductUID
343
+ * @param {String} deviceUID
344
+ * @param {String} notefileID
345
+ * @param {String} noteID
346
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
347
+ */
348
+ }, {
349
+ key: "deleteNote",
350
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
351
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
352
+ return response_and_data.data;
353
+ });
354
+ }
355
+
461
356
  /**
462
357
  * Deletes Notefiles and the Notes they contain.
463
358
  * @param {String} projectOrProductUID
@@ -695,7 +590,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
695
590
  }
696
591
 
697
592
  /**
698
- * Get a note from a .db notefile
593
+ * Get a note from a .db or .qi notefile
699
594
  * @param {String} projectOrProductUID
700
595
  * @param {String} deviceUID
701
596
  * @param {String} notefileID
@@ -746,7 +641,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
746
641
  }
747
642
 
748
643
  /**
749
- * Get a note from a .db notefile
644
+ * Get a note from a .db or .qi notefile
750
645
  * @param {String} projectOrProductUID
751
646
  * @param {String} deviceUID
752
647
  * @param {String} notefileID
@@ -1418,10 +1313,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1418
1313
  * @param {String} deviceUID
1419
1314
  * @param {String} notefileID
1420
1315
  * @param {Object} opts Optional parameters
1421
- * @param {String} opts.tracker The change tracker ID.
1422
1316
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1423
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1424
- * @param {Boolean} opts.stop true to delete the tracker.
1425
1317
  * @param {Boolean} opts.deleted true to return deleted notes.
1426
1318
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1427
1319
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1449,10 +1341,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1449
1341
  'notefileID': notefileID
1450
1342
  };
1451
1343
  var queryParams = {
1452
- 'tracker': opts['tracker'],
1453
1344
  'max': opts['max'],
1454
- 'start': opts['start'],
1455
- 'stop': opts['stop'],
1456
1345
  'deleted': opts['deleted'],
1457
1346
  'delete': opts['_delete']
1458
1347
  };
@@ -1462,7 +1351,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1351
  var contentTypes = [];
1463
1352
  var accepts = ['application/json'];
1464
1353
  var returnType = _GetNotefile200Response["default"];
1465
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1354
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1466
1355
  }
1467
1356
 
1468
1357
  /**
@@ -1471,10 +1360,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1360
  * @param {String} deviceUID
1472
1361
  * @param {String} notefileID
1473
1362
  * @param {Object} opts Optional parameters
1474
- * @param {String} opts.tracker The change tracker ID.
1475
1363
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1476
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1477
- * @param {Boolean} opts.stop true to delete the tracker.
1478
1364
  * @param {Boolean} opts.deleted true to return deleted notes.
1479
1365
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1480
1366
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1492,9 +1378,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1492
1378
  * @param {String} projectOrProductUID
1493
1379
  * @param {String} deviceUID
1494
1380
  * @param {Object} opts Optional parameters
1495
- * @param {String} opts.tracker The change tracker ID.
1496
1381
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1497
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1382
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1383
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1498
1384
  */
1499
1385
  }, {
1500
1386
  key: "listNotefilesWithHttpInfo",
@@ -1514,16 +1400,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1400
  'deviceUID': deviceUID
1515
1401
  };
1516
1402
  var queryParams = {
1517
- 'tracker': opts['tracker'],
1518
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1403
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1404
+ 'pending': opts['pending']
1519
1405
  };
1520
1406
  var headerParams = {};
1521
1407
  var formParams = {};
1522
1408
  var authNames = ['personalAccessToken'];
1523
1409
  var contentTypes = [];
1524
1410
  var accepts = ['application/json'];
1525
- var returnType = _ListNotefiles200Response["default"];
1526
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1411
+ var returnType = [_Notefile["default"]];
1412
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1527
1413
  }
1528
1414
 
1529
1415
  /**
@@ -1531,9 +1417,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1531
1417
  * @param {String} projectOrProductUID
1532
1418
  * @param {String} deviceUID
1533
1419
  * @param {Object} opts Optional parameters
1534
- * @param {String} opts.tracker The change tracker ID.
1535
1420
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1536
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1421
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1422
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1537
1423
  */
1538
1424
  }, {
1539
1425
  key: "listNotefiles",
@@ -1544,22 +1430,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1544
1430
  }
1545
1431
 
1546
1432
  /**
1547
- * Lists .qi and .db files that are pending sync to the Notecard
1433
+ * Provision Device for a Project
1548
1434
  * @param {String} projectOrProductUID
1549
1435
  * @param {String} deviceUID
1550
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1436
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1437
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1551
1438
  */
1552
1439
  }, {
1553
- key: "listPendingNotefilesWithHttpInfo",
1554
- value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1555
- var postBody = null;
1440
+ key: "provisionDeviceWithHttpInfo",
1441
+ value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1442
+ var postBody = provisionDeviceRequest;
1556
1443
  // verify the required parameter 'projectOrProductUID' is set
1557
1444
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1558
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1445
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1559
1446
  }
1560
1447
  // verify the required parameter 'deviceUID' is set
1561
1448
  if (deviceUID === undefined || deviceUID === null) {
1562
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1449
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
1450
+ }
1451
+ // verify the required parameter 'provisionDeviceRequest' is set
1452
+ if (provisionDeviceRequest === undefined || provisionDeviceRequest === null) {
1453
+ throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1563
1454
  }
1564
1455
  var pathParams = {
1565
1456
  'projectOrProductUID': projectOrProductUID,
@@ -1569,48 +1460,49 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1569
1460
  var headerParams = {};
1570
1461
  var formParams = {};
1571
1462
  var authNames = ['personalAccessToken'];
1572
- var contentTypes = [];
1463
+ var contentTypes = ['application/json'];
1573
1464
  var accepts = ['application/json'];
1574
- var returnType = _ListPendingNotefiles200Response["default"];
1575
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1465
+ var returnType = Object;
1466
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1576
1467
  }
1577
1468
 
1578
1469
  /**
1579
- * Lists .qi and .db files that are pending sync to the Notecard
1470
+ * Provision Device for a Project
1580
1471
  * @param {String} projectOrProductUID
1581
1472
  * @param {String} deviceUID
1582
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1473
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1474
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1583
1475
  */
1584
1476
  }, {
1585
- key: "listPendingNotefiles",
1586
- value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1587
- return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1477
+ key: "provisionDevice",
1478
+ value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1479
+ return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1588
1480
  return response_and_data.data;
1589
1481
  });
1590
1482
  }
1591
1483
 
1592
1484
  /**
1593
- * Provision Device for a Project
1485
+ * Set environment variables of a device
1594
1486
  * @param {String} projectOrProductUID
1595
1487
  * @param {String} deviceUID
1596
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1597
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1488
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1489
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
1490
  */
1599
1491
  }, {
1600
- key: "provisionDeviceWithHttpInfo",
1601
- value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1602
- var postBody = provisionDeviceRequest;
1492
+ key: "setDeviceEnvironmentVariablesWithHttpInfo",
1493
+ value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1494
+ var postBody = environmentVariables;
1603
1495
  // verify the required parameter 'projectOrProductUID' is set
1604
1496
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1605
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1497
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1606
1498
  }
1607
1499
  // verify the required parameter 'deviceUID' is set
1608
1500
  if (deviceUID === undefined || deviceUID === null) {
1609
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
1501
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1610
1502
  }
1611
- // verify the required parameter 'provisionDeviceRequest' is set
1612
- if (provisionDeviceRequest === undefined || provisionDeviceRequest === null) {
1613
- throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1503
+ // verify the required parameter 'environmentVariables' is set
1504
+ if (environmentVariables === undefined || environmentVariables === null) {
1505
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1614
1506
  }
1615
1507
  var pathParams = {
1616
1508
  'projectOrProductUID': projectOrProductUID,
@@ -1622,21 +1514,73 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1622
1514
  var authNames = ['personalAccessToken'];
1623
1515
  var contentTypes = ['application/json'];
1624
1516
  var accepts = ['application/json'];
1625
- var returnType = Object;
1626
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1517
+ var returnType = _EnvironmentVariables["default"];
1518
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1627
1519
  }
1628
1520
 
1629
1521
  /**
1630
- * Provision Device for a Project
1522
+ * Set environment variables of a device
1631
1523
  * @param {String} projectOrProductUID
1632
1524
  * @param {String} deviceUID
1633
- * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1634
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1525
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1526
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
1527
  */
1636
1528
  }, {
1637
- key: "provisionDevice",
1638
- value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1639
- return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1529
+ key: "setDeviceEnvironmentVariables",
1530
+ value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1531
+ return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1532
+ return response_and_data.data;
1533
+ });
1534
+ }
1535
+
1536
+ /**
1537
+ * Set environment variables of a device with device pin authorization
1538
+ * @param {String} productUID
1539
+ * @param {String} deviceUID
1540
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1541
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1542
+ */
1543
+ }, {
1544
+ key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1545
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1546
+ var postBody = environmentVariables;
1547
+ // verify the required parameter 'productUID' is set
1548
+ if (productUID === undefined || productUID === null) {
1549
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
1550
+ }
1551
+ // verify the required parameter 'deviceUID' is set
1552
+ if (deviceUID === undefined || deviceUID === null) {
1553
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1554
+ }
1555
+ // verify the required parameter 'environmentVariables' is set
1556
+ if (environmentVariables === undefined || environmentVariables === null) {
1557
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1558
+ }
1559
+ var pathParams = {
1560
+ 'productUID': productUID,
1561
+ 'deviceUID': deviceUID
1562
+ };
1563
+ var queryParams = {};
1564
+ var headerParams = {};
1565
+ var formParams = {};
1566
+ var authNames = ['pin'];
1567
+ var contentTypes = ['application/json'];
1568
+ var accepts = ['application/json'];
1569
+ var returnType = _EnvironmentVariables["default"];
1570
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1571
+ }
1572
+
1573
+ /**
1574
+ * Set environment variables of a device with device pin authorization
1575
+ * @param {String} productUID
1576
+ * @param {String} deviceUID
1577
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1578
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1579
+ */
1580
+ }, {
1581
+ key: "setDeviceEnvironmentVariablesByPin",
1582
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1583
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1640
1584
  return response_and_data.data;
1641
1585
  });
1642
1586
  }
@@ -1694,18 +1638,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1638
  }
1695
1639
 
1696
1640
  /**
1697
- * Update a note in a .db notefile
1641
+ * Update a note in a .db or .qi notefile
1698
1642
  * @param {String} projectOrProductUID
1699
1643
  * @param {String} deviceUID
1700
1644
  * @param {String} notefileID
1701
1645
  * @param {String} noteID
1702
- * @param {module:model/Note} note Body or payload of note to be added to the device
1646
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1703
1647
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1704
1648
  */
1705
1649
  }, {
1706
1650
  key: "updateDbNoteWithHttpInfo",
1707
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
- var postBody = note;
1651
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1652
+ var postBody = noteInput;
1709
1653
  // verify the required parameter 'projectOrProductUID' is set
1710
1654
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1711
1655
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1722,9 +1666,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1722
1666
  if (noteID === undefined || noteID === null) {
1723
1667
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1724
1668
  }
1725
- // verify the required parameter 'note' is set
1726
- if (note === undefined || note === null) {
1727
- throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
1669
+ // verify the required parameter 'noteInput' is set
1670
+ if (noteInput === undefined || noteInput === null) {
1671
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1728
1672
  }
1729
1673
  var pathParams = {
1730
1674
  'projectOrProductUID': projectOrProductUID,
@@ -1743,18 +1687,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1687
  }
1744
1688
 
1745
1689
  /**
1746
- * Update a note in a .db notefile
1690
+ * Update a note in a .db or .qi notefile
1747
1691
  * @param {String} projectOrProductUID
1748
1692
  * @param {String} deviceUID
1749
1693
  * @param {String} notefileID
1750
1694
  * @param {String} noteID
1751
- * @param {module:model/Note} note Body or payload of note to be added to the device
1695
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1696
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1753
1697
  */
1754
1698
  }, {
1755
1699
  key: "updateDbNote",
1756
- value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1757
- return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1700
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1701
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1758
1702
  return response_and_data.data;
1759
1703
  });
1760
1704
  }