@blues-inc/notehub-js 3.0.0-beta.9 → 4.0.0-beta.1
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 +3 -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 +27 -11
- 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 +67 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +7 -0
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- 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 +9 -1
- package/dist/model/CreateMonitor.js +1 -1
- 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 +9 -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 +132 -0
- 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 +1 -1
- 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 +9 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +16 -5
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +15 -5
- 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:
|
|
9
|
+
- Package version: 4.0.0-beta.1
|
|
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
|
|
|
@@ -221,6 +221,7 @@ Class | Method | HTTP request | Description
|
|
|
221
221
|
*NotehubJs.RouteApi* | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectOrProductUID}/routes/{routeUID} |
|
|
222
222
|
*NotehubJs.UsageApi* | [**getDataUsage**](docs/UsageApi.md#getDataUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/data |
|
|
223
223
|
*NotehubJs.UsageApi* | [**getEventsUsage**](docs/UsageApi.md#getEventsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/events |
|
|
224
|
+
*NotehubJs.UsageApi* | [**getRouteLogsUsage**](docs/UsageApi.md#getRouteLogsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/route-logs |
|
|
224
225
|
*NotehubJs.UsageApi* | [**getSessionsUsage**](docs/UsageApi.md#getSessionsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/sessions |
|
|
225
226
|
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
226
227
|
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
@@ -303,6 +304,7 @@ Class | Method | HTTP request | Description
|
|
|
303
304
|
- [NotehubJs.GetProducts200Response](docs/GetProducts200Response.md)
|
|
304
305
|
- [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
|
|
305
306
|
- [NotehubJs.GetProjects200Response](docs/GetProjects200Response.md)
|
|
307
|
+
- [NotehubJs.GetRouteLogsUsage200Response](docs/GetRouteLogsUsage200Response.md)
|
|
306
308
|
- [NotehubJs.GetSessionsUsage200Response](docs/GetSessionsUsage200Response.md)
|
|
307
309
|
- [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
|
|
308
310
|
- [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
|
|
@@ -370,12 +372,3 @@ Class | Method | HTTP request | Description
|
|
|
370
372
|
|
|
371
373
|
- **Type**: Bearer authentication
|
|
372
374
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
### pin
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
- **Type**: API key
|
|
379
|
-
- **API key parameter name**: X-Auth-Token
|
|
380
|
-
- **Location**: HTTP header
|
|
381
|
-
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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/
|
|
71
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/4.0.0-beta.1/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
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
49
|
+
* @version 4.0.0-beta.1
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -801,11 +801,12 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
801
801
|
* Get environment variables of a device with device pin authorization
|
|
802
802
|
* @param {String} productUID
|
|
803
803
|
* @param {String} deviceUID
|
|
804
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
804
805
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
|
|
805
806
|
*/
|
|
806
807
|
}, {
|
|
807
808
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
808
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
809
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken) {
|
|
809
810
|
var postBody = null;
|
|
810
811
|
// verify the required parameter 'productUID' is set
|
|
811
812
|
if (productUID === undefined || productUID === null) {
|
|
@@ -815,14 +816,20 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
815
816
|
if (deviceUID === undefined || deviceUID === null) {
|
|
816
817
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
817
818
|
}
|
|
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
|
+
}
|
|
818
823
|
var pathParams = {
|
|
819
824
|
'productUID': productUID,
|
|
820
825
|
'deviceUID': deviceUID
|
|
821
826
|
};
|
|
822
827
|
var queryParams = {};
|
|
823
|
-
var headerParams = {
|
|
828
|
+
var headerParams = {
|
|
829
|
+
'X-Auth-Token': xAuthToken
|
|
830
|
+
};
|
|
824
831
|
var formParams = {};
|
|
825
|
-
var authNames = [
|
|
832
|
+
var authNames = [];
|
|
826
833
|
var contentTypes = [];
|
|
827
834
|
var accepts = ['application/json'];
|
|
828
835
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
@@ -833,12 +840,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
833
840
|
* Get environment variables of a device with device pin authorization
|
|
834
841
|
* @param {String} productUID
|
|
835
842
|
* @param {String} deviceUID
|
|
843
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
836
844
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
|
|
837
845
|
*/
|
|
838
846
|
}, {
|
|
839
847
|
key: "getDeviceEnvironmentVariablesByPin",
|
|
840
|
-
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
841
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
848
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken) {
|
|
849
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken).then(function (response_and_data) {
|
|
842
850
|
return response_and_data.data;
|
|
843
851
|
});
|
|
844
852
|
}
|
|
@@ -1537,12 +1545,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1537
1545
|
* Set environment variables of a device with device pin authorization
|
|
1538
1546
|
* @param {String} productUID
|
|
1539
1547
|
* @param {String} deviceUID
|
|
1548
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1540
1549
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1541
1550
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
1542
1551
|
*/
|
|
1543
1552
|
}, {
|
|
1544
1553
|
key: "setDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
1545
|
-
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
1554
|
+
value: function setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables) {
|
|
1546
1555
|
var postBody = environmentVariables;
|
|
1547
1556
|
// verify the required parameter 'productUID' is set
|
|
1548
1557
|
if (productUID === undefined || productUID === null) {
|
|
@@ -1552,6 +1561,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1552
1561
|
if (deviceUID === undefined || deviceUID === null) {
|
|
1553
1562
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling setDeviceEnvironmentVariablesByPin");
|
|
1554
1563
|
}
|
|
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
|
+
}
|
|
1555
1568
|
// verify the required parameter 'environmentVariables' is set
|
|
1556
1569
|
if (environmentVariables === undefined || environmentVariables === null) {
|
|
1557
1570
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling setDeviceEnvironmentVariablesByPin");
|
|
@@ -1561,9 +1574,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1561
1574
|
'deviceUID': deviceUID
|
|
1562
1575
|
};
|
|
1563
1576
|
var queryParams = {};
|
|
1564
|
-
var headerParams = {
|
|
1577
|
+
var headerParams = {
|
|
1578
|
+
'X-Auth-Token': xAuthToken
|
|
1579
|
+
};
|
|
1565
1580
|
var formParams = {};
|
|
1566
|
-
var authNames = [
|
|
1581
|
+
var authNames = [];
|
|
1567
1582
|
var contentTypes = ['application/json'];
|
|
1568
1583
|
var accepts = ['application/json'];
|
|
1569
1584
|
var returnType = _EnvironmentVariables["default"];
|
|
@@ -1574,13 +1589,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1574
1589
|
* Set environment variables of a device with device pin authorization
|
|
1575
1590
|
* @param {String} productUID
|
|
1576
1591
|
* @param {String} deviceUID
|
|
1592
|
+
* @param {String} xAuthToken For accessing endpoints by Device pin.
|
|
1577
1593
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
1578
1594
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
1579
1595
|
*/
|
|
1580
1596
|
}, {
|
|
1581
1597
|
key: "setDeviceEnvironmentVariablesByPin",
|
|
1582
|
-
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
1583
|
-
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
1598
|
+
value: function setDeviceEnvironmentVariablesByPin(productUID, deviceUID, xAuthToken, environmentVariables) {
|
|
1599
|
+
return this.setDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, xAuthToken, environmentVariables).then(function (response_and_data) {
|
|
1584
1600
|
return response_and_data.data;
|
|
1585
1601
|
});
|
|
1586
1602
|
}
|
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
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
53
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _GetDataUsage200Response = _interopRequireDefault(require("../model/GetDataUsage200Response"));
|
|
10
|
+
var _GetRouteLogsUsage200Response = _interopRequireDefault(require("../model/GetRouteLogsUsage200Response"));
|
|
10
11
|
var _GetSessionsUsage200Response = _interopRequireDefault(require("../model/GetSessionsUsage200Response"));
|
|
11
12
|
var _UsageEventsResponse = _interopRequireDefault(require("../model/UsageEventsResponse"));
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -30,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
31
|
/**
|
|
31
32
|
* Usage service.
|
|
32
33
|
* @module api/UsageApi
|
|
33
|
-
* @version
|
|
34
|
+
* @version 4.0.0-beta.1
|
|
34
35
|
*/
|
|
35
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
37
|
/**
|
|
@@ -184,6 +185,71 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
184
185
|
});
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
190
|
+
* @param {String} projectOrProductUID
|
|
191
|
+
* @param {module:model/String} period Period type for aggregation
|
|
192
|
+
* @param {Object} opts Optional parameters
|
|
193
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
194
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
195
|
+
* @param {Array.<String>} opts.routeUID A Route UID.
|
|
196
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
197
|
+
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
|
198
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
|
|
199
|
+
*/
|
|
200
|
+
}, {
|
|
201
|
+
key: "getRouteLogsUsageWithHttpInfo",
|
|
202
|
+
value: function getRouteLogsUsageWithHttpInfo(projectOrProductUID, period, opts) {
|
|
203
|
+
opts = opts || {};
|
|
204
|
+
var postBody = null;
|
|
205
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
206
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
207
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRouteLogsUsage");
|
|
208
|
+
}
|
|
209
|
+
// verify the required parameter 'period' is set
|
|
210
|
+
if (period === undefined || period === null) {
|
|
211
|
+
throw new _Error["default"]("Missing the required parameter 'period' when calling getRouteLogsUsage");
|
|
212
|
+
}
|
|
213
|
+
var pathParams = {
|
|
214
|
+
'projectOrProductUID': projectOrProductUID
|
|
215
|
+
};
|
|
216
|
+
var queryParams = {
|
|
217
|
+
'startDate': opts['startDate'],
|
|
218
|
+
'endDate': opts['endDate'],
|
|
219
|
+
'routeUID': this.apiClient.buildCollectionParam(opts['routeUID'], 'multi'),
|
|
220
|
+
'period': period,
|
|
221
|
+
'aggregate': opts['aggregate'],
|
|
222
|
+
'skipRecentData': opts['skipRecentData']
|
|
223
|
+
};
|
|
224
|
+
var headerParams = {};
|
|
225
|
+
var formParams = {};
|
|
226
|
+
var authNames = ['personalAccessToken'];
|
|
227
|
+
var contentTypes = [];
|
|
228
|
+
var accepts = ['application/json'];
|
|
229
|
+
var returnType = _GetRouteLogsUsage200Response["default"];
|
|
230
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
235
|
+
* @param {String} projectOrProductUID
|
|
236
|
+
* @param {module:model/String} period Period type for aggregation
|
|
237
|
+
* @param {Object} opts Optional parameters
|
|
238
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
239
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
240
|
+
* @param {Array.<String>} opts.routeUID A Route UID.
|
|
241
|
+
* @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
|
|
242
|
+
* @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
|
|
243
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
|
|
244
|
+
*/
|
|
245
|
+
}, {
|
|
246
|
+
key: "getRouteLogsUsage",
|
|
247
|
+
value: function getRouteLogsUsage(projectOrProductUID, period, opts) {
|
|
248
|
+
return this.getRouteLogsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
|
|
249
|
+
return response_and_data.data;
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
|
|
187
253
|
/**
|
|
188
254
|
* Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
|
|
189
255
|
* @param {String} projectOrProductUID
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/index.js
CHANGED
|
@@ -477,6 +477,12 @@ Object.defineProperty(exports, "GetProjects200Response", {
|
|
|
477
477
|
return _GetProjects200Response["default"];
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
|
+
Object.defineProperty(exports, "GetRouteLogsUsage200Response", {
|
|
481
|
+
enumerable: true,
|
|
482
|
+
get: function get() {
|
|
483
|
+
return _GetRouteLogsUsage200Response["default"];
|
|
484
|
+
}
|
|
485
|
+
});
|
|
480
486
|
Object.defineProperty(exports, "GetSessionsUsage200Response", {
|
|
481
487
|
enumerable: true,
|
|
482
488
|
get: function get() {
|
|
@@ -922,6 +928,7 @@ var _GetNotefile200Response = _interopRequireDefault(require("./model/GetNotefil
|
|
|
922
928
|
var _GetProducts200Response = _interopRequireDefault(require("./model/GetProducts200Response"));
|
|
923
929
|
var _GetProjectMembers200Response = _interopRequireDefault(require("./model/GetProjectMembers200Response"));
|
|
924
930
|
var _GetProjects200Response = _interopRequireDefault(require("./model/GetProjects200Response"));
|
|
931
|
+
var _GetRouteLogsUsage200Response = _interopRequireDefault(require("./model/GetRouteLogsUsage200Response"));
|
|
925
932
|
var _GetSessionsUsage200Response = _interopRequireDefault(require("./model/GetSessionsUsage200Response"));
|
|
926
933
|
var _GetWebhooks200Response = _interopRequireDefault(require("./model/GetWebhooks200Response"));
|
|
927
934
|
var _GoogleRoute = _interopRequireDefault(require("./model/GoogleRoute"));
|
|
@@ -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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__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 AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
30
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
30
|
+
* @version 4.0.0-beta.1
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -69,6 +69,9 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
69
69
|
if (data.hasOwnProperty('smart_rule')) {
|
|
70
70
|
obj['smart_rule'] = _ApiClient["default"].convertToType(data['smart_rule'], 'String');
|
|
71
71
|
}
|
|
72
|
+
if (data.hasOwnProperty('smart_rule_enabled')) {
|
|
73
|
+
obj['smart_rule_enabled'] = _ApiClient["default"].convertToType(data['smart_rule_enabled'], 'Boolean');
|
|
74
|
+
}
|
|
72
75
|
} else if (data === null) {
|
|
73
76
|
return null;
|
|
74
77
|
}
|
|
@@ -116,4 +119,9 @@ CreateFleetRequest.prototype['label'] = undefined;
|
|
|
116
119
|
* @member {String} smart_rule
|
|
117
120
|
*/
|
|
118
121
|
CreateFleetRequest.prototype['smart_rule'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @member {Boolean} smart_rule_enabled
|
|
125
|
+
*/
|
|
126
|
+
CreateFleetRequest.prototype['smart_rule_enabled'] = undefined;
|
|
119
127
|
var _default = exports["default"] = CreateFleetRequest;
|
|
@@ -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
|
|
34
|
+
* @version 4.0.0-beta.1
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
30
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var DataUsage = /*#__PURE__*/function () {
|
|
35
35
|
/**
|