@blues-inc/notehub-js 1.0.33 → 1.0.34-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +232 -213
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +28 -28
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +513 -513
  7. package/dist/api/EventApi.js +148 -148
  8. package/dist/api/ExternalDevicesApi.js +203 -0
  9. package/dist/api/MonitorApi.js +82 -82
  10. package/dist/api/ProjectApi.js +541 -541
  11. package/dist/api/RepositoryApi.js +103 -103
  12. package/dist/api/RouteApi.js +110 -110
  13. package/dist/api/WebhookApi.js +282 -0
  14. package/dist/index.js +28 -0
  15. package/dist/model/Alert.js +76 -74
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/Aws.js +65 -65
  19. package/dist/model/Azure.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CloneProjectRequest.js +20 -20
  24. package/dist/model/Contact.js +22 -22
  25. package/dist/model/CreateFleetRequest.js +12 -12
  26. package/dist/model/CreateMonitor.js +126 -125
  27. package/dist/model/CreateProductRequest.js +22 -22
  28. package/dist/model/CreateProjectRequest.js +16 -16
  29. package/dist/model/CreateUpdateRepository.js +17 -17
  30. package/dist/model/CurrentFirmware.js +12 -12
  31. package/dist/model/DFUEnv.js +12 -12
  32. package/dist/model/DFUState.js +65 -65
  33. package/dist/model/DataField.js +7 -7
  34. package/dist/model/DataSet.js +30 -29
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  37. package/dist/model/Device.js +102 -101
  38. package/dist/model/DeviceDfuHistory.js +20 -19
  39. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  40. package/dist/model/DeviceDfuStateMachine.js +25 -24
  41. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  42. package/dist/model/DeviceDfuStatus.js +20 -20
  43. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  44. package/dist/model/DeviceDfuStatusPage.js +13 -12
  45. package/dist/model/DeviceSession.js +296 -185
  46. package/dist/model/DeviceTowerInfo.js +14 -14
  47. package/dist/model/DeviceUsage.js +35 -33
  48. package/dist/model/DfuActionRequest.js +7 -7
  49. package/dist/model/EmailNotification.js +7 -7
  50. package/dist/model/EnvironmentVariables.js +8 -8
  51. package/dist/model/Error.js +31 -31
  52. package/dist/model/Event.js +256 -243
  53. package/dist/model/Firmware.js +49 -49
  54. package/dist/model/FirmwareInfo.js +60 -60
  55. package/dist/model/Fleet.js +36 -27
  56. package/dist/model/GetAlerts200Response.js +15 -14
  57. package/dist/model/GetBillingAccounts200Response.js +10 -9
  58. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  59. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  60. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  61. package/dist/model/GetDeviceLatest200Response.js +10 -9
  62. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  63. package/dist/model/GetDeviceSessions200Response.js +17 -16
  64. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  65. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  66. package/dist/model/GetProjectDevices200Response.js +17 -16
  67. package/dist/model/GetProjectEvents200Response.js +21 -20
  68. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  69. package/dist/model/GetProjectFleets200Response.js +12 -11
  70. package/dist/model/GetProjectMembers200Response.js +12 -11
  71. package/dist/model/GetProjectProducts200Response.js +10 -9
  72. package/dist/model/GetProjects200Response.js +10 -9
  73. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
  74. package/dist/model/GetWebhooks200Response.js +112 -0
  75. package/dist/model/Google.js +33 -33
  76. package/dist/model/HandleNoteChanges200Response.js +11 -11
  77. package/dist/model/HandleNoteGet200Response.js +13 -13
  78. package/dist/model/HandleNoteSignal200Response.js +5 -5
  79. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  80. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  81. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  82. package/dist/model/Http.js +35 -35
  83. package/dist/model/HttpFilter.js +19 -19
  84. package/dist/model/HttpTransform.js +20 -20
  85. package/dist/model/Location.js +40 -40
  86. package/dist/model/Login200Response.js +7 -7
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +100 -99
  89. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  90. package/dist/model/Mqtt.js +66 -66
  91. package/dist/model/Note.js +10 -10
  92. package/dist/model/NotefileSchema.js +19 -18
  93. package/dist/model/NotehubRoute.js +36 -36
  94. package/dist/model/NotehubRouteSchema.js +45 -46
  95. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  96. package/dist/model/Product.js +26 -26
  97. package/dist/model/Project.js +34 -34
  98. package/dist/model/ProjectMember.js +22 -22
  99. package/dist/model/Proxy.js +24 -24
  100. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  101. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  102. package/dist/model/QuestionDataResponseMap.js +16 -16
  103. package/dist/model/Radresponder.js +25 -25
  104. package/dist/model/Repository.js +22 -22
  105. package/dist/model/Role.js +9 -9
  106. package/dist/model/SchemaProperty.js +40 -38
  107. package/dist/model/SimUsage.js +19 -19
  108. package/dist/model/Slack.js +53 -53
  109. package/dist/model/SlackBearerNotification.js +25 -25
  110. package/dist/model/SlackWebHookNotification.js +20 -20
  111. package/dist/model/Snowflake.js +45 -45
  112. package/dist/model/SnowflakeTransform.js +12 -12
  113. package/dist/model/Thingworx.js +33 -33
  114. package/dist/model/TowerLocation.js +70 -58
  115. package/dist/model/Twilio.js +43 -43
  116. package/dist/model/UpdateFleetRequest.js +31 -22
  117. package/dist/model/UploadMetadata.js +59 -59
  118. package/dist/model/UserDbRoute.js +25 -25
  119. package/dist/model/UserDfuStateMachine.js +20 -20
  120. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  121. package/dist/model/UserFirmwareInfo.js +12 -12
  122. package/dist/model/WebhookSettings.js +114 -0
  123. package/package.json +3 -3
@@ -32,7 +32,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
32
32
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
33
  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); } /**
34
34
  * Notehub API
35
- * The OpenAPI definition for the Notehub.io API.
35
+ * The OpenAPI definition for the Notehub.io API.
36
36
  *
37
37
  * The version of the OpenAPI document: 1.2.0
38
38
  * Contact: engineering@blues.io
@@ -43,18 +43,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
43
43
  *
44
44
  */
