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

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 +469 -517
  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 +40 -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 +139 -131
  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 +50 -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 +106 -100
  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.10
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,213 +151,205 @@ 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) {
183
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
184
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
186
185
  return response_and_data.data;
187
186
  });
188
187
  }
189
188
 
190
189
  /**
191
- * Delete a note from a .db notefile
192
- * @param {String} projectOrProductUID
193
- * @param {String} deviceUID
194
- * @param {String} notefileID
195
- * @param {String} noteID
190
+ * Delete Device
191
+ * @param {String} projectOrProductUID
192
+ * @param {String} deviceUID
196
193
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
197
194
  */
198
195
  }, {
199
- key: "deleteDbNoteWithHttpInfo",
200
- value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
196
+ key: "deleteDeviceWithHttpInfo",
197
+ value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
201
198
  var postBody = null;
202
199
  // verify the required parameter 'projectOrProductUID' is set
203
200
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
204
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
201
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDevice");
205
202
  }
206
203
  // verify the required parameter 'deviceUID' is set
207
204
  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");
205
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
217
206
  }
218
207
  var pathParams = {
219
- projectOrProductUID: projectOrProductUID,
220
- deviceUID: deviceUID,
221
- notefileID: notefileID,
222
- noteID: noteID
208
+ 'projectOrProductUID': projectOrProductUID,
209
+ 'deviceUID': deviceUID
223
210
  };
224
211
  var queryParams = {};
225
212
  var headerParams = {};
226
213
  var formParams = {};
227
- var authNames = ["personalAccessToken"];
214
+ var authNames = ['personalAccessToken'];
228
215
  var contentTypes = [];
229
- var accepts = ["application/json"];
216
+ var accepts = ['application/json'];
230
217
  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);
218
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
232
219
  }
233
220
 
234
221
  /**
235
- * Delete a note from a .db notefile
236
- * @param {String} projectOrProductUID
237
- * @param {String} deviceUID
238
- * @param {String} notefileID
239
- * @param {String} noteID
222
+ * Delete Device
223
+ * @param {String} projectOrProductUID
224
+ * @param {String} deviceUID
240
225
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
241
226
  */
242
227
  }, {
243
- key: "deleteDbNote",
244
- value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
245
- return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
228
+ key: "deleteDevice",
229
+ value: function deleteDevice(projectOrProductUID, deviceUID) {
230
+ return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
246
231
  return response_and_data.data;
247
232
  });
248
233
  }
249
234
 
250
235
  /**
251
- * Delete Device
252
- * @param {String} projectOrProductUID
253
- * @param {String} deviceUID
254
- * @param {Boolean} purge
255
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
236
+ * Delete environment variable of a device
237
+ * @param {String} projectOrProductUID
238
+ * @param {String} deviceUID
239
+ * @param {String} key The environment variable key to delete.
240
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
256
241
  */
257
242
  }, {
258
- key: "deleteDeviceWithHttpInfo",
259
- value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
243
+ key: "deleteDeviceEnvironmentVariableWithHttpInfo",
244
+ value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
260
245
  var postBody = null;
261
246
  // verify the required parameter 'projectOrProductUID' is set
262
247
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
263
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDevice");
248
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
264
249
  }
265
250
  // verify the required parameter 'deviceUID' is set
266
251
  if (deviceUID === undefined || deviceUID === null) {
267
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
252
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
268
253
  }
269
- // verify the required parameter 'purge' is set
270
- if (purge === undefined || purge === null) {
271
- throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
254
+ // verify the required parameter 'key' is set
255
+ if (key === undefined || key === null) {
256
+ throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
272
257
  }
273
258
  var pathParams = {
274
- projectOrProductUID: projectOrProductUID,
275
- deviceUID: deviceUID
276
- };
277
- var queryParams = {
278
- purge: purge
259
+ 'projectOrProductUID': projectOrProductUID,
260
+ 'deviceUID': deviceUID,
261
+ 'key': key
279
262
  };
263
+ var queryParams = {};
280
264
  var headerParams = {};
281
265
  var formParams = {};
282
- var authNames = ["personalAccessToken"];
266
+ var authNames = ['personalAccessToken'];
283
267
  var contentTypes = [];
284
- var accepts = ["application/json"];
285
- var returnType = null;
286
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
268
+ var accepts = ['application/json'];
269
+ var returnType = _EnvironmentVariables["default"];
270
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
287
271
  }
288
272
 
289
273
  /**
290
- * Delete Device
291
- * @param {String} projectOrProductUID
292
- * @param {String} deviceUID
293
- * @param {Boolean} purge
294
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
274
+ * Delete environment variable of a device
275
+ * @param {String} projectOrProductUID
276
+ * @param {String} deviceUID
277
+ * @param {String} key The environment variable key to delete.
278
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
295
279
  */
296
280
  }, {
297
- key: "deleteDevice",
298
- value: function deleteDevice(projectOrProductUID, deviceUID, purge) {
299
- return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
281
+ key: "deleteDeviceEnvironmentVariable",
282
+ value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
283
+ return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
300
284
  return response_and_data.data;
301
285
  });
302
286
  }
303
287
 
304
288
  /**
305
- * Delete environment variable of a device
306
- * @param {String} projectOrProductUID
307
- * @param {String} deviceUID
308
- * @param {String} key The environment variable key to delete.
309
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
289
+ * Delete a note from a .db or .qi notefile
290
+ * @param {String} projectOrProductUID
291
+ * @param {String} deviceUID
292
+ * @param {String} notefileID
293
+ * @param {String} noteID
294
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
310
295
  */
311
296
  }, {
312
- key: "deleteDeviceEnvironmentVariableWithHttpInfo",
313
- value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
297
+ key: "deleteNoteWithHttpInfo",
298
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
314
299
  var postBody = null;
315
300
  // verify the required parameter 'projectOrProductUID' is set
316
301
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
317
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
302
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
318
303
  }
319
304
  // verify the required parameter 'deviceUID' is set
320
305
  if (deviceUID === undefined || deviceUID === null) {
321
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
306
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
322
307
  }
