@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
@@ -36,7 +36,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
36
36
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
37
37
  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); } /**
38
38
  * Notehub API
39
- * The OpenAPI definition for the Notehub.io API.
39
+ * The OpenAPI definition for the Notehub.io API.
40
40
  *
41
41
  * The version of the OpenAPI document: 1.2.0
42
42
  * Contact: engineering@blues.io
@@ -47,18 +47,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
47
  *
48
48
  */
49
49
  /**
50
- * Project service.
51
- * @module api/ProjectApi
52
- * @version 1.0.33
53
- */
50
+ * Project service.
51
+ * @module api/ProjectApi
52
+ * @version 1.0.34-beta.2
53
+ */
54
54
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
55
55
  /**
56
- * Constructs a new ProjectApi.
57
- * @alias module:api/ProjectApi
58
- * @class
59
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
60
- * default to {@link module:ApiClient#instance} if unspecified.
61
- */
56
+ * Constructs a new ProjectApi.
57
+ * @alias module:api/ProjectApi
58
+ * @class
59
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
60
+ * default to {@link module:ApiClient#instance} if unspecified.
61
+ */
62
62
  function ProjectApi(apiClient) {
63
63
  _classCallCheck(this, ProjectApi);
64
64
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -66,135 +66,135 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
66
66
 
67
67
  /**
68
68
  * Clone a Project
69
- * @param {String} projectUID The project UID to be cloned.
69
+ * @param {String} projectOrProductUID
70
70
  * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
71
71
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
72
72
  */
73
73
  return _createClass(ProjectApi, [{
74
74
  key: "cloneProjectWithHttpInfo",
75
- value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
75
+ value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
76
76
  var postBody = cloneProjectRequest;
77
- // verify the required parameter 'projectUID' is set
78
- if (projectUID === undefined || projectUID === null) {
79
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling cloneProject");
77
+ // verify the required parameter 'projectOrProductUID' is set
78
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
79
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling cloneProject");
80
80
  }
81
81
  // verify the required parameter 'cloneProjectRequest' is set
82
82
  if (cloneProjectRequest === undefined || cloneProjectRequest === null) {
83
83
  throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
84
84
  }
85
85
  var pathParams = {
86
- projectUID: projectUID
86
+ 'projectOrProductUID': projectOrProductUID
87
87
  };
88
88
  var queryParams = {};
89
89
  var headerParams = {};
90
90
  var formParams = {};
91
- var authNames = ["api_key"];
92
- var contentTypes = ["application/json"];
93
- var accepts = ["application/json"];
91
+ var authNames = ['api_key'];
92
+ var contentTypes = ['application/json'];
93
+ var accepts = ['application/json'];
94
94
  var returnType = _Project["default"];
95
- return this.apiClient.callApi("/v1/projects/{projectUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
95
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
96
96
  }
97
97
 
98
98
  /**
99
99
  * Clone a Project
100
- * @param {String} projectUID The project UID to be cloned.
100
+ * @param {String} projectOrProductUID
101
101
  * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
102
102
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
103
103
  */
104
104
  }, {
105
105
  key: "cloneProject",
106
- value: function cloneProject(projectUID, cloneProjectRequest) {
107
- return this.cloneProjectWithHttpInfo(projectUID, cloneProjectRequest).then(function (response_and_data) {
106
+ value: function cloneProject(projectOrProductUID, cloneProjectRequest) {
107
+ return this.cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest).then(function (response_and_data) {
108
108
  return response_and_data.data;
109
109
  });
110
110
  }
111
111
 
112
112
  /**
113
113
  * Create Fleet
114
- * @param {String} projectUID
114
+ * @param {String} projectOrProductUID
115
115
  * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
116
116
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
117
117
  */
118
118
  }, {
119
119
  key: "createFleetWithHttpInfo",
120
- value: function createFleetWithHttpInfo(projectUID, createFleetRequest) {
120
+ value: function createFleetWithHttpInfo(projectOrProductUID, createFleetRequest) {
121
121
  var postBody = createFleetRequest;
122
- // verify the required parameter 'projectUID' is set
123
- if (projectUID === undefined || projectUID === null) {
124
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createFleet");
122
+ // verify the required parameter 'projectOrProductUID' is set
123
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
124
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createFleet");
125
125
  }
126
126
  // verify the required parameter 'createFleetRequest' is set
127
127
  if (createFleetRequest === undefined || createFleetRequest === null) {
128
128
  throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
129
129
  }
130
130
  var pathParams = {
131
- projectUID: projectUID
131
+ 'projectOrProductUID': projectOrProductUID
132
132
  };
133
133
  var queryParams = {};
134
134
  var headerParams = {};
135
135
  var formParams = {};
136
- var authNames = ["api_key"];
137
- var contentTypes = ["application/json"];
138
- var accepts = ["application/json"];
136
+ var authNames = ['api_key'];
137
+ var contentTypes = ['application/json'];
138
+ var accepts = ['application/json'];
139
139
  var returnType = _Fleet["default"];
140
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
140
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
141
141
  }
142
142
 
143
143
  /**
144
144
  * Create Fleet
145
- * @param {String} projectUID
145
+ * @param {String} projectOrProductUID
146
146
  * @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
147
147
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
148
148
  */
149
149
  }, {
150
150
  key: "createFleet",
151
- value: function createFleet(projectUID, createFleetRequest) {
152
- return this.createFleetWithHttpInfo(projectUID, createFleetRequest).then(function (response_and_data) {
151
+ value: function createFleet(projectOrProductUID, createFleetRequest) {
152
+ return this.createFleetWithHttpInfo(projectOrProductUID, createFleetRequest).then(function (response_and_data) {
153
153
  return response_and_data.data;
154
154
  });
155
155
  }
156
156
 
157
157
  /**
158
158
  * Create Product within a Project
159
- * @param {String} projectUID
159
+ * @param {String} projectOrProductUID
160
160
  * @param {module:model/CreateProductRequest} createProductRequest Product to be created
161
161
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
162
162
  */
163
163
  }, {
164
164
  key: "createProductWithHttpInfo",
165
- value: function createProductWithHttpInfo(projectUID, createProductRequest) {
165
+ value: function createProductWithHttpInfo(projectOrProductUID, createProductRequest) {
166
166
  var postBody = createProductRequest;
167
- // verify the required parameter 'projectUID' is set
168
- if (projectUID === undefined || projectUID === null) {
169
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createProduct");
167
+ // verify the required parameter 'projectOrProductUID' is set
168
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
169
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createProduct");
170
170
  }
171
171
  // verify the required parameter 'createProductRequest' is set
172
172
  if (createProductRequest === undefined || createProductRequest === null) {
173
173
  throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
174
174
  }
175
175
  var pathParams = {
176
- projectUID: projectUID
176
+ 'projectOrProductUID': projectOrProductUID
177
177
  };
178
178
  var queryParams = {};
179
179
  var headerParams = {};
180
180
  var formParams = {};
181
- var authNames = ["api_key"];
182
- var contentTypes = ["application/json"];
183
- var accepts = ["application/json"];
181
+ var authNames = ['api_key'];
182
+ var contentTypes = ['application/json'];
183
+ var accepts = ['application/json'];
184
184
  var returnType = _Product["default"];
185
- return this.apiClient.callApi("/v1/projects/{projectUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
185
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
186
186
  }
187
187
 
188
188
  /**
189
189
  * Create Product within a Project
190
- * @param {String} projectUID
190
+ * @param {String} projectOrProductUID
191
191
  * @param {module:model/CreateProductRequest} createProductRequest Product to be created
192
192
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
193
193
  */
194
194
  }, {
195
195
  key: "createProduct",
196
- value: function createProduct(projectUID, createProductRequest) {
197
- return this.createProductWithHttpInfo(projectUID, createProductRequest).then(function (response_and_data) {
196
+ value: function createProduct(projectOrProductUID, createProductRequest) {
197
+ return this.createProductWithHttpInfo(projectOrProductUID, createProductRequest).then(function (response_and_data) {
198
198
  return response_and_data.data;
199
199
  });
200
200
  }
@@ -216,11 +216,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
216
216
  var queryParams = {};
217
217
  var headerParams = {};
218
218
  var formParams = {};
219
- var authNames = ["api_key"];
220
- var contentTypes = ["application/json"];
221
- var accepts = ["application/json"];
219
+ var authNames = ['api_key'];
220
+ var contentTypes = ['application/json'];
221
+ var accepts = ['application/json'];
222
222
  var returnType = _Project["default"];
223
- return this.apiClient.callApi("/v1/projects", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
223
+ return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
224
224
  }
225
225
 
226
226
  /**
@@ -238,18 +238,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
238
238
 
239
239
  /**
240
240
  * Remove Device from Fleets
241
- * @param {String} projectUID
242
- * @param {String} deviceUID
243
- * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
241
+ * @param {String} projectOrProductUID
242
+ * @param {String} deviceUID
243
+ * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
244
244
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
245
245
  */
246
246
  }, {
247
247
  key: "deleteDeviceFleetsWithHttpInfo",
248
- value: function deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest) {
248
+ value: function deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
249
249
  var postBody = deleteDeviceFleetsRequest;
250
- // verify the required parameter 'projectUID' is set
251
- if (projectUID === undefined || projectUID === null) {
252
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteDeviceFleets");
250
+ // verify the required parameter 'projectOrProductUID' is set
251
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
252
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFleets");
253
253
  }
254
254
  // verify the required parameter 'deviceUID' is set
255
255
  if (deviceUID === undefined || deviceUID === null) {
@@ -260,94 +260,94 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
260
260
  throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
261
261
  }
262
262
  var pathParams = {
263
- projectUID: projectUID,
264
- deviceUID: deviceUID
263
+ 'projectOrProductUID': projectOrProductUID,
264
+ 'deviceUID': deviceUID
265
265
  };
266
266
  var queryParams = {};
267
267
  var headerParams = {};
268
268
  var formParams = {};
269
- var authNames = ["api_key"];
270
- var contentTypes = ["application/json"];
271
- var accepts = ["application/json"];
269
+ var authNames = ['api_key'];
270
+ var contentTypes = ['application/json'];
271
+ var accepts = ['application/json'];
272
272
  var returnType = _GetProjectFleets200Response["default"];
273
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
273
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
274
  }
275
275
 
276
276
  /**
277
277
  * Remove Device from Fleets
278
- * @param {String} projectUID
279
- * @param {String} deviceUID
280
- * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
278
+ * @param {String} projectOrProductUID
279
+ * @param {String} deviceUID
280
+ * @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
281
281
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
282
282
  */
283
283
  }, {
284
284
  key: "deleteDeviceFleets",
285
- value: function deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest) {
286
- return this.deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
285
+ value: function deleteDeviceFleets(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
286
+ return this.deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
287
287
  return response_and_data.data;
288
288
  });
289
289
  }
290
290
 
291
291
  /**
292
292
  * Delete Fleet
293
- * @param {String} projectUID
294
- * @param {String} fleetUID
293
+ * @param {String} projectOrProductUID
294
+ * @param {String} fleetUID
295
295
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
296
296
  */
297
297
  }, {
298
298
  key: "deleteFleetWithHttpInfo",
299
- value: function deleteFleetWithHttpInfo(projectUID, fleetUID) {
299
+ value: function deleteFleetWithHttpInfo(projectOrProductUID, fleetUID) {
300
300
  var postBody = null;
301
- // verify the required parameter 'projectUID' is set
302
- if (projectUID === undefined || projectUID === null) {
303
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleet");
301
+ // verify the required parameter 'projectOrProductUID' is set
302
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
303
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFleet");
304
304
  }
305
305
  // verify the required parameter 'fleetUID' is set
306
306
  if (fleetUID === undefined || fleetUID === null) {
307
307
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
308
308
  }
309
309
  var pathParams = {
310
- projectUID: projectUID,
311
- fleetUID: fleetUID
310
+ 'projectOrProductUID': projectOrProductUID,
311
+ 'fleetUID': fleetUID
312
312
  };
313
313
  var queryParams = {};
314
314
  var headerParams = {};
315
315
  var formParams = {};
316
- var authNames = ["api_key"];
316
+ var authNames = ['api_key'];
317
317
  var contentTypes = [];
318
- var accepts = ["application/json"];
318
+ var accepts = ['application/json'];
319
319
  var returnType = null;
320
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
320
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
321
321
  }
322
322
 
323
323
  /**
324
324
  * Delete Fleet
325
- * @param {String} projectUID
326
- * @param {String} fleetUID
325
+ * @param {String} projectOrProductUID
326
+ * @param {String} fleetUID
327
327
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
328
328
  */
329
329
  }, {
330
330
  key: "deleteFleet",
331
- value: function deleteFleet(projectUID, fleetUID) {
332
- return this.deleteFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
331
+ value: function deleteFleet(projectOrProductUID, fleetUID) {
332
+ return this.deleteFleetWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
333
333
  return response_and_data.data;
334
334
  });
335
335
  }
336
336
 
337
337
  /**
338
338
  * Delete environment variables of a fleet
339
- * @param {String} projectUID
340
- * @param {String} fleetUID
339
+ * @param {String} projectOrProductUID
340
+ * @param {String} fleetUID
341
341
  * @param {String} key The environment variable key to delete.
342
342
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
343
343
  */
344
344
  }, {
345
345
  key: "deleteFleetEnvironmentVariableWithHttpInfo",
346
- value: function deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key) {
346
+ value: function deleteFleetEnvironmentVariableWithHttpInfo(projectOrProductUID, fleetUID, key) {
347
347
  var postBody = null;
348
- // verify the required parameter 'projectUID' is set
349
- if (projectUID === undefined || projectUID === null) {
350
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleetEnvironmentVariable");
348
+ // verify the required parameter 'projectOrProductUID' is set
349
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
350
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFleetEnvironmentVariable");
351
351
  }
352
352
  // verify the required parameter 'fleetUID' is set
353
353
  if (fleetUID === undefined || fleetUID === null) {
@@ -358,146 +358,146 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
358
358
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
359
359
  }
360
360
  var pathParams = {
361
- projectUID: projectUID,
362
- fleetUID: fleetUID,
363
- key: key
361
+ 'projectOrProductUID': projectOrProductUID,
362
+ 'fleetUID': fleetUID,
363
+ 'key': key
364
364
  };
365
365
  var queryParams = {};
366
366
  var headerParams = {};
367
367
  var formParams = {};
368
- var authNames = ["api_key"];
368
+ var authNames = ['api_key'];
369
369
  var contentTypes = [];
370
- var accepts = ["application/json"];
370
+ var accepts = ['application/json'];
371
371
  var returnType = _EnvironmentVariables["default"];
372
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
372
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
373
373
  }
374
374
 
375
375
  /**
376
376
  * Delete environment variables of a fleet
377
- * @param {String} projectUID
378
- * @param {String} fleetUID
377
+ * @param {String} projectOrProductUID
378
+ * @param {String} fleetUID
379
379
  * @param {String} key The environment variable key to delete.
380
380
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
381
381
  */
382
382
  }, {
383
383
  key: "deleteFleetEnvironmentVariable",
384
- value: function deleteFleetEnvironmentVariable(projectUID, fleetUID, key) {
385
- return this.deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key).then(function (response_and_data) {
384
+ value: function deleteFleetEnvironmentVariable(projectOrProductUID, fleetUID, key) {
385
+ return this.deleteFleetEnvironmentVariableWithHttpInfo(projectOrProductUID, fleetUID, key).then(function (response_and_data) {
386
386
  return response_and_data.data;
387
387
  });
388
388
  }
389
389
 
390
390
  /**
391
391
  * Delete a Project by ProjectUID
392
- * @param {String} projectUID
392
+ * @param {String} projectOrProductUID
393
393
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
394
394
  */
395
395
  }, {
396
396
  key: "deleteProjectWithHttpInfo",
397
- value: function deleteProjectWithHttpInfo(projectUID) {
397
+ value: function deleteProjectWithHttpInfo(projectOrProductUID) {
398
398
  var postBody = null;
399
- // verify the required parameter 'projectUID' is set
400
- if (projectUID === undefined || projectUID === null) {
401
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
399
+ // verify the required parameter 'projectOrProductUID' is set
400
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
401
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
402
402
  }
403
403
  var pathParams = {
404
- projectUID: projectUID
404
+ 'projectOrProductUID': projectOrProductUID
405
405
  };
406
406
  var queryParams = {};
407
407
  var headerParams = {};
408
408
  var formParams = {};
409
- var authNames = ["api_key"];
409
+ var authNames = ['api_key'];
410
410
  var contentTypes = [];
411
- var accepts = ["application/json"];
411
+ var accepts = ['application/json'];
412
412
  var returnType = null;
413
- return this.apiClient.callApi("/v1/projects/{projectUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
413
+ return this.apiClient.callApi('/v1/projects/{projectUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
414
414
  }
415
415
 
416
416
  /**
417
417
  * Delete a Project by ProjectUID
418
- * @param {String} projectUID
418
+ * @param {String} projectOrProductUID
419
419
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
420
420
  */
421
421
  }, {
422
422
  key: "deleteProject",
423
- value: function deleteProject(projectUID) {
424
- return this.deleteProjectWithHttpInfo(projectUID).then(function (response_and_data) {
423
+ value: function deleteProject(projectOrProductUID) {
424
+ return this.deleteProjectWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
425
425
  return response_and_data.data;
426
426
  });
427
427
  }
428
428
 
429
429
  /**
430
430
  * Delete an environment variable of a project by key
431
- * @param {String} projectUID
431
+ * @param {String} projectOrProductUID
432
432
  * @param {String} key The environment variable key to delete.
433
433
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
434
434
  */
435
435
  }, {
436
436
  key: "deleteProjectEnvironmentVariableWithHttpInfo",
437
- value: function deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key) {
437
+ value: function deleteProjectEnvironmentVariableWithHttpInfo(projectOrProductUID, key) {
438
438
  var postBody = null;
439
- // verify the required parameter 'projectUID' is set
440
- if (projectUID === undefined || projectUID === null) {
441
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProjectEnvironmentVariable");
439
+ // verify the required parameter 'projectOrProductUID' is set
440
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
441
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectEnvironmentVariable");
442
442
  }
443
443
  // verify the required parameter 'key' is set
444
444
  if (key === undefined || key === null) {
445
445
  throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
446
446
  }
447
447
  var pathParams = {
448
- projectUID: projectUID,
449
- key: key
448
+ 'projectOrProductUID': projectOrProductUID,
449
+ 'key': key
450
450
  };
451
451
  var queryParams = {};
452
452
  var headerParams = {};
453
453
  var formParams = {};
454
- var authNames = ["api_key"];
454
+ var authNames = ['api_key'];
455
455
  var contentTypes = [];
456
- var accepts = ["application/json"];
456
+ var accepts = ['application/json'];
457
457
  var returnType = _EnvironmentVariables["default"];
458
- return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
458
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
459
459
  }
460
460
 
461
461
  /**
462
462
  * Delete an environment variable of a project by key
463
- * @param {String} projectUID
463
+ * @param {String} projectOrProductUID
464
464
  * @param {String} key The environment variable key to delete.
465
465
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
466
466
  */
467
467
  }, {
468
468
  key: "deleteProjectEnvironmentVariable",
469
- value: function deleteProjectEnvironmentVariable(projectUID, key) {
470
- return this.deleteProjectEnvironmentVariableWithHttpInfo(projectUID, key).then(function (response_and_data) {
469
+ value: function deleteProjectEnvironmentVariable(projectOrProductUID, key) {
470
+ return this.deleteProjectEnvironmentVariableWithHttpInfo(projectOrProductUID, key).then(function (response_and_data) {
471
471
  return response_and_data.data;
472
472
  });
473
473
  }
474
474
 
475
475
  /**
476
476
  * Update/cancel host or notecard firmware updates
477
- * @param {String} projectUID
478
- * @param {module:model/String} firmwareType
479
- * @param {module:model/String} action
477
+ * @param {String} projectOrProductUID
478
+ * @param {module:model/String} firmwareType
479
+ * @param {module:model/String} action
480
480
  * @param {Object} opts Optional parameters
481
481
  * @param {Array.<String>} opts.deviceUID A Device UID.
482
482
  * @param {Array.<String>} opts.tag Tag filter
483
483
  * @param {Array.<String>} opts.serialNumber Serial number filter
484
- * @param {String} opts.fleetUID
484
+ * @param {String} opts.fleetUID
485
485
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
486
486
  * @param {Array.<String>} opts.location Location filter
487
487
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
488
- * @param {Array.<String>} opts.productUID
488
+ * @param {Array.<String>} opts.productUID
489
489
  * @param {Array.<String>} opts.sku SKU filter
490
490
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
491
491
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
492
492
  */
493
493
  }, {
494
494
  key: "dfuActionWithHttpInfo",
495
- value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
495
+ value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
496
496
  opts = opts || {};
497
- var postBody = opts["dfuActionRequest"];
498
- // verify the required parameter 'projectUID' is set
499
- if (projectUID === undefined || projectUID === null) {
500
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
497
+ var postBody = opts['dfuActionRequest'];
498
+ // verify the required parameter 'projectOrProductUID' is set
499
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
500
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
501
501
  }
502
502
  // verify the required parameter 'firmwareType' is set
503
503
  if (firmwareType === undefined || firmwareType === null) {
@@ -508,148 +508,148 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
508
508
  throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
509
509
  }
510
510
  var pathParams = {
511
- projectUID: projectUID,
512
- firmwareType: firmwareType,
513
- action: action
511
+ 'projectOrProductUID': projectOrProductUID,
512
+ 'firmwareType': firmwareType,
513
+ 'action': action
514
514
  };
515
515
  var queryParams = {
516
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
517
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
518
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
519
- fleetUID: opts["fleetUID"],
520
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
521
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
522
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
523
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
524
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
516
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
517
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
518
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
519
+ 'fleetUID': opts['fleetUID'],
520
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
521
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
522
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
523
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
524
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
525
525
  };
526
526
  var headerParams = {};
527
527
  var formParams = {};
528
- var authNames = ["api_key"];
529
- var contentTypes = ["application/json"];
530
- var accepts = ["application/json"];
528
+ var authNames = ['api_key'];
529
+ var contentTypes = ['application/json'];
530
+ var accepts = ['application/json'];
531
531
  var returnType = null;
532
- return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
532
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
533
533
  }
534
534
 
535
535
  /**
536
536
  * Update/cancel host or notecard firmware updates
537
- * @param {String} projectUID
538
- * @param {module:model/String} firmwareType
539
- * @param {module:model/String} action
537
+ * @param {String} projectOrProductUID
538
+ * @param {module:model/String} firmwareType
539
+ * @param {module:model/String} action
540
540
  * @param {Object} opts Optional parameters
541
541
  * @param {Array.<String>} opts.deviceUID A Device UID.
542
542
  * @param {Array.<String>} opts.tag Tag filter
543
543
  * @param {Array.<String>} opts.serialNumber Serial number filter
544
- * @param {String} opts.fleetUID
544
+ * @param {String} opts.fleetUID
545
545
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
546
546
  * @param {Array.<String>} opts.location Location filter
547
547
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
548
- * @param {Array.<String>} opts.productUID
548
+ * @param {Array.<String>} opts.productUID
549
549
  * @param {Array.<String>} opts.sku SKU filter
550
550
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
551
551
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
552
552
  */
553
553
  }, {
554
554
  key: "dfuAction",
555
- value: function dfuAction(projectUID, firmwareType, action, opts) {
556
- return this.dfuActionWithHttpInfo(projectUID, firmwareType, action, opts).then(function (response_and_data) {
555
+ value: function dfuAction(projectOrProductUID, firmwareType, action, opts) {
556
+ return this.dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
557
557
  return response_and_data.data;
558
558
  });
559
559
  }
560
560
 
561
561
  /**
562
562
  * Disable the project-level event JSONata transformation
563
- * @param {String} projectUID
563
+ * @param {String} projectOrProductUID
564
564
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
565
565
  */
566
566
  }, {
567
567
  key: "disableGlobalTransformationWithHttpInfo",
568
- value: function disableGlobalTransformationWithHttpInfo(projectUID) {
568
+ value: function disableGlobalTransformationWithHttpInfo(projectOrProductUID) {
569
569
  var postBody = null;
570
- // verify the required parameter 'projectUID' is set
571
- if (projectUID === undefined || projectUID === null) {
572
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
570
+ // verify the required parameter 'projectOrProductUID' is set
571
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
572
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
573
573
  }
574
574
  var pathParams = {
575
- projectUID: projectUID
575
+ 'projectOrProductUID': projectOrProductUID
576
576
  };
577
577
  var queryParams = {};
578
578
  var headerParams = {};
579
579
  var formParams = {};
580
- var authNames = ["api_key"];
580
+ var authNames = ['api_key'];
581
581
  var contentTypes = [];
582
- var accepts = ["application/json"];
582
+ var accepts = ['application/json'];
583
583
  var returnType = null;
584
- return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
584
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
585
585
  }
586
586
 
587
587
  /**
588
588
  * Disable the project-level event JSONata transformation
589
- * @param {String} projectUID
589
+ * @param {String} projectOrProductUID
590
590
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
591
591
  */
592
592
  }, {
593
593
  key: "disableGlobalTransformation",
594
- value: function disableGlobalTransformation(projectUID) {
595
- return this.disableGlobalTransformationWithHttpInfo(projectUID).then(function (response_and_data) {
594
+ value: function disableGlobalTransformation(projectOrProductUID) {
595
+ return this.disableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
596
596
  return response_and_data.data;
597
597
  });
598
598
  }
599
599
 
600
600
  /**
601
601
  * Enable the project-level event JSONata transformation
602
- * @param {String} projectUID
602
+ * @param {String} projectOrProductUID
603
603
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
604
604
  */
605
605
  }, {
606
606
  key: "enableGlobalTransformationWithHttpInfo",
607
- value: function enableGlobalTransformationWithHttpInfo(projectUID) {
607
+ value: function enableGlobalTransformationWithHttpInfo(projectOrProductUID) {
608
608
  var postBody = null;
609
- // verify the required parameter 'projectUID' is set
610
- if (projectUID === undefined || projectUID === null) {
611
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
609
+ // verify the required parameter 'projectOrProductUID' is set
610
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
611
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
612
612
  }
613
613
  var pathParams = {
614
- projectUID: projectUID
614
+ 'projectOrProductUID': projectOrProductUID
615
615
  };
616
616
  var queryParams = {};
617
617
  var headerParams = {};
618
618
  var formParams = {};
619
- var authNames = ["api_key"];
619
+ var authNames = ['api_key'];
620
620
  var contentTypes = [];
621
- var accepts = ["application/json"];
621
+ var accepts = ['application/json'];
622
622
  var returnType = null;
623
- return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
623
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
624
624
  }
625
625
 
626
626
  /**
627
627
  * Enable the project-level event JSONata transformation
628
- * @param {String} projectUID
628
+ * @param {String} projectOrProductUID
629
629
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
630
630
  */
631
631
  }, {
632
632
  key: "enableGlobalTransformation",
633
- value: function enableGlobalTransformation(projectUID) {
634
- return this.enableGlobalTransformationWithHttpInfo(projectUID).then(function (response_and_data) {
633
+ value: function enableGlobalTransformation(projectOrProductUID) {
634
+ return this.enableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
635
635
  return response_and_data.data;
636
636
  });
637
637
  }
638
638
 
639
639
  /**
640
640
  * Get device DFU history for host or Notecard firmware
641
- * @param {String} projectUID
642
- * @param {String} deviceUID
643
- * @param {module:model/String} firmwareType
641
+ * @param {String} projectOrProductUID
642
+ * @param {String} deviceUID
643
+ * @param {module:model/String} firmwareType
644
644
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
645
645
  */
646
646
  }, {
647
647
  key: "getDeviceDfuHistoryWithHttpInfo",
648
- value: function getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType) {
648
+ value: function getDeviceDfuHistoryWithHttpInfo(projectOrProductUID, deviceUID, firmwareType) {
649
649
  var postBody = null;
650
- // verify the required parameter 'projectUID' is set
651
- if (projectUID === undefined || projectUID === null) {
652
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuHistory");
650
+ // verify the required parameter 'projectOrProductUID' is set
651
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
652
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceDfuHistory");
653
653
  }
654
654
  // verify the required parameter 'deviceUID' is set
655
655
  if (deviceUID === undefined || deviceUID === null) {
@@ -660,49 +660,49 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
660
660
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
661
661
  }
662
662
  var pathParams = {
663
- projectUID: projectUID,
664
- deviceUID: deviceUID,
665
- firmwareType: firmwareType
663
+ 'projectOrProductUID': projectOrProductUID,
664
+ 'deviceUID': deviceUID,
665
+ 'firmwareType': firmwareType
666
666
  };
667
667
  var queryParams = {};
668
668
  var headerParams = {};
669
669
  var formParams = {};
670
- var authNames = ["api_key"];
670
+ var authNames = ['api_key'];
671
671
  var contentTypes = [];
672
- var accepts = ["application/json"];
672
+ var accepts = ['application/json'];
673
673
  var returnType = _DeviceDfuHistory["default"];
674
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
674
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
675
675
  }
676
676
 
677
677
  /**
678
678
  * Get device DFU history for host or Notecard firmware
679
- * @param {String} projectUID
680
- * @param {String} deviceUID
681
- * @param {module:model/String} firmwareType
679
+ * @param {String} projectOrProductUID
680
+ * @param {String} deviceUID
681
+ * @param {module:model/String} firmwareType
682
682
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
683
683
  */
684
684
  }, {
685
685
  key: "getDeviceDfuHistory",
686
- value: function getDeviceDfuHistory(projectUID, deviceUID, firmwareType) {
687
- return this.getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
686
+ value: function getDeviceDfuHistory(projectOrProductUID, deviceUID, firmwareType) {
687
+ return this.getDeviceDfuHistoryWithHttpInfo(projectOrProductUID, deviceUID, firmwareType).then(function (response_and_data) {
688
688
  return response_and_data.data;
689
689
  });
690
690
  }
691
691
 
692
692
  /**
693
693
  * Get device DFU history for host or Notecard firmware
694
- * @param {String} projectUID
695
- * @param {String} deviceUID
696
- * @param {module:model/String} firmwareType
694
+ * @param {String} projectOrProductUID
695
+ * @param {String} deviceUID
696
+ * @param {module:model/String} firmwareType
697
697
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
698
698
  */
699
699
  }, {
700
700
  key: "getDeviceDfuStatusWithHttpInfo",
701
- value: function getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType) {
701
+ value: function getDeviceDfuStatusWithHttpInfo(projectOrProductUID, deviceUID, firmwareType) {
702
702
  var postBody = null;
703
- // verify the required parameter 'projectUID' is set
704
- if (projectUID === undefined || projectUID === null) {
705
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuStatus");
703
+ // verify the required parameter 'projectOrProductUID' is set
704
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
705
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceDfuStatus");
706
706
  }
707
707
  // verify the required parameter 'deviceUID' is set
708
708
  if (deviceUID === undefined || deviceUID === null) {
@@ -713,85 +713,85 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
713
713
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
714
714
  }
715
715
  var pathParams = {
716
- projectUID: projectUID,
717
- deviceUID: deviceUID,
718
- firmwareType: firmwareType
716
+ 'projectOrProductUID': projectOrProductUID,
717
+ 'deviceUID': deviceUID,
718
+ 'firmwareType': firmwareType
719
719
  };
720
720
  var queryParams = {};
721
721
  var headerParams = {};
722
722
  var formParams = {};
723
- var authNames = ["api_key"];
723
+ var authNames = ['api_key'];
724
724
  var contentTypes = [];
725
- var accepts = ["application/json"];
725
+ var accepts = ['application/json'];
726
726
  var returnType = _DeviceDfuStatus["default"];
727
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
727
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
728
728
  }
729
729
 
730
730
  /**
731
731
  * Get device DFU history for host or Notecard firmware
732
- * @param {String} projectUID
733
- * @param {String} deviceUID
734
- * @param {module:model/String} firmwareType
732
+ * @param {String} projectOrProductUID
733
+ * @param {String} deviceUID
734
+ * @param {module:model/String} firmwareType
735
735
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
736
736
  */
737
737
  }, {
738
738
  key: "getDeviceDfuStatus",
739
- value: function getDeviceDfuStatus(projectUID, deviceUID, firmwareType) {
740
- return this.getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
739
+ value: function getDeviceDfuStatus(projectOrProductUID, deviceUID, firmwareType) {
740
+ return this.getDeviceDfuStatusWithHttpInfo(projectOrProductUID, deviceUID, firmwareType).then(function (response_and_data) {
741
741
  return response_and_data.data;
742
742
  });
743
743
  }
744
744
 
745
745
  /**
746
746
  * Get Device Fleets
747
- * @param {String} projectUID
748
- * @param {String} deviceUID
747
+ * @param {String} projectOrProductUID
748
+ * @param {String} deviceUID
749
749
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
750
750
  */
751
751
  }, {
752
752
  key: "getDeviceFleetsWithHttpInfo",
753
- value: function getDeviceFleetsWithHttpInfo(projectUID, deviceUID) {
753
+ value: function getDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID) {
754
754
  var postBody = null;
755
- // verify the required parameter 'projectUID' is set
756
- if (projectUID === undefined || projectUID === null) {
757
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceFleets");
755
+ // verify the required parameter 'projectOrProductUID' is set
756
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
757
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceFleets");
758
758
  }
759
759
  // verify the required parameter 'deviceUID' is set
760
760
  if (deviceUID === undefined || deviceUID === null) {
761
761
  throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
762
762
  }
763
763
  var pathParams = {
764
- projectUID: projectUID,
765
- deviceUID: deviceUID
764
+ 'projectOrProductUID': projectOrProductUID,
765
+ 'deviceUID': deviceUID
766
766
  };
767
767
  var queryParams = {};
768
768
  var headerParams = {};
769
769
  var formParams = {};
770
- var authNames = ["api_key"];
770
+ var authNames = ['api_key'];
771
771
  var contentTypes = [];
772
- var accepts = ["application/json"];
772
+ var accepts = ['application/json'];
773
773
  var returnType = _GetProjectFleets200Response["default"];
774
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
774
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
775
775
  }
776
776
 
777
777
  /**
778
778
  * Get Device Fleets
779
- * @param {String} projectUID
780
- * @param {String} deviceUID
779
+ * @param {String} projectOrProductUID
780
+ * @param {String} deviceUID
781
781
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
782
782
  */
783
783
  }, {
784
784
  key: "getDeviceFleets",
785
- value: function getDeviceFleets(projectUID, deviceUID) {
786
- return this.getDeviceFleetsWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
785
+ value: function getDeviceFleets(projectOrProductUID, deviceUID) {
786
+ return this.getDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
787
787
  return response_and_data.data;
788
788
  });
789
789
  }
790
790
 
791
791
  /**
792
792
  * Get host or Notecard DFU history for all devices that match the filter criteria
793
- * @param {String} projectUID
794
- * @param {module:model/String} firmwareType
793
+ * @param {String} projectOrProductUID
794
+ * @param {module:model/String} firmwareType
795
795
  * @param {Object} opts Optional parameters
796
796
  * @param {Number} opts.pageSize (default to 50)
797
797
  * @param {Number} opts.pageNum (default to 1)
@@ -800,59 +800,59 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
800
800
  * @param {Array.<String>} opts.deviceUID A Device UID.
801
801
  * @param {Array.<String>} opts.tag Tag filter
802
802
  * @param {Array.<String>} opts.serialNumber Serial number filter
803
- * @param {String} opts.fleetUID
803
+ * @param {String} opts.fleetUID
804
804
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
805
805
  * @param {Array.<String>} opts.location Location filter
806
806
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
807
- * @param {Array.<String>} opts.productUID
807
+ * @param {Array.<String>} opts.productUID
808
808
  * @param {Array.<String>} opts.sku SKU filter
809
809
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
810
810
  */
811
811
  }, {
812
812
  key: "getDevicesDfuHistoryWithHttpInfo",
813
- value: function getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts) {
813
+ value: function getDevicesDfuHistoryWithHttpInfo(projectOrProductUID, firmwareType, opts) {
814
814
  opts = opts || {};
815
815
  var postBody = null;
816
- // verify the required parameter 'projectUID' is set
817
- if (projectUID === undefined || projectUID === null) {
818
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuHistory");
816
+ // verify the required parameter 'projectOrProductUID' is set
817
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
818
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicesDfuHistory");
819
819
  }
820
820
  // verify the required parameter 'firmwareType' is set
821
821
  if (firmwareType === undefined || firmwareType === null) {
822
822
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
823
823
  }
824
824
  var pathParams = {
825
- projectUID: projectUID,
826
- firmwareType: firmwareType
825
+ 'projectOrProductUID': projectOrProductUID,
826
+ 'firmwareType': firmwareType
827
827
  };
828
828
  var queryParams = {
829
- pageSize: opts["pageSize"],
830
- pageNum: opts["pageNum"],
831
- sortBy: opts["sortBy"],
832
- sortOrder: opts["sortOrder"],
833
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
834
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
835
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
836
- fleetUID: opts["fleetUID"],
837
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
838
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
839
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
840
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
841
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
829
+ 'pageSize': opts['pageSize'],
830
+ 'pageNum': opts['pageNum'],
831
+ 'sortBy': opts['sortBy'],
832
+ 'sortOrder': opts['sortOrder'],
833
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
834
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
835
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
836
+ 'fleetUID': opts['fleetUID'],
837
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
838
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
839
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
840
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
841
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
842
842
  };
843
843
  var headerParams = {};
844
844
  var formParams = {};
845
- var authNames = ["api_key"];
845
+ var authNames = ['api_key'];
846
846
  var contentTypes = [];
847
- var accepts = ["application/json"];
847
+ var accepts = ['application/json'];
848
848
  var returnType = _DeviceDfuHistoryPage["default"];
849
- return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
849
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
850
850
  }
851
851
 
852
852
  /**
853
853
  * Get host or Notecard DFU history for all devices that match the filter criteria
854
- * @param {String} projectUID
855
- * @param {module:model/String} firmwareType
854
+ * @param {String} projectOrProductUID
855
+ * @param {module:model/String} firmwareType
856
856
  * @param {Object} opts Optional parameters
857
857
  * @param {Number} opts.pageSize (default to 50)
858
858
  * @param {Number} opts.pageNum (default to 1)
@@ -861,26 +861,26 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
861
861
  * @param {Array.<String>} opts.deviceUID A Device UID.
862
862
  * @param {Array.<String>} opts.tag Tag filter
863
863
  * @param {Array.<String>} opts.serialNumber Serial number filter
864
- * @param {String} opts.fleetUID
864
+ * @param {String} opts.fleetUID
865
865
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
866
866
  * @param {Array.<String>} opts.location Location filter
867
867
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
868
- * @param {Array.<String>} opts.productUID
868
+ * @param {Array.<String>} opts.productUID
869
869
  * @param {Array.<String>} opts.sku SKU filter
870
870
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
871
871
  */
872
872
  }, {
873
873
  key: "getDevicesDfuHistory",
874
- value: function getDevicesDfuHistory(projectUID, firmwareType, opts) {
875
- return this.getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
874
+ value: function getDevicesDfuHistory(projectOrProductUID, firmwareType, opts) {
875
+ return this.getDevicesDfuHistoryWithHttpInfo(projectOrProductUID, firmwareType, opts).then(function (response_and_data) {
876
876
  return response_and_data.data;
877
877
  });
878
878
  }
879
879
 
880
880
  /**
881
881
  * Get host or Notecard DFU history for all devices that match the filter criteria
882
- * @param {String} projectUID
883
- * @param {module:model/String} firmwareType
882
+ * @param {String} projectOrProductUID
883
+ * @param {module:model/String} firmwareType
884
884
  * @param {Object} opts Optional parameters
885
885
  * @param {Number} opts.pageSize (default to 50)
886
886
  * @param {Number} opts.pageNum (default to 1)
@@ -889,59 +889,59 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
889
889
  * @param {Array.<String>} opts.deviceUID A Device UID.
890
890
  * @param {Array.<String>} opts.tag Tag filter
891
891
  * @param {Array.<String>} opts.serialNumber Serial number filter
892
- * @param {String} opts.fleetUID
892
+ * @param {String} opts.fleetUID
893
893
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
894
894
  * @param {Array.<String>} opts.location Location filter
895
895
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
896
- * @param {Array.<String>} opts.productUID
896
+ * @param {Array.<String>} opts.productUID
897
897
  * @param {Array.<String>} opts.sku SKU filter
898
898
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
899
899
  */
900
900
  }, {
901
901
  key: "getDevicesDfuStatusWithHttpInfo",
902
- value: function getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts) {
902
+ value: function getDevicesDfuStatusWithHttpInfo(projectOrProductUID, firmwareType, opts) {
903
903
  opts = opts || {};
904
904
  var postBody = null;
905
- // verify the required parameter 'projectUID' is set
906
- if (projectUID === undefined || projectUID === null) {
907
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuStatus");
905
+ // verify the required parameter 'projectOrProductUID' is set
906
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
907
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicesDfuStatus");
908
908
  }
909
909
  // verify the required parameter 'firmwareType' is set
910
910
  if (firmwareType === undefined || firmwareType === null) {
911
911
  throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
912
912
  }
913
913
  var pathParams = {
914
- projectUID: projectUID,
915
- firmwareType: firmwareType
914
+ 'projectOrProductUID': projectOrProductUID,
915
+ 'firmwareType': firmwareType
916
916
  };
917
917
  var queryParams = {
918
- pageSize: opts["pageSize"],
919
- pageNum: opts["pageNum"],
920
- sortBy: opts["sortBy"],
921
- sortOrder: opts["sortOrder"],
922
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
923
- tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
924
- serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
925
- fleetUID: opts["fleetUID"],
926
- notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
927
- location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
928
- hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
929
- productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
930
- sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
918
+ 'pageSize': opts['pageSize'],
919
+ 'pageNum': opts['pageNum'],
920
+ 'sortBy': opts['sortBy'],
921
+ 'sortOrder': opts['sortOrder'],
922
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
923
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
924
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
925
+ 'fleetUID': opts['fleetUID'],
926
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
927
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
928
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
929
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
930
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
931
931
  };
932
932
  var headerParams = {};
933
933
  var formParams = {};
934
- var authNames = ["api_key"];
934
+ var authNames = ['api_key'];
935
935
  var contentTypes = [];
936
- var accepts = ["application/json"];
936
+ var accepts = ['application/json'];
937
937
  var returnType = _DeviceDfuStatusPage["default"];
938
- return this.apiClient.callApi("/v1/projects/{projectUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
938
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
939
939
  }
940
940
 
941
941
  /**
942
942
  * Get host or Notecard DFU history for all devices that match the filter criteria
943
- * @param {String} projectUID
944
- * @param {module:model/String} firmwareType
943
+ * @param {String} projectOrProductUID
944
+ * @param {module:model/String} firmwareType
945
945
  * @param {Object} opts Optional parameters
946
946
  * @param {Number} opts.pageSize (default to 50)
947
947
  * @param {Number} opts.pageNum (default to 1)
@@ -950,259 +950,259 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
950
950
  * @param {Array.<String>} opts.deviceUID A Device UID.
951
951
  * @param {Array.<String>} opts.tag Tag filter
952
952
  * @param {Array.<String>} opts.serialNumber Serial number filter
953
- * @param {String} opts.fleetUID
953
+ * @param {String} opts.fleetUID
954
954
  * @param {Array.<String>} opts.notecardFirmware Firmware version filter
955
955
  * @param {Array.<String>} opts.location Location filter
956
956
  * @param {Array.<String>} opts.hostFirmware Host firmware filter
957
- * @param {Array.<String>} opts.productUID
957
+ * @param {Array.<String>} opts.productUID
958
958
  * @param {Array.<String>} opts.sku SKU filter
959
959
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
960
960
  */
961
961
  }, {
962
962
  key: "getDevicesDfuStatus",
963
- value: function getDevicesDfuStatus(projectUID, firmwareType, opts) {
964
- return this.getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
963
+ value: function getDevicesDfuStatus(projectOrProductUID, firmwareType, opts) {
964
+ return this.getDevicesDfuStatusWithHttpInfo(projectOrProductUID, firmwareType, opts).then(function (response_and_data) {
965
965
  return response_and_data.data;
966
966
  });
967
967
  }
968
968
 
969
969
  /**
970
970
  * Get Available Firmware Information
971
- * @param {String} projectUID
971
+ * @param {String} projectOrProductUID
972
972
  * @param {Object} opts Optional parameters
973
- * @param {String} opts.product
974
- * @param {String} opts.firmwareType
975
- * @param {String} opts.version
976
- * @param {String} opts.target
977
- * @param {String} opts.filename
978
- * @param {String} opts.md5
979
- * @param {Boolean} opts.unpublished
973
+ * @param {String} opts.product
974
+ * @param {String} opts.firmwareType
975
+ * @param {String} opts.version
976
+ * @param {String} opts.target
977
+ * @param {String} opts.filename
978
+ * @param {String} opts.md5
979
+ * @param {Boolean} opts.unpublished
980
980
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
981
981
  */
982
982
  }, {
983
983
  key: "getFirmwareInfoWithHttpInfo",
984
- value: function getFirmwareInfoWithHttpInfo(projectUID, opts) {
984
+ value: function getFirmwareInfoWithHttpInfo(projectOrProductUID, opts) {
985
985
  opts = opts || {};
986
986
  var postBody = null;
987
- // verify the required parameter 'projectUID' is set
988
- if (projectUID === undefined || projectUID === null) {
989
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
987
+ // verify the required parameter 'projectOrProductUID' is set
988
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
989
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
990
990
  }
991
991
  var pathParams = {
992
- projectUID: projectUID
992
+ 'projectOrProductUID': projectOrProductUID
993
993
  };
994
994
  var queryParams = {
995
- product: opts["product"],
996
- firmwareType: opts["firmwareType"],
997
- version: opts["version"],
998
- target: opts["target"],
999
- filename: opts["filename"],
1000
- md5: opts["md5"],
1001
- unpublished: opts["unpublished"]
995
+ 'product': opts['product'],
996
+ 'firmwareType': opts['firmwareType'],
997
+ 'version': opts['version'],
998
+ 'target': opts['target'],
999
+ 'filename': opts['filename'],
1000
+ 'md5': opts['md5'],
1001
+ 'unpublished': opts['unpublished']
1002
1002
  };
1003
1003
  var headerParams = {};
1004
1004
  var formParams = {};
1005
- var authNames = ["api_key"];
1005
+ var authNames = ['api_key'];
1006
1006
  var contentTypes = [];
1007
- var accepts = ["application/json"];
1007
+ var accepts = ['application/json'];
1008
1008
  var returnType = [_FirmwareInfo["default"]];
1009
- return this.apiClient.callApi("/v1/projects/{projectUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1009
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1010
1010
  }
1011
1011
 
1012
1012
  /**
1013
1013
  * Get Available Firmware Information
1014
- * @param {String} projectUID
1014
+ * @param {String} projectOrProductUID
1015
1015
  * @param {Object} opts Optional parameters
1016
- * @param {String} opts.product
1017
- * @param {String} opts.firmwareType
1018
- * @param {String} opts.version
1019
- * @param {String} opts.target
1020
- * @param {String} opts.filename
1021
- * @param {String} opts.md5
1022
- * @param {Boolean} opts.unpublished
1016
+ * @param {String} opts.product
1017
+ * @param {String} opts.firmwareType
1018
+ * @param {String} opts.version
1019
+ * @param {String} opts.target
1020
+ * @param {String} opts.filename
1021
+ * @param {String} opts.md5
1022
+ * @param {Boolean} opts.unpublished
1023
1023
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
1024
1024
  */
1025
1025
  }, {
1026
1026
  key: "getFirmwareInfo",
1027
- value: function getFirmwareInfo(projectUID, opts) {
1028
- return this.getFirmwareInfoWithHttpInfo(projectUID, opts).then(function (response_and_data) {
1027
+ value: function getFirmwareInfo(projectOrProductUID, opts) {
1028
+ return this.getFirmwareInfoWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1029
1029
  return response_and_data.data;
1030
1030
  });
1031
1031
  }
1032
1032
 
1033
1033
  /**
1034
1034
  * Get Fleet
1035
- * @param {String} projectUID
1036
- * @param {String} fleetUID
1035
+ * @param {String} projectOrProductUID
1036
+ * @param {String} fleetUID
1037
1037
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
1038
1038
  */
1039
1039
  }, {
1040
1040
  key: "getFleetWithHttpInfo",
1041
- value: function getFleetWithHttpInfo(projectUID, fleetUID) {
1041
+ value: function getFleetWithHttpInfo(projectOrProductUID, fleetUID) {
1042
1042
  var postBody = null;
1043
- // verify the required parameter 'projectUID' is set
1044
- if (projectUID === undefined || projectUID === null) {
1045
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleet");
1043
+ // verify the required parameter 'projectOrProductUID' is set
1044
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1045
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleet");
1046
1046
  }
1047
1047
  // verify the required parameter 'fleetUID' is set
1048
1048
  if (fleetUID === undefined || fleetUID === null) {
1049
1049
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
1050
1050
  }
1051
1051
  var pathParams = {
1052
- projectUID: projectUID,
1053
- fleetUID: fleetUID
1052
+ 'projectOrProductUID': projectOrProductUID,
1053
+ 'fleetUID': fleetUID
1054
1054
  };
1055
1055
  var queryParams = {};
1056
1056
  var headerParams = {};
1057
1057
  var formParams = {};
1058
- var authNames = ["api_key"];
1058
+ var authNames = ['api_key'];
1059
1059
  var contentTypes = [];
1060
- var accepts = ["application/json"];
1060
+ var accepts = ['application/json'];
1061
1061
  var returnType = _Fleet["default"];
1062
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1062
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1063
1063
  }
1064
1064
 
1065
1065
  /**
1066
1066
  * Get Fleet
1067
- * @param {String} projectUID
1068
- * @param {String} fleetUID
1067
+ * @param {String} projectOrProductUID
1068
+ * @param {String} fleetUID
1069
1069
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
1070
1070
  */
1071
1071
  }, {
1072
1072
  key: "getFleet",
1073
- value: function getFleet(projectUID, fleetUID) {
1074
- return this.getFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
1073
+ value: function getFleet(projectOrProductUID, fleetUID) {
1074
+ return this.getFleetWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
1075
1075
  return response_and_data.data;
1076
1076
  });
1077
1077
  }
1078
1078
 
1079
1079
  /**
1080
1080
  * Get environment variables of a fleet
1081
- * @param {String} projectUID
1082
- * @param {String} fleetUID
1081
+ * @param {String} projectOrProductUID
1082
+ * @param {String} fleetUID
1083
1083
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1084
1084
  */
1085
1085
  }, {
1086
1086
  key: "getFleetEnvironmentVariablesWithHttpInfo",
1087
- value: function getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID) {
1087
+ value: function getFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID) {
1088
1088
  var postBody = null;
1089
- // verify the required parameter 'projectUID' is set
1090
- if (projectUID === undefined || projectUID === null) {
1091
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEnvironmentVariables");
1089
+ // verify the required parameter 'projectOrProductUID' is set
1090
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1091
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEnvironmentVariables");
1092
1092
  }
1093
1093
  // verify the required parameter 'fleetUID' is set
1094
1094
  if (fleetUID === undefined || fleetUID === null) {
1095
1095
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
1096
1096
  }
1097
1097
  var pathParams = {
1098
- projectUID: projectUID,
1099
- fleetUID: fleetUID
1098
+ 'projectOrProductUID': projectOrProductUID,
1099
+ 'fleetUID': fleetUID
1100
1100
  };
1101
1101
  var queryParams = {};
1102
1102
  var headerParams = {};
1103
1103
  var formParams = {};
1104
- var authNames = ["api_key"];
1104
+ var authNames = ['api_key'];
1105
1105
  var contentTypes = [];
1106
- var accepts = ["application/json"];
1106
+ var accepts = ['application/json'];
1107
1107
  var returnType = _EnvironmentVariables["default"];
1108
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1108
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1109
1109
  }
1110
1110
 
1111
1111
  /**
1112
1112
  * Get environment variables of a fleet
1113
- * @param {String} projectUID
1114
- * @param {String} fleetUID
1113
+ * @param {String} projectOrProductUID
1114
+ * @param {String} fleetUID
1115
1115
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1116
1116
  */
1117
1117
  }, {
1118
1118
  key: "getFleetEnvironmentVariables",
1119
- value: function getFleetEnvironmentVariables(projectUID, fleetUID) {
1120
- return this.getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
1119
+ value: function getFleetEnvironmentVariables(projectOrProductUID, fleetUID) {
1120
+ return this.getFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID).then(function (response_and_data) {
1121
1121
  return response_and_data.data;
1122
1122
  });
1123
1123
  }
1124
1124
 
1125
1125
  /**
1126
1126
  * Get variable format for a notefile
1127
- * @param {String} projectUID
1127
+ * @param {String} projectOrProductUID
1128
1128
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
1129
1129
  */
1130
1130
  }, {
1131
1131
  key: "getNotefileSchemasWithHttpInfo",
1132
- value: function getNotefileSchemasWithHttpInfo(projectUID) {
1132
+ value: function getNotefileSchemasWithHttpInfo(projectOrProductUID) {
1133
1133
  var postBody = null;
1134
- // verify the required parameter 'projectUID' is set
1135
- if (projectUID === undefined || projectUID === null) {
1136
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getNotefileSchemas");
1134
+ // verify the required parameter 'projectOrProductUID' is set
1135
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1136
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
1137
1137
  }
1138
1138
  var pathParams = {
1139
- projectUID: projectUID
1139
+ 'projectOrProductUID': projectOrProductUID
1140
1140
  };
1141
1141
  var queryParams = {};
1142
1142
  var headerParams = {};
1143
1143
  var formParams = {};
1144
1144
  var authNames = [];
1145
1145
  var contentTypes = [];
1146
- var accepts = ["application/json"];
1146
+ var accepts = ['application/json'];
1147
1147
  var returnType = [_NotefileSchema["default"]];
1148
- return this.apiClient.callApi("/v1/projects/{projectUID}/schemas", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1148
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1149
1149
  }
1150
1150
 
1151
1151
  /**
1152
1152
  * Get variable format for a notefile
1153
- * @param {String} projectUID
1153
+ * @param {String} projectOrProductUID
1154
1154
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
1155
1155
  */
1156
1156
  }, {
1157
1157
  key: "getNotefileSchemas",
1158
- value: function getNotefileSchemas(projectUID) {
1159
- return this.getNotefileSchemasWithHttpInfo(projectUID).then(function (response_and_data) {
1158
+ value: function getNotefileSchemas(projectOrProductUID) {
1159
+ return this.getNotefileSchemasWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1160
1160
  return response_and_data.data;
1161
1161
  });
1162
1162
  }
1163
1163
 
1164
1164
  /**
1165
1165
  * Get a Project by ProjectUID
1166
- * @param {String} projectUID
1166
+ * @param {String} projectOrProductUID
1167
1167
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1168
1168
  */
1169
1169
  }, {
1170
1170
  key: "getProjectWithHttpInfo",
1171
- value: function getProjectWithHttpInfo(projectUID) {
1171
+ value: function getProjectWithHttpInfo(projectOrProductUID) {
1172
1172
  var postBody = null;
1173
- // verify the required parameter 'projectUID' is set
1174
- if (projectUID === undefined || projectUID === null) {
1175
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
1173
+ // verify the required parameter 'projectOrProductUID' is set
1174
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1175
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
1176
1176
  }
1177
1177
  var pathParams = {
1178
- projectUID: projectUID
1178
+ 'projectOrProductUID': projectOrProductUID
1179
1179
  };
1180
1180
  var queryParams = {};
1181
1181
  var headerParams = {};
1182
1182
  var formParams = {};
1183
- var authNames = ["api_key"];
1183
+ var authNames = ['api_key'];
1184
1184
  var contentTypes = [];
1185
- var accepts = ["application/json"];
1185
+ var accepts = ['application/json'];
1186
1186
  var returnType = _Project["default"];
1187
- return this.apiClient.callApi("/v1/projects/{projectUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1187
+ return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1188
1188
  }
1189
1189
 
1190
1190
  /**
1191
1191
  * Get a Project by ProjectUID
1192
- * @param {String} projectUID
1192
+ * @param {String} projectOrProductUID
1193
1193
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1194
1194
  */
1195
1195
  }, {
1196
1196
  key: "getProject",
1197
- value: function getProject(projectUID) {
1198
- return this.getProjectWithHttpInfo(projectUID).then(function (response_and_data) {
1197
+ value: function getProject(projectOrProductUID) {
1198
+ return this.getProjectWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1199
1199
  return response_and_data.data;
1200
1200
  });
1201
1201
  }
1202
1202
 
1203
1203
  /**
1204
1204
  * Get a Project by ProductUID
1205
- * @param {String} productUID
1205
+ * @param {String} productUID
1206
1206
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
1207
1207
  */
1208
1208
  }, {
@@ -1214,21 +1214,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1214
1214
  throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
1215
1215
  }
1216
1216
  var pathParams = {
1217
- productUID: productUID
1217
+ 'productUID': productUID
1218
1218
  };
1219
1219
  var queryParams = {};
1220
1220
  var headerParams = {};
1221
1221
  var formParams = {};
1222
- var authNames = ["api_key"];
1222
+ var authNames = ['api_key'];
1223
1223
  var contentTypes = [];
1224
- var accepts = ["application/json"];
1224
+ var accepts = ['application/json'];
1225
1225
  var returnType = _Project["default"];
1226
- return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1226
+ return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1227
1227
  }
1228
1228
 
1229
1229
  /**
1230
1230
  * Get a Project by ProductUID
1231
- * @param {String} productUID
1231
+ * @param {String} productUID
1232
1232
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
1233
1233
  */
1234
1234
  }, {
@@ -1241,156 +1241,156 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1241
1241
 
1242
1242
  /**
1243
1243
  * Get environment variables of a project
1244
- * @param {String} projectUID
1244
+ * @param {String} projectOrProductUID
1245
1245
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1246
1246
  */
1247
1247
  }, {
1248
1248
  key: "getProjectEnvironmentVariablesWithHttpInfo",
1249
- value: function getProjectEnvironmentVariablesWithHttpInfo(projectUID) {
1249
+ value: function getProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID) {
1250
1250
  var postBody = null;
1251
- // verify the required parameter 'projectUID' is set
1252
- if (projectUID === undefined || projectUID === null) {
1253
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
1251
+ // verify the required parameter 'projectOrProductUID' is set
1252
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1253
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
1254
1254
  }
1255
1255
  var pathParams = {
1256
- projectUID: projectUID
1256
+ 'projectOrProductUID': projectOrProductUID
1257
1257
  };
1258
1258
  var queryParams = {};
1259
1259
  var headerParams = {};
1260
1260
  var formParams = {};
1261
- var authNames = ["api_key"];
1261
+ var authNames = ['api_key'];
1262
1262
  var contentTypes = [];
1263
- var accepts = ["application/json"];
1263
+ var accepts = ['application/json'];
1264
1264
  var returnType = _EnvironmentVariables["default"];
1265
- return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1265
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1266
1266
  }
1267
1267
 
1268
1268
  /**
1269
1269
  * Get environment variables of a project
1270
- * @param {String} projectUID
1270
+ * @param {String} projectOrProductUID
1271
1271
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1272
1272
  */
1273
1273
  }, {
1274
1274
  key: "getProjectEnvironmentVariables",
1275
- value: function getProjectEnvironmentVariables(projectUID) {
1276
- return this.getProjectEnvironmentVariablesWithHttpInfo(projectUID).then(function (response_and_data) {
1275
+ value: function getProjectEnvironmentVariables(projectOrProductUID) {
1276
+ return this.getProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1277
1277
  return response_and_data.data;
1278
1278
  });
1279
1279
  }
1280
1280
 
1281
1281
  /**
1282
1282
  * Get Project Fleets
1283
- * @param {String} projectUID
1283
+ * @param {String} projectOrProductUID
1284
1284
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
1285
1285
  */
1286
1286
  }, {
1287
1287
  key: "getProjectFleetsWithHttpInfo",
1288
- value: function getProjectFleetsWithHttpInfo(projectUID) {
1288
+ value: function getProjectFleetsWithHttpInfo(projectOrProductUID) {
1289
1289
  var postBody = null;
1290
- // verify the required parameter 'projectUID' is set
1291
- if (projectUID === undefined || projectUID === null) {
1292
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
1290
+ // verify the required parameter 'projectOrProductUID' is set
1291
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1292
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
1293
1293
  }
1294
1294
  var pathParams = {
1295
- projectUID: projectUID
1295
+ 'projectOrProductUID': projectOrProductUID
1296
1296
  };
1297
1297
  var queryParams = {};
1298
1298
  var headerParams = {};
1299
1299
  var formParams = {};
1300
- var authNames = ["api_key"];
1300
+ var authNames = ['api_key'];
1301
1301
  var contentTypes = [];
1302
- var accepts = ["application/json"];
1302
+ var accepts = ['application/json'];
1303
1303
  var returnType = _GetProjectFleets200Response["default"];
1304
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1304
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1305
1305
  }
1306
1306
 
1307
1307
  /**
1308
1308
  * Get Project Fleets
1309
- * @param {String} projectUID
1309
+ * @param {String} projectOrProductUID
1310
1310
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
1311
1311
  */
1312
1312
  }, {
1313
1313
  key: "getProjectFleets",
1314
- value: function getProjectFleets(projectUID) {
1315
- return this.getProjectFleetsWithHttpInfo(projectUID).then(function (response_and_data) {
1314
+ value: function getProjectFleets(projectOrProductUID) {
1315
+ return this.getProjectFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1316
1316
  return response_and_data.data;
1317
1317
  });
1318
1318
  }
1319
1319
 
1320
1320
  /**
1321
1321
  * Get Project Members
1322
- * @param {String} projectUID
1322
+ * @param {String} projectOrProductUID
1323
1323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
1324
1324
  */
1325
1325
  }, {
1326
1326
  key: "getProjectMembersWithHttpInfo",
1327
- value: function getProjectMembersWithHttpInfo(projectUID) {
1327
+ value: function getProjectMembersWithHttpInfo(projectOrProductUID) {
1328
1328
  var postBody = null;
1329
- // verify the required parameter 'projectUID' is set
1330
- if (projectUID === undefined || projectUID === null) {
1331
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
1329
+ // verify the required parameter 'projectOrProductUID' is set
1330
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1331
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
1332
1332
  }
1333
1333
  var pathParams = {
1334
- projectUID: projectUID
1334
+ 'projectOrProductUID': projectOrProductUID
1335
1335
  };
1336
1336
  var queryParams = {};
1337
1337
  var headerParams = {};
1338
1338
  var formParams = {};
1339
- var authNames = ["api_key"];
1339
+ var authNames = ['api_key'];
1340
1340
  var contentTypes = [];
1341
- var accepts = ["application/json"];
1341
+ var accepts = ['application/json'];
1342
1342
  var returnType = _GetProjectMembers200Response["default"];
1343
- return this.apiClient.callApi("/v1/projects/{projectUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1343
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1344
1344
  }
1345
1345
 
1346
1346
  /**
1347
1347
  * Get Project Members
1348
- * @param {String} projectUID
1348
+ * @param {String} projectOrProductUID
1349
1349
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
1350
1350
  */
1351
1351
  }, {
1352
1352
  key: "getProjectMembers",
1353
- value: function getProjectMembers(projectUID) {
1354
- return this.getProjectMembersWithHttpInfo(projectUID).then(function (response_and_data) {
1353
+ value: function getProjectMembers(projectOrProductUID) {
1354
+ return this.getProjectMembersWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1355
1355
  return response_and_data.data;
1356
1356
  });
1357
1357
  }
1358
1358
 
1359
1359
  /**
1360
1360
  * Get Products within a Project
1361
- * @param {String} projectUID
1361
+ * @param {String} projectOrProductUID
1362
1362
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
1363
1363
  */
1364
1364
  }, {
1365
1365
  key: "getProjectProductsWithHttpInfo",
1366
- value: function getProjectProductsWithHttpInfo(projectUID) {
1366
+ value: function getProjectProductsWithHttpInfo(projectOrProductUID) {
1367
1367
  var postBody = null;
1368
- // verify the required parameter 'projectUID' is set
1369
- if (projectUID === undefined || projectUID === null) {
1370
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
1368
+ // verify the required parameter 'projectOrProductUID' is set
1369
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1370
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectProducts");
1371
1371
  }
1372
1372
  var pathParams = {
1373
- projectUID: projectUID
1373
+ 'projectOrProductUID': projectOrProductUID
1374
1374
  };
1375
1375
  var queryParams = {};
1376
1376
  var headerParams = {};
1377
1377
  var formParams = {};
1378
- var authNames = ["api_key"];
1378
+ var authNames = ['api_key'];
1379
1379
  var contentTypes = [];
1380
- var accepts = ["application/json"];
1380
+ var accepts = ['application/json'];
1381
1381
  var returnType = _GetProjectProducts200Response["default"];
1382
- return this.apiClient.callApi("/v1/projects/{projectUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1382
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1383
1383
  }
1384
1384
 
1385
1385
  /**
1386
1386
  * Get Products within a Project
1387
- * @param {String} projectUID
1387
+ * @param {String} projectOrProductUID
1388
1388
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
1389
1389
  */
1390
1390
  }, {
1391
1391
  key: "getProjectProducts",
1392
- value: function getProjectProducts(projectUID) {
1393
- return this.getProjectProductsWithHttpInfo(projectUID).then(function (response_and_data) {
1392
+ value: function getProjectProducts(projectOrProductUID) {
1393
+ return this.getProjectProductsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1394
1394
  return response_and_data.data;
1395
1395
  });
1396
1396
  }
@@ -1407,11 +1407,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1407
1407
  var queryParams = {};
1408
1408
  var headerParams = {};
1409
1409
  var formParams = {};
1410
- var authNames = ["api_key"];
1410
+ var authNames = ['api_key'];
1411
1411
  var contentTypes = [];
1412
- var accepts = ["application/json"];
1412
+ var accepts = ['application/json'];
1413
1413
  var returnType = _GetProjects200Response["default"];
1414
- return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1414
+ return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1415
1415
  }
1416
1416
 
1417
1417
  /**
@@ -1428,18 +1428,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1428
1428
 
1429
1429
  /**
1430
1430
  * Add Device to Fleets
1431
- * @param {String} projectUID
1432
- * @param {String} deviceUID
1433
- * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1431
+ * @param {String} projectOrProductUID
1432
+ * @param {String} deviceUID
1433
+ * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1434
1434
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
1435
1435
  */
1436
1436
  }, {
1437
1437
  key: "putDeviceFleetsWithHttpInfo",
1438
- value: function putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest) {
1438
+ value: function putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1439
1439
  var postBody = putDeviceFleetsRequest;
1440
- // verify the required parameter 'projectUID' is set
1441
- if (projectUID === undefined || projectUID === null) {
1442
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceFleets");
1440
+ // verify the required parameter 'projectOrProductUID' is set
1441
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1442
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceFleets");
1443
1443
  }
1444
1444
  // verify the required parameter 'deviceUID' is set
1445
1445
  if (deviceUID === undefined || deviceUID === null) {
@@ -1450,48 +1450,48 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1450
1450
  throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
1451
1451
  }
1452
1452
  var pathParams = {
1453
- projectUID: projectUID,
1454
- deviceUID: deviceUID
1453
+ 'projectOrProductUID': projectOrProductUID,
1454
+ 'deviceUID': deviceUID
1455
1455
  };
1456
1456
  var queryParams = {};
1457
1457
  var headerParams = {};
1458
1458
  var formParams = {};
1459
- var authNames = ["api_key"];
1460
- var contentTypes = ["application/json"];
1461
- var accepts = ["application/json"];
1459
+ var authNames = ['api_key'];
1460
+ var contentTypes = ['application/json'];
1461
+ var accepts = ['application/json'];
1462
1462
  var returnType = _GetProjectFleets200Response["default"];
1463
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1463
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1464
1464
  }
1465
1465
 
1466
1466
  /**
1467
1467
  * Add Device to Fleets
1468
- * @param {String} projectUID
1469
- * @param {String} deviceUID
1470
- * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1468
+ * @param {String} projectOrProductUID
1469
+ * @param {String} deviceUID
1470
+ * @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
1471
1471
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
1472
1472
  */
1473
1473
  }, {
1474
1474
  key: "putDeviceFleets",
1475
- value: function putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest) {
1476
- return this.putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
1475
+ value: function putDeviceFleets(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1476
+ return this.putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
1477
1477
  return response_and_data.data;
1478
1478
  });
1479
1479
  }
1480
1480
 
1481
1481
  /**
1482
1482
  * Put environment variables of a fleet
1483
- * @param {String} projectUID
1484
- * @param {String} fleetUID
1483
+ * @param {String} projectOrProductUID
1484
+ * @param {String} fleetUID
1485
1485
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1486
1486
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1487
1487
  */
1488
1488
  }, {
1489
1489
  key: "putFleetEnvironmentVariablesWithHttpInfo",
1490
- value: function putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables) {
1490
+ value: function putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
1491
1491
  var postBody = environmentVariables;
1492
- // verify the required parameter 'projectUID' is set
1493
- if (projectUID === undefined || projectUID === null) {
1494
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putFleetEnvironmentVariables");
1492
+ // verify the required parameter 'projectOrProductUID' is set
1493
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1494
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putFleetEnvironmentVariables");
1495
1495
  }
1496
1496
  // verify the required parameter 'fleetUID' is set
1497
1497
  if (fleetUID === undefined || fleetUID === null) {
@@ -1502,137 +1502,137 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1502
1502
  throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
1503
1503
  }
1504
1504
  var pathParams = {
1505
- projectUID: projectUID,
1506
- fleetUID: fleetUID
1505
+ 'projectOrProductUID': projectOrProductUID,
1506
+ 'fleetUID': fleetUID
1507
1507
  };
1508
1508
  var queryParams = {};
1509
1509
  var headerParams = {};
1510
1510
  var formParams = {};
1511
- var authNames = ["api_key"];
1512
- var contentTypes = ["application/json"];
1513
- var accepts = ["application/json"];
1511
+ var authNames = ['api_key'];
1512
+ var contentTypes = ['application/json'];
1513
+ var accepts = ['application/json'];
1514
1514
  var returnType = _EnvironmentVariables["default"];
1515
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1515
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1516
1516
  }
1517
1517
 
1518
1518
  /**
1519
1519
  * Put environment variables of a fleet
1520
- * @param {String} projectUID
1521
- * @param {String} fleetUID
1520
+ * @param {String} projectOrProductUID
1521
+ * @param {String} fleetUID
1522
1522
  * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1523
1523
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1524
1524
  */
1525
1525
  }, {
1526
1526
  key: "putFleetEnvironmentVariables",
1527
- value: function putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables) {
1528
- return this.putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables).then(function (response_and_data) {
1527
+ value: function putFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
1528
+ return this.putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
1529
1529
  return response_and_data.data;
1530
1530
  });
1531
1531
  }
1532
1532
 
1533
1533
  /**
1534
1534
  * Put environment variables of a project
1535
- * @param {String} projectUID
1535
+ * @param {String} projectOrProductUID
1536
1536
  * @param {Object} opts Optional parameters
1537
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1537
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
1538
1538
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1539
1539
  */
1540
1540
  }, {
1541
1541
  key: "putProjectEnvironmentVariablesWithHttpInfo",
1542
- value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
1542
+ value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
1543
1543
  opts = opts || {};
1544
- var postBody = opts["environmentVariables"];
1545
- // verify the required parameter 'projectUID' is set
1546
- if (projectUID === undefined || projectUID === null) {
1547
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
1544
+ var postBody = opts['environmentVariables'];
1545
+ // verify the required parameter 'projectOrProductUID' is set
1546
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1547
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
1548
1548
  }
1549
1549
  var pathParams = {
1550
- projectUID: projectUID
1550
+ 'projectOrProductUID': projectOrProductUID
1551
1551
  };
1552
1552
  var queryParams = {};
1553
1553
  var headerParams = {};
1554
1554
  var formParams = {};
1555
- var authNames = ["api_key"];
1556
- var contentTypes = ["application/json"];
1557
- var accepts = ["application/json"];
1555
+ var authNames = ['api_key'];
1556
+ var contentTypes = ['application/json'];
1557
+ var accepts = ['application/json'];
1558
1558
  var returnType = _EnvironmentVariables["default"];
1559
- return this.apiClient.callApi("/v1/projects/{projectUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1559
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1560
1560
  }
1561
1561
 
1562
1562
  /**
1563
1563
  * Put environment variables of a project
1564
- * @param {String} projectUID
1564
+ * @param {String} projectOrProductUID
1565
1565
  * @param {Object} opts Optional parameters
1566
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1566
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
1567
1567
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1568
1568
  */
1569
1569
  }, {
1570
1570
  key: "putProjectEnvironmentVariables",
1571
- value: function putProjectEnvironmentVariables(projectUID, opts) {
1572
- return this.putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts).then(function (response_and_data) {
1571
+ value: function putProjectEnvironmentVariables(projectOrProductUID, opts) {
1572
+ return this.putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1573
1573
  return response_and_data.data;
1574
1574
  });
1575
1575
  }
1576
1576
 
1577
1577
  /**
1578
1578
  * Set the project-level event JSONata transformation
1579
- * @param {String} projectUID
1579
+ * @param {String} projectOrProductUID
1580
1580
  * @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
1581
1581
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1582
1582
  */
1583
1583
  }, {
1584
1584
  key: "setGlobalTransformationWithHttpInfo",
1585
- value: function setGlobalTransformationWithHttpInfo(projectUID, body) {
1585
+ value: function setGlobalTransformationWithHttpInfo(projectOrProductUID, body) {
1586
1586
  var postBody = body;
1587
- // verify the required parameter 'projectUID' is set
1588
- if (projectUID === undefined || projectUID === null) {
1589
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling setGlobalTransformation");
1587
+ // verify the required parameter 'projectOrProductUID' is set
1588
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1589
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalTransformation");
1590
1590
  }
1591
1591
  // verify the required parameter 'body' is set
1592
1592
  if (body === undefined || body === null) {
1593
1593
  throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
1594
1594
  }
1595
1595
  var pathParams = {
1596
- projectUID: projectUID
1596
+ 'projectOrProductUID': projectOrProductUID
1597
1597
  };
1598
1598
  var queryParams = {};
1599
1599
  var headerParams = {};
1600
1600
  var formParams = {};
1601
- var authNames = ["api_key"];
1602
- var contentTypes = ["application/json"];
1603
- var accepts = ["application/json"];
1601
+ var authNames = ['api_key'];
1602
+ var contentTypes = ['application/json'];
1603
+ var accepts = ['application/json'];
1604
1604
  var returnType = null;
1605
- return this.apiClient.callApi("/v1/projects/{projectUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1605
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1606
1606
  }
1607
1607
 
1608
1608
  /**
1609
1609
  * Set the project-level event JSONata transformation
1610
- * @param {String} projectUID
1610
+ * @param {String} projectOrProductUID
1611
1611
  * @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
1612
1612
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1613
1613
  */
1614
1614
  }, {
1615
1615
  key: "setGlobalTransformation",
1616
- value: function setGlobalTransformation(projectUID, body) {
1617
- return this.setGlobalTransformationWithHttpInfo(projectUID, body).then(function (response_and_data) {
1616
+ value: function setGlobalTransformation(projectOrProductUID, body) {
1617
+ return this.setGlobalTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
1618
1618
  return response_and_data.data;
1619
1619
  });
1620
1620
  }
1621
1621
 
1622
1622
  /**
1623
1623
  * Update Fleet
1624
- * @param {String} projectUID
1625
- * @param {String} fleetUID
1624
+ * @param {String} projectOrProductUID
1625
+ * @param {String} fleetUID
1626
1626
  * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
1627
1627
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
1628
1628
  */
1629
1629
  }, {
1630
1630
  key: "updateFleetWithHttpInfo",
1631
- value: function updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest) {
1631
+ value: function updateFleetWithHttpInfo(projectOrProductUID, fleetUID, updateFleetRequest) {
1632
1632
  var postBody = updateFleetRequest;
1633
- // verify the required parameter 'projectUID' is set
1634
- if (projectUID === undefined || projectUID === null) {
1635
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateFleet");
1633
+ // verify the required parameter 'projectOrProductUID' is set
1634
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1635
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFleet");
1636
1636
  }
1637
1637
  // verify the required parameter 'fleetUID' is set
1638
1638
  if (fleetUID === undefined || fleetUID === null) {
@@ -1643,49 +1643,49 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1643
1643
  throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
1644
1644
  }
1645
1645
  var pathParams = {
1646
- projectUID: projectUID,
1647
- fleetUID: fleetUID
1646
+ 'projectOrProductUID': projectOrProductUID,
1647
+ 'fleetUID': fleetUID
1648
1648
  };
1649
1649
  var queryParams = {};
1650
1650
  var headerParams = {};
1651
1651
  var formParams = {};
1652
- var authNames = ["api_key"];
1653
- var contentTypes = ["application/json"];
1654
- var accepts = ["application/json"];
1652
+ var authNames = ['api_key'];
1653
+ var contentTypes = ['application/json'];
1654
+ var accepts = ['application/json'];
1655
1655
  var returnType = _Fleet["default"];
1656
- return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1656
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1657
1657
  }
1658
1658
 
1659
1659
  /**
1660
1660
  * Update Fleet
1661
- * @param {String} projectUID
1662
- * @param {String} fleetUID
1661
+ * @param {String} projectOrProductUID
1662
+ * @param {String} fleetUID
1663
1663
  * @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
1664
1664
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
1665
1665
  */
1666
1666
  }, {
1667
1667
  key: "updateFleet",
1668
- value: function updateFleet(projectUID, fleetUID, updateFleetRequest) {
1669
- return this.updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
1668
+ value: function updateFleet(projectOrProductUID, fleetUID, updateFleetRequest) {
1669
+ return this.updateFleetWithHttpInfo(projectOrProductUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
1670
1670
  return response_and_data.data;
1671
1671
  });
1672
1672
  }
1673
1673
 
1674
1674
  /**
1675
1675
  * Upload firmware binary
1676
- * @param {String} projectUID
1677
- * @param {module:model/String} firmwareType
1678
- * @param {String} filename
1676
+ * @param {String} projectOrProductUID
1677
+ * @param {module:model/String} firmwareType
1678
+ * @param {String} filename
1679
1679
  * @param {File} body contents of the firmware binary
1680
1680
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
1681
1681
  */
1682
1682
  }, {
1683
1683
  key: "uploadFirmwareWithHttpInfo",
1684
- value: function uploadFirmwareWithHttpInfo(projectUID, firmwareType, filename, body) {
1684
+ value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body) {
1685
1685
  var postBody = body;
1686
- // verify the required parameter 'projectUID' is set
1687
- if (projectUID === undefined || projectUID === null) {
1688
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling uploadFirmware");
1686
+ // verify the required parameter 'projectOrProductUID' is set
1687
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1688
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling uploadFirmware");
1689
1689
  }
1690
1690
  // verify the required parameter 'firmwareType' is set
1691
1691
  if (firmwareType === undefined || firmwareType === null) {
@@ -1700,32 +1700,32 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1700
1700
  throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
1701
1701
  }
1702
1702
  var pathParams = {
1703
- projectUID: projectUID,
1704
- firmwareType: firmwareType,
1705
- filename: filename
1703
+ 'projectOrProductUID': projectOrProductUID,
1704
+ 'firmwareType': firmwareType,
1705
+ 'filename': filename
1706
1706
  };
1707
1707
  var queryParams = {};
1708
1708
  var headerParams = {};
1709
1709
  var formParams = {};
1710
- var authNames = ["api_key"];
1711
- var contentTypes = ["application/octet-stream"];
1712
- var accepts = ["application/json"];
1710
+ var authNames = ['api_key'];
1711
+ var contentTypes = ['application/octet-stream'];
1712
+ var accepts = ['application/json'];
1713
1713
  var returnType = _FirmwareInfo["default"];
1714
- return this.apiClient.callApi("/v1/projects/{projectUID}/firmware/{firmwareType}/{filename}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1714
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1715
1715
  }
1716
1716
 
1717
1717
  /**
1718
1718
  * Upload firmware binary
1719
- * @param {String} projectUID
1720
- * @param {module:model/String} firmwareType
1721
- * @param {String} filename
1719
+ * @param {String} projectOrProductUID
1720
+ * @param {module:model/String} firmwareType
1721
+ * @param {String} filename
1722
1722
  * @param {File} body contents of the firmware binary
1723
1723
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
1724
1724
  */
1725
1725
  }, {
1726
1726
  key: "uploadFirmware",
1727
- value: function uploadFirmware(projectUID, firmwareType, filename, body) {
1728
- return this.uploadFirmwareWithHttpInfo(projectUID, firmwareType, filename, body).then(function (response_and_data) {
1727
+ value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body) {
1728
+ return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body).then(function (response_and_data) {
1729
1729
  return response_and_data.data;
1730
1730
  });
1731
1731
  }