45
45
  /**
46
- * Device service.
47
- * @module api/DeviceApi
48
- * @version 1.0.33
49
- */
46
+ * Device service.
47
+ * @module api/DeviceApi
48
+ * @version 1.0.34-beta.2
49
+ */
50
50
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
51
51
  /**
52
- * Constructs a new DeviceApi.
53
- * @alias module:api/DeviceApi
54
- * @class
55
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
56
- * default to {@link module:ApiClient#instance} if unspecified.
57
- */
52
+ * Constructs a new DeviceApi.
53
+ * @alias module:api/DeviceApi
54
+ * @class
55
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
56
+ * default to {@link module:ApiClient#instance} if unspecified.
57
+ */
58
58
  function DeviceApi(apiClient) {
59
59
  _classCallCheck(this, DeviceApi);
60
60
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -62,18 +62,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
62
62
 
63
63
  /**
64
64
  * Delete environment variable of a device
65
- * @param {String} projectUID
66
- * @param {String} deviceUID
65
+ * @param {String} projectOrProductUID
66
+ * @param {String} deviceUID
67
67
  * @param {String} key The environment variable key to delete.
68
68
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
69
69
  */
70
70
  return _createClass(DeviceApi, [{
71
71
  key: "deleteDeviceEnvironmentVariableWithHttpInfo",
72
- value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectUID, deviceUID, key) {
72
+ value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
73
73
  var postBody = null;
74
- // verify the required parameter 'projectUID' is set
75
- if (projectUID === undefined || projectUID === null) {
76
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteDeviceEnvironmentVariable");
74
+ // verify the required parameter 'projectOrProductUID' is set
75
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
76
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
77
77
  }
78
78
  // verify the required parameter 'deviceUID' is set
79
79
  if (deviceUID === undefined || deviceUID === null) {
@@ -84,49 +84,49 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
84
84
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
85
85
  }
86
86
  var pathParams = {
87
- projectUID: projectUID,
88
- deviceUID: deviceUID,
89
- key: key
87
+ 'projectOrProductUID': projectOrProductUID,
88
+ 'deviceUID': deviceUID,
89
+ 'key': key
90
90
  };
91
91
  var queryParams = {};
92
92
  var headerParams = {};
93
93
  var formParams = {};
94
- var authNames = ["api_key"];
94
+ var authNames = ['api_key'];
95
95
  var contentTypes = [];
96
- var accepts = ["application/json"];
96
+ var accepts = ['application/json'];
97
97
  var returnType = _EnvironmentVariables["default"];
98
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
98
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
99
99
  }
100
100
 
101
101
  /**
102
102
  * Delete environment variable of a device
103
- * @param {String} projectUID
104
- * @param {String} deviceUID
103
+ * @param {String} projectOrProductUID
104
+ * @param {String} deviceUID
105
105
  * @param {String} key The environment variable key to delete.
106
106
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
107
107
  */
108
108
  }, {
109
109
  key: "deleteDeviceEnvironmentVariable",
110
- value: function deleteDeviceEnvironmentVariable(projectUID, deviceUID, key) {
111
- return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectUID, deviceUID, key).then(function (response_and_data) {
110
+ value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
111
+ return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
112
112
  return response_and_data.data;
113
113
  });
114
114
  }
115
115
 
116
116
  /**
117
117
  * Delete Device
118
- * @param {String} projectUID
119
- * @param {String} deviceUID
120
- * @param {Boolean} purge
118
+ * @param {String} projectOrProductUID
119
+ * @param {String} deviceUID
120
+ * @param {Boolean} purge
121
121
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
122
122
  */
123
123
  }, {
124
124
  key: "deleteProjectDeviceWithHttpInfo",
125
- value: function deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge) {
125
+ value: function deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
126
126
  var postBody = null;
127
- // verify the required parameter 'projectUID' is set
128
- if (projectUID === undefined || projectUID === null) {
129
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectDevice");
127
+ // verify the required parameter 'projectOrProductUID' is set
128
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
129
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectDevice");
130
130
  }
131
131
  // verify the required parameter 'deviceUID' is set
132
132
  if (deviceUID === undefined || deviceUID === null) {
@@ -137,316 +137,316 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
137
137
  throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
138
138
  }
139
139
  var pathParams = {
140
- projectUID: projectUID,
141
- deviceUID: deviceUID
140
+ 'projectOrProductUID': projectOrProductUID,
141
+ 'deviceUID': deviceUID
142
142
  };
143
143
  var queryParams = {
144
- purge: purge
144
+ 'purge': purge
145
145
  };
146
146
  var headerParams = {};
147
147
  var formParams = {};
148
- var authNames = ["api_key"];
148
+ var authNames = ['api_key'];
149
149
  var contentTypes = [];
150
- var accepts = ["application/json"];
150
+ var accepts = ['application/json'];
151
151
  var returnType = null;
152
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
152
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
153
153
  }
154
154
 
155
155
  /**
156
156
  * Delete Device
157
- * @param {String} projectUID
158
- * @param {String} deviceUID
159
- * @param {Boolean} purge
157
+ * @param {String} projectOrProductUID
158
+ * @param {String} deviceUID
159
+ * @param {Boolean} purge
160
160
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
161
161
  */
162
162
  }, {
163
163
  key: "deleteProjectDevice",
164
- value: function deleteProjectDevice(projectUID, deviceUID, purge) {
165
- return this.deleteProjectDeviceWithHttpInfo(projectUID, deviceUID, purge).then(function (response_and_data) {
164
+ value: function deleteProjectDevice(projectOrProductUID, deviceUID, purge) {
165
+ return this.deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
166
166
  return response_and_data.data;
167
167
  });
168
168
  }
169
169
 
170
170
  /**
171
171
  * Disable Device
172
- * @param {String} projectUID
173
- * @param {String} deviceUID
172
+ * @param {String} projectOrProductUID
173
+ * @param {String} deviceUID
174
174
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
175
175
  */
176
176
  }, {
177
177
  key: "disableDeviceWithHttpInfo",
178
- value: function disableDeviceWithHttpInfo(projectUID, deviceUID) {
178
+ value: function disableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
179
179
  var postBody = null;
180
- // verify the required parameter 'projectUID' is set
181
- if (projectUID === undefined || projectUID === null) {
182
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableDevice");
180
+ // verify the required parameter 'projectOrProductUID' is set
181
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
182
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDevice");
183
183
  }
184
184
  // verify the required parameter 'deviceUID' is set
185
185
  if (deviceUID === undefined || deviceUID === null) {
186
186
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
187
187
  }
188
188
  var pathParams = {
189
- projectUID: projectUID,
190
- deviceUID: deviceUID
189
+ 'projectOrProductUID': projectOrProductUID,
190
+ 'deviceUID': deviceUID
191
191
  };
192
192
  var queryParams = {};
193
193
  var headerParams = {};
194
194
  var formParams = {};
195
- var authNames = ["api_key"];
195
+ var authNames = ['api_key'];
196
196
  var contentTypes = [];
197
- var accepts = ["application/json"];
197
+ var accepts = ['application/json'];
198
198
  var returnType = null;
199
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
199
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
200
200
  }
201
201
 
202
202
  /**
203
203
  * Disable Device
204
- * @param {String} projectUID
205
- * @param {String} deviceUID
204
+ * @param {String} projectOrProductUID
205
+ * @param {String} deviceUID
206
206
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
207
207
  */
208
208
  }, {
209
209
  key: "disableDevice",
210
- value: function disableDevice(projectUID, deviceUID) {
211
- return this.disableDeviceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
210
+ value: function disableDevice(projectOrProductUID, deviceUID) {
211
+ return this.disableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
212
212
  return response_and_data.data;
213
213
  });
214
214
  }
215
215
 
216
216
  /**
217
217
  * Disable Connectivity Assurance
218
- * @param {String} projectUID
219
- * @param {String} deviceUID
218
+ * @param {String} projectOrProductUID
219
+ * @param {String} deviceUID
220
220
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
221
221
  */
222
222
  }, {
223
223
  key: "disableDeviceConnectivityAssuranceWithHttpInfo",
224
- value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectUID, deviceUID) {
224
+ value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
225
225
  var postBody = null;
226
- // verify the required parameter 'projectUID' is set
227
- if (projectUID === undefined || projectUID === null) {
228
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableDeviceConnectivityAssurance");
226
+ // verify the required parameter 'projectOrProductUID' is set
227
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
228
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDeviceConnectivityAssurance");
229
229
  }
230
230
  // verify the required parameter 'deviceUID' is set
231
231
  if (deviceUID === undefined || deviceUID === null) {
232
232
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
233
233
  }
234
234
  var pathParams = {
235
- projectUID: projectUID,
236
- deviceUID: deviceUID
235
+ 'projectOrProductUID': projectOrProductUID,
236
+ 'deviceUID': deviceUID
237
237
  };
238
238
  var queryParams = {};
239
239
  var headerParams = {};
240
240
  var formParams = {};
241
- var authNames = ["api_key"];
241
+ var authNames = ['api_key'];
242
242
  var contentTypes = [];
243
- var accepts = ["application/json"];
243
+ var accepts = ['application/json'];
244
244
  var returnType = null;
245
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
245
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
246
246
  }
247
247
 
248
248
  /**
249
249
  * Disable Connectivity Assurance
250
- * @param {String} projectUID
251
- * @param {String} deviceUID
250
+ * @param {String} projectOrProductUID
251
+ * @param {String} deviceUID
252
252
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
253
253
  */
254
254
  }, {
255
255
  key: "disableDeviceConnectivityAssurance",
256
- value: function disableDeviceConnectivityAssurance(projectUID, deviceUID) {
257
- return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
256
+ value: function disableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
257
+ return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
258
258
  return response_and_data.data;
259
259
  });
260
260
  }
261
261
 
262
262
  /**
263
263
  * Enable Device
264
- * @param {String} projectUID
265
- * @param {String} deviceUID
264
+ * @param {String} projectOrProductUID
265
+ * @param {String} deviceUID
266
266
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
267
267
  */
268
268
  }, {
269
269
  key: "enableDeviceWithHttpInfo",
270
- value: function enableDeviceWithHttpInfo(projectUID, deviceUID) {
270
+ value: function enableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
271
271
  var postBody = null;
272
- // verify the required parameter 'projectUID' is set
273
- if (projectUID === undefined || projectUID === null) {
274
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableDevice");
272
+ // verify the required parameter 'projectOrProductUID' is set
273
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
274
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDevice");
275
275
  }
276
276
  // verify the required parameter 'deviceUID' is set
277
277
  if (deviceUID === undefined || deviceUID === null) {
278
278
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
279
279
  }
280
280
  var pathParams = {
281
- projectUID: projectUID,
282
- deviceUID: deviceUID
281
+ 'projectOrProductUID': projectOrProductUID,
282
+ 'deviceUID': deviceUID
283
283
  };
284
284
  var queryParams = {};
285
285
  var headerParams = {};
286
286
  var formParams = {};
287
- var authNames = ["api_key"];
287
+ var authNames = ['api_key'];
288
288
  var contentTypes = [];
289
- var accepts = ["application/json"];
289
+ var accepts = ['application/json'];
290
290
  var returnType = null;
291
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
291
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
292
292
  }
293
293
 
294
294
  /**
295
295
  * Enable Device
296
- * @param {String} projectUID
297
- * @param {String} deviceUID
296
+ * @param {String} projectOrProductUID
297
+ * @param {String} deviceUID
298
298
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
299
299
  */
300
300
  }, {
301
301
  key: "enableDevice",
302
- value: function enableDevice(projectUID, deviceUID) {
303
- return this.enableDeviceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
302
+ value: function enableDevice(projectOrProductUID, deviceUID) {
303
+ return this.enableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
304
304
  return response_and_data.data;
305
305
  });
306
306
  }
307
307
 
308
308
  /**
309
309
  * Enable Connectivity Assurance
310
- * @param {String} projectUID
311
- * @param {String} deviceUID
310
+ * @param {String} projectOrProductUID
311
+ * @param {String} deviceUID
312
312
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
313
313
  */
314
314
  }, {
315
315
  key: "enableDeviceConnectivityAssuranceWithHttpInfo",
316
- value: function enableDeviceConnectivityAssuranceWithHttpInfo(projectUID, deviceUID) {
316
+ value: function enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
317
317
  var postBody = null;
318
- // verify the required parameter 'projectUID' is set
319
- if (projectUID === undefined || projectUID === null) {
320
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableDeviceConnectivityAssurance");
318
+ // verify the required parameter 'projectOrProductUID' is set
319
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
320
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDeviceConnectivityAssurance");
321
321
  }
322
322
  // verify the required parameter 'deviceUID' is set
323
323
  if (deviceUID === undefined || deviceUID === null) {
324
324
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
325
325
  }
326
326
  var pathParams = {
327
- projectUID: projectUID,
328
- deviceUID: deviceUID
327
+ 'projectOrProductUID': projectOrProductUID,
328
+ 'deviceUID': deviceUID
329
329
  };
330
330
  var queryParams = {};
331
331
  var headerParams = {};
332
332
  var formParams = {};
333
- var authNames = ["api_key"];
333
+ var authNames = ['api_key'];
334
334
  var contentTypes = [];
335
- var accepts = ["application/json"];
335
+ var accepts = ['application/json'];
336
336
  var returnType = null;
337
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
337
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
338
338
  }
339
339
 
340
340
  /**
341
341
  * Enable Connectivity Assurance
342
- * @param {String} projectUID
343
- * @param {String} deviceUID
342
+ * @param {String} projectOrProductUID
343
+ * @param {String} deviceUID
344
344
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
345
345
  */
346
346
  }, {
347
347
  key: "enableDeviceConnectivityAssurance",
348
- value: function enableDeviceConnectivityAssurance(projectUID, deviceUID) {
349
- return this.enableDeviceConnectivityAssuranceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
348
+ value: function enableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
349
+ return this.enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
350
350
  return response_and_data.data;
351
351
  });
352
352
  }
353
353
 
