@puppi/adapter-apollo 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,785 @@
1
+ /**
2
+ * Source connector for Apollo.io people and organization enrichment and search.
3
+ */
4
+ import { TerminalError, type CredentialCheck, type ClientOptions, type Page, OpenApiClient } from "@puppi/sdk";
5
+ import connector from "./define.js";
6
+ import type { operations as spec } from "./openapi.js";
7
+ import { type Api } from "./operations.js";
8
+ type PersonQuery = NonNullable<spec["people-enrichment"]["parameters"]["query"]>;
9
+ type PeopleBulkQuery = NonNullable<spec["bulk-people-enrichment"]["parameters"]["query"]>;
10
+ type OrganizationQuery = NonNullable<spec["organization-enrichment"]["parameters"]["query"]>;
11
+ type PeopleSearchQuery = Omit<NonNullable<spec["people-api-search"]["parameters"]["query"]>, "page" | "per_page">;
12
+ type OrganizationSearchQuery = Omit<NonNullable<spec["organization-search"]["parameters"]["query"]>, "page" | "per_page">;
13
+ export type PersonEnrichment = Api["responses"]["people-enrichment"];
14
+ export type PeopleEnrichment = Api["responses"]["bulk-people-enrichment"];
15
+ export type OrganizationEnrichment = Api["responses"]["organization-enrichment"];
16
+ export type OrganizationsEnrichment = Api["responses"]["bulk-organization-enrichment"];
17
+ type SearchRow<Body, Key extends string> = NonNullable<Body> extends {
18
+ [K in Key]?: readonly (infer Row)[] | null;
19
+ } ? NonNullable<Row> : never;
20
+ export type Person = SearchRow<Api["responses"]["people-api-search"], "people">;
21
+ export type Organization = SearchRow<Api["responses"]["organization-search"], "organizations">;
22
+ export type PeopleBulkBody = NonNullable<Api["requests"]["bulk-people-enrichment"]>;
23
+ export type OrganizationsBulkBody = NonNullable<Api["requests"]["bulk-organization-enrichment"]>;
24
+ export default connector;
25
+ export declare class SearchCapError extends TerminalError {
26
+ readonly code = "search_cap";
27
+ constructor();
28
+ }
29
+ export declare class Client extends OpenApiClient<Api> {
30
+ constructor(config: Record<string, unknown>, secrets?: Record<string, string>, options?: ClientOptions);
31
+ /** `GET /users/api_profile` proves `api_key`. */
32
+ check(): Promise<CredentialCheck>;
33
+ /** One person from `POST /people/match`. The return value is Apollo's body. */
34
+ enrichPerson(args?: {
35
+ query?: PersonQuery;
36
+ }): Promise<{
37
+ request_id?: number;
38
+ request_id_str?: string;
39
+ person?: {
40
+ id?: string;
41
+ first_name?: string;
42
+ last_name?: string;
43
+ name?: string;
44
+ linkedin_url?: string;
45
+ title?: string;
46
+ email_status?: string;
47
+ photo_url?: string;
48
+ twitter_url?: unknown;
49
+ github_url?: unknown;
50
+ facebook_url?: unknown;
51
+ extrapolated_email_confidence?: number | null;
52
+ headline?: string;
53
+ email?: string;
54
+ organization_id?: string;
55
+ match_confidence?: "high" | "medium" | "low" | "none";
56
+ employment_history?: {
57
+ _id?: string;
58
+ created_at?: unknown;
59
+ current?: boolean;
60
+ degree?: unknown;
61
+ description?: unknown;
62
+ emails?: unknown;
63
+ end_date?: unknown;
64
+ grade_level?: unknown;
65
+ kind?: unknown;
66
+ major?: unknown;
67
+ organization_id?: string;
68
+ organization_name?: string;
69
+ raw_address?: unknown;
70
+ start_date?: string;
71
+ title?: string;
72
+ updated_at?: unknown;
73
+ id?: string;
74
+ key?: string;
75
+ }[];
76
+ state?: string;
77
+ city?: string;
78
+ country?: string;
79
+ contact_id?: string;
80
+ contact?: {
81
+ contact_roles?: unknown[];
82
+ id?: string;
83
+ first_name?: string;
84
+ last_name?: string;
85
+ name?: string;
86
+ linkedin_url?: string;
87
+ title?: string;
88
+ contact_stage_id?: string;
89
+ owner_id?: unknown;
90
+ creator_id?: string;
91
+ person_id?: string;
92
+ email_needs_tickling?: unknown;
93
+ organization_name?: string;
94
+ source?: string;
95
+ original_source?: string;
96
+ organization_id?: string;
97
+ headline?: string;
98
+ photo_url?: unknown;
99
+ present_raw_address?: string;
100
+ linkedin_uid?: unknown;
101
+ extrapolated_email_confidence?: number | null;
102
+ salesforce_id?: unknown;
103
+ salesforce_lead_id?: unknown;
104
+ salesforce_contact_id?: unknown;
105
+ salesforce_account_id?: unknown;
106
+ crm_owner_id?: unknown;
107
+ created_at?: string;
108
+ emailer_campaign_ids?: unknown[];
109
+ direct_dial_status?: unknown;
110
+ direct_dial_enrichment_failed_at?: unknown;
111
+ email_status?: string;
112
+ email_source?: unknown;
113
+ account_id?: string;
114
+ last_activity_date?: unknown;
115
+ hubspot_vid?: unknown;
116
+ hubspot_company_id?: unknown;
117
+ crm_id?: unknown;
118
+ sanitized_phone?: string;
119
+ merged_crm_ids?: unknown;
120
+ updated_at?: string;
121
+ queued_for_crm_push?: unknown;
122
+ suggested_from_rule_engine_config_id?: unknown;
123
+ email_unsubscribed?: unknown;
124
+ label_ids?: unknown[];
125
+ has_pending_email_arcgate_request?: boolean;
126
+ has_email_arcgate_request?: boolean;
127
+ existence_level?: string;
128
+ email?: string;
129
+ email_from_customer?: boolean;
130
+ typed_custom_fields?: Record<string, unknown>;
131
+ custom_field_errors?: unknown;
132
+ crm_record_url?: unknown;
133
+ email_status_unavailable_reason?: unknown;
134
+ email_true_status?: string;
135
+ updated_email_true_status?: boolean;
136
+ contact_rule_config_statuses?: unknown[];
137
+ source_display_name?: string;
138
+ contact_emails?: {
139
+ email?: string;
140
+ email_md5?: string;
141
+ email_sha256?: string;
142
+ email_status?: string;
143
+ email_source?: unknown;
144
+ extrapolated_email_confidence?: number | null;
145
+ position?: number;
146
+ email_from_customer?: unknown;
147
+ free_domain?: boolean;
148
+ }[];
149
+ time_zone?: string;
150
+ phone_numbers?: {
151
+ raw_number?: string;
152
+ sanitized_number?: string;
153
+ type?: unknown;
154
+ position?: number;
155
+ status?: string;
156
+ dnc_status?: unknown;
157
+ dnc_other_info?: unknown;
158
+ dialer_flags?: unknown;
159
+ }[];
160
+ account_phone_note?: unknown;
161
+ free_domain?: boolean;
162
+ is_likely_to_engage?: boolean;
163
+ };
164
+ revealed_for_current_team?: boolean;
165
+ organization?: {
166
+ id?: string;
167
+ name?: string;
168
+ website_url?: string;
169
+ blog_url?: unknown;
170
+ angellist_url?: unknown;
171
+ linkedin_url?: string;
172
+ twitter_url?: string;
173
+ facebook_url?: string;
174
+ primary_phone?: Record<string, unknown>;
175
+ languages?: unknown[];
176
+ alexa_ranking?: number;
177
+ phone?: unknown;
178
+ linkedin_uid?: string;
179
+ founded_year?: number;
180
+ publicly_traded_symbol?: unknown;
181
+ publicly_traded_exchange?: unknown;
182
+ logo_url?: string;
183
+ crunchbase_url?: unknown;
184
+ primary_domain?: string;
185
+ industry?: string;
186
+ keywords?: string[];
187
+ estimated_num_employees?: number;
188
+ industries?: string[];
189
+ secondary_industries?: unknown[];
190
+ snippets_loaded?: boolean;
191
+ industry_tag_id?: string;
192
+ industry_tag_hash?: {
193
+ "information technology & services"?: string;
194
+ };
195
+ naics_codes?: string[];
196
+ sic_codes?: string[];
197
+ retail_location_count?: number;
198
+ raw_address?: string;
199
+ street_address?: string;
200
+ city?: string;
201
+ state?: string;
202
+ postal_code?: string;
203
+ country?: string;
204
+ owned_by_organization_id?: unknown;
205
+ seo_description?: string;
206
+ short_description?: string;
207
+ suborganizations?: unknown[];
208
+ num_suborganizations?: number;
209
+ annual_revenue_printed?: string;
210
+ annual_revenue?: number;
211
+ total_funding?: number;
212
+ total_funding_printed?: string;
213
+ latest_funding_round_date?: string;
214
+ latest_funding_stage?: string;
215
+ funding_events?: {
216
+ id?: string;
217
+ date?: string;
218
+ news_url?: unknown;
219
+ type?: string;
220
+ investors?: string;
221
+ amount?: string;
222
+ currency?: string;
223
+ }[];
224
+ technology_names?: string[];
225
+ current_technologies?: {
226
+ uid?: string;
227
+ name?: string;
228
+ category?: string;
229
+ }[];
230
+ org_chart_root_people_ids?: string[];
231
+ org_chart_sector?: string;
232
+ org_chart_removed?: boolean;
233
+ org_chart_show_department_filter?: boolean;
234
+ };
235
+ is_likely_to_engage?: boolean;
236
+ show_intent?: boolean;
237
+ departments?: string[];
238
+ subdepartments?: string[];
239
+ functions?: string[];
240
+ seniority?: string;
241
+ };
242
+ phone_enrichment?: {
243
+ request_id?: string;
244
+ status?: "pending" | "skipped" | "not_attempted";
245
+ message?: string;
246
+ };
247
+ }>;
248
+ /** Up to 10 people from `POST /people/bulk_match`. `matches` follows `details`. */
249
+ enrichPeople(args: {
250
+ body: PeopleBulkBody;
251
+ query?: PeopleBulkQuery;
252
+ }): Promise<{
253
+ request_id?: number;
254
+ request_id_str?: string;
255
+ status?: string;
256
+ error_code?: string | null;
257
+ error_message?: string | null;
258
+ total_requested_enrichments?: number;
259
+ unique_enriched_records?: number;
260
+ missing_records?: number;
261
+ credits_consumed?: number;
262
+ waterfall?: {
263
+ status?: string;
264
+ message?: string;
265
+ unprocessed_attributes?: Record<string, unknown>[];
266
+ };
267
+ phone_enrichment?: {
268
+ request_id?: string;
269
+ status?: "pending" | "skipped" | "not_attempted";
270
+ message?: string;
271
+ };
272
+ matches?: {
273
+ id?: string;
274
+ first_name?: string;
275
+ last_name?: string;
276
+ name?: string;
277
+ linkedin_url?: string;
278
+ title?: string;
279
+ email_status?: string;
280
+ photo_url?: string;
281
+ twitter_url?: unknown;
282
+ github_url?: unknown;
283
+ facebook_url?: unknown;
284
+ extrapolated_email_confidence?: number | null;
285
+ headline?: string;
286
+ email?: string;
287
+ organization_id?: string;
288
+ match_confidence?: "high" | "medium" | "low" | "none";
289
+ employment_history?: {
290
+ _id?: string;
291
+ created_at?: unknown;
292
+ current?: boolean;
293
+ degree?: unknown;
294
+ description?: unknown;
295
+ emails?: unknown;
296
+ end_date?: unknown;
297
+ grade_level?: unknown;
298
+ kind?: unknown;
299
+ major?: unknown;
300
+ organization_id?: string;
301
+ organization_name?: string;
302
+ raw_address?: unknown;
303
+ start_date?: string;
304
+ title?: string;
305
+ updated_at?: unknown;
306
+ id?: string;
307
+ key?: string;
308
+ }[];
309
+ state?: string;
310
+ city?: string;
311
+ country?: string;
312
+ organization?: {
313
+ id?: string;
314
+ name?: string;
315
+ website_url?: string;
316
+ blog_url?: unknown;
317
+ angellist_url?: unknown;
318
+ linkedin_url?: string;
319
+ twitter_url?: string;
320
+ facebook_url?: string;
321
+ primary_phone?: Record<string, unknown>;
322
+ languages?: unknown[];
323
+ alexa_ranking?: number;
324
+ phone?: unknown;
325
+ linkedin_uid?: string;
326
+ founded_year?: number;
327
+ publicly_traded_symbol?: unknown;
328
+ publicly_traded_exchange?: unknown;
329
+ logo_url?: string;
330
+ crunchbase_url?: unknown;
331
+ primary_domain?: string;
332
+ industry?: string;
333
+ keywords?: string[];
334
+ estimated_num_employees?: number;
335
+ industries?: string[];
336
+ secondary_industries?: unknown[];
337
+ snippets_loaded?: boolean;
338
+ industry_tag_id?: string;
339
+ industry_tag_hash?: {
340
+ "information technology & services"?: string;
341
+ };
342
+ naics_codes?: string[];
343
+ sic_codes?: string[];
344
+ retail_location_count?: number;
345
+ raw_address?: string;
346
+ street_address?: string;
347
+ city?: string;
348
+ state?: string;
349
+ postal_code?: string;
350
+ country?: string;
351
+ };
352
+ is_likely_to_engage?: boolean;
353
+ account_id?: string;
354
+ account?: {
355
+ id?: string;
356
+ name?: string;
357
+ website_url?: string;
358
+ blog_url?: unknown;
359
+ angellist_url?: unknown;
360
+ linkedin_url?: string;
361
+ twitter_url?: string;
362
+ facebook_url?: string;
363
+ primary_phone?: Record<string, unknown>;
364
+ languages?: unknown[];
365
+ alexa_ranking?: number;
366
+ phone?: string;
367
+ linkedin_uid?: string;
368
+ founded_year?: number;
369
+ publicly_traded_symbol?: unknown;
370
+ publicly_traded_exchange?: unknown;
371
+ logo_url?: string;
372
+ crunchbase_url?: unknown;
373
+ primary_domain?: string;
374
+ domain?: string;
375
+ team_id?: string;
376
+ organization_id?: string;
377
+ account_stage_id?: unknown;
378
+ source?: string;
379
+ original_source?: string;
380
+ creator_id?: unknown;
381
+ owner_id?: string;
382
+ created_at?: string;
383
+ phone_status?: string;
384
+ hubspot_id?: unknown;
385
+ salesforce_id?: string;
386
+ crm_owner_id?: string;
387
+ parent_account_id?: unknown;
388
+ sanitized_phone?: string;
389
+ account_playbook_statuses?: unknown[];
390
+ account_rule_config_statuses?: {
391
+ _id?: string;
392
+ created_at?: unknown;
393
+ rule_action_config_id?: string;
394
+ rule_config_id?: string;
395
+ status_cd?: string;
396
+ updated_at?: unknown;
397
+ id?: string;
398
+ key?: string;
399
+ }[];
400
+ existence_level?: string;
401
+ label_ids?: string[];
402
+ typed_custom_fields?: Record<string, unknown>;
403
+ custom_field_errors?: unknown;
404
+ modality?: string;
405
+ source_display_name?: string;
406
+ salesforce_record_url?: string;
407
+ crm_record_url?: string;
408
+ };
409
+ departments?: string[];
410
+ subdepartments?: string[];
411
+ seniority?: string;
412
+ functions?: string[];
413
+ show_intent?: boolean;
414
+ revealed_for_current_team?: boolean;
415
+ }[];
416
+ }>;
417
+ /** One organization from `GET /organizations/enrich`. */
418
+ enrichOrganization(args?: {
419
+ query?: OrganizationQuery;
420
+ }): Promise<{
421
+ organization?: {
422
+ id?: string;
423
+ name?: string;
424
+ website_url?: string;
425
+ blog_url?: unknown;
426
+ angellist_url?: unknown;
427
+ linkedin_url?: string;
428
+ twitter_url?: string;
429
+ facebook_url?: string;
430
+ primary_phone?: Record<string, unknown>;
431
+ languages?: string[];
432
+ num_languages?: number;
433
+ alexa_ranking?: number;
434
+ phone?: unknown;
435
+ linkedin_uid?: string;
436
+ founded_year?: number;
437
+ publicly_traded_symbol?: unknown;
438
+ publicly_traded_exchange?: unknown;
439
+ logo_url?: string;
440
+ crunchbase_url?: unknown;
441
+ primary_domain?: string;
442
+ industry?: string;
443
+ keywords?: string[];
444
+ estimated_num_employees?: number;
445
+ industries?: string[];
446
+ secondary_industries?: unknown[];
447
+ snippets_loaded?: boolean;
448
+ industry_tag_id?: string;
449
+ industry_tag_hash?: {
450
+ "information technology & services"?: string;
451
+ };
452
+ naics_codes?: string[];
453
+ sic_codes?: string[];
454
+ retail_location_count?: number;
455
+ num_retail_locations?: number;
456
+ raw_address?: string;
457
+ street_address?: string;
458
+ city?: string;
459
+ state?: string;
460
+ postal_code?: string;
461
+ country?: string;
462
+ owned_by_organization_id?: unknown;
463
+ owned_by_organization?: {
464
+ id?: string;
465
+ name?: string;
466
+ website_url?: string;
467
+ };
468
+ owned_by_chain?: string[];
469
+ ultimate_parent_organization?: {
470
+ id?: string;
471
+ name?: string;
472
+ website_url?: string;
473
+ };
474
+ seo_description?: string;
475
+ short_description?: string;
476
+ suborganizations?: {
477
+ id?: string;
478
+ name?: string;
479
+ website_url?: string;
480
+ industries?: string[];
481
+ estimated_num_employees?: number;
482
+ country?: string;
483
+ }[];
484
+ num_suborganizations?: number;
485
+ annual_revenue_printed?: string;
486
+ annual_revenue?: number;
487
+ total_funding?: number;
488
+ total_funding_printed?: string;
489
+ latest_funding_round_date?: string;
490
+ latest_funding_stage?: string;
491
+ funding_events?: {
492
+ id?: string;
493
+ date?: string;
494
+ news_url?: unknown;
495
+ type?: string;
496
+ investors?: string;
497
+ amount?: string;
498
+ currency?: string;
499
+ }[];
500
+ technology_names?: string[];
501
+ current_technologies?: {
502
+ uid?: string;
503
+ name?: string;
504
+ category?: string;
505
+ }[];
506
+ org_chart_root_people_ids?: string[];
507
+ org_chart_sector?: string;
508
+ org_chart_removed?: boolean;
509
+ org_chart_show_department_filter?: boolean;
510
+ account_id?: string;
511
+ account?: {
512
+ id?: string;
513
+ domain?: string;
514
+ name?: string;
515
+ team_id?: string;
516
+ organization_id?: string;
517
+ account_stage_id?: unknown;
518
+ source?: string;
519
+ original_source?: string;
520
+ creator_id?: unknown;
521
+ owner_id?: string;
522
+ created_at?: string;
523
+ phone?: string;
524
+ phone_status?: string;
525
+ hubspot_id?: unknown;
526
+ salesforce_id?: unknown;
527
+ crm_owner_id?: unknown;
528
+ parent_account_id?: unknown;
529
+ linkedin_url?: unknown;
530
+ sanitized_phone?: string;
531
+ account_playbook_statuses?: unknown[];
532
+ account_rule_config_statuses?: unknown[];
533
+ existence_level?: string;
534
+ label_ids?: string[];
535
+ typed_custom_fields?: Record<string, unknown>;
536
+ custom_field_errors?: Record<string, unknown>;
537
+ modality?: string;
538
+ source_display_name?: string;
539
+ crm_record_url?: unknown;
540
+ show_intent?: boolean;
541
+ has_intent_signal_account?: boolean;
542
+ intent_signal_account?: unknown;
543
+ };
544
+ departmental_head_count?: {
545
+ engineering?: number;
546
+ operations?: number;
547
+ support?: number;
548
+ marketing?: number;
549
+ human_resources?: number;
550
+ sales?: number;
551
+ finance?: number;
552
+ consulting?: number;
553
+ legal?: number;
554
+ arts_and_design?: number;
555
+ accounting?: number;
556
+ business_development?: number;
557
+ information_technology?: number;
558
+ education?: number;
559
+ media_and_commmunication?: number;
560
+ product_management?: number;
561
+ entrepreneurship?: number;
562
+ data_science?: number;
563
+ administrative?: number;
564
+ };
565
+ organization_headcount_six_month_growth?: number;
566
+ organization_headcount_twelve_month_growth?: number;
567
+ organization_headcount_twenty_four_month_growth?: number;
568
+ };
569
+ }>;
570
+ /**
571
+ * Up to 10 organizations from `POST /organizations/bulk_enrich`.
572
+ * `domains` is the `domains[]` query. `body.details` wins when both are set.
573
+ */
574
+ enrichOrganizations(args?: {
575
+ body?: OrganizationsBulkBody;
576
+ domains?: readonly string[];
577
+ }): Promise<{
578
+ status?: string;
579
+ error_code?: unknown;
580
+ error_message?: unknown;
581
+ total_requested_records?: number;
582
+ total_requested_domains?: number;
583
+ unique_domains?: number;
584
+ unique_records?: number;
585
+ unique_enriched_records?: number;
586
+ missing_records?: number;
587
+ organizations?: {
588
+ id?: string;
589
+ name?: string;
590
+ website_url?: string;
591
+ blog_url?: unknown;
592
+ angellist_url?: unknown;
593
+ linkedin_url?: string;
594
+ twitter_url?: string;
595
+ facebook_url?: string;
596
+ primary_phone?: Record<string, unknown>;
597
+ languages?: string[];
598
+ num_languages?: number;
599
+ alexa_ranking?: number;
600
+ phone?: unknown;
601
+ linkedin_uid?: string;
602
+ founded_year?: number;
603
+ publicly_traded_symbol?: unknown;
604
+ publicly_traded_exchange?: unknown;
605
+ logo_url?: string;
606
+ crunchbase_url?: unknown;
607
+ primary_domain?: string;
608
+ industry?: string;
609
+ keywords?: string[];
610
+ estimated_num_employees?: number;
611
+ industries?: string[];
612
+ secondary_industries?: unknown[];
613
+ snippets_loaded?: boolean;
614
+ industry_tag_id?: string;
615
+ industry_tag_hash?: {
616
+ "information technology & services"?: string;
617
+ };
618
+ naics_codes?: string[];
619
+ sic_codes?: string[];
620
+ retail_location_count?: number;
621
+ num_retail_locations?: number;
622
+ raw_address?: string;
623
+ street_address?: string;
624
+ city?: string;
625
+ state?: string;
626
+ country?: string;
627
+ postal_code?: string;
628
+ owned_by_organization_id?: unknown;
629
+ owned_by_organization?: {
630
+ id?: string;
631
+ name?: string;
632
+ website_url?: string;
633
+ };
634
+ owned_by_chain?: string[];
635
+ ultimate_parent_organization?: {
636
+ id?: string;
637
+ name?: string;
638
+ website_url?: string;
639
+ };
640
+ num_suborganizations?: number;
641
+ subsidiary_rollups?: {
642
+ total_estimated_employee_count?: number;
643
+ countries?: string[];
644
+ industries?: string[];
645
+ };
646
+ seo_description?: string;
647
+ short_description?: string;
648
+ account_id?: string;
649
+ account?: {
650
+ id?: string;
651
+ domain?: string;
652
+ name?: string;
653
+ team_id?: string;
654
+ organization_id?: string;
655
+ account_stage_id?: unknown;
656
+ source?: string;
657
+ original_source?: string;
658
+ creator_id?: unknown;
659
+ owner_id?: string;
660
+ created_at?: string;
661
+ phone?: string;
662
+ phone_status?: string;
663
+ hubspot_id?: unknown;
664
+ salesforce_id?: unknown;
665
+ crm_owner_id?: unknown;
666
+ parent_account_id?: unknown;
667
+ linkedin_url?: unknown;
668
+ sanitized_phone?: string;
669
+ account_playbook_statuses?: unknown[];
670
+ account_rule_config_statuses?: unknown[];
671
+ existence_level?: string;
672
+ label_ids?: string[];
673
+ typed_custom_fields?: Record<string, unknown>;
674
+ custom_field_errors?: unknown;
675
+ modality?: string;
676
+ source_display_name?: string;
677
+ crm_record_url?: unknown;
678
+ show_intent?: boolean;
679
+ has_intent_signal_account?: boolean;
680
+ intent_signal_account?: unknown;
681
+ };
682
+ departmental_head_count?: {
683
+ engineering?: number;
684
+ operations?: number;
685
+ support?: number;
686
+ marketing?: number;
687
+ human_resources?: number;
688
+ sales?: number;
689
+ finance?: number;
690
+ consulting?: number;
691
+ legal?: number;
692
+ arts_and_design?: number;
693
+ accounting?: number;
694
+ business_development?: number;
695
+ information_technology?: number;
696
+ education?: number;
697
+ media_and_commmunication?: number;
698
+ product_management?: number;
699
+ entrepreneurship?: number;
700
+ data_science?: number;
701
+ administrative?: number;
702
+ };
703
+ show_intent?: boolean;
704
+ has_intent_signal_account?: boolean;
705
+ intent_signal_account?: unknown;
706
+ organization_headcount_six_month_growth?: number;
707
+ organization_headcount_twelve_month_growth?: number;
708
+ organization_headcount_twenty_four_month_growth?: number;
709
+ }[];
710
+ }>;
711
+ /**
712
+ * Pages of people from `POST /mixed_people/api_search`. `cursor` is the next
713
+ * page number, or null on the last page. This call does not return emails.
714
+ */
715
+ searchPeople(args?: {
716
+ query?: PeopleSearchQuery;
717
+ perPage?: number;
718
+ cursor?: number | null;
719
+ }): AsyncGenerator<Page<{
720
+ id?: string;
721
+ first_name?: string;
722
+ last_name_obfuscated?: string;
723
+ title?: string | null;
724
+ last_refreshed_at?: string;
725
+ has_email?: boolean;
726
+ has_city?: boolean;
727
+ has_state?: boolean;
728
+ has_country?: boolean;
729
+ has_direct_phone?: string;
730
+ organization?: {
731
+ name?: string;
732
+ has_industry?: boolean;
733
+ has_phone?: boolean;
734
+ has_city?: boolean;
735
+ has_state?: boolean;
736
+ has_country?: boolean;
737
+ has_zip_code?: boolean;
738
+ has_revenue?: boolean;
739
+ has_employee_count?: boolean;
740
+ };
741
+ }, number>, any, any>;
742
+ /**
743
+ * Pages of organizations from `POST /mixed_companies/search`. `cursor` is the
744
+ * next page number, or null on the last page.
745
+ */
746
+ searchOrganizations(args?: {
747
+ query?: OrganizationSearchQuery;
748
+ perPage?: number;
749
+ cursor?: number | null;
750
+ }): AsyncGenerator<Page<{
751
+ id?: string;
752
+ name?: string;
753
+ website_url?: string;
754
+ blog_url?: unknown;
755
+ angellist_url?: unknown;
756
+ linkedin_url?: string;
757
+ twitter_url?: string;
758
+ facebook_url?: string;
759
+ primary_phone?: {
760
+ number?: string;
761
+ source?: string;
762
+ sanitized_number?: string;
763
+ };
764
+ languages?: string[];
765
+ alexa_ranking?: number;
766
+ phone?: string;
767
+ linkedin_uid?: string;
768
+ founded_year?: number;
769
+ publicly_traded_symbol?: unknown;
770
+ publicly_traded_exchange?: unknown;
771
+ logo_url?: string;
772
+ crunchbase_url?: unknown;
773
+ primary_domain?: string;
774
+ naics_codes?: string[];
775
+ sic_codes?: string[];
776
+ sanitized_phone?: string;
777
+ owned_by_organization_id?: unknown;
778
+ show_intent?: boolean;
779
+ has_intent_signal_account?: boolean;
780
+ intent_signal_account?: unknown;
781
+ }, number>, any, any>;
782
+ private searchPage;
783
+ private post;
784
+ }
785
+ //# sourceMappingURL=index.d.ts.map