@adobe/spacecat-shared-data-access 1.51.0 → 1.52.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [@adobe/spacecat-shared-data-access-v1.52.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.51.0...@adobe/spacecat-shared-data-access-v1.52.0) (2024-11-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * SITES-26835 [Import Assistant] Introduce imports.assistant api key scope ([#438](https://github.com/adobe/spacecat-shared/issues/438)) ([0cb0d35](https://github.com/adobe/spacecat-shared/commit/0cb0d357b11be588ab1bc00ed71745cc6052a321))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v1.51.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.50.1...@adobe/spacecat-shared-data-access-v1.51.0) (2024-11-12)
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.51.0",
3
+ "version": "1.52.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -28,6 +28,7 @@ const scopeNames = [
28
28
  'imports.delete',
29
29
  'imports.read_all',
30
30
  'imports.all_domains',
31
+ 'imports.assistant',
31
32
  ];
32
33
 
33
34
  const ApiKey = (data) => {
@@ -121,8 +122,8 @@ const ApiKey = (data) => {
121
122
  * @param {Object} apiKeyData - The data for the ApiKey object.
122
123
  * @returns {ApiKey} The new ApiKey object.
123
124
  */
124
- export const createApiKey = (data) => {
125
- const newState = { ...data };
125
+ export const createApiKey = (apiKeyData) => {
126
+ const newState = { ...apiKeyData };
126
127
 
127
128
  if (!hasText(newState.hashedApiKey)) {
128
129
  throw new Error(`Invalid Hashed API Key: ${newState.hashedApiKey}`);