@blues-inc/notehub-js 3.0.0 → 4.0.0-beta.1

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 (146) hide show
  1. package/README.md +247 -247
  2. package/dist/ApiClient.js +150 -155
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +471 -511
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +381 -381
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +117 -51
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +21 -14
  15. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  16. package/dist/model/Alert.js +76 -74
  17. package/dist/model/AlertDataInner.js +35 -35
  18. package/dist/model/AlertNotificationsInner.js +18 -18
  19. package/dist/model/AwsRoute.js +65 -65
  20. package/dist/model/AzureRoute.js +43 -43
  21. package/dist/model/BillingAccount.js +21 -21
  22. package/dist/model/BillingAccountRole.js +9 -9
  23. package/dist/model/BlynkRoute.js +28 -28
  24. package/dist/model/Body.js +5 -5
  25. package/dist/model/CellularPlan.js +34 -34
  26. package/dist/model/CloneProjectRequest.js +20 -20
  27. package/dist/model/Contact.js +22 -22
  28. package/dist/model/CreateFleetRequest.js +25 -17
  29. package/dist/model/CreateMonitor.js +126 -125
  30. package/dist/model/CreateProductRequest.js +22 -22
  31. package/dist/model/CreateProjectRequest.js +16 -16
  32. package/dist/model/CreateUpdateRepository.js +17 -17
  33. package/dist/model/CurrentFirmware.js +12 -12
  34. package/dist/model/DFUEnv.js +12 -12
  35. package/dist/model/DFUState.js +65 -65
  36. package/dist/model/DataField.js +7 -7
  37. package/dist/model/DataSetField.js +19 -19
  38. package/dist/model/DataUsage.js +14 -14
  39. package/dist/model/DatacakeRoute.js +35 -35
  40. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  41. package/dist/model/DeleteNotefilesRequest.js +7 -7
  42. package/dist/model/Device.js +115 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  45. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  46. package/dist/model/DeviceDfuStateMachine.js +25 -24
  47. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  48. package/dist/model/DeviceDfuStatus.js +20 -20
  49. package/dist/model/DeviceDfuStatusPage.js +13 -12
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +69 -67
  56. package/dist/model/EnvVar.js +18 -18
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/Filter.js +16 -16
  61. package/dist/model/Firmware.js +49 -49
  62. package/dist/model/FirmwareInfo.js +60 -60
  63. package/dist/model/Fleet.js +43 -35
  64. package/dist/model/FleetConnectivityAssurance.js +8 -31
  65. package/dist/model/GetAlerts200Response.js +15 -14
  66. package/dist/model/GetBillingAccounts200Response.js +10 -9
  67. package/dist/model/GetDataUsage200Response.js +10 -9
  68. package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
  69. package/dist/model/GetDbNote200Response.js +13 -13
  70. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  71. package/dist/model/GetDeviceFleets200Response.js +12 -11
  72. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  73. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  74. package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
  75. package/dist/model/GetDevicePlans200Response.js +10 -9
  76. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  77. package/dist/model/GetDevicePublicKeys200Response.js +17 -16
  78. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  79. package/dist/model/GetDeviceSessions200Response.js +17 -16
  80. package/dist/model/GetDevices200Response.js +17 -16
  81. package/dist/model/GetEvents200Response.js +21 -20
  82. package/dist/model/GetEventsByCursor200Response.js +24 -23
  83. package/dist/model/GetNotefile200Response.js +11 -11
  84. package/dist/model/GetProducts200Response.js +10 -9
  85. package/dist/model/GetProjectMembers200Response.js +12 -11
  86. package/dist/model/GetProjects200Response.js +10 -9
  87. package/dist/model/GetRouteLogsUsage200Response.js +132 -0
  88. package/dist/model/GetSessionsUsage200Response.js +12 -11
  89. package/dist/model/GetWebhooks200Response.js +10 -9
  90. package/dist/model/GoogleRoute.js +33 -33
  91. package/dist/model/HttpRoute.js +35 -35
  92. package/dist/model/Location.js +40 -40
  93. package/dist/model/Login200Response.js +7 -7
  94. package/dist/model/LoginRequest.js +12 -12
  95. package/dist/model/Monitor.js +100 -99
  96. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  97. package/dist/model/MqttRoute.js +68 -68
  98. package/dist/model/Note.js +95 -15
  99. package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
  100. package/dist/model/Notefile.js +159 -0
  101. package/dist/model/NotefileSchema.js +19 -18
  102. package/dist/model/NotehubRoute.js +103 -103
  103. package/dist/model/NotehubRouteSummary.js +23 -23
  104. package/dist/model/OAuth2Error.js +20 -20
  105. package/dist/model/OAuth2TokenResponse.js +23 -23
  106. package/dist/model/PersonalAccessToken.js +34 -34
  107. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  108. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  109. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  110. package/dist/model/Product.js +26 -26
  111. package/dist/model/Project.js +34 -34
  112. package/dist/model/ProjectMember.js +22 -22
  113. package/dist/model/ProvisionDeviceRequest.js +18 -18
  114. package/dist/model/ProxyRoute.js +29 -29
  115. package/dist/model/QubitroRoute.js +33 -33
  116. package/dist/model/RadRoute.js +31 -31
  117. package/dist/model/Repository.js +22 -22
  118. package/dist/model/Role.js +9 -9
  119. package/dist/model/RouteLog.js +38 -38
  120. package/dist/model/RouteTransformSettings.js +18 -18
  121. package/dist/model/S3ArchiveRoute.js +79 -79
  122. package/dist/model/SatellitePlan.js +26 -26
  123. package/dist/model/SchemaProperty.js +38 -36
  124. package/dist/model/SignalDevice200Response.js +5 -5
  125. package/dist/model/SimUsage.js +19 -19
  126. package/dist/model/SlackBearerNotification.js +25 -25
  127. package/dist/model/SlackRoute.js +48 -48
  128. package/dist/model/SlackWebHookNotification.js +20 -20
  129. package/dist/model/SnowflakeRoute.js +45 -45
  130. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  131. package/dist/model/ThingworxRoute.js +33 -33
  132. package/dist/model/TowerLocation.js +54 -54
  133. package/dist/model/TwilioRoute.js +43 -43
  134. package/dist/model/UpdateFleetRequest.js +38 -30
  135. package/dist/model/UploadMetadata.js +64 -64
  136. package/dist/model/UsageData.js +18 -18
  137. package/dist/model/UsageEventsData.js +48 -37
  138. package/dist/model/UsageEventsResponse.js +12 -11
  139. package/dist/model/UsageRouteLogsData.js +27 -27
  140. package/dist/model/UsageSessionsData.js +41 -31
  141. package/dist/model/UserDfuStateMachine.js +20 -20
  142. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  143. package/dist/model/UserFirmwareInfo.js +12 -12
  144. package/dist/model/WebhookSettings.js +15 -15
  145. package/package.json +3 -3
  146. package/dist/model/ListPendingNotefiles200Response.js +0 -115
@@ -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 }; }
@@ -34,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
34
33
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
35
34
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
36
35
  * Notehub API
37
- * The OpenAPI definition for the Notehub.io API.
36
+ * The OpenAPI definition for the Notehub.io API.
38
37
  *
39
38
  * The version of the OpenAPI document: 1.2.0
40
39
  * Contact: engineering@blues.io
@@ -45,36 +44,36 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
45
44
  *
46
45
  */
47
46
  /**
48
- * Device service.
49
- * @module api/DeviceApi
50
- * @version 3.0.0
51
- */
47
+ * Device service.
48
+ * @module api/DeviceApi
49
+ * @version 4.0.0-beta.1
50
+ */
52
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
52
  /**
54
- * Constructs a new DeviceApi.
55
- * @alias module:api/DeviceApi
56
- * @class
57
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
- * default to {@link module:ApiClient#instance} if unspecified.
59
- */
53
+ * Constructs a new DeviceApi.
54
+ * @alias module:api/DeviceApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
60
59
  function DeviceApi(apiClient) {
61
60
  _classCallCheck(this, DeviceApi);
62
61
  this.apiClient = apiClient || _ApiClient["default"].instance;
63
62
  }
64
63
 
