@adobe/spacecat-shared-data-access 1.45.4 → 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 +7 -0
- package/package.json +1 -1
- package/src/models/site/config.js +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
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)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -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
|
});
|