@adobe/spacecat-shared-data-access 2.60.1 → 2.61.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 +14 -0
- package/package.json +8 -8
- package/src/models/base/base.collection.js +2 -2
- package/src/models/site/config.js +11 -0
- package/src/util/util.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.61.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.61.0...@adobe/spacecat-shared-data-access-v2.61.1) (2025-09-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([#920](https://github.com/adobe/spacecat-shared/issues/920)) ([1a6b1e1](https://github.com/adobe/spacecat-shared/commit/1a6b1e1ac9531a41c86406ada4bd4ab903307fdc))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.61.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.60.1...@adobe/spacecat-shared-data-access-v2.61.0) (2025-09-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add bucket config inside llmo ([#944](https://github.com/adobe/spacecat-shared/issues/944)) ([0153f33](https://github.com/adobe/spacecat-shared/commit/0153f33615b3ccc51f6adee0475027ad93a41480))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.60.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.60.0...@adobe/spacecat-shared-data-access-v2.60.1) (2025-08-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/spacecat-shared-data-access",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.61.1",
|
|
4
4
|
"description": "Shared modules of the Spacecat Services - Data Access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@adobe/spacecat-shared-utils": "1.49.0",
|
|
39
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
40
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
39
|
+
"@aws-sdk/client-dynamodb": "3.883.0",
|
|
40
|
+
"@aws-sdk/lib-dynamodb": "3.883.0",
|
|
41
41
|
"@types/joi": "17.2.3",
|
|
42
42
|
"aws-xray-sdk": "3.10.3",
|
|
43
|
-
"electrodb": "3.4.
|
|
43
|
+
"electrodb": "3.4.4",
|
|
44
44
|
"joi": "17.13.3",
|
|
45
45
|
"pluralize": "8.0.0",
|
|
46
46
|
"uuid": "11.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"chai": "5.
|
|
50
|
-
"chai-as-promised": "8.0.
|
|
49
|
+
"chai": "5.3.3",
|
|
50
|
+
"chai-as-promised": "8.0.2",
|
|
51
51
|
"dynamo-db-local": "9.6.0",
|
|
52
|
-
"nock": "14.0.
|
|
52
|
+
"nock": "14.0.10",
|
|
53
53
|
"sinon": "20.0.0",
|
|
54
|
-
"sinon-chai": "4.0.
|
|
54
|
+
"sinon-chai": "4.0.1"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -183,7 +183,7 @@ class BaseCollection {
|
|
|
183
183
|
* @async
|
|
184
184
|
* @protected
|
|
185
185
|
*/
|
|
186
|
-
// eslint-disable-next-line class-methods-use-this
|
|
186
|
+
// eslint-disable-next-line class-methods-use-this,no-unused-vars
|
|
187
187
|
async _onCreate(item) {
|
|
188
188
|
// no-op
|
|
189
189
|
}
|
|
@@ -197,7 +197,7 @@ class BaseCollection {
|
|
|
197
197
|
* @async
|
|
198
198
|
* @protected
|
|
199
199
|
*/
|
|
200
|
-
// eslint-disable-next-line class-methods-use-this
|
|
200
|
+
// eslint-disable-next-line class-methods-use-this,no-unused-vars
|
|
201
201
|
async _onCreateMany({ createdItems, errorItems }) {
|
|
202
202
|
// no-op
|
|
203
203
|
}
|
|
@@ -276,6 +276,11 @@ export const configSchema = Joi.object({
|
|
|
276
276
|
type: Joi.string().valid('include', 'exclude').optional(),
|
|
277
277
|
}),
|
|
278
278
|
).optional(),
|
|
279
|
+
cdnBucketConfig: Joi.object({
|
|
280
|
+
bucketName: Joi.string().optional(),
|
|
281
|
+
orgId: Joi.string().optional(),
|
|
282
|
+
cdnProvider: Joi.string().optional(),
|
|
283
|
+
}).optional(),
|
|
279
284
|
}).optional(),
|
|
280
285
|
cdnLogsConfig: Joi.object({
|
|
281
286
|
bucketName: Joi.string().required(),
|
|
@@ -392,6 +397,7 @@ export const Config = (data = {}) => {
|
|
|
392
397
|
return llmoConfig?.customerIntent || [];
|
|
393
398
|
};
|
|
394
399
|
self.getLlmoCdnlogsFilter = () => state?.llmo?.cdnlogsFilter;
|
|
400
|
+
self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
|
|
395
401
|
|
|
396
402
|
self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
|
|
397
403
|
state.slack = {
|
|
@@ -538,6 +544,11 @@ export const Config = (data = {}) => {
|
|
|
538
544
|
state.llmo.cdnlogsFilter = cdnlogsFilter;
|
|
539
545
|
};
|
|
540
546
|
|
|
547
|
+
self.updateLlmoCdnBucketConfig = (cdnBucketConfig) => {
|
|
548
|
+
state.llmo = state.llmo || {};
|
|
549
|
+
state.llmo.cdnBucketConfig = cdnBucketConfig;
|
|
550
|
+
};
|
|
551
|
+
|
|
541
552
|
self.updateImports = (imports) => {
|
|
542
553
|
state.imports = imports;
|
|
543
554
|
};
|
package/src/util/util.js
CHANGED
|
@@ -73,14 +73,14 @@ const removeElectroProperties = (record) => { /* eslint-disable no-underscore-da
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const sanitizeTimestamps = (data) => {
|
|
76
|
-
// eslint-disable-next-line
|
|
76
|
+
// eslint-disable-next-line no-unused-vars
|
|
77
77
|
const { createdAt, updatedAt, ...rest } = data;
|
|
78
78
|
return rest;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const sanitizeIdAndAuditFields = (entityName, data) => {
|
|
82
82
|
const idName = entityNameToIdName(entityName);
|
|
83
|
-
// eslint-disable-next-line
|
|
83
|
+
// eslint-disable-next-line no-unused-vars
|
|
84
84
|
const { [idName]: _, ...rest } = data;
|
|
85
85
|
return sanitizeTimestamps(rest);
|
|
86
86
|
};
|