65
64
  /**
66
- * Add a Note to a .db notefile
67
- * @param {String} projectOrProductUID
68
- * @param {String} deviceUID
69
- * @param {String} notefileID
70
- * @param {String} noteID
71
- * @param {module:model/Note} note Body or payload of note to be added to the device
65
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
66
+ * @param {String} projectOrProductUID
67
+ * @param {String} deviceUID
68
+ * @param {String} notefileID
69
+ * @param {String} noteID
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,55 +90,55 @@ 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
- projectOrProductUID: projectOrProductUID,
100
- deviceUID: deviceUID,
101
- notefileID: notefileID,
102
- noteID: noteID
98
+ 'projectOrProductUID': projectOrProductUID,
99
+ 'deviceUID': deviceUID,
100
+ 'notefileID': notefileID,
101
+ 'noteID': noteID
103
102
  };
104
103
  var queryParams = {};
105
104
  var headerParams = {};
106
105
  var formParams = {};
107
- var authNames = ["personalAccessToken"];
108
- var contentTypes = ["application/json"];
109
- var accepts = ["application/json"];
106
+ var authNames = ['personalAccessToken'];
107
+ var contentTypes = ['application/json'];
108
+ var accepts = ['application/json'];
110
109
  var returnType = null;
111
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
110
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
112
111
  }
113
112
 
114
113
  /**
115
- * Add a Note to a .db notefile
116
- * @param {String} projectOrProductUID
117
- * @param {String} deviceUID
118
- * @param {String} notefileID
119
- * @param {String} noteID
120
- * @param {module:model/Note} note Body or payload of note to be added to the device
114
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
115
+ * @param {String} projectOrProductUID
116
+ * @param {String} deviceUID
117
+ * @param {String} notefileID
118
+ * @param {String} noteID
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
  }
130
129
 
131
130
  /**
132
131
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
133
- * @param {String} projectOrProductUID
134
- * @param {String} deviceUID
135
- * @param {String} notefileID
136
- * @param {module:model/Note} note Body or payload of note to be added to the device
132
+ * @param {String} projectOrProductUID
133
+ * @param {String} deviceUID
134
+ * @param {String} notefileID
135
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
137
136
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
138
137
  */
139
138
  }, {
140
139
  key: "addQiNoteWithHttpInfo",
141
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
142
- var postBody = note;
140
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
141
+ var postBody = noteInput;
143
142
  // verify the required parameter 'projectOrProductUID' is set
144
143
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
145
144
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
@@ -152,106 +151,46 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
152
151
  if (notefileID === undefined || notefileID === null) {
153
152
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
154
153
  }
155
- // verify the required parameter 'note' is set
156
- if (note === undefined || note === null) {
157
- throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
154
+ // verify the required parameter 'noteInput' is set
155
+ if (noteInput === undefined || noteInput === null) {
156
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
158
157
  }
159
158
  var pathParams = {
160
- projectOrProductUID: projectOrProductUID,
161
- deviceUID: deviceUID,
162
- notefileID: notefileID
159
+ 'projectOrProductUID': projectOrProductUID,
160
+ 'deviceUID': deviceUID,
161
+ 'notefileID': notefileID
163
162
  };
164
163
  var queryParams = {};
165
164
  var headerParams = {};
166
165
  var formParams = {};
167
- var authNames = ["personalAccessToken"];
168
- var contentTypes = ["application/json"];
169
- var accepts = ["application/json"];
166
+ var authNames = ['personalAccessToken'];
167
+ var contentTypes = ['application/json'];
168
+ var accepts = ['application/json'];
170
169
  var returnType = null;
171
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
170
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
172
171
  }
173
172
 
174
173
  /**
175
174
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
176
- * @param {String} projectOrProductUID
177
- * @param {String} deviceUID
178
- * @param {String} notefileID
179
- * @param {module:model/Note} note Body or payload of note to be added to the device
175
+ * @param {String} projectOrProductUID
176
+ * @param {String} deviceUID
177
+ * @param {String} notefileID
178
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
180
179
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
181
180
  */
182
181
  }, {
183
182
  key: "addQiNote",
184
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
185
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
186
- return response_and_data.data;
187
- });
188
- }
189
-
190
- /**
191
- * Delete a note from a .db notefile
192
- * @param {String} projectOrProductUID
193
- * @param {String} deviceUID
194
- * @param {String} notefileID
195
- * @param {String} noteID
196
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
197
- */
198
- }, {
199
- key: "deleteDbNoteWithHttpInfo",
200
- value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
201
- var postBody = null;
202
- // verify the required parameter 'projectOrProductUID' is set
203
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
204
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
205
- }
206
- // verify the required parameter 'deviceUID' is set
207
- if (deviceUID === undefined || deviceUID === null) {
208
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
209
- }
210
- // verify the required parameter 'notefileID' is set
211
- if (notefileID === undefined || notefileID === null) {
212
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
213
- }
214
- // verify the required parameter 'noteID' is set
215
- if (noteID === undefined || noteID === null) {
216
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
217
- }
218
- var pathParams = {
219
- projectOrProductUID: projectOrProductUID,
220
- deviceUID: deviceUID,
221
- notefileID: notefileID,
222
- noteID: noteID
223
- };
224
- var queryParams = {};
225
- var headerParams = {};
226
- var formParams = {};
227
- var authNames = ["personalAccessToken"];
228
- var contentTypes = [];
229
- var accepts = ["application/json"];
230
- var returnType = null;
231
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
232
- }
233
-
234
- /**
235
- * Delete a note from a .db notefile
236
- * @param {String} projectOrProductUID
237
- * @param {String} deviceUID
238
- * @param {String} notefileID
239
- * @param {String} noteID
240
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
241
- */
242
- }, {
243
- key: "deleteDbNote",
244
- value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
245
- return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
183
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
184
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
246
185
  return response_and_data.data;
247
186
  });
248
187
  }
249
188
 
250
189
  /**
251
190
  * Delete Device
252
- * @param {String} projectOrProductUID
253
- * @param {String} deviceUID
254
- * @param {Boolean} purge
191
+ * @param {String} projectOrProductUID
192
+ * @param {String} deviceUID
193
+ * @param {Boolean} purge
255
194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
256
195
  */
257
196
  }, {
@@ -271,26 +210,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
271
210
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
272
211
  }
273
212
  var pathParams = {
274
- projectOrProductUID: projectOrProductUID,
275
- deviceUID: deviceUID
213
+ 'projectOrProductUID': projectOrProductUID,
214
+ 'deviceUID': deviceUID
276
215
  };
277
216
  var queryParams = {
278
- purge: purge
217
+ 'purge': purge
279
218
  };
280
219
  var headerParams = {};
281
220
  var formParams = {};
282
- var authNames = ["personalAccessToken"];
221
+ var authNames = ['personalAccessToken'];
283
222
  var contentTypes = [];
284
- var accepts = ["application/json"];
223
+ var accepts = ['application/json'];
285
224
  var returnType = null;
286
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
287
226
  }
288
227
 
289
228
  /**
290
229
  * Delete Device
291
- * @param {String} projectOrProductUID
292
- * @param {String} deviceUID
293
- * @param {Boolean} purge
230
+ * @param {String} projectOrProductUID
231
+ * @param {String} deviceUID
232
+ * @param {Boolean} purge
294
233
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
295
234
  */
296
235
  }, {
@@ -303,8 +242,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
303
242
 
304
243
  /**
305
244
  * Delete environment variable of a device
306
- * @param {String} projectOrProductUID
307
- * @param {String} deviceUID
245
+ * @param {String} projectOrProductUID
246
+ * @param {String} deviceUID
308
247
  * @param {String} key The environment variable key to delete.
309
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
310
249
  */
@@ -325,24 +264,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
325
264
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
326
265
  }
327
266
  var pathParams = {
328
- projectOrProductUID: projectOrProductUID,
329
- deviceUID: deviceUID,
330
- key: key
267
+ 'projectOrProductUID': projectOrProductUID,
268
+ 'deviceUID': deviceUID,
269
+ 'key': key
331
270
  };
332
271
  var queryParams = {};
333
272
  var headerParams = {};
334
273
  var formParams = {};
335
- var authNames = ["personalAccessToken"];
274
+ var authNames = ['personalAccessToken'];
336
275
  var contentTypes = [];
337
- var accepts = ["application/json"];
276
+ var accepts = ['application/json'];
338
277
  var returnType = _EnvironmentVariables["default"];
339
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
278
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
279
  }
