@blues-inc/notehub-js 1.0.37-beta.30 → 1.0.37-beta.32

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.
Files changed (139) hide show
  1. package/README.md +5 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +2 -2
  4. package/dist/api/AuthorizationApi.js +2 -2
  5. package/dist/api/BillingAccountApi.js +2 -2
  6. package/dist/api/DeviceApi.js +66 -6
  7. package/dist/api/EventApi.js +2 -2
  8. package/dist/api/ExternalDevicesApi.js +2 -2
  9. package/dist/api/MonitorApi.js +2 -2
  10. package/dist/api/ProjectApi.js +2 -2
  11. package/dist/api/RouteApi.js +2 -2
  12. package/dist/api/UsageApi.js +2 -2
  13. package/dist/api/WebhookApi.js +2 -2
  14. package/dist/index.js +14 -7
  15. package/dist/model/Alert.js +2 -2
  16. package/dist/model/AlertDataInner.js +2 -2
  17. package/dist/model/AlertNotificationsInner.js +2 -2
  18. package/dist/model/Aws.js +2 -2
  19. package/dist/model/AwsFilter.js +2 -2
  20. package/dist/model/AwsTransform.js +2 -2
  21. package/dist/model/Azure.js +2 -2
  22. package/dist/model/BillingAccount.js +2 -2
  23. package/dist/model/BillingAccountRole.js +1 -1
  24. package/dist/model/Body.js +2 -2
  25. package/dist/model/CellularPlan.js +10 -37
  26. package/dist/model/CloneProjectRequest.js +2 -2
  27. package/dist/model/Contact.js +2 -2
  28. package/dist/model/CreateFleetRequest.js +2 -2
  29. package/dist/model/CreateMonitor.js +2 -2
  30. package/dist/model/CreateProductRequest.js +2 -2
  31. package/dist/model/CreateProjectRequest.js +2 -2
  32. package/dist/model/CreateUpdateRepository.js +2 -2
  33. package/dist/model/CurrentFirmware.js +2 -2
  34. package/dist/model/DFUEnv.js +2 -2
  35. package/dist/model/DFUState.js +2 -2
  36. package/dist/model/DataField.js +2 -2
  37. package/dist/model/DataSetField.js +2 -2
  38. package/dist/model/{CumulativeDataUsage.js → DataUsage.js} +23 -23
  39. package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
  40. package/dist/model/Device.js +8 -52
  41. package/dist/model/DeviceDfuHistory.js +2 -2
  42. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  43. package/dist/model/DeviceDfuHistoryPage.js +2 -2
  44. package/dist/model/DeviceDfuStateMachine.js +2 -2
  45. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  46. package/dist/model/DeviceDfuStatus.js +2 -2
  47. package/dist/model/DeviceDfuStatusPage.js +2 -2
  48. package/dist/model/DeviceSession.js +2 -2
  49. package/dist/model/DeviceTowerInfo.js +2 -2
  50. package/dist/model/DeviceUsage.js +2 -2
  51. package/dist/model/DfuActionRequest.js +2 -2
  52. package/dist/model/EmailNotification.js +2 -2
  53. package/dist/model/EnvTreeJsonNode.js +2 -2
  54. package/dist/model/EnvVar.js +2 -2
  55. package/dist/model/EnvironmentVariables.js +2 -2
  56. package/dist/model/Error.js +2 -2
  57. package/dist/model/Event.js +2 -2
  58. package/dist/model/Firmware.js +2 -2
  59. package/dist/model/FirmwareInfo.js +2 -2
  60. package/dist/model/Fleet.js +2 -2
  61. package/dist/model/GetAlerts200Response.js +2 -2
  62. package/dist/model/GetBillingAccounts200Response.js +2 -2
  63. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  64. package/dist/model/GetDeviceFleets200Response.js +2 -2
  65. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  66. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
  67. package/dist/model/GetDeviceLatest200Response.js +2 -2
  68. package/dist/model/GetDevicePlans200Response.js +112 -0
  69. package/dist/model/GetDevicePublicKey200Response.js +2 -2
  70. package/dist/model/GetDeviceSessions200Response.js +2 -2
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
  73. package/dist/model/GetProjectDevices200Response.js +2 -2
  74. package/dist/model/GetProjectEvents200Response.js +2 -2
  75. package/dist/model/GetProjectEventsByCursor200Response.js +2 -2
  76. package/dist/model/GetProjectMembers200Response.js +2 -2
  77. package/dist/model/GetProjectProducts200Response.js +2 -2
  78. package/dist/model/GetProjects200Response.js +2 -2
  79. package/dist/model/GetWebhooks200Response.js +2 -2
  80. package/dist/model/Google.js +2 -2
  81. package/dist/model/HandleNoteChanges200Response.js +2 -2
  82. package/dist/model/HandleNoteGet200Response.js +2 -2
  83. package/dist/model/HandleNoteSignal200Response.js +2 -2
  84. package/dist/model/HandleNotefileChanges200Response.js +2 -2
  85. package/dist/model/HandleNotefileChangesPending200Response.js +2 -2
  86. package/dist/model/HandleNotefileDeleteRequest.js +2 -2
  87. package/dist/model/Http.js +2 -2
  88. package/dist/model/Location.js +2 -2
  89. package/dist/model/Login200Response.js +2 -2
  90. package/dist/model/LoginRequest.js +2 -2
  91. package/dist/model/Monitor.js +2 -2
  92. package/dist/model/MonitorAlertRoutesInner.js +2 -2
  93. package/dist/model/Mqtt.js +2 -2
  94. package/dist/model/Note.js +2 -2
  95. package/dist/model/NotefileSchema.js +2 -2
  96. package/dist/model/NotehubRoute.js +2 -2
  97. package/dist/model/NotehubRouteSchema.js +2 -2
  98. package/dist/model/OAuth2Error.js +2 -2
  99. package/dist/model/OAuth2TokenResponse.js +2 -2
  100. package/dist/model/PersonalAccessToken.js +2 -2
  101. package/dist/model/PersonalAccessTokenCreatedBy.js +2 -2
  102. package/dist/model/PersonalAccessTokenInfo.js +2 -2
  103. package/dist/model/PersonalAccessTokenSecret.js +2 -2
  104. package/dist/model/PostProvisionProjectDeviceRequest.js +2 -2
  105. package/dist/model/Product.js +2 -2
  106. package/dist/model/Project.js +2 -2
  107. package/dist/model/ProjectMember.js +2 -2
  108. package/dist/model/Proxy.js +2 -2
  109. package/dist/model/PutDeviceFleetsRequest.js +2 -2
  110. package/dist/model/Radresponder.js +2 -2
  111. package/dist/model/Repository.js +2 -2
  112. package/dist/model/Role.js +1 -1
  113. package/dist/model/RouteLog.js +2 -2
  114. package/dist/model/SatellitePlan.js +14 -16
  115. package/dist/model/SchemaProperty.js +2 -2
  116. package/dist/model/SimUsage.js +2 -2
  117. package/dist/model/Slack.js +2 -2
  118. package/dist/model/SlackBearerNotification.js +2 -2
  119. package/dist/model/SlackTransform.js +2 -2
  120. package/dist/model/SlackWebHookNotification.js +2 -2
  121. package/dist/model/Snowflake.js +2 -2
  122. package/dist/model/Thingworx.js +2 -2
  123. package/dist/model/TowerLocation.js +2 -2
  124. package/dist/model/Twilio.js +2 -2
  125. package/dist/model/UpdateFleetRequest.js +2 -2
  126. package/dist/model/UploadMetadata.js +2 -2
  127. package/dist/model/UsageData.js +2 -2
  128. package/dist/model/UsageEventsData.js +2 -2
  129. package/dist/model/UsageEventsResponse.js +2 -2
  130. package/dist/model/UsageRouteLogsData.js +2 -2
  131. package/dist/model/UsageRouteLogsResponse.js +2 -2
  132. package/dist/model/UsageSessionsData.js +2 -2
  133. package/dist/model/UsageSessionsResponse.js +2 -2
  134. package/dist/model/UserDbRoute.js +2 -2
  135. package/dist/model/UserDfuStateMachine.js +2 -2
  136. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  137. package/dist/model/UserFirmwareInfo.js +2 -2
  138. package/dist/model/WebhookSettings.js +2 -2
  139. package/package.json +26 -26
