@adobe/spacecat-shared-data-access 3.49.0 → 3.50.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,15 @@
|
|
|
1
|
+
## [@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)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* 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))
|
|
6
|
+
|
|
7
|
+
## [@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)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* LLMO-3959 changing schema to add detectCdn flag ([#1501](https://github.com/adobe/spacecat-shared/issues/1501)) ([0bb4642](https://github.com/adobe/spacecat-shared/commit/0bb46425b1351df2b12525182367c2635ae7fc48))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v3.49.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.48.0...@adobe/spacecat-shared-data-access-v3.49.0) (2026-04-10)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/package.json
CHANGED
|
@@ -345,6 +345,7 @@ export const configSchema = Joi.object({
|
|
|
345
345
|
cdnProvider: Joi.string().optional(),
|
|
346
346
|
region: Joi.string().pattern(AWS_REGION_PATTERN).optional(),
|
|
347
347
|
}).optional(),
|
|
348
|
+
detectedCdn: Joi.string().valid('aem-cs-fastly', 'other').optional(),
|
|
348
349
|
}).optional(),
|
|
349
350
|
cdnLogsConfig: Joi.object({
|
|
350
351
|
bucketName: Joi.string().required(),
|
|
@@ -514,6 +515,7 @@ export const Config = (data = {}) => {
|
|
|
514
515
|
self.getLlmoCdnlogsFilter = () => state?.llmo?.cdnlogsFilter;
|
|
515
516
|
self.getLlmoCountryCodeIgnoreList = () => state?.llmo?.countryCodeIgnoreList;
|
|
516
517
|
self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
|
|
518
|
+
self.getLlmoDetectedCdn = () => state?.llmo?.detectedCdn ?? null;
|
|
517
519
|
self.getTokowakaConfig = () => state?.tokowakaConfig;
|
|
518
520
|
self.getEdgeOptimizeConfig = () => state?.edgeOptimizeConfig;
|
|
519
521
|
self.getOnboardConfig = () => state?.onboardConfig;
|
|
@@ -734,6 +736,11 @@ export const Config = (data = {}) => {
|
|
|
734
736
|
state.llmo.cdnBucketConfig = cdnBucketConfig;
|
|
735
737
|
};
|
|
736
738
|
|
|
739
|
+
self.updateLlmoDetectedCdn = (detectedCdn) => {
|
|
740
|
+
state.llmo = state.llmo || {};
|
|
741
|
+
state.llmo.detectedCdn = detectedCdn;
|
|
742
|
+
};
|
|
743
|
+
|
|
737
744
|
self.addLlmoTag = (tag) => {
|
|
738
745
|
state.llmo = state.llmo || {};
|
|
739
746
|
state.llmo.tags = state.llmo.tags || [];
|
|
@@ -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;
|