orangeslice 1.8.5 → 1.8.6

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.
@@ -40,6 +40,25 @@ export interface CompanyLinkedinFindUrlParams {
40
40
  website?: string;
41
41
  location?: string;
42
42
  }
43
+ export interface PersonContactGetParams {
44
+ linkedinUrl?: string;
45
+ required: Array<"email" | "work_email" | "phone">;
46
+ sources?: Array<"bcr">;
47
+ maxCoverage?: boolean;
48
+ domain?: string;
49
+ firstName?: string;
50
+ lastName?: string;
51
+ company?: string;
52
+ phoneNumber?: string;
53
+ userId?: string;
54
+ }
55
+ export interface PersonContactGetResult {
56
+ work_emails: string[];
57
+ work_phones: string[];
58
+ personal_emails: string[];
59
+ personal_phones: string[];
60
+ unknown_phones: string[];
61
+ }
43
62
  export declare function personLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
44
63
  export declare function companyLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
45
64
  /**
@@ -50,6 +69,10 @@ export declare function personLinkedinFindUrl(params: PersonLinkedinFindUrlParam
50
69
  * Find a LinkedIn company URL from website/company context.
51
70
  */
52
71
  export declare function companyLinkedinFindUrl(params: CompanyLinkedinFindUrlParams): Promise<string | null>;
72
+ /**
73
+ * Run contact waterfall through Inngest and poll until completion.
74
+ */
75
+ export declare function personContactGet(params: PersonContactGetParams): Promise<PersonContactGetResult>;
53
76
  export declare function companyGetEmployeesFromLinkedin(params: CompanyGetEmployeesFromLinkedinParams): Promise<CompanyGetEmployeesFromLinkedinResult>;
54
77
  export declare function geoParseAddress(params: Record<string, unknown>): Promise<unknown>;
55
78
  export declare function builtWithLookupDomain(params: Record<string, unknown>): Promise<unknown>;
package/dist/expansion.js CHANGED
@@ -4,6 +4,7 @@ exports.personLinkedinEnrich = personLinkedinEnrich;
4
4
  exports.companyLinkedinEnrich = companyLinkedinEnrich;
5
5
  exports.personLinkedinFindUrl = personLinkedinFindUrl;
6
6
  exports.companyLinkedinFindUrl = companyLinkedinFindUrl;
7
+ exports.personContactGet = personContactGet;
7
8
  exports.companyGetEmployeesFromLinkedin = companyGetEmployeesFromLinkedin;
8
9
  exports.geoParseAddress = geoParseAddress;
9
10
  exports.builtWithLookupDomain = builtWithLookupDomain;
@@ -101,6 +102,12 @@ async function companyLinkedinFindUrl(params) {
101
102
  const url = await (0, api_1.post)("findLinkedinCompanyUrl", params);
102
103
  return typeof url === "string" && url.trim().length > 0 ? url : null;
103
104
  }
105
+ /**
106
+ * Run contact waterfall through Inngest and poll until completion.
107
+ */
108
+ async function personContactGet(params) {
109
+ return (0, api_1.post)("contactInfoWaterfall", { ...params });
110
+ }
104
111
  async function companyGetEmployeesFromLinkedin(params) {
105
112
  return (0, api_1.post)("b2b-get-employees-for-company", params);
106
113
  }
package/dist/index.d.ts CHANGED
@@ -12,8 +12,8 @@ export { runApifyActor } from "./apify";
12
12
  export type { RunActorParams, RunActorResult, DatasetListParams } from "./apify";
13
13
  export { googleMapsScrape } from "./googleMaps";
14
14
  export type { GoogleMapsScrapeParams } from "./googleMaps";
