@blues-inc/notehub-js 6.0.0-beta.9 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +268 -250
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +106 -16
- package/dist/api/DeviceApi.js +397 -341
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +438 -0
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +403 -403
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +91 -0
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- 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/CancelJobRun200Response.js +111 -0
- 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 +20 -20
- package/dist/model/CreateJob201Response.js +115 -0
- package/dist/model/CreateMonitor.js +127 -128
- 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/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +111 -0
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- 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 +67 -69
- 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 +82 -60
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccount200Response.js +137 -0
- package/dist/model/GetBillingAccount200ResponsePlan.js +141 -0
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +111 -0
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +130 -0
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +12 -13
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetJobRuns200Response.js +131 -0
- package/dist/model/GetJobs200Response.js +131 -0
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +14 -15
- package/dist/model/GetSessionsUsage200Response.js +15 -16
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +167 -0
- package/dist/model/JobRun.js +246 -0
- 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 +101 -102
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +103 -103
- 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/ProvisionDeviceRequest.js +18 -18
- 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/RunJob200Response.js +115 -0
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- 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 +60 -60
- 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 +33 -33
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +61 -43
- package/dist/model/UsageEventsResponse.js +14 -15
- package/dist/model/UsageRouteLogsData.js +36 -27
- package/dist/model/UsageSessionsData.js +67 -36
- 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/api/DeviceApi.js
CHANGED
|
@@ -33,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
34
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
35
35
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
36
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
37
37
|
*
|
|
38
38
|
* The version of the OpenAPI document: 1.2.0
|
|
39
39
|
* Contact: engineering@blues.io
|
|
@@ -44,18 +44,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
46
|
/**
|
|
47
|
-
* Device service.
|
|
48
|
-
* @module api/DeviceApi
|
|
49
|
-
* @version 6.
|
|
50
|
-
*/
|
|
47
|
+
* Device service.
|
|
48
|
+
* @module api/DeviceApi
|
|
49
|
+
* @version 6.1.0
|
|
50
|
+
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
* Constructs a new DeviceApi.
|
|
54
|
+
* @alias module:api/DeviceApi
|
|
55
|
+
* @class
|
|
56
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
57
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
58
|
+
*/
|
|
59
59
|
function DeviceApi(apiClient) {
|
|
60
60
|
_classCallCheck(this, DeviceApi);
|
|
61
61
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -63,10 +63,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
|
|
66
|
-
* @param {String} projectOrProductUID
|
|
67
|
-
* @param {String} deviceUID
|
|
68
|
-
* @param {String} notefileID
|
|
69
|
-
* @param {String} noteID
|
|
66
|
+
* @param {String} projectOrProductUID
|
|
67
|
+
* @param {String} deviceUID
|
|
68
|
+
* @param {String} notefileID
|
|
69
|
+
* @param {String} noteID
|
|
70
70
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
71
71
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
72
72
|
*/
|
|
@@ -95,27 +95,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
95
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
|
|
96
96
|
}
|
|
97
97
|
var pathParams = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
projectOrProductUID: projectOrProductUID,
|
|
99
|
+
deviceUID: deviceUID,
|
|
100
|
+
notefileID: notefileID,
|
|
101
|
+
noteID: noteID
|
|
102
102
|
};
|
|
103
103
|
var queryParams = {};
|
|
104
104
|
var headerParams = {};
|
|
105
105
|
var formParams = {};
|
|
106
|
-
var authNames = [
|
|
107
|
-
var contentTypes = [
|
|
108
|
-
var accepts = [
|
|
106
|
+
var authNames = ["personalAccessToken"];
|
|
107
|
+
var contentTypes = ["application/json"];
|
|
108
|
+
var accepts = ["application/json"];
|
|
109
109
|
var returnType = null;
|
|
110
|
-
return this.apiClient.callApi(
|
|
110
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
|
|
115
|
-
* @param {String} projectOrProductUID
|
|
116
|
-
* @param {String} deviceUID
|
|
117
|
-
* @param {String} notefileID
|
|
118
|
-
* @param {String} noteID
|
|
115
|
+
* @param {String} projectOrProductUID
|
|
116
|
+
* @param {String} deviceUID
|
|
117
|
+
* @param {String} notefileID
|
|
118
|
+
* @param {String} noteID
|
|
119
119
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
120
120
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
121
121
|
*/
|
|
@@ -129,9 +129,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
132
|
-
* @param {String} projectOrProductUID
|
|
133
|
-
* @param {String} deviceUID
|
|
134
|
-
* @param {String} notefileID
|
|
132
|
+
* @param {String} projectOrProductUID
|
|
133
|
+
* @param {String} deviceUID
|
|
134
|
+
* @param {String} notefileID
|
|
135
135
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
136
136
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
137
137
|
*/
|
|
@@ -156,25 +156,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
156
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
|
|
157
157
|
}
|
|
158
158
|
var pathParams = {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
projectOrProductUID: projectOrProductUID,
|
|
160
|
+
deviceUID: deviceUID,
|
|
161
|
+
notefileID: notefileID
|
|
162
162
|
};
|
|
163
163
|
var queryParams = {};
|
|
164
164
|
var headerParams = {};
|
|
165
165
|
var formParams = {};
|
|
166
|
-
var authNames = [
|
|
167
|
-
var contentTypes = [
|
|
168
|
-
var accepts = [
|
|
166
|
+
var authNames = ["personalAccessToken"];
|
|
167
|
+
var contentTypes = ["application/json"];
|
|
168
|
+
var accepts = ["application/json"];
|
|
169
169
|
var returnType = null;
|
|
170
|
-
return this.apiClient.callApi(
|
|
170
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
175
|
-
* @param {String} projectOrProductUID
|
|
176
|
-
* @param {String} deviceUID
|
|
177
|
-
* @param {String} notefileID
|
|
175
|
+
* @param {String} projectOrProductUID
|
|
176
|
+
* @param {String} deviceUID
|
|
177
|
+
* @param {String} notefileID
|
|
178
178
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
179
179
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
180
180
|
*/
|
|
@@ -186,10 +186,63 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Creates an empty Notefile on the device.
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
|
+
* @param {String} deviceUID
|
|
193
|
+
* @param {String} notefileID
|
|
194
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "createNotefileWithHttpInfo",
|
|
198
|
+
value: function createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID) {
|
|
199
|
+
var postBody = null;
|
|
200
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
201
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
202
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createNotefile");
|
|
203
|
+
}
|
|
204
|
+
// verify the required parameter 'deviceUID' is set
|
|
205
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
206
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createNotefile");
|
|
207
|
+
}
|
|
208
|
+
// verify the required parameter 'notefileID' is set
|
|
209
|
+
if (notefileID === undefined || notefileID === null) {
|
|
210
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling createNotefile");
|
|
211
|
+
}
|
|
212
|
+
var pathParams = {
|
|
213
|
+
projectOrProductUID: projectOrProductUID,
|
|
214
|
+
deviceUID: deviceUID,
|
|
215
|
+
notefileID: notefileID
|
|
216
|
+
};
|
|
217
|
+
var queryParams = {};
|
|
218
|
+
var headerParams = {};
|
|
219
|
+
var formParams = {};
|
|
220
|
+
var authNames = ["personalAccessToken"];
|
|
221
|
+
var contentTypes = [];
|
|
222
|
+
var accepts = ["application/json"];
|
|
223
|
+
var returnType = null;
|
|
224
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Creates an empty Notefile on the device.
|
|
229
|
+
* @param {String} projectOrProductUID
|
|
230
|
+
* @param {String} deviceUID
|
|
231
|
+
* @param {String} notefileID
|
|
232
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
233
|
+
*/
|
|
234
|
+
}, {
|
|
235
|
+
key: "createNotefile",
|
|
236
|
+
value: function createNotefile(projectOrProductUID, deviceUID, notefileID) {
|
|
237
|
+
return this.createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID).then(function (response_and_data) {
|
|
238
|
+
return response_and_data.data;
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
189
242
|
/**
|
|
190
243
|
* Delete Device
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
192
|
-
* @param {String} deviceUID
|
|
244
|
+
* @param {String} projectOrProductUID
|
|
245
|
+
* @param {String} deviceUID
|
|
193
246
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
194
247
|
*/
|
|
195
248
|
}, {
|
|
@@ -205,23 +258,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
258
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
|
|
206
259
|
}
|
|
207
260
|
var pathParams = {
|
|
208
|
-
|
|
209
|
-
|
|
261
|
+
projectOrProductUID: projectOrProductUID,
|
|
262
|
+
deviceUID: deviceUID
|
|
210
263
|
};
|
|
211
264
|
var queryParams = {};
|
|
212
265
|
var headerParams = {};
|
|
213
266
|
var formParams = {};
|
|
214
|
-
var authNames = [
|
|
267
|
+
var authNames = ["personalAccessToken"];
|
|
215
268
|
var contentTypes = [];
|
|
216
|
-
var accepts = [
|
|
269
|
+
var accepts = ["application/json"];
|
|
217
270
|
var returnType = null;
|
|
218
|
-
return this.apiClient.callApi(
|
|
271
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
219
272
|
}
|
|
220
273
|
|
|
221
274
|
/**
|
|
222
275
|
* Delete Device
|
|
223
|
-
* @param {String} projectOrProductUID
|
|
224
|
-
* @param {String} deviceUID
|
|
276
|
+
* @param {String} projectOrProductUID
|
|
277
|
+
* @param {String} deviceUID
|
|
225
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
226
279
|
*/
|
|
227
280
|
}, {
|
|
@@ -234,8 +287,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
287
|
|
|
235
288
|
/**
|
|
236
289
|
* Delete environment variable of a device
|
|
237
|
-
* @param {String} projectOrProductUID
|
|
238
|
-
* @param {String} deviceUID
|
|
290
|
+
* @param {String} projectOrProductUID
|
|
291
|
+
* @param {String} deviceUID
|
|
239
292
|
* @param {String} key The environment variable key to delete.
|
|
240
293
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
241
294
|
*/
|
|
@@ -256,24 +309,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
309
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
257
310
|
}
|
|
258
311
|
var pathParams = {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
312
|
+
projectOrProductUID: projectOrProductUID,
|
|
313
|
+
deviceUID: deviceUID,
|
|
314
|
+
key: key
|
|
262
315
|
};
|
|
263
316
|
var queryParams = {};
|
|
264
317
|
var headerParams = {};
|
|
265
318
|
var formParams = {};
|
|
266
|
-
var authNames = [
|
|
319
|
+
var authNames = ["personalAccessToken"];
|
|
267
320
|
var contentTypes = [];
|
|
268
|
-
var accepts = [
|
|
321
|
+
var accepts = ["application/json"];
|
|
269
322
|
var returnType = _EnvironmentVariables["default"];
|
|
270
|
-
return this.apiClient.callApi(
|
|
323
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
271
324
|
}
|
|
272
325
|
|
|
273
326
|
/**
|
|
274
327
|
* Delete environment variable of a device
|
|
275
|
-
* @param {String} projectOrProductUID
|
|
276
|
-
* @param {String} deviceUID
|
|
328
|
+
* @param {String} projectOrProductUID
|
|
329
|
+
* @param {String} deviceUID
|
|
277
330
|
* @param {String} key The environment variable key to delete.
|
|
278
331
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
279
332
|
*/
|
|
@@ -287,10 +340,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
340
|
|
|
288
341
|
/**
|
|
289
342
|
* Delete a note from a .db or .qi notefile
|
|
290
|
-
* @param {String} projectOrProductUID
|
|
291
|
-
* @param {String} deviceUID
|
|
292
|
-
* @param {String} notefileID
|
|
293
|
-
* @param {String} noteID
|
|
343
|
+
* @param {String} projectOrProductUID
|
|
344
|
+
* @param {String} deviceUID
|
|
345
|
+
* @param {String} notefileID
|
|
346
|
+
* @param {String} noteID
|
|
294
347
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
295
348
|
*/
|
|
296
349
|
}, {
|
|
@@ -314,27 +367,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
367
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
315
368
|
}
|
|
316
369
|
var pathParams = {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
370
|
+
projectOrProductUID: projectOrProductUID,
|
|
371
|
+
deviceUID: deviceUID,
|
|
372
|
+
notefileID: notefileID,
|
|
373
|
+
noteID: noteID
|
|
321
374
|
};
|
|
322
375
|
var queryParams = {};
|
|
323
376
|
var headerParams = {};
|
|
324
377
|
var formParams = {};
|
|
325
|
-
var authNames = [
|
|
378
|
+
var authNames = ["personalAccessToken"];
|
|
326
379
|
var contentTypes = [];
|
|
327
|
-
var accepts = [
|
|
380
|
+
var accepts = ["application/json"];
|
|
328
381
|
var returnType = null;
|
|
329
|
-
return this.apiClient.callApi(
|
|
382
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
330
383
|
}
|
|
331
384
|
|
|
332
385
|
/**
|
|
333
386
|
* Delete a note from a .db or .qi notefile
|
|
334
|
-
* @param {String} projectOrProductUID
|
|
335
|
-
* @param {String} deviceUID
|
|
336
|
-
* @param {String} notefileID
|
|
337
|
-
* @param {String} noteID
|
|
387
|
+
* @param {String} projectOrProductUID
|
|
388
|
+
* @param {String} deviceUID
|
|
389
|
+
* @param {String} notefileID
|
|
390
|
+
* @param {String} noteID
|
|
338
391
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
339
392
|
*/
|
|
340
393
|
}, {
|
|
@@ -347,9 +400,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
400
|
|
|
348
401
|
/**
|
|
349
402
|
* Deletes Notefiles and the Notes they contain.
|
|
350
|
-
* @param {String} projectOrProductUID
|
|
351
|
-
* @param {String} deviceUID
|
|
352
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
403
|
+
* @param {String} projectOrProductUID
|
|
404
|
+
* @param {String} deviceUID
|
|
405
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
353
406
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
354
407
|
*/
|
|
355
408
|
}, {
|
|
@@ -369,24 +422,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
422
|
throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
|
|
370
423
|
}
|
|
371
424
|
var pathParams = {
|
|
372
|
-
|
|
373
|
-
|
|
425
|
+
projectOrProductUID: projectOrProductUID,
|
|
426
|
+
deviceUID: deviceUID
|
|
374
427
|
};
|
|
375
428
|
var queryParams = {};
|
|
376
429
|
var headerParams = {};
|
|
377
430
|
var formParams = {};
|
|
378
|
-
var authNames = [
|
|
379
|
-
var contentTypes = [
|
|
380
|
-
var accepts = [
|
|
431
|
+
var authNames = ["personalAccessToken"];
|
|
432
|
+
var contentTypes = ["application/json"];
|
|
433
|
+
var accepts = ["application/json"];
|
|
381
434
|
var returnType = null;
|
|
382
|
-
return this.apiClient.callApi(
|
|
435
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
383
436
|
}
|
|
384
437
|
|
|
385
438
|
/**
|
|
386
439
|
* Deletes Notefiles and the Notes they contain.
|
|
387
|
-
* @param {String} projectOrProductUID
|
|
388
|
-
* @param {String} deviceUID
|
|
389
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
440
|
+
* @param {String} projectOrProductUID
|
|
441
|
+
* @param {String} deviceUID
|
|
442
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
390
443
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
391
444
|
*/
|
|
392
445
|
}, {
|
|
@@ -399,8 +452,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
452
|
|
|
400
453
|
/**
|
|
401
454
|
* Disable Device
|
|
402
|
-
* @param {String} projectOrProductUID
|
|
403
|
-
* @param {String} deviceUID
|
|
455
|
+
* @param {String} projectOrProductUID
|
|
456
|
+
* @param {String} deviceUID
|
|
404
457
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
405
458
|
*/
|
|
406
459
|
}, {
|
|
@@ -416,23 +469,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
416
469
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
417
470
|
}
|
|
418
471
|
var pathParams = {
|
|
419
|
-
|
|
420
|
-
|
|
472
|
+
projectOrProductUID: projectOrProductUID,
|
|
473
|
+
deviceUID: deviceUID
|
|
421
474
|
};
|
|
422
475
|
var queryParams = {};
|
|
423
476
|
var headerParams = {};
|
|
424
477
|
var formParams = {};
|
|
425
|
-
var authNames = [
|
|
478
|
+
var authNames = ["personalAccessToken"];
|
|
426
479
|
var contentTypes = [];
|
|
427
|
-
var accepts = [
|
|
480
|
+
var accepts = ["application/json"];
|
|
428
481
|
var returnType = null;
|
|
429
|
-
return this.apiClient.callApi(
|
|
482
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
430
483
|
}
|
|
431
484
|
|
|
432
485
|
/**
|
|
433
486
|
* Disable Device
|
|
434
|
-
* @param {String} projectOrProductUID
|
|
435
|
-
* @param {String} deviceUID
|
|
487
|
+
* @param {String} projectOrProductUID
|
|
488
|
+
* @param {String} deviceUID
|
|
436
489
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
437
490
|
*/
|
|
438
491
|
}, {
|
|
@@ -445,8 +498,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
445
498
|
|
|
446
499
|
/**
|
|
447
500
|
* Enable Device
|
|
448
|
-
* @param {String} projectOrProductUID
|
|
449
|
-
* @param {String} deviceUID
|
|
501
|
+
* @param {String} projectOrProductUID
|
|
502
|
+
* @param {String} deviceUID
|
|
450
503
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
451
504
|
*/
|
|
452
505
|
}, {
|
|
@@ -462,23 +515,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
462
515
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
463
516
|
}
|
|
464
517
|
var pathParams = {
|
|
465
|
-
|
|
466
|
-
|
|
518
|
+
projectOrProductUID: projectOrProductUID,
|
|
519
|
+
deviceUID: deviceUID
|
|
467
520
|
};
|
|
468
521
|
var queryParams = {};
|
|
469
522
|
var headerParams = {};
|
|
470
523
|
var formParams = {};
|
|
471
|
-
var authNames = [
|
|
524
|
+
var authNames = ["personalAccessToken"];
|
|
472
525
|
var contentTypes = [];
|
|
473
|
-
var accepts = [
|
|
526
|
+
var accepts = ["application/json"];
|
|
474
527
|
var returnType = null;
|
|
475
|
-
return this.apiClient.callApi(
|
|
528
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
476
529
|
}
|
|
477
530
|
|
|
478
531
|
/**
|
|
479
532
|
* Enable Device
|
|
480
|
-
* @param {String} projectOrProductUID
|
|
481
|
-
* @param {String} deviceUID
|
|
533
|
+
* @param {String} projectOrProductUID
|
|
534
|
+
* @param {String} deviceUID
|
|
482
535
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
483
536
|
*/
|
|
484
537
|
}, {
|
|
@@ -491,10 +544,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
544
|
|
|
492
545
|
/**
|
|
493
546
|
* Get a note from a .db or .qi notefile
|
|
494
|
-
* @param {String} projectOrProductUID
|
|
495
|
-
* @param {String} deviceUID
|
|
496
|
-
* @param {String} notefileID
|
|
497
|
-
* @param {String} noteID
|
|
547
|
+
* @param {String} projectOrProductUID
|
|
548
|
+
* @param {String} deviceUID
|
|
549
|
+
* @param {String} notefileID
|
|
550
|
+
* @param {String} noteID
|
|
498
551
|
* @param {Object} opts Optional parameters
|
|
499
552
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
500
553
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -522,30 +575,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
575
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
|
|
523
576
|
}
|
|
524
577
|
var pathParams = {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
578
|
+
projectOrProductUID: projectOrProductUID,
|
|
579
|
+
deviceUID: deviceUID,
|
|
580
|
+
notefileID: notefileID,
|
|
581
|
+
noteID: noteID
|
|
529
582
|
};
|
|
530
583
|
var queryParams = {
|
|
531
|
-
|
|
532
|
-
|
|
584
|
+
"delete": opts["_delete"],
|
|
585
|
+
deleted: opts["deleted"]
|
|
533
586
|
};
|
|
534
587
|
var headerParams = {};
|
|
535
588
|
var formParams = {};
|
|
536
|
-
var authNames = [
|
|
589
|
+
var authNames = ["personalAccessToken"];
|
|
537
590
|
var contentTypes = [];
|
|
538
|
-
var accepts = [
|
|
591
|
+
var accepts = ["application/json"];
|
|
539
592
|
var returnType = _GetDbNote200Response["default"];
|
|
540
|
-
return this.apiClient.callApi(
|
|
593
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
541
594
|
}
|
|
542
595
|
|
|
543
596
|
/**
|
|
544
597
|
* Get a note from a .db or .qi notefile
|
|
545
|
-
* @param {String} projectOrProductUID
|
|
546
|
-
* @param {String} deviceUID
|
|
547
|
-
* @param {String} notefileID
|
|
548
|
-
* @param {String} noteID
|
|
598
|
+
* @param {String} projectOrProductUID
|
|
599
|
+
* @param {String} deviceUID
|
|
600
|
+
* @param {String} notefileID
|
|
601
|
+
* @param {String} noteID
|
|
549
602
|
* @param {Object} opts Optional parameters
|
|
550
603
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
551
604
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -561,8 +614,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
561
614
|
|
|
562
615
|
/**
|
|
563
616
|
* Get Device
|
|
564
|
-
* @param {String} projectOrProductUID
|
|
565
|
-
* @param {String} deviceUID
|
|
617
|
+
* @param {String} projectOrProductUID
|
|
618
|
+
* @param {String} deviceUID
|
|
566
619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
567
620
|
*/
|
|
568
621
|
}, {
|
|
@@ -578,23 +631,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
578
631
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
579
632
|
}
|
|
580
633
|
var pathParams = {
|
|
581
|
-
|
|
582
|
-
|
|
634
|
+
projectOrProductUID: projectOrProductUID,
|
|
635
|
+
deviceUID: deviceUID
|
|
583
636
|
};
|
|
584
637
|
var queryParams = {};
|
|
585
638
|
var headerParams = {};
|
|
586
639
|
var formParams = {};
|
|
587
|
-
var authNames = [
|
|
640
|
+
var authNames = ["personalAccessToken"];
|
|
588
641
|
var contentTypes = [];
|
|
589
|
-
var accepts = [
|
|
642
|
+
var accepts = ["application/json"];
|
|
590
643
|
var returnType = _Device["default"];
|
|
591
|
-
return this.apiClient.callApi(
|
|
644
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
592
645
|
}
|
|
593
646
|
|
|
594
647
|
/**
|
|
595
648
|
* Get Device
|
|
596
|
-
* @param {String} projectOrProductUID
|
|
597
|
-
* @param {String} deviceUID
|
|
649
|
+
* @param {String} projectOrProductUID
|
|
650
|
+
* @param {String} deviceUID
|
|
598
651
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
599
652
|
*/
|
|
600
653
|
}, {
|
|
@@ -607,8 +660,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
607
660
|
|
|
608
661
|
/**
|
|
609
662
|
* Get environment variable hierarchy for a device
|
|
610
|
-
* @param {String} projectOrProductUID
|
|
611
|
-
* @param {String} deviceUID
|
|
663
|
+
* @param {String} projectOrProductUID
|
|
664
|
+
* @param {String} deviceUID
|
|
612
665
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
613
666
|
*/
|
|
614
667
|
}, {
|
|
@@ -624,23 +677,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
624
677
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
625
678
|
}
|
|
626
679
|
var pathParams = {
|
|
627
|
-
|
|
628
|
-
|
|
680
|
+
projectOrProductUID: projectOrProductUID,
|
|
681
|
+
deviceUID: deviceUID
|
|
629
682
|
};
|
|
630
683
|
var queryParams = {};
|
|
631
684
|
var headerParams = {};
|
|
632
685
|
var formParams = {};
|
|
633
|
-
var authNames = [
|
|
686
|
+
var authNames = ["personalAccessToken"];
|
|
634
687
|
var contentTypes = [];
|
|
635
|
-
var accepts = [
|
|
688
|
+
var accepts = ["application/json"];
|
|
636
689
|
var returnType = _EnvTreeJsonNode["default"];
|
|
637
|
-
return this.apiClient.callApi(
|
|
690
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
638
691
|
}
|
|
639
692
|
|
|
640
693
|
/**
|
|
641
694
|
* Get environment variable hierarchy for a device
|
|
642
|
-
* @param {String} projectOrProductUID
|
|
643
|
-
* @param {String} deviceUID
|
|
695
|
+
* @param {String} projectOrProductUID
|
|
696
|
+
* @param {String} deviceUID
|
|
644
697
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
645
698
|
*/
|
|
646
699
|
}, {
|
|
@@ -653,8 +706,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
653
706
|
|
|
654
707
|
/**
|
|
655
708
|
* Get environment variables of a device
|
|
656
|
-
* @param {String} projectOrProductUID
|
|
657
|
-
* @param {String} deviceUID
|
|
709
|
+
* @param {String} projectOrProductUID
|
|
710
|
+
* @param {String} deviceUID
|
|
658
711
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
659
712
|
*/
|
|
660
713
|
}, {
|
|
@@ -670,23 +723,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
670
723
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
671
724
|
}
|
|
672
725
|
var pathParams = {
|
|
673
|
-
|
|
674
|
-
|
|
726
|
+
projectOrProductUID: projectOrProductUID,
|
|
727
|
+
deviceUID: deviceUID
|
|
675
728
|
};
|
|
676
729
|
var queryParams = {};
|
|
677
730
|
var headerParams = {};
|
|
678
731
|
var formParams = {};
|
|
679
|
-
var authNames = [
|
|
732
|
+
var authNames = ["personalAccessToken"];
|
|
680
733
|
var contentTypes = [];
|
|
681
|
-
var accepts = [
|
|
734
|
+
var accepts = ["application/json"];
|
|
682
735
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
683
|
-
return this.apiClient.callApi(
|
|
736
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
684
737
|
}
|
|
685
738
|
|
|
686
739
|
/**
|
|
687
740
|
* Get environment variables of a device
|
|
688
|
-
* @param {String} projectOrProductUID
|
|
689
|
-
* @param {String} deviceUID
|
|
741
|
+
* @param {String} projectOrProductUID
|
|
742
|
+
* @param {String} deviceUID
|
|
690
743
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
691
744
|
*/
|
|
692
745
|
}, {
|
|
@@ -699,8 +752,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
699
752
|
|
|
700
753
|
/**
|
|
701
754
|
* Get environment variables of a device with device pin authorization
|
|
702
|
-
* @param {String} productUID
|
|
703
|
-
* @param {String} deviceUID
|
|
755
|
+
* @param {String} productUID
|
|
756
|
+
* @param {String} deviceUID
|
|
704
757
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
705
758
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
706
759
|
*/
|
|
@@ -721,25 +774,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
721
774
|
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
|
|
722
775
|
}
|
|
723
776
|
var pathParams = {
|
|
724
|
-
|
|
725
|
-
|
|
777
|
+
productUID: productUID,
|
|
778
|
+
deviceUID: deviceUID
|
|
726
779
|
};
|
|
727
780
|
var queryParams = {};
|
|
728
781
|
var headerParams = {
|
|
729
|
-
|
|
782
|
+
"X-Auth-Token": xAuthToken
|
|
730
783
|
};
|
|
731
784
|
var formParams = {};
|
|
732
785
|
var authNames = [];
|
|
733
786
|
var contentTypes = [];
|
|
734
|
-
var accepts = [
|
|
787
|
+
var accepts = ["application/json"];
|
|
735
788
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
736
|
-
return this.apiClient.callApi(
|
|
789
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
737
790
|
}
|
|
738
791
|
|
|
739
792
|
/**
|
|
740
793
|
* Get environment variables of a device with device pin authorization
|
|
741
|
-
* @param {String} productUID
|
|
742
|
-
* @param {String} deviceUID
|
|
794
|
+
* @param {String} productUID
|
|
795
|
+
* @param {String} deviceUID
|
|
743
796
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
744
797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
745
798
|
*/
|
|
@@ -753,8 +806,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
753
806
|
|
|
754
807
|
/**
|
|
755
808
|
* Get Device Health Log
|
|
756
|
-
* @param {String} projectOrProductUID
|
|
757
|
-
* @param {String} deviceUID
|
|
809
|
+
* @param {String} projectOrProductUID
|
|
810
|
+
* @param {String} deviceUID
|
|
758
811
|
* @param {Object} opts Optional parameters
|
|
759
812
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
760
813
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -775,27 +828,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
775
828
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
776
829
|
}
|
|
777
830
|
var pathParams = {
|
|
778
|
-
|
|
779
|
-
|
|
831
|
+
projectOrProductUID: projectOrProductUID,
|
|
832
|
+
deviceUID: deviceUID
|
|
780
833
|
};
|
|
781
834
|
var queryParams = {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
835
|
+
startDate: opts["startDate"],
|
|
836
|
+
endDate: opts["endDate"],
|
|
837
|
+
log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
|
|
785
838
|
};
|
|
786
839
|
var headerParams = {};
|
|
787
840
|
var formParams = {};
|
|
788
|
-
var authNames = [
|
|
841
|
+
var authNames = ["personalAccessToken"];
|
|
789
842
|
var contentTypes = [];
|
|
790
|
-
var accepts = [
|
|
843
|
+
var accepts = ["application/json"];
|
|
791
844
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
792
|
-
return this.apiClient.callApi(
|
|
845
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
793
846
|
}
|
|
794
847
|
|
|
795
848
|
/**
|
|
796
849
|
* Get Device Health Log
|
|
797
|
-
* @param {String} projectOrProductUID
|
|
798
|
-
* @param {String} deviceUID
|
|
850
|
+
* @param {String} projectOrProductUID
|
|
851
|
+
* @param {String} deviceUID
|
|
799
852
|
* @param {Object} opts Optional parameters
|
|
800
853
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
801
854
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -812,8 +865,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
812
865
|
|
|
813
866
|
/**
|
|
814
867
|
* Get Device Latest Events
|
|
815
|
-
* @param {String} projectOrProductUID
|
|
816
|
-
* @param {String} deviceUID
|
|
868
|
+
* @param {String} projectOrProductUID
|
|
869
|
+
* @param {String} deviceUID
|
|
817
870
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
818
871
|
*/
|
|
819
872
|
}, {
|
|
@@ -829,23 +882,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
829
882
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
|
|
830
883
|
}
|
|
831
884
|
var pathParams = {
|
|
832
|
-
|
|
833
|
-
|
|
885
|
+
projectOrProductUID: projectOrProductUID,
|
|
886
|
+
deviceUID: deviceUID
|
|
834
887
|
};
|
|
835
888
|
var queryParams = {};
|
|
836
889
|
var headerParams = {};
|
|
837
890
|
var formParams = {};
|
|
838
|
-
var authNames = [
|
|
891
|
+
var authNames = ["personalAccessToken"];
|
|
839
892
|
var contentTypes = [];
|
|
840
|
-
var accepts = [
|
|
893
|
+
var accepts = ["application/json"];
|
|
841
894
|
var returnType = _GetDeviceLatestEvents200Response["default"];
|
|
842
|
-
return this.apiClient.callApi(
|
|
895
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
843
896
|
}
|
|
844
897
|
|
|
845
898
|
/**
|
|
846
899
|
* Get Device Latest Events
|
|
847
|
-
* @param {String} projectOrProductUID
|
|
848
|
-
* @param {String} deviceUID
|
|
900
|
+
* @param {String} projectOrProductUID
|
|
901
|
+
* @param {String} deviceUID
|
|
849
902
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
850
903
|
*/
|
|
851
904
|
}, {
|
|
@@ -858,8 +911,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
858
911
|
|
|
859
912
|
/**
|
|
860
913
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
861
|
-
* @param {String} projectOrProductUID
|
|
862
|
-
* @param {String} deviceUID
|
|
914
|
+
* @param {String} projectOrProductUID
|
|
915
|
+
* @param {String} deviceUID
|
|
863
916
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
864
917
|
*/
|
|
865
918
|
}, {
|
|
@@ -875,23 +928,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
875
928
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
876
929
|
}
|
|
877
930
|
var pathParams = {
|
|
878
|
-
|
|
879
|
-
|
|
931
|
+
projectOrProductUID: projectOrProductUID,
|
|
932
|
+
deviceUID: deviceUID
|
|
880
933
|
};
|
|
881
934
|
var queryParams = {};
|
|
882
935
|
var headerParams = {};
|
|
883
936
|
var formParams = {};
|
|
884
|
-
var authNames = [
|
|
937
|
+
var authNames = ["personalAccessToken"];
|
|
885
938
|
var contentTypes = [];
|
|
886
|
-
var accepts = [
|
|
939
|
+
var accepts = ["application/json"];
|
|
887
940
|
var returnType = _GetDevicePlans200Response["default"];
|
|
888
|
-
return this.apiClient.callApi(
|
|
941
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
889
942
|
}
|
|
890
943
|
|
|
891
944
|
/**
|
|
892
945
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
893
|
-
* @param {String} projectOrProductUID
|
|
894
|
-
* @param {String} deviceUID
|
|
946
|
+
* @param {String} projectOrProductUID
|
|
947
|
+
* @param {String} deviceUID
|
|
895
948
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
896
949
|
*/
|
|
897
950
|
}, {
|
|
@@ -904,8 +957,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
904
957
|
|
|
905
958
|
/**
|
|
906
959
|
* Get Device Public Key
|
|
907
|
-
* @param {String} projectOrProductUID
|
|
908
|
-
* @param {String} deviceUID
|
|
960
|
+
* @param {String} projectOrProductUID
|
|
961
|
+
* @param {String} deviceUID
|
|
909
962
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
910
963
|
*/
|
|
911
964
|
}, {
|
|
@@ -921,23 +974,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
921
974
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
922
975
|
}
|
|
923
976
|
var pathParams = {
|
|
924
|
-
|
|
925
|
-
|
|
977
|
+
projectOrProductUID: projectOrProductUID,
|
|
978
|
+
deviceUID: deviceUID
|
|
926
979
|
};
|
|
927
980
|
var queryParams = {};
|
|
928
981
|
var headerParams = {};
|
|
929
982
|
var formParams = {};
|
|
930
|
-
var authNames = [
|
|
983
|
+
var authNames = ["personalAccessToken"];
|
|
931
984
|
var contentTypes = [];
|
|
932
|
-
var accepts = [
|
|
985
|
+
var accepts = ["application/json"];
|
|
933
986
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
934
|
-
return this.apiClient.callApi(
|
|
987
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
935
988
|
}
|
|
936
989
|
|
|
937
990
|
/**
|
|
938
991
|
* Get Device Public Key
|
|
939
|
-
* @param {String} projectOrProductUID
|
|
940
|
-
* @param {String} deviceUID
|
|
992
|
+
* @param {String} projectOrProductUID
|
|
993
|
+
* @param {String} deviceUID
|
|
941
994
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
942
995
|
*/
|
|
943
996
|
}, {
|
|
@@ -950,7 +1003,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
950
1003
|
|
|
951
1004
|
/**
|
|
952
1005
|
* Get Device Public Keys of a Project
|
|
953
|
-
* @param {String} projectOrProductUID
|
|
1006
|
+
* @param {String} projectOrProductUID
|
|
954
1007
|
* @param {Object} opts Optional parameters
|
|
955
1008
|
* @param {Number} opts.pageSize (default to 50)
|
|
956
1009
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -966,24 +1019,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
966
1019
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
|
|
967
1020
|
}
|
|
968
1021
|
var pathParams = {
|
|
969
|
-
|
|
1022
|
+
projectOrProductUID: projectOrProductUID
|
|
970
1023
|
};
|
|
971
1024
|
var queryParams = {
|
|
972
|
-
|
|
973
|
-
|
|
1025
|
+
pageSize: opts["pageSize"],
|
|
1026
|
+
pageNum: opts["pageNum"]
|
|
974
1027
|
};
|
|
975
1028
|
var headerParams = {};
|
|
976
1029
|
var formParams = {};
|
|
977
|
-
var authNames = [
|
|
1030
|
+
var authNames = ["personalAccessToken"];
|
|
978
1031
|
var contentTypes = [];
|
|
979
|
-
var accepts = [
|
|
1032
|
+
var accepts = ["application/json"];
|
|
980
1033
|
var returnType = _GetDevicePublicKeys200Response["default"];
|
|
981
|
-
return this.apiClient.callApi(
|
|
1034
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
982
1035
|
}
|
|
983
1036
|
|
|
984
1037
|
/**
|
|
985
1038
|
* Get Device Public Keys of a Project
|
|
986
|
-
* @param {String} projectOrProductUID
|
|
1039
|
+
* @param {String} projectOrProductUID
|
|
987
1040
|
* @param {Object} opts Optional parameters
|
|
988
1041
|
* @param {Number} opts.pageSize (default to 50)
|
|
989
1042
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -999,13 +1052,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
999
1052
|
|
|
1000
1053
|
/**
|
|
1001
1054
|
* Get Device Sessions
|
|
1002
|
-
* @param {String} projectOrProductUID
|
|
1003
|
-
* @param {String} deviceUID
|
|
1055
|
+
* @param {String} projectOrProductUID
|
|
1056
|
+
* @param {String} deviceUID
|
|
1004
1057
|
* @param {Object} opts Optional parameters
|
|
1005
1058
|
* @param {Number} opts.pageSize (default to 50)
|
|
1006
1059
|
* @param {Number} opts.pageNum (default to 1)
|
|
1007
1060
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1008
1061
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1062
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1009
1063
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
1010
1064
|
*/
|
|
1011
1065
|
}, {
|
|
@@ -1022,33 +1076,35 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1022
1076
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
1023
1077
|
}
|
|
1024
1078
|
var pathParams = {
|
|
1025
|
-
|
|
1026
|
-
|
|
1079
|
+
projectOrProductUID: projectOrProductUID,
|
|
1080
|
+
deviceUID: deviceUID
|
|
1027
1081
|
};
|
|
1028
1082
|
var queryParams = {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1083
|
+
pageSize: opts["pageSize"],
|
|
1084
|
+
pageNum: opts["pageNum"],
|
|
1085
|
+
startDate: opts["startDate"],
|
|
1086
|
+
endDate: opts["endDate"],
|
|
1087
|
+
firstSync: opts["firstSync"]
|
|
1033
1088
|
};
|
|
1034
1089
|
var headerParams = {};
|
|
1035
1090
|
var formParams = {};
|
|
1036
|
-
var authNames = [
|
|
1091
|
+
var authNames = ["personalAccessToken"];
|
|
1037
1092
|
var contentTypes = [];
|
|
1038
|
-
var accepts = [
|
|
1093
|
+
var accepts = ["application/json"];
|
|
1039
1094
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
1040
|
-
return this.apiClient.callApi(
|
|
1095
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1041
1096
|
}
|
|
1042
1097
|
|
|
1043
1098
|
/**
|
|
1044
1099
|
* Get Device Sessions
|
|
1045
|
-
* @param {String} projectOrProductUID
|
|
1046
|
-
* @param {String} deviceUID
|
|
1100
|
+
* @param {String} projectOrProductUID
|
|
1101
|
+
* @param {String} deviceUID
|
|
1047
1102
|
* @param {Object} opts Optional parameters
|
|
1048
1103
|
* @param {Number} opts.pageSize (default to 50)
|
|
1049
1104
|
* @param {Number} opts.pageNum (default to 1)
|
|
1050
1105
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1051
1106
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1107
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1052
1108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
1053
1109
|
*/
|
|
1054
1110
|
}, {
|
|
@@ -1061,18 +1117,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1061
1117
|
|
|
1062
1118
|
/**
|
|
1063
1119
|
* Get Devices of a Project
|
|
1064
|
-
* @param {String} projectOrProductUID
|
|
1120
|
+
* @param {String} projectOrProductUID
|
|
1065
1121
|
* @param {Object} opts Optional parameters
|
|
1066
1122
|
* @param {Number} opts.pageSize (default to 50)
|
|
1067
1123
|
* @param {Number} opts.pageNum (default to 1)
|
|
1068
1124
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1069
1125
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1070
1126
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1071
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1127
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1072
1128
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1073
1129
|
* @param {Array.<String>} opts.location Location filter
|
|
1074
1130
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1075
|
-
* @param {Array.<String>} opts.productUID
|
|
1131
|
+
* @param {Array.<String>} opts.productUID
|
|
1076
1132
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1077
1133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1078
1134
|
*/
|
|
@@ -1086,44 +1142,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1086
1142
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
|
|
1087
1143
|
}
|
|
1088
1144
|
var pathParams = {
|
|
1089
|
-
|
|
1145
|
+
projectOrProductUID: projectOrProductUID
|
|
1090
1146
|
};
|
|
1091
1147
|
var queryParams = {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1148
|
+
pageSize: opts["pageSize"],
|
|
1149
|
+
pageNum: opts["pageNum"],
|
|
1150
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1151
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1152
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1153
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
1154
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1155
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1156
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1157
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1158
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1103
1159
|
};
|
|
1104
1160
|
var headerParams = {};
|
|
1105
1161
|
var formParams = {};
|
|
1106
|
-
var authNames = [
|
|
1162
|
+
var authNames = ["personalAccessToken"];
|
|
1107
1163
|
var contentTypes = [];
|
|
1108
|
-
var accepts = [
|
|
1164
|
+
var accepts = ["application/json"];
|
|
1109
1165
|
var returnType = _GetDevices200Response["default"];
|
|
1110
|
-
return this.apiClient.callApi(
|
|
1166
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1111
1167
|
}
|
|
1112
1168
|
|
|
1113
1169
|
/**
|
|
1114
1170
|
* Get Devices of a Project
|
|
1115
|
-
* @param {String} projectOrProductUID
|
|
1171
|
+
* @param {String} projectOrProductUID
|
|
1116
1172
|
* @param {Object} opts Optional parameters
|
|
1117
1173
|
* @param {Number} opts.pageSize (default to 50)
|
|
1118
1174
|
* @param {Number} opts.pageNum (default to 1)
|
|
1119
1175
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1120
1176
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1121
1177
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1122
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1178
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1123
1179
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1124
1180
|
* @param {Array.<String>} opts.location Location filter
|
|
1125
1181
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1126
|
-
* @param {Array.<String>} opts.productUID
|
|
1182
|
+
* @param {Array.<String>} opts.productUID
|
|
1127
1183
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1128
1184
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1129
1185
|
*/
|
|
@@ -1137,8 +1193,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1137
1193
|
|
|
1138
1194
|
/**
|
|
1139
1195
|
* Get Devices of a Fleet within a Project
|
|
1140
|
-
* @param {String} projectOrProductUID
|
|
1141
|
-
* @param {String} fleetUID
|
|
1196
|
+
* @param {String} projectOrProductUID
|
|
1197
|
+
* @param {String} fleetUID
|
|
1142
1198
|
* @param {Object} opts Optional parameters
|
|
1143
1199
|
* @param {Number} opts.pageSize (default to 50)
|
|
1144
1200
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1148,7 +1204,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1148
1204
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1149
1205
|
* @param {Array.<String>} opts.location Location filter
|
|
1150
1206
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1151
|
-
* @param {Array.<String>} opts.productUID
|
|
1207
|
+
* @param {Array.<String>} opts.productUID
|
|
1152
1208
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1153
1209
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1154
1210
|
*/
|
|
@@ -1166,34 +1222,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1166
1222
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
|
|
1167
1223
|
}
|
|
1168
1224
|
var pathParams = {
|
|
1169
|
-
|
|
1170
|
-
|
|
1225
|
+
projectOrProductUID: projectOrProductUID,
|
|
1226
|
+
fleetUID: fleetUID
|
|
1171
1227
|
};
|
|
1172
1228
|
var queryParams = {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1229
|
+
pageSize: opts["pageSize"],
|
|
1230
|
+
pageNum: opts["pageNum"],
|
|
1231
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1232
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1233
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1234
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1235
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1236
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1237
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1238
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1183
1239
|
};
|
|
1184
1240
|
var headerParams = {};
|
|
1185
1241
|
var formParams = {};
|
|
1186
|
-
var authNames = [
|
|
1242
|
+
var authNames = ["personalAccessToken"];
|
|
1187
1243
|
var contentTypes = [];
|
|
1188
|
-
var accepts = [
|
|
1244
|
+
var accepts = ["application/json"];
|
|
1189
1245
|
var returnType = _GetDevices200Response["default"];
|
|
1190
|
-
return this.apiClient.callApi(
|
|
1246
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1191
1247
|
}
|
|
1192
1248
|
|
|
1193
1249
|
/**
|
|
1194
1250
|
* Get Devices of a Fleet within a Project
|
|
1195
|
-
* @param {String} projectOrProductUID
|
|
1196
|
-
* @param {String} fleetUID
|
|
1251
|
+
* @param {String} projectOrProductUID
|
|
1252
|
+
* @param {String} fleetUID
|
|
1197
1253
|
* @param {Object} opts Optional parameters
|
|
1198
1254
|
* @param {Number} opts.pageSize (default to 50)
|
|
1199
1255
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1203,7 +1259,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1203
1259
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1204
1260
|
* @param {Array.<String>} opts.location Location filter
|
|
1205
1261
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1206
|
-
* @param {Array.<String>} opts.productUID
|
|
1262
|
+
* @param {Array.<String>} opts.productUID
|
|
1207
1263
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1208
1264
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1209
1265
|
*/
|
|
@@ -1217,9 +1273,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1217
1273
|
|
|
1218
1274
|
/**
|
|
1219
1275
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1220
|
-
* @param {String} projectOrProductUID
|
|
1221
|
-
* @param {String} deviceUID
|
|
1222
|
-
* @param {String} notefileID
|
|
1276
|
+
* @param {String} projectOrProductUID
|
|
1277
|
+
* @param {String} deviceUID
|
|
1278
|
+
* @param {String} notefileID
|
|
1223
1279
|
* @param {Object} opts Optional parameters
|
|
1224
1280
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1225
1281
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1244,29 +1300,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1300
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
|
|
1245
1301
|
}
|
|
1246
1302
|
var pathParams = {
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1303
|
+
projectOrProductUID: projectOrProductUID,
|
|
1304
|
+
deviceUID: deviceUID,
|
|
1305
|
+
notefileID: notefileID
|
|
1250
1306
|
};
|
|
1251
1307
|
var queryParams = {
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1308
|
+
max: opts["max"],
|
|
1309
|
+
deleted: opts["deleted"],
|
|
1310
|
+
"delete": opts["_delete"]
|
|
1255
1311
|
};
|
|
1256
1312
|
var headerParams = {};
|
|
1257
1313
|
var formParams = {};
|
|
1258
|
-
var authNames = [
|
|
1314
|
+
var authNames = ["personalAccessToken"];
|
|
1259
1315
|
var contentTypes = [];
|
|
1260
|
-
var accepts = [
|
|
1316
|
+
var accepts = ["application/json"];
|
|
1261
1317
|
var returnType = _GetNotefile200Response["default"];
|
|
1262
|
-
return this.apiClient.callApi(
|
|
1318
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1263
1319
|
}
|
|
1264
1320
|
|
|
1265
1321
|
/**
|
|
1266
1322
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1267
|
-
* @param {String} projectOrProductUID
|
|
1268
|
-
* @param {String} deviceUID
|
|
1269
|
-
* @param {String} notefileID
|
|
1323
|
+
* @param {String} projectOrProductUID
|
|
1324
|
+
* @param {String} deviceUID
|
|
1325
|
+
* @param {String} notefileID
|
|
1270
1326
|
* @param {Object} opts Optional parameters
|
|
1271
1327
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1272
1328
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1283,8 +1339,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1283
1339
|
|
|
1284
1340
|
/**
|
|
1285
1341
|
* Lists .qi and .db files for the device
|
|
1286
|
-
* @param {String} projectOrProductUID
|
|
1287
|
-
* @param {String} deviceUID
|
|
1342
|
+
* @param {String} projectOrProductUID
|
|
1343
|
+
* @param {String} deviceUID
|
|
1288
1344
|
* @param {Object} opts Optional parameters
|
|
1289
1345
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1290
1346
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1304,26 +1360,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1304
1360
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
|
|
1305
1361
|
}
|
|
1306
1362
|
var pathParams = {
|
|
1307
|
-
|
|
1308
|
-
|
|
1363
|
+
projectOrProductUID: projectOrProductUID,
|
|
1364
|
+
deviceUID: deviceUID
|
|
1309
1365
|
};
|
|
1310
1366
|
var queryParams = {
|
|
1311
|
-
|
|
1312
|
-
|
|
1367
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi"),
|
|
1368
|
+
pending: opts["pending"]
|
|
1313
1369
|
};
|
|
1314
1370
|
var headerParams = {};
|
|
1315
1371
|
var formParams = {};
|
|
1316
|
-
var authNames = [
|
|
1372
|
+
var authNames = ["personalAccessToken"];
|
|
1317
1373
|
var contentTypes = [];
|
|
1318
|
-
var accepts = [
|
|
1374
|
+
var accepts = ["application/json"];
|
|
1319
1375
|
var returnType = [_Notefile["default"]];
|
|
1320
|
-
return this.apiClient.callApi(
|
|
1376
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1321
1377
|
}
|
|
1322
1378
|
|
|
1323
1379
|
/**
|
|
1324
1380
|
* Lists .qi and .db files for the device
|
|
1325
|
-
* @param {String} projectOrProductUID
|
|
1326
|
-
* @param {String} deviceUID
|
|
1381
|
+
* @param {String} projectOrProductUID
|
|
1382
|
+
* @param {String} deviceUID
|
|
1327
1383
|
* @param {Object} opts Optional parameters
|
|
1328
1384
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1329
1385
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1339,8 +1395,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1395
|
|
|
1340
1396
|
/**
|
|
1341
1397
|
* Provision Device for a Project
|
|
1342
|
-
* @param {String} projectOrProductUID
|
|
1343
|
-
* @param {String} deviceUID
|
|
1398
|
+
* @param {String} projectOrProductUID
|
|
1399
|
+
* @param {String} deviceUID
|
|
1344
1400
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1345
1401
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1346
1402
|
*/
|
|
@@ -1361,23 +1417,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1361
1417
|
throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
|
|
1362
1418
|
}
|
|
1363
1419
|
var pathParams = {
|
|
1364
|
-
|
|
1365
|
-
|
|
1420
|
+
projectOrProductUID: projectOrProductUID,
|
|
1421
|
+
deviceUID: deviceUID
|
|
1366
1422
|
};
|
|
1367
1423
|
var queryParams = {};
|
|
1368
1424
|
var headerParams = {};
|
|
1369
1425
|
var formParams = {};
|
|
1370
|
-
var authNames = [
|
|
1371
|
-
var contentTypes = [
|
|
1372
|
-
var accepts = [
|
|
1426
|
+
var authNames = ["personalAccessToken"];
|
|
1427
|
+
var contentTypes = ["application/json"];
|
|
1428
|
+
var accepts = ["application/json"];
|
|
1373
1429
|
var returnType = Object;
|
|
1374
|
-
return this.apiClient.callApi(
|
|
1430
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1375
1431
|
}
|
|
1376
1432
|
|
|
1377
1433
|
/**
|
|
1378
1434
|
* Provision Device for a Project
|
|
1379
|
-
* @param {String} projectOrProductUID
|
|
1380
|
-
* @param {String} deviceUID
|
|
1435
|
+
* @param {String} projectOrProductUID
|
|
1436
|
+
* @param {String} deviceUID
|
|
1381
1437
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1382
1438
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1383
1439
|
*/
|
|
@@ -1391,8 +1447,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1391
1447
|
|
|
1392
1448
|
/**
|
|
1393
1449
|
* Set environment variables of a device
|
|
1394
|
-
* @param {String} projectOrProductUID
|
|
1395
|
-
* @param {String} deviceUID
|
|
1450
|
+
* @param {String} projectOrProductUID
|
|
1451
|
+
* @param {String} deviceUID
|
|
1396
1452
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1397
1453
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1398
1454
|
*/
|
|
@@ -1413,23 +1469,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1413
1469
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
|
|
1414
1470
|
}
|
|
1415
1471
|
var pathParams = {
|
|
1416
|
-
|
|
1417
|
-
|
|
1472
|
+
projectOrProductUID: projectOrProductUID,
|
|
1473
|
+
deviceUID: deviceUID
|
|
1418
1474
|
};
|
|
1419
1475
|
var queryParams = {};
|
|
1420
1476
|
var headerParams = {};
|
|
1421
1477
|
var formParams = {};
|
|
1422
|
-
var authNames = [
|
|
1423
|
-
var contentTypes = [
|
|
1424
|
-
var accepts = [
|
|
1478
|
+
var authNames = ["personalAccessToken"];
|
|
1479
|
+
var contentTypes = ["application/json"];
|
|
1480
|
+
var accepts = ["application/json"];
|
|
1425
1481
|
var returnType = _EnvironmentVariables["default"];
|
|
1426
|
-
return this.apiClient.callApi(
|
|
1482
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1427
1483
|
}
|
|
1428
1484
|
|
|
1429
1485
|
/**
|
|
1430
1486
|
* Set environment variables of a device
|
|
1431
|
-
* @param {String} projectOrProductUID
|
|
1432
|
-
* @param {String} deviceUID
|
|
1487
|
+
* @param {String} projectOrProductUID
|
|
1488
|
+
* @param {String} deviceUID
|
|
1433
1489
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1434
1490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1435
1491
|
*/
|
|
@@ -1443,8 +1499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1443
1499
|
|
|
1444
1500
|
/**
|
|
1445
1501
|
* Set environment variables of a device with device pin authorization
|
|
1446
|
-
* @param {String} productUID
|
|
1447
|
-
* @param {String} deviceUID
|
|
1502
|
+
* @param {String} productUID
|
|
1503
|
+
* @param {String} deviceUID
|
|
1448
1504
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1449
1505
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1450
1506
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1470,25 +1526,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1470
1526
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
1471
1527
|
}
|
|
1472
1528
|
var pathParams = {
|
|
1473
|
-
|
|
1474
|
-
|
|
1529
|
+
productUID: productUID,
|
|
1530
|
+
deviceUID: deviceUID
|
|
1475
1531
|
};
|
|
1476
1532
|
var queryParams = {};
|
|
1477
1533
|
var headerParams = {
|
|
1478
|
-
|
|
1534
|
+
"X-Auth-Token": xAuthToken
|
|
1479
1535
|
};
|
|
1480
1536
|
var formParams = {};
|
|
1481
1537
|
var authNames = [];
|
|
1482
|
-
var contentTypes = [
|
|
1483
|
-
var accepts = [
|
|
1538
|
+
var contentTypes = ["application/json"];
|
|
1539
|
+
var accepts = ["application/json"];
|
|
1484
1540
|
var returnType = _EnvironmentVariables["default"];
|
|
1485
|
-
return this.apiClient.callApi(
|
|
1541
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1486
1542
|
}
|
|
1487
1543
|
|
|
1488
1544
|
/**
|
|
1489
1545
|
* Set environment variables of a device with device pin authorization
|
|
1490
|
-
* @param {String} productUID
|
|
1491
|
-
* @param {String} deviceUID
|
|
1546
|
+
* @param {String} productUID
|
|
1547
|
+
* @param {String} deviceUID
|
|
1492
1548
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1493
1549
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1494
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1503,8 +1559,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1503
1559
|
|
|
1504
1560
|
/**
|
|
1505
1561
|
* Send a signal from Notehub to a Notecard.
|
|
1506
|
-
* @param {String} projectOrProductUID
|
|
1507
|
-
* @param {String} deviceUID
|
|
1562
|
+
* @param {String} projectOrProductUID
|
|
1563
|
+
* @param {String} deviceUID
|
|
1508
1564
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1509
1565
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1510
1566
|
*/
|
|
@@ -1525,23 +1581,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1525
1581
|
throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
|
|
1526
1582
|
}
|
|
1527
1583
|
var pathParams = {
|
|
1528
|
-
|
|
1529
|
-
|
|
1584
|
+
projectOrProductUID: projectOrProductUID,
|
|
1585
|
+
deviceUID: deviceUID
|
|
1530
1586
|
};
|
|
1531
1587
|
var queryParams = {};
|
|
1532
1588
|
var headerParams = {};
|
|
1533
1589
|
var formParams = {};
|
|
1534
|
-
var authNames = [
|
|
1535
|
-
var contentTypes = [
|
|
1536
|
-
var accepts = [
|
|
1590
|
+
var authNames = ["personalAccessToken"];
|
|
1591
|
+
var contentTypes = ["application/json"];
|
|
1592
|
+
var accepts = ["application/json"];
|
|
1537
1593
|
var returnType = _SignalDevice200Response["default"];
|
|
1538
|
-
return this.apiClient.callApi(
|
|
1594
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1539
1595
|
}
|
|
1540
1596
|
|
|
1541
1597
|
/**
|
|
1542
1598
|
* Send a signal from Notehub to a Notecard.
|
|
1543
|
-
* @param {String} projectOrProductUID
|
|
1544
|
-
* @param {String} deviceUID
|
|
1599
|
+
* @param {String} projectOrProductUID
|
|
1600
|
+
* @param {String} deviceUID
|
|
1545
1601
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1546
1602
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1547
1603
|
*/
|
|
@@ -1555,10 +1611,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1555
1611
|
|
|
1556
1612
|
/**
|
|
1557
1613
|
* Update a note in a .db or .qi notefile
|
|
1558
|
-
* @param {String} projectOrProductUID
|
|
1559
|
-
* @param {String} deviceUID
|
|
1560
|
-
* @param {String} notefileID
|
|
1561
|
-
* @param {String} noteID
|
|
1614
|
+
* @param {String} projectOrProductUID
|
|
1615
|
+
* @param {String} deviceUID
|
|
1616
|
+
* @param {String} notefileID
|
|
1617
|
+
* @param {String} noteID
|
|
1562
1618
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1563
1619
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1564
1620
|
*/
|
|
@@ -1587,27 +1643,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1587
1643
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
|
|
1588
1644
|
}
|
|
1589
1645
|
var pathParams = {
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1646
|
+
projectOrProductUID: projectOrProductUID,
|
|
1647
|
+
deviceUID: deviceUID,
|
|
1648
|
+
notefileID: notefileID,
|
|
1649
|
+
noteID: noteID
|
|
1594
1650
|
};
|
|
1595
1651
|
var queryParams = {};
|
|
1596
1652
|
var headerParams = {};
|
|
1597
1653
|
var formParams = {};
|
|
1598
|
-
var authNames = [
|
|
1599
|
-
var contentTypes = [
|
|
1600
|
-
var accepts = [
|
|
1654
|
+
var authNames = ["personalAccessToken"];
|
|
1655
|
+
var contentTypes = ["application/json"];
|
|
1656
|
+
var accepts = ["application/json"];
|
|
1601
1657
|
var returnType = null;
|
|
1602
|
-
return this.apiClient.callApi(
|
|
1658
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1603
1659
|
}
|
|
1604
1660
|
|
|
1605
1661
|
/**
|
|
1606
1662
|
* Update a note in a .db or .qi notefile
|
|
1607
|
-
* @param {String} projectOrProductUID
|
|
1608
|
-
* @param {String} deviceUID
|
|
1609
|
-
* @param {String} notefileID
|
|
1610
|
-
* @param {String} noteID
|
|
1663
|
+
* @param {String} projectOrProductUID
|
|
1664
|
+
* @param {String} deviceUID
|
|
1665
|
+
* @param {String} notefileID
|
|
1666
|
+
* @param {String} noteID
|
|
1611
1667
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1612
1668
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1613
1669
|
*/
|