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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +6 -7
  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 +105 -161
  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 +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/Location.js +1 -1
  91. package/dist/model/Login200Response.js +1 -1
  92. package/dist/model/LoginRequest.js +1 -1
  93. package/dist/model/Monitor.js +1 -1
  94. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  95. package/dist/model/MqttRoute.js +1 -1
  96. package/dist/model/Note.js +90 -10
  97. package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +29 -36
  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 -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/ListPendingNotefiles200Response.js +0 -115
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.20
9
+ - Package version: 2.3.0-beta.21
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,9 +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 |
163
- *NotehubJs.DeviceApi* | [**listPendingNotefiles**](docs/DeviceApi.md#listPendingNotefiles) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending |
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 |
164
163
  *NotehubJs.DeviceApi* | [**provisionDevice**](docs/DeviceApi.md#provisionDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision |
165
164
  *NotehubJs.DeviceApi* | [**signalDevice**](docs/DeviceApi.md#signalDevice) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal |
166
165
  *NotehubJs.DeviceApi* | [**updateDbNote**](docs/DeviceApi.md#updateDbNote) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
@@ -308,8 +307,6 @@ Class | Method | HTTP request | Description
308
307
  - [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
309
308
  - [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
310
309
  - [NotehubJs.HttpRoute](docs/HttpRoute.md)
311
- - [NotehubJs.ListNotefiles200Response](docs/ListNotefiles200Response.md)
312
- - [NotehubJs.ListPendingNotefiles200Response](docs/ListPendingNotefiles200Response.md)
313
310
  - [NotehubJs.Location](docs/Location.md)
314
311
  - [NotehubJs.Login200Response](docs/Login200Response.md)
315
312
  - [NotehubJs.LoginRequest](docs/LoginRequest.md)
@@ -317,6 +314,8 @@ Class | Method | HTTP request | Description
317
314
  - [NotehubJs.MonitorAlertRoutesInner](docs/MonitorAlertRoutesInner.md)
318
315
  - [NotehubJs.MqttRoute](docs/MqttRoute.md)
319
316
  - [NotehubJs.Note](docs/Note.md)
317
+ - [NotehubJs.NoteInput](docs/NoteInput.md)
318
+ - [NotehubJs.Notefile](docs/Notefile.md)
320
319
  - [NotehubJs.NotefileSchema](docs/NotefileSchema.md)
321
320
  - [NotehubJs.NotehubRoute](docs/NotehubRoute.md)
322
321
  - [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.20
29
+ * @version 2.3.0-beta.21
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.20/Javascript';
76
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.3.0-beta.21/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.20
31
+ * @version 2.3.0-beta.21
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.20
33
+ * @version 2.3.0-beta.21
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.20
31
+ * @version 2.3.0-beta.21
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -21,9 +21,8 @@ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/G
21
21
  var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
22
22
  var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
23
23
  var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
24
- var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
- var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
26
- var _Note = _interopRequireDefault(require("../model/Note"));
24
+ var _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
25
+ var _Notefile = _interopRequireDefault(require("../model/Notefile"));
27
26
  var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
28
27
  var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -47,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
46
  /**
48
47
  * Device service.
49
48
  * @module api/DeviceApi
50
- * @version 2.3.0-beta.20
49
+ * @version 2.3.0-beta.21
51
50
  */
52
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
52
  /**
@@ -63,18 +62,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
63
62
  }
64
63
 
65
64
  /**
66
- * Add a Note to a .db notefile
65
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
67
66
  * @param {String} projectOrProductUID
68
67
  * @param {String} deviceUID
69
68
  * @param {String} notefileID
70
69
  * @param {String} noteID
71
- * @param {module:model/Note} note Body or payload of note to be added to the device
70
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
72
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
73
72
  */
74
73
  return _createClass(DeviceApi, [{
75
74
  key: "addDbNoteWithHttpInfo",
76
- value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
77
- var postBody = note;
75
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
76
+ var postBody = noteInput;
78
77
  // verify the required parameter 'projectOrProductUID' is set
79
78
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
80
79
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
@@ -91,9 +90,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
91
90
  if (noteID === undefined || noteID === null) {
92
91
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
93
92
  }
94
- // verify the required parameter 'note' is set
95
- if (note === undefined || note === null) {
96
- throw new _Error["default"]("Missing the required parameter 'note' when calling addDbNote");
93
+ // verify the required parameter 'noteInput' is set
94
+ if (noteInput === undefined || noteInput === null) {
95
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
97
96
  }
98
97
  var pathParams = {
99
98
  'projectOrProductUID': projectOrProductUID,
@@ -112,18 +111,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
112
111
  }
113
112
 
114
113
  /**
115
- * Add a Note to a .db notefile
114
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
116
115
  * @param {String} projectOrProductUID
117
116
  * @param {String} deviceUID
118
117
  * @param {String} notefileID
119
118
  * @param {String} noteID
120
- * @param {module:model/Note} note Body or payload of note to be added to the device
119
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
121
120
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
122
121
  */
123
122
  }, {
124
123
  key: "addDbNote",
125
- value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
126
- return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
124
+ value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
125
+ return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
127
126
  return response_and_data.data;
128
127
  });
129
128
  }
@@ -237,13 +236,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
237
236
  * @param {String} projectOrProductUID
238
237
  * @param {String} deviceUID
239
238
  * @param {String} notefileID
240
- * @param {module:model/Note} note Body or payload of note to be added to the device
239
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
241
240
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
242
241
  */
243
242
  }, {
244
243
  key: "addQiNoteWithHttpInfo",
245
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
246
- var postBody = note;
244
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
245
+ var postBody = noteInput;
247
246
  // verify the required parameter 'projectOrProductUID' is set
248
247
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
249
248
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
@@ -256,9 +255,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
256
255
  if (notefileID === undefined || notefileID === null) {
257
256
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
258
257
  }
259
- // verify the required parameter 'note' is set
260
- if (note === undefined || note === null) {
261
- throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
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");
262
261
  }
263
262
  var pathParams = {
264
263
  'projectOrProductUID': projectOrProductUID,
@@ -280,73 +279,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
280
279
  * @param {String} projectOrProductUID
281
280
  * @param {String} deviceUID
282
281
  * @param {String} notefileID
283
- * @param {module:model/Note} note Body or payload of note to be added to the device
282
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
284
283
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
285
284
  */
286
285
  }, {
287
286
  key: "addQiNote",
288
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
289
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
290
- return response_and_data.data;
291
- });
292
- }
293
-
294
- /**
295
- * Delete a note from a .db notefile
296
- * @param {String} projectOrProductUID
297
- * @param {String} deviceUID
298
- * @param {String} notefileID
299
- * @param {String} noteID
300
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
301
- */
302
- }, {
303
- key: "deleteDbNoteWithHttpInfo",
304
- value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
305
- var postBody = null;
306
- // verify the required parameter 'projectOrProductUID' is set
307
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
308
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
309
- }
310
- // verify the required parameter 'deviceUID' is set
311
- if (deviceUID === undefined || deviceUID === null) {
312
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
313
- }
314
- // verify the required parameter 'notefileID' is set
315
- if (notefileID === undefined || notefileID === null) {
316
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
317
- }
318
- // verify the required parameter 'noteID' is set
319
- if (noteID === undefined || noteID === null) {
320
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
321
- }
322
- var pathParams = {
323
- 'projectOrProductUID': projectOrProductUID,
324
- 'deviceUID': deviceUID,
325
- 'notefileID': notefileID,
326
- 'noteID': noteID
327
- };
328
- var queryParams = {};
329
- var headerParams = {};
330
- var formParams = {};
331
- var authNames = ['personalAccessToken'];
332
- var contentTypes = [];
333
- var accepts = ['application/json'];
334
- var returnType = null;
335
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
336
- }
337
-
338
- /**
339
- * Delete a note from a .db notefile
340
- * @param {String} projectOrProductUID
341
- * @param {String} deviceUID
342
- * @param {String} notefileID
343
- * @param {String} noteID
344
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
345
- */
346
- }, {
347
- key: "deleteDbNote",
348
- value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
349
- return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
287
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
288
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
350
289
  return response_and_data.data;
351
290
  });
352
291
  }
@@ -458,6 +397,66 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
458
397
  });
