@blues-inc/notehub-js 6.6.0-beta.1 → 6.6.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.
Files changed (190) hide show
  1. package/README.md +4 -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 +1 -1
  6. package/dist/api/DescriptionApi.js +1 -1
  7. package/dist/api/DeviceApi.js +29 -29
  8. package/dist/api/EventApi.js +1 -1
  9. package/dist/api/ExternalDevicesApi.js +1 -1
  10. package/dist/api/JobsApi.js +1 -1
  11. package/dist/api/MonitorApi.js +1 -1
  12. package/dist/api/OrganizationApi.js +1 -1
  13. package/dist/api/ProjectApi.js +43 -43
  14. package/dist/api/RouteApi.js +1 -1
  15. package/dist/api/UsageApi.js +66 -6
  16. package/dist/api/WebhookApi.js +1 -1
  17. package/dist/index.js +14 -0
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  20. package/dist/model/Alert.js +1 -1
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/ArchiveStats.js +1 -1
  24. package/dist/model/AwsRoute.js +1 -1
  25. package/dist/model/AzureRoute.js +1 -1
  26. package/dist/model/BatchJobNoteRequest.js +1 -1
  27. package/dist/model/BatchJobRequests.js +1 -1
  28. package/dist/model/BillingAccount.js +1 -1
  29. package/dist/model/BlynkRoute.js +1 -1
  30. package/dist/model/Body.js +1 -1
  31. package/dist/model/CancelJobRun200Response.js +1 -1
  32. package/dist/model/CellularPlan.js +1 -1
  33. package/dist/model/CloneProjectRequest.js +1 -1
  34. package/dist/model/Contact.js +1 -1
  35. package/dist/model/CreateFleetRequest.js +1 -1
  36. package/dist/model/CreateJob201Response.js +1 -1
  37. package/dist/model/CreateMonitor.js +1 -1
  38. package/dist/model/CreateProductRequest.js +1 -1
  39. package/dist/model/CreateProjectRequest.js +1 -1
  40. package/dist/model/CreateProjectSecretRequest.js +1 -1
  41. package/dist/model/CreateUpdateRepository.js +1 -1
  42. package/dist/model/CreatedRepository.js +1 -1
  43. package/dist/model/CurrentFirmware.js +1 -1
  44. package/dist/model/DFUEnv.js +1 -1
  45. package/dist/model/DFUState.js +1 -1
  46. package/dist/model/DataField.js +1 -1
  47. package/dist/model/DataSet.js +1 -1
  48. package/dist/model/DataSetField.js +1 -1
  49. package/dist/model/DataUsage.js +1 -1
  50. package/dist/model/DatacakeRoute.js +1 -1
  51. package/dist/model/DatasetReloadProgress.js +1 -1
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  53. package/dist/model/DeleteJob200Response.js +1 -1
  54. package/dist/model/DeleteNotefilesRequest.js +1 -1
  55. package/dist/model/DescriptionRecord.js +1 -1
  56. package/dist/model/DescriptionRecordList.js +1 -1
  57. package/dist/model/Device.js +1 -1
  58. package/dist/model/DeviceDfuHistory.js +1 -1
  59. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  60. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  61. package/dist/model/DeviceDfuStateMachine.js +1 -1
  62. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  63. package/dist/model/DeviceDfuStatus.js +1 -1
  64. package/dist/model/DeviceDfuStatusPage.js +1 -1
  65. package/dist/model/DeviceSensor.js +1 -1
  66. package/dist/model/DeviceSession.js +1 -1
  67. package/dist/model/DeviceTowerInfo.js +1 -1
  68. package/dist/model/DeviceUsage.js +1 -1
  69. package/dist/model/DfuActionRequest.js +1 -1
  70. package/dist/model/EmailNotification.js +1 -1
  71. package/dist/model/EnvTreeJsonNode.js +1 -1
  72. package/dist/model/EnvVar.js +1 -1
  73. package/dist/model/EnvironmentVariables.js +1 -1
  74. package/dist/model/Error.js +1 -1
  75. package/dist/model/Event.js +1 -1
  76. package/dist/model/Filter.js +1 -1
  77. package/dist/model/Firmware.js +1 -1
  78. package/dist/model/FirmwareInfo.js +1 -1
  79. package/dist/model/Fleet.js +1 -1
  80. package/dist/model/FleetConnectivityAssurance.js +1 -1
  81. package/dist/model/GetAlerts200Response.js +1 -1
  82. package/dist/model/GetApiUsage200Response.js +140 -0
  83. package/dist/model/GetBillingAccount200Response.js +1 -1
  84. package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
  85. package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
  86. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
  87. package/dist/model/GetBillingAccounts200Response.js +1 -1
  88. package/dist/model/GetDataUsage200Response.js +1 -1
  89. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  90. package/dist/model/GetDbNote200Response.js +1 -1
  91. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  92. package/dist/model/GetDeviceFleets200Response.js +1 -1
  93. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  94. package/dist/model/GetDeviceJourney200Response.js +1 -1
  95. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  96. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  97. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  98. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  99. package/dist/model/GetDevicePlans200Response.js +1 -1
  100. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  101. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  102. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  103. package/dist/model/GetDeviceSessions200Response.js +1 -1
  104. package/dist/model/GetDevices200Response.js +1 -1
  105. package/dist/model/GetEvents200Response.js +1 -1
  106. package/dist/model/GetEventsByCursor200Response.js +1 -1
  107. package/dist/model/GetJobRuns200Response.js +1 -1
  108. package/dist/model/GetJobs200Response.js +1 -1
  109. package/dist/model/GetNotefile200Response.js +1 -1
  110. package/dist/model/GetOrganizations200Response.js +1 -1
  111. package/dist/model/GetProducts200Response.js +1 -1
  112. package/dist/model/GetProjectMembers200Response.js +1 -1
  113. package/dist/model/GetProjectSecretsResponse.js +1 -1
  114. package/dist/model/GetProjects200Response.js +1 -1
  115. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  116. package/dist/model/GetSessionsUsage200Response.js +1 -1
  117. package/dist/model/GetWebhooks200Response.js +1 -1
  118. package/dist/model/GoogleRoute.js +1 -1
  119. package/dist/model/HealthLog.js +1 -1
  120. package/dist/model/HttpRoute.js +1 -1
  121. package/dist/model/Job.js +1 -1
  122. package/dist/model/JobDefinition.js +1 -1
  123. package/dist/model/JobDefinitionReportOptions.js +1 -1
  124. package/dist/model/JobDefinitionSelect.js +1 -1
  125. package/dist/model/JobDetail.js +1 -1
  126. package/dist/model/JobDetailAllOf.js +1 -1
  127. package/dist/model/JobRun.js +1 -1
  128. package/dist/model/Location.js +1 -1
  129. package/dist/model/Login200Response.js +1 -1
  130. package/dist/model/LoginRequest.js +1 -1
  131. package/dist/model/Monitor.js +1 -1
  132. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  133. package/dist/model/MqttRoute.js +1 -1
  134. package/dist/model/Note.js +1 -1
  135. package/dist/model/NoteInput.js +1 -1
  136. package/dist/model/Notefile.js +1 -1
  137. package/dist/model/NotefileSchema.js +1 -1
  138. package/dist/model/NotehubRoute.js +1 -1
  139. package/dist/model/NotehubRouteSummary.js +1 -1
  140. package/dist/model/OAuth2Error.js +1 -1
  141. package/dist/model/OAuth2TokenResponse.js +1 -1
  142. package/dist/model/Organization.js +1 -1
  143. package/dist/model/PersonalAccessToken.js +1 -1
  144. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  145. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  146. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  147. package/dist/model/Product.js +1 -1
  148. package/dist/model/Project.js +1 -1
  149. package/dist/model/ProjectMember.js +1 -1
  150. package/dist/model/ProjectSecret.js +1 -1
  151. package/dist/model/ProvisionDeviceRequest.js +1 -1
  152. package/dist/model/ProxyRoute.js +1 -1
  153. package/dist/model/QubitroRoute.js +1 -1
  154. package/dist/model/RadRoute.js +1 -1
  155. package/dist/model/Repository.js +1 -1
  156. package/dist/model/RepositoryListResponse.js +1 -1
  157. package/dist/model/RepositoryTokenRequest.js +1 -1
  158. package/dist/model/RepositoryTokenResponse.js +1 -1
  159. package/dist/model/RouteLog.js +1 -1
  160. package/dist/model/RouteTransformSettings.js +1 -1
  161. package/dist/model/RunJob200Response.js +1 -1
  162. package/dist/model/S3ArchiveRoute.js +1 -1
  163. package/dist/model/SatelliteDataUsage.js +1 -1
  164. package/dist/model/SatellitePlan.js +1 -1
  165. package/dist/model/SchemaProperty.js +1 -1
  166. package/dist/model/SignalDevice200Response.js +1 -1
  167. package/dist/model/SimUsage.js +1 -1
  168. package/dist/model/SlackBearerNotification.js +1 -1
  169. package/dist/model/SlackRoute.js +1 -1
  170. package/dist/model/SlackWebHookNotification.js +1 -1
  171. package/dist/model/SnowflakeRoute.js +1 -1
  172. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  173. package/dist/model/ThingworxRoute.js +1 -1
  174. package/dist/model/TowerLocation.js +1 -1
  175. package/dist/model/TwilioRoute.js +1 -1
  176. package/dist/model/UpdateFleetRequest.js +1 -1
  177. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  178. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  179. package/dist/model/UploadMetadata.js +1 -1
  180. package/dist/model/UsageApiData.js +147 -0
  181. package/dist/model/UsageData.js +1 -1
  182. package/dist/model/UsageEventsData.js +1 -1
  183. package/dist/model/UsageEventsResponse.js +1 -1
  184. package/dist/model/UsageRouteLogsData.js +1 -1
  185. package/dist/model/UsageSessionsData.js +1 -1
  186. package/dist/model/UserDfuStateMachine.js +1 -1
  187. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  188. package/dist/model/UserFirmwareInfo.js +1 -1
  189. package/dist/model/WebhookSettings.js +1 -1
  190. 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: 6.6.0-beta.1
