@blues-inc/notehub-js 4.0.0-beta.2 → 4.0.0-beta.4
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 +1 -10
- package/dist/ApiClient.js +2 -7
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +31 -23
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +7 -2
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +17 -10
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +8 -3
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 4.0.0-beta.
|
|
9
|
+
- Package version: 4.0.0-beta.4
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -372,12 +372,3 @@ Class | Method | HTTP request | Description
|
|
|
372
372
|
|
|
373
373
|
- **Type**: Bearer authentication
|
|
374
374
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
### pin
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
- **Type**: API key
|
|
381
|
-
- **API key parameter name**: X-Auth-Token
|
|
382
|
-
- **Location**: HTTP header
|
|
383
|
-
|
package/dist/ApiClient.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -58,11 +58,6 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
58
58
|
this.authentications = {
|
|
59
59
|
'personalAccessToken': {
|
|
60
60
|
type: 'bearer'
|
|
61
|
-
},
|
|
62
|
-
'pin': {
|
|
63
|
-
type: 'apiKey',
|
|
64
|
-
'in': 'header',
|
|
65
|
-
name: 'X-Auth-Token'
|
|
66
61
|
}
|
|
67
62
|
};
|
|
68
63
|
|
|
@@ -73,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
73
68
|
*/
|
|
74
69
|
this.defaultHeaders = {};
|
|
75
70
|
if (typeof window === 'undefined') {
|
|
76
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/4.0.0-beta.
|
|
71
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/4.0.0-beta.4/Javascript';
|
|
77
72
|
}
|
|
78
73
|
|
|
79
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 4.0.0-beta.
|
|
31
|
+
* @version 4.0.0-beta.4
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Authorization service.
|
|
32
32
|
* @module api/AuthorizationApi
|
|
33
|
-
* @version 4.0.0-beta.
|
|
33
|
+
* @version 4.0.0-beta.4
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 4.0.0-beta.
|
|
31
|
+
* @version 4.0.0-beta.4
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
/**
|
|
47
47
|
* Device service.
|
|
48
48
|
* @module api/DeviceApi
|
|
49
|
-
* @version 4.0.0-beta.
|
|
49
|
+
* @version 4.0.0-beta.4
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -190,12 +190,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
190
|
* Delete Device
|
|
191
191
|
* @param {String} projectOrProductUID
|
|
192
192
|
* @param {String} deviceUID
|
|
193
|
-
* @param {Boolean} purge
|
|
194
193
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
195
194
|
*/
|
|
196
195
|
}, {
|
|
197
196
|
key: "deleteDeviceWithHttpInfo",
|
|
198
|
-
value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID
|
|
197
|
+
value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
199
198
|
var postBody = null;
|
|
200
199
|
// verify the required parameter 'projectOrProductUID' is set
|
|
201
200
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
@@ -205,17 +204,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
204
|
if (deviceUID === undefined || deviceUID === null) {
|
|
206
205
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
|
|
207
206
|
}
|
|
208
|
-
// verify the required parameter 'purge' is set
|
|
209
|
-
if (purge === undefined || purge === null) {
|
|
210
|
-
throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
|
|
211
|
-
}
|
|
212
207
|
var pathParams = {
|
|
213
208
|
'projectOrProductUID': projectOrProductUID,
|
|
214
209
|
'deviceUID': deviceUID
|
|
215
210
|
};
|
|
216
|
-
var queryParams = {
|
|
217
|
-
'purge': purge
|
|
218
|
-
};
|
|
211
|
+
var queryParams = {};
|
|
219
212
|
var headerParams = {};
|
|
220
213
|
var formParams = {};
|
|
221
214
|
var authNames = ['personalAccessToken'];
|
|
@@ -229,13 +222,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
222
|
* Delete Device
|
|
230
223
|
* @param {String} projectOrProductUID
|
|
231
224
|
* @param {String} deviceUID
|
|
232
|
-
* @param {Boolean} purge
|
|
233
225
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
234
226
|
*/
|
|
235
227
|
}, {
|
|
236
228
|
key: "deleteDevice",
|
|
237
|
-
value: function deleteDevice(projectOrProductUID, deviceUID
|
|
238
|
-
return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID
|
|
229
|
+
value: function deleteDevice(projectOrProductUID, deviceUID) {
|
|
230
|
+
return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
239
231
|
return response_and_data.data;
|
|
240
232
|
});
|
|
241
233
|
}
|
|
@@ -801,11 +793,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
801
793
|
* Get environment variables of a device with device pin authorization
|
|
802
794
|
* @param {String} productUID
|
|
803
795
|
* @param {String} deviceUID
|
|
796
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
804
797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
805
798
|
*/
|
|
806
799
|
}, {
|
|
807
800
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
808
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
801
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken) {
|
|
809
802
|
var postBody = null;
|
|
810
803
|
// verify the required parameter 'productUID' is set
|
|
811
804
|
if (productUID === undefined || productUID === null) {
|
|
@@ -815,14 +808,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
808
|
if (deviceUID === undefined || deviceUID === null) {
|
|
816
809
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
817
810
|
}
|
|
811
|
+
// verify the required parameter 'xAuthToken' is set
|
|
812
|
+
if (xAuthToken === undefined || xAuthToken === null) {
|
|
813
|
+
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling getDeviceEnvironmentVariablesByPin");
|
|
814
|
+
}
|
|
818
815
|
var pathParams = {
|
|
819
816
|
'productUID': productUID,
|
|
820
817
|
'deviceUID': deviceUID
|
|
821
818
|
};
|
|
822
819
|
var queryParams = {};
|
|
823
|
-
var headerParams = {
|
|
820
|
+
var headerParams = {
|
|
821
|
+
'X-Auth-Token': xAuthToken
|
|
822
|
+
};
|
|
824
823
|
var formParams = {};
|
|
825
|
-
var authNames = [
|
|
824
|
+
var authNames = [];
|
|
826
825
|
var contentTypes = [];
|
|
827
826
|
var accepts = ['application/json'];
|
|
828
827
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
@@ -833,12 +832,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
832
|
* Get environment variables of a device with device pin authorization
|
|
834
833
|
* @param {String} productUID
|
|
835
834
|
* @param {String} deviceUID
|
|
835
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
836
836
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
837
837
|
*/
|
|
838
838
|
}, {
|
|
839
839
|
key: "getDeviceEnvironmentVariablesByPin",
|
|
840
|
-
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
841
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
840
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken) {
|
|
841
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken).then(function (response_and_data) {
|
|
842
842
|
return response_and_data.data;
|
|
843
843
|
});
|
|
844
844
|
}
|
|
@@ -1537,12 +1537,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1537
1537
|
* Set environment variables of a device with device pin authorization
|
|
1538
1538
|
* @param {String} productUID
|
|
1539
1539
|
* @param {String} deviceUID
|
|
1540
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1540
1541
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1541
1542
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1542
1543
|
*/
|
|
1543
1544
|
}, {
|
|
1544
1545
|
key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
1545
|
-
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
1546
|
+
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables) {
|
|
1546
1547
|
var postBody = environmentVariables;
|
|
1547
1548
|
// verify the required parameter 'productUID' is set
|
|
1548
1549
|
if (productUID === undefined || productUID === null) {
|
|
@@ -1552,6 +1553,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1552
1553
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1553
1554
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
|
|
1554
1555
|
}
|
|
1556
|
+
// verify the required parameter 'xAuthToken' is set
|
|
1557
|
+
if (xAuthToken === undefined || xAuthToken === null) {
|
|
1558
|
+
throw new _Error["default"]("Missing the required parameter 'xAuthToken' when calling setDeviceEnvironmentVariablesByPin");
|
|
1559
|
+
}
|
|
1555
1560
|
// verify the required parameter 'environmentVariables' is set
|
|
1556
1561
|
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1557
1562
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
@@ -1561,9 +1566,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1561
1566
|
'deviceUID': deviceUID
|
|
1562
1567
|
};
|
|
1563
1568
|
var queryParams = {};
|
|
1564
|
-
var headerParams = {
|
|
1569
|
+
var headerParams = {
|
|
1570
|
+
'X-Auth-Token': xAuthToken
|
|
1571
|
+
};
|
|
1565
1572
|
var formParams = {};
|
|
1566
|
-
var authNames = [
|
|
1573
|
+
var authNames = [];
|
|
1567
1574
|
var contentTypes = ['application/json'];
|
|
1568
1575
|
var accepts = ['application/json'];
|
|
1569
1576
|
var returnType = _EnvironmentVariables["default"];
|
|
@@ -1574,13 +1581,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1574
1581
|
* Set environment variables of a device with device pin authorization
|
|
1575
1582
|
* @param {String} productUID
|
|
1576
1583
|
* @param {String} deviceUID
|
|
1584
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1577
1585
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1578
1586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1579
1587
|
*/
|
|
1580
1588
|
}, {
|
|
1581
1589
|
key: "setDeviceEnvironmentVariablesByPin",
|
|
1582
|
-
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
1583
|
-
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1590
|
+
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken, environmentVariables) {
|
|
1591
|
+
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables).then(function (response_and_data) {
|
|
1584
1592
|
return response_and_data.data;
|
|
1585
1593
|
});
|
|
1586
1594
|
}
|
package/dist/api/EventApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 4.0.0-beta.
|
|
33
|
+
* @version 4.0.0-beta.4
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
50
|
/**
|
|
51
51
|
* Project service.
|
|
52
52
|
* @module api/ProjectApi
|
|
53
|
-
* @version 4.0.0-beta.
|
|
53
|
+
* @version 4.0.0-beta.4
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 4.0.0-beta.
|
|
33
|
+
* @version 4.0.0-beta.4
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* Usage service.
|
|
33
33
|
* @module api/UsageApi
|
|
34
|
-
* @version 4.0.0-beta.
|
|
34
|
+
* @version 4.0.0-beta.4
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -179,6 +179,11 @@ AlertDataInner['SourceTypeEnum'] = {
|
|
|
179
179
|
* value: "event"
|
|
180
180
|
* @const
|
|
181
181
|
*/
|
|
182
|
-
"event": "event"
|
|
182
|
+
"event": "event",
|
|
183
|
+
/**
|
|
184
|
+
* value: "device"
|
|
185
|
+
* @const
|
|
186
|
+
*/
|
|
187
|
+
"device": "device"
|
|
183
188
|
};
|
|
184
189
|
var _default = exports["default"] = AlertDataInner;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/AwsRoute.js
CHANGED
package/dist/model/AzureRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The AzureRoute model module.
|
|
30
30
|
* @module model/AzureRoute
|
|
31
|
-
* @version 4.0.0-beta.
|
|
31
|
+
* @version 4.0.0-beta.4
|
|
32
32
|
*/
|
|
33
33
|
var AzureRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 4.0.0-beta.
|
|
33
|
+
* @version 4.0.0-beta.4
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/BlynkRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The BlynkRoute model module.
|
|
30
30
|
* @module model/BlynkRoute
|
|
31
|
-
* @version 4.0.0-beta.
|
|
31
|
+
* @version 4.0.0-beta.4
|
|
32
32
|
*/
|
|
33
33
|
var BlynkRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/Body.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CellularPlan model module.
|
|
29
29
|
* @module model/CellularPlan
|
|
30
|
-
* @version 4.0.0-beta.
|
|
30
|
+
* @version 4.0.0-beta.4
|
|
31
31
|
*/
|
|
32
32
|
var CellularPlan = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CreateFleetRequest model module.
|
|
29
29
|
* @module model/CreateFleetRequest
|
|
30
|
-
* @version 4.0.0-beta.
|
|
30
|
+
* @version 4.0.0-beta.4
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The CreateMonitor model module.
|
|
33
33
|
* @module model/CreateMonitor
|
|
34
|
-
* @version 4.0.0-beta.
|
|
34
|
+
* @version 4.0.0-beta.4
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -41,12 +41,13 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
41
41
|
* @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>}
|
|
42
42
|
* @param description {String}
|
|
43
43
|
* @param name {String}
|
|
44
|
-
* @param
|
|
44
|
+
* @param sourceType {module:model/CreateMonitor.SourceTypeEnum} The type of source to monitor. Supported values are \"event\" and \"heartbeat\".
|
|
45
|
+
* @param threshold {Number} The type of condition to apply to the value selected by the source_selector
|
|
45
46
|
*/
|
|
46
|
-
function CreateMonitor(alertRoutes, description, name,
|
|
47
|
+
function CreateMonitor(alertRoutes, description, name, sourceType, threshold) {
|
|
47
48
|
_classCallCheck(this, CreateMonitor);
|
|
48
49
|
_Monitor["default"].initialize(this);
|
|
49
|
-
CreateMonitor.initialize(this, alertRoutes, description, name,
|
|
50
|
+
CreateMonitor.initialize(this, alertRoutes, description, name, sourceType, threshold);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -56,11 +57,12 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
56
57
|
*/
|
|
57
58
|
return _createClass(CreateMonitor, null, [{
|
|
58
59
|
key: "initialize",
|
|
59
|
-
value: function initialize(obj, alertRoutes, description, name,
|
|
60
|
+
value: function initialize(obj, alertRoutes, description, name, sourceType, threshold) {
|
|
60
61
|
obj['alert_routes'] = alertRoutes;
|
|
61
62
|
obj['description'] = description;
|
|
62
63
|
obj['name'] = name;
|
|
63
|
-
obj['
|
|
64
|
+
obj['source_type'] = sourceType;
|
|
65
|
+
obj['threshold'] = threshold;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
/**
|
|
@@ -232,7 +234,7 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
232
234
|
}
|
|
233
235
|
}]);
|
|
234
236
|
}();
|
|
235
|
-
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "
|
|
237
|
+
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "source_type", "threshold"];
|
|
236
238
|
|
|
237
239
|
/**
|
|
238
240
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
@@ -320,7 +322,7 @@ CreateMonitor.prototype['silenced'] = undefined;
|
|
|
320
322
|
CreateMonitor.prototype['source_selector'] = undefined;
|
|
321
323
|
|
|
322
324
|
/**
|
|
323
|
-
* The type of source to monitor.
|
|
325
|
+
* The type of source to monitor. Supported values are \"event\" and \"heartbeat\".
|
|
324
326
|
* @member {module:model/CreateMonitor.SourceTypeEnum} source_type
|
|
325
327
|
*/
|
|
326
328
|
CreateMonitor.prototype['source_type'] = undefined;
|
|
@@ -408,7 +410,7 @@ _Monitor["default"].prototype['silenced'] = undefined;
|
|
|
408
410
|
*/
|
|
409
411
|
_Monitor["default"].prototype['source_selector'] = undefined;
|
|
410
412
|
/**
|
|
411
|
-
* The type of source to monitor.
|
|
413
|
+
* The type of source to monitor. Supported values are \"event\" and \"heartbeat\".
|
|
412
414
|
* @member {module:model/Monitor.SourceTypeEnum} source_type
|
|
413
415
|
*/
|
|
414
416
|
_Monitor["default"].prototype['source_type'] = undefined;
|
|
@@ -503,6 +505,11 @@ CreateMonitor['SourceTypeEnum'] = {
|
|
|
503
505
|
* value: "event"
|
|
504
506
|
* @const
|
|
505
507
|
*/
|
|
506
|
-
"event": "event"
|
|
508
|
+
"event": "event",
|
|
509
|
+
/**
|
|
510
|
+
* value: "heartbeat"
|
|
511
|
+
* @const
|
|
512
|
+
*/
|
|
513
|
+
"heartbeat": "heartbeat"
|
|
507
514
|
};
|
|
508
515
|
var _default = exports["default"] = CreateMonitor;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProductRequest model module.
|
|
31
31
|
* @module model/CreateProductRequest
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CurrentFirmware model module.
|
|
29
29
|
* @module model/CurrentFirmware
|
|
30
|
-
* @version 4.0.0-beta.
|
|
30
|
+
* @version 4.0.0-beta.4
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
package/dist/model/DataField.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataField model module.
|
|
28
28
|
* @module model/DataField
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
var DataField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataSetField model module.
|
|
28
28
|
* @module model/DataSetField
|
|
29
|
-
* @version 4.0.0-beta.
|
|
29
|
+
* @version 4.0.0-beta.4
|
|
30
30
|
*/
|
|
31
31
|
var DataSetField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataUsage.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The DataUsage model module.
|
|
31
31
|
* @module model/DataUsage
|
|
32
|
-
* @version 4.0.0-beta.
|
|
32
|
+
* @version 4.0.0-beta.4
|
|
33
33
|
*/
|
|
34
34
|
var DataUsage = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The DatacakeRoute model module.
|
|
30
30
|
* @module model/DatacakeRoute
|
|
31
|
-
* @version 4.0.0-beta.
|
|
31
|
+
* @version 4.0.0-beta.4
|
|
32
32
|
*/
|
|
33
33
|
var DatacakeRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|