459
398
  }
460
399
 
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
+
461
460
  /**
462
461
  * Deletes Notefiles and the Notes they contain.
463
462
  * @param {String} projectOrProductUID
@@ -695,7 +694,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
695
694
  }
696
695
 
697
696
  /**
698
- * Get a note from a .db notefile
697
+ * Get a note from a .db or .qi notefile
699
698
  * @param {String} projectOrProductUID
700
699
  * @param {String} deviceUID
701
700
  * @param {String} notefileID
@@ -746,7 +745,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
746
745
  }
747
746
 
748
747
  /**
749
- * Get a note from a .db notefile
748
+ * Get a note from a .db or .qi notefile
750
749
  * @param {String} projectOrProductUID
751
750
  * @param {String} deviceUID
752
751
  * @param {String} notefileID
@@ -1418,10 +1417,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1418
1417
  * @param {String} deviceUID
1419
1418
  * @param {String} notefileID
1420
1419
  * @param {Object} opts Optional parameters
1421
- * @param {String} opts.tracker The change tracker ID.
1422
1420
  * @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
1421
  * @param {Boolean} opts.deleted true to return deleted notes.
1426
1422
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1427
1423
  * @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 +1445,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1449
1445
  'notefileID': notefileID
1450
1446
  };
1451
1447
  var queryParams = {
1452
- 'tracker': opts['tracker'],
1453
1448
  'max': opts['max'],
1454
- 'start': opts['start'],
1455
- 'stop': opts['stop'],
1456
1449
  'deleted': opts['deleted'],
1457
1450
  'delete': opts['_delete']
1458
1451
  };
@@ -1462,7 +1455,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1455
  var contentTypes = [];
1463
1456
  var accepts = ['application/json'];
1464
1457
  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);
1458
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1466
1459
  }
1467
1460
 
1468
1461
  /**
@@ -1471,10 +1464,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1471
1464
  * @param {String} deviceUID
1472
1465
  * @param {String} notefileID
1473
1466
  * @param {Object} opts Optional parameters
1474
- * @param {String} opts.tracker The change tracker ID.
1475
1467
  * @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
1468
  * @param {Boolean} opts.deleted true to return deleted notes.
1479
1469
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1480
1470
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1492,9 +1482,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1492
1482
  * @param {String} projectOrProductUID
1493
1483
  * @param {String} deviceUID
1494
1484
  * @param {Object} opts Optional parameters
1495
- * @param {String} opts.tracker The change tracker ID.
1496
1485
  * @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
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
1498
1488
  */