9
+ - Package version: 6.6.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
 
@@ -253,6 +253,7 @@ All URIs are relative to *https://api.notefile.net*
253
253
  | _NotehubJs.RouteApi_ | [**getRouteLogsByRoute**](docs/RouteApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs |
254
254
  | _NotehubJs.RouteApi_ | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectOrProductUID}/routes |
255
255
  | _NotehubJs.RouteApi_ | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectOrProductUID}/routes/{routeUID} |
256
+ | _NotehubJs.UsageApi_ | [**getApiUsage**](docs/UsageApi.md#getApiUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/api |
256
257
  | _NotehubJs.UsageApi_ | [**getDataUsage**](docs/UsageApi.md#getDataUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/data |
257
258
  | _NotehubJs.UsageApi_ | [**getEventsUsage**](docs/UsageApi.md#getEventsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/events |
258
259
  | _NotehubJs.UsageApi_ | [**getRouteLogsUsage**](docs/UsageApi.md#getRouteLogsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/route-logs |
@@ -336,6 +337,7 @@ All URIs are relative to *https://api.notefile.net*
336
337
  - [NotehubJs.Fleet](docs/Fleet.md)
337
338
  - [NotehubJs.FleetConnectivityAssurance](docs/FleetConnectivityAssurance.md)
338
339
  - [NotehubJs.GetAlerts200Response](docs/GetAlerts200Response.md)
340
+ - [NotehubJs.GetApiUsage200Response](docs/GetApiUsage200Response.md)
339
341
  - [NotehubJs.GetBillingAccount200Response](docs/GetBillingAccount200Response.md)
340
342
  - [NotehubJs.GetBillingAccount200ResponsePlan](docs/GetBillingAccount200ResponsePlan.md)
341
343
  - [NotehubJs.GetBillingAccountBalanceHistory200Response](docs/GetBillingAccountBalanceHistory200Response.md)
@@ -435,6 +437,7 @@ All URIs are relative to *https://api.notefile.net*
435
437
  - [NotehubJs.UpdateHostFirmwareRequest](docs/UpdateHostFirmwareRequest.md)
436
438
  - [NotehubJs.UpdateProjectSecretRequest](docs/UpdateProjectSecretRequest.md)
437
439
  - [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
440
+ - [NotehubJs.UsageApiData](docs/UsageApiData.md)
438
441
  - [NotehubJs.UsageData](docs/UsageData.md)
439
442
  - [NotehubJs.UsageEventsData](docs/UsageEventsData.md)
440
443
  - [NotehubJs.UsageEventsResponse](docs/UsageEventsResponse.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 6.6.0-beta.1
29
+ * @version 6.6.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
@@ -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/6.6.0-beta.1/Javascript";
71
+ this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.6.0-beta.2/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 6.6.0-beta.1
31
+ * @version 6.6.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 6.6.0-beta.1
33
+ * @version 6.6.0-beta.2
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * BillingAccount service.
32
32
  * @module api/BillingAccountApi
33
- * @version 6.6.0-beta.1
33
+ * @version 6.6.0-beta.2
34
34
  */
35
35
  var BillingAccountApi = 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
  * Description service.
31
31
  * @module api/DescriptionApi
32
- * @version 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
33
33
  */
34
34
  var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -48,7 +48,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
48
48
  /**
49
49
  * Device service.
50
50
  * @module api/DeviceApi
51
- * @version 6.6.0-beta.1
51
+ * @version 6.6.0-beta.2
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -1243,14 +1243,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1243
1243
  * @param {Number} opts.pageSize (default to 50)
1244
1244
  * @param {Number} opts.pageNum (default to 1)
1245
1245
  * @param {Array.<String>} opts.deviceUID A Device UID.
1246
- * @param {Array.<String>} opts.tag Tag filter
1247
- * @param {Array.<String>} opts.serialNumber Serial number filter
1246
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1247
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1248
1248
  * @param {Array.<String>} opts.fleetUID
1249
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1250
- * @param {Array.<String>} opts.location Location filter
1251
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1252
- * @param {Array.<String>} opts.productUID
1253
- * @param {Array.<String>} opts.sku SKU filter
1249
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1250
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1251
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1252
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1253
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1254
1254
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1255
1255
  */
1256
1256
  }, {
@@ -1294,14 +1294,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1294
1294
  * @param {Number} opts.pageSize (default to 50)
1295
1295
  * @param {Number} opts.pageNum (default to 1)
1296
1296
  * @param {Array.<String>} opts.deviceUID A Device UID.
1297
- * @param {Array.<String>} opts.tag Tag filter
1298
- * @param {Array.<String>} opts.serialNumber Serial number filter
1297
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1298
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1299
1299
  * @param {Array.<String>} opts.fleetUID
1300
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1301
- * @param {Array.<String>} opts.location Location filter
1302
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1303
- * @param {Array.<String>} opts.productUID
1304
- * @param {Array.<String>} opts.sku SKU filter
1300
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1301
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1302
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1303
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1304
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1305
1305
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1306
1306
  */
1307
1307
  }, {
@@ -1320,13 +1320,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1320
1320
  * @param {Number} opts.pageSize (default to 50)
1321
1321
  * @param {Number} opts.pageNum (default to 1)
1322
1322
  * @param {Array.<String>} opts.deviceUID A Device UID.
1323
- * @param {Array.<String>} opts.tag Tag filter
1324
- * @param {Array.<String>} opts.serialNumber Serial number filter
1325
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1326
- * @param {Array.<String>} opts.location Location filter
1327
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1328
- * @param {Array.<String>} opts.productUID
1329
- * @param {Array.<String>} opts.sku SKU filter
1323
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1324
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1325
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1326
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1327
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1328
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1329
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1330
1330
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1331
1331
  */
1332
1332
  }, {
@@ -1375,13 +1375,13 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1375
1375
  * @param {Number} opts.pageSize (default to 50)
1376
1376
  * @param {Number} opts.pageNum (default to 1)
1377
1377
  * @param {Array.<String>} opts.deviceUID A Device UID.
1378
- * @param {Array.<String>} opts.tag Tag filter
1379
- * @param {Array.<String>} opts.serialNumber Serial number filter
1380
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1381
- * @param {Array.<String>} opts.location Location filter
1382
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1383
- * @param {Array.<String>} opts.productUID
1384
- * @param {Array.<String>} opts.sku SKU filter
1378
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1379
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1380
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1381
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1382
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1383
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1384
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1385
1385
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1386
1386
  */
1387
1387
  }, {
@@ -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 6.6.0-beta.1
33
+ * @version 6.6.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 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
36
36
  /**
37
37
  * Jobs service.
38
38
  * @module api/JobsApi
39
- * @version 6.6.0-beta.1
39
+ * @version 6.6.0-beta.2
40
40
  */
41
41
  var JobsApi = exports["default"] = /*#__PURE__*/function () {
42
42
  /**
@@ -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 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Organization service.
32
32
  * @module api/OrganizationApi
33
- * @version 6.6.0-beta.1
33
+ * @version 6.6.0-beta.2
34
34
  */
35
35
  var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
56
56
  /**
57
57
  * Project service.
58
58
  * @module api/ProjectApi
59
- * @version 6.6.0-beta.1
59
+ * @version 6.6.0-beta.2
60
60
  */
61
61
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
62
62
  /**
@@ -1055,14 +1055,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1055
1055
  * @param {module:model/String} opts.sortBy (default to 'captured')
1056
1056
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1057
1057
  * @param {Array.<String>} opts.deviceUID A Device UID.
1058
- * @param {Array.<String>} opts.tag Tag filter
1059
- * @param {Array.<String>} opts.serialNumber Serial number filter
1058
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1059
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1060
1060
  * @param {String} opts.fleetUID
1061
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1062
- * @param {Array.<String>} opts.location Location filter
1063
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1064
- * @param {Array.<String>} opts.productUID
1065
- * @param {Array.<String>} opts.sku SKU filter
1061
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1062
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1063
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1064
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1065
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1066
1066
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistoryPage} and HTTP response
1067
1067
  */
1068
1068
  }, {
@@ -1116,14 +1116,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1116
1116
  * @param {module:model/String} opts.sortBy (default to 'captured')
1117
1117
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1118
1118
  * @param {Array.<String>} opts.deviceUID A Device UID.
1119
- * @param {Array.<String>} opts.tag Tag filter
1120
- * @param {Array.<String>} opts.serialNumber Serial number filter
1119
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1120
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1121
1121
  * @param {String} opts.fleetUID
1122
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1123
- * @param {Array.<String>} opts.location Location filter
1124
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1125
- * @param {Array.<String>} opts.productUID
1126
- * @param {Array.<String>} opts.sku SKU filter
1122
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1123
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1124
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1125
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1126
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1127
1127
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistoryPage}
1128
1128
  */
1129
1129
  }, {
@@ -1144,14 +1144,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1144
1144
  * @param {module:model/String} opts.sortBy (default to 'captured')
1145
1145
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1146
1146
  * @param {Array.<String>} opts.deviceUID A Device UID.
1147
- * @param {Array.<String>} opts.tag Tag filter
1148
- * @param {Array.<String>} opts.serialNumber Serial number filter
1147
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1148
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1149
1149
  * @param {String} opts.fleetUID
1150
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1151
- * @param {Array.<String>} opts.location Location filter
1152
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1153
- * @param {Array.<String>} opts.productUID
1154
- * @param {Array.<String>} opts.sku SKU filter
1150
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1151
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1152
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1153
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1154
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1155
1155
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatusPage} and HTTP response
1156
1156
  */
1157
1157
  }, {
@@ -1205,14 +1205,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1205
1205
  * @param {module:model/String} opts.sortBy (default to 'captured')
1206
1206
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1207
1207
  * @param {Array.<String>} opts.deviceUID A Device UID.
1208
- * @param {Array.<String>} opts.tag Tag filter
1209
- * @param {Array.<String>} opts.serialNumber Serial number filter
1208
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1209
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1210
1210
  * @param {String} opts.fleetUID
1211
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1212
- * @param {Array.<String>} opts.location Location filter
1213
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1214
- * @param {Array.<String>} opts.productUID
1215
- * @param {Array.<String>} opts.sku SKU filter
1211
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1212
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1213
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1214
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1215
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1216
1216
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatusPage}
1217
1217
  */
1218
1218
  }, {
@@ -1820,14 +1820,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1820
1820
  * @param {module:model/String} action
1821
1821
  * @param {Object} opts Optional parameters
1822
1822
  * @param {Array.<String>} opts.deviceUID A Device UID.
1823
- * @param {Array.<String>} opts.tag Tag filter
1824
- * @param {Array.<String>} opts.serialNumber Serial number filter
1823
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1824
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1825
1825
  * @param {String} opts.fleetUID
1826
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1827
- * @param {Array.<String>} opts.location Location filter
1828
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1829
- * @param {Array.<String>} opts.productUID
1830
- * @param {Array.<String>} opts.sku SKU filter
1826
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1827
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1828
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1829
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1830
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1831
1831
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1832
1832
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1833
1833
  */
@@ -1880,14 +1880,14 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1880
1880
  * @param {module:model/String} action
1881
1881
  * @param {Object} opts Optional parameters
1882
1882
  * @param {Array.<String>} opts.deviceUID A Device UID.
1883
- * @param {Array.<String>} opts.tag Tag filter
1884
- * @param {Array.<String>} opts.serialNumber Serial number filter
1883
+ * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1884
+ * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1885
1885
  * @param {String} opts.fleetUID
1886
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1887
- * @param {Array.<String>} opts.location Location filter
1888
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
1889
- * @param {Array.<String>} opts.productUID
1890
- * @param {Array.<String>} opts.sku SKU filter
1886
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1887
+ * @param {Array.<String>} opts.location Location filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1888
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1889
+ * @param {Array.<String>} opts.productUID Product UID filter. Matches any value containing the filter text, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1890
+ * @param {Array.<String>} opts.sku SKU filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
1891
1891
  * @param {module:model/DfuActionRequest} opts.dfuActionRequest Which firmware in the case of an update action
1892
1892
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1893
1893
  */
@@ -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 6.6.0-beta.1
33
+ * @version 6.6.0-beta.2
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -6,6 +6,7 @@ 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 _GetApiUsage200Response = _interopRequireDefault(require("../model/GetApiUsage200Response"));
9
10
  var _GetDataUsage200Response = _interopRequireDefault(require("../model/GetDataUsage200Response"));
10
11
  var _GetRouteLogsUsage200Response = _interopRequireDefault(require("../model/GetRouteLogsUsage200Response"));
11
12
  var _GetSessionsUsage200Response = _interopRequireDefault(require("../model/GetSessionsUsage200Response"));
@@ -31,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
32
  /**
32
33
  * Usage service.
33
34
  * @module api/UsageApi
34
- * @version 6.6.0-beta.1
35
+ * @version 6.6.0-beta.2
35
36
  */
36
37
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
38
  /**
@@ -47,19 +48,78 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
47
48
  }
48
49
 
49
50
  /**
50
- * Get data usage in bytes for a project with time range and period aggregation
51
+ * Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
51
52
  * @param {String} projectOrProductUID
52
53
  * @param {module:model/String} period Period type for aggregation
53
54
  * @param {Object} opts Optional parameters
54
55
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
55
56
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
56
- * @param {Array.<String>} opts.deviceUID A Device UID.
57
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
58
57
  * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
59
- * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
60
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
58
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
61
59
  */
62
60
  return _createClass(UsageApi, [{
61
+ key: "getApiUsageWithHttpInfo",
62
+ value: function getApiUsageWithHttpInfo(projectOrProductUID, period, opts) {
63
+ opts = opts || {};
64
+ var postBody = null;
65
+ // verify the required parameter 'projectOrProductUID' is set
66
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
67
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getApiUsage");
68
+ }
69
+ // verify the required parameter 'period' is set
70
+ if (period === undefined || period === null) {
71
+ throw new _Error["default"]("Missing the required parameter 'period' when calling getApiUsage");
72
+ }
73
+ var pathParams = {
74
+ projectOrProductUID: projectOrProductUID
75
+ };
76
+ var queryParams = {
77
+ startDate: opts["startDate"],
78
+ endDate: opts["endDate"],
79
+ limit: opts["limit"],
80
+ period: period
81
+ };
82
+ var headerParams = {};
83
+ var formParams = {};
84
+ var authNames = ["personalAccessToken"];
85
+ var contentTypes = [];
86
+ var accepts = ["application/json"];
87
+ var returnType = _GetApiUsage200Response["default"];
88
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/api", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
89
+ }
90
+
91
+ /**
92
+ * Get billable Notehub API request usage for a project, broken down by endpoint and time period, when endDate is 0 or unspecified the current time is implied. Only requests that are billed against the project's plan are counted
93
+ * @param {String} projectOrProductUID
94
+ * @param {module:model/String} period Period type for aggregation
95
+ * @param {Object} opts Optional parameters
96
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
97
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
98
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
99
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
100
+ */
101
+ }, {
102
+ key: "getApiUsage",
103
+ value: function getApiUsage(projectOrProductUID, period, opts) {
104
+ return this.getApiUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
105
+ return response_and_data.data;
106
+ });
107
+ }
108
+
109
+ /**
110
+ * Get data usage in bytes for a project with time range and period aggregation
111
+ * @param {String} projectOrProductUID
112
+ * @param {module:model/String} period Period type for aggregation
113
+ * @param {Object} opts Optional parameters
114
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
115
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
116
+ * @param {Array.<String>} opts.deviceUID A Device UID.
117
+ * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
118
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
119
+ * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
120
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
121
+ */
122
+ }, {
63
123
  key: "getDataUsageWithHttpInfo",
64
124
  value: function getDataUsageWithHttpInfo(projectOrProductUID, period, opts) {
65
125
  opts = opts || {};
@@ -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 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -441,6 +441,12 @@ Object.defineProperty(exports, "GetAlerts200Response", {
441
441
  return _GetAlerts200Response["default"];
442
442
  }
443
443
  });
444
+ Object.defineProperty(exports, "GetApiUsage200Response", {
445
+ enumerable: true,
446
+ get: function get() {
447
+ return _GetApiUsage200Response["default"];
448
+ }
449
+ });
444
450
  Object.defineProperty(exports, "GetBillingAccount200Response", {
445
451
  enumerable: true,
446
452
  get: function get() {
@@ -1071,6 +1077,12 @@ Object.defineProperty(exports, "UsageApi", {
1071
1077
  return _UsageApi["default"];
1072
1078
  }
1073
1079
  });
1080
+ Object.defineProperty(exports, "UsageApiData", {
1081
+ enumerable: true,
1082
+ get: function get() {
1083
+ return _UsageApiData["default"];
1084
+ }
1085
+ });
1074
1086
  Object.defineProperty(exports, "UsageData", {
1075
1087
  enumerable: true,
1076
1088
  get: function get() {
@@ -1197,6 +1209,7 @@ var _FirmwareInfo = _interopRequireDefault(require("./model/FirmwareInfo"));
1197
1209
  var _Fleet = _interopRequireDefault(require("./model/Fleet"));
1198
1210
  var _FleetConnectivityAssurance = _interopRequireDefault(require("./model/FleetConnectivityAssurance"));
1199
1211
  var _GetAlerts200Response = _interopRequireDefault(require("./model/GetAlerts200Response"));
1212
+ var _GetApiUsage200Response = _interopRequireDefault(require("./model/GetApiUsage200Response"));
1200
1213
  var _GetBillingAccount200Response = _interopRequireDefault(require("./model/GetBillingAccount200Response"));
1201
1214
  var _GetBillingAccount200ResponsePlan = _interopRequireDefault(require("./model/GetBillingAccount200ResponsePlan"));
1202
1215
  var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("./model/GetBillingAccountBalanceHistory200Response"));
@@ -1296,6 +1309,7 @@ var _UpdateFleetRequest = _interopRequireDefault(require("./model/UpdateFleetReq
1296
1309
  var _UpdateHostFirmwareRequest = _interopRequireDefault(require("./model/UpdateHostFirmwareRequest"));
1297
1310
  var _UpdateProjectSecretRequest = _interopRequireDefault(require("./model/UpdateProjectSecretRequest"));
1298
1311
  var _UploadMetadata = _interopRequireDefault(require("./model/UploadMetadata"));
1312
+ var _UsageApiData = _interopRequireDefault(require("./model/UsageApiData"));
1299
1313
  var _UsageData = _interopRequireDefault(require("./model/UsageData"));
1300
1314
  var _UsageEventsData = _interopRequireDefault(require("./model/UsageEventsData"));
1301
1315
  var _UsageEventsResponse = _interopRequireDefault(require("./model/UsageEventsResponse"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AWSRoleConfig model module.
31
31
  * @module model/AWSRoleConfig
32
- * @version 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
33
33
  */
34
34
  var AWSRoleConfig = /*#__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 AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 6.6.0-beta.1
32
+ * @version 6.6.0-beta.2
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 6.6.0-beta.1
34
+ * @version 6.6.0-beta.2
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 6.6.0-beta.1
29
+ * @version 6.6.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 6.6.0-beta.1
29
+ * @version 6.6.0-beta.2
30
30
  */
31
31
  var AlertNotificationsInner = /*#__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 ArchiveStats model module.
28
28
  * @module model/ArchiveStats
29
- * @version 6.6.0-beta.1
29
+ * @version 6.6.0-beta.2
30
30
  */
31
31
  var ArchiveStats = /*#__PURE__*/function () {
32
32
  /**