@dealcrawl/sdk 2.12.0 → 2.13.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/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/package.json +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -19,7 +19,20 @@ interface ResponseMeta {
|
|
|
19
19
|
timestamp: string;
|
|
20
20
|
duration?: number;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Job status for API responses.
|
|
24
|
+
* Maps to BullMQ native states returned by job.getState().
|
|
25
|
+
*
|
|
26
|
+
* Status meanings:
|
|
27
|
+
* - `waiting`: Job in queue, waiting for a worker to pick it up
|
|
28
|
+
* - `active`: Job is currently being processed by a worker
|
|
29
|
+
* - `completed`: Job finished successfully
|
|
30
|
+
* - `failed`: Job failed (may have been retried)
|
|
31
|
+
* - `delayed`: Job scheduled for future execution
|
|
32
|
+
* - `paused`: Queue is paused (job will resume when queue unpauses)
|
|
33
|
+
* - `expired`: Job data has been cleaned up by retention policy
|
|
34
|
+
*/
|
|
35
|
+
type JobStatus$1 = "waiting" | "active" | "completed" | "failed" | "delayed" | "paused" | "expired";
|
|
23
36
|
interface PaginatedResponse<T> {
|
|
24
37
|
data: T[];
|
|
25
38
|
pagination: {
|
|
@@ -153,7 +166,7 @@ interface AIExtraction {
|
|
|
153
166
|
raw?: Record<string, unknown>;
|
|
154
167
|
}
|
|
155
168
|
interface Entity {
|
|
156
|
-
type: "person" | "organization" | "location" | "product" | "other";
|
|
169
|
+
type: "person" | "organization" | "location" | "product" | "brand" | "other";
|
|
157
170
|
value: string;
|
|
158
171
|
confidence: number;
|
|
159
172
|
}
|
|
@@ -4614,7 +4627,7 @@ declare function getErrorMessage(code: ErrorCode): string;
|
|
|
4614
4627
|
/**
|
|
4615
4628
|
* Primary job status - represents the main lifecycle stage
|
|
4616
4629
|
*/
|
|
4617
|
-
type JobStatus = "queued" | "scheduled" | "priority_queued" | "initializing" | "active" | "processing" | "extracting" | "uploading" | "finalizing" | "retrying" | "backing_off" | "paused" | "pausing" | "resuming" | "completed" | "partial" | "failed" | "timeout" | "cancelled" | "rejected" | "stale" | "zombie" | "stuck";
|
|
4630
|
+
type JobStatus = "queued" | "scheduled" | "priority_queued" | "initializing" | "active" | "processing" | "extracting" | "uploading" | "finalizing" | "retrying" | "backing_off" | "paused" | "pausing" | "resuming" | "completed" | "partial" | "failed" | "timeout" | "cancelled" | "rejected" | "stale" | "zombie" | "stuck" | "expiring" | "expired";
|
|
4618
4631
|
/**
|
|
4619
4632
|
* Sub-status provides granular detail within a primary status
|
|
4620
4633
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,20 @@ interface ResponseMeta {
|
|
|
19
19
|
timestamp: string;
|
|
20
20
|
duration?: number;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Job status for API responses.
|
|
24
|
+
* Maps to BullMQ native states returned by job.getState().
|
|
25
|
+
*
|
|
26
|
+
* Status meanings:
|
|
27
|
+
* - `waiting`: Job in queue, waiting for a worker to pick it up
|
|
28
|
+
* - `active`: Job is currently being processed by a worker
|
|
29
|
+
* - `completed`: Job finished successfully
|
|
30
|
+
* - `failed`: Job failed (may have been retried)
|
|
31
|
+
* - `delayed`: Job scheduled for future execution
|
|
32
|
+
* - `paused`: Queue is paused (job will resume when queue unpauses)
|
|
33
|
+
* - `expired`: Job data has been cleaned up by retention policy
|
|
34
|
+
*/
|
|
35
|
+
type JobStatus$1 = "waiting" | "active" | "completed" | "failed" | "delayed" | "paused" | "expired";
|
|
23
36
|
interface PaginatedResponse<T> {
|
|
24
37
|
data: T[];
|
|
25
38
|
pagination: {
|
|
@@ -153,7 +166,7 @@ interface AIExtraction {
|
|
|
153
166
|
raw?: Record<string, unknown>;
|
|
154
167
|
}
|
|
155
168
|
interface Entity {
|
|
156
|
-
type: "person" | "organization" | "location" | "product" | "other";
|
|
169
|
+
type: "person" | "organization" | "location" | "product" | "brand" | "other";
|
|
157
170
|
value: string;
|
|
158
171
|
confidence: number;
|
|
159
172
|
}
|
|
@@ -4614,7 +4627,7 @@ declare function getErrorMessage(code: ErrorCode): string;
|
|
|
4614
4627
|
/**
|
|
4615
4628
|
* Primary job status - represents the main lifecycle stage
|
|
4616
4629
|
*/
|
|
4617
|
-
type JobStatus = "queued" | "scheduled" | "priority_queued" | "initializing" | "active" | "processing" | "extracting" | "uploading" | "finalizing" | "retrying" | "backing_off" | "paused" | "pausing" | "resuming" | "completed" | "partial" | "failed" | "timeout" | "cancelled" | "rejected" | "stale" | "zombie" | "stuck";
|
|
4630
|
+
type JobStatus = "queued" | "scheduled" | "priority_queued" | "initializing" | "active" | "processing" | "extracting" | "uploading" | "finalizing" | "retrying" | "backing_off" | "paused" | "pausing" | "resuming" | "completed" | "partial" | "failed" | "timeout" | "cancelled" | "rejected" | "stale" | "zombie" | "stuck" | "expiring" | "expired";
|
|
4618
4631
|
/**
|
|
4619
4632
|
* Sub-status provides granular detail within a primary status
|
|
4620
4633
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dealcrawl/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
5
9
|
"description": "Official SDK for DealCrawl web scraping, crawling and AI agent API",
|
|
6
10
|
"author": "DealUp <contact@dealup.cc>",
|
|
7
11
|
"license": "MIT",
|