@adobe/spacecat-shared-rum-api-client 1.6.4 → 1.6.5
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.6.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.6.4...@adobe/spacecat-shared-rum-api-client-v1.6.5) (2024-03-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix data desk params ([bb0c231](https://github.com/adobe/spacecat-shared/commit/bb0c23153ac8da510644b96da489135f0209d3c2))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v1.6.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.6.3...@adobe/spacecat-shared-rum-api-client-v1.6.4) (2024-02-27)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -88,15 +88,19 @@ async function generateDomainKey(domainkey, url, expiry) {
|
|
|
88
88
|
return data[0].key;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
async function createBacklink(dashboardUrl, domainKey, domainUrl, expiry, params) {
|
|
91
|
+
async function createBacklink(dashboardUrl, domainKey, domainUrl, expiry, params = {}) {
|
|
92
92
|
const scopedDomainKey = await generateDomainKey(domainKey, domainUrl, expiry);
|
|
93
|
+
const dataDeskParams = { ...params };
|
|
94
|
+
if (dataDeskParams.startdate) {
|
|
95
|
+
delete dataDeskParams.interval;
|
|
96
|
+
}
|
|
93
97
|
return createUrl(dashboardUrl, {
|
|
94
98
|
offset: 0,
|
|
95
99
|
limit: 100,
|
|
96
100
|
url: domainUrl,
|
|
97
101
|
domainkey: scopedDomainKey,
|
|
98
|
-
interval: expiry,
|
|
99
|
-
...
|
|
102
|
+
...(dataDeskParams?.startdate ? {} : { interval: expiry }),
|
|
103
|
+
...dataDeskParams,
|
|
100
104
|
});
|
|
101
105
|
}
|
|
102
106
|
|