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
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Retrieve a single Job Opening by ID
3
+ * Returns a single Job Opening.
4
+ * HTTP GET /job_openings/{id}
5
+ */
6
+ type jobOpening = (params: {
7
+ /** JobOpening's ID. */
8
+ id: string;
9
+ }) => Promise<{
10
+ data: Array<{
11
+ id: string;
12
+ type: "job_opening";
13
+ attributes: {
14
+ title: string;
15
+ description: string | null;
16
+ url: string;
17
+ first_seen_at: string;
18
+ last_seen_at: string;
19
+ last_processed_at: string;
20
+ contract_types: Array<Record<string, unknown>>;
21
+ categories: Array<"administration" | "consulting" | "data_analysis" | "design" | "directors" | "education" | "engineering" | "finance" | "healthcare_services" | "human_resources" | "information_technology" | "internship" | "legal" | "management" | "marketing" | "military_and_protective_services" | "operations" | "purchasing" | "product_management" | "quality_assurance" | "real_estate" | "research" | "sales" | "software_development" | "support" | "manual_work" | "food">;
22
+ onet_data: {
23
+ code: string | null;
24
+ family: string | null;
25
+ occupation_name: string | null;
26
+ };
27
+ posted_at: string | null;
28
+ recruiter_data: {
29
+ name: string | null;
30
+ title: string | null;
31
+ contact: string | null;
32
+ };
33
+ salary: string | null;
34
+ salary_data: {
35
+ salary_low: number | null;
36
+ salary_high: number | null;
37
+ salary_currency: string | null;
38
+ salary_low_usd: number | null;
39
+ salary_high_usd: number | null;
40
+ salary_time_unit: "hour" | "day" | "week" | "month" | "year" | null;
41
+ };
42
+ seniority: "not_set" | "founder" | "c_level" | "partner" | "president" | "vice_president" | "head" | "director" | "manager" | "mid_senior" | "junior" | "non_manager";
43
+ status: "closed" | null;
44
+ language: string | null;
45
+ location: string | null;
46
+ location_data: Array<{
47
+ city: unknown;
48
+ state: unknown;
49
+ zip_code: unknown;
50
+ country: unknown;
51
+ region: unknown;
52
+ continent: unknown;
53
+ fuzzy_match: unknown;
54
+ }>;
55
+ tags: Array<Record<string, unknown>>;
56
+ };
57
+ relationships: {
58
+ company: {
59
+ data: {
60
+ id: string;
61
+ type: "company";
62
+ };
63
+ };
64
+ };
65
+ }>;
66
+ included: Array<{
67
+ id: string;
68
+ type: "company";
69
+ attributes: {
70
+ domain: string;
71
+ company_name: string | null;
72
+ ticker: string | null;
73
+ };
74
+ }>;
75
+ meta?: {
76
+ schema_version: string;
77
+ record_state: "active";
78
+ count?: number;
79
+ };
80
+ }>;
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Retrieve a single News Event by ID
3
+ * Returns specific News Event.
4
+ * HTTP GET /news_events/{id}
5
+ */
6
+ type newsEvent = (params: {
7
+ /** NewsEvent's ID. */
8
+ id: string;
9
+ }) => Promise<{
10
+ data: Array<{
11
+ id: string;
12
+ type: "news_event";
13
+ attributes: {
14
+ summary: string;
15
+ category: "acquires" | "merges_with" | "sells_assets_to" | "signs_new_client" | "files_suit_against" | "has_issues_with" | "closes_offices_in" | "decreases_headcount_by" | "attends_event" | "expands_facilities" | "expands_offices_in" | "expands_offices_to" | "increases_headcount_by" | "opens_new_location" | "goes_public" | "invests_into" | "invests_into_assets" | "receives_financing" | "hires" | "leaves" | "promotes" | "retires_from" | "integrates_with" | "is_developing" | "launches" | "partners_with" | "receives_award" | "recognized_as" | "identified_as_competitor_of";
16
+ found_at: string;
17
+ confidence: number;
18
+ article_sentence: string;
19
+ planning: boolean;
20
+ amount: string | null;
21
+ amount_normalized: number | null;
22
+ assets: string | null;
23
+ assets_tags: Array<string>;
24
+ award: string | null;
25
+ contact: string | null;
26
+ event: string | null;
27
+ effective_date: string | null;
28
+ division: string | null;
29
+ financing_type: string | null;
30
+ financing_type_normalized: "pre_angel" | "angel_plus" | "angel_plus_plus" | "angel" | "angel_1" | "angel_2" | "angel_3" | "pre_seed" | "seed_plus" | "seed_plus_plus" | "seed" | "seed_1" | "seed_2" | "seed_3" | "pre_series_a" | "series_a_plus" | "series_a_plus_plus" | "series_a" | "series_a1" | "series_a2" | "series_a3" | "pre_series_b" | "series_b_plus" | "series_b_plus_plus" | "series_b" | "series_b1" | "series_b2" | "series_b3" | "pre_series_c" | "series_c_plus" | "series_c_plus_plus" | "series_c" | "series_c1" | "series_c2" | "series_c3" | "pre_series_d" | "series_d_plus" | "series_d_plus_plus" | "series_d" | "series_d1" | "series_d2" | "series_d3" | "pre_series_e" | "series_e_plus" | "series_e_plus_plus" | "series_e" | "series_e1" | "series_e2" | "series_e3" | "pre_series_f" | "series_f_plus" | "series_f_plus_plus" | "series_f" | "series_f1" | "series_f2" | "series_f3" | "pre_series_g" | "series_g_plus" | "series_g_plus_plus" | "series_g" | "series_g1" | "series_g2" | "series_g3" | "pre_series_h" | "series_h_plus" | "series_h_plus_plus" | "series_h" | "series_h1" | "series_h2" | "series_h3" | "pre_series_i" | "series_i_plus" | "series_i_plus_plus" | "series_i" | "series_i1" | "series_i2" | "series_i3" | "pre_series_j" | "series_j_plus" | "series_j_plus_plus" | "series_j" | "series_j1" | "series_j2" | "series_j3" | "pre_angel_bridge" | "angel_plus_bridge" | "angel_plus_plus_bridge" | "angel_bridge" | "angel_1_bridge" | "angel_2_bridge" | "angel_3_bridge" | "pre_seed_bridge" | "seed_plus_bridge" | "seed_plus_plus_bridge" | "seed_bridge" | "seed_1_bridge" | "seed_2_bridge" | "seed_3_bridge" | "pre_series_a_bridge" | "series_a_plus_bridge" | "series_a_plus_plus_bridge" | "series_a_bridge" | "series_a1_bridge" | "series_a2_bridge" | "series_a3_bridge" | "pre_series_b_bridge" | "series_b_plus_bridge" | "series_b_plus_plus_bridge" | "series_b_bridge" | "series_b1_bridge" | "series_b2_bridge" | "series_b3_bridge" | "pre_series_c_bridge" | "series_c_plus_bridge" | "series_c_plus_plus_bridge" | "series_c_bridge" | "series_c1_bridge" | "series_c2_bridge" | "series_c3_bridge" | "pre_series_d_bridge" | "series_d_plus_bridge" | "series_d_plus_plus_bridge" | "series_d_bridge" | "series_d1_bridge" | "series_d2_bridge" | "series_d3_bridge" | "pre_series_e_bridge" | "series_e_plus_bridge" | "series_e_plus_plus_bridge" | "series_e_bridge" | "series_e1_bridge" | "series_e2_bridge" | "series_e3_bridge" | null;
31
+ financing_type_tags: Array<string>;
32
+ headcount: number | null;
33
+ job_title: string | null;
34
+ job_title_tags: Array<string>;
35
+ location: string | null;
36
+ location_data: Array<{
37
+ city: unknown;
38
+ state: unknown;
39
+ zip_code: unknown;
40
+ country: unknown;
41
+ region: unknown;
42
+ continent: unknown;
43
+ fuzzy_match: unknown;
44
+ }>;
45
+ product: string | null;
46
+ product_data: {
47
+ full_text: string | null;
48
+ name: string | null;
49
+ release_type: string | null;
50
+ release_version: string | null;
51
+ fuzzy_match: boolean | null;
52
+ };
53
+ product_tags: Array<string>;
54
+ recognition: string | null;
55
+ vulnerability: string | null;
56
+ };
57
+ relationships: {
58
+ company1?: {
59
+ data: {
60
+ id: string;
61
+ type: "company";
62
+ };
63
+ };
64
+ company2?: {
65
+ data: {
66
+ id: string;
67
+ type: "company";
68
+ };
69
+ };
70
+ most_relevant_source: {
71
+ data: {
72
+ id: string;
73
+ type: "news_article";
74
+ };
75
+ };
76
+ };
77
+ }>;
78
+ included: Array<{
79
+ id: string;
80
+ type: "company";
81
+ attributes: {
82
+ domain: string;
83
+ company_name: string | null;
84
+ ticker: string | null;
85
+ };
86
+ } | {
87
+ id: string;
88
+ type: "news_article";
89
+ attributes: {
90
+ url: string;
91
+ title: string;
92
+ author: string | null;
93
+ image_url: string | null;
94
+ published_at: string;
95
+ body: string;
96
+ };
97
+ }>;
98
+ meta?: {
99
+ schema_version: string;
100
+ record_state: "active";
101
+ count?: number;
102
+ };
103
+ }>;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Retrieve News Events
3
+ * Returns a list of News Events, optionally filtered by categories and company's location, ordered by updated date.
4
+ * HTTP GET /discover/news_events
5
+ */
6
+ type newsEvents = (params: {
7
+ /** Comma-separated (,) `NewsEvent` categories. */
8
+ categories?: Array<"acquires" | "merges_with" | "sells_assets_to" | "signs_new_client" | "files_suit_against" | "has_issues_with" | "closes_offices_in" | "decreases_headcount_by" | "attends_event" | "expands_facilities" | "expands_offices_in" | "expands_offices_to" | "increases_headcount_by" | "opens_new_location" | "goes_public" | "invests_into" | "invests_into_assets" | "receives_financing" | "hires" | "leaves" | "promotes" | "retires_from" | "integrates_with" | "is_developing" | "launches" | "partners_with" | "receives_award" | "recognized_as" | "identified_as_competitor_of">;
9
+ /** The response will include only companies located in the given country name or state name/abbreviation. */
10
+ company_location?: string;
11
+ /** Page number of shown items. **NOTE**: If the parameter is not provided, the meta property `count` will be omitted from response for performance reasons. */
12
+ page?: number;
13
+ /** Limit the number of shown items per page. */
14
+ limit?: number;
15
+ }) => Promise<{
16
+ data: Array<{
17
+ id: string;
18
+ type: "news_event";
19
+ attributes: {
20
+ summary: string;
21
+ category: "acquires" | "merges_with" | "sells_assets_to" | "signs_new_client" | "files_suit_against" | "has_issues_with" | "closes_offices_in" | "decreases_headcount_by" | "attends_event" | "expands_facilities" | "expands_offices_in" | "expands_offices_to" | "increases_headcount_by" | "opens_new_location" | "goes_public" | "invests_into" | "invests_into_assets" | "receives_financing" | "hires" | "leaves" | "promotes" | "retires_from" | "integrates_with" | "is_developing" | "launches" | "partners_with" | "receives_award" | "recognized_as" | "identified_as_competitor_of";
22
+ found_at: string;
23
+ confidence: number;
24
+ article_sentence: string;
25
+ planning: boolean;
26
+ amount: string | null;
27
+ amount_normalized: number | null;
28
+ assets: string | null;
29
+ assets_tags: Array<string>;
30
+ award: string | null;
31
+ contact: string | null;
32
+ event: string | null;
33
+ effective_date: string | null;
34
+ division: string | null;
35
+ financing_type: string | null;
36
+ financing_type_normalized: "pre_angel" | "angel_plus" | "angel_plus_plus" | "angel" | "angel_1" | "angel_2" | "angel_3" | "pre_seed" | "seed_plus" | "seed_plus_plus" | "seed" | "seed_1" | "seed_2" | "seed_3" | "pre_series_a" | "series_a_plus" | "series_a_plus_plus" | "series_a" | "series_a1" | "series_a2" | "series_a3" | "pre_series_b" | "series_b_plus" | "series_b_plus_plus" | "series_b" | "series_b1" | "series_b2" | "series_b3" | "pre_series_c" | "series_c_plus" | "series_c_plus_plus" | "series_c" | "series_c1" | "series_c2" | "series_c3" | "pre_series_d" | "series_d_plus" | "series_d_plus_plus" | "series_d" | "series_d1" | "series_d2" | "series_d3" | "pre_series_e" | "series_e_plus" | "series_e_plus_plus" | "series_e" | "series_e1" | "series_e2" | "series_e3" | "pre_series_f" | "series_f_plus" | "series_f_plus_plus" | "series_f" | "series_f1" | "series_f2" | "series_f3" | "pre_series_g" | "series_g_plus" | "series_g_plus_plus" | "series_g" | "series_g1" | "series_g2" | "series_g3" | "pre_series_h" | "series_h_plus" | "series_h_plus_plus" | "series_h" | "series_h1" | "series_h2" | "series_h3" | "pre_series_i" | "series_i_plus" | "series_i_plus_plus" | "series_i" | "series_i1" | "series_i2" | "series_i3" | "pre_series_j" | "series_j_plus" | "series_j_plus_plus" | "series_j" | "series_j1" | "series_j2" | "series_j3" | "pre_angel_bridge" | "angel_plus_bridge" | "angel_plus_plus_bridge" | "angel_bridge" | "angel_1_bridge" | "angel_2_bridge" | "angel_3_bridge" | "pre_seed_bridge" | "seed_plus_bridge" | "seed_plus_plus_bridge" | "seed_bridge" | "seed_1_bridge" | "seed_2_bridge" | "seed_3_bridge" | "pre_series_a_bridge" | "series_a_plus_bridge" | "series_a_plus_plus_bridge" | "series_a_bridge" | "series_a1_bridge" | "series_a2_bridge" | "series_a3_bridge" | "pre_series_b_bridge" | "series_b_plus_bridge" | "series_b_plus_plus_bridge" | "series_b_bridge" | "series_b1_bridge" | "series_b2_bridge" | "series_b3_bridge" | "pre_series_c_bridge" | "series_c_plus_bridge" | "series_c_plus_plus_bridge" | "series_c_bridge" | "series_c1_bridge" | "series_c2_bridge" | "series_c3_bridge" | "pre_series_d_bridge" | "series_d_plus_bridge" | "series_d_plus_plus_bridge" | "series_d_bridge" | "series_d1_bridge" | "series_d2_bridge" | "series_d3_bridge" | "pre_series_e_bridge" | "series_e_plus_bridge" | "series_e_plus_plus_bridge" | "series_e_bridge" | "series_e1_bridge" | "series_e2_bridge" | "series_e3_bridge" | null;
37
+ financing_type_tags: Array<string>;
38
+ headcount: number | null;
39
+ job_title: string | null;
40
+ job_title_tags: Array<string>;
41
+ location: string | null;
42
+ location_data: Array<{
43
+ city: unknown;
44
+ state: unknown;
45
+ zip_code: unknown;
46
+ country: unknown;
47
+ region: unknown;
48
+ continent: unknown;
49
+ fuzzy_match: unknown;
50
+ }>;
51
+ product: string | null;
52
+ product_data: {
53
+ full_text: string | null;
54
+ name: string | null;
55
+ release_type: string | null;
56
+ release_version: string | null;
57
+ fuzzy_match: boolean | null;
58
+ };
59
+ product_tags: Array<string>;
60
+ recognition: string | null;
61
+ vulnerability: string | null;
62
+ };
63
+ relationships: {
64
+ company1?: {
65
+ data: {
66
+ id: string;
67
+ type: "company";
68
+ };
69
+ };
70
+ company2?: {
71
+ data: {
72
+ id: string;
73
+ type: "company";
74
+ };
75
+ };
76
+ most_relevant_source: {
77
+ data: {
78
+ id: string;
79
+ type: "news_article";
80
+ };
81
+ };
82
+ };
83
+ }>;
84
+ included: Array<{
85
+ id: string;
86
+ type: "company";
87
+ attributes: {
88
+ domain: string;
89
+ company_name: string | null;
90
+ ticker: string | null;
91
+ };
92
+ } | {
93
+ id: string;
94
+ type: "news_article";
95
+ attributes: {
96
+ url: string;
97
+ title: string;
98
+ author: string | null;
99
+ image_url: string | null;
100
+ published_at: string;
101
+ body: string;
102
+ };
103
+ }>;
104
+ meta?: {
105
+ schema_version: string;
106
+ record_state: "active";
107
+ count?: number;
108
+ };
109
+ }>;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Retrieve a single Product by ID
3
+ * Returns a single Product.
4
+ * HTTP GET /products/{id}
5
+ */
6
+ type product = (params: {
7
+ /** Product's ID. */
8
+ id: string;
9
+ }) => Promise<{
10
+ data: Array<{
11
+ id: string;
12
+ type: "product";
13
+ attributes: {
14
+ name: string;
15
+ sources: "menu" | "pricing";
16
+ source_url: string;
17
+ first_seen_at: string;
18
+ last_seen_at: string;
19
+ };
20
+ relationships: {
21
+ company: {
22
+ data: {
23
+ id: string;
24
+ type: "company";
25
+ };
26
+ };
27
+ };
28
+ }>;
29
+ included: Array<{
30
+ id: string;
31
+ type: "company";
32
+ attributes: {
33
+ domain: string;
34
+ company_name: string | null;
35
+ ticker: string | null;
36
+ };
37
+ }>;
38
+ meta?: {
39
+ schema_version: string;
40
+ record_state: "active";
41
+ count?: number;
42
+ };
43
+ }>;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Retrieve latest posts
3
+ * Returns a list of latest posts on popular startup platforms by companies that are hiring or launching new products.
4
+ * HTTP GET /discover/startup_platform_posts
5
+ */
6
+ type startupPlatformPosts = (params: {
7
+ /** Only return `StartupPlatformPosts` published after given date (ISO 8601). */
8
+ published_at_from?: string;
9
+ /** Only return `StartupPlatformPosts` published before given date (ISO 8601). */
10
+ published_at_until?: string;
11
+ /** Comma-separated (,) `StartupPlatformPost` post types. */
12
+ post_types?: Array<"show_hn" | "job_hn">;
13
+ /** Page number of shown items. **NOTE**: If the parameter is not provided, the meta property `count` will be omitted from response for performance reasons. */
14
+ page?: number;
15
+ /** Limit the number of shown items per page. */
16
+ limit?: number;
17
+ }) => Promise<{
18
+ data: Array<{
19
+ id: string;
20
+ type: "startup_platform_post";
21
+ attributes: {
22
+ published_at: string;
23
+ post_type: "show_hn" | "job_hn";
24
+ post_url: string;
25
+ company_domain: string;
26
+ company_name: string | null;
27
+ fuzzy_match: boolean;
28
+ };
29
+ }>;
30
+ meta?: {
31
+ schema_version: string;
32
+ record_state: "active";
33
+ count?: number;
34
+ };
35
+ }>;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Retrieve all tracked Technologies
3
+ * Returns a list of all tracked Technologies.
4
+ * HTTP GET /technologies
5
+ */
6
+ type technologies = (params: {
7
+ /** Filter results based on Technology's fuzzy name. */
8
+ fuzzy_name?: string;
9
+ /** Order of `TechnologiesDatasets`. */
10
+ order_by?: "created_at_asc" | "created_at_desc" | "fuzzy_score_desc";
11
+ /** Page number of shown items. **NOTE**: If the parameter is not provided, the meta property `count` will be omitted from response for performance reasons. */
12
+ page?: number;
13
+ /** Limit the number of shown items per page. */
14
+ limit?: number;
15
+ }) => Promise<{
16
+ data: Array<{
17
+ id: string;
18
+ type: "technology";
19
+ attributes: {
20
+ name: string;
21
+ description: string | null;
22
+ categories: Array<string>;
23
+ parent_categories: Array<"Accounting and Finance" | "Advertising" | "Audio, Video, Graphics" | "Communication and Collaboration" | "Customer Service" | "Data Management" | "DevOps" | "E-Commerce" | "Human Resources" | "Intelligence and Analytics" | "IT Infrastructure" | "Marketing" | "Operations" | "Programming" | "Sales" | "Security" | "Software Development" | "Web Tools and Plugins" | "Hardware" | "Certificates">;
24
+ domain: string | null;
25
+ url: string | null;
26
+ pricing_data: {
27
+ min_usd: number | null;
28
+ max_usd: number | null;
29
+ average_spend: number | null;
30
+ interval: string | null;
31
+ tags: Array<"poa" | "b2b" | "enterprise" | "free" | "freemium" | "high" | "low" | "mid" | "onetime" | "payg" | "recurring" | "trial" | "b2c">;
32
+ };
33
+ created_at: string;
34
+ };
35
+ relationships: {
36
+ company: {
37
+ data: {
38
+ id: string;
39
+ type: "company";
40
+ };
41
+ };
42
+ };
43
+ }>;
44
+ included: Array<{
45
+ id: string;
46
+ type: "company";
47
+ attributes: {
48
+ domain: string;
49
+ company_name: string | null;
50
+ ticker: string | null;
51
+ };
52
+ }>;
53
+ meta?: {
54
+ schema_version: string;
55
+ record_state: "active";
56
+ count?: number;
57
+ };
58
+ }>;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Retrieve a single Technology by ID or fuzzy name
3
+ * Returns a single Technology.
4
+ * HTTP GET /technologies/{id_or_fuzzy_name}
5
+ */
6
+ type technology = (params: {
7
+ /** Technology's ID or fuzzy name. */
8
+ id_or_fuzzy_name: string;
9
+ }) => Promise<{
10
+ data: Array<{
11
+ id: string;
12
+ type: "technology";
13
+ attributes: {
14
+ name: string;
15
+ description: string | null;
16
+ categories: Array<string>;
17
+ parent_categories: Array<"Accounting and Finance" | "Advertising" | "Audio, Video, Graphics" | "Communication and Collaboration" | "Customer Service" | "Data Management" | "DevOps" | "E-Commerce" | "Human Resources" | "Intelligence and Analytics" | "IT Infrastructure" | "Marketing" | "Operations" | "Programming" | "Sales" | "Security" | "Software Development" | "Web Tools and Plugins" | "Hardware" | "Certificates">;
18
+ domain: string | null;
19
+ url: string | null;
20
+ pricing_data: {
21
+ min_usd: number | null;
22
+ max_usd: number | null;
23
+ average_spend: number | null;
24
+ interval: string | null;
25
+ tags: Array<"poa" | "b2b" | "enterprise" | "free" | "freemium" | "high" | "low" | "mid" | "onetime" | "payg" | "recurring" | "trial" | "b2c">;
26
+ };
27
+ created_at: string;
28
+ };
29
+ relationships: {
30
+ company: {
31
+ data: {
32
+ id: string;
33
+ type: "company";
34
+ };
35
+ };
36
+ };
37
+ }>;
38
+ included: Array<{
39
+ id: string;
40
+ type: "company";
41
+ attributes: {
42
+ domain: string;
43
+ company_name: string | null;
44
+ ticker: string | null;
45
+ };
46
+ }>;
47
+ meta?: {
48
+ schema_version: string;
49
+ record_state: "active";
50
+ count?: number;
51
+ };
52
+ }>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Unfollow the company
3
+ * Unfollow the company.
4
+ * HTTP POST /companies/{company_id_or_domain}/unfollow
5
+ */
6
+ type unfollowCompany = (params: {
7
+ /** Company's ID or domain. */
8
+ company_id_or_domain: string;
9
+ }) => Promise<{
10
+ success: {
11
+ type: "unfollow_successful";
12
+ message: string;
13
+ };
14
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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",
@@ -1,11 +0,0 @@
1
- /** Credits: 1 (standard). Charged only if a valid URL is returned. */
2
-
3
- /**
4
- * Find a careers page for a company
5
- */
6
- type findPage = (params: {
7
- /** The domain to find the careers page for */
8
- domain?: string;
9
- /** The linkedin url of the company to find the careers page for */
10
- companyLinkedinUrl?: string;
11
- }) => Promise<{ url: string }>;