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

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 +251 -242
  2. package/dist/ApiClient.js +154 -154
  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 +447 -503
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +381 -381
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +117 -51
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +21 -14
  15. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  16. package/dist/model/Alert.js +76 -74
  17. package/dist/model/AlertDataInner.js +35 -35
  18. package/dist/model/AlertNotificationsInner.js +18 -18
  19. package/dist/model/AwsRoute.js +65 -65
  20. package/dist/model/AzureRoute.js +43 -43
  21. package/dist/model/BillingAccount.js +21 -21
  22. package/dist/model/BillingAccountRole.js +9 -9
  23. package/dist/model/BlynkRoute.js +28 -28
  24. package/dist/model/Body.js +5 -5
  25. package/dist/model/CellularPlan.js +34 -34
  26. package/dist/model/CloneProjectRequest.js +20 -20
  27. package/dist/model/Contact.js +22 -22
  28. package/dist/model/CreateFleetRequest.js +25 -17
  29. package/dist/model/CreateMonitor.js +126 -125
  30. package/dist/model/CreateProductRequest.js +22 -22
  31. package/dist/model/CreateProjectRequest.js +16 -16
  32. package/dist/model/CreateUpdateRepository.js +17 -17
  33. package/dist/model/CurrentFirmware.js +12 -12
  34. package/dist/model/DFUEnv.js +12 -12
  35. package/dist/model/DFUState.js +65 -65
  36. package/dist/model/DataField.js +7 -7
  37. package/dist/model/DataSetField.js +19 -19
  38. package/dist/model/DataUsage.js +14 -14
  39. package/dist/model/DatacakeRoute.js +35 -35
  40. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  41. package/dist/model/DeleteNotefilesRequest.js +7 -7
  42. package/dist/model/Device.js +115 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  45. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  46. package/dist/model/DeviceDfuStateMachine.js +25 -24
  47. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  48. package/dist/model/DeviceDfuStatus.js +20 -20
  49. package/dist/model/DeviceDfuStatusPage.js +13 -12
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +69 -67
  56. package/dist/model/EnvVar.js +18 -18
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/Filter.js +16 -16
  61. package/dist/model/Firmware.js +49 -49
  62. package/dist/model/FirmwareInfo.js +60 -60
  63. package/dist/model/Fleet.js +43 -35
  64. package/dist/model/FleetConnectivityAssurance.js +8 -31
  65. package/dist/model/GetAlerts200Response.js +15 -14
  66. package/dist/model/GetBillingAccounts200Response.js +10 -9
  67. package/dist/model/GetDataUsage200Response.js +10 -9
  68. package/dist/model/GetDataUsage200ResponseDataInner.js +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 +100 -99
  96. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  97. package/dist/model/MqttRoute.js +68 -68
  98. package/dist/model/Note.js +95 -15
  99. package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
  100. package/dist/model/Notefile.js +159 -0
  101. package/dist/model/NotefileSchema.js +19 -18
  102. package/dist/model/NotehubRoute.js +103 -103
  103. package/dist/model/NotehubRouteSummary.js +23 -23
  104. package/dist/model/OAuth2Error.js +20 -20
  105. package/dist/model/OAuth2TokenResponse.js +23 -23
  106. package/dist/model/PersonalAccessToken.js +34 -34
  107. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  108. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  109. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  110. package/dist/model/Product.js +26 -26
  111. package/dist/model/Project.js +34 -34
  112. package/dist/model/ProjectMember.js +22 -22
  113. package/dist/model/ProvisionDeviceRequest.js +18 -18
  114. package/dist/model/ProxyRoute.js +29 -29
  115. package/dist/model/QubitroRoute.js +33 -33
  116. package/dist/model/RadRoute.js +31 -31
  117. package/dist/model/Repository.js +22 -22
  118. package/dist/model/Role.js +9 -9
  119. package/dist/model/RouteLog.js +38 -38
  120. package/dist/model/RouteTransformSettings.js +18 -18
  121. package/dist/model/S3ArchiveRoute.js +79 -79
  122. package/dist/model/SatellitePlan.js +26 -26
  123. package/dist/model/SchemaProperty.js +38 -36
  124. package/dist/model/SignalDevice200Response.js +5 -5
  125. package/dist/model/SimUsage.js +19 -19
  126. package/dist/model/SlackBearerNotification.js +25 -25
  127. package/dist/model/SlackRoute.js +48 -48
  128. package/dist/model/SlackWebHookNotification.js +20 -20
  129. package/dist/model/SnowflakeRoute.js +45 -45
  130. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  131. package/dist/model/ThingworxRoute.js +33 -33
  132. package/dist/model/TowerLocation.js +54 -54
  133. package/dist/model/TwilioRoute.js +43 -43
  134. package/dist/model/UpdateFleetRequest.js +38 -30
  135. package/dist/model/UploadMetadata.js +64 -64
  136. package/dist/model/UsageData.js +18 -18
  137. package/dist/model/UsageEventsData.js +48 -37
  138. package/dist/model/UsageEventsResponse.js +12 -11
  139. package/dist/model/UsageRouteLogsData.js +27 -27
  140. package/dist/model/UsageSessionsData.js +41 -31
  141. package/dist/model/UserDfuStateMachine.js +20 -20
  142. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  143. package/dist/model/UserFirmwareInfo.js +12 -12
  144. package/dist/model/WebhookSettings.js +15 -15
  145. package/package.json +3 -3
  146. package/dist/model/ListPendingNotefiles200Response.js +0 -115
