@adobe/spacecat-shared-data-access 2.21.0 → 2.22.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 +15 -0
- package/package.json +2 -2
- package/src/models/site/config.js +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.22.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.22.0...@adobe/spacecat-shared-data-access-v2.22.1) (2025-05-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* amend DEFAULT_IMPORT_CONFIGS ([#771](https://github.com/adobe/spacecat-shared/issues/771)) ([5d2b8c3](https://github.com/adobe/spacecat-shared/commit/5d2b8c304df72cc546cd9fc40e16123b0792c0cc))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.22.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.21.0...@adobe/spacecat-shared-data-access-v2.22.0) (2025-05-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add `organic-keywords-nonbranded` import type to site config ([#766](https://github.com/adobe/spacecat-shared/issues/766)) ([a3be1ec](https://github.com/adobe/spacecat-shared/commit/a3be1ec3a31dd0361fb475da329cb1655a875ebd))
|
|
14
|
+
* add 405 response util ([#768](https://github.com/adobe/spacecat-shared/issues/768)) ([300ceb2](https://github.com/adobe/spacecat-shared/commit/300ceb2c979b304849a30f0e227823308d144c40))
|
|
15
|
+
|
|
1
16
|
# [@adobe/spacecat-shared-data-access-v2.21.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.20.1...@adobe/spacecat-shared-data-access-v2.21.0) (2025-05-26)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@adobe/spacecat-shared-utils": "1.38.
|
|
38
|
+
"@adobe/spacecat-shared-utils": "1.38.4",
|
|
39
39
|
"@aws-sdk/client-dynamodb": "3.817.0",
|
|
40
40
|
"@aws-sdk/lib-dynamodb": "3.817.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
@@ -14,6 +14,7 @@ import Joi from 'joi';
|
|
|
14
14
|
|
|
15
15
|
export const IMPORT_TYPES = {
|
|
16
16
|
ORGANIC_KEYWORDS: 'organic-keywords',
|
|
17
|
+
ORGANIC_KEYWORDS_NONBRANDED: 'organic-keywords-nonbranded',
|
|
17
18
|
ORGANIC_TRAFFIC: 'organic-traffic',
|
|
18
19
|
TOP_PAGES: 'top-pages',
|
|
19
20
|
ALL_TRAFFIC: 'all-traffic',
|
|
@@ -48,6 +49,14 @@ export const IMPORT_TYPE_SCHEMAS = {
|
|
|
48
49
|
.optional(),
|
|
49
50
|
pageUrl: Joi.string().uri().optional(),
|
|
50
51
|
}),
|
|
52
|
+
[IMPORT_TYPES.ORGANIC_KEYWORDS_NONBRANDED]: Joi.object({
|
|
53
|
+
type: Joi.string().valid(IMPORT_TYPES.ORGANIC_KEYWORDS_NONBRANDED).required(),
|
|
54
|
+
...IMPORT_BASE_KEYS,
|
|
55
|
+
geo: Joi.string().optional(),
|
|
56
|
+
limit: Joi.number().integer().min(1).max(100)
|
|
57
|
+
.optional(),
|
|
58
|
+
pageUrl: Joi.string().uri().optional(),
|
|
59
|
+
}),
|
|
51
60
|
[IMPORT_TYPES.ORGANIC_TRAFFIC]: Joi.object({
|
|
52
61
|
type: Joi.string().valid(IMPORT_TYPES.ORGANIC_TRAFFIC).required(),
|
|
53
62
|
...IMPORT_BASE_KEYS,
|
|
@@ -80,6 +89,12 @@ export const DEFAULT_IMPORT_CONFIGS = {
|
|
|
80
89
|
sources: ['ahrefs'],
|
|
81
90
|
enabled: true,
|
|
82
91
|
},
|
|
92
|
+
'organic-keywords-nonbranded': {
|
|
93
|
+
type: 'organic-keywords-nonbranded',
|
|
94
|
+
destinations: ['default'],
|
|
95
|
+
sources: ['ahrefs'],
|
|
96
|
+
enabled: true,
|
|
97
|
+
},
|
|
83
98
|
'organic-traffic': {
|
|
84
99
|
type: 'organic-traffic',
|
|
85
100
|
destinations: ['default'],
|