@adobe/spacecat-shared-data-access 3.78.0 → 3.79.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,9 @@
1
+ ## [@adobe/spacecat-shared-data-access-v3.79.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.78.0...@adobe/spacecat-shared-data-access-v3.79.0) (2026-06-19)
2
+
3
+ ### Features
4
+
5
+ * **data-access:** add brand pendingSemrushProvisioning attribute ([#1692](https://github.com/adobe/spacecat-shared/issues/1692)) ([1c2bc2a](https://github.com/adobe/spacecat-shared/commit/1c2bc2a2043246268e0ebe421de7c2c9e9241cdc))
6
+
1
7
  ## [@adobe/spacecat-shared-data-access-v3.78.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.77.0...@adobe/spacecat-shared-data-access-v3.78.0) (2026-06-17)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "3.78.0",
3
+ "version": "3.79.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -46,6 +46,15 @@ const schema = new SchemaBuilder(Brand, BrandCollection)
46
46
  type: 'string',
47
47
  validate: (value) => value == null || hasText(value),
48
48
  })
49
+ // Nullable JSONB blob holding deferred Semrush provisioning data for a
50
+ // pending (draft) brand. Maps to brands.pending_semrush_provisioning
51
+ // (migration 20260618120000). Validated loosely here (object-or-null); the
52
+ // DB CHECK enforces the object shape and the controller owns field-level
53
+ // validation and the activate-flow consumption semantics.
54
+ .addAttribute('pendingSemrushProvisioning', {
55
+ type: 'any',
56
+ validate: (value) => value == null || (typeof value === 'object' && !Array.isArray(value)),
57
+ })
49
58
  // Uniqueness is enforced at the DB level via the UNIQUE constraint on
50
59
  // brands.semrush_workspace_id (mysticat-data-service migration
51
60
  // 20260615102123), so findBySemrushWorkspaceId returns at most one row.