@blues-inc/notehub-js 2.3.0 → 3.0.0-beta.10
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 +249 -241
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +809 -853
- package/dist/api/EventApi.js +178 -178
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +562 -562
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +65 -44
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +86 -79
- package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +26 -26
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +17 -17
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +26 -26
- package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +24 -24
- package/dist/model/Device.js +115 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +69 -67
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +35 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +29 -29
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +26 -25
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +38 -37
- package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +35 -34
- package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +39 -38
- package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +42 -41
- package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +27 -27
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/NoteInput.js +99 -0
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +112 -98
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +36 -36
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +21 -21
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +30 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +40 -29
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +27 -27
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/HandleNotefileChanges200Response.js +0 -106
- package/dist/model/HandleNotefileChangesPending200Response.js +0 -115
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); }
|
|
@@ -37,7 +37,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
37
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
38
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
39
39
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
40
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
41
41
|
*
|
|
42
42
|
* The version of the OpenAPI document: 1.2.0
|
|
43
43
|
* Contact: engineering@blues.io
|
|
@@ -48,30 +48,82 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
* Project service.
|
|
52
|
+
* @module api/ProjectApi
|
|
53
|
+
* @version 3.0.0-beta.10
|
|
54
|
+
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
* Constructs a new ProjectApi.
|
|
58
|
+
* @alias module:api/ProjectApi
|
|
59
|
+
* @class
|
|
60
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
61
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
62
|
+
*/
|
|
63
63
|
function ProjectApi(apiClient) {
|
|
64
64
|
_classCallCheck(this, ProjectApi);
|
|
65
65
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @param {String} projectOrProductUID
|
|
71
|
-
* @param {
|
|
72
|
-
* @
|
|
69
|
+
* Add Device to Fleets
|
|
70
|
+
* @param {String} projectOrProductUID
|
|
71
|
+
* @param {String} deviceUID
|
|
72
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
73
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
73
74
|
*/
|
|
74
75
|
return _createClass(ProjectApi, [{
|
|
76
|
+
key: "addDeviceToFleetsWithHttpInfo",
|
|
77
|
+
value: function addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
|
|
78
|
+
var postBody = addDeviceToFleetsRequest;
|
|
79
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
80
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
81
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceToFleets");
|
|
82
|
+
}
|
|
83
|
+
// verify the required parameter 'deviceUID' is set
|
|
84
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
85
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceToFleets");
|
|
86
|
+
}
|
|
87
|
+
// verify the required parameter 'addDeviceToFleetsRequest' is set
|
|
88
|
+
if (addDeviceToFleetsRequest === undefined || addDeviceToFleetsRequest === null) {
|
|
89
|
+
throw new _Error["default"]("Missing the required parameter 'addDeviceToFleetsRequest' when calling addDeviceToFleets");
|
|
90
|
+
}
|
|
91
|
+
var pathParams = {
|
|
92
|
+
'projectOrProductUID': projectOrProductUID,
|
|
93
|
+
'deviceUID': deviceUID
|
|
94
|
+
};
|
|
95
|
+
var queryParams = {};
|
|
96
|
+
var headerParams = {};
|
|
97
|
+
var formParams = {};
|
|
98
|
+
var authNames = ['personalAccessToken'];
|
|
99
|
+
var contentTypes = ['application/json'];
|
|
100
|
+
var accepts = ['application/json'];
|
|
101
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
102
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Add Device to Fleets
|
|
107
|
+
* @param {String} projectOrProductUID
|
|
108
|
+
* @param {String} deviceUID
|
|
109
|
+
* @param {module:model/AddDeviceToFleetsRequest} addDeviceToFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
110
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
111
|
+
*/
|
|
112
|
+
}, {
|
|
113
|
+
key: "addDeviceToFleets",
|
|
114
|
+
value: function addDeviceToFleets(projectOrProductUID, deviceUID, addDeviceToFleetsRequest) {
|
|
115
|
+
return this.addDeviceToFleetsWithHttpInfo(projectOrProductUID, deviceUID, addDeviceToFleetsRequest).then(function (response_and_data) {
|
|
116
|
+
return response_and_data.data;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Clone a Project
|
|
122
|
+
* @param {String} projectOrProductUID
|
|
123
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
124
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
75
127
|
key: "cloneProjectWithHttpInfo",
|
|
76
128
|
value: function cloneProjectWithHttpInfo(projectOrProductUID, cloneProjectRequest) {
|
|
77
129
|
var postBody = cloneProjectRequest;
|
|
@@ -84,21 +136,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
136
|
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
85
137
|
}
|
|
86
138
|
var pathParams = {
|
|
87
|
-
projectOrProductUID: projectOrProductUID
|
|
139
|
+
'projectOrProductUID': projectOrProductUID
|
|
88
140
|
};
|
|
89
141
|
var queryParams = {};
|
|
90
142
|
var headerParams = {};
|
|
91
143
|
var formParams = {};
|
|
92
|
-
var authNames = [
|
|
93
|
-
var contentTypes = [
|
|
94
|
-
var accepts = [
|
|
144
|
+
var authNames = ['personalAccessToken'];
|
|
145
|
+
var contentTypes = ['application/json'];
|
|
146
|
+
var accepts = ['application/json'];
|
|
95
147
|
var returnType = _Project["default"];
|
|
96
|
-
return this.apiClient.callApi(
|
|
148
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/clone', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
97
149
|
}
|
|
98
150
|
|
|
99
151
|
/**
|
|
100
152
|
* Clone a Project
|
|
101
|
-
* @param {String} projectOrProductUID
|
|
153
|
+
* @param {String} projectOrProductUID
|
|
102
154
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
103
155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
104
156
|
*/
|
|
@@ -112,7 +164,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
164
|
|
|
113
165
|
/**
|
|
114
166
|
* Create Fleet
|
|
115
|
-
* @param {String} projectOrProductUID
|
|
167
|
+
* @param {String} projectOrProductUID
|
|
116
168
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
117
169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
118
170
|
*/
|
|
@@ -129,21 +181,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
181
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
130
182
|
}
|
|
131
183
|
var pathParams = {
|
|
132
|
-
projectOrProductUID: projectOrProductUID
|
|
184
|
+
'projectOrProductUID': projectOrProductUID
|
|
133
185
|
};
|
|
134
186
|
var queryParams = {};
|
|
135
187
|
var headerParams = {};
|
|
136
188
|
var formParams = {};
|
|
137
|
-
var authNames = [
|
|
138
|
-
var contentTypes = [
|
|
139
|
-
var accepts = [
|
|
189
|
+
var authNames = ['personalAccessToken'];
|
|
190
|
+
var contentTypes = ['application/json'];
|
|
191
|
+
var accepts = ['application/json'];
|
|
140
192
|
var returnType = _Fleet["default"];
|
|
141
|
-
return this.apiClient.callApi(
|
|
193
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
142
194
|
}
|
|
143
195
|
|
|
144
196
|
/**
|
|
145
197
|
* Create Fleet
|
|
146
|
-
* @param {String} projectOrProductUID
|
|
198
|
+
* @param {String} projectOrProductUID
|
|
147
199
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
148
200
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
149
201
|
*/
|
|
@@ -157,7 +209,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
209
|
|
|
158
210
|
/**
|
|
159
211
|
* Create Product within a Project
|
|
160
|
-
* @param {String} projectOrProductUID
|
|
212
|
+
* @param {String} projectOrProductUID
|
|
161
213
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
162
214
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
163
215
|
*/
|
|
@@ -174,21 +226,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
174
226
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
175
227
|
}
|
|
176
228
|
var pathParams = {
|
|
177
|
-
projectOrProductUID: projectOrProductUID
|
|
229
|
+
'projectOrProductUID': projectOrProductUID
|
|
178
230
|
};
|
|
179
231
|
var queryParams = {};
|
|
180
232
|
var headerParams = {};
|
|
181
233
|
var formParams = {};
|
|
182
|
-
var authNames = [
|
|
183
|
-
var contentTypes = [
|
|
184
|
-
var accepts = [
|
|
234
|
+
var authNames = ['personalAccessToken'];
|
|
235
|
+
var contentTypes = ['application/json'];
|
|
236
|
+
var accepts = ['application/json'];
|
|
185
237
|
var returnType = _Product["default"];
|
|
186
|
-
return this.apiClient.callApi(
|
|
238
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
187
239
|
}
|
|
188
240
|
|
|
189
241
|
/**
|
|
190
242
|
* Create Product within a Project
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
243
|
+
* @param {String} projectOrProductUID
|
|
192
244
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
193
245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
194
246
|
*/
|
|
@@ -217,11 +269,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
269
|
var queryParams = {};
|
|
218
270
|
var headerParams = {};
|
|
219
271
|
var formParams = {};
|
|
220
|
-
var authNames = [
|
|
221
|
-
var contentTypes = [
|
|
222
|
-
var accepts = [
|
|
272
|
+
var authNames = ['personalAccessToken'];
|
|
273
|
+
var contentTypes = ['application/json'];
|
|
274
|
+
var accepts = ['application/json'];
|
|
223
275
|
var returnType = _Project["default"];
|
|
224
|
-
return this.apiClient.callApi(
|
|
276
|
+
return this.apiClient.callApi('/v1/projects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
277
|
}
|
|
226
278
|
|
|
227
279
|
/**
|
|
@@ -239,60 +291,60 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
239
291
|
|
|
240
292
|
/**
|
|
241
293
|
* Remove Device from Fleets
|
|
242
|
-
* @param {String} projectOrProductUID
|
|
243
|
-
* @param {String} deviceUID
|
|
244
|
-
* @param {module:model/
|
|
294
|
+
* @param {String} projectOrProductUID
|
|
295
|
+
* @param {String} deviceUID
|
|
296
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
245
297
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
246
298
|
*/
|
|
247
299
|
}, {
|
|
248
|
-
key: "
|
|
249
|
-
value: function
|
|
250
|
-
var postBody =
|
|
300
|
+
key: "deleteDeviceFromFleetsWithHttpInfo",
|
|
301
|
+
value: function deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
302
|
+
var postBody = deleteDeviceFromFleetsRequest;
|
|
251
303
|
// verify the required parameter 'projectOrProductUID' is set
|
|
252
304
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
253
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
305
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceFromFleets");
|
|
254
306
|
}
|
|
255
307
|
// verify the required parameter 'deviceUID' is set
|
|
256
308
|
if (deviceUID === undefined || deviceUID === null) {
|
|
257
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
309
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFromFleets");
|
|
258
310
|
}
|
|
259
|
-
// verify the required parameter '
|
|
260
|
-
if (
|
|
261
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
311
|
+
// verify the required parameter 'deleteDeviceFromFleetsRequest' is set
|
|
312
|
+
if (deleteDeviceFromFleetsRequest === undefined || deleteDeviceFromFleetsRequest === null) {
|
|
313
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFromFleetsRequest' when calling deleteDeviceFromFleets");
|
|
262
314
|
}
|
|
263
315
|
var pathParams = {
|
|
264
|
-
projectOrProductUID: projectOrProductUID,
|
|
265
|
-
deviceUID: deviceUID
|
|
316
|
+
'projectOrProductUID': projectOrProductUID,
|
|
317
|
+
'deviceUID': deviceUID
|
|
266
318
|
};
|
|
267
319
|
var queryParams = {};
|
|
268
320
|
var headerParams = {};
|
|
269
321
|
var formParams = {};
|
|
270
|
-
var authNames = [
|
|
271
|
-
var contentTypes = [
|
|
272
|
-
var accepts = [
|
|
322
|
+
var authNames = ['personalAccessToken'];
|
|
323
|
+
var contentTypes = ['application/json'];
|
|
324
|
+
var accepts = ['application/json'];
|
|
273
325
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
274
|
-
return this.apiClient.callApi(
|
|
326
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
275
327
|
}
|
|
276
328
|
|
|
277
329
|
/**
|
|
278
330
|
* Remove Device from Fleets
|
|
279
|
-
* @param {String} projectOrProductUID
|
|
280
|
-
* @param {String} deviceUID
|
|
281
|
-
* @param {module:model/
|
|
331
|
+
* @param {String} projectOrProductUID
|
|
332
|
+
* @param {String} deviceUID
|
|
333
|
+
* @param {module:model/DeleteDeviceFromFleetsRequest} deleteDeviceFromFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
282
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
283
335
|
*/
|
|
284
336
|
}, {
|
|
285
|
-
key: "
|
|
286
|
-
value: function
|
|
287
|
-
return this.
|
|
337
|
+
key: "deleteDeviceFromFleets",
|
|
338
|
+
value: function deleteDeviceFromFleets(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest) {
|
|
339
|
+
return this.deleteDeviceFromFleetsWithHttpInfo(projectOrProductUID, deviceUID, deleteDeviceFromFleetsRequest).then(function (response_and_data) {
|
|
288
340
|
return response_and_data.data;
|
|
289
341
|
});
|
|
290
342
|
}
|
|
291
343
|
|
|
292
344
|
/**
|
|
293
345
|
* Delete Fleet
|
|
294
|
-
* @param {String} projectOrProductUID
|
|
295
|
-
* @param {String} fleetUID
|
|
346
|
+
* @param {String} projectOrProductUID
|
|
347
|
+
* @param {String} fleetUID
|
|
296
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
297
349
|
*/
|
|
298
350
|
}, {
|
|
@@ -308,23 +360,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
308
360
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
309
361
|
}
|
|
310
362
|
var pathParams = {
|
|
311
|
-
projectOrProductUID: projectOrProductUID,
|
|
312
|
-
fleetUID: fleetUID
|
|
363
|
+
'projectOrProductUID': projectOrProductUID,
|
|
364
|
+
'fleetUID': fleetUID
|
|
313
365
|
};
|
|
314
366
|
var queryParams = {};
|
|
315
367
|
var headerParams = {};
|
|
316
368
|
var formParams = {};
|
|
317
|
-
var authNames = [
|
|
369
|
+
var authNames = ['personalAccessToken'];
|
|
318
370
|
var contentTypes = [];
|
|
319
|
-
var accepts = [
|
|
371
|
+
var accepts = ['application/json'];
|
|
320
372
|
var returnType = null;
|
|
321
|
-
return this.apiClient.callApi(
|
|
373
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
322
374
|
}
|
|
323
375
|
|
|
324
376
|
/**
|
|
325
377
|
* Delete Fleet
|
|
326
|
-
* @param {String} projectOrProductUID
|
|
327
|
-
* @param {String} fleetUID
|
|
378
|
+
* @param {String} projectOrProductUID
|
|
379
|
+
* @param {String} fleetUID
|
|
328
380
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
329
381
|
*/
|
|
330
382
|
}, {
|
|
@@ -337,8 +389,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
337
389
|
|
|
338
390
|
/**
|
|
339
391
|
* Delete environment variables of a fleet
|
|
340
|
-
* @param {String} projectOrProductUID
|
|
341
|
-
* @param {String} fleetUID
|
|
392
|
+
* @param {String} projectOrProductUID
|
|
393
|
+
* @param {String} fleetUID
|
|
342
394
|
* @param {String} key The environment variable key to delete.
|
|
343
395
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
344
396
|
*/
|
|
@@ -359,24 +411,24 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
411
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
360
412
|
}
|
|
361
413
|
var pathParams = {
|
|
362
|
-
projectOrProductUID: projectOrProductUID,
|
|
363
|
-
fleetUID: fleetUID,
|
|
364
|
-
key: key
|
|
414
|
+
'projectOrProductUID': projectOrProductUID,
|
|
415
|
+
'fleetUID': fleetUID,
|
|
416
|
+
'key': key
|
|
365
417
|
};
|
|
366
418
|
var queryParams = {};
|
|
367
419
|
var headerParams = {};
|
|
368
420
|
var formParams = {};
|
|
369
|
-
var authNames = [
|
|
421
|
+
var authNames = ['personalAccessToken'];
|
|
370
422
|
var contentTypes = [];
|
|
371
|
-
var accepts = [
|
|
423
|
+
var accepts = ['application/json'];
|
|
372
424
|
var returnType = _EnvironmentVariables["default"];
|
|
373
|
-
return this.apiClient.callApi(
|
|
425
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
374
426
|
}
|
|
375
427
|
|
|
376
428
|
/**
|
|
377
429
|
* Delete environment variables of a fleet
|
|
378
|
-
* @param {String} projectOrProductUID
|
|
379
|
-
* @param {String} fleetUID
|
|
430
|
+
* @param {String} projectOrProductUID
|
|
431
|
+
* @param {String} fleetUID
|
|
380
432
|
* @param {String} key The environment variable key to delete.
|
|
381
433
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
382
434
|
*/
|
|
@@ -390,8 +442,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
390
442
|
|
|
391
443
|
/**
|
|
392
444
|
* Delete a product
|
|
393
|
-
* @param {String} projectOrProductUID
|
|
394
|
-
* @param {String} productUID
|
|
445
|
+
* @param {String} projectOrProductUID
|
|
446
|
+
* @param {String} productUID
|
|
395
447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
396
448
|
*/
|
|
397
449
|
}, {
|
|
@@ -407,23 +459,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
459
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling deleteProduct");
|
|
408
460
|
}
|
|
409
461
|
var pathParams = {
|
|
410
|
-
projectOrProductUID: projectOrProductUID,
|
|
411
|
-
productUID: productUID
|
|
462
|
+
'projectOrProductUID': projectOrProductUID,
|
|
463
|
+
'productUID': productUID
|
|
412
464
|
};
|
|
413
465
|
var queryParams = {};
|
|
414
466
|
var headerParams = {};
|
|
415
467
|
var formParams = {};
|
|
416
|
-
var authNames = [
|
|
468
|
+
var authNames = ['personalAccessToken'];
|
|
417
469
|
var contentTypes = [];
|
|
418
|
-
var accepts = [
|
|
470
|
+
var accepts = ['application/json'];
|
|
419
471
|
var returnType = null;
|
|
420
|
-
return this.apiClient.callApi(
|
|
472
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products/{productUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
421
473
|
}
|
|
422
474
|
|
|
423
475
|
/**
|
|
424
476
|
* Delete a product
|
|
425
|
-
* @param {String} projectOrProductUID
|
|
426
|
-
* @param {String} productUID
|
|
477
|
+
* @param {String} projectOrProductUID
|
|
478
|
+
* @param {String} productUID
|
|
427
479
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
428
480
|
*/
|
|
429
481
|
}, {
|
|
@@ -436,7 +488,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
436
488
|
|
|
437
489
|
/**
|
|
438
490
|
* Delete a Project by ProjectUID
|
|
439
|
-
* @param {String} projectOrProductUID
|
|
491
|
+
* @param {String} projectOrProductUID
|
|
440
492
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
441
493
|
*/
|
|
442
494
|
}, {
|
|
@@ -448,21 +500,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
448
500
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProject");
|
|
449
501
|
}
|
|
450
502
|
var pathParams = {
|
|
451
|
-
projectOrProductUID: projectOrProductUID
|
|
503
|
+
'projectOrProductUID': projectOrProductUID
|
|
452
504
|
};
|
|
453
505
|
var queryParams = {};
|
|
454
506
|
var headerParams = {};
|
|
455
507
|
var formParams = {};
|
|
456
|
-
var authNames = [
|
|
508
|
+
var authNames = ['personalAccessToken'];
|
|
457
509
|
var contentTypes = [];
|
|
458
|
-
var accepts = [
|
|
510
|
+
var accepts = ['application/json'];
|
|
459
511
|
var returnType = null;
|
|
460
|
-
return this.apiClient.callApi(
|
|
512
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
461
513
|
}
|
|
462
514
|
|
|
463
515
|
/**
|
|
464
516
|
* Delete a Project by ProjectUID
|
|
465
|
-
* @param {String} projectOrProductUID
|
|
517
|
+
* @param {String} projectOrProductUID
|
|
466
518
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
467
519
|
*/
|
|
468
520
|
}, {
|
|
@@ -475,7 +527,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
475
527
|
|
|
476
528
|
/**
|
|
477
529
|
* Delete an environment variable of a project by key
|
|
478
|
-
* @param {String} projectOrProductUID
|
|
530
|
+
* @param {String} projectOrProductUID
|
|
479
531
|
* @param {String} key The environment variable key to delete.
|
|
480
532
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
481
533
|
*/
|
|
@@ -492,22 +544,22 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
544
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteProjectEnvironmentVariable");
|
|
493
545
|
}
|
|
494
546
|
var pathParams = {
|
|
495
|
-
projectOrProductUID: projectOrProductUID,
|
|
496
|
-
key: key
|
|
547
|
+
'projectOrProductUID': projectOrProductUID,
|
|
548
|
+
'key': key
|
|
497
549
|
};
|
|
498
550
|
var queryParams = {};
|
|
499
551
|
var headerParams = {};
|
|
500
552
|
var formParams = {};
|
|
501
|
-
var authNames = [
|
|
553
|
+
var authNames = ['personalAccessToken'];
|
|
502
554
|
var contentTypes = [];
|
|
503
|
-
var accepts = [
|
|
555
|
+
var accepts = ['application/json'];
|
|
504
556
|
var returnType = _EnvironmentVariables["default"];
|
|
505
|
-
return this.apiClient.callApi(
|
|
557
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
506
558
|
}
|
|
507
559
|
|
|
508
560
|
/**
|
|
509
561
|
* Delete an environment variable of a project by key
|
|
510
|
-
* @param {String} projectOrProductUID
|
|
562
|
+
* @param {String} projectOrProductUID
|
|
511
563
|
* @param {String} key The environment variable key to delete.
|
|
512
564
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
513
565
|
*/
|
|
@@ -519,175 +571,89 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
519
571
|
});
|
|
520
572
|
}
|
|
521
573
|
|
|
522
|
-
/**
|
|
523
|
-
* Update/cancel host or notecard firmware updates
|
|
524
|
-
* @param {String} projectOrProductUID
|
|
525
|
-
* @param {module:model/String} firmwareType
|
|
526
|
-
* @param {module:model/String} action
|
|
527
|
-
* @param {Object} opts Optional parameters
|
|
528
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
529
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
530
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
531
|
-
* @param {String} opts.fleetUID
|
|
532
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
533
|
-
* @param {Array.<String>} opts.location Location filter
|
|
534
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
535
|
-
* @param {Array.<String>} opts.productUID
|
|
536
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
537
|
-
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
538
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
539
|
-
*/
|
|
540
|
-
}, {
|
|
541
|
-
key: "dfuActionWithHttpInfo",
|
|
542
|
-
value: function dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
543
|
-
opts = opts || {};
|
|
544
|
-
var postBody = opts["dfuActionRequest"];
|
|
545
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
546
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
547
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling dfuAction");
|
|
548
|
-
}
|
|
549
|
-
// verify the required parameter 'firmwareType' is set
|
|
550
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
551
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling dfuAction");
|
|
552
|
-
}
|
|
553
|
-
// verify the required parameter 'action' is set
|
|
554
|
-
if (action === undefined || action === null) {
|
|
555
|
-
throw new _Error["default"]("Missing the required parameter 'action' when calling dfuAction");
|
|
556
|
-
}
|
|
557
|
-
var pathParams = {
|
|
558
|
-
projectOrProductUID: projectOrProductUID,
|
|
559
|
-
firmwareType: firmwareType,
|
|
560
|
-
action: action
|
|
561
|
-
};
|
|
562
|
-
var queryParams = {
|
|
563
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
564
|
-
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
565
|
-
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
566
|
-
fleetUID: opts["fleetUID"],
|
|
567
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
568
|
-
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
569
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
570
|
-
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
571
|
-
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
572
|
-
};
|
|
573
|
-
var headerParams = {};
|
|
574
|
-
var formParams = {};
|
|
575
|
-
var authNames = ["personalAccessToken"];
|
|
576
|
-
var contentTypes = ["application/json"];
|
|
577
|
-
var accepts = ["application/json"];
|
|
578
|
-
var returnType = null;
|
|
579
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Update/cancel host or notecard firmware updates
|
|
584
|
-
* @param {String} projectOrProductUID
|
|
585
|
-
* @param {module:model/String} firmwareType
|
|
586
|
-
* @param {module:model/String} action
|
|
587
|
-
* @param {Object} opts Optional parameters
|
|
588
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
589
|
-
* @param {Array.<String>} opts.tag Tag filter
|
|
590
|
-
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
591
|
-
* @param {String} opts.fleetUID
|
|
592
|
-
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
593
|
-
* @param {Array.<String>} opts.location Location filter
|
|
594
|
-
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
595
|
-
* @param {Array.<String>} opts.productUID
|
|
596
|
-
* @param {Array.<String>} opts.sku SKU filter
|
|
597
|
-
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
598
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
599
|
-
*/
|
|
600
|
-
}, {
|
|
601
|
-
key: "dfuAction",
|
|
602
|
-
value: function dfuAction(projectOrProductUID, firmwareType, action, opts) {
|
|
603
|
-
return this.dfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
604
|
-
return response_and_data.data;
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
|
|
608
574
|
/**
|
|
609
575
|
* Disable the project-level event JSONata transformation
|
|
610
|
-
* @param {String} projectOrProductUID
|
|
576
|
+
* @param {String} projectOrProductUID
|
|
611
577
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
612
578
|
*/
|
|
613
579
|
}, {
|
|
614
|
-
key: "
|
|
615
|
-
value: function
|
|
580
|
+
key: "disableGlobalEventTransformationWithHttpInfo",
|
|
581
|
+
value: function disableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
616
582
|
var postBody = null;
|
|
617
583
|
// verify the required parameter 'projectOrProductUID' is set
|
|
618
584
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
619
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
585
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableGlobalEventTransformation");
|
|
620
586
|
}
|
|
621
587
|
var pathParams = {
|
|
622
|
-
projectOrProductUID: projectOrProductUID
|
|
588
|
+
'projectOrProductUID': projectOrProductUID
|
|
623
589
|
};
|
|
624
590
|
var queryParams = {};
|
|
625
591
|
var headerParams = {};
|
|
626
592
|
var formParams = {};
|
|
627
|
-
var authNames = [
|
|
593
|
+
var authNames = ['personalAccessToken'];
|
|
628
594
|
var contentTypes = [];
|
|
629
|
-
var accepts = [
|
|
595
|
+
var accepts = ['application/json'];
|
|
630
596
|
var returnType = null;
|
|
631
|
-
return this.apiClient.callApi(
|
|
597
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
632
598
|
}
|
|
633
599
|
|
|
634
600
|
/**
|
|
635
601
|
* Disable the project-level event JSONata transformation
|
|
636
|
-
* @param {String} projectOrProductUID
|
|
602
|
+
* @param {String} projectOrProductUID
|
|
637
603
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
638
604
|
*/
|
|
639
605
|
}, {
|
|
640
|
-
key: "
|
|
641
|
-
value: function
|
|
642
|
-
return this.
|
|
606
|
+
key: "disableGlobalEventTransformation",
|
|
607
|
+
value: function disableGlobalEventTransformation(projectOrProductUID) {
|
|
608
|
+
return this.disableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
643
609
|
return response_and_data.data;
|
|
644
610
|
});
|
|
645
611
|
}
|
|
646
612
|
|
|
647
613
|
/**
|
|
648
614
|
* Enable the project-level event JSONata transformation
|
|
649
|
-
* @param {String} projectOrProductUID
|
|
615
|
+
* @param {String} projectOrProductUID
|
|
650
616
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
651
617
|
*/
|
|
652
618
|
}, {
|
|
653
|
-
key: "
|
|
654
|
-
value: function
|
|
619
|
+
key: "enableGlobalEventTransformationWithHttpInfo",
|
|
620
|
+
value: function enableGlobalEventTransformationWithHttpInfo(projectOrProductUID) {
|
|
655
621
|
var postBody = null;
|
|
656
622
|
// verify the required parameter 'projectOrProductUID' is set
|
|
657
623
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
658
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
624
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableGlobalEventTransformation");
|
|
659
625
|
}
|
|
660
626
|
var pathParams = {
|
|
661
|
-
projectOrProductUID: projectOrProductUID
|
|
627
|
+
'projectOrProductUID': projectOrProductUID
|
|
662
628
|
};
|
|
663
629
|
var queryParams = {};
|
|
664
630
|
var headerParams = {};
|
|
665
631
|
var formParams = {};
|
|
666
|
-
var authNames = [
|
|
632
|
+
var authNames = ['personalAccessToken'];
|
|
667
633
|
var contentTypes = [];
|
|
668
|
-
var accepts = [
|
|
634
|
+
var accepts = ['application/json'];
|
|
669
635
|
var returnType = null;
|
|
670
|
-
return this.apiClient.callApi(
|
|
636
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
671
637
|
}
|
|
672
638
|
|
|
673
639
|
/**
|
|
674
640
|
* Enable the project-level event JSONata transformation
|
|
675
|
-
* @param {String} projectOrProductUID
|
|
641
|
+
* @param {String} projectOrProductUID
|
|
676
642
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
677
643
|
*/
|
|
678
644
|
}, {
|
|
679
|
-
key: "
|
|
680
|
-
value: function
|
|
681
|
-
return this.
|
|
645
|
+
key: "enableGlobalEventTransformation",
|
|
646
|
+
value: function enableGlobalEventTransformation(projectOrProductUID) {
|
|
647
|
+
return this.enableGlobalEventTransformationWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
682
648
|
return response_and_data.data;
|
|
683
649
|
});
|
|
684
650
|
}
|
|
685
651
|
|
|
686
652
|
/**
|
|
687
653
|
* Get device DFU history for host or Notecard firmware
|
|
688
|
-
* @param {String} projectOrProductUID
|
|
689
|
-
* @param {String} deviceUID
|
|
690
|
-
* @param {module:model/String} firmwareType
|
|
654
|
+
* @param {String} projectOrProductUID
|
|
655
|
+
* @param {String} deviceUID
|
|
656
|
+
* @param {module:model/String} firmwareType
|
|
691
657
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
692
658
|
*/
|
|
693
659
|
}, {
|
|
@@ -707,25 +673,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
673
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuHistory");
|
|
708
674
|
}
|
|
709
675
|
var pathParams = {
|
|
710
|
-
projectOrProductUID: projectOrProductUID,
|
|
711
|
-
deviceUID: deviceUID,
|
|
712
|
-
firmwareType: firmwareType
|
|
676
|
+
'projectOrProductUID': projectOrProductUID,
|
|
677
|
+
'deviceUID': deviceUID,
|
|
678
|
+
'firmwareType': firmwareType
|
|
713
679
|
};
|
|
714
680
|
var queryParams = {};
|
|
715
681
|
var headerParams = {};
|
|
716
682
|
var formParams = {};
|
|
717
|
-
var authNames = [
|
|
683
|
+
var authNames = ['personalAccessToken'];
|
|
718
684
|
var contentTypes = [];
|
|
719
|
-
var accepts = [
|
|
685
|
+
var accepts = ['application/json'];
|
|
720
686
|
var returnType = _DeviceDfuHistory["default"];
|
|
721
|
-
return this.apiClient.callApi(
|
|
687
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
722
688
|
}
|
|
723
689
|
|
|
724
690
|
/**
|
|
725
691
|
* Get device DFU history for host or Notecard firmware
|
|
726
|
-
* @param {String} projectOrProductUID
|
|
727
|
-
* @param {String} deviceUID
|
|
728
|
-
* @param {module:model/String} firmwareType
|
|
692
|
+
* @param {String} projectOrProductUID
|
|
693
|
+
* @param {String} deviceUID
|
|
694
|
+
* @param {module:model/String} firmwareType
|
|
729
695
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
730
696
|
*/
|
|
731
697
|
}, {
|
|
@@ -738,9 +704,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
738
704
|
|
|
739
705
|
/**
|
|
740
706
|
* Get device DFU history for host or Notecard firmware
|
|
741
|
-
* @param {String} projectOrProductUID
|
|
742
|
-
* @param {String} deviceUID
|
|
743
|
-
* @param {module:model/String} firmwareType
|
|
707
|
+
* @param {String} projectOrProductUID
|
|
708
|
+
* @param {String} deviceUID
|
|
709
|
+
* @param {module:model/String} firmwareType
|
|
744
710
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
745
711
|
*/
|
|
746
712
|
}, {
|
|
@@ -760,25 +726,25 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
760
726
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDeviceDfuStatus");
|
|
761
727
|
}
|
|
762
728
|
var pathParams = {
|
|
763
|
-
projectOrProductUID: projectOrProductUID,
|
|
764
|
-
deviceUID: deviceUID,
|
|
765
|
-
firmwareType: firmwareType
|
|
729
|
+
'projectOrProductUID': projectOrProductUID,
|
|
730
|
+
'deviceUID': deviceUID,
|
|
731
|
+
'firmwareType': firmwareType
|
|
766
732
|
};
|
|
767
733
|
var queryParams = {};
|
|
768
734
|
var headerParams = {};
|
|
769
735
|
var formParams = {};
|
|
770
|
-
var authNames = [
|
|
736
|
+
var authNames = ['personalAccessToken'];
|
|
771
737
|
var contentTypes = [];
|
|
772
|
-
var accepts = [
|
|
738
|
+
var accepts = ['application/json'];
|
|
773
739
|
var returnType = _DeviceDfuStatus["default"];
|
|
774
|
-
return this.apiClient.callApi(
|
|
740
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
775
741
|
}
|
|
776
742
|
|
|
777
743
|
/**
|
|
778
744
|
* Get device DFU history for host or Notecard firmware
|
|
779
|
-
* @param {String} projectOrProductUID
|
|
780
|
-
* @param {String} deviceUID
|
|
781
|
-
* @param {module:model/String} firmwareType
|
|
745
|
+
* @param {String} projectOrProductUID
|
|
746
|
+
* @param {String} deviceUID
|
|
747
|
+
* @param {module:model/String} firmwareType
|
|
782
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
783
749
|
*/
|
|
784
750
|
}, {
|
|
@@ -791,8 +757,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
757
|
|
|
792
758
|
/**
|
|
793
759
|
* Get Device Fleets
|
|
794
|
-
* @param {String} projectOrProductUID
|
|
795
|
-
* @param {String} deviceUID
|
|
760
|
+
* @param {String} projectOrProductUID
|
|
761
|
+
* @param {String} deviceUID
|
|
796
762
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
797
763
|
*/
|
|
798
764
|
}, {
|
|
@@ -808,23 +774,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
808
774
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
809
775
|
}
|
|
810
776
|
var pathParams = {
|
|
811
|
-
projectOrProductUID: projectOrProductUID,
|
|
812
|
-
deviceUID: deviceUID
|
|
777
|
+
'projectOrProductUID': projectOrProductUID,
|
|
778
|
+
'deviceUID': deviceUID
|
|
813
779
|
};
|
|
814
780
|
var queryParams = {};
|
|
815
781
|
var headerParams = {};
|
|
816
782
|
var formParams = {};
|
|
817
|
-
var authNames = [
|
|
783
|
+
var authNames = ['personalAccessToken'];
|
|
818
784
|
var contentTypes = [];
|
|
819
|
-
var accepts = [
|
|
785
|
+
var accepts = ['application/json'];
|
|
820
786
|
var returnType = _GetDeviceFleets200Response["default"];
|
|
821
|
-
return this.apiClient.callApi(
|
|
787
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
822
788
|
}
|
|
823
789
|
|
|
824
790
|
/**
|
|
825
791
|
* Get Device Fleets
|
|
826
|
-
* @param {String} projectOrProductUID
|
|
827
|
-
* @param {String} deviceUID
|
|
792
|
+
* @param {String} projectOrProductUID
|
|
793
|
+
* @param {String} deviceUID
|
|
828
794
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
829
795
|
*/
|
|
830
796
|
}, {
|
|
@@ -837,8 +803,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
837
803
|
|
|
838
804
|
/**
|
|
839
805
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
840
|
-
* @param {String} projectOrProductUID
|
|
841
|
-
* @param {module:model/String} firmwareType
|
|
806
|
+
* @param {String} projectOrProductUID
|
|
807
|
+
* @param {module:model/String} firmwareType
|
|
842
808
|
* @param {Object} opts Optional parameters
|
|
843
809
|
* @param {Number} opts.pageSize (default to 50)
|
|
844
810
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -847,11 +813,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
847
813
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
848
814
|
* @param {Array.<String>} opts.tag Tag filter
|
|
849
815
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
850
|
-
* @param {String} opts.fleetUID
|
|
816
|
+
* @param {String} opts.fleetUID
|
|
851
817
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
852
818
|
* @param {Array.<String>} opts.location Location filter
|
|
853
819
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
854
|
-
* @param {Array.<String>} opts.productUID
|
|
820
|
+
* @param {Array.<String>} opts.productUID
|
|
855
821
|
* @param {Array.<String>} opts.sku SKU filter
|
|
856
822
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
|
|
857
823
|
*/
|
|
@@ -869,37 +835,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
869
835
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuHistory");
|
|
870
836
|
}
|
|
871
837
|
var pathParams = {
|
|
872
|
-
projectOrProductUID: projectOrProductUID,
|
|
873
|
-
firmwareType: firmwareType
|
|
838
|
+
'projectOrProductUID': projectOrProductUID,
|
|
839
|
+
'firmwareType': firmwareType
|
|
874
840
|
};
|
|
875
841
|
var queryParams = {
|
|
876
|
-
pageSize: opts[
|
|
877
|
-
pageNum: opts[
|
|
878
|
-
sortBy: opts[
|
|
879
|
-
sortOrder: opts[
|
|
880
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
881
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
882
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
883
|
-
fleetUID: opts[
|
|
884
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
885
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
886
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
887
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
888
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
842
|
+
'pageSize': opts['pageSize'],
|
|
843
|
+
'pageNum': opts['pageNum'],
|
|
844
|
+
'sortBy': opts['sortBy'],
|
|
845
|
+
'sortOrder': opts['sortOrder'],
|
|
846
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
847
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
848
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
849
|
+
'fleetUID': opts['fleetUID'],
|
|
850
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
851
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
852
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
853
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
854
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
889
855
|
};
|
|
890
856
|
var headerParams = {};
|
|
891
857
|
var formParams = {};
|
|
892
|
-
var authNames = [
|
|
858
|
+
var authNames = ['personalAccessToken'];
|
|
893
859
|
var contentTypes = [];
|
|
894
|
-
var accepts = [
|
|
860
|
+
var accepts = ['application/json'];
|
|
895
861
|
var returnType = _DeviceDfuHistoryPage["default"];
|
|
896
|
-
return this.apiClient.callApi(
|
|
862
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
897
863
|
}
|
|
898
864
|
|
|
899
865
|
/**
|
|
900
866
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
901
|
-
* @param {String} projectOrProductUID
|
|
902
|
-
* @param {module:model/String} firmwareType
|
|
867
|
+
* @param {String} projectOrProductUID
|
|
868
|
+
* @param {module:model/String} firmwareType
|
|
903
869
|
* @param {Object} opts Optional parameters
|
|
904
870
|
* @param {Number} opts.pageSize (default to 50)
|
|
905
871
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -908,11 +874,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
874
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
909
875
|
* @param {Array.<String>} opts.tag Tag filter
|
|
910
876
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
911
|
-
* @param {String} opts.fleetUID
|
|
877
|
+
* @param {String} opts.fleetUID
|
|
912
878
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
913
879
|
* @param {Array.<String>} opts.location Location filter
|
|
914
880
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
915
|
-
* @param {Array.<String>} opts.productUID
|
|
881
|
+
* @param {Array.<String>} opts.productUID
|
|
916
882
|
* @param {Array.<String>} opts.sku SKU filter
|
|
917
883
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
|
|
918
884
|
*/
|
|
@@ -926,8 +892,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
926
892
|
|
|
927
893
|
/**
|
|
928
894
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
929
|
-
* @param {String} projectOrProductUID
|
|
930
|
-
* @param {module:model/String} firmwareType
|
|
895
|
+
* @param {String} projectOrProductUID
|
|
896
|
+
* @param {module:model/String} firmwareType
|
|
931
897
|
* @param {Object} opts Optional parameters
|
|
932
898
|
* @param {Number} opts.pageSize (default to 50)
|
|
933
899
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -936,11 +902,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
936
902
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
937
903
|
* @param {Array.<String>} opts.tag Tag filter
|
|
938
904
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
939
|
-
* @param {String} opts.fleetUID
|
|
905
|
+
* @param {String} opts.fleetUID
|
|
940
906
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
941
907
|
* @param {Array.<String>} opts.location Location filter
|
|
942
908
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
943
|
-
* @param {Array.<String>} opts.productUID
|
|
909
|
+
* @param {Array.<String>} opts.productUID
|
|
944
910
|
* @param {Array.<String>} opts.sku SKU filter
|
|
945
911
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
|
|
946
912
|
*/
|
|
@@ -958,37 +924,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
958
924
|
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling getDevicesDfuStatus");
|
|
959
925
|
}
|
|
960
926
|
var pathParams = {
|
|
961
|
-
projectOrProductUID: projectOrProductUID,
|
|
962
|
-
firmwareType: firmwareType
|
|
927
|
+
'projectOrProductUID': projectOrProductUID,
|
|
928
|
+
'firmwareType': firmwareType
|
|
963
929
|
};
|
|
964
930
|
var queryParams = {
|
|
965
|
-
pageSize: opts[
|
|
966
|
-
pageNum: opts[
|
|
967
|
-
sortBy: opts[
|
|
968
|
-
sortOrder: opts[
|
|
969
|
-
deviceUID: this.apiClient.buildCollectionParam(opts[
|
|
970
|
-
tag: this.apiClient.buildCollectionParam(opts[
|
|
971
|
-
serialNumber: this.apiClient.buildCollectionParam(opts[
|
|
972
|
-
fleetUID: opts[
|
|
973
|
-
notecardFirmware: this.apiClient.buildCollectionParam(opts[
|
|
974
|
-
location: this.apiClient.buildCollectionParam(opts[
|
|
975
|
-
hostFirmware: this.apiClient.buildCollectionParam(opts[
|
|
976
|
-
productUID: this.apiClient.buildCollectionParam(opts[
|
|
977
|
-
sku: this.apiClient.buildCollectionParam(opts[
|
|
931
|
+
'pageSize': opts['pageSize'],
|
|
932
|
+
'pageNum': opts['pageNum'],
|
|
933
|
+
'sortBy': opts['sortBy'],
|
|
934
|
+
'sortOrder': opts['sortOrder'],
|
|
935
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
936
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
937
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
938
|
+
'fleetUID': opts['fleetUID'],
|
|
939
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
940
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
941
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
942
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
943
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
978
944
|
};
|
|
979
945
|
var headerParams = {};
|
|
980
946
|
var formParams = {};
|
|
981
|
-
var authNames = [
|
|
947
|
+
var authNames = ['personalAccessToken'];
|
|
982
948
|
var contentTypes = [];
|
|
983
|
-
var accepts = [
|
|
949
|
+
var accepts = ['application/json'];
|
|
984
950
|
var returnType = _DeviceDfuStatusPage["default"];
|
|
985
|
-
return this.apiClient.callApi(
|
|
951
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
986
952
|
}
|
|
987
953
|
|
|
988
954
|
/**
|
|
989
955
|
* Get host or Notecard DFU history for all devices that match the filter criteria
|
|
990
|
-
* @param {String} projectOrProductUID
|
|
991
|
-
* @param {module:model/String} firmwareType
|
|
956
|
+
* @param {String} projectOrProductUID
|
|
957
|
+
* @param {module:model/String} firmwareType
|
|
992
958
|
* @param {Object} opts Optional parameters
|
|
993
959
|
* @param {Number} opts.pageSize (default to 50)
|
|
994
960
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -997,11 +963,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
997
963
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
998
964
|
* @param {Array.<String>} opts.tag Tag filter
|
|
999
965
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1000
|
-
* @param {String} opts.fleetUID
|
|
966
|
+
* @param {String} opts.fleetUID
|
|
1001
967
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1002
968
|
* @param {Array.<String>} opts.location Location filter
|
|
1003
969
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1004
|
-
* @param {Array.<String>} opts.productUID
|
|
970
|
+
* @param {Array.<String>} opts.productUID
|
|
1005
971
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1006
972
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
|
|
1007
973
|
*/
|
|
@@ -1015,15 +981,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1015
981
|
|
|
1016
982
|
/**
|
|
1017
983
|
* Get Available Firmware Information
|
|
1018
|
-
* @param {String} projectOrProductUID
|
|
984
|
+
* @param {String} projectOrProductUID
|
|
1019
985
|
* @param {Object} opts Optional parameters
|
|
1020
|
-
* @param {String} opts.product
|
|
1021
|
-
* @param {String} opts.firmwareType
|
|
1022
|
-
* @param {String} opts.version
|
|
1023
|
-
* @param {String} opts.target
|
|
1024
|
-
* @param {String} opts.filename
|
|
1025
|
-
* @param {String} opts.md5
|
|
1026
|
-
* @param {Boolean} opts.unpublished
|
|
986
|
+
* @param {String} opts.product
|
|
987
|
+
* @param {String} opts.firmwareType
|
|
988
|
+
* @param {String} opts.version
|
|
989
|
+
* @param {String} opts.target
|
|
990
|
+
* @param {String} opts.filename
|
|
991
|
+
* @param {String} opts.md5
|
|
992
|
+
* @param {Boolean} opts.unpublished
|
|
1027
993
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
1028
994
|
*/
|
|
1029
995
|
}, {
|
|
@@ -1036,37 +1002,37 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1036
1002
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFirmwareInfo");
|
|
1037
1003
|
}
|
|
1038
1004
|
var pathParams = {
|
|
1039
|
-
projectOrProductUID: projectOrProductUID
|
|
1005
|
+
'projectOrProductUID': projectOrProductUID
|
|
1040
1006
|
};
|
|
1041
1007
|
var queryParams = {
|
|
1042
|
-
product: opts[
|
|
1043
|
-
firmwareType: opts[
|
|
1044
|
-
version: opts[
|
|
1045
|
-
target: opts[
|
|
1046
|
-
filename: opts[
|
|
1047
|
-
md5: opts[
|
|
1048
|
-
unpublished: opts[
|
|
1008
|
+
'product': opts['product'],
|
|
1009
|
+
'firmwareType': opts['firmwareType'],
|
|
1010
|
+
'version': opts['version'],
|
|
1011
|
+
'target': opts['target'],
|
|
1012
|
+
'filename': opts['filename'],
|
|
1013
|
+
'md5': opts['md5'],
|
|
1014
|
+
'unpublished': opts['unpublished']
|
|
1049
1015
|
};
|
|
1050
1016
|
var headerParams = {};
|
|
1051
1017
|
var formParams = {};
|
|
1052
|
-
var authNames = [
|
|
1018
|
+
var authNames = ['personalAccessToken'];
|
|
1053
1019
|
var contentTypes = [];
|
|
1054
|
-
var accepts = [
|
|
1020
|
+
var accepts = ['application/json'];
|
|
1055
1021
|
var returnType = [_FirmwareInfo["default"]];
|
|
1056
|
-
return this.apiClient.callApi(
|
|
1022
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1057
1023
|
}
|
|
1058
1024
|
|
|
1059
1025
|
/**
|
|
1060
1026
|
* Get Available Firmware Information
|
|
1061
|
-
* @param {String} projectOrProductUID
|
|
1027
|
+
* @param {String} projectOrProductUID
|
|
1062
1028
|
* @param {Object} opts Optional parameters
|
|
1063
|
-
* @param {String} opts.product
|
|
1064
|
-
* @param {String} opts.firmwareType
|
|
1065
|
-
* @param {String} opts.version
|
|
1066
|
-
* @param {String} opts.target
|
|
1067
|
-
* @param {String} opts.filename
|
|
1068
|
-
* @param {String} opts.md5
|
|
1069
|
-
* @param {Boolean} opts.unpublished
|
|
1029
|
+
* @param {String} opts.product
|
|
1030
|
+
* @param {String} opts.firmwareType
|
|
1031
|
+
* @param {String} opts.version
|
|
1032
|
+
* @param {String} opts.target
|
|
1033
|
+
* @param {String} opts.filename
|
|
1034
|
+
* @param {String} opts.md5
|
|
1035
|
+
* @param {Boolean} opts.unpublished
|
|
1070
1036
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1071
1037
|
*/
|
|
1072
1038
|
}, {
|
|
@@ -1079,8 +1045,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1079
1045
|
|
|
1080
1046
|
/**
|
|
1081
1047
|
* Get Fleet
|
|
1082
|
-
* @param {String} projectOrProductUID
|
|
1083
|
-
* @param {String} fleetUID
|
|
1048
|
+
* @param {String} projectOrProductUID
|
|
1049
|
+
* @param {String} fleetUID
|
|
1084
1050
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1085
1051
|
*/
|
|
1086
1052
|
}, {
|
|
@@ -1096,23 +1062,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1096
1062
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleet");
|
|
1097
1063
|
}
|
|
1098
1064
|
var pathParams = {
|
|
1099
|
-
projectOrProductUID: projectOrProductUID,
|
|
1100
|
-
fleetUID: fleetUID
|
|
1065
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1066
|
+
'fleetUID': fleetUID
|
|
1101
1067
|
};
|
|
1102
1068
|
var queryParams = {};
|
|
1103
1069
|
var headerParams = {};
|
|
1104
1070
|
var formParams = {};
|
|
1105
|
-
var authNames = [
|
|
1071
|
+
var authNames = ['personalAccessToken'];
|
|
1106
1072
|
var contentTypes = [];
|
|
1107
|
-
var accepts = [
|
|
1073
|
+
var accepts = ['application/json'];
|
|
1108
1074
|
var returnType = _Fleet["default"];
|
|
1109
|
-
return this.apiClient.callApi(
|
|
1075
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1110
1076
|
}
|
|
1111
1077
|
|
|
1112
1078
|
/**
|
|
1113
1079
|
* Get Fleet
|
|
1114
|
-
* @param {String} projectOrProductUID
|
|
1115
|
-
* @param {String} fleetUID
|
|
1080
|
+
* @param {String} projectOrProductUID
|
|
1081
|
+
* @param {String} fleetUID
|
|
1116
1082
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1117
1083
|
*/
|
|
1118
1084
|
}, {
|
|
@@ -1125,8 +1091,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1125
1091
|
|
|
1126
1092
|
/**
|
|
1127
1093
|
* Get environment variable hierarchy for a device
|
|
1128
|
-
* @param {String} projectOrProductUID
|
|
1129
|
-
* @param {String} fleetUID
|
|
1094
|
+
* @param {String} projectOrProductUID
|
|
1095
|
+
* @param {String} fleetUID
|
|
1130
1096
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1131
1097
|
*/
|
|
1132
1098
|
}, {
|
|
@@ -1142,23 +1108,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1108
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentHierarchy");
|
|
1143
1109
|
}
|
|
1144
1110
|
var pathParams = {
|
|
1145
|
-
projectOrProductUID: projectOrProductUID,
|
|
1146
|
-
fleetUID: fleetUID
|
|
1111
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1112
|
+
'fleetUID': fleetUID
|
|
1147
1113
|
};
|
|
1148
1114
|
var queryParams = {};
|
|
1149
1115
|
var headerParams = {};
|
|
1150
1116
|
var formParams = {};
|
|
1151
|
-
var authNames = [
|
|
1117
|
+
var authNames = ['personalAccessToken'];
|
|
1152
1118
|
var contentTypes = [];
|
|
1153
|
-
var accepts = [
|
|
1119
|
+
var accepts = ['application/json'];
|
|
1154
1120
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1155
|
-
return this.apiClient.callApi(
|
|
1121
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1156
1122
|
}
|
|
1157
1123
|
|
|
1158
1124
|
/**
|
|
1159
1125
|
* Get environment variable hierarchy for a device
|
|
1160
|
-
* @param {String} projectOrProductUID
|
|
1161
|
-
* @param {String} fleetUID
|
|
1126
|
+
* @param {String} projectOrProductUID
|
|
1127
|
+
* @param {String} fleetUID
|
|
1162
1128
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1163
1129
|
*/
|
|
1164
1130
|
}, {
|
|
@@ -1171,8 +1137,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1171
1137
|
|
|
1172
1138
|
/**
|
|
1173
1139
|
* Get environment variables of a fleet
|
|
1174
|
-
* @param {String} projectOrProductUID
|
|
1175
|
-
* @param {String} fleetUID
|
|
1140
|
+
* @param {String} projectOrProductUID
|
|
1141
|
+
* @param {String} fleetUID
|
|
1176
1142
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1177
1143
|
*/
|
|
1178
1144
|
}, {
|
|
@@ -1188,23 +1154,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1188
1154
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
1189
1155
|
}
|
|
1190
1156
|
var pathParams = {
|
|
1191
|
-
projectOrProductUID: projectOrProductUID,
|
|
1192
|
-
fleetUID: fleetUID
|
|
1157
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1158
|
+
'fleetUID': fleetUID
|
|
1193
1159
|
};
|
|
1194
1160
|
var queryParams = {};
|
|
1195
1161
|
var headerParams = {};
|
|
1196
1162
|
var formParams = {};
|
|
1197
|
-
var authNames = [
|
|
1163
|
+
var authNames = ['personalAccessToken'];
|
|
1198
1164
|
var contentTypes = [];
|
|
1199
|
-
var accepts = [
|
|
1165
|
+
var accepts = ['application/json'];
|
|
1200
1166
|
var returnType = _EnvironmentVariables["default"];
|
|
1201
|
-
return this.apiClient.callApi(
|
|
1167
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1202
1168
|
}
|
|
1203
1169
|
|
|
1204
1170
|
/**
|
|
1205
1171
|
* Get environment variables of a fleet
|
|
1206
|
-
* @param {String} projectOrProductUID
|
|
1207
|
-
* @param {String} fleetUID
|
|
1172
|
+
* @param {String} projectOrProductUID
|
|
1173
|
+
* @param {String} fleetUID
|
|
1208
1174
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1209
1175
|
*/
|
|
1210
1176
|
}, {
|
|
@@ -1215,9 +1181,48 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1215
1181
|
});
|
|
1216
1182
|
}
|
|
1217
1183
|
|
|
1184
|
+
/**
|
|
1185
|
+
* Get Project Fleets
|
|
1186
|
+
* @param {String} projectOrProductUID
|
|
1187
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1188
|
+
*/
|
|
1189
|
+
}, {
|
|
1190
|
+
key: "getFleetsWithHttpInfo",
|
|
1191
|
+
value: function getFleetsWithHttpInfo(projectOrProductUID) {
|
|
1192
|
+
var postBody = null;
|
|
1193
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
1194
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1195
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleets");
|
|
1196
|
+
}
|
|
1197
|
+
var pathParams = {
|
|
1198
|
+
'projectOrProductUID': projectOrProductUID
|
|
1199
|
+
};
|
|
1200
|
+
var queryParams = {};
|
|
1201
|
+
var headerParams = {};
|
|
1202
|
+
var formParams = {};
|
|
1203
|
+
var authNames = ['personalAccessToken'];
|
|
1204
|
+
var contentTypes = [];
|
|
1205
|
+
var accepts = ['application/json'];
|
|
1206
|
+
var returnType = _GetDeviceFleets200Response["default"];
|
|
1207
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* Get Project Fleets
|
|
1212
|
+
* @param {String} projectOrProductUID
|
|
1213
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1214
|
+
*/
|
|
1215
|
+
}, {
|
|
1216
|
+
key: "getFleets",
|
|
1217
|
+
value: function getFleets(projectOrProductUID) {
|
|
1218
|
+
return this.getFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1219
|
+
return response_and_data.data;
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1218
1223
|
/**
|
|
1219
1224
|
* Get variable format for a notefile
|
|
1220
|
-
* @param {String} projectOrProductUID
|
|
1225
|
+
* @param {String} projectOrProductUID
|
|
1221
1226
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1222
1227
|
*/
|
|
1223
1228
|
}, {
|
|
@@ -1229,21 +1234,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1229
1234
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefileSchemas");
|
|
1230
1235
|
}
|
|
1231
1236
|
var pathParams = {
|
|
1232
|
-
projectOrProductUID: projectOrProductUID
|
|
1237
|
+
'projectOrProductUID': projectOrProductUID
|
|
1233
1238
|
};
|
|
1234
1239
|
var queryParams = {};
|
|
1235
1240
|
var headerParams = {};
|
|
1236
1241
|
var formParams = {};
|
|
1237
1242
|
var authNames = [];
|
|
1238
1243
|
var contentTypes = [];
|
|
1239
|
-
var accepts = [
|
|
1244
|
+
var accepts = ['application/json'];
|
|
1240
1245
|
var returnType = [_NotefileSchema["default"]];
|
|
1241
|
-
return this.apiClient.callApi(
|
|
1246
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1242
1247
|
}
|
|
1243
1248
|
|
|
1244
1249
|
/**
|
|
1245
1250
|
* Get variable format for a notefile
|
|
1246
|
-
* @param {String} projectOrProductUID
|
|
1251
|
+
* @param {String} projectOrProductUID
|
|
1247
1252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1248
1253
|
*/
|
|
1249
1254
|
}, {
|
|
@@ -1256,7 +1261,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1256
1261
|
|
|
1257
1262
|
/**
|
|
1258
1263
|
* Get Products within a Project
|
|
1259
|
-
* @param {String} projectOrProductUID
|
|
1264
|
+
* @param {String} projectOrProductUID
|
|
1260
1265
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1261
1266
|
*/
|
|
1262
1267
|
}, {
|
|
@@ -1268,21 +1273,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1268
1273
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProducts");
|
|
1269
1274
|
}
|
|
1270
1275
|
var pathParams = {
|
|
1271
|
-
projectOrProductUID: projectOrProductUID
|
|
1276
|
+
'projectOrProductUID': projectOrProductUID
|
|
1272
1277
|
};
|
|
1273
1278
|
var queryParams = {};
|
|
1274
1279
|
var headerParams = {};
|
|
1275
1280
|
var formParams = {};
|
|
1276
|
-
var authNames = [
|
|
1281
|
+
var authNames = ['personalAccessToken'];
|
|
1277
1282
|
var contentTypes = [];
|
|
1278
|
-
var accepts = [
|
|
1283
|
+
var accepts = ['application/json'];
|
|
1279
1284
|
var returnType = _GetProducts200Response["default"];
|
|
1280
|
-
return this.apiClient.callApi(
|
|
1285
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1281
1286
|
}
|
|
1282
1287
|
|
|
1283
1288
|
/**
|
|
1284
1289
|
* Get Products within a Project
|
|
1285
|
-
* @param {String} projectOrProductUID
|
|
1290
|
+
* @param {String} projectOrProductUID
|
|
1286
1291
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1287
1292
|
*/
|
|
1288
1293
|
}, {
|
|
@@ -1295,7 +1300,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1300
|
|
|
1296
1301
|
/**
|
|
1297
1302
|
* Get a Project by ProjectUID
|
|
1298
|
-
* @param {String} projectOrProductUID
|
|
1303
|
+
* @param {String} projectOrProductUID
|
|
1299
1304
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1300
1305
|
*/
|
|
1301
1306
|
}, {
|
|
@@ -1307,21 +1312,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1307
1312
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProject");
|
|
1308
1313
|
}
|
|
1309
1314
|
var pathParams = {
|
|
1310
|
-
projectOrProductUID: projectOrProductUID
|
|
1315
|
+
'projectOrProductUID': projectOrProductUID
|
|
1311
1316
|
};
|
|
1312
1317
|
var queryParams = {};
|
|
1313
1318
|
var headerParams = {};
|
|
1314
1319
|
var formParams = {};
|
|
1315
|
-
var authNames = [
|
|
1320
|
+
var authNames = ['personalAccessToken'];
|
|
1316
1321
|
var contentTypes = [];
|
|
1317
|
-
var accepts = [
|
|
1322
|
+
var accepts = ['application/json'];
|
|
1318
1323
|
var returnType = _Project["default"];
|
|
1319
|
-
return this.apiClient.callApi(
|
|
1324
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1320
1325
|
}
|
|
1321
1326
|
|
|
1322
1327
|
/**
|
|
1323
1328
|
* Get a Project by ProjectUID
|
|
1324
|
-
* @param {String} projectOrProductUID
|
|
1329
|
+
* @param {String} projectOrProductUID
|
|
1325
1330
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1326
1331
|
*/
|
|
1327
1332
|
}, {
|
|
@@ -1334,7 +1339,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1334
1339
|
|
|
1335
1340
|
/**
|
|
1336
1341
|
* Get a Project by ProductUID
|
|
1337
|
-
* @param {String} productUID
|
|
1342
|
+
* @param {String} productUID
|
|
1338
1343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1339
1344
|
*/
|
|
1340
1345
|
}, {
|
|
@@ -1346,21 +1351,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1346
1351
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
1347
1352
|
}
|
|
1348
1353
|
var pathParams = {
|
|
1349
|
-
productUID: productUID
|
|
1354
|
+
'productUID': productUID
|
|
1350
1355
|
};
|
|
1351
1356
|
var queryParams = {};
|
|
1352
1357
|
var headerParams = {};
|
|
1353
1358
|
var formParams = {};
|
|
1354
|
-
var authNames = [
|
|
1359
|
+
var authNames = ['personalAccessToken'];
|
|
1355
1360
|
var contentTypes = [];
|
|
1356
|
-
var accepts = [
|
|
1361
|
+
var accepts = ['application/json'];
|
|
1357
1362
|
var returnType = _Project["default"];
|
|
1358
|
-
return this.apiClient.callApi(
|
|
1363
|
+
return this.apiClient.callApi('/v1/products/{productUID}/project', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1359
1364
|
}
|
|
1360
1365
|
|
|
1361
1366
|
/**
|
|
1362
1367
|
* Get a Project by ProductUID
|
|
1363
|
-
* @param {String} productUID
|
|
1368
|
+
* @param {String} productUID
|
|
1364
1369
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1365
1370
|
*/
|
|
1366
1371
|
}, {
|
|
@@ -1373,7 +1378,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1373
1378
|
|
|
1374
1379
|
/**
|
|
1375
1380
|
* Get environment variable hierarchy for a device
|
|
1376
|
-
* @param {String} projectOrProductUID
|
|
1381
|
+
* @param {String} projectOrProductUID
|
|
1377
1382
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
1378
1383
|
*/
|
|
1379
1384
|
}, {
|
|
@@ -1385,21 +1390,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1385
1390
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentHierarchy");
|
|
1386
1391
|
}
|
|
1387
1392
|
var pathParams = {
|
|
1388
|
-
projectOrProductUID: projectOrProductUID
|
|
1393
|
+
'projectOrProductUID': projectOrProductUID
|
|
1389
1394
|
};
|
|
1390
1395
|
var queryParams = {};
|
|
1391
1396
|
var headerParams = {};
|
|
1392
1397
|
var formParams = {};
|
|
1393
|
-
var authNames = [
|
|
1398
|
+
var authNames = ['personalAccessToken'];
|
|
1394
1399
|
var contentTypes = [];
|
|
1395
|
-
var accepts = [
|
|
1400
|
+
var accepts = ['application/json'];
|
|
1396
1401
|
var returnType = _EnvTreeJsonNode["default"];
|
|
1397
|
-
return this.apiClient.callApi(
|
|
1402
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1398
1403
|
}
|
|
1399
1404
|
|
|
1400
1405
|
/**
|
|
1401
1406
|
* Get environment variable hierarchy for a device
|
|
1402
|
-
* @param {String} projectOrProductUID
|
|
1407
|
+
* @param {String} projectOrProductUID
|
|
1403
1408
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
1404
1409
|
*/
|
|
1405
1410
|
}, {
|
|
@@ -1412,7 +1417,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1412
1417
|
|
|
1413
1418
|
/**
|
|
1414
1419
|
* Get environment variables of a project
|
|
1415
|
-
* @param {String} projectOrProductUID
|
|
1420
|
+
* @param {String} projectOrProductUID
|
|
1416
1421
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1417
1422
|
*/
|
|
1418
1423
|
}, {
|
|
@@ -1424,21 +1429,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1424
1429
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEnvironmentVariables");
|
|
1425
1430
|
}
|
|
1426
1431
|
var pathParams = {
|
|
1427
|
-
projectOrProductUID: projectOrProductUID
|
|
1432
|
+
'projectOrProductUID': projectOrProductUID
|
|
1428
1433
|
};
|
|
1429
1434
|
var queryParams = {};
|
|
1430
1435
|
var headerParams = {};
|
|
1431
1436
|
var formParams = {};
|
|
1432
|
-
var authNames = [
|
|
1437
|
+
var authNames = ['personalAccessToken'];
|
|
1433
1438
|
var contentTypes = [];
|
|
1434
|
-
var accepts = [
|
|
1439
|
+
var accepts = ['application/json'];
|
|
1435
1440
|
var returnType = _EnvironmentVariables["default"];
|
|
1436
|
-
return this.apiClient.callApi(
|
|
1441
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1437
1442
|
}
|
|
1438
1443
|
|
|
1439
1444
|
/**
|
|
1440
1445
|
* Get environment variables of a project
|
|
1441
|
-
* @param {String} projectOrProductUID
|
|
1446
|
+
* @param {String} projectOrProductUID
|
|
1442
1447
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1443
1448
|
*/
|
|
1444
1449
|
}, {
|
|
@@ -1449,48 +1454,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1449
1454
|
});
|
|
1450
1455
|
}
|
|
1451
1456
|
|
|
1452
|
-
/**
|
|
1453
|
-
* Get Project Fleets
|
|
1454
|
-
* @param {String} projectOrProductUID
|
|
1455
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceFleets200Response} and HTTP response
|
|
1456
|
-
*/
|
|
1457
|
-
}, {
|
|
1458
|
-
key: "getProjectFleetsWithHttpInfo",
|
|
1459
|
-
value: function getProjectFleetsWithHttpInfo(projectOrProductUID) {
|
|
1460
|
-
var postBody = null;
|
|
1461
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1462
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1463
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleets");
|
|
1464
|
-
}
|
|
1465
|
-
var pathParams = {
|
|
1466
|
-
projectOrProductUID: projectOrProductUID
|
|
1467
|
-
};
|
|
1468
|
-
var queryParams = {};
|
|
1469
|
-
var headerParams = {};
|
|
1470
|
-
var formParams = {};
|
|
1471
|
-
var authNames = ["personalAccessToken"];
|
|
1472
|
-
var contentTypes = [];
|
|
1473
|
-
var accepts = ["application/json"];
|
|
1474
|
-
var returnType = _GetDeviceFleets200Response["default"];
|
|
1475
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Get Project Fleets
|
|
1480
|
-
* @param {String} projectOrProductUID
|
|
1481
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceFleets200Response}
|
|
1482
|
-
*/
|
|
1483
|
-
}, {
|
|
1484
|
-
key: "getProjectFleets",
|
|
1485
|
-
value: function getProjectFleets(projectOrProductUID) {
|
|
1486
|
-
return this.getProjectFleetsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1487
|
-
return response_and_data.data;
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
1457
|
/**
|
|
1492
1458
|
* Get Project Members
|
|
1493
|
-
* @param {String} projectOrProductUID
|
|
1459
|
+
* @param {String} projectOrProductUID
|
|
1494
1460
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1495
1461
|
*/
|
|
1496
1462
|
}, {
|
|
@@ -1502,21 +1468,21 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1502
1468
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectMembers");
|
|
1503
1469
|
}
|
|
1504
1470
|
var pathParams = {
|
|
1505
|
-
projectOrProductUID: projectOrProductUID
|
|
1471
|
+
'projectOrProductUID': projectOrProductUID
|
|
1506
1472
|
};
|
|
1507
1473
|
var queryParams = {};
|
|
1508
1474
|
var headerParams = {};
|
|
1509
1475
|
var formParams = {};
|
|
1510
|
-
var authNames = [
|
|
1476
|
+
var authNames = ['personalAccessToken'];
|
|
1511
1477
|
var contentTypes = [];
|
|
1512
|
-
var accepts = [
|
|
1478
|
+
var accepts = ['application/json'];
|
|
1513
1479
|
var returnType = _GetProjectMembers200Response["default"];
|
|
1514
|
-
return this.apiClient.callApi(
|
|
1480
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1515
1481
|
}
|
|
1516
1482
|
|
|
1517
1483
|
/**
|
|
1518
1484
|
* Get Project Members
|
|
1519
|
-
* @param {String} projectOrProductUID
|
|
1485
|
+
* @param {String} projectOrProductUID
|
|
1520
1486
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1521
1487
|
*/
|
|
1522
1488
|
}, {
|
|
@@ -1539,11 +1505,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1539
1505
|
var queryParams = {};
|
|
1540
1506
|
var headerParams = {};
|
|
1541
1507
|
var formParams = {};
|
|
1542
|
-
var authNames = [
|
|
1508
|
+
var authNames = ['personalAccessToken'];
|
|
1543
1509
|
var contentTypes = [];
|
|
1544
|
-
var accepts = [
|
|
1510
|
+
var accepts = ['application/json'];
|
|
1545
1511
|
var returnType = _GetProjects200Response["default"];
|
|
1546
|
-
return this.apiClient.callApi(
|
|
1512
|
+
return this.apiClient.callApi('/v1/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1547
1513
|
}
|
|
1548
1514
|
|
|
1549
1515
|
/**
|
|
@@ -1559,202 +1525,236 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1525
|
}
|
|
1560
1526
|
|
|
1561
1527
|
/**
|
|
1562
|
-
*
|
|
1563
|
-
* @param {String} projectOrProductUID
|
|
1564
|
-
* @param {String}
|
|
1565
|
-
* @param {module:model/
|
|
1566
|
-
* @
|
|
1528
|
+
* Update/cancel host or notecard firmware updates
|
|
1529
|
+
* @param {String} projectOrProductUID
|
|
1530
|
+
* @param {module:model/String} firmwareType
|
|
1531
|
+
* @param {module:model/String} action
|
|
1532
|
+
* @param {Object} opts Optional parameters
|
|
1533
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1534
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
1535
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1536
|
+
* @param {String} opts.fleetUID
|
|
1537
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1538
|
+
* @param {Array.<String>} opts.location Location filter
|
|
1539
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1540
|
+
* @param {Array.<String>} opts.productUID
|
|
1541
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
1542
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1543
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1567
1544
|
*/
|
|
1568
1545
|
}, {
|
|
1569
|
-
key: "
|
|
1570
|
-
value: function
|
|
1571
|
-
|
|
1546
|
+
key: "performDfuActionWithHttpInfo",
|
|
1547
|
+
value: function performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts) {
|
|
1548
|
+
opts = opts || {};
|
|
1549
|
+
var postBody = opts['dfuActionRequest'];
|
|
1572
1550
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1573
1551
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1574
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1552
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling performDfuAction");
|
|
1575
1553
|
}
|
|
1576
|
-
// verify the required parameter '
|
|
1577
|
-
if (
|
|
1578
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1554
|
+
// verify the required parameter 'firmwareType' is set
|
|
1555
|
+
if (firmwareType === undefined || firmwareType === null) {
|
|
1556
|
+
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling performDfuAction");
|
|
1579
1557
|
}
|
|
1580
|
-
// verify the required parameter '
|
|
1581
|
-
if (
|
|
1582
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
1558
|
+
// verify the required parameter 'action' is set
|
|
1559
|
+
if (action === undefined || action === null) {
|
|
1560
|
+
throw new _Error["default"]("Missing the required parameter 'action' when calling performDfuAction");
|
|
1583
1561
|
}
|
|
1584
1562
|
var pathParams = {
|
|
1585
|
-
projectOrProductUID: projectOrProductUID,
|
|
1586
|
-
|
|
1563
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1564
|
+
'firmwareType': firmwareType,
|
|
1565
|
+
'action': action
|
|
1566
|
+
};
|
|
1567
|
+
var queryParams = {
|
|
1568
|
+
'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
|
|
1569
|
+
'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
|
|
1570
|
+
'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
|
|
1571
|
+
'fleetUID': opts['fleetUID'],
|
|
1572
|
+
'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
|
|
1573
|
+
'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
|
|
1574
|
+
'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
|
|
1575
|
+
'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
|
|
1576
|
+
'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
|
|
1587
1577
|
};
|
|
1588
|
-
var queryParams = {};
|
|
1589
1578
|
var headerParams = {};
|
|
1590
1579
|
var formParams = {};
|
|
1591
|
-
var authNames = [
|
|
1592
|
-
var contentTypes = [
|
|
1593
|
-
var accepts = [
|
|
1594
|
-
var returnType =
|
|
1595
|
-
return this.apiClient.callApi(
|
|
1580
|
+
var authNames = ['personalAccessToken'];
|
|
1581
|
+
var contentTypes = ['application/json'];
|
|
1582
|
+
var accepts = ['application/json'];
|
|
1583
|
+
var returnType = null;
|
|
1584
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/dfu/{firmwareType}/{action}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1596
1585
|
}
|
|
1597
1586
|
|
|
1598
1587
|
/**
|
|
1599
|
-
*
|
|
1600
|
-
* @param {String} projectOrProductUID
|
|
1601
|
-
* @param {String}
|
|
1602
|
-
* @param {module:model/
|
|
1603
|
-
* @
|
|
1588
|
+
* Update/cancel host or notecard firmware updates
|
|
1589
|
+
* @param {String} projectOrProductUID
|
|
1590
|
+
* @param {module:model/String} firmwareType
|
|
1591
|
+
* @param {module:model/String} action
|
|
1592
|
+
* @param {Object} opts Optional parameters
|
|
1593
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1594
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
1595
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1596
|
+
* @param {String} opts.fleetUID
|
|
1597
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1598
|
+
* @param {Array.<String>} opts.location Location filter
|
|
1599
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1600
|
+
* @param {Array.<String>} opts.productUID
|
|
1601
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
1602
|
+
* @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
|
|
1603
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1604
1604
|
*/
|
|
1605
1605
|
}, {
|
|
1606
|
-
key: "
|
|
1607
|
-
value: function
|
|
1608
|
-
return this.
|
|
1606
|
+
key: "performDfuAction",
|
|
1607
|
+
value: function performDfuAction(projectOrProductUID, firmwareType, action, opts) {
|
|
1608
|
+
return this.performDfuActionWithHttpInfo(projectOrProductUID, firmwareType, action, opts).then(function (response_and_data) {
|
|
1609
1609
|
return response_and_data.data;
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
1612
|
|
|
1613
1613
|
/**
|
|
1614
|
-
*
|
|
1615
|
-
* @param {String} projectOrProductUID
|
|
1616
|
-
* @param {String} fleetUID
|
|
1614
|
+
* Set environment variables of a fleet
|
|
1615
|
+
* @param {String} projectOrProductUID
|
|
1616
|
+
* @param {String} fleetUID
|
|
1617
1617
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1618
1618
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1619
1619
|
*/
|
|
1620
1620
|
}, {
|
|
1621
|
-
key: "
|
|
1622
|
-
value: function
|
|
1621
|
+
key: "setFleetEnvironmentVariablesWithHttpInfo",
|
|
1622
|
+
value: function setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1623
1623
|
var postBody = environmentVariables;
|
|
1624
1624
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1625
1625
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1626
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1626
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setFleetEnvironmentVariables");
|
|
1627
1627
|
}
|
|
1628
1628
|
// verify the required parameter 'fleetUID' is set
|
|
1629
1629
|
if (fleetUID === undefined || fleetUID === null) {
|
|
1630
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling
|
|
1630
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling setFleetEnvironmentVariables");
|
|
1631
1631
|
}
|
|
1632
1632
|
// verify the required parameter 'environmentVariables' is set
|
|
1633
1633
|
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1634
|
-
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling
|
|
1634
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setFleetEnvironmentVariables");
|
|
1635
1635
|
}
|
|
1636
1636
|
var pathParams = {
|
|
1637
|
-
projectOrProductUID: projectOrProductUID,
|
|
1638
|
-
fleetUID: fleetUID
|
|
1637
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1638
|
+
'fleetUID': fleetUID
|
|
1639
1639
|
};
|
|
1640
1640
|
var queryParams = {};
|
|
1641
1641
|
var headerParams = {};
|
|
1642
1642
|
var formParams = {};
|
|
1643
|
-
var authNames = [
|
|
1644
|
-
var contentTypes = [
|
|
1645
|
-
var accepts = [
|
|
1643
|
+
var authNames = ['personalAccessToken'];
|
|
1644
|
+
var contentTypes = ['application/json'];
|
|
1645
|
+
var accepts = ['application/json'];
|
|
1646
1646
|
var returnType = _EnvironmentVariables["default"];
|
|
1647
|
-
return this.apiClient.callApi(
|
|
1647
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
1650
|
/**
|
|
1651
|
-
*
|
|
1652
|
-
* @param {String} projectOrProductUID
|
|
1653
|
-
* @param {String} fleetUID
|
|
1651
|
+
* Set environment variables of a fleet
|
|
1652
|
+
* @param {String} projectOrProductUID
|
|
1653
|
+
* @param {String} fleetUID
|
|
1654
1654
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
1655
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1656
1656
|
*/
|
|
1657
1657
|
}, {
|
|
1658
|
-
key: "
|
|
1659
|
-
value: function
|
|
1660
|
-
return this.
|
|
1658
|
+
key: "setFleetEnvironmentVariables",
|
|
1659
|
+
value: function setFleetEnvironmentVariables(projectOrProductUID, fleetUID, environmentVariables) {
|
|
1660
|
+
return this.setFleetEnvironmentVariablesWithHttpInfo(projectOrProductUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
1661
1661
|
return response_and_data.data;
|
|
1662
1662
|
});
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @param {String} projectOrProductUID
|
|
1668
|
-
* @param {Object}
|
|
1669
|
-
* @
|
|
1670
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1666
|
+
* Set the project-level event JSONata transformation
|
|
1667
|
+
* @param {String} projectOrProductUID
|
|
1668
|
+
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1669
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1671
1670
|
*/
|
|
1672
1671
|
}, {
|
|
1673
|
-
key: "
|
|
1674
|
-
value: function
|
|
1675
|
-
|
|
1676
|
-
var postBody = opts["environmentVariables"];
|
|
1672
|
+
key: "setGlobalEventTransformationWithHttpInfo",
|
|
1673
|
+
value: function setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body) {
|
|
1674
|
+
var postBody = body;
|
|
1677
1675
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1678
1676
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1679
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1677
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setGlobalEventTransformation");
|
|
1678
|
+
}
|
|
1679
|
+
// verify the required parameter 'body' is set
|
|
1680
|
+
if (body === undefined || body === null) {
|
|
1681
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalEventTransformation");
|
|
1680
1682
|
}
|
|
1681
1683
|
var pathParams = {
|
|
1682
|
-
projectOrProductUID: projectOrProductUID
|
|
1684
|
+
'projectOrProductUID': projectOrProductUID
|
|
1683
1685
|
};
|
|
1684
1686
|
var queryParams = {};
|
|
1685
1687
|
var headerParams = {};
|
|
1686
1688
|
var formParams = {};
|
|
1687
|
-
var authNames = [
|
|
1688
|
-
var contentTypes = [
|
|
1689
|
-
var accepts = [
|
|
1690
|
-
var returnType =
|
|
1691
|
-
return this.apiClient.callApi(
|
|
1689
|
+
var authNames = ['personalAccessToken'];
|
|
1690
|
+
var contentTypes = ['application/json'];
|
|
1691
|
+
var accepts = ['application/json'];
|
|
1692
|
+
var returnType = null;
|
|
1693
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/global-transformation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1692
1694
|
}
|
|
1693
1695
|
|
|
1694
1696
|
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @param {String} projectOrProductUID
|
|
1697
|
-
* @param {Object}
|
|
1698
|
-
* @
|
|
1699
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1697
|
+
* Set the project-level event JSONata transformation
|
|
1698
|
+
* @param {String} projectOrProductUID
|
|
1699
|
+
* @param {Object.<String, Object>} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1700
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1700
1701
|
*/
|
|
1701
1702
|
}, {
|
|
1702
|
-
key: "
|
|
1703
|
-
value: function
|
|
1704
|
-
return this.
|
|
1703
|
+
key: "setGlobalEventTransformation",
|
|
1704
|
+
value: function setGlobalEventTransformation(projectOrProductUID, body) {
|
|
1705
|
+
return this.setGlobalEventTransformationWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
1705
1706
|
return response_and_data.data;
|
|
1706
1707
|
});
|
|
1707
1708
|
}
|
|
1708
1709
|
|
|
1709
1710
|
/**
|
|
1710
|
-
* Set
|
|
1711
|
-
* @param {String} projectOrProductUID
|
|
1712
|
-
* @param {Object
|
|
1713
|
-
* @
|
|
1711
|
+
* Set environment variables of a project
|
|
1712
|
+
* @param {String} projectOrProductUID
|
|
1713
|
+
* @param {Object} opts Optional parameters
|
|
1714
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1715
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1714
1716
|
*/
|
|
1715
1717
|
}, {
|
|
1716
|
-
key: "
|
|
1717
|
-
value: function
|
|
1718
|
-
|
|
1718
|
+
key: "setProjectEnvironmentVariablesWithHttpInfo",
|
|
1719
|
+
value: function setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts) {
|
|
1720
|
+
opts = opts || {};
|
|
1721
|
+
var postBody = opts['environmentVariables'];
|
|
1719
1722
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1720
1723
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1721
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling
|
|
1722
|
-
}
|
|
1723
|
-
// verify the required parameter 'body' is set
|
|
1724
|
-
if (body === undefined || body === null) {
|
|
1725
|
-
throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalTransformation");
|
|
1724
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectEnvironmentVariables");
|
|
1726
1725
|
}
|
|
1727
1726
|
var pathParams = {
|
|
1728
|
-
projectOrProductUID: projectOrProductUID
|
|
1727
|
+
'projectOrProductUID': projectOrProductUID
|
|
1729
1728
|
};
|
|
1730
1729
|
var queryParams = {};
|
|
1731
1730
|
var headerParams = {};
|
|
1732
1731
|
var formParams = {};
|
|
1733
|
-
var authNames = [
|
|
1734
|
-
var contentTypes = [
|
|
1735
|
-
var accepts = [
|
|
1736
|
-
var returnType =
|
|
1737
|
-
return this.apiClient.callApi(
|
|
1732
|
+
var authNames = ['personalAccessToken'];
|
|
1733
|
+
var contentTypes = ['application/json'];
|
|
1734
|
+
var accepts = ['application/json'];
|
|
1735
|
+
var returnType = _EnvironmentVariables["default"];
|
|
1736
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1738
1737
|
}
|
|
1739
1738
|
|
|
1740
1739
|
/**
|
|
1741
|
-
* Set
|
|
1742
|
-
* @param {String} projectOrProductUID
|
|
1743
|
-
* @param {Object
|
|
1744
|
-
* @
|
|
1740
|
+
* Set environment variables of a project
|
|
1741
|
+
* @param {String} projectOrProductUID
|
|
1742
|
+
* @param {Object} opts Optional parameters
|
|
1743
|
+
* @param {module:model/EnvironmentVariables} opts.environmentVariables
|
|
1744
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1745
1745
|
*/
|
|
1746
1746
|
}, {
|
|
1747
|
-
key: "
|
|
1748
|
-
value: function
|
|
1749
|
-
return this.
|
|
1747
|
+
key: "setProjectEnvironmentVariables",
|
|
1748
|
+
value: function setProjectEnvironmentVariables(projectOrProductUID, opts) {
|
|
1749
|
+
return this.setProjectEnvironmentVariablesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
1750
1750
|
return response_and_data.data;
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Update Fleet
|
|
1756
|
-
* @param {String} projectOrProductUID
|
|
1757
|
-
* @param {String} fleetUID
|
|
1756
|
+
* @param {String} projectOrProductUID
|
|
1757
|
+
* @param {String} fleetUID
|
|
1758
1758
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1759
1759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1760
1760
|
*/
|
|
@@ -1775,23 +1775,23 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1775
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1776
1776
|
}
|
|
1777
1777
|
var pathParams = {
|
|
1778
|
-
projectOrProductUID: projectOrProductUID,
|
|
1779
|
-
fleetUID: fleetUID
|
|
1778
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1779
|
+
'fleetUID': fleetUID
|
|
1780
1780
|
};
|
|
1781
1781
|
var queryParams = {};
|
|
1782
1782
|
var headerParams = {};
|
|
1783
1783
|
var formParams = {};
|
|
1784
|
-
var authNames = [
|
|
1785
|
-
var contentTypes = [
|
|
1786
|
-
var accepts = [
|
|
1784
|
+
var authNames = ['personalAccessToken'];
|
|
1785
|
+
var contentTypes = ['application/json'];
|
|
1786
|
+
var accepts = ['application/json'];
|
|
1787
1787
|
var returnType = _Fleet["default"];
|
|
1788
|
-
return this.apiClient.callApi(
|
|
1788
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Update Fleet
|
|
1793
|
-
* @param {String} projectOrProductUID
|
|
1794
|
-
* @param {String} fleetUID
|
|
1793
|
+
* @param {String} projectOrProductUID
|
|
1794
|
+
* @param {String} fleetUID
|
|
1795
1795
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1796
1796
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1797
1797
|
*/
|
|
@@ -1805,9 +1805,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1805
1805
|
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Upload firmware binary
|
|
1808
|
-
* @param {String} projectOrProductUID
|
|
1809
|
-
* @param {module:model/String} firmwareType
|
|
1810
|
-
* @param {String} filename
|
|
1808
|
+
* @param {String} projectOrProductUID
|
|
1809
|
+
* @param {module:model/String} firmwareType
|
|
1810
|
+
* @param {String} filename
|
|
1811
1811
|
* @param {File} body contents of the firmware binary
|
|
1812
1812
|
* @param {Object} opts Optional parameters
|
|
1813
1813
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
@@ -1836,28 +1836,28 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1836
1836
|
throw new _Error["default"]("Missing the required parameter 'body' when calling uploadFirmware");
|
|
1837
1837
|
}
|
|
1838
1838
|
var pathParams = {
|
|
1839
|
-
projectOrProductUID: projectOrProductUID,
|
|
1840
|
-
firmwareType: firmwareType,
|
|
1841
|
-
filename: filename
|
|
1839
|
+
'projectOrProductUID': projectOrProductUID,
|
|
1840
|
+
'firmwareType': firmwareType,
|
|
1841
|
+
'filename': filename
|
|
1842
1842
|
};
|
|
1843
1843
|
var queryParams = {
|
|
1844
|
-
version: opts[
|
|
1845
|
-
notes: opts[
|
|
1844
|
+
'version': opts['version'],
|
|
1845
|
+
'notes': opts['notes']
|
|
1846
1846
|
};
|
|
1847
1847
|
var headerParams = {};
|
|
1848
1848
|
var formParams = {};
|
|
1849
|
-
var authNames = [
|
|
1850
|
-
var contentTypes = [
|
|
1851
|
-
var accepts = [
|
|
1849
|
+
var authNames = ['personalAccessToken'];
|
|
1850
|
+
var contentTypes = ['application/octet-stream'];
|
|
1851
|
+
var accepts = ['application/json'];
|
|
1852
1852
|
var returnType = _FirmwareInfo["default"];
|
|
1853
|
-
return this.apiClient.callApi(
|
|
1853
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Upload firmware binary
|
|
1858
|
-
* @param {String} projectOrProductUID
|
|
1859
|
-
* @param {module:model/String} firmwareType
|
|
1860
|
-
* @param {String} filename
|
|
1858
|
+
* @param {String} projectOrProductUID
|
|
1859
|
+
* @param {module:model/String} firmwareType
|
|
1860
|
+
* @param {String} filename
|
|
1861
1861
|
* @param {File} body contents of the firmware binary
|
|
1862
1862
|
* @param {Object} opts Optional parameters
|
|
1863
1863
|
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|