@adobe/spacecat-shared-data-access 2.17.4 → 2.19.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.19.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.18.0...@adobe/spacecat-shared-data-access-v2.19.0) (2025-05-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding options to scraper sqs payload ([#733](https://github.com/adobe/spacecat-shared/issues/733)) ([eb9a08b](https://github.com/adobe/spacecat-shared/commit/eb9a08b06bc48388a5aa3c78f9ce57c05ef04313))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.18.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.17.4...@adobe/spacecat-shared-data-access-v2.18.0) (2025-05-12)
9
+
10
+
11
+ ### Features
12
+
13
+ * content scraper audit step will honour the allowCache value fro… ([#725](https://github.com/adobe/spacecat-shared/issues/725)) ([89bfe23](https://github.com/adobe/spacecat-shared/commit/89bfe231b368aaf65eba1777c3799e5cd42fe8f6))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.17.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.17.3...@adobe/spacecat-shared-data-access-v2.17.4) (2025-05-12)
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.17.4",
3
+ "version": "2.19.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { isArray, isObject } from '@adobe/spacecat-shared-utils';
13
+ import { isArray, isObject, isBoolean } from '@adobe/spacecat-shared-utils';
14
14
 
15
15
  import { ValidationError } from '../../errors/index.js';
16
16
  import BaseModel from '../base/base.model.js';
@@ -116,6 +116,7 @@ class Audit extends BaseModel {
116
116
  * @param {object[]} stepResult.urls - The list of URLs to scrape.
117
117
  * @param {string} stepResult.urls[].url - The URL to scrape.
118
118
  * @param {string} stepResult.siteId - The site ID. Will be used as the job ID.
119
+ * @param {string} stepResult.options - The options for the scraper.
119
120
  * @param {string} stepResult.processingType - The scraping processing type to trigger.
120
121
  * @param {object} auditContext - The audit context.
121
122
  * @param {object} context - The context object.
@@ -131,7 +132,8 @@ class Audit extends BaseModel {
131
132
  jobId: stepResult.siteId,
132
133
  processingType: stepResult.processingType || 'default',
133
134
  skipMessage: false,
134
- allowCache: true,
135
+ allowCache: isBoolean(stepResult.allowCache) ? stepResult.allowCache : true,
136
+ options: stepResult.options || {},
135
137
  completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,
136
138
  auditContext,
137
139
  }),