341
280
 
342
281
  /**
343
282
  * Delete environment variable of a device
344
- * @param {String} projectOrProductUID
345
- * @param {String} deviceUID
283
+ * @param {String} projectOrProductUID
284
+ * @param {String} deviceUID
346
285
  * @param {String} key The environment variable key to delete.
347
286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
348
287
  */
@@ -354,11 +293,71 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
354
293
  });
355
294
  }
356
295
 
296
+ /**
297
+ * Delete a note from a .db or .qi notefile
298
+ * @param {String} projectOrProductUID
299
+ * @param {String} deviceUID
300
+ * @param {String} notefileID
301
+ * @param {String} noteID
302
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
303
+ */
304
+ }, {
305
+ key: "deleteNoteWithHttpInfo",
306
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
307
+ var postBody = null;
308
+ // verify the required parameter 'projectOrProductUID' is set
309
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
310
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
311
+ }
312
+ // verify the required parameter 'deviceUID' is set
313
+ if (deviceUID === undefined || deviceUID === null) {
314
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
315
+ }
316
+ // verify the required parameter 'notefileID' is set
317
+ if (notefileID === undefined || notefileID === null) {
318
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
319
+ }
320
+ // verify the required parameter 'noteID' is set
321
+ if (noteID === undefined || noteID === null) {
322
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
323
+ }
324
+ var pathParams = {
325
+ 'projectOrProductUID': projectOrProductUID,
326
+ 'deviceUID': deviceUID,
327
+ 'notefileID': notefileID,
328
+ 'noteID': noteID
329
+ };
330
+ var queryParams = {};
331
+ var headerParams = {};
332
+ var formParams = {};
333
+ var authNames = ['personalAccessToken'];
334
+ var contentTypes = [];
335
+ var accepts = ['application/json'];
336
+ var returnType = null;
337
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
+ }
339
+
340
+ /**
341
+ * Delete a note from a .db or .qi notefile
342
+ * @param {String} projectOrProductUID
343
+ * @param {String} deviceUID
344
+ * @param {String} notefileID
345
+ * @param {String} noteID
346
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
347
+ */
348
+ }, {
349
+ key: "deleteNote",
350
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
351
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
352
+ return response_and_data.data;
353
+ });
354
+ }
355
+
357
356
  /**
358
357
  * Deletes Notefiles and the Notes they contain.
359
- * @param {String} projectOrProductUID
360
- * @param {String} deviceUID
361
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
358
+ * @param {String} projectOrProductUID
359
+ * @param {String} deviceUID
360
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
362
361
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
363
362
  */
364
363
  }, {
@@ -378,24 +377,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
378
377
  throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
379
378
  }
380
379
  var pathParams = {
381
- projectOrProductUID: projectOrProductUID,
382
- deviceUID: deviceUID
380
+ 'projectOrProductUID': projectOrProductUID,
381
+ 'deviceUID': deviceUID
383
382
  };
384
383
  var queryParams = {};
385
384
  var headerParams = {};
386
385
  var formParams = {};
387
- var authNames = ["personalAccessToken"];
388
- var contentTypes = ["application/json"];
389
- var accepts = ["application/json"];
386
+ var authNames = ['personalAccessToken'];
387
+ var contentTypes = ['application/json'];
388
+ var accepts = ['application/json'];
390
389
  var returnType = null;
391
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
390
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
392
391
  }
393
392
 
394
393
  /**
395
394
  * Deletes Notefiles and the Notes they contain.
396
- * @param {String} projectOrProductUID
397
- * @param {String} deviceUID
398
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
395
+ * @param {String} projectOrProductUID
396
+ * @param {String} deviceUID
397
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
399
398
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
400
399
  */
401
400
  }, {
@@ -408,8 +407,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
408
407
 
409
408
  /**
410
409
  * Disable Device
411
- * @param {String} projectOrProductUID
412
- * @param {String} deviceUID
410
+ * @param {String} projectOrProductUID
411
+ * @param {String} deviceUID
413
412
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
414
413
  */
415
414
  }, {
@@ -425,23 +424,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
425
424
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
426
425
  }
427
426
  var pathParams = {
428
- projectOrProductUID: projectOrProductUID,
429
- deviceUID: deviceUID
427
+ 'projectOrProductUID': projectOrProductUID,
428
+ 'deviceUID': deviceUID
430
429
  };
431
430
  var queryParams = {};
432
431
  var headerParams = {};
433
432
  var formParams = {};
434
- var authNames = ["personalAccessToken"];
433
+ var authNames = ['personalAccessToken'];
435
434
  var contentTypes = [];
436
- var accepts = ["application/json"];
435
+ var accepts = ['application/json'];
437
436
  var returnType = null;
438
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
437
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
439
438
  }
440
439
 
441
440
  /**
442
441
  * Disable Device
443
- * @param {String} projectOrProductUID
444
- * @param {String} deviceUID
442
+ * @param {String} projectOrProductUID
443
+ * @param {String} deviceUID
445
444
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
446
445
  */
447
446
  }, {
@@ -454,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
454
453
 
455
454
  /**
456
455
  * Disable Connectivity Assurance
457
- * @param {String} projectOrProductUID
458
- * @param {String} deviceUID
456
+ * @param {String} projectOrProductUID
457
+ * @param {String} deviceUID
459
458
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
460
459
  */
461
460
  }, {
@@ -471,23 +470,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
471
470
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
472
471
  }
473
472
  var pathParams = {
474
- projectOrProductUID: projectOrProductUID,
475
- deviceUID: deviceUID
473
+ 'projectOrProductUID': projectOrProductUID,
474
+ 'deviceUID': deviceUID
476
475
  };
477
476
  var queryParams = {};
478
477
  var headerParams = {};
479
478
  var formParams = {};
480
- var authNames = ["personalAccessToken"];
479
+ var authNames = ['personalAccessToken'];
481
480
  var contentTypes = [];
482
- var accepts = ["application/json"];
481
+ var accepts = ['application/json'];
483
482
  var returnType = null;
484
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
483
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
485
484
  }
486
485
 
487
486
  /**
488
487
  * Disable Connectivity Assurance
489
- * @param {String} projectOrProductUID
490
- * @param {String} deviceUID
488
+ * @param {String} projectOrProductUID
489
+ * @param {String} deviceUID
491
490
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
492
491
  */
493
492
  }, {
@@ -500,8 +499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
500
499
 
501
500
  /**
502
501
  * Enable Device
503
- * @param {String} projectOrProductUID
504
- * @param {String} deviceUID
502
+ * @param {String} projectOrProductUID
503
+ * @param {String} deviceUID
505
504
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
506
505
  */
507
506
  }, {
@@ -517,23 +516,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
517
516
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
518
517
  }
519
518
  var pathParams = {
520
- projectOrProductUID: projectOrProductUID,
521
- deviceUID: deviceUID
519
+ 'projectOrProductUID': projectOrProductUID,
520
+ 'deviceUID': deviceUID
522
521
  };
523
522
  var queryParams = {};
524
523
  var headerParams = {};
525
524
  var formParams = {};
526
- var authNames = ["personalAccessToken"];
525
+ var authNames = ['personalAccessToken'];
527
526
  var contentTypes = [];
528
- var accepts = ["application/json"];
527
+ var accepts = ['application/json'];
529
528
  var returnType = null;
530
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
529
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
531
530
  }
532
531
 
533
532
  /**
534
533
  * Enable Device
535
- * @param {String} projectOrProductUID
536
- * @param {String} deviceUID
534
+ * @param {String} projectOrProductUID
535
+ * @param {String} deviceUID
537
536
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
538
537
  */
539
538
  }, {
@@ -546,8 +545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
546
545
 
547
546
  /**
548
547
  * Enable Connectivity Assurance
549
- * @param {String} projectOrProductUID
550
- * @param {String} deviceUID
548
+ * @param {String} projectOrProductUID
549
+ * @param {String} deviceUID
551
550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
552
551
  */
553
552
  }, {
@@ -563,23 +562,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
563
562
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
564
563
  }
565
564
  var pathParams = {
566
- projectOrProductUID: projectOrProductUID,
567
- deviceUID: deviceUID
565
+ 'projectOrProductUID': projectOrProductUID,
566
+ 'deviceUID': deviceUID
568
567
  };
569
568
  var queryParams = {};