323
- // verify the required parameter 'key' is set
324
- if (key === undefined || key === null) {
325
- throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
308
+ // verify the required parameter 'notefileID' is set
309
+ if (notefileID === undefined || notefileID === null) {
310
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
311
+ }
312
+ // verify the required parameter 'noteID' is set
313
+ if (noteID === undefined || noteID === null) {
314
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
326
315
  }
327
316
  var pathParams = {
328
- projectOrProductUID: projectOrProductUID,
329
- deviceUID: deviceUID,
330
- key: key
317
+ 'projectOrProductUID': projectOrProductUID,
318
+ 'deviceUID': deviceUID,
319
+ 'notefileID': notefileID,
320
+ 'noteID': noteID
331
321
  };
332
322
  var queryParams = {};
333
323
  var headerParams = {};
334
324
  var formParams = {};
335
- var authNames = ["personalAccessToken"];
325
+ var authNames = ['personalAccessToken'];
336
326
  var contentTypes = [];
337
- var accepts = ["application/json"];
338
- 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);
327
+ var accepts = ['application/json'];
328
+ var returnType = null;
329
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
330
  }
341
331
 
342
332
  /**
343
- * Delete environment variable of a device
344
- * @param {String} projectOrProductUID
345
- * @param {String} deviceUID
346
- * @param {String} key The environment variable key to delete.
347
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
333
+ * Delete a note from a .db or .qi notefile
334
+ * @param {String} projectOrProductUID
335
+ * @param {String} deviceUID
336
+ * @param {String} notefileID
337
+ * @param {String} noteID
338
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
348
339
  */
349
340
  }, {
350
- key: "deleteDeviceEnvironmentVariable",
351
- value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
352
- return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
341
+ key: "deleteNote",
342
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
343
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
353
344
  return response_and_data.data;
354
345
  });
355
346
  }
356
347
 
357
348
  /**
358
349
  * Deletes Notefiles and the Notes they contain.
359
- * @param {String} projectOrProductUID
360
- * @param {String} deviceUID
361
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
350
+ * @param {String} projectOrProductUID
351
+ * @param {String} deviceUID
352
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
362
353
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
363
354
  */
364
355
  }, {
@@ -378,24 +369,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
378
369
  throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
379
370
  }
380
371
  var pathParams = {
381
- projectOrProductUID: projectOrProductUID,
382
- deviceUID: deviceUID
372
+ 'projectOrProductUID': projectOrProductUID,
373
+ 'deviceUID': deviceUID
383
374
  };
384
375
  var queryParams = {};
385
376
  var headerParams = {};
386
377
  var formParams = {};
387
- var authNames = ["personalAccessToken"];
388
- var contentTypes = ["application/json"];
389
- var accepts = ["application/json"];
378
+ var authNames = ['personalAccessToken'];
379
+ var contentTypes = ['application/json'];
380
+ var accepts = ['application/json'];
390
381
  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);
382
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
392
383
  }
393
384
 
394
385
  /**
395
386
  * Deletes Notefiles and the Notes they contain.
396
- * @param {String} projectOrProductUID
397
- * @param {String} deviceUID
398
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
387
+ * @param {String} projectOrProductUID
388
+ * @param {String} deviceUID
389
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
399
390
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
400
391
  */
401
392
  }, {
@@ -408,8 +399,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
408
399
 
409
400
  /**
410
401
  * Disable Device
411
- * @param {String} projectOrProductUID
412
- * @param {String} deviceUID
402
+ * @param {String} projectOrProductUID
403
+ * @param {String} deviceUID
413
404
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
414
405
  */
415
406
  }, {
@@ -425,23 +416,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
425
416
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
426
417
  }
427
418
  var pathParams = {
428
- projectOrProductUID: projectOrProductUID,
429
- deviceUID: deviceUID
419
+ 'projectOrProductUID': projectOrProductUID,
420
+ 'deviceUID': deviceUID
430
421
  };
431
422
  var queryParams = {};
432
423
  var headerParams = {};
433
424
  var formParams = {};
434
- var authNames = ["personalAccessToken"];
425
+ var authNames = ['personalAccessToken'];
435
426
  var contentTypes = [];
436
- var accepts = ["application/json"];
427
+ var accepts = ['application/json'];
437
428
  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);
429
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
439
430
  }
440
431
 
441
432
  /**
442
433
  * Disable Device
443
- * @param {String} projectOrProductUID
444
- * @param {String} deviceUID
434
+ * @param {String} projectOrProductUID
435
+ * @param {String} deviceUID
445
436
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
446
437
  */
447
438
  }, {
@@ -454,8 +445,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
454
445
 
455
446
  /**
456
447
  * Disable Connectivity Assurance
457
- * @param {String} projectOrProductUID
458
- * @param {String} deviceUID
448
+ * @param {String} projectOrProductUID
449
+ * @param {String} deviceUID
459
450
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
460
451
  */
461
452
  }, {
@@ -471,23 +462,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
471
462
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
472
463
  }
473
464
  var pathParams = {
474
- projectOrProductUID: projectOrProductUID,
475
- deviceUID: deviceUID
465
+ 'projectOrProductUID': projectOrProductUID,
466
+ 'deviceUID': deviceUID
476
467
  };
477
468
  var queryParams = {};
478
469
  var headerParams = {};
479
470
  var formParams = {};
480
- var authNames = ["personalAccessToken"];
471
+ var authNames = ['personalAccessToken'];
481
472
  var contentTypes = [];
482
- var accepts = ["application/json"];
473
+ var accepts = ['application/json'];
483
474
  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);
475
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
485
476
  }
486
477
 
487
478
  /**
488
479
  * Disable Connectivity Assurance
489
- * @param {String} projectOrProductUID
490
- * @param {String} deviceUID
480
+ * @param {String} projectOrProductUID
481
+ * @param {String} deviceUID
491
482
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
492
483
  */
493
484
  }, {
@@ -500,8 +491,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
500
491
 
501
492
  /**
502
493
  * Enable Device
503
- * @param {String} projectOrProductUID
504
- * @param {String} deviceUID
494
+ * @param {String} projectOrProductUID
495
+ * @param {String} deviceUID
505
496
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
506
497
  */
507
498
  }, {
@@ -517,23 +508,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
517
508
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
518
509
  }
519
510
  var pathParams = {
520
- projectOrProductUID: projectOrProductUID,
521
- deviceUID: deviceUID
511
+ 'projectOrProductUID': projectOrProductUID,
512
+ 'deviceUID': deviceUID
522
513
  };
523
514
  var queryParams = {};
524
515
  var headerParams = {};
525
516
  var formParams = {};
526
- var authNames = ["personalAccessToken"];
517
+ var authNames = ['personalAccessToken'];
527
518
  var contentTypes = [];
