@adobe/spacecat-shared-rum-api-client 1.8.0 → 1.8.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.
- package/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/src/index.d.ts +8 -0
- package/src/index.js +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.8.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.8.1...@adobe/spacecat-shared-rum-api-client-v1.8.2) (2024-05-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#228](https://github.com/adobe/spacecat-shared/issues/228)) ([ef2ab41](https://github.com/adobe/spacecat-shared/commit/ef2ab41a9175ec5ba8ec7e2830898e9db01fb2b6))
|
|
7
|
+
|
|
8
|
+
# [@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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* use 404 new endpoint ([23ec007](https://github.com/adobe/spacecat-shared/commit/23ec0073540eabf3d460f4705ba4dd40f27f46a0))
|
|
14
|
+
|
|
1
15
|
# [@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
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-rum-api-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Rum API client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"chai": "4.4.1",
|
|
41
|
-
"chai-as-promised": "7.1.
|
|
41
|
+
"chai-as-promised": "7.1.2",
|
|
42
42
|
"nock": "13.5.4",
|
|
43
|
-
"sinon": "17.0.
|
|
43
|
+
"sinon": "17.0.2",
|
|
44
44
|
"sinon-chai": "3.7.0",
|
|
45
45
|
"typescript": "5.4.5"
|
|
46
46
|
}
|
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.
|
|
48
|
+
APIS.RUM_404,
|
|
53
49
|
{
|
|
54
|
-
...
|
|
50
|
+
...RUM_DEFAULT_PARAMS, ...params,
|
|
55
51
|
},
|
|
56
52
|
);
|
|
57
53
|
|