570
569
  var headerParams = {};
571
570
  var formParams = {};
572
- var authNames = ["personalAccessToken"];
571
+ var authNames = ['personalAccessToken'];
573
572
  var contentTypes = [];
574
- var accepts = ["application/json"];
573
+ var accepts = ['application/json'];
575
574
  var returnType = null;
576
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
575
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
577
576
  }
578
577
 
579
578
  /**
580
579
  * Enable Connectivity Assurance
581
- * @param {String} projectOrProductUID
582
- * @param {String} deviceUID
580
+ * @param {String} projectOrProductUID
581
+ * @param {String} deviceUID
583
582
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
584
583
  */
585
584
  }, {
@@ -591,11 +590,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
591
590
  }
592
591
 
593
592
  /**
594
- * Get a note from a .db notefile
595
- * @param {String} projectOrProductUID
596
- * @param {String} deviceUID
597
- * @param {String} notefileID
598
- * @param {String} noteID
593
+ * Get a note from a .db or .qi notefile
594
+ * @param {String} projectOrProductUID
595
+ * @param {String} deviceUID
596
+ * @param {String} notefileID
597
+ * @param {String} noteID
599
598
  * @param {Object} opts Optional parameters
600
599
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
601
600
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -623,30 +622,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
623
622
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
624
623
  }
625
624
  var pathParams = {
626
- projectOrProductUID: projectOrProductUID,
627
- deviceUID: deviceUID,
628
- notefileID: notefileID,
629
- noteID: noteID
625
+ 'projectOrProductUID': projectOrProductUID,
626
+ 'deviceUID': deviceUID,
627
+ 'notefileID': notefileID,
628
+ 'noteID': noteID
630
629
  };
631
630
  var queryParams = {
632
- "delete": opts["_delete"],
633
- deleted: opts["deleted"]
631
+ 'delete': opts['_delete'],
632
+ 'deleted': opts['deleted']
634
633
  };
635
634
  var headerParams = {};
636
635
  var formParams = {};
637
- var authNames = ["personalAccessToken"];
636
+ var authNames = ['personalAccessToken'];
638
637
  var contentTypes = [];
639
- var accepts = ["application/json"];
638
+ var accepts = ['application/json'];
640
639
  var returnType = _GetDbNote200Response["default"];
641
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
640
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
642
641
  }
643
642
 
644
643
  /**
645
- * Get a note from a .db notefile
646
- * @param {String} projectOrProductUID
647
- * @param {String} deviceUID
648
- * @param {String} notefileID
649
- * @param {String} noteID
644
+ * Get a note from a .db or .qi notefile
645
+ * @param {String} projectOrProductUID
646
+ * @param {String} deviceUID
647
+ * @param {String} notefileID
648
+ * @param {String} noteID
650
649
  * @param {Object} opts Optional parameters
651
650
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
652
651
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -662,8 +661,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
662
661
 
663
662
  /**
664
663
  * Get Device
665
- * @param {String} projectOrProductUID
666
- * @param {String} deviceUID
664
+ * @param {String} projectOrProductUID
665
+ * @param {String} deviceUID
667
666
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
668
667
  */
669
668
  }, {
@@ -679,23 +678,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
679
678
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
680
679
  }
681
680
  var pathParams = {
682
- projectOrProductUID: projectOrProductUID,
683
- deviceUID: deviceUID
681
+ 'projectOrProductUID': projectOrProductUID,
682
+ 'deviceUID': deviceUID
684
683
  };
685
684
  var queryParams = {};
686
685
  var headerParams = {};
687
686
  var formParams = {};
688
- var authNames = ["personalAccessToken"];
687
+ var authNames = ['personalAccessToken'];
689
688
  var contentTypes = [];
690
- var accepts = ["application/json"];
689
+ var accepts = ['application/json'];
691
690
  var returnType = _Device["default"];
692
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
691
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
693
692
  }
694
693
 
695
694
  /**
696
695
  * Get Device
697
- * @param {String} projectOrProductUID
698
- * @param {String} deviceUID
696
+ * @param {String} projectOrProductUID
697
+ * @param {String} deviceUID
699
698
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
700
699
  */
701
700
  }, {
@@ -708,8 +707,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
708
707
 
709
708
  /**
710
709
  * Get environment variable hierarchy for a device
711
- * @param {String} projectOrProductUID
712
- * @param {String} deviceUID
710
+ * @param {String} projectOrProductUID
711
+ * @param {String} deviceUID
713
712
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
714
713
  */
715
714
  }, {
@@ -725,23 +724,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
725
724
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
726
725
  }
727
726
  var pathParams = {
728
- projectOrProductUID: projectOrProductUID,
729
- deviceUID: deviceUID
727
+ 'projectOrProductUID': projectOrProductUID,
728
+ 'deviceUID': deviceUID
730
729
  };
731
730
  var queryParams = {};
732
731
  var headerParams = {};
733
732
  var formParams = {};
734
- var authNames = ["personalAccessToken"];
733
+ var authNames = ['personalAccessToken'];
735
734
  var contentTypes = [];
736
- var accepts = ["application/json"];
735
+ var accepts = ['application/json'];
737
736
  var returnType = _EnvTreeJsonNode["default"];
738
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
737
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
739
738
  }
740
739
 
741
740
  /**
742
741
  * Get environment variable hierarchy for a device
743
- * @param {String} projectOrProductUID
744
- * @param {String} deviceUID
742
+ * @param {String} projectOrProductUID
743
+ * @param {String} deviceUID
745
744
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
746
745
  */
747
746
  }, {
@@ -754,8 +753,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
754
753
 
755
754
  /**
756
755
  * Get environment variables of a device
757
- * @param {String} projectOrProductUID
758
- * @param {String} deviceUID
756
+ * @param {String} projectOrProductUID
757
+ * @param {String} deviceUID
759
758
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
760
759
  */
761
760
  }, {
@@ -771,23 +770,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
771
770
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
772
771
  }
773
772
  var pathParams = {
774
- projectOrProductUID: projectOrProductUID,
775
- deviceUID: deviceUID
773
+ 'projectOrProductUID': projectOrProductUID,
774
+ 'deviceUID': deviceUID
776
775
  };
777
776
  var queryParams = {};
778
777
  var headerParams = {};
779
778
  var formParams = {};
780
- var authNames = ["personalAccessToken"];
779
+ var authNames = ['personalAccessToken'];
781
780
  var contentTypes = [];
782
- var accepts = ["application/json"];
781
+ var accepts = ['application/json'];
783
782
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
784
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
783
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
785
784
  }
786
785
 
787
786
  /**
788
787
  * Get environment variables of a device
789
- * @param {String} projectOrProductUID
790
- * @param {String} deviceUID
788
+ * @param {String} projectOrProductUID
789
+ * @param {String} deviceUID
791
790
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
792
791
  */
793
792
  }, {
@@ -800,13 +799,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
800
799
 
801
800
  /**
802
801
  * Get environment variables of a device with device pin authorization
803
- * @param {String} productUID
804
- * @param {String} deviceUID
802
+ * @param {String} productUID
803
+ * @param {String} deviceUID
804
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
805
805
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
806
806
  */
807
807
  }, {
808
808
  key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
809
- value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
809
+ value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken) {
810
810
  var postBody = null;
811
811
  // verify the required parameter 'productUID' is set
812
812
  if (productUID === undefined || productUID === null) {
@@ -816,38 +816,45 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
816
816
  if (deviceUID === undefined || deviceUID === null) {
817
817
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
818
818
  }
819
+ // verify the required parameter 'xAuthToken' is set
820
+ if (xAuthToken === undefined || xAuthToken === null) {
821
+ throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
822
+ }
819
823
  var pathParams = {
820
- productUID: productUID,
821
- deviceUID: deviceUID
824
+ 'productUID': productUID,
825
+ 'deviceUID': deviceUID
822
826
  };
823
827
  var queryParams = {};
824
- var headerParams = {};
828
+ var headerParams = {
829
+ 'X-Auth-Token': xAuthToken
830
+ };
825
831
  var formParams = {};
826
- var authNames = ["pin"];
832
+ var authNames = [];
827
833
  var contentTypes = [];
828
- var accepts = ["application/json"];
834
+ var accepts = ['application/json'];
829
835
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
830
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
836
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
831
837
  }
832
838
 
833
839
  /**
834
840
  * Get environment variables of a device with device pin authorization
835
- * @param {String} productUID
836
- * @param {String} deviceUID
841
+ * @param {String} productUID
842
+ * @param {String} deviceUID
843
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
837
844
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
838
845
  */
839
846
  }, {
840
847
  key: "getDeviceEnvironmentVariablesByPin",
841
- value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
842
- return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
848
+ value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken) {
849
+ return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken).then(function (response_and_data) {
843
850
  return response_and_data.data;
844
851
  });
