@adobe/spacecat-shared-rum-api-client 1.4.1 → 1.4.3
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/README.md +0 -12
- package/package.json +1 -1
- package/src/index.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.4.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.2...@adobe/spacecat-shared-rum-api-client-v1.4.3) (2024-01-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* run 404 rum sources query with interval 7 ([ace5978](https://github.com/adobe/spacecat-shared/commit/ace59781e963c2269d01161be1883589d5d78802))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-rum-api-client-v1.4.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.1...@adobe/spacecat-shared-rum-api-client-v1.4.2) (2024-01-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* run 404 rum sources query with interval 1 ([6244a5d](https://github.com/adobe/spacecat-shared/commit/6244a5db9b8ef048f56b261a62a839c620a1ec29))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-rum-api-client-v1.4.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.0...@adobe/spacecat-shared-rum-api-client-v1.4.1) (2024-01-26)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -12,18 +12,6 @@ npm install @adobe/spacecat-shared-rum-api-client
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
### Configuring Tokens
|
|
16
|
-
|
|
17
|
-
To configure tokens for your application, follow these steps:
|
|
18
|
-
|
|
19
|
-
1. Visit the main page of your Slack app at [https://api.slack.com/apps](https://api.slack.com/apps).
|
|
20
|
-
|
|
21
|
-
2. Navigate to the "OAuth & Permissions" page and locate the "Scope" section. Here, you can add scopes to your Slack app based on the specific methods you intend to use from the Slack API. For example, if your app requires file upload functionality, ensure you add the `files:read` and `files:write` scopes.
|
|
22
|
-
|
|
23
|
-
3. Locate your Slack bot token under the "Bot User OAuth Token" section on the same page. You will need to provide this token to the `SlackClient` in your application.
|
|
24
|
-
|
|
25
|
-
4. For information on the scopes needed for each Slack API method, refer to the [documentation](https://api.slack.com/methods). The required scopes for each API method are listed in the "Bot tokens" row. As an example, to use the `postMessage` API method, the required scope is `chat:write`, as documented in [https://api.slack.com/methods/chat.postMessage](https://api.slack.com/methods/chat.postMessage).
|
|
26
|
-
|
|
27
15
|
### Creating and instance from Helix UniversalContext
|
|
28
16
|
|
|
29
17
|
```js
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -36,6 +36,11 @@ export const RUM_DEFAULT_PARAMS = {
|
|
|
36
36
|
limit: 101,
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
export const NOT_FOUND_DEFAULT_PARAMS = {
|
|
40
|
+
...RUM_DEFAULT_PARAMS,
|
|
41
|
+
checkpoint: 404,
|
|
42
|
+
};
|
|
43
|
+
|
|
39
44
|
export async function sendRequest(url, opts) {
|
|
40
45
|
let respJson;
|
|
41
46
|
try {
|
|
@@ -110,7 +115,7 @@ export default class RUMAPIClient {
|
|
|
110
115
|
return createUrl(
|
|
111
116
|
APIS.RUM_SOURCES,
|
|
112
117
|
{
|
|
113
|
-
domainkey: this.domainkey, ...
|
|
118
|
+
domainkey: this.domainkey, ...NOT_FOUND_DEFAULT_PARAMS, ...params,
|
|
114
119
|
},
|
|
115
120
|
);
|
|
116
121
|
}
|