@@ -21,9 +21,8 @@ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/G
21
21
  var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
22
22
  var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
23
23
  var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
24
- var _ListNotefiles200Response = _interopRequireDefault(require("../model/ListNotefiles200Response"));
25
- var _ListPendingNotefiles200Response = _interopRequireDefault(require("../model/ListPendingNotefiles200Response"));
26
- var _Note = _interopRequireDefault(require("../model/Note"));
24
+ var _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
25
+ var _Notefile = _interopRequireDefault(require("../model/Notefile"));
27
26
  var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
28
27
  var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -34,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
34
33
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
35
34
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
36
35
  * Notehub API
37
- * The OpenAPI definition for the Notehub.io API.
36
+ * The OpenAPI definition for the Notehub.io API.
38
37
  *
39
38
  * The version of the OpenAPI document: 1.2.0
40
39
  * Contact: engineering@blues.io
@@ -45,36 +44,36 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
45
44
  *
46
45
  */
47
46
  /**
48
- * Device service.
49
- * @module api/DeviceApi
50
- * @version 3.0.0
51
- */
47
+ * Device service.
48
+ * @module api/DeviceApi
49
+ * @version 4.0.0-beta.2
50
+ */
52
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
52
  /**
54
- * Constructs a new DeviceApi.
55
- * @alias module:api/DeviceApi
56
- * @class
57
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
58
- * default to {@link module:ApiClient#instance} if unspecified.
59
- */
53
+ * Constructs a new DeviceApi.
54
+ * @alias module:api/DeviceApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
60
59
  function DeviceApi(apiClient) {
61
60
  _classCallCheck(this, DeviceApi);
62
61
  this.apiClient = apiClient || _ApiClient["default"].instance;
63
62
  }
64
63
 
65
64
  /**
66
- * Add a Note to a .db notefile
67
- * @param {String} projectOrProductUID
68
- * @param {String} deviceUID
69
- * @param {String} notefileID
70
- * @param {String} noteID
71
- * @param {module:model/Note} note Body or payload of note to be added to the device
65
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
66
+ * @param {String} projectOrProductUID
67
+ * @param {String} deviceUID
68
+ * @param {String} notefileID
69
+ * @param {String} noteID
70
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
72
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
73
72
  */
74
73
  return _createClass(DeviceApi, [{
75
74
  key: "addDbNoteWithHttpInfo",
76
- value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
77
- var postBody = note;
75
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
76
+ var postBody = noteInput;
78
77
  // verify the required parameter 'projectOrProductUID' is set
79
78
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
80
79
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
@@ -91,55 +90,55 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
91
90
  if (noteID === undefined || noteID === null) {
92
91
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
93
92
  }
94
- // verify the required parameter 'note' is set
95
- if (note === undefined || note === null) {
96
- throw new _Error["default"]("Missing the required parameter 'note' when calling addDbNote");
93
+ // verify the required parameter 'noteInput' is set
94
+ if (noteInput === undefined || noteInput === null) {
95
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
97
96
  }
98
97
  var pathParams = {
99
- projectOrProductUID: projectOrProductUID,
100
- deviceUID: deviceUID,
101
- notefileID: notefileID,
102
- noteID: noteID
98
+ 'projectOrProductUID': projectOrProductUID,
99
+ 'deviceUID': deviceUID,
100
+ 'notefileID': notefileID,
101
+ 'noteID': noteID
103
102
  };
104
103
  var queryParams = {};
105
104
  var headerParams = {};
106
105
  var formParams = {};
107
- var authNames = ["personalAccessToken"];
108
- var contentTypes = ["application/json"];
109
- var accepts = ["application/json"];
106
+ var authNames = ['personalAccessToken'];
107
+ var contentTypes = ['application/json'];
108
+ var accepts = ['application/json'];
110
109
  var returnType = null;
111
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
110
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
112
111
  }
113
112
 
114
113
  /**
115
- * Add a Note to a .db notefile
116
- * @param {String} projectOrProductUID
117
- * @param {String} deviceUID
118
- * @param {String} notefileID
119
- * @param {String} noteID
120
- * @param {module:model/Note} note Body or payload of note to be added to the device
114
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
115
+ * @param {String} projectOrProductUID
116
+ * @param {String} deviceUID
117
+ * @param {String} notefileID
118
+ * @param {String} noteID
119
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
121
120
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
122
121
  */
123
122
  }, {
124
123
  key: "addDbNote",
125
- value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
126
- return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
124
+ value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
125
+ return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
127
126
  return response_and_data.data;
128
127
  });
129
128
  }