845
852
  }
846
853
 
847
854
  /**
848
855
  * Get Device Health Log
849
- * @param {String} projectOrProductUID
850
- * @param {String} deviceUID
856
+ * @param {String} projectOrProductUID
857
+ * @param {String} deviceUID
851
858
  * @param {Object} opts Optional parameters
852
859
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
853
860
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -868,27 +875,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
868
875
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
869
876
  }
870
877
  var pathParams = {
871
- projectOrProductUID: projectOrProductUID,
872
- deviceUID: deviceUID
878
+ 'projectOrProductUID': projectOrProductUID,
879
+ 'deviceUID': deviceUID
873
880
  };
874
881
  var queryParams = {
875
- startDate: opts["startDate"],
876
- endDate: opts["endDate"],
877
- log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
882
+ 'startDate': opts['startDate'],
883
+ 'endDate': opts['endDate'],
884
+ 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
878
885
  };
879
886
  var headerParams = {};
880
887
  var formParams = {};
881
- var authNames = ["personalAccessToken"];
888
+ var authNames = ['personalAccessToken'];
882
889
  var contentTypes = [];
883
- var accepts = ["application/json"];
890
+ var accepts = ['application/json'];
884
891
  var returnType = _GetDeviceHealthLog200Response["default"];
885
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
892
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
886
893
  }
887
894
 
888
895
  /**
889
896
  * Get Device Health Log
890
- * @param {String} projectOrProductUID
891
- * @param {String} deviceUID
897
+ * @param {String} projectOrProductUID
898
+ * @param {String} deviceUID
892
899
  * @param {Object} opts Optional parameters
893
900
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
894
901
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -905,8 +912,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
905
912
 
906
913
  /**
907
914
  * Get Device Latest Events
908
- * @param {String} projectOrProductUID
909
- * @param {String} deviceUID
915
+ * @param {String} projectOrProductUID
916
+ * @param {String} deviceUID
910
917
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
911
918
  */
912
919
  }, {
@@ -922,23 +929,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
922
929
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
923
930
  }
924
931
  var pathParams = {
925
- projectOrProductUID: projectOrProductUID,
926
- deviceUID: deviceUID
932
+ 'projectOrProductUID': projectOrProductUID,
933
+ 'deviceUID': deviceUID
927
934
  };
928
935
  var queryParams = {};
929
936
  var headerParams = {};
930
937
  var formParams = {};
931
- var authNames = ["personalAccessToken"];
938
+ var authNames = ['personalAccessToken'];
932
939
  var contentTypes = [];
933
- var accepts = ["application/json"];
940
+ var accepts = ['application/json'];
934
941
  var returnType = _GetDeviceLatestEvents200Response["default"];
935
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
942
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
936
943
  }
937
944
 
938
945
  /**
939
946
  * Get Device Latest Events
940
- * @param {String} projectOrProductUID
941
- * @param {String} deviceUID
947
+ * @param {String} projectOrProductUID
948
+ * @param {String} deviceUID
942
949
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
943
950
  */
944
951
  }, {
@@ -951,8 +958,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
951
958
 
952
959
  /**
953
960
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
954
- * @param {String} projectOrProductUID
955
- * @param {String} deviceUID
961
+ * @param {String} projectOrProductUID
962
+ * @param {String} deviceUID
956
963
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
957
964
  */
958
965
  }, {
@@ -968,23 +975,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
968
975
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
969
976
  }
970
977
  var pathParams = {
971
- projectOrProductUID: projectOrProductUID,
972
- deviceUID: deviceUID
978
+ 'projectOrProductUID': projectOrProductUID,
979
+ 'deviceUID': deviceUID
973
980
  };
974
981
  var queryParams = {};
975
982
  var headerParams = {};
976
983
  var formParams = {};
977
- var authNames = ["personalAccessToken"];
984
+ var authNames = ['personalAccessToken'];
978
985
  var contentTypes = [];
979
- var accepts = ["application/json"];
986
+ var accepts = ['application/json'];
980
987
  var returnType = _GetDevicePlans200Response["default"];
981
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
988
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
982
989
  }
983
990
 
984
991
  /**
985
992
  * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
986
- * @param {String} projectOrProductUID
987
- * @param {String} deviceUID
993
+ * @param {String} projectOrProductUID
994
+ * @param {String} deviceUID
988
995
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
989
996
  */
990
997
  }, {
@@ -997,8 +1004,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
997
1004
 
998
1005
  /**
999
1006
  * Get Device Public Key
1000
- * @param {String} projectOrProductUID
1001
- * @param {String} deviceUID
1007
+ * @param {String} projectOrProductUID
1008
+ * @param {String} deviceUID
1002
1009
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
1003
1010
  */
1004
1011
  }, {
@@ -1014,23 +1021,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1014
1021
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
1015
1022
  }
1016
1023
  var pathParams = {
1017
- projectOrProductUID: projectOrProductUID,
1018
- deviceUID: deviceUID
1024
+ 'projectOrProductUID': projectOrProductUID,
1025
+ 'deviceUID': deviceUID
1019
1026
  };
1020
1027
  var queryParams = {};
1021
1028
  var headerParams = {};
1022
1029
  var formParams = {};
1023
- var authNames = ["personalAccessToken"];
1030
+ var authNames = ['personalAccessToken'];
1024
1031
  var contentTypes = [];
1025
- var accepts = ["application/json"];
1032
+ var accepts = ['application/json'];
1026
1033
  var returnType = _GetDevicePublicKey200Response["default"];
1027
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1034
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1028
1035
  }
1029
1036
 
1030
1037
  /**
1031
1038
  * Get Device Public Key
1032
- * @param {String} projectOrProductUID
1033
- * @param {String} deviceUID
1039
+ * @param {String} projectOrProductUID
1040
+ * @param {String} deviceUID
1034
1041
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
1035
1042
  */
