@adobe/spacecat-shared-data-access 3.55.0 → 3.56.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-v3.56.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.55.1...@adobe/spacecat-shared-data-access-v3.56.0) (2026-05-04)
2
+
3
+ ### Features
4
+
5
+ * **data-access:** add readAll capability to Consumer.CAPABILITIES ([#1573](https://github.com/adobe/spacecat-shared/issues/1573)) ([4475928](https://github.com/adobe/spacecat-shared/commit/44759289abb95bc22c58d59327ff3e881d39c430))
6
+
7
+ ## [@adobe/spacecat-shared-data-access-v3.55.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.55.0...@adobe/spacecat-shared-data-access-v3.55.1) (2026-04-29)
8
+
9
+ ### Bug Fixes
10
+
11
+ * BaseModel/Patcher record desync after save() causes silent sette… ([#1567](https://github.com/adobe/spacecat-shared/issues/1567)) ([c9c782d](https://github.com/adobe/spacecat-shared/commit/c9c782dab95d588852f8b2931405f0174965c346))
12
+
1
13
  ## [@adobe/spacecat-shared-data-access-v3.55.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.54.0...@adobe/spacecat-shared-data-access-v3.55.0) (2026-04-28)
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": "3.55.0",
3
+ "version": "3.56.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -51,7 +51,12 @@ class Consumer extends BaseModel {
51
51
  return super.save();
52
52
  }
53
53
 
54
- static CAPABILITIES = ['read', 'write', 'delete'];
54
+ /**
55
+ * Valid capability actions. `readAll` is a scope+verb hybrid — it grants enumeration
56
+ * across all tenants and is only meaningful on routes that explicitly opt in
57
+ * (`site` and `organization`). Schema validity does not imply a reachable route.
58
+ */
59
+ static CAPABILITIES = ['read', 'write', 'delete', 'readAll'];
55
60
 
56
61
  static IMS_ORG_ID_REGEX = /^[a-z0-9]{24}@AdobeOrg$/i;
57
62
 
@@ -180,7 +180,7 @@ class Patcher {
180
180
  && typeof this.collection.applyUpdateWatchers === 'function'
181
181
  && typeof this.collection.updateByKeys === 'function') {
182
182
  const watched = this.collection.applyUpdateWatchers(this.record, updates);
183
- this.record = watched.record;
183
+ Object.assign(this.record, watched.record);
184
184
  await this.collection.updateByKeys(keys, watched.updates);
185
185
  return;
186
186
  }