528
- var accepts = ["application/json"];
519
+ var accepts = ['application/json'];
529
520
  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);
521
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
531
522
  }
532
523
 
533
524
  /**
534
525
  * Enable Device
535
- * @param {String} projectOrProductUID
536
- * @param {String} deviceUID
526
+ * @param {String} projectOrProductUID
527
+ * @param {String} deviceUID
537
528
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
538
529
  */
539
530
  }, {
@@ -546,8 +537,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
546
537
 
547
538
  /**
548
539
  * Enable Connectivity Assurance
549
- * @param {String} projectOrProductUID
550
- * @param {String} deviceUID
540
+ * @param {String} projectOrProductUID
541
+ * @param {String} deviceUID
551
542
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
552
543
  */
553
544
  }, {
@@ -563,23 +554,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
563
554
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
564
555
  }
565
556
  var pathParams = {
566
- projectOrProductUID: projectOrProductUID,
567
- deviceUID: deviceUID
557
+ 'projectOrProductUID': projectOrProductUID,
558
+ 'deviceUID': deviceUID
568
559
  };
569
560
  var queryParams = {};
570
561
  var headerParams = {};
571
562
  var formParams = {};
572
- var authNames = ["personalAccessToken"];
563
+ var authNames = ['personalAccessToken'];
573
564
  var contentTypes = [];
574
- var accepts = ["application/json"];
565
+ var accepts = ['application/json'];
575
566
  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);
567
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
577
568
  }
578
569
 
579
570
  /**
580
571
  * Enable Connectivity Assurance
581
- * @param {String} projectOrProductUID
582
- * @param {String} deviceUID
572
+ * @param {String} projectOrProductUID
573
+ * @param {String} deviceUID
583
574
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
584
575
  */
585
576
  }, {
@@ -591,11 +582,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
591
582
  }
592
583
 
593
584
  /**
594
- * Get a note from a .db notefile
595
- * @param {String} projectOrProductUID
596
- * @param {String} deviceUID
597
- * @param {String} notefileID
598
- * @param {String} noteID
585
+ * Get a note from a .db or .qi notefile
586
+ * @param {String} projectOrProductUID
587
+ * @param {String} deviceUID
588
+ * @param {String} notefileID
589
+ * @param {String} noteID
599
590
  * @param {Object} opts Optional parameters
600
591
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
601
592
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -623,30 +614,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
623
614
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
624
615
  }
625
616
  var pathParams = {
626
- projectOrProductUID: projectOrProductUID,
627
- deviceUID: deviceUID,
628
- notefileID: notefileID,
629
- noteID: noteID
617
+ 'projectOrProductUID': projectOrProductUID,
618
+ 'deviceUID': deviceUID,
619
+ 'notefileID': notefileID,
620
+ 'noteID': noteID
630
621
  };
631
622
  var queryParams = {
632
- "delete": opts["_delete"],
633
- deleted: opts["deleted"]
623
+ 'delete': opts['_delete'],
624
+ 'deleted': opts['deleted']
634
625
  };
635
626
  var headerParams = {};
636
627
  var formParams = {};
637
- var authNames = ["personalAccessToken"];
628
+ var authNames = ['personalAccessToken'];
638
629
  var contentTypes = [];
639
- var accepts = ["application/json"];
630
+ var accepts = ['application/json'];
640
631
  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);
632
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
642
633
  }
643
634
 
644
635
  /**
645
- * Get a note from a .db notefile
646
- * @param {String} projectOrProductUID
647
- * @param {String} deviceUID
648
- * @param {String} notefileID
649
- * @param {String} noteID
636
+ * Get a note from a .db or .qi notefile
637
+ * @param {String} projectOrProductUID
638
+ * @param {String} deviceUID
639
+ * @param {String} notefileID
640
+ * @param {String} noteID
650
641
  * @param {Object} opts Optional parameters
651
642
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
652
643
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -662,8 +653,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
662
653
 
663
654
  /**
664
655
  * Get Device
665
- * @param {String} projectOrProductUID
666
- * @param {String} deviceUID
656
+ * @param {String} projectOrProductUID
657
+ * @param {String} deviceUID
667
658
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
668
659
  */
669
660
  }, {
@@ -679,23 +670,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
679
670
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
680
671
  }
681
672
  var pathParams = {
682
- projectOrProductUID: projectOrProductUID,
683
- deviceUID: deviceUID
673
+ 'projectOrProductUID': projectOrProductUID,
674
+ 'deviceUID': deviceUID
684
675
  };
685
676
  var queryParams = {};
686
677
  var headerParams = {};
687
678
  var formParams = {};
688
- var authNames = ["personalAccessToken"];
679
+ var authNames = ['personalAccessToken'];
689
680
  var contentTypes = [];
690
- var accepts = ["application/json"];
681
+ var accepts = ['application/json'];
691
682
  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);
683
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
693
684
  }
694
685
 
695
686
  /**
696
687
  * Get Device
697
- * @param {String} projectOrProductUID
698
- * @param {String} deviceUID
688
+ * @param {String} projectOrProductUID
689
+ * @param {String} deviceUID
699
690
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
700
691
  */
701
692
  }, {
@@ -708,8 +699,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
708
699
 
709
700
  /**
710
701
  * Get environment variable hierarchy for a device
711
- * @param {String} projectOrProductUID
712
- * @param {String} deviceUID
702
+ * @param {String} projectOrProductUID
703
+ * @param {String} deviceUID
713
704
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
714
705
  */
715
706
  }, {
@@ -725,23 +716,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
725
716
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
726
717
  }
727
718
  var pathParams = {
728
- projectOrProductUID: projectOrProductUID,
729
- deviceUID: deviceUID
719
+ 'projectOrProductUID': projectOrProductUID,
720
+ 'deviceUID': deviceUID
730
721
  };
731
722
  var queryParams = {};
732
723
  var headerParams = {};
733
724
  var formParams = {};
734
- var authNames = ["personalAccessToken"];
725
+ var authNames = ['personalAccessToken'];
735
726
  var contentTypes = [];
736
- var accepts = ["application/json"];
727
+ var accepts = ['application/json'];
737
728
  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);
729
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
739
730
  }
740
731
 
741
732
  /**
742
733
  * Get environment variable hierarchy for a device
743
- * @param {String} projectOrProductUID
744
- * @param {String} deviceUID
734
+ * @param {String} projectOrProductUID
735
+ * @param {String} deviceUID
745
736
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
746
737
  */
