@adobe/spacecat-shared-rum-api-client 1.4.1 → 1.4.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [@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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * run 404 rum sources query with interval 1 ([6244a5d](https://github.com/adobe/spacecat-shared/commit/6244a5db9b8ef048f56b261a62a839c620a1ec29))
7
+
1
8
  # [@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
9
 
3
10
 
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
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.js CHANGED
@@ -36,6 +36,13 @@ export const RUM_DEFAULT_PARAMS = {
36
36
  limit: 101,
37
37
  };
38
38
 
39
+ export const NOT_FOUND_DEFAULT_PARAMS = {
40
+ interval: 1,
41
+ offset: 0,
42
+ limit: 101,
43
+ checkpoint: 404,
44
+ };
45
+
39
46
  export async function sendRequest(url, opts) {
40
47
  let respJson;
41
48
  try {
@@ -110,7 +117,7 @@ export default class RUMAPIClient {
110
117
  return createUrl(
111
118
  APIS.RUM_SOURCES,
112
119
  {
113
- domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, checkpoint: 404, ...params,
120
+ domainkey: this.domainkey, ...NOT_FOUND_DEFAULT_PARAMS, ...params,
114
121
  },
115
122
  );
116
123
  }