@adobe/spacecat-shared-data-access 2.15.2 → 2.16.0

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-data-access-v2.16.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.15.2...@adobe/spacecat-shared-data-access-v2.16.0) (2025-04-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * Added cwv-daily and cwv-weekly import types ([#693](https://github.com/adobe/spacecat-shared/issues/693)) ([659826b](https://github.com/adobe/spacecat-shared/commit/659826b37cea03aa08f2db36a0ff7a43437c03a7))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v2.15.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.15.1...@adobe/spacecat-shared-data-access-v2.15.2) (2025-04-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.15.2",
3
+ "version": "2.16.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -17,6 +17,8 @@ export const IMPORT_TYPES = {
17
17
  ORGANIC_TRAFFIC: 'organic-traffic',
18
18
  TOP_PAGES: 'top-pages',
19
19
  ALL_TRAFFIC: 'all-traffic',
20
+ CWV_DAILY: 'cwv-daily',
21
+ CWV_WEEKLY: 'cwv-weekly',
20
22
  };
21
23
 
22
24
  export const IMPORT_DESTINATIONS = {
@@ -61,6 +63,14 @@ export const IMPORT_TYPE_SCHEMAS = {
61
63
  limit: Joi.number().integer().min(1).max(2000)
62
64
  .optional(),
63
65
  }),
66
+ [IMPORT_TYPES.CWV_DAILY]: Joi.object({
67
+ type: Joi.string().valid(IMPORT_TYPES.CWV_DAILY).required(),
68
+ ...IMPORT_BASE_KEYS,
69
+ }),
70
+ [IMPORT_TYPES.CWV_WEEKLY]: Joi.object({
71
+ type: Joi.string().valid(IMPORT_TYPES.CWV_WEEKLY).required(),
72
+ ...IMPORT_BASE_KEYS,
73
+ }),
64
74
  };
65
75
 
66
76
  export const DEFAULT_IMPORT_CONFIGS = {
@@ -89,6 +99,18 @@ export const DEFAULT_IMPORT_CONFIGS = {
89
99
  enabled: true,
90
100
  geo: 'global',
91
101
  },
102
+ 'cwv-daily': {
103
+ type: 'cwv-daily',
104
+ destinations: ['default'],
105
+ sources: ['rum'],
106
+ enabled: true,
107
+ },
108
+ 'cwv-weekly': {
109
+ type: 'cwv-weekly',
110
+ destinations: ['default'],
111
+ sources: ['rum'],
112
+ enabled: true,
113
+ },
92
114
  };
93
115
 
94
116
  export const configSchema = Joi.object({