@adobe/spacecat-shared-data-access 2.69.0 → 2.69.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.69.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.69.0...@adobe/spacecat-shared-data-access-v2.69.1) (2025-10-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update expires in for scrapeJobs and scrapeUrls to match S3 ([#998](https://github.com/adobe/spacecat-shared/issues/998)) ([289312b](https://github.com/adobe/spacecat-shared/commit/289312bd4fbfe6c48a4c678d153472406f3a7d30))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v2.69.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.68.1...@adobe/spacecat-shared-data-access-v2.69.0) (2025-10-08)
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.69.0",
3
+ "version": "2.69.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -53,6 +53,7 @@ class Audit extends BaseModel {
53
53
  SECURITY_CSP: 'security-csp',
54
54
  SECURITY_VULNERABILITIES: 'security-vulnerabilities',
55
55
  SECURITY_PERMISSIONS: 'security-permissions',
56
+ SECURITY_REDUNDANT: 'security-permissions-redundant',
56
57
  PAID: 'paid',
57
58
  HREFLANG: 'hreflang',
58
59
  HEADINGS: 'headings',
@@ -209,8 +209,8 @@ class SchemaBuilder {
209
209
  type: 'number',
210
210
  required: true,
211
211
  readOnly: true,
212
- default: () => Date.now() + ttlInDays * 24 * 60 * 60 * 1000,
213
- set: () => Date.now() + ttlInDays * 24 * 60 * 60 * 1000,
212
+ default: () => Math.floor(Date.now() / 1000) + ttlInDays * 24 * 60 * 60,
213
+ set: () => Math.floor(Date.now() / 1000) + ttlInDays * 24 * 60 * 60,
214
214
  });
215
215
 
216
216
  return this;
@@ -20,7 +20,7 @@ import BaseModel from '../base/base.model.js';
20
20
  * @extends BaseModel
21
21
  */
22
22
  class ScrapeJob extends BaseModel {
23
- static SCRAPE_JOB_EXPIRES_IN_DAYS = 14;
23
+ static SCRAPE_JOB_EXPIRES_IN_DAYS = 120;
24
24
 
25
25
  /**
26
26
  * Scrape Job Status types.
@@ -20,7 +20,7 @@ import BaseModel from '../base/base.model.js';
20
20
  * @extends BaseModel
21
21
  */
22
22
  class ScrapeUrl extends BaseModel {
23
- static SCRAPE_URL_EXPIRES_IN_DAYS = 14;
23
+ static SCRAPE_URL_EXPIRES_IN_DAYS = 120;
24
24
 
25
25
  // add your custom methods or overrides here
26
26
  }