@adobe/spacecat-shared-data-access 2.33.3 → 2.33.5

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.33.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.4...@adobe/spacecat-shared-data-access-v2.33.5) (2025-07-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * adding pageUrl and urlConfigs to import worker payload formatter ([#833](https://github.com/adobe/spacecat-shared/issues/833)) ([b9e7254](https://github.com/adobe/spacecat-shared/commit/b9e7254107b8690df0a414a80b4c9afce8f3a994))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.33.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.3...@adobe/spacecat-shared-data-access-v2.33.4) (2025-07-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Supporting userId in brandConfig ([#838](https://github.com/adobe/spacecat-shared/issues/838)) ([b585ea6](https://github.com/adobe/spacecat-shared/commit/b585ea6e1821925644bac59bbe9e0fcadfaa55be))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.33.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.33.2...@adobe/spacecat-shared-data-access-v2.33.3) (2025-07-09)
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.33.3",
3
+ "version": "2.33.5",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -94,6 +94,9 @@ class Audit extends BaseModel {
94
94
  * @param {object} stepResult - The result of the audit step.
95
95
  * @param {string} stepResult.type - The import type to trigger.
96
96
  * @param {string} stepResult.siteId - The site ID for which the import is triggered.
97
+ * @param {string} stepResult.pageUrl - The page URL for which the import is triggered.
98
+ * @param {object[]} stepResult.urlConfigs - The list of URL configs for which the import is
99
+ * triggered.
97
100
  * @param {object} auditContext - The audit context.
98
101
  * @param {object} auditContext.next - The next audit step to run.
99
102
  * @param {string} auditContext.auditId - The audit ID.
@@ -107,6 +110,8 @@ class Audit extends BaseModel {
107
110
  formatPayload: (stepResult, auditContext) => ({
108
111
  type: stepResult.type,
109
112
  siteId: stepResult.siteId,
113
+ pageUrl: stepResult.pageUrl,
114
+ urlConfigs: stepResult.urlConfigs,
110
115
  allowCache: true,
111
116
  auditContext,
112
117
  }),
@@ -181,6 +181,7 @@ export const configSchema = Joi.object({
181
181
  ),
182
182
  brandConfig: Joi.object({
183
183
  brandId: Joi.string().required(),
184
+ userId: Joi.string().required(),
184
185
  }).optional(),
185
186
  fetchConfig: Joi.object({
186
187
  headers: Joi.object().pattern(Joi.string(), Joi.string()),