130
129
 
131
130
  /**
132
131
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
133
- * @param {String} projectOrProductUID
134
- * @param {String} deviceUID
135
- * @param {String} notefileID
136
- * @param {module:model/Note} note Body or payload of note to be added to the device
132
+ * @param {String} projectOrProductUID
133
+ * @param {String} deviceUID
134
+ * @param {String} notefileID
135
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
137
136
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
138
137
  */
139
138
  }, {
140
139
  key: "addQiNoteWithHttpInfo",
141
- value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
142
- var postBody = note;
140
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
141
+ var postBody = noteInput;
143
142
  // verify the required parameter 'projectOrProductUID' is set
144
143
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
145
144
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
@@ -152,106 +151,46 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
152
151
  if (notefileID === undefined || notefileID === null) {
153
152
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
154
153
  }
155
- // verify the required parameter 'note' is set
156
- if (note === undefined || note === null) {
157
- throw new _Error["default"]("Missing the required parameter 'note' when calling addQiNote");
154
+ // verify the required parameter 'noteInput' is set
155
+ if (noteInput === undefined || noteInput === null) {
156
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
158
157
  }
159
158
  var pathParams = {
160
- projectOrProductUID: projectOrProductUID,
161
- deviceUID: deviceUID,
162
- notefileID: notefileID
159
+ 'projectOrProductUID': projectOrProductUID,
160
+ 'deviceUID': deviceUID,
161
+ 'notefileID': notefileID
163
162
  };
164
163
  var queryParams = {};
165
164
  var headerParams = {};
166
165
  var formParams = {};
167
- var authNames = ["personalAccessToken"];
168
- var contentTypes = ["application/json"];
169
- var accepts = ["application/json"];
166
+ var authNames = ['personalAccessToken'];
167
+ var contentTypes = ['application/json'];
168
+ var accepts = ['application/json'];
170
169
  var returnType = null;
171
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
170
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
172
171
  }
173
172
 
174
173
  /**
175
174
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
176
- * @param {String} projectOrProductUID
177
- * @param {String} deviceUID
178
- * @param {String} notefileID
179
- * @param {module:model/Note} note Body or payload of note to be added to the device
175
+ * @param {String} projectOrProductUID
176
+ * @param {String} deviceUID
177
+ * @param {String} notefileID
178
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
180
179
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
181
180
  */
182
181
  }, {
183
182
  key: "addQiNote",
184
- value: function addQiNote(projectOrProductUID, deviceUID, notefileID, note) {
185
- return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
186
- return response_and_data.data;
187
- });
188
- }
189
-
190
- /**
191
- * Delete a note from a .db notefile
192
- * @param {String} projectOrProductUID
193
- * @param {String} deviceUID
194
- * @param {String} notefileID
195
- * @param {String} noteID
196
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
197
- */
198
- }, {
199
- key: "deleteDbNoteWithHttpInfo",
200
- value: function deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
201
- var postBody = null;
202
- // verify the required parameter 'projectOrProductUID' is set
203
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
204
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDbNote");
205
- }
206
- // verify the required parameter 'deviceUID' is set
207
- if (deviceUID === undefined || deviceUID === null) {
208
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDbNote");
209
- }
210
- // verify the required parameter 'notefileID' is set
211
- if (notefileID === undefined || notefileID === null) {
212
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteDbNote");
213
- }
214
- // verify the required parameter 'noteID' is set
215
- if (noteID === undefined || noteID === null) {
216
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteDbNote");
217
- }
218
- var pathParams = {
219
- projectOrProductUID: projectOrProductUID,
220
- deviceUID: deviceUID,
221
- notefileID: notefileID,
222
- noteID: noteID
223
- };
224
- var queryParams = {};
225
- var headerParams = {};
226
- var formParams = {};
227
- var authNames = ["personalAccessToken"];
228
- var contentTypes = [];
229
- var accepts = ["application/json"];
230
- var returnType = null;
231
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
232
- }
233
-
234
- /**
235
- * Delete a note from a .db notefile
236
- * @param {String} projectOrProductUID
237
- * @param {String} deviceUID
238
- * @param {String} notefileID
239
- * @param {String} noteID
240
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
241
- */
242
- }, {
243
- key: "deleteDbNote",
244
- value: function deleteDbNote(projectOrProductUID, deviceUID, notefileID, noteID) {
245
- return this.deleteDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
183
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
184
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
246
185
  return response_and_data.data;
247
186
  });
248
187
  }
249
188
 
