@blues-inc/notehub-js 2.3.0-beta.21 → 2.3.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 (143) hide show
  1. package/README.md +11 -10
  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 +243 -187
  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 +1 -1
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +14 -14
  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 -1
  28. package/dist/model/CreateMonitor.js +1 -1
  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 -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 +1 -1
  63. package/dist/model/FleetConnectivityAssurance.js +1 -1
  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 +1 -1
  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 -1
  132. package/dist/model/UploadMetadata.js +1 -1
  133. package/dist/model/UsageData.js +1 -1
  134. package/dist/model/UsageEventsData.js +1 -1
  135. package/dist/model/UsageEventsResponse.js +1 -1
  136. package/dist/model/UsageRouteLogsData.js +1 -1
  137. package/dist/model/UsageSessionsData.js +1 -1
  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/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 2.3.0-beta.21
50
+ * @version 2.3.0-beta.22
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,48 +112,54 @@ 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) {
126
127
  return response_and_data.data;
127
128
  });
128
129
  }
129
130
 
130
131
  /**
131
- * Add environment variables of a device
132
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
132
133
  * @param {String} projectOrProductUID
133
134
  * @param {String} deviceUID
134
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
135
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
135
+ * @param {String} notefileID
136
+ * @param {module:model/Note} note Body or payload of note to be added to the device
137
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
136
138
  */
137
139
  }, {
138
- key: "addDeviceEnvironmentVariablesWithHttpInfo",
139
- value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
140
- var postBody = environmentVariables;
140
+ key: "addQiNoteWithHttpInfo",
141
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
142
+ var postBody = note;
141
143
  // verify the required parameter 'projectOrProductUID' is set
142
144
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
143
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
145
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
144
146
  }
145
147
  // verify the required parameter 'deviceUID' is set
146
148
  if (deviceUID === undefined || deviceUID === null) {
147
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
149
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addQiNote");
148
150
  }
149
- // verify the required parameter 'environmentVariables' is set
150
- if (environmentVariables === undefined || environmentVariables === null) {
151
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
151
+ // verify the required parameter 'notefileID' is set
152
+ if (notefileID === undefined || notefileID === null) {
153
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
154
+ }
155
+ // verify the required parameter 'note' is set
156
+ if (note === undefined || note === null) {
157
+ throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
152
158
  }
153
159
  var pathParams = {
154
160
  'projectOrProductUID': projectOrProductUID,
155
- 'deviceUID': deviceUID
161
+ 'deviceUID': deviceUID,
162
+ 'notefileID': notefileID
156
163
  };
157
164
  var queryParams = {};
158
165
  var headerParams = {};
@@ -160,132 +167,82 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
160
167
  var authNames = ['personalAccessToken'];
161
168
  var contentTypes = ['application/json'];
162
169
  var accepts = ['application/json'];
163
- var returnType = _EnvironmentVariables["default"];
164
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
170
+ var returnType = null;
171
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
165
172
  }
166
173
 
167
174
  /**
168
- * Add environment variables of a device
175
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
169
176
  * @param {String} projectOrProductUID
170
177
  * @param {String} deviceUID
171
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
172
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
173
- */
174
- }, {
175
- key: "addDeviceEnvironmentVariables",
176
- value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
177
- return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
178
- return response_and_data.data;
179
- });
180
- }
181
-
182
- /**
183
- * Add environment variables of a device with device pin authorization
184
- * @param {String} productUID
185
- * @param {String} deviceUID
186
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
187
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
188
- */
189
- }, {
190
- key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
191
- value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
192
- var postBody = environmentVariables;
193
- // verify the required parameter 'productUID' is set
194
- if (productUID === undefined || productUID === null) {
195
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
196
- }
197
- // verify the required parameter 'deviceUID' is set
198
- if (deviceUID === undefined || deviceUID === null) {
199
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
200
- }
201
- // verify the required parameter 'environmentVariables' is set
202
- if (environmentVariables === undefined || environmentVariables === null) {
203
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
204
- }
205
- var pathParams = {
206
- 'productUID': productUID,
207
- 'deviceUID': deviceUID
208
- };
209
- var queryParams = {};
210
- var headerParams = {};
211
- var formParams = {};
212
- var authNames = ['pin'];
213
- var contentTypes = ['application/json'];
214
- var accepts = ['application/json'];
215
- var returnType = _EnvironmentVariables["default"];
216
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
217
- }
218
-
219
- /**
220
- * Add environment variables of a device with device pin authorization
221
- * @param {String} productUID
222
- * @param {String} deviceUID
223
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
224
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
178
+ * @param {String} notefileID
179
+ * @param {module:model/Note} note Body or payload of note to be added to the device
180
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
225
181
  */
