@blues-inc/notehub-js 2.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -45
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +806 -794
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +228 -228
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +24 -3
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +80 -73
- package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +20 -20
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +20 -20
- package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +19 -19
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +20 -20
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +21 -21
- package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +22 -22
- package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +22 -22
- package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +20 -20
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +20 -20
- package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +21 -21
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +15 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +22 -22
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +18 -18
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +12 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/api/ProjectApi.js
CHANGED
|
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AddDeviceToFleetsRequest = _interopRequireDefault(require("../model/AddDeviceToFleetsRequest"));
|
|
8
9
|
var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
|
|
9
10
|
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
10
11
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
11
12
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
12
|
-
var
|
|
13
|
+
var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFromFleetsRequest"));
|
|
13
14
|
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
14
15
|
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
15
16
|
var _DeviceDfuStatus = _interopRequireDefault(require("../model/DeviceDfuStatus"));
|
|
@@ -27,7 +28,6 @@ var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjec
|
|
|
27
28
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
28
29
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
29
30
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
30
|
-
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
31
31
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
32
32
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
33
33
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
50
|
/**
|
|
51
51
|
* Project service.
|
|
52
52
|
* @module api/ProjectApi
|
|
53
|
-
* @version
|
|
53
|
+
* @version 3.0.0
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -66,12 +66,64 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Add Device to Fleets
|
|
70
70
|
* @param {String} projectOrProductUID
|
|
71
|
-
* @param {
|
|
72
|
-
* @
|
|
71
|
+
* @param {String} deviceUID
|
|
72
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
73
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
73
74
|
*/
|
|
74
75
|
return _createClass(ProjectApi, [{
|
|
76
|
+
key: "addDeviceToFleetsWithHttpInfo",
|
|
77
|
+
value: function addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
|
|
78
|
+
var postBody = addDeviceToFleetsRequest;
|
|
79
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
80
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
81
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceToFleets");
|
|
82
|
+
}
|
|
83
|
+
// verify the required parameter 'deviceUID' is set
|
|
84
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
85
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceToFleets");
|
|
86
|
+
}
|
|
87
|
+
// verify the required parameter 'addDeviceToFleetsRequest' is set
|
|
88
|
+
if (addDeviceToFleetsRequest === undefined || addDeviceToFleetsRequest === null) {
|
|
89
|
+
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
90
|
+
}
|
|
91
|
+
var pathParams = {
|
|
92
|
+
projectOrProductUID: projectOrProductUID,
|
|
93
|
+
deviceUID: deviceUID
|
|
94
|
+
};
|
|
95
|
+
var queryParams = {};
|
|
96
|
+
var headerParams = {};
|
|
97
|
+
var formParams = {};
|
|
98
|
+
var authNames = ["personalAccessToken"];
|
|
99
|
+
var contentTypes = ["application/json"];
|
|
100
|
+
var accepts = ["application/json"];
|
|
101
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
102
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Add Device to Fleets
|
|
107
|
+
* @param {String} projectOrProductUID
|
|
108
|
+
* @param {String} deviceUID
|
|
109
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
110
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
111
|
+
*/
|
|
112
|
+
}, {
|
|
113
|
+
key: "addDeviceToFleets",
|
|
114
|
+
value: function addDeviceToFleets(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
|
|
115
|
+
return this.addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest).then(function (response_and_data) {
|
|
116
|
+
return response_and_data.data;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Clone a Project
|
|
122
|
+
* @param {String} projectOrProductUID
|
|
123
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
124
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
75
127
|
key: "cloneProjectWithHttpInfo",
|
|
76
128
|
value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
|
|
77
129
|
var postBody = cloneProjectRequest;
|
|
@@ -241,24 +293,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
241
293
|
* Remove Device from Fleets
|
|
242
294
|
* @param {String} projectOrProductUID
|
|
243
295
|
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/
|
|
296
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
298
|
*/
|
|
247
299
|
}, {
|
|
248
|
-
key: "
|
|
249
|
-
value: function
|
|
250
|
-
var postBody =
|
|
300
|
+
key: "deleteDeviceFromFleetsWithHttpInfo",
|
|
301
|
+
value: function deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
302
|
+
var postBody = deleteDeviceFromFleetsRequest;
|
|
251
303
|
// verify the required parameter 'projectOrProductUID' is set
|
|
252
304
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
253
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
305
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFromFleets");
|
|
254
306
|
}
|
|
255
307
|
// verify the required parameter 'deviceUID' is set
|
|
256
308
|
if (deviceUID === undefined || deviceUID === null) {
|
|
257
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
309
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFromFleets");
|
|
258
310
|
}
|
|
259
|
-
// verify the required parameter '
|
|
260
|
-
if (
|
|
261
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
311
|
+
// verify the required parameter 'deleteDeviceFromFleetsRequest' is set
|
|
312
|
+
if (deleteDeviceFromFleetsRequest === undefined || deleteDeviceFromFleetsRequest === null) {
|
|
313
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
262
314
|
}
|
|
263
315
|
var pathParams = {
|
|
264
316
|
projectOrProductUID: projectOrProductUID,
|
|
@@ -278,13 +330,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
330
|
* Remove Device from Fleets
|
|
279
331
|
* @param {String} projectOrProductUID
|
|
280
332
|
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/
|
|
333
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
335
|
*/
|
|
284
336
|
}, {
|
|
285
|
-
key: "
|
|
286
|
-
value: function
|
|
287
|
-
return this.
|
|
337
|
+
key: "deleteDeviceFromFleets",
|
|
338
|
+
value: function deleteDeviceFromFleets(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
339
|
+
return this.deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest).then(function (response_and_data) {
|
|
288
340
|
return response_and_data.data;
|
|
289
341
|
});
|
|
290
342
|
}
|
|
@@ -519,104 +571,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
519
571
|
});
|
|
520
572
|
}
|
|
521
573
|
|
|
522
|
-
/**
|
|
523
|
-
* Update/cancel host or notecard firmware updates
|
|
524
|
-
* @param {String} projectOrProductUID
|
|
525
|
-
* @param {module:model/String} firmwareType
|
|
526
|
-
* @param {module:model/String} action
|
|
527
|
-
* @param {Object} opts Optional parameters
|
|
528
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
529
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
530
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
531
|
-
* @param {String} opts.fleetUID
|
|
532
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
533
|
-
* @param {Array.<String>} opts.location Location filter
|
|
534
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
535
|
-
* @param {Array.<String>} opts.productUID
|
|
536
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
537
|
-
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
538
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
539
|
-
*/
|
|
540
|
-
}, {
|
|
541
|
-
key: "dfuActionWithHttpInfo",
|
|
542
|
-
value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
543
|
-
opts = opts || {};
|
|
544
|
-
var postBody = opts["dfuActionRequest"];
|
|
545
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
546
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
547
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
|
|
548
|
-
}
|
|
549
|
-
// verify the required parameter 'firmwareType' is set
|
|
550
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
551
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling dfuAction");
|
|
552
|
-
}
|
|
553
|
-
// verify the required parameter 'action' is set
|
|
554
|
-
if (action === undefined || action === null) {
|
|
555
|
-
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
556
|
-
}
|
|
557
|
-
var pathParams = {
|
|
558
|
-
projectOrProductUID: projectOrProductUID,
|
|
559
|
-
firmwareType: firmwareType,
|
|
560
|
-
action: action
|
|
561
|
-
};
|
|
562
|
-
var queryParams = {
|
|
563
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
564
|
-
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
565
|
-
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
566
|
-
fleetUID: opts["fleetUID"],
|
|
567
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
568
|
-
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
569
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
570
|
-
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
571
|
-
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
572
|
-
};
|
|
573
|
-
var headerParams = {};
|
|
574
|
-
var formParams = {};
|
|
575
|
-
var authNames = ["personalAccessToken"];
|
|
576
|
-
var contentTypes = ["application/json"];
|
|
577
|
-
var accepts = ["application/json"];
|
|
578
|
-
var returnType = null;
|
|
579
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Update/cancel host or notecard firmware updates
|
|
584
|
-
* @param {String} projectOrProductUID
|
|
585
|
-
* @param {module:model/String} firmwareType
|
|
586
|
-
* @param {module:model/String} action
|
|
587
|
-
* @param {Object} opts Optional parameters
|
|
588
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
589
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
590
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
591
|
-
* @param {String} opts.fleetUID
|
|
592
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
593
|
-
* @param {Array.<String>} opts.location Location filter
|
|
594
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
595
|
-
* @param {Array.<String>} opts.productUID
|
|
596
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
597
|
-
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
598
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
599
|
-
*/
|
|
600
|
-
}, {
|
|
601
|
-
key: "dfuAction",
|
|
602
|
-
value: function dfuAction(projectOrProductUID, firmwareType, action, opts) {
|
|
603
|
-
return this.dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
604
|
-
return response_and_data.data;
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
|
|
608
574
|
/**
|
|
609
575
|
* Disable the project-level event JSONata transformation
|
|
610
576
|
* @param {String} projectOrProductUID
|
|
611
577
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
612
578
|
*/
|
|
613
579
|
}, {
|
|
614
|
-
key: "
|
|
615
|
-
value: function
|
|
580
|
+
key: "disableGlobalEventTransformationWithHttpInfo",
|
|
581
|
+
value: function disableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
616
582
|
var postBody = null;
|
|
617
583
|
// verify the required parameter 'projectOrProductUID' is set
|
|
618
584
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
619
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
585
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
620
586
|
}
|
|
621
587
|
var pathParams = {
|
|
622
588
|
projectOrProductUID: projectOrProductUID
|
|
@@ -637,9 +603,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
637
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
638
604
|
*/
|
|
639
605
|
}, {
|
|
640
|
-
key: "
|
|
641
|
-
value: function
|
|
642
|
-
return this.
|
|
606
|
+
key: "disableGlobalEventTransformation",
|
|
607
|
+
value: function disableGlobalEventTransformation(projectOrProductUID) {
|
|
608
|
+
return this.disableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
643
609
|
return response_and_data.data;
|
|
644
610
|
});
|
|
645
611
|
}
|
|
@@ -650,12 +616,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
650
616
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
651
617
|
*/
|
|
652
618
|
}, {
|
|
653
|
-
key: "
|
|
654
|
-
value: function
|
|
619
|
+
key: "enableGlobalEventTransformationWithHttpInfo",
|
|
620
|
+
value: function enableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
655
621
|
var postBody = null;
|
|
656
622
|
// verify the required parameter 'projectOrProductUID' is set
|
|
657
623
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
658
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
624
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
659
625
|
}
|
|
660
626
|
var pathParams = {
|
|
661
627
|
projectOrProductUID: projectOrProductUID
|
|
@@ -676,9 +642,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
642
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
677
643
|
*/
|
|
678
644
|
}, {
|
|
679
|
-
key: "
|
|
680
|
-
value: function
|
|
681
|
-
return this.
|
|
645
|
+
key: "enableGlobalEventTransformation",
|
|
646
|
+
value: function enableGlobalEventTransformation(projectOrProductUID) {
|
|
647
|
+
return this.enableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
682
648
|
return response_and_data.data;
|
|
683
649
|
});
|
|
684
650
|
}
|
|
@@ -1215,6 +1181,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1215
1181
|
});
|
|
1216
1182
|
}
|
|
1217
1183
|
|
|
1184
|
+
/**
|
|
1185
|
+
* Get Project Fleets
|
|
1186
|
+
* @param {String} projectOrProductUID
|
|
1187
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1188
|
+
*/
|
|
1189
|
+
}, {
|
|
1190
|
+
key: "getFleetsWithHttpInfo",
|
|
1191
|
+
value: function getFleetsWithHttpInfo(projectOrProductUID) {
|
|
1192
|
+
var postBody = null;
|
|
1193
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1194
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1195
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1196
|
+
}
|
|
1197
|
+
var pathParams = {
|
|
1198
|
+
projectOrProductUID: projectOrProductUID
|
|
1199
|
+
};
|
|
1200
|
+
var queryParams = {};
|
|
1201
|
+
var headerParams = {};
|
|
1202
|
+
var formParams = {};
|
|
1203
|
+
var authNames = ["personalAccessToken"];
|
|
1204
|
+
var contentTypes = [];
|
|
1205
|
+
var accepts = ["application/json"];
|
|
1206
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
1207
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Get Project Fleets
|
|
1212
|
+
* @param {String} projectOrProductUID
|
|
1213
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1214
|
+
*/
|
|
1215
|
+
}, {
|
|
1216
|
+
key: "getFleets",
|
|
1217
|
+
value: function getFleets(projectOrProductUID) {
|
|
1218
|
+
return this.getFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1219
|
+
return response_and_data.data;
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1218
1223
|
/**
|
|
1219
1224
|
* Get variable format for a notefile
|
|
1220
1225
|
* @param {String} projectOrProductUID
|
|
@@ -1449,45 +1454,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1454
|
});
|
|
1450
1455
|
}
|
|
1451
1456
|
|
|
1452
|
-
/**
|
|
1453
|
-
* Get Project Fleets
|
|
1454
|
-
* @param {String} projectOrProductUID
|
|
1455
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1456
|
-
*/
|
|
1457
|
-
}, {
|
|
1458
|
-
key: "getProjectFleetsWithHttpInfo",
|
|
1459
|
-
value: function getProjectFleetsWithHttpInfo(projectOrProductUID) {
|
|
1460
|
-
var postBody = null;
|
|
1461
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1462
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1463
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
|
|
1464
|
-
}
|
|
1465
|
-
var pathParams = {
|
|
1466
|
-
projectOrProductUID: projectOrProductUID
|
|
1467
|
-
};
|
|
1468
|
-
var queryParams = {};
|
|
1469
|
-
var headerParams = {};
|
|
1470
|
-
var formParams = {};
|
|
1471
|
-
var authNames = ["personalAccessToken"];
|
|
1472
|
-
var contentTypes = [];
|
|
1473
|
-
var accepts = ["application/json"];
|
|
1474
|
-
var returnType = _GetDeviceFleets200Response["default"];
|
|
1475
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Get Project Fleets
|
|
1480
|
-
* @param {String} projectOrProductUID
|
|
1481
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1482
|
-
*/
|
|
1483
|
-
}, {
|
|
1484
|
-
key: "getProjectFleets",
|
|
1485
|
-
value: function getProjectFleets(projectOrProductUID) {
|
|
1486
|
-
return this.getProjectFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1487
|
-
return response_and_data.data;
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
1457
|
/**
|
|
1492
1458
|
* Get Project Members
|
|
1493
1459
|
* @param {String} projectOrProductUID
|
|
@@ -1559,79 +1525,113 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1525
|
}
|
|
1560
1526
|
|
|
1561
1527
|
/**
|
|
1562
|
-
*
|
|
1528
|
+
* Update/cancel host or notecard firmware updates
|
|
1563
1529
|
* @param {String} projectOrProductUID
|
|
1564
|
-
* @param {String}
|
|
1565
|
-
* @param {module:model/
|
|
1566
|
-
* @
|
|
1530
|
+
* @param {module:model/String} firmwareType
|
|
1531
|
+
* @param {module:model/String} action
|
|
1532
|
+
* @param {Object} opts Optional parameters
|
|
1533
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1534
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
1535
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1536
|
+
* @param {String} opts.fleetUID
|
|
1537
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1538
|
+
* @param {Array.<String>} opts.location Location filter
|
|
1539
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1540
|
+
* @param {Array.<String>} opts.productUID
|
|
1541
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
1542
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1543
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1567
1544
|
*/
|
|
1568
1545
|
}, {
|
|
1569
|
-
key: "
|
|
1570
|
-
value: function
|
|
1571
|
-
|
|
1546
|
+
key: "performDfuActionWithHttpInfo",
|
|
1547
|
+
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1548
|
+
opts = opts || {};
|
|
1549
|
+
var postBody = opts["dfuActionRequest"];
|
|
1572
1550
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1573
1551
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1574
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1552
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
1575
1553
|
}
|
|
1576
|
-
// verify the required parameter '
|
|
1577
|
-
if (
|
|
1578
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1554
|
+
// verify the required parameter 'firmwareType' is set
|
|
1555
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
1556
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling performDfuAction");
|
|
1579
1557
|
}
|
|
1580
|
-
// verify the required parameter '
|
|
1581
|
-
if (
|
|
1582
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1558
|
+
// verify the required parameter 'action' is set
|
|
1559
|
+
if (action === undefined || action === null) {
|
|
1560
|
+
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1583
1561
|
}
|
|
1584
1562
|
var pathParams = {
|
|
1585
1563
|
projectOrProductUID: projectOrProductUID,
|
|
1586
|
-
|
|
1564
|
+
firmwareType: firmwareType,
|
|
1565
|
+
action: action
|
|
1566
|
+
};
|
|
1567
|
+
var queryParams = {
|
|
1568
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1569
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1570
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1571
|
+
fleetUID: opts["fleetUID"],
|
|
1572
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1573
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1574
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1575
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1576
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1587
1577
|
};
|
|
1588
|
-
var queryParams = {};
|
|
1589
1578
|
var headerParams = {};
|
|
1590
1579
|
var formParams = {};
|
|
1591
1580
|
var authNames = ["personalAccessToken"];
|
|
1592
1581
|
var contentTypes = ["application/json"];
|
|
1593
1582
|
var accepts = ["application/json"];
|
|
1594
|
-
var returnType =
|
|
1595
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/
|
|
1583
|
+
var returnType = null;
|
|
1584
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1596
1585
|
}
|
|
1597
1586
|
|
|
1598
1587
|
/**
|
|
1599
|
-
*
|
|
1588
|
+
* Update/cancel host or notecard firmware updates
|
|
1600
1589
|
* @param {String} projectOrProductUID
|
|
1601
|
-
* @param {String}
|
|
1602
|
-
* @param {module:model/
|
|
1603
|
-
* @
|
|
1590
|
+
* @param {module:model/String} firmwareType
|
|
1591
|
+
* @param {module:model/String} action
|
|
1592
|
+
* @param {Object} opts Optional parameters
|
|
1593
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1594
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
1595
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1596
|
+
* @param {String} opts.fleetUID
|
|
1597
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1598
|
+
* @param {Array.<String>} opts.location Location filter
|
|
1599
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1600
|
+
* @param {Array.<String>} opts.productUID
|
|
1601
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
1602
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1603
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1604
1604
|
*/
|
|
1605
1605
|
}, {
|
|
1606
|
-
key: "
|
|
1607
|
-
value: function
|
|
1608
|
-
return this.
|
|
1606
|
+
key: "performDfuAction",
|
|
1607
|
+
value: function performDfuAction(projectOrProductUID, firmwareType, action, opts) {
|
|
1608
|
+
return this.performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
1609
1609
|
return response_and_data.data;
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
|
-
*
|
|
1614
|
+
* Set environment variables of a fleet
|
|
1615
1615
|
* @param {String} projectOrProductUID
|
|
1616
1616
|
* @param {String} fleetUID
|
|
1617
1617
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1618
1618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1619
1619
|
*/
|
|
1620
1620
|
}, {
|
|
1621
|
-
key: "
|
|
1622
|
-
value: function
|
|
1621
|
+
key: "setFleetEnvironmentVariablesWithHttpInfo",
|
|
1622
|
+
value: function setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1623
1623
|
var postBody = environmentVariables;
|
|
1624
1624
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1625
1625
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1626
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1626
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setFleetEnvironmentVariables");
|
|
1627
1627
|
}
|
|
1628
1628
|
// verify the required parameter 'fleetUID' is set
|
|
1629
1629
|
if (fleetUID === undefined || fleetUID === null) {
|
|
1630
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling
|
|
1630
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling setFleetEnvironmentVariables");
|
|
1631
1631
|
}
|
|
1632
1632
|
// verify the required parameter 'environmentVariables' is set
|
|
1633
1633
|
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1634
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling
|
|
1634
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1635
1635
|
}
|
|
1636
1636
|
var pathParams = {
|
|
1637
1637
|
projectOrProductUID: projectOrProductUID,
|
|
@@ -1648,35 +1648,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
/**
|
|
1651
|
-
*
|
|
1651
|
+
* Set environment variables of a fleet
|
|
1652
1652
|
* @param {String} projectOrProductUID
|
|
1653
1653
|
* @param {String} fleetUID
|
|
1654
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
1656
|
*/
|
|
1657
1657
|
}, {
|
|
1658
|
-
key: "
|
|
1659
|
-
value: function
|
|
1660
|
-
return this.
|
|
1658
|
+
key: "setFleetEnvironmentVariables",
|
|
1659
|
+
value: function setFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1660
|
+
return this.setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
1661
1661
|
return response_and_data.data;
|
|
1662
1662
|
});
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
/**
|
|
1666
|
-
*
|
|
1666
|
+
* Set the project-level event JSONata transformation
|
|
1667
1667
|
* @param {String} projectOrProductUID
|
|
1668
|
-
* @param {Object}
|
|
1669
|
-
* @
|
|
1670
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1668
|
+
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1669
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1671
1670
|
*/
|
|
1672
1671
|
}, {
|
|
1673
|
-
key: "
|
|
1674
|
-
value: function
|
|
1675
|
-
|
|
1676
|
-
var postBody = opts["environmentVariables"];
|
|
1672
|
+
key: "setGlobalEventTransformationWithHttpInfo",
|
|
1673
|
+
value: function setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body) {
|
|
1674
|
+
var postBody = body;
|
|
1677
1675
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1678
1676
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1679
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1677
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalEventTransformation");
|
|
1678
|
+
}
|
|
1679
|
+
// verify the required parameter 'body' is set
|
|
1680
|
+
if (body === undefined || body === null) {
|
|
1681
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1680
1682
|
}
|
|
1681
1683
|
var pathParams = {
|
|
1682
1684
|
projectOrProductUID: projectOrProductUID
|
|
@@ -1687,42 +1689,39 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1687
1689
|
var authNames = ["personalAccessToken"];
|
|
1688
1690
|
var contentTypes = ["application/json"];
|
|
1689
1691
|
var accepts = ["application/json"];
|
|
1690
|
-
var returnType =
|
|
1691
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/
|
|
1692
|
+
var returnType = null;
|
|
1693
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1694
|
}
|
|
1693
1695
|
|
|
1694
1696
|
/**
|
|
1695
|
-
*
|
|
1697
|
+
* Set the project-level event JSONata transformation
|
|
1696
1698
|
* @param {String} projectOrProductUID
|
|
1697
|
-
* @param {Object}
|
|
1698
|
-
* @
|
|
1699
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1699
|
+
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1700
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1700
1701
|
*/
|
|
1701
1702
|
}, {
|
|
1702
|
-
key: "
|
|
1703
|
-
value: function
|
|
1704
|
-
return this.
|
|
1703
|
+
key: "setGlobalEventTransformation",
|
|
1704
|
+
value: function setGlobalEventTransformation(projectOrProductUID, body) {
|
|
1705
|
+
return this.setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
1705
1706
|
return response_and_data.data;
|
|
1706
1707
|
});
|
|
1707
1708
|
}
|
|
1708
1709
|
|
|
1709
1710
|
/**
|
|
1710
|
-
* Set
|
|
1711
|
+
* Set environment variables of a project
|
|
1711
1712
|
* @param {String} projectOrProductUID
|
|
1712
|
-
* @param {Object
|
|
1713
|
-
* @
|
|
1713
|
+
* @param {Object} opts Optional parameters
|
|
1714
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1715
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1714
1716
|
*/
|
|
1715
1717
|
}, {
|
|
1716
|
-
key: "
|
|
1717
|
-
value: function
|
|
1718
|
-
|
|
1718
|
+
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1719
|
+
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1720
|
+
opts = opts || {};
|
|
1721
|
+
var postBody = opts["environmentVariables"];
|
|
1719
1722
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1720
1723
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1721
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1722
|
-
}
|
|
1723
|
-
// verify the required parameter 'body' is set
|
|
1724
|
-
if (body === undefined || body === null) {
|
|
1725
|
-
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1724
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1726
1725
|
}
|
|
1727
1726
|
var pathParams = {
|
|
1728
1727
|
projectOrProductUID: projectOrProductUID
|
|
@@ -1733,20 +1732,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1733
1732
|
var authNames = ["personalAccessToken"];
|
|
1734
1733
|
var contentTypes = ["application/json"];
|
|
1735
1734
|
var accepts = ["application/json"];
|
|
1736
|
-
var returnType =
|
|
1737
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/
|
|
1735
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1736
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1738
1737
|
}
|
|
1739
1738
|
|
|
1740
1739
|
/**
|
|
1741
|
-
* Set
|
|
1740
|
+
* Set environment variables of a project
|
|
1742
1741
|
* @param {String} projectOrProductUID
|
|
1743
|
-
* @param {Object
|
|
1744
|
-
* @
|
|
1742
|
+
* @param {Object} opts Optional parameters
|
|
1743
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1744
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1745
1745
|
*/
|
|
1746
1746
|
}, {
|
|
1747
|
-
key: "
|
|
1748
|
-
value: function
|
|
1749
|
-
return this.
|
|
1747
|
+
key: "setProjectEnvironmentVariables",
|
|
1748
|
+
value: function setProjectEnvironmentVariables(projectOrProductUID, opts) {
|
|
1749
|
+
return this.setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1750
1750
|
return response_and_data.data;
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|