@adobe/spacecat-shared-data-access 4.22.0 → 4.23.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,15 @@
1
+ ## [@adobe/spacecat-shared-data-access-v4.23.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.22.1...@adobe/spacecat-shared-data-access-v4.23.0) (2026-08-28)
2
+
3
+ ### Features
4
+
5
+ * **data-access:** add suggestionKey attribute to Suggestion schema ([#1899](https://github.com/adobe/spacecat-shared/issues/1899)) ([0d6ecc3](https://github.com/adobe/spacecat-shared/commit/0d6ecc3f46984140d13bd84614e362d289106a39))
6
+
7
+ ## [@adobe/spacecat-shared-data-access-v4.22.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.22.0...@adobe/spacecat-shared-data-access-v4.22.1) (2026-08-19)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **data-access:** remove deprecated brand pendingSemrushProvisioning attribute (SITES-49448) ([#1886](https://github.com/adobe/spacecat-shared/issues/1886)) ([3b09e0b](https://github.com/adobe/spacecat-shared/commit/3b09e0b613526030f317db5e1f74324fdeea7ff0)), closes [#5](https://github.com/adobe/spacecat-shared/issues/5) [1867/#1880](https://github.com/1867/spacecat-shared/issues/1880)
12
+
1
13
  ## [@adobe/spacecat-shared-data-access-v4.22.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.21.1...@adobe/spacecat-shared-data-access-v4.22.0) (2026-08-14)
2
14
 
3
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "4.22.0",
3
+ "version": "4.23.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -34,6 +34,14 @@ import BaseModel from '../base/base.model.js';
34
34
  * `Organization.semrushWorkspaceId` is a DISTINCT field and stays — do not
35
35
  * reintroduce a brand mirror by symbol-name sweep.
36
36
  *
37
+ * NOTE: there is also no `pendingSemrushProvisioning` attribute. That
38
+ * "Save as pending" staging blob (`{primaryUrl, markets, generatePrompts}`,
39
+ * mapped to `brands.pending_semrush_provisioning`) was removed in SITES-49448
40
+ * once the brand/market management model made pending brands carry no
41
+ * markets, models chosen per market, and the primary URL a `site_id`
42
+ * selection at create time — the blob's shape no longer matches anything the
43
+ * product writes.
44
+ *
37
45
  * @class Brand
38
46
  * @extends BaseModel
39
47
  */
@@ -49,15 +49,6 @@ const schema = new SchemaBuilder(Brand, BrandCollection)
49
49
  type: 'string',
50
50
  validate: (value) => value == null || hasText(value),
51
51
  })
52
- // Nullable JSONB blob holding deferred Semrush provisioning data for a
53
- // pending (draft) brand. Maps to brands.pending_semrush_provisioning
54
- // (migration 20260618120000). Validated loosely here (object-or-null); the
55
- // DB CHECK enforces the object shape and the controller owns field-level
56
- // validation and the activate-flow consumption semantics.
57
- .addAttribute('pendingSemrushProvisioning', {
58
- type: 'any',
59
- validate: (value) => value == null || (typeof value === 'object' && !Array.isArray(value)),
60
- })
61
52
  // Uniqueness guarantee on the write-of-record column
62
53
  // (brands.semrush_sub_workspace_id, mysticat-data-service migration
63
54
  // 20260702091920), so findBySemrushSubWorkspaceId returns at most one row.
@@ -50,6 +50,11 @@ const schema = new SchemaBuilder(Suggestion, SuggestionCollection)
50
50
  .addAttribute('skipDetail', {
51
51
  type: 'string',
52
52
  validate: (value) => !value || (isString(value) && value.length <= 500),
53
+ })
54
+ .addAttribute('suggestionKey', {
55
+ type: 'string',
56
+ readOnly: true,
57
+ validate: (value) => !value || isString(value),
53
58
  });
54
59
 
55
60
  export default schema.build();