250
189
  /**
251
190
  * Delete Device
252
- * @param {String} projectOrProductUID
253
- * @param {String} deviceUID
254
- * @param {Boolean} purge
191
+ * @param {String} projectOrProductUID
192
+ * @param {String} deviceUID
193
+ * @param {Boolean} purge
255
194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
256
195
  */
257
196
  }, {
@@ -271,26 +210,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
271
210
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
272
211
  }
273
212
  var pathParams = {
274
- projectOrProductUID: projectOrProductUID,
275
- deviceUID: deviceUID
213
+ 'projectOrProductUID': projectOrProductUID,
214
+ 'deviceUID': deviceUID
276
215
  };
277
216
  var queryParams = {
278
- purge: purge
217
+ 'purge': purge
279
218
  };
280
219
  var headerParams = {};
281
220
  var formParams = {};
282
- var authNames = ["personalAccessToken"];
221
+ var authNames = ['personalAccessToken'];
283
222
  var contentTypes = [];
284
- var accepts = ["application/json"];
223
+ var accepts = ['application/json'];
285
224
  var returnType = null;
286
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
287
226
  }
288
227
 
289
228
  /**
290
229
  * Delete Device
291
- * @param {String} projectOrProductUID
292
- * @param {String} deviceUID
293
- * @param {Boolean} purge
230
+ * @param {String} projectOrProductUID
231
+ * @param {String} deviceUID
232
+ * @param {Boolean} purge
294
233
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
295
234
  */
296
235
  }, {
@@ -303,8 +242,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
303
242
 
304
243
  /**
305
244
  * Delete environment variable of a device
306
- * @param {String} projectOrProductUID
307
- * @param {String} deviceUID
245
+ * @param {String} projectOrProductUID
246
+ * @param {String} deviceUID
308
247
  * @param {String} key The environment variable key to delete.
309
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
310
249
  */
@@ -325,24 +264,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
325
264
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
326
265
  }
327
266
  var pathParams = {
328
- projectOrProductUID: projectOrProductUID,
329
- deviceUID: deviceUID,
330
- key: key
267
+ 'projectOrProductUID': projectOrProductUID,
268
+ 'deviceUID': deviceUID,
269
+ 'key': key
331
270
  };
332
271
  var queryParams = {};
333
272
  var headerParams = {};
334
273
  var formParams = {};
335
- var authNames = ["personalAccessToken"];
274
+ var authNames = ['personalAccessToken'];
336
275
  var contentTypes = [];
337
- var accepts = ["application/json"];
276
+ var accepts = ['application/json'];
338
277
  var returnType = _EnvironmentVariables["default"];
339
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
278
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
279
  }
341
280
 
342
281
  /**
343
282
  * Delete environment variable of a device
344
- * @param {String} projectOrProductUID
345
- * @param {String} deviceUID
283
+ * @param {String} projectOrProductUID
284
+ * @param {String} deviceUID
346
285
  * @param {String} key The environment variable key to delete.
347
286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
348
287
  */
@@ -354,11 +293,71 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
354
293
  });
355
294
  }
356
295
 
296
+ /**
297
+ * Delete a note from a .db or .qi notefile
298
+ * @param {String} projectOrProductUID
299
+ * @param {String} deviceUID
300
+ * @param {String} notefileID
301
+ * @param {String} noteID
302
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
303
+ */
304
+ }, {
305
+ key: "deleteNoteWithHttpInfo",
306
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
307
+ var postBody = null;
308
+ // verify the required parameter 'projectOrProductUID' is set
309
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
310
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
311
+ }
312
+ // verify the required parameter 'deviceUID' is set
313
+ if (deviceUID === undefined || deviceUID === null) {
314
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
315
+ }
316
+ // verify the required parameter 'notefileID' is set
317
+ if (notefileID === undefined || notefileID === null) {
318
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
319
+ }
320
+ // verify the required parameter 'noteID' is set
321
+ if (noteID === undefined || noteID === null) {
322
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
323
+ }
324
+ var pathParams = {
325
+ 'projectOrProductUID': projectOrProductUID,
326
+ 'deviceUID': deviceUID,
327
+ 'notefileID': notefileID,
328
+ 'noteID': noteID
329
+ };
330
+ var queryParams = {};
331
+ var headerParams = {};
332
+ var formParams = {};
333
+ var authNames = ['personalAccessToken'];
334
+ var contentTypes = [];
335
+ var accepts = ['application/json'];
336
+ var returnType = null;
337
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
+ }
339
+
340
+ /**
341
+ * Delete a note from a .db or .qi notefile
342
+ * @param {String} projectOrProductUID
343
+ * @param {String} deviceUID
344
+ * @param {String} notefileID
345
+ * @param {String} noteID
346
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
347
+ */
348
+ }, {
349
+ key: "deleteNote",
350
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
351
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
352
+ return response_and_data.data;
353
+ });
354
+ }
355
+
357
356
  /**
358
357
  * Deletes Notefiles and the Notes they contain.
359
- * @param {String} projectOrProductUID
360
- * @param {String} deviceUID
361
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
358
+ * @param {String} projectOrProductUID
359
+ * @param {String} deviceUID
360
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
362
361
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
363
362
  */
