@blues-inc/notehub-js 1.0.38 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +250 -239
- package/dist/ApiClient.js +154 -156
- 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 +426 -366
- 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 +384 -374
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +51 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +28 -0
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/AwsFilter.js +19 -19
- package/dist/model/AwsTransform.js +20 -20
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +159 -0
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- 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 +133 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +112 -0
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.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 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- 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/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/SatellitePlan.js +164 -0
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackTransform.js +12 -12
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- package/dist/model/UploadMetadata.js +72 -59
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +24 -24
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +29 -29
- package/dist/model/UsageRouteLogsResponse.js +12 -11
- package/dist/model/UsageSessionsData.js +24 -24
- package/dist/model/UsageSessionsResponse.js +12 -11
- package/dist/model/UserDbRoute.js +25 -25
- 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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 2.0.0-beta.2
|
|
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,7 +67,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Clone a Project
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
71
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
72
72
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
73
73
|
*/
|
|
@@ -84,21 +84,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
85
85
|
}
|
|
86
86
|
var pathParams = {
|
|
87
|
-
projectOrProductUID: projectOrProductUID
|
|
87
|
+
'projectOrProductUID': projectOrProductUID
|
|
88
88
|
};
|
|
89
89
|
var queryParams = {};
|
|
90
90
|
var headerParams = {};
|
|
91
91
|
var formParams = {};
|
|
92
|
-
var authNames = [
|
|
93
|
-
var contentTypes = [
|
|
94
|
-
var accepts = [
|
|
92
|
+
var authNames = ['personalAccessToken'];
|
|
93
|
+
var contentTypes = ['application/json'];
|
|
94
|
+
var accepts = ['application/json'];
|
|
95
95
|
var returnType = _Project["default"];
|
|
96
|
-
return this.apiClient.callApi(
|
|
96
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Clone a Project
|
|
101
|
-
* @param {String} projectOrProductUID
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
102
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
104
104
|
*/
|
|
@@ -112,7 +112,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Create Fleet
|
|
115
|
-
* @param {String} projectOrProductUID
|
|
115
|
+
* @param {String} projectOrProductUID
|
|
116
116
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
117
117
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
118
118
|
*/
|
|
@@ -129,21 +129,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
129
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
130
130
|
}
|
|
131
131
|
var pathParams = {
|
|
132
|
-
projectOrProductUID: projectOrProductUID
|
|
132
|
+
'projectOrProductUID': projectOrProductUID
|
|
133
133
|
};
|
|
134
134
|
var queryParams = {};
|
|
135
135
|
var headerParams = {};
|
|
136
136
|
var formParams = {};
|
|
137
|
-
var authNames = [
|
|
138
|
-
var contentTypes = [
|
|
139
|
-
var accepts = [
|
|
137
|
+
var authNames = ['personalAccessToken'];
|
|
138
|
+
var contentTypes = ['application/json'];
|
|
139
|
+
var accepts = ['application/json'];
|
|
140
140
|
var returnType = _Fleet["default"];
|
|
141
|
-
return this.apiClient.callApi(
|
|
141
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Create Fleet
|
|
146
|
-
* @param {String} projectOrProductUID
|
|
146
|
+
* @param {String} projectOrProductUID
|
|
147
147
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
148
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
149
149
|
*/
|
|
@@ -157,7 +157,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Create Product within a Project
|
|
160
|
-
* @param {String} projectOrProductUID
|
|
160
|
+
* @param {String} projectOrProductUID
|
|
161
161
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
163
163
|
*/
|
|
@@ -174,21 +174,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
174
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
175
175
|
}
|
|
176
176
|
var pathParams = {
|
|
177
|
-
projectOrProductUID: projectOrProductUID
|
|
177
|
+
'projectOrProductUID': projectOrProductUID
|
|
178
178
|
};
|
|
179
179
|
var queryParams = {};
|
|
180
180
|
var headerParams = {};
|
|
181
181
|
var formParams = {};
|
|
182
|
-
var authNames = [
|
|
183
|
-
var contentTypes = [
|
|
184
|
-
var accepts = [
|
|
182
|
+
var authNames = ['personalAccessToken'];
|
|
183
|
+
var contentTypes = ['application/json'];
|
|
184
|
+
var accepts = ['application/json'];
|
|
185
185
|
var returnType = _Product["default"];
|
|
186
|
-
return this.apiClient.callApi(
|
|
186
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Create Product within a Project
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
192
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
193
193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
194
194
|
*/
|
|
@@ -217,11 +217,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
var queryParams = {};
|
|
218
218
|
var headerParams = {};
|
|
219
219
|
var formParams = {};
|
|
220
|
-
var authNames = [
|
|
221
|
-
var contentTypes = [
|
|
222
|
-
var accepts = [
|
|
220
|
+
var authNames = ['personalAccessToken'];
|
|
221
|
+
var contentTypes = ['application/json'];
|
|
222
|
+
var accepts = ['application/json'];
|
|
223
223
|
var returnType = _Project["default"];
|
|
224
|
-
return this.apiClient.callApi(
|
|
224
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/**
|
|
@@ -239,9 +239,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Remove Device from Fleets
|
|
242
|
-
* @param {String} projectOrProductUID
|
|
243
|
-
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
242
|
+
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} deviceUID
|
|
244
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
246
|
*/
|
|
247
247
|
}, {
|
|
@@ -261,24 +261,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
261
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
262
262
|
}
|
|
263
263
|
var pathParams = {
|
|
264
|
-
projectOrProductUID: projectOrProductUID,
|
|
265
|
-
deviceUID: deviceUID
|
|
264
|
+
'projectOrProductUID': projectOrProductUID,
|
|
265
|
+
'deviceUID': deviceUID
|
|
266
266
|
};
|
|
267
267
|
var queryParams = {};
|
|
268
268
|
var headerParams = {};
|
|
269
269
|
var formParams = {};
|
|
270
|
-
var authNames = [
|
|
271
|
-
var contentTypes = [
|
|
272
|
-
var accepts = [
|
|
270
|
+
var authNames = ['personalAccessToken'];
|
|
271
|
+
var contentTypes = ['application/json'];
|
|
272
|
+
var accepts = ['application/json'];
|
|
273
273
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
274
|
-
return this.apiClient.callApi(
|
|
274
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* Remove Device from Fleets
|
|
279
|
-
* @param {String} projectOrProductUID
|
|
280
|
-
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
279
|
+
* @param {String} projectOrProductUID
|
|
280
|
+
* @param {String} deviceUID
|
|
281
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
283
|
*/
|
|
284
284
|
}, {
|
|
@@ -291,8 +291,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Delete Fleet
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} fleetUID
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} fleetUID
|
|
296
296
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
297
297
|
*/
|
|
298
298
|
}, {
|
|
@@ -308,23 +308,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
308
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
309
309
|
}
|
|
310
310
|
var pathParams = {
|
|
311
|
-
projectOrProductUID: projectOrProductUID,
|
|
312
|
-
fleetUID: fleetUID
|
|
311
|
+
'projectOrProductUID': projectOrProductUID,
|
|
312
|
+
'fleetUID': fleetUID
|
|
313
313
|
};
|
|
314
314
|
var queryParams = {};
|
|
315
315
|
var headerParams = {};
|
|
316
316
|
var formParams = {};
|
|
317
|
-
var authNames = [
|
|
317
|
+
var authNames = ['personalAccessToken'];
|
|
318
318
|
var contentTypes = [];
|
|
319
|
-
var accepts = [
|
|
319
|
+
var accepts = ['application/json'];
|
|
320
320
|
var returnType = null;
|
|
321
|
-
return this.apiClient.callApi(
|
|
321
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* Delete Fleet
|
|
326
|
-
* @param {String} projectOrProductUID
|
|
327
|
-
* @param {String} fleetUID
|
|
326
|
+
* @param {String} projectOrProductUID
|
|
327
|
+
* @param {String} fleetUID
|
|
328
328
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
329
329
|
*/
|
|
330
330
|
}, {
|
|
@@ -337,8 +337,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* Delete environment variables of a fleet
|
|
340
|
-
* @param {String} projectOrProductUID
|
|
341
|
-
* @param {String} fleetUID
|
|
340
|
+
* @param {String} projectOrProductUID
|
|
341
|
+
* @param {String} fleetUID
|
|
342
342
|
* @param {String} key The environment variable key to delete.
|
|
343
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
344
344
|
*/
|
|
@@ -359,24 +359,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
359
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
360
360
|
}
|
|
361
361
|
var pathParams = {
|
|
362
|
-
projectOrProductUID: projectOrProductUID,
|
|
363
|
-
fleetUID: fleetUID,
|
|
364
|
-
key: key
|
|
362
|
+
'projectOrProductUID': projectOrProductUID,
|
|
363
|
+
'fleetUID': fleetUID,
|
|
364
|
+
'key': key
|
|
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 = _EnvironmentVariables["default"];
|
|
373
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
377
|
* Delete environment variables of a fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
380
380
|
* @param {String} key The environment variable key to delete.
|
|
381
381
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
382
382
|
*/
|
|
@@ -390,7 +390,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
392
|
* Delete a Project by ProjectUID
|
|
393
|
-
* @param {String} projectOrProductUID
|
|
393
|
+
* @param {String} projectOrProductUID
|
|
394
394
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
395
395
|
*/
|
|
396
396
|
}, {
|
|
@@ -402,21 +402,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
402
402
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
403
403
|
}
|
|
404
404
|
var pathParams = {
|
|
405
|
-
projectOrProductUID: projectOrProductUID
|
|
405
|
+
'projectOrProductUID': projectOrProductUID
|
|
406
406
|
};
|
|
407
407
|
var queryParams = {};
|
|
408
408
|
var headerParams = {};
|
|
409
409
|
var formParams = {};
|
|
410
|
-
var authNames = [
|
|
410
|
+
var authNames = ['personalAccessToken'];
|
|
411
411
|
var contentTypes = [];
|
|
412
|
-
var accepts = [
|
|
412
|
+
var accepts = ['application/json'];
|
|
413
413
|
var returnType = null;
|
|
414
|
-
return this.apiClient.callApi(
|
|
414
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Delete a Project by ProjectUID
|
|
419
|
-
* @param {String} projectOrProductUID
|
|
419
|
+
* @param {String} projectOrProductUID
|
|
420
420
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
421
421
|
*/
|
|
422
422
|
}, {
|
|
@@ -429,7 +429,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* Delete an environment variable of a project by key
|
|
432
|
-
* @param {String} projectOrProductUID
|
|
432
|
+
* @param {String} projectOrProductUID
|
|
433
433
|
* @param {String} key The environment variable key to delete.
|
|
434
434
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
435
435
|
*/
|
|
@@ -446,22 +446,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
446
446
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
447
447
|
}
|
|
448
448
|
var pathParams = {
|
|
449
|
-
projectOrProductUID: projectOrProductUID,
|
|
450
|
-
key: key
|
|
449
|
+
'projectOrProductUID': projectOrProductUID,
|
|
450
|
+
'key': key
|
|
451
451
|
};
|
|
452
452
|
var queryParams = {};
|
|
453
453
|
var headerParams = {};
|
|
454
454
|
var formParams = {};
|
|
455
|
-
var authNames = [
|
|
455
|
+
var authNames = ['personalAccessToken'];
|
|
456
456
|
var contentTypes = [];
|
|
457
|
-
var accepts = [
|
|
457
|
+
var accepts = ['application/json'];
|
|
458
458
|
var returnType = _EnvironmentVariables["default"];
|
|
459
|
-
return this.apiClient.callApi(
|
|
459
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
463
|
* Delete an environment variable of a project by key
|
|
464
|
-
* @param {String} projectOrProductUID
|
|
464
|
+
* @param {String} projectOrProductUID
|
|
465
465
|
* @param {String} key The environment variable key to delete.
|
|
466
466
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
467
467
|
*/
|
|
@@ -475,18 +475,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* Update/cancel host or notecard firmware updates
|
|
478
|
-
* @param {String} projectOrProductUID
|
|
479
|
-
* @param {module:model/String} firmwareType
|
|
480
|
-
* @param {module:model/String} action
|
|
478
|
+
* @param {String} projectOrProductUID
|
|
479
|
+
* @param {module:model/String} firmwareType
|
|
480
|
+
* @param {module:model/String} action
|
|
481
481
|
* @param {Object} opts Optional parameters
|
|
482
482
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
483
483
|
* @param {Array.<String>} opts.tag Tag filter
|
|
484
484
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
485
|
-
* @param {String} opts.fleetUID
|
|
485
|
+
* @param {String} opts.fleetUID
|
|
486
486
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
487
487
|
* @param {Array.<String>} opts.location Location filter
|
|
488
488
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
489
|
-
* @param {Array.<String>} opts.productUID
|
|
489
|
+
* @param {Array.<String>} opts.productUID
|
|
490
490
|
* @param {Array.<String>} opts.sku SKU filter
|
|
491
491
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
492
492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -495,7 +495,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
495
495
|
key: "dfuActionWithHttpInfo",
|
|
496
496
|
value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
497
497
|
opts = opts || {};
|
|
498
|
-
var postBody = opts[
|
|
498
|
+
var postBody = opts['dfuActionRequest'];
|
|
499
499
|
// verify the required parameter 'projectOrProductUID' is set
|
|
500
500
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
501
501
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
|
|
@@ -509,44 +509,44 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
509
509
|
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
510
510
|
}
|
|
511
511
|
var pathParams = {
|
|
512
|
-
projectOrProductUID: projectOrProductUID,
|
|
513
|
-
firmwareType: firmwareType,
|
|
514
|
-
action: action
|
|
512
|
+
'projectOrProductUID': projectOrProductUID,
|
|
513
|
+
'firmwareType': firmwareType,
|
|
514
|
+
'action': action
|
|
515
515
|
};
|
|
516
516
|
var queryParams = {
|
|
517
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
518
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
519
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
520
|
-
fleetUID: opts[
|
|
521
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
522
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
523
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
524
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
525
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
517
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
518
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
519
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
520
|
+
'fleetUID': opts['fleetUID'],
|
|
521
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
522
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
523
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
524
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
525
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
526
526
|
};
|
|
527
527
|
var headerParams = {};
|
|
528
528
|
var formParams = {};
|
|
529
|
-
var authNames = [
|
|
530
|
-
var contentTypes = [
|
|
531
|
-
var accepts = [
|
|
529
|
+
var authNames = ['personalAccessToken'];
|
|
530
|
+
var contentTypes = ['application/json'];
|
|
531
|
+
var accepts = ['application/json'];
|
|
532
532
|
var returnType = null;
|
|
533
|
-
return this.apiClient.callApi(
|
|
533
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
537
|
* Update/cancel host or notecard firmware updates
|
|
538
|
-
* @param {String} projectOrProductUID
|
|
539
|
-
* @param {module:model/String} firmwareType
|
|
540
|
-
* @param {module:model/String} action
|
|
538
|
+
* @param {String} projectOrProductUID
|
|
539
|
+
* @param {module:model/String} firmwareType
|
|
540
|
+
* @param {module:model/String} action
|
|
541
541
|
* @param {Object} opts Optional parameters
|
|
542
542
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
543
543
|
* @param {Array.<String>} opts.tag Tag filter
|
|
544
544
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
545
|
-
* @param {String} opts.fleetUID
|
|
545
|
+
* @param {String} opts.fleetUID
|
|
546
546
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
547
547
|
* @param {Array.<String>} opts.location Location filter
|
|
548
548
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
549
|
-
* @param {Array.<String>} opts.productUID
|
|
549
|
+
* @param {Array.<String>} opts.productUID
|
|
550
550
|
* @param {Array.<String>} opts.sku SKU filter
|
|
551
551
|
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
552
552
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -561,7 +561,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
561
561
|
|
|
562
562
|
/**
|
|
563
563
|
* Disable the project-level event JSONata transformation
|
|
564
|
-
* @param {String} projectOrProductUID
|
|
564
|
+
* @param {String} projectOrProductUID
|
|
565
565
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
566
566
|
*/
|
|
567
567
|
}, {
|
|
@@ -573,21 +573,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
573
573
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
|
|
574
574
|
}
|
|
575
575
|
var pathParams = {
|
|
576
|
-
projectOrProductUID: projectOrProductUID
|
|
576
|
+
'projectOrProductUID': projectOrProductUID
|
|
577
577
|
};
|
|
578
578
|
var queryParams = {};
|
|
579
579
|
var headerParams = {};
|
|
580
580
|
var formParams = {};
|
|
581
|
-
var authNames = [
|
|
581
|
+
var authNames = ['personalAccessToken'];
|
|
582
582
|
var contentTypes = [];
|
|
583
|
-
var accepts = [
|
|
583
|
+
var accepts = ['application/json'];
|
|
584
584
|
var returnType = null;
|
|
585
|
-
return this.apiClient.callApi(
|
|
585
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* Disable the project-level event JSONata transformation
|
|
590
|
-
* @param {String} projectOrProductUID
|
|
590
|
+
* @param {String} projectOrProductUID
|
|
591
591
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
592
592
|
*/
|
|
593
593
|
}, {
|
|
@@ -600,7 +600,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
600
|
|
|
601
601
|
/**
|
|
602
602
|
* Enable the project-level event JSONata transformation
|
|
603
|
-
* @param {String} projectOrProductUID
|
|
603
|
+
* @param {String} projectOrProductUID
|
|
604
604
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
605
605
|
*/
|
|
606
606
|
}, {
|
|
@@ -612,21 +612,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
612
612
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
|
|
613
613
|
}
|
|
614
614
|
var pathParams = {
|
|
615
|
-
projectOrProductUID: projectOrProductUID
|
|
615
|
+
'projectOrProductUID': projectOrProductUID
|
|
616
616
|
};
|
|
617
617
|
var queryParams = {};
|
|
618
618
|
var headerParams = {};
|
|
619
619
|
var formParams = {};
|
|
620
|
-
var authNames = [
|
|
620
|
+
var authNames = ['personalAccessToken'];
|
|
621
621
|
var contentTypes = [];
|
|
622
|
-
var accepts = [
|
|
622
|
+
var accepts = ['application/json'];
|
|
623
623
|
var returnType = null;
|
|
624
|
-
return this.apiClient.callApi(
|
|
624
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
628
|
* Enable the project-level event JSONata transformation
|
|
629
|
-
* @param {String} projectOrProductUID
|
|
629
|
+
* @param {String} projectOrProductUID
|
|
630
630
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
631
631
|
*/
|
|
632
632
|
}, {
|
|
@@ -639,9 +639,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
639
639
|
|
|
640
640
|
/**
|
|
641
641
|
* Get device DFU history for host or Notecard firmware
|
|
642
|
-
* @param {String} projectOrProductUID
|
|
643
|
-
* @param {String} deviceUID
|
|
644
|
-
* @param {module:model/String} firmwareType
|
|
642
|
+
* @param {String} projectOrProductUID
|
|
643
|
+
* @param {String} deviceUID
|
|
644
|
+
* @param {module:model/String} firmwareType
|
|
645
645
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
646
646
|
*/
|
|
647
647
|
}, {
|
|
@@ -661,25 +661,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
661
661
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
662
662
|
}
|
|
663
663
|
var pathParams = {
|
|
664
|
-
projectOrProductUID: projectOrProductUID,
|
|
665
|
-
deviceUID: deviceUID,
|
|
666
|
-
firmwareType: firmwareType
|
|
664
|
+
'projectOrProductUID': projectOrProductUID,
|
|
665
|
+
'deviceUID': deviceUID,
|
|
666
|
+
'firmwareType': firmwareType
|
|
667
667
|
};
|
|
668
668
|
var queryParams = {};
|
|
669
669
|
var headerParams = {};
|
|
670
670
|
var formParams = {};
|
|
671
|
-
var authNames = [
|
|
671
|
+
var authNames = ['personalAccessToken'];
|
|
672
672
|
var contentTypes = [];
|
|
673
|
-
var accepts = [
|
|
673
|
+
var accepts = ['application/json'];
|
|
674
674
|
var returnType = _DeviceDfuHistory["default"];
|
|
675
|
-
return this.apiClient.callApi(
|
|
675
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
679
|
* Get device DFU history for host or Notecard firmware
|
|
680
|
-
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} deviceUID
|
|
682
|
-
* @param {module:model/String} firmwareType
|
|
680
|
+
* @param {String} projectOrProductUID
|
|
681
|
+
* @param {String} deviceUID
|
|
682
|
+
* @param {module:model/String} firmwareType
|
|
683
683
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
684
684
|
*/
|
|
685
685
|
}, {
|
|
@@ -692,9 +692,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
692
692
|
|
|
693
693
|
/**
|
|
694
694
|
* Get device DFU history for host or Notecard firmware
|
|
695
|
-
* @param {String} projectOrProductUID
|
|
696
|
-
* @param {String} deviceUID
|
|
697
|
-
* @param {module:model/String} firmwareType
|
|
695
|
+
* @param {String} projectOrProductUID
|
|
696
|
+
* @param {String} deviceUID
|
|
697
|
+
* @param {module:model/String} firmwareType
|
|
698
698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
699
699
|
*/
|
|
700
700
|
}, {
|
|
@@ -714,25 +714,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
714
714
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
715
715
|
}
|
|
716
716
|
var pathParams = {
|
|
717
|
-
projectOrProductUID: projectOrProductUID,
|
|
718
|
-
deviceUID: deviceUID,
|
|
719
|
-
firmwareType: firmwareType
|
|
717
|
+
'projectOrProductUID': projectOrProductUID,
|
|
718
|
+
'deviceUID': deviceUID,
|
|
719
|
+
'firmwareType': firmwareType
|
|
720
720
|
};
|
|
721
721
|
var queryParams = {};
|
|
722
722
|
var headerParams = {};
|
|
723
723
|
var formParams = {};
|
|
724
|
-
var authNames = [
|
|
724
|
+
var authNames = ['personalAccessToken'];
|
|
725
725
|
var contentTypes = [];
|
|
726
|
-
var accepts = [
|
|
726
|
+
var accepts = ['application/json'];
|
|
727
727
|
var returnType = _DeviceDfuStatus["default"];
|
|
728
|
-
return this.apiClient.callApi(
|
|
728
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
/**
|
|
732
732
|
* Get device DFU history for host or Notecard firmware
|
|
733
|
-
* @param {String} projectOrProductUID
|
|
734
|
-
* @param {String} deviceUID
|
|
735
|
-
* @param {module:model/String} firmwareType
|
|
733
|
+
* @param {String} projectOrProductUID
|
|
734
|
+
* @param {String} deviceUID
|
|
735
|
+
* @param {module:model/String} firmwareType
|
|
736
736
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
737
737
|
*/
|
|
738
738
|
}, {
|
|
@@ -745,8 +745,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
745
745
|
|
|
746
746
|
/**
|
|
747
747
|
* Get Device Fleets
|
|
748
|
-
* @param {String} projectOrProductUID
|
|
749
|
-
* @param {String} deviceUID
|
|
748
|
+
* @param {String} projectOrProductUID
|
|
749
|
+
* @param {String} deviceUID
|
|
750
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
751
751
|
*/
|
|
752
752
|
}, {
|
|
@@ -762,23 +762,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
762
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
763
763
|
}
|
|
764
764
|
var pathParams = {
|
|
765
|
-
projectOrProductUID: projectOrProductUID,
|
|
766
|
-
deviceUID: deviceUID
|
|
765
|
+
'projectOrProductUID': projectOrProductUID,
|
|
766
|
+
'deviceUID': deviceUID
|
|
767
767
|
};
|
|
768
768
|
var queryParams = {};
|
|
769
769
|
var headerParams = {};
|
|
770
770
|
var formParams = {};
|
|
771
|
-
var authNames = [
|
|
771
|
+
var authNames = ['personalAccessToken'];
|
|
772
772
|
var contentTypes = [];
|
|
773
|
-
var accepts = [
|
|
773
|
+
var accepts = ['application/json'];
|
|
774
774
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
775
|
-
return this.apiClient.callApi(
|
|
775
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
/**
|
|
779
779
|
* Get Device Fleets
|
|
780
|
-
* @param {String} projectOrProductUID
|
|
781
|
-
* @param {String} deviceUID
|
|
780
|
+
* @param {String} projectOrProductUID
|
|
781
|
+
* @param {String} deviceUID
|
|
782
782
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
783
783
|
*/
|
|
784
784
|
}, {
|
|
@@ -791,8 +791,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
791
|
|
|
792
792
|
/**
|
|
793
793
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
794
|
-
* @param {String} projectOrProductUID
|
|
795
|
-
* @param {module:model/String} firmwareType
|
|
794
|
+
* @param {String} projectOrProductUID
|
|
795
|
+
* @param {module:model/String} firmwareType
|
|
796
796
|
* @param {Object} opts Optional parameters
|
|
797
797
|
* @param {Number} opts.pageSize (default to 50)
|
|
798
798
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -801,11 +801,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
801
801
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
802
802
|
* @param {Array.<String>} opts.tag Tag filter
|
|
803
803
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
804
|
-
* @param {String} opts.fleetUID
|
|
804
|
+
* @param {String} opts.fleetUID
|
|
805
805
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
806
806
|
* @param {Array.<String>} opts.location Location filter
|
|
807
807
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
808
|
-
* @param {Array.<String>} opts.productUID
|
|
808
|
+
* @param {Array.<String>} opts.productUID
|
|
809
809
|
* @param {Array.<String>} opts.sku SKU filter
|
|
810
810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
811
811
|
*/
|
|
@@ -823,37 +823,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
823
823
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
824
824
|
}
|
|
825
825
|
var pathParams = {
|
|
826
|
-
projectOrProductUID: projectOrProductUID,
|
|
827
|
-
firmwareType: firmwareType
|
|
826
|
+
'projectOrProductUID': projectOrProductUID,
|
|
827
|
+
'firmwareType': firmwareType
|
|
828
828
|
};
|
|
829
829
|
var queryParams = {
|
|
830
|
-
pageSize: opts[
|
|
831
|
-
pageNum: opts[
|
|
832
|
-
sortBy: opts[
|
|
833
|
-
sortOrder: opts[
|
|
834
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
835
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
836
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
837
|
-
fleetUID: opts[
|
|
838
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
839
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
840
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
841
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
842
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
830
|
+
'pageSize': opts['pageSize'],
|
|
831
|
+
'pageNum': opts['pageNum'],
|
|
832
|
+
'sortBy': opts['sortBy'],
|
|
833
|
+
'sortOrder': opts['sortOrder'],
|
|
834
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
835
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
836
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
837
|
+
'fleetUID': opts['fleetUID'],
|
|
838
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
839
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
840
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
841
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
842
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
843
843
|
};
|
|
844
844
|
var headerParams = {};
|
|
845
845
|
var formParams = {};
|
|
846
|
-
var authNames = [
|
|
846
|
+
var authNames = ['personalAccessToken'];
|
|
847
847
|
var contentTypes = [];
|
|
848
|
-
var accepts = [
|
|
848
|
+
var accepts = ['application/json'];
|
|
849
849
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
850
|
-
return this.apiClient.callApi(
|
|
850
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
851
851
|
}
|
|
852
852
|
|
|
853
853
|
/**
|
|
854
854
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
855
|
-
* @param {String} projectOrProductUID
|
|
856
|
-
* @param {module:model/String} firmwareType
|
|
855
|
+
* @param {String} projectOrProductUID
|
|
856
|
+
* @param {module:model/String} firmwareType
|
|
857
857
|
* @param {Object} opts Optional parameters
|
|
858
858
|
* @param {Number} opts.pageSize (default to 50)
|
|
859
859
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -862,11 +862,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
862
862
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
863
863
|
* @param {Array.<String>} opts.tag Tag filter
|
|
864
864
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
865
|
-
* @param {String} opts.fleetUID
|
|
865
|
+
* @param {String} opts.fleetUID
|
|
866
866
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
867
867
|
* @param {Array.<String>} opts.location Location filter
|
|
868
868
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
869
|
-
* @param {Array.<String>} opts.productUID
|
|
869
|
+
* @param {Array.<String>} opts.productUID
|
|
870
870
|
* @param {Array.<String>} opts.sku SKU filter
|
|
871
871
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
872
872
|
*/
|
|
@@ -880,8 +880,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
883
|
-
* @param {String} projectOrProductUID
|
|
884
|
-
* @param {module:model/String} firmwareType
|
|
883
|
+
* @param {String} projectOrProductUID
|
|
884
|
+
* @param {module:model/String} firmwareType
|
|
885
885
|
* @param {Object} opts Optional parameters
|
|
886
886
|
* @param {Number} opts.pageSize (default to 50)
|
|
887
887
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -890,11 +890,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
890
890
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
891
891
|
* @param {Array.<String>} opts.tag Tag filter
|
|
892
892
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
893
|
-
* @param {String} opts.fleetUID
|
|
893
|
+
* @param {String} opts.fleetUID
|
|
894
894
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
895
895
|
* @param {Array.<String>} opts.location Location filter
|
|
896
896
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
897
|
-
* @param {Array.<String>} opts.productUID
|
|
897
|
+
* @param {Array.<String>} opts.productUID
|
|
898
898
|
* @param {Array.<String>} opts.sku SKU filter
|
|
899
899
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
900
900
|
*/
|
|
@@ -912,37 +912,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
912
912
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
913
913
|
}
|
|
914
914
|
var pathParams = {
|
|
915
|
-
projectOrProductUID: projectOrProductUID,
|
|
916
|
-
firmwareType: firmwareType
|
|
915
|
+
'projectOrProductUID': projectOrProductUID,
|
|
916
|
+
'firmwareType': firmwareType
|
|
917
917
|
};
|
|
918
918
|
var queryParams = {
|
|
919
|
-
pageSize: opts[
|
|
920
|
-
pageNum: opts[
|
|
921
|
-
sortBy: opts[
|
|
922
|
-
sortOrder: opts[
|
|
923
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
924
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
925
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
926
|
-
fleetUID: opts[
|
|
927
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
928
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
929
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
930
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
931
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
919
|
+
'pageSize': opts['pageSize'],
|
|
920
|
+
'pageNum': opts['pageNum'],
|
|
921
|
+
'sortBy': opts['sortBy'],
|
|
922
|
+
'sortOrder': opts['sortOrder'],
|
|
923
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
924
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
925
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
926
|
+
'fleetUID': opts['fleetUID'],
|
|
927
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
928
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
929
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
930
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
931
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
932
932
|
};
|
|
933
933
|
var headerParams = {};
|
|
934
934
|
var formParams = {};
|
|
935
|
-
var authNames = [
|
|
935
|
+
var authNames = ['personalAccessToken'];
|
|
936
936
|
var contentTypes = [];
|
|
937
|
-
var accepts = [
|
|
937
|
+
var accepts = ['application/json'];
|
|
938
938
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
939
|
-
return this.apiClient.callApi(
|
|
939
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
/**
|
|
943
943
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
944
|
-
* @param {String} projectOrProductUID
|
|
945
|
-
* @param {module:model/String} firmwareType
|
|
944
|
+
* @param {String} projectOrProductUID
|
|
945
|
+
* @param {module:model/String} firmwareType
|
|
946
946
|
* @param {Object} opts Optional parameters
|
|
947
947
|
* @param {Number} opts.pageSize (default to 50)
|
|
948
948
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -951,11 +951,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
951
951
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
952
952
|
* @param {Array.<String>} opts.tag Tag filter
|
|
953
953
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
954
|
-
* @param {String} opts.fleetUID
|
|
954
|
+
* @param {String} opts.fleetUID
|
|
955
955
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
956
956
|
* @param {Array.<String>} opts.location Location filter
|
|
957
957
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
958
|
-
* @param {Array.<String>} opts.productUID
|
|
958
|
+
* @param {Array.<String>} opts.productUID
|
|
959
959
|
* @param {Array.<String>} opts.sku SKU filter
|
|
960
960
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
961
961
|
*/
|
|
@@ -969,15 +969,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
969
969
|
|
|
970
970
|
/**
|
|
971
971
|
* Get Available Firmware Information
|
|
972
|
-
* @param {String} projectOrProductUID
|
|
972
|
+
* @param {String} projectOrProductUID
|
|
973
973
|
* @param {Object} opts Optional parameters
|
|
974
|
-
* @param {String} opts.product
|
|
975
|
-
* @param {String} opts.firmwareType
|
|
976
|
-
* @param {String} opts.version
|
|
977
|
-
* @param {String} opts.target
|
|
978
|
-
* @param {String} opts.filename
|
|
979
|
-
* @param {String} opts.md5
|
|
980
|
-
* @param {Boolean} opts.unpublished
|
|
974
|
+
* @param {String} opts.product
|
|
975
|
+
* @param {String} opts.firmwareType
|
|
976
|
+
* @param {String} opts.version
|
|
977
|
+
* @param {String} opts.target
|
|
978
|
+
* @param {String} opts.filename
|
|
979
|
+
* @param {String} opts.md5
|
|
980
|
+
* @param {Boolean} opts.unpublished
|
|
981
981
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
982
982
|
*/
|
|
983
983
|
}, {
|
|
@@ -990,37 +990,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
990
990
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
991
991
|
}
|
|
992
992
|
var pathParams = {
|
|
993
|
-
projectOrProductUID: projectOrProductUID
|
|
993
|
+
'projectOrProductUID': projectOrProductUID
|
|
994
994
|
};
|
|
995
995
|
var queryParams = {
|
|
996
|
-
product: opts[
|
|
997
|
-
firmwareType: opts[
|
|
998
|
-
version: opts[
|
|
999
|
-
target: opts[
|
|
1000
|
-
filename: opts[
|
|
1001
|
-
md5: opts[
|
|
1002
|
-
unpublished: opts[
|
|
996
|
+
'product': opts['product'],
|
|
997
|
+
'firmwareType': opts['firmwareType'],
|
|
998
|
+
'version': opts['version'],
|
|
999
|
+
'target': opts['target'],
|
|
1000
|
+
'filename': opts['filename'],
|
|
1001
|
+
'md5': opts['md5'],
|
|
1002
|
+
'unpublished': opts['unpublished']
|
|
1003
1003
|
};
|
|
1004
1004
|
var headerParams = {};
|
|
1005
1005
|
var formParams = {};
|
|
1006
|
-
var authNames = [
|
|
1006
|
+
var authNames = ['personalAccessToken'];
|
|
1007
1007
|
var contentTypes = [];
|
|
1008
|
-
var accepts = [
|
|
1008
|
+
var accepts = ['application/json'];
|
|
1009
1009
|
var returnType = [_FirmwareInfo["default"]];
|
|
1010
|
-
return this.apiClient.callApi(
|
|
1010
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Get Available Firmware Information
|
|
1015
|
-
* @param {String} projectOrProductUID
|
|
1015
|
+
* @param {String} projectOrProductUID
|
|
1016
1016
|
* @param {Object} opts Optional parameters
|
|
1017
|
-
* @param {String} opts.product
|
|
1018
|
-
* @param {String} opts.firmwareType
|
|
1019
|
-
* @param {String} opts.version
|
|
1020
|
-
* @param {String} opts.target
|
|
1021
|
-
* @param {String} opts.filename
|
|
1022
|
-
* @param {String} opts.md5
|
|
1023
|
-
* @param {Boolean} opts.unpublished
|
|
1017
|
+
* @param {String} opts.product
|
|
1018
|
+
* @param {String} opts.firmwareType
|
|
1019
|
+
* @param {String} opts.version
|
|
1020
|
+
* @param {String} opts.target
|
|
1021
|
+
* @param {String} opts.filename
|
|
1022
|
+
* @param {String} opts.md5
|
|
1023
|
+
* @param {Boolean} opts.unpublished
|
|
1024
1024
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1025
1025
|
*/
|
|
1026
1026
|
}, {
|
|
@@ -1033,8 +1033,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1033
1033
|
|
|
1034
1034
|
/**
|
|
1035
1035
|
* Get Fleet
|
|
1036
|
-
* @param {String} projectOrProductUID
|
|
1037
|
-
* @param {String} fleetUID
|
|
1036
|
+
* @param {String} projectOrProductUID
|
|
1037
|
+
* @param {String} fleetUID
|
|
1038
1038
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1039
1039
|
*/
|
|
1040
1040
|
}, {
|
|
@@ -1050,23 +1050,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1050
1050
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1051
1051
|
}
|
|
1052
1052
|
var pathParams = {
|
|
1053
|
-
projectOrProductUID: projectOrProductUID,
|
|
1054
|
-
fleetUID: fleetUID
|
|
1053
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1054
|
+
'fleetUID': fleetUID
|
|
1055
1055
|
};
|
|
1056
1056
|
var queryParams = {};
|
|
1057
1057
|
var headerParams = {};
|
|
1058
1058
|
var formParams = {};
|
|
1059
|
-
var authNames = [
|
|
1059
|
+
var authNames = ['personalAccessToken'];
|
|
1060
1060
|
var contentTypes = [];
|
|
1061
|
-
var accepts = [
|
|
1061
|
+
var accepts = ['application/json'];
|
|
1062
1062
|
var returnType = _Fleet["default"];
|
|
1063
|
-
return this.apiClient.callApi(
|
|
1063
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Get Fleet
|
|
1068
|
-
* @param {String} projectOrProductUID
|
|
1069
|
-
* @param {String} fleetUID
|
|
1068
|
+
* @param {String} projectOrProductUID
|
|
1069
|
+
* @param {String} fleetUID
|
|
1070
1070
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1071
1071
|
*/
|
|
1072
1072
|
}, {
|
|
@@ -1079,8 +1079,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1079
1079
|
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Get environment variable hierarchy for a device
|
|
1082
|
-
* @param {String} projectOrProductUID
|
|
1083
|
-
* @param {String} fleetUID
|
|
1082
|
+
* @param {String} projectOrProductUID
|
|
1083
|
+
* @param {String} fleetUID
|
|
1084
1084
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1085
1085
|
*/
|
|
1086
1086
|
}, {
|
|
@@ -1096,23 +1096,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1096
1096
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1097
1097
|
}
|
|
1098
1098
|
var pathParams = {
|
|
1099
|
-
projectOrProductUID: projectOrProductUID,
|
|
1100
|
-
fleetUID: fleetUID
|
|
1099
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1100
|
+
'fleetUID': fleetUID
|
|
1101
1101
|
};
|
|
1102
1102
|
var queryParams = {};
|
|
1103
1103
|
var headerParams = {};
|
|
1104
1104
|
var formParams = {};
|
|
1105
|
-
var authNames = [
|
|
1105
|
+
var authNames = ['personalAccessToken'];
|
|
1106
1106
|
var contentTypes = [];
|
|
1107
|
-
var accepts = [
|
|
1107
|
+
var accepts = ['application/json'];
|
|
1108
1108
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1109
|
-
return this.apiClient.callApi(
|
|
1109
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Get environment variable hierarchy for a device
|
|
1114
|
-
* @param {String} projectOrProductUID
|
|
1115
|
-
* @param {String} fleetUID
|
|
1114
|
+
* @param {String} projectOrProductUID
|
|
1115
|
+
* @param {String} fleetUID
|
|
1116
1116
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1117
1117
|
*/
|
|
1118
1118
|
}, {
|
|
@@ -1125,8 +1125,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1125
1125
|
|
|
1126
1126
|
/**
|
|
1127
1127
|
* Get environment variables of a fleet
|
|
1128
|
-
* @param {String} projectOrProductUID
|
|
1129
|
-
* @param {String} fleetUID
|
|
1128
|
+
* @param {String} projectOrProductUID
|
|
1129
|
+
* @param {String} fleetUID
|
|
1130
1130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1131
1131
|
*/
|
|
1132
1132
|
}, {
|
|
@@ -1142,23 +1142,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1142
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1143
1143
|
}
|
|
1144
1144
|
var pathParams = {
|
|
1145
|
-
projectOrProductUID: projectOrProductUID,
|
|
1146
|
-
fleetUID: fleetUID
|
|
1145
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1146
|
+
'fleetUID': fleetUID
|
|
1147
1147
|
};
|
|
1148
1148
|
var queryParams = {};
|
|
1149
1149
|
var headerParams = {};
|
|
1150
1150
|
var formParams = {};
|
|
1151
|
-
var authNames = [
|
|
1151
|
+
var authNames = ['personalAccessToken'];
|
|
1152
1152
|
var contentTypes = [];
|
|
1153
|
-
var accepts = [
|
|
1153
|
+
var accepts = ['application/json'];
|
|
1154
1154
|
var returnType = _EnvironmentVariables["default"];
|
|
1155
|
-
return this.apiClient.callApi(
|
|
1155
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Get environment variables of a fleet
|
|
1160
|
-
* @param {String} projectOrProductUID
|
|
1161
|
-
* @param {String} fleetUID
|
|
1160
|
+
* @param {String} projectOrProductUID
|
|
1161
|
+
* @param {String} fleetUID
|
|
1162
1162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1163
1163
|
*/
|
|
1164
1164
|
}, {
|
|
@@ -1171,7 +1171,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1171
1171
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Get variable format for a notefile
|
|
1174
|
-
* @param {String} projectOrProductUID
|
|
1174
|
+
* @param {String} projectOrProductUID
|
|
1175
1175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1176
1176
|
*/
|
|
1177
1177
|
}, {
|
|
@@ -1183,21 +1183,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1183
1183
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1184
1184
|
}
|
|
1185
1185
|
var pathParams = {
|
|
1186
|
-
projectOrProductUID: projectOrProductUID
|
|
1186
|
+
'projectOrProductUID': projectOrProductUID
|
|
1187
1187
|
};
|
|
1188
1188
|
var queryParams = {};
|
|
1189
1189
|
var headerParams = {};
|
|
1190
1190
|
var formParams = {};
|
|
1191
1191
|
var authNames = [];
|
|
1192
1192
|
var contentTypes = [];
|
|
1193
|
-
var accepts = [
|
|
1193
|
+
var accepts = ['application/json'];
|
|
1194
1194
|
var returnType = [_NotefileSchema["default"]];
|
|
1195
|
-
return this.apiClient.callApi(
|
|
1195
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Get variable format for a notefile
|
|
1200
|
-
* @param {String} projectOrProductUID
|
|
1200
|
+
* @param {String} projectOrProductUID
|
|
1201
1201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1202
1202
|
*/
|
|
1203
1203
|
}, {
|
|
@@ -1210,7 +1210,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1210
1210
|
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Get a Project by ProjectUID
|
|
1213
|
-
* @param {String} projectOrProductUID
|
|
1213
|
+
* @param {String} projectOrProductUID
|
|
1214
1214
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1215
1215
|
*/
|
|
1216
1216
|
}, {
|
|
@@ -1222,21 +1222,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1222
1222
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1223
1223
|
}
|
|
1224
1224
|
var pathParams = {
|
|
1225
|
-
projectOrProductUID: projectOrProductUID
|
|
1225
|
+
'projectOrProductUID': projectOrProductUID
|
|
1226
1226
|
};
|
|
1227
1227
|
var queryParams = {};
|
|
1228
1228
|
var headerParams = {};
|
|
1229
1229
|
var formParams = {};
|
|
1230
|
-
var authNames = [
|
|
1230
|
+
var authNames = ['personalAccessToken'];
|
|
1231
1231
|
var contentTypes = [];
|
|
1232
|
-
var accepts = [
|
|
1232
|
+
var accepts = ['application/json'];
|
|
1233
1233
|
var returnType = _Project["default"];
|
|
1234
|
-
return this.apiClient.callApi(
|
|
1234
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Get a Project by ProjectUID
|
|
1239
|
-
* @param {String} projectOrProductUID
|
|
1239
|
+
* @param {String} projectOrProductUID
|
|
1240
1240
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1241
1241
|
*/
|
|
1242
1242
|
}, {
|
|
@@ -1249,7 +1249,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1249
1249
|
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Get a Project by ProductUID
|
|
1252
|
-
* @param {String} productUID
|
|
1252
|
+
* @param {String} productUID
|
|
1253
1253
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1254
1254
|
*/
|
|
1255
1255
|
}, {
|
|
@@ -1261,21 +1261,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1261
1261
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1262
1262
|
}
|
|
1263
1263
|
var pathParams = {
|
|
1264
|
-
productUID: productUID
|
|
1264
|
+
'productUID': productUID
|
|
1265
1265
|
};
|
|
1266
1266
|
var queryParams = {};
|
|
1267
1267
|
var headerParams = {};
|
|
1268
1268
|
var formParams = {};
|
|
1269
|
-
var authNames = [
|
|
1269
|
+
var authNames = ['personalAccessToken'];
|
|
1270
1270
|
var contentTypes = [];
|
|
1271
|
-
var accepts = [
|
|
1271
|
+
var accepts = ['application/json'];
|
|
1272
1272
|
var returnType = _Project["default"];
|
|
1273
|
-
return this.apiClient.callApi(
|
|
1273
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
/**
|
|
1277
1277
|
* Get a Project by ProductUID
|
|
1278
|
-
* @param {String} productUID
|
|
1278
|
+
* @param {String} productUID
|
|
1279
1279
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1280
1280
|
*/
|
|
1281
1281
|
}, {
|
|
@@ -1288,7 +1288,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1288
1288
|
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Get environment variable hierarchy for a device
|
|
1291
|
-
* @param {String} projectOrProductUID
|
|
1291
|
+
* @param {String} projectOrProductUID
|
|
1292
1292
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1293
1293
|
*/
|
|
1294
1294
|
}, {
|
|
@@ -1300,21 +1300,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1300
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1301
1301
|
}
|
|
1302
1302
|
var pathParams = {
|
|
1303
|
-
projectOrProductUID: projectOrProductUID
|
|
1303
|
+
'projectOrProductUID': projectOrProductUID
|
|
1304
1304
|
};
|
|
1305
1305
|
var queryParams = {};
|
|
1306
1306
|
var headerParams = {};
|
|
1307
1307
|
var formParams = {};
|
|
1308
|
-
var authNames = [
|
|
1308
|
+
var authNames = ['personalAccessToken'];
|
|
1309
1309
|
var contentTypes = [];
|
|
1310
|
-
var accepts = [
|
|
1310
|
+
var accepts = ['application/json'];
|
|
1311
1311
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1312
|
-
return this.apiClient.callApi(
|
|
1312
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Get environment variable hierarchy for a device
|
|
1317
|
-
* @param {String} projectOrProductUID
|
|
1317
|
+
* @param {String} projectOrProductUID
|
|
1318
1318
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1319
1319
|
*/
|
|
1320
1320
|
}, {
|
|
@@ -1327,7 +1327,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1327
1327
|
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Get environment variables of a project
|
|
1330
|
-
* @param {String} projectOrProductUID
|
|
1330
|
+
* @param {String} projectOrProductUID
|
|
1331
1331
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1332
1332
|
*/
|
|
1333
1333
|
}, {
|
|
@@ -1339,21 +1339,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1339
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1340
1340
|
}
|
|
1341
1341
|
var pathParams = {
|
|
1342
|
-
projectOrProductUID: projectOrProductUID
|
|
1342
|
+
'projectOrProductUID': projectOrProductUID
|
|
1343
1343
|
};
|
|
1344
1344
|
var queryParams = {};
|
|
1345
1345
|
var headerParams = {};
|
|
1346
1346
|
var formParams = {};
|
|
1347
|
-
var authNames = [
|
|
1347
|
+
var authNames = ['personalAccessToken'];
|
|
1348
1348
|
var contentTypes = [];
|
|
1349
|
-
var accepts = [
|
|
1349
|
+
var accepts = ['application/json'];
|
|
1350
1350
|
var returnType = _EnvironmentVariables["default"];
|
|
1351
|
-
return this.apiClient.callApi(
|
|
1351
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Get environment variables of a project
|
|
1356
|
-
* @param {String} projectOrProductUID
|
|
1356
|
+
* @param {String} projectOrProductUID
|
|
1357
1357
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1358
1358
|
*/
|
|
1359
1359
|
}, {
|
|
@@ -1366,7 +1366,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1366
1366
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Get Project Fleets
|
|
1369
|
-
* @param {String} projectOrProductUID
|
|
1369
|
+
* @param {String} projectOrProductUID
|
|
1370
1370
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1371
1371
|
*/
|
|
1372
1372
|
}, {
|
|
@@ -1378,21 +1378,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1378
1378
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
|
|
1379
1379
|
}
|
|
1380
1380
|
var pathParams = {
|
|
1381
|
-
projectOrProductUID: projectOrProductUID
|
|
1381
|
+
'projectOrProductUID': projectOrProductUID
|
|
1382
1382
|
};
|
|
1383
1383
|
var queryParams = {};
|
|
1384
1384
|
var headerParams = {};
|
|
1385
1385
|
var formParams = {};
|
|
1386
|
-
var authNames = [
|
|
1386
|
+
var authNames = ['personalAccessToken'];
|
|
1387
1387
|
var contentTypes = [];
|
|
1388
|
-
var accepts = [
|
|
1388
|
+
var accepts = ['application/json'];
|
|
1389
1389
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1390
|
-
return this.apiClient.callApi(
|
|
1390
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Get Project Fleets
|
|
1395
|
-
* @param {String} projectOrProductUID
|
|
1395
|
+
* @param {String} projectOrProductUID
|
|
1396
1396
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1397
1397
|
*/
|
|
1398
1398
|
}, {
|
|
@@ -1405,7 +1405,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1405
1405
|
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Get Project Members
|
|
1408
|
-
* @param {String} projectOrProductUID
|
|
1408
|
+
* @param {String} projectOrProductUID
|
|
1409
1409
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1410
1410
|
*/
|
|
1411
1411
|
}, {
|
|
@@ -1417,21 +1417,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1417
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1418
1418
|
}
|
|
1419
1419
|
var pathParams = {
|
|
1420
|
-
projectOrProductUID: projectOrProductUID
|
|
1420
|
+
'projectOrProductUID': projectOrProductUID
|
|
1421
1421
|
};
|
|
1422
1422
|
var queryParams = {};
|
|
1423
1423
|
var headerParams = {};
|
|
1424
1424
|
var formParams = {};
|
|
1425
|
-
var authNames = [
|
|
1425
|
+
var authNames = ['personalAccessToken'];
|
|
1426
1426
|
var contentTypes = [];
|
|
1427
|
-
var accepts = [
|
|
1427
|
+
var accepts = ['application/json'];
|
|
1428
1428
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1429
|
-
return this.apiClient.callApi(
|
|
1429
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Get Project Members
|
|
1434
|
-
* @param {String} projectOrProductUID
|
|
1434
|
+
* @param {String} projectOrProductUID
|
|
1435
1435
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1436
1436
|
*/
|
|
1437
1437
|
}, {
|
|
@@ -1444,7 +1444,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1444
1444
|
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Get Products within a Project
|
|
1447
|
-
* @param {String} projectOrProductUID
|
|
1447
|
+
* @param {String} projectOrProductUID
|
|
1448
1448
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
1449
1449
|
*/
|
|
1450
1450
|
}, {
|
|
@@ -1456,21 +1456,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1456
1456
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectProducts");
|
|
1457
1457
|
}
|
|
1458
1458
|
var pathParams = {
|
|
1459
|
-
projectOrProductUID: projectOrProductUID
|
|
1459
|
+
'projectOrProductUID': projectOrProductUID
|
|
1460
1460
|
};
|
|
1461
1461
|
var queryParams = {};
|
|
1462
1462
|
var headerParams = {};
|
|
1463
1463
|
var formParams = {};
|
|
1464
|
-
var authNames = [
|
|
1464
|
+
var authNames = ['personalAccessToken'];
|
|
1465
1465
|
var contentTypes = [];
|
|
1466
|
-
var accepts = [
|
|
1466
|
+
var accepts = ['application/json'];
|
|
1467
1467
|
var returnType = _GetProjectProducts200Response["default"];
|
|
1468
|
-
return this.apiClient.callApi(
|
|
1468
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Get Products within a Project
|
|
1473
|
-
* @param {String} projectOrProductUID
|
|
1473
|
+
* @param {String} projectOrProductUID
|
|
1474
1474
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
1475
1475
|
*/
|
|
1476
1476
|
}, {
|
|
@@ -1493,11 +1493,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
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 = _GetProjects200Response["default"];
|
|
1500
|
-
return this.apiClient.callApi(
|
|
1500
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
1503
|
/**
|
|
@@ -1514,9 +1514,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1514
1514
|
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Add Device to Fleets
|
|
1517
|
-
* @param {String} projectOrProductUID
|
|
1518
|
-
* @param {String} deviceUID
|
|
1519
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1517
|
+
* @param {String} projectOrProductUID
|
|
1518
|
+
* @param {String} deviceUID
|
|
1519
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1520
1520
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1521
1521
|
*/
|
|
1522
1522
|
}, {
|
|
@@ -1536,24 +1536,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1536
1536
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1537
1537
|
}
|
|
1538
1538
|
var pathParams = {
|
|
1539
|
-
projectOrProductUID: projectOrProductUID,
|
|
1540
|
-
deviceUID: deviceUID
|
|
1539
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1540
|
+
'deviceUID': deviceUID
|
|
1541
1541
|
};
|
|
1542
1542
|
var queryParams = {};
|
|
1543
1543
|
var headerParams = {};
|
|
1544
1544
|
var formParams = {};
|
|
1545
|
-
var authNames = [
|
|
1546
|
-
var contentTypes = [
|
|
1547
|
-
var accepts = [
|
|
1545
|
+
var authNames = ['personalAccessToken'];
|
|
1546
|
+
var contentTypes = ['application/json'];
|
|
1547
|
+
var accepts = ['application/json'];
|
|
1548
1548
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
1549
|
-
return this.apiClient.callApi(
|
|
1549
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Add Device to Fleets
|
|
1554
|
-
* @param {String} projectOrProductUID
|
|
1555
|
-
* @param {String} deviceUID
|
|
1556
|
-
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1554
|
+
* @param {String} projectOrProductUID
|
|
1555
|
+
* @param {String} deviceUID
|
|
1556
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
1557
1557
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1558
1558
|
*/
|
|
1559
1559
|
}, {
|
|
@@ -1566,8 +1566,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1566
1566
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Put environment variables of a fleet
|
|
1569
|
-
* @param {String} projectOrProductUID
|
|
1570
|
-
* @param {String} fleetUID
|
|
1569
|
+
* @param {String} projectOrProductUID
|
|
1570
|
+
* @param {String} fleetUID
|
|
1571
1571
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1572
1572
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1573
1573
|
*/
|
|
@@ -1588,23 +1588,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1588
1588
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1589
1589
|
}
|
|
1590
1590
|
var pathParams = {
|
|
1591
|
-
projectOrProductUID: projectOrProductUID,
|
|
1592
|
-
fleetUID: fleetUID
|
|
1591
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1592
|
+
'fleetUID': fleetUID
|
|
1593
1593
|
};
|
|
1594
1594
|
var queryParams = {};
|
|
1595
1595
|
var headerParams = {};
|
|
1596
1596
|
var formParams = {};
|
|
1597
|
-
var authNames = [
|
|
1598
|
-
var contentTypes = [
|
|
1599
|
-
var accepts = [
|
|
1597
|
+
var authNames = ['personalAccessToken'];
|
|
1598
|
+
var contentTypes = ['application/json'];
|
|
1599
|
+
var accepts = ['application/json'];
|
|
1600
1600
|
var returnType = _EnvironmentVariables["default"];
|
|
1601
|
-
return this.apiClient.callApi(
|
|
1601
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Put environment variables of a fleet
|
|
1606
|
-
* @param {String} projectOrProductUID
|
|
1607
|
-
* @param {String} fleetUID
|
|
1606
|
+
* @param {String} projectOrProductUID
|
|
1607
|
+
* @param {String} fleetUID
|
|
1608
1608
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1609
1609
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1610
1610
|
*/
|
|
@@ -1618,38 +1618,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1618
1618
|
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Put environment variables of a project
|
|
1621
|
-
* @param {String} projectOrProductUID
|
|
1621
|
+
* @param {String} projectOrProductUID
|
|
1622
1622
|
* @param {Object} opts Optional parameters
|
|
1623
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1623
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1624
1624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1625
1625
|
*/
|
|
1626
1626
|
}, {
|
|
1627
1627
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1628
1628
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1629
1629
|
opts = opts || {};
|
|
1630
|
-
var postBody = opts[
|
|
1630
|
+
var postBody = opts['environmentVariables'];
|
|
1631
1631
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1632
1632
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1633
1633
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
|
|
1634
1634
|
}
|
|
1635
1635
|
var pathParams = {
|
|
1636
|
-
projectOrProductUID: projectOrProductUID
|
|
1636
|
+
'projectOrProductUID': projectOrProductUID
|
|
1637
1637
|
};
|
|
1638
1638
|
var queryParams = {};
|
|
1639
1639
|
var headerParams = {};
|
|
1640
1640
|
var formParams = {};
|
|
1641
|
-
var authNames = [
|
|
1642
|
-
var contentTypes = [
|
|
1643
|
-
var accepts = [
|
|
1641
|
+
var authNames = ['personalAccessToken'];
|
|
1642
|
+
var contentTypes = ['application/json'];
|
|
1643
|
+
var accepts = ['application/json'];
|
|
1644
1644
|
var returnType = _EnvironmentVariables["default"];
|
|
1645
|
-
return this.apiClient.callApi(
|
|
1645
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Put environment variables of a project
|
|
1650
|
-
* @param {String} projectOrProductUID
|
|
1650
|
+
* @param {String} projectOrProductUID
|
|
1651
1651
|
* @param {Object} opts Optional parameters
|
|
1652
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1652
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1653
1653
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1654
1654
|
*/
|
|
1655
1655
|
}, {
|
|
@@ -1662,7 +1662,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1662
1662
|
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Set the project-level event JSONata transformation
|
|
1665
|
-
* @param {String} projectOrProductUID
|
|
1665
|
+
* @param {String} projectOrProductUID
|
|
1666
1666
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1667
1667
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1668
1668
|
*/
|
|
@@ -1679,21 +1679,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1679
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1680
1680
|
}
|
|
1681
1681
|
var pathParams = {
|
|
1682
|
-
projectOrProductUID: projectOrProductUID
|
|
1682
|
+
'projectOrProductUID': projectOrProductUID
|
|
1683
1683
|
};
|
|
1684
1684
|
var queryParams = {};
|
|
1685
1685
|
var headerParams = {};
|
|
1686
1686
|
var formParams = {};
|
|
1687
|
-
var authNames = [
|
|
1688
|
-
var contentTypes = [
|
|
1689
|
-
var accepts = [
|
|
1687
|
+
var authNames = ['personalAccessToken'];
|
|
1688
|
+
var contentTypes = ['application/json'];
|
|
1689
|
+
var accepts = ['application/json'];
|
|
1690
1690
|
var returnType = null;
|
|
1691
|
-
return this.apiClient.callApi(
|
|
1691
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Set the project-level event JSONata transformation
|
|
1696
|
-
* @param {String} projectOrProductUID
|
|
1696
|
+
* @param {String} projectOrProductUID
|
|
1697
1697
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1698
1698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1699
1699
|
*/
|
|
@@ -1707,8 +1707,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1707
1707
|
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Update Fleet
|
|
1710
|
-
* @param {String} projectOrProductUID
|
|
1711
|
-
* @param {String} fleetUID
|
|
1710
|
+
* @param {String} projectOrProductUID
|
|
1711
|
+
* @param {String} fleetUID
|
|
1712
1712
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1713
1713
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1714
1714
|
*/
|
|
@@ -1729,23 +1729,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1729
1729
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1730
1730
|
}
|
|
1731
1731
|
var pathParams = {
|
|
1732
|
-
projectOrProductUID: projectOrProductUID,
|
|
1733
|
-
fleetUID: fleetUID
|
|
1732
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1733
|
+
'fleetUID': fleetUID
|
|
1734
1734
|
};
|
|
1735
1735
|
var queryParams = {};
|
|
1736
1736
|
var headerParams = {};
|
|
1737
1737
|
var formParams = {};
|
|
1738
|
-
var authNames = [
|
|
1739
|
-
var contentTypes = [
|
|
1740
|
-
var accepts = [
|
|
1738
|
+
var authNames = ['personalAccessToken'];
|
|
1739
|
+
var contentTypes = ['application/json'];
|
|
1740
|
+
var accepts = ['application/json'];
|
|
1741
1741
|
var returnType = _Fleet["default"];
|
|
1742
|
-
return this.apiClient.callApi(
|
|
1742
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1743
1743
|
}
|
|
1744
1744
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Update Fleet
|
|
1747
|
-
* @param {String} projectOrProductUID
|
|
1748
|
-
* @param {String} fleetUID
|
|
1747
|
+
* @param {String} projectOrProductUID
|
|
1748
|
+
* @param {String} fleetUID
|
|
1749
1749
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1750
1750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1751
1751
|
*/
|
|
@@ -1759,15 +1759,19 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1759
1759
|
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Upload firmware binary
|
|
1762
|
-
* @param {String} projectOrProductUID
|
|
1763
|
-
* @param {module:model/String} firmwareType
|
|
1764
|
-
* @param {String} filename
|
|
1762
|
+
* @param {String} projectOrProductUID
|
|
1763
|
+
* @param {module:model/String} firmwareType
|
|
1764
|
+
* @param {String} filename
|
|
1765
1765
|
* @param {File} body contents of the firmware binary
|
|
1766
|
+
* @param {Object} opts Optional parameters
|
|
1767
|
+
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
1768
|
+
* @param {String} opts.notes Optional notes describing what's different about this firmware version
|
|
1766
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
1767
1770
|
*/
|
|
1768
1771
|
}, {
|
|
1769
1772
|
key: "uploadFirmwareWithHttpInfo",
|
|
1770
|
-
value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body) {
|
|
1773
|
+
value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body, opts) {
|
|
1774
|
+
opts = opts || {};
|
|
1771
1775
|
var postBody = body;
|
|
1772
1776
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1773
1777
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
@@ -1786,32 +1790,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1786
1790
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1787
1791
|
}
|
|
1788
1792
|
var pathParams = {
|
|
1789
|
-
projectOrProductUID: projectOrProductUID,
|
|
1790
|
-
firmwareType: firmwareType,
|
|
1791
|
-
filename: filename
|
|
1793
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1794
|
+
'firmwareType': firmwareType,
|
|
1795
|
+
'filename': filename
|
|
1796
|
+
};
|
|
1797
|
+
var queryParams = {
|
|
1798
|
+
'version': opts['version'],
|
|
1799
|
+
'notes': opts['notes']
|
|
1792
1800
|
};
|
|
1793
|
-
var queryParams = {};
|
|
1794
1801
|
var headerParams = {};
|
|
1795
1802
|
var formParams = {};
|
|
1796
|
-
var authNames = [
|
|
1797
|
-
var contentTypes = [
|
|
1798
|
-
var accepts = [
|
|
1803
|
+
var authNames = ['personalAccessToken'];
|
|
1804
|
+
var contentTypes = ['application/octet-stream'];
|
|
1805
|
+
var accepts = ['application/json'];
|
|
1799
1806
|
var returnType = _FirmwareInfo["default"];
|
|
1800
|
-
return this.apiClient.callApi(
|
|
1807
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1801
1808
|
}
|
|
1802
1809
|
|
|
1803
1810
|
/**
|
|
1804
1811
|
* Upload firmware binary
|
|
1805
|
-
* @param {String} projectOrProductUID
|
|
1806
|
-
* @param {module:model/String} firmwareType
|
|
1807
|
-
* @param {String} filename
|
|
1812
|
+
* @param {String} projectOrProductUID
|
|
1813
|
+
* @param {module:model/String} firmwareType
|
|
1814
|
+
* @param {String} filename
|
|
1808
1815
|
* @param {File} body contents of the firmware binary
|
|
1816
|
+
* @param {Object} opts Optional parameters
|
|
1817
|
+
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
1818
|
+
* @param {String} opts.notes Optional notes describing what's different about this firmware version
|
|
1809
1819
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1810
1820
|
*/
|
|
1811
1821
|
}, {
|
|
1812
1822
|
key: "uploadFirmware",
|
|
1813
|
-
value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body) {
|
|
1814
|
-
return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body).then(function (response_and_data) {
|
|
1823
|
+
value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body, opts) {
|
|
1824
|
+
return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body, opts).then(function (response_and_data) {
|
|
1815
1825
|
return response_and_data.data;
|
|
1816
1826
|
});
|
|
1817
1827
|
}
|