newscatcher-catchall-sdk 1.5.0 → 2.0.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/README.md +12 -2
- package/dist/cjs/BaseClient.d.ts +3 -0
- package/dist/cjs/BaseClient.js +17 -2
- package/dist/cjs/api/resources/datasets/client/Client.d.ts +30 -31
- package/dist/cjs/api/resources/datasets/client/Client.js +64 -75
- package/dist/cjs/api/resources/datasets/client/requests/ListDatasetEntitiesRequest.d.ts +28 -0
- package/dist/cjs/api/resources/datasets/client/requests/ListDatasetsRequest.d.ts +0 -1
- package/dist/cjs/api/resources/datasets/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/entities/client/Client.d.ts +3 -7
- package/dist/cjs/api/resources/entities/client/Client.js +8 -13
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +2 -4
- package/dist/cjs/api/resources/jobs/client/Client.js +7 -11
- package/dist/cjs/api/resources/jobs/client/requests/GetUserJobsRequest.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitRequestDto.d.ts +7 -1
- package/dist/cjs/api/resources/meta/client/Client.js +3 -3
- package/dist/cjs/api/resources/monitors/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/monitors/client/Client.js +16 -17
- package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.ts +7 -4
- package/dist/cjs/api/resources/monitors/client/requests/ListMonitorsRequest.d.ts +0 -1
- package/dist/cjs/api/types/ConnectedEntity.d.ts +12 -9
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -0
- package/dist/cjs/core/auth/AuthProvider.js +7 -0
- package/dist/cjs/core/auth/index.d.ts +1 -1
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -0
- package/dist/cjs/core/fetcher/Fetcher.js +2 -7
- package/dist/cjs/core/fetcher/requestWithRetries.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -0
- package/dist/esm/BaseClient.mjs +17 -2
- package/dist/esm/api/resources/datasets/client/Client.d.mts +30 -31
- package/dist/esm/api/resources/datasets/client/Client.mjs +64 -75
- package/dist/esm/api/resources/datasets/client/requests/ListDatasetEntitiesRequest.d.mts +28 -0
- package/dist/esm/api/resources/datasets/client/requests/ListDatasetsRequest.d.mts +0 -1
- package/dist/esm/api/resources/datasets/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/entities/client/Client.d.mts +3 -7
- package/dist/esm/api/resources/entities/client/Client.mjs +8 -13
- package/dist/esm/api/resources/jobs/client/Client.d.mts +2 -4
- package/dist/esm/api/resources/jobs/client/Client.mjs +7 -11
- package/dist/esm/api/resources/jobs/client/requests/GetUserJobsRequest.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitRequestDto.d.mts +7 -1
- package/dist/esm/api/resources/meta/client/Client.mjs +3 -3
- package/dist/esm/api/resources/monitors/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/monitors/client/Client.mjs +16 -17
- package/dist/esm/api/resources/monitors/client/requests/CreateMonitorRequestDto.d.mts +7 -4
- package/dist/esm/api/resources/monitors/client/requests/ListMonitorsRequest.d.mts +0 -1
- package/dist/esm/api/types/ConnectedEntity.d.mts +12 -9
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -1
- package/dist/esm/core/auth/index.d.mts +1 -1
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +5 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -7
- package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +35 -42
- package/dist/cjs/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.ts +0 -21
- package/dist/esm/api/resources/datasets/client/requests/ListEntitiesInDatasetRequest.d.mts +0 -21
- /package/dist/cjs/api/resources/datasets/client/requests/{ListEntitiesInDatasetRequest.js → ListDatasetEntitiesRequest.js} +0 -0
- /package/dist/esm/api/resources/datasets/client/requests/{ListEntitiesInDatasetRequest.mjs → ListDatasetEntitiesRequest.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -407,11 +407,9 @@ await client.jobs.continueJob({
|
|
|
407
407
|
<dl>
|
|
408
408
|
<dd>
|
|
409
409
|
|
|
410
|
-
Soft-deletes a job. The job is flagged as deleted and no longer
|
|
411
|
-
appears in list results. The underlying data is retained.
|
|
410
|
+
Soft-deletes a job. The job is flagged as deleted and no longer appears in list results. The underlying data is retained.
|
|
412
411
|
|
|
413
|
-
Only the job owner can delete a job. Returns `404` if the job is not
|
|
414
|
-
found or does not belong to the authenticated user.
|
|
412
|
+
Only the job owner can delete a job. Returns `404` if the job is not found or does not belong to the authenticated user.
|
|
415
413
|
|
|
416
414
|
Deleting an already-deleted job returns `200`.
|
|
417
415
|
</dd>
|
|
@@ -559,7 +557,8 @@ Create a scheduled monitor based on a reference job.
|
|
|
559
557
|
```typescript
|
|
560
558
|
await client.monitors.createMonitor({
|
|
561
559
|
reference_job_id: "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
|
|
562
|
-
schedule: "every day at 12 PM
|
|
560
|
+
schedule: "every day at 12 PM",
|
|
561
|
+
timezone: "UTC",
|
|
563
562
|
webhook: {
|
|
564
563
|
url: "https://your-endpoint.com/webhook",
|
|
565
564
|
method: "POST",
|
|
@@ -1088,9 +1087,7 @@ await client.monitors.updateMonitor({
|
|
|
1088
1087
|
<dl>
|
|
1089
1088
|
<dd>
|
|
1090
1089
|
|
|
1091
|
-
Returns a paginated list of entities belonging to the authenticated
|
|
1092
|
-
organization. Supports filtering by status and entity type, and
|
|
1093
|
-
sorting by name, status, or creation date.
|
|
1090
|
+
Returns a paginated list of entities belonging to the authenticated organization. Supports filtering by status and entity type, and sorting by name, status, or creation date.
|
|
1094
1091
|
</dd>
|
|
1095
1092
|
</dl>
|
|
1096
1093
|
</dd>
|
|
@@ -1234,11 +1231,9 @@ await client.entities.createEntity({
|
|
|
1234
1231
|
<dl>
|
|
1235
1232
|
<dd>
|
|
1236
1233
|
|
|
1237
|
-
Creates multiple entities in a single request. Each entity is
|
|
1238
|
-
processed independently — a failure in one does not affect others.
|
|
1234
|
+
Creates multiple entities in a single request. Each entity is processed independently — a failure in one does not affect others.
|
|
1239
1235
|
|
|
1240
|
-
Returns an array of `{id, status}` objects in the same order as
|
|
1241
|
-
the input array.
|
|
1236
|
+
Returns an array of `{id, status}` objects in the same order as the input array.
|
|
1242
1237
|
</dd>
|
|
1243
1238
|
</dl>
|
|
1244
1239
|
</dd>
|
|
@@ -1527,9 +1522,7 @@ await client.entities.updateEntity({
|
|
|
1527
1522
|
<dl>
|
|
1528
1523
|
<dd>
|
|
1529
1524
|
|
|
1530
|
-
Returns a paginated list of datasets belonging to the authenticated
|
|
1531
|
-
organization. Supports filtering by status and sorting by name,
|
|
1532
|
-
status, or creation date.
|
|
1525
|
+
Returns a paginated list of datasets belonging to the authenticated organization. Supports filtering by status and sorting by name, status, or creation date.
|
|
1533
1526
|
</dd>
|
|
1534
1527
|
</dl>
|
|
1535
1528
|
</dd>
|
|
@@ -1668,9 +1661,7 @@ await client.datasets.createDataset({
|
|
|
1668
1661
|
<dl>
|
|
1669
1662
|
<dd>
|
|
1670
1663
|
|
|
1671
|
-
Creates a new dataset by uploading a CSV file. Each row in the CSV
|
|
1672
|
-
becomes an entity. The `name` column is required; all other columns
|
|
1673
|
-
are optional.
|
|
1664
|
+
Creates a new dataset by uploading a CSV file. Each row in the CSV becomes an entity. The `name` and `domain`columns are required; all other columns are optional.
|
|
1674
1665
|
|
|
1675
1666
|
**CSV format:**
|
|
1676
1667
|
```csv
|
|
@@ -1934,7 +1925,7 @@ await client.datasets.updateDataset({
|
|
|
1934
1925
|
</dl>
|
|
1935
1926
|
</details>
|
|
1936
1927
|
|
|
1937
|
-
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">
|
|
1928
|
+
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">addEntitiesToDataset</a>({ ...params }) -> CatchAllApi.ManageEntitiesResponse</code></summary>
|
|
1938
1929
|
<dl>
|
|
1939
1930
|
<dd>
|
|
1940
1931
|
|
|
@@ -1946,7 +1937,7 @@ await client.datasets.updateDataset({
|
|
|
1946
1937
|
<dl>
|
|
1947
1938
|
<dd>
|
|
1948
1939
|
|
|
1949
|
-
|
|
1940
|
+
Adds one or more existing entities to a dataset. Returns the number of entities added.
|
|
1950
1941
|
</dd>
|
|
1951
1942
|
</dl>
|
|
1952
1943
|
</dd>
|
|
@@ -1961,8 +1952,11 @@ Returns a paginated list of entities in a dataset. Supports filtering by status
|
|
|
1961
1952
|
<dd>
|
|
1962
1953
|
|
|
1963
1954
|
```typescript
|
|
1964
|
-
await client.datasets.
|
|
1965
|
-
dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2"
|
|
1955
|
+
await client.datasets.addEntitiesToDataset({
|
|
1956
|
+
dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2",
|
|
1957
|
+
body: {
|
|
1958
|
+
entity_ids: ["854198fa-f702-49db-a381-0427fa87f173"]
|
|
1959
|
+
}
|
|
1966
1960
|
});
|
|
1967
1961
|
|
|
1968
1962
|
```
|
|
@@ -1979,7 +1973,7 @@ await client.datasets.listEntitiesInDataset({
|
|
|
1979
1973
|
<dl>
|
|
1980
1974
|
<dd>
|
|
1981
1975
|
|
|
1982
|
-
**request:** `CatchAllApi.
|
|
1976
|
+
**request:** `CatchAllApi.AddEntitiesToDatasetRequest`
|
|
1983
1977
|
|
|
1984
1978
|
</dd>
|
|
1985
1979
|
</dl>
|
|
@@ -1999,7 +1993,7 @@ await client.datasets.listEntitiesInDataset({
|
|
|
1999
1993
|
</dl>
|
|
2000
1994
|
</details>
|
|
2001
1995
|
|
|
2002
|
-
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">
|
|
1996
|
+
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">removeEntitiesFromDataset</a>({ ...params }) -> CatchAllApi.ManageEntitiesResponse</code></summary>
|
|
2003
1997
|
<dl>
|
|
2004
1998
|
<dd>
|
|
2005
1999
|
|
|
@@ -2011,7 +2005,7 @@ await client.datasets.listEntitiesInDataset({
|
|
|
2011
2005
|
<dl>
|
|
2012
2006
|
<dd>
|
|
2013
2007
|
|
|
2014
|
-
|
|
2008
|
+
Removes one or more entities from a dataset. The entities themselves are not deleted — they are only removed from this dataset. Returns the number of entities removed.
|
|
2015
2009
|
</dd>
|
|
2016
2010
|
</dl>
|
|
2017
2011
|
</dd>
|
|
@@ -2026,7 +2020,7 @@ Adds one or more existing entities to a dataset. Returns the number of entities
|
|
|
2026
2020
|
<dd>
|
|
2027
2021
|
|
|
2028
2022
|
```typescript
|
|
2029
|
-
await client.datasets.
|
|
2023
|
+
await client.datasets.removeEntitiesFromDataset({
|
|
2030
2024
|
dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2",
|
|
2031
2025
|
body: {
|
|
2032
2026
|
entity_ids: ["854198fa-f702-49db-a381-0427fa87f173"]
|
|
@@ -2047,7 +2041,7 @@ await client.datasets.addEntitiesToDataset({
|
|
|
2047
2041
|
<dl>
|
|
2048
2042
|
<dd>
|
|
2049
2043
|
|
|
2050
|
-
**request:** `CatchAllApi.
|
|
2044
|
+
**request:** `CatchAllApi.RemoveEntitiesFromDatasetRequest`
|
|
2051
2045
|
|
|
2052
2046
|
</dd>
|
|
2053
2047
|
</dl>
|
|
@@ -2067,7 +2061,7 @@ await client.datasets.addEntitiesToDataset({
|
|
|
2067
2061
|
</dl>
|
|
2068
2062
|
</details>
|
|
2069
2063
|
|
|
2070
|
-
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">
|
|
2064
|
+
<details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">listEntitiesInDataset</a>({ ...params }) -> CatchAllApi.DatasetEntityListResponse</code></summary>
|
|
2071
2065
|
<dl>
|
|
2072
2066
|
<dd>
|
|
2073
2067
|
|
|
@@ -2079,9 +2073,7 @@ await client.datasets.addEntitiesToDataset({
|
|
|
2079
2073
|
<dl>
|
|
2080
2074
|
<dd>
|
|
2081
2075
|
|
|
2082
|
-
|
|
2083
|
-
are not deleted — they are only removed from this dataset. Returns
|
|
2084
|
-
the number of entities removed.
|
|
2076
|
+
Returns a paginated list of entities in a dataset. Supports filtering by status, entity type, and name search.
|
|
2085
2077
|
</dd>
|
|
2086
2078
|
</dl>
|
|
2087
2079
|
</dd>
|
|
@@ -2096,11 +2088,15 @@ the number of entities removed.
|
|
|
2096
2088
|
<dd>
|
|
2097
2089
|
|
|
2098
2090
|
```typescript
|
|
2099
|
-
await client.datasets.
|
|
2091
|
+
await client.datasets.listEntitiesInDataset({
|
|
2100
2092
|
dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2",
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2093
|
+
page: 1,
|
|
2094
|
+
page_size: 100,
|
|
2095
|
+
search: "OpenAI",
|
|
2096
|
+
status: "ready",
|
|
2097
|
+
entity_type: "company",
|
|
2098
|
+
sort_by: "created_at",
|
|
2099
|
+
sort_order: "desc"
|
|
2104
2100
|
});
|
|
2105
2101
|
|
|
2106
2102
|
```
|
|
@@ -2117,7 +2113,7 @@ await client.datasets.removeEntitiesFromDataset({
|
|
|
2117
2113
|
<dl>
|
|
2118
2114
|
<dd>
|
|
2119
2115
|
|
|
2120
|
-
**request:** `CatchAllApi.
|
|
2116
|
+
**request:** `CatchAllApi.ListDatasetEntitiesRequest`
|
|
2121
2117
|
|
|
2122
2118
|
</dd>
|
|
2123
2119
|
</dl>
|
|
@@ -2149,8 +2145,7 @@ await client.datasets.removeEntitiesFromDataset({
|
|
|
2149
2145
|
<dl>
|
|
2150
2146
|
<dd>
|
|
2151
2147
|
|
|
2152
|
-
Returns the full status change history for a dataset, ordered
|
|
2153
|
-
chronologically from oldest to newest.
|
|
2148
|
+
Returns the full status change history for a dataset, ordered chronologically from oldest to newest.
|
|
2154
2149
|
</dd>
|
|
2155
2150
|
</dl>
|
|
2156
2151
|
</dd>
|
|
@@ -2215,11 +2210,9 @@ await client.datasets.getDatasetStatusHistory({
|
|
|
2215
2210
|
<dl>
|
|
2216
2211
|
<dd>
|
|
2217
2212
|
|
|
2218
|
-
Appends new companies to an existing dataset by uploading a CSV file.
|
|
2219
|
-
Uses the same CSV format as the dataset creation endpoint.
|
|
2213
|
+
Appends new companies to an existing dataset by uploading a CSV file. Uses the same CSV format as the dataset creation endpoint.
|
|
2220
2214
|
|
|
2221
|
-
The response omits `dataset_name` compared to the create-from-CSV
|
|
2222
|
-
endpoint since the dataset already exists.
|
|
2215
|
+
The response omits `dataset_name` compared to the create-from-CSV endpoint since the dataset already exists.
|
|
2223
2216
|
</dd>
|
|
2224
2217
|
</dl>
|
|
2225
2218
|
</dd>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type * as CatchAllApi from "../../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2"
|
|
6
|
-
* }
|
|
7
|
-
*/
|
|
8
|
-
export interface ListEntitiesInDatasetRequest {
|
|
9
|
-
/** Unique dataset identifier. */
|
|
10
|
-
dataset_id: string;
|
|
11
|
-
/** Page number to retrieve. */
|
|
12
|
-
page?: number;
|
|
13
|
-
/** Number of entities per page. */
|
|
14
|
-
page_size?: number;
|
|
15
|
-
/** Filter entities by name. */
|
|
16
|
-
search?: string;
|
|
17
|
-
status?: CatchAllApi.EntityStatus;
|
|
18
|
-
entity_type?: CatchAllApi.EntityType;
|
|
19
|
-
sort_by?: CatchAllApi.EntitySortBy;
|
|
20
|
-
sort_order?: CatchAllApi.SortOrder;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type * as CatchAllApi from "../../../../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* dataset_id: "ccabb755-afc2-4047-b84c-78d1f23d49b2"
|
|
6
|
-
* }
|
|
7
|
-
*/
|
|
8
|
-
export interface ListEntitiesInDatasetRequest {
|
|
9
|
-
/** Unique dataset identifier. */
|
|
10
|
-
dataset_id: string;
|
|
11
|
-
/** Page number to retrieve. */
|
|
12
|
-
page?: number;
|
|
13
|
-
/** Number of entities per page. */
|
|
14
|
-
page_size?: number;
|
|
15
|
-
/** Filter entities by name. */
|
|
16
|
-
search?: string;
|
|
17
|
-
status?: CatchAllApi.EntityStatus;
|
|
18
|
-
entity_type?: CatchAllApi.EntityType;
|
|
19
|
-
sort_by?: CatchAllApi.EntitySortBy;
|
|
20
|
-
sort_order?: CatchAllApi.SortOrder;
|
|
21
|
-
}
|
|
File without changes
|