@blues-inc/notehub-js 2.3.0-beta.19 → 2.3.0-beta.20

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 +85 -73
  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 +7 -4
  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/ListNotefiles200Response.js +106 -0
  91. package/dist/model/ListPendingNotefiles200Response.js +1 -1
  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 +12 -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
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.19
9
+ - Package version: 2.3.0-beta.20
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} |
140
141
  *NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
141
142
  *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} |
162
- *NotehubJs.DeviceApi* | [**listNotefiles**](docs/DeviceApi.md#listNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files |
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 |
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,6 +308,7 @@ 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)
311
312
  - [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
312
313
  - [NotehubJs.Location](docs/Location.md)
313
314
  - [NotehubJs.Login200Response](docs/Login200Response.md)
@@ -316,7 +317,6 @@ Class | Method | HTTP request | Description
316
317
  - [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
317
318
  - [NotehubJs.MqttRoute](docs/MqttRoute.md)
318
319
  - [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.19
29
+ * @version 2.3.0-beta.20
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.19/Javascript';
76
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.3.0-beta.20/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.19
31
+ * @version 2.3.0-beta.20
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.19
33
+ * @version 2.3.0-beta.20
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.19
31
+ * @version 2.3.0-beta.20
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"));
24
25
  var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
25
26
  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.19
50
+ * @version 2.3.0-beta.20
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. if noteID is '-' then payload is ignored and empty notefile is created
66
+ * Add a Note to a .db notefile
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. if noteID is '-' then payload is ignored and empty notefile is created
115
+ * Add a Note to a .db notefile
116
116
  * @param {String} projectOrProductUID
117
117
  * @param {String} deviceUID
118
118
  * @param {String} notefileID
@@ -291,6 +291,66 @@ 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
+
294
354
  /**
295
355
  * Delete Device
296
356
  * @param {String} projectOrProductUID
@@ -398,66 +458,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
398
458
  });
399
459
  }
400
460
 
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 or .qi notefile
698
+ * Get a note from a .db 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 or .qi notefile
749
+ * Get a note from a .db notefile
750
750
  * @param {String} projectOrProductUID
751
751
  * @param {String} deviceUID
752
752
  * @param {String} notefileID
@@ -1418,7 +1418,10 @@ 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.
1421
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.
1422
1425
  * @param {Boolean} opts.deleted true to return deleted notes.
1423
1426
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1424
1427
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1446,7 +1449,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1446
1449
  'notefileID': notefileID
1447
1450
  };
1448
1451
  var queryParams = {
1452
+ 'tracker': opts['tracker'],
1449
1453
  'max': opts['max'],
1454
+ 'start': opts['start'],
1455
+ 'stop': opts['stop'],
1450
1456
  'deleted': opts['deleted'],
1451
1457
  'delete': opts['_delete']
1452
1458
  };
@@ -1456,7 +1462,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1456
1462
  var contentTypes = [];
1457
1463
  var accepts = ['application/json'];
1458
1464
  var returnType = _GetNotefile200Response["default"];
1459
- 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);
1460
1466
  }
1461
1467
 
1462
1468
  /**
@@ -1465,7 +1471,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1465
1471
  * @param {String} deviceUID
1466
1472
  * @param {String} notefileID
1467
1473
  * @param {Object} opts Optional parameters
1474
+ * @param {String} opts.tracker The change tracker ID.
1468
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.
1469
1478
  * @param {Boolean} opts.deleted true to return deleted notes.
1470
1479
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1471
1480
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1483,8 +1492,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1483
1492
  * @param {String} projectOrProductUID
1484
1493
  * @param {String} deviceUID
1485
1494
  * @param {Object} opts Optional parameters
1495
+ * @param {String} opts.tracker The change tracker ID.
1486
1496
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
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
1497
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1488
1498
  */
1489
1499
  }, {
1490
1500
  key: "listNotefilesWithHttpInfo",
@@ -1504,6 +1514,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1504
1514
  'deviceUID': deviceUID
1505
1515
  };
1506
1516
  var queryParams = {
1517
+ 'tracker': opts['tracker'],
1507
1518
  'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1508
1519
  };
1509
1520
  var headerParams = {};
@@ -1511,8 +1522,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1511
1522
  var authNames = ['personalAccessToken'];
1512
1523
  var contentTypes = [];
1513
1524
  var accepts = ['application/json'];
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);
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);
1516
1527
  }