364
363
  }, {
@@ -378,24 +377,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
378
377
  throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
379
378
  }
380
379
  var pathParams = {
381
- projectOrProductUID: projectOrProductUID,
382
- deviceUID: deviceUID
380
+ 'projectOrProductUID': projectOrProductUID,
381
+ 'deviceUID': deviceUID
383
382
  };
384
383
  var queryParams = {};
385
384
  var headerParams = {};
386
385
  var formParams = {};
387
- var authNames = ["personalAccessToken"];
388
- var contentTypes = ["application/json"];
389
- var accepts = ["application/json"];
386
+ var authNames = ['personalAccessToken'];
387
+ var contentTypes = ['application/json'];
388
+ var accepts = ['application/json'];
390
389
  var returnType = null;
391
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
390
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
392
391
  }
393
392
 
394
393
  /**
395
394
  * Deletes Notefiles and the Notes they contain.
396
- * @param {String} projectOrProductUID
397
- * @param {String} deviceUID
398
- * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
395
+ * @param {String} projectOrProductUID
396
+ * @param {String} deviceUID
397
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
399
398
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
400
399
  */
401
400
  }, {
@@ -408,8 +407,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
408
407
 
409
408
  /**
410
409
  * Disable Device
411
- * @param {String} projectOrProductUID
412
- * @param {String} deviceUID
410
+ * @param {String} projectOrProductUID
411
+ * @param {String} deviceUID
413
412
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
414
413
  */
415
414
  }, {
@@ -425,23 +424,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
425
424
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
426
425
  }
427
426
  var pathParams = {
428
- projectOrProductUID: projectOrProductUID,
429
- deviceUID: deviceUID
427
+ 'projectOrProductUID': projectOrProductUID,
428
+ 'deviceUID': deviceUID
430
429
  };
431
430
  var queryParams = {};
432
431
  var headerParams = {};
433
432
  var formParams = {};
434
- var authNames = ["personalAccessToken"];
433
+ var authNames = ['personalAccessToken'];
435
434
  var contentTypes = [];
436
- var accepts = ["application/json"];
435
+ var accepts = ['application/json'];
437
436
  var returnType = null;
438
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
437
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
439
438
  }
440
439
 
441
440
  /**
442
441
  * Disable Device
443
- * @param {String} projectOrProductUID
444
- * @param {String} deviceUID
442
+ * @param {String} projectOrProductUID
443
+ * @param {String} deviceUID
445
444
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
446
445
  */
447
446
  }, {
@@ -454,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
454
453
 
455
454
  /**
456
455
  * Disable Connectivity Assurance
457
- * @param {String} projectOrProductUID
458
- * @param {String} deviceUID
456
+ * @param {String} projectOrProductUID
457
+ * @param {String} deviceUID
459
458
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
460
459
  */
461
460
  }, {
@@ -471,23 +470,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
471
470
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
472
471
  }
473
472
  var pathParams = {
474
- projectOrProductUID: projectOrProductUID,
475
- deviceUID: deviceUID
473
+ 'projectOrProductUID': projectOrProductUID,
474
+ 'deviceUID': deviceUID
476
475
  };
477
476
  var queryParams = {};
478
477
  var headerParams = {};
479
478
  var formParams = {};
480
- var authNames = ["personalAccessToken"];
479
+ var authNames = ['personalAccessToken'];
481
480
  var contentTypes = [];
482
- var accepts = ["application/json"];
481
+ var accepts = ['application/json'];
483
482
  var returnType = null;
484
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
483
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
485
484
  }
486
485
 
487
486
  /**
488
487
  * Disable Connectivity Assurance
489
- * @param {String} projectOrProductUID
490
- * @param {String} deviceUID
488
+ * @param {String} projectOrProductUID
489
+ * @param {String} deviceUID
491
490
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
492
491
  */
493
492
  }, {
@@ -500,8 +499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
500
499
 
501
500
  /**
502
501
  * Enable Device
503
- * @param {String} projectOrProductUID
504
- * @param {String} deviceUID
502
+ * @param {String} projectOrProductUID
503
+ * @param {String} deviceUID
505
504
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
506
505
  */
507
506
  }, {
@@ -517,23 +516,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
517
516
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
518
517
  }
519
518
  var pathParams = {
520
- projectOrProductUID: projectOrProductUID,
521
- deviceUID: deviceUID
519
+ 'projectOrProductUID': projectOrProductUID,
520
+ 'deviceUID': deviceUID
522
521
  };
523
522
  var queryParams = {};
524
523
  var headerParams = {};
525
524
  var formParams = {};
526
- var authNames = ["personalAccessToken"];
525
+ var authNames = ['personalAccessToken'];
527
526
  var contentTypes = [];
