@blues-inc/notehub-js 2.0.0-beta.1 → 2.0.0-beta.2
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 -2
- 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 +10 -10
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +26 -5
- 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 +159 -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/{DataSet.js → GetDevicePlans200Response.js} +28 -80
- 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 +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/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: 2.0.0-beta.
|
|
9
|
+
- Package version: 2.0.0-beta.2
|
|
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)
|
|
@@ -252,8 +254,8 @@ Class | Method | HTTP request | Description
|
|
|
252
254
|
- [NotehubJs.DFUEnv](docs/DFUEnv.md)
|
|
253
255
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
254
256
|
- [NotehubJs.DataField](docs/DataField.md)
|
|
255
|
-
- [NotehubJs.DataSet](docs/DataSet.md)
|
|
256
257
|
- [NotehubJs.DataSetField](docs/DataSetField.md)
|
|
258
|
+
- [NotehubJs.DataUsage](docs/DataUsage.md)
|
|
257
259
|
- [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
|
|
258
260
|
- [NotehubJs.Device](docs/Device.md)
|
|
259
261
|
- [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
|
|
@@ -283,6 +285,7 @@ Class | Method | HTTP request | Description
|
|
|
283
285
|
- [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
|
|
284
286
|
- [NotehubJs.GetDeviceHealthLog200ResponseHealthLogInner](docs/GetDeviceHealthLog200ResponseHealthLogInner.md)
|
|
285
287
|
- [NotehubJs.GetDeviceLatest200Response](docs/GetDeviceLatest200Response.md)
|
|
288
|
+
- [NotehubJs.GetDevicePlans200Response](docs/GetDevicePlans200Response.md)
|
|
286
289
|
- [NotehubJs.GetDevicePublicKey200Response](docs/GetDevicePublicKey200Response.md)
|
|
287
290
|
- [NotehubJs.GetDeviceSessions200Response](docs/GetDeviceSessions200Response.md)
|
|
288
291
|
- [NotehubJs.GetProjectDevicePublicKeys200Response](docs/GetProjectDevicePublicKeys200Response.md)
|
|
@@ -328,6 +331,7 @@ Class | Method | HTTP request | Description
|
|
|
328
331
|
- [NotehubJs.Repository](docs/Repository.md)
|
|
329
332
|
- [NotehubJs.Role](docs/Role.md)
|
|
330
333
|
- [NotehubJs.RouteLog](docs/RouteLog.md)
|
|
334
|
+
- [NotehubJs.SatellitePlan](docs/SatellitePlan.md)
|
|
331
335
|
- [NotehubJs.SchemaProperty](docs/SchemaProperty.md)
|
|
332
336
|
- [NotehubJs.SimUsage](docs/SimUsage.md)
|
|
333
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 2.0.0-beta.
|
|
29
|
+
* @version 2.0.0-beta.2
|
|
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/2.0.0-beta.
|
|
76
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/2.0.0-beta.2/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 2.0.0-beta.
|
|
31
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
33
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
31
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
50
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
33
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
32
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
32
|
+
* @version 2.0.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,20 +47,20 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* Create a new Monitor
|
|
49
49
|
* @param {String} projectOrProductUID
|
|
50
|
-
* @param {module:model/
|
|
50
|
+
* @param {module:model/Monitor} body Body or payload of monitor to be created
|
|
51
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(MonitorApi, [{
|
|
54
54
|
key: "createMonitorWithHttpInfo",
|
|
55
|
-
value: function createMonitorWithHttpInfo(projectOrProductUID,
|
|
56
|
-
var postBody =
|
|
55
|
+
value: function createMonitorWithHttpInfo(projectOrProductUID, body) {
|
|
56
|
+
var postBody = body;
|
|
57
57
|
// verify the required parameter 'projectOrProductUID' is set
|
|
58
58
|
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
59
59
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createMonitor");
|
|
60
60
|
}
|
|
61
|
-
// verify the required parameter '
|
|
62
|
-
if (
|
|
63
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
61
|
+
// verify the required parameter 'body' is set
|
|
62
|
+
if (body === undefined || body === null) {
|
|
63
|
+
throw new _Error["default"]("Missing the required parameter 'body' when calling createMonitor");
|
|
64
64
|
}
|
|
65
65
|
var pathParams = {
|
|
66
66
|
'projectOrProductUID': projectOrProductUID
|
|
@@ -78,13 +78,13 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
78
|
/**
|
|
79
79
|
* Create a new Monitor
|
|
80
80
|
* @param {String} projectOrProductUID
|
|
81
|
-
* @param {module:model/
|
|
81
|
+
* @param {module:model/Monitor} body Body or payload of monitor to be created
|
|
82
82
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
83
83
|
*/
|
|
84
84
|
}, {
|
|
85
85
|
key: "createMonitor",
|
|
86
|
-
value: function createMonitor(projectOrProductUID,
|
|
87
|
-
return this.createMonitorWithHttpInfo(projectOrProductUID,
|
|
86
|
+
value: function createMonitor(projectOrProductUID, body) {
|
|
87
|
+
return this.createMonitorWithHttpInfo(projectOrProductUID, body).then(function (response_and_data) {
|
|
88
88
|
return response_and_data.data;
|
|
89
89
|
});
|
|
90
90
|
}
|
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 2.0.0-beta.
|
|
53
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
33
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
34
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
32
|
+
* @version 2.0.0-beta.2
|
|
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() {
|
|
@@ -153,16 +159,16 @@ Object.defineProperty(exports, "DataField", {
|
|
|
153
159
|
return _DataField["default"];
|
|
154
160
|
}
|
|
155
161
|
});
|
|
156
|
-
Object.defineProperty(exports, "
|
|
162
|
+
Object.defineProperty(exports, "DataSetField", {
|
|
157
163
|
enumerable: true,
|
|
158
164
|
get: function get() {
|
|
159
|
-
return
|
|
165
|
+
return _DataSetField["default"];
|
|
160
166
|
}
|
|
161
167
|
});
|
|
162
|
-
Object.defineProperty(exports, "
|
|
168
|
+
Object.defineProperty(exports, "DataUsage", {
|
|
163
169
|
enumerable: true,
|
|
164
170
|
get: function get() {
|
|
165
|
-
return
|
|
171
|
+
return _DataUsage["default"];
|
|
166
172
|
}
|
|
167
173
|
});
|
|
168
174
|
Object.defineProperty(exports, "DeleteDeviceFleetsRequest", {
|
|
@@ -357,6 +363,12 @@ Object.defineProperty(exports, "GetDeviceLatest200Response", {
|
|
|
357
363
|
return _GetDeviceLatest200Response["default"];
|
|
358
364
|
}
|
|
359
365
|
});
|
|
366
|
+
Object.defineProperty(exports, "GetDevicePlans200Response", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function get() {
|
|
369
|
+
return _GetDevicePlans200Response["default"];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
360
372
|
Object.defineProperty(exports, "GetDevicePublicKey200Response", {
|
|
361
373
|
enumerable: true,
|
|
362
374
|
get: function get() {
|
|
@@ -645,6 +657,12 @@ Object.defineProperty(exports, "RouteLog", {
|
|
|
645
657
|
return _RouteLog["default"];
|
|
646
658
|
}
|
|
647
659
|
});
|
|
660
|
+
Object.defineProperty(exports, "SatellitePlan", {
|
|
661
|
+
enumerable: true,
|
|
662
|
+
get: function get() {
|
|
663
|
+
return _SatellitePlan["default"];
|
|
664
|
+
}
|
|
665
|
+
});
|
|
648
666
|
Object.defineProperty(exports, "SchemaProperty", {
|
|
649
667
|
enumerable: true,
|
|
650
668
|
get: function get() {
|
|
@@ -812,6 +830,7 @@ var _Azure = _interopRequireDefault(require("./model/Azure"));
|
|
|
812
830
|
var _BillingAccount = _interopRequireDefault(require("./model/BillingAccount"));
|
|
813
831
|
var _BillingAccountRole = _interopRequireDefault(require("./model/BillingAccountRole"));
|
|
814
832
|
var _Body = _interopRequireDefault(require("./model/Body"));
|
|
833
|
+
var _CellularPlan = _interopRequireDefault(require("./model/CellularPlan"));
|
|
815
834
|
var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectRequest"));
|
|
816
835
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
817
836
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
@@ -823,8 +842,8 @@ var _CurrentFirmware = _interopRequireDefault(require("./model/CurrentFirmware")
|
|
|
823
842
|
var _DFUEnv = _interopRequireDefault(require("./model/DFUEnv"));
|
|
824
843
|
var _DFUState = _interopRequireDefault(require("./model/DFUState"));
|
|
825
844
|
var _DataField = _interopRequireDefault(require("./model/DataField"));
|
|
826
|
-
var _DataSet = _interopRequireDefault(require("./model/DataSet"));
|
|
827
845
|
var _DataSetField = _interopRequireDefault(require("./model/DataSetField"));
|
|
846
|
+
var _DataUsage = _interopRequireDefault(require("./model/DataUsage"));
|
|
828
847
|
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("./model/DeleteDeviceFleetsRequest"));
|
|
829
848
|
var _Device = _interopRequireDefault(require("./model/Device"));
|
|
830
849
|
var _DeviceDfuHistory = _interopRequireDefault(require("./model/DeviceDfuHistory"));
|
|
@@ -854,6 +873,7 @@ var _GetDeviceFleets200Response = _interopRequireDefault(require("./model/GetDev
|
|
|
854
873
|
var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
|
|
855
874
|
var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./model/GetDeviceHealthLog200ResponseHealthLogInner"));
|
|
856
875
|
var _GetDeviceLatest200Response = _interopRequireDefault(require("./model/GetDeviceLatest200Response"));
|
|
876
|
+
var _GetDevicePlans200Response = _interopRequireDefault(require("./model/GetDevicePlans200Response"));
|
|
857
877
|
var _GetDevicePublicKey200Response = _interopRequireDefault(require("./model/GetDevicePublicKey200Response"));
|
|
858
878
|
var _GetDeviceSessions200Response = _interopRequireDefault(require("./model/GetDeviceSessions200Response"));
|
|
859
879
|
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("./model/GetProjectDevicePublicKeys200Response"));
|
|
@@ -899,6 +919,7 @@ var _Radresponder = _interopRequireDefault(require("./model/Radresponder"));
|
|
|
899
919
|
var _Repository = _interopRequireDefault(require("./model/Repository"));
|
|
900
920
|
var _Role = _interopRequireDefault(require("./model/Role"));
|
|
901
921
|
var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
|
|
922
|
+
var _SatellitePlan = _interopRequireDefault(require("./model/SatellitePlan"));
|
|
902
923
|
var _SchemaProperty = _interopRequireDefault(require("./model/SchemaProperty"));
|
|
903
924
|
var _SimUsage = _interopRequireDefault(require("./model/SimUsage"));
|
|
904
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 2.0.0-beta.
|
|
29
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
29
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
29
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
29
|
+
* @version 2.0.0-beta.2
|
|
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 2.0.0-beta.
|
|
33
|
+
* @version 2.0.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/Body.js
CHANGED