@adobe/spacecat-shared-ahrefs-client 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@adobe/spacecat-shared-ahrefs-client-v1.5.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.4.1...@adobe/spacecat-shared-ahrefs-client-v1.5.0) (2024-08-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **ahrefs-client:** get limits and usage for subscription ([#334](https://github.com/adobe/spacecat-shared/issues/334)) ([e9ae2ab](https://github.com/adobe/spacecat-shared/commit/e9ae2ab495e3e9a36d79b31ba1da89e9aca05087))
7
+
1
8
  # [@adobe/spacecat-shared-ahrefs-client-v1.4.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.4.0...@adobe/spacecat-shared-ahrefs-client-v1.4.1) (2024-07-27)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-ahrefs-client",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Shared modules of the Spacecat Services - Ahrefs Client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -214,4 +214,8 @@ export default class AhrefsAPIClient {
214
214
 
215
215
  return this.sendRequest('/site-explorer/organic-keywords', queryParams);
216
216
  }
217
+
218
+ async getLimitsAndUsage() {
219
+ return this.sendRequest('/subscription-info/limits-and-usage');
220
+ }
217
221
  }