@blues-inc/notehub-js 2.3.0-beta.2 → 2.3.0-beta.20
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 +48 -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 +817 -713
- 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 +16 -4
- 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 2.3.0-beta.
|
|
53
|
+
* @version 2.3.0-beta.20
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -66,12 +66,160 @@ 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
|
+
* 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
|
+
}, {
|
|
75
223
|
key: "cloneProjectWithHttpInfo",
|
|
76
224
|
value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
|
|
77
225
|
var postBody = cloneProjectRequest;
|
|
@@ -241,24 +389,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
241
389
|
* Remove Device from Fleets
|
|
242
390
|
* @param {String} projectOrProductUID
|
|
243
391
|
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/
|
|
392
|
+
* @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
393
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
394
|
*/
|
|
247
395
|
}, {
|
|
248
|
-
key: "
|
|
249
|
-
value: function
|
|
250
|
-
var postBody =
|
|
396
|
+
key: "deleteDeviceFromFleetsWithHttpInfo",
|
|
397
|
+
value: function deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
398
|
+
var postBody = deleteDeviceFromFleetsRequest;
|
|
251
399
|
// verify the required parameter 'projectOrProductUID' is set
|
|
252
400
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
253
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
401
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFromFleets");
|
|
254
402
|
}
|
|
255
403
|
// verify the required parameter 'deviceUID' is set
|
|
256
404
|
if (deviceUID === undefined || deviceUID === null) {
|
|
257
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
405
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFromFleets");
|
|
258
406
|
}
|
|
259
|
-
// verify the required parameter '
|
|
260
|
-
if (
|
|
261
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
407
|
+
// verify the required parameter 'deleteDeviceFromFleetsRequest' is set
|
|
408
|
+
if (deleteDeviceFromFleetsRequest === undefined || deleteDeviceFromFleetsRequest === null) {
|
|
409
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
262
410
|
}
|
|
263
411
|
var pathParams = {
|
|
264
412
|
'projectOrProductUID': projectOrProductUID,
|
|
@@ -278,13 +426,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
426
|
* Remove Device from Fleets
|
|
279
427
|
* @param {String} projectOrProductUID
|
|
280
428
|
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/
|
|
429
|
+
* @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
430
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
431
|
*/
|
|
284
432
|
}, {
|
|
285
|
-
key: "
|
|
286
|
-
value: function
|
|
287
|
-
return this.
|
|
433
|
+
key: "deleteDeviceFromFleets",
|
|
434
|
+
value: function deleteDeviceFromFleets(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
435
|
+
return this.deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest).then(function (response_and_data) {
|
|
288
436
|
return response_and_data.data;
|
|
289
437
|
});
|
|
290
438
|
}
|
|
@@ -519,104 +667,18 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
519
667
|
});
|
|
520
668
|
}
|
|
521
669
|
|
|
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
670
|
/**
|
|
609
671
|
* Disable the project-level event JSONata transformation
|
|
610
672
|
* @param {String} projectOrProductUID
|
|
611
673
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
612
674
|
*/
|
|
613
675
|
}, {
|
|
614
|
-
key: "
|
|
615
|
-
value: function
|
|
676
|
+
key: "disableGlobalEventTransformationWithHttpInfo",
|
|
677
|
+
value: function disableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
616
678
|
var postBody = null;
|
|
617
679
|
// verify the required parameter 'projectOrProductUID' is set
|
|
618
680
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
619
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
681
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
620
682
|
}
|
|
621
683
|
var pathParams = {
|
|
622
684
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -637,9 +699,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
637
699
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
638
700
|
*/
|
|
639
701
|
}, {
|
|
640
|
-
key: "
|
|
641
|
-
value: function
|
|
642
|
-
return this.
|
|
702
|
+
key: "disableGlobalEventTransformation",
|
|
703
|
+
value: function disableGlobalEventTransformation(projectOrProductUID) {
|
|
704
|
+
return this.disableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
643
705
|
return response_and_data.data;
|
|
644
706
|
});
|
|
645
707
|
}
|
|
@@ -650,12 +712,12 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
650
712
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
651
713
|
*/
|
|
652
714
|
}, {
|
|
653
|
-
key: "
|
|
654
|
-
value: function
|
|
715
|
+
key: "enableGlobalEventTransformationWithHttpInfo",
|
|
716
|
+
value: function enableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
655
717
|
var postBody = null;
|
|
656
718
|
// verify the required parameter 'projectOrProductUID' is set
|
|
657
719
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
658
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
720
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
659
721
|
}
|
|
660
722
|
var pathParams = {
|
|
661
723
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -676,9 +738,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
676
738
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
677
739
|
*/
|
|
678
740
|
}, {
|
|
679
|
-
key: "
|
|
680
|
-
value: function
|
|
681
|
-
return this.
|
|
741
|
+
key: "enableGlobalEventTransformation",
|
|
742
|
+
value: function enableGlobalEventTransformation(projectOrProductUID) {
|
|
743
|
+
return this.enableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
682
744
|
return response_and_data.data;
|
|
683
745
|
});
|
|
684
746
|
}
|
|
@@ -1215,6 +1277,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1215
1277
|
});
|
|
1216
1278
|
}
|
|
1217
1279
|
|
|
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
|
+
|
|
1218
1319
|
/**
|
|
1219
1320
|
* Get variable format for a notefile
|
|
1220
1321
|
* @param {String} projectOrProductUID
|
|
@@ -1449,45 +1550,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1550
|
});
|
|
1450
1551
|
}
|
|
1451
1552
|
|
|
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
1553
|
/**
|
|
1492
1554
|
* Get Project Members
|
|
1493
1555
|
* @param {String} projectOrProductUID
|
|
@@ -1559,149 +1621,87 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1621
|
}
|
|
1560
1622
|
|
|
1561
1623
|
/**
|
|
1562
|
-
*
|
|
1563
|
-
* @param {String} projectOrProductUID
|
|
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
|
|
1567
|
-
*/
|
|
1568
|
-
}, {
|
|
1569
|
-
key: "putDeviceFleetsWithHttpInfo",
|
|
1570
|
-
value: function putDeviceFleetsWithHttpInfo(projectOrProductUID, deviceUID, putDeviceFleetsRequest) {
|
|
1571
|
-
var postBody = putDeviceFleetsRequest;
|
|
1572
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1573
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1574
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceFleets");
|
|
1575
|
-
}
|
|
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");
|
|
1579
|
-
}
|
|
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");
|
|
1583
|
-
}
|
|
1584
|
-
var pathParams = {
|
|
1585
|
-
'projectOrProductUID': projectOrProductUID,
|
|
1586
|
-
'deviceUID': deviceUID
|
|
1587
|
-
};
|
|
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
|
|
1624
|
+
* Update/cancel host or notecard firmware updates
|
|
1615
1625
|
* @param {String} projectOrProductUID
|
|
1616
|
-
* @param {String}
|
|
1617
|
-
* @param {module:model/
|
|
1618
|
-
* @
|
|
1626
|
+
* @param {module:model/String} firmwareType
|
|
1627
|
+
* @param {module:model/String} action
|
|
1628
|
+
* @param {Object} opts Optional parameters
|
|
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
|
|
1619
1640
|
*/
|
|
1620
1641
|
}, {
|
|
1621
|
-
key: "
|
|
1622
|
-
value: function
|
|
1623
|
-
|
|
1642
|
+
key: "performDfuActionWithHttpInfo",
|
|
1643
|
+
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1644
|
+
opts = opts || {};
|
|
1645
|
+
var postBody = opts['dfuActionRequest'];
|
|
1624
1646
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1625
1647
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1626
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1648
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
1627
1649
|
}
|
|
1628
|
-
// verify the required parameter '
|
|
1629
|
-
if (
|
|
1630
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1650
|
+
// verify the required parameter 'firmwareType' is set
|
|
1651
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
1652
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling performDfuAction");
|
|
1631
1653
|
}
|
|
1632
|
-
// verify the required parameter '
|
|
1633
|
-
if (
|
|
1634
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1654
|
+
// verify the required parameter 'action' is set
|
|
1655
|
+
if (action === undefined || action === null) {
|
|
1656
|
+
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1635
1657
|
}
|
|
1636
1658
|
var pathParams = {
|
|
1637
1659
|
'projectOrProductUID': projectOrProductUID,
|
|
1638
|
-
'
|
|
1660
|
+
'firmwareType': firmwareType,
|
|
1661
|
+
'action': action
|
|
1639
1662
|
};
|
|
1640
|
-
var queryParams = {
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
/**
|
|
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
|
|
1667
|
-
* @param {String} projectOrProductUID
|
|
1668
|
-
* @param {Object} opts Optional parameters
|
|
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
|
|
1663
|
+
var queryParams = {
|
|
1664
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1665
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1666
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1667
|
+
'fleetUID': opts['fleetUID'],
|
|
1668
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1669
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1670
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1671
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1672
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1683
1673
|
};
|
|
1684
|
-
var queryParams = {};
|
|
1685
1674
|
var headerParams = {};
|
|
1686
1675
|
var formParams = {};
|
|
1687
1676
|
var authNames = ['personalAccessToken'];
|
|
1688
1677
|
var contentTypes = ['application/json'];
|
|
1689
1678
|
var accepts = ['application/json'];
|
|
1690
|
-
var returnType =
|
|
1691
|
-
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/
|
|
1679
|
+
var returnType = null;
|
|
1680
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1681
|
}
|
|
1693
1682
|
|
|
1694
1683
|
/**
|
|
1695
|
-
*
|
|
1684
|
+
* Update/cancel host or notecard firmware updates
|
|
1696
1685
|
* @param {String} projectOrProductUID
|
|
1686
|
+
* @param {module:model/String} firmwareType
|
|
1687
|
+
* @param {module:model/String} action
|
|
1697
1688
|
* @param {Object} opts Optional parameters
|
|
1698
|
-
* @param {
|
|
1699
|
-
* @
|
|
1689
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1690
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
1691
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1692
|
+
* @param {String} opts.fleetUID
|
|
1693
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1694
|
+
* @param {Array.<String>} opts.location Location filter
|
|
1695
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1696
|
+
* @param {Array.<String>} opts.productUID
|
|
1697
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
1698
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1699
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1700
1700
|
*/
|
|
1701
1701
|
}, {
|
|
1702
|
-
key: "
|
|
1703
|
-
value: function
|
|
1704
|
-
return this.
|
|
1702
|
+
key: "performDfuAction",
|
|
1703
|
+
value: function performDfuAction(projectOrProductUID, firmwareType, action, opts) {
|
|
1704
|
+
return this.performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, 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: "setGlobalEventTransformationWithHttpInfo",
|
|
1717
|
+
value: function setGlobalEventTransformationWithHttpInfo(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 setGlobalEventTransformation");
|
|
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 setGlobalEventTransformation");
|
|
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: "setGlobalEventTransformation",
|
|
1748
|
+
value: function setGlobalEventTransformation(projectOrProductUID, body) {
|
|
1749
|
+
return this.setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
1750
1750
|
return response_and_data.data;
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|