1517
1528
 
1518
1529
  /**
@@ -1520,8 +1531,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1520
1531
  * @param {String} projectOrProductUID
1521
1532
  * @param {String} deviceUID
1522
1533
  * @param {Object} opts Optional parameters
1534
+ * @param {String} opts.tracker The change tracker ID.
1523
1535
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1524
- * @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}
1525
1537
  */
1526
1538
  }, {
1527
1539
  key: "listNotefiles",
@@ -1682,7 +1694,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1682
1694
  }
1683
1695
 
1684
1696
  /**
1685
- * Update a note in a .db or .qi notefile
1697
+ * Update a note in a .db notefile
1686
1698
  * @param {String} projectOrProductUID
1687
1699
  * @param {String} deviceUID
1688
1700
  * @param {String} notefileID
@@ -1731,7 +1743,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1731
1743
  }
1732
1744
 
1733
1745
  /**
1734
- * Update a note in a .db or .qi notefile
1746
+ * Update a note in a .db notefile
1735
1747
  * @param {String} projectOrProductUID
1736
1748
  * @param {String} deviceUID
1737
1749
  * @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.19
33
+ * @version 2.3.0-beta.20
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.19
32
+ * @version 2.3.0-beta.20
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.19
32
+ * @version 2.3.0-beta.20
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.19
53
+ * @version 2.3.0-beta.20
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.19
33
+ * @version 2.3.0-beta.20
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.19
33
+ * @version 2.3.0-beta.20
34
34
  */
35
35
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -119,7 +119,8 @@ 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 {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
122
+ * @param {Array.<module:model/String>} opts.aggregate Aggregation level for results
123
+ * @param {Array.<String>} opts.notefile Filter to specific notefiles
123
124
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
124
125
  */
125
126
  }, {
@@ -144,7 +145,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
144
145
  'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
145
146
  'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
146
147
  'period': period,
147
- 'aggregate': opts['aggregate']
148
+ 'aggregate': this.apiClient.buildCollectionParam(opts['aggregate'], 'multi'),
149
+ 'notefile': this.apiClient.buildCollectionParam(opts['notefile'], 'multi')
148
150
  };
149
151
  var headerParams = {};
150
152
  var formParams = {};
@@ -164,7 +166,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
164
166
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
165
167
  * @param {Array.<String>} opts.deviceUID A Device UID.
166
168
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
167
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
169
+ * @param {Array.<module:model/String>} opts.aggregate Aggregation level for results
170
+ * @param {Array.<String>} opts.notefile Filter to specific notefiles
168
171
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
169
172
  */
170
173
  }, {
@@ -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.19
32
+ * @version 2.3.0-beta.20
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -501,6 +501,12 @@ 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
+ });
504
510
  Object.defineProperty(exports, "ListPendingNotefiles200Response", {
505
511
  enumerable: true,
506
512
  get: function get() {
@@ -555,12 +561,6 @@ Object.defineProperty(exports, "Note", {
555
561
  return _Note["default"];
556
562
  }
557
563
  });
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,6 +926,7 @@ 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"));
929
930
  var _ListPendingNotefiles200Response = _interopRequireDefault(require("./model/ListPendingNotefiles200Response"));
930
931
  var _Location = _interopRequireDefault(require("./model/Location"));
931
932
  var _Login200Response = _interopRequireDefault(require("./model/Login200Response"));
@@ -934,7 +935,6 @@ var _Monitor = _interopRequireDefault(require("./model/Monitor"));
934
935
  var _MonitorAlertRoutesInner = _interopRequireDefault(require("./model/MonitorAlertRoutesInner"));
935
936
  var _MqttRoute = _interopRequireDefault(require("./model/MqttRoute"));
936
937
  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.19
32
+ * @version 2.3.0-beta.20
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.19
34
+ * @version 2.3.0-beta.20
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.19
29
+ * @version 2.3.0-beta.20
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.19
29
+ * @version 2.3.0-beta.20
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.19
31
+ * @version 2.3.0-beta.20
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.19
31
+ * @version 2.3.0-beta.20
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.19
33
+ * @version 2.3.0-beta.20
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.19
31
+ * @version 2.3.0-beta.20
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.19
29
+ * @version 2.3.0-beta.20
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.19
30
+ * @version 2.3.0-beta.20
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.19
32
+ * @version 2.3.0-beta.20
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.19
29
+ * @version 2.3.0-beta.20
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**