@blues-inc/notehub-js 2.3.0-beta.2 → 2.3.0-beta.4

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 (142) hide show
  1. package/README.md +48 -45
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +817 -713
  7. package/dist/api/EventApi.js +83 -83
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +282 -282
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +10 -1
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +80 -73
  15. package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +20 -20
  16. package/dist/model/Alert.js +1 -1
  17. package/dist/model/AlertDataInner.js +1 -1
  18. package/dist/model/AlertNotificationsInner.js +1 -1
  19. package/dist/model/AwsRoute.js +1 -1
  20. package/dist/model/AzureRoute.js +1 -1
  21. package/dist/model/BillingAccount.js +1 -1
  22. package/dist/model/BlynkRoute.js +1 -1
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CellularPlan.js +1 -1
  25. package/dist/model/CloneProjectRequest.js +1 -1
  26. package/dist/model/Contact.js +1 -1
  27. package/dist/model/CreateFleetRequest.js +1 -1
  28. package/dist/model/CreateMonitor.js +1 -1
  29. package/dist/model/CreateProductRequest.js +1 -1
  30. package/dist/model/CreateProjectRequest.js +1 -1
  31. package/dist/model/CreateUpdateRepository.js +1 -1
  32. package/dist/model/CurrentFirmware.js +1 -1
  33. package/dist/model/DFUEnv.js +1 -1
  34. package/dist/model/DFUState.js +1 -1
  35. package/dist/model/DataField.js +1 -1
  36. package/dist/model/DataSetField.js +1 -1
  37. package/dist/model/DataUsage.js +1 -1
  38. package/dist/model/DatacakeRoute.js +1 -1
  39. package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +20 -20
  40. package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +19 -19
  41. package/dist/model/Device.js +1 -1
  42. package/dist/model/DeviceDfuHistory.js +1 -1
  43. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  44. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  45. package/dist/model/DeviceDfuStateMachine.js +1 -1
  46. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  47. package/dist/model/DeviceDfuStatus.js +1 -1
  48. package/dist/model/DeviceDfuStatusPage.js +1 -1
  49. package/dist/model/DeviceSession.js +1 -1
  50. package/dist/model/DeviceTowerInfo.js +1 -1
  51. package/dist/model/DeviceUsage.js +1 -1
  52. package/dist/model/DfuActionRequest.js +1 -1
  53. package/dist/model/EmailNotification.js +1 -1
  54. package/dist/model/EnvTreeJsonNode.js +1 -1
  55. package/dist/model/EnvVar.js +1 -1
  56. package/dist/model/EnvironmentVariables.js +1 -1
  57. package/dist/model/Error.js +1 -1
  58. package/dist/model/Event.js +1 -1
  59. package/dist/model/Filter.js +1 -1
  60. package/dist/model/Firmware.js +1 -1
  61. package/dist/model/FirmwareInfo.js +1 -1
  62. package/dist/model/Fleet.js +1 -1
  63. package/dist/model/FleetConnectivityAssurance.js +1 -1
  64. package/dist/model/GetAlerts200Response.js +1 -1
  65. package/dist/model/GetBillingAccounts200Response.js +1 -1
  66. package/dist/model/GetDataUsage200Response.js +1 -1
  67. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  68. package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +20 -20
  69. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  70. package/dist/model/GetDeviceFleets200Response.js +1 -1
  71. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  72. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  73. package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +18 -18
  74. package/dist/model/GetDevicePlans200Response.js +1 -1
  75. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  76. package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +26 -26
  77. package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
  78. package/dist/model/GetDeviceSessions200Response.js +1 -1
  79. package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +21 -21
  80. package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +22 -22
  81. package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +22 -22
  82. package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +20 -20
  83. package/dist/model/GetProducts200Response.js +1 -1
  84. package/dist/model/GetProjectMembers200Response.js +1 -1
  85. package/dist/model/GetProjects200Response.js +1 -1
  86. package/dist/model/GetSessionsUsage200Response.js +1 -1
  87. package/dist/model/GetWebhooks200Response.js +1 -1
  88. package/dist/model/GoogleRoute.js +1 -1
  89. package/dist/model/HttpRoute.js +1 -1
  90. package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +20 -20
  91. package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +21 -21
  92. package/dist/model/Location.js +1 -1
  93. package/dist/model/Login200Response.js +1 -1
  94. package/dist/model/LoginRequest.js +1 -1
  95. package/dist/model/Monitor.js +1 -1
  96. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  97. package/dist/model/MqttRoute.js +1 -1
  98. package/dist/model/Note.js +1 -1
  99. package/dist/model/NotefileSchema.js +1 -1
  100. package/dist/model/NotehubRoute.js +15 -1
  101. package/dist/model/NotehubRouteSummary.js +1 -1
  102. package/dist/model/OAuth2Error.js +1 -1
  103. package/dist/model/OAuth2TokenResponse.js +1 -1
  104. package/dist/model/PersonalAccessToken.js +1 -1
  105. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  106. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  107. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  108. package/dist/model/Product.js +1 -1
  109. package/dist/model/Project.js +1 -1
  110. package/dist/model/ProjectMember.js +1 -1
  111. package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +22 -22
  112. package/dist/model/ProxyRoute.js +1 -1
  113. package/dist/model/QubitroRoute.js +1 -1
  114. package/dist/model/RadRoute.js +1 -1
  115. package/dist/model/Repository.js +1 -1
  116. package/dist/model/RouteLog.js +1 -1
  117. package/dist/model/RouteTransformSettings.js +1 -1
  118. package/dist/model/S3ArchiveRoute.js +1 -1
  119. package/dist/model/SatellitePlan.js +1 -1
  120. package/dist/model/SchemaProperty.js +1 -1
  121. package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +18 -18
  122. package/dist/model/SimUsage.js +1 -1
  123. package/dist/model/SlackBearerNotification.js +1 -1
  124. package/dist/model/SlackRoute.js +1 -1
  125. package/dist/model/SlackWebHookNotification.js +1 -1
  126. package/dist/model/SnowflakeRoute.js +1 -1
  127. package/dist/model/SnowpipeStreamingRoute.js +223 -0
  128. package/dist/model/ThingworxRoute.js +1 -1
  129. package/dist/model/TowerLocation.js +1 -1
  130. package/dist/model/TwilioRoute.js +1 -1
  131. package/dist/model/UpdateFleetRequest.js +1 -1
  132. package/dist/model/UploadMetadata.js +1 -1
  133. package/dist/model/UsageData.js +1 -1
  134. package/dist/model/UsageEventsData.js +1 -1
  135. package/dist/model/UsageEventsResponse.js +1 -1
  136. package/dist/model/UsageRouteLogsData.js +1 -1
  137. package/dist/model/UsageSessionsData.js +1 -1
  138. package/dist/model/UserDfuStateMachine.js +1 -1
  139. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  140. package/dist/model/UserFirmwareInfo.js +1 -1
  141. package/dist/model/WebhookSettings.js +1 -1
  142. package/package.json +1 -1
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AddDeviceToFleetsRequest = _interopRequireDefault(require("../model/AddDeviceToFleetsRequest"));
8
9
  var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