747
738
  }, {
@@ -754,8 +745,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
754
745
 
755
746
  /**
756
747
  * Get environment variables of a device
757
- * @param {String} projectOrProductUID
758
- * @param {String} deviceUID
748
+ * @param {String} projectOrProductUID
749
+ * @param {String} deviceUID
759
750
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
760
751
  */
761
752
  }, {
@@ -771,23 +762,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
771
762
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
772
763
  }
773
764
  var pathParams = {
774
- projectOrProductUID: projectOrProductUID,
775
- deviceUID: deviceUID
765
+ 'projectOrProductUID': projectOrProductUID,
766
+ 'deviceUID': deviceUID
776
767
  };
777
768
  var queryParams = {};
778
769
  var headerParams = {};
779
770
  var formParams = {};
780
- var authNames = ["personalAccessToken"];
771
+ var authNames = ['personalAccessToken'];
781
772
  var contentTypes = [];
782
- var accepts = ["application/json"];
773
+ var accepts = ['application/json'];
783
774
  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);
775
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
785
776
  }
786
777
 
787
778
  /**
788
779
  * Get environment variables of a device
789
- * @param {String} projectOrProductUID
790
- * @param {String} deviceUID
780
+ * @param {String} projectOrProductUID
781
+ * @param {String} deviceUID
791
782
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
792
783
  */
793
784
  }, {
@@ -800,13 +791,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
800
791
 
801
792
  /**
802
793
  * Get environment variables of a device with device pin authorization
803
- * @param {String} productUID
804
- * @param {String} deviceUID
794
+ * @param {String} productUID
795
+ * @param {String} deviceUID
796
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
805
797
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
806
798
  */
807
799
  }, {
808
800
  key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
809
- value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
801
+ value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken) {
810
802
  var postBody = null;
811
803
  // verify the required parameter 'productUID' is set
812
804
  if (productUID === undefined || productUID === null) {
@@ -816,38 +808,45 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
816
808
  if (deviceUID === undefined || deviceUID === null) {
817
809
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
818
810
  }
811
+ // verify the required parameter 'xAuthToken' is set
812
+ if (xAuthToken === undefined || xAuthToken === null) {
813
+ throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
814
+ }
819
815
  var pathParams = {
820
- productUID: productUID,
821
- deviceUID: deviceUID
816
+ 'productUID': productUID,
817
+ 'deviceUID': deviceUID
822
818
  };
823
819
  var queryParams = {};
824
- var headerParams = {};
820
+ var headerParams = {
821
+ 'X-Auth-Token': xAuthToken
822
+ };
825
823
  var formParams = {};
826
- var authNames = ["pin"];
824
+ var authNames = [];
827
825
  var contentTypes = [];
828
- var accepts = ["application/json"];
826
+ var accepts = ['application/json'];
829
827
  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);
828
+ 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
829
  }
832
830
 
833
831
  /**
834
832
  * Get environment variables of a device with device pin authorization
835
- * @param {String} productUID
836
- * @param {String} deviceUID
833
+ * @param {String} productUID
834
+ * @param {String} deviceUID
835
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
837
836
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
838
837
  */
839
838
  }, {
840
839
  key: "getDeviceEnvironmentVariablesByPin",
841
- value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
842
- return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
840
+ value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken) {
841
+ return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken).then(function (response_and_data) {
843
842
  return response_and_data.data;
844
843
  });
845
844
  }
846
845
 
847
846
  /**
848
847
  * Get Device Health Log
849
- * @param {String} projectOrProductUID
850
- * @param {String} deviceUID
848
+ * @param {String} projectOrProductUID
849
+ * @param {String} deviceUID
851
850
  * @param {Object} opts Optional parameters
852
851
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
853
852
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -868,27 +867,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
868
867
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
869
868
  }
870
869
  var pathParams = {
871
- projectOrProductUID: projectOrProductUID,
872
- deviceUID: deviceUID
870
+ 'projectOrProductUID': projectOrProductUID,
871
+ 'deviceUID': deviceUID
873
872
  };
874
873
  var queryParams = {
875
- startDate: opts["startDate"],
876
- endDate: opts["endDate"],
877
- log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
874
+ 'startDate': opts['startDate'],
875
+ 'endDate': opts['endDate'],
876
+ 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
878
877
  };
879
878
  var headerParams = {};
880
879
  var formParams = {};
881
- var authNames = ["personalAccessToken"];
880
+ var authNames = ['personalAccessToken'];
882
881
  var contentTypes = [];
883
- var accepts = ["application/json"];
882
+ var accepts = ['application/json'];
884
883
  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);
884
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
886
885
  }
887
886
 
888
887
  /**
889
888
  * Get Device Health Log
890
- * @param {String} projectOrProductUID
891
- * @param {String} deviceUID
889
+ * @param {String} projectOrProductUID
890
+ * @param {String} deviceUID
892
891
  * @param {Object} opts Optional parameters
893
892
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
894
893
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
@@ -905,8 +904,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
905
904
 
906
905
  /**
907
906
  * Get Device Latest Events
908
- * @param {String} projectOrProductUID
909
- * @param {String} deviceUID
907
+ * @param {String} projectOrProductUID
908
+ * @param {String} deviceUID
910
909
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
911
910
  */
912
911
  }, {
@@ -922,23 +921,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
922
921
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
923
922
  }
924
923
  var pathParams = {
925
- projectOrProductUID: projectOrProductUID,
926
- deviceUID: deviceUID
924
+ 'projectOrProductUID': projectOrProductUID,
925
+ 'deviceUID': deviceUID
927
926
  };
928
927
  var queryParams = {};
929
928
  var headerParams = {};
930
929
  var formParams = {};
931
- var authNames = ["personalAccessToken"];
930
+ var authNames = ['personalAccessToken'];
932
931
  var contentTypes = [];
933
- var accepts = ["application/json"];
932
+ var accepts = ['application/json'];
934
933
  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);
934
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
936
935
  }
937
936
 
938
937
  /**
939
938
  * Get Device Latest Events
940
- * @param {String} projectOrProductUID
941
- * @param {String} deviceUID
939
+ * @param {String} projectOrProductUID
940
+ * @param {String} deviceUID
942
941
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
943
942
  */
