@adobe/spacecat-shared-data-access 1.61.9 → 1.61.11

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.61.11](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.61.10...@adobe/spacecat-shared-data-access-v1.61.11) (2024-12-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * org config access ([#518](https://github.com/adobe/spacecat-shared/issues/518)) ([8ef162d](https://github.com/adobe/spacecat-shared/commit/8ef162d85a2086d9029010b4e93b20404d39c38c))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v1.61.10](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.61.9...@adobe/spacecat-shared-data-access-v1.61.10) (2024-12-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * get org config ([#517](https://github.com/adobe/spacecat-shared/issues/517)) ([2878f31](https://github.com/adobe/spacecat-shared/commit/2878f31ad502272c645d634fe0796e43ee001cde))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v1.61.9](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.61.8...@adobe/spacecat-shared-data-access-v1.61.9) (2024-12-31)
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.61.9",
3
+ "version": "1.61.11",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,7 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { Config } from '../../../models/site/config.js';
14
13
  import BaseModel from '../base/base.model.js';
15
14
 
16
15
  /**
@@ -23,9 +22,6 @@ import BaseModel from '../base/base.model.js';
23
22
  class Organization extends BaseModel {
24
23
  // add your custom methods or overrides here
25
24
 
26
- getConfig() {
27
- return Config(this.record.config);
28
- }
29
25
  }
30
26
 
31
27
  export default Organization;
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { isNonEmptyObject } from '@adobe/spacecat-shared-utils';
16
16
 
17
- import { DEFAULT_CONFIG, validateConfiguration } from '../../../models/site/config.js';
17
+ import { Config, DEFAULT_CONFIG, validateConfiguration } from '../../../models/site/config.js';
18
18
  import SchemaBuilder from '../base/schema.builder.js';
19
19
  import Organization from './organization.model.js';
20
20
  import OrganizationCollection from './organization.collection.js';
@@ -33,6 +33,7 @@ const schema = new SchemaBuilder(Organization, OrganizationCollection)
33
33
  required: true,
34
34
  default: DEFAULT_CONFIG,
35
35
  validate: (value) => isNonEmptyObject(validateConfiguration(value)),
36
+ get: (value) => Config(value),
36
37
  })
37
38
  .addAttribute('name', {
38
39
  type: 'string',