@blues-inc/notehub-js 2.3.0-beta.4 → 2.3.0-beta.6
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 +45 -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 +751 -763
- 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 +282 -282
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +73 -73
- 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/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
- 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/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/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
- package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
- package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
- 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/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
- package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
- package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
- package/dist/model/{ListNotefiles200Response.js → HandleNotefileChanges200Response.js} +20 -20
- package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
- package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
- package/dist/model/HttpRoute.js +1 -1
- 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 +1 -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/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
- 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/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 +1 -1
- 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 +1 -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,12 +5,11 @@ 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"));
|
|
9
8
|
var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
|
|
10
9
|
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
11
10
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
12
11
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
13
|
-
var
|
|
12
|
+
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
14
13
|
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
15
14
|
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
16
15
|
var _DeviceDfuStatus = _interopRequireDefault(require("../model/DeviceDfuStatus"));
|
|
@@ -28,6 +27,7 @@ var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjec
|
|
|
28
27
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
29
28
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
30
29
|
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 2.3.0-beta.
|
|
53
|
+
* @version 2.3.0-beta.6
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -66,160 +66,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Clone a Project
|
|
70
70
|
* @param {String} projectOrProductUID
|
|
71
|
-
* @param {
|
|
72
|
-
* @
|
|
73
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
71
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
72
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
74
73
|
*/
|
|
75
74
|
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
|
-
* Add environment variables of a fleet
|
|
122
|
-
* @param {String} projectOrProductUID
|
|
123
|
-
* @param {String} fleetUID
|
|
124
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
125
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
126
|
-
*/
|
|
127
|
-
}, {
|
|
128
|
-
key: "addFleetEnvironmentVariablesWithHttpInfo",
|
|
129
|
-
value: function addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
|
|
130
|
-
var postBody = environmentVariables;
|
|
131
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
132
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
133
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addFleetEnvironmentVariables");
|
|
134
|
-
}
|
|
135
|
-
// verify the required parameter 'fleetUID' is set
|
|
136
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
137
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling addFleetEnvironmentVariables");
|
|
138
|
-
}
|
|
139
|
-
// verify the required parameter 'environmentVariables' is set
|
|
140
|
-
if (environmentVariables === undefined || environmentVariables === null) {
|
|
141
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addFleetEnvironmentVariables");
|
|
142
|
-
}
|
|
143
|
-
var pathParams = {
|
|
144
|
-
'projectOrProductUID': projectOrProductUID,
|
|
145
|
-
'fleetUID': fleetUID
|
|
146
|
-
};
|
|
147
|
-
var queryParams = {};
|
|
148
|
-
var headerParams = {};
|
|
149
|
-
var formParams = {};
|
|
150
|
-
var authNames = ['personalAccessToken'];
|
|
151
|
-
var contentTypes = ['application/json'];
|
|
152
|
-
var accepts = ['application/json'];
|
|
153
|
-
var returnType = _EnvironmentVariables["default"];
|
|
154
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Add environment variables of a fleet
|
|
159
|
-
* @param {String} projectOrProductUID
|
|
160
|
-
* @param {String} fleetUID
|
|
161
|
-
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
162
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
163
|
-
*/
|
|
164
|
-
}, {
|
|
165
|
-
key: "addFleetEnvironmentVariables",
|
|
166
|
-
value: function addFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
|
|
167
|
-
return this.addFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
168
|
-
return response_and_data.data;
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Add environment variables of a project
|
|
174
|
-
* @param {String} projectOrProductUID
|
|
175
|
-
* @param {Object} opts Optional parameters
|
|
176
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
177
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
178
|
-
*/
|
|
179
|
-
}, {
|
|
180
|
-
key: "addProjectEnvironmentVariablesWithHttpInfo",
|
|
181
|
-
value: function addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
182
|
-
opts = opts || {};
|
|
183
|
-
var postBody = opts['environmentVariables'];
|
|
184
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
185
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
186
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addProjectEnvironmentVariables");
|
|
187
|
-
}
|
|
188
|
-
var pathParams = {
|
|
189
|
-
'projectOrProductUID': projectOrProductUID
|
|
190
|
-
};
|
|
191
|
-
var queryParams = {};
|
|
192
|
-
var headerParams = {};
|
|
193
|
-
var formParams = {};
|
|
194
|
-
var authNames = ['personalAccessToken'];
|
|
195
|
-
var contentTypes = ['application/json'];
|
|
196
|
-
var accepts = ['application/json'];
|
|
197
|
-
var returnType = _EnvironmentVariables["default"];
|
|
198
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Add environment variables of a project
|
|
203
|
-
* @param {String} projectOrProductUID
|
|
204
|
-
* @param {Object} opts Optional parameters
|
|
205
|
-
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
206
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
207
|
-
*/
|
|
208
|
-
}, {
|
|
209
|
-
key: "addProjectEnvironmentVariables",
|
|
210
|
-
value: function addProjectEnvironmentVariables(projectOrProductUID, opts) {
|
|
211
|
-
return this.addProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
212
|
-
return response_and_data.data;
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Clone a Project
|
|
218
|
-
* @param {String} projectOrProductUID
|
|
219
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
220
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
221
|
-
*/
|
|
222
|
-
}, {
|
|
223
75
|
key: "cloneProjectWithHttpInfo",
|
|
224
76
|
value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
|
|
225
77
|
var postBody = cloneProjectRequest;
|
|
@@ -389,24 +241,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
389
241
|
* Remove Device from Fleets
|
|
390
242
|
* @param {String} projectOrProductUID
|
|
391
243
|
* @param {String} deviceUID
|
|
392
|
-
* @param {module:model/
|
|
244
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
393
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
394
246
|
*/
|
|
395
247
|
}, {
|
|
396
|
-
key: "
|
|
397
|
-
value: function
|
|
398
|
-
var postBody =
|
|
248
|
+
key: "deleteDeviceFleetsWithHttpInfo",
|
|
249
|
+
value: function deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
250
|
+
var postBody = deleteDeviceFleetsRequest;
|
|
399
251
|
// verify the required parameter 'projectOrProductUID' is set
|
|
400
252
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
401
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
253
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFleets");
|
|
402
254
|
}
|
|
403
255
|
// verify the required parameter 'deviceUID' is set
|
|
404
256
|
if (deviceUID === undefined || deviceUID === null) {
|
|
405
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
257
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFleets");
|
|
406
258
|
}
|
|
407
|
-
// verify the required parameter '
|
|
408
|
-
if (
|
|
409
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
259
|
+
// verify the required parameter 'deleteDeviceFleetsRequest' is set
|
|
260
|
+
if (deleteDeviceFleetsRequest === undefined || deleteDeviceFleetsRequest === null) {
|
|
261
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
410
262
|
}
|
|
411
263
|
var pathParams = {
|
|
412
264
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -426,13 +278,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
426
278
|
* Remove Device from Fleets
|
|
427
279
|
* @param {String} projectOrProductUID
|
|
428
280
|
* @param {String} deviceUID
|
|
429
|
-
* @param {module:model/
|
|
281
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
430
282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
431
283
|
*/
|
|
432
284
|
}, {
|
|
433
|
-
key: "
|
|
434
|
-
value: function
|
|
435
|
-
return this.
|
|
285
|
+
key: "deleteDeviceFleets",
|
|
286
|
+
value: function deleteDeviceFleets(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
287
|
+
return this.deleteDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
|
|
436
288
|
return response_and_data.data;
|
|
437
289
|
});
|
|
438
290
|
}
|
|
@@ -667,18 +519,104 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
667
519
|
});
|
|
668
520
|
}
|
|
669
521
|
|
|
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
|
+
|
|
670
608
|
/**
|
|
671
609
|
* Disable the project-level event JSONata transformation
|
|
672
610
|
* @param {String} projectOrProductUID
|
|
673
611
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
674
612
|
*/
|
|
675
613
|
}, {
|
|
676
|
-
key: "
|
|
677
|
-
value: function
|
|
614
|
+
key: "disableGlobalTransformationWithHttpInfo",
|
|
615
|
+
value: function disableGlobalTransformationWithHttpInfo(projectOrProductUID) {
|
|
678
616
|
var postBody = null;
|
|
679
617
|
// verify the required parameter 'projectOrProductUID' is set
|
|
680
618
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
681
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
619
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalTransformation");
|
|
682
620
|
}
|
|
683
621
|
var pathParams = {
|
|
684
622
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -699,9 +637,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
699
637
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
700
638
|
*/
|
|
701
639
|
}, {
|
|
702
|
-
key: "
|
|
703
|
-
value: function
|
|
704
|
-
return this.
|
|
640
|
+
key: "disableGlobalTransformation",
|
|
641
|
+
value: function disableGlobalTransformation(projectOrProductUID) {
|
|
642
|
+
return this.disableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
705
643
|
return response_and_data.data;
|
|
706
644
|
});
|
|
707
645
|
}
|
|
@@ -712,12 +650,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
712
650
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
713
651
|
*/
|
|
714
652
|
}, {
|
|
715
|
-
key: "
|
|
716
|
-
value: function
|
|
653
|
+
key: "enableGlobalTransformationWithHttpInfo",
|
|
654
|
+
value: function enableGlobalTransformationWithHttpInfo(projectOrProductUID) {
|
|
717
655
|
var postBody = null;
|
|
718
656
|
// verify the required parameter 'projectOrProductUID' is set
|
|
719
657
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
720
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
658
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalTransformation");
|
|
721
659
|
}
|
|
722
660
|
var pathParams = {
|
|
723
661
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -738,9 +676,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
738
676
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
739
677
|
*/
|
|
740
678
|
}, {
|
|
741
|
-
key: "
|
|
742
|
-
value: function
|
|
743
|
-
return this.
|
|
679
|
+
key: "enableGlobalTransformation",
|
|
680
|
+
value: function enableGlobalTransformation(projectOrProductUID) {
|
|
681
|
+
return this.enableGlobalTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
744
682
|
return response_and_data.data;
|
|
745
683
|
});
|
|
746
684
|
}
|
|
@@ -1277,45 +1215,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1277
1215
|
});
|
|
1278
1216
|
}
|
|
1279
1217
|
|
|
1280
|
-
/**
|
|
1281
|
-
* Get Project Fleets
|
|
1282
|
-
* @param {String} projectOrProductUID
|
|
1283
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1284
|
-
*/
|
|
1285
|
-
}, {
|
|
1286
|
-
key: "getFleetsWithHttpInfo",
|
|
1287
|
-
value: function getFleetsWithHttpInfo(projectOrProductUID) {
|
|
1288
|
-
var postBody = null;
|
|
1289
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1290
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1291
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1292
|
-
}
|
|
1293
|
-
var pathParams = {
|
|
1294
|
-
'projectOrProductUID': projectOrProductUID
|
|
1295
|
-
};
|
|
1296
|
-
var queryParams = {};
|
|
1297
|
-
var headerParams = {};
|
|
1298
|
-
var formParams = {};
|
|
1299
|
-
var authNames = ['personalAccessToken'];
|
|
1300
|
-
var contentTypes = [];
|
|
1301
|
-
var accepts = ['application/json'];
|
|
1302
|
-
var returnType = _GetDeviceFleets200Response["default"];
|
|
1303
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
/**
|
|
1307
|
-
* Get Project Fleets
|
|
1308
|
-
* @param {String} projectOrProductUID
|
|
1309
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1310
|
-
*/
|
|
1311
|
-
}, {
|
|
1312
|
-
key: "getFleets",
|
|
1313
|
-
value: function getFleets(projectOrProductUID) {
|
|
1314
|
-
return this.getFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1315
|
-
return response_and_data.data;
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
1218
|
/**
|
|
1320
1219
|
* Get variable format for a notefile
|
|
1321
1220
|
* @param {String} projectOrProductUID
|
|
@@ -1550,6 +1449,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1550
1449
|
});
|
|
1551
1450
|
}
|
|
1552
1451
|
|
|
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
|
+
|
|
1553
1491
|
/**
|
|
1554
1492
|
* Get Project Members
|
|
1555
1493
|
* @param {String} projectOrProductUID
|
|
@@ -1621,87 +1559,149 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1621
1559
|
}
|
|
1622
1560
|
|
|
1623
1561
|
/**
|
|
1624
|
-
*
|
|
1562
|
+
* Add Device to Fleets
|
|
1625
1563
|
* @param {String} projectOrProductUID
|
|
1626
|
-
* @param {
|
|
1627
|
-
* @param {module:model/
|
|
1628
|
-
* @
|
|
1629
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1630
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
1631
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1632
|
-
* @param {String} opts.fleetUID
|
|
1633
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1634
|
-
* @param {Array.<String>} opts.location Location filter
|
|
1635
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1636
|
-
* @param {Array.<String>} opts.productUID
|
|
1637
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
1638
|
-
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1639
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1564
|
+
* @param {String} deviceUID
|
|
1565
|
+
* @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.
|
|
1566
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1640
1567
|
*/
|
|
1641
1568
|
}, {
|
|
1642
|
-
key: "
|
|
1643
|
-
value: function
|
|
1644
|
-
|
|
1645
|
-
var postBody = opts['dfuActionRequest'];
|
|
1569
|
+
key: "putDeviceFleetsWithHttpInfo",
|
|
1570
|
+
value: function putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
|
|
1571
|
+
var postBody = putDeviceFleetsRequest;
|
|
1646
1572
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1647
1573
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1648
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1574
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceFleets");
|
|
1649
1575
|
}
|
|
1650
|
-
// verify the required parameter '
|
|
1651
|
-
if (
|
|
1652
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1576
|
+
// verify the required parameter 'deviceUID' is set
|
|
1577
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
1578
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceFleets");
|
|
1653
1579
|
}
|
|
1654
|
-
// verify the required parameter '
|
|
1655
|
-
if (
|
|
1656
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1580
|
+
// verify the required parameter 'putDeviceFleetsRequest' is set
|
|
1581
|
+
if (putDeviceFleetsRequest === undefined || putDeviceFleetsRequest === null) {
|
|
1582
|
+
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
1657
1583
|
}
|
|
1658
1584
|
var pathParams = {
|
|
1659
1585
|
'projectOrProductUID': projectOrProductUID,
|
|
1660
|
-
'
|
|
1661
|
-
'action': action
|
|
1586
|
+
'deviceUID': deviceUID
|
|
1662
1587
|
};
|
|
1663
|
-
var queryParams = {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1588
|
+
var queryParams = {};
|
|
1589
|
+
var headerParams = {};
|
|
1590
|
+
var formParams = {};
|
|
1591
|
+
var authNames = ['personalAccessToken'];
|
|
1592
|
+
var contentTypes = ['application/json'];
|
|
1593
|
+
var accepts = ['application/json'];
|
|
1594
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
1595
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Add Device to Fleets
|
|
1600
|
+
* @param {String} projectOrProductUID
|
|
1601
|
+
* @param {String} deviceUID
|
|
1602
|
+
* @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.
|
|
1603
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1604
|
+
*/
|
|
1605
|
+
}, {
|
|
1606
|
+
key: "putDeviceFleets",
|
|
1607
|
+
value: function putDeviceFleets(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
|
|
1608
|
+
return this.putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
|
|
1609
|
+
return response_and_data.data;
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Put environment variables of a fleet
|
|
1615
|
+
* @param {String} projectOrProductUID
|
|
1616
|
+
* @param {String} fleetUID
|
|
1617
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
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
|
+
*/
|
|
1620
|
+
}, {
|
|
1621
|
+
key: "putFleetEnvironmentVariablesWithHttpInfo",
|
|
1622
|
+
value: function putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1623
|
+
var postBody = environmentVariables;
|
|
1624
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1625
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1626
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putFleetEnvironmentVariables");
|
|
1627
|
+
}
|
|
1628
|
+
// verify the required parameter 'fleetUID' is set
|
|
1629
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
1630
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling putFleetEnvironmentVariables");
|
|
1631
|
+
}
|
|
1632
|
+
// verify the required parameter 'environmentVariables' is set
|
|
1633
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1634
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
1635
|
+
}
|
|
1636
|
+
var pathParams = {
|
|
1637
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1638
|
+
'fleetUID': fleetUID
|
|
1673
1639
|
};
|
|
1640
|
+
var queryParams = {};
|
|
1674
1641
|
var headerParams = {};
|
|
1675
1642
|
var formParams = {};
|
|
1676
1643
|
var authNames = ['personalAccessToken'];
|
|
1677
1644
|
var contentTypes = ['application/json'];
|
|
1678
1645
|
var accepts = ['application/json'];
|
|
1679
|
-
var returnType =
|
|
1680
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
1646
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1647
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1681
1648
|
}
|
|
1682
1649
|
|
|
1683
1650
|
/**
|
|
1684
|
-
*
|
|
1651
|
+
* Put environment variables of a fleet
|
|
1652
|
+
* @param {String} projectOrProductUID
|
|
1653
|
+
* @param {String} fleetUID
|
|
1654
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
|
+
*/
|
|
1657
|
+
}, {
|
|
1658
|
+
key: "putFleetEnvironmentVariables",
|
|
1659
|
+
value: function putFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1660
|
+
return this.putFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
1661
|
+
return response_and_data.data;
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* Put environment variables of a project
|
|
1685
1667
|
* @param {String} projectOrProductUID
|
|
1686
|
-
* @param {module:model/String} firmwareType
|
|
1687
|
-
* @param {module:model/String} action
|
|
1688
1668
|
* @param {Object} opts Optional parameters
|
|
1689
|
-
* @param {
|
|
1690
|
-
* @
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1669
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1670
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1671
|
+
*/
|
|
1672
|
+
}, {
|
|
1673
|
+
key: "putProjectEnvironmentVariablesWithHttpInfo",
|
|
1674
|
+
value: function putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1675
|
+
opts = opts || {};
|
|
1676
|
+
var postBody = opts['environmentVariables'];
|
|
1677
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1678
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1679
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putProjectEnvironmentVariables");
|
|
1680
|
+
}
|
|
1681
|
+
var pathParams = {
|
|
1682
|
+
'projectOrProductUID': projectOrProductUID
|
|
1683
|
+
};
|
|
1684
|
+
var queryParams = {};
|
|
1685
|
+
var headerParams = {};
|
|
1686
|
+
var formParams = {};
|
|
1687
|
+
var authNames = ['personalAccessToken'];
|
|
1688
|
+
var contentTypes = ['application/json'];
|
|
1689
|
+
var accepts = ['application/json'];
|
|
1690
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1691
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Put environment variables of a project
|
|
1696
|
+
* @param {String} projectOrProductUID
|
|
1697
|
+
* @param {Object} opts Optional parameters
|
|
1698
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1699
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1700
1700
|
*/
|
|
1701
1701
|
}, {
|
|
1702
|
-
key: "
|
|
1703
|
-
value: function
|
|
1704
|
-
return this.
|
|
1702
|
+
key: "putProjectEnvironmentVariables",
|
|
1703
|
+
value: function putProjectEnvironmentVariables(projectOrProductUID, opts) {
|
|
1704
|
+
return this.putProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1705
1705
|
return response_and_data.data;
|
|
1706
1706
|
});
|
|
1707
1707
|
}
|
|
@@ -1713,16 +1713,16 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1713
1713
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1714
1714
|
*/
|
|
1715
1715
|
}, {
|
|
1716
|
-
key: "
|
|
1717
|
-
value: function
|
|
1716
|
+
key: "setGlobalTransformationWithHttpInfo",
|
|
1717
|
+
value: function setGlobalTransformationWithHttpInfo(projectOrProductUID, body) {
|
|
1718
1718
|
var postBody = body;
|
|
1719
1719
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1720
1720
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1721
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1721
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalTransformation");
|
|
1722
1722
|
}
|
|
1723
1723
|
// verify the required parameter 'body' is set
|
|
1724
1724
|
if (body === undefined || body === null) {
|
|
1725
|
-
throw new _Error["default"]("Missing the required parameter 'body' when calling
|
|
1725
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1726
1726
|
}
|
|
1727
1727
|
var pathParams = {
|
|
1728
1728
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -1744,9 +1744,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1744
1744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1745
1745
|
*/
|
|
1746
1746
|
}, {
|
|
1747
|
-
key: "
|
|
1748
|
-
value: function
|
|
1749
|
-
return this.
|
|
1747
|
+
key: "setGlobalTransformation",
|
|
1748
|
+
value: function setGlobalTransformation(projectOrProductUID, body) {
|
|
1749
|
+
return this.setGlobalTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
1750
1750
|
return response_and_data.data;
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|