9
10
  var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
10
11
  var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
11
12
  var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
12
- var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
13
+ var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFromFleetsRequest"));
13
14
  var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
14
15
  var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
15
16
  var _DeviceDfuStatus = _interopRequireDefault(require("../model/DeviceDfuStatus"));
@@ -27,7 +28,6 @@ var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjec
27
28
  var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
28
29
  var _Product = _interopRequireDefault(require("../model/Product"));
29
30
  var _Project = _interopRequireDefault(require("../model/Project"));
30
- var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
31
31
  var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
32
32
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
33
33
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
50
50
  /**
51
51
  * Project service.
52
52
  * @module api/ProjectApi
53
- * @version 2.3.0-beta.2
53
+ * @version 2.3.0-beta.4
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -66,12 +66,160 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
66
66
  }
67
67
 
68
68
  /**
69
- * Clone a Project
69
+ * Add Device to Fleets
70
70
  * @param {String} projectOrProductUID
71
- * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
72
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
71
+ * @param {String} deviceUID
72
+ * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
73
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
73
74
  */
74
75
  return _createClass(ProjectApi, [{
76
+ key: "addDeviceToFleetsWithHttpInfo",
77
+ value: function addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
78
+ var postBody = addDeviceToFleetsRequest;
79
+ // verify the required parameter 'projectOrProductUID' is set
80
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
81
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceToFleets");
82
+ }
83
+ // verify the required parameter 'deviceUID' is set
84
+ if (deviceUID === undefined || deviceUID === null) {
85
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceToFleets");
86
+ }
87
+ // verify the required parameter 'addDeviceToFleetsRequest' is set
88
+ if (addDeviceToFleetsRequest === undefined || addDeviceToFleetsRequest === null) {
89
+ throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
90
+ }
91
+ var pathParams = {
92
+ 'projectOrProductUID': projectOrProductUID,
93
+ 'deviceUID': deviceUID
94
+ };
95
+ var queryParams = {};
96
+ var headerParams = {};
97
+ var formParams = {};
98
+ var authNames = ['personalAccessToken'];
99
+ var contentTypes = ['application/json'];
100
+ var accepts = ['application/json'];
101
+ var returnType = _GetDeviceFleets200Response["default"];
102
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
103
+ }
104
+
105
+ /**
106
+ * Add Device to Fleets
107
+ * @param {String} projectOrProductUID
108
+ * @param {String} deviceUID
109
+ * @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest 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.
110
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
111
+ */
112
+ }, {
113
+ key: "addDeviceToFleets",
114
+ value: function addDeviceToFleets(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
115
+ return this.addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest).then(function (response_and_data) {
116
+ return response_and_data.data;
117
+ });
118
+ }
119
+
120
+ /**
121
+ * Add environment variables of a fleet
122
+ * @param {String} projectOrProductUID
123
+ * @param {String} fleetUID
124
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
125
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
126
+ */
127
+ }, {
128
+ key: "addFleetEnvironmentVariablesWithHttpInfo",
129
+ value: function addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
130
+ var postBody = environmentVariables;
131
+ // verify the required parameter 'projectOrProductUID' is set
132
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
133
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addFleetEnvironmentVariables");
134
+ }
135
+ // verify the required parameter 'fleetUID' is set
136
+ if (fleetUID === undefined || fleetUID === null) {
137
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling addFleetEnvironmentVariables");
138
+ }
139
+ // verify the required parameter 'environmentVariables' is set
140
+ if (environmentVariables === undefined || environmentVariables === null) {
141
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addFleetEnvironmentVariables");
142
+ }
143
+ var pathParams = {
144
+ 'projectOrProductUID': projectOrProductUID,
145
+ 'fleetUID': fleetUID
146
+ };
147
+ var queryParams = {};
148
+ var headerParams = {};
149
+ var formParams = {};
150
+ var authNames = ['personalAccessToken'];
151
+ var contentTypes = ['application/json'];
152
+ var accepts = ['application/json'];
153
+ var returnType = _EnvironmentVariables["default"];
154
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
+ }
156
+
157
+ /**
158
+ * Add environment variables of a fleet
159
+ * @param {String} projectOrProductUID
160
+ * @param {String} fleetUID
161
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
162
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
163
+ */
164
+ }, {
165
+ key: "addFleetEnvironmentVariables",
166
+ value: function addFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
167
+ return this.addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
168
+ return response_and_data.data;
169
+ });
170
+ }
171
+
172
+ /**
173
+ * Add environment variables of a project
174
+ * @param {String} projectOrProductUID
175
+ * @param {Object} opts Optional parameters
176
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
177
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
178
+ */
179
+ }, {
180
+ key: "addProjectEnvironmentVariablesWithHttpInfo",
181
+ value: function addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
182
+ opts = opts || {};
183
+ var postBody = opts['environmentVariables'];
184
+ // verify the required parameter 'projectOrProductUID' is set
185
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
186
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addProjectEnvironmentVariables");
187
+ }
188
+ var pathParams = {
189
+ 'projectOrProductUID': projectOrProductUID
190
+ };
191
+ var queryParams = {};
192
+ var headerParams = {};
193
+ var formParams = {};
194
+ var authNames = ['personalAccessToken'];
195
+ var contentTypes = ['application/json'];
196
+ var accepts = ['application/json'];
197
+ var returnType = _EnvironmentVariables["default"];
198
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
199
+ }
200
+
201
+ /**
202
+ * Add environment variables of a project
203
+ * @param {String} projectOrProductUID
204
+ * @param {Object} opts Optional parameters
205
+ * @param {module:model/EnvironmentVariables} opts.environmentVariables
206
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
207
+ */
208
+ }, {
209
+ key: "addProjectEnvironmentVariables",
210
+ value: function addProjectEnvironmentVariables(projectOrProductUID, opts) {
211
+ return this.addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
212
+ return response_and_data.data;
213
+ });
214
+ }
215
+
216
+ /**
217
+ * Clone a Project
218
+ * @param {String} projectOrProductUID
219
+ * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
220
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
221
+ */
222
+ }, {
75
223
  key: "cloneProjectWithHttpInfo",
76
224
  value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
77
225
  var postBody = cloneProjectRequest;
@@ -241,24 +389,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
241
389
  * Remove Device from Fleets
242
390
  * @param {String} projectOrProductUID
243
391
  * @param {String} deviceUID
244
- * @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.
392
+ * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
245
393
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
246
394
  */
247
395
  }, {
248
- key: "deleteDeviceFleetsWithHttpInfo",
249
- value: function deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
250
- var postBody = deleteDeviceFleetsRequest;
396
+ key: "deleteDeviceFromFleetsWithHttpInfo",
397
+ value: function deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
398
+ var postBody = deleteDeviceFromFleetsRequest;
251
399
  // verify the required parameter 'projectOrProductUID' is set
252
400
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
253
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFleets");
401
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFromFleets");
254
402
  }
