@adobe/spacecat-shared-data-access 2.46.2 → 2.48.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.48.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.47.0...@adobe/spacecat-shared-data-access-v2.48.0) (2025-08-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * add import type llmo-prompts-ahref ([#902](https://github.com/adobe/spacecat-shared/issues/902)) ([64b7ba0](https://github.com/adobe/spacecat-shared/commit/64b7ba0bf622fe2eff021f2e3660d5f809a0c8b2))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Features
12
+
13
+ * make customerIntent config generic ([#896](https://github.com/adobe/spacecat-shared/issues/896)) ([d02a592](https://github.com/adobe/spacecat-shared/commit/d02a592fb556d282f652f8dc9c2603ae47a0e93c))
14
+
1
15
  # [@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)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.46.2",
3
+ "version": "2.48.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -14,6 +14,7 @@ import Joi from 'joi';
14
14
  import { getLogger } from '../../util/logger-registry.js';
15
15
 
16
16
  export const IMPORT_TYPES = {
17
+ LLMO_QUESTIONS_IMPORT_TYPE: 'llmo-prompts-ahref',
17
18
  ORGANIC_KEYWORDS: 'organic-keywords',
18
19
  ORGANIC_KEYWORDS_NONBRANDED: 'organic-keywords-nonbranded',
19
20
  ORGANIC_KEYWORDS_AI_OVERVIEW: 'organic-keywords-ai-overview',
@@ -73,6 +74,12 @@ const IMPORT_BASE_KEYS = {
73
74
  };
74
75
 
75
76
  export const IMPORT_TYPE_SCHEMAS = {
77
+ [IMPORT_TYPES.LLMO_QUESTIONS_IMPORT_TYPE]: Joi.object({
78
+ type: Joi.string().valid(IMPORT_TYPES.LLMO_QUESTIONS_IMPORT_TYPE).required(),
79
+ ...IMPORT_BASE_KEYS,
80
+ limit: Joi.number().integer().min(1).max(100)
81
+ .optional(),
82
+ }),
76
83
  [IMPORT_TYPES.ORGANIC_KEYWORDS]: Joi.object({
77
84
  type: Joi.string().valid(IMPORT_TYPES.ORGANIC_KEYWORDS).required(),
78
85
  ...IMPORT_BASE_KEYS,
@@ -248,11 +255,12 @@ export const configSchema = Joi.object({
248
255
  AI: Joi.array().items(QUESTION_SCHEMA).optional(),
249
256
  }).optional(),
250
257
  urlPatterns: LLMO_URL_PATTERNS_SCHEMA.optional(),
251
- customerIntent: Joi.object({
252
- adobeProduct: Joi.string().optional(),
253
- cdnProvider: Joi.array().items(Joi.string()).optional(),
254
- referralProvider: Joi.string().optional(),
255
- }).optional(),
258
+ customerIntent: Joi.array().items(
259
+ Joi.object({
260
+ key: Joi.string().required(),
261
+ value: Joi.string().required(),
262
+ }),
263
+ ).optional(),
256
264
  filterConfig: Joi.array().items(
257
265
  Joi.object({
258
266
  key: Joi.string().required(),