@adobe/spacecat-shared-data-access 2.105.0 → 2.106.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,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.106.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.105.1...@adobe/spacecat-shared-data-access-v2.106.0) (2026-02-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * **data-access:** add suggestionValue to FALLBACK_PROJECTION for reports ([#1337](https://github.com/adobe/spacecat-shared/issues/1337)) ([d17da2b](https://github.com/adobe/spacecat-shared/commit/d17da2b69bbccbf69d2fabe7c3ffd37d8ffb5106))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.105.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.105.0...@adobe/spacecat-shared-data-access-v2.105.1) (2026-02-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **data-access:** support both snake_case and camelCase in BROKEN_BAC… ([#1336](https://github.com/adobe/spacecat-shared/issues/1336)) ([327d934](https://github.com/adobe/spacecat-shared/commit/327d934b7b93506fe397ca92548c4ff111fb26df))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.105.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.104.0...@adobe/spacecat-shared-data-access-v2.105.0) (2026-02-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.105.0",
3
+ "version": "2.106.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -350,35 +350,46 @@ export const DATA_SCHEMAS = {
350
350
  },
351
351
  [OPPORTUNITY_TYPES.BROKEN_BACKLINKS]: {
352
352
  schema: Joi.object({
353
- url_from: Joi.string().uri().required(),
354
- url_to: Joi.string().uri().required(),
353
+ url_from: Joi.string().uri().optional(),
354
+ urlFrom: Joi.string().uri().optional(),
355
+ url_to: Joi.string().uri().optional(),
356
+ urlTo: Joi.string().uri().optional(),
355
357
  title: Joi.string().optional(),
356
358
  traffic_domain: Joi.number().optional(),
357
359
  aiRationale: Joi.string().optional(),
358
360
  urlsSuggested: Joi.array().items(Joi.string().uri()).optional(),
359
361
  aggregationKey: Joi.string().allow(null).optional(),
360
- }).unknown(true),
362
+ })
363
+ .or('url_from', 'urlFrom') // At least one of these must be present
364
+ .or('url_to', 'urlTo') // At least one of these must be present
365
+ .unknown(true),
361
366
  projections: {
362
367
  minimal: {
363
- fields: ['url_from', 'url_to'],
368
+ fields: ['url_from', 'url_to', 'urlFrom', 'urlTo'],
364
369
  transformers: {},
365
370
  },
366
371
  },
367
372
  },
368
373
  [OPPORTUNITY_TYPES.BROKEN_INTERNAL_LINKS]: {
369
374
  schema: Joi.object({
370
- urlFrom: Joi.string().uri().required(),
371
- urlTo: Joi.string().uri().required(),
375
+ // Support both naming conventions (snake_case and camelCase)
376
+ url_from: Joi.string().uri().optional(),
377
+ urlFrom: Joi.string().uri().optional(),
378
+ url_to: Joi.string().uri().optional(),
379
+ urlTo: Joi.string().uri().optional(),
372
380
  title: Joi.string().optional(),
373
381
  urlsSuggested: Joi.array().items(Joi.string().uri()).optional(),
374
382
  aiRationale: Joi.string().optional(),
375
383
  trafficDomain: Joi.number().optional(),
376
384
  priority: Joi.string().optional(),
377
385
  aggregationKey: Joi.string().allow(null).optional(),
378
- }).unknown(true),
386
+ })
387
+ .or('url_from', 'urlFrom') // At least one of these must be present
388
+ .or('url_to', 'urlTo') // At least one of these must be present
389
+ .unknown(true),
379
390
  projections: {
380
391
  minimal: {
381
- fields: ['urlFrom', 'urlTo'],
392
+ fields: ['url_from', 'url_to', 'urlFrom', 'urlTo'],
382
393
  transformers: {},
383
394
  },
384
395
  },
@@ -104,6 +104,7 @@ export const FALLBACK_PROJECTION = {
104
104
  'path',
105
105
  'sourceUrl',
106
106
  'destinationUrl',
107
+ 'suggestionValue', // Web Performance Trends: [{ date, good, needsImprovement, poor }] for header cards
107
108
  ],
108
109
  transformers: {},
109
110
  },