@blues-inc/notehub-js 6.2.0-beta.1 → 6.2.0-beta.11
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 +288 -288
- 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 +28 -28
- package/dist/api/DeviceApi.js +414 -354
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +74 -127
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +432 -432
- 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 +14 -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 +6 -6
- 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 +8 -8
- 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 +6 -6
- 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 +68 -68
- 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 +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +9 -10
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- 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/GetDeviceJourneys200Response.js +112 -0
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +120 -0
- 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 +11 -12
- package/dist/model/GetJobs200Response.js +11 -12
- 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 +28 -59
- package/dist/model/JobRun.js +57 -57
- 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 +8 -8
- 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/UpdateHostFirmwareRequest.js +17 -17
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +14 -15
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- 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
|
@@ -14,6 +14,7 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
14
14
|
var _GetDbNote200Response = _interopRequireDefault(require("../model/GetDbNote200Response"));
|
|
15
15
|
var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
|
|
16
16
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
|
|
17
|
+
var _GetDeviceJourneys200Response = _interopRequireDefault(require("../model/GetDeviceJourneys200Response"));
|
|
17
18
|
var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("../model/GetDeviceLatestEvents200Response"));
|
|
18
19
|
var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
|
|
19
20
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
|
|
@@ -33,7 +34,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
34
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
35
|
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
36
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
37
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
37
38
|
*
|
|
38
39
|
* The version of the OpenAPI document: 1.2.0
|
|
39
40
|
* Contact: engineering@blues.io
|
|
@@ -44,18 +45,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
44
45
|
*
|
|
45
46
|
*/
|
|
46
47
|
/**
|
|
47
|
-
* Device service.
|
|
48
|
-
* @module api/DeviceApi
|
|
49
|
-
* @version 6.2.0-beta.
|
|
50
|
-
*/
|
|
48
|
+
* Device service.
|
|
49
|
+
* @module api/DeviceApi
|
|
50
|
+
* @version 6.2.0-beta.11
|
|
51
|
+
*/
|
|
51
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
53
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
* Constructs a new DeviceApi.
|
|
55
|
+
* @alias module:api/DeviceApi
|
|
56
|
+
* @class
|
|
57
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
58
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
59
|
+
*/
|
|
59
60
|
function DeviceApi(apiClient) {
|
|
60
61
|
_classCallCheck(this, DeviceApi);
|
|
61
62
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -63,10 +64,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
64
|
|
|
64
65
|
/**
|
|
65
66
|
* 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
|
|
67
|
+
* @param {String} projectOrProductUID
|
|
68
|
+
* @param {String} deviceUID
|
|
69
|
+
* @param {String} notefileID
|
|
70
|
+
* @param {String} noteID
|
|
70
71
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
71
72
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
72
73
|
*/
|
|
@@ -95,27 +96,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
96
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
|
|
96
97
|
}
|
|
97
98
|
var pathParams = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
projectOrProductUID: projectOrProductUID,
|
|
100
|
+
deviceUID: deviceUID,
|
|
101
|
+
notefileID: notefileID,
|
|
102
|
+
noteID: noteID
|
|
102
103
|
};
|
|
103
104
|
var queryParams = {};
|
|
104
105
|
var headerParams = {};
|
|
105
106
|
var formParams = {};
|
|
106
|
-
var authNames = [
|
|
107
|
-
var contentTypes = [
|
|
108
|
-
var accepts = [
|
|
107
|
+
var authNames = ["personalAccessToken"];
|
|
108
|
+
var contentTypes = ["application/json"];
|
|
109
|
+
var accepts = ["application/json"];
|
|
109
110
|
var returnType = null;
|
|
110
|
-
return this.apiClient.callApi(
|
|
111
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
115
|
* 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
|
|
116
|
+
* @param {String} projectOrProductUID
|
|
117
|
+
* @param {String} deviceUID
|
|
118
|
+
* @param {String} notefileID
|
|
119
|
+
* @param {String} noteID
|
|
119
120
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
120
121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
121
122
|
*/
|
|
@@ -129,9 +130,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
132
|
* 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
|
|
133
|
+
* @param {String} projectOrProductUID
|
|
134
|
+
* @param {String} deviceUID
|
|
135
|
+
* @param {String} notefileID
|
|
135
136
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
136
137
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
137
138
|
*/
|
|
@@ -156,25 +157,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
157
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
|
|
157
158
|
}
|
|
158
159
|
var pathParams = {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
projectOrProductUID: projectOrProductUID,
|
|
161
|
+
deviceUID: deviceUID,
|
|
162
|
+
notefileID: notefileID
|
|
162
163
|
};
|
|
163
164
|
var queryParams = {};
|
|
164
165
|
var headerParams = {};
|
|
165
166
|
var formParams = {};
|
|
166
|
-
var authNames = [
|
|
167
|
-
var contentTypes = [
|
|
168
|
-
var accepts = [
|
|
167
|
+
var authNames = ["personalAccessToken"];
|
|
168
|
+
var contentTypes = ["application/json"];
|
|
169
|
+
var accepts = ["application/json"];
|
|
169
170
|
var returnType = null;
|
|
170
|
-
return this.apiClient.callApi(
|
|
171
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
171
172
|
}
|
|
172
173
|
|
|
173
174
|
/**
|
|
174
175
|
* 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
|
|
176
|
+
* @param {String} projectOrProductUID
|
|
177
|
+
* @param {String} deviceUID
|
|
178
|
+
* @param {String} notefileID
|
|
178
179
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
179
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
180
181
|
*/
|
|
@@ -188,9 +189,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
189
|
|
|
189
190
|
/**
|
|
190
191
|
* Creates an empty Notefile on the device.
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
192
|
-
* @param {String} deviceUID
|
|
193
|
-
* @param {String} notefileID
|
|
192
|
+
* @param {String} projectOrProductUID
|
|
193
|
+
* @param {String} deviceUID
|
|
194
|
+
* @param {String} notefileID
|
|
194
195
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
195
196
|
*/
|
|
196
197
|
}, {
|
|
@@ -210,25 +211,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
211
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling createNotefile");
|
|
211
212
|
}
|
|
212
213
|
var pathParams = {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
projectOrProductUID: projectOrProductUID,
|
|
215
|
+
deviceUID: deviceUID,
|
|
216
|
+
notefileID: notefileID
|
|
216
217
|
};
|
|
217
218
|
var queryParams = {};
|
|
218
219
|
var headerParams = {};
|
|
219
220
|
var formParams = {};
|
|
220
|
-
var authNames = [
|
|
221
|
+
var authNames = ["personalAccessToken"];
|
|
221
222
|
var contentTypes = [];
|
|
222
|
-
var accepts = [
|
|
223
|
+
var accepts = ["application/json"];
|
|
223
224
|
var returnType = null;
|
|
224
|
-
return this.apiClient.callApi(
|
|
225
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
226
|
}
|
|
226
227
|
|
|
227
228
|
/**
|
|
228
229
|
* Creates an empty Notefile on the device.
|
|
229
|
-
* @param {String} projectOrProductUID
|
|
230
|
-
* @param {String} deviceUID
|
|
231
|
-
* @param {String} notefileID
|
|
230
|
+
* @param {String} projectOrProductUID
|
|
231
|
+
* @param {String} deviceUID
|
|
232
|
+
* @param {String} notefileID
|
|
232
233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
233
234
|
*/
|
|
234
235
|
}, {
|
|
@@ -241,8 +242,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
241
242
|
|
|
242
243
|
/**
|
|
243
244
|
* Delete Device
|
|
244
|
-
* @param {String} projectOrProductUID
|
|
245
|
-
* @param {String} deviceUID
|
|
245
|
+
* @param {String} projectOrProductUID
|
|
246
|
+
* @param {String} deviceUID
|
|
246
247
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
247
248
|
*/
|
|
248
249
|
}, {
|
|
@@ -258,23 +259,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
259
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
|
|
259
260
|
}
|
|
260
261
|
var pathParams = {
|
|
261
|
-
|
|
262
|
-
|
|
262
|
+
projectOrProductUID: projectOrProductUID,
|
|
263
|
+
deviceUID: deviceUID
|
|
263
264
|
};
|
|
264
265
|
var queryParams = {};
|
|
265
266
|
var headerParams = {};
|
|
266
267
|
var formParams = {};
|
|
267
|
-
var authNames = [
|
|
268
|
+
var authNames = ["personalAccessToken"];
|
|
268
269
|
var contentTypes = [];
|
|
269
|
-
var accepts = [
|
|
270
|
+
var accepts = ["application/json"];
|
|
270
271
|
var returnType = null;
|
|
271
|
-
return this.apiClient.callApi(
|
|
272
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
272
273
|
}
|
|
273
274
|
|
|
274
275
|
/**
|
|
275
276
|
* Delete Device
|
|
276
|
-
* @param {String} projectOrProductUID
|
|
277
|
-
* @param {String} deviceUID
|
|
277
|
+
* @param {String} projectOrProductUID
|
|
278
|
+
* @param {String} deviceUID
|
|
278
279
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
279
280
|
*/
|
|
280
281
|
}, {
|
|
@@ -287,8 +288,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
288
|
|
|
288
289
|
/**
|
|
289
290
|
* Delete environment variable of a device
|
|
290
|
-
* @param {String} projectOrProductUID
|
|
291
|
-
* @param {String} deviceUID
|
|
291
|
+
* @param {String} projectOrProductUID
|
|
292
|
+
* @param {String} deviceUID
|
|
292
293
|
* @param {String} key The environment variable key to delete.
|
|
293
294
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
294
295
|
*/
|
|
@@ -309,24 +310,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
309
310
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
310
311
|
}
|
|
311
312
|
var pathParams = {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
projectOrProductUID: projectOrProductUID,
|
|
314
|
+
deviceUID: deviceUID,
|
|
315
|
+
key: key
|
|
315
316
|
};
|
|
316
317
|
var queryParams = {};
|
|
317
318
|
var headerParams = {};
|
|
318
319
|
var formParams = {};
|
|
319
|
-
var authNames = [
|
|
320
|
+
var authNames = ["personalAccessToken"];
|
|
320
321
|
var contentTypes = [];
|
|
321
|
-
var accepts = [
|
|
322
|
+
var accepts = ["application/json"];
|
|
322
323
|
var returnType = _EnvironmentVariables["default"];
|
|
323
|
-
return this.apiClient.callApi(
|
|
324
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
324
325
|
}
|
|
325
326
|
|
|
326
327
|
/**
|
|
327
328
|
* Delete environment variable of a device
|
|
328
|
-
* @param {String} projectOrProductUID
|
|
329
|
-
* @param {String} deviceUID
|
|
329
|
+
* @param {String} projectOrProductUID
|
|
330
|
+
* @param {String} deviceUID
|
|
330
331
|
* @param {String} key The environment variable key to delete.
|
|
331
332
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
332
333
|
*/
|
|
@@ -340,10 +341,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
341
|
|
|
341
342
|
/**
|
|
342
343
|
* Delete a note from a .db or .qi notefile
|
|
343
|
-
* @param {String} projectOrProductUID
|
|
344
|
-
* @param {String} deviceUID
|
|
345
|
-
* @param {String} notefileID
|
|
346
|
-
* @param {String} noteID
|
|
344
|
+
* @param {String} projectOrProductUID
|
|
345
|
+
* @param {String} deviceUID
|
|
346
|
+
* @param {String} notefileID
|
|
347
|
+
* @param {String} noteID
|
|
347
348
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
348
349
|
*/
|
|
349
350
|
}, {
|
|
@@ -367,27 +368,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
367
368
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
368
369
|
}
|
|
369
370
|
var pathParams = {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
projectOrProductUID: projectOrProductUID,
|
|
372
|
+
deviceUID: deviceUID,
|
|
373
|
+
notefileID: notefileID,
|
|
374
|
+
noteID: noteID
|
|
374
375
|
};
|
|
375
376
|
var queryParams = {};
|
|
376
377
|
var headerParams = {};
|
|
377
378
|
var formParams = {};
|
|
378
|
-
var authNames = [
|
|
379
|
+
var authNames = ["personalAccessToken"];
|
|
379
380
|
var contentTypes = [];
|
|
380
|
-
var accepts = [
|
|
381
|
+
var accepts = ["application/json"];
|
|
381
382
|
var returnType = null;
|
|
382
|
-
return this.apiClient.callApi(
|
|
383
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
383
384
|
}
|
|
384
385
|
|
|
385
386
|
/**
|
|
386
387
|
* Delete a note from a .db or .qi notefile
|
|
387
|
-
* @param {String} projectOrProductUID
|
|
388
|
-
* @param {String} deviceUID
|
|
389
|
-
* @param {String} notefileID
|
|
390
|
-
* @param {String} noteID
|
|
388
|
+
* @param {String} projectOrProductUID
|
|
389
|
+
* @param {String} deviceUID
|
|
390
|
+
* @param {String} notefileID
|
|
391
|
+
* @param {String} noteID
|
|
391
392
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
392
393
|
*/
|
|
393
394
|
}, {
|
|
@@ -400,9 +401,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
401
|
|
|
401
402
|
/**
|
|
402
403
|
* Deletes Notefiles and the Notes they contain.
|
|
403
|
-
* @param {String} projectOrProductUID
|
|
404
|
-
* @param {String} deviceUID
|
|
405
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
404
|
+
* @param {String} projectOrProductUID
|
|
405
|
+
* @param {String} deviceUID
|
|
406
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
406
407
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
407
408
|
*/
|
|
408
409
|
}, {
|
|
@@ -422,24 +423,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
422
423
|
throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
|
|
423
424
|
}
|
|
424
425
|
var pathParams = {
|
|
425
|
-
|
|
426
|
-
|
|
426
|
+
projectOrProductUID: projectOrProductUID,
|
|
427
|
+
deviceUID: deviceUID
|
|
427
428
|
};
|
|
428
429
|
var queryParams = {};
|
|
429
430
|
var headerParams = {};
|
|
430
431
|
var formParams = {};
|
|
431
|
-
var authNames = [
|
|
432
|
-
var contentTypes = [
|
|
433
|
-
var accepts = [
|
|
432
|
+
var authNames = ["personalAccessToken"];
|
|
433
|
+
var contentTypes = ["application/json"];
|
|
434
|
+
var accepts = ["application/json"];
|
|
434
435
|
var returnType = null;
|
|
435
|
-
return this.apiClient.callApi(
|
|
436
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
436
437
|
}
|
|
437
438
|
|
|
438
439
|
/**
|
|
439
440
|
* Deletes Notefiles and the Notes they contain.
|
|
440
|
-
* @param {String} projectOrProductUID
|
|
441
|
-
* @param {String} deviceUID
|
|
442
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
441
|
+
* @param {String} projectOrProductUID
|
|
442
|
+
* @param {String} deviceUID
|
|
443
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
443
444
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
444
445
|
*/
|
|
445
446
|
}, {
|
|
@@ -452,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
452
453
|
|
|
453
454
|
/**
|
|
454
455
|
* Disable Device
|
|
455
|
-
* @param {String} projectOrProductUID
|
|
456
|
-
* @param {String} deviceUID
|
|
456
|
+
* @param {String} projectOrProductUID
|
|
457
|
+
* @param {String} deviceUID
|
|
457
458
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
458
459
|
*/
|
|
459
460
|
}, {
|
|
@@ -469,23 +470,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
469
470
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
470
471
|
}
|
|
471
472
|
var pathParams = {
|
|
472
|
-
|
|
473
|
-
|
|
473
|
+
projectOrProductUID: projectOrProductUID,
|
|
474
|
+
deviceUID: deviceUID
|
|
474
475
|
};
|
|
475
476
|
var queryParams = {};
|
|
476
477
|
var headerParams = {};
|
|
477
478
|
var formParams = {};
|
|
478
|
-
var authNames = [
|
|
479
|
+
var authNames = ["personalAccessToken"];
|
|
479
480
|
var contentTypes = [];
|
|
480
|
-
var accepts = [
|
|
481
|
+
var accepts = ["application/json"];
|
|
481
482
|
var returnType = null;
|
|
482
|
-
return this.apiClient.callApi(
|
|
483
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
483
484
|
}
|
|
484
485
|
|
|
485
486
|
/**
|
|
486
487
|
* Disable Device
|
|
487
|
-
* @param {String} projectOrProductUID
|
|
488
|
-
* @param {String} deviceUID
|
|
488
|
+
* @param {String} projectOrProductUID
|
|
489
|
+
* @param {String} deviceUID
|
|
489
490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
490
491
|
*/
|
|
491
492
|
}, {
|
|
@@ -498,8 +499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
498
499
|
|
|
499
500
|
/**
|
|
500
501
|
* Enable Device
|
|
501
|
-
* @param {String} projectOrProductUID
|
|
502
|
-
* @param {String} deviceUID
|
|
502
|
+
* @param {String} projectOrProductUID
|
|
503
|
+
* @param {String} deviceUID
|
|
503
504
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
504
505
|
*/
|
|
505
506
|
}, {
|
|
@@ -515,23 +516,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
515
516
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
516
517
|
}
|
|
517
518
|
var pathParams = {
|
|
518
|
-
|
|
519
|
-
|
|
519
|
+
projectOrProductUID: projectOrProductUID,
|
|
520
|
+
deviceUID: deviceUID
|
|
520
521
|
};
|
|
521
522
|
var queryParams = {};
|
|
522
523
|
var headerParams = {};
|
|
523
524
|
var formParams = {};
|
|
524
|
-
var authNames = [
|
|
525
|
+
var authNames = ["personalAccessToken"];
|
|
525
526
|
var contentTypes = [];
|
|
526
|
-
var accepts = [
|
|
527
|
+
var accepts = ["application/json"];
|
|
527
528
|
var returnType = null;
|
|
528
|
-
return this.apiClient.callApi(
|
|
529
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
529
530
|
}
|
|
530
531
|
|
|
531
532
|
/**
|
|
532
533
|
* Enable Device
|
|
533
|
-
* @param {String} projectOrProductUID
|
|
534
|
-
* @param {String} deviceUID
|
|
534
|
+
* @param {String} projectOrProductUID
|
|
535
|
+
* @param {String} deviceUID
|
|
535
536
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
536
537
|
*/
|
|
537
538
|
}, {
|
|
@@ -544,10 +545,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
544
545
|
|
|
545
546
|
/**
|
|
546
547
|
* Get a note from a .db or .qi notefile
|
|
547
|
-
* @param {String} projectOrProductUID
|
|
548
|
-
* @param {String} deviceUID
|
|
549
|
-
* @param {String} notefileID
|
|
550
|
-
* @param {String} noteID
|
|
548
|
+
* @param {String} projectOrProductUID
|
|
549
|
+
* @param {String} deviceUID
|
|
550
|
+
* @param {String} notefileID
|
|
551
|
+
* @param {String} noteID
|
|
551
552
|
* @param {Object} opts Optional parameters
|
|
552
553
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
553
554
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -575,30 +576,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
575
576
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
|
|
576
577
|
}
|
|
577
578
|
var pathParams = {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
579
|
+
projectOrProductUID: projectOrProductUID,
|
|
580
|
+
deviceUID: deviceUID,
|
|
581
|
+
notefileID: notefileID,
|
|
582
|
+
noteID: noteID
|
|
582
583
|
};
|
|
583
584
|
var queryParams = {
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
"delete": opts["_delete"],
|
|
586
|
+
deleted: opts["deleted"]
|
|
586
587
|
};
|
|
587
588
|
var headerParams = {};
|
|
588
589
|
var formParams = {};
|
|
589
|
-
var authNames = [
|
|
590
|
+
var authNames = ["personalAccessToken"];
|
|
590
591
|
var contentTypes = [];
|
|
591
|
-
var accepts = [
|
|
592
|
+
var accepts = ["application/json"];
|
|
592
593
|
var returnType = _GetDbNote200Response["default"];
|
|
593
|
-
return this.apiClient.callApi(
|
|
594
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
594
595
|
}
|
|
595
596
|
|
|
596
597
|
/**
|
|
597
598
|
* Get a note from a .db or .qi notefile
|
|
598
|
-
* @param {String} projectOrProductUID
|
|
599
|
-
* @param {String} deviceUID
|
|
600
|
-
* @param {String} notefileID
|
|
601
|
-
* @param {String} noteID
|
|
599
|
+
* @param {String} projectOrProductUID
|
|
600
|
+
* @param {String} deviceUID
|
|
601
|
+
* @param {String} notefileID
|
|
602
|
+
* @param {String} noteID
|
|
602
603
|
* @param {Object} opts Optional parameters
|
|
603
604
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
604
605
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -614,8 +615,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
614
615
|
|
|
615
616
|
/**
|
|
616
617
|
* Get Device
|
|
617
|
-
* @param {String} projectOrProductUID
|
|
618
|
-
* @param {String} deviceUID
|
|
618
|
+
* @param {String} projectOrProductUID
|
|
619
|
+
* @param {String} deviceUID
|
|
619
620
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
620
621
|
*/
|
|
621
622
|
}, {
|
|
@@ -631,23 +632,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
631
632
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
632
633
|
}
|
|
633
634
|
var pathParams = {
|
|
634
|
-
|
|
635
|
-
|
|
635
|
+
projectOrProductUID: projectOrProductUID,
|
|
636
|
+
deviceUID: deviceUID
|
|
636
637
|
};
|
|
637
638
|
var queryParams = {};
|
|
638
639
|
var headerParams = {};
|
|
639
640
|
var formParams = {};
|
|
640
|
-
var authNames = [
|
|
641
|
+
var authNames = ["personalAccessToken"];
|
|
641
642
|
var contentTypes = [];
|
|
642
|
-
var accepts = [
|
|
643
|
+
var accepts = ["application/json"];
|
|
643
644
|
var returnType = _Device["default"];
|
|
644
|
-
return this.apiClient.callApi(
|
|
645
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
645
646
|
}
|
|
646
647
|
|
|
647
648
|
/**
|
|
648
649
|
* Get Device
|
|
649
|
-
* @param {String} projectOrProductUID
|
|
650
|
-
* @param {String} deviceUID
|
|
650
|
+
* @param {String} projectOrProductUID
|
|
651
|
+
* @param {String} deviceUID
|
|
651
652
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
652
653
|
*/
|
|
653
654
|
}, {
|
|
@@ -660,8 +661,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
660
661
|
|
|
661
662
|
/**
|
|
662
663
|
* Get environment variable hierarchy for a device
|
|
663
|
-
* @param {String} projectOrProductUID
|
|
664
|
-
* @param {String} deviceUID
|
|
664
|
+
* @param {String} projectOrProductUID
|
|
665
|
+
* @param {String} deviceUID
|
|
665
666
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
666
667
|
*/
|
|
667
668
|
}, {
|
|
@@ -677,23 +678,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
677
678
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
678
679
|
}
|
|
679
680
|
var pathParams = {
|
|
680
|
-
|
|
681
|
-
|
|
681
|
+
projectOrProductUID: projectOrProductUID,
|
|
682
|
+
deviceUID: deviceUID
|
|
682
683
|
};
|
|
683
684
|
var queryParams = {};
|
|
684
685
|
var headerParams = {};
|
|
685
686
|
var formParams = {};
|
|
686
|
-
var authNames = [
|
|
687
|
+
var authNames = ["personalAccessToken"];
|
|
687
688
|
var contentTypes = [];
|
|
688
|
-
var accepts = [
|
|
689
|
+
var accepts = ["application/json"];
|
|
689
690
|
var returnType = _EnvTreeJsonNode["default"];
|
|
690
|
-
return this.apiClient.callApi(
|
|
691
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
691
692
|
}
|
|
692
693
|
|
|
693
694
|
/**
|
|
694
695
|
* Get environment variable hierarchy for a device
|
|
695
|
-
* @param {String} projectOrProductUID
|
|
696
|
-
* @param {String} deviceUID
|
|
696
|
+
* @param {String} projectOrProductUID
|
|
697
|
+
* @param {String} deviceUID
|
|
697
698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
698
699
|
*/
|
|
699
700
|
}, {
|
|
@@ -706,8 +707,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
706
707
|
|
|
707
708
|
/**
|
|
708
709
|
* Get environment variables of a device
|
|
709
|
-
* @param {String} projectOrProductUID
|
|
710
|
-
* @param {String} deviceUID
|
|
710
|
+
* @param {String} projectOrProductUID
|
|
711
|
+
* @param {String} deviceUID
|
|
711
712
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
712
713
|
*/
|
|
713
714
|
}, {
|
|
@@ -723,23 +724,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
723
724
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
724
725
|
}
|
|
725
726
|
var pathParams = {
|
|
726
|
-
|
|
727
|
-
|
|
727
|
+
projectOrProductUID: projectOrProductUID,
|
|
728
|
+
deviceUID: deviceUID
|
|
728
729
|
};
|
|
729
730
|
var queryParams = {};
|
|
730
731
|
var headerParams = {};
|
|
731
732
|
var formParams = {};
|
|
732
|
-
var authNames = [
|
|
733
|
+
var authNames = ["personalAccessToken"];
|
|
733
734
|
var contentTypes = [];
|
|
734
|
-
var accepts = [
|
|
735
|
+
var accepts = ["application/json"];
|
|
735
736
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
736
|
-
return this.apiClient.callApi(
|
|
737
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
737
738
|
}
|
|
738
739
|
|
|
739
740
|
/**
|
|
740
741
|
* Get environment variables of a device
|
|
741
|
-
* @param {String} projectOrProductUID
|
|
742
|
-
* @param {String} deviceUID
|
|
742
|
+
* @param {String} projectOrProductUID
|
|
743
|
+
* @param {String} deviceUID
|
|
743
744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
744
745
|
*/
|
|
745
746
|
}, {
|
|
@@ -752,8 +753,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
752
753
|
|
|
753
754
|
/**
|
|
754
755
|
* Get environment variables of a device with device pin authorization
|
|
755
|
-
* @param {String} productUID
|
|
756
|
-
* @param {String} deviceUID
|
|
756
|
+
* @param {String} productUID
|
|
757
|
+
* @param {String} deviceUID
|
|
757
758
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
758
759
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
759
760
|
*/
|
|
@@ -774,25 +775,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
774
775
|
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
|
|
775
776
|
}
|
|
776
777
|
var pathParams = {
|
|
777
|
-
|
|
778
|
-
|
|
778
|
+
productUID: productUID,
|
|
779
|
+
deviceUID: deviceUID
|
|
779
780
|
};
|
|
780
781
|
var queryParams = {};
|
|
781
782
|
var headerParams = {
|
|
782
|
-
|
|
783
|
+
"X-Auth-Token": xAuthToken
|
|
783
784
|
};
|
|
784
785
|
var formParams = {};
|
|
785
786
|
var authNames = [];
|
|
786
787
|
var contentTypes = [];
|
|
787
|
-
var accepts = [
|
|
788
|
+
var accepts = ["application/json"];
|
|
788
789
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
789
|
-
return this.apiClient.callApi(
|
|
790
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
790
791
|
}
|
|
791
792
|
|
|
792
793
|
/**
|
|
793
794
|
* Get environment variables of a device with device pin authorization
|
|
794
|
-
* @param {String} productUID
|
|
795
|
-
* @param {String} deviceUID
|
|
795
|
+
* @param {String} productUID
|
|
796
|
+
* @param {String} deviceUID
|
|
796
797
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
797
798
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
798
799
|
*/
|
|
@@ -806,8 +807,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
806
807
|
|
|
807
808
|
/**
|
|
808
809
|
* Get Device Health Log
|
|
809
|
-
* @param {String} projectOrProductUID
|
|
810
|
-
* @param {String} deviceUID
|
|
810
|
+
* @param {String} projectOrProductUID
|
|
811
|
+
* @param {String} deviceUID
|
|
811
812
|
* @param {Object} opts Optional parameters
|
|
812
813
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
813
814
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -828,27 +829,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
828
829
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
829
830
|
}
|
|
830
831
|
var pathParams = {
|
|
831
|
-
|
|
832
|
-
|
|
832
|
+
projectOrProductUID: projectOrProductUID,
|
|
833
|
+
deviceUID: deviceUID
|
|
833
834
|
};
|
|
834
835
|
var queryParams = {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
startDate: opts["startDate"],
|
|
837
|
+
endDate: opts["endDate"],
|
|
838
|
+
log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
|
|
838
839
|
};
|
|
839
840
|
var headerParams = {};
|
|
840
841
|
var formParams = {};
|
|
841
|
-
var authNames = [
|
|
842
|
+
var authNames = ["personalAccessToken"];
|
|
842
843
|
var contentTypes = [];
|
|
843
|
-
var accepts = [
|
|
844
|
+
var accepts = ["application/json"];
|
|
844
845
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
845
|
-
return this.apiClient.callApi(
|
|
846
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
846
847
|
}
|
|
847
848
|
|
|
848
849
|
/**
|
|
849
850
|
* Get Device Health Log
|
|
850
|
-
* @param {String} projectOrProductUID
|
|
851
|
-
* @param {String} deviceUID
|
|
851
|
+
* @param {String} projectOrProductUID
|
|
852
|
+
* @param {String} deviceUID
|
|
852
853
|
* @param {Object} opts Optional parameters
|
|
853
854
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
854
855
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -863,10 +864,69 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
863
864
|
});
|
|
864
865
|
}
|
|
865
866
|
|
|
867
|
+
/**
|
|
868
|
+
* Get Device Journeys associated with the device, this includes events with file _track.qo and body >> journey is not null .
|
|
869
|
+
* @param {String} projectOrProductUID
|
|
870
|
+
* @param {String} deviceUID
|
|
871
|
+
* @param {Object} opts Optional parameters
|
|
872
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
873
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
874
|
+
* @param {Number} opts.limit (default to 50)
|
|
875
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourneys200Response} and HTTP response
|
|
876
|
+
*/
|
|
877
|
+
}, {
|
|
878
|
+
key: "getDeviceJourneysWithHttpInfo",
|
|
879
|
+
value: function getDeviceJourneysWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
880
|
+
opts = opts || {};
|
|
881
|
+
var postBody = null;
|
|
882
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
883
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
884
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceJourneys");
|
|
885
|
+
}
|
|
886
|
+
// verify the required parameter 'deviceUID' is set
|
|
887
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
888
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceJourneys");
|
|
889
|
+
}
|
|
890
|
+
var pathParams = {
|
|
891
|
+
projectOrProductUID: projectOrProductUID,
|
|
892
|
+
deviceUID: deviceUID
|
|
893
|
+
};
|
|
894
|
+
var queryParams = {
|
|
895
|
+
startDate: opts["startDate"],
|
|
896
|
+
endDate: opts["endDate"],
|
|
897
|
+
limit: opts["limit"]
|
|
898
|
+
};
|
|
899
|
+
var headerParams = {};
|
|
900
|
+
var formParams = {};
|
|
901
|
+
var authNames = ["personalAccessToken"];
|
|
902
|
+
var contentTypes = [];
|
|
903
|
+
var accepts = ["application/json"];
|
|
904
|
+
var returnType = _GetDeviceJourneys200Response["default"];
|
|
905
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/journeys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Get Device Journeys associated with the device, this includes events with file _track.qo and body >> journey is not null .
|
|
910
|
+
* @param {String} projectOrProductUID
|
|
911
|
+
* @param {String} deviceUID
|
|
912
|
+
* @param {Object} opts Optional parameters
|
|
913
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
914
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
915
|
+
* @param {Number} opts.limit (default to 50)
|
|
916
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourneys200Response}
|
|
917
|
+
*/
|
|
918
|
+
}, {
|
|
919
|
+
key: "getDeviceJourneys",
|
|
920
|
+
value: function getDeviceJourneys(projectOrProductUID, deviceUID, opts) {
|
|
921
|
+
return this.getDeviceJourneysWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
922
|
+
return response_and_data.data;
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
|
|
866
926
|
/**
|
|
867
927
|
* Get Device Latest Events
|
|
868
|
-
* @param {String} projectOrProductUID
|
|
869
|
-
* @param {String} deviceUID
|
|
928
|
+
* @param {String} projectOrProductUID
|
|
929
|
+
* @param {String} deviceUID
|
|
870
930
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
871
931
|
*/
|
|
872
932
|
}, {
|
|
@@ -882,23 +942,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
882
942
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
|
|
883
943
|
}
|
|
884
944
|
var pathParams = {
|
|
885
|
-
|
|
886
|
-
|
|
945
|
+
projectOrProductUID: projectOrProductUID,
|
|
946
|
+
deviceUID: deviceUID
|
|
887
947
|
};
|
|
888
948
|
var queryParams = {};
|
|
889
949
|
var headerParams = {};
|
|
890
950
|
var formParams = {};
|
|
891
|
-
var authNames = [
|
|
951
|
+
var authNames = ["personalAccessToken"];
|
|
892
952
|
var contentTypes = [];
|
|
893
|
-
var accepts = [
|
|
953
|
+
var accepts = ["application/json"];
|
|
894
954
|
var returnType = _GetDeviceLatestEvents200Response["default"];
|
|
895
|
-
return this.apiClient.callApi(
|
|
955
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
896
956
|
}
|
|
897
957
|
|
|
898
958
|
/**
|
|
899
959
|
* Get Device Latest Events
|
|
900
|
-
* @param {String} projectOrProductUID
|
|
901
|
-
* @param {String} deviceUID
|
|
960
|
+
* @param {String} projectOrProductUID
|
|
961
|
+
* @param {String} deviceUID
|
|
902
962
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
903
963
|
*/
|
|
904
964
|
}, {
|
|
@@ -911,8 +971,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
911
971
|
|
|
912
972
|
/**
|
|
913
973
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
914
|
-
* @param {String} projectOrProductUID
|
|
915
|
-
* @param {String} deviceUID
|
|
974
|
+
* @param {String} projectOrProductUID
|
|
975
|
+
* @param {String} deviceUID
|
|
916
976
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
917
977
|
*/
|
|
918
978
|
}, {
|
|
@@ -928,23 +988,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
928
988
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
929
989
|
}
|
|
930
990
|
var pathParams = {
|
|
931
|
-
|
|
932
|
-
|
|
991
|
+
projectOrProductUID: projectOrProductUID,
|
|
992
|
+
deviceUID: deviceUID
|
|
933
993
|
};
|
|
934
994
|
var queryParams = {};
|
|
935
995
|
var headerParams = {};
|
|
936
996
|
var formParams = {};
|
|
937
|
-
var authNames = [
|
|
997
|
+
var authNames = ["personalAccessToken"];
|
|
938
998
|
var contentTypes = [];
|
|
939
|
-
var accepts = [
|
|
999
|
+
var accepts = ["application/json"];
|
|
940
1000
|
var returnType = _GetDevicePlans200Response["default"];
|
|
941
|
-
return this.apiClient.callApi(
|
|
1001
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
942
1002
|
}
|
|
943
1003
|
|
|
944
1004
|
/**
|
|
945
1005
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
946
|
-
* @param {String} projectOrProductUID
|
|
947
|
-
* @param {String} deviceUID
|
|
1006
|
+
* @param {String} projectOrProductUID
|
|
1007
|
+
* @param {String} deviceUID
|
|
948
1008
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
949
1009
|
*/
|
|
950
1010
|
}, {
|
|
@@ -957,8 +1017,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
957
1017
|
|
|
958
1018
|
/**
|
|
959
1019
|
* Get Device Public Key
|
|
960
|
-
* @param {String} projectOrProductUID
|
|
961
|
-
* @param {String} deviceUID
|
|
1020
|
+
* @param {String} projectOrProductUID
|
|
1021
|
+
* @param {String} deviceUID
|
|
962
1022
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
963
1023
|
*/
|
|
964
1024
|
}, {
|
|
@@ -974,23 +1034,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
974
1034
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
975
1035
|
}
|
|
976
1036
|
var pathParams = {
|
|
977
|
-
|
|
978
|
-
|
|
1037
|
+
projectOrProductUID: projectOrProductUID,
|
|
1038
|
+
deviceUID: deviceUID
|
|
979
1039
|
};
|
|
980
1040
|
var queryParams = {};
|
|
981
1041
|
var headerParams = {};
|
|
982
1042
|
var formParams = {};
|
|
983
|
-
var authNames = [
|
|
1043
|
+
var authNames = ["personalAccessToken"];
|
|
984
1044
|
var contentTypes = [];
|
|
985
|
-
var accepts = [
|
|
1045
|
+
var accepts = ["application/json"];
|
|
986
1046
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
987
|
-
return this.apiClient.callApi(
|
|
1047
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
988
1048
|
}
|
|
989
1049
|
|
|
990
1050
|
/**
|
|
991
1051
|
* Get Device Public Key
|
|
992
|
-
* @param {String} projectOrProductUID
|
|
993
|
-
* @param {String} deviceUID
|
|
1052
|
+
* @param {String} projectOrProductUID
|
|
1053
|
+
* @param {String} deviceUID
|
|
994
1054
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
995
1055
|
*/
|
|
996
1056
|
}, {
|
|
@@ -1003,7 +1063,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1003
1063
|
|
|
1004
1064
|
/**
|
|
1005
1065
|
* Get Device Public Keys of a Project
|
|
1006
|
-
* @param {String} projectOrProductUID
|
|
1066
|
+
* @param {String} projectOrProductUID
|
|
1007
1067
|
* @param {Object} opts Optional parameters
|
|
1008
1068
|
* @param {Number} opts.pageSize (default to 50)
|
|
1009
1069
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1019,24 +1079,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1019
1079
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
|
|
1020
1080
|
}
|
|
1021
1081
|
var pathParams = {
|
|
1022
|
-
|
|
1082
|
+
projectOrProductUID: projectOrProductUID
|
|
1023
1083
|
};
|
|
1024
1084
|
var queryParams = {
|
|
1025
|
-
|
|
1026
|
-
|
|
1085
|
+
pageSize: opts["pageSize"],
|
|
1086
|
+
pageNum: opts["pageNum"]
|
|
1027
1087
|
};
|
|
1028
1088
|
var headerParams = {};
|
|
1029
1089
|
var formParams = {};
|
|
1030
|
-
var authNames = [
|
|
1090
|
+
var authNames = ["personalAccessToken"];
|
|
1031
1091
|
var contentTypes = [];
|
|
1032
|
-
var accepts = [
|
|
1092
|
+
var accepts = ["application/json"];
|
|
1033
1093
|
var returnType = _GetDevicePublicKeys200Response["default"];
|
|
1034
|
-
return this.apiClient.callApi(
|
|
1094
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/public-keys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1035
1095
|
}
|
|
1036
1096
|
|
|
1037
1097
|
/**
|
|
1038
1098
|
* Get Device Public Keys of a Project
|
|
1039
|
-
* @param {String} projectOrProductUID
|
|
1099
|
+
* @param {String} projectOrProductUID
|
|
1040
1100
|
* @param {Object} opts Optional parameters
|
|
1041
1101
|
* @param {Number} opts.pageSize (default to 50)
|
|
1042
1102
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1052,8 +1112,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1052
1112
|
|
|
1053
1113
|
/**
|
|
1054
1114
|
* Get Device Sessions
|
|
1055
|
-
* @param {String} projectOrProductUID
|
|
1056
|
-
* @param {String} deviceUID
|
|
1115
|
+
* @param {String} projectOrProductUID
|
|
1116
|
+
* @param {String} deviceUID
|
|
1057
1117
|
* @param {Object} opts Optional parameters
|
|
1058
1118
|
* @param {Number} opts.pageSize (default to 50)
|
|
1059
1119
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1076,29 +1136,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1076
1136
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
1077
1137
|
}
|
|
1078
1138
|
var pathParams = {
|
|
1079
|
-
|
|
1080
|
-
|
|
1139
|
+
projectOrProductUID: projectOrProductUID,
|
|
1140
|
+
deviceUID: deviceUID
|
|
1081
1141
|
};
|
|
1082
1142
|
var queryParams = {
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1143
|
+
pageSize: opts["pageSize"],
|
|
1144
|
+
pageNum: opts["pageNum"],
|
|
1145
|
+
startDate: opts["startDate"],
|
|
1146
|
+
endDate: opts["endDate"],
|
|
1147
|
+
firstSync: opts["firstSync"]
|
|
1088
1148
|
};
|
|
1089
1149
|
var headerParams = {};
|
|
1090
1150
|
var formParams = {};
|
|
1091
|
-
var authNames = [
|
|
1151
|
+
var authNames = ["personalAccessToken"];
|
|
1092
1152
|
var contentTypes = [];
|
|
1093
|
-
var accepts = [
|
|
1153
|
+
var accepts = ["application/json"];
|
|
1094
1154
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
1095
|
-
return this.apiClient.callApi(
|
|
1155
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1096
1156
|
}
|
|
1097
1157
|
|
|
1098
1158
|
/**
|
|
1099
1159
|
* Get Device Sessions
|
|
1100
|
-
* @param {String} projectOrProductUID
|
|
1101
|
-
* @param {String} deviceUID
|
|
1160
|
+
* @param {String} projectOrProductUID
|
|
1161
|
+
* @param {String} deviceUID
|
|
1102
1162
|
* @param {Object} opts Optional parameters
|
|
1103
1163
|
* @param {Number} opts.pageSize (default to 50)
|
|
1104
1164
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1117,18 +1177,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1117
1177
|
|
|
1118
1178
|
/**
|
|
1119
1179
|
* Get Devices of a Project
|
|
1120
|
-
* @param {String} projectOrProductUID
|
|
1180
|
+
* @param {String} projectOrProductUID
|
|
1121
1181
|
* @param {Object} opts Optional parameters
|
|
1122
1182
|
* @param {Number} opts.pageSize (default to 50)
|
|
1123
1183
|
* @param {Number} opts.pageNum (default to 1)
|
|
1124
1184
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1125
1185
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1126
1186
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1127
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1187
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1128
1188
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1129
1189
|
* @param {Array.<String>} opts.location Location filter
|
|
1130
1190
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1131
|
-
* @param {Array.<String>} opts.productUID
|
|
1191
|
+
* @param {Array.<String>} opts.productUID
|
|
1132
1192
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1133
1193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1134
1194
|
*/
|
|
@@ -1142,44 +1202,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1142
1202
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
|
|
1143
1203
|
}
|
|
1144
1204
|
var pathParams = {
|
|
1145
|
-
|
|
1205
|
+
projectOrProductUID: projectOrProductUID
|
|
1146
1206
|
};
|
|
1147
1207
|
var queryParams = {
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1208
|
+
pageSize: opts["pageSize"],
|
|
1209
|
+
pageNum: opts["pageNum"],
|
|
1210
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1211
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1212
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1213
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
1214
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1215
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1216
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1217
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1218
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1159
1219
|
};
|
|
1160
1220
|
var headerParams = {};
|
|
1161
1221
|
var formParams = {};
|
|
1162
|
-
var authNames = [
|
|
1222
|
+
var authNames = ["personalAccessToken"];
|
|
1163
1223
|
var contentTypes = [];
|
|
1164
|
-
var accepts = [
|
|
1224
|
+
var accepts = ["application/json"];
|
|
1165
1225
|
var returnType = _GetDevices200Response["default"];
|
|
1166
|
-
return this.apiClient.callApi(
|
|
1226
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1167
1227
|
}
|
|
1168
1228
|
|
|
1169
1229
|
/**
|
|
1170
1230
|
* Get Devices of a Project
|
|
1171
|
-
* @param {String} projectOrProductUID
|
|
1231
|
+
* @param {String} projectOrProductUID
|
|
1172
1232
|
* @param {Object} opts Optional parameters
|
|
1173
1233
|
* @param {Number} opts.pageSize (default to 50)
|
|
1174
1234
|
* @param {Number} opts.pageNum (default to 1)
|
|
1175
1235
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1176
1236
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1177
1237
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1178
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1238
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1179
1239
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1180
1240
|
* @param {Array.<String>} opts.location Location filter
|
|
1181
1241
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1182
|
-
* @param {Array.<String>} opts.productUID
|
|
1242
|
+
* @param {Array.<String>} opts.productUID
|
|
1183
1243
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1184
1244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1185
1245
|
*/
|
|
@@ -1193,8 +1253,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1193
1253
|
|
|
1194
1254
|
/**
|
|
1195
1255
|
* Get Devices of a Fleet within a Project
|
|
1196
|
-
* @param {String} projectOrProductUID
|
|
1197
|
-
* @param {String} fleetUID
|
|
1256
|
+
* @param {String} projectOrProductUID
|
|
1257
|
+
* @param {String} fleetUID
|
|
1198
1258
|
* @param {Object} opts Optional parameters
|
|
1199
1259
|
* @param {Number} opts.pageSize (default to 50)
|
|
1200
1260
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1204,7 +1264,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1204
1264
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1205
1265
|
* @param {Array.<String>} opts.location Location filter
|
|
1206
1266
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1207
|
-
* @param {Array.<String>} opts.productUID
|
|
1267
|
+
* @param {Array.<String>} opts.productUID
|
|
1208
1268
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1209
1269
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1210
1270
|
*/
|
|
@@ -1222,34 +1282,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1222
1282
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
|
|
1223
1283
|
}
|
|
1224
1284
|
var pathParams = {
|
|
1225
|
-
|
|
1226
|
-
|
|
1285
|
+
projectOrProductUID: projectOrProductUID,
|
|
1286
|
+
fleetUID: fleetUID
|
|
1227
1287
|
};
|
|
1228
1288
|
var queryParams = {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1289
|
+
pageSize: opts["pageSize"],
|
|
1290
|
+
pageNum: opts["pageNum"],
|
|
1291
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
1292
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
1293
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
1294
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
1295
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
1296
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
1297
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
1298
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
1239
1299
|
};
|
|
1240
1300
|
var headerParams = {};
|
|
1241
1301
|
var formParams = {};
|
|
1242
|
-
var authNames = [
|
|
1302
|
+
var authNames = ["personalAccessToken"];
|
|
1243
1303
|
var contentTypes = [];
|
|
1244
|
-
var accepts = [
|
|
1304
|
+
var accepts = ["application/json"];
|
|
1245
1305
|
var returnType = _GetDevices200Response["default"];
|
|
1246
|
-
return this.apiClient.callApi(
|
|
1306
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1247
1307
|
}
|
|
1248
1308
|
|
|
1249
1309
|
/**
|
|
1250
1310
|
* Get Devices of a Fleet within a Project
|
|
1251
|
-
* @param {String} projectOrProductUID
|
|
1252
|
-
* @param {String} fleetUID
|
|
1311
|
+
* @param {String} projectOrProductUID
|
|
1312
|
+
* @param {String} fleetUID
|
|
1253
1313
|
* @param {Object} opts Optional parameters
|
|
1254
1314
|
* @param {Number} opts.pageSize (default to 50)
|
|
1255
1315
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1259,7 +1319,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1259
1319
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1260
1320
|
* @param {Array.<String>} opts.location Location filter
|
|
1261
1321
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1262
|
-
* @param {Array.<String>} opts.productUID
|
|
1322
|
+
* @param {Array.<String>} opts.productUID
|
|
1263
1323
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1264
1324
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1265
1325
|
*/
|
|
@@ -1273,9 +1333,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1273
1333
|
|
|
1274
1334
|
/**
|
|
1275
1335
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1276
|
-
* @param {String} projectOrProductUID
|
|
1277
|
-
* @param {String} deviceUID
|
|
1278
|
-
* @param {String} notefileID
|
|
1336
|
+
* @param {String} projectOrProductUID
|
|
1337
|
+
* @param {String} deviceUID
|
|
1338
|
+
* @param {String} notefileID
|
|
1279
1339
|
* @param {Object} opts Optional parameters
|
|
1280
1340
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1281
1341
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1300,29 +1360,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1300
1360
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
|
|
1301
1361
|
}
|
|
1302
1362
|
var pathParams = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1363
|
+
projectOrProductUID: projectOrProductUID,
|
|
1364
|
+
deviceUID: deviceUID,
|
|
1365
|
+
notefileID: notefileID
|
|
1306
1366
|
};
|
|
1307
1367
|
var queryParams = {
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1368
|
+
max: opts["max"],
|
|
1369
|
+
deleted: opts["deleted"],
|
|
1370
|
+
"delete": opts["_delete"]
|
|
1311
1371
|
};
|
|
1312
1372
|
var headerParams = {};
|
|
1313
1373
|
var formParams = {};
|
|
1314
|
-
var authNames = [
|
|
1374
|
+
var authNames = ["personalAccessToken"];
|
|
1315
1375
|
var contentTypes = [];
|
|
1316
|
-
var accepts = [
|
|
1376
|
+
var accepts = ["application/json"];
|
|
1317
1377
|
var returnType = _GetNotefile200Response["default"];
|
|
1318
|
-
return this.apiClient.callApi(
|
|
1378
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1319
1379
|
}
|
|
1320
1380
|
|
|
1321
1381
|
/**
|
|
1322
1382
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1323
|
-
* @param {String} projectOrProductUID
|
|
1324
|
-
* @param {String} deviceUID
|
|
1325
|
-
* @param {String} notefileID
|
|
1383
|
+
* @param {String} projectOrProductUID
|
|
1384
|
+
* @param {String} deviceUID
|
|
1385
|
+
* @param {String} notefileID
|
|
1326
1386
|
* @param {Object} opts Optional parameters
|
|
1327
1387
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1328
1388
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1339,8 +1399,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1399
|
|
|
1340
1400
|
/**
|
|
1341
1401
|
* Lists .qi and .db files for the device
|
|
1342
|
-
* @param {String} projectOrProductUID
|
|
1343
|
-
* @param {String} deviceUID
|
|
1402
|
+
* @param {String} projectOrProductUID
|
|
1403
|
+
* @param {String} deviceUID
|
|
1344
1404
|
* @param {Object} opts Optional parameters
|
|
1345
1405
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1346
1406
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1360,26 +1420,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1360
1420
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
|
|
1361
1421
|
}
|
|
1362
1422
|
var pathParams = {
|
|
1363
|
-
|
|
1364
|
-
|
|
1423
|
+
projectOrProductUID: projectOrProductUID,
|
|
1424
|
+
deviceUID: deviceUID
|
|
1365
1425
|
};
|
|
1366
1426
|
var queryParams = {
|
|
1367
|
-
|
|
1368
|
-
|
|
1427
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi"),
|
|
1428
|
+
pending: opts["pending"]
|
|
1369
1429
|
};
|
|
1370
1430
|
var headerParams = {};
|
|
1371
1431
|
var formParams = {};
|
|
1372
|
-
var authNames = [
|
|
1432
|
+
var authNames = ["personalAccessToken"];
|
|
1373
1433
|
var contentTypes = [];
|
|
1374
|
-
var accepts = [
|
|
1434
|
+
var accepts = ["application/json"];
|
|
1375
1435
|
var returnType = [_Notefile["default"]];
|
|
1376
|
-
return this.apiClient.callApi(
|
|
1436
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1377
1437
|
}
|
|
1378
1438
|
|
|
1379
1439
|
/**
|
|
1380
1440
|
* Lists .qi and .db files for the device
|
|
1381
|
-
* @param {String} projectOrProductUID
|
|
1382
|
-
* @param {String} deviceUID
|
|
1441
|
+
* @param {String} projectOrProductUID
|
|
1442
|
+
* @param {String} deviceUID
|
|
1383
1443
|
* @param {Object} opts Optional parameters
|
|
1384
1444
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1385
1445
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1395,8 +1455,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1395
1455
|
|
|
1396
1456
|
/**
|
|
1397
1457
|
* Provision Device for a Project
|
|
1398
|
-
* @param {String} projectOrProductUID
|
|
1399
|
-
* @param {String} deviceUID
|
|
1458
|
+
* @param {String} projectOrProductUID
|
|
1459
|
+
* @param {String} deviceUID
|
|
1400
1460
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1401
1461
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1402
1462
|
*/
|
|
@@ -1417,23 +1477,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1417
1477
|
throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
|
|
1418
1478
|
}
|
|
1419
1479
|
var pathParams = {
|
|
1420
|
-
|
|
1421
|
-
|
|
1480
|
+
projectOrProductUID: projectOrProductUID,
|
|
1481
|
+
deviceUID: deviceUID
|
|
1422
1482
|
};
|
|
1423
1483
|
var queryParams = {};
|
|
1424
1484
|
var headerParams = {};
|
|
1425
1485
|
var formParams = {};
|
|
1426
|
-
var authNames = [
|
|
1427
|
-
var contentTypes = [
|
|
1428
|
-
var accepts = [
|
|
1486
|
+
var authNames = ["personalAccessToken"];
|
|
1487
|
+
var contentTypes = ["application/json"];
|
|
1488
|
+
var accepts = ["application/json"];
|
|
1429
1489
|
var returnType = Object;
|
|
1430
|
-
return this.apiClient.callApi(
|
|
1490
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1431
1491
|
}
|
|
1432
1492
|
|
|
1433
1493
|
/**
|
|
1434
1494
|
* Provision Device for a Project
|
|
1435
|
-
* @param {String} projectOrProductUID
|
|
1436
|
-
* @param {String} deviceUID
|
|
1495
|
+
* @param {String} projectOrProductUID
|
|
1496
|
+
* @param {String} deviceUID
|
|
1437
1497
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1438
1498
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1439
1499
|
*/
|
|
@@ -1447,8 +1507,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1447
1507
|
|
|
1448
1508
|
/**
|
|
1449
1509
|
* Set environment variables of a device
|
|
1450
|
-
* @param {String} projectOrProductUID
|
|
1451
|
-
* @param {String} deviceUID
|
|
1510
|
+
* @param {String} projectOrProductUID
|
|
1511
|
+
* @param {String} deviceUID
|
|
1452
1512
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1453
1513
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1454
1514
|
*/
|
|
@@ -1469,23 +1529,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1469
1529
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
|
|
1470
1530
|
}
|
|
1471
1531
|
var pathParams = {
|
|
1472
|
-
|
|
1473
|
-
|
|
1532
|
+
projectOrProductUID: projectOrProductUID,
|
|
1533
|
+
deviceUID: deviceUID
|
|
1474
1534
|
};
|
|
1475
1535
|
var queryParams = {};
|
|
1476
1536
|
var headerParams = {};
|
|
1477
1537
|
var formParams = {};
|
|
1478
|
-
var authNames = [
|
|
1479
|
-
var contentTypes = [
|
|
1480
|
-
var accepts = [
|
|
1538
|
+
var authNames = ["personalAccessToken"];
|
|
1539
|
+
var contentTypes = ["application/json"];
|
|
1540
|
+
var accepts = ["application/json"];
|
|
1481
1541
|
var returnType = _EnvironmentVariables["default"];
|
|
1482
|
-
return this.apiClient.callApi(
|
|
1542
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1483
1543
|
}
|
|
1484
1544
|
|
|
1485
1545
|
/**
|
|
1486
1546
|
* Set environment variables of a device
|
|
1487
|
-
* @param {String} projectOrProductUID
|
|
1488
|
-
* @param {String} deviceUID
|
|
1547
|
+
* @param {String} projectOrProductUID
|
|
1548
|
+
* @param {String} deviceUID
|
|
1489
1549
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1490
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1491
1551
|
*/
|
|
@@ -1499,8 +1559,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1499
1559
|
|
|
1500
1560
|
/**
|
|
1501
1561
|
* Set environment variables of a device with device pin authorization
|
|
1502
|
-
* @param {String} productUID
|
|
1503
|
-
* @param {String} deviceUID
|
|
1562
|
+
* @param {String} productUID
|
|
1563
|
+
* @param {String} deviceUID
|
|
1504
1564
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1505
1565
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1506
1566
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
@@ -1526,25 +1586,25 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1526
1586
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
1527
1587
|
}
|
|
1528
1588
|
var pathParams = {
|
|
1529
|
-
|
|
1530
|
-
|
|
1589
|
+
productUID: productUID,
|
|
1590
|
+
deviceUID: deviceUID
|
|
1531
1591
|
};
|
|
1532
1592
|
var queryParams = {};
|
|
1533
1593
|
var headerParams = {
|
|
1534
|
-
|
|
1594
|
+
"X-Auth-Token": xAuthToken
|
|
1535
1595
|
};
|
|
1536
1596
|
var formParams = {};
|
|
1537
1597
|
var authNames = [];
|
|
1538
|
-
var contentTypes = [
|
|
1539
|
-
var accepts = [
|
|
1598
|
+
var contentTypes = ["application/json"];
|
|
1599
|
+
var accepts = ["application/json"];
|
|
1540
1600
|
var returnType = _EnvironmentVariables["default"];
|
|
1541
|
-
return this.apiClient.callApi(
|
|
1601
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1542
1602
|
}
|
|
1543
1603
|
|
|
1544
1604
|
/**
|
|
1545
1605
|
* Set environment variables of a device with device pin authorization
|
|
1546
|
-
* @param {String} productUID
|
|
1547
|
-
* @param {String} deviceUID
|
|
1606
|
+
* @param {String} productUID
|
|
1607
|
+
* @param {String} deviceUID
|
|
1548
1608
|
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1549
1609
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1550
1610
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
@@ -1559,8 +1619,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1619
|
|
|
1560
1620
|
/**
|
|
1561
1621
|
* Send a signal from Notehub to a Notecard.
|
|
1562
|
-
* @param {String} projectOrProductUID
|
|
1563
|
-
* @param {String} deviceUID
|
|
1622
|
+
* @param {String} projectOrProductUID
|
|
1623
|
+
* @param {String} deviceUID
|
|
1564
1624
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1565
1625
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1566
1626
|
*/
|
|
@@ -1581,23 +1641,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1581
1641
|
throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
|
|
1582
1642
|
}
|
|
1583
1643
|
var pathParams = {
|
|
1584
|
-
|
|
1585
|
-
|
|
1644
|
+
projectOrProductUID: projectOrProductUID,
|
|
1645
|
+
deviceUID: deviceUID
|
|
1586
1646
|
};
|
|
1587
1647
|
var queryParams = {};
|
|
1588
1648
|
var headerParams = {};
|
|
1589
1649
|
var formParams = {};
|
|
1590
|
-
var authNames = [
|
|
1591
|
-
var contentTypes = [
|
|
1592
|
-
var accepts = [
|
|
1650
|
+
var authNames = ["personalAccessToken"];
|
|
1651
|
+
var contentTypes = ["application/json"];
|
|
1652
|
+
var accepts = ["application/json"];
|
|
1593
1653
|
var returnType = _SignalDevice200Response["default"];
|
|
1594
|
-
return this.apiClient.callApi(
|
|
1654
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1595
1655
|
}
|
|
1596
1656
|
|
|
1597
1657
|
/**
|
|
1598
1658
|
* Send a signal from Notehub to a Notecard.
|
|
1599
|
-
* @param {String} projectOrProductUID
|
|
1600
|
-
* @param {String} deviceUID
|
|
1659
|
+
* @param {String} projectOrProductUID
|
|
1660
|
+
* @param {String} deviceUID
|
|
1601
1661
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1602
1662
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1603
1663
|
*/
|
|
@@ -1611,10 +1671,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1611
1671
|
|
|
1612
1672
|
/**
|
|
1613
1673
|
* Update a note in a .db or .qi notefile
|
|
1614
|
-
* @param {String} projectOrProductUID
|
|
1615
|
-
* @param {String} deviceUID
|
|
1616
|
-
* @param {String} notefileID
|
|
1617
|
-
* @param {String} noteID
|
|
1674
|
+
* @param {String} projectOrProductUID
|
|
1675
|
+
* @param {String} deviceUID
|
|
1676
|
+
* @param {String} notefileID
|
|
1677
|
+
* @param {String} noteID
|
|
1618
1678
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1619
1679
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1620
1680
|
*/
|
|
@@ -1643,27 +1703,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1643
1703
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
|
|
1644
1704
|
}
|
|
1645
1705
|
var pathParams = {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1706
|
+
projectOrProductUID: projectOrProductUID,
|
|
1707
|
+
deviceUID: deviceUID,
|
|
1708
|
+
notefileID: notefileID,
|
|
1709
|
+
noteID: noteID
|
|
1650
1710
|
};
|
|
1651
1711
|
var queryParams = {};
|
|
1652
1712
|
var headerParams = {};
|
|
1653
1713
|
var formParams = {};
|
|
1654
|
-
var authNames = [
|
|
1655
|
-
var contentTypes = [
|
|
1656
|
-
var accepts = [
|
|
1714
|
+
var authNames = ["personalAccessToken"];
|
|
1715
|
+
var contentTypes = ["application/json"];
|
|
1716
|
+
var accepts = ["application/json"];
|
|
1657
1717
|
var returnType = null;
|
|
1658
|
-
return this.apiClient.callApi(
|
|
1718
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1659
1719
|
}
|
|
1660
1720
|
|
|
1661
1721
|
/**
|
|
1662
1722
|
* Update a note in a .db or .qi notefile
|
|
1663
|
-
* @param {String} projectOrProductUID
|
|
1664
|
-
* @param {String} deviceUID
|
|
1665
|
-
* @param {String} notefileID
|
|
1666
|
-
* @param {String} noteID
|
|
1723
|
+
* @param {String} projectOrProductUID
|
|
1724
|
+
* @param {String} deviceUID
|
|
1725
|
+
* @param {String} notefileID
|
|
1726
|
+
* @param {String} noteID
|
|
1667
1727
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1668
1728
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1669
1729
|
*/
|