@blues-inc/notehub-js 4.0.0-beta.9 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +244 -248
- 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 +14 -14
- package/dist/api/DeviceApi.js +359 -359
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +387 -381
- package/dist/api/RouteApi.js +83 -77
- package/dist/api/UsageApi.js +63 -63
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +7 -0
- 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 +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 +20 -20
- package/dist/model/CreateMonitor.js +126 -127
- 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/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 +60 -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/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -57
- 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 -40
- 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/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 +11 -12
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- 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 -101
- 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/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +144 -0
- package/dist/model/SatellitePlan.js +39 -39
- 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 +37 -37
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +32 -32
- 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
|
|
50
|
-
*/
|
|
47
|
+
* Device service.
|
|
48
|
+
* @module api/DeviceApi
|
|
49
|
+
* @version 5.0.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
|
*/
|
|
@@ -188,8 +188,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Delete Device
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
192
|
-
* @param {String} deviceUID
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
|
+
* @param {String} deviceUID
|
|
193
193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
194
194
|
*/
|
|
195
195
|
}, {
|
|
@@ -205,23 +205,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
205
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
|
|
206
206
|
}
|
|
207
207
|
var pathParams = {
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
projectOrProductUID: projectOrProductUID,
|
|
209
|
+
deviceUID: deviceUID
|
|
210
210
|
};
|
|
211
211
|
var queryParams = {};
|
|
212
212
|
var headerParams = {};
|
|
213
213
|
var formParams = {};
|
|
214
|
-
var authNames = [
|
|
214
|
+
var authNames = ["personalAccessToken"];
|
|
215
215
|
var contentTypes = [];
|
|
216
|
-
var accepts = [
|
|
216
|
+
var accepts = ["application/json"];
|
|
217
217
|
var returnType = null;
|
|
218
|
-
return this.apiClient.callApi(
|
|
218
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Delete Device
|
|
223
|
-
* @param {String} projectOrProductUID
|
|
224
|
-
* @param {String} deviceUID
|
|
223
|
+
* @param {String} projectOrProductUID
|
|
224
|
+
* @param {String} deviceUID
|
|
225
225
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
226
226
|
*/
|
|
227
227
|
}, {
|
|
@@ -234,8 +234,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Delete environment variable of a device
|
|
237
|
-
* @param {String} projectOrProductUID
|
|
238
|
-
* @param {String} deviceUID
|
|
237
|
+
* @param {String} projectOrProductUID
|
|
238
|
+
* @param {String} deviceUID
|
|
239
239
|
* @param {String} key The environment variable key to delete.
|
|
240
240
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
241
241
|
*/
|
|
@@ -256,24 +256,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
256
256
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
257
257
|
}
|
|
258
258
|
var pathParams = {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
projectOrProductUID: projectOrProductUID,
|
|
260
|
+
deviceUID: deviceUID,
|
|
261
|
+
key: key
|
|
262
262
|
};
|
|
263
263
|
var queryParams = {};
|
|
264
264
|
var headerParams = {};
|
|
265
265
|
var formParams = {};
|
|
266
|
-
var authNames = [
|
|
266
|
+
var authNames = ["personalAccessToken"];
|
|
267
267
|
var contentTypes = [];
|
|
268
|
-
var accepts = [
|
|
268
|
+
var accepts = ["application/json"];
|
|
269
269
|
var returnType = _EnvironmentVariables["default"];
|
|
270
|
-
return this.apiClient.callApi(
|
|
270
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Delete environment variable of a device
|
|
275
|
-
* @param {String} projectOrProductUID
|
|
276
|
-
* @param {String} deviceUID
|
|
275
|
+
* @param {String} projectOrProductUID
|
|
276
|
+
* @param {String} deviceUID
|
|
277
277
|
* @param {String} key The environment variable key to delete.
|
|
278
278
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
279
279
|
*/
|
|
@@ -287,10 +287,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* 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
|
|
290
|
+
* @param {String} projectOrProductUID
|
|
291
|
+
* @param {String} deviceUID
|
|
292
|
+
* @param {String} notefileID
|
|
293
|
+
* @param {String} noteID
|
|
294
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
295
295
|
*/
|
|
296
296
|
}, {
|
|
@@ -314,27 +314,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
314
314
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
315
315
|
}
|
|
316
316
|
var pathParams = {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
317
|
+
projectOrProductUID: projectOrProductUID,
|
|
318
|
+
deviceUID: deviceUID,
|
|
319
|
+
notefileID: notefileID,
|
|
320
|
+
noteID: noteID
|
|
321
321
|
};
|
|
322
322
|
var queryParams = {};
|
|
323
323
|
var headerParams = {};
|
|
324
324
|
var formParams = {};
|
|
325
|
-
var authNames = [
|
|
325
|
+
var authNames = ["personalAccessToken"];
|
|
326
326
|
var contentTypes = [];
|
|
327
|
-
var accepts = [
|
|
327
|
+
var accepts = ["application/json"];
|
|
328
328
|
var returnType = null;
|
|
329
|
-
return this.apiClient.callApi(
|
|
329
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
333
|
* 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
|
|
334
|
+
* @param {String} projectOrProductUID
|
|
335
|
+
* @param {String} deviceUID
|
|
336
|
+
* @param {String} notefileID
|
|
337
|
+
* @param {String} noteID
|
|
338
338
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
339
339
|
*/
|
|
340
340
|
}, {
|
|
@@ -347,9 +347,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* Deletes Notefiles and the Notes they contain.
|
|
350
|
-
* @param {String} projectOrProductUID
|
|
351
|
-
* @param {String} deviceUID
|
|
352
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
350
|
+
* @param {String} projectOrProductUID
|
|
351
|
+
* @param {String} deviceUID
|
|
352
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
353
353
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
354
354
|
*/
|
|
355
355
|
}, {
|
|
@@ -369,24 +369,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
369
|
throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
|
|
370
370
|
}
|
|
371
371
|
var pathParams = {
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
projectOrProductUID: projectOrProductUID,
|
|
373
|
+
deviceUID: deviceUID
|
|
374
374
|
};
|
|
375
375
|
var queryParams = {};
|
|
376
376
|
var headerParams = {};
|
|
377
377
|
var formParams = {};
|
|
378
|
-
var authNames = [
|
|
379
|
-
var contentTypes = [
|
|
380
|
-
var accepts = [
|
|
378
|
+
var authNames = ["personalAccessToken"];
|
|
379
|
+
var contentTypes = ["application/json"];
|
|
380
|
+
var accepts = ["application/json"];
|
|
381
381
|
var returnType = null;
|
|
382
|
-
return this.apiClient.callApi(
|
|
382
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* Deletes Notefiles and the Notes they contain.
|
|
387
|
-
* @param {String} projectOrProductUID
|
|
388
|
-
* @param {String} deviceUID
|
|
389
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
387
|
+
* @param {String} projectOrProductUID
|
|
388
|
+
* @param {String} deviceUID
|
|
389
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
390
390
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
391
391
|
*/
|
|
392
392
|
}, {
|
|
@@ -399,8 +399,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
399
|
|
|
400
400
|
/**
|
|
401
401
|
* Disable Device
|
|
402
|
-
* @param {String} projectOrProductUID
|
|
403
|
-
* @param {String} deviceUID
|
|
402
|
+
* @param {String} projectOrProductUID
|
|
403
|
+
* @param {String} deviceUID
|
|
404
404
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
405
405
|
*/
|
|
406
406
|
}, {
|
|
@@ -416,23 +416,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
416
416
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
417
417
|
}
|
|
418
418
|
var pathParams = {
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
projectOrProductUID: projectOrProductUID,
|
|
420
|
+
deviceUID: deviceUID
|
|
421
421
|
};
|
|
422
422
|
var queryParams = {};
|
|
423
423
|
var headerParams = {};
|
|
424
424
|
var formParams = {};
|
|
425
|
-
var authNames = [
|
|
425
|
+
var authNames = ["personalAccessToken"];
|
|
426
426
|
var contentTypes = [];
|
|
427
|
-
var accepts = [
|
|
427
|
+
var accepts = ["application/json"];
|
|
428
428
|
var returnType = null;
|
|
429
|
-
return this.apiClient.callApi(
|
|
429
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* Disable Device
|
|
434
|
-
* @param {String} projectOrProductUID
|
|
435
|
-
* @param {String} deviceUID
|
|
434
|
+
* @param {String} projectOrProductUID
|
|
435
|
+
* @param {String} deviceUID
|
|
436
436
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
437
437
|
*/
|
|
438
438
|
}, {
|
|
@@ -445,8 +445,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* Disable Connectivity Assurance
|
|
448
|
-
* @param {String} projectOrProductUID
|
|
449
|
-
* @param {String} deviceUID
|
|
448
|
+
* @param {String} projectOrProductUID
|
|
449
|
+
* @param {String} deviceUID
|
|
450
450
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
451
451
|
*/
|
|
452
452
|
}, {
|
|
@@ -462,23 +462,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
462
462
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
463
463
|
}
|
|
464
464
|
var pathParams = {
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
projectOrProductUID: projectOrProductUID,
|
|
466
|
+
deviceUID: deviceUID
|
|
467
467
|
};
|
|
468
468
|
var queryParams = {};
|
|
469
469
|
var headerParams = {};
|
|
470
470
|
var formParams = {};
|
|
471
|
-
var authNames = [
|
|
471
|
+
var authNames = ["personalAccessToken"];
|
|
472
472
|
var contentTypes = [];
|
|
473
|
-
var accepts = [
|
|
473
|
+
var accepts = ["application/json"];
|
|
474
474
|
var returnType = null;
|
|
475
|
-
return this.apiClient.callApi(
|
|
475
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
/**
|
|
479
479
|
* Disable Connectivity Assurance
|
|
480
|
-
* @param {String} projectOrProductUID
|
|
481
|
-
* @param {String} deviceUID
|
|
480
|
+
* @param {String} projectOrProductUID
|
|
481
|
+
* @param {String} deviceUID
|
|
482
482
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
483
483
|
*/
|
|
484
484
|
}, {
|
|
@@ -491,8 +491,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Enable Device
|
|
494
|
-
* @param {String} projectOrProductUID
|
|
495
|
-
* @param {String} deviceUID
|
|
494
|
+
* @param {String} projectOrProductUID
|
|
495
|
+
* @param {String} deviceUID
|
|
496
496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
497
497
|
*/
|
|
498
498
|
}, {
|
|
@@ -508,23 +508,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
508
508
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
509
509
|
}
|
|
510
510
|
var pathParams = {
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
projectOrProductUID: projectOrProductUID,
|
|
512
|
+
deviceUID: deviceUID
|
|
513
513
|
};
|
|
514
514
|
var queryParams = {};
|
|
515
515
|
var headerParams = {};
|
|
516
516
|
var formParams = {};
|
|
517
|
-
var authNames = [
|
|
517
|
+
var authNames = ["personalAccessToken"];
|
|
518
518
|
var contentTypes = [];
|
|
519
|
-
var accepts = [
|
|
519
|
+
var accepts = ["application/json"];
|
|
520
520
|
var returnType = null;
|
|
521
|
-
return this.apiClient.callApi(
|
|
521
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Enable Device
|
|
526
|
-
* @param {String} projectOrProductUID
|
|
527
|
-
* @param {String} deviceUID
|
|
526
|
+
* @param {String} projectOrProductUID
|
|
527
|
+
* @param {String} deviceUID
|
|
528
528
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
529
529
|
*/
|
|
530
530
|
}, {
|
|
@@ -537,8 +537,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* Enable Connectivity Assurance
|
|
540
|
-
* @param {String} projectOrProductUID
|
|
541
|
-
* @param {String} deviceUID
|
|
540
|
+
* @param {String} projectOrProductUID
|
|
541
|
+
* @param {String} deviceUID
|
|
542
542
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
543
543
|
*/
|
|
544
544
|
}, {
|
|
@@ -554,23 +554,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
554
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
555
555
|
}
|
|
556
556
|
var pathParams = {
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
projectOrProductUID: projectOrProductUID,
|
|
558
|
+
deviceUID: deviceUID
|
|
559
559
|
};
|
|
560
560
|
var queryParams = {};
|
|
561
561
|
var headerParams = {};
|
|
562
562
|
var formParams = {};
|
|
563
|
-
var authNames = [
|
|
563
|
+
var authNames = ["personalAccessToken"];
|
|
564
564
|
var contentTypes = [];
|
|
565
|
-
var accepts = [
|
|
565
|
+
var accepts = ["application/json"];
|
|
566
566
|
var returnType = null;
|
|
567
|
-
return this.apiClient.callApi(
|
|
567
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Enable Connectivity Assurance
|
|
572
|
-
* @param {String} projectOrProductUID
|
|
573
|
-
* @param {String} deviceUID
|
|
572
|
+
* @param {String} projectOrProductUID
|
|
573
|
+
* @param {String} deviceUID
|
|
574
574
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
575
575
|
*/
|
|
576
576
|
}, {
|
|
@@ -583,10 +583,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* Get a note from a .db or .qi notefile
|
|
586
|
-
* @param {String} projectOrProductUID
|
|
587
|
-
* @param {String} deviceUID
|
|
588
|
-
* @param {String} notefileID
|
|
589
|
-
* @param {String} noteID
|
|
586
|
+
* @param {String} projectOrProductUID
|
|
587
|
+
* @param {String} deviceUID
|
|
588
|
+
* @param {String} notefileID
|
|
589
|
+
* @param {String} noteID
|
|
590
590
|
* @param {Object} opts Optional parameters
|
|
591
591
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
592
592
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -614,30 +614,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
614
614
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
|
|
615
615
|
}
|
|
616
616
|
var pathParams = {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
projectOrProductUID: projectOrProductUID,
|
|
618
|
+
deviceUID: deviceUID,
|
|
619
|
+
notefileID: notefileID,
|
|
620
|
+
noteID: noteID
|
|
621
621
|
};
|
|
622
622
|
var queryParams = {
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
"delete": opts["_delete"],
|
|
624
|
+
deleted: opts["deleted"]
|
|
625
625
|
};
|
|
626
626
|
var headerParams = {};
|
|
627
627
|
var formParams = {};
|
|
628
|
-
var authNames = [
|
|
628
|
+
var authNames = ["personalAccessToken"];
|
|
629
629
|
var contentTypes = [];
|
|
630
|
-
var accepts = [
|
|
630
|
+
var accepts = ["application/json"];
|
|
631
631
|
var returnType = _GetDbNote200Response["default"];
|
|
632
|
-
return this.apiClient.callApi(
|
|
632
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
/**
|
|
636
636
|
* Get a note from a .db or .qi notefile
|
|
637
|
-
* @param {String} projectOrProductUID
|
|
638
|
-
* @param {String} deviceUID
|
|
639
|
-
* @param {String} notefileID
|
|
640
|
-
* @param {String} noteID
|
|
637
|
+
* @param {String} projectOrProductUID
|
|
638
|
+
* @param {String} deviceUID
|
|
639
|
+
* @param {String} notefileID
|
|
640
|
+
* @param {String} noteID
|
|
641
641
|
* @param {Object} opts Optional parameters
|
|
642
642
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
643
643
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -653,8 +653,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
655
|
* Get Device
|
|
656
|
-
* @param {String} projectOrProductUID
|
|
657
|
-
* @param {String} deviceUID
|
|
656
|
+
* @param {String} projectOrProductUID
|
|
657
|
+
* @param {String} deviceUID
|
|
658
658
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
659
659
|
*/
|
|
660
660
|
}, {
|
|
@@ -670,23 +670,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
670
670
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
671
671
|
}
|
|
672
672
|
var pathParams = {
|
|
673
|
-
|
|
674
|
-
|
|
673
|
+
projectOrProductUID: projectOrProductUID,
|
|
674
|
+
deviceUID: deviceUID
|
|
675
675
|
};
|
|
676
676
|
var queryParams = {};
|
|
677
677
|
var headerParams = {};
|
|
678
678
|
var formParams = {};
|
|
679
|
-
var authNames = [
|
|
679
|
+
var authNames = ["personalAccessToken"];
|
|
680
680
|
var contentTypes = [];
|
|
681
|
-
var accepts = [
|
|
681
|
+
var accepts = ["application/json"];
|
|
682
682
|
var returnType = _Device["default"];
|
|
683
|
-
return this.apiClient.callApi(
|
|
683
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
687
|
* Get Device
|
|
688
|
-
* @param {String} projectOrProductUID
|
|
689
|
-
* @param {String} deviceUID
|
|
688
|
+
* @param {String} projectOrProductUID
|
|
689
|
+
* @param {String} deviceUID
|
|
690
690
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
691
691
|
*/
|
|
692
692
|
}, {
|
|
@@ -699,8 +699,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
701
|
* Get environment variable hierarchy for a device
|
|
702
|
-
* @param {String} projectOrProductUID
|
|
703
|
-
* @param {String} deviceUID
|
|
702
|
+
* @param {String} projectOrProductUID
|
|
703
|
+
* @param {String} deviceUID
|
|
704
704
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
705
705
|
*/
|
|
706
706
|
}, {
|
|
@@ -716,23 +716,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
716
716
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
717
717
|
}
|
|
718
718
|
var pathParams = {
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
projectOrProductUID: projectOrProductUID,
|
|
720
|
+
deviceUID: deviceUID
|
|
721
721
|
};
|
|
722
722
|
var queryParams = {};
|
|
723
723
|
var headerParams = {};
|
|
724
724
|
var formParams = {};
|
|
725
|
-
var authNames = [
|
|
725
|
+
var authNames = ["personalAccessToken"];
|
|
726
726
|
var contentTypes = [];
|
|
727
|
-
var accepts = [
|
|
727
|
+
var accepts = ["application/json"];
|
|
728
728
|
var returnType = _EnvTreeJsonNode["default"];
|
|
729
|
-
return this.apiClient.callApi(
|
|
729
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
730
730
|
}
|
|
731
731
|
|
|
732
732
|
/**
|
|
733
733
|
* Get environment variable hierarchy for a device
|
|
734
|
-
* @param {String} projectOrProductUID
|
|
735
|
-
* @param {String} deviceUID
|
|
734
|
+
* @param {String} projectOrProductUID
|
|
735
|
+
* @param {String} deviceUID
|
|
736
736
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
737
737
|
*/
|
|
738
738
|
}, {
|
|
@@ -745,8 +745,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
745
745
|
|
|
746
746
|
/**
|
|
747
747
|
* Get environment variables of a device
|
|
748
|
-
* @param {String} projectOrProductUID
|
|
749
|
-
* @param {String} deviceUID
|
|
748
|
+
* @param {String} projectOrProductUID
|
|
749
|
+
* @param {String} deviceUID
|
|
750
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
751
751
|
*/
|
|
752
752
|
}, {
|
|
@@ -762,23 +762,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
762
762
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
763
763
|
}
|
|
764
764
|
var pathParams = {
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
projectOrProductUID: projectOrProductUID,
|
|
766
|
+
deviceUID: deviceUID
|
|
767
767
|
};
|
|
768
768
|
var queryParams = {};
|
|
769
769
|
var headerParams = {};
|
|
770
770
|
var formParams = {};
|
|
771
|
-
var authNames = [
|
|
771
|
+
var authNames = ["personalAccessToken"];
|
|
772
772
|
var contentTypes = [];
|
|
773
|
-
var accepts = [
|
|
773
|
+
var accepts = ["application/json"];
|
|
774
774
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
775
|
-
return this.apiClient.callApi(
|
|
775
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
/**
|
|
779
779
|
* Get environment variables of a device
|
|
780
|
-
* @param {String} projectOrProductUID
|
|
781
|
-
* @param {String} deviceUID
|
|
780
|
+
* @param {String} projectOrProductUID
|
|
781
|
+
* @param {String} deviceUID
|
|
782
782
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
783
783
|
*/
|
|
784
784
|
}, {
|
|
@@ -791,8 +791,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
791
791
|
|
|
792
792
|
/**
|
|
793
793
|
* Get environment variables of a device with device pin authorization
|
|
794
|
-
* @param {String} productUID
|
|
795
|
-
* @param {String} deviceUID
|
|
794
|
+
* @param {String} productUID
|
|
795
|
+
* @param {String} deviceUID
|
|
796
796
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
797
797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
798
798
|
*/
|
|
@@ -813,25 +813,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
813
813
|
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
|
|
814
814
|
}
|
|
815
815
|
var pathParams = {
|
|
816
|
-
|
|
817
|
-
|
|
816
|
+
productUID: productUID,
|
|
817
|
+
deviceUID: deviceUID
|
|
818
818
|
};
|
|
819
819
|
var queryParams = {};
|
|
820
820
|
var headerParams = {
|
|
821
|
-
|
|
821
|
+
"X-Auth-Token": xAuthToken
|
|
822
822
|
};
|
|
823
823
|
var formParams = {};
|
|
824
824
|
var authNames = [];
|
|
825
825
|
var contentTypes = [];
|
|
826
|
-
var accepts = [
|
|
826
|
+
var accepts = ["application/json"];
|
|
827
827
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
828
|
-
return this.apiClient.callApi(
|
|
828
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
832
|
* Get environment variables of a device with device pin authorization
|
|
833
|
-
* @param {String} productUID
|
|
834
|
-
* @param {String} deviceUID
|
|
833
|
+
* @param {String} productUID
|
|
834
|
+
* @param {String} deviceUID
|
|
835
835
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
836
836
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
837
837
|
*/
|
|
@@ -845,8 +845,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
845
845
|
|
|
846
846
|
/**
|
|
847
847
|
* Get Device Health Log
|
|
848
|
-
* @param {String} projectOrProductUID
|
|
849
|
-
* @param {String} deviceUID
|
|
848
|
+
* @param {String} projectOrProductUID
|
|
849
|
+
* @param {String} deviceUID
|
|
850
850
|
* @param {Object} opts Optional parameters
|
|
851
851
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
852
852
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -867,27 +867,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
867
867
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
868
868
|
}
|
|
869
869
|
var pathParams = {
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
projectOrProductUID: projectOrProductUID,
|
|
871
|
+
deviceUID: deviceUID
|
|
872
872
|
};
|
|
873
873
|
var queryParams = {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
874
|
+
startDate: opts["startDate"],
|
|
875
|
+
endDate: opts["endDate"],
|
|
876
|
+
log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
|
|
877
877
|
};
|
|
878
878
|
var headerParams = {};
|
|
879
879
|
var formParams = {};
|
|
880
|
-
var authNames = [
|
|
880
|
+
var authNames = ["personalAccessToken"];
|
|
881
881
|
var contentTypes = [];
|
|
882
|
-
var accepts = [
|
|
882
|
+
var accepts = ["application/json"];
|
|
883
883
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
884
|
-
return this.apiClient.callApi(
|
|
884
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
885
885
|
}
|
|
886
886
|
|
|
887
887
|
/**
|
|
888
888
|
* Get Device Health Log
|
|
889
|
-
* @param {String} projectOrProductUID
|
|
890
|
-
* @param {String} deviceUID
|
|
889
|
+
* @param {String} projectOrProductUID
|
|
890
|
+
* @param {String} deviceUID
|
|
891
891
|
* @param {Object} opts Optional parameters
|
|
892
892
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
893
893
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -904,8 +904,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
904
904
|
|
|
905
905
|
/**
|
|
906
906
|
* Get Device Latest Events
|
|
907
|
-
* @param {String} projectOrProductUID
|
|
908
|
-
* @param {String} deviceUID
|
|
907
|
+
* @param {String} projectOrProductUID
|
|
908
|
+
* @param {String} deviceUID
|
|
909
909
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
910
910
|
*/
|
|
911
911
|
}, {
|
|
@@ -921,23 +921,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
921
921
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
|
|
922
922
|
}
|
|
923
923
|
var pathParams = {
|
|
924
|
-
|
|
925
|
-
|
|
924
|
+
projectOrProductUID: projectOrProductUID,
|
|
925
|
+
deviceUID: deviceUID
|
|
926
926
|
};
|
|
927
927
|
var queryParams = {};
|
|
928
928
|
var headerParams = {};
|
|
929
929
|
var formParams = {};
|
|
930
|
-
var authNames = [
|
|
930
|
+
var authNames = ["personalAccessToken"];
|
|
931
931
|
var contentTypes = [];
|
|
932
|
-
var accepts = [
|
|
932
|
+
var accepts = ["application/json"];
|
|
933
933
|
var returnType = _GetDeviceLatestEvents200Response["default"];
|
|
934
|
-
return this.apiClient.callApi(
|
|
934
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
/**
|
|
938
938
|
* Get Device Latest Events
|
|
939
|
-
* @param {String} projectOrProductUID
|
|
940
|
-
* @param {String} deviceUID
|
|
939
|
+
* @param {String} projectOrProductUID
|
|
940
|
+
* @param {String} deviceUID
|
|
941
941
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
942
942
|
*/
|
|
943
943
|
}, {
|
|
@@ -950,8 +950,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
953
|
-
* @param {String} projectOrProductUID
|
|
954
|
-
* @param {String} deviceUID
|
|
953
|
+
* @param {String} projectOrProductUID
|
|
954
|
+
* @param {String} deviceUID
|
|
955
955
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
956
956
|
*/
|
|
957
957
|
}, {
|
|
@@ -967,23 +967,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
967
967
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
968
968
|
}
|
|
969
969
|
var pathParams = {
|
|
970
|
-
|
|
971
|
-
|
|
970
|
+
projectOrProductUID: projectOrProductUID,
|
|
971
|
+
deviceUID: deviceUID
|
|
972
972
|
};
|
|
973
973
|
var queryParams = {};
|
|
974
974
|
var headerParams = {};
|
|
975
975
|
var formParams = {};
|
|
976
|
-
var authNames = [
|
|
976
|
+
var authNames = ["personalAccessToken"];
|
|
977
977
|
var contentTypes = [];
|
|
978
|
-
var accepts = [
|
|
978
|
+
var accepts = ["application/json"];
|
|
979
979
|
var returnType = _GetDevicePlans200Response["default"];
|
|
980
|
-
return this.apiClient.callApi(
|
|
980
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
981
981
|
}
|
|
982
982
|
|
|
983
983
|
/**
|
|
984
984
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
985
|
-
* @param {String} projectOrProductUID
|
|
986
|
-
* @param {String} deviceUID
|
|
985
|
+
* @param {String} projectOrProductUID
|
|
986
|
+
* @param {String} deviceUID
|
|
987
987
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
988
988
|
*/
|
|
989
989
|
}, {
|
|
@@ -996,8 +996,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
996
996
|
|
|
997
997
|
/**
|
|
998
998
|
* Get Device Public Key
|
|
999
|
-
* @param {String} projectOrProductUID
|
|
1000
|
-
* @param {String} deviceUID
|
|
999
|
+
* @param {String} projectOrProductUID
|
|
1000
|
+
* @param {String} deviceUID
|
|
1001
1001
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
1002
1002
|
*/
|
|
1003
1003
|
}, {
|
|
@@ -1013,23 +1013,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1013
1013
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
1014
1014
|
}
|
|
1015
1015
|
var pathParams = {
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
projectOrProductUID: projectOrProductUID,
|
|
1017
|
+
deviceUID: deviceUID
|
|
1018
1018
|
};
|
|
1019
1019
|
var queryParams = {};
|
|
1020
1020
|
var headerParams = {};
|
|
1021
1021
|
var formParams = {};
|
|
1022
|
-
var authNames = [
|
|
1022
|
+
var authNames = ["personalAccessToken"];
|
|
1023
1023
|
var contentTypes = [];
|
|
1024
|
-
var accepts = [
|
|
1024
|
+
var accepts = ["application/json"];
|
|
1025
1025
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
1026
|
-
return this.apiClient.callApi(
|
|
1026
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Get Device Public Key
|
|
1031
|
-
* @param {String} projectOrProductUID
|
|
1032
|
-
* @param {String} deviceUID
|
|
1031
|
+
* @param {String} projectOrProductUID
|
|
1032
|
+
* @param {String} deviceUID
|
|
1033
1033
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
1034
1034
|
*/
|
|
1035
1035
|
}, {
|
|
@@ -1042,7 +1042,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1042
1042
|
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Get Device Public Keys of a Project
|
|
1045
|
-
* @param {String} projectOrProductUID
|
|
1045
|
+
* @param {String} projectOrProductUID
|
|
1046
1046
|
* @param {Object} opts Optional parameters
|
|
1047
1047
|
* @param {Number} opts.pageSize (default to 50)
|
|
1048
1048
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1058,24 +1058,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1058
1058
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
|
|
1059
1059
|
}
|
|
1060
1060
|
var pathParams = {
|
|
1061
|
-
|
|
1061
|
+
projectOrProductUID: projectOrProductUID
|
|
1062
1062
|
};
|
|
1063
1063
|
var queryParams = {
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
pageSize: opts["pageSize"],
|
|
1065
|
+
pageNum: opts["pageNum"]
|
|
1066
1066
|
};
|
|
1067
1067
|
var headerParams = {};
|
|
1068
1068
|
var formParams = {};
|
|
1069
|
-
var authNames = [
|
|
1069
|
+
var authNames = ["personalAccessToken"];
|
|
1070
1070
|
var contentTypes = [];
|
|
1071
|
-
var accepts = [
|
|
1071
|
+
var accepts = ["application/json"];
|
|
1072
1072
|
var returnType = _GetDevicePublicKeys200Response["default"];
|
|
1073
|
-
return this.apiClient.callApi(
|
|
1073
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Get Device Public Keys of a Project
|
|
1078
|
-
* @param {String} projectOrProductUID
|
|
1078
|
+
* @param {String} projectOrProductUID
|
|
1079
1079
|
* @param {Object} opts Optional parameters
|
|
1080
1080
|
* @param {Number} opts.pageSize (default to 50)
|
|
1081
1081
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1091,8 +1091,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1091
1091
|
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Get Device Sessions
|
|
1094
|
-
* @param {String} projectOrProductUID
|
|
1095
|
-
* @param {String} deviceUID
|
|
1094
|
+
* @param {String} projectOrProductUID
|
|
1095
|
+
* @param {String} deviceUID
|
|
1096
1096
|
* @param {Object} opts Optional parameters
|
|
1097
1097
|
* @param {Number} opts.pageSize (default to 50)
|
|
1098
1098
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1114,28 +1114,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1114
1114
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
1115
1115
|
}
|
|
1116
1116
|
var pathParams = {
|
|
1117
|
-
|
|
1118
|
-
|
|
1117
|
+
projectOrProductUID: projectOrProductUID,
|
|
1118
|
+
deviceUID: deviceUID
|
|
1119
1119
|
};
|
|
1120
1120
|
var queryParams = {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1121
|
+
pageSize: opts["pageSize"],
|
|
1122
|
+
pageNum: opts["pageNum"],
|
|
1123
|
+
startDate: opts["startDate"],
|
|
1124
|
+
endDate: opts["endDate"]
|
|
1125
1125
|
};
|
|
1126
1126
|
var headerParams = {};
|
|
1127
1127
|
var formParams = {};
|
|
1128
|
-
var authNames = [
|
|
1128
|
+
var authNames = ["personalAccessToken"];
|
|
1129
1129
|
var contentTypes = [];
|
|
1130
|
-
var accepts = [
|
|
1130
|
+
var accepts = ["application/json"];
|
|
1131
1131
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
1132
|
-
return this.apiClient.callApi(
|
|
1132
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
1135
|
/**
|
|
1136
1136
|
* Get Device Sessions
|
|
1137
|
-
* @param {String} projectOrProductUID
|
|
1138
|
-
* @param {String} deviceUID
|
|
1137
|
+
* @param {String} projectOrProductUID
|
|
1138
|
+
* @param {String} deviceUID
|
|
1139
1139
|
* @param {Object} opts Optional parameters
|
|
1140
1140
|
* @param {Number} opts.pageSize (default to 50)
|
|
1141
1141
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1153,18 +1153,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1153
1153
|
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Get Devices of a Project
|
|
1156
|
-
* @param {String} projectOrProductUID
|
|
1156
|
+
* @param {String} projectOrProductUID
|
|
1157
1157
|
* @param {Object} opts Optional parameters
|
|
1158
1158
|
* @param {Number} opts.pageSize (default to 50)
|
|
1159
1159
|
* @param {Number} opts.pageNum (default to 1)
|
|
1160
1160
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1161
1161
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1162
1162
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1163
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1163
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1164
1164
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1165
1165
|
* @param {Array.<String>} opts.location Location filter
|
|
1166
1166
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1167
|
-
* @param {Array.<String>} opts.productUID
|
|
1167
|
+
* @param {Array.<String>} opts.productUID
|
|
1168
1168
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1169
1169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1170
1170
|
*/
|
|
@@ -1178,44 +1178,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1178
1178
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
|
|
1179
1179
|
}
|
|
1180
1180
|
var pathParams = {
|
|
1181
|
-
|
|
1181
|
+
projectOrProductUID: projectOrProductUID
|
|
1182
1182
|
};
|
|
1183
1183
|
var queryParams = {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1184
|
+
pageSize: opts["pageSize"],
|
|
1185
|
+
pageNum: opts["pageNum"],
|
|
1186
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1187
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1188
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1189
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
1190
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1191
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1192
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1193
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1194
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1195
1195
|
};
|
|
1196
1196
|
var headerParams = {};
|
|
1197
1197
|
var formParams = {};
|
|
1198
|
-
var authNames = [
|
|
1198
|
+
var authNames = ["personalAccessToken"];
|
|
1199
1199
|
var contentTypes = [];
|
|
1200
|
-
var accepts = [
|
|
1200
|
+
var accepts = ["application/json"];
|
|
1201
1201
|
var returnType = _GetDevices200Response["default"];
|
|
1202
|
-
return this.apiClient.callApi(
|
|
1202
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Get Devices of a Project
|
|
1207
|
-
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} projectOrProductUID
|
|
1208
1208
|
* @param {Object} opts Optional parameters
|
|
1209
1209
|
* @param {Number} opts.pageSize (default to 50)
|
|
1210
1210
|
* @param {Number} opts.pageNum (default to 1)
|
|
1211
1211
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1212
1212
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1213
1213
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1214
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1214
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1215
1215
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1216
1216
|
* @param {Array.<String>} opts.location Location filter
|
|
1217
1217
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1218
|
-
* @param {Array.<String>} opts.productUID
|
|
1218
|
+
* @param {Array.<String>} opts.productUID
|
|
1219
1219
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1220
1220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1221
1221
|
*/
|
|
@@ -1229,8 +1229,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1229
1229
|
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Get Devices of a Fleet within a Project
|
|
1232
|
-
* @param {String} projectOrProductUID
|
|
1233
|
-
* @param {String} fleetUID
|
|
1232
|
+
* @param {String} projectOrProductUID
|
|
1233
|
+
* @param {String} fleetUID
|
|
1234
1234
|
* @param {Object} opts Optional parameters
|
|
1235
1235
|
* @param {Number} opts.pageSize (default to 50)
|
|
1236
1236
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1240,7 +1240,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1240
1240
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1241
1241
|
* @param {Array.<String>} opts.location Location filter
|
|
1242
1242
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1243
|
-
* @param {Array.<String>} opts.productUID
|
|
1243
|
+
* @param {Array.<String>} opts.productUID
|
|
1244
1244
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1245
1245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1246
1246
|
*/
|
|
@@ -1258,34 +1258,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1258
1258
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
|
|
1259
1259
|
}
|
|
1260
1260
|
var pathParams = {
|
|
1261
|
-
|
|
1262
|
-
|
|
1261
|
+
projectOrProductUID: projectOrProductUID,
|
|
1262
|
+
fleetUID: fleetUID
|
|
1263
1263
|
};
|
|
1264
1264
|
var queryParams = {
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1265
|
+
pageSize: opts["pageSize"],
|
|
1266
|
+
pageNum: opts["pageNum"],
|
|
1267
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1268
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1269
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1270
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1271
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1272
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1273
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1274
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1275
1275
|
};
|
|
1276
1276
|
var headerParams = {};
|
|
1277
1277
|
var formParams = {};
|
|
1278
|
-
var authNames = [
|
|
1278
|
+
var authNames = ["personalAccessToken"];
|
|
1279
1279
|
var contentTypes = [];
|
|
1280
|
-
var accepts = [
|
|
1280
|
+
var accepts = ["application/json"];
|
|
1281
1281
|
var returnType = _GetDevices200Response["default"];
|
|
1282
|
-
return this.apiClient.callApi(
|
|
1282
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Get Devices of a Fleet within a Project
|
|
1287
|
-
* @param {String} projectOrProductUID
|
|
1288
|
-
* @param {String} fleetUID
|
|
1287
|
+
* @param {String} projectOrProductUID
|
|
1288
|
+
* @param {String} fleetUID
|
|
1289
1289
|
* @param {Object} opts Optional parameters
|
|
1290
1290
|
* @param {Number} opts.pageSize (default to 50)
|
|
1291
1291
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1295,7 +1295,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1295
1295
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1296
1296
|
* @param {Array.<String>} opts.location Location filter
|
|
1297
1297
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1298
|
-
* @param {Array.<String>} opts.productUID
|
|
1298
|
+
* @param {Array.<String>} opts.productUID
|
|
1299
1299
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1300
1300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1301
1301
|
*/
|
|
@@ -1309,9 +1309,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1309
1309
|
|
|
1310
1310
|
/**
|
|
1311
1311
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1312
|
-
* @param {String} projectOrProductUID
|
|
1313
|
-
* @param {String} deviceUID
|
|
1314
|
-
* @param {String} notefileID
|
|
1312
|
+
* @param {String} projectOrProductUID
|
|
1313
|
+
* @param {String} deviceUID
|
|
1314
|
+
* @param {String} notefileID
|
|
1315
1315
|
* @param {Object} opts Optional parameters
|
|
1316
1316
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1317
1317
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1336,29 +1336,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1336
1336
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
|
|
1337
1337
|
}
|
|
1338
1338
|
var pathParams = {
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1339
|
+
projectOrProductUID: projectOrProductUID,
|
|
1340
|
+
deviceUID: deviceUID,
|
|
1341
|
+
notefileID: notefileID
|
|
1342
1342
|
};
|
|
1343
1343
|
var queryParams = {
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1344
|
+
max: opts["max"],
|
|
1345
|
+
deleted: opts["deleted"],
|
|
1346
|
+
"delete": opts["_delete"]
|
|
1347
1347
|
};
|
|
1348
1348
|
var headerParams = {};
|
|
1349
1349
|
var formParams = {};
|
|
1350
|
-
var authNames = [
|
|
1350
|
+
var authNames = ["personalAccessToken"];
|
|
1351
1351
|
var contentTypes = [];
|
|
1352
|
-
var accepts = [
|
|
1352
|
+
var accepts = ["application/json"];
|
|
1353
1353
|
var returnType = _GetNotefile200Response["default"];
|
|
1354
|
-
return this.apiClient.callApi(
|
|
1354
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
/**
|
|
1358
1358
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1359
|
-
* @param {String} projectOrProductUID
|
|
1360
|
-
* @param {String} deviceUID
|
|
1361
|
-
* @param {String} notefileID
|
|
1359
|
+
* @param {String} projectOrProductUID
|
|
1360
|
+
* @param {String} deviceUID
|
|
1361
|
+
* @param {String} notefileID
|
|
1362
1362
|
* @param {Object} opts Optional parameters
|
|
1363
1363
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1364
1364
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1375,8 +1375,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1375
1375
|
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Lists .qi and .db files for the device
|
|
1378
|
-
* @param {String} projectOrProductUID
|
|
1379
|
-
* @param {String} deviceUID
|
|
1378
|
+
* @param {String} projectOrProductUID
|
|
1379
|
+
* @param {String} deviceUID
|
|
1380
1380
|
* @param {Object} opts Optional parameters
|
|
1381
1381
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1382
1382
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1396,26 +1396,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1396
1396
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
|
|
1397
1397
|
}
|
|
1398
1398
|
var pathParams = {
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
projectOrProductUID: projectOrProductUID,
|
|
1400
|
+
deviceUID: deviceUID
|
|
1401
1401
|
};
|
|
1402
1402
|
var queryParams = {
|
|
1403
|
-
|
|
1404
|
-
|
|
1403
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi"),
|
|
1404
|
+
pending: opts["pending"]
|
|
1405
1405
|
};
|
|
1406
1406
|
var headerParams = {};
|
|
1407
1407
|
var formParams = {};
|
|
1408
|
-
var authNames = [
|
|
1408
|
+
var authNames = ["personalAccessToken"];
|
|
1409
1409
|
var contentTypes = [];
|
|
1410
|
-
var accepts = [
|
|
1410
|
+
var accepts = ["application/json"];
|
|
1411
1411
|
var returnType = [_Notefile["default"]];
|
|
1412
|
-
return this.apiClient.callApi(
|
|
1412
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1413
1413
|
}
|
|
1414
1414
|
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Lists .qi and .db files for the device
|
|
1417
|
-
* @param {String} projectOrProductUID
|
|
1418
|
-
* @param {String} deviceUID
|
|
1417
|
+
* @param {String} projectOrProductUID
|
|
1418
|
+
* @param {String} deviceUID
|
|
1419
1419
|
* @param {Object} opts Optional parameters
|
|
1420
1420
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1421
1421
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1431,8 +1431,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Provision Device for a Project
|
|
1434
|
-
* @param {String} projectOrProductUID
|
|
1435
|
-
* @param {String} deviceUID
|
|
1434
|
+
* @param {String} projectOrProductUID
|
|
1435
|
+
* @param {String} deviceUID
|
|
1436
1436
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1437
1437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1438
1438
|
*/
|
|
@@ -1453,23 +1453,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1453
1453
|
throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
|
|
1454
1454
|
}
|
|
1455
1455
|
var pathParams = {
|
|
1456
|
-
|
|
1457
|
-
|
|
1456
|
+
projectOrProductUID: projectOrProductUID,
|
|
1457
|
+
deviceUID: deviceUID
|
|
1458
1458
|
};
|
|
1459
1459
|
var queryParams = {};
|
|
1460
1460
|
var headerParams = {};
|
|
1461
1461
|
var formParams = {};
|
|
1462
|
-
var authNames = [
|
|
1463
|
-
var contentTypes = [
|
|
1464
|
-
var accepts = [
|
|
1462
|
+
var authNames = ["personalAccessToken"];
|
|
1463
|
+
var contentTypes = ["application/json"];
|
|
1464
|
+
var accepts = ["application/json"];
|
|
1465
1465
|
var returnType = Object;
|
|
1466
|
-
return this.apiClient.callApi(
|
|
1466
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Provision Device for a Project
|
|
1471
|
-
* @param {String} projectOrProductUID
|
|
1472
|
-
* @param {String} deviceUID
|
|
1471
|
+
* @param {String} projectOrProductUID
|
|
1472
|
+
* @param {String} deviceUID
|
|
1473
1473
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1474
1474
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1475
1475
|
*/
|
|
@@ -1483,8 +1483,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1483
1483
|
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Set environment variables of a device
|
|
1486
|
-
* @param {String} projectOrProductUID
|
|
1487
|
-
* @param {String} deviceUID
|
|
1486
|
+
* @param {String} projectOrProductUID
|
|
1487
|
+
* @param {String} deviceUID
|
|
1488
1488
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1489
1489
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1490
1490
|
*/
|
|
@@ -1505,23 +1505,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1505
1505
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
|
|
1506
1506
|
}
|
|
1507
1507
|
var pathParams = {
|
|
1508
|
-
|
|
1509
|
-
|
|
1508
|
+
projectOrProductUID: projectOrProductUID,
|
|
1509
|
+
deviceUID: deviceUID
|
|
1510
1510
|
};
|
|
1511
1511
|
var queryParams = {};
|
|
1512
1512
|
var headerParams = {};
|
|
1513
1513
|
var formParams = {};
|
|
1514
|
-
var authNames = [
|
|
1515
|
-
var contentTypes = [
|
|
1516
|
-
var accepts = [
|
|
1514
|
+
var authNames = ["personalAccessToken"];
|
|
1515
|
+
var contentTypes = ["application/json"];
|
|
1516
|
+
var accepts = ["application/json"];
|
|
1517
1517
|
var returnType = _EnvironmentVariables["default"];
|
|
1518
|
-
return this.apiClient.callApi(
|
|
1518
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Set environment variables of a device
|
|
1523
|
-
* @param {String} projectOrProductUID
|
|
1524
|
-
* @param {String} deviceUID
|
|
1523
|
+
* @param {String} projectOrProductUID
|
|
1524
|
+
* @param {String} deviceUID
|
|
1525
1525
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1526
1526
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1527
1527
|
*/
|
|
@@ -1535,8 +1535,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1535
1535
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Set environment variables of a device with device pin authorization
|
|
1538
|
-
* @param {String} productUID
|
|
1539
|
-
* @param {String} deviceUID
|
|
1538
|
+
* @param {String} productUID
|
|
1539
|
+
* @param {String} deviceUID
|
|
1540
1540
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1541
1541
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1542
1542
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1562,25 +1562,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1562
1562
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
1563
1563
|
}
|
|
1564
1564
|
var pathParams = {
|
|
1565
|
-
|
|
1566
|
-
|
|
1565
|
+
productUID: productUID,
|
|
1566
|
+
deviceUID: deviceUID
|
|
1567
1567
|
};
|
|
1568
1568
|
var queryParams = {};
|
|
1569
1569
|
var headerParams = {
|
|
1570
|
-
|
|
1570
|
+
"X-Auth-Token": xAuthToken
|
|
1571
1571
|
};
|
|
1572
1572
|
var formParams = {};
|
|
1573
1573
|
var authNames = [];
|
|
1574
|
-
var contentTypes = [
|
|
1575
|
-
var accepts = [
|
|
1574
|
+
var contentTypes = ["application/json"];
|
|
1575
|
+
var accepts = ["application/json"];
|
|
1576
1576
|
var returnType = _EnvironmentVariables["default"];
|
|
1577
|
-
return this.apiClient.callApi(
|
|
1577
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Set environment variables of a device with device pin authorization
|
|
1582
|
-
* @param {String} productUID
|
|
1583
|
-
* @param {String} deviceUID
|
|
1582
|
+
* @param {String} productUID
|
|
1583
|
+
* @param {String} deviceUID
|
|
1584
1584
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1585
1585
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1586
1586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1595,8 +1595,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1595
1595
|
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Send a signal from Notehub to a Notecard.
|
|
1598
|
-
* @param {String} projectOrProductUID
|
|
1599
|
-
* @param {String} deviceUID
|
|
1598
|
+
* @param {String} projectOrProductUID
|
|
1599
|
+
* @param {String} deviceUID
|
|
1600
1600
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1601
1601
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1602
1602
|
*/
|
|
@@ -1617,23 +1617,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1617
1617
|
throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
|
|
1618
1618
|
}
|
|
1619
1619
|
var pathParams = {
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
projectOrProductUID: projectOrProductUID,
|
|
1621
|
+
deviceUID: deviceUID
|
|
1622
1622
|
};
|
|
1623
1623
|
var queryParams = {};
|
|
1624
1624
|
var headerParams = {};
|
|
1625
1625
|
var formParams = {};
|
|
1626
|
-
var authNames = [
|
|
1627
|
-
var contentTypes = [
|
|
1628
|
-
var accepts = [
|
|
1626
|
+
var authNames = ["personalAccessToken"];
|
|
1627
|
+
var contentTypes = ["application/json"];
|
|
1628
|
+
var accepts = ["application/json"];
|
|
1629
1629
|
var returnType = _SignalDevice200Response["default"];
|
|
1630
|
-
return this.apiClient.callApi(
|
|
1630
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1631
1631
|
}
|
|
1632
1632
|
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Send a signal from Notehub to a Notecard.
|
|
1635
|
-
* @param {String} projectOrProductUID
|
|
1636
|
-
* @param {String} deviceUID
|
|
1635
|
+
* @param {String} projectOrProductUID
|
|
1636
|
+
* @param {String} deviceUID
|
|
1637
1637
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1638
1638
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1639
1639
|
*/
|
|
@@ -1647,10 +1647,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1647
1647
|
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Update a note in a .db or .qi notefile
|
|
1650
|
-
* @param {String} projectOrProductUID
|
|
1651
|
-
* @param {String} deviceUID
|
|
1652
|
-
* @param {String} notefileID
|
|
1653
|
-
* @param {String} noteID
|
|
1650
|
+
* @param {String} projectOrProductUID
|
|
1651
|
+
* @param {String} deviceUID
|
|
1652
|
+
* @param {String} notefileID
|
|
1653
|
+
* @param {String} noteID
|
|
1654
1654
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1655
1655
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1656
1656
|
*/
|
|
@@ -1679,27 +1679,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1679
1679
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
|
|
1680
1680
|
}
|
|
1681
1681
|
var pathParams = {
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1682
|
+
projectOrProductUID: projectOrProductUID,
|
|
1683
|
+
deviceUID: deviceUID,
|
|
1684
|
+
notefileID: notefileID,
|
|
1685
|
+
noteID: noteID
|
|
1686
1686
|
};
|
|
1687
1687
|
var queryParams = {};
|
|
1688
1688
|
var headerParams = {};
|
|
1689
1689
|
var formParams = {};
|
|
1690
|
-
var authNames = [
|
|
1691
|
-
var contentTypes = [
|
|
1692
|
-
var accepts = [
|
|
1690
|
+
var authNames = ["personalAccessToken"];
|
|
1691
|
+
var contentTypes = ["application/json"];
|
|
1692
|
+
var accepts = ["application/json"];
|
|
1693
1693
|
var returnType = null;
|
|
1694
|
-
return this.apiClient.callApi(
|
|
1694
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
1697
|
/**
|
|
1698
1698
|
* Update a note in a .db or .qi notefile
|
|
1699
|
-
* @param {String} projectOrProductUID
|
|
1700
|
-
* @param {String} deviceUID
|
|
1701
|
-
* @param {String} notefileID
|
|
1702
|
-
* @param {String} noteID
|
|
1699
|
+
* @param {String} projectOrProductUID
|
|
1700
|
+
* @param {String} deviceUID
|
|
1701
|
+
* @param {String} notefileID
|
|
1702
|
+
* @param {String} noteID
|
|
1703
1703
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1704
1704
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1705
1705
|
*/
|