orangeslice 1.8.4 → 1.8.5
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/dist/expansion.d.ts +20 -0
- package/dist/expansion.js +16 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/expansion.d.ts
CHANGED
|
@@ -28,8 +28,28 @@ 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
|
+
}
|
|
31
43
|
export declare function personLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
|
|
32
44
|
export declare function companyLinkedinEnrich(params: Record<string, unknown>): Promise<unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Find a LinkedIn person profile URL from name/title/company context.
|
|
47
|
+
*/
|
|
48
|
+
export declare function personLinkedinFindUrl(params: PersonLinkedinFindUrlParams): Promise<string | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Find a LinkedIn company URL from website/company context.
|
|
51
|
+
*/
|
|
52
|
+
export declare function companyLinkedinFindUrl(params: CompanyLinkedinFindUrlParams): Promise<string | null>;
|
|
33
53
|
export declare function companyGetEmployeesFromLinkedin(params: CompanyGetEmployeesFromLinkedinParams): Promise<CompanyGetEmployeesFromLinkedinResult>;
|
|
34
54
|
export declare function geoParseAddress(params: Record<string, unknown>): Promise<unknown>;
|
|
35
55
|
export declare function builtWithLookupDomain(params: Record<string, unknown>): Promise<unknown>;
|
package/dist/expansion.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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;
|
|
5
7
|
exports.companyGetEmployeesFromLinkedin = companyGetEmployeesFromLinkedin;
|
|
6
8
|
exports.geoParseAddress = geoParseAddress;
|
|
7
9
|
exports.builtWithLookupDomain = builtWithLookupDomain;
|
|
@@ -85,6 +87,20 @@ async function companyLinkedinEnrich(params) {
|
|
|
85
87
|
const data = await (0, api_1.post)("b2b", { sql }, { direct: true });
|
|
86
88
|
return data.rows?.[0] ?? null;
|
|
87
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Find a LinkedIn person profile URL from name/title/company context.
|
|
92
|
+
*/
|
|
93
|
+
async function personLinkedinFindUrl(params) {
|
|
94
|
+
const url = await (0, api_1.post)("linkedinFindProfileUrl", params);
|
|
95
|
+
return typeof url === "string" && url.trim().length > 0 ? url : null;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Find a LinkedIn company URL from website/company context.
|
|
99
|
+
*/
|
|
100
|
+
async function companyLinkedinFindUrl(params) {
|
|
101
|
+
const url = await (0, api_1.post)("findLinkedinCompanyUrl", params);
|
|
102
|
+
return typeof url === "string" && url.trim().length > 0 ? url : null;
|
|
103
|
+
}
|
|
88
104
|
async function companyGetEmployeesFromLinkedin(params) {
|
|
89
105
|
return (0, api_1.post)("b2b-get-employees-for-company", params);
|
|
90
106
|
}
|
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, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
|
|
16
|
+
export type { PersonLinkedinFindUrlParams, CompanyLinkedinFindUrlParams, 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, 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,6 +33,7 @@ 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
|
};
|
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.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,9 @@ 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; } });
|
|
21
22
|
Object.defineProperty(exports, "companyLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.companyLinkedinEnrich; } });
|
|
23
|
+
Object.defineProperty(exports, "companyLinkedinFindUrl", { enumerable: true, get: function () { return expansion_1.companyLinkedinFindUrl; } });
|
|
22
24
|
Object.defineProperty(exports, "companyGetEmployeesFromLinkedin", { enumerable: true, get: function () { return expansion_1.companyGetEmployeesFromLinkedin; } });
|
|
23
25
|
Object.defineProperty(exports, "geoParseAddress", { enumerable: true, get: function () { return expansion_1.geoParseAddress; } });
|
|
24
26
|
Object.defineProperty(exports, "builtWithLookupDomain", { enumerable: true, get: function () { return expansion_1.builtWithLookupDomain; } });
|
|
@@ -35,6 +37,7 @@ const expansion_2 = require("./expansion");
|
|
|
35
37
|
exports.services = {
|
|
36
38
|
company: {
|
|
37
39
|
linkedin: {
|
|
40
|
+
findUrl: expansion_2.companyLinkedinFindUrl,
|
|
38
41
|
enrich: expansion_2.companyLinkedinEnrich,
|
|
39
42
|
search: b2b_2.linkedinSearch
|
|
40
43
|
},
|
|
@@ -42,6 +45,7 @@ exports.services = {
|
|
|
42
45
|
},
|
|
43
46
|
person: {
|
|
44
47
|
linkedin: {
|
|
48
|
+
findUrl: expansion_2.personLinkedinFindUrl,
|
|
45
49
|
enrich: expansion_2.personLinkedinEnrich,
|
|
46
50
|
search: b2b_2.linkedinSearch
|
|
47
51
|
}
|