528
- var accepts = ["application/json"];
527
+ var accepts = ['application/json'];
529
528
  var returnType = null;
530
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
529
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
531
530
  }
532
531
 
533
532
  /**
534
533
  * Enable Device
535
- * @param {String} projectOrProductUID
536
- * @param {String} deviceUID
534
+ * @param {String} projectOrProductUID
535
+ * @param {String} deviceUID
537
536
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
538
537
  */
539
538
  }, {
@@ -546,8 +545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
546
545
 
547
546
  /**
548
547
  * Enable Connectivity Assurance
549
- * @param {String} projectOrProductUID
550
- * @param {String} deviceUID
548
+ * @param {String} projectOrProductUID
549
+ * @param {String} deviceUID
551
550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
552
551
  */
553
552
  }, {
@@ -563,23 +562,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
563
562
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
564
563
  }
565
564
  var pathParams = {
566
- projectOrProductUID: projectOrProductUID,
567
- deviceUID: deviceUID
565
+ 'projectOrProductUID': projectOrProductUID,
566
+ 'deviceUID': deviceUID
568
567
  };
569
568
  var queryParams = {};
570
569
  var headerParams = {};
571
570
  var formParams = {};
572
- var authNames = ["personalAccessToken"];
571
+ var authNames = ['personalAccessToken'];
573
572
  var contentTypes = [];
574
- var accepts = ["application/json"];
573
+ var accepts = ['application/json'];
575
574
  var returnType = null;
576
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
575
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
577
576
  }
578
577
 
579
578
  /**
580
579
  * Enable Connectivity Assurance
581
- * @param {String} projectOrProductUID
582
- * @param {String} deviceUID
580
+ * @param {String} projectOrProductUID
581
+ * @param {String} deviceUID
583
582
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
584
583
  */
585
584
  }, {
@@ -591,11 +590,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
591
590
  }
592
591
 
593
592
  /**
594
- * Get a note from a .db notefile
595
- * @param {String} projectOrProductUID
596
- * @param {String} deviceUID
597
- * @param {String} notefileID
598
- * @param {String} noteID
593
+ * Get a note from a .db or .qi notefile
594
+ * @param {String} projectOrProductUID
595
+ * @param {String} deviceUID
596
+ * @param {String} notefileID
597
+ * @param {String} noteID
599
598
  * @param {Object} opts Optional parameters
600
599
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
601
600
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -623,30 +622,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
623
622
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
624
623
  }
625
624
  var pathParams = {
626
- projectOrProductUID: projectOrProductUID,
627
- deviceUID: deviceUID,
628
- notefileID: notefileID,
629
- noteID: noteID
625
+ 'projectOrProductUID': projectOrProductUID,
626
+ 'deviceUID': deviceUID,
627
+ 'notefileID': notefileID,
628
+ 'noteID': noteID
630
629
  };
631
630
  var queryParams = {
632
- "delete": opts["_delete"],
633
- deleted: opts["deleted"]
631
+ 'delete': opts['_delete'],
632
+ 'deleted': opts['deleted']
634
633
  };
635
634
  var headerParams = {};
636
635
  var formParams = {};
637
- var authNames = ["personalAccessToken"];
636
+ var authNames = ['personalAccessToken'];
638
637
  var contentTypes = [];
639
- var accepts = ["application/json"];
638
+ var accepts = ['application/json'];
640
639
  var returnType = _GetDbNote200Response["default"];
641
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
640
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
642
641
  }
643
642
 
644
643
  /**
645
- * Get a note from a .db notefile
646
- * @param {String} projectOrProductUID
647
- * @param {String} deviceUID
648
- * @param {String} notefileID
649
- * @param {String} noteID
644
+ * Get a note from a .db or .qi notefile
645
+ * @param {String} projectOrProductUID
646
+ * @param {String} deviceUID
647
+ * @param {String} notefileID
648
+ * @param {String} noteID
650
649
  * @param {Object} opts Optional parameters
651
650
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
652
651
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -662,8 +661,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
662
661
 
663
662
  /**
664
663
  * Get Device
665
- * @param {String} projectOrProductUID
666
- * @param {String} deviceUID
664
+ * @param {String} projectOrProductUID
665
+ * @param {String} deviceUID
667
666
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
668
667
  */
669
668
  }, {
@@ -679,23 +678,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
679
678
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
680
679
  }
681
680
  var pathParams = {
682
- projectOrProductUID: projectOrProductUID,
683
- deviceUID: deviceUID
681
+ 'projectOrProductUID': projectOrProductUID,
682
+ 'deviceUID': deviceUID
684
683
  };
685
684
  var queryParams = {};
686
685
  var headerParams = {};
687
686
  var formParams = {};
688
- var authNames = ["personalAccessToken"];
687
+ var authNames = ['personalAccessToken'];
689
688
  var contentTypes = [];
690
- var accepts = ["application/json"];
689
+ var accepts = ['application/json'];
691
690
  var returnType = _Device["default"];