255
403
  // verify the required parameter 'deviceUID' is set
256
404
  if (deviceUID === undefined || deviceUID === null) {
257
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFleets");
405
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFromFleets");
258
406
  }
259
- // verify the required parameter 'deleteDeviceFleetsRequest' is set
260
- if (deleteDeviceFleetsRequest === undefined || deleteDeviceFleetsRequest === null) {
261
- throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
407
+ // verify the required parameter 'deleteDeviceFromFleetsRequest' is set
408
+ if (deleteDeviceFromFleetsRequest === undefined || deleteDeviceFromFleetsRequest === null) {
409
+ throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
262
410
  }
263
411
  var pathParams = {
264
412
  'projectOrProductUID': projectOrProductUID,
@@ -278,13 +426,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
278
426
  * Remove Device from Fleets
279
427
  * @param {String} projectOrProductUID
280
428
  * @param {String} deviceUID
281
- * @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.
429
+ * @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest 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.
282
430
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
283
431
  */
284
432
  }, {
285
- key: "deleteDeviceFleets",
286
- value: function deleteDeviceFleets(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
287
- return this.deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
433
+ key: "deleteDeviceFromFleets",
434
+ value: function deleteDeviceFromFleets(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
435
+ return this.deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest).then(function (response_and_data) {
288
436
  return response_and_data.data;
289
437
  });
290
438
  }
@@ -519,104 +667,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
519
667
  });
