@adobe/spacecat-shared-data-access 2.7.0 → 2.7.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.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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * get queue url ([#612](https://github.com/adobe/spacecat-shared/issues/612)) ([232af0a](https://github.com/adobe/spacecat-shared/commit/232af0af829289214826275f81504ce6bdae5467))
7
+
1
8
  # [@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
9
 
3
10
 
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.7.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -71,13 +71,19 @@ class Audit extends BaseModel {
71
71
  * The configurations for the audit step destinations. Used with AuditBuilder to configure
72
72
  * the destination queue URL and payload formatting.
73
73
  * @type {{
74
- * [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {queueUrl: string, formatPayload: function},
75
- * [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {queueUrl: string, formatPayload: function}
74
+ * [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {
75
+ * getQueueUrl: function,
76
+ * formatPayload: function
77
+ * },
78
+ * [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {
79
+ * getQueueUrl: function,
80
+ * formatPayload: function
81
+ * }
76
82
  * }}
77
83
  */
78
84
  static AUDIT_STEP_DESTINATION_CONFIGS = {
79
85
  [Audit.AUDIT_STEP_DESTINATIONS.IMPORT_WORKER]: {
80
- queueUrl: process.env.IMPORT_WORKER_QUEUE_URL,
86
+ getQueueUrl: (context) => context.env?.IMPORT_WORKER_QUEUE_URL,
81
87
  /**
82
88
  * Formats the payload for the import worker queue.
83
89
  * @param {object} stepResult - The result of the audit step.
@@ -100,7 +106,7 @@ class Audit extends BaseModel {
100
106
  }),
101
107
  },
102
108
  [Audit.AUDIT_STEP_DESTINATIONS.CONTENT_SCRAPER]: {
103
- queueUrl: process.env.CONTENT_SCRAPER_QUEUE_URL,
109
+ getQueueUrl: (context) => context.env?.CONTENT_SCRAPER_QUEUE_URL,
104
110
  /**
105
111
  * Formats the payload for the content scraper queue.
106
112
  * @param {object} stepResult - The result of the audit step.