@adobe/spacecat-shared-data-access 2.87.1 → 2.88.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,22 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.88.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.88.0...@adobe/spacecat-shared-data-access-v2.88.1) (2025-11-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove enrollments when entitlment are removed ([#1161](https://github.com/adobe/spacecat-shared/issues/1161)) ([b82e6c4](https://github.com/adobe/spacecat-shared/commit/b82e6c4c259543bd0d3e3a3ad2d3e2702956d85c))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.88.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.87.1...@adobe/spacecat-shared-data-access-v2.88.0) (2025-11-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#1162](https://github.com/adobe/spacecat-shared/issues/1162)) ([f0152c5](https://github.com/adobe/spacecat-shared/commit/f0152c5ecddb75b6b3c6e2f0d756d5fb04171dd3))
14
+
15
+
16
+ ### Features
17
+
18
+ * add no-cta-above-the-fold audit ([#1159](https://github.com/adobe/spacecat-shared/issues/1159)) ([83b9a7d](https://github.com/adobe/spacecat-shared/commit/83b9a7dd0cac0979518dbf935f582df92acc0a47))
19
+
1
20
  # [@adobe/spacecat-shared-data-access-v2.87.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.87.0...@adobe/spacecat-shared-data-access-v2.87.1) (2025-11-21)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.87.1",
3
+ "version": "2.88.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -39,12 +39,12 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@adobe/spacecat-shared-utils": "1.74.0",
42
- "@aws-sdk/client-dynamodb": "3.932.0",
43
- "@aws-sdk/lib-dynamodb": "3.932.0",
42
+ "@aws-sdk/client-dynamodb": "3.936.0",
43
+ "@aws-sdk/lib-dynamodb": "3.936.0",
44
44
  "@types/joi": "17.2.3",
45
- "aws-xray-sdk": "3.11.0",
45
+ "aws-xray-sdk": "3.12.0",
46
46
  "electrodb": "3.5.0",
47
- "joi": "18.0.1",
47
+ "joi": "18.0.2",
48
48
  "pluralize": "8.0.0"
49
49
  },
50
50
  "devDependencies": {
@@ -76,6 +76,7 @@ class Audit extends BaseModel {
76
76
  CDN_LOGS_REPORT: 'cdn-logs-report',
77
77
  LLMO_REFERRAL_TRAFFIC: 'llmo-referral-traffic',
78
78
  PAGE_INTENT: 'page-intent',
79
+ NO_CTA_ABOVE_THE_FOLD: 'no-cta-above-the-fold',
79
80
  };
80
81
 
81
82
  static AUDIT_TYPE_PROPERTIES = {
@@ -24,7 +24,7 @@ const schema = new SchemaBuilder(Entitlement, EntitlementCollection)
24
24
  // Reference to Organization (many-to-one relationship)
25
25
  .addReference('belongs_to', 'Organization')
26
26
  // Reference to SiteEnrollments (one-to-many relationship)
27
- .addReference('has_many', 'SiteEnrollments')
27
+ .addReference('has_many', 'SiteEnrollments', [], { removeDependents: true })
28
28
  .addReference('has_many', 'TrialUserActivities')
29
29
  .addAttribute('productCode', {
30
30
  type: Object.values(Entitlement.PRODUCT_CODES),