@adobe/spacecat-shared-data-access 3.50.0 → 3.51.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.51.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.50.1...@adobe/spacecat-shared-data-access-v3.51.0) (2026-04-10)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add contentSourcePath to deliveryConfig schema ([#1520](https://github.com/adobe/spacecat-shared/issues/1520)) ([80341f3](https://github.com/adobe/spacecat-shared/commit/80341f39e0eb34ffca0622a38824c5a33614c96e))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-data-access-v3.50.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.50.0...@adobe/spacecat-shared-data-access-v3.50.1) (2026-04-10)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* grantSuggestions/revokeSuggestionGrant RPC calls hitting the REA… ([#1530](https://github.com/adobe/spacecat-shared/issues/1530)) ([4e077f8](https://github.com/adobe/spacecat-shared/commit/4e077f86bd4a6636af5b165ec42d39add3a556f1))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v3.50.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.49.0...@adobe/spacecat-shared-data-access-v3.50.0) (2026-04-10)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -170,6 +170,7 @@ The `deliveryConfig` object on a Site stores delivery infrastructure details. It
|
|
|
170
170
|
| `tenantId` | string | Cloud Manager tenant identifier (from `/program/{programId}` response) |
|
|
171
171
|
| `ipAllowlistExists` | boolean | Whether the CM program has real IP allowlists configured (excludes default `0.0.0.0/32` entries) |
|
|
172
172
|
| `preferContentApi` | boolean | Whether to prefer the Content API for content retrieval |
|
|
173
|
+
| `contentSourcePath` | string | AEM content root path for a site. Used to disambiguate multiple sites that share the same Cloud Manager program and environment. Corresponds to `/content/<site-name>` in the AEM repository. |
|
|
173
174
|
|
|
174
175
|
## Architecture
|
|
175
176
|
|
package/package.json
CHANGED
|
@@ -117,6 +117,7 @@ const schema = new SchemaBuilder(Site, SiteCollection)
|
|
|
117
117
|
tenantId: { type: 'string' },
|
|
118
118
|
ipAllowlistExists: { type: 'boolean' },
|
|
119
119
|
imsOrgId: { type: 'string' },
|
|
120
|
+
contentSourcePath: { type: 'string' },
|
|
120
121
|
},
|
|
121
122
|
})
|
|
122
123
|
.addAttribute('hlxConfig', {
|
|
@@ -63,7 +63,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
63
63
|
* @returns {Promise<{ data: Array|null, error: object|null }>}
|
|
64
64
|
*/
|
|
65
65
|
async invokeGrantSuggestionsRpc(suggestionIds, siteId, tokenType, cycle) {
|
|
66
|
-
return this.postgrestService.rpc('
|
|
66
|
+
return this.postgrestService.rpc('wrpc_grant_suggestions', {
|
|
67
67
|
p_suggestion_ids: suggestionIds,
|
|
68
68
|
p_site_id: siteId,
|
|
69
69
|
p_token_type: tokenType,
|
|
@@ -167,7 +167,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
167
167
|
|
|
168
168
|
if (error) {
|
|
169
169
|
this.log.error('grantSuggestions: RPC failed', error);
|
|
170
|
-
throw new DataAccessError('Failed to grant suggestions (
|
|
170
|
+
throw new DataAccessError('Failed to grant suggestions (wrpc_grant_suggestions)', this, error);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
const row = Array.isArray(data) && data.length > 0 ? data[0] : null;
|
|
@@ -192,7 +192,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
192
192
|
if (!hasText(grantId)) {
|
|
193
193
|
throw new DataAccessError('invokeRevokeSuggestionGrantRpc: grantId is required', this);
|
|
194
194
|
}
|
|
195
|
-
return this.postgrestService.rpc('
|
|
195
|
+
return this.postgrestService.rpc('wrpc_revoke_suggestion_grant', {
|
|
196
196
|
p_grant_id: grantId,
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -216,7 +216,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
216
216
|
|
|
217
217
|
if (error) {
|
|
218
218
|
this.log.error('revokeSuggestionGrant: RPC failed', error);
|
|
219
|
-
throw new DataAccessError('Failed to revoke suggestion grant (
|
|
219
|
+
throw new DataAccessError('Failed to revoke suggestion grant (wrpc_revoke_suggestion_grant)', this, error);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
const row = Array.isArray(data) && data.length > 0 ? data[0] : null;
|