@dench.com/cli 3.2.2-staging.305 → 3.2.3-staging.306
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 +5 -4
- package/leads.ts +5 -2
- package/lib/enrichment-gateway.ts +12 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -236,9 +236,10 @@ details instead of becoming competing result sets.
|
|
|
236
236
|
|
|
237
237
|
Before presenting a prospect shortlist, the skill saves an ICP relevance score
|
|
238
238
|
(0–100) and short reason for each profile against that search's resolved criteria,
|
|
239
|
-
using the general brief as relevant guidance.
|
|
240
|
-
**ICP fit** and **Why this lead**
|
|
241
|
-
|
|
239
|
+
using the general brief as relevant guidance. Saved assessments remain available
|
|
240
|
+
in list reads and CSV exports; the **ICP fit** and **Why this lead** columns are
|
|
241
|
+
temporarily hidden in Find. Scores are not conversion probabilities or CRM
|
|
242
|
+
statuses. To save assessments for canonical
|
|
242
243
|
rows returned by `lists rows`, create a JSON array of
|
|
243
244
|
`{row, suggestion: {fit, score, reason}}` (1–100 items per file):
|
|
244
245
|
|
|
@@ -249,7 +250,7 @@ dench lists assess <artifactId> --assessments-file /tmp/icp-assessments.json --j
|
|
|
249
250
|
`fit` is `likely_fit`, `unlikely_fit`, or `unknown`; `score` is a whole number
|
|
250
251
|
from 0 to 100. The CLI validates the file before writes and reports partial
|
|
251
252
|
failures; retrying updates existing assessments. Re-read rows to verify every
|
|
252
|
-
saved score and reason. Older
|
|
253
|
+
saved score and reason. Older profiles have no saved score until assessed.
|
|
253
254
|
|
|
254
255
|
Directory and row reads return `page`, `continueCursor`, and `isDone`.
|
|
255
256
|
Follow cursors even through empty filtered pages. Lists survive new chats;
|
package/leads.ts
CHANGED
|
@@ -914,8 +914,11 @@ export async function runLeadsCommand(opts: {
|
|
|
914
914
|
subFunctions: flags.subFunctions,
|
|
915
915
|
industries: flags.industries,
|
|
916
916
|
companyDomain: flags.companyDomain,
|
|
917
|
-
companyDomains:
|
|
918
|
-
companyNames:
|
|
917
|
+
companyDomains: flags.companyDomains,
|
|
918
|
+
companyNames: flags.companyNames,
|
|
919
|
+
companyScope: companyList
|
|
920
|
+
? { domains: companyList.domains, names: companyList.names }
|
|
921
|
+
: undefined,
|
|
919
922
|
pastCompanyNames: flags.pastCompanyNames,
|
|
920
923
|
companyHeadquarters: flags.companyHeadquarters,
|
|
921
924
|
companyTypes: flags.companyTypes,
|
|
@@ -94,6 +94,7 @@ export type SearchPeopleBody = {
|
|
|
94
94
|
companyNames?: SearchFilterItem[];
|
|
95
95
|
pastCompanyNames?: SearchFilterItem[];
|
|
96
96
|
companyDomains?: SearchFilterItem[];
|
|
97
|
+
companyScope?: { domains?: string[]; names?: string[] };
|
|
97
98
|
companyHeadquarters?: SearchFilterItem[];
|
|
98
99
|
companyTypes?: SearchFilterItem[];
|
|
99
100
|
universities?: SearchFilterItem[];
|
|
@@ -241,6 +242,7 @@ function mapRequiredFieldsToEnrichFields(rf?: string[]): EnrichField[] {
|
|
|
241
242
|
|
|
242
243
|
export type ApolloPersonEnvelope = {
|
|
243
244
|
person: {
|
|
245
|
+
search_match?: { derivedFields: string[]; basis: "current_title" };
|
|
244
246
|
name?: string;
|
|
245
247
|
first_name?: string;
|
|
246
248
|
last_name?: string;
|
|
@@ -267,6 +269,7 @@ export type ApolloPersonEnvelope = {
|
|
|
267
269
|
};
|
|
268
270
|
|
|
269
271
|
type EnrichedPersonUpsertLike = {
|
|
272
|
+
searchMatch?: { derivedFields: string[]; basis: "current_title" };
|
|
270
273
|
fullName?: string;
|
|
271
274
|
firstName?: string;
|
|
272
275
|
lastName?: string;
|
|
@@ -296,6 +299,7 @@ function shapePersonToApolloEnvelope(
|
|
|
296
299
|
const companyWebsite = u.currentCompanyWebsite;
|
|
297
300
|
return {
|
|
298
301
|
person: {
|
|
302
|
+
...(u.searchMatch ? { search_match: u.searchMatch } : {}),
|
|
299
303
|
name: u.fullName,
|
|
300
304
|
first_name: u.firstName,
|
|
301
305
|
last_name: u.lastName,
|
|
@@ -365,6 +369,8 @@ type EnrichedCompanyUpsertLike = {
|
|
|
365
369
|
totalFunding?: number;
|
|
366
370
|
description?: string;
|
|
367
371
|
hqAddress?: {
|
|
372
|
+
line1?: string;
|
|
373
|
+
line2?: string;
|
|
368
374
|
city?: string;
|
|
369
375
|
region?: string;
|
|
370
376
|
country?: string;
|
|
@@ -378,7 +384,7 @@ function shapeCompanyToApolloEnvelope(
|
|
|
378
384
|
const hq = c.hqAddress;
|
|
379
385
|
const city = hq?.city;
|
|
380
386
|
const country = hq?.country ?? hq?.countryCode;
|
|
381
|
-
const hqLocationParts = [city, country].filter(
|
|
387
|
+
const hqLocationParts = [city ?? hq?.line1, hq?.region, country].filter(
|
|
382
388
|
(v): v is string => typeof v === "string" && v.length > 0,
|
|
383
389
|
);
|
|
384
390
|
return {
|
|
@@ -399,7 +405,10 @@ function shapeCompanyToApolloEnvelope(
|
|
|
399
405
|
hq_country: hq?.country,
|
|
400
406
|
hq_country_code: hq?.countryCode,
|
|
401
407
|
hq_location:
|
|
402
|
-
|
|
408
|
+
hq?.line2?.trim() ||
|
|
409
|
+
(hqLocationParts.length > 0
|
|
410
|
+
? [...new Set(hqLocationParts)].join(", ")
|
|
411
|
+
: undefined),
|
|
403
412
|
},
|
|
404
413
|
};
|
|
405
414
|
}
|
|
@@ -1443,6 +1452,7 @@ export function buildPeopleSearchRequest(
|
|
|
1443
1452
|
}
|
|
1444
1453
|
|
|
1445
1454
|
const keywords = body.keywords ?? body.qKeywords;
|
|
1455
|
+
if (body.companyScope) payload.companyScope = body.companyScope;
|
|
1446
1456
|
if (keywords) payload.keywords = keywords;
|
|
1447
1457
|
if (body.limit !== undefined) payload.limit = body.limit;
|
|
1448
1458
|
else if (body.perPage !== undefined) payload.limit = body.perPage;
|