@adobe/spacecat-shared-data-access 1.43.0 → 1.43.1

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,10 @@
1
+ # [@adobe/spacecat-shared-data-access-v1.43.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.43.0...@adobe/spacecat-shared-data-access-v1.43.1) (2024-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add Scoped API Key docs ([#342](https://github.com/adobe/spacecat-shared/issues/342)) ([2fbf707](https://github.com/adobe/spacecat-shared/commit/2fbf707dfeff914dc47ae1f9860629873927e03e))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v1.43.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.42.0...@adobe/spacecat-shared-data-access-v1.43.0) (2024-08-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -15,8 +15,18 @@ import {
15
15
  } from '@adobe/spacecat-shared-utils';
16
16
  import { Base } from './base.js';
17
17
 
18
- const scopeNames = ['sites.read_all', 'sites.write_all', 'organizations.read_all', 'organizations.write_all',
19
- 'audits.read_all', 'audits.write_all', 'imports.read', 'imports.write', 'imports.read_all'];
18
+ // List of known scope names that can be used with scoped API keys
19
+ const scopeNames = [
20
+ 'sites.read_all',
21
+ 'sites.write_all',
22
+ 'organizations.read_all',
23
+ 'organizations.write_all',
24
+ 'audits.read_all',
25
+ 'audits.write_all',
26
+ 'imports.read',
27
+ 'imports.write',
28
+ 'imports.read_all',
29
+ ];
20
30
 
21
31
  const ApiKey = (data) => {
22
32
  const self = Base(data);