@adobe/spacecat-shared-data-access 2.29.1 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
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)
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.29.1",
3
+ "version": "2.30.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -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
  });