@blues-inc/notehub-js 5.0.0-beta.11 → 5.0.0-beta.13

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 (148) hide show
  1. package/README.md +8 -1
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +93 -3
  6. package/dist/api/DeviceApi.js +1 -1
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +54 -1
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +13 -1
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +28 -0
  15. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  16. package/dist/model/Alert.js +1 -1
  17. package/dist/model/AlertDataInner.js +1 -1
  18. package/dist/model/AlertNotificationsInner.js +1 -1
  19. package/dist/model/AwsRoute.js +1 -1
  20. package/dist/model/AzureRoute.js +1 -1
  21. package/dist/model/BillingAccount.js +1 -1
  22. package/dist/model/BlynkRoute.js +1 -1
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CellularPlan.js +1 -1
  25. package/dist/model/CloneProjectRequest.js +1 -1
  26. package/dist/model/Contact.js +1 -1
  27. package/dist/model/CreateFleetRequest.js +1 -1
  28. package/dist/model/CreateMonitor.js +1 -1
  29. package/dist/model/CreateProductRequest.js +1 -1
  30. package/dist/model/CreateProjectRequest.js +1 -1
  31. package/dist/model/CreateUpdateRepository.js +1 -1
  32. package/dist/model/CurrentFirmware.js +1 -1
  33. package/dist/model/DFUEnv.js +1 -1
  34. package/dist/model/DFUState.js +1 -1
  35. package/dist/model/DataField.js +1 -1
  36. package/dist/model/DataSetField.js +1 -1
  37. package/dist/model/DataUsage.js +1 -1
  38. package/dist/model/DatacakeRoute.js +1 -1
  39. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  40. package/dist/model/DeleteNotefilesRequest.js +1 -1
  41. package/dist/model/Device.js +1 -1
  42. package/dist/model/DeviceDfuHistory.js +1 -1
  43. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  44. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  45. package/dist/model/DeviceDfuStateMachine.js +1 -1
  46. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  47. package/dist/model/DeviceDfuStatus.js +1 -1
  48. package/dist/model/DeviceDfuStatusPage.js +1 -1
  49. package/dist/model/DeviceSession.js +1 -1
  50. package/dist/model/DeviceTowerInfo.js +1 -1
  51. package/dist/model/DeviceUsage.js +1 -1
  52. package/dist/model/DfuActionRequest.js +1 -1
  53. package/dist/model/EmailNotification.js +1 -1
  54. package/dist/model/EnvTreeJsonNode.js +1 -1
  55. package/dist/model/EnvVar.js +1 -1
  56. package/dist/model/EnvironmentVariables.js +1 -1
  57. package/dist/model/Error.js +1 -1
  58. package/dist/model/Event.js +1 -1
  59. package/dist/model/Filter.js +1 -1
  60. package/dist/model/Firmware.js +1 -1
  61. package/dist/model/FirmwareInfo.js +1 -1
  62. package/dist/model/Fleet.js +1 -1
  63. package/dist/model/FleetConnectivityAssurance.js +1 -1
  64. package/dist/model/GetAlerts200Response.js +1 -1
  65. package/dist/model/GetBillingAccount200Response.js +137 -0
  66. package/dist/model/GetBillingAccount200ResponsePlan.js +133 -0
  67. package/dist/model/GetBillingAccountBalanceHistory200Response.js +112 -0
  68. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +95 -0
  69. package/dist/model/GetBillingAccounts200Response.js +1 -1
  70. package/dist/model/GetDataUsage200Response.js +10 -1
  71. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  72. package/dist/model/GetDbNote200Response.js +1 -1
  73. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  74. package/dist/model/GetDeviceFleets200Response.js +1 -1
  75. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  76. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  77. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  78. package/dist/model/GetDevicePlans200Response.js +1 -1
  79. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  80. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  81. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  82. package/dist/model/GetDeviceSessions200Response.js +1 -1
  83. package/dist/model/GetDevices200Response.js +1 -1
  84. package/dist/model/GetEvents200Response.js +1 -1
  85. package/dist/model/GetEventsByCursor200Response.js +1 -1
  86. package/dist/model/GetNotefile200Response.js +1 -1
  87. package/dist/model/GetProducts200Response.js +1 -1
  88. package/dist/model/GetProjectMembers200Response.js +1 -1
  89. package/dist/model/GetProjects200Response.js +1 -1
  90. package/dist/model/GetRouteLogsUsage200Response.js +10 -1
  91. package/dist/model/GetSessionsUsage200Response.js +16 -5
  92. package/dist/model/GetWebhooks200Response.js +1 -1
  93. package/dist/model/GoogleRoute.js +1 -1
  94. package/dist/model/HttpRoute.js +1 -1
  95. package/dist/model/Location.js +1 -1
  96. package/dist/model/Login200Response.js +1 -1
  97. package/dist/model/LoginRequest.js +1 -1
  98. package/dist/model/Monitor.js +1 -1
  99. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  100. package/dist/model/MqttRoute.js +1 -1
  101. package/dist/model/Note.js +1 -1
  102. package/dist/model/NoteInput.js +1 -1
  103. package/dist/model/Notefile.js +1 -1
  104. package/dist/model/NotefileSchema.js +1 -1
  105. package/dist/model/NotehubRoute.js +1 -1
  106. package/dist/model/NotehubRouteSummary.js +1 -1
  107. package/dist/model/OAuth2Error.js +1 -1
  108. package/dist/model/OAuth2TokenResponse.js +1 -1
  109. package/dist/model/PersonalAccessToken.js +1 -1
  110. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  111. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  112. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  113. package/dist/model/Product.js +1 -1
  114. package/dist/model/Project.js +1 -1
  115. package/dist/model/ProjectMember.js +1 -1
  116. package/dist/model/ProvisionDeviceRequest.js +1 -1
  117. package/dist/model/ProxyRoute.js +1 -1
  118. package/dist/model/QubitroRoute.js +1 -1
  119. package/dist/model/RadRoute.js +1 -1
  120. package/dist/model/Repository.js +1 -1
  121. package/dist/model/RouteLog.js +1 -1
  122. package/dist/model/RouteTransformSettings.js +1 -1
  123. package/dist/model/S3ArchiveRoute.js +1 -1
  124. package/dist/model/SatelliteDataUsage.js +1 -1
  125. package/dist/model/SatellitePlan.js +1 -1
  126. package/dist/model/SchemaProperty.js +1 -1
  127. package/dist/model/SignalDevice200Response.js +1 -1
  128. package/dist/model/SimUsage.js +1 -1
  129. package/dist/model/SlackBearerNotification.js +1 -1
  130. package/dist/model/SlackRoute.js +1 -1
  131. package/dist/model/SlackWebHookNotification.js +1 -1
  132. package/dist/model/SnowflakeRoute.js +1 -1
  133. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  134. package/dist/model/ThingworxRoute.js +1 -1
  135. package/dist/model/TowerLocation.js +1 -1
  136. package/dist/model/TwilioRoute.js +1 -1
  137. package/dist/model/UpdateFleetRequest.js +1 -1
  138. package/dist/model/UploadMetadata.js +1 -1
  139. package/dist/model/UsageData.js +39 -39
  140. package/dist/model/UsageEventsData.js +19 -1
  141. package/dist/model/UsageEventsResponse.js +10 -1
  142. package/dist/model/UsageRouteLogsData.js +1 -1
  143. package/dist/model/UsageSessionsData.js +1 -1
  144. package/dist/model/UserDfuStateMachine.js +1 -1
  145. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  146. package/dist/model/UserFirmwareInfo.js +1 -1
  147. package/dist/model/WebhookSettings.js +1 -1
  148. 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: 5.0.0-beta.11
