@adobe/spacecat-shared-data-access 2.72.1 → 2.73.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,17 @@
1
+ # [@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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * maxScrapeAge zero handling ([#1024](https://github.com/adobe/spacecat-shared/issues/1024)) ([4aa087b](https://github.com/adobe/spacecat-shared/commit/4aa087b9af57f70f60ca38dc4d843929b7f4cc8f))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Features
12
+
13
+ * added pageType audit_type ([#1031](https://github.com/adobe/spacecat-shared/issues/1031)) ([ee469fa](https://github.com/adobe/spacecat-shared/commit/ee469fa60cdcfb0f20f44e90625ed49b235bbeb7))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.72.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.72.0...@adobe/spacecat-shared-data-access-v2.72.1) (2025-10-16)
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.72.1",
3
+ "version": "2.73.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { isArray, isObject, isBoolean } from '@adobe/spacecat-shared-utils';
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';
@@ -63,6 +68,7 @@ class Audit extends BaseModel {
63
68
  PRERENDER: 'prerender',
64
69
  PRODUCT_METATAGS: 'product-metatags',
65
70
  SUMMARIZATION: 'summarization',
71
+ PAGE_TYPE_DETECTION: 'page-type-detection',
66
72
  };
67
73
 
68
74
  static AUDIT_TYPE_PROPERTIES = {
@@ -178,7 +184,7 @@ class Audit extends BaseModel {
178
184
  urls: stepResult.urls.map((urlObj) => urlObj.url),
179
185
  processingType: stepResult.processingType || 'default',
180
186
  options: stepResult.options || {},
181
- maxScrapeAge: stepResult.maxScrapeAge || 24,
187
+ maxScrapeAge: isNumber(stepResult.maxScrapeAge) ? stepResult.maxScrapeAge : 24,
182
188
  auditData: {
183
189
  siteId: stepResult.siteId,
184
190
  completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,