@adobe/spacecat-shared-data-access 2.43.2 → 2.45.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.45.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.44.0...@adobe/spacecat-shared-data-access-v2.45.0) (2025-08-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * hreflang as an audit type ([#893](https://github.com/adobe/spacecat-shared/issues/893)) ([3fe4b8d](https://github.com/adobe/spacecat-shared/commit/3fe4b8d0be59bd5ca9e5492dfb6ced11a5652afd))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.44.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.43.2...@adobe/spacecat-shared-data-access-v2.44.0) (2025-08-06)
9
+
10
+
11
+ ### Features
12
+
13
+ * add customer intent, filter schema and tags for llmo subconfig (LLMO-198, LLMO-202) ([#890](https://github.com/adobe/spacecat-shared/issues/890)) ([e11af65](https://github.com/adobe/spacecat-shared/commit/e11af6525b5ada6966d4c0424cc394e95c49c7a8))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.43.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.43.1...@adobe/spacecat-shared-data-access-v2.43.2) (2025-08-04)
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.43.2",
3
+ "version": "2.45.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -50,6 +50,7 @@ class Audit extends BaseModel {
50
50
  ACCESSIBILITY: 'accessibility',
51
51
  SECURITY_CSP: 'security-csp',
52
52
  PAID: 'paid',
53
+ HREFLANG: 'hreflang',
53
54
  };
54
55
 
55
56
  static AUDIT_TYPE_PROPERTIES = {
@@ -13,7 +13,11 @@
13
13
  import BaseModel from '../base/base.model.js';
14
14
 
15
15
  class Report extends BaseModel {
16
-
16
+ static STATUSES = {
17
+ PROCESSING: 'processing',
18
+ SUCCESS: 'success',
19
+ FAILED: 'failed',
20
+ };
17
21
  }
18
22
 
19
23
  export default Report;
@@ -50,9 +50,9 @@ const schema = new SchemaBuilder(Report, ReportCollection)
50
50
  validate: (value) => !value || (isString(value) && value.length >= 0),
51
51
  })
52
52
  .addAttribute('status', {
53
- type: ['processing', 'success', 'failed'],
53
+ type: Object.values(Report.STATUSES),
54
54
  required: true,
55
- default: 'processing',
55
+ default: Report.STATUSES.PROCESSING,
56
56
  });
57
57
 
58
58
  export default schema.build();
@@ -248,6 +248,19 @@ 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.object({
252
+ adobeProduct: Joi.string().optional(),
253
+ cdnProvider: Joi.array().items(Joi.string()).optional(),
254
+ referralProvider: Joi.string().optional(),
255
+ }).optional(),
256
+ filterConfig: Joi.array().items(
257
+ Joi.object({
258
+ key: Joi.string().required(),
259
+ value: Joi.string().required(),
260
+ records: Joi.array().items(Joi.string()).optional(),
261
+ }),
262
+ ).optional(),
263
+ tags: Joi.array().items(Joi.string()).optional(),
251
264
  }).optional(),
252
265
  cdnLogsConfig: Joi.object({
253
266
  bucketName: Joi.string().required(),