1499
1489
  }, {
1500
1490
  key: "listNotefilesWithHttpInfo",
@@ -1514,16 +1504,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1504
  'deviceUID': deviceUID
1515
1505
  };
1516
1506
  var queryParams = {
1517
- 'tracker': opts['tracker'],
1518
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1507
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1508
+ 'pending': opts['pending']
1519
1509
  };
1520
1510
  var headerParams = {};
1521
1511
  var formParams = {};
1522
1512
  var authNames = ['personalAccessToken'];
1523
1513
  var contentTypes = [];
1524
1514
  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);
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);
1527
1517
  }
1528
1518
 
1529
1519
  /**
@@ -1531,9 +1521,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1531
1521
  * @param {String} projectOrProductUID
1532
1522
  * @param {String} deviceUID
1533
1523
  * @param {Object} opts Optional parameters
1534
- * @param {String} opts.tracker The change tracker ID.
1535
1524
  * @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}
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>}
1537
1527
  */
1538
1528
  }, {
1539
1529
  key: "listNotefiles",
@@ -1543,52 +1533,6 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1543
1533
  });
1544
1534
  }
1545
1535
 
1546
- /**
1547
- * Lists .qi and .db files that are pending sync to the Notecard
1548
- * @param {String} projectOrProductUID
1549
- * @param {String} deviceUID
1550
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1551
- */
1552
- }, {
1553
- key: "listPendingNotefilesWithHttpInfo",
1554
- value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1555
- var postBody = null;
1556
- // verify the required parameter 'projectOrProductUID' is set
1557
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1558
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1559
- }
1560
- // verify the required parameter 'deviceUID' is set
1561
- if (deviceUID === undefined || deviceUID === null) {
1562
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1563
- }
1564
- var pathParams = {
1565
- 'projectOrProductUID': projectOrProductUID,
1566
- 'deviceUID': deviceUID
1567
- };
1568
- var queryParams = {};
1569
- var headerParams = {};
1570
- var formParams = {};
1571
- var authNames = ['personalAccessToken'];
1572
- var contentTypes = [];
1573
- var accepts = ['application/json'];
1574
- var returnType = _ListPendingNotefiles200Response["default"];
1575
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1576
- }
1577
-
1578
- /**
1579
- * Lists .qi and .db files that are pending sync to the Notecard
1580
- * @param {String} projectOrProductUID
1581
- * @param {String} deviceUID
1582
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1583
- */
1584
- }, {
1585
- key: "listPendingNotefiles",
1586
- value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1587
- return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1588
- return response_and_data.data;
1589
- });
1590
- }
1591
-
1592
1536
  /**
1593
1537
  * Provision Device for a Project
1594
1538
  * @param {String} projectOrProductUID
@@ -1694,18 +1638,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1638
  }
1695
1639
 
1696
1640
  /**
1697
- * Update a note in a .db notefile
1641
+ * Update a note in a .db or .qi notefile
1698
1642
  * @param {String} projectOrProductUID
1699
1643
  * @param {String} deviceUID
1700
1644
  * @param {String} notefileID
1701
1645
  * @param {String} noteID
1702
- * @param {module:model/Note} note Body or payload of note to be added to the device
1646
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1703
1647
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1704
1648
  */
