@adobe/spacecat-shared-data-access 2.75.0 → 2.76.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,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.76.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.76.0...@adobe/spacecat-shared-data-access-v2.76.1) (2025-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **data-access:** include invocationId in audit schema ([#1075](https://github.com/adobe/spacecat-shared/issues/1075)) ([a7aecb2](https://github.com/adobe/spacecat-shared/commit/a7aecb211482e379ec77c20efbe672988071c660))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.76.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.75.0...@adobe/spacecat-shared-data-access-v2.76.0) (2025-10-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add tokowaka client ([#1025](https://github.com/adobe/spacecat-shared/issues/1025)) ([7af58b0](https://github.com/adobe/spacecat-shared/commit/7af58b03ef341c32b35a6614365024af6a636a56))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.75.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.74.2...@adobe/spacecat-shared-data-access-v2.75.0) (2025-10-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ export interface Audit extends BaseModel {
|
|
|
20
20
|
getAuditResult(): object | [];
|
|
21
21
|
getAuditType(): string;
|
|
22
22
|
getFullAuditRef(): string;
|
|
23
|
+
getInvocationId(): string;
|
|
23
24
|
getIsError(): boolean;
|
|
24
25
|
getIsLive(): boolean;
|
|
25
26
|
getLatestAudit(): Promise<LatestAudit | null>;
|
|
@@ -21,6 +21,7 @@ export interface LatestAudit extends BaseModel {
|
|
|
21
21
|
getAuditResult(): object | [];
|
|
22
22
|
getAuditType(): string;
|
|
23
23
|
getFullAuditRef(): string;
|
|
24
|
+
getInvocationId(): string;
|
|
24
25
|
getIsError(): boolean;
|
|
25
26
|
getIsLive(): boolean;
|
|
26
27
|
getOpportunities(): Promise<Opportunity[]>;
|
|
@@ -63,6 +63,10 @@ const schema = new SchemaBuilder(LatestAudit, LatestAuditCollection)
|
|
|
63
63
|
required: true,
|
|
64
64
|
default: false,
|
|
65
65
|
})
|
|
66
|
+
.addAttribute('invocationId', {
|
|
67
|
+
type: 'string',
|
|
68
|
+
required: false,
|
|
69
|
+
})
|
|
66
70
|
.addAttribute('auditedAt', {
|
|
67
71
|
type: 'string',
|
|
68
72
|
required: true,
|
|
@@ -305,6 +305,9 @@ export const configSchema = Joi.object({
|
|
|
305
305
|
).optional(),
|
|
306
306
|
outputLocation: Joi.string().required(),
|
|
307
307
|
}).optional(),
|
|
308
|
+
tokowakaConfig: Joi.object({
|
|
309
|
+
apiKey: Joi.string().required(),
|
|
310
|
+
}).optional(),
|
|
308
311
|
contentAiConfig: Joi.object({
|
|
309
312
|
index: Joi.string().optional(),
|
|
310
313
|
}).optional(),
|
|
@@ -410,6 +413,7 @@ export const Config = (data = {}) => {
|
|
|
410
413
|
};
|
|
411
414
|
self.getLlmoCdnlogsFilter = () => state?.llmo?.cdnlogsFilter;
|
|
412
415
|
self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
|
|
416
|
+
self.getTokowakaConfig = () => state?.tokowakaConfig;
|
|
413
417
|
|
|
414
418
|
self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
|
|
415
419
|
state.slack = {
|
|
@@ -657,6 +661,10 @@ export const Config = (data = {}) => {
|
|
|
657
661
|
state.cdnLogsConfig = cdnLogsConfig;
|
|
658
662
|
};
|
|
659
663
|
|
|
664
|
+
self.updateTokowakaConfig = (tokowakaConfig) => {
|
|
665
|
+
state.tokowakaConfig = tokowakaConfig;
|
|
666
|
+
};
|
|
667
|
+
|
|
660
668
|
return Object.freeze(self);
|
|
661
669
|
};
|
|
662
670
|
|
|
@@ -671,4 +679,5 @@ Config.toDynamoItem = (config) => ({
|
|
|
671
679
|
brandConfig: config.getBrandConfig(),
|
|
672
680
|
cdnLogsConfig: config.getCdnLogsConfig(),
|
|
673
681
|
llmo: config.getLlmoConfig(),
|
|
682
|
+
tokowakaConfig: config.getTokowakaConfig(),
|
|
674
683
|
});
|