@adobe/spacecat-shared-data-access 2.17.3 → 2.18.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 +14 -0
- package/package.json +1 -1
- package/src/models/audit/audit.model.js +2 -2
- package/src/models/fix-entity/index.d.ts +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.18.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.17.4...@adobe/spacecat-shared-data-access-v2.18.0) (2025-05-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* content scraper audit step will honour the allowCache value fro… ([#725](https://github.com/adobe/spacecat-shared/issues/725)) ([89bfe23](https://github.com/adobe/spacecat-shared/commit/89bfe231b368aaf65eba1777c3799e5cd42fe8f6))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.17.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.17.3...@adobe/spacecat-shared-data-access-v2.17.4) (2025-05-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Update type definitions for FixEntity ([#731](https://github.com/adobe/spacecat-shared/issues/731)) ([cb0bee7](https://github.com/adobe/spacecat-shared/commit/cb0bee72e6d6e7d6cddaefc55f3e20230884b8ec))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.17.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.17.2...@adobe/spacecat-shared-data-access-v2.17.3) (2025-05-10)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { isArray, isObject } from '@adobe/spacecat-shared-utils';
|
|
13
|
+
import { isArray, isObject, isBoolean } from '@adobe/spacecat-shared-utils';
|
|
14
14
|
|
|
15
15
|
import { ValidationError } from '../../errors/index.js';
|
|
16
16
|
import BaseModel from '../base/base.model.js';
|
|
@@ -131,7 +131,7 @@ class Audit extends BaseModel {
|
|
|
131
131
|
jobId: stepResult.siteId,
|
|
132
132
|
processingType: stepResult.processingType || 'default',
|
|
133
133
|
skipMessage: false,
|
|
134
|
-
allowCache: true,
|
|
134
|
+
allowCache: isBoolean(stepResult.allowCache) ? stepResult.allowCache : true,
|
|
135
135
|
completionQueueUrl: stepResult.completionQueueUrl || context.env?.AUDIT_JOBS_QUEUE_URL,
|
|
136
136
|
auditContext,
|
|
137
137
|
}),
|
|
@@ -11,25 +11,26 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type {
|
|
14
|
-
BaseCollection,
|
|
15
|
-
BaseModel, MultiStatusCreateResult, Opportunity, Suggestion,
|
|
14
|
+
BaseCollection, BaseModel, Opportunity, Suggestion,
|
|
16
15
|
} from '../index';
|
|
17
16
|
|
|
18
17
|
export interface FixEntity extends BaseModel {
|
|
19
18
|
getChangeDetails(): object;
|
|
20
|
-
|
|
19
|
+
setChangeDetails(value: object): this;
|
|
21
20
|
getExecutedAt(): string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
getOpportunityId(): string;
|
|
21
|
+
setExecutedAt(value: string): this;
|
|
22
|
+
getExecutedBy(): string;
|
|
23
|
+
setExecutedBy(value: string): this;
|
|
26
24
|
getOpportunity(): Promise<Opportunity>;
|
|
25
|
+
getOpportunityId(): string;
|
|
26
|
+
setOpportunityId(value: string): this;
|
|
27
|
+
getPublishedAt(): string;
|
|
28
|
+
setPublishedAt(value: string): this;
|
|
27
29
|
getStatus(): string;
|
|
30
|
+
setStatus(value: string): this;
|
|
31
|
+
getSuggestions(): Promise<Suggestion[]>;
|
|
32
|
+
getSuggestionsByUpdatedAt(updatedAt: string): Promise<Suggestion[]>;
|
|
28
33
|
getType(): string;
|
|
29
|
-
setChangeDetails(changeDetails: object): FixEntity;
|
|
30
|
-
setType(rank: number): FixEntity;
|
|
31
|
-
setStatus(status: string): FixEntity;
|
|
32
|
-
setExecutedBy(executedBy: string): FixEntity;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export interface FixEntityCollection extends BaseCollection<FixEntity> {
|