1705
1649
  }, {
1706
1650
  key: "updateDbNoteWithHttpInfo",
1707
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
- var postBody = note;
1651
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1652
+ var postBody = noteInput;
1709
1653
  // verify the required parameter 'projectOrProductUID' is set
1710
1654
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1711
1655
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1722,9 +1666,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1722
1666
  if (noteID === undefined || noteID === null) {
1723
1667
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1724
1668
  }
1725
- // verify the required parameter 'note' is set
1726
- if (note === undefined || note === null) {
1727
- throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
1669
+ // verify the required parameter 'noteInput' is set
1670
+ if (noteInput === undefined || noteInput === null) {
1671
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1728
1672
  }
1729
1673
  var pathParams = {
1730
1674
  'projectOrProductUID': projectOrProductUID,
@@ -1743,18 +1687,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1743
1687
  }
1744
1688
 
1745
1689
  /**
1746
- * Update a note in a .db notefile
1690
+ * Update a note in a .db or .qi notefile
1747
1691
  * @param {String} projectOrProductUID
1748
1692
  * @param {String} deviceUID
1749
1693
  * @param {String} notefileID
1750
1694
  * @param {String} noteID
1751
- * @param {module:model/Note} note Body or payload of note to be added to the device
1695
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1696
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1753
1697
  */
1754
1698
  }, {
1755
1699
  key: "updateDbNote",
1756
- value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1757
- return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1700
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1701
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1758
1702
  return response_and_data.data;
1759
1703
  });
1760
1704
  }
@@ -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.20
33
+ * @version 2.3.0-beta.21
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.20
32
+ * @version 2.3.0-beta.21
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.20
32
+ * @version 2.3.0-beta.21
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.20
53
+ * @version 2.3.0-beta.21
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.20
33
+ * @version 2.3.0-beta.21
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.20
33
+ * @version 2.3.0-beta.21
34
34
  */
35
35
  var UsageApi = 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
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 2.3.0-beta.20
32
+ * @version 2.3.0-beta.21
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**