@adobe/spacecat-shared-rum-api-client 1.8.0 → 1.8.1

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-rum-api-client-v1.8.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.8.0...@adobe/spacecat-shared-rum-api-client-v1.8.1) (2024-04-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * use 404 new endpoint ([23ec007](https://github.com/adobe/spacecat-shared/commit/23ec0073540eabf3d460f4705ba4dd40f27f46a0))
7
+
1
8
  # [@adobe/spacecat-shared-rum-api-client-v1.8.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.7.2...@adobe/spacecat-shared-rum-api-client-v1.8.0) (2024-04-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.d.ts CHANGED
@@ -137,4 +137,12 @@ export default class RUMAPIClient {
137
137
  * or an array of all domain urls .
138
138
  */
139
139
  getDomainList(params?: RUMAPIOptions): Promise<Array<string>>;
140
+
141
+ /**
142
+ * Asynchronous method to return the rum-sources API call response data.
143
+ * @param {RUMAPIOptions} params - An object representing the parameters to be included
144
+ * for the rum-sources data API call.
145
+ * @returns A Promise resolving to the conversion response data.
146
+ */
147
+ getConversionData(params?: RUMAPIOptions): Promise<Array<string>>;
140
148
  }
package/src/index.js CHANGED
@@ -21,6 +21,7 @@ const APIS = {
21
21
  NOT_FOUND_DASHBOARD_UI: 'https://data.aem.live/404-reports',
22
22
  RUM_DASHBOARD: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/rum-dashboard',
23
23
  DOMAIN_LIST: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/dash/domain-list',
24
+ RUM_404: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/rum-404',
24
25
  RUM_SOURCES: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/rum-sources',
25
26
  RUM_EXPERIMENTS: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/rum-experiments',
26
27
  };
@@ -37,11 +38,6 @@ export const RUM_DEFAULT_PARAMS = {
37
38
  limit: 101,
38
39
  };
39
40
 
40
- export const NOT_FOUND_DEFAULT_PARAMS = {
41
- ...RUM_DEFAULT_PARAMS,
42
- checkpoint: 404,
43
- };
44
-
45
41
  export const CONVERSION_DEFAULT_PARAMS = {
46
42
  ...RUM_DEFAULT_PARAMS,
47
43
  checkpoint: 'convert',
@@ -49,9 +45,9 @@ export const CONVERSION_DEFAULT_PARAMS = {
49
45
  };
50
46
 
51
47
  export const create404URL = (params = {}) => createUrl(
52
- APIS.RUM_SOURCES,
48
+ APIS.RUM_404,
53
49
  {
54
- ...NOT_FOUND_DEFAULT_PARAMS, ...params,
50
+ ...RUM_DEFAULT_PARAMS, ...params,
55
51
  },
56
52
  );
57
53