354
354
  /**
355
355
  * Get Device
356
- * @param {String} projectUID
357
- * @param {String} deviceUID
356
+ * @param {String} projectOrProductUID
357
+ * @param {String} deviceUID
358
358
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
359
359
  */
360
360
  }, {
361
361
  key: "getDeviceWithHttpInfo",
362
- value: function getDeviceWithHttpInfo(projectUID, deviceUID) {
362
+ value: function getDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
363
363
  var postBody = null;
364
- // verify the required parameter 'projectUID' is set
365
- if (projectUID === undefined || projectUID === null) {
366
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevice");
364
+ // verify the required parameter 'projectOrProductUID' is set
365
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
366
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevice");
367
367
  }
368
368
  // verify the required parameter 'deviceUID' is set
369
369
  if (deviceUID === undefined || deviceUID === null) {
370
370
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
371
371
  }
372
372
  var pathParams = {
373
- projectUID: projectUID,
374
- deviceUID: deviceUID
373
+ 'projectOrProductUID': projectOrProductUID,
374
+ 'deviceUID': deviceUID
375
375
  };
376
376
  var queryParams = {};
377
377
  var headerParams = {};
378
378
  var formParams = {};
379
- var authNames = ["api_key"];
379
+ var authNames = ['api_key'];
380
380
  var contentTypes = [];
381
- var accepts = ["application/json"];
381
+ var accepts = ['application/json'];
382
382
  var returnType = _Device["default"];
383
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
383
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
384
384
  }
385
385
 
386
386
  /**
387
387
  * Get Device
388
- * @param {String} projectUID
389
- * @param {String} deviceUID
388
+ * @param {String} projectOrProductUID
389
+ * @param {String} deviceUID
390
390
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
391
391
  */
392
392
  }, {
393
393
  key: "getDevice",
394
- value: function getDevice(projectUID, deviceUID) {
395
- return this.getDeviceWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
394
+ value: function getDevice(projectOrProductUID, deviceUID) {
395
+ return this.getDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
396
396
  return response_and_data.data;
397
397
  });
398
398
  }
399
399
 
400
400
  /**
401
401
  * Get environment variables of a device
402
- * @param {String} projectUID
403
- * @param {String} deviceUID
402
+ * @param {String} projectOrProductUID
403
+ * @param {String} deviceUID
404
404
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
405
405
  */
406
406
  }, {
407
407
  key: "getDeviceEnvironmentVariablesWithHttpInfo",
408
- value: function getDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID) {
408
+ value: function getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID) {
409
409
  var postBody = null;
410
- // verify the required parameter 'projectUID' is set
411
- if (projectUID === undefined || projectUID === null) {
412
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceEnvironmentVariables");
410
+ // verify the required parameter 'projectOrProductUID' is set
411
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
412
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentVariables");
413
413
  }
414
414
  // verify the required parameter 'deviceUID' is set
415
415
  if (deviceUID === undefined || deviceUID === null) {
416
416
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
417
417
  }
418
418
  var pathParams = {
419
- projectUID: projectUID,
420
- deviceUID: deviceUID
419
+ 'projectOrProductUID': projectOrProductUID,
420
+ 'deviceUID': deviceUID
421
421
  };
422
422
  var queryParams = {};
423
423
  var headerParams = {};
424
424
  var formParams = {};
425
- var authNames = ["api_key"];
425
+ var authNames = ['api_key'];
426
426
  var contentTypes = [];
427
- var accepts = ["application/json"];
427
+ var accepts = ['application/json'];
428
428
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
429
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
429
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
430
430
  }
431
431
 
432
432
  /**
433
433
  * Get environment variables of a device
434
- * @param {String} projectUID
435
- * @param {String} deviceUID
434
+ * @param {String} projectOrProductUID
435
+ * @param {String} deviceUID
436
436
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
437
437
  */
438
438
  }, {
439
439
  key: "getDeviceEnvironmentVariables",
440
- value: function getDeviceEnvironmentVariables(projectUID, deviceUID) {
441
- return this.getDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
440
+ value: function getDeviceEnvironmentVariables(projectOrProductUID, deviceUID) {
441
+ return this.getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
442
442
  return response_and_data.data;
443
443
  });
444
444
  }
445
445
 
446
446
  /**
447
447
  * Get environment variables of a device with device pin authorization
448
- * @param {String} productUID
449
- * @param {String} deviceUID
448
+ * @param {String} productUID
449
+ * @param {String} deviceUID
450
450
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
451
451
  */
452
452
  }, {
@@ -462,23 +462,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
462
462
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
463
463
  }
464
464
  var pathParams = {
465
- productUID: productUID,
466
- deviceUID: deviceUID
465
+ 'productUID': productUID,
466
+ 'deviceUID': deviceUID
467
467
  };
468
468
  var queryParams = {};
469
469
  var headerParams = {};
470
470
  var formParams = {};
471
- var authNames = ["pin"];
471
+ var authNames = ['pin'];
472
472
  var contentTypes = [];
473
- var accepts = ["application/json"];
473
+ var accepts = ['application/json'];
474
474
  var returnType = _GetDeviceEnvironmentVariables200Response["default"];
475
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
475
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
476
476
  }
477
477
 
478
478
  /**
479
479
  * Get environment variables of a device with device pin authorization
480
- * @param {String} productUID
481
- * @param {String} deviceUID
480
+ * @param {String} productUID
481
+ * @param {String} deviceUID
482
482
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
483
483
  */
484
484
  }, {
@@ -491,146 +491,146 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
491
491
 
492
492
  /**
493
493
  * Get Device Health Log
494
- * @param {String} projectUID
495
- * @param {String} deviceUID
494
+ * @param {String} projectOrProductUID
495
+ * @param {String} deviceUID
496
496
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
497
497
  */
498
498
  }, {
499
499
  key: "getDeviceHealthLogWithHttpInfo",
500
- value: function getDeviceHealthLogWithHttpInfo(projectUID, deviceUID) {
500
+ value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID) {
501
501
  var postBody = null;
502
- // verify the required parameter 'projectUID' is set
503
- if (projectUID === undefined || projectUID === null) {
504
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceHealthLog");
502
+ // verify the required parameter 'projectOrProductUID' is set
503
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
504
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceHealthLog");
505
505
  }
506
506
  // verify the required parameter 'deviceUID' is set
507
507
  if (deviceUID === undefined || deviceUID === null) {
508
508
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
509
509
  }
510
510
  var pathParams = {
511
- projectUID: projectUID,
512
- deviceUID: deviceUID
511
+ 'projectOrProductUID': projectOrProductUID,
512
+ 'deviceUID': deviceUID
513
513
  };
514
514
  var queryParams = {};
515
515
  var headerParams = {};
516
516
  var formParams = {};
517
- var authNames = ["api_key"];
517
+ var authNames = ['api_key'];
518
518
  var contentTypes = [];
519
- var accepts = ["application/json"];
519
+ var accepts = ['application/json'];
520
520
  var returnType = _GetDeviceHealthLog200Response["default"];
521
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
521
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
522
522
  }
523
523
 
524
524
  /**
525
525
  * Get Device Health Log
526
- * @param {String} projectUID
527
- * @param {String} deviceUID
526
+ * @param {String} projectOrProductUID
527
+ * @param {String} deviceUID
528
528
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
529
529
  */
530
530
  }, {
531
531
  key: "getDeviceHealthLog",
532
- value: function getDeviceHealthLog(projectUID, deviceUID) {
533
- return this.getDeviceHealthLogWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
532
+ value: function getDeviceHealthLog(projectOrProductUID, deviceUID) {
533
+ return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
534
534
  return response_and_data.data;
535
535
  });
536
536
  }
537
537
 
538
538
  /**
539
539
  * Get Device Latest Events
540
- * @param {String} projectUID
541
- * @param {String} deviceUID
540
+ * @param {String} projectOrProductUID
541
+ * @param {String} deviceUID
542
542
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
543
543
  */
544
544
  }, {
545
545
  key: "getDeviceLatestWithHttpInfo",
546
- value: function getDeviceLatestWithHttpInfo(projectUID, deviceUID) {
546
+ value: function getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID) {
547
547
  var postBody = null;
548
- // verify the required parameter 'projectUID' is set
549
- if (projectUID === undefined || projectUID === null) {
550
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceLatest");
548
+ // verify the required parameter 'projectOrProductUID' is set
549
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
550
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatest");
551
551
  }
552
552
  // verify the required parameter 'deviceUID' is set
553
553
  if (deviceUID === undefined || deviceUID === null) {
554
554
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
555
555
  }
556
556
  var pathParams = {
557
- projectUID: projectUID,
558
- deviceUID: deviceUID
557
+ 'projectOrProductUID': projectOrProductUID,
558
+ 'deviceUID': deviceUID
559
559
  };
560
560
  var queryParams = {};
561
561
  var headerParams = {};
562
562
  var formParams = {};
563
- var authNames = ["api_key"];
563
+ var authNames = ['api_key'];
564
564
  var contentTypes = [];
565
- var accepts = ["application/json"];
565
+ var accepts = ['application/json'];
566
566
  var returnType = _GetDeviceLatest200Response["default"];
567
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
567
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
568
568
  }
569
569
 
570
570
  /**
571
571
  * Get Device Latest Events
572
- * @param {String} projectUID
573
- * @param {String} deviceUID
572
+ * @param {String} projectOrProductUID
573
+ * @param {String} deviceUID
574
574
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
575
575
  */
576
576
  }, {
577
577
  key: "getDeviceLatest",
578
- value: function getDeviceLatest(projectUID, deviceUID) {
579
- return this.getDeviceLatestWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
578
+ value: function getDeviceLatest(projectOrProductUID, deviceUID) {
579
+ return this.getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
580
580
  return response_and_data.data;
581
581
  });
582
582
  }
583
583
 
584
584
  /**
585
585
  * Get Device Public Key
586
- * @param {String} projectUID
587
- * @param {String} deviceUID
586
+ * @param {String} projectOrProductUID
587
+ * @param {String} deviceUID
588
588
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
589
589
  */
