@adobe/spacecat-shared-data-access 1.45.3 → 1.45.5

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-v1.45.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.45.4...@adobe/spacecat-shared-data-access-v1.45.5) (2024-09-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * config and content client fixes ([9650742](https://github.com/adobe/spacecat-shared/commit/965074276cc93b8a6e9e382602670ae8a709d9bb))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v1.45.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.45.3...@adobe/spacecat-shared-data-access-v1.45.4) (2024-09-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#387](https://github.com/adobe/spacecat-shared/issues/387)) ([5f301fb](https://github.com/adobe/spacecat-shared/commit/5f301fb7bfee78ab57c966ebc3559bc148744933))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v1.45.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.45.2...@adobe/spacecat-shared-data-access-v1.45.3) (2024-09-26)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.45.3",
3
+ "version": "1.45.5",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,8 +35,8 @@
35
35
  "dependencies": {
36
36
  "@adobe/spacecat-shared-dynamo": "1.2.5",
37
37
  "@adobe/spacecat-shared-utils": "1.2.0",
38
- "@aws-sdk/client-dynamodb": "3.656.0",
39
- "@aws-sdk/lib-dynamodb": "3.656.0",
38
+ "@aws-sdk/client-dynamodb": "3.658.1",
39
+ "@aws-sdk/lib-dynamodb": "3.658.1",
40
40
  "@types/joi": "17.2.3",
41
41
  "joi": "17.13.3",
42
42
  "uuid": "10.0.0"
@@ -60,6 +60,7 @@ export const Config = (data = {}) => {
60
60
  self.getSlackMentions = (type) => state?.handlers[type]?.mentions?.slack;
61
61
  self.getHandlerConfig = (type) => state?.handlers[type];
62
62
  self.getHandlers = () => state.handlers;
63
+ self.getHlxContentConfig = () => state.content;
63
64
  self.getImports = () => state.imports;
64
65
  self.getExcludedURLs = (type) => state?.handlers[type]?.excludedURLs;
65
66
  self.getManualOverwrites = (type) => state?.handlers[type]?.manualOverwrites;
@@ -74,6 +75,17 @@ export const Config = (data = {}) => {
74
75
  };
75
76
  };
76
77
 
78
+ self.updateHlxContentConfig = (source, path) => {
79
+ state.content = {
80
+ source,
81
+ path,
82
+ };
83
+ };
84
+
85
+ self.updateImports = (imports) => {
86
+ state.imports = imports;
87
+ };
88
+
77
89
  self.updateSlackMentions = (type, mentions) => {
78
90
  state.handlers = state.handlers || {};
79
91
  state.handlers[type] = state.handlers[type] || {};
@@ -106,6 +118,7 @@ Config.fromDynamoItem = (dynamoItem) => Config(dynamoItem);
106
118
 
107
119
  Config.toDynamoItem = (config) => ({
108
120
  slack: config.getSlackConfig(),
121
+ content: config.getHlxContentConfig(),
109
122
  handlers: config.getHandlers(),
110
123
  imports: config.getImports(),
111
124
  });