1036
1043
  }, {
@@ -1043,7 +1050,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1043
1050
 
1044
1051
  /**
1045
1052
  * Get Device Public Keys of a Project
1046
- * @param {String} projectOrProductUID
1053
+ * @param {String} projectOrProductUID
1047
1054
  * @param {Object} opts Optional parameters
1048
1055
  * @param {Number} opts.pageSize (default to 50)
1049
1056
  * @param {Number} opts.pageNum (default to 1)
@@ -1059,24 +1066,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1059
1066
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
1060
1067
  }
1061
1068
  var pathParams = {
1062
- projectOrProductUID: projectOrProductUID
1069
+ 'projectOrProductUID': projectOrProductUID
1063
1070
  };
1064
1071
  var queryParams = {
1065
- pageSize: opts["pageSize"],
1066
- pageNum: opts["pageNum"]
1072
+ 'pageSize': opts['pageSize'],
1073
+ 'pageNum': opts['pageNum']
1067
1074
  };
1068
1075
  var headerParams = {};
1069
1076
  var formParams = {};
1070
- var authNames = ["personalAccessToken"];
1077
+ var authNames = ['personalAccessToken'];
1071
1078
  var contentTypes = [];
1072
- var accepts = ["application/json"];
1079
+ var accepts = ['application/json'];
1073
1080
  var returnType = _GetDevicePublicKeys200Response["default"];
1074
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1081
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1075
1082
  }
1076
1083
 
1077
1084
  /**
1078
1085
  * Get Device Public Keys of a Project
1079
- * @param {String} projectOrProductUID
1086
+ * @param {String} projectOrProductUID
1080
1087
  * @param {Object} opts Optional parameters
1081
1088
  * @param {Number} opts.pageSize (default to 50)
1082
1089
  * @param {Number} opts.pageNum (default to 1)
@@ -1092,8 +1099,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1092
1099
 
1093
1100
  /**
1094
1101
  * Get Device Sessions
1095
- * @param {String} projectOrProductUID
1096
- * @param {String} deviceUID
1102
+ * @param {String} projectOrProductUID
1103
+ * @param {String} deviceUID
1097
1104
  * @param {Object} opts Optional parameters
1098
1105
  * @param {Number} opts.pageSize (default to 50)
1099
1106
  * @param {Number} opts.pageNum (default to 1)
@@ -1115,28 +1122,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1115
1122
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
1116
1123
  }
1117
1124
  var pathParams = {
1118
- projectOrProductUID: projectOrProductUID,
1119
- deviceUID: deviceUID
1125
+ 'projectOrProductUID': projectOrProductUID,
1126
+ 'deviceUID': deviceUID
1120
1127
  };
1121
1128
  var queryParams = {
1122
- pageSize: opts["pageSize"],
1123
- pageNum: opts["pageNum"],
1124
- startDate: opts["startDate"],
1125
- endDate: opts["endDate"]
1129
+ 'pageSize': opts['pageSize'],
1130
+ 'pageNum': opts['pageNum'],
1131
+ 'startDate': opts['startDate'],
1132
+ 'endDate': opts['endDate']
1126
1133
  };
1127
1134
  var headerParams = {};
1128
1135
  var formParams = {};
1129
- var authNames = ["personalAccessToken"];
1136
+ var authNames = ['personalAccessToken'];
1130
1137
  var contentTypes = [];
1131
- var accepts = ["application/json"];
1138
+ var accepts = ['application/json'];
1132
1139
  var returnType = _GetDeviceSessions200Response["default"];
1133
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1140
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1134
1141
  }
1135
1142
 
1136
1143
  /**
1137
1144
  * Get Device Sessions
1138
- * @param {String} projectOrProductUID
1139
- * @param {String} deviceUID
1145
+ * @param {String} projectOrProductUID
1146
+ * @param {String} deviceUID
1140
1147
  * @param {Object} opts Optional parameters
1141
1148
  * @param {Number} opts.pageSize (default to 50)
1142
1149
  * @param {Number} opts.pageNum (default to 1)
@@ -1154,18 +1161,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1154
1161
 
1155
1162
  /**
1156
1163
  * Get Devices of a Project
1157
- * @param {String} projectOrProductUID
1164
+ * @param {String} projectOrProductUID
1158
1165
  * @param {Object} opts Optional parameters
1159
1166
  * @param {Number} opts.pageSize (default to 50)
1160
1167
  * @param {Number} opts.pageNum (default to 1)
1161
1168
  * @param {Array.<String>} opts.deviceUID A Device UID.
1162
1169
  * @param {Array.<String>} opts.tag Tag filter
1163
1170
  * @param {Array.<String>} opts.serialNumber Serial number filter
1164
- * @param {Array.<String>} opts.fleetUID
1171
+ * @param {Array.<String>} opts.fleetUID
1165
1172
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1166
1173
  * @param {Array.<String>} opts.location Location filter
1167
1174
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1168
- * @param {Array.<String>} opts.productUID
1175
+ * @param {Array.<String>} opts.productUID
1169
1176
  * @param {Array.<String>} opts.sku SKU filter
1170
1177
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1171
1178
  */
@@ -1179,44 +1186,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1179
1186
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
1180
1187
  }
1181
1188
  var pathParams = {
1182
- projectOrProductUID: projectOrProductUID
1189
+ 'projectOrProductUID': projectOrProductUID
1183
1190
  };
1184
1191
  var queryParams = {
1185
- pageSize: opts["pageSize"],
1186
- pageNum: opts["pageNum"],
1187
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1188
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1189
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
1190
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
1191
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
1192
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
1193
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
1194
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
1195
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1192
+ 'pageSize': opts['pageSize'],
1193
+ 'pageNum': opts['pageNum'],
1194
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1195
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1196
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1197
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
1198
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1199
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1200
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1201
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1202
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1196
1203
  };
1197
1204
  var headerParams = {};
1198
1205
  var formParams = {};
1199
- var authNames = ["personalAccessToken"];
1206
+ var authNames = ['personalAccessToken'];
1200
1207
  var contentTypes = [];
1201
- var accepts = ["application/json"];
1208
+ var accepts = ['application/json'];
1202
1209
  var returnType = _GetDevices200Response["default"];
1203
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1210
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1204
1211
  }
1205
1212
 
1206
1213
  /**
1207
1214
  * Get Devices of a Project
1208
- * @param {String} projectOrProductUID
1215
+ * @param {String} projectOrProductUID
1209
1216
  * @param {Object} opts Optional parameters
1210
1217
  * @param {Number} opts.pageSize (default to 50)
1211
1218
  * @param {Number} opts.pageNum (default to 1)
1212
1219
  * @param {Array.<String>} opts.deviceUID A Device UID.
1213
1220
  * @param {Array.<String>} opts.tag Tag filter
1214
1221
  * @param {Array.<String>} opts.serialNumber Serial number filter
1215
- * @param {Array.<String>} opts.fleetUID
1222
+ * @param {Array.<String>} opts.fleetUID
1216
1223
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1217
1224
  * @param {Array.<String>} opts.location Location filter
1218
1225
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1219
- * @param {Array.<String>} opts.productUID
1226
+ * @param {Array.<String>} opts.productUID
1220
1227
  * @param {Array.<String>} opts.sku SKU filter
1221
1228
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1222
1229
  */
@@ -1230,8 +1237,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1230
1237
 
1231
1238
  /**
1232
1239
  * Get Devices of a Fleet within a Project
1233
- * @param {String} projectOrProductUID
1234
- * @param {String} fleetUID
1240
+ * @param {String} projectOrProductUID
1241
+ * @param {String} fleetUID
1235
1242
  * @param {Object} opts Optional parameters
1236
1243
  * @param {Number} opts.pageSize (default to 50)
1237
1244
  * @param {Number} opts.pageNum (default to 1)
@@ -1241,7 +1248,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1241
1248
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1242
1249
  * @param {Array.<String>} opts.location Location filter
1243
1250
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1244
- * @param {Array.<String>} opts.productUID
1251
+ * @param {Array.<String>} opts.productUID
1245
1252
  * @param {Array.<String>} opts.sku SKU filter
1246
1253
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1247
1254
  */
@@ -1259,34 +1266,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1259
1266
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
1260
1267
  }
1261
1268
  var pathParams = {
1262
- projectOrProductUID: projectOrProductUID,
1263
- fleetUID: fleetUID
1269
+ 'projectOrProductUID': projectOrProductUID,
1270
+ 'fleetUID': fleetUID
1264
1271
  };
1265
1272
  var queryParams = {
1266
- pageSize: opts["pageSize"],
1267
- pageNum: opts["pageNum"],
1268
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1269
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1270
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
1271
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
1272
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
1273
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
1274
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
1275
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
1273
+ 'pageSize': opts['pageSize'],
1274
+ 'pageNum': opts['pageNum'],
1275
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1276
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1277
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1278
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1279
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1280
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1281
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1282
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1276
1283
  };
1277
1284
  var headerParams = {};
1278
1285
  var formParams = {};
1279
- var authNames = ["personalAccessToken"];
1286
+ var authNames = ['personalAccessToken'];
1280
1287
  var contentTypes = [];
1281
- var accepts = ["application/json"];
1288
+ var accepts = ['application/json'];
1282
1289
  var returnType = _GetDevices200Response["default"];
1283
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1290
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1284
1291
  }
1285
1292
 
1286
1293
  /**
1287
1294
  * Get Devices of a Fleet within a Project
1288
- * @param {String} projectOrProductUID
1289
- * @param {String} fleetUID
1295
+ * @param {String} projectOrProductUID
1296
+ * @param {String} fleetUID
1290
1297
  * @param {Object} opts Optional parameters
1291
1298
  * @param {Number} opts.pageSize (default to 50)
1292
1299
  * @param {Number} opts.pageNum (default to 1)
@@ -1296,7 +1303,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1296
1303
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1297
1304
  * @param {Array.<String>} opts.location Location filter
1298
1305
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1299
- * @param {Array.<String>} opts.productUID
1306
+ * @param {Array.<String>} opts.productUID
1300
1307
  * @param {Array.<String>} opts.sku SKU filter
1301
1308
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1302
1309
  */
@@ -1310,14 +1317,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1310
1317
 
