@adobe/spacecat-shared-data-access 2.7.0 → 2.8.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.8.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.7.1...@adobe/spacecat-shared-data-access-v2.8.0) (2025-02-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * add alt-text audit type constant ([#613](https://github.com/adobe/spacecat-shared/issues/613)) ([cc1bbdb](https://github.com/adobe/spacecat-shared/commit/cc1bbdbfcb0884d1a56f7dacfc360dfaf80a7942))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.7.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.7.0...@adobe/spacecat-shared-data-access-v2.7.1) (2025-02-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * get queue url ([#612](https://github.com/adobe/spacecat-shared/issues/612)) ([232af0a](https://github.com/adobe/spacecat-shared/commit/232af0af829289214826275f81504ce6bdae5467))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.7.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.6.0...@adobe/spacecat-shared-data-access-v2.7.0) (2025-02-18)
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.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -45,6 +45,7 @@ class Audit extends BaseModel {
45
45
  STRUCTURED_DATA: 'structured-data',
46
46
  FORMS_OPPORTUNITIES: 'forms-opportunities',
47
47
  SITE_DETECTION: 'site-detection',
48
+ ALT_TEXT: 'alt-text',
48
49
  };
49
50
 
50
51
  static AUDIT_TYPE_PROPERTIES = {
@@ -71,13 +72,19 @@ class Audit extends BaseModel {
71
72
  * The configurations for the audit step destinations. Used with AuditBuilder to configure
72
73
  * the destination queue URL and payload formatting.
73
74
  * @type {{
74
- * [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {queueUrl: string, formatPayload: function},
75
- * [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {queueUrl: string, formatPayload: function}
75
+ * [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {
76
+ * getQueueUrl: function,
77
+ * formatPayload: function
78
+ * },
79
+ * [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {
80
+ * getQueueUrl: function,
81
+ * formatPayload: function
82
+ * }
76
83
  * }}
77
84
  */
78
85
  static AUDIT_STEP_DESTINATION_CONFIGS = {
79
86
  [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {
80
- queueUrl: process.env.IMPORT_WORKER_QUEUE_URL,
87
+ getQueueUrl: (context) => context.env?.IMPORT_WORKER_QUEUE_URL,
81
88
  /**
82
89
  * Formats the payload for the import worker queue.
83
90
  * @param {object} stepResult - The result of the audit step.
@@ -100,7 +107,7 @@ class Audit extends BaseModel {
100
107
  }),
101
108
  },
102
109
  [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {
103
- queueUrl: process.env.CONTENT_SCRAPER_QUEUE_URL,
110
+ getQueueUrl: (context) => context.env?.CONTENT_SCRAPER_QUEUE_URL,
104
111
  /**
105
112
  * Formats the payload for the content scraper queue.
106
113
  * @param {object} stepResult - The result of the audit step.