520
668
  }
521
669
 
522
- /**
523
- * Update/cancel host or notecard firmware updates
524
- * @param {String} projectOrProductUID
525
- * @param {module:model/String} firmwareType
526
- * @param {module:model/String} action
527
- * @param {Object} opts Optional parameters
528
- * @param {Array.<String>} opts.deviceUID A Device UID.
529
- * @param {Array.<String>} opts.tag Tag filter
530
- * @param {Array.<String>} opts.serialNumber Serial number filter
531
- * @param {String} opts.fleetUID
532
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
533
- * @param {Array.<String>} opts.location Location filter
534
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
535
- * @param {Array.<String>} opts.productUID
536
- * @param {Array.<String>} opts.sku SKU filter
537
- * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
538
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
539
- */
540
- }, {
541
- key: "dfuActionWithHttpInfo",
542
- value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
543
- opts = opts || {};
544
- var postBody = opts['dfuActionRequest'];
545
- // verify the required parameter 'projectOrProductUID' is set
546
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
547
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
548
- }
549
- // verify the required parameter 'firmwareType' is set
550
- if (firmwareType === undefined || firmwareType === null) {
551
- throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling dfuAction");
552
- }
553
- // verify the required parameter 'action' is set
554
- if (action === undefined || action === null) {
555
- throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
556
- }
557
- var pathParams = {
558
- 'projectOrProductUID': projectOrProductUID,
559
- 'firmwareType': firmwareType,
560
- 'action': action
561
- };
562
- var queryParams = {
563
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
564
- 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
565
- 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
566
- 'fleetUID': opts['fleetUID'],
567
- 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
568
- 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
569
- 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
570
- 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
571
- 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
572
- };
573
- var headerParams = {};
574
- var formParams = {};
575
- var authNames = ['personalAccessToken'];
576
- var contentTypes = ['application/json'];
577
- var accepts = ['application/json'];
578
- var returnType = null;
579
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
580
- }
581
-
582
- /**
583
- * Update/cancel host or notecard firmware updates
584
- * @param {String} projectOrProductUID
585
- * @param {module:model/String} firmwareType
586
- * @param {module:model/String} action
587
- * @param {Object} opts Optional parameters
588
- * @param {Array.<String>} opts.deviceUID A Device UID.
589
- * @param {Array.<String>} opts.tag Tag filter
590
- * @param {Array.<String>} opts.serialNumber Serial number filter
591
- * @param {String} opts.fleetUID
592
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
593
- * @param {Array.<String>} opts.location Location filter
594
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
595
- * @param {Array.<String>} opts.productUID
596
- * @param {Array.<String>} opts.sku SKU filter
597
- * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
598
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
599
- */
600
- }, {
601
- key: "dfuAction",
602
- value: function dfuAction(projectOrProductUID, firmwareType, action, opts) {
603
- return this.dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
604
- return response_and_data.data;
605
- });
606
- }
607
-
608
670
  /**
609
671
  * Disable the project-level event JSONata transformation
610
672
  * @param {String} projectOrProductUID
611
673
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
612
674
  */
