@blues-inc/notehub-js 2.3.0-beta.9 → 3.0.0

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