@adobe/spacecat-shared-data-access 2.46.1 → 2.47.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,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.47.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.2...@adobe/spacecat-shared-data-access-v2.47.0) (2025-08-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* make customerIntent config generic ([#896](https://github.com/adobe/spacecat-shared/issues/896)) ([d02a592](https://github.com/adobe/spacecat-shared/commit/d02a592fb556d282f652f8dc9c2603ae47a0e93c))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.46.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.1...@adobe/spacecat-shared-data-access-v2.46.2) (2025-08-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [preflight] removing ref from externalOwnerId to find site for a branch-based preview URL ([#843](https://github.com/adobe/spacecat-shared/issues/843)) ([4f57fcf](https://github.com/adobe/spacecat-shared/commit/4f57fcf2f645279e423455dea60df37e116950b4))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.46.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.46.0...@adobe/spacecat-shared-data-access-v2.46.1) (2025-08-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -248,11 +248,12 @@ export const configSchema = Joi.object({
|
|
|
248
248
|
AI: Joi.array().items(QUESTION_SCHEMA).optional(),
|
|
249
249
|
}).optional(),
|
|
250
250
|
urlPatterns: LLMO_URL_PATTERNS_SCHEMA.optional(),
|
|
251
|
-
customerIntent: Joi.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
251
|
+
customerIntent: Joi.array().items(
|
|
252
|
+
Joi.object({
|
|
253
|
+
key: Joi.string().required(),
|
|
254
|
+
value: Joi.string().required(),
|
|
255
|
+
}),
|
|
256
|
+
).optional(),
|
|
256
257
|
filterConfig: Joi.array().items(
|
|
257
258
|
Joi.object({
|
|
258
259
|
key: Joi.string().required(),
|
|
@@ -88,9 +88,8 @@ class SiteCollection extends BaseCollection {
|
|
|
88
88
|
throw new DataAccessError(`Invalid Helix preview URL: ${previewURL}`, this);
|
|
89
89
|
}
|
|
90
90
|
const [host] = hostname.split('.');
|
|
91
|
-
const [
|
|
92
|
-
|
|
93
|
-
return this.findByExternalOwnerIdAndExternalSiteId(externalOwnerId, site);
|
|
91
|
+
const [, site, owner] = host.split('--');
|
|
92
|
+
return this.findByExternalOwnerIdAndExternalSiteId(owner, site);
|
|
94
93
|
}
|
|
95
94
|
case Site.AUTHORING_TYPES.CS_CW:
|
|
96
95
|
case Site.AUTHORING_TYPES.CS: {
|
|
@@ -24,10 +24,10 @@ export const computeExternalIds = (attrs, authoringTypes) => {
|
|
|
24
24
|
|
|
25
25
|
if (hlxConfig && (authoringType === authoringTypes.DA)) {
|
|
26
26
|
const rso = hlxConfig.rso ?? {};
|
|
27
|
-
const {
|
|
27
|
+
const { owner, site } = rso;
|
|
28
28
|
|
|
29
29
|
return {
|
|
30
|
-
externalOwnerId:
|
|
30
|
+
externalOwnerId: owner || undefined,
|
|
31
31
|
externalSiteId: site || undefined,
|
|
32
32
|
};
|
|
33
33
|
}
|