@blues-inc/notehub-js 1.0.23 → 1.0.24-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 +199 -178
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +23 -23
- package/dist/api/AuthorizationApi.js +17 -17
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +352 -352
- package/dist/api/EventApi.js +134 -124
- package/dist/api/MonitorApi.js +53 -53
- package/dist/api/ProjectApi.js +599 -330
- package/dist/api/RouteApi.js +103 -103
- package/dist/index.js +102 -39
- package/dist/model/Alert.js +108 -62
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +19 -19
- package/dist/model/Aws.js +66 -66
- package/dist/model/Azure.js +44 -44
- package/dist/model/BillingAccount.js +22 -22
- package/dist/model/BillingAccountRole.js +10 -10
- package/dist/model/Body.js +6 -6
- package/dist/model/CloneProjectRequest.js +21 -21
- package/dist/model/Contact.js +23 -23
- package/dist/model/CreateFleetRequest.js +8 -8
- package/dist/model/CreateMonitor.js +127 -126
- package/dist/model/CreateProductRequest.js +23 -23
- package/dist/model/CreateProjectRequest.js +17 -17
- package/dist/model/{OTAUpdateStatus.js → CurrentFirmware.js} +34 -47
- package/dist/model/DFUEnv.js +13 -13
- package/dist/model/DFUState.js +66 -66
- package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
- package/dist/model/Device.js +85 -85
- package/dist/model/DeviceDfuHistory.js +139 -0
- package/dist/model/DeviceDfuHistoryPage.js +121 -0
- package/dist/model/DeviceDfuStateMachine.js +152 -0
- package/dist/model/DeviceDfuStateMachineNode.js +132 -0
- package/dist/model/DeviceDfuStatus.js +129 -0
- package/dist/model/DeviceDfuStatusCurrent.js +158 -0
- package/dist/model/{OTAStatusList.js → DeviceDfuStatusPage.js} +34 -33
- package/dist/model/DeviceSession.js +183 -183
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +33 -33
- package/dist/model/DfuActionRequest.js +92 -0
- package/dist/model/EmailNotification.js +8 -8
- package/dist/model/EnvironmentVariables.js +9 -9
- package/dist/model/Error.js +32 -32
- package/dist/model/Event.js +224 -224
- package/dist/model/Firmware.js +195 -0
- package/dist/model/FirmwareInfo.js +61 -61
- package/dist/model/Fleet.js +22 -22
- package/dist/model/GetAlerts200Response.js +16 -15
- package/dist/model/GetBillingAccounts200Response.js +11 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
- package/dist/model/GetDeviceHealthLog200Response.js +13 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
- package/dist/model/GetDeviceLatest200Response.js +11 -10
- package/dist/model/GetDevicePublicKey200Response.js +17 -17
- package/dist/model/GetDeviceSessions200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
- package/dist/model/GetProjectDevices200Response.js +18 -17
- package/dist/model/GetProjectEvents200Response.js +22 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
- package/dist/model/GetProjectFleets200Response.js +13 -12
- package/dist/model/GetProjectMembers200Response.js +13 -12
- package/dist/model/GetProjectProducts200Response.js +11 -10
- package/dist/model/GetProjects200Response.js +11 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
- package/dist/model/Google.js +34 -34
- package/dist/model/HandleNoteChanges200Response.js +12 -12
- package/dist/model/HandleNoteGet200Response.js +14 -14
- package/dist/model/HandleNoteSignal200Response.js +6 -6
- package/dist/model/HandleNotefileChanges200Response.js +12 -12
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +8 -8
- package/dist/model/Http.js +36 -36
- package/dist/model/HttpFilter.js +20 -20
- package/dist/model/HttpTransform.js +21 -21
- package/dist/model/Location.js +41 -41
- package/dist/model/Login200Response.js +8 -8
- package/dist/model/LoginRequest.js +13 -13
- package/dist/model/Monitor.js +101 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -11
- package/dist/model/Mqtt.js +67 -67
- package/dist/model/Note.js +11 -11
- package/dist/model/{Route.js → NotehubRoute.js} +56 -56
- package/dist/model/{RouteSchema.js → NotehubRouteSchema.js} +70 -71
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +27 -27
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +23 -23
- package/dist/model/Proxy.js +25 -25
- package/dist/model/PutDeviceFleetsRequest.js +9 -9
- package/dist/model/Radresponder.js +26 -26
- package/dist/model/Role.js +10 -10
- package/dist/model/Slack.js +54 -54
- package/dist/model/SlackBearerNotification.js +26 -26
- package/dist/model/SlackWebHookNotification.js +21 -21
- package/dist/model/Snowflake.js +46 -46
- package/dist/model/SnowflakeTransform.js +13 -13
- package/dist/model/Thingworx.js +34 -34
- package/dist/model/TowerLocation.js +53 -53
- package/dist/model/Twilio.js +44 -44
- package/dist/model/UpdateFleetRequest.js +18 -18
- package/dist/model/UploadMetadata.js +221 -0
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +127 -0
- package/dist/model/UserDfuStateMachineStatus.js +123 -0
- package/dist/model/UserFirmwareInfo.js +107 -0
- package/package.json +3 -3
- package/dist/model/FirmwareStatus.js +0 -144
- package/dist/model/OTAStatus.js +0 -306
- package/dist/model/OTAUpdateRequest.js +0 -214
package/dist/api/ProjectApi.js
CHANGED
|
@@ -10,6 +10,11 @@ var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRe
|
|
|
10
10
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
11
11
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
12
12
|
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
13
|
+
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
14
|
+
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
15
|
+
var _DeviceDfuStatus = _interopRequireDefault(require("../model/DeviceDfuStatus"));
|
|
16
|
+
var _DeviceDfuStatusPage = _interopRequireDefault(require("../model/DeviceDfuStatusPage"));
|
|
17
|
+
var _DfuActionRequest = _interopRequireDefault(require("../model/DfuActionRequest"));
|
|
13
18
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
14
19
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
15
20
|
var _FirmwareInfo = _interopRequireDefault(require("../model/FirmwareInfo"));
|
|
@@ -18,9 +23,6 @@ var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetP
|
|
|
18
23
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
19
24
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
20
25
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
21
|
-
var _OTAStatusList = _interopRequireDefault(require("../model/OTAStatusList"));
|
|
22
|
-
var _OTAUpdateRequest = _interopRequireDefault(require("../model/OTAUpdateRequest"));
|
|
23
|
-
var _OTAUpdateStatus = _interopRequireDefault(require("../model/OTAUpdateStatus"));
|
|
24
26
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
25
27
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
26
28
|
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
@@ -33,9 +35,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
35
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
36
|
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); } /**
|
|
35
37
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
38
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
37
39
|
*
|
|
38
|
-
* The version of the OpenAPI document: 1.
|
|
40
|
+
* The version of the OpenAPI document: 1.2.0
|
|
39
41
|
* Contact: engineering@blues.io
|
|
40
42
|
*
|
|
41
43
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -44,18 +46,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
46
|
*
|
|
45
47
|
*/
|
|
46
48
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
* Project service.
|
|
50
|
+
* @module api/ProjectApi
|
|
51
|
+
* @version 1.0.24-beta.2
|
|
52
|
+
*/
|
|
51
53
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
54
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
* Constructs a new ProjectApi.
|
|
56
|
+
* @alias module:api/ProjectApi
|
|
57
|
+
* @class
|
|
58
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
59
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
60
|
+
*/
|
|
59
61
|
function ProjectApi(apiClient) {
|
|
60
62
|
_classCallCheck(this, ProjectApi);
|
|
61
63
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -80,16 +82,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
80
82
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
81
83
|
}
|
|
82
84
|
var pathParams = {
|
|
83
|
-
projectUID: projectUID
|
|
85
|
+
'projectUID': projectUID
|
|
84
86
|
};
|
|
85
87
|
var queryParams = {};
|
|
86
88
|
var headerParams = {};
|
|
87
89
|
var formParams = {};
|
|
88
|
-
var authNames = [
|
|
89
|
-
var contentTypes = [
|
|
90
|
-
var accepts = [
|
|
90
|
+
var authNames = ['api_key'];
|
|
91
|
+
var contentTypes = ['application/json'];
|
|
92
|
+
var accepts = ['application/json'];
|
|
91
93
|
var returnType = _Project["default"];
|
|
92
|
-
return this.apiClient.callApi(
|
|
94
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
/**
|
|
@@ -108,7 +110,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
112
|
* Create Fleet
|
|
111
|
-
* @param {String} projectUID
|
|
113
|
+
* @param {String} projectUID
|
|
112
114
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
113
115
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
114
116
|
*/
|
|
@@ -125,21 +127,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
127
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
126
128
|
}
|
|
127
129
|
var pathParams = {
|
|
128
|
-
projectUID: projectUID
|
|
130
|
+
'projectUID': projectUID
|
|
129
131
|
};
|
|
130
132
|
var queryParams = {};
|
|
131
133
|
var headerParams = {};
|
|
132
134
|
var formParams = {};
|
|
133
|
-
var authNames = [
|
|
134
|
-
var contentTypes = [
|
|
135
|
-
var accepts = [
|
|
135
|
+
var authNames = ['api_key'];
|
|
136
|
+
var contentTypes = ['application/json'];
|
|
137
|
+
var accepts = ['application/json'];
|
|
136
138
|
var returnType = _Fleet["default"];
|
|
137
|
-
return this.apiClient.callApi(
|
|
139
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* Create Fleet
|
|
142
|
-
* @param {String} projectUID
|
|
144
|
+
* @param {String} projectUID
|
|
143
145
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
144
146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
145
147
|
*/
|
|
@@ -153,7 +155,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
155
|
|
|
154
156
|
/**
|
|
155
157
|
* Create Product within a Project
|
|
156
|
-
* @param {String} projectUID
|
|
158
|
+
* @param {String} projectUID
|
|
157
159
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
158
160
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
159
161
|
*/
|
|
@@ -170,21 +172,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
170
172
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
171
173
|
}
|
|
172
174
|
var pathParams = {
|
|
173
|
-
projectUID: projectUID
|
|
175
|
+
'projectUID': projectUID
|
|
174
176
|
};
|
|
175
177
|
var queryParams = {};
|
|
176
178
|
var headerParams = {};
|
|
177
179
|
var formParams = {};
|
|
178
|
-
var authNames = [
|
|
179
|
-
var contentTypes = [
|
|
180
|
-
var accepts = [
|
|
180
|
+
var authNames = ['api_key'];
|
|
181
|
+
var contentTypes = ['application/json'];
|
|
182
|
+
var accepts = ['application/json'];
|
|
181
183
|
var returnType = _Product["default"];
|
|
182
|
-
return this.apiClient.callApi(
|
|
184
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
/**
|
|
186
188
|
* Create Product within a Project
|
|
187
|
-
* @param {String} projectUID
|
|
189
|
+
* @param {String} projectUID
|
|
188
190
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
189
191
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
190
192
|
*/
|
|
@@ -213,11 +215,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
213
215
|
var queryParams = {};
|
|
214
216
|
var headerParams = {};
|
|
215
217
|
var formParams = {};
|
|
216
|
-
var authNames = [
|
|
217
|
-
var contentTypes = [
|
|
218
|
-
var accepts = [
|
|
218
|
+
var authNames = ['api_key'];
|
|
219
|
+
var contentTypes = ['application/json'];
|
|
220
|
+
var accepts = ['application/json'];
|
|
219
221
|
var returnType = _Project["default"];
|
|
220
|
-
return this.apiClient.callApi(
|
|
222
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
/**
|
|
@@ -235,9 +237,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
235
237
|
|
|
236
238
|
/**
|
|
237
239
|
* Remove Device from Fleets
|
|
238
|
-
* @param {String} projectUID
|
|
239
|
-
* @param {String} deviceUID
|
|
240
|
-
* @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.
|
|
240
|
+
* @param {String} projectUID
|
|
241
|
+
* @param {String} deviceUID
|
|
242
|
+
* @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.
|
|
241
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
242
244
|
*/
|
|
243
245
|
}, {
|
|
@@ -257,24 +259,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
257
259
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
258
260
|
}
|
|
259
261
|
var pathParams = {
|
|
260
|
-
projectUID: projectUID,
|
|
261
|
-
deviceUID: deviceUID
|
|
262
|
+
'projectUID': projectUID,
|
|
263
|
+
'deviceUID': deviceUID
|
|
262
264
|
};
|
|
263
265
|
var queryParams = {};
|
|
264
266
|
var headerParams = {};
|
|
265
267
|
var formParams = {};
|
|
266
|
-
var authNames = [
|
|
267
|
-
var contentTypes = [
|
|
268
|
-
var accepts = [
|
|
268
|
+
var authNames = ['api_key'];
|
|
269
|
+
var contentTypes = ['application/json'];
|
|
270
|
+
var accepts = ['application/json'];
|
|
269
271
|
var returnType = _GetProjectFleets200Response["default"];
|
|
270
|
-
return this.apiClient.callApi(
|
|
272
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
271
273
|
}
|
|
272
274
|
|
|
273
275
|
/**
|
|
274
276
|
* Remove Device from Fleets
|
|
275
|
-
* @param {String} projectUID
|
|
276
|
-
* @param {String} deviceUID
|
|
277
|
-
* @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.
|
|
277
|
+
* @param {String} projectUID
|
|
278
|
+
* @param {String} deviceUID
|
|
279
|
+
* @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.
|
|
278
280
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
279
281
|
*/
|
|
280
282
|
}, {
|
|
@@ -287,8 +289,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
289
|
|
|
288
290
|
/**
|
|
289
291
|
* Delete Fleet
|
|
290
|
-
* @param {String} projectUID
|
|
291
|
-
* @param {String} fleetUID
|
|
292
|
+
* @param {String} projectUID
|
|
293
|
+
* @param {String} fleetUID
|
|
292
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
293
295
|
*/
|
|
294
296
|
}, {
|
|
@@ -304,23 +306,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
304
306
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
305
307
|
}
|
|
306
308
|
var pathParams = {
|
|
307
|
-
projectUID: projectUID,
|
|
308
|
-
fleetUID: fleetUID
|
|
309
|
+
'projectUID': projectUID,
|
|
310
|
+
'fleetUID': fleetUID
|
|
309
311
|
};
|
|
310
312
|
var queryParams = {};
|
|
311
313
|
var headerParams = {};
|
|
312
314
|
var formParams = {};
|
|
313
|
-
var authNames = [
|
|
315
|
+
var authNames = ['api_key'];
|
|
314
316
|
var contentTypes = [];
|
|
315
|
-
var accepts = [
|
|
317
|
+
var accepts = ['application/json'];
|
|
316
318
|
var returnType = null;
|
|
317
|
-
return this.apiClient.callApi(
|
|
319
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
318
320
|
}
|
|
319
321
|
|
|
320
322
|
/**
|
|
321
323
|
* Delete Fleet
|
|
322
|
-
* @param {String} projectUID
|
|
323
|
-
* @param {String} fleetUID
|
|
324
|
+
* @param {String} projectUID
|
|
325
|
+
* @param {String} fleetUID
|
|
324
326
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
325
327
|
*/
|
|
326
328
|
}, {
|
|
@@ -333,8 +335,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
333
335
|
|
|
334
336
|
/**
|
|
335
337
|
* Delete environment variables of a fleet
|
|
336
|
-
* @param {String} projectUID
|
|
337
|
-
* @param {String} fleetUID
|
|
338
|
+
* @param {String} projectUID
|
|
339
|
+
* @param {String} fleetUID
|
|
338
340
|
* @param {String} key The environment variable key to delete.
|
|
339
341
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
340
342
|
*/
|
|
@@ -355,24 +357,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
357
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
356
358
|
}
|
|
357
359
|
var pathParams = {
|
|
358
|
-
projectUID: projectUID,
|
|
359
|
-
fleetUID: fleetUID,
|
|
360
|
-
key: key
|
|
360
|
+
'projectUID': projectUID,
|
|
361
|
+
'fleetUID': fleetUID,
|
|
362
|
+
'key': key
|
|
361
363
|
};
|
|
362
364
|
var queryParams = {};
|
|
363
365
|
var headerParams = {};
|
|
364
366
|
var formParams = {};
|
|
365
|
-
var authNames = [
|
|
367
|
+
var authNames = ['api_key'];
|
|
366
368
|
var contentTypes = [];
|
|
367
|
-
var accepts = [
|
|
369
|
+
var accepts = ['application/json'];
|
|
368
370
|
var returnType = _EnvironmentVariables["default"];
|
|
369
|
-
return this.apiClient.callApi(
|
|
371
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
370
372
|
}
|
|
371
373
|
|
|
372
374
|
/**
|
|
373
375
|
* Delete environment variables of a fleet
|
|
374
|
-
* @param {String} projectUID
|
|
375
|
-
* @param {String} fleetUID
|
|
376
|
+
* @param {String} projectUID
|
|
377
|
+
* @param {String} fleetUID
|
|
376
378
|
* @param {String} key The environment variable key to delete.
|
|
377
379
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
378
380
|
*/
|
|
@@ -386,7 +388,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
386
388
|
|
|
387
389
|
/**
|
|
388
390
|
* Delete a Project by ProjectUID
|
|
389
|
-
* @param {String} projectUID
|
|
391
|
+
* @param {String} projectUID
|
|
390
392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
391
393
|
*/
|
|
392
394
|
}, {
|
|
@@ -398,21 +400,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
400
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
|
|
399
401
|
}
|
|
400
402
|
var pathParams = {
|
|
401
|
-
projectUID: projectUID
|
|
403
|
+
'projectUID': projectUID
|
|
402
404
|
};
|
|
403
405
|
var queryParams = {};
|
|
404
406
|
var headerParams = {};
|
|
405
407
|
var formParams = {};
|
|
406
|
-
var authNames = [
|
|
408
|
+
var authNames = ['api_key'];
|
|
407
409
|
var contentTypes = [];
|
|
408
|
-
var accepts = [
|
|
410
|
+
var accepts = ['application/json'];
|
|
409
411
|
var returnType = null;
|
|
410
|
-
return this.apiClient.callApi(
|
|
412
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
411
413
|
}
|
|
412
414
|
|
|
413
415
|
/**
|
|
414
416
|
* Delete a Project by ProjectUID
|
|
415
|
-
* @param {String} projectUID
|
|
417
|
+
* @param {String} projectUID
|
|
416
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
417
419
|
*/
|
|
418
420
|
}, {
|
|
@@ -425,7 +427,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
425
427
|
|
|
426
428
|
/**
|
|
427
429
|
* Delete an environment variable of a project by key
|
|
428
|
-
* @param {String} projectUID
|
|
430
|
+
* @param {String} projectUID
|
|
429
431
|
* @param {String} key The environment variable key to delete.
|
|
430
432
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
431
433
|
*/
|
|
@@ -442,22 +444,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
442
444
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
443
445
|
}
|
|
444
446
|
var pathParams = {
|
|
445
|
-
projectUID: projectUID,
|
|
446
|
-
key: key
|
|
447
|
+
'projectUID': projectUID,
|
|
448
|
+
'key': key
|
|
447
449
|
};
|
|
448
450
|
var queryParams = {};
|
|
449
451
|
var headerParams = {};
|
|
450
452
|
var formParams = {};
|
|
451
|
-
var authNames = [
|
|
453
|
+
var authNames = ['api_key'];
|
|
452
454
|
var contentTypes = [];
|
|
453
|
-
var accepts = [
|
|
455
|
+
var accepts = ['application/json'];
|
|
454
456
|
var returnType = _EnvironmentVariables["default"];
|
|
455
|
-
return this.apiClient.callApi(
|
|
457
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
456
458
|
}
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
461
|
* Delete an environment variable of a project by key
|
|
460
|
-
* @param {String} projectUID
|
|
462
|
+
* @param {String} projectUID
|
|
461
463
|
* @param {String} key The environment variable key to delete.
|
|
462
464
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
463
465
|
*/
|
|
@@ -469,9 +471,95 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
469
471
|
});
|
|
470
472
|
}
|
|
471
473
|
|
|
474
|
+
/**
|
|
475
|
+
* Update/cancel host or notecard firmware updates
|
|
476
|
+
* @param {String} projectUID
|
|
477
|
+
* @param {module:model/String} firmwareType
|
|
478
|
+
* @param {module:model/String} action
|
|
479
|
+
* @param {Object} opts Optional parameters
|
|
480
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
481
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
482
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
483
|
+
* @param {String} opts.fleetUID
|
|
484
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
485
|
+
* @param {Array.<String>} opts.location Location filter
|
|
486
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
487
|
+
* @param {Array.<String>} opts.productUID
|
|
488
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
489
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
490
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
491
|
+
*/
|
|
492
|
+
}, {
|
|
493
|
+
key: "dfuActionWithHttpInfo",
|
|
494
|
+
value: function dfuActionWithHttpInfo(projectUID, firmwareType, action, opts) {
|
|
495
|
+
opts = opts || {};
|
|
496
|
+
var postBody = opts['dfuActionRequest'];
|
|
497
|
+
// verify the required parameter 'projectUID' is set
|
|
498
|
+
if (projectUID === undefined || projectUID === null) {
|
|
499
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling dfuAction");
|
|
500
|
+
}
|
|
501
|
+
// verify the required parameter 'firmwareType' is set
|
|
502
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
503
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling dfuAction");
|
|
504
|
+
}
|
|
505
|
+
// verify the required parameter 'action' is set
|
|
506
|
+
if (action === undefined || action === null) {
|
|
507
|
+
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
508
|
+
}
|
|
509
|
+
var pathParams = {
|
|
510
|
+
'projectUID': projectUID,
|
|
511
|
+
'firmwareType': firmwareType,
|
|
512
|
+
'action': action
|
|
513
|
+
};
|
|
514
|
+
var queryParams = {
|
|
515
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
516
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
517
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
518
|
+
'fleetUID': opts['fleetUID'],
|
|
519
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
520
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
521
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
522
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
523
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
524
|
+
};
|
|
525
|
+
var headerParams = {};
|
|
526
|
+
var formParams = {};
|
|
527
|
+
var authNames = ['api_key'];
|
|
528
|
+
var contentTypes = ['application/json'];
|
|
529
|
+
var accepts = ['application/json'];
|
|
530
|
+
var returnType = null;
|
|
531
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Update/cancel host or notecard firmware updates
|
|
536
|
+
* @param {String} projectUID
|
|
537
|
+
* @param {module:model/String} firmwareType
|
|
538
|
+
* @param {module:model/String} action
|
|
539
|
+
* @param {Object} opts Optional parameters
|
|
540
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
541
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
542
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
543
|
+
* @param {String} opts.fleetUID
|
|
544
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
545
|
+
* @param {Array.<String>} opts.location Location filter
|
|
546
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
547
|
+
* @param {Array.<String>} opts.productUID
|
|
548
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
549
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
550
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
551
|
+
*/
|
|
552
|
+
}, {
|
|
553
|
+
key: "dfuAction",
|
|
554
|
+
value: function dfuAction(projectUID, firmwareType, action, opts) {
|
|
555
|
+
return this.dfuActionWithHttpInfo(projectUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
556
|
+
return response_and_data.data;
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
|
|
472
560
|
/**
|
|
473
561
|
* Disable the project-level event JSONata transformation
|
|
474
|
-
* @param {String} projectUID
|
|
562
|
+
* @param {String} projectUID
|
|
475
563
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
476
564
|
*/
|
|
477
565
|
}, {
|
|
@@ -483,21 +571,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
483
571
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling disableGlobalTransformation");
|
|
484
572
|
}
|
|
485
573
|
var pathParams = {
|
|
486
|
-
projectUID: projectUID
|
|
574
|
+
'projectUID': projectUID
|
|
487
575
|
};
|
|
488
576
|
var queryParams = {};
|
|
489
577
|
var headerParams = {};
|
|
490
578
|
var formParams = {};
|
|
491
|
-
var authNames = [
|
|
579
|
+
var authNames = ['api_key'];
|
|
492
580
|
var contentTypes = [];
|
|
493
|
-
var accepts = [
|
|
581
|
+
var accepts = ['application/json'];
|
|
494
582
|
var returnType = null;
|
|
495
|
-
return this.apiClient.callApi(
|
|
583
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
496
584
|
}
|
|
497
585
|
|
|
498
586
|
/**
|
|
499
587
|
* Disable the project-level event JSONata transformation
|
|
500
|
-
* @param {String} projectUID
|
|
588
|
+
* @param {String} projectUID
|
|
501
589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
502
590
|
*/
|
|
503
591
|
}, {
|
|
@@ -510,7 +598,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
510
598
|
|
|
511
599
|
/**
|
|
512
600
|
* Enable the project-level event JSONata transformation
|
|
513
|
-
* @param {String} projectUID
|
|
601
|
+
* @param {String} projectUID
|
|
514
602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
515
603
|
*/
|
|
516
604
|
}, {
|
|
@@ -522,21 +610,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
610
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling enableGlobalTransformation");
|
|
523
611
|
}
|
|
524
612
|
var pathParams = {
|
|
525
|
-
projectUID: projectUID
|
|
613
|
+
'projectUID': projectUID
|
|
526
614
|
};
|
|
527
615
|
var queryParams = {};
|
|
528
616
|
var headerParams = {};
|
|
529
617
|
var formParams = {};
|
|
530
|
-
var authNames = [
|
|
618
|
+
var authNames = ['api_key'];
|
|
531
619
|
var contentTypes = [];
|
|
532
|
-
var accepts = [
|
|
620
|
+
var accepts = ['application/json'];
|
|
533
621
|
var returnType = null;
|
|
534
|
-
return this.apiClient.callApi(
|
|
622
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
535
623
|
}
|
|
536
624
|
|
|
537
625
|
/**
|
|
538
626
|
* Enable the project-level event JSONata transformation
|
|
539
|
-
* @param {String} projectUID
|
|
627
|
+
* @param {String} projectUID
|
|
540
628
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
541
629
|
*/
|
|
542
630
|
}, {
|
|
@@ -547,10 +635,116 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
547
635
|
});
|
|
548
636
|
}
|
|
549
637
|
|
|
638
|
+
/**
|
|
639
|
+
* Get device DFU history for host or Notecard firmware
|
|
640
|
+
* @param {String} projectUID
|
|
641
|
+
* @param {String} deviceUID
|
|
642
|
+
* @param {module:model/String} firmwareType
|
|
643
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
644
|
+
*/
|
|
645
|
+
}, {
|
|
646
|
+
key: "getDeviceDfuHistoryWithHttpInfo",
|
|
647
|
+
value: function getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType) {
|
|
648
|
+
var postBody = null;
|
|
649
|
+
// verify the required parameter 'projectUID' is set
|
|
650
|
+
if (projectUID === undefined || projectUID === null) {
|
|
651
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuHistory");
|
|
652
|
+
}
|
|
653
|
+
// verify the required parameter 'deviceUID' is set
|
|
654
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
655
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceDfuHistory");
|
|
656
|
+
}
|
|
657
|
+
// verify the required parameter 'firmwareType' is set
|
|
658
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
659
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
660
|
+
}
|
|
661
|
+
var pathParams = {
|
|
662
|
+
'projectUID': projectUID,
|
|
663
|
+
'deviceUID': deviceUID,
|
|
664
|
+
'firmwareType': firmwareType
|
|
665
|
+
};
|
|
666
|
+
var queryParams = {};
|
|
667
|
+
var headerParams = {};
|
|
668
|
+
var formParams = {};
|
|
669
|
+
var authNames = ['api_key'];
|
|
670
|
+
var contentTypes = [];
|
|
671
|
+
var accepts = ['application/json'];
|
|
672
|
+
var returnType = _DeviceDfuHistory["default"];
|
|
673
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Get device DFU history for host or Notecard firmware
|
|
678
|
+
* @param {String} projectUID
|
|
679
|
+
* @param {String} deviceUID
|
|
680
|
+
* @param {module:model/String} firmwareType
|
|
681
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
682
|
+
*/
|
|
683
|
+
}, {
|
|
684
|
+
key: "getDeviceDfuHistory",
|
|
685
|
+
value: function getDeviceDfuHistory(projectUID, deviceUID, firmwareType) {
|
|
686
|
+
return this.getDeviceDfuHistoryWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
|
|
687
|
+
return response_and_data.data;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Get device DFU history for host or Notecard firmware
|
|
693
|
+
* @param {String} projectUID
|
|
694
|
+
* @param {String} deviceUID
|
|
695
|
+
* @param {module:model/String} firmwareType
|
|
696
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
697
|
+
*/
|
|
698
|
+
}, {
|
|
699
|
+
key: "getDeviceDfuStatusWithHttpInfo",
|
|
700
|
+
value: function getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType) {
|
|
701
|
+
var postBody = null;
|
|
702
|
+
// verify the required parameter 'projectUID' is set
|
|
703
|
+
if (projectUID === undefined || projectUID === null) {
|
|
704
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceDfuStatus");
|
|
705
|
+
}
|
|
706
|
+
// verify the required parameter 'deviceUID' is set
|
|
707
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
708
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceDfuStatus");
|
|
709
|
+
}
|
|
710
|
+
// verify the required parameter 'firmwareType' is set
|
|
711
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
712
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
713
|
+
}
|
|
714
|
+
var pathParams = {
|
|
715
|
+
'projectUID': projectUID,
|
|
716
|
+
'deviceUID': deviceUID,
|
|
717
|
+
'firmwareType': firmwareType
|
|
718
|
+
};
|
|
719
|
+
var queryParams = {};
|
|
720
|
+
var headerParams = {};
|
|
721
|
+
var formParams = {};
|
|
722
|
+
var authNames = ['api_key'];
|
|
723
|
+
var contentTypes = [];
|
|
724
|
+
var accepts = ['application/json'];
|
|
725
|
+
var returnType = _DeviceDfuStatus["default"];
|
|
726
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Get device DFU history for host or Notecard firmware
|
|
731
|
+
* @param {String} projectUID
|
|
732
|
+
* @param {String} deviceUID
|
|
733
|
+
* @param {module:model/String} firmwareType
|
|
734
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
735
|
+
*/
|
|
736
|
+
}, {
|
|
737
|
+
key: "getDeviceDfuStatus",
|
|
738
|
+
value: function getDeviceDfuStatus(projectUID, deviceUID, firmwareType) {
|
|
739
|
+
return this.getDeviceDfuStatusWithHttpInfo(projectUID, deviceUID, firmwareType).then(function (response_and_data) {
|
|
740
|
+
return response_and_data.data;
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
|
|
550
744
|
/**
|
|
551
745
|
* Get Device Fleets
|
|
552
|
-
* @param {String} projectUID
|
|
553
|
-
* @param {String} deviceUID
|
|
746
|
+
* @param {String} projectUID
|
|
747
|
+
* @param {String} deviceUID
|
|
554
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
555
749
|
*/
|
|
556
750
|
}, {
|
|
@@ -566,23 +760,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
760
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
567
761
|
}
|
|
568
762
|
var pathParams = {
|
|
569
|
-
projectUID: projectUID,
|
|
570
|
-
deviceUID: deviceUID
|
|
763
|
+
'projectUID': projectUID,
|
|
764
|
+
'deviceUID': deviceUID
|
|
571
765
|
};
|
|
572
766
|
var queryParams = {};
|
|
573
767
|
var headerParams = {};
|
|
574
768
|
var formParams = {};
|
|
575
|
-
var authNames = [
|
|
769
|
+
var authNames = ['api_key'];
|
|
576
770
|
var contentTypes = [];
|
|
577
|
-
var accepts = [
|
|
771
|
+
var accepts = ['application/json'];
|
|
578
772
|
var returnType = _GetProjectFleets200Response["default"];
|
|
579
|
-
return this.apiClient.callApi(
|
|
773
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
774
|
}
|
|
581
775
|
|
|
582
776
|
/**
|
|
583
777
|
* Get Device Fleets
|
|
584
|
-
* @param {String} projectUID
|
|
585
|
-
* @param {String} deviceUID
|
|
778
|
+
* @param {String} projectUID
|
|
779
|
+
* @param {String} deviceUID
|
|
586
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
587
781
|
*/
|
|
588
782
|
}, {
|
|
@@ -593,17 +787,195 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
593
787
|
});
|
|
594
788
|
}
|
|
595
789
|
|
|
790
|
+
/**
|
|
791
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
792
|
+
* @param {String} projectUID
|
|
793
|
+
* @param {module:model/String} firmwareType
|
|
794
|
+
* @param {Object} opts Optional parameters
|
|
795
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
796
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
797
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
798
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
799
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
800
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
801
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
802
|
+
* @param {String} opts.fleetUID
|
|
803
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
804
|
+
* @param {Array.<String>} opts.location Location filter
|
|
805
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
806
|
+
* @param {Array.<String>} opts.productUID
|
|
807
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
808
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
809
|
+
*/
|
|
810
|
+
}, {
|
|
811
|
+
key: "getDevicesDfuHistoryWithHttpInfo",
|
|
812
|
+
value: function getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts) {
|
|
813
|
+
opts = opts || {};
|
|
814
|
+
var postBody = null;
|
|
815
|
+
// verify the required parameter 'projectUID' is set
|
|
816
|
+
if (projectUID === undefined || projectUID === null) {
|
|
817
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuHistory");
|
|
818
|
+
}
|
|
819
|
+
// verify the required parameter 'firmwareType' is set
|
|
820
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
821
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
822
|
+
}
|
|
823
|
+
var pathParams = {
|
|
824
|
+
'projectUID': projectUID,
|
|
825
|
+
'firmwareType': firmwareType
|
|
826
|
+
};
|
|
827
|
+
var queryParams = {
|
|
828
|
+
'pageSize': opts['pageSize'],
|
|
829
|
+
'pageNum': opts['pageNum'],
|
|
830
|
+
'sortBy': opts['sortBy'],
|
|
831
|
+
'sortOrder': opts['sortOrder'],
|
|
832
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
833
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
834
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
835
|
+
'fleetUID': opts['fleetUID'],
|
|
836
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
837
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
838
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
839
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
840
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
841
|
+
};
|
|
842
|
+
var headerParams = {};
|
|
843
|
+
var formParams = {};
|
|
844
|
+
var authNames = ['api_key'];
|
|
845
|
+
var contentTypes = [];
|
|
846
|
+
var accepts = ['application/json'];
|
|
847
|
+
var returnType = _DeviceDfuHistoryPage["default"];
|
|
848
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
853
|
+
* @param {String} projectUID
|
|
854
|
+
* @param {module:model/String} firmwareType
|
|
855
|
+
* @param {Object} opts Optional parameters
|
|
856
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
857
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
858
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
859
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
860
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
861
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
862
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
863
|
+
* @param {String} opts.fleetUID
|
|
864
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
865
|
+
* @param {Array.<String>} opts.location Location filter
|
|
866
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
867
|
+
* @param {Array.<String>} opts.productUID
|
|
868
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
869
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
870
|
+
*/
|
|
871
|
+
}, {
|
|
872
|
+
key: "getDevicesDfuHistory",
|
|
873
|
+
value: function getDevicesDfuHistory(projectUID, firmwareType, opts) {
|
|
874
|
+
return this.getDevicesDfuHistoryWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
|
|
875
|
+
return response_and_data.data;
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
881
|
+
* @param {String} projectUID
|
|
882
|
+
* @param {module:model/String} firmwareType
|
|
883
|
+
* @param {Object} opts Optional parameters
|
|
884
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
885
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
886
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
887
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
888
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
889
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
890
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
891
|
+
* @param {String} opts.fleetUID
|
|
892
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
893
|
+
* @param {Array.<String>} opts.location Location filter
|
|
894
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
895
|
+
* @param {Array.<String>} opts.productUID
|
|
896
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
897
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
898
|
+
*/
|
|
899
|
+
}, {
|
|
900
|
+
key: "getDevicesDfuStatusWithHttpInfo",
|
|
901
|
+
value: function getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts) {
|
|
902
|
+
opts = opts || {};
|
|
903
|
+
var postBody = null;
|
|
904
|
+
// verify the required parameter 'projectUID' is set
|
|
905
|
+
if (projectUID === undefined || projectUID === null) {
|
|
906
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDevicesDfuStatus");
|
|
907
|
+
}
|
|
908
|
+
// verify the required parameter 'firmwareType' is set
|
|
909
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
910
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
911
|
+
}
|
|
912
|
+
var pathParams = {
|
|
913
|
+
'projectUID': projectUID,
|
|
914
|
+
'firmwareType': firmwareType
|
|
915
|
+
};
|
|
916
|
+
var queryParams = {
|
|
917
|
+
'pageSize': opts['pageSize'],
|
|
918
|
+
'pageNum': opts['pageNum'],
|
|
919
|
+
'sortBy': opts['sortBy'],
|
|
920
|
+
'sortOrder': opts['sortOrder'],
|
|
921
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
922
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
923
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
924
|
+
'fleetUID': opts['fleetUID'],
|
|
925
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
926
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
927
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
928
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
929
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
930
|
+
};
|
|
931
|
+
var headerParams = {};
|
|
932
|
+
var formParams = {};
|
|
933
|
+
var authNames = ['api_key'];
|
|
934
|
+
var contentTypes = [];
|
|
935
|
+
var accepts = ['application/json'];
|
|
936
|
+
var returnType = _DeviceDfuStatusPage["default"];
|
|
937
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
942
|
+
* @param {String} projectUID
|
|
943
|
+
* @param {module:model/String} firmwareType
|
|
944
|
+
* @param {Object} opts Optional parameters
|
|
945
|
+
* @param {Number} opts.pageSize (default to 50)
|
|
946
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
947
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
948
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
949
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
950
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
951
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
952
|
+
* @param {String} opts.fleetUID
|
|
953
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
954
|
+
* @param {Array.<String>} opts.location Location filter
|
|
955
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
956
|
+
* @param {Array.<String>} opts.productUID
|
|
957
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
958
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
959
|
+
*/
|
|
960
|
+
}, {
|
|
961
|
+
key: "getDevicesDfuStatus",
|
|
962
|
+
value: function getDevicesDfuStatus(projectUID, firmwareType, opts) {
|
|
963
|
+
return this.getDevicesDfuStatusWithHttpInfo(projectUID, firmwareType, opts).then(function (response_and_data) {
|
|
964
|
+
return response_and_data.data;
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
|
|
596
968
|
/**
|
|
597
969
|
* Get Available Firmware Information
|
|
598
|
-
* @param {String} projectUID
|
|
970
|
+
* @param {String} projectUID
|
|
599
971
|
* @param {Object} opts Optional parameters
|
|
600
|
-
* @param {String} opts.product
|
|
601
|
-
* @param {String} opts.firmwareType
|
|
602
|
-
* @param {String} opts.version
|
|
603
|
-
* @param {String} opts.target
|
|
604
|
-
* @param {String} opts.filename
|
|
605
|
-
* @param {String} opts.md5
|
|
606
|
-
* @param {Boolean} opts.unpublished
|
|
972
|
+
* @param {String} opts.product
|
|
973
|
+
* @param {String} opts.firmwareType
|
|
974
|
+
* @param {String} opts.version
|
|
975
|
+
* @param {String} opts.target
|
|
976
|
+
* @param {String} opts.filename
|
|
977
|
+
* @param {String} opts.md5
|
|
978
|
+
* @param {Boolean} opts.unpublished
|
|
607
979
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
608
980
|
*/
|
|
609
981
|
}, {
|
|
@@ -616,37 +988,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
616
988
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFirmwareInfo");
|
|
617
989
|
}
|
|
618
990
|
var pathParams = {
|
|
619
|
-
projectUID: projectUID
|
|
991
|
+
'projectUID': projectUID
|
|
620
992
|
};
|
|
621
993
|
var queryParams = {
|
|
622
|
-
product: opts[
|
|
623
|
-
firmwareType: opts[
|
|
624
|
-
version: opts[
|
|
625
|
-
target: opts[
|
|
626
|
-
filename: opts[
|
|
627
|
-
md5: opts[
|
|
628
|
-
unpublished: opts[
|
|
994
|
+
'product': opts['product'],
|
|
995
|
+
'firmwareType': opts['firmwareType'],
|
|
996
|
+
'version': opts['version'],
|
|
997
|
+
'target': opts['target'],
|
|
998
|
+
'filename': opts['filename'],
|
|
999
|
+
'md5': opts['md5'],
|
|
1000
|
+
'unpublished': opts['unpublished']
|
|
629
1001
|
};
|
|
630
1002
|
var headerParams = {};
|
|
631
1003
|
var formParams = {};
|
|
632
|
-
var authNames = [
|
|
1004
|
+
var authNames = ['api_key'];
|
|
633
1005
|
var contentTypes = [];
|
|
634
|
-
var accepts = [
|
|
1006
|
+
var accepts = ['application/json'];
|
|
635
1007
|
var returnType = [_FirmwareInfo["default"]];
|
|
636
|
-
return this.apiClient.callApi(
|
|
1008
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
637
1009
|
}
|
|
638
1010
|
|
|
639
1011
|
/**
|
|
640
1012
|
* Get Available Firmware Information
|
|
641
|
-
* @param {String} projectUID
|
|
1013
|
+
* @param {String} projectUID
|
|
642
1014
|
* @param {Object} opts Optional parameters
|
|
643
|
-
* @param {String} opts.product
|
|
644
|
-
* @param {String} opts.firmwareType
|
|
645
|
-
* @param {String} opts.version
|
|
646
|
-
* @param {String} opts.target
|
|
647
|
-
* @param {String} opts.filename
|
|
648
|
-
* @param {String} opts.md5
|
|
649
|
-
* @param {Boolean} opts.unpublished
|
|
1015
|
+
* @param {String} opts.product
|
|
1016
|
+
* @param {String} opts.firmwareType
|
|
1017
|
+
* @param {String} opts.version
|
|
1018
|
+
* @param {String} opts.target
|
|
1019
|
+
* @param {String} opts.filename
|
|
1020
|
+
* @param {String} opts.md5
|
|
1021
|
+
* @param {Boolean} opts.unpublished
|
|
650
1022
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
651
1023
|
*/
|
|
652
1024
|
}, {
|
|
@@ -659,8 +1031,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
659
1031
|
|
|
660
1032
|
/**
|
|
661
1033
|
* Get environment variables of a fleet
|
|
662
|
-
* @param {String} projectUID
|
|
663
|
-
* @param {String} fleetUID
|
|
1034
|
+
* @param {String} projectUID
|
|
1035
|
+
* @param {String} fleetUID
|
|
664
1036
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
665
1037
|
*/
|
|
666
1038
|
}, {
|
|
@@ -676,23 +1048,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
1048
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
677
1049
|
}
|
|
678
1050
|
var pathParams = {
|
|
679
|
-
projectUID: projectUID,
|
|
680
|
-
fleetUID: fleetUID
|
|
1051
|
+
'projectUID': projectUID,
|
|
1052
|
+
'fleetUID': fleetUID
|
|
681
1053
|
};
|
|
682
1054
|
var queryParams = {};
|
|
683
1055
|
var headerParams = {};
|
|
684
1056
|
var formParams = {};
|
|
685
|
-
var authNames = [
|
|
1057
|
+
var authNames = ['api_key'];
|
|
686
1058
|
var contentTypes = [];
|
|
687
|
-
var accepts = [
|
|
1059
|
+
var accepts = ['application/json'];
|
|
688
1060
|
var returnType = _EnvironmentVariables["default"];
|
|
689
|
-
return this.apiClient.callApi(
|
|
1061
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
690
1062
|
}
|
|
691
1063
|
|
|
692
1064
|
/**
|
|
693
1065
|
* Get environment variables of a fleet
|
|
694
|
-
* @param {String} projectUID
|
|
695
|
-
* @param {String} fleetUID
|
|
1066
|
+
* @param {String} projectUID
|
|
1067
|
+
* @param {String} fleetUID
|
|
696
1068
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
697
1069
|
*/
|
|
698
1070
|
}, {
|
|
@@ -705,7 +1077,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
705
1077
|
|
|
706
1078
|
/**
|
|
707
1079
|
* Get a Project by ProjectUID
|
|
708
|
-
* @param {String} projectUID
|
|
1080
|
+
* @param {String} projectUID
|
|
709
1081
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
710
1082
|
*/
|
|
711
1083
|
}, {
|
|
@@ -717,21 +1089,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
717
1089
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
718
1090
|
}
|
|
719
1091
|
var pathParams = {
|
|
720
|
-
projectUID: projectUID
|
|
1092
|
+
'projectUID': projectUID
|
|
721
1093
|
};
|
|
722
1094
|
var queryParams = {};
|
|
723
1095
|
var headerParams = {};
|
|
724
1096
|
var formParams = {};
|
|
725
|
-
var authNames = [
|
|
1097
|
+
var authNames = ['api_key'];
|
|
726
1098
|
var contentTypes = [];
|
|
727
|
-
var accepts = [
|
|
1099
|
+
var accepts = ['application/json'];
|
|
728
1100
|
var returnType = _Project["default"];
|
|
729
|
-
return this.apiClient.callApi(
|
|
1101
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
730
1102
|
}
|
|
731
1103
|
|
|
732
1104
|
/**
|
|
733
1105
|
* Get a Project by ProjectUID
|
|
734
|
-
* @param {String} projectUID
|
|
1106
|
+
* @param {String} projectUID
|
|
735
1107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
736
1108
|
*/
|
|
737
1109
|
}, {
|
|
@@ -744,7 +1116,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
744
1116
|
|
|
745
1117
|
/**
|
|
746
1118
|
* Get a Project by ProductUID
|
|
747
|
-
* @param {String} productUID
|
|
1119
|
+
* @param {String} productUID
|
|
748
1120
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
749
1121
|
*/
|
|
750
1122
|
}, {
|
|
@@ -756,21 +1128,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
756
1128
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
757
1129
|
}
|
|
758
1130
|
var pathParams = {
|
|
759
|
-
productUID: productUID
|
|
1131
|
+
'productUID': productUID
|
|
760
1132
|
};
|
|
761
1133
|
var queryParams = {};
|
|
762
1134
|
var headerParams = {};
|
|
763
1135
|
var formParams = {};
|
|
764
|
-
var authNames = [
|
|
1136
|
+
var authNames = ['api_key'];
|
|
765
1137
|
var contentTypes = [];
|
|
766
|
-
var accepts = [
|
|
1138
|
+
var accepts = ['application/json'];
|
|
767
1139
|
var returnType = _Project["default"];
|
|
768
|
-
return this.apiClient.callApi(
|
|
1140
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
769
1141
|
}
|
|
770
1142
|
|
|
771
1143
|
/**
|
|
772
1144
|
* Get a Project by ProductUID
|
|
773
|
-
* @param {String} productUID
|
|
1145
|
+
* @param {String} productUID
|
|
774
1146
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
775
1147
|
*/
|
|
776
1148
|
}, {
|
|
@@ -783,7 +1155,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
783
1155
|
|
|
784
1156
|
/**
|
|
785
1157
|
* Get environment variables of a project
|
|
786
|
-
* @param {String} projectUID
|
|
1158
|
+
* @param {String} projectUID
|
|
787
1159
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
788
1160
|
*/
|
|
789
1161
|
}, {
|
|
@@ -795,21 +1167,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
795
1167
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEnvironmentVariables");
|
|
796
1168
|
}
|
|
797
1169
|
var pathParams = {
|
|
798
|
-
projectUID: projectUID
|
|
1170
|
+
'projectUID': projectUID
|
|
799
1171
|
};
|
|
800
1172
|
var queryParams = {};
|
|
801
1173
|
var headerParams = {};
|
|
802
1174
|
var formParams = {};
|
|
803
|
-
var authNames = [
|
|
1175
|
+
var authNames = ['api_key'];
|
|
804
1176
|
var contentTypes = [];
|
|
805
|
-
var accepts = [
|
|
1177
|
+
var accepts = ['application/json'];
|
|
806
1178
|
var returnType = _EnvironmentVariables["default"];
|
|
807
|
-
return this.apiClient.callApi(
|
|
1179
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
808
1180
|
}
|
|
809
1181
|
|
|
810
1182
|
/**
|
|
811
1183
|
* Get environment variables of a project
|
|
812
|
-
* @param {String} projectUID
|
|
1184
|
+
* @param {String} projectUID
|
|
813
1185
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
814
1186
|
*/
|
|
815
1187
|
}, {
|
|
@@ -822,7 +1194,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
822
1194
|
|
|
823
1195
|
/**
|
|
824
1196
|
* Get Project Fleets
|
|
825
|
-
* @param {String} projectUID
|
|
1197
|
+
* @param {String} projectUID
|
|
826
1198
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
827
1199
|
*/
|
|
828
1200
|
}, {
|
|
@@ -834,21 +1206,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
834
1206
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
835
1207
|
}
|
|
836
1208
|
var pathParams = {
|
|
837
|
-
projectUID: projectUID
|
|
1209
|
+
'projectUID': projectUID
|
|
838
1210
|
};
|
|
839
1211
|
var queryParams = {};
|
|
840
1212
|
var headerParams = {};
|
|
841
1213
|
var formParams = {};
|
|
842
|
-
var authNames = [
|
|
1214
|
+
var authNames = ['api_key'];
|
|
843
1215
|
var contentTypes = [];
|
|
844
|
-
var accepts = [
|
|
1216
|
+
var accepts = ['application/json'];
|
|
845
1217
|
var returnType = _GetProjectFleets200Response["default"];
|
|
846
|
-
return this.apiClient.callApi(
|
|
1218
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
847
1219
|
}
|
|
848
1220
|
|
|
849
1221
|
/**
|
|
850
1222
|
* Get Project Fleets
|
|
851
|
-
* @param {String} projectUID
|
|
1223
|
+
* @param {String} projectUID
|
|
852
1224
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
853
1225
|
*/
|
|
854
1226
|
}, {
|
|
@@ -861,7 +1233,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
861
1233
|
|
|
862
1234
|
/**
|
|
863
1235
|
* Get Project Members
|
|
864
|
-
* @param {String} projectUID
|
|
1236
|
+
* @param {String} projectUID
|
|
865
1237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
866
1238
|
*/
|
|
867
1239
|
}, {
|
|
@@ -873,21 +1245,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
873
1245
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectMembers");
|
|
874
1246
|
}
|
|
875
1247
|
var pathParams = {
|
|
876
|
-
projectUID: projectUID
|
|
1248
|
+
'projectUID': projectUID
|
|
877
1249
|
};
|
|
878
1250
|
var queryParams = {};
|
|
879
1251
|
var headerParams = {};
|
|
880
1252
|
var formParams = {};
|
|
881
|
-
var authNames = [
|
|
1253
|
+
var authNames = ['api_key'];
|
|
882
1254
|
var contentTypes = [];
|
|
883
|
-
var accepts = [
|
|
1255
|
+
var accepts = ['application/json'];
|
|
884
1256
|
var returnType = _GetProjectMembers200Response["default"];
|
|
885
|
-
return this.apiClient.callApi(
|
|
1257
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
886
1258
|
}
|
|
887
1259
|
|
|
888
1260
|
/**
|
|
889
1261
|
* Get Project Members
|
|
890
|
-
* @param {String} projectUID
|
|
1262
|
+
* @param {String} projectUID
|
|
891
1263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
892
1264
|
*/
|
|
893
1265
|
}, {
|
|
@@ -898,67 +1270,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
898
1270
|
});
|
|
899
1271
|
}
|
|
900
1272
|
|
|
901
|
-
/**
|
|
902
|
-
* Get Project OTA Status
|
|
903
|
-
* @param {String} projectUID
|
|
904
|
-
* @param {Object} opts Optional parameters
|
|
905
|
-
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
906
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
907
|
-
* @param {Array.<String>} opts.deviceTags
|
|
908
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
909
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
910
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAStatusList>} and HTTP response
|
|
911
|
-
*/
|
|
912
|
-
}, {
|
|
913
|
-
key: "getProjectOTAStatusWithHttpInfo",
|
|
914
|
-
value: function getProjectOTAStatusWithHttpInfo(projectUID, opts) {
|
|
915
|
-
opts = opts || {};
|
|
916
|
-
var postBody = null;
|
|
917
|
-
// verify the required parameter 'projectUID' is set
|
|
918
|
-
if (projectUID === undefined || projectUID === null) {
|
|
919
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectOTAStatus");
|
|
920
|
-
}
|
|
921
|
-
var pathParams = {
|
|
922
|
-
projectUID: projectUID
|
|
923
|
-
};
|
|
924
|
-
var queryParams = {
|
|
925
|
-
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
926
|
-
fleetUIDs: this.apiClient.buildCollectionParam(opts["fleetUIDs"], "multi"),
|
|
927
|
-
deviceTags: this.apiClient.buildCollectionParam(opts["deviceTags"], "multi"),
|
|
928
|
-
pageSize: opts["pageSize"],
|
|
929
|
-
pageNum: opts["pageNum"]
|
|
930
|
-
};
|
|
931
|
-
var headerParams = {};
|
|
932
|
-
var formParams = {};
|
|
933
|
-
var authNames = ["api_key"];
|
|
934
|
-
var contentTypes = [];
|
|
935
|
-
var accepts = ["application/json"];
|
|
936
|
-
var returnType = [_OTAStatusList["default"]];
|
|
937
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/ota/status", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Get Project OTA Status
|
|
942
|
-
* @param {String} projectUID
|
|
943
|
-
* @param {Object} opts Optional parameters
|
|
944
|
-
* @param {Array.<String>} opts.deviceUIDs An array of Device UIDs.
|
|
945
|
-
* @param {Array.<String>} opts.fleetUIDs
|
|
946
|
-
* @param {Array.<String>} opts.deviceTags
|
|
947
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
948
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
949
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAStatusList>}
|
|
950
|
-
*/
|
|
951
|
-
}, {
|
|
952
|
-
key: "getProjectOTAStatus",
|
|
953
|
-
value: function getProjectOTAStatus(projectUID, opts) {
|
|
954
|
-
return this.getProjectOTAStatusWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
955
|
-
return response_and_data.data;
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
|
|
959
1273
|
/**
|
|
960
1274
|
* Get Products within a Project
|
|
961
|
-
* @param {String} projectUID
|
|
1275
|
+
* @param {String} projectUID
|
|
962
1276
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
963
1277
|
*/
|
|
964
1278
|
}, {
|
|
@@ -970,21 +1284,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
970
1284
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
971
1285
|
}
|
|
972
1286
|
var pathParams = {
|
|
973
|
-
projectUID: projectUID
|
|
1287
|
+
'projectUID': projectUID
|
|
974
1288
|
};
|
|
975
1289
|
var queryParams = {};
|
|
976
1290
|
var headerParams = {};
|
|
977
1291
|
var formParams = {};
|
|
978
|
-
var authNames = [
|
|
1292
|
+
var authNames = ['api_key'];
|
|
979
1293
|
var contentTypes = [];
|
|
980
|
-
var accepts = [
|
|
1294
|
+
var accepts = ['application/json'];
|
|
981
1295
|
var returnType = _GetProjectProducts200Response["default"];
|
|
982
|
-
return this.apiClient.callApi(
|
|
1296
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
983
1297
|
}
|
|
984
1298
|
|
|
985
1299
|
/**
|
|
986
1300
|
* Get Products within a Project
|
|
987
|
-
* @param {String} projectUID
|
|
1301
|
+
* @param {String} projectUID
|
|
988
1302
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
989
1303
|
*/
|
|
990
1304
|
}, {
|
|
@@ -1007,11 +1321,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1007
1321
|
var queryParams = {};
|
|
1008
1322
|
var headerParams = {};
|
|
1009
1323
|
var formParams = {};
|
|
1010
|
-
var authNames = [
|
|
1324
|
+
var authNames = ['api_key'];
|
|
1011
1325
|
var contentTypes = [];
|
|
1012
|
-
var accepts = [
|
|
1326
|
+
var accepts = ['application/json'];
|
|
1013
1327
|
var returnType = _GetProjects200Response["default"];
|
|
1014
|
-
return this.apiClient.callApi(
|
|
1328
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1015
1329
|
}
|
|
1016
1330
|
|
|
1017
1331
|
/**
|
|
@@ -1028,9 +1342,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1028
1342
|
|
|
1029
1343
|
/**
|
|
1030
1344
|
* Add Device to Fleets
|
|
1031
|
-
* @param {String} projectUID
|
|
1032
|
-
* @param {String} deviceUID
|
|
1033
|
-
* @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.
|
|
1345
|
+
* @param {String} projectUID
|
|
1346
|
+
* @param {String} deviceUID
|
|
1347
|
+
* @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.
|
|
1034
1348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
1035
1349
|
*/
|
|
1036
1350
|
}, {
|
|
@@ -1050,24 +1364,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1050
1364
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1051
1365
|
}
|
|
1052
1366
|
var pathParams = {
|
|
1053
|
-
projectUID: projectUID,
|
|
1054
|
-
deviceUID: deviceUID
|
|
1367
|
+
'projectUID': projectUID,
|
|
1368
|
+
'deviceUID': deviceUID
|
|
1055
1369
|
};
|
|
1056
1370
|
var queryParams = {};
|
|
1057
1371
|
var headerParams = {};
|
|
1058
1372
|
var formParams = {};
|
|
1059
|
-
var authNames = [
|
|
1060
|
-
var contentTypes = [
|
|
1061
|
-
var accepts = [
|
|
1373
|
+
var authNames = ['api_key'];
|
|
1374
|
+
var contentTypes = ['application/json'];
|
|
1375
|
+
var accepts = ['application/json'];
|
|
1062
1376
|
var returnType = _GetProjectFleets200Response["default"];
|
|
1063
|
-
return this.apiClient.callApi(
|
|
1377
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1064
1378
|
}
|
|
1065
1379
|
|
|
1066
1380
|
/**
|
|
1067
1381
|
* Add Device to Fleets
|
|
1068
|
-
* @param {String} projectUID
|
|
1069
|
-
* @param {String} deviceUID
|
|
1070
|
-
* @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.
|
|
1382
|
+
* @param {String} projectUID
|
|
1383
|
+
* @param {String} deviceUID
|
|
1384
|
+
* @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.
|
|
1071
1385
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
1072
1386
|
*/
|
|
1073
1387
|
}, {
|
|
@@ -1080,8 +1394,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1080
1394
|
|
|
1081
1395
|
/**
|
|
1082
1396
|
* Put environment variables of a fleet
|
|
1083
|
-
* @param {String} projectUID
|
|
1084
|
-
* @param {String} fleetUID
|
|
1397
|
+
* @param {String} projectUID
|
|
1398
|
+
* @param {String} fleetUID
|
|
1085
1399
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1086
1400
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1087
1401
|
*/
|
|
@@ -1102,23 +1416,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1102
1416
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1103
1417
|
}
|
|
1104
1418
|
var pathParams = {
|
|
1105
|
-
projectUID: projectUID,
|
|
1106
|
-
fleetUID: fleetUID
|
|
1419
|
+
'projectUID': projectUID,
|
|
1420
|
+
'fleetUID': fleetUID
|
|
1107
1421
|
};
|
|
1108
1422
|
var queryParams = {};
|
|
1109
1423
|
var headerParams = {};
|
|
1110
1424
|
var formParams = {};
|
|
1111
|
-
var authNames = [
|
|
1112
|
-
var contentTypes = [
|
|
1113
|
-
var accepts = [
|
|
1425
|
+
var authNames = ['api_key'];
|
|
1426
|
+
var contentTypes = ['application/json'];
|
|
1427
|
+
var accepts = ['application/json'];
|
|
1114
1428
|
var returnType = _EnvironmentVariables["default"];
|
|
1115
|
-
return this.apiClient.callApi(
|
|
1429
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1116
1430
|
}
|
|
1117
1431
|
|
|
1118
1432
|
/**
|
|
1119
1433
|
* Put environment variables of a fleet
|
|
1120
|
-
* @param {String} projectUID
|
|
1121
|
-
* @param {String} fleetUID
|
|
1434
|
+
* @param {String} projectUID
|
|
1435
|
+
* @param {String} fleetUID
|
|
1122
1436
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1123
1437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1124
1438
|
*/
|
|
@@ -1132,38 +1446,38 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1132
1446
|
|
|
1133
1447
|
/**
|
|
1134
1448
|
* Put environment variables of a project
|
|
1135
|
-
* @param {String} projectUID
|
|
1449
|
+
* @param {String} projectUID
|
|
1136
1450
|
* @param {Object} opts Optional parameters
|
|
1137
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1451
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1138
1452
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1139
1453
|
*/
|
|
1140
1454
|
}, {
|
|
1141
1455
|
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1142
1456
|
value: function putProjectEnvironmentVariablesWithHttpInfo(projectUID, opts) {
|
|
1143
1457
|
opts = opts || {};
|
|
1144
|
-
var postBody = opts[
|
|
1458
|
+
var postBody = opts['environmentVariables'];
|
|
1145
1459
|
// verify the required parameter 'projectUID' is set
|
|
1146
1460
|
if (projectUID === undefined || projectUID === null) {
|
|
1147
1461
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putProjectEnvironmentVariables");
|
|
1148
1462
|
}
|
|
1149
1463
|
var pathParams = {
|
|
1150
|
-
projectUID: projectUID
|
|
1464
|
+
'projectUID': projectUID
|
|
1151
1465
|
};
|
|
1152
1466
|
var queryParams = {};
|
|
1153
1467
|
var headerParams = {};
|
|
1154
1468
|
var formParams = {};
|
|
1155
|
-
var authNames = [
|
|
1156
|
-
var contentTypes = [
|
|
1157
|
-
var accepts = [
|
|
1469
|
+
var authNames = ['api_key'];
|
|
1470
|
+
var contentTypes = ['application/json'];
|
|
1471
|
+
var accepts = ['application/json'];
|
|
1158
1472
|
var returnType = _EnvironmentVariables["default"];
|
|
1159
|
-
return this.apiClient.callApi(
|
|
1473
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1160
1474
|
}
|
|
1161
1475
|
|
|
1162
1476
|
/**
|
|
1163
1477
|
* Put environment variables of a project
|
|
1164
|
-
* @param {String} projectUID
|
|
1478
|
+
* @param {String} projectUID
|
|
1165
1479
|
* @param {Object} opts Optional parameters
|
|
1166
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1480
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1167
1481
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1168
1482
|
*/
|
|
1169
1483
|
}, {
|
|
@@ -1176,7 +1490,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1176
1490
|
|
|
1177
1491
|
/**
|
|
1178
1492
|
* Set the project-level event JSONata transformation
|
|
1179
|
-
* @param {String} projectUID
|
|
1493
|
+
* @param {String} projectUID
|
|
1180
1494
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1181
1495
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1182
1496
|
*/
|
|
@@ -1193,21 +1507,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1193
1507
|
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1194
1508
|
}
|
|
1195
1509
|
var pathParams = {
|
|
1196
|
-
projectUID: projectUID
|
|
1510
|
+
'projectUID': projectUID
|
|
1197
1511
|
};
|
|
1198
1512
|
var queryParams = {};
|
|
1199
1513
|
var headerParams = {};
|
|
1200
1514
|
var formParams = {};
|
|
1201
|
-
var authNames = [
|
|
1202
|
-
var contentTypes = [
|
|
1203
|
-
var accepts = [
|
|
1515
|
+
var authNames = ['api_key'];
|
|
1516
|
+
var contentTypes = ['application/json'];
|
|
1517
|
+
var accepts = ['application/json'];
|
|
1204
1518
|
var returnType = null;
|
|
1205
|
-
return this.apiClient.callApi(
|
|
1519
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1206
1520
|
}
|
|
1207
1521
|
|
|
1208
1522
|
/**
|
|
1209
1523
|
* Set the project-level event JSONata transformation
|
|
1210
|
-
* @param {String} projectUID
|
|
1524
|
+
* @param {String} projectUID
|
|
1211
1525
|
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1212
1526
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1213
1527
|
*/
|
|
@@ -1221,8 +1535,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1221
1535
|
|
|
1222
1536
|
/**
|
|
1223
1537
|
* Update Fleet
|
|
1224
|
-
* @param {String} projectUID
|
|
1225
|
-
* @param {String} fleetUID
|
|
1538
|
+
* @param {String} projectUID
|
|
1539
|
+
* @param {String} fleetUID
|
|
1226
1540
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1227
1541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1228
1542
|
*/
|
|
@@ -1243,23 +1557,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1243
1557
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1244
1558
|
}
|
|
1245
1559
|
var pathParams = {
|
|
1246
|
-
projectUID: projectUID,
|
|
1247
|
-
fleetUID: fleetUID
|
|
1560
|
+
'projectUID': projectUID,
|
|
1561
|
+
'fleetUID': fleetUID
|
|
1248
1562
|
};
|
|
1249
1563
|
var queryParams = {};
|
|
1250
1564
|
var headerParams = {};
|
|
1251
1565
|
var formParams = {};
|
|
1252
|
-
var authNames = [
|
|
1253
|
-
var contentTypes = [
|
|
1254
|
-
var accepts = [
|
|
1566
|
+
var authNames = ['api_key'];
|
|
1567
|
+
var contentTypes = ['application/json'];
|
|
1568
|
+
var accepts = ['application/json'];
|
|
1255
1569
|
var returnType = _Fleet["default"];
|
|
1256
|
-
return this.apiClient.callApi(
|
|
1570
|
+
return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1257
1571
|
}
|
|
1258
1572
|
|
|
1259
1573
|
/**
|
|
1260
1574
|
* Update Fleet
|
|
1261
|
-
* @param {String} projectUID
|
|
1262
|
-
* @param {String} fleetUID
|
|
1575
|
+
* @param {String} projectUID
|
|
1576
|
+
* @param {String} fleetUID
|
|
1263
1577
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1264
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1265
1579
|
*/
|
|
@@ -1270,50 +1584,5 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1270
1584
|
return response_and_data.data;
|
|
1271
1585
|
});
|
|
1272
1586
|
}
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* Update Project Firmware
|
|
1276
|
-
* @param {String} projectUID
|
|
1277
|
-
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1278
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/OTAUpdateStatus>} and HTTP response
|
|
1279
|
-
*/
|
|
1280
|
-
}, {
|
|
1281
|
-
key: "updateProjectFirmwareWithHttpInfo",
|
|
1282
|
-
value: function updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest) {
|
|
1283
|
-
var postBody = oTAUpdateRequest;
|
|
1284
|
-
// verify the required parameter 'projectUID' is set
|
|
1285
|
-
if (projectUID === undefined || projectUID === null) {
|
|
1286
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateProjectFirmware");
|
|
1287
|
-
}
|
|
1288
|
-
// verify the required parameter 'oTAUpdateRequest' is set
|
|
1289
|
-
if (oTAUpdateRequest === undefined || oTAUpdateRequest === null) {
|
|
1290
|
-
throw new _Error["default"]("Missing the required parameter 'oTAUpdateRequest' when calling updateProjectFirmware");
|
|
1291
|
-
}
|
|
1292
|
-
var pathParams = {
|
|
1293
|
-
projectUID: projectUID
|
|
1294
|
-
};
|
|
1295
|
-
var queryParams = {};
|
|
1296
|
-
var headerParams = {};
|
|
1297
|
-
var formParams = {};
|
|
1298
|
-
var authNames = ["api_key"];
|
|
1299
|
-
var contentTypes = ["application/json"];
|
|
1300
|
-
var accepts = ["application/json"];
|
|
1301
|
-
var returnType = [_OTAUpdateStatus["default"]];
|
|
1302
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/ota/update", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* Update Project Firmware
|
|
1307
|
-
* @param {String} projectUID
|
|
1308
|
-
* @param {module:model/OTAUpdateRequest} oTAUpdateRequest Body or payload of firmware update
|
|
1309
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/OTAUpdateStatus>}
|
|
1310
|
-
*/
|
|
1311
|
-
}, {
|
|
1312
|
-
key: "updateProjectFirmware",
|
|
1313
|
-
value: function updateProjectFirmware(projectUID, oTAUpdateRequest) {
|
|
1314
|
-
return this.updateProjectFirmwareWithHttpInfo(projectUID, oTAUpdateRequest).then(function (response_and_data) {
|
|
1315
|
-
return response_and_data.data;
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
1587
|
}]);
|
|
1319
1588
|
}();
|