613
675
  }, {
614
- key: "disableGlobalTransformationWithHttpInfo",
615
- value: function disableGlobalTransformationWithHttpInfo(projectOrProductUID) {
676
+ key: "disableGlobalEventTransformationWithHttpInfo",
677
+ value: function disableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
616
678
  var postBody = null;
617
679
  // verify the required parameter 'projectOrProductUID' is set
618
680
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
619
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
681
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
620
682
  }
621
683
  var pathParams = {
622
684
  'projectOrProductUID': projectOrProductUID
@@ -637,9 +699,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
637
699
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
638
700
  */
639
701
  }, {
640
- key: "disableGlobalTransformation",
641
- value: function disableGlobalTransformation(projectOrProductUID) {
642
- return this.disableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
702
+ key: "disableGlobalEventTransformation",
703
+ value: function disableGlobalEventTransformation(projectOrProductUID) {
704
+ return this.disableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
643
705
  return response_and_data.data;
644
706
  });
645
707
  }
@@ -650,12 +712,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
650
712
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
651
713
  */
652
714
  }, {
653
- key: "enableGlobalTransformationWithHttpInfo",
654
- value: function enableGlobalTransformationWithHttpInfo(projectOrProductUID) {
715
+ key: "enableGlobalEventTransformationWithHttpInfo",
716
+ value: function enableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
655
717
  var postBody = null;
656
718
  // verify the required parameter 'projectOrProductUID' is set
657
719
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
658
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
720
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
659
721
  }
660
722
  var pathParams = {
661
723
  'projectOrProductUID': projectOrProductUID
@@ -676,9 +738,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
676
738
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
677
739
  */
678
740
  }, {
679
- key: "enableGlobalTransformation",
680
- value: function enableGlobalTransformation(projectOrProductUID) {
681
- return this.enableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
741
+ key: "enableGlobalEventTransformation",
742
+ value: function enableGlobalEventTransformation(projectOrProductUID) {
743
+ return this.enableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
682
744
  return response_and_data.data;
683
745
  });
684
746
  }
@@ -1215,6 +1277,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1215
1277
  });
