@blues-inc/notehub-js 5.0.0-beta.9 → 6.0.0
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 +243 -248
- 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 +14 -14
- package/dist/api/DeviceApi.js +341 -341
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +395 -395
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +75 -63
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- 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/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/CreateMonitor.js +126 -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/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- 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 +67 -69
- 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 +60 -60
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +18 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +20 -12
- package/dist/model/GetSessionsUsage200Response.js +26 -16
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- 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 +100 -101
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- 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 +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- 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/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +36 -38
- 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/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +47 -47
- package/dist/model/UsageEventsData.js +43 -43
- package/dist/model/UsageEventsResponse.js +20 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +32 -32
- 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
|
@@ -37,7 +37,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
38
|
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); } /**
|
|
39
39
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
40
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
41
41
|
*
|
|
42
42
|
* The version of the OpenAPI document: 1.2.0
|
|
43
43
|
* Contact: engineering@blues.io
|
|
@@ -48,18 +48,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
|
-
* Project service.
|
|
52
|
-
* @module api/ProjectApi
|
|
53
|
-
* @version
|
|
54
|
-
*/
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 6.0.0
|
|
54
|
+
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
* Constructs a new ProjectApi.
|
|
58
|
+
* @alias module:api/ProjectApi
|
|
59
|
+
* @class
|
|
60
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
61
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
62
|
+
*/
|
|
63
63
|
function ProjectApi(apiClient) {
|
|
64
64
|
_classCallCheck(this, ProjectApi);
|
|
65
65
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -67,9 +67,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Add Device to Fleets
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
71
|
-
* @param {String} deviceUID
|
|
72
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
|
+
* @param {String} deviceUID
|
|
72
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
73
73
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
74
74
|
*/
|
|
75
75
|
return _createClass(ProjectApi, [{
|
|
@@ -89,24 +89,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
89
|
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
90
90
|
}
|
|
91
91
|
var pathParams = {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
projectOrProductUID: projectOrProductUID,
|
|
93
|
+
deviceUID: deviceUID
|
|
94
94
|
};
|
|
95
95
|
var queryParams = {};
|
|
96
96
|
var headerParams = {};
|
|
97
97
|
var formParams = {};
|
|
98
|
-
var authNames = [
|
|
99
|
-
var contentTypes = [
|
|
100
|
-
var accepts = [
|
|
98
|
+
var authNames = ["personalAccessToken"];
|
|
99
|
+
var contentTypes = ["application/json"];
|
|
100
|
+
var accepts = ["application/json"];
|
|
101
101
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
102
|
-
return this.apiClient.callApi(
|
|
102
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Add Device to Fleets
|
|
107
|
-
* @param {String} projectOrProductUID
|
|
108
|
-
* @param {String} deviceUID
|
|
109
|
-
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
107
|
+
* @param {String} projectOrProductUID
|
|
108
|
+
* @param {String} deviceUID
|
|
109
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
110
110
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
111
111
|
*/
|
|
112
112
|
}, {
|
|
@@ -119,7 +119,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* Clone a Project
|
|
122
|
-
* @param {String} projectOrProductUID
|
|
122
|
+
* @param {String} projectOrProductUID
|
|
123
123
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
124
124
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
125
125
|
*/
|
|
@@ -136,21 +136,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
136
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
137
137
|
}
|
|
138
138
|
var pathParams = {
|
|
139
|
-
|
|
139
|
+
projectOrProductUID: projectOrProductUID
|
|
140
140
|
};
|
|
141
141
|
var queryParams = {};
|
|
142
142
|
var headerParams = {};
|
|
143
143
|
var formParams = {};
|
|
144
|
-
var authNames = [
|
|
145
|
-
var contentTypes = [
|
|
146
|
-
var accepts = [
|
|
144
|
+
var authNames = ["personalAccessToken"];
|
|
145
|
+
var contentTypes = ["application/json"];
|
|
146
|
+
var accepts = ["application/json"];
|
|
147
147
|
var returnType = _Project["default"];
|
|
148
|
-
return this.apiClient.callApi(
|
|
148
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Clone a Project
|
|
153
|
-
* @param {String} projectOrProductUID
|
|
153
|
+
* @param {String} projectOrProductUID
|
|
154
154
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
155
155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
156
156
|
*/
|
|
@@ -164,7 +164,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Create Fleet
|
|
167
|
-
* @param {String} projectOrProductUID
|
|
167
|
+
* @param {String} projectOrProductUID
|
|
168
168
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
169
169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
170
170
|
*/
|
|
@@ -181,21 +181,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
181
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
182
182
|
}
|
|
183
183
|
var pathParams = {
|
|
184
|
-
|
|
184
|
+
projectOrProductUID: projectOrProductUID
|
|
185
185
|
};
|
|
186
186
|
var queryParams = {};
|
|
187
187
|
var headerParams = {};
|
|
188
188
|
var formParams = {};
|
|
189
|
-
var authNames = [
|
|
190
|
-
var contentTypes = [
|
|
191
|
-
var accepts = [
|
|
189
|
+
var authNames = ["personalAccessToken"];
|
|
190
|
+
var contentTypes = ["application/json"];
|
|
191
|
+
var accepts = ["application/json"];
|
|
192
192
|
var returnType = _Fleet["default"];
|
|
193
|
-
return this.apiClient.callApi(
|
|
193
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* Create Fleet
|
|
198
|
-
* @param {String} projectOrProductUID
|
|
198
|
+
* @param {String} projectOrProductUID
|
|
199
199
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
200
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
201
201
|
*/
|
|
@@ -209,7 +209,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* Create Product within a Project
|
|
212
|
-
* @param {String} projectOrProductUID
|
|
212
|
+
* @param {String} projectOrProductUID
|
|
213
213
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
214
214
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
215
215
|
*/
|
|
@@ -226,21 +226,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
226
226
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
227
227
|
}
|
|
228
228
|
var pathParams = {
|
|
229
|
-
|
|
229
|
+
projectOrProductUID: projectOrProductUID
|
|
230
230
|
};
|
|
231
231
|
var queryParams = {};
|
|
232
232
|
var headerParams = {};
|
|
233
233
|
var formParams = {};
|
|
234
|
-
var authNames = [
|
|
235
|
-
var contentTypes = [
|
|
236
|
-
var accepts = [
|
|
234
|
+
var authNames = ["personalAccessToken"];
|
|
235
|
+
var contentTypes = ["application/json"];
|
|
236
|
+
var accepts = ["application/json"];
|
|
237
237
|
var returnType = _Product["default"];
|
|
238
|
-
return this.apiClient.callApi(
|
|
238
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Create Product within a Project
|
|
243
|
-
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} projectOrProductUID
|
|
244
244
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
245
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
246
246
|
*/
|
|
@@ -269,11 +269,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
269
269
|
var queryParams = {};
|
|
270
270
|
var headerParams = {};
|
|
271
271
|
var formParams = {};
|
|
272
|
-
var authNames = [
|
|
273
|
-
var contentTypes = [
|
|
274
|
-
var accepts = [
|
|
272
|
+
var authNames = ["personalAccessToken"];
|
|
273
|
+
var contentTypes = ["application/json"];
|
|
274
|
+
var accepts = ["application/json"];
|
|
275
275
|
var returnType = _Project["default"];
|
|
276
|
-
return this.apiClient.callApi(
|
|
276
|
+
return this.apiClient.callApi("/v1/projects", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/**
|
|
@@ -291,9 +291,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Remove Device from Fleets
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} deviceUID
|
|
296
|
-
* @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.
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} deviceUID
|
|
296
|
+
* @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.
|
|
297
297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
298
298
|
*/
|
|
299
299
|
}, {
|
|
@@ -313,24 +313,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
313
313
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
314
314
|
}
|
|
315
315
|
var pathParams = {
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
projectOrProductUID: projectOrProductUID,
|
|
317
|
+
deviceUID: deviceUID
|
|
318
318
|
};
|
|
319
319
|
var queryParams = {};
|
|
320
320
|
var headerParams = {};
|
|
321
321
|
var formParams = {};
|
|
322
|
-
var authNames = [
|
|
323
|
-
var contentTypes = [
|
|
324
|
-
var accepts = [
|
|
322
|
+
var authNames = ["personalAccessToken"];
|
|
323
|
+
var contentTypes = ["application/json"];
|
|
324
|
+
var accepts = ["application/json"];
|
|
325
325
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
326
|
-
return this.apiClient.callApi(
|
|
326
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
/**
|
|
330
330
|
* Remove Device from Fleets
|
|
331
|
-
* @param {String} projectOrProductUID
|
|
332
|
-
* @param {String} deviceUID
|
|
333
|
-
* @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.
|
|
331
|
+
* @param {String} projectOrProductUID
|
|
332
|
+
* @param {String} deviceUID
|
|
333
|
+
* @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.
|
|
334
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
335
335
|
*/
|
|
336
336
|
}, {
|
|
@@ -343,8 +343,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* Delete Fleet
|
|
346
|
-
* @param {String} projectOrProductUID
|
|
347
|
-
* @param {String} fleetUID
|
|
346
|
+
* @param {String} projectOrProductUID
|
|
347
|
+
* @param {String} fleetUID
|
|
348
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
349
349
|
*/
|
|
350
350
|
}, {
|
|
@@ -360,23 +360,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
360
360
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
361
361
|
}
|
|
362
362
|
var pathParams = {
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
projectOrProductUID: projectOrProductUID,
|
|
364
|
+
fleetUID: fleetUID
|
|
365
365
|
};
|
|
366
366
|
var queryParams = {};
|
|
367
367
|
var headerParams = {};
|
|
368
368
|
var formParams = {};
|
|
369
|
-
var authNames = [
|
|
369
|
+
var authNames = ["personalAccessToken"];
|
|
370
370
|
var contentTypes = [];
|
|
371
|
-
var accepts = [
|
|
371
|
+
var accepts = ["application/json"];
|
|
372
372
|
var returnType = null;
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Delete Fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
380
380
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
381
381
|
*/
|
|
382
382
|
}, {
|
|
@@ -389,8 +389,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
391
|
* Delete environment variables of a fleet
|
|
392
|
-
* @param {String} projectOrProductUID
|
|
393
|
-
* @param {String} fleetUID
|
|
392
|
+
* @param {String} projectOrProductUID
|
|
393
|
+
* @param {String} fleetUID
|
|
394
394
|
* @param {String} key The environment variable key to delete.
|
|
395
395
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
396
396
|
*/
|
|
@@ -411,24 +411,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
411
411
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
412
412
|
}
|
|
413
413
|
var pathParams = {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
projectOrProductUID: projectOrProductUID,
|
|
415
|
+
fleetUID: fleetUID,
|
|
416
|
+
key: key
|
|
417
417
|
};
|
|
418
418
|
var queryParams = {};
|
|
419
419
|
var headerParams = {};
|
|
420
420
|
var formParams = {};
|
|
421
|
-
var authNames = [
|
|
421
|
+
var authNames = ["personalAccessToken"];
|
|
422
422
|
var contentTypes = [];
|
|
423
|
-
var accepts = [
|
|
423
|
+
var accepts = ["application/json"];
|
|
424
424
|
var returnType = _EnvironmentVariables["default"];
|
|
425
|
-
return this.apiClient.callApi(
|
|
425
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* Delete environment variables of a fleet
|
|
430
|
-
* @param {String} projectOrProductUID
|
|
431
|
-
* @param {String} fleetUID
|
|
430
|
+
* @param {String} projectOrProductUID
|
|
431
|
+
* @param {String} fleetUID
|
|
432
432
|
* @param {String} key The environment variable key to delete.
|
|
433
433
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
434
434
|
*/
|
|
@@ -442,8 +442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
444
|
* Delete a product
|
|
445
|
-
* @param {String} projectOrProductUID
|
|
446
|
-
* @param {String} productUID
|
|
445
|
+
* @param {String} projectOrProductUID
|
|
446
|
+
* @param {String} productUID
|
|
447
447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
448
448
|
*/
|
|
449
449
|
}, {
|
|
@@ -459,23 +459,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
459
459
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
460
460
|
}
|
|
461
461
|
var pathParams = {
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
projectOrProductUID: projectOrProductUID,
|
|
463
|
+
productUID: productUID
|
|
464
464
|
};
|
|
465
465
|
var queryParams = {};
|
|
466
466
|
var headerParams = {};
|
|
467
467
|
var formParams = {};
|
|
468
|
-
var authNames = [
|
|
468
|
+
var authNames = ["personalAccessToken"];
|
|
469
469
|
var contentTypes = [];
|
|
470
|
-
var accepts = [
|
|
470
|
+
var accepts = ["application/json"];
|
|
471
471
|
var returnType = null;
|
|
472
|
-
return this.apiClient.callApi(
|
|
472
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products/{productUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* Delete a product
|
|
477
|
-
* @param {String} projectOrProductUID
|
|
478
|
-
* @param {String} productUID
|
|
477
|
+
* @param {String} projectOrProductUID
|
|
478
|
+
* @param {String} productUID
|
|
479
479
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
480
480
|
*/
|
|
481
481
|
}, {
|
|
@@ -488,7 +488,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
488
488
|
|
|
489
489
|
/**
|
|
490
490
|
* Delete a Project by ProjectUID
|
|
491
|
-
* @param {String} projectOrProductUID
|
|
491
|
+
* @param {String} projectOrProductUID
|
|
492
492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
493
493
|
*/
|
|
494
494
|
}, {
|
|
@@ -500,21 +500,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
500
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
501
501
|
}
|
|
502
502
|
var pathParams = {
|
|
503
|
-
|
|
503
|
+
projectOrProductUID: projectOrProductUID
|
|
504
504
|
};
|
|
505
505
|
var queryParams = {};
|
|
506
506
|
var headerParams = {};
|
|
507
507
|
var formParams = {};
|
|
508
|
-
var authNames = [
|
|
508
|
+
var authNames = ["personalAccessToken"];
|
|
509
509
|
var contentTypes = [];
|
|
510
|
-
var accepts = [
|
|
510
|
+
var accepts = ["application/json"];
|
|
511
511
|
var returnType = null;
|
|
512
|
-
return this.apiClient.callApi(
|
|
512
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
516
|
* Delete a Project by ProjectUID
|
|
517
|
-
* @param {String} projectOrProductUID
|
|
517
|
+
* @param {String} projectOrProductUID
|
|
518
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
519
519
|
*/
|
|
520
520
|
}, {
|
|
@@ -527,7 +527,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* Delete an environment variable of a project by key
|
|
530
|
-
* @param {String} projectOrProductUID
|
|
530
|
+
* @param {String} projectOrProductUID
|
|
531
531
|
* @param {String} key The environment variable key to delete.
|
|
532
532
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
533
533
|
*/
|
|
@@ -544,22 +544,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
544
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
545
545
|
}
|
|
546
546
|
var pathParams = {
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
projectOrProductUID: projectOrProductUID,
|
|
548
|
+
key: key
|
|
549
549
|
};
|
|
550
550
|
var queryParams = {};
|
|
551
551
|
var headerParams = {};
|
|
552
552
|
var formParams = {};
|
|
553
|
-
var authNames = [
|
|
553
|
+
var authNames = ["personalAccessToken"];
|
|
554
554
|
var contentTypes = [];
|
|
555
|
-
var accepts = [
|
|
555
|
+
var accepts = ["application/json"];
|
|
556
556
|
var returnType = _EnvironmentVariables["default"];
|
|
557
|
-
return this.apiClient.callApi(
|
|
557
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* Delete an environment variable of a project by key
|
|
562
|
-
* @param {String} projectOrProductUID
|
|
562
|
+
* @param {String} projectOrProductUID
|
|
563
563
|
* @param {String} key The environment variable key to delete.
|
|
564
564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
565
565
|
*/
|
|
@@ -573,7 +573,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* Disable the project-level event JSONata transformation
|
|
576
|
-
* @param {String} projectOrProductUID
|
|
576
|
+
* @param {String} projectOrProductUID
|
|
577
577
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
578
578
|
*/
|
|
579
579
|
}, {
|
|
@@ -585,21 +585,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
585
585
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
586
586
|
}
|
|
587
587
|
var pathParams = {
|
|
588
|
-
|
|
588
|
+
projectOrProductUID: projectOrProductUID
|
|
589
589
|
};
|
|
590
590
|
var queryParams = {};
|
|
591
591
|
var headerParams = {};
|
|
592
592
|
var formParams = {};
|
|
593
|
-
var authNames = [
|
|
593
|
+
var authNames = ["personalAccessToken"];
|
|
594
594
|
var contentTypes = [];
|
|
595
|
-
var accepts = [
|
|
595
|
+
var accepts = ["application/json"];
|
|
596
596
|
var returnType = null;
|
|
597
|
-
return this.apiClient.callApi(
|
|
597
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
601
|
* Disable the project-level event JSONata transformation
|
|
602
|
-
* @param {String} projectOrProductUID
|
|
602
|
+
* @param {String} projectOrProductUID
|
|
603
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
604
604
|
*/
|
|
605
605
|
}, {
|
|
@@ -612,9 +612,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
614
|
* Download firmware binary
|
|
615
|
-
* @param {String} projectOrProductUID
|
|
616
|
-
* @param {module:model/String} firmwareType
|
|
617
|
-
* @param {String} filename
|
|
615
|
+
* @param {String} projectOrProductUID
|
|
616
|
+
* @param {module:model/String} firmwareType
|
|
617
|
+
* @param {String} filename
|
|
618
618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
619
619
|
*/
|
|
620
620
|
}, {
|
|
@@ -634,25 +634,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
634
634
|
throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
|
|
635
635
|
}
|
|
636
636
|
var pathParams = {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
projectOrProductUID: projectOrProductUID,
|
|
638
|
+
firmwareType: firmwareType,
|
|
639
|
+
filename: filename
|
|
640
640
|
};
|
|
641
641
|
var queryParams = {};
|
|
642
642
|
var headerParams = {};
|
|
643
643
|
var formParams = {};
|
|
644
|
-
var authNames = [
|
|
644
|
+
var authNames = ["personalAccessToken"];
|
|
645
645
|
var contentTypes = [];
|
|
646
|
-
var accepts = [
|
|
646
|
+
var accepts = ["application/octet-stream", "application/json"];
|
|
647
647
|
var returnType = File;
|
|
648
|
-
return this.apiClient.callApi(
|
|
648
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
/**
|
|
652
652
|
* Download firmware binary
|
|
653
|
-
* @param {String} projectOrProductUID
|
|
654
|
-
* @param {module:model/String} firmwareType
|
|
655
|
-
* @param {String} filename
|
|
653
|
+
* @param {String} projectOrProductUID
|
|
654
|
+
* @param {module:model/String} firmwareType
|
|
655
|
+
* @param {String} filename
|
|
656
656
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
657
657
|
*/
|
|
658
658
|
}, {
|
|
@@ -665,7 +665,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
665
665
|
|
|
666
666
|
/**
|
|
667
667
|
* Enable the project-level event JSONata transformation
|
|
668
|
-
* @param {String} projectOrProductUID
|
|
668
|
+
* @param {String} projectOrProductUID
|
|
669
669
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
670
670
|
*/
|
|
671
671
|
}, {
|
|
@@ -677,21 +677,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
677
677
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
678
678
|
}
|
|
679
679
|
var pathParams = {
|
|
680
|
-
|
|
680
|
+
projectOrProductUID: projectOrProductUID
|
|
681
681
|
};
|
|
682
682
|
var queryParams = {};
|
|
683
683
|
var headerParams = {};
|
|
684
684
|
var formParams = {};
|
|
685
|
-
var authNames = [
|
|
685
|
+
var authNames = ["personalAccessToken"];
|
|
686
686
|
var contentTypes = [];
|
|
687
|
-
var accepts = [
|
|
687
|
+
var accepts = ["application/json"];
|
|
688
688
|
var returnType = null;
|
|
689
|
-
return this.apiClient.callApi(
|
|
689
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
693
|
* Enable the project-level event JSONata transformation
|
|
694
|
-
* @param {String} projectOrProductUID
|
|
694
|
+
* @param {String} projectOrProductUID
|
|
695
695
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
696
696
|
*/
|
|
697
697
|
}, {
|
|
@@ -704,9 +704,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
704
704
|
|
|
705
705
|
/**
|
|
706
706
|
* Get device DFU history for host or Notecard firmware
|
|
707
|
-
* @param {String} projectOrProductUID
|
|
708
|
-
* @param {String} deviceUID
|
|
709
|
-
* @param {module:model/String} firmwareType
|
|
707
|
+
* @param {String} projectOrProductUID
|
|
708
|
+
* @param {String} deviceUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
710
710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
711
711
|
*/
|
|
712
712
|
}, {
|
|
@@ -726,25 +726,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
726
726
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
727
727
|
}
|
|
728
728
|
var pathParams = {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
729
|
+
projectOrProductUID: projectOrProductUID,
|
|
730
|
+
deviceUID: deviceUID,
|
|
731
|
+
firmwareType: firmwareType
|
|
732
732
|
};
|
|
733
733
|
var queryParams = {};
|
|
734
734
|
var headerParams = {};
|
|
735
735
|
var formParams = {};
|
|
736
|
-
var authNames = [
|
|
736
|
+
var authNames = ["personalAccessToken"];
|
|
737
737
|
var contentTypes = [];
|
|
738
|
-
var accepts = [
|
|
738
|
+
var accepts = ["application/json"];
|
|
739
739
|
var returnType = _DeviceDfuHistory["default"];
|
|
740
|
-
return this.apiClient.callApi(
|
|
740
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
/**
|
|
744
744
|
* Get device DFU history for host or Notecard firmware
|
|
745
|
-
* @param {String} projectOrProductUID
|
|
746
|
-
* @param {String} deviceUID
|
|
747
|
-
* @param {module:model/String} firmwareType
|
|
745
|
+
* @param {String} projectOrProductUID
|
|
746
|
+
* @param {String} deviceUID
|
|
747
|
+
* @param {module:model/String} firmwareType
|
|
748
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
749
749
|
*/
|
|
750
750
|
}, {
|
|
@@ -757,9 +757,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
757
757
|
|
|
758
758
|
/**
|
|
759
759
|
* Get device DFU history for host or Notecard firmware
|
|
760
|
-
* @param {String} projectOrProductUID
|
|
761
|
-
* @param {String} deviceUID
|
|
762
|
-
* @param {module:model/String} firmwareType
|
|
760
|
+
* @param {String} projectOrProductUID
|
|
761
|
+
* @param {String} deviceUID
|
|
762
|
+
* @param {module:model/String} firmwareType
|
|
763
763
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
764
764
|
*/
|
|
765
765
|
}, {
|
|
@@ -779,25 +779,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
779
779
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
780
780
|
}
|
|
781
781
|
var pathParams = {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
782
|
+
projectOrProductUID: projectOrProductUID,
|
|
783
|
+
deviceUID: deviceUID,
|
|
784
|
+
firmwareType: firmwareType
|
|
785
785
|
};
|
|
786
786
|
var queryParams = {};
|
|
787
787
|
var headerParams = {};
|
|
788
788
|
var formParams = {};
|
|
789
|
-
var authNames = [
|
|
789
|
+
var authNames = ["personalAccessToken"];
|
|
790
790
|
var contentTypes = [];
|
|
791
|
-
var accepts = [
|
|
791
|
+
var accepts = ["application/json"];
|
|
792
792
|
var returnType = _DeviceDfuStatus["default"];
|
|
793
|
-
return this.apiClient.callApi(
|
|
793
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
/**
|
|
797
797
|
* Get device DFU history for host or Notecard firmware
|
|
798
|
-
* @param {String} projectOrProductUID
|
|
799
|
-
* @param {String} deviceUID
|
|
800
|
-
* @param {module:model/String} firmwareType
|
|
798
|
+
* @param {String} projectOrProductUID
|
|
799
|
+
* @param {String} deviceUID
|
|
800
|
+
* @param {module:model/String} firmwareType
|
|
801
801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
802
802
|
*/
|
|
803
803
|
}, {
|
|
@@ -810,8 +810,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
810
810
|
|
|
811
811
|
/**
|
|
812
812
|
* Get Device Fleets
|
|
813
|
-
* @param {String} projectOrProductUID
|
|
814
|
-
* @param {String} deviceUID
|
|
813
|
+
* @param {String} projectOrProductUID
|
|
814
|
+
* @param {String} deviceUID
|
|
815
815
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
816
816
|
*/
|
|
817
817
|
}, {
|
|
@@ -827,23 +827,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
827
827
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
828
828
|
}
|
|
829
829
|
var pathParams = {
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
projectOrProductUID: projectOrProductUID,
|
|
831
|
+
deviceUID: deviceUID
|
|
832
832
|
};
|
|
833
833
|
var queryParams = {};
|
|
834
834
|
var headerParams = {};
|
|
835
835
|
var formParams = {};
|
|
836
|
-
var authNames = [
|
|
836
|
+
var authNames = ["personalAccessToken"];
|
|
837
837
|
var contentTypes = [];
|
|
838
|
-
var accepts = [
|
|
838
|
+
var accepts = ["application/json"];
|
|
839
839
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
840
|
-
return this.apiClient.callApi(
|
|
840
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
/**
|
|
844
844
|
* Get Device Fleets
|
|
845
|
-
* @param {String} projectOrProductUID
|
|
846
|
-
* @param {String} deviceUID
|
|
845
|
+
* @param {String} projectOrProductUID
|
|
846
|
+
* @param {String} deviceUID
|
|
847
847
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
848
848
|
*/
|
|
849
849
|
}, {
|
|
@@ -856,8 +856,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
856
856
|
|
|
857
857
|
/**
|
|
858
858
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
859
|
-
* @param {String} projectOrProductUID
|
|
860
|
-
* @param {module:model/String} firmwareType
|
|
859
|
+
* @param {String} projectOrProductUID
|
|
860
|
+
* @param {module:model/String} firmwareType
|
|
861
861
|
* @param {Object} opts Optional parameters
|
|
862
862
|
* @param {Number} opts.pageSize (default to 50)
|
|
863
863
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -866,11 +866,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
866
866
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
867
867
|
* @param {Array.<String>} opts.tag Tag filter
|
|
868
868
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
869
|
-
* @param {String} opts.fleetUID
|
|
869
|
+
* @param {String} opts.fleetUID
|
|
870
870
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
871
871
|
* @param {Array.<String>} opts.location Location filter
|
|
872
872
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
873
|
-
* @param {Array.<String>} opts.productUID
|
|
873
|
+
* @param {Array.<String>} opts.productUID
|
|
874
874
|
* @param {Array.<String>} opts.sku SKU filter
|
|
875
875
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
876
876
|
*/
|
|
@@ -888,37 +888,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
888
888
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
889
889
|
}
|
|
890
890
|
var pathParams = {
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
projectOrProductUID: projectOrProductUID,
|
|
892
|
+
firmwareType: firmwareType
|
|
893
893
|
};
|
|
894
894
|
var queryParams = {
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
895
|
+
pageSize: opts["pageSize"],
|
|
896
|
+
pageNum: opts["pageNum"],
|
|
897
|
+
sortBy: opts["sortBy"],
|
|
898
|
+
sortOrder: opts["sortOrder"],
|
|
899
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
900
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
901
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
902
|
+
fleetUID: opts["fleetUID"],
|
|
903
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
904
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
905
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
906
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
907
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
908
908
|
};
|
|
909
909
|
var headerParams = {};
|
|
910
910
|
var formParams = {};
|
|
911
|
-
var authNames = [
|
|
911
|
+
var authNames = ["personalAccessToken"];
|
|
912
912
|
var contentTypes = [];
|
|
913
|
-
var accepts = [
|
|
913
|
+
var accepts = ["application/json"];
|
|
914
914
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
915
|
-
return this.apiClient.callApi(
|
|
915
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
/**
|
|
919
919
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
920
|
-
* @param {String} projectOrProductUID
|
|
921
|
-
* @param {module:model/String} firmwareType
|
|
920
|
+
* @param {String} projectOrProductUID
|
|
921
|
+
* @param {module:model/String} firmwareType
|
|
922
922
|
* @param {Object} opts Optional parameters
|
|
923
923
|
* @param {Number} opts.pageSize (default to 50)
|
|
924
924
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -927,11 +927,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
927
927
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
928
928
|
* @param {Array.<String>} opts.tag Tag filter
|
|
929
929
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
930
|
-
* @param {String} opts.fleetUID
|
|
930
|
+
* @param {String} opts.fleetUID
|
|
931
931
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
932
932
|
* @param {Array.<String>} opts.location Location filter
|
|
933
933
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
934
|
-
* @param {Array.<String>} opts.productUID
|
|
934
|
+
* @param {Array.<String>} opts.productUID
|
|
935
935
|
* @param {Array.<String>} opts.sku SKU filter
|
|
936
936
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
937
937
|
*/
|
|
@@ -945,8 +945,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
948
|
-
* @param {String} projectOrProductUID
|
|
949
|
-
* @param {module:model/String} firmwareType
|
|
948
|
+
* @param {String} projectOrProductUID
|
|
949
|
+
* @param {module:model/String} firmwareType
|
|
950
950
|
* @param {Object} opts Optional parameters
|
|
951
951
|
* @param {Number} opts.pageSize (default to 50)
|
|
952
952
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -955,11 +955,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
955
955
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
956
956
|
* @param {Array.<String>} opts.tag Tag filter
|
|
957
957
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
958
|
-
* @param {String} opts.fleetUID
|
|
958
|
+
* @param {String} opts.fleetUID
|
|
959
959
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
960
960
|
* @param {Array.<String>} opts.location Location filter
|
|
961
961
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
962
|
-
* @param {Array.<String>} opts.productUID
|
|
962
|
+
* @param {Array.<String>} opts.productUID
|
|
963
963
|
* @param {Array.<String>} opts.sku SKU filter
|
|
964
964
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
965
965
|
*/
|
|
@@ -977,37 +977,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
977
977
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
978
978
|
}
|
|
979
979
|
var pathParams = {
|
|
980
|
-
|
|
981
|
-
|
|
980
|
+
projectOrProductUID: projectOrProductUID,
|
|
981
|
+
firmwareType: firmwareType
|
|
982
982
|
};
|
|
983
983
|
var queryParams = {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
984
|
+
pageSize: opts["pageSize"],
|
|
985
|
+
pageNum: opts["pageNum"],
|
|
986
|
+
sortBy: opts["sortBy"],
|
|
987
|
+
sortOrder: opts["sortOrder"],
|
|
988
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
989
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
990
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
991
|
+
fleetUID: opts["fleetUID"],
|
|
992
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
993
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
994
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
995
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
996
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
997
997
|
};
|
|
998
998
|
var headerParams = {};
|
|
999
999
|
var formParams = {};
|
|
1000
|
-
var authNames = [
|
|
1000
|
+
var authNames = ["personalAccessToken"];
|
|
1001
1001
|
var contentTypes = [];
|
|
1002
|
-
var accepts = [
|
|
1002
|
+
var accepts = ["application/json"];
|
|
1003
1003
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
1004
|
-
return this.apiClient.callApi(
|
|
1004
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
1009
|
-
* @param {String} projectOrProductUID
|
|
1010
|
-
* @param {module:model/String} firmwareType
|
|
1009
|
+
* @param {String} projectOrProductUID
|
|
1010
|
+
* @param {module:model/String} firmwareType
|
|
1011
1011
|
* @param {Object} opts Optional parameters
|
|
1012
1012
|
* @param {Number} opts.pageSize (default to 50)
|
|
1013
1013
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1016,11 +1016,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1016
1016
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1017
1017
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1018
1018
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1019
|
-
* @param {String} opts.fleetUID
|
|
1019
|
+
* @param {String} opts.fleetUID
|
|
1020
1020
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1021
1021
|
* @param {Array.<String>} opts.location Location filter
|
|
1022
1022
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1023
|
-
* @param {Array.<String>} opts.productUID
|
|
1023
|
+
* @param {Array.<String>} opts.productUID
|
|
1024
1024
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1025
1025
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1026
1026
|
*/
|
|
@@ -1034,15 +1034,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1034
1034
|
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Get Available Firmware Information
|
|
1037
|
-
* @param {String} projectOrProductUID
|
|
1037
|
+
* @param {String} projectOrProductUID
|
|
1038
1038
|
* @param {Object} opts Optional parameters
|
|
1039
|
-
* @param {String} opts.product
|
|
1040
|
-
* @param {String} opts.firmwareType
|
|
1041
|
-
* @param {String} opts.version
|
|
1042
|
-
* @param {String} opts.target
|
|
1043
|
-
* @param {String} opts.filename
|
|
1044
|
-
* @param {String} opts.md5
|
|
1045
|
-
* @param {Boolean} opts.unpublished
|
|
1039
|
+
* @param {String} opts.product
|
|
1040
|
+
* @param {String} opts.firmwareType
|
|
1041
|
+
* @param {String} opts.version
|
|
1042
|
+
* @param {String} opts.target
|
|
1043
|
+
* @param {String} opts.filename
|
|
1044
|
+
* @param {String} opts.md5
|
|
1045
|
+
* @param {Boolean} opts.unpublished
|
|
1046
1046
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1047
1047
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1048
1048
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1057,39 +1057,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1057
1057
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1058
1058
|
}
|
|
1059
1059
|
var pathParams = {
|
|
1060
|
-
|
|
1060
|
+
projectOrProductUID: projectOrProductUID
|
|
1061
1061
|
};
|
|
1062
1062
|
var queryParams = {
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1063
|
+
product: opts["product"],
|
|
1064
|
+
firmwareType: opts["firmwareType"],
|
|
1065
|
+
version: opts["version"],
|
|
1066
|
+
target: opts["target"],
|
|
1067
|
+
filename: opts["filename"],
|
|
1068
|
+
md5: opts["md5"],
|
|
1069
|
+
unpublished: opts["unpublished"],
|
|
1070
|
+
sortBy: opts["sortBy"],
|
|
1071
|
+
sortOrder: opts["sortOrder"]
|
|
1072
1072
|
};
|
|
1073
1073
|
var headerParams = {};
|
|
1074
1074
|
var formParams = {};
|
|
1075
|
-
var authNames = [
|
|
1075
|
+
var authNames = ["personalAccessToken"];
|
|
1076
1076
|
var contentTypes = [];
|
|
1077
|
-
var accepts = [
|
|
1077
|
+
var accepts = ["application/json"];
|
|
1078
1078
|
var returnType = [_FirmwareInfo["default"]];
|
|
1079
|
-
return this.apiClient.callApi(
|
|
1079
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Get Available Firmware Information
|
|
1084
|
-
* @param {String} projectOrProductUID
|
|
1084
|
+
* @param {String} projectOrProductUID
|
|
1085
1085
|
* @param {Object} opts Optional parameters
|
|
1086
|
-
* @param {String} opts.product
|
|
1087
|
-
* @param {String} opts.firmwareType
|
|
1088
|
-
* @param {String} opts.version
|
|
1089
|
-
* @param {String} opts.target
|
|
1090
|
-
* @param {String} opts.filename
|
|
1091
|
-
* @param {String} opts.md5
|
|
1092
|
-
* @param {Boolean} opts.unpublished
|
|
1086
|
+
* @param {String} opts.product
|
|
1087
|
+
* @param {String} opts.firmwareType
|
|
1088
|
+
* @param {String} opts.version
|
|
1089
|
+
* @param {String} opts.target
|
|
1090
|
+
* @param {String} opts.filename
|
|
1091
|
+
* @param {String} opts.md5
|
|
1092
|
+
* @param {Boolean} opts.unpublished
|
|
1093
1093
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1094
1094
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1095
1095
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1104,8 +1104,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1104
1104
|
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Get Fleet
|
|
1107
|
-
* @param {String} projectOrProductUID
|
|
1108
|
-
* @param {String} fleetUID
|
|
1107
|
+
* @param {String} projectOrProductUID
|
|
1108
|
+
* @param {String} fleetUID
|
|
1109
1109
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1110
1110
|
*/
|
|
1111
1111
|
}, {
|
|
@@ -1121,23 +1121,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1121
1121
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1122
1122
|
}
|
|
1123
1123
|
var pathParams = {
|
|
1124
|
-
|
|
1125
|
-
|
|
1124
|
+
projectOrProductUID: projectOrProductUID,
|
|
1125
|
+
fleetUID: fleetUID
|
|
1126
1126
|
};
|
|
1127
1127
|
var queryParams = {};
|
|
1128
1128
|
var headerParams = {};
|
|
1129
1129
|
var formParams = {};
|
|
1130
|
-
var authNames = [
|
|
1130
|
+
var authNames = ["personalAccessToken"];
|
|
1131
1131
|
var contentTypes = [];
|
|
1132
|
-
var accepts = [
|
|
1132
|
+
var accepts = ["application/json"];
|
|
1133
1133
|
var returnType = _Fleet["default"];
|
|
1134
|
-
return this.apiClient.callApi(
|
|
1134
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Get Fleet
|
|
1139
|
-
* @param {String} projectOrProductUID
|
|
1140
|
-
* @param {String} fleetUID
|
|
1139
|
+
* @param {String} projectOrProductUID
|
|
1140
|
+
* @param {String} fleetUID
|
|
1141
1141
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1142
1142
|
*/
|
|
1143
1143
|
}, {
|
|
@@ -1150,8 +1150,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1150
1150
|
|
|
1151
1151
|
/**
|
|
1152
1152
|
* Get environment variable hierarchy for a device
|
|
1153
|
-
* @param {String} projectOrProductUID
|
|
1154
|
-
* @param {String} fleetUID
|
|
1153
|
+
* @param {String} projectOrProductUID
|
|
1154
|
+
* @param {String} fleetUID
|
|
1155
1155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1156
1156
|
*/
|
|
1157
1157
|
}, {
|
|
@@ -1167,23 +1167,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1167
1167
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1168
1168
|
}
|
|
1169
1169
|
var pathParams = {
|
|
1170
|
-
|
|
1171
|
-
|
|
1170
|
+
projectOrProductUID: projectOrProductUID,
|
|
1171
|
+
fleetUID: fleetUID
|
|
1172
1172
|
};
|
|
1173
1173
|
var queryParams = {};
|
|
1174
1174
|
var headerParams = {};
|
|
1175
1175
|
var formParams = {};
|
|
1176
|
-
var authNames = [
|
|
1176
|
+
var authNames = ["personalAccessToken"];
|
|
1177
1177
|
var contentTypes = [];
|
|
1178
|
-
var accepts = [
|
|
1178
|
+
var accepts = ["application/json"];
|
|
1179
1179
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1180
|
-
return this.apiClient.callApi(
|
|
1180
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Get environment variable hierarchy for a device
|
|
1185
|
-
* @param {String} projectOrProductUID
|
|
1186
|
-
* @param {String} fleetUID
|
|
1185
|
+
* @param {String} projectOrProductUID
|
|
1186
|
+
* @param {String} fleetUID
|
|
1187
1187
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1188
1188
|
*/
|
|
1189
1189
|
}, {
|
|
@@ -1196,8 +1196,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1196
1196
|
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Get environment variables of a fleet
|
|
1199
|
-
* @param {String} projectOrProductUID
|
|
1200
|
-
* @param {String} fleetUID
|
|
1199
|
+
* @param {String} projectOrProductUID
|
|
1200
|
+
* @param {String} fleetUID
|
|
1201
1201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1202
1202
|
*/
|
|
1203
1203
|
}, {
|
|
@@ -1213,23 +1213,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1213
1213
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1214
1214
|
}
|
|
1215
1215
|
var pathParams = {
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
projectOrProductUID: projectOrProductUID,
|
|
1217
|
+
fleetUID: fleetUID
|
|
1218
1218
|
};
|
|
1219
1219
|
var queryParams = {};
|
|
1220
1220
|
var headerParams = {};
|
|
1221
1221
|
var formParams = {};
|
|
1222
|
-
var authNames = [
|
|
1222
|
+
var authNames = ["personalAccessToken"];
|
|
1223
1223
|
var contentTypes = [];
|
|
1224
|
-
var accepts = [
|
|
1224
|
+
var accepts = ["application/json"];
|
|
1225
1225
|
var returnType = _EnvironmentVariables["default"];
|
|
1226
|
-
return this.apiClient.callApi(
|
|
1226
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Get environment variables of a fleet
|
|
1231
|
-
* @param {String} projectOrProductUID
|
|
1232
|
-
* @param {String} fleetUID
|
|
1231
|
+
* @param {String} projectOrProductUID
|
|
1232
|
+
* @param {String} fleetUID
|
|
1233
1233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1234
1234
|
*/
|
|
1235
1235
|
}, {
|
|
@@ -1242,7 +1242,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1242
1242
|
|
|
1243
1243
|
/**
|
|
1244
1244
|
* Get Project Fleets
|
|
1245
|
-
* @param {String} projectOrProductUID
|
|
1245
|
+
* @param {String} projectOrProductUID
|
|
1246
1246
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1247
1247
|
*/
|
|
1248
1248
|
}, {
|
|
@@ -1254,21 +1254,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1254
1254
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1255
1255
|
}
|
|
1256
1256
|
var pathParams = {
|
|
1257
|
-
|
|
1257
|
+
projectOrProductUID: projectOrProductUID
|
|
1258
1258
|
};
|
|
1259
1259
|
var queryParams = {};
|
|
1260
1260
|
var headerParams = {};
|
|
1261
1261
|
var formParams = {};
|
|
1262
|
-
var authNames = [
|
|
1262
|
+
var authNames = ["personalAccessToken"];
|
|
1263
1263
|
var contentTypes = [];
|
|
1264
|
-
var accepts = [
|
|
1264
|
+
var accepts = ["application/json"];
|
|
1265
1265
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1266
|
-
return this.apiClient.callApi(
|
|
1266
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Get Project Fleets
|
|
1271
|
-
* @param {String} projectOrProductUID
|
|
1271
|
+
* @param {String} projectOrProductUID
|
|
1272
1272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1273
1273
|
*/
|
|
1274
1274
|
}, {
|
|
@@ -1281,7 +1281,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1281
1281
|
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Get variable format for a notefile
|
|
1284
|
-
* @param {String} projectOrProductUID
|
|
1284
|
+
* @param {String} projectOrProductUID
|
|
1285
1285
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1286
1286
|
*/
|
|
1287
1287
|
}, {
|
|
@@ -1293,21 +1293,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1293
1293
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1294
1294
|
}
|
|
1295
1295
|
var pathParams = {
|
|
1296
|
-
|
|
1296
|
+
projectOrProductUID: projectOrProductUID
|
|
1297
1297
|
};
|
|
1298
1298
|
var queryParams = {};
|
|
1299
1299
|
var headerParams = {};
|
|
1300
1300
|
var formParams = {};
|
|
1301
1301
|
var authNames = [];
|
|
1302
1302
|
var contentTypes = [];
|
|
1303
|
-
var accepts = [
|
|
1303
|
+
var accepts = ["application/json"];
|
|
1304
1304
|
var returnType = [_NotefileSchema["default"]];
|
|
1305
|
-
return this.apiClient.callApi(
|
|
1305
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/schemas", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Get variable format for a notefile
|
|
1310
|
-
* @param {String} projectOrProductUID
|
|
1310
|
+
* @param {String} projectOrProductUID
|
|
1311
1311
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1312
1312
|
*/
|
|
1313
1313
|
}, {
|
|
@@ -1320,7 +1320,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1320
1320
|
|
|
1321
1321
|
/**
|
|
1322
1322
|
* Get Products within a Project
|
|
1323
|
-
* @param {String} projectOrProductUID
|
|
1323
|
+
* @param {String} projectOrProductUID
|
|
1324
1324
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1325
1325
|
*/
|
|
1326
1326
|
}, {
|
|
@@ -1332,21 +1332,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1332
1332
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1333
1333
|
}
|
|
1334
1334
|
var pathParams = {
|
|
1335
|
-
|
|
1335
|
+
projectOrProductUID: projectOrProductUID
|
|
1336
1336
|
};
|
|
1337
1337
|
var queryParams = {};
|
|
1338
1338
|
var headerParams = {};
|
|
1339
1339
|
var formParams = {};
|
|
1340
|
-
var authNames = [
|
|
1340
|
+
var authNames = ["personalAccessToken"];
|
|
1341
1341
|
var contentTypes = [];
|
|
1342
|
-
var accepts = [
|
|
1342
|
+
var accepts = ["application/json"];
|
|
1343
1343
|
var returnType = _GetProducts200Response["default"];
|
|
1344
|
-
return this.apiClient.callApi(
|
|
1344
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Get Products within a Project
|
|
1349
|
-
* @param {String} projectOrProductUID
|
|
1349
|
+
* @param {String} projectOrProductUID
|
|
1350
1350
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1351
1351
|
*/
|
|
1352
1352
|
}, {
|
|
@@ -1359,7 +1359,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1359
1359
|
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Get a Project by ProjectUID
|
|
1362
|
-
* @param {String} projectOrProductUID
|
|
1362
|
+
* @param {String} projectOrProductUID
|
|
1363
1363
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1364
1364
|
*/
|
|
1365
1365
|
}, {
|
|
@@ -1371,21 +1371,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1371
1371
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1372
1372
|
}
|
|
1373
1373
|
var pathParams = {
|
|
1374
|
-
|
|
1374
|
+
projectOrProductUID: projectOrProductUID
|
|
1375
1375
|
};
|
|
1376
1376
|
var queryParams = {};
|
|
1377
1377
|
var headerParams = {};
|
|
1378
1378
|
var formParams = {};
|
|
1379
|
-
var authNames = [
|
|
1379
|
+
var authNames = ["personalAccessToken"];
|
|
1380
1380
|
var contentTypes = [];
|
|
1381
|
-
var accepts = [
|
|
1381
|
+
var accepts = ["application/json"];
|
|
1382
1382
|
var returnType = _Project["default"];
|
|
1383
|
-
return this.apiClient.callApi(
|
|
1383
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Get a Project by ProjectUID
|
|
1388
|
-
* @param {String} projectOrProductUID
|
|
1388
|
+
* @param {String} projectOrProductUID
|
|
1389
1389
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1390
1390
|
*/
|
|
1391
1391
|
}, {
|
|
@@ -1398,7 +1398,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1398
1398
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Get a Project by ProductUID
|
|
1401
|
-
* @param {String} productUID
|
|
1401
|
+
* @param {String} productUID
|
|
1402
1402
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1403
1403
|
*/
|
|
1404
1404
|
}, {
|
|
@@ -1410,21 +1410,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1410
1410
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1411
1411
|
}
|
|
1412
1412
|
var pathParams = {
|
|
1413
|
-
|
|
1413
|
+
productUID: productUID
|
|
1414
1414
|
};
|
|
1415
1415
|
var queryParams = {};
|
|
1416
1416
|
var headerParams = {};
|
|
1417
1417
|
var formParams = {};
|
|
1418
|
-
var authNames = [
|
|
1418
|
+
var authNames = ["personalAccessToken"];
|
|
1419
1419
|
var contentTypes = [];
|
|
1420
|
-
var accepts = [
|
|
1420
|
+
var accepts = ["application/json"];
|
|
1421
1421
|
var returnType = _Project["default"];
|
|
1422
|
-
return this.apiClient.callApi(
|
|
1422
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Get a Project by ProductUID
|
|
1427
|
-
* @param {String} productUID
|
|
1427
|
+
* @param {String} productUID
|
|
1428
1428
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1429
1429
|
*/
|
|
1430
1430
|
}, {
|
|
@@ -1437,7 +1437,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1437
1437
|
|
|
1438
1438
|
/**
|
|
1439
1439
|
* Get environment variable hierarchy for a device
|
|
1440
|
-
* @param {String} projectOrProductUID
|
|
1440
|
+
* @param {String} projectOrProductUID
|
|
1441
1441
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1442
1442
|
*/
|
|
1443
1443
|
}, {
|
|
@@ -1449,21 +1449,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1449
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1450
1450
|
}
|
|
1451
1451
|
var pathParams = {
|
|
1452
|
-
|
|
1452
|
+
projectOrProductUID: projectOrProductUID
|
|
1453
1453
|
};
|
|
1454
1454
|
var queryParams = {};
|
|
1455
1455
|
var headerParams = {};
|
|
1456
1456
|
var formParams = {};
|
|
1457
|
-
var authNames = [
|
|
1457
|
+
var authNames = ["personalAccessToken"];
|
|
1458
1458
|
var contentTypes = [];
|
|
1459
|
-
var accepts = [
|
|
1459
|
+
var accepts = ["application/json"];
|
|
1460
1460
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1461
|
-
return this.apiClient.callApi(
|
|
1461
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Get environment variable hierarchy for a device
|
|
1466
|
-
* @param {String} projectOrProductUID
|
|
1466
|
+
* @param {String} projectOrProductUID
|
|
1467
1467
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1468
1468
|
*/
|
|
1469
1469
|
}, {
|
|
@@ -1476,7 +1476,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1476
1476
|
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Get environment variables of a project
|
|
1479
|
-
* @param {String} projectOrProductUID
|
|
1479
|
+
* @param {String} projectOrProductUID
|
|
1480
1480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1481
1481
|
*/
|
|
1482
1482
|
}, {
|
|
@@ -1488,21 +1488,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1488
1488
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1489
1489
|
}
|
|
1490
1490
|
var pathParams = {
|
|
1491
|
-
|
|
1491
|
+
projectOrProductUID: projectOrProductUID
|
|
1492
1492
|
};
|
|
1493
1493
|
var queryParams = {};
|
|
1494
1494
|
var headerParams = {};
|
|
1495
1495
|
var formParams = {};
|
|
1496
|
-
var authNames = [
|
|
1496
|
+
var authNames = ["personalAccessToken"];
|
|
1497
1497
|
var contentTypes = [];
|
|
1498
|
-
var accepts = [
|
|
1498
|
+
var accepts = ["application/json"];
|
|
1499
1499
|
var returnType = _EnvironmentVariables["default"];
|
|
1500
|
-
return this.apiClient.callApi(
|
|
1500
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* Get environment variables of a project
|
|
1505
|
-
* @param {String} projectOrProductUID
|
|
1505
|
+
* @param {String} projectOrProductUID
|
|
1506
1506
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1507
1507
|
*/
|
|
1508
1508
|
}, {
|
|
@@ -1515,7 +1515,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1515
1515
|
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Get Project Members
|
|
1518
|
-
* @param {String} projectOrProductUID
|
|
1518
|
+
* @param {String} projectOrProductUID
|
|
1519
1519
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1520
1520
|
*/
|
|
1521
1521
|
}, {
|
|
@@ -1527,21 +1527,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1527
1527
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1528
1528
|
}
|
|
1529
1529
|
var pathParams = {
|
|
1530
|
-
|
|
1530
|
+
projectOrProductUID: projectOrProductUID
|
|
1531
1531
|
};
|
|
1532
1532
|
var queryParams = {};
|
|
1533
1533
|
var headerParams = {};
|
|
1534
1534
|
var formParams = {};
|
|
1535
|
-
var authNames = [
|
|
1535
|
+
var authNames = ["personalAccessToken"];
|
|
1536
1536
|
var contentTypes = [];
|
|
1537
|
-
var accepts = [
|
|
1537
|
+
var accepts = ["application/json"];
|
|
1538
1538
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1539
|
-
return this.apiClient.callApi(
|
|
1539
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/members", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1540
1540
|
}
|
|
1541
1541
|
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Get Project Members
|
|
1544
|
-
* @param {String} projectOrProductUID
|
|
1544
|
+
* @param {String} projectOrProductUID
|
|
1545
1545
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1546
1546
|
*/
|
|
1547
1547
|
}, {
|
|
@@ -1564,11 +1564,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1564
1564
|
var queryParams = {};
|
|
1565
1565
|
var headerParams = {};
|
|
1566
1566
|
var formParams = {};
|
|
1567
|
-
var authNames = [
|
|
1567
|
+
var authNames = ["personalAccessToken"];
|
|
1568
1568
|
var contentTypes = [];
|
|
1569
|
-
var accepts = [
|
|
1569
|
+
var accepts = ["application/json"];
|
|
1570
1570
|
var returnType = _GetProjects200Response["default"];
|
|
1571
|
-
return this.apiClient.callApi(
|
|
1571
|
+
return this.apiClient.callApi("/v1/projects", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1572
1572
|
}
|
|
1573
1573
|
|
|
1574
1574
|
/**
|
|
@@ -1585,18 +1585,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1585
1585
|
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Update/cancel host or notecard firmware updates
|
|
1588
|
-
* @param {String} projectOrProductUID
|
|
1589
|
-
* @param {module:model/String} firmwareType
|
|
1590
|
-
* @param {module:model/String} action
|
|
1588
|
+
* @param {String} projectOrProductUID
|
|
1589
|
+
* @param {module:model/String} firmwareType
|
|
1590
|
+
* @param {module:model/String} action
|
|
1591
1591
|
* @param {Object} opts Optional parameters
|
|
1592
1592
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1593
1593
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1594
1594
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1595
|
-
* @param {String} opts.fleetUID
|
|
1595
|
+
* @param {String} opts.fleetUID
|
|
1596
1596
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1597
1597
|
* @param {Array.<String>} opts.location Location filter
|
|
1598
1598
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1599
|
-
* @param {Array.<String>} opts.productUID
|
|
1599
|
+
* @param {Array.<String>} opts.productUID
|
|
1600
1600
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1601
1601
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1602
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -1605,7 +1605,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1605
1605
|
key: "performDfuActionWithHttpInfo",
|
|
1606
1606
|
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1607
1607
|
opts = opts || {};
|
|
1608
|
-
var postBody = opts[
|
|
1608
|
+
var postBody = opts["dfuActionRequest"];
|
|
1609
1609
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1610
1610
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1611
1611
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
@@ -1619,44 +1619,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1619
1619
|
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1620
1620
|
}
|
|
1621
1621
|
var pathParams = {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1622
|
+
projectOrProductUID: projectOrProductUID,
|
|
1623
|
+
firmwareType: firmwareType,
|
|
1624
|
+
action: action
|
|
1625
1625
|
};
|
|
1626
1626
|
var queryParams = {
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1627
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1628
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1629
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1630
|
+
fleetUID: opts["fleetUID"],
|
|
1631
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1632
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1633
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1634
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1635
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1636
1636
|
};
|
|
1637
1637
|
var headerParams = {};
|
|
1638
1638
|
var formParams = {};
|
|
1639
|
-
var authNames = [
|
|
1640
|
-
var contentTypes = [
|
|
1641
|
-
var accepts = [
|
|
1639
|
+
var authNames = ["personalAccessToken"];
|
|
1640
|
+
var contentTypes = ["application/json"];
|
|
1641
|
+
var accepts = ["application/json"];
|
|
1642
1642
|
var returnType = null;
|
|
1643
|
-
return this.apiClient.callApi(
|
|
1643
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1644
1644
|
}
|
|
1645
1645
|
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Update/cancel host or notecard firmware updates
|
|
1648
|
-
* @param {String} projectOrProductUID
|
|
1649
|
-
* @param {module:model/String} firmwareType
|
|
1650
|
-
* @param {module:model/String} action
|
|
1648
|
+
* @param {String} projectOrProductUID
|
|
1649
|
+
* @param {module:model/String} firmwareType
|
|
1650
|
+
* @param {module:model/String} action
|
|
1651
1651
|
* @param {Object} opts Optional parameters
|
|
1652
1652
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1653
1653
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1654
1654
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1655
|
-
* @param {String} opts.fleetUID
|
|
1655
|
+
* @param {String} opts.fleetUID
|
|
1656
1656
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1657
1657
|
* @param {Array.<String>} opts.location Location filter
|
|
1658
1658
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1659
|
-
* @param {Array.<String>} opts.productUID
|
|
1659
|
+
* @param {Array.<String>} opts.productUID
|
|
1660
1660
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1661
1661
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1662
1662
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -1671,8 +1671,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1671
1671
|
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Set environment variables of a fleet
|
|
1674
|
-
* @param {String} projectOrProductUID
|
|
1675
|
-
* @param {String} fleetUID
|
|
1674
|
+
* @param {String} projectOrProductUID
|
|
1675
|
+
* @param {String} fleetUID
|
|
1676
1676
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1677
1677
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1678
1678
|
*/
|
|
@@ -1693,23 +1693,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1693
1693
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1694
1694
|
}
|
|
1695
1695
|
var pathParams = {
|
|
1696
|
-
|
|
1697
|
-
|
|
1696
|
+
projectOrProductUID: projectOrProductUID,
|
|
1697
|
+
fleetUID: fleetUID
|
|
1698
1698
|
};
|
|
1699
1699
|
var queryParams = {};
|
|
1700
1700
|
var headerParams = {};
|
|
1701
1701
|
var formParams = {};
|
|
1702
|
-
var authNames = [
|
|
1703
|
-
var contentTypes = [
|
|
1704
|
-
var accepts = [
|
|
1702
|
+
var authNames = ["personalAccessToken"];
|
|
1703
|
+
var contentTypes = ["application/json"];
|
|
1704
|
+
var accepts = ["application/json"];
|
|
1705
1705
|
var returnType = _EnvironmentVariables["default"];
|
|
1706
|
-
return this.apiClient.callApi(
|
|
1706
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1707
1707
|
}
|
|
1708
1708
|
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Set environment variables of a fleet
|
|
1711
|
-
* @param {String} projectOrProductUID
|
|
1712
|
-
* @param {String} fleetUID
|
|
1711
|
+
* @param {String} projectOrProductUID
|
|
1712
|
+
* @param {String} fleetUID
|
|
1713
1713
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1714
1714
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1715
1715
|
*/
|
|
@@ -1723,7 +1723,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1723
1723
|
|
|
1724
1724
|
/**
|
|
1725
1725
|
* Set the project-level event JSONata transformation
|
|
1726
|
-
* @param {String} projectOrProductUID
|
|
1726
|
+
* @param {String} projectOrProductUID
|
|
1727
1727
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1728
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1729
1729
|
*/
|
|
@@ -1740,21 +1740,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1740
1740
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1741
1741
|
}
|
|
1742
1742
|
var pathParams = {
|
|
1743
|
-
|
|
1743
|
+
projectOrProductUID: projectOrProductUID
|
|
1744
1744
|
};
|
|
1745
1745
|
var queryParams = {};
|
|
1746
1746
|
var headerParams = {};
|
|
1747
1747
|
var formParams = {};
|
|
1748
|
-
var authNames = [
|
|
1749
|
-
var contentTypes = [
|
|
1750
|
-
var accepts = [
|
|
1748
|
+
var authNames = ["personalAccessToken"];
|
|
1749
|
+
var contentTypes = ["application/json"];
|
|
1750
|
+
var accepts = ["application/json"];
|
|
1751
1751
|
var returnType = null;
|
|
1752
|
-
return this.apiClient.callApi(
|
|
1752
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1753
1753
|
}
|
|
1754
1754
|
|
|
1755
1755
|
/**
|
|
1756
1756
|
* Set the project-level event JSONata transformation
|
|
1757
|
-
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} projectOrProductUID
|
|
1758
1758
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1759
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1760
1760
|
*/
|
|
@@ -1768,38 +1768,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1768
1768
|
|
|
1769
1769
|
/**
|
|
1770
1770
|
* Set environment variables of a project
|
|
1771
|
-
* @param {String} projectOrProductUID
|
|
1771
|
+
* @param {String} projectOrProductUID
|
|
1772
1772
|
* @param {Object} opts Optional parameters
|
|
1773
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1773
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1774
1774
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1775
1775
|
*/
|
|
1776
1776
|
}, {
|
|
1777
1777
|
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1778
1778
|
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1779
1779
|
opts = opts || {};
|
|
1780
|
-
var postBody = opts[
|
|
1780
|
+
var postBody = opts["environmentVariables"];
|
|
1781
1781
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1782
1782
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1783
1783
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1784
1784
|
}
|
|
1785
1785
|
var pathParams = {
|
|
1786
|
-
|
|
1786
|
+
projectOrProductUID: projectOrProductUID
|
|
1787
1787
|
};
|
|
1788
1788
|
var queryParams = {};
|
|
1789
1789
|
var headerParams = {};
|
|
1790
1790
|
var formParams = {};
|
|
1791
|
-
var authNames = [
|
|
1792
|
-
var contentTypes = [
|
|
1793
|
-
var accepts = [
|
|
1791
|
+
var authNames = ["personalAccessToken"];
|
|
1792
|
+
var contentTypes = ["application/json"];
|
|
1793
|
+
var accepts = ["application/json"];
|
|
1794
1794
|
var returnType = _EnvironmentVariables["default"];
|
|
1795
|
-
return this.apiClient.callApi(
|
|
1795
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Set environment variables of a project
|
|
1800
|
-
* @param {String} projectOrProductUID
|
|
1800
|
+
* @param {String} projectOrProductUID
|
|
1801
1801
|
* @param {Object} opts Optional parameters
|
|
1802
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1802
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1803
1803
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1804
1804
|
*/
|
|
1805
1805
|
}, {
|
|
@@ -1812,8 +1812,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1812
1812
|
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Update Fleet
|
|
1815
|
-
* @param {String} projectOrProductUID
|
|
1816
|
-
* @param {String} fleetUID
|
|
1815
|
+
* @param {String} projectOrProductUID
|
|
1816
|
+
* @param {String} fleetUID
|
|
1817
1817
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1818
1818
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1819
1819
|
*/
|
|
@@ -1834,23 +1834,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1834
1834
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1835
1835
|
}
|
|
1836
1836
|
var pathParams = {
|
|
1837
|
-
|
|
1838
|
-
|
|
1837
|
+
projectOrProductUID: projectOrProductUID,
|
|
1838
|
+
fleetUID: fleetUID
|
|
1839
1839
|
};
|
|
1840
1840
|
var queryParams = {};
|
|
1841
1841
|
var headerParams = {};
|
|
1842
1842
|
var formParams = {};
|
|
1843
|
-
var authNames = [
|
|
1844
|
-
var contentTypes = [
|
|
1845
|
-
var accepts = [
|
|
1843
|
+
var authNames = ["personalAccessToken"];
|
|
1844
|
+
var contentTypes = ["application/json"];
|
|
1845
|
+
var accepts = ["application/json"];
|
|
1846
1846
|
var returnType = _Fleet["default"];
|
|
1847
|
-
return this.apiClient.callApi(
|
|
1847
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
1850
|
/**
|
|
1851
1851
|
* Update Fleet
|
|
1852
|
-
* @param {String} projectOrProductUID
|
|
1853
|
-
* @param {String} fleetUID
|
|
1852
|
+
* @param {String} projectOrProductUID
|
|
1853
|
+
* @param {String} fleetUID
|
|
1854
1854
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1855
1855
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1856
1856
|
*/
|
|
@@ -1864,9 +1864,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1864
1864
|
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Upload firmware binary
|
|
1867
|
-
* @param {String} projectOrProductUID
|
|
1868
|
-
* @param {module:model/String} firmwareType
|
|
1869
|
-
* @param {String} filename
|
|
1867
|
+
* @param {String} projectOrProductUID
|
|
1868
|
+
* @param {module:model/String} firmwareType
|
|
1869
|
+
* @param {String} filename
|
|
1870
1870
|
* @param {File} body contents of the firmware binary
|
|
1871
1871
|
* @param {Object} opts Optional parameters
|
|
1872
1872
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1895,28 +1895,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1895
1895
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1896
1896
|
}
|
|
1897
1897
|
var pathParams = {
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1898
|
+
projectOrProductUID: projectOrProductUID,
|
|
1899
|
+
firmwareType: firmwareType,
|
|
1900
|
+
filename: filename
|
|
1901
1901
|
};
|
|
1902
1902
|
var queryParams = {
|
|
1903
|
-
|
|
1904
|
-
|
|
1903
|
+
version: opts["version"],
|
|
1904
|
+
notes: opts["notes"]
|
|
1905
1905
|
};
|
|
1906
1906
|
var headerParams = {};
|
|
1907
1907
|
var formParams = {};
|
|
1908
|
-
var authNames = [
|
|
1909
|
-
var contentTypes = [
|
|
1910
|
-
var accepts = [
|
|
1908
|
+
var authNames = ["personalAccessToken"];
|
|
1909
|
+
var contentTypes = ["application/octet-stream"];
|
|
1910
|
+
var accepts = ["application/json"];
|
|
1911
1911
|
var returnType = _FirmwareInfo["default"];
|
|
1912
|
-
return this.apiClient.callApi(
|
|
1912
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Upload firmware binary
|
|
1917
|
-
* @param {String} projectOrProductUID
|
|
1918
|
-
* @param {module:model/String} firmwareType
|
|
1919
|
-
* @param {String} filename
|
|
1917
|
+
* @param {String} projectOrProductUID
|
|
1918
|
+
* @param {module:model/String} firmwareType
|
|
1919
|
+
* @param {String} filename
|
|
1920
1920
|
* @param {File} body contents of the firmware binary
|
|
1921
1921
|
* @param {Object} opts Optional parameters
|
|
1922
1922
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|