@blues-inc/notehub-js 6.1.0-beta.9 → 6.2.0-beta.1
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.
- package/README.md +288 -285
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +28 -28
- package/dist/api/DeviceApi.js +354 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +127 -74
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +432 -432
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CancelJobRun200Response.js +6 -6
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateJob201Response.js +8 -8
- package/dist/model/CreateMonitor.js +128 -127
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +6 -6
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +107 -106
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +13 -12
- package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetJobRuns200Response.js +12 -11
- package/dist/model/GetJobs200Response.js +12 -11
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +15 -14
- package/dist/model/GetSessionsUsage200Response.js +16 -15
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +59 -28
- package/dist/model/JobRun.js +57 -57
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +102 -101
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +23 -22
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/RunJob200Response.js +8 -8
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UpdateHostFirmwareRequest.js +17 -17
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +15 -14
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/api/ProjectApi.js
CHANGED
|
@@ -39,7 +39,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
39
39
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
40
40
|
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); } /**
|
|
41
41
|
* Notehub API
|
|
42
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
42
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
43
43
|
*
|
|
44
44
|
* The version of the OpenAPI document: 1.2.0
|
|
45
45
|
* Contact: engineering@blues.io
|
|
@@ -50,18 +50,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
* Project service.
|
|
54
|
+
* @module api/ProjectApi
|
|
55
|
+
* @version 6.2.0-beta.1
|
|
56
|
+
*/
|
|
57
57
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
58
58
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
* Constructs a new ProjectApi.
|
|
60
|
+
* @alias module:api/ProjectApi
|
|
61
|
+
* @class
|
|
62
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
63
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
64
|
+
*/
|
|
65
65
|
function ProjectApi(apiClient) {
|
|
66
66
|
_classCallCheck(this, ProjectApi);
|
|
67
67
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -69,9 +69,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Add Device to Fleets
|
|
72
|
-
* @param {String} projectOrProductUID
|
|
73
|
-
* @param {String} deviceUID
|
|
74
|
-
* @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.
|
|
72
|
+
* @param {String} projectOrProductUID
|
|
73
|
+
* @param {String} deviceUID
|
|
74
|
+
* @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.
|
|
75
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
76
76
|
*/
|
|
77
77
|
return _createClass(ProjectApi, [{
|
|
@@ -91,24 +91,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
91
91
|
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
92
92
|
}
|
|
93
93
|
var pathParams = {
|
|
94
|
-
projectOrProductUID: projectOrProductUID,
|
|
95
|
-
deviceUID: deviceUID
|
|
94
|
+
'projectOrProductUID': projectOrProductUID,
|
|
95
|
+
'deviceUID': deviceUID
|
|
96
96
|
};
|
|
97
97
|
var queryParams = {};
|
|
98
98
|
var headerParams = {};
|
|
99
99
|
var formParams = {};
|
|
100
|
-
var authNames = [
|
|
101
|
-
var contentTypes = [
|
|
102
|
-
var accepts = [
|
|
100
|
+
var authNames = ['personalAccessToken'];
|
|
101
|
+
var contentTypes = ['application/json'];
|
|
102
|
+
var accepts = ['application/json'];
|
|
103
103
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
104
|
-
return this.apiClient.callApi(
|
|
104
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Add Device to Fleets
|
|
109
|
-
* @param {String} projectOrProductUID
|
|
110
|
-
* @param {String} deviceUID
|
|
111
|
-
* @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.
|
|
109
|
+
* @param {String} projectOrProductUID
|
|
110
|
+
* @param {String} deviceUID
|
|
111
|
+
* @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.
|
|
112
112
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
113
113
|
*/
|
|
114
114
|
}, {
|
|
@@ -121,7 +121,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Clone a Project
|
|
124
|
-
* @param {String} projectOrProductUID
|
|
124
|
+
* @param {String} projectOrProductUID
|
|
125
125
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
126
126
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
127
127
|
*/
|
|
@@ -138,21 +138,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
138
138
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
139
139
|
}
|
|
140
140
|
var pathParams = {
|
|
141
|
-
projectOrProductUID: projectOrProductUID
|
|
141
|
+
'projectOrProductUID': projectOrProductUID
|
|
142
142
|
};
|
|
143
143
|
var queryParams = {};
|
|
144
144
|
var headerParams = {};
|
|
145
145
|
var formParams = {};
|
|
146
|
-
var authNames = [
|
|
147
|
-
var contentTypes = [
|
|
148
|
-
var accepts = [
|
|
146
|
+
var authNames = ['personalAccessToken'];
|
|
147
|
+
var contentTypes = ['application/json'];
|
|
148
|
+
var accepts = ['application/json'];
|
|
149
149
|
var returnType = _Project["default"];
|
|
150
|
-
return this.apiClient.callApi(
|
|
150
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Clone a Project
|
|
155
|
-
* @param {String} projectOrProductUID
|
|
155
|
+
* @param {String} projectOrProductUID
|
|
156
156
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
157
157
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
158
158
|
*/
|
|
@@ -166,7 +166,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Create Fleet
|
|
169
|
-
* @param {String} projectOrProductUID
|
|
169
|
+
* @param {String} projectOrProductUID
|
|
170
170
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
171
171
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
172
172
|
*/
|
|
@@ -183,21 +183,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
183
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
184
184
|
}
|
|
185
185
|
var pathParams = {
|
|
186
|
-
projectOrProductUID: projectOrProductUID
|
|
186
|
+
'projectOrProductUID': projectOrProductUID
|
|
187
187
|
};
|
|
188
188
|
var queryParams = {};
|
|
189
189
|
var headerParams = {};
|
|
190
190
|
var formParams = {};
|
|
191
|
-
var authNames = [
|
|
192
|
-
var contentTypes = [
|
|
193
|
-
var accepts = [
|
|
191
|
+
var authNames = ['personalAccessToken'];
|
|
192
|
+
var contentTypes = ['application/json'];
|
|
193
|
+
var accepts = ['application/json'];
|
|
194
194
|
var returnType = _Fleet["default"];
|
|
195
|
-
return this.apiClient.callApi(
|
|
195
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Create Fleet
|
|
200
|
-
* @param {String} projectOrProductUID
|
|
200
|
+
* @param {String} projectOrProductUID
|
|
201
201
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
202
202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
203
203
|
*/
|
|
@@ -211,7 +211,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* Create Product within a Project
|
|
214
|
-
* @param {String} projectOrProductUID
|
|
214
|
+
* @param {String} projectOrProductUID
|
|
215
215
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
216
216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
217
217
|
*/
|
|
@@ -228,21 +228,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
228
228
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
229
229
|
}
|
|
230
230
|
var pathParams = {
|
|
231
|
-
projectOrProductUID: projectOrProductUID
|
|
231
|
+
'projectOrProductUID': projectOrProductUID
|
|
232
232
|
};
|
|
233
233
|
var queryParams = {};
|
|
234
234
|
var headerParams = {};
|
|
235
235
|
var formParams = {};
|
|
236
|
-
var authNames = [
|
|
237
|
-
var contentTypes = [
|
|
238
|
-
var accepts = [
|
|
236
|
+
var authNames = ['personalAccessToken'];
|
|
237
|
+
var contentTypes = ['application/json'];
|
|
238
|
+
var accepts = ['application/json'];
|
|
239
239
|
var returnType = _Product["default"];
|
|
240
|
-
return this.apiClient.callApi(
|
|
240
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Create Product within a Project
|
|
245
|
-
* @param {String} projectOrProductUID
|
|
245
|
+
* @param {String} projectOrProductUID
|
|
246
246
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
247
247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
248
248
|
*/
|
|
@@ -271,11 +271,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
271
271
|
var queryParams = {};
|
|
272
272
|
var headerParams = {};
|
|
273
273
|
var formParams = {};
|
|
274
|
-
var authNames = [
|
|
275
|
-
var contentTypes = [
|
|
276
|
-
var accepts = [
|
|
274
|
+
var authNames = ['personalAccessToken'];
|
|
275
|
+
var contentTypes = ['application/json'];
|
|
276
|
+
var accepts = ['application/json'];
|
|
277
277
|
var returnType = _Project["default"];
|
|
278
|
-
return this.apiClient.callApi(
|
|
278
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
/**
|
|
@@ -293,9 +293,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
295
|
* Remove Device from Fleets
|
|
296
|
-
* @param {String} projectOrProductUID
|
|
297
|
-
* @param {String} deviceUID
|
|
298
|
-
* @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.
|
|
296
|
+
* @param {String} projectOrProductUID
|
|
297
|
+
* @param {String} deviceUID
|
|
298
|
+
* @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.
|
|
299
299
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
300
300
|
*/
|
|
301
301
|
}, {
|
|
@@ -315,24 +315,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
315
315
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
316
316
|
}
|
|
317
317
|
var pathParams = {
|
|
318
|
-
projectOrProductUID: projectOrProductUID,
|
|
319
|
-
deviceUID: deviceUID
|
|
318
|
+
'projectOrProductUID': projectOrProductUID,
|
|
319
|
+
'deviceUID': deviceUID
|
|
320
320
|
};
|
|
321
321
|
var queryParams = {};
|
|
322
322
|
var headerParams = {};
|
|
323
323
|
var formParams = {};
|
|
324
|
-
var authNames = [
|
|
325
|
-
var contentTypes = [
|
|
326
|
-
var accepts = [
|
|
324
|
+
var authNames = ['personalAccessToken'];
|
|
325
|
+
var contentTypes = ['application/json'];
|
|
326
|
+
var accepts = ['application/json'];
|
|
327
327
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
328
|
-
return this.apiClient.callApi(
|
|
328
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
332
|
* Remove Device from Fleets
|
|
333
|
-
* @param {String} projectOrProductUID
|
|
334
|
-
* @param {String} deviceUID
|
|
335
|
-
* @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.
|
|
333
|
+
* @param {String} projectOrProductUID
|
|
334
|
+
* @param {String} deviceUID
|
|
335
|
+
* @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.
|
|
336
336
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
337
337
|
*/
|
|
338
338
|
}, {
|
|
@@ -344,10 +344,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
348
|
-
* @param {String} projectOrProductUID
|
|
349
|
-
* @param {module:model/String} firmwareType
|
|
350
|
-
* @param {String} filename
|
|
347
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
348
|
+
* @param {String} projectOrProductUID
|
|
349
|
+
* @param {module:model/String} firmwareType
|
|
350
|
+
* @param {String} filename
|
|
351
351
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
352
352
|
*/
|
|
353
353
|
}, {
|
|
@@ -367,25 +367,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
367
367
|
throw new _Error["default"]("Missing the required parameter 'filename' when calling deleteFirmware");
|
|
368
368
|
}
|
|
369
369
|
var pathParams = {
|
|
370
|
-
projectOrProductUID: projectOrProductUID,
|
|
371
|
-
firmwareType: firmwareType,
|
|
372
|
-
filename: filename
|
|
370
|
+
'projectOrProductUID': projectOrProductUID,
|
|
371
|
+
'firmwareType': firmwareType,
|
|
372
|
+
'filename': filename
|
|
373
373
|
};
|
|
374
374
|
var queryParams = {};
|
|
375
375
|
var headerParams = {};
|
|
376
376
|
var formParams = {};
|
|
377
|
-
var authNames = [
|
|
377
|
+
var authNames = ['personalAccessToken'];
|
|
378
378
|
var contentTypes = [];
|
|
379
|
-
var accepts = [
|
|
379
|
+
var accepts = ['application/json'];
|
|
380
380
|
var returnType = null;
|
|
381
|
-
return this.apiClient.callApi(
|
|
381
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
386
|
-
* @param {String} projectOrProductUID
|
|
387
|
-
* @param {module:model/String} firmwareType
|
|
388
|
-
* @param {String} filename
|
|
385
|
+
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
386
|
+
* @param {String} projectOrProductUID
|
|
387
|
+
* @param {module:model/String} firmwareType
|
|
388
|
+
* @param {String} filename
|
|
389
389
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
390
390
|
*/
|
|
391
391
|
}, {
|
|
@@ -398,8 +398,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Delete Fleet
|
|
401
|
-
* @param {String} projectOrProductUID
|
|
402
|
-
* @param {String} fleetUID
|
|
401
|
+
* @param {String} projectOrProductUID
|
|
402
|
+
* @param {String} fleetUID
|
|
403
403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
404
404
|
*/
|
|
405
405
|
}, {
|
|
@@ -415,23 +415,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
415
415
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
416
416
|
}
|
|
417
417
|
var pathParams = {
|
|
418
|
-
projectOrProductUID: projectOrProductUID,
|
|
419
|
-
fleetUID: fleetUID
|
|
418
|
+
'projectOrProductUID': projectOrProductUID,
|
|
419
|
+
'fleetUID': fleetUID
|
|
420
420
|
};
|
|
421
421
|
var queryParams = {};
|
|
422
422
|
var headerParams = {};
|
|
423
423
|
var formParams = {};
|
|
424
|
-
var authNames = [
|
|
424
|
+
var authNames = ['personalAccessToken'];
|
|
425
425
|
var contentTypes = [];
|
|
426
|
-
var accepts = [
|
|
426
|
+
var accepts = ['application/json'];
|
|
427
427
|
var returnType = null;
|
|
428
|
-
return this.apiClient.callApi(
|
|
428
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
432
|
* Delete Fleet
|
|
433
|
-
* @param {String} projectOrProductUID
|
|
434
|
-
* @param {String} fleetUID
|
|
433
|
+
* @param {String} projectOrProductUID
|
|
434
|
+
* @param {String} fleetUID
|
|
435
435
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
436
436
|
*/
|
|
437
437
|
}, {
|
|
@@ -444,8 +444,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
444
444
|
|
|
445
445
|
/**
|
|
446
446
|
* Delete environment variables of a fleet
|
|
447
|
-
* @param {String} projectOrProductUID
|
|
448
|
-
* @param {String} fleetUID
|
|
447
|
+
* @param {String} projectOrProductUID
|
|
448
|
+
* @param {String} fleetUID
|
|
449
449
|
* @param {String} key The environment variable key to delete.
|
|
450
450
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
451
451
|
*/
|
|
@@ -466,24 +466,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
466
466
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
467
467
|
}
|
|
468
468
|
var pathParams = {
|
|
469
|
-
projectOrProductUID: projectOrProductUID,
|
|
470
|
-
fleetUID: fleetUID,
|
|
471
|
-
key: key
|
|
469
|
+
'projectOrProductUID': projectOrProductUID,
|
|
470
|
+
'fleetUID': fleetUID,
|
|
471
|
+
'key': key
|
|
472
472
|
};
|
|
473
473
|
var queryParams = {};
|
|
474
474
|
var headerParams = {};
|
|
475
475
|
var formParams = {};
|
|
476
|
-
var authNames = [
|
|
476
|
+
var authNames = ['personalAccessToken'];
|
|
477
477
|
var contentTypes = [];
|
|
478
|
-
var accepts = [
|
|
478
|
+
var accepts = ['application/json'];
|
|
479
479
|
var returnType = _EnvironmentVariables["default"];
|
|
480
|
-
return this.apiClient.callApi(
|
|
480
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Delete environment variables of a fleet
|
|
485
|
-
* @param {String} projectOrProductUID
|
|
486
|
-
* @param {String} fleetUID
|
|
485
|
+
* @param {String} projectOrProductUID
|
|
486
|
+
* @param {String} fleetUID
|
|
487
487
|
* @param {String} key The environment variable key to delete.
|
|
488
488
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
489
489
|
*/
|
|
@@ -497,8 +497,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Delete a product
|
|
500
|
-
* @param {String} projectOrProductUID
|
|
501
|
-
* @param {String} productUID
|
|
500
|
+
* @param {String} projectOrProductUID
|
|
501
|
+
* @param {String} productUID
|
|
502
502
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
503
503
|
*/
|
|
504
504
|
}, {
|
|
@@ -514,23 +514,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
514
514
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
515
515
|
}
|
|
516
516
|
var pathParams = {
|
|
517
|
-
projectOrProductUID: projectOrProductUID,
|
|
518
|
-
productUID: productUID
|
|
517
|
+
'projectOrProductUID': projectOrProductUID,
|
|
518
|
+
'productUID': productUID
|
|
519
519
|
};
|
|
520
520
|
var queryParams = {};
|
|
521
521
|
var headerParams = {};
|
|
522
522
|
var formParams = {};
|
|
523
|
-
var authNames = [
|
|
523
|
+
var authNames = ['personalAccessToken'];
|
|
524
524
|
var contentTypes = [];
|
|
525
|
-
var accepts = [
|
|
525
|
+
var accepts = ['application/json'];
|
|
526
526
|
var returnType = null;
|
|
527
|
-
return this.apiClient.callApi(
|
|
527
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products/{productUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
531
|
* Delete a product
|
|
532
|
-
* @param {String} projectOrProductUID
|
|
533
|
-
* @param {String} productUID
|
|
532
|
+
* @param {String} projectOrProductUID
|
|
533
|
+
* @param {String} productUID
|
|
534
534
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
535
535
|
*/
|
|
536
536
|
}, {
|
|
@@ -543,7 +543,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
543
543
|
|
|
544
544
|
/**
|
|
545
545
|
* Delete a Project by ProjectUID
|
|
546
|
-
* @param {String} projectOrProductUID
|
|
546
|
+
* @param {String} projectOrProductUID
|
|
547
547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
548
548
|
*/
|
|
549
549
|
}, {
|
|
@@ -555,21 +555,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
555
555
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
556
556
|
}
|
|
557
557
|
var pathParams = {
|
|
558
|
-
projectOrProductUID: projectOrProductUID
|
|
558
|
+
'projectOrProductUID': projectOrProductUID
|
|
559
559
|
};
|
|
560
560
|
var queryParams = {};
|
|
561
561
|
var headerParams = {};
|
|
562
562
|
var formParams = {};
|
|
563
|
-
var authNames = [
|
|
563
|
+
var authNames = ['personalAccessToken'];
|
|
564
564
|
var contentTypes = [];
|
|
565
|
-
var accepts = [
|
|
565
|
+
var accepts = ['application/json'];
|
|
566
566
|
var returnType = null;
|
|
567
|
-
return this.apiClient.callApi(
|
|
567
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Delete a Project by ProjectUID
|
|
572
|
-
* @param {String} projectOrProductUID
|
|
572
|
+
* @param {String} projectOrProductUID
|
|
573
573
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
574
574
|
*/
|
|
575
575
|
}, {
|
|
@@ -582,7 +582,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* Delete an environment variable of a project by key
|
|
585
|
-
* @param {String} projectOrProductUID
|
|
585
|
+
* @param {String} projectOrProductUID
|
|
586
586
|
* @param {String} key The environment variable key to delete.
|
|
587
587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
588
588
|
*/
|
|
@@ -599,22 +599,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
599
599
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
600
600
|
}
|
|
601
601
|
var pathParams = {
|
|
602
|
-
projectOrProductUID: projectOrProductUID,
|
|
603
|
-
key: key
|
|
602
|
+
'projectOrProductUID': projectOrProductUID,
|
|
603
|
+
'key': key
|
|
604
604
|
};
|
|
605
605
|
var queryParams = {};
|
|
606
606
|
var headerParams = {};
|
|
607
607
|
var formParams = {};
|
|
608
|
-
var authNames = [
|
|
608
|
+
var authNames = ['personalAccessToken'];
|
|
609
609
|
var contentTypes = [];
|
|
610
|
-
var accepts = [
|
|
610
|
+
var accepts = ['application/json'];
|
|
611
611
|
var returnType = _EnvironmentVariables["default"];
|
|
612
|
-
return this.apiClient.callApi(
|
|
612
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
/**
|
|
616
616
|
* Delete an environment variable of a project by key
|
|
617
|
-
* @param {String} projectOrProductUID
|
|
617
|
+
* @param {String} projectOrProductUID
|
|
618
618
|
* @param {String} key The environment variable key to delete.
|
|
619
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
620
620
|
*/
|
|
@@ -628,7 +628,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
630
|
* Disable the project-level event JSONata transformation
|
|
631
|
-
* @param {String} projectOrProductUID
|
|
631
|
+
* @param {String} projectOrProductUID
|
|
632
632
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
633
633
|
*/
|
|
634
634
|
}, {
|
|
@@ -640,21 +640,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
640
640
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
641
641
|
}
|
|
642
642
|
var pathParams = {
|
|
643
|
-
projectOrProductUID: projectOrProductUID
|
|
643
|
+
'projectOrProductUID': projectOrProductUID
|
|
644
644
|
};
|
|
645
645
|
var queryParams = {};
|
|
646
646
|
var headerParams = {};
|
|
647
647
|
var formParams = {};
|
|
648
|
-
var authNames = [
|
|
648
|
+
var authNames = ['personalAccessToken'];
|
|
649
649
|
var contentTypes = [];
|
|
650
|
-
var accepts = [
|
|
650
|
+
var accepts = ['application/json'];
|
|
651
651
|
var returnType = null;
|
|
652
|
-
return this.apiClient.callApi(
|
|
652
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
656
|
* Disable the project-level event JSONata transformation
|
|
657
|
-
* @param {String} projectOrProductUID
|
|
657
|
+
* @param {String} projectOrProductUID
|
|
658
658
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
659
659
|
*/
|
|
660
660
|
}, {
|
|
@@ -667,9 +667,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
667
667
|
|
|
668
668
|
/**
|
|
669
669
|
* Download firmware binary
|
|
670
|
-
* @param {String} projectOrProductUID
|
|
671
|
-
* @param {module:model/String} firmwareType
|
|
672
|
-
* @param {String} filename
|
|
670
|
+
* @param {String} projectOrProductUID
|
|
671
|
+
* @param {module:model/String} firmwareType
|
|
672
|
+
* @param {String} filename
|
|
673
673
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
674
674
|
*/
|
|
675
675
|
}, {
|
|
@@ -689,25 +689,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
689
689
|
throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
|
|
690
690
|
}
|
|
691
691
|
var pathParams = {
|
|
692
|
-
projectOrProductUID: projectOrProductUID,
|
|
693
|
-
firmwareType: firmwareType,
|
|
694
|
-
filename: filename
|
|
692
|
+
'projectOrProductUID': projectOrProductUID,
|
|
693
|
+
'firmwareType': firmwareType,
|
|
694
|
+
'filename': filename
|
|
695
695
|
};
|
|
696
696
|
var queryParams = {};
|
|
697
697
|
var headerParams = {};
|
|
698
698
|
var formParams = {};
|
|
699
|
-
var authNames = [
|
|
699
|
+
var authNames = ['personalAccessToken'];
|
|
700
700
|
var contentTypes = [];
|
|
701
|
-
var accepts = [
|
|
701
|
+
var accepts = ['application/octet-stream', 'application/json'];
|
|
702
702
|
var returnType = File;
|
|
703
|
-
return this.apiClient.callApi(
|
|
703
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
707
|
* Download firmware binary
|
|
708
|
-
* @param {String} projectOrProductUID
|
|
709
|
-
* @param {module:model/String} firmwareType
|
|
710
|
-
* @param {String} filename
|
|
708
|
+
* @param {String} projectOrProductUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
710
|
+
* @param {String} filename
|
|
711
711
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
712
712
|
*/
|
|
713
713
|
}, {
|
|
@@ -720,7 +720,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* Enable the project-level event JSONata transformation
|
|
723
|
-
* @param {String} projectOrProductUID
|
|
723
|
+
* @param {String} projectOrProductUID
|
|
724
724
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
725
725
|
*/
|
|
726
726
|
}, {
|
|
@@ -732,21 +732,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
732
732
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
733
733
|
}
|
|
734
734
|
var pathParams = {
|
|
735
|
-
projectOrProductUID: projectOrProductUID
|
|
735
|
+
'projectOrProductUID': projectOrProductUID
|
|
736
736
|
};
|
|
737
737
|
var queryParams = {};
|
|
738
738
|
var headerParams = {};
|
|
739
739
|
var formParams = {};
|
|
740
|
-
var authNames = [
|
|
740
|
+
var authNames = ['personalAccessToken'];
|
|
741
741
|
var contentTypes = [];
|
|
742
|
-
var accepts = [
|
|
742
|
+
var accepts = ['application/json'];
|
|
743
743
|
var returnType = null;
|
|
744
|
-
return this.apiClient.callApi(
|
|
744
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
/**
|
|
748
748
|
* Enable the project-level event JSONata transformation
|
|
749
|
-
* @param {String} projectOrProductUID
|
|
749
|
+
* @param {String} projectOrProductUID
|
|
750
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
751
751
|
*/
|
|
752
752
|
}, {
|
|
@@ -759,8 +759,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
759
759
|
|
|
760
760
|
/**
|
|
761
761
|
* Get AWS role configuration for role-based authentication
|
|
762
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
763
|
-
* @param {String} projectOrProductUID
|
|
762
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
763
|
+
* @param {String} projectOrProductUID
|
|
764
764
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
765
765
|
*/
|
|
766
766
|
}, {
|
|
@@ -772,22 +772,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
772
772
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAWSRoleConfig");
|
|
773
773
|
}
|
|
774
774
|
var pathParams = {
|
|
775
|
-
projectOrProductUID: projectOrProductUID
|
|
775
|
+
'projectOrProductUID': projectOrProductUID
|
|
776
776
|
};
|
|
777
777
|
var queryParams = {};
|
|
778
778
|
var headerParams = {};
|
|
779
779
|
var formParams = {};
|
|
780
|
-
var authNames = [
|
|
780
|
+
var authNames = ['personalAccessToken'];
|
|
781
781
|
var contentTypes = [];
|
|
782
|
-
var accepts = [
|
|
782
|
+
var accepts = ['application/json'];
|
|
783
783
|
var returnType = _AWSRoleConfig["default"];
|
|
784
|
-
return this.apiClient.callApi(
|
|
784
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/aws-role-config', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
/**
|
|
788
788
|
* Get AWS role configuration for role-based authentication
|
|
789
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
790
|
-
* @param {String} projectOrProductUID
|
|
789
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
790
|
+
* @param {String} projectOrProductUID
|
|
791
791
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
792
792
|
*/
|
|
793
793
|
}, {
|
|
@@ -800,9 +800,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
800
800
|
|
|
801
801
|
/**
|
|
802
802
|
* Get device DFU history for host or Notecard firmware
|
|
803
|
-
* @param {String} projectOrProductUID
|
|
804
|
-
* @param {String} deviceUID
|
|
805
|
-
* @param {module:model/String} firmwareType
|
|
803
|
+
* @param {String} projectOrProductUID
|
|
804
|
+
* @param {String} deviceUID
|
|
805
|
+
* @param {module:model/String} firmwareType
|
|
806
806
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
807
807
|
*/
|
|
808
808
|
}, {
|
|
@@ -822,25 +822,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
822
822
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
823
823
|
}
|
|
824
824
|
var pathParams = {
|
|
825
|
-
projectOrProductUID: projectOrProductUID,
|
|
826
|
-
deviceUID: deviceUID,
|
|
827
|
-
firmwareType: firmwareType
|
|
825
|
+
'projectOrProductUID': projectOrProductUID,
|
|
826
|
+
'deviceUID': deviceUID,
|
|
827
|
+
'firmwareType': firmwareType
|
|
828
828
|
};
|
|
829
829
|
var queryParams = {};
|
|
830
830
|
var headerParams = {};
|
|
831
831
|
var formParams = {};
|
|
832
|
-
var authNames = [
|
|
832
|
+
var authNames = ['personalAccessToken'];
|
|
833
833
|
var contentTypes = [];
|
|
834
|
-
var accepts = [
|
|
834
|
+
var accepts = ['application/json'];
|
|
835
835
|
var returnType = _DeviceDfuHistory["default"];
|
|
836
|
-
return this.apiClient.callApi(
|
|
836
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
/**
|
|
840
840
|
* Get device DFU history for host or Notecard firmware
|
|
841
|
-
* @param {String} projectOrProductUID
|
|
842
|
-
* @param {String} deviceUID
|
|
843
|
-
* @param {module:model/String} firmwareType
|
|
841
|
+
* @param {String} projectOrProductUID
|
|
842
|
+
* @param {String} deviceUID
|
|
843
|
+
* @param {module:model/String} firmwareType
|
|
844
844
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
845
845
|
*/
|
|
846
846
|
}, {
|
|
@@ -853,9 +853,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
853
853
|
|
|
854
854
|
/**
|
|
855
855
|
* Get device DFU history for host or Notecard firmware
|
|
856
|
-
* @param {String} projectOrProductUID
|
|
857
|
-
* @param {String} deviceUID
|
|
858
|
-
* @param {module:model/String} firmwareType
|
|
856
|
+
* @param {String} projectOrProductUID
|
|
857
|
+
* @param {String} deviceUID
|
|
858
|
+
* @param {module:model/String} firmwareType
|
|
859
859
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
860
860
|
*/
|
|
861
861
|
}, {
|
|
@@ -875,25 +875,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
875
875
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
876
876
|
}
|
|
877
877
|
var pathParams = {
|
|
878
|
-
projectOrProductUID: projectOrProductUID,
|
|
879
|
-
deviceUID: deviceUID,
|
|
880
|
-
firmwareType: firmwareType
|
|
878
|
+
'projectOrProductUID': projectOrProductUID,
|
|
879
|
+
'deviceUID': deviceUID,
|
|
880
|
+
'firmwareType': firmwareType
|
|
881
881
|
};
|
|
882
882
|
var queryParams = {};
|
|
883
883
|
var headerParams = {};
|
|
884
884
|
var formParams = {};
|
|
885
|
-
var authNames = [
|
|
885
|
+
var authNames = ['personalAccessToken'];
|
|
886
886
|
var contentTypes = [];
|
|
887
|
-
var accepts = [
|
|
887
|
+
var accepts = ['application/json'];
|
|
888
888
|
var returnType = _DeviceDfuStatus["default"];
|
|
889
|
-
return this.apiClient.callApi(
|
|
889
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
890
890
|
}
|
|
891
891
|
|
|
892
892
|
/**
|
|
893
893
|
* Get device DFU history for host or Notecard firmware
|
|
894
|
-
* @param {String} projectOrProductUID
|
|
895
|
-
* @param {String} deviceUID
|
|
896
|
-
* @param {module:model/String} firmwareType
|
|
894
|
+
* @param {String} projectOrProductUID
|
|
895
|
+
* @param {String} deviceUID
|
|
896
|
+
* @param {module:model/String} firmwareType
|
|
897
897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
898
898
|
*/
|
|
899
899
|
}, {
|
|
@@ -906,8 +906,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
906
906
|
|
|
907
907
|
/**
|
|
908
908
|
* Get Device Fleets
|
|
909
|
-
* @param {String} projectOrProductUID
|
|
910
|
-
* @param {String} deviceUID
|
|
909
|
+
* @param {String} projectOrProductUID
|
|
910
|
+
* @param {String} deviceUID
|
|
911
911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
912
912
|
*/
|
|
913
913
|
}, {
|
|
@@ -923,23 +923,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
923
923
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
924
924
|
}
|
|
925
925
|
var pathParams = {
|
|
926
|
-
projectOrProductUID: projectOrProductUID,
|
|
927
|
-
deviceUID: deviceUID
|
|
926
|
+
'projectOrProductUID': projectOrProductUID,
|
|
927
|
+
'deviceUID': deviceUID
|
|
928
928
|
};
|
|
929
929
|
var queryParams = {};
|
|
930
930
|
var headerParams = {};
|
|
931
931
|
var formParams = {};
|
|
932
|
-
var authNames = [
|
|
932
|
+
var authNames = ['personalAccessToken'];
|
|
933
933
|
var contentTypes = [];
|
|
934
|
-
var accepts = [
|
|
934
|
+
var accepts = ['application/json'];
|
|
935
935
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
936
|
-
return this.apiClient.callApi(
|
|
936
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
/**
|
|
940
940
|
* Get Device Fleets
|
|
941
|
-
* @param {String} projectOrProductUID
|
|
942
|
-
* @param {String} deviceUID
|
|
941
|
+
* @param {String} projectOrProductUID
|
|
942
|
+
* @param {String} deviceUID
|
|
943
943
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
944
944
|
*/
|
|
945
945
|
}, {
|
|
@@ -952,8 +952,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
952
952
|
|
|
953
953
|
/**
|
|
954
954
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
955
|
-
* @param {String} projectOrProductUID
|
|
956
|
-
* @param {module:model/String} firmwareType
|
|
955
|
+
* @param {String} projectOrProductUID
|
|
956
|
+
* @param {module:model/String} firmwareType
|
|
957
957
|
* @param {Object} opts Optional parameters
|
|
958
958
|
* @param {Number} opts.pageSize (default to 50)
|
|
959
959
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -962,11 +962,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
962
962
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
963
963
|
* @param {Array.<String>} opts.tag Tag filter
|
|
964
964
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
965
|
-
* @param {String} opts.fleetUID
|
|
965
|
+
* @param {String} opts.fleetUID
|
|
966
966
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
967
967
|
* @param {Array.<String>} opts.location Location filter
|
|
968
968
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
969
|
-
* @param {Array.<String>} opts.productUID
|
|
969
|
+
* @param {Array.<String>} opts.productUID
|
|
970
970
|
* @param {Array.<String>} opts.sku SKU filter
|
|
971
971
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
972
972
|
*/
|
|
@@ -984,37 +984,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
984
984
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
985
985
|
}
|
|
986
986
|
var pathParams = {
|
|
987
|
-
projectOrProductUID: projectOrProductUID,
|
|
988
|
-
firmwareType: firmwareType
|
|
987
|
+
'projectOrProductUID': projectOrProductUID,
|
|
988
|
+
'firmwareType': firmwareType
|
|
989
989
|
};
|
|
990
990
|
var queryParams = {
|
|
991
|
-
pageSize: opts[
|
|
992
|
-
pageNum: opts[
|
|
993
|
-
sortBy: opts[
|
|
994
|
-
sortOrder: opts[
|
|
995
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
996
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
997
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
998
|
-
fleetUID: opts[
|
|
999
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1000
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1001
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1002
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1003
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
991
|
+
'pageSize': opts['pageSize'],
|
|
992
|
+
'pageNum': opts['pageNum'],
|
|
993
|
+
'sortBy': opts['sortBy'],
|
|
994
|
+
'sortOrder': opts['sortOrder'],
|
|
995
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
996
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
997
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
998
|
+
'fleetUID': opts['fleetUID'],
|
|
999
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1000
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1001
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1002
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1003
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1004
1004
|
};
|
|
1005
1005
|
var headerParams = {};
|
|
1006
1006
|
var formParams = {};
|
|
1007
|
-
var authNames = [
|
|
1007
|
+
var authNames = ['personalAccessToken'];
|
|
1008
1008
|
var contentTypes = [];
|
|
1009
|
-
var accepts = [
|
|
1009
|
+
var accepts = ['application/json'];
|
|
1010
1010
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
1011
|
-
return this.apiClient.callApi(
|
|
1011
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1016
|
-
* @param {String} projectOrProductUID
|
|
1017
|
-
* @param {module:model/String} firmwareType
|
|
1016
|
+
* @param {String} projectOrProductUID
|
|
1017
|
+
* @param {module:model/String} firmwareType
|
|
1018
1018
|
* @param {Object} opts Optional parameters
|
|
1019
1019
|
* @param {Number} opts.pageSize (default to 50)
|
|
1020
1020
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1023,11 +1023,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1023
1023
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1024
1024
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1025
1025
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1026
|
-
* @param {String} opts.fleetUID
|
|
1026
|
+
* @param {String} opts.fleetUID
|
|
1027
1027
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1028
1028
|
* @param {Array.<String>} opts.location Location filter
|
|
1029
1029
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1030
|
-
* @param {Array.<String>} opts.productUID
|
|
1030
|
+
* @param {Array.<String>} opts.productUID
|
|
1031
1031
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1032
1032
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
1033
1033
|
*/
|
|
@@ -1041,8 +1041,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1041
1041
|
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1044
|
-
* @param {String} projectOrProductUID
|
|
1045
|
-
* @param {module:model/String} firmwareType
|
|
1044
|
+
* @param {String} projectOrProductUID
|
|
1045
|
+
* @param {module:model/String} firmwareType
|
|
1046
1046
|
* @param {Object} opts Optional parameters
|
|
1047
1047
|
* @param {Number} opts.pageSize (default to 50)
|
|
1048
1048
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1051,11 +1051,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1051
1051
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1052
1052
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1053
1053
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1054
|
-
* @param {String} opts.fleetUID
|
|
1054
|
+
* @param {String} opts.fleetUID
|
|
1055
1055
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1056
1056
|
* @param {Array.<String>} opts.location Location filter
|
|
1057
1057
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1058
|
-
* @param {Array.<String>} opts.productUID
|
|
1058
|
+
* @param {Array.<String>} opts.productUID
|
|
1059
1059
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1060
1060
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1061
1061
|
*/
|
|
@@ -1073,37 +1073,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1073
1073
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
1074
1074
|
}
|
|
1075
1075
|
var pathParams = {
|
|
1076
|
-
projectOrProductUID: projectOrProductUID,
|
|
1077
|
-
firmwareType: firmwareType
|
|
1076
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1077
|
+
'firmwareType': firmwareType
|
|
1078
1078
|
};
|
|
1079
1079
|
var queryParams = {
|
|
1080
|
-
pageSize: opts[
|
|
1081
|
-
pageNum: opts[
|
|
1082
|
-
sortBy: opts[
|
|
1083
|
-
sortOrder: opts[
|
|
1084
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1085
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1086
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1087
|
-
fleetUID: opts[
|
|
1088
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1089
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1090
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1091
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1092
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1080
|
+
'pageSize': opts['pageSize'],
|
|
1081
|
+
'pageNum': opts['pageNum'],
|
|
1082
|
+
'sortBy': opts['sortBy'],
|
|
1083
|
+
'sortOrder': opts['sortOrder'],
|
|
1084
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1085
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1086
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1087
|
+
'fleetUID': opts['fleetUID'],
|
|
1088
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1089
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1090
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1091
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1092
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1093
1093
|
};
|
|
1094
1094
|
var headerParams = {};
|
|
1095
1095
|
var formParams = {};
|
|
1096
|
-
var authNames = [
|
|
1096
|
+
var authNames = ['personalAccessToken'];
|
|
1097
1097
|
var contentTypes = [];
|
|
1098
|
-
var accepts = [
|
|
1098
|
+
var accepts = ['application/json'];
|
|
1099
1099
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
1100
|
-
return this.apiClient.callApi(
|
|
1100
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1105
|
-
* @param {String} projectOrProductUID
|
|
1106
|
-
* @param {module:model/String} firmwareType
|
|
1105
|
+
* @param {String} projectOrProductUID
|
|
1106
|
+
* @param {module:model/String} firmwareType
|
|
1107
1107
|
* @param {Object} opts Optional parameters
|
|
1108
1108
|
* @param {Number} opts.pageSize (default to 50)
|
|
1109
1109
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1112,11 +1112,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1112
1112
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1113
1113
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1114
1114
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1115
|
-
* @param {String} opts.fleetUID
|
|
1115
|
+
* @param {String} opts.fleetUID
|
|
1116
1116
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1117
1117
|
* @param {Array.<String>} opts.location Location filter
|
|
1118
1118
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1119
|
-
* @param {Array.<String>} opts.productUID
|
|
1119
|
+
* @param {Array.<String>} opts.productUID
|
|
1120
1120
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1121
1121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1122
1122
|
*/
|
|
@@ -1130,15 +1130,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1130
1130
|
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Get Available Firmware Information
|
|
1133
|
-
* @param {String} projectOrProductUID
|
|
1133
|
+
* @param {String} projectOrProductUID
|
|
1134
1134
|
* @param {Object} opts Optional parameters
|
|
1135
|
-
* @param {String} opts.product
|
|
1136
|
-
* @param {String} opts.firmwareType
|
|
1137
|
-
* @param {String} opts.version
|
|
1138
|
-
* @param {String} opts.target
|
|
1139
|
-
* @param {String} opts.filename
|
|
1140
|
-
* @param {String} opts.md5
|
|
1141
|
-
* @param {Boolean} opts.unpublished
|
|
1135
|
+
* @param {String} opts.product
|
|
1136
|
+
* @param {String} opts.firmwareType
|
|
1137
|
+
* @param {String} opts.version
|
|
1138
|
+
* @param {String} opts.target
|
|
1139
|
+
* @param {String} opts.filename
|
|
1140
|
+
* @param {String} opts.md5
|
|
1141
|
+
* @param {Boolean} opts.unpublished
|
|
1142
1142
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1143
1143
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1144
1144
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1153,39 +1153,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1153
1153
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1154
1154
|
}
|
|
1155
1155
|
var pathParams = {
|
|
1156
|
-
projectOrProductUID: projectOrProductUID
|
|
1156
|
+
'projectOrProductUID': projectOrProductUID
|
|
1157
1157
|
};
|
|
1158
1158
|
var queryParams = {
|
|
1159
|
-
product: opts[
|
|
1160
|
-
firmwareType: opts[
|
|
1161
|
-
version: opts[
|
|
1162
|
-
target: opts[
|
|
1163
|
-
filename: opts[
|
|
1164
|
-
md5: opts[
|
|
1165
|
-
unpublished: opts[
|
|
1166
|
-
sortBy: opts[
|
|
1167
|
-
sortOrder: opts[
|
|
1159
|
+
'product': opts['product'],
|
|
1160
|
+
'firmwareType': opts['firmwareType'],
|
|
1161
|
+
'version': opts['version'],
|
|
1162
|
+
'target': opts['target'],
|
|
1163
|
+
'filename': opts['filename'],
|
|
1164
|
+
'md5': opts['md5'],
|
|
1165
|
+
'unpublished': opts['unpublished'],
|
|
1166
|
+
'sortBy': opts['sortBy'],
|
|
1167
|
+
'sortOrder': opts['sortOrder']
|
|
1168
1168
|
};
|
|
1169
1169
|
var headerParams = {};
|
|
1170
1170
|
var formParams = {};
|
|
1171
|
-
var authNames = [
|
|
1171
|
+
var authNames = ['personalAccessToken'];
|
|
1172
1172
|
var contentTypes = [];
|
|
1173
|
-
var accepts = [
|
|
1173
|
+
var accepts = ['application/json'];
|
|
1174
1174
|
var returnType = [_FirmwareInfo["default"]];
|
|
1175
|
-
return this.apiClient.callApi(
|
|
1175
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Get Available Firmware Information
|
|
1180
|
-
* @param {String} projectOrProductUID
|
|
1180
|
+
* @param {String} projectOrProductUID
|
|
1181
1181
|
* @param {Object} opts Optional parameters
|
|
1182
|
-
* @param {String} opts.product
|
|
1183
|
-
* @param {String} opts.firmwareType
|
|
1184
|
-
* @param {String} opts.version
|
|
1185
|
-
* @param {String} opts.target
|
|
1186
|
-
* @param {String} opts.filename
|
|
1187
|
-
* @param {String} opts.md5
|
|
1188
|
-
* @param {Boolean} opts.unpublished
|
|
1182
|
+
* @param {String} opts.product
|
|
1183
|
+
* @param {String} opts.firmwareType
|
|
1184
|
+
* @param {String} opts.version
|
|
1185
|
+
* @param {String} opts.target
|
|
1186
|
+
* @param {String} opts.filename
|
|
1187
|
+
* @param {String} opts.md5
|
|
1188
|
+
* @param {Boolean} opts.unpublished
|
|
1189
1189
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1190
1190
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1191
1191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1200,8 +1200,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1200
1200
|
|
|
1201
1201
|
/**
|
|
1202
1202
|
* Get Fleet
|
|
1203
|
-
* @param {String} projectOrProductUID
|
|
1204
|
-
* @param {String} fleetUID
|
|
1203
|
+
* @param {String} projectOrProductUID
|
|
1204
|
+
* @param {String} fleetUID
|
|
1205
1205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1206
1206
|
*/
|
|
1207
1207
|
}, {
|
|
@@ -1217,23 +1217,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1217
1217
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1218
1218
|
}
|
|
1219
1219
|
var pathParams = {
|
|
1220
|
-
projectOrProductUID: projectOrProductUID,
|
|
1221
|
-
fleetUID: fleetUID
|
|
1220
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1221
|
+
'fleetUID': fleetUID
|
|
1222
1222
|
};
|
|
1223
1223
|
var queryParams = {};
|
|
1224
1224
|
var headerParams = {};
|
|
1225
1225
|
var formParams = {};
|
|
1226
|
-
var authNames = [
|
|
1226
|
+
var authNames = ['personalAccessToken'];
|
|
1227
1227
|
var contentTypes = [];
|
|
1228
|
-
var accepts = [
|
|
1228
|
+
var accepts = ['application/json'];
|
|
1229
1229
|
var returnType = _Fleet["default"];
|
|
1230
|
-
return this.apiClient.callApi(
|
|
1230
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Get Fleet
|
|
1235
|
-
* @param {String} projectOrProductUID
|
|
1236
|
-
* @param {String} fleetUID
|
|
1235
|
+
* @param {String} projectOrProductUID
|
|
1236
|
+
* @param {String} fleetUID
|
|
1237
1237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1238
1238
|
*/
|
|
1239
1239
|
}, {
|
|
@@ -1246,8 +1246,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1246
1246
|
|
|
1247
1247
|
/**
|
|
1248
1248
|
* Get environment variable hierarchy for a device
|
|
1249
|
-
* @param {String} projectOrProductUID
|
|
1250
|
-
* @param {String} fleetUID
|
|
1249
|
+
* @param {String} projectOrProductUID
|
|
1250
|
+
* @param {String} fleetUID
|
|
1251
1251
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1252
1252
|
*/
|
|
1253
1253
|
}, {
|
|
@@ -1263,23 +1263,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1263
1263
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1264
1264
|
}
|
|
1265
1265
|
var pathParams = {
|
|
1266
|
-
projectOrProductUID: projectOrProductUID,
|
|
1267
|
-
fleetUID: fleetUID
|
|
1266
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1267
|
+
'fleetUID': fleetUID
|
|
1268
1268
|
};
|
|
1269
1269
|
var queryParams = {};
|
|
1270
1270
|
var headerParams = {};
|
|
1271
1271
|
var formParams = {};
|
|
1272
|
-
var authNames = [
|
|
1272
|
+
var authNames = ['personalAccessToken'];
|
|
1273
1273
|
var contentTypes = [];
|
|
1274
|
-
var accepts = [
|
|
1274
|
+
var accepts = ['application/json'];
|
|
1275
1275
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1276
|
-
return this.apiClient.callApi(
|
|
1276
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Get environment variable hierarchy for a device
|
|
1281
|
-
* @param {String} projectOrProductUID
|
|
1282
|
-
* @param {String} fleetUID
|
|
1281
|
+
* @param {String} projectOrProductUID
|
|
1282
|
+
* @param {String} fleetUID
|
|
1283
1283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1284
1284
|
*/
|
|
1285
1285
|
}, {
|
|
@@ -1292,8 +1292,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1292
1292
|
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Get environment variables of a fleet
|
|
1295
|
-
* @param {String} projectOrProductUID
|
|
1296
|
-
* @param {String} fleetUID
|
|
1295
|
+
* @param {String} projectOrProductUID
|
|
1296
|
+
* @param {String} fleetUID
|
|
1297
1297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1298
1298
|
*/
|
|
1299
1299
|
}, {
|
|
@@ -1309,23 +1309,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1309
1309
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1310
1310
|
}
|
|
1311
1311
|
var pathParams = {
|
|
1312
|
-
projectOrProductUID: projectOrProductUID,
|
|
1313
|
-
fleetUID: fleetUID
|
|
1312
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1313
|
+
'fleetUID': fleetUID
|
|
1314
1314
|
};
|
|
1315
1315
|
var queryParams = {};
|
|
1316
1316
|
var headerParams = {};
|
|
1317
1317
|
var formParams = {};
|
|
1318
|
-
var authNames = [
|
|
1318
|
+
var authNames = ['personalAccessToken'];
|
|
1319
1319
|
var contentTypes = [];
|
|
1320
|
-
var accepts = [
|
|
1320
|
+
var accepts = ['application/json'];
|
|
1321
1321
|
var returnType = _EnvironmentVariables["default"];
|
|
1322
|
-
return this.apiClient.callApi(
|
|
1322
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Get environment variables of a fleet
|
|
1327
|
-
* @param {String} projectOrProductUID
|
|
1328
|
-
* @param {String} fleetUID
|
|
1327
|
+
* @param {String} projectOrProductUID
|
|
1328
|
+
* @param {String} fleetUID
|
|
1329
1329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1330
1330
|
*/
|
|
1331
1331
|
}, {
|
|
@@ -1338,7 +1338,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1338
1338
|
|
|
1339
1339
|
/**
|
|
1340
1340
|
* Get Project Fleets
|
|
1341
|
-
* @param {String} projectOrProductUID
|
|
1341
|
+
* @param {String} projectOrProductUID
|
|
1342
1342
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1343
1343
|
*/
|
|
1344
1344
|
}, {
|
|
@@ -1350,21 +1350,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1350
1350
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1351
1351
|
}
|
|
1352
1352
|
var pathParams = {
|
|
1353
|
-
projectOrProductUID: projectOrProductUID
|
|
1353
|
+
'projectOrProductUID': projectOrProductUID
|
|
1354
1354
|
};
|
|
1355
1355
|
var queryParams = {};
|
|
1356
1356
|
var headerParams = {};
|
|
1357
1357
|
var formParams = {};
|
|
1358
|
-
var authNames = [
|
|
1358
|
+
var authNames = ['personalAccessToken'];
|
|
1359
1359
|
var contentTypes = [];
|
|
1360
|
-
var accepts = [
|
|
1360
|
+
var accepts = ['application/json'];
|
|
1361
1361
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1362
|
-
return this.apiClient.callApi(
|
|
1362
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Get Project Fleets
|
|
1367
|
-
* @param {String} projectOrProductUID
|
|
1367
|
+
* @param {String} projectOrProductUID
|
|
1368
1368
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1369
1369
|
*/
|
|
1370
1370
|
}, {
|
|
@@ -1377,7 +1377,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1377
1377
|
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Get variable format for a notefile
|
|
1380
|
-
* @param {String} projectOrProductUID
|
|
1380
|
+
* @param {String} projectOrProductUID
|
|
1381
1381
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1382
1382
|
*/
|
|
1383
1383
|
}, {
|
|
@@ -1389,21 +1389,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1389
1389
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1390
1390
|
}
|
|
1391
1391
|
var pathParams = {
|
|
1392
|
-
projectOrProductUID: projectOrProductUID
|
|
1392
|
+
'projectOrProductUID': projectOrProductUID
|
|
1393
1393
|
};
|
|
1394
1394
|
var queryParams = {};
|
|
1395
1395
|
var headerParams = {};
|
|
1396
1396
|
var formParams = {};
|
|
1397
1397
|
var authNames = [];
|
|
1398
1398
|
var contentTypes = [];
|
|
1399
|
-
var accepts = [
|
|
1399
|
+
var accepts = ['application/json'];
|
|
1400
1400
|
var returnType = [_NotefileSchema["default"]];
|
|
1401
|
-
return this.apiClient.callApi(
|
|
1401
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Get variable format for a notefile
|
|
1406
|
-
* @param {String} projectOrProductUID
|
|
1406
|
+
* @param {String} projectOrProductUID
|
|
1407
1407
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1408
1408
|
*/
|
|
1409
1409
|
}, {
|
|
@@ -1416,7 +1416,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1416
1416
|
|
|
1417
1417
|
/**
|
|
1418
1418
|
* Get Products within a Project
|
|
1419
|
-
* @param {String} projectOrProductUID
|
|
1419
|
+
* @param {String} projectOrProductUID
|
|
1420
1420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1421
1421
|
*/
|
|
1422
1422
|
}, {
|
|
@@ -1428,21 +1428,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1428
1428
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1429
1429
|
}
|
|
1430
1430
|
var pathParams = {
|
|
1431
|
-
projectOrProductUID: projectOrProductUID
|
|
1431
|
+
'projectOrProductUID': projectOrProductUID
|
|
1432
1432
|
};
|
|
1433
1433
|
var queryParams = {};
|
|
1434
1434
|
var headerParams = {};
|
|
1435
1435
|
var formParams = {};
|
|
1436
|
-
var authNames = [
|
|
1436
|
+
var authNames = ['personalAccessToken'];
|
|
1437
1437
|
var contentTypes = [];
|
|
1438
|
-
var accepts = [
|
|
1438
|
+
var accepts = ['application/json'];
|
|
1439
1439
|
var returnType = _GetProducts200Response["default"];
|
|
1440
|
-
return this.apiClient.callApi(
|
|
1440
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Get Products within a Project
|
|
1445
|
-
* @param {String} projectOrProductUID
|
|
1445
|
+
* @param {String} projectOrProductUID
|
|
1446
1446
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1447
1447
|
*/
|
|
1448
1448
|
}, {
|
|
@@ -1455,7 +1455,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1455
1455
|
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Get a Project by ProjectUID
|
|
1458
|
-
* @param {String} projectOrProductUID
|
|
1458
|
+
* @param {String} projectOrProductUID
|
|
1459
1459
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1460
1460
|
*/
|
|
1461
1461
|
}, {
|
|
@@ -1467,21 +1467,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1467
1467
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1468
1468
|
}
|
|
1469
1469
|
var pathParams = {
|
|
1470
|
-
projectOrProductUID: projectOrProductUID
|
|
1470
|
+
'projectOrProductUID': projectOrProductUID
|
|
1471
1471
|
};
|
|
1472
1472
|
var queryParams = {};
|
|
1473
1473
|
var headerParams = {};
|
|
1474
1474
|
var formParams = {};
|
|
1475
|
-
var authNames = [
|
|
1475
|
+
var authNames = ['personalAccessToken'];
|
|
1476
1476
|
var contentTypes = [];
|
|
1477
|
-
var accepts = [
|
|
1477
|
+
var accepts = ['application/json'];
|
|
1478
1478
|
var returnType = _Project["default"];
|
|
1479
|
-
return this.apiClient.callApi(
|
|
1479
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Get a Project by ProjectUID
|
|
1484
|
-
* @param {String} projectOrProductUID
|
|
1484
|
+
* @param {String} projectOrProductUID
|
|
1485
1485
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1486
1486
|
*/
|
|
1487
1487
|
}, {
|
|
@@ -1494,7 +1494,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1494
1494
|
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Get a Project by ProductUID
|
|
1497
|
-
* @param {String} productUID
|
|
1497
|
+
* @param {String} productUID
|
|
1498
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1499
1499
|
*/
|
|
1500
1500
|
}, {
|
|
@@ -1506,21 +1506,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1506
1506
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1507
1507
|
}
|
|
1508
1508
|
var pathParams = {
|
|
1509
|
-
productUID: productUID
|
|
1509
|
+
'productUID': productUID
|
|
1510
1510
|
};
|
|
1511
1511
|
var queryParams = {};
|
|
1512
1512
|
var headerParams = {};
|
|
1513
1513
|
var formParams = {};
|
|
1514
|
-
var authNames = [
|
|
1514
|
+
var authNames = ['personalAccessToken'];
|
|
1515
1515
|
var contentTypes = [];
|
|
1516
|
-
var accepts = [
|
|
1516
|
+
var accepts = ['application/json'];
|
|
1517
1517
|
var returnType = _Project["default"];
|
|
1518
|
-
return this.apiClient.callApi(
|
|
1518
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Get a Project by ProductUID
|
|
1523
|
-
* @param {String} productUID
|
|
1523
|
+
* @param {String} productUID
|
|
1524
1524
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1525
1525
|
*/
|
|
1526
1526
|
}, {
|
|
@@ -1533,7 +1533,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1533
1533
|
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Get environment variable hierarchy for a device
|
|
1536
|
-
* @param {String} projectOrProductUID
|
|
1536
|
+
* @param {String} projectOrProductUID
|
|
1537
1537
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1538
1538
|
*/
|
|
1539
1539
|
}, {
|
|
@@ -1545,21 +1545,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1545
1545
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1546
1546
|
}
|
|
1547
1547
|
var pathParams = {
|
|
1548
|
-
projectOrProductUID: projectOrProductUID
|
|
1548
|
+
'projectOrProductUID': projectOrProductUID
|
|
1549
1549
|
};
|
|
1550
1550
|
var queryParams = {};
|
|
1551
1551
|
var headerParams = {};
|
|
1552
1552
|
var formParams = {};
|
|
1553
|
-
var authNames = [
|
|
1553
|
+
var authNames = ['personalAccessToken'];
|
|
1554
1554
|
var contentTypes = [];
|
|
1555
|
-
var accepts = [
|
|
1555
|
+
var accepts = ['application/json'];
|
|
1556
1556
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1557
|
-
return this.apiClient.callApi(
|
|
1557
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Get environment variable hierarchy for a device
|
|
1562
|
-
* @param {String} projectOrProductUID
|
|
1562
|
+
* @param {String} projectOrProductUID
|
|
1563
1563
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1564
1564
|
*/
|
|
1565
1565
|
}, {
|
|
@@ -1572,7 +1572,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1572
1572
|
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Get environment variables of a project
|
|
1575
|
-
* @param {String} projectOrProductUID
|
|
1575
|
+
* @param {String} projectOrProductUID
|
|
1576
1576
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1577
1577
|
*/
|
|
1578
1578
|
}, {
|
|
@@ -1584,21 +1584,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1584
1584
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1585
1585
|
}
|
|
1586
1586
|
var pathParams = {
|
|
1587
|
-
projectOrProductUID: projectOrProductUID
|
|
1587
|
+
'projectOrProductUID': projectOrProductUID
|
|
1588
1588
|
};
|
|
1589
1589
|
var queryParams = {};
|
|
1590
1590
|
var headerParams = {};
|
|
1591
1591
|
var formParams = {};
|
|
1592
|
-
var authNames = [
|
|
1592
|
+
var authNames = ['personalAccessToken'];
|
|
1593
1593
|
var contentTypes = [];
|
|
1594
|
-
var accepts = [
|
|
1594
|
+
var accepts = ['application/json'];
|
|
1595
1595
|
var returnType = _EnvironmentVariables["default"];
|
|
1596
|
-
return this.apiClient.callApi(
|
|
1596
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Get environment variables of a project
|
|
1601
|
-
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} projectOrProductUID
|
|
1602
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1603
1603
|
*/
|
|
1604
1604
|
}, {
|
|
@@ -1611,7 +1611,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1611
1611
|
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Get Project Members
|
|
1614
|
-
* @param {String} projectOrProductUID
|
|
1614
|
+
* @param {String} projectOrProductUID
|
|
1615
1615
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1616
1616
|
*/
|
|
1617
1617
|
}, {
|
|
@@ -1623,21 +1623,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1623
1623
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1624
1624
|
}
|
|
1625
1625
|
var pathParams = {
|
|
1626
|
-
projectOrProductUID: projectOrProductUID
|
|
1626
|
+
'projectOrProductUID': projectOrProductUID
|
|
1627
1627
|
};
|
|
1628
1628
|
var queryParams = {};
|
|
1629
1629
|
var headerParams = {};
|
|
1630
1630
|
var formParams = {};
|
|
1631
|
-
var authNames = [
|
|
1631
|
+
var authNames = ['personalAccessToken'];
|
|
1632
1632
|
var contentTypes = [];
|
|
1633
|
-
var accepts = [
|
|
1633
|
+
var accepts = ['application/json'];
|
|
1634
1634
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1635
|
-
return this.apiClient.callApi(
|
|
1635
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Get Project Members
|
|
1640
|
-
* @param {String} projectOrProductUID
|
|
1640
|
+
* @param {String} projectOrProductUID
|
|
1641
1641
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1642
1642
|
*/
|
|
1643
1643
|
}, {
|
|
@@ -1660,11 +1660,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1660
1660
|
var queryParams = {};
|
|
1661
1661
|
var headerParams = {};
|
|
1662
1662
|
var formParams = {};
|
|
1663
|
-
var authNames = [
|
|
1663
|
+
var authNames = ['personalAccessToken'];
|
|
1664
1664
|
var contentTypes = [];
|
|
1665
|
-
var accepts = [
|
|
1665
|
+
var accepts = ['application/json'];
|
|
1666
1666
|
var returnType = _GetProjects200Response["default"];
|
|
1667
|
-
return this.apiClient.callApi(
|
|
1667
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1668
1668
|
}
|
|
1669
1669
|
|
|
1670
1670
|
/**
|
|
@@ -1681,18 +1681,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1681
1681
|
|
|
1682
1682
|
/**
|
|
1683
1683
|
* Update/cancel host or notecard firmware updates
|
|
1684
|
-
* @param {String} projectOrProductUID
|
|
1685
|
-
* @param {module:model/String} firmwareType
|
|
1686
|
-
* @param {module:model/String} action
|
|
1684
|
+
* @param {String} projectOrProductUID
|
|
1685
|
+
* @param {module:model/String} firmwareType
|
|
1686
|
+
* @param {module:model/String} action
|
|
1687
1687
|
* @param {Object} opts Optional parameters
|
|
1688
1688
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1689
1689
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1690
1690
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1691
|
-
* @param {String} opts.fleetUID
|
|
1691
|
+
* @param {String} opts.fleetUID
|
|
1692
1692
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1693
1693
|
* @param {Array.<String>} opts.location Location filter
|
|
1694
1694
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1695
|
-
* @param {Array.<String>} opts.productUID
|
|
1695
|
+
* @param {Array.<String>} opts.productUID
|
|
1696
1696
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1697
1697
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1698
1698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1701,7 +1701,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1701
1701
|
key: "performDfuActionWithHttpInfo",
|
|
1702
1702
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1703
1703
|
opts = opts || {};
|
|
1704
|
-
var postBody = opts[
|
|
1704
|
+
var postBody = opts['dfuActionRequest'];
|
|
1705
1705
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1706
1706
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1707
1707
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1715,44 +1715,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1715
1715
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1716
1716
|
}
|
|
1717
1717
|
var pathParams = {
|
|
1718
|
-
projectOrProductUID: projectOrProductUID,
|
|
1719
|
-
firmwareType: firmwareType,
|
|
1720
|
-
action: action
|
|
1718
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1719
|
+
'firmwareType': firmwareType,
|
|
1720
|
+
'action': action
|
|
1721
1721
|
};
|
|
1722
1722
|
var queryParams = {
|
|
1723
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1724
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1725
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1726
|
-
fleetUID: opts[
|
|
1727
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1728
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1729
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1730
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1731
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
1723
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1724
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1725
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1726
|
+
'fleetUID': opts['fleetUID'],
|
|
1727
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1728
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1729
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1730
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1731
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1732
1732
|
};
|
|
1733
1733
|
var headerParams = {};
|
|
1734
1734
|
var formParams = {};
|
|
1735
|
-
var authNames = [
|
|
1736
|
-
var contentTypes = [
|
|
1737
|
-
var accepts = [
|
|
1735
|
+
var authNames = ['personalAccessToken'];
|
|
1736
|
+
var contentTypes = ['application/json'];
|
|
1737
|
+
var accepts = ['application/json'];
|
|
1738
1738
|
var returnType = null;
|
|
1739
|
-
return this.apiClient.callApi(
|
|
1739
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Update/cancel host or notecard firmware updates
|
|
1744
|
-
* @param {String} projectOrProductUID
|
|
1745
|
-
* @param {module:model/String} firmwareType
|
|
1746
|
-
* @param {module:model/String} action
|
|
1744
|
+
* @param {String} projectOrProductUID
|
|
1745
|
+
* @param {module:model/String} firmwareType
|
|
1746
|
+
* @param {module:model/String} action
|
|
1747
1747
|
* @param {Object} opts Optional parameters
|
|
1748
1748
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1749
1749
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1750
1750
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1751
|
-
* @param {String} opts.fleetUID
|
|
1751
|
+
* @param {String} opts.fleetUID
|
|
1752
1752
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1753
1753
|
* @param {Array.<String>} opts.location Location filter
|
|
1754
1754
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1755
|
-
* @param {Array.<String>} opts.productUID
|
|
1755
|
+
* @param {Array.<String>} opts.productUID
|
|
1756
1756
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1757
1757
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1758
1758
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1767,8 +1767,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* Set environment variables of a fleet
|
|
1770
|
-
* @param {String} projectOrProductUID
|
|
1771
|
-
* @param {String} fleetUID
|
|
1770
|
+
* @param {String} projectOrProductUID
|
|
1771
|
+
* @param {String} fleetUID
|
|
1772
1772
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1773
1773
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1774
1774
|
*/
|
|
@@ -1789,23 +1789,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1789
1789
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1790
1790
|
}
|
|
1791
1791
|
var pathParams = {
|
|
1792
|
-
projectOrProductUID: projectOrProductUID,
|
|
1793
|
-
fleetUID: fleetUID
|
|
1792
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1793
|
+
'fleetUID': fleetUID
|
|
1794
1794
|
};
|
|
1795
1795
|
var queryParams = {};
|
|
1796
1796
|
var headerParams = {};
|
|
1797
1797
|
var formParams = {};
|
|
1798
|
-
var authNames = [
|
|
1799
|
-
var contentTypes = [
|
|
1800
|
-
var accepts = [
|
|
1798
|
+
var authNames = ['personalAccessToken'];
|
|
1799
|
+
var contentTypes = ['application/json'];
|
|
1800
|
+
var accepts = ['application/json'];
|
|
1801
1801
|
var returnType = _EnvironmentVariables["default"];
|
|
1802
|
-
return this.apiClient.callApi(
|
|
1802
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Set environment variables of a fleet
|
|
1807
|
-
* @param {String} projectOrProductUID
|
|
1808
|
-
* @param {String} fleetUID
|
|
1807
|
+
* @param {String} projectOrProductUID
|
|
1808
|
+
* @param {String} fleetUID
|
|
1809
1809
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1810
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1811
1811
|
*/
|
|
@@ -1819,7 +1819,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1819
1819
|
|
|
1820
1820
|
/**
|
|
1821
1821
|
* Set the project-level event JSONata transformation
|
|
1822
|
-
* @param {String} projectOrProductUID
|
|
1822
|
+
* @param {String} projectOrProductUID
|
|
1823
1823
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1824
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1825
1825
|
*/
|
|
@@ -1836,21 +1836,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1836
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1837
1837
|
}
|
|
1838
1838
|
var pathParams = {
|
|
1839
|
-
projectOrProductUID: projectOrProductUID
|
|
1839
|
+
'projectOrProductUID': projectOrProductUID
|
|
1840
1840
|
};
|
|
1841
1841
|
var queryParams = {};
|
|
1842
1842
|
var headerParams = {};
|
|
1843
1843
|
var formParams = {};
|
|
1844
|
-
var authNames = [
|
|
1845
|
-
var contentTypes = [
|
|
1846
|
-
var accepts = [
|
|
1844
|
+
var authNames = ['personalAccessToken'];
|
|
1845
|
+
var contentTypes = ['application/json'];
|
|
1846
|
+
var accepts = ['application/json'];
|
|
1847
1847
|
var returnType = null;
|
|
1848
|
-
return this.apiClient.callApi(
|
|
1848
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
1851
1851
|
/**
|
|
1852
1852
|
* Set the project-level event JSONata transformation
|
|
1853
|
-
* @param {String} projectOrProductUID
|
|
1853
|
+
* @param {String} projectOrProductUID
|
|
1854
1854
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1855
1855
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1856
1856
|
*/
|
|
@@ -1864,38 +1864,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1864
1864
|
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Set environment variables of a project
|
|
1867
|
-
* @param {String} projectOrProductUID
|
|
1867
|
+
* @param {String} projectOrProductUID
|
|
1868
1868
|
* @param {Object} opts Optional parameters
|
|
1869
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1869
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1870
1870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1871
1871
|
*/
|
|
1872
1872
|
}, {
|
|
1873
1873
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1874
1874
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1875
1875
|
opts = opts || {};
|
|
1876
|
-
var postBody = opts[
|
|
1876
|
+
var postBody = opts['environmentVariables'];
|
|
1877
1877
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1878
1878
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1879
1879
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1880
1880
|
}
|
|
1881
1881
|
var pathParams = {
|
|
1882
|
-
projectOrProductUID: projectOrProductUID
|
|
1882
|
+
'projectOrProductUID': projectOrProductUID
|
|
1883
1883
|
};
|
|
1884
1884
|
var queryParams = {};
|
|
1885
1885
|
var headerParams = {};
|
|
1886
1886
|
var formParams = {};
|
|
1887
|
-
var authNames = [
|
|
1888
|
-
var contentTypes = [
|
|
1889
|
-
var accepts = [
|
|
1887
|
+
var authNames = ['personalAccessToken'];
|
|
1888
|
+
var contentTypes = ['application/json'];
|
|
1889
|
+
var accepts = ['application/json'];
|
|
1890
1890
|
var returnType = _EnvironmentVariables["default"];
|
|
1891
|
-
return this.apiClient.callApi(
|
|
1891
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
1894
|
/**
|
|
1895
1895
|
* Set environment variables of a project
|
|
1896
|
-
* @param {String} projectOrProductUID
|
|
1896
|
+
* @param {String} projectOrProductUID
|
|
1897
1897
|
* @param {Object} opts Optional parameters
|
|
1898
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1898
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1899
1899
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1900
1900
|
*/
|
|
1901
1901
|
}, {
|
|
@@ -1907,10 +1907,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
1909
|
/**
|
|
1910
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1911
|
-
* @param {String} projectOrProductUID
|
|
1912
|
-
* @param {module:model/String} firmwareType
|
|
1913
|
-
* @param {String} filename
|
|
1910
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1911
|
+
* @param {String} projectOrProductUID
|
|
1912
|
+
* @param {module:model/String} firmwareType
|
|
1913
|
+
* @param {String} filename
|
|
1914
1914
|
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1915
1915
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
1916
1916
|
*/
|
|
@@ -1935,25 +1935,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1935
1935
|
throw new _Error["default"]("Missing the required parameter 'updateHostFirmwareRequest' when calling updateFirmware");
|
|
1936
1936
|
}
|
|
1937
1937
|
var pathParams = {
|
|
1938
|
-
projectOrProductUID: projectOrProductUID,
|
|
1939
|
-
firmwareType: firmwareType,
|
|
1940
|
-
filename: filename
|
|
1938
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1939
|
+
'firmwareType': firmwareType,
|
|
1940
|
+
'filename': filename
|
|
1941
1941
|
};
|
|
1942
1942
|
var queryParams = {};
|
|
1943
1943
|
var headerParams = {};
|
|
1944
1944
|
var formParams = {};
|
|
1945
|
-
var authNames = [
|
|
1946
|
-
var contentTypes = [
|
|
1947
|
-
var accepts = [
|
|
1945
|
+
var authNames = ['personalAccessToken'];
|
|
1946
|
+
var contentTypes = ['application/json'];
|
|
1947
|
+
var accepts = ['application/json'];
|
|
1948
1948
|
var returnType = _FirmwareInfo["default"];
|
|
1949
|
-
return this.apiClient.callApi(
|
|
1949
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
1952
|
/**
|
|
1953
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1954
|
-
* @param {String} projectOrProductUID
|
|
1955
|
-
* @param {module:model/String} firmwareType
|
|
1956
|
-
* @param {String} filename
|
|
1953
|
+
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1954
|
+
* @param {String} projectOrProductUID
|
|
1955
|
+
* @param {module:model/String} firmwareType
|
|
1956
|
+
* @param {String} filename
|
|
1957
1957
|
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1958
1958
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1959
1959
|
*/
|
|
@@ -1967,8 +1967,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1967
1967
|
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Update Fleet
|
|
1970
|
-
* @param {String} projectOrProductUID
|
|
1971
|
-
* @param {String} fleetUID
|
|
1970
|
+
* @param {String} projectOrProductUID
|
|
1971
|
+
* @param {String} fleetUID
|
|
1972
1972
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1973
1973
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1974
1974
|
*/
|
|
@@ -1989,23 +1989,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1989
1989
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1990
1990
|
}
|
|
1991
1991
|
var pathParams = {
|
|
1992
|
-
projectOrProductUID: projectOrProductUID,
|
|
1993
|
-
fleetUID: fleetUID
|
|
1992
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1993
|
+
'fleetUID': fleetUID
|
|
1994
1994
|
};
|
|
1995
1995
|
var queryParams = {};
|
|
1996
1996
|
var headerParams = {};
|
|
1997
1997
|
var formParams = {};
|
|
1998
|
-
var authNames = [
|
|
1999
|
-
var contentTypes = [
|
|
2000
|
-
var accepts = [
|
|
1998
|
+
var authNames = ['personalAccessToken'];
|
|
1999
|
+
var contentTypes = ['application/json'];
|
|
2000
|
+
var accepts = ['application/json'];
|
|
2001
2001
|
var returnType = _Fleet["default"];
|
|
2002
|
-
return this.apiClient.callApi(
|
|
2002
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Update Fleet
|
|
2007
|
-
* @param {String} projectOrProductUID
|
|
2008
|
-
* @param {String} fleetUID
|
|
2007
|
+
* @param {String} projectOrProductUID
|
|
2008
|
+
* @param {String} fleetUID
|
|
2009
2009
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
2010
2010
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
2011
2011
|
*/
|
|
@@ -2019,9 +2019,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2019
2019
|
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Upload firmware binary
|
|
2022
|
-
* @param {String} projectOrProductUID
|
|
2023
|
-
* @param {module:model/String} firmwareType
|
|
2024
|
-
* @param {String} filename
|
|
2022
|
+
* @param {String} projectOrProductUID
|
|
2023
|
+
* @param {module:model/String} firmwareType
|
|
2024
|
+
* @param {String} filename
|
|
2025
2025
|
* @param {File} body contents of the firmware binary
|
|
2026
2026
|
* @param {Object} opts Optional parameters
|
|
2027
2027
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -2050,28 +2050,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2050
2050
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
2051
2051
|
}
|
|
2052
2052
|
var pathParams = {
|
|
2053
|
-
projectOrProductUID: projectOrProductUID,
|
|
2054
|
-
firmwareType: firmwareType,
|
|
2055
|
-
filename: filename
|
|
2053
|
+
'projectOrProductUID': projectOrProductUID,
|
|
2054
|
+
'firmwareType': firmwareType,
|
|
2055
|
+
'filename': filename
|
|
2056
2056
|
};
|
|
2057
2057
|
var queryParams = {
|
|
2058
|
-
version: opts[
|
|
2059
|
-
notes: opts[
|
|
2058
|
+
'version': opts['version'],
|
|
2059
|
+
'notes': opts['notes']
|
|
2060
2060
|
};
|
|
2061
2061
|
var headerParams = {};
|
|
2062
2062
|
var formParams = {};
|
|
2063
|
-
var authNames = [
|
|
2064
|
-
var contentTypes = [
|
|
2065
|
-
var accepts = [
|
|
2063
|
+
var authNames = ['personalAccessToken'];
|
|
2064
|
+
var contentTypes = ['application/octet-stream'];
|
|
2065
|
+
var accepts = ['application/json'];
|
|
2066
2066
|
var returnType = _FirmwareInfo["default"];
|
|
2067
|
-
return this.apiClient.callApi(
|
|
2067
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2068
2068
|
}
|
|
2069
2069
|
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Upload firmware binary
|
|
2072
|
-
* @param {String} projectOrProductUID
|
|
2073
|
-
* @param {module:model/String} firmwareType
|
|
2074
|
-
* @param {String} filename
|
|
2072
|
+
* @param {String} projectOrProductUID
|
|
2073
|
+
* @param {module:model/String} firmwareType
|
|
2074
|
+
* @param {String} filename
|
|
2075
2075
|
* @param {File} body contents of the firmware binary
|
|
2076
2076
|
* @param {Object} opts Optional parameters
|
|
2077
2077
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|