590
590
  }, {
591
591
  key: "getDevicePublicKeyWithHttpInfo",
592
- value: function getDevicePublicKeyWithHttpInfo(projectUID, deviceUID) {
592
+ value: function getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID) {
593
593
  var postBody = null;
594
- // verify the required parameter 'projectUID' is set
595
- if (projectUID === undefined || projectUID === null) {
596
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicePublicKey");
594
+ // verify the required parameter 'projectOrProductUID' is set
595
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
596
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKey");
597
597
  }
598
598
  // verify the required parameter 'deviceUID' is set
599
599
  if (deviceUID === undefined || deviceUID === null) {
600
600
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
601
601
  }
602
602
  var pathParams = {
603
- projectUID: projectUID,
604
- deviceUID: deviceUID
603
+ 'projectOrProductUID': projectOrProductUID,
604
+ 'deviceUID': deviceUID
605
605
  };
606
606
  var queryParams = {};
607
607
  var headerParams = {};
608
608
  var formParams = {};
609
- var authNames = ["api_key"];
609
+ var authNames = ['api_key'];
610
610
  var contentTypes = [];
611
- var accepts = ["application/json"];
611
+ var accepts = ['application/json'];
612
612
  var returnType = _GetDevicePublicKey200Response["default"];
613
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
613
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
614
614
  }
615
615
 
616
616
  /**
617
617
  * Get Device Public Key
618
- * @param {String} projectUID
619
- * @param {String} deviceUID
618
+ * @param {String} projectOrProductUID
619
+ * @param {String} deviceUID
620
620
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
621
621
  */
622
622
  }, {
623
623
  key: "getDevicePublicKey",
624
- value: function getDevicePublicKey(projectUID, deviceUID) {
625
- return this.getDevicePublicKeyWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
624
+ value: function getDevicePublicKey(projectOrProductUID, deviceUID) {
625
+ return this.getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
626
626
  return response_and_data.data;
627
627
  });
628
628
  }
629
629
 
630
630
  /**
631
631
  * Get Device Sessions
632
- * @param {String} projectUID
633
- * @param {String} deviceUID
632
+ * @param {String} projectOrProductUID
633
+ * @param {String} deviceUID
634
634
  * @param {Object} opts Optional parameters
635
635
  * @param {Number} opts.pageSize (default to 50)
636
636
  * @param {Number} opts.pageNum (default to 1)
@@ -638,38 +638,38 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
638
638
  */
639
639
  }, {
640
640
  key: "getDeviceSessionsWithHttpInfo",
641
- value: function getDeviceSessionsWithHttpInfo(projectUID, deviceUID, opts) {
641
+ value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
642
642
  opts = opts || {};
643
643
  var postBody = null;
644
- // verify the required parameter 'projectUID' is set
645
- if (projectUID === undefined || projectUID === null) {
646
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceSessions");
644
+ // verify the required parameter 'projectOrProductUID' is set
645
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
646
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
647
647
  }
648
648
  // verify the required parameter 'deviceUID' is set
649
649
  if (deviceUID === undefined || deviceUID === null) {
650
650
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
651
651
  }
652
652
  var pathParams = {
653
- projectUID: projectUID,
654
- deviceUID: deviceUID
653
+ 'projectOrProductUID': projectOrProductUID,
654
+ 'deviceUID': deviceUID
655
655
  };
656
656
  var queryParams = {
657
- pageSize: opts["pageSize"],
658
- pageNum: opts["pageNum"]
657
+ 'pageSize': opts['pageSize'],
658
+ 'pageNum': opts['pageNum']
659
659
  };
660
660
  var headerParams = {};
661
661
  var formParams = {};
662
- var authNames = ["api_key"];
662
+ var authNames = ['api_key'];
663
663
  var contentTypes = [];
664
- var accepts = ["application/json"];
664
+ var accepts = ['application/json'];
665
665
  var returnType = _GetDeviceSessions200Response["default"];
666
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
666
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
667
667
  }
668
668
 
669
669
  /**
670
670
  * Get Device Sessions
671
- * @param {String} projectUID
672
- * @param {String} deviceUID
671
+ * @param {String} projectOrProductUID
672
+ * @param {String} deviceUID
673
673
  * @param {Object} opts Optional parameters
674
674
  * @param {Number} opts.pageSize (default to 50)
675
675
  * @param {Number} opts.pageNum (default to 1)
@@ -677,15 +677,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
677
677
  */
678
678
  }, {
679
679
  key: "getDeviceSessions",
680
- value: function getDeviceSessions(projectUID, deviceUID, opts) {
681
- return this.getDeviceSessionsWithHttpInfo(projectUID, deviceUID, opts).then(function (response_and_data) {
680
+ value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
681
+ return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
682
682
  return response_and_data.data;
683
683
  });
684
684
  }
685
685
 
686
686
  /**
687
687
  * Get Device Public Keys of a Project
688
- * @param {String} projectUID
688
+ * @param {String} projectOrProductUID
689
689
  * @param {Object} opts Optional parameters
690
690
  * @param {Number} opts.pageSize (default to 50)
691
691
  * @param {Number} opts.pageNum (default to 1)
@@ -693,32 +693,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
693
693
  */
694
694
  }, {
695
695
  key: "getProjectDevicePublicKeysWithHttpInfo",
696
- value: function getProjectDevicePublicKeysWithHttpInfo(projectUID, opts) {
696
+ value: function getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
697
697
  opts = opts || {};
698
698
  var postBody = null;
699
- // verify the required parameter 'projectUID' is set
700
- if (projectUID === undefined || projectUID === null) {
701
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevicePublicKeys");
699
+ // verify the required parameter 'projectOrProductUID' is set
700
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
701
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
702
702
  }
703
703
  var pathParams = {
704
- projectUID: projectUID
704
+ 'projectOrProductUID': projectOrProductUID
705
705
  };
706
706
  var queryParams = {
707
- pageSize: opts["pageSize"],
708
- pageNum: opts["pageNum"]
707
+ 'pageSize': opts['pageSize'],
708
+ 'pageNum': opts['pageNum']
709
709
  };
710
710
  var headerParams = {};
711
711
  var formParams = {};
712
- var authNames = ["api_key"];
712
+ var authNames = ['api_key'];
713
713
  var contentTypes = [];
714
- var accepts = ["application/json"];
714
+ var accepts = ['application/json'];
715
715
  var returnType = _GetProjectDevicePublicKeys200Response["default"];
716
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
716
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
717
717
  }
718
718
 
719
719
  /**
720
720
  * Get Device Public Keys of a Project
721
- * @param {String} projectUID
721
+ * @param {String} projectOrProductUID
722
722
  * @param {Object} opts Optional parameters
723
723
  * @param {Number} opts.pageSize (default to 50)
724
724
  * @param {Number} opts.pageNum (default to 1)
@@ -726,92 +726,92 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
726
726
  */
727
727
  }, {
728
728
  key: "getProjectDevicePublicKeys",
729
- value: function getProjectDevicePublicKeys(projectUID, opts) {
730
- return this.getProjectDevicePublicKeysWithHttpInfo(projectUID, opts).then(function (response_and_data) {
729
+ value: function getProjectDevicePublicKeys(projectOrProductUID, opts) {
730
+ return this.getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
731
731
  return response_and_data.data;
732
732
  });
733
733
  }
734
734
 
735
735
  /**
736
736
  * Get Devices of a Project
737
- * @param {String} projectUID
737
+ * @param {String} projectOrProductUID
738
738
  * @param {Object} opts Optional parameters
739
739
  * @param {Number} opts.pageSize (default to 50)
740
740
  * @param {Number} opts.pageNum (default to 1)
741
741
  * @param {Array.<String>} opts.deviceUID A Device UID.
742
742
  * @param {Array.<String>} opts.tag Tag filter
743
743
  * @param {Array.<String>} opts.serialNumber Serial number filter
744
- * @param {Array.<String>} opts.fleetUID
744
+ * @param {Array.<String>} opts.fleetUID
745
745
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
746
746
  * @param {Array.<String>} opts.location Location filter
747
747
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
748
- * @param {Array.<String>} opts.productUID
748
+ * @param {Array.<String>} opts.productUID
749
749
  * @param {Array.<String>} opts.sku SKU filter
750
750
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
751
751
  */
752
752
  }, {
753
753
  key: "getProjectDevicesWithHttpInfo",
754
- value: function getProjectDevicesWithHttpInfo(projectUID, opts) {
754
+ value: function getProjectDevicesWithHttpInfo(projectOrProductUID, opts) {
755
755
  opts = opts || {};
756
756
  var postBody = null;
757
- // verify the required parameter 'projectUID' is set
758
- if (projectUID === undefined || projectUID === null) {
759
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectDevices");
757
+ // verify the required parameter 'projectOrProductUID' is set
758
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
759
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
760
760
  }
761
761
  var pathParams = {
762
- projectUID: projectUID
762
+ 'projectOrProductUID': projectOrProductUID
763
763
  };
764
764
  var queryParams = {
765
- pageSize: opts["pageSize"],
766
- pageNum: opts["pageNum"],
767
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
768
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
769
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
770
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
771
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
772
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
773
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
774
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
775
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
765
+ 'pageSize': opts['pageSize'],
766
+ 'pageNum': opts['pageNum'],
767
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
768
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
769
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
770
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
771
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
772
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
773
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
774
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
775
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
776
776
  };
777
777
  var headerParams = {};
778
778
  var formParams = {};
779
- var authNames = ["api_key"];
779
+ var authNames = ['api_key'];
780
780
  var contentTypes = [];
781
- var accepts = ["application/json"];
781
+ var accepts = ['application/json'];
782
782
  var returnType = _GetProjectDevices200Response["default"];
783
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
783
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
784
784
  }
785
785
 
786
786
  /**
787
787
  * Get Devices of a Project
788
- * @param {String} projectUID
788
+ * @param {String} projectOrProductUID
789
789
  * @param {Object} opts Optional parameters
790
790
  * @param {Number} opts.pageSize (default to 50)
791
791
  * @param {Number} opts.pageNum (default to 1)
792
792
  * @param {Array.<String>} opts.deviceUID A Device UID.
793
793
  * @param {Array.<String>} opts.tag Tag filter
794
794
  * @param {Array.<String>} opts.serialNumber Serial number filter
795
- * @param {Array.<String>} opts.fleetUID
795
+ * @param {Array.<String>} opts.fleetUID
796
796
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
797
797
  * @param {Array.<String>} opts.location Location filter
798
798
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
799
- * @param {Array.<String>} opts.productUID
799
+ * @param {Array.<String>} opts.productUID
800
800
  * @param {Array.<String>} opts.sku SKU filter
801
801
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
802
802
  */
803
803
  }, {
804
804
  key: "getProjectDevices",
805
- value: function getProjectDevices(projectUID, opts) {
806
- return this.getProjectDevicesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
805
+ value: function getProjectDevices(projectOrProductUID, opts) {
806
+ return this.getProjectDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
807
807
  return response_and_data.data;
808
808
  });
809
809
  }
810
810
 
811
811
  /**
812
812
  * Get Devices of a Fleet within a Project
813
- * @param {String} projectUID
814
- * @param {String} fleetUID
813
+ * @param {String} projectOrProductUID
814
+ * @param {String} fleetUID
815
815
  * @param {Object} opts Optional parameters
816
816
  * @param {Number} opts.pageSize (default to 50)
817
817
  * @param {Number} opts.pageNum (default to 1)
@@ -821,52 +821,52 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
821
821
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
822
822
  * @param {Array.<String>} opts.location Location filter
823
823
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
824
- * @param {Array.<String>} opts.productUID
824
+ * @param {Array.<String>} opts.productUID
825
825
  * @param {Array.<String>} opts.sku SKU filter
826
826
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
827
827
  */
828
828
  }, {
829
829
  key: "getProjectFleetDevicesWithHttpInfo",
830
- value: function getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts) {
830
+ value: function getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
831
831
  opts = opts || {};
832
832
  var postBody = null;
833
- // verify the required parameter 'projectUID' is set
834
- if (projectUID === undefined || projectUID === null) {
835
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleetDevices");
833
+ // verify the required parameter 'projectOrProductUID' is set
834
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
835
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleetDevices");
836
836
  }
837
837
  // verify the required parameter 'fleetUID' is set
838
838
  if (fleetUID === undefined || fleetUID === null) {
839
839
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
840
840
  }
841
841
  var pathParams = {
842
- projectUID: projectUID,
843
- fleetUID: fleetUID
842
+ 'projectOrProductUID': projectOrProductUID,
843
+ 'fleetUID': fleetUID
844
844
  };
845
845
  var queryParams = {
846
- pageSize: opts["pageSize"],
847
- pageNum: opts["pageNum"],
848
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
849
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
850
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
851
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
852
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
853
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
854
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
855
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
846
+ 'pageSize': opts['pageSize'],
847
+ 'pageNum': opts['pageNum'],
848
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
849
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
850
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
851
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
852
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
853
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
854
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
855
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
856
856
  };
857
857
  var headerParams = {};
858
858
  var formParams = {};
859
- var authNames = ["api_key"];
859
+ var authNames = ['api_key'];
860
860
  var contentTypes = [];
861
- var accepts = ["application/json"];
861
+ var accepts = ['application/json'];
862
862
  var returnType = _GetProjectDevices200Response["default"];
863
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
863
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
864
864
  }
865
865
 
866
866
  /**
867
867
  * Get Devices of a Fleet within a Project
868
- * @param {String} projectUID
869
- * @param {String} fleetUID
868
+ * @param {String} projectOrProductUID
869
+ * @param {String} fleetUID
870
870
  * @param {Object} opts Optional parameters
871
871
  * @param {Number} opts.pageSize (default to 50)
872
872
  * @param {Number} opts.pageNum (default to 1)
@@ -876,33 +876,33 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
876
876
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
877
877
  * @param {Array.<String>} opts.location Location filter
878
878
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
879
- * @param {Array.<String>} opts.productUID
879
+ * @param {Array.<String>} opts.productUID
880
880
  * @param {Array.<String>} opts.sku SKU filter
881
881
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
882
882
  */
883
883
  }, {
884
884
  key: "getProjectFleetDevices",
885
- value: function getProjectFleetDevices(projectUID, fleetUID, opts) {
886
- return this.getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
885
+ value: function getProjectFleetDevices(projectOrProductUID, fleetUID, opts) {
886
+ return this.getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
887
887
  return response_and_data.data;
888
888
  });
889
889
  }