226
182
  }, {
227
- key: "addDeviceEnvironmentVariablesByPin",
228
- value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
229
- return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
183
+ key: "addQiNote",
184
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
185
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
230
186
  return response_and_data.data;
231
187
  });
232
188
  }
233
189
 
234
190
  /**
235
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
191
+ * Delete a note from a .db notefile
236
192
  * @param {String} projectOrProductUID
237
193
  * @param {String} deviceUID
238
194
  * @param {String} notefileID
239
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
195
+ * @param {String} noteID
240
196
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
241
197
  */
242
198
  }, {
243
- key: "addQiNoteWithHttpInfo",
244
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
245
- var postBody = noteInput;
199
+ key: "deleteDbNoteWithHttpInfo",
200
+ value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
201
+ var postBody = null;
246
202
  // verify the required parameter 'projectOrProductUID' is set
247
203
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
248
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
204
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
249
205
  }
250
206
  // verify the required parameter 'deviceUID' is set
251
207
  if (deviceUID === undefined || deviceUID === null) {
252
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addQiNote");
208
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
253
209
  }
254
210
  // verify the required parameter 'notefileID' is set
255
211
  if (notefileID === undefined || notefileID === null) {
256
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
212
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
257
213
  }
258
- // verify the required parameter 'noteInput' is set
259
- if (noteInput === undefined || noteInput === null) {
260
- throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
214
+ // verify the required parameter 'noteID' is set
215
+ if (noteID === undefined || noteID === null) {
216
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
261
217
  }
262
218
  var pathParams = {
263
219
  'projectOrProductUID': projectOrProductUID,
264
220
  'deviceUID': deviceUID,
265
- 'notefileID': notefileID
221
+ 'notefileID': notefileID,
222
+ 'noteID': noteID
266
223
  };
267
224
  var queryParams = {};
268
225
  var headerParams = {};
269
226
  var formParams = {};
270
227
  var authNames = ['personalAccessToken'];
271
- var contentTypes = ['application/json'];
228
+ var contentTypes = [];
272
229
  var accepts = ['application/json'];
273
230
  var returnType = null;
274
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
231
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
275
232
  }
276
233
 
277
234
  /**
278
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
235
+ * Delete a note from a .db notefile
279
236
  * @param {String} projectOrProductUID
280
237
  * @param {String} deviceUID
281
238
  * @param {String} notefileID
282
- * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
239
+ * @param {String} noteID
283
240
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
284
241
  */
285
242
  }, {
286
- key: "addQiNote",
287
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
288
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
243
+ key: "deleteDbNote",
244
+ value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
245
+ return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
289
246
  return response_and_data.data;
290
247
  });
291
248
  }
@@ -397,66 +354,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
397
354
  });
398
355
  }
399
356
 