9
+ - Package version: 5.0.0-beta.13
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
 
@@ -132,6 +132,8 @@ Class | Method | HTTP request | Description
132
132
  *NotehubJs.AlertApi* | [**getAlerts**](docs/AlertApi.md#getAlerts) | **GET** /v1/projects/{projectOrProductUID}/alerts |
133
133
  *NotehubJs.AuthorizationApi* | [**login**](docs/AuthorizationApi.md#login) | **POST** /auth/login |
134
134
  *NotehubJs.AuthorizationApi* | [**oAuth2ClientCredentials**](docs/AuthorizationApi.md#oAuth2ClientCredentials) | **POST** /oauth2/token | Issue an OAuth 2.0 access token (Client Credentials)
135
+ *NotehubJs.BillingAccountApi* | [**getBillingAccount**](docs/BillingAccountApi.md#getBillingAccount) | **GET** /v1/billing-accounts/{billingAccountUID} |
136
+ *NotehubJs.BillingAccountApi* | [**getBillingAccountBalanceHistory**](docs/BillingAccountApi.md#getBillingAccountBalanceHistory) | **GET** /v1/billing-accounts/{billingAccountUID}/balance-history |
135
137
  *NotehubJs.BillingAccountApi* | [**getBillingAccounts**](docs/BillingAccountApi.md#getBillingAccounts) | **GET** /v1/billing-accounts |
136
138
  *NotehubJs.DeviceApi* | [**addDbNote**](docs/DeviceApi.md#addDbNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
137
139
  *NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
@@ -186,6 +188,7 @@ Class | Method | HTTP request | Description
186
188
  *NotehubJs.ProjectApi* | [**deleteProject**](docs/ProjectApi.md#deleteProject) | **DELETE** /v1/projects/{projectOrProductUID} |
187
189
  *NotehubJs.ProjectApi* | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/environment_variables/{key} |
188
190
  *NotehubJs.ProjectApi* | [**disableGlobalEventTransformation**](docs/ProjectApi.md#disableGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation/disable |
191
+ *NotehubJs.ProjectApi* | [**downloadFirmware**](docs/ProjectApi.md#downloadFirmware) | **GET** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
189
192
  *NotehubJs.ProjectApi* | [**enableGlobalEventTransformation**](docs/ProjectApi.md#enableGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation/enable |
190
193
  *NotehubJs.ProjectApi* | [**getDeviceDfuHistory**](docs/ProjectApi.md#getDeviceDfuHistory) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history |
191
194
  *NotehubJs.ProjectApi* | [**getDeviceDfuStatus**](docs/ProjectApi.md#getDeviceDfuStatus) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status |
@@ -281,6 +284,10 @@ Class | Method | HTTP request | Description
281
284
  - [NotehubJs.Fleet](docs/Fleet.md)
282
285
  - [NotehubJs.FleetConnectivityAssurance](docs/FleetConnectivityAssurance.md)
283
286
  - [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
287
+ - [NotehubJs.GetBillingAccount200Response](docs/GetBillingAccount200Response.md)
288
+ - [NotehubJs.GetBillingAccount200ResponsePlan](docs/GetBillingAccount200ResponsePlan.md)
289
+ - [NotehubJs.GetBillingAccountBalanceHistory200Response](docs/GetBillingAccountBalanceHistory200Response.md)
290
+ - [NotehubJs.GetBillingAccountBalanceHistory200ResponseDataInner](docs/GetBillingAccountBalanceHistory200ResponseDataInner.md)
284
291
  - [NotehubJs.GetBillingAccounts200Response](docs/GetBillingAccounts200Response.md)
285
292
  - [NotehubJs.GetDataUsage200Response](docs/GetDataUsage200Response.md)
286
293
  - [NotehubJs.GetDataUsage200ResponseDataInner](docs/GetDataUsage200ResponseDataInner.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 5.0.0-beta.11
29
+ * @version 5.0.0-beta.13
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  */
69
69
  this.defaultHeaders = {};
70
70
  if (typeof window === 'undefined') {
71
- this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/5.0.0-beta.11/Javascript';
71
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/5.0.0-beta.13/Javascript';
72
72
  }
73
73
 
74
74
  /**
@@ -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 5.0.0-beta.11
31
+ * @version 5.0.0-beta.13
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 5.0.0-beta.11
33
+ * @version 5.0.0-beta.13
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
+ var _GetBillingAccount200Response = _interopRequireDefault(require("../model/GetBillingAccount200Response"));
10
+ var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("../model/GetBillingAccountBalanceHistory200Response"));
9
11
  var _GetBillingAccounts200Response = _interopRequireDefault(require("../model/GetBillingAccounts200Response"));
10
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
13
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -28,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
30
  /**
29
31
  * BillingAccount service.
30
32
  * @module api/BillingAccountApi
31
- * @version 5.0.0-beta.11
33
+ * @version 5.0.0-beta.13
32
34
  */
33
35
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
34
36
  /**
@@ -44,10 +46,98 @@ var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
44
46
  }
45
47
 
46
48
  /**
47
- * Get Billing Accounts accessible by the api_key
48
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccounts200Response} and HTTP response
49
+ * Get Billing Account Information
50
+ * @param {String} billingAccountUID
51
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccount200Response} and HTTP response
49
52
  */
50
53
  return _createClass(BillingAccountApi, [{
54
+ key: "getBillingAccountWithHttpInfo",
55
+ value: function getBillingAccountWithHttpInfo(billingAccountUID) {
56
+ var postBody = null;
57
+ // verify the required parameter 'billingAccountUID' is set
58
+ if (billingAccountUID === undefined || billingAccountUID === null) {
59
+ throw new _Error["default"]("Missing the required parameter 'billingAccountUID' when calling getBillingAccount");
60
+ }
61
+ var pathParams = {
62
+ 'billingAccountUID': billingAccountUID
63
+ };
64
+ var queryParams = {};
65
+ var headerParams = {};
66
+ var formParams = {};
67
+ var authNames = ['personalAccessToken'];
68
+ var contentTypes = [];
69
+ var accepts = ['application/json'];
70
+ var returnType = _GetBillingAccount200Response["default"];
71
+ return this.apiClient.callApi('/v1/billing-accounts/{billingAccountUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
72
+ }
73
+
74
+ /**
75
+ * Get Billing Account Information
76
+ * @param {String} billingAccountUID
77
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
78
+ */
79
+ }, {
80
+ key: "getBillingAccount",
81
+ value: function getBillingAccount(billingAccountUID) {
82
+ return this.getBillingAccountWithHttpInfo(billingAccountUID).then(function (response_and_data) {
83
+ return response_and_data.data;
84
+ });
85
+ }
86
+
87
+ /**
88
+ * Get Billing Account Balance history, only enterprise supported
89
+ * @param {String} billingAccountUID
90
+ * @param {Object} opts Optional parameters
91
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
92
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
93
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccountBalanceHistory200Response} and HTTP response
94
+ */
95
+ }, {
96
+ key: "getBillingAccountBalanceHistoryWithHttpInfo",
97
+ value: function getBillingAccountBalanceHistoryWithHttpInfo(billingAccountUID, opts) {
98
+ opts = opts || {};
99
+ var postBody = null;
100
+ // verify the required parameter 'billingAccountUID' is set
101
+ if (billingAccountUID === undefined || billingAccountUID === null) {
102
+ throw new _Error["default"]("Missing the required parameter 'billingAccountUID' when calling getBillingAccountBalanceHistory");
103
+ }
104
+ var pathParams = {
105
+ 'billingAccountUID': billingAccountUID
106
+ };
107
+ var queryParams = {
108
+ 'startDate': opts['startDate'],
109
+ 'endDate': opts['endDate']
110
+ };
111
+ var headerParams = {};
112
+ var formParams = {};
113
+ var authNames = ['personalAccessToken'];
114
+ var contentTypes = [];
115
+ var accepts = ['application/json'];
116
+ var returnType = _GetBillingAccountBalanceHistory200Response["default"];
117
+ return this.apiClient.callApi('/v1/billing-accounts/{billingAccountUID}/balance-history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
118
+ }
119
+
120
+ /**
121
+ * Get Billing Account Balance history, only enterprise supported
122
+ * @param {String} billingAccountUID
123
+ * @param {Object} opts Optional parameters
124
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
125
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
126
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccountBalanceHistory200Response}
127
+ */
128
+ }, {
129
+ key: "getBillingAccountBalanceHistory",
130
+ value: function getBillingAccountBalanceHistory(billingAccountUID, opts) {
131
+ return this.getBillingAccountBalanceHistoryWithHttpInfo(billingAccountUID, opts).then(function (response_and_data) {
132
+ return response_and_data.data;
133
+ });
134
+ }
135
+
136
+ /**
137
+ * Get Billing Accounts accessible by the api_key
138
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccounts200Response} and HTTP response
139
+ */
140
+ }, {
51
141
  key: "getBillingAccountsWithHttpInfo",
52
142
  value: function getBillingAccountsWithHttpInfo() {
53
143
  var postBody = null;
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
46
46
  /**
47
47
  * Device service.
48
48
  * @module api/DeviceApi
49
- * @version 5.0.0-beta.11
49
+ * @version 5.0.0-beta.13
50
50
  */
51
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
@@ -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 5.0.0-beta.11
33
+ * @version 5.0.0-beta.13
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 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -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 5.0.0-beta.11
53
+ * @version 5.0.0-beta.13
54
54
  */
55
55
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
56
  /**
@@ -610,6 +610,59 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
610
610
  });
611
611
  }
612
612
 
613
+ /**
614
+ * Download firmware binary
615
+ * @param {String} projectOrProductUID
616
+ * @param {module:model/String} firmwareType
617
+ * @param {String} filename
618
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
619
+ */
620
+ }, {
621
+ key: "downloadFirmwareWithHttpInfo",
622
+ value: function downloadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
623
+ var postBody = null;
624
+ // verify the required parameter 'projectOrProductUID' is set
625
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
626
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling downloadFirmware");
627
+ }
628
+ // verify the required parameter 'firmwareType' is set
629
+ if (firmwareType === undefined || firmwareType === null) {
630
+ throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling downloadFirmware");
631
+ }
632
+ // verify the required parameter 'filename' is set
633
+ if (filename === undefined || filename === null) {
634
+ throw new _Error["default"]("Missing the required parameter 'filename' when calling downloadFirmware");
635
+ }
636
+ var pathParams = {
637
+ 'projectOrProductUID': projectOrProductUID,
638
+ 'firmwareType': firmwareType,
639
+ 'filename': filename
640
+ };
641
+ var queryParams = {};
642
+ var headerParams = {};
643
+ var formParams = {};
644
+ var authNames = ['personalAccessToken'];
645
+ var contentTypes = [];
646
+ var accepts = ['application/octet-stream', 'application/json'];
647
+ var returnType = File;
648
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
649
+ }
650
+
651
+ /**
652
+ * Download firmware binary
653
+ * @param {String} projectOrProductUID
654
+ * @param {module:model/String} firmwareType
655
+ * @param {String} filename
656
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
657
+ */
658
+ }, {
659
+ key: "downloadFirmware",
660
+ value: function downloadFirmware(projectOrProductUID, firmwareType, filename) {
661
+ return this.downloadFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
662
+ return response_and_data.data;
663
+ });
664
+ }
665
+
613
666
  /**
614
667
  * Enable the project-level event JSONata transformation
615
668
  * @param {String} projectOrProductUID
@@ -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 5.0.0-beta.11
33
+ * @version 5.0.0-beta.13
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -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 5.0.0-beta.11
34
+ * @version 5.0.0-beta.13
35
35
  */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -55,6 +55,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
55
55
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
56
56
  * @param {Array.<String>} opts.deviceUID A Device UID.
57
57
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
58
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
58
59
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
59
60
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
60
61
  */
@@ -79,6 +80,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
79
80
  'endDate': opts['endDate'],
80
81
  'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
81
82
  'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
83
+ 'limit': opts['limit'],
82
84
  'period': period,
83
85
  'aggregate': opts['aggregate']
84
86
  };
@@ -100,6 +102,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
100
102
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
101
103
  * @param {Array.<String>} opts.deviceUID A Device UID.
102
104
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
105
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
103
106
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
104
107
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
105
108
  */
@@ -120,6 +123,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
120
123
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
121
124
  * @param {Array.<String>} opts.deviceUID A Device UID.
122
125
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
126
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
123
127
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
124
128
  * @param {Array.<String>} opts.notefile Filter to specific notefiles
125
129
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
@@ -147,6 +151,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
147
151
  'endDate': opts['endDate'],
148
152
  'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
149
153
  'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
154
+ 'limit': opts['limit'],
150
155
  'period': period,
151
156
  'aggregate': opts['aggregate'],
152
157
  'notefile': this.apiClient.buildCollectionParam(opts['notefile'], 'multi'),
@@ -171,6 +176,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
171
176
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
172
177
  * @param {Array.<String>} opts.deviceUID A Device UID.
173
178
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
179
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
174
180
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
175
181
  * @param {Array.<String>} opts.notefile Filter to specific notefiles
176
182
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
@@ -193,6 +199,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
193
199
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
194
200
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
195
201
  * @param {Array.<String>} opts.routeUID A Route UID.
202
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
196
203
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
197
204
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
198
205
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
@@ -217,6 +224,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
217
224
  'startDate': opts['startDate'],
218
225
  'endDate': opts['endDate'],
219
226
  'routeUID': this.apiClient.buildCollectionParam(opts['routeUID'], 'multi'),
227
+ 'limit': opts['limit'],
220
228
  'period': period,
221
229
  'aggregate': opts['aggregate'],
222
230
  'skipRecentData': opts['skipRecentData']
@@ -238,6 +246,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
238
246
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
239
247
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
240
248
  * @param {Array.<String>} opts.routeUID A Route UID.
249
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
241
250
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
242
251
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
243
252
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
@@ -259,6 +268,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
259
268
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
260
269
  * @param {Array.<String>} opts.deviceUID A Device UID.
261
270
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
271
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
262
272
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
263
273
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
264
274
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
@@ -284,6 +294,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
284
294
  'endDate': opts['endDate'],
285
295
  'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
286
296
  'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
297
+ 'limit': opts['limit'],
287
298
  'period': period,
288
299
  'aggregate': opts['aggregate'],
289
300
  'skipRecentData': opts['skipRecentData']
@@ -306,6 +317,7 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
306
317
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
307
318
  * @param {Array.<String>} opts.deviceUID A Device UID.
308
319
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
320
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
309
321
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
310
322
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
311
323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
@@ -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 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -351,6 +351,30 @@ Object.defineProperty(exports, "GetAlerts200Response", {
351
351
  return _GetAlerts200Response["default"];
352
352
  }
353
353
  });
354
+ Object.defineProperty(exports, "GetBillingAccount200Response", {
355
+ enumerable: true,
356
+ get: function get() {
357
+ return _GetBillingAccount200Response["default"];
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "GetBillingAccount200ResponsePlan", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _GetBillingAccount200ResponsePlan["default"];
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "GetBillingAccountBalanceHistory200Response", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _GetBillingAccountBalanceHistory200Response["default"];
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "GetBillingAccountBalanceHistory200ResponseDataInner", {
373
+ enumerable: true,
374
+ get: function get() {
375
+ return _GetBillingAccountBalanceHistory200ResponseDataInner["default"];
376
+ }
377
+ });
354
378
  Object.defineProperty(exports, "GetBillingAccounts200Response", {
355
379
  enumerable: true,
356
380
  get: function get() {
@@ -913,6 +937,10 @@ var _FirmwareInfo = _interopRequireDefault(require("./model/FirmwareInfo"));
913
937
  var _Fleet = _interopRequireDefault(require("./model/Fleet"));
914
938
  var _FleetConnectivityAssurance = _interopRequireDefault(require("./model/FleetConnectivityAssurance"));
915
939
  var _GetAlerts200Response = _interopRequireDefault(require("./model/GetAlerts200Response"));
940
+ var _GetBillingAccount200Response = _interopRequireDefault(require("./model/GetBillingAccount200Response"));
941
+ var _GetBillingAccount200ResponsePlan = _interopRequireDefault(require("./model/GetBillingAccount200ResponsePlan"));
942
+ var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("./model/GetBillingAccountBalanceHistory200Response"));
943
+ var _GetBillingAccountBalanceHistory200ResponseDataInner = _interopRequireDefault(require("./model/GetBillingAccountBalanceHistory200ResponseDataInner"));
916
944
  var _GetBillingAccounts200Response = _interopRequireDefault(require("./model/GetBillingAccounts200Response"));
917
945
  var _GetDataUsage200Response = _interopRequireDefault(require("./model/GetDataUsage200Response"));
918
946
  var _GetDataUsage200ResponseDataInner = _interopRequireDefault(require("./model/GetDataUsage200ResponseDataInner"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -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 5.0.0-beta.11
34
+ * @version 5.0.0-beta.13
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -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 5.0.0-beta.11
29
+ * @version 5.0.0-beta.13
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 5.0.0-beta.11
29
+ * @version 5.0.0-beta.13
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AwsRoute model module.
30
30
  * @module model/AwsRoute
31
- * @version 5.0.0-beta.11
31
+ * @version 5.0.0-beta.13
32
32
  */
33
33
  var AwsRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AzureRoute model module.
30
30
  * @module model/AzureRoute
31
- * @version 5.0.0-beta.11
31
+ * @version 5.0.0-beta.13
32
32
  */
33
33
  var AzureRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The BillingAccount model module.
32
32
  * @module model/BillingAccount
33
- * @version 5.0.0-beta.11
33
+ * @version 5.0.0-beta.13
34
34
  */
35
35
  var BillingAccount = /*#__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
  * The BlynkRoute model module.
30
30
  * @module model/BlynkRoute
31
- * @version 5.0.0-beta.11
31
+ * @version 5.0.0-beta.13
32
32
  */
33
33
  var BlynkRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -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 5.0.0-beta.11
29
+ * @version 5.0.0-beta.13
30
30
  */
31
31
  var Body = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CellularPlan model module.
29
29
  * @module model/CellularPlan
30
- * @version 5.0.0-beta.11
30
+ * @version 5.0.0-beta.13
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CloneProjectRequest model module.
31
31
  * @module model/CloneProjectRequest
32
- * @version 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Contact model module.
28
28
  * @module model/Contact
29
- * @version 5.0.0-beta.11
29
+ * @version 5.0.0-beta.13
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CreateFleetRequest model module.
29
29
  * @module model/CreateFleetRequest
30
- * @version 5.0.0-beta.11
30
+ * @version 5.0.0-beta.13
31
31
  */
32
32
  var CreateFleetRequest = /*#__PURE__*/function () {
33
33
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The CreateMonitor model module.
33
33
  * @module model/CreateMonitor
34
- * @version 5.0.0-beta.11
34
+ * @version 5.0.0-beta.13
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProductRequest model module.
31
31
  * @module model/CreateProductRequest
32
- * @version 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var CreateProductRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProjectRequest model module.
31
31
  * @module model/CreateProjectRequest
32
- * @version 5.0.0-beta.11
32
+ * @version 5.0.0-beta.13
33
33
  */
34
34
  var CreateProjectRequest = /*#__PURE__*/function () {
35
35
  /**