@adobe/spacecat-shared-data-access 1.54.0 → 1.55.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 +7 -0
- package/package.json +1 -1
- package/src/models/configuration.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v1.55.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.54.0...@adobe/spacecat-shared-data-access-v1.55.0) (2024-11-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Adding getEnabledSiteIdsForHandler in Configuration ([#449](https://github.com/adobe/spacecat-shared/issues/449)) ([ba3f3aa](https://github.com/adobe/spacecat-shared/commit/ba3f3aa3578551c39fc1115956967b74e824b659))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v1.54.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.53.1...@adobe/spacecat-shared-data-access-v1.54.0) (2024-11-20)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -29,6 +29,10 @@ const Configuration = (data = {}) => {
|
|
|
29
29
|
const roles = self.getSlackRoles();
|
|
30
30
|
return roles ? roles[role] : [];
|
|
31
31
|
};
|
|
32
|
+
self.getEnabledSiteIdsForHandler = (type) => {
|
|
33
|
+
const handler = state.handlers?.[type];
|
|
34
|
+
return handler?.enabled?.sites || [];
|
|
35
|
+
};
|
|
32
36
|
self.isHandlerEnabledForSite = (type, site) => {
|
|
33
37
|
const handler = state.handlers[type];
|
|
34
38
|
if (!handler) return false;
|