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

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 +11 -12
  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 +253 -197
  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 +6 -78
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +14 -21
  15. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  16. package/dist/model/Alert.js +1 -1
  17. package/dist/model/AlertDataInner.js +1 -1
  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 +1 -9
  28. package/dist/model/CreateMonitor.js +10 -16
  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 +1 -14
  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 +1 -9
  63. package/dist/model/FleetConnectivityAssurance.js +27 -4
  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/GetSessionsUsage200Response.js +1 -1
  87. package/dist/model/GetWebhooks200Response.js +1 -1
  88. package/dist/model/GoogleRoute.js +1 -1
  89. package/dist/model/HttpRoute.js +1 -1
  90. package/dist/model/{NoteInput.js → ListNotefiles200Response.js} +36 -29
  91. package/dist/model/ListPendingNotefiles200Response.js +115 -0
  92. package/dist/model/Location.js +1 -1
  93. package/dist/model/Login200Response.js +1 -1
  94. package/dist/model/LoginRequest.js +1 -1
  95. package/dist/model/Monitor.js +4 -4
  96. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  97. package/dist/model/MqttRoute.js +1 -1
  98. package/dist/model/Note.js +10 -90
  99. package/dist/model/NotefileSchema.js +1 -1
  100. package/dist/model/NotehubRoute.js +1 -1
  101. package/dist/model/NotehubRouteSummary.js +1 -1
  102. package/dist/model/OAuth2Error.js +1 -1
  103. package/dist/model/OAuth2TokenResponse.js +1 -1
  104. package/dist/model/PersonalAccessToken.js +1 -1
  105. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  106. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  107. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  108. package/dist/model/Product.js +1 -1
  109. package/dist/model/Project.js +1 -1
  110. package/dist/model/ProjectMember.js +1 -1
  111. package/dist/model/ProvisionDeviceRequest.js +1 -1
  112. package/dist/model/ProxyRoute.js +1 -1
  113. package/dist/model/QubitroRoute.js +1 -1
  114. package/dist/model/RadRoute.js +1 -1
  115. package/dist/model/Repository.js +1 -1
  116. package/dist/model/RouteLog.js +1 -1
  117. package/dist/model/RouteTransformSettings.js +1 -1
  118. package/dist/model/S3ArchiveRoute.js +1 -1
  119. package/dist/model/SatellitePlan.js +1 -1
  120. package/dist/model/SchemaProperty.js +1 -1
  121. package/dist/model/SignalDevice200Response.js +1 -1
  122. package/dist/model/SimUsage.js +1 -1
  123. package/dist/model/SlackBearerNotification.js +1 -1
  124. package/dist/model/SlackRoute.js +1 -1
  125. package/dist/model/SlackWebHookNotification.js +1 -1
  126. package/dist/model/SnowflakeRoute.js +1 -1
  127. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  128. package/dist/model/ThingworxRoute.js +1 -1
  129. package/dist/model/TowerLocation.js +1 -1
  130. package/dist/model/TwilioRoute.js +1 -1
  131. package/dist/model/UpdateFleetRequest.js +1 -9
  132. package/dist/model/UploadMetadata.js +1 -1
  133. package/dist/model/UsageData.js +1 -1
  134. package/dist/model/UsageEventsData.js +6 -17
  135. package/dist/model/UsageEventsResponse.js +1 -1
  136. package/dist/model/UsageRouteLogsData.js +1 -1
  137. package/dist/model/UsageSessionsData.js +5 -15
  138. package/dist/model/UserDfuStateMachine.js +1 -1
  139. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  140. package/dist/model/UserFirmwareInfo.js +1 -1
  141. package/dist/model/WebhookSettings.js +1 -1
  142. package/package.json +1 -1
  143. package/dist/model/GetRouteLogsUsage200Response.js +0 -132
  144. package/dist/model/Notefile.js +0 -159
@@ -21,8 +21,9 @@ 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 _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
25
- var _Notefile = _interopRequireDefault(require("../model/Notefile"));
24
+ var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
+ var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
26
+ var _Note = _interopRequireDefault(require("../model/Note"));
26
27
  var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
27
28
  var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