400
- /**
401
- * Delete a note from a .db or .qi notefile
402
- * @param {String} projectOrProductUID
403
- * @param {String} deviceUID
404
- * @param {String} notefileID
405
- * @param {String} noteID
406
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
407
- */
408
- }, {
409
- key: "deleteNoteWithHttpInfo",
410
- value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
411
- var postBody = null;
412
- // verify the required parameter 'projectOrProductUID' is set
413
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
414
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
415
- }
416
- // verify the required parameter 'deviceUID' is set
417
- if (deviceUID === undefined || deviceUID === null) {
418
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
419
- }
420
- // verify the required parameter 'notefileID' is set
421
- if (notefileID === undefined || notefileID === null) {
422
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
423
- }
424
- // verify the required parameter 'noteID' is set
425
- if (noteID === undefined || noteID === null) {
426
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
427
- }
428
- var pathParams = {
429
- 'projectOrProductUID': projectOrProductUID,
430
- 'deviceUID': deviceUID,
431
- 'notefileID': notefileID,
432
- 'noteID': noteID
433
- };
434
- var queryParams = {};
435
- var headerParams = {};
436
- var formParams = {};
437
- var authNames = ['personalAccessToken'];
438
- var contentTypes = [];
439
- var accepts = ['application/json'];
440
- var returnType = null;
441
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
442
- }
443
-
444
- /**
445
- * Delete a note from a .db or .qi notefile
446
- * @param {String} projectOrProductUID
447
- * @param {String} deviceUID
448
- * @param {String} notefileID
449
- * @param {String} noteID
450
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
451
- */
452
- }, {
453
- key: "deleteNote",
454
- value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
455
- return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
456
- return response_and_data.data;
457
- });
458
- }
459
-
460
357
  /**
461
358
  * Deletes Notefiles and the Notes they contain.
462
359
  * @param {String} projectOrProductUID
@@ -694,7 +591,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
694
591
  }
695
592
 
696
593
  /**
697
- * Get a note from a .db or .qi notefile
594
+ * Get a note from a .db notefile
698
595
  * @param {String} projectOrProductUID
699
596
  * @param {String} deviceUID
700
597
  * @param {String} notefileID
@@ -745,7 +642,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
745
642
  }
746
643
 
747
644
  /**
748
- * Get a note from a .db or .qi notefile
645
+ * Get a note from a .db notefile
749
646
  * @param {String} projectOrProductUID
750
647
  * @param {String} deviceUID
751
648
  * @param {String} notefileID
@@ -1417,7 +1314,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1417
1314
  * @param {String} deviceUID
1418
1315
  * @param {String} notefileID
1419
1316
  * @param {Object} opts Optional parameters
1317
+ * @param {String} opts.tracker The change tracker ID.
1420
1318
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1319
+ * @param {Boolean} opts.start true to reset the tracker to the beginning.
1320
+ * @param {Boolean} opts.stop true to delete the tracker.
1421
1321
  * @param {Boolean} opts.deleted true to return deleted notes.
1422
1322
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1423
1323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1445,7 +1345,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1445
1345
  'notefileID': notefileID
1446
1346
  };
1447
1347
  var queryParams = {
1348
+ 'tracker': opts['tracker'],
1448
1349
  'max': opts['max'],
1350
+ 'start': opts['start'],
1351
+ 'stop': opts['stop'],
1449
1352
  'deleted': opts['deleted'],
1450
1353
  'delete': opts['_delete']
1451
1354
  };
@@ -1455,7 +1358,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1455
1358
  var contentTypes = [];
1456
1359
  var accepts = ['application/json'];
1457
1360
  var returnType = _GetNotefile200Response["default"];
1458
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1361
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1459
1362
  }
1460
1363
 
1461
1364
  /**
@@ -1464,7 +1367,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1464
1367
  * @param {String} deviceUID
1465
1368
  * @param {String} notefileID
1466
1369
  * @param {Object} opts Optional parameters
1370
+ * @param {String} opts.tracker The change tracker ID.
1467
1371
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1372
+ * @param {Boolean} opts.start true to reset the tracker to the beginning.
1373
+ * @param {Boolean} opts.stop true to delete the tracker.
1468
1374
  * @param {Boolean} opts.deleted true to return deleted notes.
1469
1375
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1470
1376
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1482,9 +1388,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1482
1388
  * @param {String} projectOrProductUID
1483
1389
  * @param {String} deviceUID
1484
1390
  * @param {Object} opts Optional parameters
1391
+ * @param {String} opts.tracker The change tracker ID.
1485
1392
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1486
- * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1487
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1393
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1488
1394
  */
1489
1395
  }, {
1490
1396
  key: "listNotefilesWithHttpInfo",
@@ -1504,16 +1410,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1504
1410
  'deviceUID': deviceUID
1505
1411
  };
1506
1412
  var queryParams = {
1507
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1508
- 'pending': opts['pending']
1413
+ 'tracker': opts['tracker'],
1414
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1509
1415
  };
1510
1416
  var headerParams = {};
1511
1417
  var formParams = {};
1512
1418
  var authNames = ['personalAccessToken'];
1513
1419
  var contentTypes = [];
1514
1420
  var accepts = ['application/json'];
1515
- var returnType = [_Notefile["default"]];
1516
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1421
+ var returnType = _ListNotefiles200Response["default"];
1422
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1517
1423
  }
1518
1424
 
1519
1425
  /**
@@ -1521,9 +1427,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1521
1427
  * @param {String} projectOrProductUID
1522
1428
  * @param {String} deviceUID
1523
1429
  * @param {Object} opts Optional parameters
1430
+ * @param {String} opts.tracker The change tracker ID.
1524
1431
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1525
- * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1526
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1432
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1527
1433
  */
1528
1434
  }, {
1529
1435
  key: "listNotefiles",
@@ -1533,6 +1439,52 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1533
1439
  });
1534
1440
  }
1535
1441
 