1216
1278
  }
1217
1279
 
1280
+ /**
1281
+ * Get Project Fleets
1282
+ * @param {String} projectOrProductUID
1283
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
1284
+ */
1285
+ }, {
1286
+ key: "getFleetsWithHttpInfo",
1287
+ value: function getFleetsWithHttpInfo(projectOrProductUID) {
1288
+ var postBody = null;
1289
+ // verify the required parameter 'projectOrProductUID' is set
1290
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1291
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
1292
+ }
1293
+ var pathParams = {
1294
+ 'projectOrProductUID': projectOrProductUID
1295
+ };
1296
+ var queryParams = {};
1297
+ var headerParams = {};
1298
+ var formParams = {};
1299
+ var authNames = ['personalAccessToken'];
1300
+ var contentTypes = [];
1301
+ var accepts = ['application/json'];
1302
+ var returnType = _GetDeviceFleets200Response["default"];
1303
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1304
+ }
1305
+
1306
+ /**
1307
+ * Get Project Fleets
1308
+ * @param {String} projectOrProductUID
1309
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1310
+ */
1311
+ }, {
1312
+ key: "getFleets",
1313
+ value: function getFleets(projectOrProductUID) {
1314
+ return this.getFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1315
+ return response_and_data.data;
1316
+ });
1317
+ }
1318
+
1218
1319
  /**
1219
1320
  * Get variable format for a notefile
1220
1321
  * @param {String} projectOrProductUID
@@ -1449,45 +1550,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1449
1550
  });
1450
1551
  }
1451
1552
 
1452
- /**
1453
- * Get Project Fleets
1454
- * @param {String} projectOrProductUID
1455
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
1456
- */
1457
- }, {
1458
- key: "getProjectFleetsWithHttpInfo",
1459
- value: function getProjectFleetsWithHttpInfo(projectOrProductUID) {
1460
- var postBody = null;
1461
- // verify the required parameter 'projectOrProductUID' is set
1462
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1463
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
1464
- }
1465
- var pathParams = {
1466
- 'projectOrProductUID': projectOrProductUID
1467
- };
1468
- var queryParams = {};
1469
- var headerParams = {};
1470
- var formParams = {};
1471
- var authNames = ['personalAccessToken'];
1472
- var contentTypes = [];
1473
- var accepts = ['application/json'];
1474
- var returnType = _GetDeviceFleets200Response["default"];
1475
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1476
- }
1477
-
1478
- /**
1479
- * Get Project Fleets
1480
- * @param {String} projectOrProductUID
1481
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1482
- */
1483
- }, {
1484
- key: "getProjectFleets",
1485
- value: function getProjectFleets(projectOrProductUID) {
1486
- return this.getProjectFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
1487
- return response_and_data.data;
1488
- });
1489
- }
1490
-
1491
1553
  /**
1492
1554
  * Get Project Members
1493
1555
  * @param {String} projectOrProductUID
@@ -1559,149 +1621,87 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1559
1621
  }
1560
1622
 
1561
1623
  /**
1562
- * Add Device to Fleets
1563
- * @param {String} projectOrProductUID
1564
- * @param {String} deviceUID
1565
- * @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.
1566
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
1567
- */
1568
- }, {
1569
- key: "putDeviceFleetsWithHttpInfo",
1570
- value: function putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1571
- var postBody = putDeviceFleetsRequest;
1572
- // verify the required parameter 'projectOrProductUID' is set
1573
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1574
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceFleets");
1575
- }
1576
- // verify the required parameter 'deviceUID' is set
1577
- if (deviceUID === undefined || deviceUID === null) {
1578
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceFleets");
1579
- }
1580
- // verify the required parameter 'putDeviceFleetsRequest' is set
1581
- if (putDeviceFleetsRequest === undefined || putDeviceFleetsRequest === null) {
1582
- throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
1583
- }
1584
- var pathParams = {
1585
- 'projectOrProductUID': projectOrProductUID,
1586
- 'deviceUID': deviceUID
1587
- };
1588
- var queryParams = {};
1589
- var headerParams = {};
1590
- var formParams = {};
1591
- var authNames = ['personalAccessToken'];
1592
- var contentTypes = ['application/json'];
1593
- var accepts = ['application/json'];
1594
- var returnType = _GetDeviceFleets200Response["default"];
1595
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1596
- }
1597
-
1598
- /**
1599
- * Add Device to Fleets
1600
- * @param {String} projectOrProductUID
1601
- * @param {String} deviceUID
1602
- * @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.
1603
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
1604
- */
1605
- }, {
1606
- key: "putDeviceFleets",
1607
- value: function putDeviceFleets(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
1608
- return this.putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
1609
- return response_and_data.data;
1610
- });
1611
- }
1612
-
1613
- /**
1614
- * Put environment variables of a fleet
1624
+ * Update/cancel host or notecard firmware updates
1615
1625
  * @param {String} projectOrProductUID
1616
- * @param {String} fleetUID
1617
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1618
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1626
+ * @param {module:model/String} firmwareType
1627
+ * @param {module:model/String} action
1628
+ * @param {Object} opts Optional parameters
1629
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1630
+ * @param {Array.<String>} opts.tag Tag filter
1631
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1632
+ * @param {String} opts.fleetUID
1633
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1634
+ * @param {Array.<String>} opts.location Location filter
1635
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1636
+ * @param {Array.<String>} opts.productUID
1637
+ * @param {Array.<String>} opts.sku SKU filter
1638
+ * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1639
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1619
1640
  */