28
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -46,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
46
47
  /**
47
48
  * Device service.
48
49
  * @module api/DeviceApi
49
- * @version 3.0.0-beta.20
50
+ * @version 3.0.0-beta.21
50
51
  */
51
52
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
53
  /**
@@ -62,18 +63,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
62
63
  }
63
64
 
64
65
  /**
65
- * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
66
+ * Add a Note to a .db notefile
66
67
  * @param {String} projectOrProductUID
67
68
  * @param {String} deviceUID
68
69
  * @param {String} notefileID
69
70
  * @param {String} noteID
70
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
71
+ * @param {module:model/Note} note Body or payload of note to be added to the device
71
72
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
72
73
  */
73
74
  return _createClass(DeviceApi, [{
74
75
  key: "addDbNoteWithHttpInfo",
75
- value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
76
- var postBody = noteInput;
76
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
77
+ var postBody = note;
77
78
  // verify the required parameter 'projectOrProductUID' is set
78
79
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
79
80
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
@@ -90,9 +91,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
90
91
  if (noteID === undefined || noteID === null) {
91
92
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
92
93
  }
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");
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");
96
97
  }
97
98
  var pathParams = {
98
99
  'projectOrProductUID': projectOrProductUID,
@@ -111,18 +112,122 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
111
112
  }
112
113
 
113
114
  /**
114
- * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
115
+ * Add a Note to a .db notefile
115
116
  * @param {String} projectOrProductUID
116
117
  * @param {String} deviceUID
117
118
  * @param {String} notefileID
118
119
  * @param {String} noteID
119
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
120
+ * @param {module:model/Note} note Body or payload of note to be added to the device
120
121
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
121
122
  */
122
123
  }, {
123
124
  key: "addDbNote",
124
- value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
125
- return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
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) {
126
231
  return response_and_data.data;
127
232
  });
128
233
  }
@@ -132,13 +237,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
132
237
  * @param {String} projectOrProductUID
133
238
  * @param {String} deviceUID
134
239
  * @param {String} notefileID
135
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
240
+ * @param {module:model/Note} note Body or payload of note to be added to the device
136
241
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
137
242
  */
138
243
  }, {
139
244
  key: "addQiNoteWithHttpInfo",
140
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
141
- var postBody = noteInput;
245
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
246
+ var postBody = note;
142
247
  // verify the required parameter 'projectOrProductUID' is set
143
248
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
144
249
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
@@ -151,9 +256,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
151
256
  if (notefileID === undefined || notefileID === null) {
152
257
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
153
258
  }
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");
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");
157
262
  }
158
263
  var pathParams = {
159
264
  'projectOrProductUID': projectOrProductUID,
@@ -175,13 +280,73 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
175
280
  * @param {String} projectOrProductUID
176
281
  * @param {String} deviceUID
177
282
  * @param {String} notefileID
178
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
283
+ * @param {module:model/Note} note Body or payload of note to be added to the device
179
284
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
180
285
  */
181
286
  }, {
182
287
  key: "addQiNote",
183
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
184
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
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) {
185
350
  return response_and_data.data;
186
351
  });
187
352
  }
@@ -293,66 +458,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
293
458
  });
294
459
  }
