@adobe/spacecat-shared-data-access 2.29.0 → 2.30.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 +3 -3
- package/src/models/site/config.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.30.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.29.1...@adobe/spacecat-shared-data-access-v2.30.0) (2025-06-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add CDN logs config ([#827](https://github.com/adobe/spacecat-shared/issues/827)) ([c4dd99b](https://github.com/adobe/spacecat-shared/commit/c4dd99bf142312b8285491769ea552c90f3e60aa))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.29.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.29.0...@adobe/spacecat-shared-data-access-v2.29.1) (2025-06-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#817](https://github.com/adobe/spacecat-shared/issues/817)) ([522b440](https://github.com/adobe/spacecat-shared/commit/522b440ac1ac1d704b4106ad1f90f192541a8f0c))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.29.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.28.0...@adobe/spacecat-shared-data-access-v2.29.0) (2025-06-20)
|
|
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.30.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.830.0",
|
|
40
|
+
"@aws-sdk/lib-dynamodb": "3.830.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
42
42
|
"aws-xray-sdk": "3.10.3",
|
|
43
43
|
"electrodb": "3.4.3",
|
|
@@ -186,6 +186,16 @@ export const configSchema = Joi.object({
|
|
|
186
186
|
headers: Joi.object().pattern(Joi.string(), Joi.string()),
|
|
187
187
|
overrideBaseURL: Joi.string().uri().optional(),
|
|
188
188
|
}).optional(),
|
|
189
|
+
cdnLogsConfig: Joi.object({
|
|
190
|
+
bucketName: Joi.string().required(),
|
|
191
|
+
filters: Joi.array().items(
|
|
192
|
+
Joi.object({
|
|
193
|
+
key: Joi.string().required(),
|
|
194
|
+
value: Joi.string().required(),
|
|
195
|
+
}),
|
|
196
|
+
).optional(),
|
|
197
|
+
outputLocation: Joi.string().required(),
|
|
198
|
+
}).optional(),
|
|
189
199
|
contentAiConfig: Joi.object({
|
|
190
200
|
index: Joi.string().optional(),
|
|
191
201
|
}).optional(),
|
|
@@ -251,6 +261,7 @@ export const Config = (data = {}) => {
|
|
|
251
261
|
self.getLatestMetrics = (type) => state?.handlers?.[type]?.latestMetrics;
|
|
252
262
|
self.getFetchConfig = () => state?.fetchConfig;
|
|
253
263
|
self.getBrandConfig = () => state?.brandConfig;
|
|
264
|
+
self.getCdnLogsConfig = () => state?.cdnLogsConfig;
|
|
254
265
|
|
|
255
266
|
self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
|
|
256
267
|
state.slack = {
|
|
@@ -364,4 +375,5 @@ Config.toDynamoItem = (config) => ({
|
|
|
364
375
|
imports: config.getImports(),
|
|
365
376
|
fetchConfig: config.getFetchConfig(),
|
|
366
377
|
brandConfig: config.getBrandConfig(),
|
|
378
|
+
cdnLogsConfig: config.getCdnLogsConfig(),
|
|
367
379
|
});
|