@blues-inc/notehub-js 2.3.0-beta.16 → 2.3.0-beta.18

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 +5 -5
  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 +73 -85
  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 +1 -1
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +4 -7
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +7 -7
  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/ListPendingNotefiles200Response.js +1 -1
  91. package/dist/model/Location.js +1 -1
  92. package/dist/model/Login200Response.js +1 -1
  93. package/dist/model/LoginRequest.js +1 -1
  94. package/dist/model/Monitor.js +1 -1
  95. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  96. package/dist/model/MqttRoute.js +1 -1
  97. package/dist/model/Note.js +90 -10
  98. package/dist/model/Notefile.js +159 -0
  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 -12
  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/ListNotefiles200Response.js +0 -106
package/README.md CHANGED
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
6
6
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
8
  - API version: 1.2.0
9
- - Package version: 2.3.0-beta.16
9
+ - Package version: 2.3.0-beta.18
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
  For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
12
12
 
@@ -137,9 +137,9 @@ Class | Method | HTTP request | Description
137
137
  *NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariables**](docs/DeviceApi.md#addDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
138
138
  *NotehubJs.DeviceApi* | [**addDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#addDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
139
139
  *NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
140
- *NotehubJs.DeviceApi* | [**deleteDbNote**](docs/DeviceApi.md#deleteDbNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
141
140
  *NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
142
141
  *NotehubJs.DeviceApi* | [**deleteDeviceEnvironmentVariable**](docs/DeviceApi.md#deleteDeviceEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} |
142
+ *NotehubJs.DeviceApi* | [**deleteNote**](docs/DeviceApi.md#deleteNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
143
143
  *NotehubJs.DeviceApi* | [**deleteNotefiles**](docs/DeviceApi.md#deleteNotefiles) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
144
144
  *NotehubJs.DeviceApi* | [**disableDevice**](docs/DeviceApi.md#disableDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable |
145
145
  *NotehubJs.DeviceApi* | [**disableDeviceConnectivityAssurance**](docs/DeviceApi.md#disableDeviceConnectivityAssurance) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance |
@@ -158,8 +158,8 @@ Class | Method | HTTP request | Description
158
158
  *NotehubJs.DeviceApi* | [**getDeviceSessions**](docs/DeviceApi.md#getDeviceSessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions |
159
159
  *NotehubJs.DeviceApi* | [**getDevices**](docs/DeviceApi.md#getDevices) | **GET** /v1/projects/{projectOrProductUID}/devices |
160
160
  *NotehubJs.DeviceApi* | [**getFleetDevices**](docs/DeviceApi.md#getFleetDevices) | **GET** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices |
161
- *NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes |
162
- *NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes |
161
+ *NotehubJs.DeviceApi* | [**getNotefile**](docs/DeviceApi.md#getNotefile) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
162
+ *NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
163
163
  *NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
164
164
  *NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
165
165
  *NotehubJs.DeviceApi* | [**signalDevice**](docs/DeviceApi.md#signalDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal |
@@ -308,7 +308,6 @@ Class | Method | HTTP request | Description
308
308
  - [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
309
309
  - [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
310
310
  - [NotehubJs.HttpRoute](docs/HttpRoute.md)
311
- - [NotehubJs.ListNotefiles200Response](docs/ListNotefiles200Response.md)
312
311
  - [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
313
312
  - [NotehubJs.Location](docs/Location.md)
314
313
  - [NotehubJs.Login200Response](docs/Login200Response.md)
@@ -317,6 +316,7 @@ Class | Method | HTTP request | Description
317
316
  - [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
318
317
  - [NotehubJs.MqttRoute](docs/MqttRoute.md)
319
318
  - [NotehubJs.Note](docs/Note.md)
319
+ - [NotehubJs.Notefile](docs/Notefile.md)
320
320
  - [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
321
321
  - [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
322
322
  - [NotehubJs.NotehubRouteSummary](docs/NotehubRouteSummary.md)
package/dist/ApiClient.js CHANGED
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  */
27
27
  /**
28
28
  * @module ApiClient
29
- * @version 2.3.0-beta.16
29
+ * @version 2.3.0-beta.18
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -73,7 +73,7 @@ var ApiClient = /*#__PURE__*/function () {
73
73
  */
74
74
  this.defaultHeaders = {};
75
75
  if (typeof window === 'undefined') {
76
- this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.3.0-beta.16/Javascript';
76
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.3.0-beta.18/Javascript';
77
77
  }
78
78
 
79
79
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Alert service.
30
30
  * @module api/AlertApi
31
- * @version 2.3.0-beta.16
31
+ * @version 2.3.0-beta.18
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Authorization service.
32
32
  * @module api/AuthorizationApi
33
- * @version 2.3.0-beta.16
33
+ * @version 2.3.0-beta.18
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * BillingAccount service.
30
30
  * @module api/BillingAccountApi
31
- * @version 2.3.0-beta.16
31
+ * @version 2.3.0-beta.18
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -21,9 +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 _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
24
  var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
26
25
  var _Note = _interopRequireDefault(require("../model/Note"));
26
+ var _Notefile = _interopRequireDefault(require("../model/Notefile"));
27
27
  var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
28
28
  var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -47,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
47
  /**
48
48
  * Device service.
49
49
  * @module api/DeviceApi
50
- * @version 2.3.0-beta.16
50
+ * @version 2.3.0-beta.18
51
51
  */
52
52
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
53
  /**
@@ -63,7 +63,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
63
63
  }
64
64
 
65
65
  /**
66
- * Add a Note to a .db notefile
66
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
67
67
  * @param {String} projectOrProductUID
68
68
  * @param {String} deviceUID
69
69
  * @param {String} notefileID
@@ -112,7 +112,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
112
112
  }
113
113
 
114
114
  /**
115
- * Add a Note to a .db notefile
115
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
116
116
  * @param {String} projectOrProductUID
117
117
  * @param {String} deviceUID
118
118
  * @param {String} notefileID
@@ -291,66 +291,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
291
291
  });
292
292
  }
293
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) {
350
- return response_and_data.data;
351
- });
352
- }
353
-
354
294
  /**
355
295
  * Delete Device
356
296
  * @param {String} projectOrProductUID
@@ -458,6 +398,66 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
458
398
  });
459
399
  }
460
400
 
401
+ /**
402
+ * Delete a note from a .db or .qi notefile
403
+ * @param {String} projectOrProductUID
404
+ * @param {String} deviceUID
405
+ * @param {String} notefileID
406
+ * @param {String} noteID
407
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
408
+ */
409
+ }, {
410
+ key: "deleteNoteWithHttpInfo",
411
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
412
+ var postBody = null;
413
+ // verify the required parameter 'projectOrProductUID' is set
414
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
415
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
416
+ }
417
+ // verify the required parameter 'deviceUID' is set
418
+ if (deviceUID === undefined || deviceUID === null) {
419
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
420
+ }
421
+ // verify the required parameter 'notefileID' is set
422
+ if (notefileID === undefined || notefileID === null) {
423
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
424
+ }
425
+ // verify the required parameter 'noteID' is set
426
+ if (noteID === undefined || noteID === null) {
427
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
428
+ }
429
+ var pathParams = {
430
+ 'projectOrProductUID': projectOrProductUID,
431
+ 'deviceUID': deviceUID,
432
+ 'notefileID': notefileID,
433
+ 'noteID': noteID
434
+ };
435
+ var queryParams = {};
436
+ var headerParams = {};
437
+ var formParams = {};
438
+ var authNames = ['personalAccessToken'];
439
+ var contentTypes = [];
440
+ var accepts = ['application/json'];
441
+ var returnType = null;
442
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
443
+ }
444
+
445
+ /**
446
+ * Delete a note from a .db or .qi notefile
447
+ * @param {String} projectOrProductUID
448
+ * @param {String} deviceUID
449
+ * @param {String} notefileID
450
+ * @param {String} noteID
451
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
452
+ */
453
+ }, {
454
+ key: "deleteNote",
455
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
456
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
457
+ return response_and_data.data;
458
+ });
459
+ }
460
+
461
461
  /**
462
462
  * Deletes Notefiles and the Notes they contain.
463
463
  * @param {String} projectOrProductUID
@@ -695,7 +695,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
695
695
  }
696
696
 
697
697
  /**
698
- * Get a note from a .db notefile
698
+ * Get a note from a .db or .qi notefile
699
699
  * @param {String} projectOrProductUID
700
700
  * @param {String} deviceUID
701
701
  * @param {String} notefileID
@@ -746,7 +746,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
746
746
  }
747
747
 
748
748
  /**
749
- * Get a note from a .db notefile
749
+ * Get a note from a .db or .qi notefile
750
750
  * @param {String} projectOrProductUID
751
751
  * @param {String} deviceUID
752
752
  * @param {String} notefileID
@@ -1418,10 +1418,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1418
1418
  * @param {String} deviceUID
1419
1419
  * @param {String} notefileID
1420
1420
  * @param {Object} opts Optional parameters
1421
- * @param {String} opts.tracker The change tracker ID.
1422
1421
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1423
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1424
- * @param {Boolean} opts.stop true to delete the tracker.
1425
1422
  * @param {Boolean} opts.deleted true to return deleted notes.
1426
1423
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1427
1424
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1449,10 +1446,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1449
1446
  'notefileID': notefileID
1450
1447
  };
1451
1448
  var queryParams = {
1452
- 'tracker': opts['tracker'],
1453
1449
  'max': opts['max'],
1454
- 'start': opts['start'],
1455
- 'stop': opts['stop'],
1456
1450
  'deleted': opts['deleted'],
1457
1451
  'delete': opts['_delete']
1458
1452
  };
@@ -1462,7 +1456,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1456
  var contentTypes = [];
1463
1457
  var accepts = ['application/json'];
1464
1458
  var returnType = _GetNotefile200Response["default"];
1465
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1459
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1466
1460
  }
1467
1461
 
1468
1462
  /**
@@ -1471,10 +1465,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1465
  * @param {String} deviceUID
1472
1466
  * @param {String} notefileID
1473
1467
  * @param {Object} opts Optional parameters
1474
- * @param {String} opts.tracker The change tracker ID.
1475
1468
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1476
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1477
- * @param {Boolean} opts.stop true to delete the tracker.
1478
1469
  * @param {Boolean} opts.deleted true to return deleted notes.
1479
1470
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1480
1471
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1492,9 +1483,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1492
1483
  * @param {String} projectOrProductUID
1493
1484
  * @param {String} deviceUID
1494
1485
  * @param {Object} opts Optional parameters
1495
- * @param {String} opts.tracker The change tracker ID.
1496
1486
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1497
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
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
1498
1488
  */
1499
1489
  }, {
1500
1490
  key: "listNotefilesWithHttpInfo",
@@ -1514,7 +1504,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1504
  'deviceUID': deviceUID
1515
1505
  };
1516
1506
  var queryParams = {
1517
- 'tracker': opts['tracker'],
1518
1507
  'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1519
1508
  };
1520
1509
  var headerParams = {};
@@ -1522,8 +1511,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1522
1511
  var authNames = ['personalAccessToken'];
1523
1512
  var contentTypes = [];
1524
1513
  var accepts = ['application/json'];
1525
- var returnType = _ListNotefiles200Response["default"];
1526
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1514
+ var returnType = [_Notefile["default"]];
1515
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1527
1516
  }
1528
1517
 
1529
1518
  /**
@@ -1531,9 +1520,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1531
1520
  * @param {String} projectOrProductUID
1532
1521
  * @param {String} deviceUID
1533
1522
  * @param {Object} opts Optional parameters
1534
- * @param {String} opts.tracker The change tracker ID.
1535
1523
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1536
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1524
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1537
1525
  */
1538
1526
  }, {
1539
1527
  key: "listNotefiles",
@@ -1694,7 +1682,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1682
  }
1695
1683
 
1696
1684
  /**
1697
- * Update a note in a .db notefile
1685
+ * Update a note in a .db or .qi notefile
1698
1686
  * @param {String} projectOrProductUID
1699
1687
  * @param {String} deviceUID
1700
1688
  * @param {String} notefileID
@@ -1743,7 +1731,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1731
  }
1744
1732
 
1745
1733
  /**
1746
- * Update a note in a .db notefile
1734
+ * Update a note in a .db or .qi notefile
1747
1735
  * @param {String} projectOrProductUID
1748
1736
  * @param {String} deviceUID
1749
1737
  * @param {String} notefileID
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 2.3.0-beta.16
33
+ * @version 2.3.0-beta.18
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 2.3.0-beta.16
32
+ * @version 2.3.0-beta.18
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 2.3.0-beta.16
32
+ * @version 2.3.0-beta.18
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
50
50
  /**
51
51
  * Project service.
52
52
  * @module api/ProjectApi
53
- * @version 2.3.0-beta.16
53
+ * @version 2.3.0-beta.18
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Route service.
32
32
  * @module api/RouteApi
33
- * @version 2.3.0-beta.16
33
+ * @version 2.3.0-beta.18
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Usage service.
32
32
  * @module api/UsageApi
33
- * @version 2.3.0-beta.16
33
+ * @version 2.3.0-beta.18
34
34
  */
35
35
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -119,8 +119,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
119
119
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
120
120
  * @param {Array.<String>} opts.deviceUID A Device UID.
121
121
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
122
- * @param {Array.<module:model/String>} opts.aggregate Aggregation level for results
123
- * @param {Array.<String>} opts.notefile Filter to specific notefiles
122
+ * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
124
123
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
125
124
  */
126
125
  }, {
@@ -145,8 +144,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
145
144
  'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
146
145
  'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
147
146
  'period': period,
148
- 'aggregate': this.apiClient.buildCollectionParam(opts['aggregate'], 'multi'),
149
- 'notefile': this.apiClient.buildCollectionParam(opts['notefile'], 'multi')
147
+ 'aggregate': opts['aggregate']
150
148
  };
151
149
  var headerParams = {};
152
150
  var formParams = {};
@@ -166,8 +164,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
166
164
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
167
165
  * @param {Array.<String>} opts.deviceUID A Device UID.
168
166
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
169
- * @param {Array.<module:model/String>} opts.aggregate Aggregation level for results
170
- * @param {Array.<String>} opts.notefile Filter to specific notefiles
167
+ * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
171
168
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
172
169
  */
173
170
  }, {
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 2.3.0-beta.16
32
+ * @version 2.3.0-beta.18
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -501,12 +501,6 @@ Object.defineProperty(exports, "HttpRoute", {
501
501
  return _HttpRoute["default"];
502
502
  }
503
503
  });
504
- Object.defineProperty(exports, "ListNotefiles200Response", {
505
- enumerable: true,
506
- get: function get() {
507
- return _ListNotefiles200Response["default"];
508
- }
509
- });
510
504
  Object.defineProperty(exports, "ListPendingNotefiles200Response", {
511
505
  enumerable: true,
512
506
  get: function get() {
@@ -561,6 +555,12 @@ Object.defineProperty(exports, "Note", {
561
555
  return _Note["default"];
562
556
  }
563
557
  });
558
+ Object.defineProperty(exports, "Notefile", {
559
+ enumerable: true,
560
+ get: function get() {
561
+ return _Notefile["default"];
562
+ }
563
+ });
564
564
  Object.defineProperty(exports, "NotefileSchema", {
565
565
  enumerable: true,
566
566
  get: function get() {
@@ -926,7 +926,6 @@ var _GetSessionsUsage200Response = _interopRequireDefault(require("./model/GetSe
926
926
  var _GetWebhooks200Response = _interopRequireDefault(require("./model/GetWebhooks200Response"));
927
927
  var _GoogleRoute = _interopRequireDefault(require("./model/GoogleRoute"));
928
928
  var _HttpRoute = _interopRequireDefault(require("./model/HttpRoute"));
929
- var _ListNotefiles200Response = _interopRequireDefault(require("./model/ListNotefiles200Response"));
930
929
  var _ListPendingNotefiles200Response = _interopRequireDefault(require("./model/ListPendingNotefiles200Response"));
931
930
  var _Location = _interopRequireDefault(require("./model/Location"));
932
931
  var _Login200Response = _interopRequireDefault(require("./model/Login200Response"));
@@ -935,6 +934,7 @@ var _Monitor = _interopRequireDefault(require("./model/Monitor"));
935
934
  var _MonitorAlertRoutesInner = _interopRequireDefault(require("./model/MonitorAlertRoutesInner"));
936
935
  var _MqttRoute = _interopRequireDefault(require("./model/MqttRoute"));
937
936
  var _Note = _interopRequireDefault(require("./model/Note"));
937
+ var _Notefile = _interopRequireDefault(require("./model/Notefile"));
938
938
  var _NotefileSchema = _interopRequireDefault(require("./model/NotefileSchema"));
939
939
  var _NotehubRoute = _interopRequireDefault(require("./model/NotehubRoute"));
940
940
  var _NotehubRouteSummary = _interopRequireDefault(require("./model/NotehubRouteSummary"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 2.3.0-beta.16
32
+ * @version 2.3.0-beta.18
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 2.3.0-beta.16
34
+ * @version 2.3.0-beta.18
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 2.3.0-beta.16
29
+ * @version 2.3.0-beta.18
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 2.3.0-beta.16
29
+ * @version 2.3.0-beta.18
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AwsRoute model module.
30
30
  * @module model/AwsRoute
31
- * @version 2.3.0-beta.16
31
+ * @version 2.3.0-beta.18
32
32
  */
33
33
  var AwsRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AzureRoute model module.
30
30
  * @module model/AzureRoute
31
- * @version 2.3.0-beta.16
31
+ * @version 2.3.0-beta.18
32
32
  */
33
33
  var AzureRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The BillingAccount model module.
32
32
  * @module model/BillingAccount
33
- * @version 2.3.0-beta.16
33
+ * @version 2.3.0-beta.18
34
34
  */
35
35
  var BillingAccount = /*#__PURE__*/function () {
36
36
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The BlynkRoute model module.
30
30
  * @module model/BlynkRoute
31
- * @version 2.3.0-beta.16
31
+ * @version 2.3.0-beta.18
32
32
  */
33
33
  var BlynkRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Body model module.
28
28
  * @module model/Body
29
- * @version 2.3.0-beta.16
29
+ * @version 2.3.0-beta.18
30
30
  */
31
31
  var Body = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CellularPlan model module.
29
29
  * @module model/CellularPlan
30
- * @version 2.3.0-beta.16
30
+ * @version 2.3.0-beta.18
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CloneProjectRequest model module.
31
31
  * @module model/CloneProjectRequest
32
- * @version 2.3.0-beta.16
32
+ * @version 2.3.0-beta.18
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Contact model module.
28
28
  * @module model/Contact
29
- * @version 2.3.0-beta.16
29
+ * @version 2.3.0-beta.18
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**