@adobe/spacecat-shared-data-access 2.103.0 → 2.104.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.104.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.103.0...@adobe/spacecat-shared-data-access-v2.104.0) (2026-02-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Bot press hold detection addition + add abort info to scrapeJob schema ([#1308](https://github.com/adobe/spacecat-shared/issues/1308)) ([4f19f91](https://github.com/adobe/spacecat-shared/commit/4f19f9143435aa283d8b9e57c17dd79873168177))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.103.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.102.0...@adobe/spacecat-shared-data-access-v2.103.0) (2026-02-04)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ export interface ScrapeJob extends BaseModel {
|
|
|
23
23
|
getProcessingType(): string,
|
|
24
24
|
getRedirectCount(): number,
|
|
25
25
|
getResults(): string,
|
|
26
|
+
getAbortInfo(): object | null,
|
|
26
27
|
getScrapeQueueId(): string,
|
|
27
28
|
getScrapeUrls(): Promise<ScrapeUrl[]>,
|
|
28
29
|
getScrapeUrlsByStatus(status: string): Promise<ScrapeUrl[]>,
|
|
@@ -39,6 +40,7 @@ export interface ScrapeJob extends BaseModel {
|
|
|
39
40
|
setProcessingType(processingType: string): void,
|
|
40
41
|
setRedirectCount(redirectCount: number): void,
|
|
41
42
|
setResults(results: string): void,
|
|
43
|
+
setAbortInfo(abortInfo: object | null): void,
|
|
42
44
|
setScrapeQueueId(ScrapeQueueId: string): void,
|
|
43
45
|
setStatus(status: string): void,
|
|
44
46
|
setSuccessCount(successCount: number): void,
|
|
@@ -97,6 +97,37 @@ const schema = new SchemaBuilder(ScrapeJob, ScrapeJobCollection)
|
|
|
97
97
|
.addAttribute('results', {
|
|
98
98
|
type: 'any',
|
|
99
99
|
})
|
|
100
|
+
.addAttribute('abortInfo', {
|
|
101
|
+
type: 'map',
|
|
102
|
+
properties: {
|
|
103
|
+
reason: { type: 'string' },
|
|
104
|
+
details: {
|
|
105
|
+
type: 'map',
|
|
106
|
+
properties: {
|
|
107
|
+
blockedUrlsCount: { type: 'number' },
|
|
108
|
+
totalUrlsCount: { type: 'number' },
|
|
109
|
+
blockedUrls: {
|
|
110
|
+
type: 'list',
|
|
111
|
+
items: {
|
|
112
|
+
type: 'map',
|
|
113
|
+
properties: {
|
|
114
|
+
url: { type: 'string' },
|
|
115
|
+
blockerType: { type: 'string' },
|
|
116
|
+
httpStatus: { type: 'number' },
|
|
117
|
+
confidence: { type: 'number' },
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
blockedUrlsSampled: { type: 'boolean' }, // Flag indicating URL truncation (400KB optimization)
|
|
122
|
+
byBlockerType: { type: 'any' }, // dynamic keys unavoidable
|
|
123
|
+
byHttpStatus: { type: 'any' }, // dynamic keys unavoidable
|
|
124
|
+
auditType: { type: 'string' },
|
|
125
|
+
siteId: { type: 'string' },
|
|
126
|
+
siteUrl: { type: 'string' },
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
})
|
|
100
131
|
.addAttribute('optEnableJavascript', {
|
|
101
132
|
type: 'string',
|
|
102
133
|
hidden: true,
|