orangeslice 2.0.0 → 2.0.1

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.
Files changed (37) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/index.js +8 -2
  3. package/dist/predictLeads.d.ts +36 -0
  4. package/dist/predictLeads.js +44 -0
  5. package/docs/prospecting/index.md +16 -0
  6. package/docs/providers/predictleads/openapi.json +13209 -0
  7. package/docs/services/index.md +1 -0
  8. package/docs/services/person/linkedin/findUrl.md +2 -0
  9. package/docs/services/predictLeads/apiSubscription.ts +19 -0
  10. package/docs/services/predictLeads/companies.ts +84 -0
  11. package/docs/services/predictLeads/company.ts +78 -0
  12. package/docs/services/predictLeads/companyConnections.ts +59 -0
  13. package/docs/services/predictLeads/companyFinancingEvents.ts +60 -0
  14. package/docs/services/predictLeads/companyGithubRepositories.ts +64 -0
  15. package/docs/services/predictLeads/companyJobOpenings.ts +102 -0
  16. package/docs/services/predictLeads/companyNewsEvents.ts +113 -0
  17. package/docs/services/predictLeads/companyProducts.ts +51 -0
  18. package/docs/services/predictLeads/companySimilarCompanies.ts +50 -0
  19. package/docs/services/predictLeads/companyTechnologyDetections.ts +122 -0
  20. package/docs/services/predictLeads/companyWebsiteEvolution.ts +54 -0
  21. package/docs/services/predictLeads/discoverConnectionInvestors.ts +59 -0
  22. package/docs/services/predictLeads/discoverJobOpenings.ts +86 -0
  23. package/docs/services/predictLeads/discoverProducts.ts +51 -0
  24. package/docs/services/predictLeads/discoverTechnologyTechnologyDetections.ts +122 -0
  25. package/docs/services/predictLeads/financingEvents.ts +58 -0
  26. package/docs/services/predictLeads/followCompany.ts +16 -0
  27. package/docs/services/predictLeads/followedCompanies.ts +16 -0
  28. package/docs/services/predictLeads/jobOpening.ts +80 -0
  29. package/docs/services/predictLeads/newsEvent.ts +103 -0
  30. package/docs/services/predictLeads/newsEvents.ts +109 -0
  31. package/docs/services/predictLeads/product.ts +43 -0
  32. package/docs/services/predictLeads/startupPlatformPosts.ts +35 -0
  33. package/docs/services/predictLeads/technologies.ts +58 -0
  34. package/docs/services/predictLeads/technology.ts +52 -0
  35. package/docs/services/predictLeads/unfollowCompany.ts +14 -0
  36. package/package.json +1 -1
  37. package/docs/services/company/careers/findPage.ts +0 -11
package/dist/index.d.ts CHANGED
@@ -14,6 +14,8 @@ export { runApifyActor } from "./apify";
14
14
  export type { RunActorParams, RunActorResult, DatasetListParams } from "./apify";
15
15
  export { googleMapsScrape } from "./googleMaps";
16
16
  export type { GoogleMapsScrapeParams } from "./googleMaps";
17
+ export { executePredictLeads, predictLeads, PREDICT_LEADS_OPERATION_IDS } from "./predictLeads";
18
+ export type { PredictLeadsMethodName, PredictLeadsParams, PredictLeadsServiceMap } from "./predictLeads";
17
19
  export { personLinkedinEnrich, personLinkedinFindUrl, personContactGet, companyLinkedinEnrich, companyLinkedinFindUrl, companyGetEmployeesFromLinkedin, geoParseAddress, builtWithLookupDomain, builtWithRelationships, builtWithSearchByTech } from "./expansion";
18
20
  export type { PersonLinkedinFindUrlParams, CompanyLinkedinFindUrlParams, PersonContactGetParams, PersonContactGetResult, CompanyGetEmployeesFromLinkedinParams, CompanyGetEmployeesFromLinkedinResult, CompanyEmployeeFromB2B } from "./expansion";
19
21
  import { runApifyActor } from "./apify";
@@ -70,5 +72,6 @@ export declare const services: {
70
72
  relationships: typeof builtWithRelationships;
71
73
  searchByTech: typeof builtWithSearchByTech;
72
74
  };
75
+ predictLeads: Readonly<import("./predictLeads").PredictLeadsServiceMap>;
73
76
  };
74
77
  export default services;
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.personContactGet = exports.personLinkedinFindUrl = exports.personLinkedinEnrich = exports.googleMapsScrape = exports.runApifyActor = exports.browserExecute = exports.scrapeWebsite = exports.generateObject = exports.webBatchSearch = exports.webSearch = exports.linkedinSearch = exports.configure = 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.PREDICT_LEADS_OPERATION_IDS = exports.predictLeads = exports.executePredictLeads = exports.googleMapsScrape = exports.runApifyActor = exports.browserExecute = exports.scrapeWebsite = exports.generateObject = exports.webBatchSearch = exports.webSearch = exports.linkedinSearch = exports.configure = void 0;
4
4
  var api_1 = require("./api");