15
- export { personLinkedinEnrich, personLinkedinFindUrl, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
16
- export type { PersonLinkedinFindUrlParams, CompanyLinkedinFindUrlParams, CompanyGetEmployeesFromLinkedinParams, CompanyGetEmployeesFromLinkedinResult, CompanyEmployeeFromB2B } from "./expansion";
15
+ export { personLinkedinEnrich, personLinkedinFindUrl, personContactGet, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
16
+ export type { PersonLinkedinFindUrlParams, CompanyLinkedinFindUrlParams, PersonContactGetParams, PersonContactGetResult, CompanyGetEmployeesFromLinkedinParams, CompanyGetEmployeesFromLinkedinResult, CompanyEmployeeFromB2B } from "./expansion";
17
17
  import { linkedinSearch } from "./b2b";
18
18
  import { webBatchSearch, webSearch } from "./serp";
19
19
  import { generateObject } from "./generateObject";
@@ -21,7 +21,7 @@ import { scrapeWebsite } from "./firecrawl";
21
21
  import { browserExecute } from "./browser";
22
22
  import { runApifyActor } from "./apify";
23
23
  import { googleMapsScrape } from "./googleMaps";
24
- import { personLinkedinEnrich, personLinkedinFindUrl, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
24
+ import { personLinkedinEnrich, personLinkedinFindUrl, personContactGet, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
25
25
  export declare const services: {
26
26
  company: {
27
27
  linkedin: {
@@ -37,6 +37,9 @@ export declare const services: {
37
37
  enrich: typeof personLinkedinEnrich;
38
38
  search: typeof linkedinSearch;
39
39
  };
40
+ contact: {
41
+ get: typeof personContactGet;
42
+ };
40
43
  };
41
44
  web: {
42
45
  search: typeof webSearch;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.services = exports.builtWithSearchByTech = exports.builtWithRelationships = exports.builtWithLookupDomain = exports.geoParseAddress = exports.companyGetEmployeesFromLinkedin = exports.companyLinkedinFindUrl = exports.companyLinkedinEnrich = exports.personLinkedinFindUrl = exports.personLinkedinEnrich = exports.googleMapsScrape = exports.runApifyActor = exports.browserExecute = exports.scrapeWebsite = exports.generateObject = exports.webBatchSearch = exports.webSearch = exports.linkedinSearch = void 0;
3
+ exports.services = exports.builtWithSearchByTech = exports.builtWithRelationships = exports.builtWithLookupDomain = exports.geoParseAddress = exports.companyGetEmployeesFromLinkedin = exports.companyLinkedinFindUrl = exports.companyLinkedinEnrich = exports.personContactGet = exports.personLinkedinFindUrl = exports.personLinkedinEnrich = exports.googleMapsScrape = exports.runApifyActor = exports.browserExecute = exports.scrapeWebsite = exports.generateObject = exports.webBatchSearch = exports.webSearch = exports.linkedinSearch = void 0;
4
4
  var b2b_1 = require("./b2b");
5
5
  Object.defineProperty(exports, "linkedinSearch", { enumerable: true, get: function () { return b2b_1.linkedinSearch; } });
6
6
  var serp_1 = require("./serp");
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "googleMapsScrape", { enumerable: true, get: func
19
19
  var expansion_1 = require("./expansion");
20
20
  Object.defineProperty(exports, "personLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.personLinkedinEnrich; } });
21
21
  Object.defineProperty(exports, "personLinkedinFindUrl", { enumerable: true, get: function () { return expansion_1.personLinkedinFindUrl; } });
22
+ Object.defineProperty(exports, "personContactGet", { enumerable: true, get: function () { return expansion_1.personContactGet; } });
22
23
  Object.defineProperty(exports, "companyLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.companyLinkedinEnrich; } });
23
24
  Object.defineProperty(exports, "companyLinkedinFindUrl", { enumerable: true, get: function () { return expansion_1.companyLinkedinFindUrl; } });
24
25
  Object.defineProperty(exports, "companyGetEmployeesFromLinkedin", { enumerable: true, get: function () { return expansion_1.companyGetEmployeesFromLinkedin; } });
@@ -48,6 +49,9 @@ exports.services = {
48
49
  findUrl: expansion_2.personLinkedinFindUrl,
49
50
  enrich: expansion_2.personLinkedinEnrich,
50
51
  search: b2b_2.linkedinSearch
52
+ },
53
+ contact: {
54
+ get: expansion_2.personContactGet
51
55
  }
52
56
  },
53
57
  web: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "B2B LinkedIn database prospector - 1.15B profiles, 85M companies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",