692
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
691
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
693
692
  }
694
693
 
695
694
  /**
696
695
  * Get Device
697
- * @param {String} projectOrProductUID
698
- * @param {String} deviceUID
696
+ * @param {String} projectOrProductUID
697
+ * @param {String} deviceUID
699
698
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
700
699
  */
701
700
  }, {
@@ -708,8 +707,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
708
707
 
709
708
  /**
710
709
  * Get environment variable hierarchy for a device
711
- * @param {String} projectOrProductUID
712
- * @param {String} deviceUID
710
+ * @param {String} projectOrProductUID
711
+ * @param {String} deviceUID
713
712
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
714
713
  */
715
714
  }, {
@@ -725,23 +724,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
725
724
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
726
725
  }
727
726
  var pathParams = {
728
- projectOrProductUID: projectOrProductUID,
729
- deviceUID: deviceUID
727
+ 'projectOrProductUID': projectOrProductUID,
728
+ 'deviceUID': deviceUID
730
729
  };
731
730
  var queryParams = {};
732
731
  var headerParams = {};
733
732
  var formParams = {};
734
- var authNames = ["personalAccessToken"];
733
+ var authNames = ['personalAccessToken'];
735
734
  var contentTypes = [];
736
- var accepts = ["application/json"];
735
+ var accepts = ['application/json'];
737
736
  var returnType = _EnvTreeJsonNode["default"];
738
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
737
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
739
738
  }
740
739
 
741
740
  /**
742
741
  * Get environment variable hierarchy for a device
743
- * @param {String} projectOrProductUID
744
- * @param {String} deviceUID
742
+ * @param {String} projectOrProductUID
743
+ * @param {String} deviceUID
745
744
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
746
745
  */
747
746
  }, {
@@ -754,8 +753,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
754
753
 
755
754
  /**
756
755
  * Get environment variables of a device
757
- * @param {String} projectOrProductUID
758
- * @param {String} deviceUID
756
+ * @param {String} projectOrProductUID
757
+ * @param {String} deviceUID
759
758
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
760
759
  */
761
760
  }, {
@@ -771,23 +770,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
771
770
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
772
771
  }
773
772
  var pathParams = {
774
- projectOrProductUID: projectOrProductUID,
775
- deviceUID: deviceUID
773
+ 'projectOrProductUID': projectOrProductUID,
774
+ 'deviceUID': deviceUID
776
775
  };
777
776
  var queryParams = {};
778
777
  var headerParams = {};
779
778
  var formParams = {};
780
- var authNames = ["personalAccessToken"];
779
+ var authNames = ['personalAccessToken'];
781
780
  var contentTypes = [];
782
- var accepts = ["application/json"];
781
+ var accepts = ['application/json'];
783
782
  var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
784
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
783
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
785
784
  }
786
785
 
787
786
  /**
788
787
  * Get environment variables of a device
789
- * @param {String} projectOrProductUID
790
- * @param {String} deviceUID
788
+ * @param {String} projectOrProductUID
789
+ * @param {String} deviceUID
791
790
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
792
791
  */
793
792
  }, {
@@ -800,8 +799,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
800
799
 
801
800
  /**
802
801
  * Get environment variables of a device with device pin authorization
803
- * @param {String} productUID
804
- * @param {String} deviceUID
802
+ * @param {String} productUID
803
+ * @param {String} deviceUID
805
804
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
806
805
  */
807
806
  }, {
@@ -817,23 +816,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
817
816
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
818
817
  }
819
818
  var pathParams = {
820
- productUID: productUID,
821
- deviceUID: deviceUID
819
+ 'productUID': productUID,
820
+ 'deviceUID': deviceUID
822
821
  };
823
822
  var queryParams = {};
824
823
  var headerParams = {};
825
824
  var formParams = {};
826
- var authNames = ["pin"];
825
+ var authNames = ['pin'];
827
826
  var contentTypes = [];
828
- var accepts = ["application/json"];
827
+ var accepts = ['application/json'];
829
828
  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);
829
+ 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
830
  }
832
831
 
833
832
  /**
834
833
  * Get environment variables of a device with device pin authorization
835
- * @param {String} productUID
836
- * @param {String} deviceUID
834
+ * @param {String} productUID
835
+ * @param {String} deviceUID
837
836
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
838
837
  */
839
838
  }, {
@@ -846,8 +845,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
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,8 +1535,8 @@ 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
1596
1540
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1597
1541
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1598
1542
  */
@@ -1613,23 +1557,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1613
1557
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
1614
1558
  }
1615
1559
  var pathParams = {
1616
- productUID: productUID,
1617
- deviceUID: deviceUID
1560
+ 'productUID': productUID,
1561
+ 'deviceUID': deviceUID
1618
1562
  };
1619
1563
  var queryParams = {};
1620
1564
  var headerParams = {};
1621
1565
  var formParams = {};