5
5
  Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return api_1.configure; } });
6
6
  var b2b_1 = require("./b2b");
@@ -18,6 +18,10 @@ var apify_1 = require("./apify");
18
18
  Object.defineProperty(exports, "runApifyActor", { enumerable: true, get: function () { return apify_1.runApifyActor; } });
19
19
  var googleMaps_1 = require("./googleMaps");
20
20
  Object.defineProperty(exports, "googleMapsScrape", { enumerable: true, get: function () { return googleMaps_1.googleMapsScrape; } });
21
+ var predictLeads_1 = require("./predictLeads");
22
+ Object.defineProperty(exports, "executePredictLeads", { enumerable: true, get: function () { return predictLeads_1.executePredictLeads; } });
23
+ Object.defineProperty(exports, "predictLeads", { enumerable: true, get: function () { return predictLeads_1.predictLeads; } });
24
+ Object.defineProperty(exports, "PREDICT_LEADS_OPERATION_IDS", { enumerable: true, get: function () { return predictLeads_1.PREDICT_LEADS_OPERATION_IDS; } });
21
25
  var expansion_1 = require("./expansion");
22
26
  Object.defineProperty(exports, "personLinkedinEnrich", { enumerable: true, get: function () { return expansion_1.personLinkedinEnrich; } });
23
27
  Object.defineProperty(exports, "personLinkedinFindUrl", { enumerable: true, get: function () { return expansion_1.personLinkedinFindUrl; } });
@@ -36,6 +40,7 @@ const expansion_2 = require("./expansion");
36
40
  const firecrawl_2 = require("./firecrawl");
37
41
  const generateObject_2 = require("./generateObject");
38
42
  const googleMaps_2 = require("./googleMaps");
43
+ const predictLeads_2 = require("./predictLeads");
39
44
  const serp_2 = require("./serp");
40
45
  exports.services = {
41
46
  company: {
@@ -82,6 +87,7 @@ exports.services = {
82
87
  lookupDomain: expansion_2.builtWithLookupDomain,
83
88
  relationships: expansion_2.builtWithRelationships,
84
89
  searchByTech: expansion_2.builtWithSearchByTech
85
- }
90
+ },
91
+ predictLeads: predictLeads_2.predictLeads
86
92
  };
87
93
  exports.default = exports.services;