944
943
  }, {
@@ -951,8 +950,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
951
950
 
952
951
  /**
953
952
  * 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
953
+ * @param {String} projectOrProductUID
954
+ * @param {String} deviceUID
956
955
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
957
956
  */
958
957
  }, {
@@ -968,23 +967,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
968
967
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
969
968
  }
970
969
  var pathParams = {
971
- projectOrProductUID: projectOrProductUID,
972
- deviceUID: deviceUID
970
+ 'projectOrProductUID': projectOrProductUID,
971
+ 'deviceUID': deviceUID
973
972
  };
974
973
  var queryParams = {};
975
974
  var headerParams = {};
976
975
  var formParams = {};
977
- var authNames = ["personalAccessToken"];
976
+ var authNames = ['personalAccessToken'];
978
977
  var contentTypes = [];
979
- var accepts = ["application/json"];
978
+ var accepts = ['application/json'];
980
979
  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);
980
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
982
981
  }
983
982
 
984
983
  /**
985
984
  * 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
985
+ * @param {String} projectOrProductUID
986
+ * @param {String} deviceUID
988
987
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
989
988
  */
990
989
  }, {
@@ -997,8 +996,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
997
996
 
998
997
  /**
999
998
  * Get Device Public Key
1000
- * @param {String} projectOrProductUID
1001
- * @param {String} deviceUID
999
+ * @param {String} projectOrProductUID
1000
+ * @param {String} deviceUID
1002
1001
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
1003
1002
  */
1004
1003
  }, {
@@ -1014,23 +1013,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1014
1013
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
1015
1014
  }
1016
1015
  var pathParams = {
1017
- projectOrProductUID: projectOrProductUID,
1018
- deviceUID: deviceUID
1016
+ 'projectOrProductUID': projectOrProductUID,
1017
+ 'deviceUID': deviceUID
1019
1018
  };
1020
1019
  var queryParams = {};
1021
1020
  var headerParams = {};
1022
1021
  var formParams = {};
1023
- var authNames = ["personalAccessToken"];
1022
+ var authNames = ['personalAccessToken'];
1024
1023
  var contentTypes = [];
1025
- var accepts = ["application/json"];
1024
+ var accepts = ['application/json'];
1026
1025
  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);
1026
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1028
1027
  }
1029
1028
 
1030
1029
  /**
1031
1030
  * Get Device Public Key
1032
- * @param {String} projectOrProductUID
1033
- * @param {String} deviceUID
1031
+ * @param {String} projectOrProductUID
1032
+ * @param {String} deviceUID
1034
1033
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
1035
1034
  */
1036
1035
  }, {
@@ -1043,7 +1042,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1043
1042
 
1044
1043
  /**
1045
1044
  * Get Device Public Keys of a Project
1046
- * @param {String} projectOrProductUID
1045
+ * @param {String} projectOrProductUID
1047
1046
  * @param {Object} opts Optional parameters
1048
1047
  * @param {Number} opts.pageSize (default to 50)
1049
1048
  * @param {Number} opts.pageNum (default to 1)
@@ -1059,24 +1058,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1059
1058
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
1060
1059
  }
1061
1060
  var pathParams = {
1062
- projectOrProductUID: projectOrProductUID
1061
+ 'projectOrProductUID': projectOrProductUID
1063
1062
  };
1064
1063
  var queryParams = {
1065
- pageSize: opts["pageSize"],
1066
- pageNum: opts["pageNum"]
1064
+ 'pageSize': opts['pageSize'],
1065
+ 'pageNum': opts['pageNum']
1067
1066
  };
1068
1067
  var headerParams = {};
1069
1068
  var formParams = {};
1070
- var authNames = ["personalAccessToken"];
1069
+ var authNames = ['personalAccessToken'];
1071
1070
  var contentTypes = [];
1072
- var accepts = ["application/json"];
1071
+ var accepts = ['application/json'];
1073
1072
  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);
1073
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1075
1074
  }
1076
1075
 
1077
1076
  /**
1078
1077
  * Get Device Public Keys of a Project
1079
- * @param {String} projectOrProductUID
1078
+ * @param {String} projectOrProductUID
1080
1079
  * @param {Object} opts Optional parameters
1081
1080
  * @param {Number} opts.pageSize (default to 50)
1082
1081
  * @param {Number} opts.pageNum (default to 1)
@@ -1092,8 +1091,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1092
1091
 
1093
1092
  /**
1094
1093
  * Get Device Sessions
1095
- * @param {String} projectOrProductUID
1096
- * @param {String} deviceUID
1094
+ * @param {String} projectOrProductUID
1095
+ * @param {String} deviceUID
1097
1096
  * @param {Object} opts Optional parameters
1098
1097
  * @param {Number} opts.pageSize (default to 50)
1099
1098
  * @param {Number} opts.pageNum (default to 1)
@@ -1115,28 +1114,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1115
1114
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
1116
1115
  }
1117
1116
  var pathParams = {
1118
- projectOrProductUID: projectOrProductUID,
1119
- deviceUID: deviceUID
1117
+ 'projectOrProductUID': projectOrProductUID,
1118
+ 'deviceUID': deviceUID
1120
1119
  };
1121
1120
  var queryParams = {
1122
- pageSize: opts["pageSize"],
1123
- pageNum: opts["pageNum"],
1124
- startDate: opts["startDate"],
1125
- endDate: opts["endDate"]
1121
+ 'pageSize': opts['pageSize'],
1122
+ 'pageNum': opts['pageNum'],
1123
+ 'startDate': opts['startDate'],
1124
+ 'endDate': opts['endDate']
1126
1125
  };
1127
1126
  var headerParams = {};
1128
1127
  var formParams = {};
1129
- var authNames = ["personalAccessToken"];
1128
+ var authNames = ['personalAccessToken'];
1130
1129
  var contentTypes = [];
1131
- var accepts = ["application/json"];
1130
+ var accepts = ['application/json'];
1132
1131
  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);
1132
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1134
1133
  }
1135
1134
 
1136
1135
  /**
1137
1136
  * Get Device Sessions
1138
- * @param {String} projectOrProductUID
1139
- * @param {String} deviceUID
1137
+ * @param {String} projectOrProductUID
1138
+ * @param {String} deviceUID
1140
1139
  * @param {Object} opts Optional parameters
1141
1140
  * @param {Number} opts.pageSize (default to 50)
1142
1141
  * @param {Number} opts.pageNum (default to 1)
@@ -1154,18 +1153,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1154
1153
 
1155
1154
  /**
1156
1155
  * Get Devices of a Project
1157
- * @param {String} projectOrProductUID
1156
+ * @param {String} projectOrProductUID
1158
1157
  * @param {Object} opts Optional parameters
1159
1158
  * @param {Number} opts.pageSize (default to 50)
1160
1159
  * @param {Number} opts.pageNum (default to 1)
1161
1160
  * @param {Array.<String>} opts.deviceUID A Device UID.
1162
1161
  * @param {Array.<String>} opts.tag Tag filter
1163
1162
  * @param {Array.<String>} opts.serialNumber Serial number filter
1164
- * @param {Array.<String>} opts.fleetUID
1163
+ * @param {Array.<String>} opts.fleetUID
1165
1164
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1166
1165
  * @param {Array.<String>} opts.location Location filter
1167
1166
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1168
- * @param {Array.<String>} opts.productUID
1167
+ * @param {Array.<String>} opts.productUID
1169
1168
  * @param {Array.<String>} opts.sku SKU filter
1170
1169
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1171
1170
  */
@@ -1179,44 +1178,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1179
1178
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
1180
1179
  }