package/README.md CHANGED
@@ -5,8 +5,8 @@ The OpenAPI definition for the Notehub.io API.
5
5
 
6
6
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
- - API version: 1.2.1
9
- - Package version: 1.0.37-beta.30
8
+ - API version: 1.2.0
9
+ - Package version: 1.0.37-beta.32
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 |
@@ -249,12 +250,12 @@ Class | Method | HTTP request | Description
249
250
  - [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
250
251
  - [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
251
252
  - [NotehubJs.CreateUpdateRepository](docs/CreateUpdateRepository.md)
252
- - [NotehubJs.CumulativeDataUsage](docs/CumulativeDataUsage.md)
253
253
  - [NotehubJs.CurrentFirmware](docs/CurrentFirmware.md)
254
254
  - [NotehubJs.DFUEnv](docs/DFUEnv.md)
255
255
  - [NotehubJs.DFUState](docs/DFUState.md)
256
256
  - [NotehubJs.DataField](docs/DataField.md)
257
257
  - [NotehubJs.DataSetField](docs/DataSetField.md)
258
+ - [NotehubJs.DataUsage](docs/DataUsage.md)
258
259
  - [NotehubJs.DeleteDeviceFleetsRequest](docs/DeleteDeviceFleetsRequest.md)
259
260
  - [NotehubJs.Device](docs/Device.md)
260
261
  - [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
@@ -284,6 +285,7 @@ Class | Method | HTTP request | Description
284
285
  - [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
285
286
  - [NotehubJs.GetDeviceHealthLog200ResponseHealthLogInner](docs/GetDeviceHealthLog200ResponseHealthLogInner.md)
286
287
  - [NotehubJs.GetDeviceLatest200Response](docs/GetDeviceLatest200Response.md)
288
+ - [NotehubJs.GetDevicePlans200Response](docs/GetDevicePlans200Response.md)
287
289
  - [NotehubJs.GetDevicePublicKey200Response](docs/GetDevicePublicKey200Response.md)
288
290
  - [NotehubJs.GetDeviceSessions200Response](docs/GetDeviceSessions200Response.md)
289
291
  - [NotehubJs.GetProjectDevicePublicKeys200Response](docs/GetProjectDevicePublicKeys200Response.md)
package/dist/ApiClient.js CHANGED
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
- * The version of the OpenAPI document: 1.2.1
19
+ * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -75,7 +75,7 @@ var ApiClient = /*#__PURE__*/function () {
75
75
  */
76
76
  this.defaultHeaders = {};
77
77
  if (typeof window === 'undefined') {
78
- this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.37-beta.30/Javascript';
78
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.37-beta.32/Javascript';
79
79
  }
80
80
 
81
81
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * Notehub API
18
18
  * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
- * The version of the OpenAPI document: 1.2.1
20
+ * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
31
+ * @version 1.0.37-beta.32
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.1
22
+ * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
33
+ * @version 1.0.37-beta.32
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * Notehub API
18
18
  * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
- * The version of the OpenAPI document: 1.2.1
20
+ * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
31
+ * @version 1.0.37-beta.32
32
32
  */
33
33
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -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"));
@@ -35,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
35
36
  * Notehub API
36
37
  * The OpenAPI definition for the Notehub.io API.
37
38
  *
38
- * The version of the OpenAPI document: 1.2.1
39
+ * The version of the OpenAPI document: 1.2.0
39
40
  * Contact: engineering@blues.io
40
41
  *
41
42
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
50
+ * @version 1.0.37-beta.32
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 = ['api_key'];
@@ -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 = ['api_key'];
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
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.1
22
+ * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
33
+ * @version 1.0.37-beta.32
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -39,7 +39,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
39
39
  * Notehub API
40
40
  * The OpenAPI definition for the Notehub.io API.
41
41
  *
42
- * The version of the OpenAPI document: 1.2.1
42
+ * The version of the OpenAPI document: 1.2.0
43
43
  * Contact: engineering@blues.io
44
44
  *
45
45
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
53
+ * @version 1.0.37-beta.32
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.1
22
+ * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
33
+ * @version 1.0.37-beta.32
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Notehub API
21
21
  * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
- * The version of the OpenAPI document: 1.2.1
23
+ * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
34
+ * @version 1.0.37-beta.32
35
35
  */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -135,12 +135,6 @@ Object.defineProperty(exports, "CreateUpdateRepository", {
135
135
  return _CreateUpdateRepository["default"];
136
136
  }
137
137
  });
138
- Object.defineProperty(exports, "CumulativeDataUsage", {
139
- enumerable: true,
140
- get: function get() {
141
- return _CumulativeDataUsage["default"];
142
- }
143
- });
144
138
  Object.defineProperty(exports, "CurrentFirmware", {
145
139
  enumerable: true,
146
140
  get: function get() {
@@ -171,6 +165,12 @@ Object.defineProperty(exports, "DataSetField", {
171
165
  return _DataSetField["default"];
172
166
  }
173
167
  });
168
+ Object.defineProperty(exports, "DataUsage", {
169
+ enumerable: true,
170
+ get: function get() {
171
+ return _DataUsage["default"];
172
+ }
173
+ });
174
174
  Object.defineProperty(exports, "DeleteDeviceFleetsRequest", {
175
175
  enumerable: true,
176
176
  get: function get() {
@@ -363,6 +363,12 @@ Object.defineProperty(exports, "GetDeviceLatest200Response", {
363
363
  return _GetDeviceLatest200Response["default"];
364
364
  }
365
365
  });
366
+ Object.defineProperty(exports, "GetDevicePlans200Response", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _GetDevicePlans200Response["default"];
370
+ }
371
+ });
366
372
  Object.defineProperty(exports, "GetDevicePublicKey200Response", {
367
373
  enumerable: true,
368
374
  get: function get() {
@@ -832,12 +838,12 @@ var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
832
838
  var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
833
839
  var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
834
840
  var _CreateUpdateRepository = _interopRequireDefault(require("./model/CreateUpdateRepository"));
835
- var _CumulativeDataUsage = _interopRequireDefault(require("./model/CumulativeDataUsage"));
836
841
  var _CurrentFirmware = _interopRequireDefault(require("./model/CurrentFirmware"));
837
842
  var _DFUEnv = _interopRequireDefault(require("./model/DFUEnv"));
838
843
  var _DFUState = _interopRequireDefault(require("./model/DFUState"));
839
844
  var _DataField = _interopRequireDefault(require("./model/DataField"));
840
845
  var _DataSetField = _interopRequireDefault(require("./model/DataSetField"));
846
+ var _DataUsage = _interopRequireDefault(require("./model/DataUsage"));
841
847
  var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("./model/DeleteDeviceFleetsRequest"));
842
848
  var _Device = _interopRequireDefault(require("./model/Device"));
843
849
  var _DeviceDfuHistory = _interopRequireDefault(require("./model/DeviceDfuHistory"));
@@ -867,6 +873,7 @@ var _GetDeviceFleets200Response = _interopRequireDefault(require("./model/GetDev
867
873
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
868
874
  var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./model/GetDeviceHealthLog200ResponseHealthLogInner"));
869
875
  var _GetDeviceLatest200Response = _interopRequireDefault(require("./model/GetDeviceLatest200Response"));
876
+ var _GetDevicePlans200Response = _interopRequireDefault(require("./model/GetDevicePlans200Response"));
870
877
  var _GetDevicePublicKey200Response = _interopRequireDefault(require("./model/GetDevicePublicKey200Response"));
871
878
  var _GetDeviceSessions200Response = _interopRequireDefault(require("./model/GetDeviceSessions200Response"));
872
879
  var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("./model/GetProjectDevicePublicKeys200Response"));
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Notehub API
21
21
  * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
- * The version of the OpenAPI document: 1.2.1
23
+ * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 1.0.37-beta.30
34
+ * @version 1.0.37-beta.32
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
package/dist/model/Aws.js CHANGED
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * Notehub API
18
18
  * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
- * The version of the OpenAPI document: 1.2.1
20
+ * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The Aws model module.
30
30
  * @module model/Aws
31
- * @version 1.0.37-beta.30
31
+ * @version 1.0.37-beta.32
32
32
  */
33
33
  var Aws = /*#__PURE__*/function () {
34
34
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var AwsFilter = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var AwsTransform = /*#__PURE__*/function () {
32
32
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * Notehub API
18
18
  * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
- * The version of the OpenAPI document: 1.2.1
20
+ * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The Azure model module.
30
30
  * @module model/Azure
31
- * @version 1.0.37-beta.30
31
+ * @version 1.0.37-beta.32
32
32
  */
33
33
  var Azure = /*#__PURE__*/function () {
34
34
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.1
22
+ * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.37-beta.30
33
+ * @version 1.0.37-beta.32
34
34
  */
35
35
  var BillingAccount = /*#__PURE__*/function () {
36
36
  /**
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
- * The version of the OpenAPI document: 1.2.1
19
+ * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Body model module.
28
28
  * @module model/Body
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var Body = /*#__PURE__*/function () {
32
32
  /**