@adobe/spacecat-shared-data-access 2.72.0 → 2.72.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,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.72.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.72.0...@adobe/spacecat-shared-data-access-v2.72.1) (2025-10-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* SITES-35629 adds origin attribute in fix entities ([#991](https://github.com/adobe/spacecat-shared/issues/991)) ([2551444](https://github.com/adobe/spacecat-shared/commit/255144441b246e22f9e84c6b1197ac6da726a742))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.72.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.71.1...@adobe/spacecat-shared-data-access-v2.72.0) (2025-10-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -29,6 +29,11 @@ class FixEntity extends BaseModel {
|
|
|
29
29
|
ROLLED_BACK: 'ROLLED_BACK', // the fix has been rolled_back
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
static ORIGINS = {
|
|
33
|
+
SPACECAT: 'spacecat',
|
|
34
|
+
ASO: 'aso',
|
|
35
|
+
};
|
|
36
|
+
|
|
32
37
|
async getSuggestions() {
|
|
33
38
|
const fixEntityCollection = this.entityRegistry.getCollection('FixEntityCollection');
|
|
34
39
|
return fixEntityCollection
|
|
@@ -51,6 +51,10 @@ const schema = new SchemaBuilder(FixEntity, FixEntityCollection)
|
|
|
51
51
|
type: Object.values(FixEntity.STATUSES),
|
|
52
52
|
required: true,
|
|
53
53
|
default: FixEntity.STATUSES.PENDING,
|
|
54
|
+
})
|
|
55
|
+
.addAttribute('origin', {
|
|
56
|
+
type: Object.values(FixEntity.ORIGINS),
|
|
57
|
+
default: FixEntity.ORIGINS.SPACECAT,
|
|
54
58
|
});
|
|
55
59
|
|
|
56
60
|
export default schema.build();
|
|
@@ -24,6 +24,8 @@ export interface FixEntity extends BaseModel {
|
|
|
24
24
|
getOpportunity(): Promise<Opportunity>;
|
|
25
25
|
getOpportunityId(): string;
|
|
26
26
|
setOpportunityId(value: string): this;
|
|
27
|
+
getOrigin(): string;
|
|
28
|
+
setOrigin(value: string): this;
|
|
27
29
|
getPublishedAt(): string;
|
|
28
30
|
setPublishedAt(value: string): this;
|
|
29
31
|
getStatus(): string;
|