@adobe/spacecat-shared-data-access 2.33.5 → 2.34.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 +14 -0
- package/package.json +4 -4
- package/src/models/site/config.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.34.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.6...@adobe/spacecat-shared-data-access-v2.34.0) (2025-07-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add traffic analysis import handler ([#846](https://github.com/adobe/spacecat-shared/issues/846)) ([c8b65f0](https://github.com/adobe/spacecat-shared/commit/c8b65f0b0a29afdafc84686cf8b2ff1f6f9ed9cb))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.33.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.5...@adobe/spacecat-shared-data-access-v2.33.6) (2025-07-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#845](https://github.com/adobe/spacecat-shared/issues/845)) ([23bd3a2](https://github.com/adobe/spacecat-shared/commit/23bd3a2235686480cb89d6379276d9ed000baea3))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.33.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.4...@adobe/spacecat-shared-data-access-v2.33.5) (2025-07-10)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@adobe/spacecat-shared-utils": "1.39.1",
|
|
39
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
40
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
39
|
+
"@aws-sdk/client-dynamodb": "3.844.0",
|
|
40
|
+
"@aws-sdk/lib-dynamodb": "3.844.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
42
42
|
"aws-xray-sdk": "3.10.3",
|
|
43
43
|
"electrodb": "3.4.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"uuid": "11.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"chai": "5.2.
|
|
49
|
+
"chai": "5.2.1",
|
|
50
50
|
"chai-as-promised": "8.0.1",
|
|
51
51
|
"dynamo-db-local": "9.6.0",
|
|
52
52
|
"nock": "14.0.5",
|
|
@@ -23,6 +23,7 @@ export const IMPORT_TYPES = {
|
|
|
23
23
|
ALL_TRAFFIC: 'all-traffic',
|
|
24
24
|
CWV_DAILY: 'cwv-daily',
|
|
25
25
|
CWV_WEEKLY: 'cwv-weekly',
|
|
26
|
+
TRAFFIC_ANALYSIS: 'traffic-analysis',
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export const IMPORT_DESTINATIONS = {
|
|
@@ -104,6 +105,12 @@ export const IMPORT_TYPE_SCHEMAS = {
|
|
|
104
105
|
type: Joi.string().valid(IMPORT_TYPES.CWV_WEEKLY).required(),
|
|
105
106
|
...IMPORT_BASE_KEYS,
|
|
106
107
|
}),
|
|
108
|
+
[IMPORT_TYPES.TRAFFIC_ANALYSIS]: Joi.object({
|
|
109
|
+
type: Joi.string().valid(IMPORT_TYPES.TRAFFIC_ANALYSIS).required(),
|
|
110
|
+
year: Joi.number().integer().optional(),
|
|
111
|
+
week: Joi.number().integer().optional(),
|
|
112
|
+
...IMPORT_BASE_KEYS,
|
|
113
|
+
}),
|
|
107
114
|
};
|
|
108
115
|
|
|
109
116
|
export const DEFAULT_IMPORT_CONFIGS = {
|
|
@@ -168,6 +175,12 @@ export const DEFAULT_IMPORT_CONFIGS = {
|
|
|
168
175
|
sources: ['rum'],
|
|
169
176
|
enabled: true,
|
|
170
177
|
},
|
|
178
|
+
'traffic-analysis': {
|
|
179
|
+
type: 'traffic-analysis',
|
|
180
|
+
destinations: ['default'],
|
|
181
|
+
sources: ['rum'],
|
|
182
|
+
enabled: true,
|
|
183
|
+
},
|
|
171
184
|
};
|
|
172
185
|
|
|
173
186
|
export const configSchema = Joi.object({
|