1181
1180
  var pathParams = {
1182
- projectOrProductUID: projectOrProductUID
1181
+ 'projectOrProductUID': projectOrProductUID
1183
1182
  };
1184
1183
  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")
1184
+ 'pageSize': opts['pageSize'],
1185
+ 'pageNum': opts['pageNum'],
1186
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1187
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1188
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1189
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
1190
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1191
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1192
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1193
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1194
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1196
1195
  };
1197
1196
  var headerParams = {};
1198
1197
  var formParams = {};
1199
- var authNames = ["personalAccessToken"];
1198
+ var authNames = ['personalAccessToken'];
1200
1199
  var contentTypes = [];
1201
- var accepts = ["application/json"];
1200
+ var accepts = ['application/json'];
1202
1201
  var returnType = _GetDevices200Response["default"];
1203
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1202
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1204
1203
  }
1205
1204
 
1206
1205
  /**
1207
1206
  * Get Devices of a Project
1208
- * @param {String} projectOrProductUID
1207
+ * @param {String} projectOrProductUID
1209
1208
  * @param {Object} opts Optional parameters
1210
1209
  * @param {Number} opts.pageSize (default to 50)
1211
1210
  * @param {Number} opts.pageNum (default to 1)
1212
1211
  * @param {Array.<String>} opts.deviceUID A Device UID.
1213
1212
  * @param {Array.<String>} opts.tag Tag filter
1214
1213
  * @param {Array.<String>} opts.serialNumber Serial number filter
1215
- * @param {Array.<String>} opts.fleetUID
1214
+ * @param {Array.<String>} opts.fleetUID
1216
1215
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1217
1216
  * @param {Array.<String>} opts.location Location filter
1218
1217
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1219
- * @param {Array.<String>} opts.productUID
1218
+ * @param {Array.<String>} opts.productUID
1220
1219
  * @param {Array.<String>} opts.sku SKU filter
1221
1220
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1222
1221
  */
@@ -1230,8 +1229,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1230
1229
 
1231
1230
  /**
1232
1231
  * Get Devices of a Fleet within a Project
1233
- * @param {String} projectOrProductUID
1234
- * @param {String} fleetUID
1232
+ * @param {String} projectOrProductUID
1233
+ * @param {String} fleetUID
1235
1234
  * @param {Object} opts Optional parameters
1236
1235
  * @param {Number} opts.pageSize (default to 50)
1237
1236
  * @param {Number} opts.pageNum (default to 1)
@@ -1241,7 +1240,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1241
1240
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1242
1241
  * @param {Array.<String>} opts.location Location filter
1243
1242
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1244
- * @param {Array.<String>} opts.productUID
1243
+ * @param {Array.<String>} opts.productUID
1245
1244
  * @param {Array.<String>} opts.sku SKU filter
1246
1245
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1247
1246
  */
@@ -1259,34 +1258,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1259
1258
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
1260
1259
  }
1261
1260
  var pathParams = {
1262
- projectOrProductUID: projectOrProductUID,
1263
- fleetUID: fleetUID
1261
+ 'projectOrProductUID': projectOrProductUID,
1262
+ 'fleetUID': fleetUID
1264
1263
  };
1265
1264
  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")
1265
+ 'pageSize': opts['pageSize'],
1266
+ 'pageNum': opts['pageNum'],
1267
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1268
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1269
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1270
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1271
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1272
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1273
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1274
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1276
1275
  };
1277
1276
  var headerParams = {};
1278
1277
  var formParams = {};
1279
- var authNames = ["personalAccessToken"];
1278
+ var authNames = ['personalAccessToken'];
1280
1279
  var contentTypes = [];
1281
- var accepts = ["application/json"];
1280
+ var accepts = ['application/json'];
1282
1281
  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);
1282
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1284
1283
  }
1285
1284
 
1286
1285
  /**
1287
1286
  * Get Devices of a Fleet within a Project
1288
- * @param {String} projectOrProductUID
1289
- * @param {String} fleetUID
1287
+ * @param {String} projectOrProductUID
1288
+ * @param {String} fleetUID
1290
1289
  * @param {Object} opts Optional parameters
1291
1290
  * @param {Number} opts.pageSize (default to 50)
1292
1291
  * @param {Number} opts.pageNum (default to 1)
@@ -1296,7 +1295,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1296
1295
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1297
1296
  * @param {Array.<String>} opts.location Location filter
1298
1297
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
1299
- * @param {Array.<String>} opts.productUID
1298
+ * @param {Array.<String>} opts.productUID
1300
1299
  * @param {Array.<String>} opts.sku SKU filter
1301
1300
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1302
1301
  */
@@ -1310,14 +1309,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1310
1309
 