295
460
 
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
-
356
461
  /**
357
462
  * Deletes Notefiles and the Notes they contain.
358
463
  * @param {String} projectOrProductUID
@@ -590,7 +695,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
590
695
  }
591
696
 
592
697
  /**
593
- * Get a note from a .db or .qi notefile
698
+ * Get a note from a .db notefile
594
699
  * @param {String} projectOrProductUID
595
700
  * @param {String} deviceUID
596
701
  * @param {String} notefileID
@@ -641,7 +746,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
641
746
  }
642
747
 
643
748
  /**
644
- * Get a note from a .db or .qi notefile
749
+ * Get a note from a .db notefile
645
750
  * @param {String} projectOrProductUID
646
751
  * @param {String} deviceUID
647
752
  * @param {String} notefileID
@@ -1313,7 +1418,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1313
1418
  * @param {String} deviceUID
1314
1419
  * @param {String} notefileID
1315
1420
  * @param {Object} opts Optional parameters
1421
+ * @param {String} opts.tracker The change tracker ID.
1316
1422
  * @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.
1317
1425
  * @param {Boolean} opts.deleted true to return deleted notes.
1318
1426
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1319
1427
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1341,7 +1449,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1341
1449
  'notefileID': notefileID
1342
1450
  };
1343
1451
  var queryParams = {
1452
+ 'tracker': opts['tracker'],
1344
1453
  'max': opts['max'],
1454
+ 'start': opts['start'],
1455
+ 'stop': opts['stop'],
1345
1456
  'deleted': opts['deleted'],
1346
1457
  'delete': opts['_delete']
1347
1458
  };
@@ -1351,7 +1462,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1351
1462
  var contentTypes = [];
1352
1463
  var accepts = ['application/json'];
1353
1464
  var returnType = _GetNotefile200Response["default"];
1354
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1465
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1355
1466
  }
1356
1467
 
1357
1468
  /**
@@ -1360,7 +1471,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1360
1471
  * @param {String} deviceUID
1361
1472
  * @param {String} notefileID
1362
1473
  * @param {Object} opts Optional parameters
1474
+ * @param {String} opts.tracker The change tracker ID.
1363
1475
  * @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.
1364
1478
  * @param {Boolean} opts.deleted true to return deleted notes.
1365
1479
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1366
1480
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1378,9 +1492,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1378
1492
  * @param {String} projectOrProductUID
1379
1493
  * @param {String} deviceUID
1380
1494
  * @param {Object} opts Optional parameters
1495
+ * @param {String} opts.tracker The change tracker ID.
1381
1496
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
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
1497
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1384
1498
  */
1385
1499
  }, {
1386
1500
  key: "listNotefilesWithHttpInfo",
@@ -1400,16 +1514,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1400
1514
  'deviceUID': deviceUID
1401
1515
  };
1402
1516
  var queryParams = {
1403
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1404
- 'pending': opts['pending']
1517
+ 'tracker': opts['tracker'],
1518
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1405
1519
  };
1406
1520
  var headerParams = {};
1407
1521
  var formParams = {};
1408
1522
  var authNames = ['personalAccessToken'];
1409
1523
  var contentTypes = [];
1410
1524
  var accepts = ['application/json'];
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);
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);
1413
1527
  }
1414
1528
 
1415
1529
  /**
@@ -1417,9 +1531,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1417
1531
  * @param {String} projectOrProductUID
1418
1532
  * @param {String} deviceUID
1419
1533
  * @param {Object} opts Optional parameters
1534
+ * @param {String} opts.tracker The change tracker ID.
1420
1535
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
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>}
1536
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1423
1537
  */
1424
1538
  }, {
1425
1539
  key: "listNotefiles",
@@ -1430,27 +1544,22 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1430
1544
  }
1431
1545
 
1432
1546
  /**
1433
- * Provision Device for a Project
1547
+ * Lists .qi and .db files that are pending sync to the Notecard
1434
1548
  * @param {String} projectOrProductUID
1435
1549
  * @param {String} deviceUID
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
1550
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1438
1551
  */
1439
1552
  }, {
1440
- key: "provisionDeviceWithHttpInfo",
1441
- value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1442
- var postBody = provisionDeviceRequest;
1553
+ key: "listPendingNotefilesWithHttpInfo",
1554
+ value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1555
+ var postBody = null;
1443
1556
  // verify the required parameter 'projectOrProductUID' is set
1444
1557
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1445
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1558
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1446
1559
  }
1447
1560
  // verify the required parameter 'deviceUID' is set
1448
1561
  if (deviceUID === undefined || deviceUID === null) {
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");
1562
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1454
1563
  }
1455
1564
  var pathParams = {
1456
1565
  'projectOrProductUID': projectOrProductUID,
@@ -1460,49 +1569,48 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1460
1569
  var headerParams = {};
1461
1570
  var formParams = {};
1462
1571
  var authNames = ['personalAccessToken'];
1463
- var contentTypes = ['application/json'];
1572
+ var contentTypes = [];
1464
1573
  var accepts = ['application/json'];
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);
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);
1467
1576
  }
1468
1577
 