890
890
 
891
891
  /**
892
892
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
893
- * @param {String} projectUID
894
- * @param {String} deviceUID
895
- * @param {String} notefileID
893
+ * @param {String} projectOrProductUID
894
+ * @param {String} deviceUID
895
+ * @param {String} notefileID
896
896
  * @param {module:model/Note} note Body or payload of note to be added to the device
897
897
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
898
898
  */
899
899
  }, {
900
900
  key: "handleNoteAddWithHttpInfo",
901
- value: function handleNoteAddWithHttpInfo(projectUID, deviceUID, notefileID, note) {
901
+ value: function handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
902
902
  var postBody = note;
903
- // verify the required parameter 'projectUID' is set
904
- if (projectUID === undefined || projectUID === null) {
905
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteAdd");
903
+ // verify the required parameter 'projectOrProductUID' is set
904
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
905
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteAdd");
906
906
  }
907
907
  // verify the required parameter 'deviceUID' is set
908
908
  if (deviceUID === undefined || deviceUID === null) {
@@ -917,41 +917,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
917
917
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
918
918
  }
919
919
  var pathParams = {
920
- projectUID: projectUID,
921
- deviceUID: deviceUID,
922
- notefileID: notefileID
920
+ 'projectOrProductUID': projectOrProductUID,
921
+ 'deviceUID': deviceUID,
922
+ 'notefileID': notefileID
923
923
  };
924
924
  var queryParams = {};
925
925
  var headerParams = {};
926
926
  var formParams = {};
927
- var authNames = ["api_key"];
928
- var contentTypes = ["application/json"];
929
- var accepts = ["application/json"];
927
+ var authNames = ['api_key'];
928
+ var contentTypes = ['application/json'];
929
+ var accepts = ['application/json'];
930
930
  var returnType = null;
931
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
931
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
932
932
  }
933
933
 
934
934
  /**
935
935
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
936
- * @param {String} projectUID
937
- * @param {String} deviceUID
938
- * @param {String} notefileID
936
+ * @param {String} projectOrProductUID
937
+ * @param {String} deviceUID
938
+ * @param {String} notefileID
939
939
  * @param {module:model/Note} note Body or payload of note to be added to the device
940
940
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
941
941
  */
942
942
  }, {
943
943
  key: "handleNoteAdd",
944
- value: function handleNoteAdd(projectUID, deviceUID, notefileID, note) {
945
- return this.handleNoteAddWithHttpInfo(projectUID, deviceUID, notefileID, note).then(function (response_and_data) {
944
+ value: function handleNoteAdd(projectOrProductUID, deviceUID, notefileID, note) {
945
+ return this.handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
946
946
  return response_and_data.data;
947
947
  });
948
948
  }
949
949
 
950
950
  /**
951
951
  * Incrementally retrieve changes within a specific Notefile.
952
- * @param {String} projectUID
953
- * @param {String} deviceUID
954
- * @param {String} notefileID
952
+ * @param {String} projectOrProductUID
953
+ * @param {String} deviceUID
954
+ * @param {String} notefileID
955
955
  * @param {Object} opts Optional parameters
956
956
  * @param {String} opts.tracker The change tracker ID.
957
957
  * @param {Number} opts.max The maximum number of Notes to return in the request.
@@ -963,12 +963,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
963
963
  */
964
964
  }, {
965
965
  key: "handleNoteChangesWithHttpInfo",
966
- value: function handleNoteChangesWithHttpInfo(projectUID, deviceUID, notefileID, opts) {
966
+ value: function handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
967
967
  opts = opts || {};
968
968
  var postBody = null;
969
- // verify the required parameter 'projectUID' is set
970
- if (projectUID === undefined || projectUID === null) {
971
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteChanges");
969
+ // verify the required parameter 'projectOrProductUID' is set
970
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
971
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteChanges");
972
972
  }
973
973
  // verify the required parameter 'deviceUID' is set
974
974
  if (deviceUID === undefined || deviceUID === null) {
@@ -979,32 +979,32 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
979
979
  throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
980
980
  }
981
981
  var pathParams = {
982
- projectUID: projectUID,
983
- deviceUID: deviceUID,
984
- notefileID: notefileID
982
+ 'projectOrProductUID': projectOrProductUID,
983
+ 'deviceUID': deviceUID,
984
+ 'notefileID': notefileID
985
985
  };
986
986
  var queryParams = {
987
- tracker: opts["tracker"],
988
- max: opts["max"],
989
- start: opts["start"],
990
- stop: opts["stop"],
991
- deleted: opts["deleted"],
992
- "delete": opts["_delete"]
987
+ 'tracker': opts['tracker'],
988
+ 'max': opts['max'],
989
+ 'start': opts['start'],
990
+ 'stop': opts['stop'],
991
+ 'deleted': opts['deleted'],
992
+ 'delete': opts['_delete']
993
993
  };
994
994
  var headerParams = {};
995
995
  var formParams = {};
996
- var authNames = ["api_key"];
996
+ var authNames = ['api_key'];
997
997
  var contentTypes = [];
998
- var accepts = ["application/json"];
998
+ var accepts = ['application/json'];
999
999
  var returnType = _HandleNoteChanges200Response["default"];
1000
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1000
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1001
1001
  }
1002
1002
 
1003
1003
  /**
1004
1004
  * Incrementally retrieve changes within a specific Notefile.
1005
- * @param {String} projectUID
1006
- * @param {String} deviceUID
1007
- * @param {String} notefileID
1005
+ * @param {String} projectOrProductUID
1006
+ * @param {String} deviceUID
1007
+ * @param {String} notefileID
1008
1008
  * @param {Object} opts Optional parameters
1009
1009
  * @param {String} opts.tracker The change tracker ID.
1010
1010
  * @param {Number} opts.max The maximum number of Notes to return in the request.
@@ -1016,28 +1016,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1016
1016
  */
1017
1017
  }, {
1018
1018
  key: "handleNoteChanges",
1019
- value: function handleNoteChanges(projectUID, deviceUID, notefileID, opts) {
1020
- return this.handleNoteChangesWithHttpInfo(projectUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1019
+ value: function handleNoteChanges(projectOrProductUID, deviceUID, notefileID, opts) {
1020
+ return this.handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1021
1021
  return response_and_data.data;
1022
1022
  });
1023
1023
  }
1024
1024
 
1025
1025
  /**
1026
1026
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1027
- * @param {String} projectUID
1028
- * @param {String} deviceUID
1029
- * @param {String} notefileID
1030
- * @param {String} noteID
1027
+ * @param {String} projectOrProductUID
1028
+ * @param {String} deviceUID
1029
+ * @param {String} notefileID
1030
+ * @param {String} noteID
1031
1031
  * @param {module:model/Note} note Body or payload of note to be added to the device
1032
1032
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1033
1033
  */
1034
1034
  }, {
1035
1035
  key: "handleNoteCreateAddWithHttpInfo",
1036
- value: function handleNoteCreateAddWithHttpInfo(projectUID, deviceUID, notefileID, noteID, note) {
1036
+ value: function handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1037
1037
  var postBody = note;
1038
- // verify the required parameter 'projectUID' is set
1039
- if (projectUID === undefined || projectUID === null) {
1040
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteCreateAdd");
1038
+ // verify the required parameter 'projectOrProductUID' is set
1039
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1040
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteCreateAdd");
1041
1041
  }
1042
1042
  // verify the required parameter 'deviceUID' is set
1043
1043
  if (deviceUID === undefined || deviceUID === null) {
@@ -1056,53 +1056,53 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1056
1056
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
1057
1057
  }
1058
1058
  var pathParams = {
1059
- projectUID: projectUID,
1060
- deviceUID: deviceUID,
1061
- notefileID: notefileID,
1062
- noteID: noteID
1059
+ 'projectOrProductUID': projectOrProductUID,
1060
+ 'deviceUID': deviceUID,
1061
+ 'notefileID': notefileID,
1062
+ 'noteID': noteID
1063
1063
  };
1064
1064
  var queryParams = {};
1065
1065
  var headerParams = {};
1066
1066
  var formParams = {};
1067
- var authNames = ["api_key"];
1068
- var contentTypes = ["application/json"];
1069
- var accepts = ["application/json"];
1067
+ var authNames = ['api_key'];
1068
+ var contentTypes = ['application/json'];
1069
+ var accepts = ['application/json'];
1070
1070
  var returnType = null;
1071
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1071
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1072
1072
  }
1073
1073
 
1074
1074
  /**
1075
1075
  * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1076
- * @param {String} projectUID
1077
- * @param {String} deviceUID
1078
- * @param {String} notefileID
1079
- * @param {String} noteID
1076
+ * @param {String} projectOrProductUID
1077
+ * @param {String} deviceUID
1078
+ * @param {String} notefileID
1079
+ * @param {String} noteID
1080
1080
  * @param {module:model/Note} note Body or payload of note to be added to the device
1081
1081
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1082
1082
  */
1083
1083
  }, {
1084
1084
  key: "handleNoteCreateAdd",
1085
- value: function handleNoteCreateAdd(projectUID, deviceUID, notefileID, noteID, note) {
1086
- return this.handleNoteCreateAddWithHttpInfo(projectUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1085
+ value: function handleNoteCreateAdd(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1086
+ return this.handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1087
1087
  return response_and_data.data;
1088
1088
  });
1089
1089
  }
1090
1090
 
1091
1091
  /**
1092
1092
  * Delete a note from a DB notefile
1093
- * @param {String} projectUID
1094
- * @param {String} deviceUID
1095
- * @param {String} notefileID
1096
- * @param {String} noteID
1093
+ * @param {String} projectOrProductUID
1094
+ * @param {String} deviceUID
1095
+ * @param {String} notefileID
1096
+ * @param {String} noteID
1097
1097
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1098
1098
  */
1099
1099
  }, {
1100
1100
  key: "handleNoteDeleteWithHttpInfo",
1101
- value: function handleNoteDeleteWithHttpInfo(projectUID, deviceUID, notefileID, noteID) {
1101
+ value: function handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
1102
1102
  var postBody = null;
1103
- // verify the required parameter 'projectUID' is set
1104
- if (projectUID === undefined || projectUID === null) {
1105
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteDelete");
1103
+ // verify the required parameter 'projectOrProductUID' is set
1104
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1105
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteDelete");
1106
1106
  }
1107
1107
  // verify the required parameter 'deviceUID' is set
1108
1108
  if (deviceUID === undefined || deviceUID === null) {
@@ -1117,43 +1117,43 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1117
1117
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
1118
1118
  }
1119
1119
  var pathParams = {
1120
- projectUID: projectUID,
1121
- deviceUID: deviceUID,
1122
- notefileID: notefileID,
1123
- noteID: noteID
1120
+ 'projectOrProductUID': projectOrProductUID,
1121
+ 'deviceUID': deviceUID,
1122
+ 'notefileID': notefileID,
1123
+ 'noteID': noteID
1124
1124
  };
1125
1125
  var queryParams = {};
1126
1126
  var headerParams = {};
1127
1127
  var formParams = {};
1128
- var authNames = ["api_key"];
1128
+ var authNames = ['api_key'];
1129
1129
  var contentTypes = [];
1130
- var accepts = ["application/json"];
1130
+ var accepts = ['application/json'];
1131
1131
  var returnType = null;
1132
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1132
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1133
1133
  }
1134
1134
 
1135
1135
  /**
1136
1136
  * Delete a note from a DB notefile
1137
- * @param {String} projectUID
1138
- * @param {String} deviceUID
1139
- * @param {String} notefileID
1140
- * @param {String} noteID
1137
+ * @param {String} projectOrProductUID
1138
+ * @param {String} deviceUID
1139
+ * @param {String} notefileID
1140
+ * @param {String} noteID
1141
1141
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1142
1142
  */
1143
1143
  }, {
1144
1144
  key: "handleNoteDelete",
1145
- value: function handleNoteDelete(projectUID, deviceUID, notefileID, noteID) {
1146
- return this.handleNoteDeleteWithHttpInfo(projectUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
1145
+ value: function handleNoteDelete(projectOrProductUID, deviceUID, notefileID, noteID) {
1146
+ return this.handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
1147
1147
  return response_and_data.data;
1148
1148
  });
1149
1149
  }
1150
1150
 
1151
1151
  /**
1152
1152
  * Get a note from a DB notefile
1153
- * @param {String} projectUID
1154
- * @param {String} deviceUID
1155
- * @param {String} notefileID
1156
- * @param {String} noteID
1153
+ * @param {String} projectOrProductUID
1154
+ * @param {String} deviceUID
1155
+ * @param {String} notefileID
1156
+ * @param {String} noteID
1157
1157
  * @param {Object} opts Optional parameters
1158
1158
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1159
1159
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1161,12 +1161,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1161
1161
  */
1162
1162
  }, {
1163
1163
  key: "handleNoteGetWithHttpInfo",
1164
- value: function handleNoteGetWithHttpInfo(projectUID, deviceUID, notefileID, noteID, opts) {
1164
+ value: function handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1165
1165
  opts = opts || {};
1166
1166
  var postBody = null;
1167
- // verify the required parameter 'projectUID' is set
1168
- if (projectUID === undefined || projectUID === null) {
1169
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteGet");
1167
+ // verify the required parameter 'projectOrProductUID' is set
1168
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1169
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteGet");
1170
1170
  }
1171
1171
  // verify the required parameter 'deviceUID' is set
1172
1172
  if (deviceUID === undefined || deviceUID === null) {
@@ -1181,30 +1181,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1181
1181
  throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
1182
1182
  }
1183
1183
  var pathParams = {
1184
- projectUID: projectUID,
1185
- deviceUID: deviceUID,
1186
- notefileID: notefileID,
1187
- noteID: noteID
1184
+ 'projectOrProductUID': projectOrProductUID,
1185
+ 'deviceUID': deviceUID,
1186
+ 'notefileID': notefileID,
1187
+ 'noteID': noteID
1188
1188
  };
1189
1189
  var queryParams = {
1190
- "delete": opts["_delete"],
1191
- deleted: opts["deleted"]
1190
+ 'delete': opts['_delete'],
1191
+ 'deleted': opts['deleted']
1192
1192
  };
1193
1193
  var headerParams = {};
1194
1194
  var formParams = {};
1195
- var authNames = ["api_key"];
1195
+ var authNames = ['api_key'];
1196
1196
  var contentTypes = [];
1197
- var accepts = ["application/json"];
1197
+ var accepts = ['application/json'];
1198
1198
  var returnType = _HandleNoteGet200Response["default"];
1199
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1199
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1200
1200
  }
1201
1201
 
1202
1202
  /**
1203
1203
  * Get a note from a DB notefile
1204
- * @param {String} projectUID
1205
- * @param {String} deviceUID
1206
- * @param {String} notefileID
1207
- * @param {String} noteID
1204
+ * @param {String} projectOrProductUID
1205
+ * @param {String} deviceUID
1206
+ * @param {String} notefileID
1207
+ * @param {String} noteID
1208
1208
  * @param {Object} opts Optional parameters
1209
1209
  * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1210
1210
  * @param {Boolean} opts.deleted Whether to return deleted notes
@@ -1212,26 +1212,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1212
1212
  */
1213
1213
  }, {
1214
1214
  key: "handleNoteGet",
1215
- value: function handleNoteGet(projectUID, deviceUID, notefileID, noteID, opts) {
1216
- return this.handleNoteGetWithHttpInfo(projectUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
1215
+ value: function handleNoteGet(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1216
+ return this.handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
1217
1217
  return response_and_data.data;
1218
1218
  });
1219
1219
  }
1220
1220
 
1221
1221
  /**
1222
1222
  * Send a signal from Notehub to a Notecard.
1223
- * @param {String} projectUID
1224
- * @param {String} deviceUID
1223
+ * @param {String} projectOrProductUID
1224
+ * @param {String} deviceUID
1225
1225
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1226
1226
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
1227
1227
  */
1228
1228
  }, {
1229
1229
  key: "handleNoteSignalWithHttpInfo",
1230
- value: function handleNoteSignalWithHttpInfo(projectUID, deviceUID, body) {
1230
+ value: function handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body) {
1231
1231
  var postBody = body;
1232
- // verify the required parameter 'projectUID' is set
1233
- if (projectUID === undefined || projectUID === null) {
1234
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteSignal");
1232
+ // verify the required parameter 'projectOrProductUID' is set
1233
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1234
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteSignal");
1235
1235
  }
1236
1236
  // verify the required parameter 'deviceUID' is set
1237
1237
  if (deviceUID === undefined || deviceUID === null) {
@@ -1242,50 +1242,50 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1242
1242
  throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
1243
1243
  }
1244
1244
  var pathParams = {
1245
- projectUID: projectUID,
1246
- deviceUID: deviceUID
1245
+ 'projectOrProductUID': projectOrProductUID,
1246
+ 'deviceUID': deviceUID
1247
1247
  };
1248
1248
  var queryParams = {};
1249
1249
  var headerParams = {};
1250
1250
  var formParams = {};
1251
- var authNames = ["api_key"];
1252
- var contentTypes = ["application/json"];
1253
- var accepts = ["application/json"];
1251
+ var authNames = ['api_key'];
1252
+ var contentTypes = ['application/json'];
1253
+ var accepts = ['application/json'];
1254
1254
  var returnType = _HandleNoteSignal200Response["default"];
1255
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1255
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1256
1256
  }
1257
1257
 
1258
1258
  /**
1259
1259
  * Send a signal from Notehub to a Notecard.
1260
- * @param {String} projectUID
1261
- * @param {String} deviceUID
1260
+ * @param {String} projectOrProductUID
1261
+ * @param {String} deviceUID
1262
1262
  * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1263
1263
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
1264
1264
  */
1265
1265
  }, {
1266
1266
  key: "handleNoteSignal",
1267
- value: function handleNoteSignal(projectUID, deviceUID, body) {
1268
- return this.handleNoteSignalWithHttpInfo(projectUID, deviceUID, body).then(function (response_and_data) {
1267
+ value: function handleNoteSignal(projectOrProductUID, deviceUID, body) {
1268
+ return this.handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
1269
1269
  return response_and_data.data;
1270
1270
  });
1271
1271
  }
1272
1272
 
1273
1273
  /**
1274
1274
  * Update a note in a DB notefile
1275
- * @param {String} projectUID
1276
- * @param {String} deviceUID
1277
- * @param {String} notefileID
1278
- * @param {String} noteID
1275
+ * @param {String} projectOrProductUID
1276
+ * @param {String} deviceUID
1277
+ * @param {String} notefileID
1278
+ * @param {String} noteID
1279
1279
  * @param {module:model/Note} note Body or payload of note to be added to the device
1280
1280
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1281
1281
  */
1282
1282
  }, {
1283
1283
  key: "handleNoteUpdateWithHttpInfo",
1284
- value: function handleNoteUpdateWithHttpInfo(projectUID, deviceUID, notefileID, noteID, note) {
1284
+ value: function handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1285
1285
  var postBody = note;
1286
- // verify the required parameter 'projectUID' is set
1287
- if (projectUID === undefined || projectUID === null) {
1288
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNoteUpdate");
1286
+ // verify the required parameter 'projectOrProductUID' is set
1287
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1288
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteUpdate");
1289
1289
  }
1290
1290
  // verify the required parameter 'deviceUID' is set
1291
1291
  if (deviceUID === undefined || deviceUID === null) {
@@ -1304,42 +1304,42 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1304
1304
  throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
1305
1305
  }
1306
1306
  var pathParams = {
1307
- projectUID: projectUID,
1308
- deviceUID: deviceUID,
1309
- notefileID: notefileID,
1310
- noteID: noteID
1307
+ 'projectOrProductUID': projectOrProductUID,
1308
+ 'deviceUID': deviceUID,
1309
+ 'notefileID': notefileID,
1310
+ 'noteID': noteID
1311
1311
  };
1312
1312
  var queryParams = {};
1313
1313
  var headerParams = {};
1314
1314
  var formParams = {};
1315
- var authNames = ["api_key"];
1316
- var contentTypes = ["application/json"];
1317
- var accepts = ["application/json"];
1315
+ var authNames = ['api_key'];
1316
+ var contentTypes = ['application/json'];
1317
+ var accepts = ['application/json'];
1318
1318
  var returnType = null;
1319
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1319
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1320
1320
  }
1321
1321
 
1322
1322
  /**
1323
1323
  * Update a note in a DB notefile
1324
- * @param {String} projectUID
1325
- * @param {String} deviceUID
1326
- * @param {String} notefileID
1327
- * @param {String} noteID
1324
+ * @param {String} projectOrProductUID
1325
+ * @param {String} deviceUID
1326
+ * @param {String} notefileID
1327
+ * @param {String} noteID
1328
1328
  * @param {module:model/Note} note Body or payload of note to be added to the device
1329
1329
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1330
1330
  */
1331
1331
  }, {
1332
1332
  key: "handleNoteUpdate",
1333
- value: function handleNoteUpdate(projectUID, deviceUID, notefileID, noteID, note) {
1334
- return this.handleNoteUpdateWithHttpInfo(projectUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1333
+ value: function handleNoteUpdate(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1334
+ return this.handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1335
1335
  return response_and_data.data;
1336
1336
  });
1337
1337
  }
1338
1338
 
1339
1339
  /**
1340
1340
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1341
- * @param {String} projectUID
1342
- * @param {String} deviceUID
1341
+ * @param {String} projectOrProductUID
1342
+ * @param {String} deviceUID
1343
1343
  * @param {Object} opts Optional parameters
1344
1344
  * @param {String} opts.tracker The change tracker ID.
1345
1345
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
@@ -1347,38 +1347,38 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1347
1347
  */
1348
1348
  }, {
1349
1349
  key: "handleNotefileChangesWithHttpInfo",
1350
- value: function handleNotefileChangesWithHttpInfo(projectUID, deviceUID, opts) {
1350
+ value: function handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1351
1351
  opts = opts || {};
1352
1352
  var postBody = null;
1353
- // verify the required parameter 'projectUID' is set
1354
- if (projectUID === undefined || projectUID === null) {
1355
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileChanges");
1353
+ // verify the required parameter 'projectOrProductUID' is set
1354
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1355
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChanges");
1356
1356
  }
1357
1357
  // verify the required parameter 'deviceUID' is set
1358
1358
  if (deviceUID === undefined || deviceUID === null) {
1359
1359
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
1360
1360
  }
1361
1361
  var pathParams = {
1362
- projectUID: projectUID,
1363
- deviceUID: deviceUID
1362
+ 'projectOrProductUID': projectOrProductUID,
1363
+ 'deviceUID': deviceUID
1364
1364
  };
1365
1365
  var queryParams = {
1366
- tracker: opts["tracker"],
1367
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
1366
+ 'tracker': opts['tracker'],
1367
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1368
1368
  };
1369
1369
  var headerParams = {};
1370
1370
  var formParams = {};
1371
- var authNames = ["api_key"];
1371
+ var authNames = ['api_key'];
1372
1372
  var contentTypes = [];
1373
- var accepts = ["application/json"];
1373
+ var accepts = ['application/json'];
1374
1374
  var returnType = _HandleNotefileChanges200Response["default"];
1375
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1375
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1376
1376
  }
1377
1377
 
1378
1378
  /**
1379
1379
  * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1380
- * @param {String} projectUID
1381
- * @param {String} deviceUID
1380
+ * @param {String} projectOrProductUID
1381
+ * @param {String} deviceUID
1382
1382
  * @param {Object} opts Optional parameters
1383
1383
  * @param {String} opts.tracker The change tracker ID.
1384
1384
  * @param {Array.<String>} opts.files One or more files to obtain change information from.
@@ -1386,72 +1386,72 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1386
1386
  */
1387
1387
  }, {
1388
1388
  key: "handleNotefileChanges",
1389
- value: function handleNotefileChanges(projectUID, deviceUID, opts) {
1390
- return this.handleNotefileChangesWithHttpInfo(projectUID, deviceUID, opts).then(function (response_and_data) {
1389
+ value: function handleNotefileChanges(projectOrProductUID, deviceUID, opts) {
1390
+ return this.handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1391
1391
  return response_and_data.data;
1392
1392
  });
1393
1393
  }
1394
1394
 
1395
1395
  /**
1396
1396
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1397
- * @param {String} projectUID
1398
- * @param {String} deviceUID
1397
+ * @param {String} projectOrProductUID
1398
+ * @param {String} deviceUID
1399
1399
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
1400
1400
  */
1401
1401
  }, {
1402
1402
  key: "handleNotefileChangesPendingWithHttpInfo",
1403
- value: function handleNotefileChangesPendingWithHttpInfo(projectUID, deviceUID) {
1403
+ value: function handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID) {
1404
1404
  var postBody = null;
1405
- // verify the required parameter 'projectUID' is set
1406
- if (projectUID === undefined || projectUID === null) {
1407
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileChangesPending");
1405
+ // verify the required parameter 'projectOrProductUID' is set
1406
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1407
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChangesPending");
1408
1408
  }
1409
1409
  // verify the required parameter 'deviceUID' is set
1410
1410
  if (deviceUID === undefined || deviceUID === null) {
1411
1411
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
1412
1412
  }
1413
1413
  var pathParams = {
1414
- projectUID: projectUID,
1415
- deviceUID: deviceUID
1414
+ 'projectOrProductUID': projectOrProductUID,
1415
+ 'deviceUID': deviceUID
1416
1416
  };
1417
1417
  var queryParams = {};
1418
1418
  var headerParams = {};
1419
1419
  var formParams = {};
1420
- var authNames = ["api_key"];
1420
+ var authNames = ['api_key'];
1421
1421
  var contentTypes = [];
1422
- var accepts = ["application/json"];
1422
+ var accepts = ['application/json'];
1423
1423
  var returnType = _HandleNotefileChangesPending200Response["default"];
1424
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1424
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1425
1425
  }
1426
1426
 
1427
1427
  /**
1428
1428
  * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1429
- * @param {String} projectUID
1430
- * @param {String} deviceUID
1429
+ * @param {String} projectOrProductUID
1430
+ * @param {String} deviceUID
1431
1431
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
1432
1432
  */
1433
1433
  }, {
1434
1434
  key: "handleNotefileChangesPending",
1435
- value: function handleNotefileChangesPending(projectUID, deviceUID) {
1436
- return this.handleNotefileChangesPendingWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
1435
+ value: function handleNotefileChangesPending(projectOrProductUID, deviceUID) {
1436
+ return this.handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1437
1437
  return response_and_data.data;
1438
1438
  });
1439
1439
  }
1440
1440
 
1441
1441
  /**
1442
1442
  * Deletes Notefiles and the Notes they contain.
1443
- * @param {String} projectUID
1444
- * @param {String} deviceUID
1445
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1443
+ * @param {String} projectOrProductUID
1444
+ * @param {String} deviceUID
1445
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1446
1446
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1447
1447
  */
1448
1448
  }, {
1449
1449
  key: "handleNotefileDeleteWithHttpInfo",
1450
- value: function handleNotefileDeleteWithHttpInfo(projectUID, deviceUID, handleNotefileDeleteRequest) {
1450
+ value: function handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1451
1451
  var postBody = handleNotefileDeleteRequest;
1452
- // verify the required parameter 'projectUID' is set
1453
- if (projectUID === undefined || projectUID === null) {
1454
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileDelete");
1452
+ // verify the required parameter 'projectOrProductUID' is set
1453
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1454
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileDelete");
1455
1455
  }
1456
1456
  // verify the required parameter 'deviceUID' is set
1457
1457
  if (deviceUID === undefined || deviceUID === null) {
@@ -1462,48 +1462,48 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1462
1462
  throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
1463
1463
  }
1464
1464
  var pathParams = {
1465
- projectUID: projectUID,
1466
- deviceUID: deviceUID
1465
+ 'projectOrProductUID': projectOrProductUID,
1466
+ 'deviceUID': deviceUID
1467
1467
  };
1468
1468
  var queryParams = {};
1469
1469
  var headerParams = {};
1470
1470
  var formParams = {};
1471
- var authNames = ["api_key"];
1472
- var contentTypes = ["application/json"];
1473
- var accepts = ["application/json"];
1471
+ var authNames = ['api_key'];
1472
+ var contentTypes = ['application/json'];
1473
+ var accepts = ['application/json'];
1474
1474
  var returnType = null;
1475
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1475
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1476
1476
  }
1477
1477
 
1478
1478
  /**
1479
1479
  * Deletes Notefiles and the Notes they contain.
1480
- * @param {String} projectUID
1481
- * @param {String} deviceUID
1482
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1480
+ * @param {String} projectOrProductUID
1481
+ * @param {String} deviceUID
1482
+ * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1483
1483
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1484
1484
  */
1485
1485
  }, {
1486
1486
  key: "handleNotefileDelete",
1487
- value: function handleNotefileDelete(projectUID, deviceUID, handleNotefileDeleteRequest) {
1488
- return this.handleNotefileDeleteWithHttpInfo(projectUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
1487
+ value: function handleNotefileDelete(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1488
+ return this.handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
1489
1489
  return response_and_data.data;
1490
1490
  });
1491
1491
  }
1492
1492
 
1493
1493
  /**
1494
1494
  * Provision Device for a Project
1495
- * @param {String} projectUID
1496
- * @param {String} deviceUID
1495
+ * @param {String} projectOrProductUID
1496
+ * @param {String} deviceUID
1497
1497
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1498
1498
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1499
1499
  */
1500
1500
  }, {
1501
1501
  key: "postProvisionProjectDeviceWithHttpInfo",
1502
- value: function postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
1502
+ value: function postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1503
1503
  var postBody = postProvisionProjectDeviceRequest;
1504
- // verify the required parameter 'projectUID' is set
1505
- if (projectUID === undefined || projectUID === null) {
1506
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling postProvisionProjectDevice");
1504
+ // verify the required parameter 'projectOrProductUID' is set
1505
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1506
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling postProvisionProjectDevice");
1507
1507
  }
1508
1508
  // verify the required parameter 'deviceUID' is set
1509
1509
  if (deviceUID === undefined || deviceUID === null) {
@@ -1514,48 +1514,48 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1514
1514
  throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
1515
1515
  }
1516
1516
  var pathParams = {
1517
- projectUID: projectUID,
1518
- deviceUID: deviceUID
1517
+ 'projectOrProductUID': projectOrProductUID,
1518
+ 'deviceUID': deviceUID
1519
1519
  };
1520
1520
  var queryParams = {};
1521
1521
  var headerParams = {};
1522
1522
  var formParams = {};
1523
- var authNames = ["api_key"];
1524
- var contentTypes = ["application/json"];
1525
- var accepts = ["application/json"];
1523
+ var authNames = ['api_key'];
1524
+ var contentTypes = ['application/json'];
1525
+ var accepts = ['application/json'];
1526
1526
  var returnType = Object;
1527
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1527
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1528
1528
  }
1529
1529
 
1530
1530
  /**
1531
1531
  * Provision Device for a Project
1532
- * @param {String} projectUID
1533
- * @param {String} deviceUID
1532
+ * @param {String} projectOrProductUID
1533
+ * @param {String} deviceUID
1534
1534
  * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1535
1535
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1536
1536
  */
1537
1537
  }, {
1538
1538
  key: "postProvisionProjectDevice",
1539
- value: function postProvisionProjectDevice(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
1540
- return this.postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
1539
+ value: function postProvisionProjectDevice(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1540
+ return this.postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
1541
1541
  return response_and_data.data;
1542
1542
  });
1543
1543
  }
1544
1544
 
1545
1545
  /**
1546
1546
  * Put environment variables of a device
1547
- * @param {String} projectUID
1548
- * @param {String} deviceUID
1547
+ * @param {String} projectOrProductUID
1548
+ * @param {String} deviceUID
1549
1549
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1550
1550
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1551
1551
  */
1552
1552
  }, {
1553
1553
  key: "putDeviceEnvironmentVariablesWithHttpInfo",
1554
- value: function putDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID, environmentVariables) {
1554
+ value: function putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1555
1555
  var postBody = environmentVariables;
1556
- // verify the required parameter 'projectUID' is set
1557
- if (projectUID === undefined || projectUID === null) {
1558
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceEnvironmentVariables");
1556
+ // verify the required parameter 'projectOrProductUID' is set
1557
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1558
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceEnvironmentVariables");
1559
1559
  }
1560
1560
  // verify the required parameter 'deviceUID' is set
1561
1561
  if (deviceUID === undefined || deviceUID === null) {
@@ -1566,38 +1566,38 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1566
1566
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
1567
1567
  }
1568
1568
  var pathParams = {
1569
- projectUID: projectUID,
1570
- deviceUID: deviceUID
1569
+ 'projectOrProductUID': projectOrProductUID,
1570
+ 'deviceUID': deviceUID
1571
1571
  };
1572
1572
  var queryParams = {};
1573
1573
  var headerParams = {};
1574
1574
  var formParams = {};
1575
- var authNames = ["api_key"];
1576
- var contentTypes = ["application/json"];
1577
- var accepts = ["application/json"];
1575
+ var authNames = ['api_key'];
1576
+ var contentTypes = ['application/json'];
1577
+ var accepts = ['application/json'];
1578
1578
  var returnType = _EnvironmentVariables["default"];
1579
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1579
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1580
1580
  }
