@dench.com/cli 2.8.0-staging.107 → 2.8.1-staging.110
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/dench.ts +6 -6
- package/lib/api-schemas.ts +29 -1
- package/lib/enrichment-gateway.ts +9 -0
- package/package.json +1 -1
package/dench.ts
CHANGED
|
@@ -474,9 +474,9 @@ Usage:
|
|
|
474
474
|
dench artifacts list [--limit 25] [--json]
|
|
475
475
|
dench artifacts show <id> [--json]
|
|
476
476
|
dench artifacts import <id> --to lead|company|job_posting [--view "Q3 outbound"] [--pin] [--json]
|
|
477
|
-
dench leads find --titles "VP Sales" [--locations "San Francisco"] [--limit 500] [--json]
|
|
478
|
-
dench companies find --name "Acme" [--domain acme.com] [--keywords fintech] [--limit 500] [--json]
|
|
479
|
-
dench jobs find --titles "Account Executive" [--locations "San Francisco"] [--limit 500] [--json]
|
|
477
|
+
dench leads find --titles "VP Sales" [--locations "San Francisco"] [--limit 500] [--page-token <token>] [--json]
|
|
478
|
+
dench companies find --name "Acme" [--domain acme.com] [--keywords fintech] [--limit 500] [--page-token <token>] [--json]
|
|
479
|
+
dench jobs find --titles "Account Executive" [--locations "San Francisco"] [--limit 500] [--page-token <token>] [--json]
|
|
480
480
|
dench suggested-work [--json]
|
|
481
481
|
dench approval request "message" [--json]
|
|
482
482
|
dench approval approve <approvalId> [--evidence "User said yes in chat"] [--json]
|
|
@@ -757,7 +757,7 @@ function leadsHelp() {
|
|
|
757
757
|
console.log(`Dench leads
|
|
758
758
|
|
|
759
759
|
Usage:
|
|
760
|
-
dench leads find --titles "VP Sales" --locations "San Francisco" [--company-domain acme.com] [--keywords fintech] [--limit 500] [--json]
|
|
760
|
+
dench leads find --titles "VP Sales" --locations "San Francisco" [--company-domain acme.com] [--keywords fintech] [--limit 500] [--page-token <token>] [--json]
|
|
761
761
|
`);
|
|
762
762
|
}
|
|
763
763
|
|
|
@@ -765,7 +765,7 @@ function companiesHelp() {
|
|
|
765
765
|
console.log(`Dench companies
|
|
766
766
|
|
|
767
767
|
Usage:
|
|
768
|
-
dench companies find --name "Acme" [--domain acme.com] [--keywords fintech] [--industries SaaS] [--locations "San Francisco"] [--limit 500] [--json]
|
|
768
|
+
dench companies find --name "Acme" [--domain acme.com] [--keywords fintech] [--industries SaaS] [--locations "San Francisco"] [--limit 500] [--page-token <token>] [--json]
|
|
769
769
|
`);
|
|
770
770
|
}
|
|
771
771
|
|
|
@@ -773,7 +773,7 @@ function jobsHelp() {
|
|
|
773
773
|
console.log(`Dench jobs
|
|
774
774
|
|
|
775
775
|
Usage:
|
|
776
|
-
dench jobs find --titles "Account Executive" --locations "San Francisco" [--company-domain acme.com] [--keywords remote] [--limit 500] [--json]
|
|
776
|
+
dench jobs find --titles "Account Executive" --locations "San Francisco" [--company-domain acme.com] [--keywords remote] [--limit 500] [--page-token <token>] [--json]
|
|
777
777
|
`);
|
|
778
778
|
}
|
|
779
779
|
|
package/lib/api-schemas.ts
CHANGED
|
@@ -949,8 +949,23 @@ const toolRunResponse = z
|
|
|
949
949
|
|
|
950
950
|
const enrichmentMetadata = z
|
|
951
951
|
.object({
|
|
952
|
-
total: z
|
|
952
|
+
total: z
|
|
953
|
+
.number()
|
|
954
|
+
.optional()
|
|
955
|
+
.describe(
|
|
956
|
+
"Total matches for the search. Stable across pages; absent when only an estimate exists.",
|
|
957
|
+
),
|
|
958
|
+
totalIsEstimate: z
|
|
959
|
+
.boolean()
|
|
960
|
+
.optional()
|
|
961
|
+
.describe("True when the total is a lower bound rather than exact."),
|
|
953
962
|
offset: z.number().optional(),
|
|
963
|
+
nextPageToken: z
|
|
964
|
+
.string()
|
|
965
|
+
.optional()
|
|
966
|
+
.describe(
|
|
967
|
+
"Opaque token for the next page. Pass it back as pageToken; absent on the last page.",
|
|
968
|
+
),
|
|
954
969
|
})
|
|
955
970
|
.passthrough()
|
|
956
971
|
.optional();
|
|
@@ -1189,6 +1204,10 @@ const peopleSearch = z.object({
|
|
|
1189
1204
|
exactMatch: z.boolean().optional(),
|
|
1190
1205
|
limit: z.number().int().positive().max(5000).optional(),
|
|
1191
1206
|
offset: z.number().int().nonnegative().optional(),
|
|
1207
|
+
pageToken: z
|
|
1208
|
+
.string()
|
|
1209
|
+
.optional()
|
|
1210
|
+
.describe("Opaque token from a previous response's metadata.nextPageToken."),
|
|
1192
1211
|
preferCache: z.boolean().optional(),
|
|
1193
1212
|
});
|
|
1194
1213
|
|
|
@@ -1199,6 +1218,10 @@ const companySearch = z.object({
|
|
|
1199
1218
|
exactMatch: z.boolean().optional(),
|
|
1200
1219
|
limit: z.number().int().positive().max(5000).optional(),
|
|
1201
1220
|
offset: z.number().int().nonnegative().optional(),
|
|
1221
|
+
pageToken: z
|
|
1222
|
+
.string()
|
|
1223
|
+
.optional()
|
|
1224
|
+
.describe("Opaque token from a previous response's metadata.nextPageToken."),
|
|
1202
1225
|
preferCache: z.boolean().optional(),
|
|
1203
1226
|
});
|
|
1204
1227
|
|
|
@@ -1211,6 +1234,10 @@ const jobsSearch = z.object({
|
|
|
1211
1234
|
keywords: z.string().optional(),
|
|
1212
1235
|
postedAfter: z.string().optional(),
|
|
1213
1236
|
limit: z.number().int().positive().max(5000).optional(),
|
|
1237
|
+
pageToken: z
|
|
1238
|
+
.string()
|
|
1239
|
+
.optional()
|
|
1240
|
+
.describe("Opaque token from a previous response's metadata.nextPageToken."),
|
|
1214
1241
|
preferCache: z.boolean().optional(),
|
|
1215
1242
|
});
|
|
1216
1243
|
|
|
@@ -1231,6 +1258,7 @@ const jobsSearchResponse = z
|
|
|
1231
1258
|
.passthrough(),
|
|
1232
1259
|
)
|
|
1233
1260
|
.describe("Job postings in the canonical job_posting shape."),
|
|
1261
|
+
metadata: enrichmentMetadata,
|
|
1234
1262
|
})
|
|
1235
1263
|
.passthrough();
|
|
1236
1264
|
|
|
@@ -69,6 +69,8 @@ export type SearchPeopleBody = {
|
|
|
69
69
|
limit?: number;
|
|
70
70
|
offset?: number;
|
|
71
71
|
searchAfter?: unknown;
|
|
72
|
+
/** Opaque token from a previous response's `metadata.nextPageToken`. */
|
|
73
|
+
pageToken?: string;
|
|
72
74
|
// Rich filters, gateway-named. Merged with the legacy person*/organization*
|
|
73
75
|
// aliases above; entries may carry per-value exclude / exactMatch.
|
|
74
76
|
titles?: SearchFilterItem[];
|
|
@@ -104,6 +106,8 @@ export type SearchCompaniesBody = {
|
|
|
104
106
|
keywords?: string;
|
|
105
107
|
limit?: number;
|
|
106
108
|
offset?: number;
|
|
109
|
+
/** Opaque token from a previous response's `metadata.nextPageToken`. */
|
|
110
|
+
pageToken?: string;
|
|
107
111
|
};
|
|
108
112
|
|
|
109
113
|
export type SearchJobsBody = {
|
|
@@ -115,6 +119,8 @@ export type SearchJobsBody = {
|
|
|
115
119
|
keywords?: string;
|
|
116
120
|
postedAfter?: string;
|
|
117
121
|
limit?: number;
|
|
122
|
+
/** Opaque token from a previous response's `metadata.nextPageToken`. */
|
|
123
|
+
pageToken?: string;
|
|
118
124
|
};
|
|
119
125
|
|
|
120
126
|
export type EnrichmentGatewayOptions = {
|
|
@@ -1315,6 +1321,7 @@ export async function searchPeople(
|
|
|
1315
1321
|
else if (body.perPage !== undefined) payload.limit = body.perPage;
|
|
1316
1322
|
if (body.offset !== undefined) payload.offset = body.offset;
|
|
1317
1323
|
if (body.searchAfter !== undefined) payload.searchAfter = body.searchAfter;
|
|
1324
|
+
if (body.pageToken) payload.pageToken = body.pageToken;
|
|
1318
1325
|
|
|
1319
1326
|
return callGatewayJson("/v1/enrichment/people/search", {
|
|
1320
1327
|
method: "POST",
|
|
@@ -1338,6 +1345,7 @@ export async function searchCompanies(
|
|
|
1338
1345
|
if (body.keywords) payload.keywords = body.keywords;
|
|
1339
1346
|
if (body.limit !== undefined) payload.limit = body.limit;
|
|
1340
1347
|
if (body.offset !== undefined) payload.offset = body.offset;
|
|
1348
|
+
if (body.pageToken) payload.pageToken = body.pageToken;
|
|
1341
1349
|
return callGatewayJson("/v1/enrichment/company/search", {
|
|
1342
1350
|
method: "POST",
|
|
1343
1351
|
body: payload,
|
|
@@ -1359,6 +1367,7 @@ export async function searchJobs(
|
|
|
1359
1367
|
if (body.keywords) payload.keywords = body.keywords;
|
|
1360
1368
|
if (body.postedAfter) payload.postedAfter = body.postedAfter;
|
|
1361
1369
|
if (body.limit !== undefined) payload.limit = body.limit;
|
|
1370
|
+
if (body.pageToken) payload.pageToken = body.pageToken;
|
|
1362
1371
|
return callGatewayJson("/v1/enrichment/jobs/search", {
|
|
1363
1372
|
method: "POST",
|
|
1364
1373
|
body: payload,
|