1311
1318
  /**
1312
1319
  * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1313
- * @param {String} projectOrProductUID
1314
- * @param {String} deviceUID
1315
- * @param {String} notefileID
1320
+ * @param {String} projectOrProductUID
1321
+ * @param {String} deviceUID
1322
+ * @param {String} notefileID
1316
1323
  * @param {Object} opts Optional parameters
1317
- * @param {String} opts.tracker The change tracker ID.
1318
1324
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1319
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1320
- * @param {Boolean} opts.stop true to delete the tracker.
1321
1325
  * @param {Boolean} opts.deleted true to return deleted notes.
1322
1326
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1323
1327
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
@@ -1340,37 +1344,31 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1340
1344
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
1341
1345
  }
1342
1346
  var pathParams = {
1343
- projectOrProductUID: projectOrProductUID,
1344
- deviceUID: deviceUID,
1345
- notefileID: notefileID
1347
+ 'projectOrProductUID': projectOrProductUID,
1348
+ 'deviceUID': deviceUID,
1349
+ 'notefileID': notefileID
1346
1350
  };
1347
1351
  var queryParams = {
1348
- tracker: opts["tracker"],
1349
- max: opts["max"],
1350
- start: opts["start"],
1351
- stop: opts["stop"],
1352
- deleted: opts["deleted"],
1353
- "delete": opts["_delete"]
1352
+ 'max': opts['max'],
1353
+ 'deleted': opts['deleted'],
1354
+ 'delete': opts['_delete']
1354
1355
  };
1355
1356
  var headerParams = {};
1356
1357
  var formParams = {};
1357
- var authNames = ["personalAccessToken"];
1358
+ var authNames = ['personalAccessToken'];
1358
1359
  var contentTypes = [];
1359
- var accepts = ["application/json"];
1360
+ var accepts = ['application/json'];
1360
1361
  var returnType = _GetNotefile200Response["default"];
1361
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1362
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1362
1363
  }
1363
1364
 
1364
1365
  /**
1365
1366
  * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1366
- * @param {String} projectOrProductUID
1367
- * @param {String} deviceUID
1368
- * @param {String} notefileID
1367
+ * @param {String} projectOrProductUID
1368
+ * @param {String} deviceUID
1369
+ * @param {String} notefileID
1369
1370
  * @param {Object} opts Optional parameters
1370
- * @param {String} opts.tracker The change tracker ID.
1371
1371
  * @param {Number} opts.max The maximum number of Notes to return in the request.
1372
- * @param {Boolean} opts.start true to reset the tracker to the beginning.
1373
- * @param {Boolean} opts.stop true to delete the tracker.
1374
1372
  * @param {Boolean} opts.deleted true to return deleted notes.
1375
1373
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1376
1374
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1385,12 +1383,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1385
1383
 
1386
1384
  /**
1387
1385
  * Lists .qi and .db files for the device
1388
- * @param {String} projectOrProductUID
1389
- * @param {String} deviceUID
1386
+ * @param {String} projectOrProductUID
1387
+ * @param {String} deviceUID
1390
1388
  * @param {Object} opts Optional parameters
1391
- * @param {String} opts.tracker The change tracker ID.
1392
1389
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1393
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListNotefiles200Response} and HTTP response
1390
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1391
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1394
1392
  */
1395
1393
  }, {
1396
1394
  key: "listNotefilesWithHttpInfo",
@@ -1406,30 +1404,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1406
1404
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
1407
1405
  }
1408
1406
  var pathParams = {
1409
- projectOrProductUID: projectOrProductUID,
1410
- deviceUID: deviceUID
1407
+ 'projectOrProductUID': projectOrProductUID,
1408
+ 'deviceUID': deviceUID
1411
1409
  };
1412
1410
  var queryParams = {
1413
- tracker: opts["tracker"],
1414
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1411
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1412
+ 'pending': opts['pending']
1415
1413
  };
1416
1414
  var headerParams = {};
1417
1415
  var formParams = {};
1418
- var authNames = ["personalAccessToken"];
1416
+ var authNames = ['personalAccessToken'];
1419
1417
  var contentTypes = [];
1420
- var accepts = ["application/json"];
1421
- var returnType = _ListNotefiles200Response["default"];
1422
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1418
+ var accepts = ['application/json'];
1419
+ var returnType = [_Notefile["default"]];
1420
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1423
1421
  }
1424
1422
 
1425
1423
  /**
1426
1424
  * Lists .qi and .db files for the device
1427
- * @param {String} projectOrProductUID
1428
- * @param {String} deviceUID
1425
+ * @param {String} projectOrProductUID
1426
+ * @param {String} deviceUID
1429
1427
  * @param {Object} opts Optional parameters
1430
- * @param {String} opts.tracker The change tracker ID.
1431
1428
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
1432
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListNotefiles200Response}
1429
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1430
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1433
1431
  */
1434
1432
  }, {
1435
1433
  key: "listNotefiles",
@@ -1439,56 +1437,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1439
1437
  });
1440
1438
  }
1441
1439
 
1442
- /**
1443
- * Lists .qi and .db files that are pending sync to the Notecard
1444
- * @param {String} projectOrProductUID
1445
- * @param {String} deviceUID
1446
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPendingNotefiles200Response} and HTTP response
1447
- */
1448
- }, {
1449
- key: "listPendingNotefilesWithHttpInfo",
1450
- value: function listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID) {
1451
- var postBody = null;
1452
- // verify the required parameter 'projectOrProductUID' is set
1453
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1454
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listPendingNotefiles");
1455
- }
1456
- // verify the required parameter 'deviceUID' is set
1457
- if (deviceUID === undefined || deviceUID === null) {
1458
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listPendingNotefiles");
1459
- }
1460
- var pathParams = {
1461
- projectOrProductUID: projectOrProductUID,
1462
- deviceUID: deviceUID
1463
- };
1464
- var queryParams = {};
1465
- var headerParams = {};
1466
- var formParams = {};
1467
- var authNames = ["personalAccessToken"];
1468
- var contentTypes = [];
1469
- var accepts = ["application/json"];
1470
- var returnType = _ListPendingNotefiles200Response["default"];
1471
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1472
- }
1473
-
1474
- /**
1475
- * Lists .qi and .db files that are pending sync to the Notecard
1476
- * @param {String} projectOrProductUID
1477
- * @param {String} deviceUID
1478
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPendingNotefiles200Response}
1479
- */
1480
- }, {
1481
- key: "listPendingNotefiles",
1482
- value: function listPendingNotefiles(projectOrProductUID, deviceUID) {
1483
- return this.listPendingNotefilesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1484
- return response_and_data.data;
1485
- });
1486
- }
1487
-
1488
1440
  /**
1489
1441
  * Provision Device for a Project
1490
- * @param {String} projectOrProductUID
1491
- * @param {String} deviceUID
1442
+ * @param {String} projectOrProductUID
1443
+ * @param {String} deviceUID
1492
1444
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1493
1445
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1494
1446
  */
@@ -1509,23 +1461,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1509
1461
  throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1510
1462
  }
1511
1463
  var pathParams = {
1512
- projectOrProductUID: projectOrProductUID,
1513
- deviceUID: deviceUID
1464
+ 'projectOrProductUID': projectOrProductUID,
1465
+ 'deviceUID': deviceUID
1514
1466
  };
1515
1467
  var queryParams = {};
1516
1468
  var headerParams = {};
1517
1469
  var formParams = {};
1518
- var authNames = ["personalAccessToken"];
1519
- var contentTypes = ["application/json"];
1520
- var accepts = ["application/json"];
1470
+ var authNames = ['personalAccessToken'];
1471
+ var contentTypes = ['application/json'];
1472
+ var accepts = ['application/json'];
1521
1473
  var returnType = Object;
1522
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1474
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1523
1475
  }
1524
1476
 
1525
1477
  /**
1526
1478
  * Provision Device for a Project
1527
- * @param {String} projectOrProductUID
1528
- * @param {String} deviceUID
1479
+ * @param {String} projectOrProductUID
1480
+ * @param {String} deviceUID
1529
1481
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1530
1482
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1531
1483
  */
@@ -1539,8 +1491,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1539
1491
 
1540
1492
  /**
1541
1493
  * Set environment variables of a device
1542
- * @param {String} projectOrProductUID
1543
- * @param {String} deviceUID
1494
+ * @param {String} projectOrProductUID
1495
+ * @param {String} deviceUID
1544
1496
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1545
1497
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1546
1498
  */
