@adobe/spacecat-shared-data-access 3.31.1 → 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,9 @@
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
+
1
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)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "3.31.1",
3
+ "version": "3.32.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -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
  })
@@ -56,13 +56,20 @@ export const FIELD_TRANSFORMERS = {
56
56
  }));
57
57
  },
58
58
  /**
59
- * Extracts pageUrl from recommendations array.
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
  /**