@@ -0,0 +1,36 @@
1
+ export declare const PREDICT_LEADS_OPERATION_IDS: {
2
+ readonly apiSubscription: "api_subscription";
3
+ readonly companies: "companies";
4
+ readonly company: "company";
5
+ readonly companyConnections: "company_connections";
6
+ readonly companyFinancingEvents: "company_financing_events";
7
+ readonly companyGithubRepositories: "company_github_repositories";
8
+ readonly companyJobOpenings: "company_job_openings";
9
+ readonly companyNewsEvents: "company_news_events";
10
+ readonly companyProducts: "company_products";
11
+ readonly companySimilarCompanies: "company_similar_companies";
12
+ readonly companyTechnologyDetections: "company_technology_detections";
13
+ readonly companyWebsiteEvolution: "company_website_evolution";
14
+ readonly discoverConnectionInvestors: "discover_connection_investors";
15
+ readonly discoverJobOpenings: "discover_job_openings";
16
+ readonly discoverProducts: "discover_products";
17
+ readonly discoverTechnologyTechnologyDetections: "discover_technology_technology_detections";
18
+ readonly financingEvents: "financing_events";
19
+ readonly followCompany: "follow_company";
20
+ readonly followedCompanies: "followed_companies";
21
+ readonly jobOpening: "job_opening";
22
+ readonly newsEvent: "news_event";
23
+ readonly newsEvents: "news_events";
24
+ readonly product: "product";
25
+ readonly startupPlatformPosts: "startup_platform_posts";
26
+ readonly technologies: "technologies";
27
+ readonly technology: "technology";
28
+ readonly unfollowCompany: "unfollow_company";
29
+ };
30
+ export type PredictLeadsMethodName = keyof typeof PREDICT_LEADS_OPERATION_IDS;
31
+ export type PredictLeadsParams = Record<string, unknown>;
32
+ export type PredictLeadsServiceMap = {
33
+ [K in PredictLeadsMethodName]: (params?: PredictLeadsParams) => Promise<unknown>;
34
+ };
35
+ export declare function executePredictLeads(operationId: (typeof PREDICT_LEADS_OPERATION_IDS)[PredictLeadsMethodName], params?: PredictLeadsParams): Promise<unknown>;
36
+ export declare const predictLeads: Readonly<PredictLeadsServiceMap>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.predictLeads = exports.PREDICT_LEADS_OPERATION_IDS = void 0;
4
+ exports.executePredictLeads = executePredictLeads;
5
+ const api_1 = require("./api");
6
+ exports.PREDICT_LEADS_OPERATION_IDS = {
7
+ apiSubscription: "api_subscription",
8
+ companies: "companies",
9
+ company: "company",
10
+ companyConnections: "company_connections",
11
+ companyFinancingEvents: "company_financing_events",
12
+ companyGithubRepositories: "company_github_repositories",
13
+ companyJobOpenings: "company_job_openings",
14
+ companyNewsEvents: "company_news_events",
15
+ companyProducts: "company_products",
16
+ companySimilarCompanies: "company_similar_companies",
17
+ companyTechnologyDetections: "company_technology_detections",
18
+ companyWebsiteEvolution: "company_website_evolution",
19
+ discoverConnectionInvestors: "discover_connection_investors",
20
+ discoverJobOpenings: "discover_job_openings",
21
+ discoverProducts: "discover_products",
22
+ discoverTechnologyTechnologyDetections: "discover_technology_technology_detections",
23
+ financingEvents: "financing_events",
24
+ followCompany: "follow_company",
25
+ followedCompanies: "followed_companies",
26
+ jobOpening: "job_opening",
27
+ newsEvent: "news_event",
28
+ newsEvents: "news_events",
29
+ product: "product",
30
+ startupPlatformPosts: "startup_platform_posts",
31
+ technologies: "technologies",
32
+ technology: "technology",
33
+ unfollowCompany: "unfollow_company"
34
+ };
35
+ async function executePredictLeads(operationId, params) {
36
+ return (0, api_1.post)("/execute/predictleads", {
37
+ operationId,
38
+ params: params ?? {}
39
+ });
40
+ }
41
+ exports.predictLeads = Object.freeze(Object.fromEntries(Object.entries(exports.PREDICT_LEADS_OPERATION_IDS).map(([methodName, operationId]) => [
42
+ methodName,
43
+ async (params) => executePredictLeads(operationId, params)
44
+ ])));
@@ -83,12 +83,28 @@ When using qualification columns, think Circle & Star:
83
83
  | Source | Use When | Limitations |
84
84
  | ------------------------ | ----------------------------------------------------------- | -------------------------------------------------------- |
85
85
  | **Web Search (Default)** | **Everything else** — keywords, niche, fuzzy, specific | Requires verification columns for false positives. |
86
+ | **PredictLeads** | Company intelligence, buying signals, and structured company events at scale | Coverage varies by company/market; use web search for very niche long-tail discovery. |
86
87
  | **Niche Directory Scrape** | Well-defined categories with existing lists (see below) | Requires finding the right directory first. |
87
88
  | **LinkedIn B2B DB** | **Indexed lookups ONLY:** company by domain/slug/ID, employees at known company, basic 2-table funding. | **3s hard max. No keyword search, no LATERAL, no 3+ table joins.** Everything else = web search. |
88
89
  | **Google Maps** | Local/SMB, physical locations, restaurants, retail | Limited to businesses with physical presence. |
89
90
  | **NPI Database** | Healthcare providers | Healthcare only. Free. |
90
91
  | **Apify Actors** | Platform-specific scraping (Instagram, TikTok, job boards) | Per-platform setup. May break with platform changes. |
91
92
 
93
+ ### PredictLeads: When It Is Better Than Everything Else
94
+
95
+ Use PredictLeads first when the user needs **high-quality structured company data** and not just URLs.
96
+
97
+ PredictLeads is usually the best choice for:
98
+ - Tracking **company signals over time** (news, financing, hiring, tech detections, product changes, website evolution)
99
+ - Pulling **normalized lists** (job openings, technologies, investors/connections, similar companies) without custom scraping
100
+ - Building qualification columns where consistency matters more than recall
101
+ - Workflows that need stable structured fields instead of parsing search snippets
102
+
103
+ Prefer other sources when:
104
+ - You need **brand-new niche discovery** with fuzzy intent matching -> use `web.search`
105
+ - You need local storefront/SMB discovery -> use Google Maps
106
+ - You need fast indexed LinkedIn lookups by known IDs/domain/company -> use LinkedIn B2B DB
107
+
92
108
  ### Niche Directory Scraping — For Well-Defined Categories
93
109
 
94
110
  When users ask for companies in a **specific, well-defined niche** (e.g., "fast food chains", "Fortune 500 companies", "Y Combinator startups"), the best approach is often to **find and scrape a curated directory or list**.