@adobe/spacecat-shared-data-access 2.29.1 → 2.30.1

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,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.30.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.30.0...@adobe/spacecat-shared-data-access-v2.30.1) (2025-06-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add setter for cdn logs condfig ([#828](https://github.com/adobe/spacecat-shared/issues/828)) ([094edf3](https://github.com/adobe/spacecat-shared/commit/094edf3edf362531930294b5195c55239f8b3efc))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Features
12
+
13
+ * add CDN logs config ([#827](https://github.com/adobe/spacecat-shared/issues/827)) ([c4dd99b](https://github.com/adobe/spacecat-shared/commit/c4dd99bf142312b8285491769ea552c90f3e60aa))
14
+
1
15
  # [@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
16
 
3
17
 
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.1",
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 = {
@@ -352,6 +363,10 @@ export const Config = (data = {}) => {
352
363
  return config?.enabled ?? false;
353
364
  };
354
365
 
366
+ self.updateCdnLogsConfig = (cdnLogsConfig) => {
367
+ state.cdnLogsConfig = cdnLogsConfig;
368
+ };
369
+
355
370
  return Object.freeze(self);
356
371
  };
357
372
 
@@ -364,4 +379,5 @@ Config.toDynamoItem = (config) => ({
364
379
  imports: config.getImports(),
365
380
  fetchConfig: config.getFetchConfig(),
366
381
  brandConfig: config.getBrandConfig(),
382
+ cdnLogsConfig: config.getCdnLogsConfig(),
367
383
  });