@blues-inc/notehub-js 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -7
- 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 +8 -2
- package/dist/api/RouteApi.js +8 -2
- package/dist/api/UsageApi.js +5 -2
- 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 +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 +17 -8
- 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/SatelliteDataUsage.js +144 -0
- package/dist/model/SatellitePlan.js +26 -17
- 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 +46 -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:
|
|
9
|
+
- Package version: 5.0.0
|
|
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
|
|
|
@@ -338,6 +338,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
338
338
|
- [NotehubJs.RouteLog](docs/RouteLog.md)
|
|
339
339
|
- [NotehubJs.RouteTransformSettings](docs/RouteTransformSettings.md)
|
|
340
340
|
- [NotehubJs.S3ArchiveRoute](docs/S3ArchiveRoute.md)
|
|
341
|
+
- [NotehubJs.SatelliteDataUsage](docs/SatelliteDataUsage.md)
|
|
341
342
|
- [NotehubJs.SatellitePlan](docs/SatellitePlan.md)
|
|
342
343
|
- [NotehubJs.SchemaProperty](docs/SchemaProperty.md)
|
|
343
344
|
- [NotehubJs.SignalDevice200Response](docs/SignalDevice200Response.md)
|
|
@@ -367,9 +368,3 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
367
368
|
### personalAccessToken
|
|
368
369
|
|
|
369
370
|
- **Type**: Bearer authentication
|
|
370
|
-
|
|
371
|
-
### pin
|
|
372
|
-
|
|
373
|
-
- **Type**: API key
|
|
374
|
-
- **API key parameter name**: X-Auth-Token
|
|
375
|
-
- **Location**: HTTP header
|
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 5.0.0
|
|
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/5.0.0/Javascript";
|
|
77
72
|
}
|
|
78
73
|
|
|
79
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -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 5.0.0
|
|
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 5.0.0
|
|
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 5.0.0
|
|
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
|
@@ -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 5.0.0
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
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 5.0.0
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -990,6 +990,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
990
990
|
* @param {String} opts.filename
|
|
991
991
|
* @param {String} opts.md5
|
|
992
992
|
* @param {Boolean} opts.unpublished
|
|
993
|
+
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
994
|
+
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
993
995
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
994
996
|
*/
|
|
995
997
|
}, {
|
|
@@ -1011,7 +1013,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1011
1013
|
target: opts["target"],
|
|
1012
1014
|
filename: opts["filename"],
|
|
1013
1015
|
md5: opts["md5"],
|
|
1014
|
-
unpublished: opts["unpublished"]
|
|
1016
|
+
unpublished: opts["unpublished"],
|
|
1017
|
+
sortBy: opts["sortBy"],
|
|
1018
|
+
sortOrder: opts["sortOrder"]
|
|
1015
1019
|
};
|
|
1016
1020
|
var headerParams = {};
|
|
1017
1021
|
var formParams = {};
|
|
@@ -1033,6 +1037,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1033
1037
|
* @param {String} opts.filename
|
|
1034
1038
|
* @param {String} opts.md5
|
|
1035
1039
|
* @param {Boolean} opts.unpublished
|
|
1040
|
+
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1041
|
+
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1036
1042
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
1037
1043
|
*/
|
|
1038
1044
|
}, {
|
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 5.0.0
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -197,6 +197,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
197
197
|
* @param {Boolean} opts.systemFilesOnly
|
|
198
198
|
* @param {Boolean} opts.mostRecentOnly
|
|
199
199
|
* @param {String} opts.files
|
|
200
|
+
* @param {Array.<module:model/String>} opts.routingStatus
|
|
201
|
+
* @param {Array.<String>} opts.responseStatus
|
|
200
202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
201
203
|
*/
|
|
202
204
|
}, {
|
|
@@ -226,7 +228,9 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
226
228
|
endDate: opts["endDate"],
|
|
227
229
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
228
230
|
mostRecentOnly: opts["mostRecentOnly"],
|
|
229
|
-
files: opts["files"]
|
|
231
|
+
files: opts["files"],
|
|
232
|
+
routingStatus: this.apiClient.buildCollectionParam(opts["routingStatus"], "multi"),
|
|
233
|
+
responseStatus: this.apiClient.buildCollectionParam(opts["responseStatus"], "multi")
|
|
230
234
|
};
|
|
231
235
|
var headerParams = {};
|
|
232
236
|
var formParams = {};
|
|
@@ -252,6 +256,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
256
|
* @param {Boolean} opts.systemFilesOnly
|
|
253
257
|
* @param {Boolean} opts.mostRecentOnly
|
|
254
258
|
* @param {String} opts.files
|
|
259
|
+
* @param {Array.<module:model/String>} opts.routingStatus
|
|
260
|
+
* @param {Array.<String>} opts.responseStatus
|
|
255
261
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
256
262
|
*/
|
|
257
263
|
}, {
|
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
|
|
34
|
+
* @version 5.0.0
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -194,6 +194,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
194
194
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
195
195
|
* @param {Array.<String>} opts.routeUID A Route UID.
|
|
196
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)
|
|
197
198
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
|
|
198
199
|
*/
|
|
199
200
|
}, {
|
|
@@ -217,7 +218,8 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
218
|
endDate: opts["endDate"],
|
|
218
219
|
routeUID: this.apiClient.buildCollectionParam(opts["routeUID"], "multi"),
|
|
219
220
|
period: period,
|
|
220
|
-
aggregate: opts["aggregate"]
|
|
221
|
+
aggregate: opts["aggregate"],
|
|
222
|
+
skipRecentData: opts["skipRecentData"]
|
|
221
223
|
};
|
|
222
224
|
var headerParams = {};
|
|
223
225
|
var formParams = {};
|
|
@@ -237,6 +239,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
237
239
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
238
240
|
* @param {Array.<String>} opts.routeUID A Route UID.
|
|
239
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)
|
|
240
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
|
|
241
244
|
*/
|
|
242
245
|
}, {
|
package/dist/api/WebhookApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -705,6 +705,12 @@ Object.defineProperty(exports, "S3ArchiveRoute", {
|
|
|
705
705
|
return _S3ArchiveRoute["default"];
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
|
+
Object.defineProperty(exports, "SatelliteDataUsage", {
|
|
709
|
+
enumerable: true,
|
|
710
|
+
get: function get() {
|
|
711
|
+
return _SatelliteDataUsage["default"];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
708
714
|
Object.defineProperty(exports, "SatellitePlan", {
|
|
709
715
|
enumerable: true,
|
|
710
716
|
get: function get() {
|
|
@@ -963,6 +969,7 @@ var _Role = _interopRequireDefault(require("./model/Role"));
|
|
|
963
969
|
var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
|
|
964
970
|
var _RouteTransformSettings = _interopRequireDefault(require("./model/RouteTransformSettings"));
|
|
965
971
|
var _S3ArchiveRoute = _interopRequireDefault(require("./model/S3ArchiveRoute"));
|
|
972
|
+
var _SatelliteDataUsage = _interopRequireDefault(require("./model/SatelliteDataUsage"));
|
|
966
973
|
var _SatellitePlan = _interopRequireDefault(require("./model/SatellitePlan"));
|
|
967
974
|
var _SchemaProperty = _interopRequireDefault(require("./model/SchemaProperty"));
|
|
968
975
|
var _SignalDevice200Response = _interopRequireDefault(require("./model/SignalDevice200Response"));
|
|
@@ -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 5.0.0
|
|
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 5.0.0
|
|
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
|
|
29
|
+
* @version 5.0.0
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/AwsRoute.js
CHANGED
package/dist/model/AzureRoute.js
CHANGED
|
@@ -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 5.0.0
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/BlynkRoute.js
CHANGED
package/dist/model/Body.js
CHANGED
|
@@ -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 5.0.0
|
|
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 5.0.0
|
|
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
|
|
34
|
+
* @version 5.0.0
|
|
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
|
/**
|
|
@@ -231,7 +233,7 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
231
233
|
}
|
|
232
234
|
}]);
|
|
233
235
|
}();
|
|
234
|
-
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "
|
|
236
|
+
CreateMonitor.RequiredProperties = ["alert_routes", "description", "name", "source_type", "threshold"];
|
|
235
237
|
|
|
236
238
|
/**
|
|
237
239
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
@@ -319,7 +321,7 @@ CreateMonitor.prototype["silenced"] = undefined;
|
|
|
319
321
|
CreateMonitor.prototype["source_selector"] = undefined;
|
|
320
322
|
|
|
321
323
|
/**
|
|
322
|
-
* The type of source to monitor.
|
|
324
|
+
* The type of source to monitor. Supported values are \"event\" and \"heartbeat\".
|
|
323
325
|
* @member {module:model/CreateMonitor.SourceTypeEnum} source_type
|
|
324
326
|
*/
|
|
325
327
|
CreateMonitor.prototype["source_type"] = undefined;
|
|
@@ -407,7 +409,7 @@ _Monitor["default"].prototype["silenced"] = undefined;
|
|
|
407
409
|
*/
|
|
408
410
|
_Monitor["default"].prototype["source_selector"] = undefined;
|
|
409
411
|
/**
|
|
410
|
-
* The type of source to monitor.
|
|
412
|
+
* The type of source to monitor. Supported values are \"event\" and \"heartbeat\".
|
|
411
413
|
* @member {module:model/Monitor.SourceTypeEnum} source_type
|
|
412
414
|
*/
|
|
413
415
|
_Monitor["default"].prototype["source_type"] = undefined;
|
|
@@ -502,6 +504,11 @@ CreateMonitor["SourceTypeEnum"] = {
|
|
|
502
504
|
* value: "event"
|
|
503
505
|
* @const
|
|
504
506
|
*/
|
|
505
|
-
event: "event"
|
|
507
|
+
event: "event",
|
|
508
|
+
/**
|
|
509
|
+
* value: "heartbeat"
|
|
510
|
+
* @const
|
|
511
|
+
*/
|
|
512
|
+
heartbeat: "heartbeat"
|
|
506
513
|
};
|
|
507
514
|
var _default = exports["default"] = CreateMonitor;
|