1581
1581
 
1582
1582
  /**
1583
1583
  * Put environment variables of a device
1584
- * @param {String} projectUID
1585
- * @param {String} deviceUID
1584
+ * @param {String} projectOrProductUID
1585
+ * @param {String} deviceUID
1586
1586
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1587
1587
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1588
1588
  */
1589
1589
  }, {
1590
1590
  key: "putDeviceEnvironmentVariables",
1591
- value: function putDeviceEnvironmentVariables(projectUID, deviceUID, environmentVariables) {
1592
- return this.putDeviceEnvironmentVariablesWithHttpInfo(projectUID, deviceUID, environmentVariables).then(function (response_and_data) {
1591
+ value: function putDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1592
+ return this.putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1593
1593
  return response_and_data.data;
1594
1594
  });
1595
1595
  }
1596
1596
 
1597
1597
  /**
1598
1598
  * Put environment variables of a device with device pin authorization
1599
- * @param {String} productUID
1600
- * @param {String} deviceUID
1599
+ * @param {String} productUID
1600
+ * @param {String} deviceUID
1601
1601
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1602
1602
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1603
1603
  */
@@ -1618,23 +1618,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1618
1618
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
1619
1619
  }
1620
1620
  var pathParams = {
1621
- productUID: productUID,
1622
- deviceUID: deviceUID
1621
+ 'productUID': productUID,
1622
+ 'deviceUID': deviceUID
1623
1623
  };
1624
1624
  var queryParams = {};
1625
1625
  var headerParams = {};
1626
1626
  var formParams = {};
1627
- var authNames = ["pin"];
1628
- var contentTypes = ["application/json"];
1629
- var accepts = ["application/json"];
1627
+ var authNames = ['pin'];
1628
+ var contentTypes = ['application/json'];
1629
+ var accepts = ['application/json'];
1630
1630
  var returnType = _EnvironmentVariables["default"];
1631
- return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1631
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1632
1632
  }
1633
1633
 
1634
1634
  /**
1635
1635
  * Put environment variables of a device with device pin authorization
1636
- * @param {String} productUID
1637
- * @param {String} deviceUID
1636
+ * @param {String} productUID
1637
+ * @param {String} deviceUID
1638
1638
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1639
1639
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1640
1640
  */