1620
1641
  }, {
1621
- key: "putFleetEnvironmentVariablesWithHttpInfo",
1622
- value: function putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
1623
- var postBody = environmentVariables;
1642
+ key: "performDfuActionWithHttpInfo",
1643
+ value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
1644
+ opts = opts || {};
1645
+ var postBody = opts['dfuActionRequest'];
1624
1646
  // verify the required parameter 'projectOrProductUID' is set
1625
1647
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1626
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putFleetEnvironmentVariables");
1648
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
1627
1649
  }
1628
- // verify the required parameter 'fleetUID' is set
1629
- if (fleetUID === undefined || fleetUID === null) {
1630
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling putFleetEnvironmentVariables");
1650
+ // verify the required parameter 'firmwareType' is set
1651
+ if (firmwareType === undefined || firmwareType === null) {
1652
+ throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling performDfuAction");
1631
1653
  }
1632
- // verify the required parameter 'environmentVariables' is set
1633
- if (environmentVariables === undefined || environmentVariables === null) {
1634
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
1654
+ // verify the required parameter 'action' is set
1655
+ if (action === undefined || action === null) {
1656
+ throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
1635
1657
  }
1636
1658
  var pathParams = {
1637
1659
  'projectOrProductUID': projectOrProductUID,
1638
- 'fleetUID': fleetUID
1660
+ 'firmwareType': firmwareType,
1661
+ 'action': action
1639
1662
  };
1640
- var queryParams = {};
1641
- var headerParams = {};
1642
- var formParams = {};
1643
- var authNames = ['personalAccessToken'];
1644
- var contentTypes = ['application/json'];
1645
- var accepts = ['application/json'];
1646
- var returnType = _EnvironmentVariables["default"];
1647
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1648
- }
1649
-
1650
- /**
1651
- * Put environment variables of a fleet
1652
- * @param {String} projectOrProductUID
1653
- * @param {String} fleetUID
1654
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
1655
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1656
- */
1657
- }, {
1658
- key: "putFleetEnvironmentVariables",
1659
- value: function putFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
1660
- return this.putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
1661
- return response_and_data.data;
1662
- });
1663
- }
1664
-
1665
- /**
1666
- * Put environment variables of a project
1667
- * @param {String} projectOrProductUID
1668
- * @param {Object} opts Optional parameters
1669
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1670
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1671
- */
1672
- }, {
1673
- key: "putProjectEnvironmentVariablesWithHttpInfo",
1674
- value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
1675
- opts = opts || {};
1676
- var postBody = opts['environmentVariables'];
1677
- // verify the required parameter 'projectOrProductUID' is set
1678
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
1679
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
1680
- }
1681
- var pathParams = {
1682
- 'projectOrProductUID': projectOrProductUID
1663
+ var queryParams = {
1664
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1665
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1666
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1667
+ 'fleetUID': opts['fleetUID'],
1668
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1669
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1670
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1671
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1672
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1683
1673
  };
1684
- var queryParams = {};
1685
1674
  var headerParams = {};
1686
1675
  var formParams = {};
1687
1676
  var authNames = ['personalAccessToken'];
1688
1677
  var contentTypes = ['application/json'];
1689
1678
  var accepts = ['application/json'];
1690
- var returnType = _EnvironmentVariables["default"];
1691
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1679
+ var returnType = null;
1680
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1692
1681
  }
