@adobe/spacecat-shared-data-access 2.73.0 → 2.74.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 +14 -0
- package/package.json +1 -1
- package/src/models/audit/audit.model.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.74.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.73.1...@adobe/spacecat-shared-data-access-v2.74.0) (2025-10-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add FAQs audit ([#1036](https://github.com/adobe/spacecat-shared/issues/1036)) ([4ddc4de](https://github.com/adobe/spacecat-shared/commit/4ddc4de24dbfcd2200ed1245df9d9e0c3f87c757))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.73.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.73.0...@adobe/spacecat-shared-data-access-v2.73.1) (2025-10-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* maxScrapeAge zero handling ([#1024](https://github.com/adobe/spacecat-shared/issues/1024)) ([4aa087b](https://github.com/adobe/spacecat-shared/commit/4aa087b9af57f70f60ca38dc4d843929b7f4cc8f))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.73.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.72.1...@adobe/spacecat-shared-data-access-v2.73.0) (2025-10-17)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
isArray,
|
|
15
|
+
isObject,
|
|
16
|
+
isBoolean,
|
|
17
|
+
isNumber,
|
|
18
|
+
} from '@adobe/spacecat-shared-utils';
|
|
14
19
|
|
|
15
20
|
import { ValidationError } from '../../errors/index.js';
|
|
16
21
|
import BaseModel from '../base/base.model.js';
|
|
@@ -64,6 +69,7 @@ class Audit extends BaseModel {
|
|
|
64
69
|
PRODUCT_METATAGS: 'product-metatags',
|
|
65
70
|
SUMMARIZATION: 'summarization',
|
|
66
71
|
PAGE_TYPE_DETECTION: 'page-type-detection',
|
|
72
|
+
FAQS: 'faqs',
|
|
67
73
|
};
|
|
68
74
|
|
|
69
75
|
static AUDIT_TYPE_PROPERTIES = {
|
|
@@ -179,7 +185,7 @@ class Audit extends BaseModel {
|
|
|
179
185
|
urls: stepResult.urls.map((urlObj) => urlObj.url),
|
|
180
186
|
processingType: stepResult.processingType || 'default',
|
|
181
187
|
options: stepResult.options || {},
|
|
182
|
-
maxScrapeAge: stepResult.maxScrapeAge
|
|
188
|
+
maxScrapeAge: isNumber(stepResult.maxScrapeAge) ? stepResult.maxScrapeAge : 24,
|
|
183
189
|
auditData: {
|
|
184
190
|
siteId: stepResult.siteId,
|
|
185
191
|
completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,
|