orangeslice 1.8.4 → 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.
@@ -28,8 +28,51 @@ export interface CompanyGetEmployeesFromLinkedinResult {
28
28
  nextPage: number | null;
29
29
  totalResults: number | null;
30
30
  }
31
+ export interface PersonLinkedinFindUrlParams {
32
+ name?: string;
33
+ title?: string;
34
+ company?: string;
35
+ keyword?: string;
36
+ location?: string;
37
+ }
38
+ export interface CompanyLinkedinFindUrlParams {
39
+ companyName?: string;
40
+ website?: string;
41
+ location?: string;
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
+ }
31
62
  export declare function personLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
32
63
  export declare function companyLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
64
+ /**
65
+ * Find a LinkedIn person profile URL from name/title/company context.
66
+ */
67
+ export declare function personLinkedinFindUrl(params: PersonLinkedinFindUrlParams): Promise<string | null>;
68
+ /**
69
+ * Find a LinkedIn company URL from website/company context.
70
+ */
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>;
33
76
  export declare function companyGetEmployeesFromLinkedin(params: CompanyGetEmployeesFromLinkedinParams): Promise<CompanyGetEmployeesFromLinkedinResult>;
34
77
  export declare function geoParseAddress(params: Record<string, unknown>): Promise<unknown>;
35
78
  export declare function builtWithLookupDomain(params: Record<string, unknown>): Promise<unknown>;
package/dist/expansion.js CHANGED
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.personLinkedinEnrich = personLinkedinEnrich;
4
4
  exports.companyLinkedinEnrich = companyLinkedinEnrich;
5
+ exports.personLinkedinFindUrl = personLinkedinFindUrl;
6
+ exports.companyLinkedinFindUrl = companyLinkedinFindUrl;
7
+ exports.personContactGet = personContactGet;
5
8
  exports.companyGetEmployeesFromLinkedin = companyGetEmployeesFromLinkedin;
6
9
  exports.geoParseAddress = geoParseAddress;
7
10
  exports.builtWithLookupDomain = builtWithLookupDomain;
@@ -85,6 +88,26 @@ async function companyLinkedinEnrich(params) {
85
88
  const data = await (0, api_1.post)("b2b", { sql }, { direct: true });
86
89
  return data.rows?.[0] ?? null;
87
90
  }
91
+ /**
92
+ * Find a LinkedIn person profile URL from name/title/company context.
93
+ */
94
+ async function personLinkedinFindUrl(params) {
95
+ const url = await (0, api_1.post)("linkedinFindProfileUrl", params);
96
+ return typeof url === "string" && url.trim().length > 0 ? url : null;
97
+ }
98
+ /**
99
+ * Find a LinkedIn company URL from website/company context.
100
+ */
101
+ async function companyLinkedinFindUrl(params) {
102
+ const url = await (0, api_1.post)("findLinkedinCompanyUrl", params);
103
+ return typeof url === "string" && url.trim().length > 0 ? url : null;
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
+ }
88
111
  async function companyGetEmployeesFromLinkedin(params) {
89
112
  return (0, api_1.post)("b2b-get-employees-for-company", params);
90
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, companyLinkedinEnrich, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
16
- export type { 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,10 +21,11 @@ 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, companyLinkedinEnrich, 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: {
28
+ findUrl: typeof companyLinkedinFindUrl;
28
29
  enrich: typeof companyLinkedinEnrich;
29
30
  search: typeof linkedinSearch;
30
31
  };
@@ -32,9 +33,13 @@ export declare const services: {
32
33
  };
33
34
  person: {
34
35
  linkedin: {
36
+ findUrl: typeof personLinkedinFindUrl;
35
37
  enrich: typeof personLinkedinEnrich;
36
38
  search: typeof linkedinSearch;
37
39
  };
40
+ contact: {
41
+ get: typeof personContactGet;
42
+ };
38
43
  };
39
44
  web: {
40
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.companyLinkedinEnrich = 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");
@@ -18,7 +18,10 @@ var googleMaps_1 = require("./googleMaps");
18
18
  Object.defineProperty(exports, "googleMapsScrape", { enumerable: true, get: function () { return googleMaps_1.googleMapsScrape; } });
19
19
  var expansion_1 = require("./expansion");
20
20
  Object.defineProperty(exports, "personLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.personLinkedinEnrich; } });
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; } });
21
23
  Object.defineProperty(exports, "companyLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.companyLinkedinEnrich; } });
24
+ Object.defineProperty(exports, "companyLinkedinFindUrl", { enumerable: true, get: function () { return expansion_1.companyLinkedinFindUrl; } });
22
25
  Object.defineProperty(exports, "companyGetEmployeesFromLinkedin", { enumerable: true, get: function () { return expansion_1.companyGetEmployeesFromLinkedin; } });
23
26
  Object.defineProperty(exports, "geoParseAddress", { enumerable: true, get: function () { return expansion_1.geoParseAddress; } });
24
27
  Object.defineProperty(exports, "builtWithLookupDomain", { enumerable: true, get: function () { return expansion_1.builtWithLookupDomain; } });
@@ -35,6 +38,7 @@ const expansion_2 = require("./expansion");
35
38
  exports.services = {
36
39
  company: {
37
40
  linkedin: {
41
+ findUrl: expansion_2.companyLinkedinFindUrl,
38
42
  enrich: expansion_2.companyLinkedinEnrich,
39
43
  search: b2b_2.linkedinSearch
40
44
  },
@@ -42,8 +46,12 @@ exports.services = {
42
46
  },
43
47
  person: {
44
48
  linkedin: {
49
+ findUrl: expansion_2.personLinkedinFindUrl,
45
50
  enrich: expansion_2.personLinkedinEnrich,
46
51
  search: b2b_2.linkedinSearch
52
+ },
53
+ contact: {
54
+ get: expansion_2.personContactGet
47
55
  }
48
56
  },
49
57
  web: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "1.8.4",
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",