@adobe/spacecat-shared-data-access 2.105.0 → 2.105.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,10 @@
|
|
|
1
|
+
# [@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)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **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))
|
|
7
|
+
|
|
1
8
|
# [@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
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -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().
|
|
354
|
-
|
|
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
|
-
})
|
|
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
|
-
|
|
371
|
-
|
|
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
|
-
})
|
|
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
|
},
|