1311
1310
  /**
1312
1311
  * 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
1312
+ * @param {String} projectOrProductUID
1313
+ * @param {String} deviceUID
1314
+ * @param {String} notefileID
1316
1315
  * @param {Object} opts Optional parameters
1317
- * @param {String} opts.tracker The change tracker ID.
1318
1316
  * @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
1317
  * @param {Boolean} opts.deleted true to return deleted notes.
1322
1318
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1323
1319
  * @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 +1336,31 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1340
1336
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
1341
1337
  }
1342
1338
  var pathParams = {
1343
- projectOrProductUID: projectOrProductUID,
1344
- deviceUID: deviceUID,
1345
- notefileID: notefileID
1339
+ 'projectOrProductUID': projectOrProductUID,
1340
+ 'deviceUID': deviceUID,
1341
+ 'notefileID': notefileID
1346
1342
  };
1347
1343
  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"]
1344
+ 'max': opts['max'],
1345
+ 'deleted': opts['deleted'],
1346
+ 'delete': opts['_delete']
1354
1347
  };
1355
1348
  var headerParams = {};
1356
1349
  var formParams = {};
1357
- var authNames = ["personalAccessToken"];
1350
+ var authNames = ['personalAccessToken'];
1358
1351
  var contentTypes = [];
1359
- var accepts = ["application/json"];
1352
+ var accepts = ['application/json'];
1360
1353
  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);
1354
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1362
1355
  }
1363
1356
 
1364
1357
  /**
1365
1358
  * 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
1359
+ * @param {String} projectOrProductUID
1360
+ * @param {String} deviceUID
1361
+ * @param {String} notefileID
1369
1362
  * @param {Object} opts Optional parameters
1370
- * @param {String} opts.tracker The change tracker ID.
1371
1363
  * @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
1364
  * @param {Boolean} opts.deleted true to return deleted notes.
1375
1365
  * @param {Boolean} opts._delete true to delete the notes returned by the request.
1376
1366
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
@@ -1385,12 +1375,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1385
1375
 
1386
1376
  /**
1387
1377
  * Lists .qi and .db files for the device
1388
- * @param {String} projectOrProductUID
1389
- * @param {String} deviceUID
1378
+ * @param {String} projectOrProductUID
1379
+ * @param {String} deviceUID
1390
1380
  * @param {Object} opts Optional parameters
1391
- * @param {String} opts.tracker The change tracker ID.
1392
1381
  * @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
1382
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1383
+ * @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
1384
  */
1395
1385
  }, {
1396
1386
  key: "listNotefilesWithHttpInfo",
@@ -1406,30 +1396,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1406
1396
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
1407
1397
  }
1408
1398
  var pathParams = {
1409
- projectOrProductUID: projectOrProductUID,
1410
- deviceUID: deviceUID
1399
+ 'projectOrProductUID': projectOrProductUID,
1400
+ 'deviceUID': deviceUID
1411
1401
  };
1412
1402
  var queryParams = {
1413
- tracker: opts["tracker"],
1414
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1403
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1404
+ 'pending': opts['pending']
1415
1405
  };
1416
1406
  var headerParams = {};
1417
1407
  var formParams = {};
1418
- var authNames = ["personalAccessToken"];
1408
+ var authNames = ['personalAccessToken'];
1419
1409
  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);
1410
+ var accepts = ['application/json'];
1411
+ var returnType = [_Notefile["default"]];
1412
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1423
1413
  }
1424
1414
 
1425
1415
  /**
1426
1416
  * Lists .qi and .db files for the device
1427
- * @param {String} projectOrProductUID
1428
- * @param {String} deviceUID
1417
+ * @param {String} projectOrProductUID
1418
+ * @param {String} deviceUID
1429
1419
  * @param {Object} opts Optional parameters
1430
- * @param {String} opts.tracker The change tracker ID.
1431
1420
  * @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}
1421
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1422
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1433
1423
  */
1434
1424
  }, {
1435
1425
  key: "listNotefiles",
@@ -1439,56 +1429,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1439
1429
  });
1440
1430
  }
1441
1431
 
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
1432
  /**
1489
1433
  * Provision Device for a Project
1490
- * @param {String} projectOrProductUID
1491
- * @param {String} deviceUID
1434
+ * @param {String} projectOrProductUID
1435
+ * @param {String} deviceUID
1492
1436
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1493
1437
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1494
1438
  */
@@ -1509,23 +1453,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1509
1453
  throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1510
1454
  }
1511
1455
  var pathParams = {
1512
- projectOrProductUID: projectOrProductUID,
1513
- deviceUID: deviceUID
1456
+ 'projectOrProductUID': projectOrProductUID,
1457
+ 'deviceUID': deviceUID
1514
1458
  };
1515
1459
  var queryParams = {};
1516
1460
  var headerParams = {};
1517
1461
  var formParams = {};
1518
- var authNames = ["personalAccessToken"];
1519
- var contentTypes = ["application/json"];
1520
- var accepts = ["application/json"];
1462
+ var authNames = ['personalAccessToken'];
1463
+ var contentTypes = ['application/json'];
1464
+ var accepts = ['application/json'];
1521
1465
  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);
1466
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1523
1467
  }
1524
1468
 
1525
1469
  /**
1526
1470
  * Provision Device for a Project
1527
- * @param {String} projectOrProductUID
1528
- * @param {String} deviceUID
1471
+ * @param {String} projectOrProductUID
1472
+ * @param {String} deviceUID
1529
1473
  * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1530
1474
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1531
1475
  */
@@ -1539,8 +1483,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1539
1483
 
1540
1484
  /**
1541
1485
  * Set environment variables of a device
1542
- * @param {String} projectOrProductUID
1543
- * @param {String} deviceUID
1486
+ * @param {String} projectOrProductUID
1487
+ * @param {String} deviceUID
1544
1488
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1545
1489
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1546
1490
  */
@@ -1561,23 +1505,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1561
1505
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
1562
1506
  }
1563
1507
  var pathParams = {
1564
- projectOrProductUID: projectOrProductUID,
1565
- deviceUID: deviceUID
1508
+ 'projectOrProductUID': projectOrProductUID,
1509
+ 'deviceUID': deviceUID
1566
1510
  };
1567
1511
  var queryParams = {};
1568
1512
  var headerParams = {};
1569
1513
  var formParams = {};
1570
- var authNames = ["personalAccessToken"];
1571
- var contentTypes = ["application/json"];
1572
- var accepts = ["application/json"];
1514
+ var authNames = ['personalAccessToken'];
1515
+ var contentTypes = ['application/json'];
1516
+ var accepts = ['application/json'];
1573
1517
  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);
1518
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1575
1519
  }
1576
1520
 
1577
1521
  /**
1578
1522
  * Set environment variables of a device
1579
- * @param {String} projectOrProductUID
1580
- * @param {String} deviceUID
1523
+ * @param {String} projectOrProductUID
1524
+ * @param {String} deviceUID
1581
1525
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1582
1526
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1583
1527
  */
@@ -1591,14 +1535,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1591
1535
 