1469
1578
  /**
1470
- * Provision Device for a Project
1579
+ * Lists .qi and .db files that are pending sync to the Notecard
1471
1580
  * @param {String} projectOrProductUID
1472
1581
  * @param {String} deviceUID
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}
1582
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1475
1583
  */
1476
1584
  }, {
1477
- key: "provisionDevice",
1478
- value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1479
- return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1585
+ key: "listPendingNotefiles",
1586
+ value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1587
+ return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1480
1588
  return response_and_data.data;
1481
1589
  });
1482
1590
  }
1483
1591
 
1484
1592
  /**
1485
- * Set environment variables of a device
1593
+ * Provision Device for a Project
1486
1594
  * @param {String} projectOrProductUID
1487
1595
  * @param {String} deviceUID
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
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
1490
1598
  */
1491
1599
  }, {
1492
- key: "setDeviceEnvironmentVariablesWithHttpInfo",
1493
- value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1494
- var postBody = environmentVariables;
1600
+ key: "provisionDeviceWithHttpInfo",
1601
+ value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1602
+ var postBody = provisionDeviceRequest;
1495
1603
  // verify the required parameter 'projectOrProductUID' is set
1496
1604
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1497
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1605
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1498
1606
  }
1499
1607
  // verify the required parameter 'deviceUID' is set
1500
1608
  if (deviceUID === undefined || deviceUID === null) {
1501
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1609
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
1502
1610
  }
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");
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");
1506
1614
  }
1507
1615
  var pathParams = {
1508
1616
  'projectOrProductUID': projectOrProductUID,
@@ -1514,73 +1622,21 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1622
  var authNames = ['personalAccessToken'];
1515
1623
  var contentTypes = ['application/json'];
1516
1624
  var accepts = ['application/json'];
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);
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);
1519
1627
  }
1520
1628
 
1521
1629
  /**
1522
- * Set environment variables of a device
1630
+ * Provision Device for a Project
1523
1631
  * @param {String} projectOrProductUID
1524
1632
  * @param {String} deviceUID
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}
1527
- */
1528
- }, {
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}
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}
1579
1635
  */
1580
1636
  }, {
1581
- key: "setDeviceEnvironmentVariablesByPin",
1582
- value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1583
- return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1637
+ key: "provisionDevice",
1638
+ value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1639
+ return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1584
1640
  return response_and_data.data;
1585
1641
  });
1586
1642
  }
@@ -1638,18 +1694,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1638
1694
  }
1639
1695
 
1640
1696
  /**
1641
- * Update a note in a .db or .qi notefile
1697
+ * Update a note in a .db notefile
1642
1698
  * @param {String} projectOrProductUID
1643
1699
  * @param {String} deviceUID
1644
1700
  * @param {String} notefileID
1645
1701
  * @param {String} noteID
1646
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1702
+ * @param {module:model/Note} note Body or payload of note to be added to the device
1647
1703
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1648
1704
  */
1649
1705
  }, {
1650
1706
  key: "updateDbNoteWithHttpInfo",
1651
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1652
- var postBody = noteInput;
1707
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
+ var postBody = note;
1653
1709
  // verify the required parameter 'projectOrProductUID' is set
1654
1710
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1655
1711
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1666,9 +1722,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1666
1722
  if (noteID === undefined || noteID === null) {
1667
1723
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1668
1724
  }
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");
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");
1672
1728
  }
1673
1729
  var pathParams = {
1674
1730
  'projectOrProductUID': projectOrProductUID,
@@ -1687,18 +1743,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1687
1743
  }
1688
1744
 
1689
1745
  /**
1690
- * Update a note in a .db or .qi notefile
1746
+ * Update a note in a .db notefile
1691
1747
  * @param {String} projectOrProductUID
1692
1748
  * @param {String} deviceUID
1693
1749
  * @param {String} notefileID
1694
1750
  * @param {String} noteID
1695
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1751
+ * @param {module:model/Note} note Body or payload of note to be added to the device
1696
1752
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1697
1753
  */
1698
1754
  }, {
1699
1755
  key: "updateDbNote",
1700
- value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1701
- return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1756
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1757
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1702
1758
  return response_and_data.data;
1703
1759
  });
1704
1760
  }