newscatcher-catchall-sdk 0.3.1 → 1.1.2
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/README.md +284 -286
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +32 -8
- package/dist/cjs/api/resources/jobs/client/Client.js +93 -20
- package/dist/cjs/api/resources/jobs/client/requests/ContinueRequestDto.d.ts +3 -3
- package/dist/cjs/api/resources/jobs/client/requests/GetJobResultsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/jobs/client/requests/GetJobStatusRequest.d.ts +2 -2
- package/dist/cjs/api/resources/jobs/client/requests/GetUserJobsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/jobs/client/requests/InitializeRequestDto.d.ts +12 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +17 -6
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/jobs/exports.d.ts +2 -0
- package/dist/cjs/api/resources/jobs/exports.js +21 -0
- package/dist/cjs/api/resources/meta/exports.d.ts +2 -0
- package/dist/cjs/api/resources/meta/exports.js +21 -0
- package/dist/cjs/api/resources/meta/types/GetVersionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/meta/types/HealthCheckResponse.d.ts +1 -1
- package/dist/cjs/api/resources/monitors/client/Client.d.ts +23 -33
- package/dist/cjs/api/resources/monitors/client/Client.js +35 -37
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +26 -5
- package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequestDto.d.ts +17 -0
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.js +3 -0
- package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.ts +2 -0
- package/dist/cjs/api/resources/monitors/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/monitors/exports.d.ts +2 -0
- package/dist/cjs/api/resources/monitors/exports.js +21 -0
- package/dist/cjs/api/types/BaseRecord.d.ts +38 -0
- package/dist/cjs/api/types/BaseRecord.js +16 -0
- package/dist/cjs/api/types/Citation.d.ts +3 -3
- package/dist/cjs/api/types/CompanyEnrichmentOutput.d.ts +29 -0
- package/dist/cjs/api/types/CompanyEnrichmentOutput.js +16 -0
- package/dist/cjs/api/types/ContinueResponseDto.d.ts +2 -2
- package/dist/cjs/api/types/CreateMonitorResponseDto.d.ts +1 -1
- package/dist/cjs/api/types/EndDate.d.ts +8 -0
- package/dist/cjs/api/types/EndDate.js +3 -0
- package/dist/cjs/api/types/EnrichmentSchema.d.ts +13 -0
- package/dist/cjs/api/types/EnrichmentSchema.js +3 -0
- package/dist/cjs/api/types/EnrichmentType.d.ts +19 -0
- package/dist/cjs/api/types/EnrichmentType.js +22 -0
- package/dist/cjs/api/types/Error_.d.ts +1 -1
- package/dist/cjs/api/types/InitializeResponseDto.d.ts +19 -0
- package/dist/cjs/api/types/InitializeResponseDto.js +3 -0
- package/dist/cjs/api/types/JobStep.d.ts +2 -2
- package/dist/cjs/api/types/Limit.d.ts +6 -0
- package/dist/cjs/api/types/Limit.js +3 -0
- package/dist/cjs/api/types/ListMonitorsResponseDto.d.ts +7 -1
- package/dist/cjs/api/types/ListUserJobsResponseDto.d.ts +11 -8
- package/dist/cjs/api/types/MonitorCitation.d.ts +3 -8
- package/dist/cjs/api/types/MonitorListItemDto.d.ts +7 -7
- package/dist/cjs/api/types/MonitorRecord.d.ts +4 -14
- package/dist/{esm/api/types/JobStatus.d.mts → cjs/api/types/PublicJobStatus.d.ts} +4 -4
- package/dist/cjs/api/types/{JobStatus.js → PublicJobStatus.js} +4 -4
- package/dist/cjs/api/types/PullJobResponseDto.d.ts +28 -23
- package/dist/cjs/api/types/PullMonitorResponseDto.d.ts +12 -12
- package/dist/cjs/api/types/Query.d.ts +1 -1
- package/dist/cjs/api/types/Record_.d.ts +2 -12
- package/dist/cjs/api/types/ReferenceJob.d.ts +3 -3
- package/dist/cjs/api/types/StartDate.d.ts +8 -0
- package/dist/cjs/api/types/StartDate.js +3 -0
- package/dist/cjs/api/types/StatusResponseDto.d.ts +2 -2
- package/dist/cjs/api/types/{SubmitResponseBody.d.ts → SubmitResponseDto.d.ts} +1 -1
- package/dist/cjs/api/types/SubmitResponseDto.js +3 -0
- package/dist/cjs/api/types/UserJob.d.ts +10 -0
- package/dist/cjs/api/types/UserJob.js +3 -0
- package/dist/cjs/api/types/ValidationErrorDetail.d.ts +3 -3
- package/dist/cjs/api/types/ValidationErrorResponse.d.ts +1 -1
- package/dist/cjs/api/types/ValidatorSchema.d.ts +13 -0
- package/dist/cjs/api/types/ValidatorSchema.js +3 -0
- package/dist/cjs/api/types/WebhookDto.d.ts +4 -4
- package/dist/cjs/api/types/WebhookPayload.d.ts +9 -9
- package/dist/cjs/api/types/index.d.ts +12 -3
- package/dist/cjs/api/types/index.js +12 -3
- package/dist/cjs/core/fetcher/Fetcher.js +8 -2
- package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/cjs/core/fetcher/makeRequest.js +30 -9
- package/dist/cjs/core/runtime/runtime.js +8 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/jobs/client/Client.d.mts +32 -8
- package/dist/esm/api/resources/jobs/client/Client.mjs +93 -20
- package/dist/esm/api/resources/jobs/client/requests/ContinueRequestDto.d.mts +3 -3
- package/dist/esm/api/resources/jobs/client/requests/GetJobResultsRequest.d.mts +2 -2
- package/dist/esm/api/resources/jobs/client/requests/GetJobStatusRequest.d.mts +2 -2
- package/dist/esm/api/resources/jobs/client/requests/GetUserJobsRequest.d.mts +10 -0
- package/dist/esm/api/resources/jobs/client/requests/InitializeRequestDto.d.mts +12 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +17 -6
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/jobs/exports.d.mts +2 -0
- package/dist/esm/api/resources/jobs/exports.mjs +3 -0
- package/dist/esm/api/resources/meta/exports.d.mts +2 -0
- package/dist/esm/api/resources/meta/exports.mjs +3 -0
- package/dist/esm/api/resources/meta/types/GetVersionResponse.d.mts +1 -1
- package/dist/esm/api/resources/meta/types/HealthCheckResponse.d.mts +1 -1
- package/dist/esm/api/resources/monitors/client/Client.d.mts +23 -33
- package/dist/esm/api/resources/monitors/client/Client.mjs +35 -37
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +26 -5
- package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequestDto.d.mts +17 -0
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.d.mts +10 -0
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.mjs +2 -0
- package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorRequestDto.d.mts +2 -0
- package/dist/esm/api/resources/monitors/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/monitors/exports.d.mts +2 -0
- package/dist/esm/api/resources/monitors/exports.mjs +3 -0
- package/dist/esm/api/types/BaseRecord.d.mts +38 -0
- package/dist/esm/api/types/BaseRecord.mjs +13 -0
- package/dist/esm/api/types/Citation.d.mts +3 -3
- package/dist/esm/api/types/CompanyEnrichmentOutput.d.mts +29 -0
- package/dist/esm/api/types/CompanyEnrichmentOutput.mjs +13 -0
- package/dist/esm/api/types/ContinueResponseDto.d.mts +2 -2
- package/dist/esm/api/types/CreateMonitorResponseDto.d.mts +1 -1
- package/dist/esm/api/types/EndDate.d.mts +8 -0
- package/dist/esm/api/types/EndDate.mjs +2 -0
- package/dist/esm/api/types/EnrichmentSchema.d.mts +13 -0
- package/dist/esm/api/types/EnrichmentSchema.mjs +2 -0
- package/dist/esm/api/types/EnrichmentType.d.mts +19 -0
- package/dist/esm/api/types/EnrichmentType.mjs +19 -0
- package/dist/esm/api/types/Error_.d.mts +1 -1
- package/dist/esm/api/types/InitializeResponseDto.d.mts +19 -0
- package/dist/esm/api/types/InitializeResponseDto.mjs +2 -0
- package/dist/esm/api/types/JobStep.d.mts +2 -2
- package/dist/esm/api/types/Limit.d.mts +6 -0
- package/dist/esm/api/types/Limit.mjs +2 -0
- package/dist/esm/api/types/ListMonitorsResponseDto.d.mts +7 -1
- package/dist/esm/api/types/ListUserJobsResponseDto.d.mts +11 -8
- package/dist/esm/api/types/MonitorCitation.d.mts +3 -8
- package/dist/esm/api/types/MonitorListItemDto.d.mts +7 -7
- package/dist/esm/api/types/MonitorRecord.d.mts +4 -14
- package/dist/{cjs/api/types/JobStatus.d.ts → esm/api/types/PublicJobStatus.d.mts} +4 -4
- package/dist/esm/api/types/{JobStatus.mjs → PublicJobStatus.mjs} +3 -3
- package/dist/esm/api/types/PullJobResponseDto.d.mts +28 -23
- package/dist/esm/api/types/PullMonitorResponseDto.d.mts +12 -12
- package/dist/esm/api/types/Query.d.mts +1 -1
- package/dist/esm/api/types/Record_.d.mts +2 -12
- package/dist/esm/api/types/ReferenceJob.d.mts +3 -3
- package/dist/esm/api/types/StartDate.d.mts +8 -0
- package/dist/esm/api/types/StartDate.mjs +2 -0
- package/dist/esm/api/types/StatusResponseDto.d.mts +2 -2
- package/dist/esm/api/types/{SubmitResponseBody.d.mts → SubmitResponseDto.d.mts} +1 -1
- package/dist/esm/api/types/SubmitResponseDto.mjs +2 -0
- package/dist/esm/api/types/UserJob.d.mts +10 -0
- package/dist/esm/api/types/UserJob.mjs +2 -0
- package/dist/esm/api/types/ValidationErrorDetail.d.mts +3 -3
- package/dist/esm/api/types/ValidationErrorResponse.d.mts +1 -1
- package/dist/esm/api/types/ValidatorSchema.d.mts +13 -0
- package/dist/esm/api/types/ValidatorSchema.mjs +2 -0
- package/dist/esm/api/types/WebhookDto.d.mts +4 -4
- package/dist/esm/api/types/WebhookPayload.d.mts +9 -9
- package/dist/esm/api/types/index.d.mts +12 -3
- package/dist/esm/api/types/index.mjs +12 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
- package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
- package/dist/esm/core/runtime/runtime.mjs +8 -7
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +37 -4
- package/reference.md +115 -40
- package/dist/cjs/api/resources/monitors/client/requests/EnableMonitorRequest.d.ts +0 -10
- package/dist/cjs/api/types/Schema.d.ts +0 -6
- package/dist/esm/api/resources/monitors/client/requests/EnableMonitorRequest.d.mts +0 -10
- package/dist/esm/api/types/Schema.d.mts +0 -6
- /package/dist/cjs/api/resources/{monitors/client/requests/EnableMonitorRequest.js → jobs/client/requests/GetUserJobsRequest.js} +0 -0
- /package/dist/cjs/api/{types/Schema.js → resources/jobs/client/requests/InitializeRequestDto.js} +0 -0
- /package/dist/cjs/api/{types/SubmitResponseBody.js → resources/monitors/client/requests/EnableMonitorRequestDto.js} +0 -0
- /package/dist/esm/api/resources/{monitors/client/requests/EnableMonitorRequest.mjs → jobs/client/requests/GetUserJobsRequest.mjs} +0 -0
- /package/dist/esm/api/{types/Schema.mjs → resources/jobs/client/requests/InitializeRequestDto.mjs} +0 -0
- /package/dist/esm/api/{types/SubmitResponseBody.mjs → resources/monitors/client/requests/EnableMonitorRequestDto.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newscatcher-catchall-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"types": "./dist/cjs/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./dist/cjs/index.d.ts",
|
|
17
16
|
"import": {
|
|
18
17
|
"types": "./dist/esm/index.d.mts",
|
|
19
18
|
"default": "./dist/esm/index.mjs"
|
|
@@ -24,6 +23,39 @@
|
|
|
24
23
|
},
|
|
25
24
|
"default": "./dist/cjs/index.js"
|
|
26
25
|
},
|
|
26
|
+
"./jobs": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/esm/api/resources/jobs/exports.d.mts",
|
|
29
|
+
"default": "./dist/esm/api/resources/jobs/exports.mjs"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/cjs/api/resources/jobs/exports.d.ts",
|
|
33
|
+
"default": "./dist/cjs/api/resources/jobs/exports.js"
|
|
34
|
+
},
|
|
35
|
+
"default": "./dist/cjs/api/resources/jobs/exports.js"
|
|
36
|
+
},
|
|
37
|
+
"./monitors": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/esm/api/resources/monitors/exports.d.mts",
|
|
40
|
+
"default": "./dist/esm/api/resources/monitors/exports.mjs"
|
|
41
|
+
},
|
|
42
|
+
"require": {
|
|
43
|
+
"types": "./dist/cjs/api/resources/monitors/exports.d.ts",
|
|
44
|
+
"default": "./dist/cjs/api/resources/monitors/exports.js"
|
|
45
|
+
},
|
|
46
|
+
"default": "./dist/cjs/api/resources/monitors/exports.js"
|
|
47
|
+
},
|
|
48
|
+
"./meta": {
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/esm/api/resources/meta/exports.d.mts",
|
|
51
|
+
"default": "./dist/esm/api/resources/meta/exports.mjs"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/cjs/api/resources/meta/exports.d.ts",
|
|
55
|
+
"default": "./dist/cjs/api/resources/meta/exports.js"
|
|
56
|
+
},
|
|
57
|
+
"default": "./dist/cjs/api/resources/meta/exports.js"
|
|
58
|
+
},
|
|
27
59
|
"./package.json": "./package.json"
|
|
28
60
|
},
|
|
29
61
|
"files": [
|
|
@@ -54,13 +86,14 @@
|
|
|
54
86
|
"msw": "2.11.2",
|
|
55
87
|
"@types/node": "^18.19.70",
|
|
56
88
|
"typescript": "~5.7.2",
|
|
57
|
-
"@biomejs/biome": "2.3
|
|
89
|
+
"@biomejs/biome": "2.4.3"
|
|
58
90
|
},
|
|
59
91
|
"browser": {
|
|
60
92
|
"fs": false,
|
|
61
93
|
"os": false,
|
|
62
94
|
"path": false,
|
|
63
|
-
"stream": false
|
|
95
|
+
"stream": false,
|
|
96
|
+
"crypto": false
|
|
64
97
|
},
|
|
65
98
|
"packageManager": "pnpm@10.20.0",
|
|
66
99
|
"engines": {
|
package/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
## Jobs
|
|
3
|
-
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">
|
|
3
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">initialize</a>({ ...params }) -> CatchAllApi.InitializeResponseDto</code></summary>
|
|
4
4
|
<dl>
|
|
5
5
|
<dd>
|
|
6
6
|
|
|
@@ -12,7 +12,73 @@
|
|
|
12
12
|
<dl>
|
|
13
13
|
<dd>
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Get suggested validators, enrichments, and date ranges for a query.
|
|
16
|
+
</dd>
|
|
17
|
+
</dl>
|
|
18
|
+
</dd>
|
|
19
|
+
</dl>
|
|
20
|
+
|
|
21
|
+
#### 🔌 Usage
|
|
22
|
+
|
|
23
|
+
<dl>
|
|
24
|
+
<dd>
|
|
25
|
+
|
|
26
|
+
<dl>
|
|
27
|
+
<dd>
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
await client.jobs.initialize({
|
|
31
|
+
query: "Series B funding rounds for SaaS startups",
|
|
32
|
+
context: "Focus on funding amount and company name"
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
</dd>
|
|
37
|
+
</dl>
|
|
38
|
+
</dd>
|
|
39
|
+
</dl>
|
|
40
|
+
|
|
41
|
+
#### ⚙️ Parameters
|
|
42
|
+
|
|
43
|
+
<dl>
|
|
44
|
+
<dd>
|
|
45
|
+
|
|
46
|
+
<dl>
|
|
47
|
+
<dd>
|
|
48
|
+
|
|
49
|
+
**request:** `CatchAllApi.InitializeRequestDto`
|
|
50
|
+
|
|
51
|
+
</dd>
|
|
52
|
+
</dl>
|
|
53
|
+
|
|
54
|
+
<dl>
|
|
55
|
+
<dd>
|
|
56
|
+
|
|
57
|
+
**requestOptions:** `JobsClient.RequestOptions`
|
|
58
|
+
|
|
59
|
+
</dd>
|
|
60
|
+
</dl>
|
|
61
|
+
</dd>
|
|
62
|
+
</dl>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</dd>
|
|
66
|
+
</dl>
|
|
67
|
+
</details>
|
|
68
|
+
|
|
69
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">createJob</a>({ ...params }) -> CatchAllApi.SubmitResponseDto</code></summary>
|
|
70
|
+
<dl>
|
|
71
|
+
<dd>
|
|
72
|
+
|
|
73
|
+
#### 📝 Description
|
|
74
|
+
|
|
75
|
+
<dl>
|
|
76
|
+
<dd>
|
|
77
|
+
|
|
78
|
+
<dl>
|
|
79
|
+
<dd>
|
|
80
|
+
|
|
81
|
+
Submit a query to create a new processing job.
|
|
16
82
|
</dd>
|
|
17
83
|
</dl>
|
|
18
84
|
</dd>
|
|
@@ -28,8 +94,11 @@ Submit a natural language query to create a new processing job.
|
|
|
28
94
|
|
|
29
95
|
```typescript
|
|
30
96
|
await client.jobs.createJob({
|
|
31
|
-
query: "
|
|
32
|
-
context: "Focus on
|
|
97
|
+
query: "Series B funding rounds for SaaS startups",
|
|
98
|
+
context: "Focus on funding amount and company name",
|
|
99
|
+
limit: 10,
|
|
100
|
+
start_date: "2026-02-18T00:00:00Z",
|
|
101
|
+
end_date: "2026-02-23T00:00:00Z"
|
|
33
102
|
});
|
|
34
103
|
|
|
35
104
|
```
|
|
@@ -94,7 +163,7 @@ Continue an existing job to process more records beyond the initial limit.
|
|
|
94
163
|
|
|
95
164
|
```typescript
|
|
96
165
|
await client.jobs.continueJob({
|
|
97
|
-
job_id: "
|
|
166
|
+
job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
|
|
98
167
|
new_limit: 100
|
|
99
168
|
});
|
|
100
169
|
|
|
@@ -160,7 +229,7 @@ Retrieve the current processing status of a job.
|
|
|
160
229
|
|
|
161
230
|
```typescript
|
|
162
231
|
await client.jobs.getJobStatus({
|
|
163
|
-
job_id: "
|
|
232
|
+
job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c"
|
|
164
233
|
});
|
|
165
234
|
|
|
166
235
|
```
|
|
@@ -197,7 +266,7 @@ await client.jobs.getJobStatus({
|
|
|
197
266
|
</dl>
|
|
198
267
|
</details>
|
|
199
268
|
|
|
200
|
-
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">getUserJobs</a>() -> CatchAllApi.ListUserJobsResponseDto
|
|
269
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">getUserJobs</a>({ ...params }) -> CatchAllApi.ListUserJobsResponseDto</code></summary>
|
|
201
270
|
<dl>
|
|
202
271
|
<dd>
|
|
203
272
|
|
|
@@ -240,6 +309,14 @@ await client.jobs.getUserJobs();
|
|
|
240
309
|
<dl>
|
|
241
310
|
<dd>
|
|
242
311
|
|
|
312
|
+
**request:** `CatchAllApi.GetUserJobsRequest`
|
|
313
|
+
|
|
314
|
+
</dd>
|
|
315
|
+
</dl>
|
|
316
|
+
|
|
317
|
+
<dl>
|
|
318
|
+
<dd>
|
|
319
|
+
|
|
243
320
|
**requestOptions:** `JobsClient.RequestOptions`
|
|
244
321
|
|
|
245
322
|
</dd>
|
|
@@ -280,7 +357,7 @@ Retrieve the final results for a completed job.
|
|
|
280
357
|
|
|
281
358
|
```typescript
|
|
282
359
|
await client.jobs.getJobResults({
|
|
283
|
-
job_id: "
|
|
360
|
+
job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c"
|
|
284
361
|
});
|
|
285
362
|
|
|
286
363
|
```
|
|
@@ -330,16 +407,7 @@ await client.jobs.getJobResults({
|
|
|
330
407
|
<dl>
|
|
331
408
|
<dd>
|
|
332
409
|
|
|
333
|
-
Create a monitor
|
|
334
|
-
|
|
335
|
-
**Schedule requirements:**
|
|
336
|
-
- Minimum 24-hour interval between executions
|
|
337
|
-
- Natural language format (e.g., "every day at 12 PM UTC", "every 48 hours")
|
|
338
|
-
|
|
339
|
-
**Validation:**
|
|
340
|
-
- Schedules below minimum frequency return error with descriptive message.
|
|
341
|
-
- Invalid job IDs return 400 Bad Request.
|
|
342
|
-
- Duplicate monitors (same job already monitored) return error.
|
|
410
|
+
Create a scheduled monitor based on a reference job.
|
|
343
411
|
</dd>
|
|
344
412
|
</dl>
|
|
345
413
|
</dd>
|
|
@@ -355,8 +423,17 @@ Create a monitor that runs jobs based on a reference job with a specified schedu
|
|
|
355
423
|
|
|
356
424
|
```typescript
|
|
357
425
|
await client.monitors.createMonitor({
|
|
358
|
-
reference_job_id: "
|
|
359
|
-
schedule: "every day at 12 PM UTC"
|
|
426
|
+
reference_job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
|
|
427
|
+
schedule: "every day at 12 PM UTC",
|
|
428
|
+
webhook: {
|
|
429
|
+
url: "https://your-endpoint.com/webhook",
|
|
430
|
+
method: "POST",
|
|
431
|
+
headers: {
|
|
432
|
+
"Authorization": "Bearer your_token_here"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
limit: 10,
|
|
436
|
+
backfill: true
|
|
360
437
|
});
|
|
361
438
|
|
|
362
439
|
```
|
|
@@ -405,15 +482,7 @@ await client.monitors.createMonitor({
|
|
|
405
482
|
<dl>
|
|
406
483
|
<dd>
|
|
407
484
|
|
|
408
|
-
Update webhook configuration for an existing monitor
|
|
409
|
-
|
|
410
|
-
**Supported updates:**
|
|
411
|
-
- Webhook URL
|
|
412
|
-
- HTTP method (POST/PUT)
|
|
413
|
-
- Headers and authentication
|
|
414
|
-
- Query parameters
|
|
415
|
-
|
|
416
|
-
**Note:** Schedule and reference job cannot be modified. To change these, create a new monitor.
|
|
485
|
+
Update the webhook configuration for an existing monitor.
|
|
417
486
|
</dd>
|
|
418
487
|
</dl>
|
|
419
488
|
</dd>
|
|
@@ -485,8 +554,7 @@ await client.monitors.updateMonitor({
|
|
|
485
554
|
<dl>
|
|
486
555
|
<dd>
|
|
487
556
|
|
|
488
|
-
|
|
489
|
-
Each job includes job_id, start_date, and end_date.
|
|
557
|
+
Return all jobs executed by a monitor.
|
|
490
558
|
</dd>
|
|
491
559
|
</dl>
|
|
492
560
|
</dd>
|
|
@@ -551,8 +619,7 @@ await client.monitors.listMonitorJobs({
|
|
|
551
619
|
<dl>
|
|
552
620
|
<dd>
|
|
553
621
|
|
|
554
|
-
Retrieve aggregated results from all jobs executed by
|
|
555
|
-
Includes monitor configuration, execution history, and all records collected.
|
|
622
|
+
Retrieve aggregated results from all jobs executed by a monitor.
|
|
556
623
|
</dd>
|
|
557
624
|
</dl>
|
|
558
625
|
</dd>
|
|
@@ -617,8 +684,7 @@ await client.monitors.pullMonitorResults({
|
|
|
617
684
|
<dl>
|
|
618
685
|
<dd>
|
|
619
686
|
|
|
620
|
-
|
|
621
|
-
Validates that the provided API key is associated with the monitor.
|
|
687
|
+
Stop scheduled job execution for a monitor.
|
|
622
688
|
</dd>
|
|
623
689
|
</dl>
|
|
624
690
|
</dd>
|
|
@@ -683,8 +749,7 @@ await client.monitors.disableMonitor({
|
|
|
683
749
|
<dl>
|
|
684
750
|
<dd>
|
|
685
751
|
|
|
686
|
-
|
|
687
|
-
Validates that the provided API key is associated with the monitor.
|
|
752
|
+
Resume scheduled job execution for a monitor.
|
|
688
753
|
</dd>
|
|
689
754
|
</dl>
|
|
690
755
|
</dd>
|
|
@@ -700,7 +765,8 @@ Validates that the provided API key is associated with the monitor.
|
|
|
700
765
|
|
|
701
766
|
```typescript
|
|
702
767
|
await client.monitors.enableMonitor({
|
|
703
|
-
monitor_id: "monitor_id"
|
|
768
|
+
monitor_id: "monitor_id",
|
|
769
|
+
backfill: true
|
|
704
770
|
});
|
|
705
771
|
|
|
706
772
|
```
|
|
@@ -717,7 +783,7 @@ await client.monitors.enableMonitor({
|
|
|
717
783
|
<dl>
|
|
718
784
|
<dd>
|
|
719
785
|
|
|
720
|
-
**request:** `CatchAllApi.
|
|
786
|
+
**request:** `CatchAllApi.EnableMonitorRequestDto`
|
|
721
787
|
|
|
722
788
|
</dd>
|
|
723
789
|
</dl>
|
|
@@ -737,7 +803,7 @@ await client.monitors.enableMonitor({
|
|
|
737
803
|
</dl>
|
|
738
804
|
</details>
|
|
739
805
|
|
|
740
|
-
<details><summary><code>client.monitors.<a href="/src/api/resources/monitors/client/Client.ts">listMonitors</a>() -> CatchAllApi.ListMonitorsResponseDto</code></summary>
|
|
806
|
+
<details><summary><code>client.monitors.<a href="/src/api/resources/monitors/client/Client.ts">listMonitors</a>({ ...params }) -> CatchAllApi.ListMonitorsResponseDto</code></summary>
|
|
741
807
|
<dl>
|
|
742
808
|
<dd>
|
|
743
809
|
|
|
@@ -780,6 +846,14 @@ await client.monitors.listMonitors();
|
|
|
780
846
|
<dl>
|
|
781
847
|
<dd>
|
|
782
848
|
|
|
849
|
+
**request:** `CatchAllApi.ListMonitorsRequest`
|
|
850
|
+
|
|
851
|
+
</dd>
|
|
852
|
+
</dl>
|
|
853
|
+
|
|
854
|
+
<dl>
|
|
855
|
+
<dd>
|
|
856
|
+
|
|
783
857
|
**requestOptions:** `MonitorsClient.RequestOptions`
|
|
784
858
|
|
|
785
859
|
</dd>
|
|
@@ -902,3 +976,4 @@ await client.meta.getVersion();
|
|
|
902
976
|
</dd>
|
|
903
977
|
</dl>
|
|
904
978
|
</details>
|
|
979
|
+
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Template string to guide record summary formatting. Use placeholder syntax with brackets to indicate desired fields: [COMPANY], [REVENUE], [TARGET], [AMOUNT], etc.
|
|
3
|
-
*
|
|
4
|
-
* When provided, the system generates a `schema_based_summary` field for each record following this template.
|
|
5
|
-
*/
|
|
6
|
-
export type Schema = string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Template string to guide record summary formatting. Use placeholder syntax with brackets to indicate desired fields: [COMPANY], [REVENUE], [TARGET], [AMOUNT], etc.
|
|
3
|
-
*
|
|
4
|
-
* When provided, the system generates a `schema_based_summary` field for each record following this template.
|
|
5
|
-
*/
|
|
6
|
-
export type Schema = string;
|
|
File without changes
|
/package/dist/cjs/api/{types/Schema.js → resources/jobs/client/requests/InitializeRequestDto.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/api/{types/Schema.mjs → resources/jobs/client/requests/InitializeRequestDto.mjs}
RENAMED
|
File without changes
|