@adobe/spacecat-shared-data-access 3.31.0 → 3.32.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,15 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.32.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.31.1...@adobe/spacecat-shared-data-access-v3.32.0) (2026-03-27)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* Added redirectsQueued to plg onboarding schema ([#1473](https://github.com/adobe/spacecat-shared/issues/1473)) ([a7c5258](https://github.com/adobe/spacecat-shared/commit/a7c5258afd97df232b874f5e0763ad4236419e39))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-data-access-v3.31.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.31.0...@adobe/spacecat-shared-data-access-v3.31.1) (2026-03-26)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **AGENTCOM-441:** update required fields from commerce config ([#1470](https://github.com/adobe/spacecat-shared/issues/1470)) ([5e89146](https://github.com/adobe/spacecat-shared/commit/5e89146110896cfcbcce9e80e743564ff8bb989b))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v3.31.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.30.0...@adobe/spacecat-shared-data-access-v3.31.0) (2026-03-25)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/package.json
CHANGED
|
@@ -66,6 +66,7 @@ const schema = new SchemaBuilder(PlgOnboarding, PlgOnboardingCollection)
|
|
|
66
66
|
siteResolved: { type: 'boolean' },
|
|
67
67
|
configUpdated: { type: 'boolean' },
|
|
68
68
|
auditsEnabled: { type: 'boolean' },
|
|
69
|
+
redirectsQueued: { type: 'boolean' },
|
|
69
70
|
entitlementCreated: { type: 'boolean' },
|
|
70
71
|
},
|
|
71
72
|
})
|
|
@@ -386,10 +386,10 @@ export const configSchema = Joi.object({
|
|
|
386
386
|
commerceLlmoConfig: Joi.object().pattern(
|
|
387
387
|
Joi.string(),
|
|
388
388
|
Joi.object({
|
|
389
|
-
environmentId: Joi.string().
|
|
390
|
-
websiteCode: Joi.string().
|
|
391
|
-
storeCode: Joi.string().
|
|
392
|
-
storeViewCode: Joi.string().
|
|
389
|
+
environmentId: Joi.string().required(),
|
|
390
|
+
websiteCode: Joi.string().required(),
|
|
391
|
+
storeCode: Joi.string().required(),
|
|
392
|
+
storeViewCode: Joi.string().required(),
|
|
393
393
|
hostName: Joi.string().optional(),
|
|
394
394
|
magentoEndpoint: Joi.string().uri().optional(),
|
|
395
395
|
magentoAPIKey: Joi.string().optional(),
|
|
@@ -56,13 +56,20 @@ export const FIELD_TRANSFORMERS = {
|
|
|
56
56
|
}));
|
|
57
57
|
},
|
|
58
58
|
/**
|
|
59
|
-
* Extracts
|
|
60
|
-
* Used for alt-text opportunity type.
|
|
59
|
+
* Extracts essential fields from recommendations array for alt-text opportunities.
|
|
60
|
+
* Used for alt-text opportunity type minimal views.
|
|
61
|
+
* Includes: pageUrl, isDecorative, and hasAltAttribute (for filtering).
|
|
62
|
+
* isDecorative and hasAltAttribute are used to filter out suggestions in the opportunity
|
|
63
|
+
* listing card for alt-text in:
|
|
64
|
+
* experience-success-studio-ui/src/dx-excshell-1/web-src/src/features/opportunitiesFeature
|
|
65
|
+
* /AltText/handlers/AltTextOpportunityAdapter.tsx
|
|
61
66
|
*/
|
|
62
67
|
extractPageUrlFromRecommendations: (recommendations) => {
|
|
63
68
|
if (!Array.isArray(recommendations)) return recommendations;
|
|
64
69
|
return recommendations.map((rec) => ({
|
|
65
70
|
pageUrl: rec.pageUrl,
|
|
71
|
+
...(rec.isDecorative !== undefined && { isDecorative: rec.isDecorative }),
|
|
72
|
+
...(rec.hasAltAttribute !== undefined && { hasAltAttribute: rec.hasAltAttribute }),
|
|
66
73
|
}));
|
|
67
74
|
},
|
|
68
75
|
/**
|