1693
1682
 
1694
1683
  /**
1695
- * Put environment variables of a project
1684
+ * Update/cancel host or notecard firmware updates
1696
1685
  * @param {String} projectOrProductUID
1686
+ * @param {module:model/String} firmwareType
1687
+ * @param {module:model/String} action
1697
1688
  * @param {Object} opts Optional parameters
1698
- * @param {module:model/EnvironmentVariables} opts.environmentVariables
1699
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1689
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1690
+ * @param {Array.<String>} opts.tag Tag filter
1691
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1692
+ * @param {String} opts.fleetUID
1693
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1694
+ * @param {Array.<String>} opts.location Location filter
1695
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1696
+ * @param {Array.<String>} opts.productUID
1697
+ * @param {Array.<String>} opts.sku SKU filter
1698
+ * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1699
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1700
1700
  */
1701
1701
  }, {
1702
- key: "putProjectEnvironmentVariables",
1703
- value: function putProjectEnvironmentVariables(projectOrProductUID, opts) {
1704
- return this.putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1702
+ key: "performDfuAction",
1703
+ value: function performDfuAction(projectOrProductUID, firmwareType, action, opts) {
1704
+ return this.performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
1705
1705
  return response_and_data.data;
1706
1706
  });
1707
1707
  }
@@ -1713,16 +1713,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1713
1713
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1714
1714
  */
1715
1715
  }, {
1716
- key: "setGlobalTransformationWithHttpInfo",
1717
- value: function setGlobalTransformationWithHttpInfo(projectOrProductUID, body) {
1716
+ key: "setGlobalEventTransformationWithHttpInfo",
1717
+ value: function setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body) {
1718
1718
  var postBody = body;
1719
1719
  // verify the required parameter 'projectOrProductUID' is set
1720
1720
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1721
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalTransformation");
1721
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalEventTransformation");
1722
1722
  }
1723
1723
  // verify the required parameter 'body' is set
1724
1724
  if (body === undefined || body === null) {
1725
- throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
1725
+ throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
1726
1726
  }
1727
1727
  var pathParams = {
1728
1728
  'projectOrProductUID': projectOrProductUID
@@ -1744,9 +1744,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1744
1744
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1745
1745
  */
1746
1746
  }, {
1747
- key: "setGlobalTransformation",
1748
- value: function setGlobalTransformation(projectOrProductUID, body) {
1749
- return this.setGlobalTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
1747
+ key: "setGlobalEventTransformation",
1748
+ value: function setGlobalEventTransformation(projectOrProductUID, body) {
1749
+ return this.setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
1750
1750
  return response_and_data.data;
1751
1751
  });
1752
1752
  }