@blues-inc/notehub-js 1.0.38-beta.1 → 1.0.38-beta.10
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 +6 -1
- package/dist/ApiClient.js +2 -2
- 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 +65 -5
- 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 +15 -5
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +28 -0
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/AwsFilter.js +1 -1
- package/dist/model/AwsTransform.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +150 -0
- 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 +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 +133 -0
- package/dist/model/DeleteDeviceFleetsRequest.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/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.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/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +112 -0
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.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/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSchema.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/PostProvisionProjectDeviceRequest.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/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/SatellitePlan.js +164 -0
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackTransform.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +14 -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/UsageRouteLogsResponse.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UsageSessionsResponse.js +1 -1
- package/dist/model/UserDbRoute.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: 1.0.38-beta.
|
|
9
|
+
- Package version: 1.0.38-beta.10
|
|
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
|
|
|
@@ -145,6 +145,7 @@ Class | Method | HTTP request | Description
|
|
|
145
145
|
*NotehubJs.DeviceApi* | [**getDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
146
146
|
*NotehubJs.DeviceApi* | [**getDeviceHealthLog**](docs/DeviceApi.md#getDeviceHealthLog) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log |
|
|
147
147
|
*NotehubJs.DeviceApi* | [**getDeviceLatest**](docs/DeviceApi.md#getDeviceLatest) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest |
|
|
148
|
+
*NotehubJs.DeviceApi* | [**getDevicePlans**](docs/DeviceApi.md#getDevicePlans) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans |
|
|
148
149
|
*NotehubJs.DeviceApi* | [**getDevicePublicKey**](docs/DeviceApi.md#getDevicePublicKey) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key |
|
|
149
150
|
*NotehubJs.DeviceApi* | [**getDeviceSessions**](docs/DeviceApi.md#getDeviceSessions) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions |
|
|
150
151
|
*NotehubJs.DeviceApi* | [**getProjectDevicePublicKeys**](docs/DeviceApi.md#getProjectDevicePublicKeys) | **GET** /v1/projects/{projectOrProductUID}/devices/public-keys |
|
|
@@ -241,6 +242,7 @@ Class | Method | HTTP request | Description
|
|
|
241
242
|
- [NotehubJs.BillingAccount](docs/BillingAccount.md)
|
|
242
243
|
- [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
|
|
243
244
|
- [NotehubJs.Body](docs/Body.md)
|
|
245
|
+
- [NotehubJs.CellularPlan](docs/CellularPlan.md)
|
|
244
246
|
- [NotehubJs.CloneProjectRequest](docs/CloneProjectRequest.md)
|
|
245
247
|
- [NotehubJs.Contact](docs/Contact.md)
|
|
246
248
|
- [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
|
|
@@ -253,6 +255,7 @@ Class | Method | HTTP request | Description
|
|
|
253
255
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
254
256
|
- [NotehubJs.DataField](docs/DataField.md)
|
|
255
257
|
- [NotehubJs.DataSetField](docs/DataSetField.md)
|
|
258
|
+
- [NotehubJs.DataUsage](docs/DataUsage.md)
|
|
256
259
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
257
260
|
- [NotehubJs.Device](docs/Device.md)
|
|
258
261
|
- [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
|
|
@@ -282,6 +285,7 @@ Class | Method | HTTP request | Description
|
|
|
282
285
|
- [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
|
|
283
286
|
- [NotehubJs.GetDeviceHealthLog200ResponseHealthLogInner](docs/GetDeviceHealthLog200ResponseHealthLogInner.md)
|
|
284
287
|
- [NotehubJs.GetDeviceLatest200Response](docs/GetDeviceLatest200Response.md)
|
|
288
|
+
- [NotehubJs.GetDevicePlans200Response](docs/GetDevicePlans200Response.md)
|
|
285
289
|
- [NotehubJs.GetDevicePublicKey200Response](docs/GetDevicePublicKey200Response.md)
|
|
286
290
|
- [NotehubJs.GetDeviceSessions200Response](docs/GetDeviceSessions200Response.md)
|
|
287
291
|
- [NotehubJs.GetProjectDevicePublicKeys200Response](docs/GetProjectDevicePublicKeys200Response.md)
|
|
@@ -327,6 +331,7 @@ Class | Method | HTTP request | Description
|
|
|
327
331
|
- [NotehubJs.Repository](docs/Repository.md)
|
|
328
332
|
- [NotehubJs.Role](docs/Role.md)
|
|
329
333
|
- [NotehubJs.RouteLog](docs/RouteLog.md)
|
|
334
|
+
- [NotehubJs.SatellitePlan](docs/SatellitePlan.md)
|
|
330
335
|
- [NotehubJs.SchemaProperty](docs/SchemaProperty.md)
|
|
331
336
|
- [NotehubJs.SimUsage](docs/SimUsage.md)
|
|
332
337
|
- [NotehubJs.Slack](docs/Slack.md)
|
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 1.0.38-beta.
|
|
29
|
+
* @version 1.0.38-beta.10
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -73,7 +73,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
73
73
|
*/
|
|
74
74
|
this.defaultHeaders = {};
|
|
75
75
|
if (typeof window === 'undefined') {
|
|
76
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.38-beta.
|
|
76
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.38-beta.10/Javascript';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
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 1.0.38-beta.
|
|
31
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
33
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
31
|
+
* @version 1.0.38-beta.10
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -13,6 +13,7 @@ var _Error = _interopRequireDefault(require("../model/Error"));
|
|
|
13
13
|
var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
|
|
14
14
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
|
|
15
15
|
var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
|
|
16
|
+
var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
|
|
16
17
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
|
|
17
18
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
|
|
18
19
|
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
|
|
@@ -46,7 +47,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
47
|
/**
|
|
47
48
|
* Device service.
|
|
48
49
|
* @module api/DeviceApi
|
|
49
|
-
* @version 1.0.38-beta.
|
|
50
|
+
* @version 1.0.38-beta.10
|
|
50
51
|
*/
|
|
51
52
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
53
|
/**
|
|
@@ -540,11 +541,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
540
541
|
* Get Device Health Log
|
|
541
542
|
* @param {String} projectOrProductUID
|
|
542
543
|
* @param {String} deviceUID
|
|
544
|
+
* @param {Object} opts Optional parameters
|
|
545
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
546
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
547
|
+
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
543
548
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
|
|
544
549
|
*/
|
|
545
550
|
}, {
|
|
546
551
|
key: "getDeviceHealthLogWithHttpInfo",
|
|
547
|
-
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
552
|
+
value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts) {
|
|
553
|
+
opts = opts || {};
|
|
548
554
|
var postBody = null;
|
|
549
555
|
// verify the required parameter 'projectOrProductUID' is set
|
|
550
556
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
@@ -558,7 +564,11 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
558
564
|
'projectOrProductUID': projectOrProductUID,
|
|
559
565
|
'deviceUID': deviceUID
|
|
560
566
|
};
|
|
561
|
-
var queryParams = {
|
|
567
|
+
var queryParams = {
|
|
568
|
+
'startDate': opts['startDate'],
|
|
569
|
+
'endDate': opts['endDate'],
|
|
570
|
+
'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
|
|
571
|
+
};
|
|
562
572
|
var headerParams = {};
|
|
563
573
|
var formParams = {};
|
|
564
574
|
var authNames = ['personalAccessToken'];
|
|
@@ -572,12 +582,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
572
582
|
* Get Device Health Log
|
|
573
583
|
* @param {String} projectOrProductUID
|
|
574
584
|
* @param {String} deviceUID
|
|
585
|
+
* @param {Object} opts Optional parameters
|
|
586
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
587
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
588
|
+
* @param {Array.<module:model/String>} opts.logType Return only specified log types
|
|
575
589
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
|
|
576
590
|
*/
|
|
577
591
|
}, {
|
|
578
592
|
key: "getDeviceHealthLog",
|
|
579
|
-
value: function getDeviceHealthLog(projectOrProductUID, deviceUID) {
|
|
580
|
-
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
593
|
+
value: function getDeviceHealthLog(projectOrProductUID, deviceUID, opts) {
|
|
594
|
+
return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
|
|
581
595
|
return response_and_data.data;
|
|
582
596
|
});
|
|
583
597
|
}
|
|
@@ -628,6 +642,52 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
642
|
});
|
|
629
643
|
}
|
|
630
644
|
|
|
645
|
+
/**
|
|
646
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
647
|
+
* @param {String} projectOrProductUID
|
|
648
|
+
* @param {String} deviceUID
|
|
649
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
|
|
650
|
+
*/
|
|
651
|
+
}, {
|
|
652
|
+
key: "getDevicePlansWithHttpInfo",
|
|
653
|
+
value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
|
|
654
|
+
var postBody = null;
|
|
655
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
656
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
657
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
|
|
658
|
+
}
|
|
659
|
+
// verify the required parameter 'deviceUID' is set
|
|
660
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
661
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
|
|
662
|
+
}
|
|
663
|
+
var pathParams = {
|
|
664
|
+
'projectOrProductUID': projectOrProductUID,
|
|
665
|
+
'deviceUID': deviceUID
|
|
666
|
+
};
|
|
667
|
+
var queryParams = {};
|
|
668
|
+
var headerParams = {};
|
|
669
|
+
var formParams = {};
|
|
670
|
+
var authNames = [];
|
|
671
|
+
var contentTypes = [];
|
|
672
|
+
var accepts = ['application/json'];
|
|
673
|
+
var returnType = _GetDevicePlans200Response["default"];
|
|
674
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
|
|
679
|
+
* @param {String} projectOrProductUID
|
|
680
|
+
* @param {String} deviceUID
|
|
681
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
|
|
682
|
+
*/
|
|
683
|
+
}, {
|
|
684
|
+
key: "getDevicePlans",
|
|
685
|
+
value: function getDevicePlans(projectOrProductUID, deviceUID) {
|
|
686
|
+
return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
|
|
687
|
+
return response_and_data.data;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
|
|
631
691
|
/**
|
|
632
692
|
* Get Device Public Key
|
|
633
693
|
* @param {String} projectOrProductUID
|
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 1.0.38-beta.
|
|
33
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
32
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
32
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
53
|
+
* @version 1.0.38-beta.10
|
|
54
54
|
*/
|
|
55
55
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
56
|
/**
|
|
@@ -1763,11 +1763,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1763
1763
|
* @param {module:model/String} firmwareType
|
|
1764
1764
|
* @param {String} filename
|
|
1765
1765
|
* @param {File} body contents of the firmware binary
|
|
1766
|
+
* @param {Object} opts Optional parameters
|
|
1767
|
+
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
1768
|
+
* @param {String} opts.notes Optional notes describing what's different about this firmware version
|
|
1766
1769
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
1767
1770
|
*/
|
|
1768
1771
|
}, {
|
|
1769
1772
|
key: "uploadFirmwareWithHttpInfo",
|
|
1770
|
-
value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body) {
|
|
1773
|
+
value: function uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body, opts) {
|
|
1774
|
+
opts = opts || {};
|
|
1771
1775
|
var postBody = body;
|
|
1772
1776
|
// verify the required parameter 'projectOrProductUID' is set
|
|
1773
1777
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
@@ -1790,7 +1794,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1790
1794
|
'firmwareType': firmwareType,
|
|
1791
1795
|
'filename': filename
|
|
1792
1796
|
};
|
|
1793
|
-
var queryParams = {
|
|
1797
|
+
var queryParams = {
|
|
1798
|
+
'version': opts['version'],
|
|
1799
|
+
'notes': opts['notes']
|
|
1800
|
+
};
|
|
1794
1801
|
var headerParams = {};
|
|
1795
1802
|
var formParams = {};
|
|
1796
1803
|
var authNames = ['personalAccessToken'];
|
|
@@ -1806,12 +1813,15 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1806
1813
|
* @param {module:model/String} firmwareType
|
|
1807
1814
|
* @param {String} filename
|
|
1808
1815
|
* @param {File} body contents of the firmware binary
|
|
1816
|
+
* @param {Object} opts Optional parameters
|
|
1817
|
+
* @param {String} opts.version Firmware version (optional). If not provided, the version will be extracted from firmware binary if available, otherwise left empty
|
|
1818
|
+
* @param {String} opts.notes Optional notes describing what's different about this firmware version
|
|
1809
1819
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1810
1820
|
*/
|
|
1811
1821
|
}, {
|
|
1812
1822
|
key: "uploadFirmware",
|
|
1813
|
-
value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body) {
|
|
1814
|
-
return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body).then(function (response_and_data) {
|
|
1823
|
+
value: function uploadFirmware(projectOrProductUID, firmwareType, filename, body, opts) {
|
|
1824
|
+
return this.uploadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, body, opts).then(function (response_and_data) {
|
|
1815
1825
|
return response_and_data.data;
|
|
1816
1826
|
});
|
|
1817
1827
|
}
|
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 1.0.38-beta.
|
|
33
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
34
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
32
|
+
* @version 1.0.38-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/index.js
CHANGED
|
@@ -87,6 +87,12 @@ Object.defineProperty(exports, "Body", {
|
|
|
87
87
|
return _Body["default"];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
+
Object.defineProperty(exports, "CellularPlan", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _CellularPlan["default"];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
90
96
|
Object.defineProperty(exports, "CloneProjectRequest", {
|
|
91
97
|
enumerable: true,
|
|
92
98
|
get: function get() {
|
|
@@ -159,6 +165,12 @@ Object.defineProperty(exports, "DataSetField", {
|
|
|
159
165
|
return _DataSetField["default"];
|
|
160
166
|
}
|
|
161
167
|
});
|
|
168
|
+
Object.defineProperty(exports, "DataUsage", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _DataUsage["default"];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
162
174
|
Object.defineProperty(exports, "DeleteDeviceFleetsRequest", {
|
|
163
175
|
enumerable: true,
|
|
164
176
|
get: function get() {
|
|
@@ -351,6 +363,12 @@ Object.defineProperty(exports, "GetDeviceLatest200Response", {
|
|
|
351
363
|
return _GetDeviceLatest200Response["default"];
|
|
352
364
|
}
|
|
353
365
|
});
|
|
366
|
+
Object.defineProperty(exports, "GetDevicePlans200Response", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function get() {
|
|
369
|
+
return _GetDevicePlans200Response["default"];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
354
372
|
Object.defineProperty(exports, "GetDevicePublicKey200Response", {
|
|
355
373
|
enumerable: true,
|
|
356
374
|
get: function get() {
|
|
@@ -639,6 +657,12 @@ Object.defineProperty(exports, "RouteLog", {
|
|
|
639
657
|
return _RouteLog["default"];
|
|
640
658
|
}
|
|
641
659
|
});
|
|
660
|
+
Object.defineProperty(exports, "SatellitePlan", {
|
|
661
|
+
enumerable: true,
|
|
662
|
+
get: function get() {
|
|
663
|
+
return _SatellitePlan["default"];
|
|
664
|
+
}
|
|
665
|
+
});
|
|
642
666
|
Object.defineProperty(exports, "SchemaProperty", {
|
|
643
667
|
enumerable: true,
|
|
644
668
|
get: function get() {
|
|
@@ -806,6 +830,7 @@ var _Azure = _interopRequireDefault(require("./model/Azure"));
|
|
|
806
830
|
var _BillingAccount = _interopRequireDefault(require("./model/BillingAccount"));
|
|
807
831
|
var _BillingAccountRole = _interopRequireDefault(require("./model/BillingAccountRole"));
|
|
808
832
|
var _Body = _interopRequireDefault(require("./model/Body"));
|
|
833
|
+
var _CellularPlan = _interopRequireDefault(require("./model/CellularPlan"));
|
|
809
834
|
var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectRequest"));
|
|
810
835
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
811
836
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
@@ -818,6 +843,7 @@ var _DFUEnv = _interopRequireDefault(require("./model/DFUEnv"));
|
|
|
818
843
|
var _DFUState = _interopRequireDefault(require("./model/DFUState"));
|
|
819
844
|
var _DataField = _interopRequireDefault(require("./model/DataField"));
|
|
820
845
|
var _DataSetField = _interopRequireDefault(require("./model/DataSetField"));
|
|
846
|
+
var _DataUsage = _interopRequireDefault(require("./model/DataUsage"));
|
|
821
847
|
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("./model/DeleteDeviceFleetsRequest"));
|
|
822
848
|
var _Device = _interopRequireDefault(require("./model/Device"));
|
|
823
849
|
var _DeviceDfuHistory = _interopRequireDefault(require("./model/DeviceDfuHistory"));
|
|
@@ -847,6 +873,7 @@ var _GetDeviceFleets200Response = _interopRequireDefault(require("./model/GetDev
|
|
|
847
873
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
|
|
848
874
|
var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./model/GetDeviceHealthLog200ResponseHealthLogInner"));
|
|
849
875
|
var _GetDeviceLatest200Response = _interopRequireDefault(require("./model/GetDeviceLatest200Response"));
|
|
876
|
+
var _GetDevicePlans200Response = _interopRequireDefault(require("./model/GetDevicePlans200Response"));
|
|
850
877
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("./model/GetDevicePublicKey200Response"));
|
|
851
878
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("./model/GetDeviceSessions200Response"));
|
|
852
879
|
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("./model/GetProjectDevicePublicKeys200Response"));
|
|
@@ -892,6 +919,7 @@ var _Radresponder = _interopRequireDefault(require("./model/Radresponder"));
|
|
|
892
919
|
var _Repository = _interopRequireDefault(require("./model/Repository"));
|
|
893
920
|
var _Role = _interopRequireDefault(require("./model/Role"));
|
|
894
921
|
var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
|
|
922
|
+
var _SatellitePlan = _interopRequireDefault(require("./model/SatellitePlan"));
|
|
895
923
|
var _SchemaProperty = _interopRequireDefault(require("./model/SchemaProperty"));
|
|
896
924
|
var _SimUsage = _interopRequireDefault(require("./model/SimUsage"));
|
|
897
925
|
var _Slack = _interopRequireDefault(require("./model/Slack"));
|
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 1.0.38-beta.
|
|
29
|
+
* @version 1.0.38-beta.10
|
|
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 1.0.38-beta.
|
|
29
|
+
* @version 1.0.38-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Aws.js
CHANGED
package/dist/model/AwsFilter.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AwsFilter model module.
|
|
28
28
|
* @module model/AwsFilter
|
|
29
|
-
* @version 1.0.38-beta.
|
|
29
|
+
* @version 1.0.38-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var AwsFilter = /*#__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 AwsTransform model module.
|
|
28
28
|
* @module model/AwsTransform
|
|
29
|
-
* @version 1.0.38-beta.
|
|
29
|
+
* @version 1.0.38-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var AwsTransform = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Azure.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 1.0.38-beta.
|
|
33
|
+
* @version 1.0.38-beta.10
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/Body.js
CHANGED