1592
1536
  /**
1593
1537
  * Set environment variables of a device with device pin authorization
1594
- * @param {String} productUID
1595
- * @param {String} deviceUID
1538
+ * @param {String} productUID
1539
+ * @param {String} deviceUID
1540
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1596
1541
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
1542
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
1543
  */
1599
1544
  }, {
1600
1545
  key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
1601
- value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1546
+ value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables) {
1602
1547
  var postBody = environmentVariables;
1603
1548
  // verify the required parameter 'productUID' is set
1604
1549
  if (productUID === undefined || productUID === null) {
@@ -1608,43 +1553,50 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1608
1553
  if (deviceUID === undefined || deviceUID === null) {
1609
1554
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
1610
1555
  }
1556
+ // verify the required parameter 'xAuthToken' is set
1557
+ if (xAuthToken === undefined || xAuthToken === null) {
1558
+ throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling setDeviceEnvironmentVariablesByPin");
1559
+ }
1611
1560
  // verify the required parameter 'environmentVariables' is set
1612
1561
  if (environmentVariables === undefined || environmentVariables === null) {
1613
1562
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1614
1563
  }
1615
1564
  var pathParams = {
1616
- productUID: productUID,
1617
- deviceUID: deviceUID
1565
+ 'productUID': productUID,
1566
+ 'deviceUID': deviceUID
1618
1567
  };
1619
1568
  var queryParams = {};
1620
- var headerParams = {};
1569
+ var headerParams = {
1570
+ 'X-Auth-Token': xAuthToken
1571
+ };
1621
1572
  var formParams = {};
1622
- var authNames = ["pin"];
1623
- var contentTypes = ["application/json"];
1624
- var accepts = ["application/json"];
1573
+ var authNames = [];
1574
+ var contentTypes = ['application/json'];
1575
+ var accepts = ['application/json'];
1625
1576
  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);
1577
+ 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
1578
  }
1628
1579
 
1629
1580
  /**
1630
1581
  * Set environment variables of a device with device pin authorization
1631
- * @param {String} productUID
1632
- * @param {String} deviceUID
1582
+ * @param {String} productUID
1583
+ * @param {String} deviceUID
1584
+ * @param {String} xAuthToken For accessing endpoints by Device pin.
1633
1585
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
1586
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
1587
  */
1636
1588
  }, {
1637
1589
  key: "setDeviceEnvironmentVariablesByPin",
1638
- value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1639
- return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1590
+ value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken, environmentVariables) {
1591
+ return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables).then(function (response_and_data) {
1640
1592
  return response_and_data.data;
1641
1593
  });
1642
1594
  }
1643
1595
 
1644
1596
  /**
1645
1597
  * Send a signal from Notehub to a Notecard.
1646
- * @param {String} projectOrProductUID
1647
- * @param {String} deviceUID
1598
+ * @param {String} projectOrProductUID
1599
+ * @param {String} deviceUID
1648
1600
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1649
1601
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1650
1602
  */
@@ -1665,23 +1617,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1665
1617
  throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1666
1618
  }
1667
1619
  var pathParams = {
1668
- projectOrProductUID: projectOrProductUID,
1669
- deviceUID: deviceUID
1620
+ 'projectOrProductUID': projectOrProductUID,
1621
+ 'deviceUID': deviceUID
1670
1622
  };
1671
1623
  var queryParams = {};
1672
1624
  var headerParams = {};
1673
1625
  var formParams = {};
1674
- var authNames = ["personalAccessToken"];
1675
- var contentTypes = ["application/json"];
1676
- var accepts = ["application/json"];
1626
+ var authNames = ['personalAccessToken'];
1627
+ var contentTypes = ['application/json'];
1628
+ var accepts = ['application/json'];
1677
1629
  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);
1630
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1679
1631
  }
1680
1632
 
1681
1633
  /**
1682
1634
  * Send a signal from Notehub to a Notecard.
1683
- * @param {String} projectOrProductUID
1684
- * @param {String} deviceUID
1635
+ * @param {String} projectOrProductUID
1636
+ * @param {String} deviceUID
1685
1637
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1686
1638
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1687
1639
  */
@@ -1694,18 +1646,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1646
  }
1695
1647
 
1696
1648
  /**
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
1649
+ * Update a note in a .db or .qi notefile
1650
+ * @param {String} projectOrProductUID
1651
+ * @param {String} deviceUID
1652
+ * @param {String} notefileID
1653
+ * @param {String} noteID
1654
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1703
1655
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1704
1656
  */
1705
1657
  }, {
1706
1658
  key: "updateDbNoteWithHttpInfo",
1707
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
- var postBody = note;
1659
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1660
+ var postBody = noteInput;
1709
1661
  // verify the required parameter 'projectOrProductUID' is set
1710
1662
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1711
1663
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1722,39 +1674,39 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1722
1674
  if (noteID === undefined || noteID === null) {
1723
1675
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1724
1676
  }
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");
1677
+ // verify the required parameter 'noteInput' is set
1678
+ if (noteInput === undefined || noteInput === null) {
1679
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1728
1680
  }
1729
1681
  var pathParams = {
1730
- projectOrProductUID: projectOrProductUID,
1731
- deviceUID: deviceUID,
1732
- notefileID: notefileID,
1733
- noteID: noteID
1682
+ 'projectOrProductUID': projectOrProductUID,
1683
+ 'deviceUID': deviceUID,
1684
+ 'notefileID': notefileID,
1685
+ 'noteID': noteID
1734
1686
  };
1735
1687
  var queryParams = {};
1736
1688
  var headerParams = {};
1737
1689
  var formParams = {};
1738
- var authNames = ["personalAccessToken"];
1739
- var contentTypes = ["application/json"];
1740
- var accepts = ["application/json"];
1690
+ var authNames = ['personalAccessToken'];
1691
+ var contentTypes = ['application/json'];
1692
+ var accepts = ['application/json'];
1741
1693
  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);
1694
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1743
1695
  }
1744
1696
 
1745
1697
  /**
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
1698
+ * Update a note in a .db or .qi notefile
1699
+ * @param {String} projectOrProductUID
1700
+ * @param {String} deviceUID
1701
+ * @param {String} notefileID
1702
+ * @param {String} noteID
1703
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1704
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1753
1705
  */
1754
1706
  }, {
1755
1707
  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) {
1708
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1709
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1758
1710
  return response_and_data.data;
1759
1711
  });
1760
1712
  }