@blues-inc/notehub-js 6.1.0 → 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 +277 -268
- 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 +30 -30
- 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 +516 -403
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +7 -0
- 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 +117 -0
- 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
|
@@ -30,6 +30,7 @@ var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"))
|
|
|
30
30
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
31
31
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
32
32
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
33
|
+
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
33
34
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
34
35
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
35
36
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -38,7 +39,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
38
39
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
39
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); } /**
|
|
40
41
|
* Notehub API
|
|
41
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
42
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
42
43
|
*
|
|
43
44
|
* The version of the OpenAPI document: 1.2.0
|
|
44
45
|
* Contact: engineering@blues.io
|
|
@@ -49,18 +50,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
49
50
|
*
|
|
50
51
|
*/
|
|
51
52
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
* Project service.
|
|
54
|
+
* @module api/ProjectApi
|
|
55
|
+
* @version 6.2.0-beta.1
|
|
56
|
+
*/
|
|
56
57
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
57
58
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
+
*/
|
|
64
65
|
function ProjectApi(apiClient) {
|
|
65
66
|
_classCallCheck(this, ProjectApi);
|
|
66
67
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -68,9 +69,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
68
69
|
|
|
69
70
|
/**
|
|
70
71
|
* Add Device to Fleets
|
|
71
|
-
* @param {String} projectOrProductUID
|
|
72
|
-
* @param {String} deviceUID
|
|
73
|
-
* @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.
|
|
74
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
75
76
|
*/
|
|
76
77
|
return _createClass(ProjectApi, [{
|
|
@@ -90,24 +91,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
91
|
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
91
92
|
}
|
|
92
93
|
var pathParams = {
|
|
93
|
-
projectOrProductUID: projectOrProductUID,
|
|
94
|
-
deviceUID: deviceUID
|
|
94
|
+
'projectOrProductUID': projectOrProductUID,
|
|
95
|
+
'deviceUID': deviceUID
|
|
95
96
|
};
|
|
96
97
|
var queryParams = {};
|
|
97
98
|
var headerParams = {};
|
|
98
99
|
var formParams = {};
|
|
99
|
-
var authNames = [
|
|
100
|
-
var contentTypes = [
|
|
101
|
-
var accepts = [
|
|
100
|
+
var authNames = ['personalAccessToken'];
|
|
101
|
+
var contentTypes = ['application/json'];
|
|
102
|
+
var accepts = ['application/json'];
|
|
102
103
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
103
|
-
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);
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
/**
|
|
107
108
|
* Add Device to Fleets
|
|
108
|
-
* @param {String} projectOrProductUID
|
|
109
|
-
* @param {String} deviceUID
|
|
110
|
-
* @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.
|
|
111
112
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
112
113
|
*/
|
|
113
114
|
}, {
|
|
@@ -120,7 +121,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
123
|
* Clone a Project
|
|
123
|
-
* @param {String} projectOrProductUID
|
|
124
|
+
* @param {String} projectOrProductUID
|
|
124
125
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
125
126
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
126
127
|
*/
|
|
@@ -137,21 +138,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
138
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
138
139
|
}
|
|
139
140
|
var pathParams = {
|
|
140
|
-
projectOrProductUID: projectOrProductUID
|
|
141
|
+
'projectOrProductUID': projectOrProductUID
|
|
141
142
|
};
|
|
142
143
|
var queryParams = {};
|
|
143
144
|
var headerParams = {};
|
|
144
145
|
var formParams = {};
|
|
145
|
-
var authNames = [
|
|
146
|
-
var contentTypes = [
|
|
147
|
-
var accepts = [
|
|
146
|
+
var authNames = ['personalAccessToken'];
|
|
147
|
+
var contentTypes = ['application/json'];
|
|
148
|
+
var accepts = ['application/json'];
|
|
148
149
|
var returnType = _Project["default"];
|
|
149
|
-
return this.apiClient.callApi(
|
|
150
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
/**
|
|
153
154
|
* Clone a Project
|
|
154
|
-
* @param {String} projectOrProductUID
|
|
155
|
+
* @param {String} projectOrProductUID
|
|
155
156
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
156
157
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
157
158
|
*/
|
|
@@ -165,7 +166,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
165
166
|
|
|
166
167
|
/**
|
|
167
168
|
* Create Fleet
|
|
168
|
-
* @param {String} projectOrProductUID
|
|
169
|
+
* @param {String} projectOrProductUID
|
|
169
170
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
170
171
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
171
172
|
*/
|
|
@@ -182,21 +183,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
182
183
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
183
184
|
}
|
|
184
185
|
var pathParams = {
|
|
185
|
-
projectOrProductUID: projectOrProductUID
|
|
186
|
+
'projectOrProductUID': projectOrProductUID
|
|
186
187
|
};
|
|
187
188
|
var queryParams = {};
|
|
188
189
|
var headerParams = {};
|
|
189
190
|
var formParams = {};
|
|
190
|
-
var authNames = [
|
|
191
|
-
var contentTypes = [
|
|
192
|
-
var accepts = [
|
|
191
|
+
var authNames = ['personalAccessToken'];
|
|
192
|
+
var contentTypes = ['application/json'];
|
|
193
|
+
var accepts = ['application/json'];
|
|
193
194
|
var returnType = _Fleet["default"];
|
|
194
|
-
return this.apiClient.callApi(
|
|
195
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
/**
|
|
198
199
|
* Create Fleet
|
|
199
|
-
* @param {String} projectOrProductUID
|
|
200
|
+
* @param {String} projectOrProductUID
|
|
200
201
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
201
202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
202
203
|
*/
|
|
@@ -210,7 +211,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
211
|
|
|
211
212
|
/**
|
|
212
213
|
* Create Product within a Project
|
|
213
|
-
* @param {String} projectOrProductUID
|
|
214
|
+
* @param {String} projectOrProductUID
|
|
214
215
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
215
216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
216
217
|
*/
|
|
@@ -227,21 +228,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
228
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
228
229
|
}
|
|
229
230
|
var pathParams = {
|
|
230
|
-
projectOrProductUID: projectOrProductUID
|
|
231
|
+
'projectOrProductUID': projectOrProductUID
|
|
231
232
|
};
|
|
232
233
|
var queryParams = {};
|
|
233
234
|
var headerParams = {};
|
|
234
235
|
var formParams = {};
|
|
235
|
-
var authNames = [
|
|
236
|
-
var contentTypes = [
|
|
237
|
-
var accepts = [
|
|
236
|
+
var authNames = ['personalAccessToken'];
|
|
237
|
+
var contentTypes = ['application/json'];
|
|
238
|
+
var accepts = ['application/json'];
|
|
238
239
|
var returnType = _Product["default"];
|
|
239
|
-
return this.apiClient.callApi(
|
|
240
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
/**
|
|
243
244
|
* Create Product within a Project
|
|
244
|
-
* @param {String} projectOrProductUID
|
|
245
|
+
* @param {String} projectOrProductUID
|
|
245
246
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
246
247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
247
248
|
*/
|
|
@@ -270,11 +271,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
270
271
|
var queryParams = {};
|
|
271
272
|
var headerParams = {};
|
|
272
273
|
var formParams = {};
|
|
273
|
-
var authNames = [
|
|
274
|
-
var contentTypes = [
|
|
275
|
-
var accepts = [
|
|
274
|
+
var authNames = ['personalAccessToken'];
|
|
275
|
+
var contentTypes = ['application/json'];
|
|
276
|
+
var accepts = ['application/json'];
|
|
276
277
|
var returnType = _Project["default"];
|
|
277
|
-
return this.apiClient.callApi(
|
|
278
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
/**
|
|
@@ -292,9 +293,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
292
293
|
|
|
293
294
|
/**
|
|
294
295
|
* Remove Device from Fleets
|
|
295
|
-
* @param {String} projectOrProductUID
|
|
296
|
-
* @param {String} deviceUID
|
|
297
|
-
* @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.
|
|
298
299
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
299
300
|
*/
|
|
300
301
|
}, {
|
|
@@ -314,24 +315,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
315
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
315
316
|
}
|
|
316
317
|
var pathParams = {
|
|
317
|
-
projectOrProductUID: projectOrProductUID,
|
|
318
|
-
deviceUID: deviceUID
|
|
318
|
+
'projectOrProductUID': projectOrProductUID,
|
|
319
|
+
'deviceUID': deviceUID
|
|
319
320
|
};
|
|
320
321
|
var queryParams = {};
|
|
321
322
|
var headerParams = {};
|
|
322
323
|
var formParams = {};
|
|
323
|
-
var authNames = [
|
|
324
|
-
var contentTypes = [
|
|
325
|
-
var accepts = [
|
|
324
|
+
var authNames = ['personalAccessToken'];
|
|
325
|
+
var contentTypes = ['application/json'];
|
|
326
|
+
var accepts = ['application/json'];
|
|
326
327
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
327
|
-
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);
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
/**
|
|
331
332
|
* Remove Device from Fleets
|
|
332
|
-
* @param {String} projectOrProductUID
|
|
333
|
-
* @param {String} deviceUID
|
|
334
|
-
* @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.
|
|
335
336
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
336
337
|
*/
|
|
337
338
|
}, {
|
|
@@ -342,10 +343,63 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
|
|
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
|
|
351
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
352
|
+
*/
|
|
353
|
+
}, {
|
|
354
|
+
key: "deleteFirmwareWithHttpInfo",
|
|
355
|
+
value: function deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
|
|
356
|
+
var postBody = null;
|
|
357
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
358
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
359
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFirmware");
|
|
360
|
+
}
|
|
361
|
+
// verify the required parameter 'firmwareType' is set
|
|
362
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
363
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling deleteFirmware");
|
|
364
|
+
}
|
|
365
|
+
// verify the required parameter 'filename' is set
|
|
366
|
+
if (filename === undefined || filename === null) {
|
|
367
|
+
throw new _Error["default"]("Missing the required parameter 'filename' when calling deleteFirmware");
|
|
368
|
+
}
|
|
369
|
+
var pathParams = {
|
|
370
|
+
'projectOrProductUID': projectOrProductUID,
|
|
371
|
+
'firmwareType': firmwareType,
|
|
372
|
+
'filename': filename
|
|
373
|
+
};
|
|
374
|
+
var queryParams = {};
|
|
375
|
+
var headerParams = {};
|
|
376
|
+
var formParams = {};
|
|
377
|
+
var authNames = ['personalAccessToken'];
|
|
378
|
+
var contentTypes = [];
|
|
379
|
+
var accepts = ['application/json'];
|
|
380
|
+
var returnType = null;
|
|
381
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
382
|
+
}
|
|
383
|
+
|
|
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
|
|
389
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
390
|
+
*/
|
|
391
|
+
}, {
|
|
392
|
+
key: "deleteFirmware",
|
|
393
|
+
value: function deleteFirmware(projectOrProductUID, firmwareType, filename) {
|
|
394
|
+
return this.deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
|
|
395
|
+
return response_and_data.data;
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
|
|
345
399
|
/**
|
|
346
400
|
* Delete Fleet
|
|
347
|
-
* @param {String} projectOrProductUID
|
|
348
|
-
* @param {String} fleetUID
|
|
401
|
+
* @param {String} projectOrProductUID
|
|
402
|
+
* @param {String} fleetUID
|
|
349
403
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
350
404
|
*/
|
|
351
405
|
}, {
|
|
@@ -361,23 +415,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
361
415
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
362
416
|
}
|
|
363
417
|
var pathParams = {
|
|
364
|
-
projectOrProductUID: projectOrProductUID,
|
|
365
|
-
fleetUID: fleetUID
|
|
418
|
+
'projectOrProductUID': projectOrProductUID,
|
|
419
|
+
'fleetUID': fleetUID
|
|
366
420
|
};
|
|
367
421
|
var queryParams = {};
|
|
368
422
|
var headerParams = {};
|
|
369
423
|
var formParams = {};
|
|
370
|
-
var authNames = [
|
|
424
|
+
var authNames = ['personalAccessToken'];
|
|
371
425
|
var contentTypes = [];
|
|
372
|
-
var accepts = [
|
|
426
|
+
var accepts = ['application/json'];
|
|
373
427
|
var returnType = null;
|
|
374
|
-
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);
|
|
375
429
|
}
|
|
376
430
|
|
|
377
431
|
/**
|
|
378
432
|
* Delete Fleet
|
|
379
|
-
* @param {String} projectOrProductUID
|
|
380
|
-
* @param {String} fleetUID
|
|
433
|
+
* @param {String} projectOrProductUID
|
|
434
|
+
* @param {String} fleetUID
|
|
381
435
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
382
436
|
*/
|
|
383
437
|
}, {
|
|
@@ -390,8 +444,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
444
|
|
|
391
445
|
/**
|
|
392
446
|
* Delete environment variables of a fleet
|
|
393
|
-
* @param {String} projectOrProductUID
|
|
394
|
-
* @param {String} fleetUID
|
|
447
|
+
* @param {String} projectOrProductUID
|
|
448
|
+
* @param {String} fleetUID
|
|
395
449
|
* @param {String} key The environment variable key to delete.
|
|
396
450
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
397
451
|
*/
|
|
@@ -412,24 +466,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
412
466
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
413
467
|
}
|
|
414
468
|
var pathParams = {
|
|
415
|
-
projectOrProductUID: projectOrProductUID,
|
|
416
|
-
fleetUID: fleetUID,
|
|
417
|
-
key: key
|
|
469
|
+
'projectOrProductUID': projectOrProductUID,
|
|
470
|
+
'fleetUID': fleetUID,
|
|
471
|
+
'key': key
|
|
418
472
|
};
|
|
419
473
|
var queryParams = {};
|
|
420
474
|
var headerParams = {};
|
|
421
475
|
var formParams = {};
|
|
422
|
-
var authNames = [
|
|
476
|
+
var authNames = ['personalAccessToken'];
|
|
423
477
|
var contentTypes = [];
|
|
424
|
-
var accepts = [
|
|
478
|
+
var accepts = ['application/json'];
|
|
425
479
|
var returnType = _EnvironmentVariables["default"];
|
|
426
|
-
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);
|
|
427
481
|
}
|
|
428
482
|
|
|
429
483
|
/**
|
|
430
484
|
* Delete environment variables of a fleet
|
|
431
|
-
* @param {String} projectOrProductUID
|
|
432
|
-
* @param {String} fleetUID
|
|
485
|
+
* @param {String} projectOrProductUID
|
|
486
|
+
* @param {String} fleetUID
|
|
433
487
|
* @param {String} key The environment variable key to delete.
|
|
434
488
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
435
489
|
*/
|
|
@@ -443,8 +497,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
443
497
|
|
|
444
498
|
/**
|
|
445
499
|
* Delete a product
|
|
446
|
-
* @param {String} projectOrProductUID
|
|
447
|
-
* @param {String} productUID
|
|
500
|
+
* @param {String} projectOrProductUID
|
|
501
|
+
* @param {String} productUID
|
|
448
502
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
449
503
|
*/
|
|
450
504
|
}, {
|
|
@@ -460,23 +514,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
460
514
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
461
515
|
}
|
|
462
516
|
var pathParams = {
|
|
463
|
-
projectOrProductUID: projectOrProductUID,
|
|
464
|
-
productUID: productUID
|
|
517
|
+
'projectOrProductUID': projectOrProductUID,
|
|
518
|
+
'productUID': productUID
|
|
465
519
|
};
|
|
466
520
|
var queryParams = {};
|
|
467
521
|
var headerParams = {};
|
|
468
522
|
var formParams = {};
|
|
469
|
-
var authNames = [
|
|
523
|
+
var authNames = ['personalAccessToken'];
|
|
470
524
|
var contentTypes = [];
|
|
471
|
-
var accepts = [
|
|
525
|
+
var accepts = ['application/json'];
|
|
472
526
|
var returnType = null;
|
|
473
|
-
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);
|
|
474
528
|
}
|
|
475
529
|
|
|
476
530
|
/**
|
|
477
531
|
* Delete a product
|
|
478
|
-
* @param {String} projectOrProductUID
|
|
479
|
-
* @param {String} productUID
|
|
532
|
+
* @param {String} projectOrProductUID
|
|
533
|
+
* @param {String} productUID
|
|
480
534
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
481
535
|
*/
|
|
482
536
|
}, {
|
|
@@ -489,7 +543,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
489
543
|
|
|
490
544
|
/**
|
|
491
545
|
* Delete a Project by ProjectUID
|
|
492
|
-
* @param {String} projectOrProductUID
|
|
546
|
+
* @param {String} projectOrProductUID
|
|
493
547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
494
548
|
*/
|
|
495
549
|
}, {
|
|
@@ -501,21 +555,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
501
555
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
502
556
|
}
|
|
503
557
|
var pathParams = {
|
|
504
|
-
projectOrProductUID: projectOrProductUID
|
|
558
|
+
'projectOrProductUID': projectOrProductUID
|
|
505
559
|
};
|
|
506
560
|
var queryParams = {};
|
|
507
561
|
var headerParams = {};
|
|
508
562
|
var formParams = {};
|
|
509
|
-
var authNames = [
|
|
563
|
+
var authNames = ['personalAccessToken'];
|
|
510
564
|
var contentTypes = [];
|
|
511
|
-
var accepts = [
|
|
565
|
+
var accepts = ['application/json'];
|
|
512
566
|
var returnType = null;
|
|
513
|
-
return this.apiClient.callApi(
|
|
567
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
514
568
|
}
|
|
515
569
|
|
|
516
570
|
/**
|
|
517
571
|
* Delete a Project by ProjectUID
|
|
518
|
-
* @param {String} projectOrProductUID
|
|
572
|
+
* @param {String} projectOrProductUID
|
|
519
573
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
520
574
|
*/
|
|
521
575
|
}, {
|
|
@@ -528,7 +582,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
528
582
|
|
|
529
583
|
/**
|
|
530
584
|
* Delete an environment variable of a project by key
|
|
531
|
-
* @param {String} projectOrProductUID
|
|
585
|
+
* @param {String} projectOrProductUID
|
|
532
586
|
* @param {String} key The environment variable key to delete.
|
|
533
587
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
534
588
|
*/
|
|
@@ -545,22 +599,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
545
599
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
546
600
|
}
|
|
547
601
|
var pathParams = {
|
|
548
|
-
projectOrProductUID: projectOrProductUID,
|
|
549
|
-
key: key
|
|
602
|
+
'projectOrProductUID': projectOrProductUID,
|
|
603
|
+
'key': key
|
|
550
604
|
};
|
|
551
605
|
var queryParams = {};
|
|
552
606
|
var headerParams = {};
|
|
553
607
|
var formParams = {};
|
|
554
|
-
var authNames = [
|
|
608
|
+
var authNames = ['personalAccessToken'];
|
|
555
609
|
var contentTypes = [];
|
|
556
|
-
var accepts = [
|
|
610
|
+
var accepts = ['application/json'];
|
|
557
611
|
var returnType = _EnvironmentVariables["default"];
|
|
558
|
-
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);
|
|
559
613
|
}
|
|
560
614
|
|
|
561
615
|
/**
|
|
562
616
|
* Delete an environment variable of a project by key
|
|
563
|
-
* @param {String} projectOrProductUID
|
|
617
|
+
* @param {String} projectOrProductUID
|
|
564
618
|
* @param {String} key The environment variable key to delete.
|
|
565
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
566
620
|
*/
|
|
@@ -574,7 +628,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
574
628
|
|
|
575
629
|
/**
|
|
576
630
|
* Disable the project-level event JSONata transformation
|
|
577
|
-
* @param {String} projectOrProductUID
|
|
631
|
+
* @param {String} projectOrProductUID
|
|
578
632
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
579
633
|
*/
|
|
580
634
|
}, {
|
|
@@ -586,21 +640,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
586
640
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
587
641
|
}
|
|
588
642
|
var pathParams = {
|
|
589
|
-
projectOrProductUID: projectOrProductUID
|
|
643
|
+
'projectOrProductUID': projectOrProductUID
|
|
590
644
|
};
|
|
591
645
|
var queryParams = {};
|
|
592
646
|
var headerParams = {};
|
|
593
647
|
var formParams = {};
|
|
594
|
-
var authNames = [
|
|
648
|
+
var authNames = ['personalAccessToken'];
|
|
595
649
|
var contentTypes = [];
|
|
596
|
-
var accepts = [
|
|
650
|
+
var accepts = ['application/json'];
|
|
597
651
|
var returnType = null;
|
|
598
|
-
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);
|
|
599
653
|
}
|
|
600
654
|
|
|
601
655
|
/**
|
|
602
656
|
* Disable the project-level event JSONata transformation
|
|
603
|
-
* @param {String} projectOrProductUID
|
|
657
|
+
* @param {String} projectOrProductUID
|
|
604
658
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
605
659
|
*/
|
|
606
660
|
}, {
|
|
@@ -613,9 +667,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
613
667
|
|
|
614
668
|
/**
|
|
615
669
|
* Download firmware binary
|
|
616
|
-
* @param {String} projectOrProductUID
|
|
617
|
-
* @param {module:model/String} firmwareType
|
|
618
|
-
* @param {String} filename
|
|
670
|
+
* @param {String} projectOrProductUID
|
|
671
|
+
* @param {module:model/String} firmwareType
|
|
672
|
+
* @param {String} filename
|
|
619
673
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
620
674
|
*/
|
|
621
675
|
}, {
|
|
@@ -635,25 +689,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
635
689
|
throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
|
|
636
690
|
}
|
|
637
691
|
var pathParams = {
|
|
638
|
-
projectOrProductUID: projectOrProductUID,
|
|
639
|
-
firmwareType: firmwareType,
|
|
640
|
-
filename: filename
|
|
692
|
+
'projectOrProductUID': projectOrProductUID,
|
|
693
|
+
'firmwareType': firmwareType,
|
|
694
|
+
'filename': filename
|
|
641
695
|
};
|
|
642
696
|
var queryParams = {};
|
|
643
697
|
var headerParams = {};
|
|
644
698
|
var formParams = {};
|
|
645
|
-
var authNames = [
|
|
699
|
+
var authNames = ['personalAccessToken'];
|
|
646
700
|
var contentTypes = [];
|
|
647
|
-
var accepts = [
|
|
701
|
+
var accepts = ['application/octet-stream', 'application/json'];
|
|
648
702
|
var returnType = File;
|
|
649
|
-
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);
|
|
650
704
|
}
|
|
651
705
|
|
|
652
706
|
/**
|
|
653
707
|
* Download firmware binary
|
|
654
|
-
* @param {String} projectOrProductUID
|
|
655
|
-
* @param {module:model/String} firmwareType
|
|
656
|
-
* @param {String} filename
|
|
708
|
+
* @param {String} projectOrProductUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
710
|
+
* @param {String} filename
|
|
657
711
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
658
712
|
*/
|
|
659
713
|
}, {
|
|
@@ -666,7 +720,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
666
720
|
|
|
667
721
|
/**
|
|
668
722
|
* Enable the project-level event JSONata transformation
|
|
669
|
-
* @param {String} projectOrProductUID
|
|
723
|
+
* @param {String} projectOrProductUID
|
|
670
724
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
671
725
|
*/
|
|
672
726
|
}, {
|
|
@@ -678,21 +732,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
678
732
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
679
733
|
}
|
|
680
734
|
var pathParams = {
|
|
681
|
-
projectOrProductUID: projectOrProductUID
|
|
735
|
+
'projectOrProductUID': projectOrProductUID
|
|
682
736
|
};
|
|
683
737
|
var queryParams = {};
|
|
684
738
|
var headerParams = {};
|
|
685
739
|
var formParams = {};
|
|
686
|
-
var authNames = [
|
|
740
|
+
var authNames = ['personalAccessToken'];
|
|
687
741
|
var contentTypes = [];
|
|
688
|
-
var accepts = [
|
|
742
|
+
var accepts = ['application/json'];
|
|
689
743
|
var returnType = null;
|
|
690
|
-
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);
|
|
691
745
|
}
|
|
692
746
|
|
|
693
747
|
/**
|
|
694
748
|
* Enable the project-level event JSONata transformation
|
|
695
|
-
* @param {String} projectOrProductUID
|
|
749
|
+
* @param {String} projectOrProductUID
|
|
696
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
697
751
|
*/
|
|
698
752
|
}, {
|
|
@@ -705,8 +759,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
705
759
|
|
|
706
760
|
/**
|
|
707
761
|
* Get AWS role configuration for role-based authentication
|
|
708
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
709
|
-
* @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
|
|
710
764
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
711
765
|
*/
|
|
712
766
|
}, {
|
|
@@ -718,22 +772,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
718
772
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAWSRoleConfig");
|
|
719
773
|
}
|
|
720
774
|
var pathParams = {
|
|
721
|
-
projectOrProductUID: projectOrProductUID
|
|
775
|
+
'projectOrProductUID': projectOrProductUID
|
|
722
776
|
};
|
|
723
777
|
var queryParams = {};
|
|
724
778
|
var headerParams = {};
|
|
725
779
|
var formParams = {};
|
|
726
|
-
var authNames = [
|
|
780
|
+
var authNames = ['personalAccessToken'];
|
|
727
781
|
var contentTypes = [];
|
|
728
|
-
var accepts = [
|
|
782
|
+
var accepts = ['application/json'];
|
|
729
783
|
var returnType = _AWSRoleConfig["default"];
|
|
730
|
-
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);
|
|
731
785
|
}
|
|
732
786
|
|
|
733
787
|
/**
|
|
734
788
|
* Get AWS role configuration for role-based authentication
|
|
735
|
-
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
736
|
-
* @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
|
|
737
791
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
738
792
|
*/
|
|
739
793
|
}, {
|
|
@@ -746,9 +800,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
746
800
|
|
|
747
801
|
/**
|
|
748
802
|
* Get device DFU history for host or Notecard firmware
|
|
749
|
-
* @param {String} projectOrProductUID
|
|
750
|
-
* @param {String} deviceUID
|
|
751
|
-
* @param {module:model/String} firmwareType
|
|
803
|
+
* @param {String} projectOrProductUID
|
|
804
|
+
* @param {String} deviceUID
|
|
805
|
+
* @param {module:model/String} firmwareType
|
|
752
806
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
753
807
|
*/
|
|
754
808
|
}, {
|
|
@@ -768,25 +822,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
768
822
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
769
823
|
}
|
|
770
824
|
var pathParams = {
|
|
771
|
-
projectOrProductUID: projectOrProductUID,
|
|
772
|
-
deviceUID: deviceUID,
|
|
773
|
-
firmwareType: firmwareType
|
|
825
|
+
'projectOrProductUID': projectOrProductUID,
|
|
826
|
+
'deviceUID': deviceUID,
|
|
827
|
+
'firmwareType': firmwareType
|
|
774
828
|
};
|
|
775
829
|
var queryParams = {};
|
|
776
830
|
var headerParams = {};
|
|
777
831
|
var formParams = {};
|
|
778
|
-
var authNames = [
|
|
832
|
+
var authNames = ['personalAccessToken'];
|
|
779
833
|
var contentTypes = [];
|
|
780
|
-
var accepts = [
|
|
834
|
+
var accepts = ['application/json'];
|
|
781
835
|
var returnType = _DeviceDfuHistory["default"];
|
|
782
|
-
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);
|
|
783
837
|
}
|
|
784
838
|
|
|
785
839
|
/**
|
|
786
840
|
* Get device DFU history for host or Notecard firmware
|
|
787
|
-
* @param {String} projectOrProductUID
|
|
788
|
-
* @param {String} deviceUID
|
|
789
|
-
* @param {module:model/String} firmwareType
|
|
841
|
+
* @param {String} projectOrProductUID
|
|
842
|
+
* @param {String} deviceUID
|
|
843
|
+
* @param {module:model/String} firmwareType
|
|
790
844
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
791
845
|
*/
|
|
792
846
|
}, {
|
|
@@ -799,9 +853,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
799
853
|
|
|
800
854
|
/**
|
|
801
855
|
* Get device DFU history for host or Notecard firmware
|
|
802
|
-
* @param {String} projectOrProductUID
|
|
803
|
-
* @param {String} deviceUID
|
|
804
|
-
* @param {module:model/String} firmwareType
|
|
856
|
+
* @param {String} projectOrProductUID
|
|
857
|
+
* @param {String} deviceUID
|
|
858
|
+
* @param {module:model/String} firmwareType
|
|
805
859
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
806
860
|
*/
|
|
807
861
|
}, {
|
|
@@ -821,25 +875,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
821
875
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
822
876
|
}
|
|
823
877
|
var pathParams = {
|
|
824
|
-
projectOrProductUID: projectOrProductUID,
|
|
825
|
-
deviceUID: deviceUID,
|
|
826
|
-
firmwareType: firmwareType
|
|
878
|
+
'projectOrProductUID': projectOrProductUID,
|
|
879
|
+
'deviceUID': deviceUID,
|
|
880
|
+
'firmwareType': firmwareType
|
|
827
881
|
};
|
|
828
882
|
var queryParams = {};
|
|
829
883
|
var headerParams = {};
|
|
830
884
|
var formParams = {};
|
|
831
|
-
var authNames = [
|
|
885
|
+
var authNames = ['personalAccessToken'];
|
|
832
886
|
var contentTypes = [];
|
|
833
|
-
var accepts = [
|
|
887
|
+
var accepts = ['application/json'];
|
|
834
888
|
var returnType = _DeviceDfuStatus["default"];
|
|
835
|
-
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);
|
|
836
890
|
}
|
|
837
891
|
|
|
838
892
|
/**
|
|
839
893
|
* Get device DFU history for host or Notecard firmware
|
|
840
|
-
* @param {String} projectOrProductUID
|
|
841
|
-
* @param {String} deviceUID
|
|
842
|
-
* @param {module:model/String} firmwareType
|
|
894
|
+
* @param {String} projectOrProductUID
|
|
895
|
+
* @param {String} deviceUID
|
|
896
|
+
* @param {module:model/String} firmwareType
|
|
843
897
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
844
898
|
*/
|
|
845
899
|
}, {
|
|
@@ -852,8 +906,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
852
906
|
|
|
853
907
|
/**
|
|
854
908
|
* Get Device Fleets
|
|
855
|
-
* @param {String} projectOrProductUID
|
|
856
|
-
* @param {String} deviceUID
|
|
909
|
+
* @param {String} projectOrProductUID
|
|
910
|
+
* @param {String} deviceUID
|
|
857
911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
858
912
|
*/
|
|
859
913
|
}, {
|
|
@@ -869,23 +923,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
869
923
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
870
924
|
}
|
|
871
925
|
var pathParams = {
|
|
872
|
-
projectOrProductUID: projectOrProductUID,
|
|
873
|
-
deviceUID: deviceUID
|
|
926
|
+
'projectOrProductUID': projectOrProductUID,
|
|
927
|
+
'deviceUID': deviceUID
|
|
874
928
|
};
|
|
875
929
|
var queryParams = {};
|
|
876
930
|
var headerParams = {};
|
|
877
931
|
var formParams = {};
|
|
878
|
-
var authNames = [
|
|
932
|
+
var authNames = ['personalAccessToken'];
|
|
879
933
|
var contentTypes = [];
|
|
880
|
-
var accepts = [
|
|
934
|
+
var accepts = ['application/json'];
|
|
881
935
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
882
|
-
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);
|
|
883
937
|
}
|
|
884
938
|
|
|
885
939
|
/**
|
|
886
940
|
* Get Device Fleets
|
|
887
|
-
* @param {String} projectOrProductUID
|
|
888
|
-
* @param {String} deviceUID
|
|
941
|
+
* @param {String} projectOrProductUID
|
|
942
|
+
* @param {String} deviceUID
|
|
889
943
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
890
944
|
*/
|
|
891
945
|
}, {
|
|
@@ -898,8 +952,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
952
|
|
|
899
953
|
/**
|
|
900
954
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
902
|
-
* @param {module:model/String} firmwareType
|
|
955
|
+
* @param {String} projectOrProductUID
|
|
956
|
+
* @param {module:model/String} firmwareType
|
|
903
957
|
* @param {Object} opts Optional parameters
|
|
904
958
|
* @param {Number} opts.pageSize (default to 50)
|
|
905
959
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -908,11 +962,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
962
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
909
963
|
* @param {Array.<String>} opts.tag Tag filter
|
|
910
964
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
911
|
-
* @param {String} opts.fleetUID
|
|
965
|
+
* @param {String} opts.fleetUID
|
|
912
966
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
913
967
|
* @param {Array.<String>} opts.location Location filter
|
|
914
968
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
915
|
-
* @param {Array.<String>} opts.productUID
|
|
969
|
+
* @param {Array.<String>} opts.productUID
|
|
916
970
|
* @param {Array.<String>} opts.sku SKU filter
|
|
917
971
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
918
972
|
*/
|
|
@@ -930,37 +984,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
930
984
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
931
985
|
}
|
|
932
986
|
var pathParams = {
|
|
933
|
-
projectOrProductUID: projectOrProductUID,
|
|
934
|
-
firmwareType: firmwareType
|
|
987
|
+
'projectOrProductUID': projectOrProductUID,
|
|
988
|
+
'firmwareType': firmwareType
|
|
935
989
|
};
|
|
936
990
|
var queryParams = {
|
|
937
|
-
pageSize: opts[
|
|
938
|
-
pageNum: opts[
|
|
939
|
-
sortBy: opts[
|
|
940
|
-
sortOrder: opts[
|
|
941
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
942
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
943
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
944
|
-
fleetUID: opts[
|
|
945
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
946
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
947
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
948
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
949
|
-
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')
|
|
950
1004
|
};
|
|
951
1005
|
var headerParams = {};
|
|
952
1006
|
var formParams = {};
|
|
953
|
-
var authNames = [
|
|
1007
|
+
var authNames = ['personalAccessToken'];
|
|
954
1008
|
var contentTypes = [];
|
|
955
|
-
var accepts = [
|
|
1009
|
+
var accepts = ['application/json'];
|
|
956
1010
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
957
|
-
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);
|
|
958
1012
|
}
|
|
959
1013
|
|
|
960
1014
|
/**
|
|
961
1015
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
962
|
-
* @param {String} projectOrProductUID
|
|
963
|
-
* @param {module:model/String} firmwareType
|
|
1016
|
+
* @param {String} projectOrProductUID
|
|
1017
|
+
* @param {module:model/String} firmwareType
|
|
964
1018
|
* @param {Object} opts Optional parameters
|
|
965
1019
|
* @param {Number} opts.pageSize (default to 50)
|
|
966
1020
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -969,11 +1023,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
969
1023
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
970
1024
|
* @param {Array.<String>} opts.tag Tag filter
|
|
971
1025
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
972
|
-
* @param {String} opts.fleetUID
|
|
1026
|
+
* @param {String} opts.fleetUID
|
|
973
1027
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
974
1028
|
* @param {Array.<String>} opts.location Location filter
|
|
975
1029
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
976
|
-
* @param {Array.<String>} opts.productUID
|
|
1030
|
+
* @param {Array.<String>} opts.productUID
|
|
977
1031
|
* @param {Array.<String>} opts.sku SKU filter
|
|
978
1032
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
979
1033
|
*/
|
|
@@ -987,8 +1041,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
987
1041
|
|
|
988
1042
|
/**
|
|
989
1043
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
990
|
-
* @param {String} projectOrProductUID
|
|
991
|
-
* @param {module:model/String} firmwareType
|
|
1044
|
+
* @param {String} projectOrProductUID
|
|
1045
|
+
* @param {module:model/String} firmwareType
|
|
992
1046
|
* @param {Object} opts Optional parameters
|
|
993
1047
|
* @param {Number} opts.pageSize (default to 50)
|
|
994
1048
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -997,11 +1051,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
997
1051
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
998
1052
|
* @param {Array.<String>} opts.tag Tag filter
|
|
999
1053
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1000
|
-
* @param {String} opts.fleetUID
|
|
1054
|
+
* @param {String} opts.fleetUID
|
|
1001
1055
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1002
1056
|
* @param {Array.<String>} opts.location Location filter
|
|
1003
1057
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1004
|
-
* @param {Array.<String>} opts.productUID
|
|
1058
|
+
* @param {Array.<String>} opts.productUID
|
|
1005
1059
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1006
1060
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
1007
1061
|
*/
|
|
@@ -1019,37 +1073,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1019
1073
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
1020
1074
|
}
|
|
1021
1075
|
var pathParams = {
|
|
1022
|
-
projectOrProductUID: projectOrProductUID,
|
|
1023
|
-
firmwareType: firmwareType
|
|
1076
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1077
|
+
'firmwareType': firmwareType
|
|
1024
1078
|
};
|
|
1025
1079
|
var queryParams = {
|
|
1026
|
-
pageSize: opts[
|
|
1027
|
-
pageNum: opts[
|
|
1028
|
-
sortBy: opts[
|
|
1029
|
-
sortOrder: opts[
|
|
1030
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1031
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1032
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1033
|
-
fleetUID: opts[
|
|
1034
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1035
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1036
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1037
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1038
|
-
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')
|
|
1039
1093
|
};
|
|
1040
1094
|
var headerParams = {};
|
|
1041
1095
|
var formParams = {};
|
|
1042
|
-
var authNames = [
|
|
1096
|
+
var authNames = ['personalAccessToken'];
|
|
1043
1097
|
var contentTypes = [];
|
|
1044
|
-
var accepts = [
|
|
1098
|
+
var accepts = ['application/json'];
|
|
1045
1099
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
1046
|
-
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);
|
|
1047
1101
|
}
|
|
1048
1102
|
|
|
1049
1103
|
/**
|
|
1050
1104
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1051
|
-
* @param {String} projectOrProductUID
|
|
1052
|
-
* @param {module:model/String} firmwareType
|
|
1105
|
+
* @param {String} projectOrProductUID
|
|
1106
|
+
* @param {module:model/String} firmwareType
|
|
1053
1107
|
* @param {Object} opts Optional parameters
|
|
1054
1108
|
* @param {Number} opts.pageSize (default to 50)
|
|
1055
1109
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1058,11 +1112,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1058
1112
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1059
1113
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1060
1114
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1061
|
-
* @param {String} opts.fleetUID
|
|
1115
|
+
* @param {String} opts.fleetUID
|
|
1062
1116
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1063
1117
|
* @param {Array.<String>} opts.location Location filter
|
|
1064
1118
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1065
|
-
* @param {Array.<String>} opts.productUID
|
|
1119
|
+
* @param {Array.<String>} opts.productUID
|
|
1066
1120
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1067
1121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1068
1122
|
*/
|
|
@@ -1076,15 +1130,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1076
1130
|
|
|
1077
1131
|
/**
|
|
1078
1132
|
* Get Available Firmware Information
|
|
1079
|
-
* @param {String} projectOrProductUID
|
|
1133
|
+
* @param {String} projectOrProductUID
|
|
1080
1134
|
* @param {Object} opts Optional parameters
|
|
1081
|
-
* @param {String} opts.product
|
|
1082
|
-
* @param {String} opts.firmwareType
|
|
1083
|
-
* @param {String} opts.version
|
|
1084
|
-
* @param {String} opts.target
|
|
1085
|
-
* @param {String} opts.filename
|
|
1086
|
-
* @param {String} opts.md5
|
|
1087
|
-
* @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
|
|
1088
1142
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1089
1143
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1090
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
|
|
@@ -1099,39 +1153,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1099
1153
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1100
1154
|
}
|
|
1101
1155
|
var pathParams = {
|
|
1102
|
-
projectOrProductUID: projectOrProductUID
|
|
1156
|
+
'projectOrProductUID': projectOrProductUID
|
|
1103
1157
|
};
|
|
1104
1158
|
var queryParams = {
|
|
1105
|
-
product: opts[
|
|
1106
|
-
firmwareType: opts[
|
|
1107
|
-
version: opts[
|
|
1108
|
-
target: opts[
|
|
1109
|
-
filename: opts[
|
|
1110
|
-
md5: opts[
|
|
1111
|
-
unpublished: opts[
|
|
1112
|
-
sortBy: opts[
|
|
1113
|
-
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']
|
|
1114
1168
|
};
|
|
1115
1169
|
var headerParams = {};
|
|
1116
1170
|
var formParams = {};
|
|
1117
|
-
var authNames = [
|
|
1171
|
+
var authNames = ['personalAccessToken'];
|
|
1118
1172
|
var contentTypes = [];
|
|
1119
|
-
var accepts = [
|
|
1173
|
+
var accepts = ['application/json'];
|
|
1120
1174
|
var returnType = [_FirmwareInfo["default"]];
|
|
1121
|
-
return this.apiClient.callApi(
|
|
1175
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1122
1176
|
}
|
|
1123
1177
|
|
|
1124
1178
|
/**
|
|
1125
1179
|
* Get Available Firmware Information
|
|
1126
|
-
* @param {String} projectOrProductUID
|
|
1180
|
+
* @param {String} projectOrProductUID
|
|
1127
1181
|
* @param {Object} opts Optional parameters
|
|
1128
|
-
* @param {String} opts.product
|
|
1129
|
-
* @param {String} opts.firmwareType
|
|
1130
|
-
* @param {String} opts.version
|
|
1131
|
-
* @param {String} opts.target
|
|
1132
|
-
* @param {String} opts.filename
|
|
1133
|
-
* @param {String} opts.md5
|
|
1134
|
-
* @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
|
|
1135
1189
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1136
1190
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1137
1191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1146,8 +1200,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1146
1200
|
|
|
1147
1201
|
/**
|
|
1148
1202
|
* Get Fleet
|
|
1149
|
-
* @param {String} projectOrProductUID
|
|
1150
|
-
* @param {String} fleetUID
|
|
1203
|
+
* @param {String} projectOrProductUID
|
|
1204
|
+
* @param {String} fleetUID
|
|
1151
1205
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1152
1206
|
*/
|
|
1153
1207
|
}, {
|
|
@@ -1163,23 +1217,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1163
1217
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1164
1218
|
}
|
|
1165
1219
|
var pathParams = {
|
|
1166
|
-
projectOrProductUID: projectOrProductUID,
|
|
1167
|
-
fleetUID: fleetUID
|
|
1220
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1221
|
+
'fleetUID': fleetUID
|
|
1168
1222
|
};
|
|
1169
1223
|
var queryParams = {};
|
|
1170
1224
|
var headerParams = {};
|
|
1171
1225
|
var formParams = {};
|
|
1172
|
-
var authNames = [
|
|
1226
|
+
var authNames = ['personalAccessToken'];
|
|
1173
1227
|
var contentTypes = [];
|
|
1174
|
-
var accepts = [
|
|
1228
|
+
var accepts = ['application/json'];
|
|
1175
1229
|
var returnType = _Fleet["default"];
|
|
1176
|
-
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);
|
|
1177
1231
|
}
|
|
1178
1232
|
|
|
1179
1233
|
/**
|
|
1180
1234
|
* Get Fleet
|
|
1181
|
-
* @param {String} projectOrProductUID
|
|
1182
|
-
* @param {String} fleetUID
|
|
1235
|
+
* @param {String} projectOrProductUID
|
|
1236
|
+
* @param {String} fleetUID
|
|
1183
1237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1184
1238
|
*/
|
|
1185
1239
|
}, {
|
|
@@ -1192,8 +1246,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1192
1246
|
|
|
1193
1247
|
/**
|
|
1194
1248
|
* Get environment variable hierarchy for a device
|
|
1195
|
-
* @param {String} projectOrProductUID
|
|
1196
|
-
* @param {String} fleetUID
|
|
1249
|
+
* @param {String} projectOrProductUID
|
|
1250
|
+
* @param {String} fleetUID
|
|
1197
1251
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1198
1252
|
*/
|
|
1199
1253
|
}, {
|
|
@@ -1209,23 +1263,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1209
1263
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1210
1264
|
}
|
|
1211
1265
|
var pathParams = {
|
|
1212
|
-
projectOrProductUID: projectOrProductUID,
|
|
1213
|
-
fleetUID: fleetUID
|
|
1266
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1267
|
+
'fleetUID': fleetUID
|
|
1214
1268
|
};
|
|
1215
1269
|
var queryParams = {};
|
|
1216
1270
|
var headerParams = {};
|
|
1217
1271
|
var formParams = {};
|
|
1218
|
-
var authNames = [
|
|
1272
|
+
var authNames = ['personalAccessToken'];
|
|
1219
1273
|
var contentTypes = [];
|
|
1220
|
-
var accepts = [
|
|
1274
|
+
var accepts = ['application/json'];
|
|
1221
1275
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1222
|
-
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);
|
|
1223
1277
|
}
|
|
1224
1278
|
|
|
1225
1279
|
/**
|
|
1226
1280
|
* Get environment variable hierarchy for a device
|
|
1227
|
-
* @param {String} projectOrProductUID
|
|
1228
|
-
* @param {String} fleetUID
|
|
1281
|
+
* @param {String} projectOrProductUID
|
|
1282
|
+
* @param {String} fleetUID
|
|
1229
1283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1230
1284
|
*/
|
|
1231
1285
|
}, {
|
|
@@ -1238,8 +1292,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1238
1292
|
|
|
1239
1293
|
/**
|
|
1240
1294
|
* Get environment variables of a fleet
|
|
1241
|
-
* @param {String} projectOrProductUID
|
|
1242
|
-
* @param {String} fleetUID
|
|
1295
|
+
* @param {String} projectOrProductUID
|
|
1296
|
+
* @param {String} fleetUID
|
|
1243
1297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1244
1298
|
*/
|
|
1245
1299
|
}, {
|
|
@@ -1255,23 +1309,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1255
1309
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1256
1310
|
}
|
|
1257
1311
|
var pathParams = {
|
|
1258
|
-
projectOrProductUID: projectOrProductUID,
|
|
1259
|
-
fleetUID: fleetUID
|
|
1312
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1313
|
+
'fleetUID': fleetUID
|
|
1260
1314
|
};
|
|
1261
1315
|
var queryParams = {};
|
|
1262
1316
|
var headerParams = {};
|
|
1263
1317
|
var formParams = {};
|
|
1264
|
-
var authNames = [
|
|
1318
|
+
var authNames = ['personalAccessToken'];
|
|
1265
1319
|
var contentTypes = [];
|
|
1266
|
-
var accepts = [
|
|
1320
|
+
var accepts = ['application/json'];
|
|
1267
1321
|
var returnType = _EnvironmentVariables["default"];
|
|
1268
|
-
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);
|
|
1269
1323
|
}
|
|
1270
1324
|
|
|
1271
1325
|
/**
|
|
1272
1326
|
* Get environment variables of a fleet
|
|
1273
|
-
* @param {String} projectOrProductUID
|
|
1274
|
-
* @param {String} fleetUID
|
|
1327
|
+
* @param {String} projectOrProductUID
|
|
1328
|
+
* @param {String} fleetUID
|
|
1275
1329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1276
1330
|
*/
|
|
1277
1331
|
}, {
|
|
@@ -1284,7 +1338,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1284
1338
|
|
|
1285
1339
|
/**
|
|
1286
1340
|
* Get Project Fleets
|
|
1287
|
-
* @param {String} projectOrProductUID
|
|
1341
|
+
* @param {String} projectOrProductUID
|
|
1288
1342
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1289
1343
|
*/
|
|
1290
1344
|
}, {
|
|
@@ -1296,21 +1350,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1296
1350
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1297
1351
|
}
|
|
1298
1352
|
var pathParams = {
|
|
1299
|
-
projectOrProductUID: projectOrProductUID
|
|
1353
|
+
'projectOrProductUID': projectOrProductUID
|
|
1300
1354
|
};
|
|
1301
1355
|
var queryParams = {};
|
|
1302
1356
|
var headerParams = {};
|
|
1303
1357
|
var formParams = {};
|
|
1304
|
-
var authNames = [
|
|
1358
|
+
var authNames = ['personalAccessToken'];
|
|
1305
1359
|
var contentTypes = [];
|
|
1306
|
-
var accepts = [
|
|
1360
|
+
var accepts = ['application/json'];
|
|
1307
1361
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1308
|
-
return this.apiClient.callApi(
|
|
1362
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1309
1363
|
}
|
|
1310
1364
|
|
|
1311
1365
|
/**
|
|
1312
1366
|
* Get Project Fleets
|
|
1313
|
-
* @param {String} projectOrProductUID
|
|
1367
|
+
* @param {String} projectOrProductUID
|
|
1314
1368
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1315
1369
|
*/
|
|
1316
1370
|
}, {
|
|
@@ -1323,7 +1377,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1323
1377
|
|
|
1324
1378
|
/**
|
|
1325
1379
|
* Get variable format for a notefile
|
|
1326
|
-
* @param {String} projectOrProductUID
|
|
1380
|
+
* @param {String} projectOrProductUID
|
|
1327
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
|
|
1328
1382
|
*/
|
|
1329
1383
|
}, {
|
|
@@ -1335,21 +1389,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1335
1389
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1336
1390
|
}
|
|
1337
1391
|
var pathParams = {
|
|
1338
|
-
projectOrProductUID: projectOrProductUID
|
|
1392
|
+
'projectOrProductUID': projectOrProductUID
|
|
1339
1393
|
};
|
|
1340
1394
|
var queryParams = {};
|
|
1341
1395
|
var headerParams = {};
|
|
1342
1396
|
var formParams = {};
|
|
1343
1397
|
var authNames = [];
|
|
1344
1398
|
var contentTypes = [];
|
|
1345
|
-
var accepts = [
|
|
1399
|
+
var accepts = ['application/json'];
|
|
1346
1400
|
var returnType = [_NotefileSchema["default"]];
|
|
1347
|
-
return this.apiClient.callApi(
|
|
1401
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1348
1402
|
}
|
|
1349
1403
|
|
|
1350
1404
|
/**
|
|
1351
1405
|
* Get variable format for a notefile
|
|
1352
|
-
* @param {String} projectOrProductUID
|
|
1406
|
+
* @param {String} projectOrProductUID
|
|
1353
1407
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1354
1408
|
*/
|
|
1355
1409
|
}, {
|
|
@@ -1362,7 +1416,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1362
1416
|
|
|
1363
1417
|
/**
|
|
1364
1418
|
* Get Products within a Project
|
|
1365
|
-
* @param {String} projectOrProductUID
|
|
1419
|
+
* @param {String} projectOrProductUID
|
|
1366
1420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1367
1421
|
*/
|
|
1368
1422
|
}, {
|
|
@@ -1374,21 +1428,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1374
1428
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1375
1429
|
}
|
|
1376
1430
|
var pathParams = {
|
|
1377
|
-
projectOrProductUID: projectOrProductUID
|
|
1431
|
+
'projectOrProductUID': projectOrProductUID
|
|
1378
1432
|
};
|
|
1379
1433
|
var queryParams = {};
|
|
1380
1434
|
var headerParams = {};
|
|
1381
1435
|
var formParams = {};
|
|
1382
|
-
var authNames = [
|
|
1436
|
+
var authNames = ['personalAccessToken'];
|
|
1383
1437
|
var contentTypes = [];
|
|
1384
|
-
var accepts = [
|
|
1438
|
+
var accepts = ['application/json'];
|
|
1385
1439
|
var returnType = _GetProducts200Response["default"];
|
|
1386
|
-
return this.apiClient.callApi(
|
|
1440
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1387
1441
|
}
|
|
1388
1442
|
|
|
1389
1443
|
/**
|
|
1390
1444
|
* Get Products within a Project
|
|
1391
|
-
* @param {String} projectOrProductUID
|
|
1445
|
+
* @param {String} projectOrProductUID
|
|
1392
1446
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1393
1447
|
*/
|
|
1394
1448
|
}, {
|
|
@@ -1401,7 +1455,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1401
1455
|
|
|
1402
1456
|
/**
|
|
1403
1457
|
* Get a Project by ProjectUID
|
|
1404
|
-
* @param {String} projectOrProductUID
|
|
1458
|
+
* @param {String} projectOrProductUID
|
|
1405
1459
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1406
1460
|
*/
|
|
1407
1461
|
}, {
|
|
@@ -1413,21 +1467,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1413
1467
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1414
1468
|
}
|
|
1415
1469
|
var pathParams = {
|
|
1416
|
-
projectOrProductUID: projectOrProductUID
|
|
1470
|
+
'projectOrProductUID': projectOrProductUID
|
|
1417
1471
|
};
|
|
1418
1472
|
var queryParams = {};
|
|
1419
1473
|
var headerParams = {};
|
|
1420
1474
|
var formParams = {};
|
|
1421
|
-
var authNames = [
|
|
1475
|
+
var authNames = ['personalAccessToken'];
|
|
1422
1476
|
var contentTypes = [];
|
|
1423
|
-
var accepts = [
|
|
1477
|
+
var accepts = ['application/json'];
|
|
1424
1478
|
var returnType = _Project["default"];
|
|
1425
|
-
return this.apiClient.callApi(
|
|
1479
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1426
1480
|
}
|
|
1427
1481
|
|
|
1428
1482
|
/**
|
|
1429
1483
|
* Get a Project by ProjectUID
|
|
1430
|
-
* @param {String} projectOrProductUID
|
|
1484
|
+
* @param {String} projectOrProductUID
|
|
1431
1485
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1432
1486
|
*/
|
|
1433
1487
|
}, {
|
|
@@ -1440,7 +1494,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1440
1494
|
|
|
1441
1495
|
/**
|
|
1442
1496
|
* Get a Project by ProductUID
|
|
1443
|
-
* @param {String} productUID
|
|
1497
|
+
* @param {String} productUID
|
|
1444
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1445
1499
|
*/
|
|
1446
1500
|
}, {
|
|
@@ -1452,21 +1506,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1452
1506
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1453
1507
|
}
|
|
1454
1508
|
var pathParams = {
|
|
1455
|
-
productUID: productUID
|
|
1509
|
+
'productUID': productUID
|
|
1456
1510
|
};
|
|
1457
1511
|
var queryParams = {};
|
|
1458
1512
|
var headerParams = {};
|
|
1459
1513
|
var formParams = {};
|
|
1460
|
-
var authNames = [
|
|
1514
|
+
var authNames = ['personalAccessToken'];
|
|
1461
1515
|
var contentTypes = [];
|
|
1462
|
-
var accepts = [
|
|
1516
|
+
var accepts = ['application/json'];
|
|
1463
1517
|
var returnType = _Project["default"];
|
|
1464
|
-
return this.apiClient.callApi(
|
|
1518
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1465
1519
|
}
|
|
1466
1520
|
|
|
1467
1521
|
/**
|
|
1468
1522
|
* Get a Project by ProductUID
|
|
1469
|
-
* @param {String} productUID
|
|
1523
|
+
* @param {String} productUID
|
|
1470
1524
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1471
1525
|
*/
|
|
1472
1526
|
}, {
|
|
@@ -1479,7 +1533,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1479
1533
|
|
|
1480
1534
|
/**
|
|
1481
1535
|
* Get environment variable hierarchy for a device
|
|
1482
|
-
* @param {String} projectOrProductUID
|
|
1536
|
+
* @param {String} projectOrProductUID
|
|
1483
1537
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1484
1538
|
*/
|
|
1485
1539
|
}, {
|
|
@@ -1491,21 +1545,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1545
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1492
1546
|
}
|
|
1493
1547
|
var pathParams = {
|
|
1494
|
-
projectOrProductUID: projectOrProductUID
|
|
1548
|
+
'projectOrProductUID': projectOrProductUID
|
|
1495
1549
|
};
|
|
1496
1550
|
var queryParams = {};
|
|
1497
1551
|
var headerParams = {};
|
|
1498
1552
|
var formParams = {};
|
|
1499
|
-
var authNames = [
|
|
1553
|
+
var authNames = ['personalAccessToken'];
|
|
1500
1554
|
var contentTypes = [];
|
|
1501
|
-
var accepts = [
|
|
1555
|
+
var accepts = ['application/json'];
|
|
1502
1556
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1503
|
-
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);
|
|
1504
1558
|
}
|
|
1505
1559
|
|
|
1506
1560
|
/**
|
|
1507
1561
|
* Get environment variable hierarchy for a device
|
|
1508
|
-
* @param {String} projectOrProductUID
|
|
1562
|
+
* @param {String} projectOrProductUID
|
|
1509
1563
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1510
1564
|
*/
|
|
1511
1565
|
}, {
|
|
@@ -1518,7 +1572,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1518
1572
|
|
|
1519
1573
|
/**
|
|
1520
1574
|
* Get environment variables of a project
|
|
1521
|
-
* @param {String} projectOrProductUID
|
|
1575
|
+
* @param {String} projectOrProductUID
|
|
1522
1576
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1523
1577
|
*/
|
|
1524
1578
|
}, {
|
|
@@ -1530,21 +1584,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1530
1584
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1531
1585
|
}
|
|
1532
1586
|
var pathParams = {
|
|
1533
|
-
projectOrProductUID: projectOrProductUID
|
|
1587
|
+
'projectOrProductUID': projectOrProductUID
|
|
1534
1588
|
};
|
|
1535
1589
|
var queryParams = {};
|
|
1536
1590
|
var headerParams = {};
|
|
1537
1591
|
var formParams = {};
|
|
1538
|
-
var authNames = [
|
|
1592
|
+
var authNames = ['personalAccessToken'];
|
|
1539
1593
|
var contentTypes = [];
|
|
1540
|
-
var accepts = [
|
|
1594
|
+
var accepts = ['application/json'];
|
|
1541
1595
|
var returnType = _EnvironmentVariables["default"];
|
|
1542
|
-
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);
|
|
1543
1597
|
}
|
|
1544
1598
|
|
|
1545
1599
|
/**
|
|
1546
1600
|
* Get environment variables of a project
|
|
1547
|
-
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} projectOrProductUID
|
|
1548
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1549
1603
|
*/
|
|
1550
1604
|
}, {
|
|
@@ -1557,7 +1611,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1557
1611
|
|
|
1558
1612
|
/**
|
|
1559
1613
|
* Get Project Members
|
|
1560
|
-
* @param {String} projectOrProductUID
|
|
1614
|
+
* @param {String} projectOrProductUID
|
|
1561
1615
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1562
1616
|
*/
|
|
1563
1617
|
}, {
|
|
@@ -1569,21 +1623,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1569
1623
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1570
1624
|
}
|
|
1571
1625
|
var pathParams = {
|
|
1572
|
-
projectOrProductUID: projectOrProductUID
|
|
1626
|
+
'projectOrProductUID': projectOrProductUID
|
|
1573
1627
|
};
|
|
1574
1628
|
var queryParams = {};
|
|
1575
1629
|
var headerParams = {};
|
|
1576
1630
|
var formParams = {};
|
|
1577
|
-
var authNames = [
|
|
1631
|
+
var authNames = ['personalAccessToken'];
|
|
1578
1632
|
var contentTypes = [];
|
|
1579
|
-
var accepts = [
|
|
1633
|
+
var accepts = ['application/json'];
|
|
1580
1634
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1581
|
-
return this.apiClient.callApi(
|
|
1635
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1582
1636
|
}
|
|
1583
1637
|
|
|
1584
1638
|
/**
|
|
1585
1639
|
* Get Project Members
|
|
1586
|
-
* @param {String} projectOrProductUID
|
|
1640
|
+
* @param {String} projectOrProductUID
|
|
1587
1641
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1588
1642
|
*/
|
|
1589
1643
|
}, {
|
|
@@ -1606,11 +1660,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1606
1660
|
var queryParams = {};
|
|
1607
1661
|
var headerParams = {};
|
|
1608
1662
|
var formParams = {};
|
|
1609
|
-
var authNames = [
|
|
1663
|
+
var authNames = ['personalAccessToken'];
|
|
1610
1664
|
var contentTypes = [];
|
|
1611
|
-
var accepts = [
|
|
1665
|
+
var accepts = ['application/json'];
|
|
1612
1666
|
var returnType = _GetProjects200Response["default"];
|
|
1613
|
-
return this.apiClient.callApi(
|
|
1667
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1614
1668
|
}
|
|
1615
1669
|
|
|
1616
1670
|
/**
|
|
@@ -1627,18 +1681,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1627
1681
|
|
|
1628
1682
|
/**
|
|
1629
1683
|
* Update/cancel host or notecard firmware updates
|
|
1630
|
-
* @param {String} projectOrProductUID
|
|
1631
|
-
* @param {module:model/String} firmwareType
|
|
1632
|
-
* @param {module:model/String} action
|
|
1684
|
+
* @param {String} projectOrProductUID
|
|
1685
|
+
* @param {module:model/String} firmwareType
|
|
1686
|
+
* @param {module:model/String} action
|
|
1633
1687
|
* @param {Object} opts Optional parameters
|
|
1634
1688
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1635
1689
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1636
1690
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1637
|
-
* @param {String} opts.fleetUID
|
|
1691
|
+
* @param {String} opts.fleetUID
|
|
1638
1692
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1639
1693
|
* @param {Array.<String>} opts.location Location filter
|
|
1640
1694
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1641
|
-
* @param {Array.<String>} opts.productUID
|
|
1695
|
+
* @param {Array.<String>} opts.productUID
|
|
1642
1696
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1643
1697
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1644
1698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1647,7 +1701,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1647
1701
|
key: "performDfuActionWithHttpInfo",
|
|
1648
1702
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1649
1703
|
opts = opts || {};
|
|
1650
|
-
var postBody = opts[
|
|
1704
|
+
var postBody = opts['dfuActionRequest'];
|
|
1651
1705
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1652
1706
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1653
1707
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1661,44 +1715,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1661
1715
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1662
1716
|
}
|
|
1663
1717
|
var pathParams = {
|
|
1664
|
-
projectOrProductUID: projectOrProductUID,
|
|
1665
|
-
firmwareType: firmwareType,
|
|
1666
|
-
action: action
|
|
1718
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1719
|
+
'firmwareType': firmwareType,
|
|
1720
|
+
'action': action
|
|
1667
1721
|
};
|
|
1668
1722
|
var queryParams = {
|
|
1669
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
1670
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
1671
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
1672
|
-
fleetUID: opts[
|
|
1673
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1674
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
1675
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
1676
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
1677
|
-
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')
|
|
1678
1732
|
};
|
|
1679
1733
|
var headerParams = {};
|
|
1680
1734
|
var formParams = {};
|
|
1681
|
-
var authNames = [
|
|
1682
|
-
var contentTypes = [
|
|
1683
|
-
var accepts = [
|
|
1735
|
+
var authNames = ['personalAccessToken'];
|
|
1736
|
+
var contentTypes = ['application/json'];
|
|
1737
|
+
var accepts = ['application/json'];
|
|
1684
1738
|
var returnType = null;
|
|
1685
|
-
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);
|
|
1686
1740
|
}
|
|
1687
1741
|
|
|
1688
1742
|
/**
|
|
1689
1743
|
* Update/cancel host or notecard firmware updates
|
|
1690
|
-
* @param {String} projectOrProductUID
|
|
1691
|
-
* @param {module:model/String} firmwareType
|
|
1692
|
-
* @param {module:model/String} action
|
|
1744
|
+
* @param {String} projectOrProductUID
|
|
1745
|
+
* @param {module:model/String} firmwareType
|
|
1746
|
+
* @param {module:model/String} action
|
|
1693
1747
|
* @param {Object} opts Optional parameters
|
|
1694
1748
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1695
1749
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1696
1750
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1697
|
-
* @param {String} opts.fleetUID
|
|
1751
|
+
* @param {String} opts.fleetUID
|
|
1698
1752
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1699
1753
|
* @param {Array.<String>} opts.location Location filter
|
|
1700
1754
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1701
|
-
* @param {Array.<String>} opts.productUID
|
|
1755
|
+
* @param {Array.<String>} opts.productUID
|
|
1702
1756
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1703
1757
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1704
1758
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1713,8 +1767,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1713
1767
|
|
|
1714
1768
|
/**
|
|
1715
1769
|
* Set environment variables of a fleet
|
|
1716
|
-
* @param {String} projectOrProductUID
|
|
1717
|
-
* @param {String} fleetUID
|
|
1770
|
+
* @param {String} projectOrProductUID
|
|
1771
|
+
* @param {String} fleetUID
|
|
1718
1772
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1719
1773
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1720
1774
|
*/
|
|
@@ -1735,23 +1789,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1735
1789
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1736
1790
|
}
|
|
1737
1791
|
var pathParams = {
|
|
1738
|
-
projectOrProductUID: projectOrProductUID,
|
|
1739
|
-
fleetUID: fleetUID
|
|
1792
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1793
|
+
'fleetUID': fleetUID
|
|
1740
1794
|
};
|
|
1741
1795
|
var queryParams = {};
|
|
1742
1796
|
var headerParams = {};
|
|
1743
1797
|
var formParams = {};
|
|
1744
|
-
var authNames = [
|
|
1745
|
-
var contentTypes = [
|
|
1746
|
-
var accepts = [
|
|
1798
|
+
var authNames = ['personalAccessToken'];
|
|
1799
|
+
var contentTypes = ['application/json'];
|
|
1800
|
+
var accepts = ['application/json'];
|
|
1747
1801
|
var returnType = _EnvironmentVariables["default"];
|
|
1748
|
-
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);
|
|
1749
1803
|
}
|
|
1750
1804
|
|
|
1751
1805
|
/**
|
|
1752
1806
|
* Set environment variables of a fleet
|
|
1753
|
-
* @param {String} projectOrProductUID
|
|
1754
|
-
* @param {String} fleetUID
|
|
1807
|
+
* @param {String} projectOrProductUID
|
|
1808
|
+
* @param {String} fleetUID
|
|
1755
1809
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1756
1810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1757
1811
|
*/
|
|
@@ -1765,7 +1819,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1765
1819
|
|
|
1766
1820
|
/**
|
|
1767
1821
|
* Set the project-level event JSONata transformation
|
|
1768
|
-
* @param {String} projectOrProductUID
|
|
1822
|
+
* @param {String} projectOrProductUID
|
|
1769
1823
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1770
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1771
1825
|
*/
|
|
@@ -1782,21 +1836,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1782
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1783
1837
|
}
|
|
1784
1838
|
var pathParams = {
|
|
1785
|
-
projectOrProductUID: projectOrProductUID
|
|
1839
|
+
'projectOrProductUID': projectOrProductUID
|
|
1786
1840
|
};
|
|
1787
1841
|
var queryParams = {};
|
|
1788
1842
|
var headerParams = {};
|
|
1789
1843
|
var formParams = {};
|
|
1790
|
-
var authNames = [
|
|
1791
|
-
var contentTypes = [
|
|
1792
|
-
var accepts = [
|
|
1844
|
+
var authNames = ['personalAccessToken'];
|
|
1845
|
+
var contentTypes = ['application/json'];
|
|
1846
|
+
var accepts = ['application/json'];
|
|
1793
1847
|
var returnType = null;
|
|
1794
|
-
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);
|
|
1795
1849
|
}
|
|
1796
1850
|
|
|
1797
1851
|
/**
|
|
1798
1852
|
* Set the project-level event JSONata transformation
|
|
1799
|
-
* @param {String} projectOrProductUID
|
|
1853
|
+
* @param {String} projectOrProductUID
|
|
1800
1854
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1801
1855
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1802
1856
|
*/
|
|
@@ -1810,38 +1864,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1810
1864
|
|
|
1811
1865
|
/**
|
|
1812
1866
|
* Set environment variables of a project
|
|
1813
|
-
* @param {String} projectOrProductUID
|
|
1867
|
+
* @param {String} projectOrProductUID
|
|
1814
1868
|
* @param {Object} opts Optional parameters
|
|
1815
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1869
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1816
1870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1817
1871
|
*/
|
|
1818
1872
|
}, {
|
|
1819
1873
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1820
1874
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1821
1875
|
opts = opts || {};
|
|
1822
|
-
var postBody = opts[
|
|
1876
|
+
var postBody = opts['environmentVariables'];
|
|
1823
1877
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1824
1878
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1825
1879
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1826
1880
|
}
|
|
1827
1881
|
var pathParams = {
|
|
1828
|
-
projectOrProductUID: projectOrProductUID
|
|
1882
|
+
'projectOrProductUID': projectOrProductUID
|
|
1829
1883
|
};
|
|
1830
1884
|
var queryParams = {};
|
|
1831
1885
|
var headerParams = {};
|
|
1832
1886
|
var formParams = {};
|
|
1833
|
-
var authNames = [
|
|
1834
|
-
var contentTypes = [
|
|
1835
|
-
var accepts = [
|
|
1887
|
+
var authNames = ['personalAccessToken'];
|
|
1888
|
+
var contentTypes = ['application/json'];
|
|
1889
|
+
var accepts = ['application/json'];
|
|
1836
1890
|
var returnType = _EnvironmentVariables["default"];
|
|
1837
|
-
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);
|
|
1838
1892
|
}
|
|
1839
1893
|
|
|
1840
1894
|
/**
|
|
1841
1895
|
* Set environment variables of a project
|
|
1842
|
-
* @param {String} projectOrProductUID
|
|
1896
|
+
* @param {String} projectOrProductUID
|
|
1843
1897
|
* @param {Object} opts Optional parameters
|
|
1844
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1898
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1845
1899
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1846
1900
|
*/
|
|
1847
1901
|
}, {
|
|
@@ -1852,10 +1906,69 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1852
1906
|
});
|
|
1853
1907
|
}
|
|
1854
1908
|
|
|
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
|
|
1914
|
+
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
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
|
+
*/
|
|
1917
|
+
}, {
|
|
1918
|
+
key: "updateFirmwareWithHttpInfo",
|
|
1919
|
+
value: function updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1920
|
+
var postBody = updateHostFirmwareRequest;
|
|
1921
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1922
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1923
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFirmware");
|
|
1924
|
+
}
|
|
1925
|
+
// verify the required parameter 'firmwareType' is set
|
|
1926
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
1927
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling updateFirmware");
|
|
1928
|
+
}
|
|
1929
|
+
// verify the required parameter 'filename' is set
|
|
1930
|
+
if (filename === undefined || filename === null) {
|
|
1931
|
+
throw new _Error["default"]("Missing the required parameter 'filename' when calling updateFirmware");
|
|
1932
|
+
}
|
|
1933
|
+
// verify the required parameter 'updateHostFirmwareRequest' is set
|
|
1934
|
+
if (updateHostFirmwareRequest === undefined || updateHostFirmwareRequest === null) {
|
|
1935
|
+
throw new _Error["default"]("Missing the required parameter 'updateHostFirmwareRequest' when calling updateFirmware");
|
|
1936
|
+
}
|
|
1937
|
+
var pathParams = {
|
|
1938
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1939
|
+
'firmwareType': firmwareType,
|
|
1940
|
+
'filename': filename
|
|
1941
|
+
};
|
|
1942
|
+
var queryParams = {};
|
|
1943
|
+
var headerParams = {};
|
|
1944
|
+
var formParams = {};
|
|
1945
|
+
var authNames = ['personalAccessToken'];
|
|
1946
|
+
var contentTypes = ['application/json'];
|
|
1947
|
+
var accepts = ['application/json'];
|
|
1948
|
+
var returnType = _FirmwareInfo["default"];
|
|
1949
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1950
|
+
}
|
|
1951
|
+
|
|
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
|
|
1957
|
+
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1958
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1959
|
+
*/
|
|
1960
|
+
}, {
|
|
1961
|
+
key: "updateFirmware",
|
|
1962
|
+
value: function updateFirmware(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1963
|
+
return this.updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest).then(function (response_and_data) {
|
|
1964
|
+
return response_and_data.data;
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1855
1968
|
/**
|
|
1856
1969
|
* Update Fleet
|
|
1857
|
-
* @param {String} projectOrProductUID
|
|
1858
|
-
* @param {String} fleetUID
|
|
1970
|
+
* @param {String} projectOrProductUID
|
|
1971
|
+
* @param {String} fleetUID
|
|
1859
1972
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1860
1973
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1861
1974
|
*/
|
|
@@ -1876,23 +1989,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1876
1989
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1877
1990
|
}
|
|
1878
1991
|
var pathParams = {
|
|
1879
|
-
projectOrProductUID: projectOrProductUID,
|
|
1880
|
-
fleetUID: fleetUID
|
|
1992
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1993
|
+
'fleetUID': fleetUID
|
|
1881
1994
|
};
|
|
1882
1995
|
var queryParams = {};
|
|
1883
1996
|
var headerParams = {};
|
|
1884
1997
|
var formParams = {};
|
|
1885
|
-
var authNames = [
|
|
1886
|
-
var contentTypes = [
|
|
1887
|
-
var accepts = [
|
|
1998
|
+
var authNames = ['personalAccessToken'];
|
|
1999
|
+
var contentTypes = ['application/json'];
|
|
2000
|
+
var accepts = ['application/json'];
|
|
1888
2001
|
var returnType = _Fleet["default"];
|
|
1889
|
-
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);
|
|
1890
2003
|
}
|
|
1891
2004
|
|
|
1892
2005
|
/**
|
|
1893
2006
|
* Update Fleet
|
|
1894
|
-
* @param {String} projectOrProductUID
|
|
1895
|
-
* @param {String} fleetUID
|
|
2007
|
+
* @param {String} projectOrProductUID
|
|
2008
|
+
* @param {String} fleetUID
|
|
1896
2009
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1897
2010
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1898
2011
|
*/
|
|
@@ -1906,9 +2019,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1906
2019
|
|
|
1907
2020
|
/**
|
|
1908
2021
|
* Upload firmware binary
|
|
1909
|
-
* @param {String} projectOrProductUID
|
|
1910
|
-
* @param {module:model/String} firmwareType
|
|
1911
|
-
* @param {String} filename
|
|
2022
|
+
* @param {String} projectOrProductUID
|
|
2023
|
+
* @param {module:model/String} firmwareType
|
|
2024
|
+
* @param {String} filename
|
|
1912
2025
|
* @param {File} body contents of the firmware binary
|
|
1913
2026
|
* @param {Object} opts Optional parameters
|
|
1914
2027
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1937,28 +2050,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1937
2050
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1938
2051
|
}
|
|
1939
2052
|
var pathParams = {
|
|
1940
|
-
projectOrProductUID: projectOrProductUID,
|
|
1941
|
-
firmwareType: firmwareType,
|
|
1942
|
-
filename: filename
|
|
2053
|
+
'projectOrProductUID': projectOrProductUID,
|
|
2054
|
+
'firmwareType': firmwareType,
|
|
2055
|
+
'filename': filename
|
|
1943
2056
|
};
|
|
1944
2057
|
var queryParams = {
|
|
1945
|
-
version: opts[
|
|
1946
|
-
notes: opts[
|
|
2058
|
+
'version': opts['version'],
|
|
2059
|
+
'notes': opts['notes']
|
|
1947
2060
|
};
|
|
1948
2061
|
var headerParams = {};
|
|
1949
2062
|
var formParams = {};
|
|
1950
|
-
var authNames = [
|
|
1951
|
-
var contentTypes = [
|
|
1952
|
-
var accepts = [
|
|
2063
|
+
var authNames = ['personalAccessToken'];
|
|
2064
|
+
var contentTypes = ['application/octet-stream'];
|
|
2065
|
+
var accepts = ['application/json'];
|
|
1953
2066
|
var returnType = _FirmwareInfo["default"];
|
|
1954
|
-
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);
|
|
1955
2068
|
}
|
|
1956
2069
|
|
|
1957
2070
|
/**
|
|
1958
2071
|
* Upload firmware binary
|
|
1959
|
-
* @param {String} projectOrProductUID
|
|
1960
|
-
* @param {module:model/String} firmwareType
|
|
1961
|
-
* @param {String} filename
|
|
2072
|
+
* @param {String} projectOrProductUID
|
|
2073
|
+
* @param {module:model/String} firmwareType
|
|
2074
|
+
* @param {String} filename
|
|
1962
2075
|
* @param {File} body contents of the firmware binary
|
|
1963
2076
|
* @param {Object} opts Optional parameters
|
|
1964
2077
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|