@adobe/spacecat-shared-data-access 3.51.0 → 3.52.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 +6 -0
- package/package.json +1 -1
- package/src/models/site/config.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.52.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.51.0...@adobe/spacecat-shared-data-access-v3.52.0) (2026-04-10)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **data-access:** add enableMoneyPageUrls flag to site config ([#1532](https://github.com/adobe/spacecat-shared/issues/1532)) ([865cd45](https://github.com/adobe/spacecat-shared/commit/865cd456e255ed0e2cb3af354fb087d4ce165ef8))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v3.51.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.50.1...@adobe/spacecat-shared-data-access-v3.51.0) (2026-04-10)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/package.json
CHANGED
|
@@ -401,6 +401,7 @@ export const configSchema = Joi.object({
|
|
|
401
401
|
contentAiConfig: Joi.object({
|
|
402
402
|
index: Joi.string().optional(),
|
|
403
403
|
}).optional(),
|
|
404
|
+
enableMoneyPageUrls: Joi.boolean().optional(),
|
|
404
405
|
auditTargetURLs: Joi.object({
|
|
405
406
|
manual: Joi.array().items(Joi.object({
|
|
406
407
|
url: Joi.string().uri().required(),
|
|
@@ -531,6 +532,11 @@ export const Config = (data = {}) => {
|
|
|
531
532
|
}
|
|
532
533
|
};
|
|
533
534
|
|
|
535
|
+
self.isMoneyPageUrlsEnabled = () => state?.enableMoneyPageUrls ?? true;
|
|
536
|
+
self.setEnableMoneyPageUrls = (value) => {
|
|
537
|
+
state.enableMoneyPageUrls = value;
|
|
538
|
+
};
|
|
539
|
+
|
|
534
540
|
self.getAuditTargetURLsConfig = () => state?.auditTargetURLs;
|
|
535
541
|
|
|
536
542
|
self.getAuditTargetURLs = () => {
|
|
@@ -947,5 +953,6 @@ Config.toDynamoItem = (config) => ({
|
|
|
947
953
|
edgeOptimizeConfig: config.getEdgeOptimizeConfig(),
|
|
948
954
|
onboardConfig: config.getOnboardConfig?.(),
|
|
949
955
|
commerceLlmoConfig: config.getCommerceLlmoConfig?.(),
|
|
956
|
+
enableMoneyPageUrls: config.isMoneyPageUrlsEnabled?.() === false ? false : undefined,
|
|
950
957
|
auditTargetURLs: config.getAuditTargetURLsConfig?.(),
|
|
951
958
|
});
|