@blues-inc/notehub-js 4.0.0-beta.3 → 4.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 +248 -247
- package/dist/ApiClient.js +155 -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 +370 -386
- 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 +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +62 -65
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateMonitor.js +125 -126
- 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 +40 -41
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/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 +99 -100
- 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/SatellitePlan.js +26 -26
- 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 +18 -18
- 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 4.0.0
|
|
50
|
-
*/
|
|
47
|
+
* Device service.
|
|
48
|
+
* @module api/DeviceApi
|
|
49
|
+
* @version 4.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,9 +188,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Delete Device
|
|
191
|
-
* @param {String} projectOrProductUID
|
|
192
|
-
* @param {String} deviceUID
|
|
193
|
-
* @param {Boolean} purge
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
|
+
* @param {String} deviceUID
|
|
193
|
+
* @param {Boolean} purge
|
|
194
194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
195
195
|
*/
|
|
196
196
|
}, {
|
|
@@ -210,26 +210,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
210
210
|
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
|
|
211
211
|
}
|
|
212
212
|
var pathParams = {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
projectOrProductUID: projectOrProductUID,
|
|
214
|
+
deviceUID: deviceUID
|
|
215
215
|
};
|
|
216
216
|
var queryParams = {
|
|
217
|
-
|
|
217
|
+
purge: purge
|
|
218
218
|
};
|
|
219
219
|
var headerParams = {};
|
|
220
220
|
var formParams = {};
|
|
221
|
-
var authNames = [
|
|
221
|
+
var authNames = ["personalAccessToken"];
|
|
222
222
|
var contentTypes = [];
|
|
223
|
-
var accepts = [
|
|
223
|
+
var accepts = ["application/json"];
|
|
224
224
|
var returnType = null;
|
|
225
|
-
return this.apiClient.callApi(
|
|
225
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* Delete Device
|
|
230
|
-
* @param {String} projectOrProductUID
|
|
231
|
-
* @param {String} deviceUID
|
|
232
|
-
* @param {Boolean} purge
|
|
230
|
+
* @param {String} projectOrProductUID
|
|
231
|
+
* @param {String} deviceUID
|
|
232
|
+
* @param {Boolean} purge
|
|
233
233
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
234
234
|
*/
|
|
235
235
|
}, {
|
|
@@ -242,8 +242,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Delete environment variable of a device
|
|
245
|
-
* @param {String} projectOrProductUID
|
|
246
|
-
* @param {String} deviceUID
|
|
245
|
+
* @param {String} projectOrProductUID
|
|
246
|
+
* @param {String} deviceUID
|
|
247
247
|
* @param {String} key The environment variable key to delete.
|
|
248
248
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
249
249
|
*/
|
|
@@ -264,24 +264,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
264
264
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
|
|
265
265
|
}
|
|
266
266
|
var pathParams = {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
projectOrProductUID: projectOrProductUID,
|
|
268
|
+
deviceUID: deviceUID,
|
|
269
|
+
key: key
|
|
270
270
|
};
|
|
271
271
|
var queryParams = {};
|
|
272
272
|
var headerParams = {};
|
|
273
273
|
var formParams = {};
|
|
274
|
-
var authNames = [
|
|
274
|
+
var authNames = ["personalAccessToken"];
|
|
275
275
|
var contentTypes = [];
|
|
276
|
-
var accepts = [
|
|
276
|
+
var accepts = ["application/json"];
|
|
277
277
|
var returnType = _EnvironmentVariables["default"];
|
|
278
|
-
return this.apiClient.callApi(
|
|
278
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* Delete environment variable of a device
|
|
283
|
-
* @param {String} projectOrProductUID
|
|
284
|
-
* @param {String} deviceUID
|
|
283
|
+
* @param {String} projectOrProductUID
|
|
284
|
+
* @param {String} deviceUID
|
|
285
285
|
* @param {String} key The environment variable key to delete.
|
|
286
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
287
287
|
*/
|
|
@@ -295,10 +295,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* Delete a note from a .db or .qi notefile
|
|
298
|
-
* @param {String} projectOrProductUID
|
|
299
|
-
* @param {String} deviceUID
|
|
300
|
-
* @param {String} notefileID
|
|
301
|
-
* @param {String} noteID
|
|
298
|
+
* @param {String} projectOrProductUID
|
|
299
|
+
* @param {String} deviceUID
|
|
300
|
+
* @param {String} notefileID
|
|
301
|
+
* @param {String} noteID
|
|
302
302
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
303
303
|
*/
|
|
304
304
|
}, {
|
|
@@ -322,27 +322,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
322
322
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
|
|
323
323
|
}
|
|
324
324
|
var pathParams = {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
projectOrProductUID: projectOrProductUID,
|
|
326
|
+
deviceUID: deviceUID,
|
|
327
|
+
notefileID: notefileID,
|
|
328
|
+
noteID: noteID
|
|
329
329
|
};
|
|
330
330
|
var queryParams = {};
|
|
331
331
|
var headerParams = {};
|
|
332
332
|
var formParams = {};
|
|
333
|
-
var authNames = [
|
|
333
|
+
var authNames = ["personalAccessToken"];
|
|
334
334
|
var contentTypes = [];
|
|
335
|
-
var accepts = [
|
|
335
|
+
var accepts = ["application/json"];
|
|
336
336
|
var returnType = null;
|
|
337
|
-
return this.apiClient.callApi(
|
|
337
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* Delete a note from a .db or .qi notefile
|
|
342
|
-
* @param {String} projectOrProductUID
|
|
343
|
-
* @param {String} deviceUID
|
|
344
|
-
* @param {String} notefileID
|
|
345
|
-
* @param {String} noteID
|
|
342
|
+
* @param {String} projectOrProductUID
|
|
343
|
+
* @param {String} deviceUID
|
|
344
|
+
* @param {String} notefileID
|
|
345
|
+
* @param {String} noteID
|
|
346
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
347
347
|
*/
|
|
348
348
|
}, {
|
|
@@ -355,9 +355,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
355
355
|
|
|
356
356
|
/**
|
|
357
357
|
* Deletes Notefiles and the Notes they contain.
|
|
358
|
-
* @param {String} projectOrProductUID
|
|
359
|
-
* @param {String} deviceUID
|
|
360
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
358
|
+
* @param {String} projectOrProductUID
|
|
359
|
+
* @param {String} deviceUID
|
|
360
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
361
361
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
362
362
|
*/
|
|
363
363
|
}, {
|
|
@@ -377,24 +377,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
377
377
|
throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
|
|
378
378
|
}
|
|
379
379
|
var pathParams = {
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
projectOrProductUID: projectOrProductUID,
|
|
381
|
+
deviceUID: deviceUID
|
|
382
382
|
};
|
|
383
383
|
var queryParams = {};
|
|
384
384
|
var headerParams = {};
|
|
385
385
|
var formParams = {};
|
|
386
|
-
var authNames = [
|
|
387
|
-
var contentTypes = [
|
|
388
|
-
var accepts = [
|
|
386
|
+
var authNames = ["personalAccessToken"];
|
|
387
|
+
var contentTypes = ["application/json"];
|
|
388
|
+
var accepts = ["application/json"];
|
|
389
389
|
var returnType = null;
|
|
390
|
-
return this.apiClient.callApi(
|
|
390
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
394
|
* Deletes Notefiles and the Notes they contain.
|
|
395
|
-
* @param {String} projectOrProductUID
|
|
396
|
-
* @param {String} deviceUID
|
|
397
|
-
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
395
|
+
* @param {String} projectOrProductUID
|
|
396
|
+
* @param {String} deviceUID
|
|
397
|
+
* @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
|
|
398
398
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
399
399
|
*/
|
|
400
400
|
}, {
|
|
@@ -407,8 +407,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* Disable Device
|
|
410
|
-
* @param {String} projectOrProductUID
|
|
411
|
-
* @param {String} deviceUID
|
|
410
|
+
* @param {String} projectOrProductUID
|
|
411
|
+
* @param {String} deviceUID
|
|
412
412
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
413
413
|
*/
|
|
414
414
|
}, {
|
|
@@ -424,23 +424,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
424
424
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
|
|
425
425
|
}
|
|
426
426
|
var pathParams = {
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
projectOrProductUID: projectOrProductUID,
|
|
428
|
+
deviceUID: deviceUID
|
|
429
429
|
};
|
|
430
430
|
var queryParams = {};
|
|
431
431
|
var headerParams = {};
|
|
432
432
|
var formParams = {};
|
|
433
|
-
var authNames = [
|
|
433
|
+
var authNames = ["personalAccessToken"];
|
|
434
434
|
var contentTypes = [];
|
|
435
|
-
var accepts = [
|
|
435
|
+
var accepts = ["application/json"];
|
|
436
436
|
var returnType = null;
|
|
437
|
-
return this.apiClient.callApi(
|
|
437
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
441
|
* Disable Device
|
|
442
|
-
* @param {String} projectOrProductUID
|
|
443
|
-
* @param {String} deviceUID
|
|
442
|
+
* @param {String} projectOrProductUID
|
|
443
|
+
* @param {String} deviceUID
|
|
444
444
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
445
445
|
*/
|
|
446
446
|
}, {
|
|
@@ -453,8 +453,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
455
|
* Disable Connectivity Assurance
|
|
456
|
-
* @param {String} projectOrProductUID
|
|
457
|
-
* @param {String} deviceUID
|
|
456
|
+
* @param {String} projectOrProductUID
|
|
457
|
+
* @param {String} deviceUID
|
|
458
458
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
459
459
|
*/
|
|
460
460
|
}, {
|
|
@@ -470,23 +470,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
470
470
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
|
|
471
471
|
}
|
|
472
472
|
var pathParams = {
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
projectOrProductUID: projectOrProductUID,
|
|
474
|
+
deviceUID: deviceUID
|
|
475
475
|
};
|
|
476
476
|
var queryParams = {};
|
|
477
477
|
var headerParams = {};
|
|
478
478
|
var formParams = {};
|
|
479
|
-
var authNames = [
|
|
479
|
+
var authNames = ["personalAccessToken"];
|
|
480
480
|
var contentTypes = [];
|
|
481
|
-
var accepts = [
|
|
481
|
+
var accepts = ["application/json"];
|
|
482
482
|
var returnType = null;
|
|
483
|
-
return this.apiClient.callApi(
|
|
483
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* Disable Connectivity Assurance
|
|
488
|
-
* @param {String} projectOrProductUID
|
|
489
|
-
* @param {String} deviceUID
|
|
488
|
+
* @param {String} projectOrProductUID
|
|
489
|
+
* @param {String} deviceUID
|
|
490
490
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
491
491
|
*/
|
|
492
492
|
}, {
|
|
@@ -499,8 +499,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* Enable Device
|
|
502
|
-
* @param {String} projectOrProductUID
|
|
503
|
-
* @param {String} deviceUID
|
|
502
|
+
* @param {String} projectOrProductUID
|
|
503
|
+
* @param {String} deviceUID
|
|
504
504
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
505
505
|
*/
|
|
506
506
|
}, {
|
|
@@ -516,23 +516,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
516
516
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
|
|
517
517
|
}
|
|
518
518
|
var pathParams = {
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
projectOrProductUID: projectOrProductUID,
|
|
520
|
+
deviceUID: deviceUID
|
|
521
521
|
};
|
|
522
522
|
var queryParams = {};
|
|
523
523
|
var headerParams = {};
|
|
524
524
|
var formParams = {};
|
|
525
|
-
var authNames = [
|
|
525
|
+
var authNames = ["personalAccessToken"];
|
|
526
526
|
var contentTypes = [];
|
|
527
|
-
var accepts = [
|
|
527
|
+
var accepts = ["application/json"];
|
|
528
528
|
var returnType = null;
|
|
529
|
-
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);
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* Enable Device
|
|
534
|
-
* @param {String} projectOrProductUID
|
|
535
|
-
* @param {String} deviceUID
|
|
534
|
+
* @param {String} projectOrProductUID
|
|
535
|
+
* @param {String} deviceUID
|
|
536
536
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
537
537
|
*/
|
|
538
538
|
}, {
|
|
@@ -545,8 +545,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
547
|
* Enable Connectivity Assurance
|
|
548
|
-
* @param {String} projectOrProductUID
|
|
549
|
-
* @param {String} deviceUID
|
|
548
|
+
* @param {String} projectOrProductUID
|
|
549
|
+
* @param {String} deviceUID
|
|
550
550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
551
551
|
*/
|
|
552
552
|
}, {
|
|
@@ -562,23 +562,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
562
562
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
|
|
563
563
|
}
|
|
564
564
|
var pathParams = {
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
projectOrProductUID: projectOrProductUID,
|
|
566
|
+
deviceUID: deviceUID
|
|
567
567
|
};
|
|
568
568
|
var queryParams = {};
|
|
569
569
|
var headerParams = {};
|
|
570
570
|
var formParams = {};
|
|
571
|
-
var authNames = [
|
|
571
|
+
var authNames = ["personalAccessToken"];
|
|
572
572
|
var contentTypes = [];
|
|
573
|
-
var accepts = [
|
|
573
|
+
var accepts = ["application/json"];
|
|
574
574
|
var returnType = null;
|
|
575
|
-
return this.apiClient.callApi(
|
|
575
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* Enable Connectivity Assurance
|
|
580
|
-
* @param {String} projectOrProductUID
|
|
581
|
-
* @param {String} deviceUID
|
|
580
|
+
* @param {String} projectOrProductUID
|
|
581
|
+
* @param {String} deviceUID
|
|
582
582
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
583
583
|
*/
|
|
584
584
|
}, {
|
|
@@ -591,10 +591,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
591
591
|
|
|
592
592
|
/**
|
|
593
593
|
* Get a note from a .db or .qi notefile
|
|
594
|
-
* @param {String} projectOrProductUID
|
|
595
|
-
* @param {String} deviceUID
|
|
596
|
-
* @param {String} notefileID
|
|
597
|
-
* @param {String} noteID
|
|
594
|
+
* @param {String} projectOrProductUID
|
|
595
|
+
* @param {String} deviceUID
|
|
596
|
+
* @param {String} notefileID
|
|
597
|
+
* @param {String} noteID
|
|
598
598
|
* @param {Object} opts Optional parameters
|
|
599
599
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
600
600
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -622,30 +622,30 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
622
622
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
|
|
623
623
|
}
|
|
624
624
|
var pathParams = {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
625
|
+
projectOrProductUID: projectOrProductUID,
|
|
626
|
+
deviceUID: deviceUID,
|
|
627
|
+
notefileID: notefileID,
|
|
628
|
+
noteID: noteID
|
|
629
629
|
};
|
|
630
630
|
var queryParams = {
|
|
631
|
-
|
|
632
|
-
|
|
631
|
+
"delete": opts["_delete"],
|
|
632
|
+
deleted: opts["deleted"]
|
|
633
633
|
};
|
|
634
634
|
var headerParams = {};
|
|
635
635
|
var formParams = {};
|
|
636
|
-
var authNames = [
|
|
636
|
+
var authNames = ["personalAccessToken"];
|
|
637
637
|
var contentTypes = [];
|
|
638
|
-
var accepts = [
|
|
638
|
+
var accepts = ["application/json"];
|
|
639
639
|
var returnType = _GetDbNote200Response["default"];
|
|
640
|
-
return this.apiClient.callApi(
|
|
640
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* Get a note from a .db or .qi notefile
|
|
645
|
-
* @param {String} projectOrProductUID
|
|
646
|
-
* @param {String} deviceUID
|
|
647
|
-
* @param {String} notefileID
|
|
648
|
-
* @param {String} noteID
|
|
645
|
+
* @param {String} projectOrProductUID
|
|
646
|
+
* @param {String} deviceUID
|
|
647
|
+
* @param {String} notefileID
|
|
648
|
+
* @param {String} noteID
|
|
649
649
|
* @param {Object} opts Optional parameters
|
|
650
650
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
651
651
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -661,8 +661,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
663
|
* Get Device
|
|
664
|
-
* @param {String} projectOrProductUID
|
|
665
|
-
* @param {String} deviceUID
|
|
664
|
+
* @param {String} projectOrProductUID
|
|
665
|
+
* @param {String} deviceUID
|
|
666
666
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
|
|
667
667
|
*/
|
|
668
668
|
}, {
|
|
@@ -678,23 +678,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
678
678
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
|
|
679
679
|
}
|
|
680
680
|
var pathParams = {
|
|
681
|
-
|
|
682
|
-
|
|
681
|
+
projectOrProductUID: projectOrProductUID,
|
|
682
|
+
deviceUID: deviceUID
|
|
683
683
|
};
|
|
684
684
|
var queryParams = {};
|
|
685
685
|
var headerParams = {};
|
|
686
686
|
var formParams = {};
|
|
687
|
-
var authNames = [
|
|
687
|
+
var authNames = ["personalAccessToken"];
|
|
688
688
|
var contentTypes = [];
|
|
689
|
-
var accepts = [
|
|
689
|
+
var accepts = ["application/json"];
|
|
690
690
|
var returnType = _Device["default"];
|
|
691
|
-
return this.apiClient.callApi(
|
|
691
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
/**
|
|
695
695
|
* Get Device
|
|
696
|
-
* @param {String} projectOrProductUID
|
|
697
|
-
* @param {String} deviceUID
|
|
696
|
+
* @param {String} projectOrProductUID
|
|
697
|
+
* @param {String} deviceUID
|
|
698
698
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
|
|
699
699
|
*/
|
|
700
700
|
}, {
|
|
@@ -707,8 +707,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
707
707
|
|
|
708
708
|
/**
|
|
709
709
|
* Get environment variable hierarchy for a device
|
|
710
|
-
* @param {String} projectOrProductUID
|
|
711
|
-
* @param {String} deviceUID
|
|
710
|
+
* @param {String} projectOrProductUID
|
|
711
|
+
* @param {String} deviceUID
|
|
712
712
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
|
|
713
713
|
*/
|
|
714
714
|
}, {
|
|
@@ -724,23 +724,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
724
724
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
|
|
725
725
|
}
|
|
726
726
|
var pathParams = {
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
projectOrProductUID: projectOrProductUID,
|
|
728
|
+
deviceUID: deviceUID
|
|
729
729
|
};
|
|
730
730
|
var queryParams = {};
|
|
731
731
|
var headerParams = {};
|
|
732
732
|
var formParams = {};
|
|
733
|
-
var authNames = [
|
|
733
|
+
var authNames = ["personalAccessToken"];
|
|
734
734
|
var contentTypes = [];
|
|
735
|
-
var accepts = [
|
|
735
|
+
var accepts = ["application/json"];
|
|
736
736
|
var returnType = _EnvTreeJsonNode["default"];
|
|
737
|
-
return this.apiClient.callApi(
|
|
737
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
/**
|
|
741
741
|
* Get environment variable hierarchy for a device
|
|
742
|
-
* @param {String} projectOrProductUID
|
|
743
|
-
* @param {String} deviceUID
|
|
742
|
+
* @param {String} projectOrProductUID
|
|
743
|
+
* @param {String} deviceUID
|
|
744
744
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
|
|
745
745
|
*/
|
|
746
746
|
}, {
|
|
@@ -753,8 +753,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
753
753
|
|
|
754
754
|
/**
|
|
755
755
|
* Get environment variables of a device
|
|
756
|
-
* @param {String} projectOrProductUID
|
|
757
|
-
* @param {String} deviceUID
|
|
756
|
+
* @param {String} projectOrProductUID
|
|
757
|
+
* @param {String} deviceUID
|
|
758
758
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
759
759
|
*/
|
|
760
760
|
}, {
|
|
@@ -770,23 +770,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
770
770
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
|
|
771
771
|
}
|
|
772
772
|
var pathParams = {
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
projectOrProductUID: projectOrProductUID,
|
|
774
|
+
deviceUID: deviceUID
|
|
775
775
|
};
|
|
776
776
|
var queryParams = {};
|
|
777
777
|
var headerParams = {};
|
|
778
778
|
var formParams = {};
|
|
779
|
-
var authNames = [
|
|
779
|
+
var authNames = ["personalAccessToken"];
|
|
780
780
|
var contentTypes = [];
|
|
781
|
-
var accepts = [
|
|
781
|
+
var accepts = ["application/json"];
|
|
782
782
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
783
|
-
return this.apiClient.callApi(
|
|
783
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
/**
|
|
787
787
|
* Get environment variables of a device
|
|
788
|
-
* @param {String} projectOrProductUID
|
|
789
|
-
* @param {String} deviceUID
|
|
788
|
+
* @param {String} projectOrProductUID
|
|
789
|
+
* @param {String} deviceUID
|
|
790
790
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
791
791
|
*/
|
|
792
792
|
}, {
|
|
@@ -799,14 +799,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
799
799
|
|
|
800
800
|
/**
|
|
801
801
|
* Get environment variables of a device with device pin authorization
|
|
802
|
-
* @param {String} productUID
|
|
803
|
-
* @param {String} deviceUID
|
|
804
|
-
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
802
|
+
* @param {String} productUID
|
|
803
|
+
* @param {String} deviceUID
|
|
805
804
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
806
805
|
*/
|
|
807
806
|
}, {
|
|
808
807
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
809
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID
|
|
808
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
810
809
|
var postBody = null;
|
|
811
810
|
// verify the required parameter 'productUID' is set
|
|
812
811
|
if (productUID === undefined || productUID === null) {
|
|
@@ -816,45 +815,38 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
816
815
|
if (deviceUID === undefined || deviceUID === null) {
|
|
817
816
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
818
817
|
}
|
|
819
|
-
// verify the required parameter 'xAuthToken' is set
|
|
820
|
-
if (xAuthToken === undefined || xAuthToken === null) {
|
|
821
|
-
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
|
|
822
|
-
}
|
|
823
818
|
var pathParams = {
|
|
824
|
-
|
|
825
|
-
|
|
819
|
+
productUID: productUID,
|
|
820
|
+
deviceUID: deviceUID
|
|
826
821
|
};
|
|
827
822
|
var queryParams = {};
|
|
828
|
-
var headerParams = {
|
|
829
|
-
'X-Auth-Token': xAuthToken
|
|
830
|
-
};
|
|
823
|
+
var headerParams = {};
|
|
831
824
|
var formParams = {};
|
|
832
|
-
var authNames = [];
|
|
825
|
+
var authNames = ["pin"];
|
|
833
826
|
var contentTypes = [];
|
|
834
|
-
var accepts = [
|
|
827
|
+
var accepts = ["application/json"];
|
|
835
828
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
836
|
-
return this.apiClient.callApi(
|
|
829
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
837
830
|
}
|
|
838
831
|
|
|
839
832
|
/**
|
|
840
833
|
* Get environment variables of a device with device pin authorization
|
|
841
|
-
* @param {String} productUID
|
|
842
|
-
* @param {String} deviceUID
|
|
843
|
-
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
834
|
+
* @param {String} productUID
|
|
835
|
+
* @param {String} deviceUID
|
|
844
836
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
845
837
|
*/
|
|
846
838
|
}, {
|
|
847
839
|
key: "getDeviceEnvironmentVariablesByPin",
|
|
848
|
-
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID
|
|
849
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID
|
|
840
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
841
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
850
842
|
return response_and_data.data;
|
|
851
843
|
});
|
|
852
844
|
}
|
|
853
845
|
|
|
854
846
|
/**
|
|
855
847
|
* Get Device Health Log
|
|
856
|
-
* @param {String} projectOrProductUID
|
|
857
|
-
* @param {String} deviceUID
|
|
848
|
+
* @param {String} projectOrProductUID
|
|
849
|
+
* @param {String} deviceUID
|
|
858
850
|
* @param {Object} opts Optional parameters
|
|
859
851
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
860
852
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -875,27 +867,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
875
867
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
|
|
876
868
|
}
|
|
877
869
|
var pathParams = {
|
|
878
|
-
|
|
879
|
-
|
|
870
|
+
projectOrProductUID: projectOrProductUID,
|
|
871
|
+
deviceUID: deviceUID
|
|
880
872
|
};
|
|
881
873
|
var queryParams = {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
874
|
+
startDate: opts["startDate"],
|
|
875
|
+
endDate: opts["endDate"],
|
|
876
|
+
log_type: this.apiClient.buildCollectionParam(opts["logType"], "multi")
|
|
885
877
|
};
|
|
886
878
|
var headerParams = {};
|
|
887
879
|
var formParams = {};
|
|
888
|
-
var authNames = [
|
|
880
|
+
var authNames = ["personalAccessToken"];
|
|
889
881
|
var contentTypes = [];
|
|
890
|
-
var accepts = [
|
|
882
|
+
var accepts = ["application/json"];
|
|
891
883
|
var returnType = _GetDeviceHealthLog200Response["default"];
|
|
892
|
-
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);
|
|
893
885
|
}
|
|
894
886
|
|
|
895
887
|
/**
|
|
896
888
|
* Get Device Health Log
|
|
897
|
-
* @param {String} projectOrProductUID
|
|
898
|
-
* @param {String} deviceUID
|
|
889
|
+
* @param {String} projectOrProductUID
|
|
890
|
+
* @param {String} deviceUID
|
|
899
891
|
* @param {Object} opts Optional parameters
|
|
900
892
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
901
893
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
@@ -912,8 +904,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
912
904
|
|
|
913
905
|
/**
|
|
914
906
|
* Get Device Latest Events
|
|
915
|
-
* @param {String} projectOrProductUID
|
|
916
|
-
* @param {String} deviceUID
|
|
907
|
+
* @param {String} projectOrProductUID
|
|
908
|
+
* @param {String} deviceUID
|
|
917
909
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
|
|
918
910
|
*/
|
|
919
911
|
}, {
|
|
@@ -929,23 +921,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
929
921
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
|
|
930
922
|
}
|
|
931
923
|
var pathParams = {
|
|
932
|
-
|
|
933
|
-
|
|
924
|
+
projectOrProductUID: projectOrProductUID,
|
|
925
|
+
deviceUID: deviceUID
|
|
934
926
|
};
|
|
935
927
|
var queryParams = {};
|
|
936
928
|
var headerParams = {};
|
|
937
929
|
var formParams = {};
|
|
938
|
-
var authNames = [
|
|
930
|
+
var authNames = ["personalAccessToken"];
|
|
939
931
|
var contentTypes = [];
|
|
940
|
-
var accepts = [
|
|
932
|
+
var accepts = ["application/json"];
|
|
941
933
|
var returnType = _GetDeviceLatestEvents200Response["default"];
|
|
942
|
-
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);
|
|
943
935
|
}
|
|
944
936
|
|
|
945
937
|
/**
|
|
946
938
|
* Get Device Latest Events
|
|
947
|
-
* @param {String} projectOrProductUID
|
|
948
|
-
* @param {String} deviceUID
|
|
939
|
+
* @param {String} projectOrProductUID
|
|
940
|
+
* @param {String} deviceUID
|
|
949
941
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
|
|
950
942
|
*/
|
|
951
943
|
}, {
|
|
@@ -958,8 +950,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
958
950
|
|
|
959
951
|
/**
|
|
960
952
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
961
|
-
* @param {String} projectOrProductUID
|
|
962
|
-
* @param {String} deviceUID
|
|
953
|
+
* @param {String} projectOrProductUID
|
|
954
|
+
* @param {String} deviceUID
|
|
963
955
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
964
956
|
*/
|
|
965
957
|
}, {
|
|
@@ -975,23 +967,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
975
967
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
976
968
|
}
|
|
977
969
|
var pathParams = {
|
|
978
|
-
|
|
979
|
-
|
|
970
|
+
projectOrProductUID: projectOrProductUID,
|
|
971
|
+
deviceUID: deviceUID
|
|
980
972
|
};
|
|
981
973
|
var queryParams = {};
|
|
982
974
|
var headerParams = {};
|
|
983
975
|
var formParams = {};
|
|
984
|
-
var authNames = [
|
|
976
|
+
var authNames = ["personalAccessToken"];
|
|
985
977
|
var contentTypes = [];
|
|
986
|
-
var accepts = [
|
|
978
|
+
var accepts = ["application/json"];
|
|
987
979
|
var returnType = _GetDevicePlans200Response["default"];
|
|
988
|
-
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);
|
|
989
981
|
}
|
|
990
982
|
|
|
991
983
|
/**
|
|
992
984
|
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
993
|
-
* @param {String} projectOrProductUID
|
|
994
|
-
* @param {String} deviceUID
|
|
985
|
+
* @param {String} projectOrProductUID
|
|
986
|
+
* @param {String} deviceUID
|
|
995
987
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
996
988
|
*/
|
|
997
989
|
}, {
|
|
@@ -1004,8 +996,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1004
996
|
|
|
1005
997
|
/**
|
|
1006
998
|
* Get Device Public Key
|
|
1007
|
-
* @param {String} projectOrProductUID
|
|
1008
|
-
* @param {String} deviceUID
|
|
999
|
+
* @param {String} projectOrProductUID
|
|
1000
|
+
* @param {String} deviceUID
|
|
1009
1001
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
|
|
1010
1002
|
*/
|
|
1011
1003
|
}, {
|
|
@@ -1021,23 +1013,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1021
1013
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
|
|
1022
1014
|
}
|
|
1023
1015
|
var pathParams = {
|
|
1024
|
-
|
|
1025
|
-
|
|
1016
|
+
projectOrProductUID: projectOrProductUID,
|
|
1017
|
+
deviceUID: deviceUID
|
|
1026
1018
|
};
|
|
1027
1019
|
var queryParams = {};
|
|
1028
1020
|
var headerParams = {};
|
|
1029
1021
|
var formParams = {};
|
|
1030
|
-
var authNames = [
|
|
1022
|
+
var authNames = ["personalAccessToken"];
|
|
1031
1023
|
var contentTypes = [];
|
|
1032
|
-
var accepts = [
|
|
1024
|
+
var accepts = ["application/json"];
|
|
1033
1025
|
var returnType = _GetDevicePublicKey200Response["default"];
|
|
1034
|
-
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);
|
|
1035
1027
|
}
|
|
1036
1028
|
|
|
1037
1029
|
/**
|
|
1038
1030
|
* Get Device Public Key
|
|
1039
|
-
* @param {String} projectOrProductUID
|
|
1040
|
-
* @param {String} deviceUID
|
|
1031
|
+
* @param {String} projectOrProductUID
|
|
1032
|
+
* @param {String} deviceUID
|
|
1041
1033
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
|
|
1042
1034
|
*/
|
|
1043
1035
|
}, {
|
|
@@ -1050,7 +1042,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1050
1042
|
|
|
1051
1043
|
/**
|
|
1052
1044
|
* Get Device Public Keys of a Project
|
|
1053
|
-
* @param {String} projectOrProductUID
|
|
1045
|
+
* @param {String} projectOrProductUID
|
|
1054
1046
|
* @param {Object} opts Optional parameters
|
|
1055
1047
|
* @param {Number} opts.pageSize (default to 50)
|
|
1056
1048
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1066,24 +1058,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1066
1058
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
|
|
1067
1059
|
}
|
|
1068
1060
|
var pathParams = {
|
|
1069
|
-
|
|
1061
|
+
projectOrProductUID: projectOrProductUID
|
|
1070
1062
|
};
|
|
1071
1063
|
var queryParams = {
|
|
1072
|
-
|
|
1073
|
-
|
|
1064
|
+
pageSize: opts["pageSize"],
|
|
1065
|
+
pageNum: opts["pageNum"]
|
|
1074
1066
|
};
|
|
1075
1067
|
var headerParams = {};
|
|
1076
1068
|
var formParams = {};
|
|
1077
|
-
var authNames = [
|
|
1069
|
+
var authNames = ["personalAccessToken"];
|
|
1078
1070
|
var contentTypes = [];
|
|
1079
|
-
var accepts = [
|
|
1071
|
+
var accepts = ["application/json"];
|
|
1080
1072
|
var returnType = _GetDevicePublicKeys200Response["default"];
|
|
1081
|
-
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);
|
|
1082
1074
|
}
|
|
1083
1075
|
|
|
1084
1076
|
/**
|
|
1085
1077
|
* Get Device Public Keys of a Project
|
|
1086
|
-
* @param {String} projectOrProductUID
|
|
1078
|
+
* @param {String} projectOrProductUID
|
|
1087
1079
|
* @param {Object} opts Optional parameters
|
|
1088
1080
|
* @param {Number} opts.pageSize (default to 50)
|
|
1089
1081
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1099,8 +1091,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1099
1091
|
|
|
1100
1092
|
/**
|
|
1101
1093
|
* Get Device Sessions
|
|
1102
|
-
* @param {String} projectOrProductUID
|
|
1103
|
-
* @param {String} deviceUID
|
|
1094
|
+
* @param {String} projectOrProductUID
|
|
1095
|
+
* @param {String} deviceUID
|
|
1104
1096
|
* @param {Object} opts Optional parameters
|
|
1105
1097
|
* @param {Number} opts.pageSize (default to 50)
|
|
1106
1098
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1122,28 +1114,28 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1122
1114
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
|
|
1123
1115
|
}
|
|
1124
1116
|
var pathParams = {
|
|
1125
|
-
|
|
1126
|
-
|
|
1117
|
+
projectOrProductUID: projectOrProductUID,
|
|
1118
|
+
deviceUID: deviceUID
|
|
1127
1119
|
};
|
|
1128
1120
|
var queryParams = {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1121
|
+
pageSize: opts["pageSize"],
|
|
1122
|
+
pageNum: opts["pageNum"],
|
|
1123
|
+
startDate: opts["startDate"],
|
|
1124
|
+
endDate: opts["endDate"]
|
|
1133
1125
|
};
|
|
1134
1126
|
var headerParams = {};
|
|
1135
1127
|
var formParams = {};
|
|
1136
|
-
var authNames = [
|
|
1128
|
+
var authNames = ["personalAccessToken"];
|
|
1137
1129
|
var contentTypes = [];
|
|
1138
|
-
var accepts = [
|
|
1130
|
+
var accepts = ["application/json"];
|
|
1139
1131
|
var returnType = _GetDeviceSessions200Response["default"];
|
|
1140
|
-
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);
|
|
1141
1133
|
}
|
|
1142
1134
|
|
|
1143
1135
|
/**
|
|
1144
1136
|
* Get Device Sessions
|
|
1145
|
-
* @param {String} projectOrProductUID
|
|
1146
|
-
* @param {String} deviceUID
|
|
1137
|
+
* @param {String} projectOrProductUID
|
|
1138
|
+
* @param {String} deviceUID
|
|
1147
1139
|
* @param {Object} opts Optional parameters
|
|
1148
1140
|
* @param {Number} opts.pageSize (default to 50)
|
|
1149
1141
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1161,18 +1153,18 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1161
1153
|
|
|
1162
1154
|
/**
|
|
1163
1155
|
* Get Devices of a Project
|
|
1164
|
-
* @param {String} projectOrProductUID
|
|
1156
|
+
* @param {String} projectOrProductUID
|
|
1165
1157
|
* @param {Object} opts Optional parameters
|
|
1166
1158
|
* @param {Number} opts.pageSize (default to 50)
|
|
1167
1159
|
* @param {Number} opts.pageNum (default to 1)
|
|
1168
1160
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1169
1161
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1170
1162
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1171
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1163
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1172
1164
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1173
1165
|
* @param {Array.<String>} opts.location Location filter
|
|
1174
1166
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1175
|
-
* @param {Array.<String>} opts.productUID
|
|
1167
|
+
* @param {Array.<String>} opts.productUID
|
|
1176
1168
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1177
1169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1178
1170
|
*/
|
|
@@ -1186,44 +1178,44 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1186
1178
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
|
|
1187
1179
|
}
|
|
1188
1180
|
var pathParams = {
|
|
1189
|
-
|
|
1181
|
+
projectOrProductUID: projectOrProductUID
|
|
1190
1182
|
};
|
|
1191
1183
|
var queryParams = {
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
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")
|
|
1203
1195
|
};
|
|
1204
1196
|
var headerParams = {};
|
|
1205
1197
|
var formParams = {};
|
|
1206
|
-
var authNames = [
|
|
1198
|
+
var authNames = ["personalAccessToken"];
|
|
1207
1199
|
var contentTypes = [];
|
|
1208
|
-
var accepts = [
|
|
1200
|
+
var accepts = ["application/json"];
|
|
1209
1201
|
var returnType = _GetDevices200Response["default"];
|
|
1210
|
-
return this.apiClient.callApi(
|
|
1202
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1211
1203
|
}
|
|
1212
1204
|
|
|
1213
1205
|
/**
|
|
1214
1206
|
* Get Devices of a Project
|
|
1215
|
-
* @param {String} projectOrProductUID
|
|
1207
|
+
* @param {String} projectOrProductUID
|
|
1216
1208
|
* @param {Object} opts Optional parameters
|
|
1217
1209
|
* @param {Number} opts.pageSize (default to 50)
|
|
1218
1210
|
* @param {Number} opts.pageNum (default to 1)
|
|
1219
1211
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
1220
1212
|
* @param {Array.<String>} opts.tag Tag filter
|
|
1221
1213
|
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
1222
|
-
* @param {Array.<String>} opts.fleetUID
|
|
1214
|
+
* @param {Array.<String>} opts.fleetUID
|
|
1223
1215
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1224
1216
|
* @param {Array.<String>} opts.location Location filter
|
|
1225
1217
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1226
|
-
* @param {Array.<String>} opts.productUID
|
|
1218
|
+
* @param {Array.<String>} opts.productUID
|
|
1227
1219
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1228
1220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1229
1221
|
*/
|
|
@@ -1237,8 +1229,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1237
1229
|
|
|
1238
1230
|
/**
|
|
1239
1231
|
* Get Devices of a Fleet within a Project
|
|
1240
|
-
* @param {String} projectOrProductUID
|
|
1241
|
-
* @param {String} fleetUID
|
|
1232
|
+
* @param {String} projectOrProductUID
|
|
1233
|
+
* @param {String} fleetUID
|
|
1242
1234
|
* @param {Object} opts Optional parameters
|
|
1243
1235
|
* @param {Number} opts.pageSize (default to 50)
|
|
1244
1236
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1248,7 +1240,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1248
1240
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1249
1241
|
* @param {Array.<String>} opts.location Location filter
|
|
1250
1242
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1251
|
-
* @param {Array.<String>} opts.productUID
|
|
1243
|
+
* @param {Array.<String>} opts.productUID
|
|
1252
1244
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1253
1245
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
|
|
1254
1246
|
*/
|
|
@@ -1266,34 +1258,34 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1266
1258
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
|
|
1267
1259
|
}
|
|
1268
1260
|
var pathParams = {
|
|
1269
|
-
|
|
1270
|
-
|
|
1261
|
+
projectOrProductUID: projectOrProductUID,
|
|
1262
|
+
fleetUID: fleetUID
|
|
1271
1263
|
};
|
|
1272
1264
|
var queryParams = {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
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")
|
|
1283
1275
|
};
|
|
1284
1276
|
var headerParams = {};
|
|
1285
1277
|
var formParams = {};
|
|
1286
|
-
var authNames = [
|
|
1278
|
+
var authNames = ["personalAccessToken"];
|
|
1287
1279
|
var contentTypes = [];
|
|
1288
|
-
var accepts = [
|
|
1280
|
+
var accepts = ["application/json"];
|
|
1289
1281
|
var returnType = _GetDevices200Response["default"];
|
|
1290
|
-
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);
|
|
1291
1283
|
}
|
|
1292
1284
|
|
|
1293
1285
|
/**
|
|
1294
1286
|
* Get Devices of a Fleet within a Project
|
|
1295
|
-
* @param {String} projectOrProductUID
|
|
1296
|
-
* @param {String} fleetUID
|
|
1287
|
+
* @param {String} projectOrProductUID
|
|
1288
|
+
* @param {String} fleetUID
|
|
1297
1289
|
* @param {Object} opts Optional parameters
|
|
1298
1290
|
* @param {Number} opts.pageSize (default to 50)
|
|
1299
1291
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1303,7 +1295,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1303
1295
|
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
1304
1296
|
* @param {Array.<String>} opts.location Location filter
|
|
1305
1297
|
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
1306
|
-
* @param {Array.<String>} opts.productUID
|
|
1298
|
+
* @param {Array.<String>} opts.productUID
|
|
1307
1299
|
* @param {Array.<String>} opts.sku SKU filter
|
|
1308
1300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
|
|
1309
1301
|
*/
|
|
@@ -1317,9 +1309,9 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1317
1309
|
|
|
1318
1310
|
/**
|
|
1319
1311
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1320
|
-
* @param {String} projectOrProductUID
|
|
1321
|
-
* @param {String} deviceUID
|
|
1322
|
-
* @param {String} notefileID
|
|
1312
|
+
* @param {String} projectOrProductUID
|
|
1313
|
+
* @param {String} deviceUID
|
|
1314
|
+
* @param {String} notefileID
|
|
1323
1315
|
* @param {Object} opts Optional parameters
|
|
1324
1316
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1325
1317
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1344,29 +1336,29 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1344
1336
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
|
|
1345
1337
|
}
|
|
1346
1338
|
var pathParams = {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1339
|
+
projectOrProductUID: projectOrProductUID,
|
|
1340
|
+
deviceUID: deviceUID,
|
|
1341
|
+
notefileID: notefileID
|
|
1350
1342
|
};
|
|
1351
1343
|
var queryParams = {
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1344
|
+
max: opts["max"],
|
|
1345
|
+
deleted: opts["deleted"],
|
|
1346
|
+
"delete": opts["_delete"]
|
|
1355
1347
|
};
|
|
1356
1348
|
var headerParams = {};
|
|
1357
1349
|
var formParams = {};
|
|
1358
|
-
var authNames = [
|
|
1350
|
+
var authNames = ["personalAccessToken"];
|
|
1359
1351
|
var contentTypes = [];
|
|
1360
|
-
var accepts = [
|
|
1352
|
+
var accepts = ["application/json"];
|
|
1361
1353
|
var returnType = _GetNotefile200Response["default"];
|
|
1362
|
-
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);
|
|
1363
1355
|
}
|
|
1364
1356
|
|
|
1365
1357
|
/**
|
|
1366
1358
|
* For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
|
|
1367
|
-
* @param {String} projectOrProductUID
|
|
1368
|
-
* @param {String} deviceUID
|
|
1369
|
-
* @param {String} notefileID
|
|
1359
|
+
* @param {String} projectOrProductUID
|
|
1360
|
+
* @param {String} deviceUID
|
|
1361
|
+
* @param {String} notefileID
|
|
1370
1362
|
* @param {Object} opts Optional parameters
|
|
1371
1363
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
1372
1364
|
* @param {Boolean} opts.deleted true to return deleted notes.
|
|
@@ -1383,8 +1375,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1383
1375
|
|
|
1384
1376
|
/**
|
|
1385
1377
|
* Lists .qi and .db files for the device
|
|
1386
|
-
* @param {String} projectOrProductUID
|
|
1387
|
-
* @param {String} deviceUID
|
|
1378
|
+
* @param {String} projectOrProductUID
|
|
1379
|
+
* @param {String} deviceUID
|
|
1388
1380
|
* @param {Object} opts Optional parameters
|
|
1389
1381
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1390
1382
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1404,26 +1396,26 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1404
1396
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
|
|
1405
1397
|
}
|
|
1406
1398
|
var pathParams = {
|
|
1407
|
-
|
|
1408
|
-
|
|
1399
|
+
projectOrProductUID: projectOrProductUID,
|
|
1400
|
+
deviceUID: deviceUID
|
|
1409
1401
|
};
|
|
1410
1402
|
var queryParams = {
|
|
1411
|
-
|
|
1412
|
-
|
|
1403
|
+
files: this.apiClient.buildCollectionParam(opts["files"], "multi"),
|
|
1404
|
+
pending: opts["pending"]
|
|
1413
1405
|
};
|
|
1414
1406
|
var headerParams = {};
|
|
1415
1407
|
var formParams = {};
|
|
1416
|
-
var authNames = [
|
|
1408
|
+
var authNames = ["personalAccessToken"];
|
|
1417
1409
|
var contentTypes = [];
|
|
1418
|
-
var accepts = [
|
|
1410
|
+
var accepts = ["application/json"];
|
|
1419
1411
|
var returnType = [_Notefile["default"]];
|
|
1420
|
-
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);
|
|
1421
1413
|
}
|
|
1422
1414
|
|
|
1423
1415
|
/**
|
|
1424
1416
|
* Lists .qi and .db files for the device
|
|
1425
|
-
* @param {String} projectOrProductUID
|
|
1426
|
-
* @param {String} deviceUID
|
|
1417
|
+
* @param {String} projectOrProductUID
|
|
1418
|
+
* @param {String} deviceUID
|
|
1427
1419
|
* @param {Object} opts Optional parameters
|
|
1428
1420
|
* @param {Array.<String>} opts.files One or more files to obtain change information from.
|
|
1429
1421
|
* @param {Boolean} opts.pending show only files that are pending sync to the Notecard
|
|
@@ -1439,8 +1431,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1439
1431
|
|
|
1440
1432
|
/**
|
|
1441
1433
|
* Provision Device for a Project
|
|
1442
|
-
* @param {String} projectOrProductUID
|
|
1443
|
-
* @param {String} deviceUID
|
|
1434
|
+
* @param {String} projectOrProductUID
|
|
1435
|
+
* @param {String} deviceUID
|
|
1444
1436
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1445
1437
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
1446
1438
|
*/
|
|
@@ -1461,23 +1453,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1461
1453
|
throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
|
|
1462
1454
|
}
|
|
1463
1455
|
var pathParams = {
|
|
1464
|
-
|
|
1465
|
-
|
|
1456
|
+
projectOrProductUID: projectOrProductUID,
|
|
1457
|
+
deviceUID: deviceUID
|
|
1466
1458
|
};
|
|
1467
1459
|
var queryParams = {};
|
|
1468
1460
|
var headerParams = {};
|
|
1469
1461
|
var formParams = {};
|
|
1470
|
-
var authNames = [
|
|
1471
|
-
var contentTypes = [
|
|
1472
|
-
var accepts = [
|
|
1462
|
+
var authNames = ["personalAccessToken"];
|
|
1463
|
+
var contentTypes = ["application/json"];
|
|
1464
|
+
var accepts = ["application/json"];
|
|
1473
1465
|
var returnType = Object;
|
|
1474
|
-
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);
|
|
1475
1467
|
}
|
|
1476
1468
|
|
|
1477
1469
|
/**
|
|
1478
1470
|
* Provision Device for a Project
|
|
1479
|
-
* @param {String} projectOrProductUID
|
|
1480
|
-
* @param {String} deviceUID
|
|
1471
|
+
* @param {String} projectOrProductUID
|
|
1472
|
+
* @param {String} deviceUID
|
|
1481
1473
|
* @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
|
|
1482
1474
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
1483
1475
|
*/
|
|
@@ -1491,8 +1483,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1483
|
|
|
1492
1484
|
/**
|
|
1493
1485
|
* Set environment variables of a device
|
|
1494
|
-
* @param {String} projectOrProductUID
|
|
1495
|
-
* @param {String} deviceUID
|
|
1486
|
+
* @param {String} projectOrProductUID
|
|
1487
|
+
* @param {String} deviceUID
|
|
1496
1488
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1497
1489
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1498
1490
|
*/
|
|
@@ -1513,23 +1505,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1513
1505
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariables");
|
|
1514
1506
|
}
|
|
1515
1507
|
var pathParams = {
|
|
1516
|
-
|
|
1517
|
-
|
|
1508
|
+
projectOrProductUID: projectOrProductUID,
|
|
1509
|
+
deviceUID: deviceUID
|
|
1518
1510
|
};
|
|
1519
1511
|
var queryParams = {};
|
|
1520
1512
|
var headerParams = {};
|
|
1521
1513
|
var formParams = {};
|
|
1522
|
-
var authNames = [
|
|
1523
|
-
var contentTypes = [
|
|
1524
|
-
var accepts = [
|
|
1514
|
+
var authNames = ["personalAccessToken"];
|
|
1515
|
+
var contentTypes = ["application/json"];
|
|
1516
|
+
var accepts = ["application/json"];
|
|
1525
1517
|
var returnType = _EnvironmentVariables["default"];
|
|
1526
|
-
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);
|
|
1527
1519
|
}
|
|
1528
1520
|
|
|
1529
1521
|
/**
|
|
1530
1522
|
* Set environment variables of a device
|
|
1531
|
-
* @param {String} projectOrProductUID
|
|
1532
|
-
* @param {String} deviceUID
|
|
1523
|
+
* @param {String} projectOrProductUID
|
|
1524
|
+
* @param {String} deviceUID
|
|
1533
1525
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1534
1526
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1535
1527
|
*/
|
|
@@ -1543,15 +1535,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1543
1535
|
|
|
1544
1536
|
/**
|
|
1545
1537
|
* Set environment variables of a device with device pin authorization
|
|
1546
|
-
* @param {String} productUID
|
|
1547
|
-
* @param {String} deviceUID
|
|
1548
|
-
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1538
|
+
* @param {String} productUID
|
|
1539
|
+
* @param {String} deviceUID
|
|
1549
1540
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1550
1541
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1551
1542
|
*/
|
|
1552
1543
|
}, {
|
|
1553
1544
|
key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
1554
|
-
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID,
|
|
1545
|
+
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
1555
1546
|
var postBody = environmentVariables;
|
|
1556
1547
|
// verify the required parameter 'productUID' is set
|
|
1557
1548
|
if (productUID === undefined || productUID === null) {
|
|
@@ -1561,50 +1552,43 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1561
1552
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1562
1553
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
|
|
1563
1554
|
}
|
|
1564
|
-
// verify the required parameter 'xAuthToken' is set
|
|
1565
|
-
if (xAuthToken === undefined || xAuthToken === null) {
|
|
1566
|
-
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling setDeviceEnvironmentVariablesByPin");
|
|
1567
|
-
}
|
|
1568
1555
|
// verify the required parameter 'environmentVariables' is set
|
|
1569
1556
|
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1570
1557
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
1571
1558
|
}
|
|
1572
1559
|
var pathParams = {
|
|
1573
|
-
|
|
1574
|
-
|
|
1560
|
+
productUID: productUID,
|
|
1561
|
+
deviceUID: deviceUID
|
|
1575
1562
|
};
|
|
1576
1563
|
var queryParams = {};
|
|
1577
|
-
var headerParams = {
|
|
1578
|
-
'X-Auth-Token': xAuthToken
|
|
1579
|
-
};
|
|
1564
|
+
var headerParams = {};
|
|
1580
1565
|
var formParams = {};
|
|
1581
|
-
var authNames = [];
|
|
1582
|
-
var contentTypes = [
|
|
1583
|
-
var accepts = [
|
|
1566
|
+
var authNames = ["pin"];
|
|
1567
|
+
var contentTypes = ["application/json"];
|
|
1568
|
+
var accepts = ["application/json"];
|
|
1584
1569
|
var returnType = _EnvironmentVariables["default"];
|
|
1585
|
-
return this.apiClient.callApi(
|
|
1570
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1586
1571
|
}
|
|
1587
1572
|
|
|
1588
1573
|
/**
|
|
1589
1574
|
* Set environment variables of a device with device pin authorization
|
|
1590
|
-
* @param {String} productUID
|
|
1591
|
-
* @param {String} deviceUID
|
|
1592
|
-
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1575
|
+
* @param {String} productUID
|
|
1576
|
+
* @param {String} deviceUID
|
|
1593
1577
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1594
1578
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1595
1579
|
*/
|
|
1596
1580
|
}, {
|
|
1597
1581
|
key: "setDeviceEnvironmentVariablesByPin",
|
|
1598
|
-
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID,
|
|
1599
|
-
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID,
|
|
1582
|
+
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
1583
|
+
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1600
1584
|
return response_and_data.data;
|
|
1601
1585
|
});
|
|
1602
1586
|
}
|
|
1603
1587
|
|
|
1604
1588
|
/**
|
|
1605
1589
|
* Send a signal from Notehub to a Notecard.
|
|
1606
|
-
* @param {String} projectOrProductUID
|
|
1607
|
-
* @param {String} deviceUID
|
|
1590
|
+
* @param {String} projectOrProductUID
|
|
1591
|
+
* @param {String} deviceUID
|
|
1608
1592
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1609
1593
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
|
|
1610
1594
|
*/
|
|
@@ -1625,23 +1609,23 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1625
1609
|
throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
|
|
1626
1610
|
}
|
|
1627
1611
|
var pathParams = {
|
|
1628
|
-
|
|
1629
|
-
|
|
1612
|
+
projectOrProductUID: projectOrProductUID,
|
|
1613
|
+
deviceUID: deviceUID
|
|
1630
1614
|
};
|
|
1631
1615
|
var queryParams = {};
|
|
1632
1616
|
var headerParams = {};
|
|
1633
1617
|
var formParams = {};
|
|
1634
|
-
var authNames = [
|
|
1635
|
-
var contentTypes = [
|
|
1636
|
-
var accepts = [
|
|
1618
|
+
var authNames = ["personalAccessToken"];
|
|
1619
|
+
var contentTypes = ["application/json"];
|
|
1620
|
+
var accepts = ["application/json"];
|
|
1637
1621
|
var returnType = _SignalDevice200Response["default"];
|
|
1638
|
-
return this.apiClient.callApi(
|
|
1622
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1639
1623
|
}
|
|
1640
1624
|
|
|
1641
1625
|
/**
|
|
1642
1626
|
* Send a signal from Notehub to a Notecard.
|
|
1643
|
-
* @param {String} projectOrProductUID
|
|
1644
|
-
* @param {String} deviceUID
|
|
1627
|
+
* @param {String} projectOrProductUID
|
|
1628
|
+
* @param {String} deviceUID
|
|
1645
1629
|
* @param {module:model/Body} body Body or payload of signal to be sent to the device
|
|
1646
1630
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
|
|
1647
1631
|
*/
|
|
@@ -1655,10 +1639,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1655
1639
|
|
|
1656
1640
|
/**
|
|
1657
1641
|
* Update a note in a .db or .qi notefile
|
|
1658
|
-
* @param {String} projectOrProductUID
|
|
1659
|
-
* @param {String} deviceUID
|
|
1660
|
-
* @param {String} notefileID
|
|
1661
|
-
* @param {String} noteID
|
|
1642
|
+
* @param {String} projectOrProductUID
|
|
1643
|
+
* @param {String} deviceUID
|
|
1644
|
+
* @param {String} notefileID
|
|
1645
|
+
* @param {String} noteID
|
|
1662
1646
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1663
1647
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1664
1648
|
*/
|
|
@@ -1687,27 +1671,27 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1687
1671
|
throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
|
|
1688
1672
|
}
|
|
1689
1673
|
var pathParams = {
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1674
|
+
projectOrProductUID: projectOrProductUID,
|
|
1675
|
+
deviceUID: deviceUID,
|
|
1676
|
+
notefileID: notefileID,
|
|
1677
|
+
noteID: noteID
|
|
1694
1678
|
};
|
|
1695
1679
|
var queryParams = {};
|
|
1696
1680
|
var headerParams = {};
|
|
1697
1681
|
var formParams = {};
|
|
1698
|
-
var authNames = [
|
|
1699
|
-
var contentTypes = [
|
|
1700
|
-
var accepts = [
|
|
1682
|
+
var authNames = ["personalAccessToken"];
|
|
1683
|
+
var contentTypes = ["application/json"];
|
|
1684
|
+
var accepts = ["application/json"];
|
|
1701
1685
|
var returnType = null;
|
|
1702
|
-
return this.apiClient.callApi(
|
|
1686
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1703
1687
|
}
|
|
1704
1688
|
|
|
1705
1689
|
/**
|
|
1706
1690
|
* Update a note in a .db or .qi notefile
|
|
1707
|
-
* @param {String} projectOrProductUID
|
|
1708
|
-
* @param {String} deviceUID
|
|
1709
|
-
* @param {String} notefileID
|
|
1710
|
-
* @param {String} noteID
|
|
1691
|
+
* @param {String} projectOrProductUID
|
|
1692
|
+
* @param {String} deviceUID
|
|
1693
|
+
* @param {String} notefileID
|
|
1694
|
+
* @param {String} noteID
|
|
1711
1695
|
* @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
|
|
1712
1696
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1713
1697
|
*/
|