@@ -1561,23 +1513,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1561
1513
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1562
1514
  }
1563
1515
  var pathParams = {
1564
- projectOrProductUID: projectOrProductUID,
1565
- deviceUID: deviceUID
1516
+ 'projectOrProductUID': projectOrProductUID,
1517
+ 'deviceUID': deviceUID
1566
1518
  };
1567
1519
  var queryParams = {};
1568
1520
  var headerParams = {};
1569
1521
  var formParams = {};
1570
- var authNames = ["personalAccessToken"];
1571
- var contentTypes = ["application/json"];
1572
- var accepts = ["application/json"];
1522
+ var authNames = ['personalAccessToken'];
1523
+ var contentTypes = ['application/json'];
1524
+ var accepts = ['application/json'];
1573
1525
  var returnType = _EnvironmentVariables["default"];
1574
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1526
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1575
1527
  }
1576
1528
 
1577
1529
  /**
1578
1530
  * Set environment variables of a device
1579
- * @param {String} projectOrProductUID
1580
- * @param {String} deviceUID
1531
+ * @param {String} projectOrProductUID
1532
+ * @param {String} deviceUID
1581
1533
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1582
1534
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1583
1535
  */
@@ -1591,14 +1543,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1591
1543
 
1592
1544
  /**
1593
1545
  * Set environment variables of a device with device pin authorization
1594
- * @param {String} productUID
1595
- * @param {String} deviceUID
1546
+ * @param {String} productUID
1547
+ * @param {String} deviceUID
1548
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1596
1549
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
1550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
1551
  */
1599
1552
  }, {
1600
1553
  key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1601
- value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1554
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables) {
1602
1555
  var postBody = environmentVariables;
1603
1556
  // verify the required parameter 'productUID' is set
1604
1557
  if (productUID === undefined || productUID === null) {
@@ -1608,43 +1561,50 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1608
1561
  if (deviceUID === undefined || deviceUID === null) {
1609
1562
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1610
1563
  }
1564
+ // verify the required parameter 'xAuthToken' is set
1565
+ if (xAuthToken === undefined || xAuthToken === null) {
1566
+ throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling setDeviceEnvironmentVariablesByPin");
1567
+ }
1611
1568
  // verify the required parameter 'environmentVariables' is set
1612
1569
  if (environmentVariables === undefined || environmentVariables === null) {
1613
1570
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1614
1571
  }
1615
1572
  var pathParams = {
1616
- productUID: productUID,
1617
- deviceUID: deviceUID
1573
+ 'productUID': productUID,
1574
+ 'deviceUID': deviceUID
1618
1575
  };
1619
1576
  var queryParams = {};
1620
- var headerParams = {};
1577
+ var headerParams = {
1578
+ 'X-Auth-Token': xAuthToken
1579
+ };
1621
1580
  var formParams = {};
1622
- var authNames = ["pin"];
1623
- var contentTypes = ["application/json"];
1624
- var accepts = ["application/json"];
1581
+ var authNames = [];
1582
+ var contentTypes = ['application/json'];
1583
+ var accepts = ['application/json'];
1625
1584
  var returnType = _EnvironmentVariables["default"];
1626
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1585
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1627
1586
  }
1628
1587
 
1629
1588
  /**
1630
1589
  * Set environment variables of a device with device pin authorization
1631
- * @param {String} productUID
1632
- * @param {String} deviceUID
1590
+ * @param {String} productUID
1591
+ * @param {String} deviceUID
1592
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1633
1593
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
1594
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
1595
  */
1636
1596
  }, {
1637
1597
  key: "setDeviceEnvironmentVariablesByPin",
1638
- value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1639
- return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1598
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken, environmentVariables) {
1599
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables).then(function (response_and_data) {
1640
1600
  return response_and_data.data;
1641
1601
  });
1642
1602
  }
1643
1603
 
1644
1604
  /**
1645
1605
  * Send a signal from Notehub to a Notecard.
1646
- * @param {String} projectOrProductUID
1647
- * @param {String} deviceUID
1606
+ * @param {String} projectOrProductUID
1607
+ * @param {String} deviceUID
1648
1608
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1649
1609
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1650
1610
  */
@@ -1665,23 +1625,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1665
1625
  throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1666
1626
  }
1667
1627
  var pathParams = {
1668
- projectOrProductUID: projectOrProductUID,
1669
- deviceUID: deviceUID
1628
+ 'projectOrProductUID': projectOrProductUID,
1629
+ 'deviceUID': deviceUID
1670
1630
  };
1671
1631
  var queryParams = {};
1672
1632
  var headerParams = {};
1673
1633
  var formParams = {};
1674
- var authNames = ["personalAccessToken"];
1675
- var contentTypes = ["application/json"];
1676
- var accepts = ["application/json"];
1634
+ var authNames = ['personalAccessToken'];
1635
+ var contentTypes = ['application/json'];
1636
+ var accepts = ['application/json'];
1677
1637
  var returnType = _SignalDevice200Response["default"];
1678
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1638
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1679
1639
  }
1680
1640
 
1681
1641
  /**
1682
1642
  * Send a signal from Notehub to a Notecard.
1683
- * @param {String} projectOrProductUID
1684
- * @param {String} deviceUID
1643
+ * @param {String} projectOrProductUID
1644
+ * @param {String} deviceUID
1685
1645
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1686
1646
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1687
1647
  */
@@ -1694,18 +1654,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1654
  }
1695
1655
 
1696
1656
  /**
1697
- * Update a note in a .db notefile
1698
- * @param {String} projectOrProductUID
1699
- * @param {String} deviceUID
1700
- * @param {String} notefileID
1701
- * @param {String} noteID
1702
- * @param {module:model/Note} note Body or payload of note to be added to the device
1657
+ * Update a note in a .db or .qi notefile
1658
+ * @param {String} projectOrProductUID
1659
+ * @param {String} deviceUID
1660
+ * @param {String} notefileID
1661
+ * @param {String} noteID
1662
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1703
1663
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1704
1664
  */
1705
1665
  }, {
1706
1666
  key: "updateDbNoteWithHttpInfo",
1707
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
- var postBody = note;
1667
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1668
+ var postBody = noteInput;
1709
1669
  // verify the required parameter 'projectOrProductUID' is set
1710
1670
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1711
1671
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1722,39 +1682,39 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1722
1682
  if (noteID === undefined || noteID === null) {
1723
1683
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1724
1684
  }
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");
1685
+ // verify the required parameter 'noteInput' is set
1686
+ if (noteInput === undefined || noteInput === null) {
1687
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1728
1688
  }
1729
1689
  var pathParams = {
1730
- projectOrProductUID: projectOrProductUID,
1731
- deviceUID: deviceUID,
1732
- notefileID: notefileID,
1733
- noteID: noteID
1690
+ 'projectOrProductUID': projectOrProductUID,
1691
+ 'deviceUID': deviceUID,
1692
+ 'notefileID': notefileID,
1693
+ 'noteID': noteID
1734
1694
  };
1735
1695
  var queryParams = {};
1736
1696
  var headerParams = {};
1737
1697
  var formParams = {};
1738
- var authNames = ["personalAccessToken"];
1739
- var contentTypes = ["application/json"];
1740
- var accepts = ["application/json"];
1698
+ var authNames = ['personalAccessToken'];
1699
+ var contentTypes = ['application/json'];
1700
+ var accepts = ['application/json'];
1741
1701
  var returnType = null;
1742
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1702
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1743
1703
  }
1744
1704
 
1745
1705
  /**
1746
- * Update a note in a .db notefile
1747
- * @param {String} projectOrProductUID
1748
- * @param {String} deviceUID
1749
- * @param {String} notefileID
1750
- * @param {String} noteID
1751
- * @param {module:model/Note} note Body or payload of note to be added to the device
1706
+ * Update a note in a .db or .qi notefile
1707
+ * @param {String} projectOrProductUID
1708
+ * @param {String} deviceUID
1709
+ * @param {String} notefileID
1710
+ * @param {String} noteID
1711
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1712
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1753
1713
  */
1754
1714
  }, {
1755
1715
  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) {
1716
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1717
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1758
1718
  return response_and_data.data;
1759
1719
  });
1760
1720
  }