1442
+ /**
1443
+ * Lists .qi and .db files that are pending sync to the Notecard
1444
+ * @param {String} projectOrProductUID
1445
+ * @param {String} deviceUID
1446
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1447
+ */
1448
+ }, {
1449
+ key: "listPendingNotefilesWithHttpInfo",
1450
+ value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1451
+ var postBody = null;
1452
+ // verify the required parameter 'projectOrProductUID' is set
1453
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1454
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1455
+ }
1456
+ // verify the required parameter 'deviceUID' is set
1457
+ if (deviceUID === undefined || deviceUID === null) {
1458
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1459
+ }
1460
+ var pathParams = {
1461
+ 'projectOrProductUID': projectOrProductUID,
1462
+ 'deviceUID': deviceUID
1463
+ };
1464
+ var queryParams = {};
1465
+ var headerParams = {};
1466
+ var formParams = {};
1467
+ var authNames = ['personalAccessToken'];
1468
+ var contentTypes = [];
1469
+ var accepts = ['application/json'];
1470
+ var returnType = _ListPendingNotefiles200Response["default"];
1471
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1472
+ }
1473
+
1474
+ /**
1475
+ * Lists .qi and .db files that are pending sync to the Notecard
1476
+ * @param {String} projectOrProductUID
1477
+ * @param {String} deviceUID
1478
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1479
+ */
1480
+ }, {
1481
+ key: "listPendingNotefiles",
1482
+ value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1483
+ return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1484
+ return response_and_data.data;
1485
+ });
1486
+ }
1487
+
1536
1488
  /**
1537
1489
  * Provision Device for a Project
1538
1490
  * @param {String} projectOrProductUID
@@ -1585,6 +1537,110 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1585
1537
  });
1586
1538
  }
1587
1539
 
1540
+ /**
1541
+ * Set environment variables of a device
1542
+ * @param {String} projectOrProductUID
1543
+ * @param {String} deviceUID
1544
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1545
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1546
+ */
1547
+ }, {
1548
+ key: "setDeviceEnvironmentVariablesWithHttpInfo",
1549
+ value: function setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1550
+ var postBody = environmentVariables;
1551
+ // verify the required parameter 'projectOrProductUID' is set
1552
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1553
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setDeviceEnvironmentVariables");
1554
+ }
1555
+ // verify the required parameter 'deviceUID' is set
1556
+ if (deviceUID === undefined || deviceUID === null) {
1557
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariables");
1558
+ }
1559
+ // verify the required parameter 'environmentVariables' is set
1560
+ if (environmentVariables === undefined || environmentVariables === null) {
1561
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1562
+ }
1563
+ var pathParams = {
1564
+ 'projectOrProductUID': projectOrProductUID,
1565
+ 'deviceUID': deviceUID
1566
+ };
1567
+ var queryParams = {};
1568
+ var headerParams = {};
1569
+ var formParams = {};
1570
+ var authNames = ['personalAccessToken'];
1571
+ var contentTypes = ['application/json'];
1572
+ var accepts = ['application/json'];
1573
+ var returnType = _EnvironmentVariables["default"];
1574
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1575
+ }
1576
+
1577
+ /**
1578
+ * Set environment variables of a device
1579
+ * @param {String} projectOrProductUID
1580
+ * @param {String} deviceUID
1581
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1582
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1583
+ */
1584
+ }, {
1585
+ key: "setDeviceEnvironmentVariables",
1586
+ value: function setDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1587
+ return this.setDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1588
+ return response_and_data.data;
1589
+ });
1590
+ }
1591
+
1592
+ /**
1593
+ * Set environment variables of a device with device pin authorization
1594
+ * @param {String} productUID
1595
+ * @param {String} deviceUID
1596
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
+ */
1599
+ }, {
1600
+ key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1601
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1602
+ var postBody = environmentVariables;
1603
+ // verify the required parameter 'productUID' is set
1604
+ if (productUID === undefined || productUID === null) {
1605
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling setDeviceEnvironmentVariablesByPin");
1606
+ }
1607
+ // verify the required parameter 'deviceUID' is set
1608
+ if (deviceUID === undefined || deviceUID === null) {
1609
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1610
+ }
1611
+ // verify the required parameter 'environmentVariables' is set
1612
+ if (environmentVariables === undefined || environmentVariables === null) {
1613
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1614
+ }
1615
+ var pathParams = {
1616
+ 'productUID': productUID,
1617
+ 'deviceUID': deviceUID
1618
+ };
1619
+ var queryParams = {};
1620
+ var headerParams = {};
1621
+ var formParams = {};
1622
+ var authNames = ['pin'];
1623
+ var contentTypes = ['application/json'];
1624
+ var accepts = ['application/json'];
1625
+ var returnType = _EnvironmentVariables["default"];
1626
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1627
+ }
1628
+
1629
+ /**
1630
+ * Set environment variables of a device with device pin authorization
1631
+ * @param {String} productUID
1632
+ * @param {String} deviceUID
1633
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
+ */
1636
+ }, {
1637
+ key: "setDeviceEnvironmentVariablesByPin",
1638
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1639
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1640
+ return response_and_data.data;
1641
+ });
1642
+ }
1643
+
1588
1644
  /**
1589
1645
  * Send a signal from Notehub to a Notecard.
1590
1646
  * @param {String} projectOrProductUID
@@ -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
  }