1622
- var authNames = ["pin"];
1623
- var contentTypes = ["application/json"];
1624
- var accepts = ["application/json"];
1566
+ var authNames = ['pin'];
1567
+ var contentTypes = ['application/json'];
1568
+ var accepts = ['application/json'];
1625
1569
  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);
1570
+ 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
1571
  }
1628
1572
 
1629
1573
  /**
1630
1574
  * Set environment variables of a device with device pin authorization
1631
- * @param {String} productUID
1632
- * @param {String} deviceUID
1575
+ * @param {String} productUID
1576
+ * @param {String} deviceUID
1633
1577
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1634
1578
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1635
1579
  */
@@ -1643,8 +1587,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1643
1587
 
1644
1588
  /**
1645
1589
  * Send a signal from Notehub to a Notecard.
1646
- * @param {String} projectOrProductUID
1647
- * @param {String} deviceUID
1590
+ * @param {String} projectOrProductUID
1591
+ * @param {String} deviceUID
1648
1592
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1649
1593
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1650
1594
  */
@@ -1665,23 +1609,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1665
1609
  throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1666
1610
  }
1667
1611
  var pathParams = {
1668
- projectOrProductUID: projectOrProductUID,
1669
- deviceUID: deviceUID
1612
+ 'projectOrProductUID': projectOrProductUID,
1613
+ 'deviceUID': deviceUID
1670
1614
  };
1671
1615
  var queryParams = {};
1672
1616
  var headerParams = {};
1673
1617
  var formParams = {};
1674
- var authNames = ["personalAccessToken"];
1675
- var contentTypes = ["application/json"];
1676
- var accepts = ["application/json"];
1618
+ var authNames = ['personalAccessToken'];
1619
+ var contentTypes = ['application/json'];
1620
+ var accepts = ['application/json'];
1677
1621
  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);
1622
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1679
1623
  }
1680
1624
 
1681
1625
  /**
1682
1626
  * Send a signal from Notehub to a Notecard.
1683
- * @param {String} projectOrProductUID
1684
- * @param {String} deviceUID
1627
+ * @param {String} projectOrProductUID
1628
+ * @param {String} deviceUID
1685
1629
  * @param {module:model/Body} body Body or payload of signal to be sent to the device
1686
1630
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1687
1631
  */
@@ -1694,18 +1638,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1694
1638
  }
1695
1639
 
1696
1640
  /**
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
1641
+ * Update a note in a .db or .qi notefile
1642
+ * @param {String} projectOrProductUID
1643
+ * @param {String} deviceUID
1644
+ * @param {String} notefileID
1645
+ * @param {String} noteID
1646
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1703
1647
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1704
1648
  */
1705
1649
  }, {
1706
1650
  key: "updateDbNoteWithHttpInfo",
1707
- value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1708
- var postBody = note;
1651
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1652
+ var postBody = noteInput;
1709
1653
  // verify the required parameter 'projectOrProductUID' is set
1710
1654
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1711
1655
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
@@ -1722,39 +1666,39 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1722
1666
  if (noteID === undefined || noteID === null) {
1723
1667
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1724
1668
  }
1725
- // verify the required parameter 'note' is set
1726
- if (note === undefined || note === null) {
1727
- throw new _Error["default"]("Missing the required parameter 'note' when calling updateDbNote");
1669
+ // verify the required parameter 'noteInput' is set
1670
+ if (noteInput === undefined || noteInput === null) {
1671
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1728
1672
  }
1729
1673
  var pathParams = {
1730
- projectOrProductUID: projectOrProductUID,
1731
- deviceUID: deviceUID,
1732
- notefileID: notefileID,
1733
- noteID: noteID
1674
+ 'projectOrProductUID': projectOrProductUID,
1675
+ 'deviceUID': deviceUID,
1676
+ 'notefileID': notefileID,
1677
+ 'noteID': noteID
1734
1678
  };
1735
1679
  var queryParams = {};
1736
1680
  var headerParams = {};
1737
1681
  var formParams = {};
1738
- var authNames = ["personalAccessToken"];
1739
- var contentTypes = ["application/json"];
1740
- var accepts = ["application/json"];
1682
+ var authNames = ['personalAccessToken'];
1683
+ var contentTypes = ['application/json'];
1684
+ var accepts = ['application/json'];
1741
1685
  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);
1686
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1743
1687
  }
1744
1688
 
1745
1689
  /**
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
1690
+ * Update a note in a .db or .qi notefile
1691
+ * @param {String} projectOrProductUID
1692
+ * @param {String} deviceUID
1693
+ * @param {String} notefileID
1694
+ * @param {String} noteID
1695
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1752
1696
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1753
1697
  */
1754
1698
  }, {
1755
1699
  key: "updateDbNote",
1756
- value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1757
- return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1700
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1701
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1758
1702
  return response_and_data.data;
1759
1703
  });
1760
1704
  }