@adobe/spacecat-shared-data-access 3.27.0 → 3.28.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.28.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.27.1...@adobe/spacecat-shared-data-access-v3.28.0) (2026-03-23)
2
+
3
+ ### Features
4
+
5
+ * add commerceLlmoConfig to site configuration schema ([#1459](https://github.com/adobe/spacecat-shared/issues/1459)) ([8dd4bbf](https://github.com/adobe/spacecat-shared/commit/8dd4bbfda08343b37852d627c8528016358115c9))
6
+
7
+ ## [@adobe/spacecat-shared-data-access-v3.27.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.27.0...@adobe/spacecat-shared-data-access-v3.27.1) (2026-03-21)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update external fixes ([#1456](https://github.com/adobe/spacecat-shared/issues/1456)) ([b4654ec](https://github.com/adobe/spacecat-shared/commit/b4654ec88780f540f608fd8588182da805f2e6e2))
12
+
1
13
  ## [@adobe/spacecat-shared-data-access-v3.27.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.26.0...@adobe/spacecat-shared-data-access-v3.27.0) (2026-03-20)
2
14
 
3
15
  ### Features
@@ -22,7 +22,7 @@ services:
22
22
  retries: 10
23
23
 
24
24
  postgrest:
25
- image: postgrest/postgrest:v14.6
25
+ image: postgrest/postgrest:v14.7
26
26
  container_name: spacecat-test-postgrest
27
27
  depends_on:
28
28
  db:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "3.27.0",
3
+ "version": "3.28.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@adobe/fetch": "^4.2.3",
44
44
  "@adobe/spacecat-shared-utils": "1.105.0",
45
- "@supabase/postgrest-js": "2.99.1",
45
+ "@supabase/postgrest-js": "2.99.3",
46
46
  "@aws-sdk/client-s3": "^3.940.0",
47
47
  "@types/joi": "17.2.3",
48
48
  "aws-xray-sdk": "3.12.0",
@@ -53,7 +53,7 @@
53
53
  "chai": "6.2.2",
54
54
  "chai-as-promised": "8.0.2",
55
55
  "nock": "14.0.11",
56
- "sinon": "21.0.2",
56
+ "sinon": "21.0.3",
57
57
  "sinon-chai": "4.0.1"
58
58
  }
59
59
  }
@@ -383,6 +383,18 @@ export const configSchema = Joi.object({
383
383
  }),
384
384
  ).optional(),
385
385
  }).optional(),
386
+ commerceLlmoConfig: Joi.object().pattern(
387
+ Joi.string(),
388
+ Joi.object({
389
+ environmentId: Joi.string().optional(),
390
+ websiteCode: Joi.string().optional(),
391
+ storeCode: Joi.string().optional(),
392
+ storeViewCode: Joi.string().optional(),
393
+ hostName: Joi.string().optional(),
394
+ magentoEndpoint: Joi.string().uri().optional(),
395
+ magentoAPIKey: Joi.string().optional(),
396
+ }),
397
+ ).optional(),
386
398
  contentAiConfig: Joi.object({
387
399
  index: Joi.string().optional(),
388
400
  }).optional(),
@@ -494,6 +506,7 @@ export const Config = (data = {}) => {
494
506
  self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
495
507
  self.getTokowakaConfig = () => state?.tokowakaConfig;
496
508
  self.getEdgeOptimizeConfig = () => state?.edgeOptimizeConfig;
509
+ self.getCommerceLlmoConfig = () => state?.commerceLlmoConfig;
497
510
  self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
498
511
  state.slack = {
499
512
  channel,
@@ -814,6 +827,10 @@ export const Config = (data = {}) => {
814
827
  state.edgeOptimizeConfig = edgeOptimizeConfig;
815
828
  };
816
829
 
830
+ self.updateCommerceLlmoConfig = (commerceLlmoConfig) => {
831
+ state.commerceLlmoConfig = commerceLlmoConfig;
832
+ };
833
+
817
834
  return Object.freeze(self);
818
835
  };
819
836
 
@@ -831,4 +848,5 @@ Config.toDynamoItem = (config) => ({
831
848
  llmo: config.getLlmoConfig(),
832
849
  tokowakaConfig: config.getTokowakaConfig(),
833
850
  edgeOptimizeConfig: config.getEdgeOptimizeConfig(),
851
+ commerceLlmoConfig: config.getCommerceLlmoConfig(),
834
852
  });