-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
951 lines (834 loc) · 32.8 KB
/
Copy pathtypes.go
File metadata and controls
951 lines (834 loc) · 32.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
package cufinder
// BaseResponse represents the base response structure
type BaseResponse struct {
Query interface{} `json:"query,omitempty"`
CreditCount int `json:"credit_count,omitempty"`
MetaData map[string]interface{} `json:"meta_data,omitempty"`
ConfidenceLevel int `json:"confidence_level,omitempty"`
}
type MainLocation struct {
Geo string `json:"geo,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Address string `json:"address,omitempty"`
Continent string `json:"continent,omitempty"`
PostalCode string `json:"postal_code,omitempty"`
}
type CompanySocial struct {
Facebook string `json:"facebook,omitempty"`
LinkedIn string `json:"linkedin,omitempty"`
Twitter string `json:"twitter,omitempty"`
Youtube string `json:"youtube,omitempty"`
Instagram string `json:"instagram,omitempty"`
}
type CompanyEmployees struct {
Range string `json:"range,omitempty"`
Count int `json:"count,omitempty"`
}
// Company represents company information
type Company struct {
Name string `json:"name,omitempty"`
Domain string `json:"domain,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Industry string `json:"industry,omitempty"`
Overview string `json:"overview,omitempty"`
Type string `json:"type,omitempty"`
Size string `json:"size,omitempty"`
MainLocation MainLocation `json:"main_location,omitempty"`
Location string `json:"location,omitempty"`
Description string `json:"description,omitempty"`
Founded int `json:"founded,omitempty"`
Revenue string `json:"revenue,omitempty"`
Employees CompanyEmployees `json:"employees,omitempty"`
Website string `json:"website,omitempty"`
Phone string `json:"phone,omitempty"`
Email string `json:"email,omitempty"`
Social CompanySocial `json:"social,omitempty"`
Technologies []string `json:"technologies,omitempty"`
Subsidiaries []string `json:"subsidiaries,omitempty"`
Headquarters string `json:"headquarters,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
ZipCode string `json:"zip_code,omitempty"`
Address string `json:"address,omitempty"`
}
type JobTitleCategory struct {
Category string `json:"category,omitempty"`
SuperCategory string `json:"super_category,omitempty"`
}
type PeopleCurrentJob struct {
Title string `json:"title,omitempty"`
Role string `json:"role,omitempty"`
Level string `json:"level,omitempty"`
Categories []JobTitleCategory `json:"categories,omitempty"`
}
type PeopleConnections struct {
HasWorkEmail bool `json:"has_work_email,omitempty"`
HasPersonalEmail bool `json:"has_personal_email,omitempty"`
HasPhone bool `json:"has_phone,omitempty"`
WorkEmail string `json:"work_email,omitempty"`
PersonalEmail string `json:"personal_email,omitempty"`
Phone string `json:"phone,omitempty"`
IsAcceptAll bool `json:"is_accept_all,omitempty"`
IsAcceptEmail bool `json:"is_accept_email,omitempty"`
}
type PeopleEducationSchoolLocation struct {
Name string `json:"name,omitempty"`
Locality string `json:"locality,omitempty"`
Region string `json:"region,omitempty"`
Country string `json:"country,omitempty"`
Continent string `json:"continent,omitempty"`
}
type PeopleEducationSchool struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Id string `json:"id,omitempty"`
Location PeopleEducationSchoolLocation `json:"location,omitempty"`
LinkedinURL string `json:"linkedin_url,omitempty"`
FacebookURL string `json:"facebook_url,omitempty"`
TwitterURL string `json:"twitter_url,omitempty"`
LinkedinID string `json:"linkedin_id,omitempty"`
Website string `json:"website,omitempty"`
Domain string `json:"domain,omitempty"`
JobCompanyIDMongo string `json:"job_company_id_mongo,omitempty"`
UniversityIDMongo string `json:"university_id_mongo,omitempty"`
}
type PeopleEducation struct {
School PeopleEducationSchool `json:"school,omitempty"`
EndDate string `json:"end_date,omitempty"`
StartDate string `json:"start_date,omitempty"`
Gpa string `json:"gpa,omitempty"`
Degrees []string `json:"degrees,omitempty"`
Majors []string `json:"majors,omitempty"`
Minors []string `json:"minors,omitempty"`
Summary string `json:"summary,omitempty"`
}
type PeopleExperienceCompany struct {
Name string `json:"name,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Domain string `json:"domain,omitempty"`
Size string `json:"size,omitempty"`
Industry string `json:"industry,omitempty"`
}
type PeopleExperienceTitle struct {
Name string `json:"name,omitempty"`
Role string `json:"role,omitempty"`
SubRole string `json:"sub_role,omitempty"`
Levels []string `json:"levels,omitempty"`
}
type PeopleExperience struct {
Company PeopleExperienceCompany
LocationNames []string
EndDate string
StartDate string
Title PeopleExperienceTitle
IsPrimary bool
Summary string
}
type PeopleCertification struct {
Certification string `json:"certification,omitempty"`
Issuer string `json:"issuer,omitempty"`
IssueDate string `json:"issue_date,omitempty"`
ExpirationDate string `json:"expiration_date,omitempty"`
}
type PeopleLocation struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
}
type PeopleSocial struct {
LinkedinUsername string `json:"linkedin_username,omitempty"`
LinkedinConnections int `json:"linkedin_connections,omitempty"`
LinkedIn string `json:"linkedin,omitempty"`
Twitter string `json:"twitter,omitempty"`
Facebook string `json:"facebook,omitempty"`
Github string `json:"github,omitempty"`
}
// Person represents person information
type Person struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
FullName string `json:"full_name,omitempty"`
Logo string `json:"logo,omitempty"`
Overview string `json:"overview,omitempty"`
Experience any `json:"experience,omitempty"` // FIXME: should be fixed from the source
Connections PeopleConnections `json:"connections,omitempty"`
Interests []string `json:"interests,omitempty"`
Skills []string `json:"skills,omitempty"`
Educations []PeopleEducation `json:"educations,omitempty"`
Experiences []PeopleExperience `json:"experiences,omitempty"`
Certifications []PeopleCertification `json:"certifications,omitempty"`
Company Company `json:"company,omitempty"`
Location PeopleLocation `json:"location,omitempty"`
CurrentJob PeopleCurrentJob `json:"current_job,omitempty"`
Social PeopleSocial `json:"social,omitempty"`
}
// Response types for each service
type CufResponse struct {
BaseResponse
Domain string `json:"domain"`
}
type LcufResponse struct {
BaseResponse
LinkedInURL string `json:"linkedin_url"`
}
type DtcResponse struct {
BaseResponse
CompanyName string `json:"company_name"`
}
type DteResponse struct {
BaseResponse
Emails []string `json:"emails"`
}
type NtpResponse struct {
BaseResponse
Phones []string `json:"phones"`
}
type RelPerson struct {
FullName string `json:"full_name,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Summary string `json:"summary,omitempty"`
LinkedInFollowers string `json:"linkedin_followers,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
Avatar string `json:"avatar,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitle string `json:"job_title,omitempty"`
JobTitleCategories []string `json:"job_title_categories,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedIn string `json:"company_linkedin,omitempty"`
CompanyWebsite string `json:"company_website,omitempty"`
CompanySize string `json:"company_size,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyFaceBook string `json:"company_facebook,omitempty"`
CompanyTwitter string `json:"company_twitter,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
}
type RelResponse struct {
BaseResponse
Person RelPerson `json:"person"`
}
type FclCompany struct {
Name string `json:"name,omitempty"`
Website string `json:"website,omitempty"`
EmployeeCount int `json:"employee_count,omitempty"`
Size string `json:"size,omitempty"`
Industry string `json:"industry,omitempty"`
Description string `json:"description,omitempty"`
LinkedinUrl string `json:"linkedin_url,omitempty"`
Domain string `json:"domain,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Address string `json:"address,omitempty"`
FoundedYear string `json:"founded_year,omitempty"`
LogoUrl string `json:"logo_url,omitempty"`
FollowersCount int `json:"followers_count,omitempty"`
}
type FclResponse struct {
BaseResponse
Companies []FclCompany `json:"companies"`
}
type ElfFundraising struct {
FundingLastRoundType string `json:"funding_last_round_type,omitempty"`
FundingAmmountCurrencyCode string `json:"funding_ammount_currency_code,omitempty"`
FundingMoneyRaised string `json:"funding_money_raised,omitempty"`
FundingLastRoundInvestorsUrl string `json:"funding_last_round_investors_url,omitempty"`
}
type ElfResponse struct {
BaseResponse
Fundraising ElfFundraising `json:"fundraising_info"`
}
type CarResponse struct {
BaseResponse
Revenue string `json:"annual_revenue"`
}
type FccResponse struct {
BaseResponse
Subsidiaries []string `json:"subsidiaries"`
}
type FtsResponse struct {
BaseResponse
Technologies []string `json:"technologies"`
}
type EppPerson struct {
FullName string `json:"full_name,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Summary string `json:"summary,omitempty"`
LinkedInFollowers int `json:"linkedin_followers,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
Avatar string `json:"avatar,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitle string `json:"job_title,omitempty"`
JobTitleCategories []string `json:"job_title_categories,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedIn string `json:"company_linkedin,omitempty"`
CompanyWebsite string `json:"company_website,omitempty"`
CompanySize string `json:"company_size,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyFacebook string `json:"company_facebook,omitempty"`
CompanyTwitter string `json:"company_twitter,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
}
type EppResponse struct {
BaseResponse
Person EppPerson `json:"person"`
}
type FweResponse struct {
BaseResponse
WorkEmail string `json:"work_email"`
}
type TepPerson struct {
FullName string `json:"full_name,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Summary string `json:"summary,omitempty"`
LinkedInFollowers int `json:"linkedin_followers,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
Avatar string `json:"avatar,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitle string `json:"job_title,omitempty"`
JobTitleCategories []string `json:"job_title_categories,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedIn string `json:"company_linkedin,omitempty"`
CompanyWebsite string `json:"company_website,omitempty"`
CompanySize string `json:"company_size,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyFacebook string `json:"company_facebook,omitempty"`
CompanyTwitter string `json:"company_twitter,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
}
type TepResponse struct {
BaseResponse
Person TepPerson `json:"person"`
}
type EncCompany struct {
Name string `json:"name,omitempty"`
Website string `json:"website,omitempty"`
EmployeeCount int `json:"employee_count,omitempty"`
Industry string `json:"industry,omitempty"`
Size string `json:"size,omitempty"`
Description string `json:"description,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Type string `json:"type,omitempty"`
Domain string `json:"domain,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Address string `json:"address,omitempty"`
FoundedYear string `json:"founded_year,omitempty"`
LogoUrl string `json:"logo_url,omitempty"`
FollowersCount int `json:"followers_count,omitempty"`
}
type EncResponse struct {
BaseResponse
Company EncCompany `json:"company"`
}
type CecResponse struct {
BaseResponse
Countries interface{} `json:"countries"`
}
type CloLocation struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
PostalCode string `json:"postal_code,omitempty"`
Line1 string `json:"line1,omitempty"`
Line2 string `json:"line2,omitempty"`
Latitude string `json:"latitude,omitempty"`
Longitude string `json:"longitude,omitempty"`
}
type CloResponse struct {
BaseResponse
Locations []CloLocation `json:"locations"`
}
type CseResponse struct {
BaseResponse
Companies []Company `json:"companies"`
}
type PseResponse struct {
BaseResponse
Peoples []Person `json:"peoples"`
}
type LbsResponse struct {
BaseResponse
Companies []Company `json:"companies"`
}
type BcdResponse struct {
BaseResponse
Customers []string `json:"customers"`
}
type CcpResponse struct {
BaseResponse
CareersPageUrl string `json:"careers_page_url"`
}
type IscResponse struct {
BaseResponse
IsSaas string `json:"is_saas"`
}
type CbcResponse struct {
BaseResponse
BusinessType string `json:"business_type"`
}
type CscResponse struct {
BaseResponse
MissionStatement string `json:"mission_statement"`
}
type CsnSnapshotInfo struct {
ICP string `json:"icp,omitempty"`
TargetIndustries []string `json:"target_industries,omitempty"`
TargetPersonas []string `json:"target_personas,omitempty"`
ValueProposition string `json:"value_proposition,omitempty"`
}
type CsnResponse struct {
BaseResponse
CompanySnapshot CsnSnapshotInfo `json:"company_snapshot"`
}
type NaoResponse struct {
BaseResponse
Phone string `json:"phone"`
}
type NaaResponse struct {
BaseResponse
Address string `json:"address"`
}
// Parameter types for each service
type CufParams struct {
CompanyName string `json:"company_name"`
CountryCode string `json:"country_code"`
}
type LcufParams struct {
CompanyName string `json:"company_name"`
}
type DtcParams struct {
CompanyWebsite string `json:"company_website"`
}
type DteParams struct {
CompanyWebsite string `json:"company_website"`
}
type NtpParams struct {
CompanyName string `json:"company_name"`
}
type RelParams struct {
Email string `json:"email"`
}
type FclParams struct {
Query string `json:"query"`
}
type ElfParams struct {
Query string `json:"query"`
}
type CarParams struct {
Query string `json:"query"`
}
type FccParams struct {
Query string `json:"query"`
}
type FtsParams struct {
Query string `json:"query"`
}
type EppParams struct {
LinkedInURL string `json:"linkedin_url"`
}
type FweParams struct {
LinkedInURL string `json:"linkedin_url"`
}
type TepParams struct {
FullName string `json:"full_name"`
Company string `json:"company"`
}
type EncParams struct {
Query string `json:"query"`
}
type CecParams struct {
Query string `json:"query"`
}
type CloParams struct {
Query string `json:"query"`
}
type CseParams struct {
Name string `json:"name,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
FollowersCountMin int `json:"followers_count_min,omitempty"`
FollowersCountMax int `json:"followers_count_max,omitempty"`
Industry string `json:"industry,omitempty"`
EmployeeSize string `json:"employee_size,omitempty"`
FoundedAfterYear int `json:"founded_after_year,omitempty"`
FoundedBeforeYear int `json:"founded_before_year,omitempty"`
FundingAmountMax int `json:"funding_amount_max,omitempty"`
FundingAmountMin int `json:"funding_amount_min,omitempty"`
ProductsServices []string `json:"products_services,omitempty"`
IsSchool bool `json:"is_school,omitempty"`
AnnualRevenueMin int `json:"annual_revenue_min,omitempty"`
AnnualRevenueMax int `json:"annual_revenue_max,omitempty"`
Page int `json:"page,omitempty"`
}
type PseParams struct {
FullName string `json:"full_name,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitleRole string `json:"job_title_role,omitempty"`
JobTitleLevel string `json:"job_title_level,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedInURL string `json:"company_linkedin_url,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyEmployeeSize string `json:"company_employee_size,omitempty"`
CompanyProductsServices []string `json:"company_products_services,omitempty"`
CompanyAnnualRevenueMin int `json:"company_annual_revenue_min,omitempty"`
CompanyAnnualRevenueMax int `json:"company_annual_revenue_max,omitempty"`
Page int `json:"page,omitempty"`
}
type LbsParams struct {
Name string `json:"name,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Industry string `json:"industry,omitempty"`
Page int `json:"page,omitempty"`
}
type BcdParams struct {
Url string `json:"url"`
}
type CcpParams struct {
Url string `json:"url"`
}
type IscParams struct {
Url string `json:"url"`
}
type CbcParams struct {
Url string `json:"url"`
}
type CscParams struct {
Url string `json:"url"`
}
type CsnParams struct {
Url string `json:"url"`
}
type NaoParams struct {
Phone string `json:"phone"`
}
type NaaParams struct {
Address string `json:"address"`
}
type CefEmployee struct {
FullName string `json:"full_name,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
LinkedInURL string `json:"linkedin_url,omitempty"`
Summary string `json:"summary,omitempty"`
Avatar string `json:"avatar,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitle string `json:"job_title,omitempty"`
JobTitleCategories []string `json:"job_title_categories,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedIn string `json:"company_linkedin,omitempty"`
CompanyWebsite string `json:"company_website,omitempty"`
CompanySize string `json:"company_size,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyFacebook string `json:"company_facebook,omitempty"`
CompanyTwitter string `json:"company_twitter,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
}
type CefResponse struct {
BaseResponse
Employees []CefEmployee `json:"employees"`
}
type CefParams struct {
Query string `json:"query"`
Page int `json:"page,omitempty"`
}
type CaaActivity struct {
ActivityURL string `json:"activity_url,omitempty"`
ActivityID string `json:"activity_id,omitempty"`
AuthorName string `json:"author_name,omitempty"`
AuthorType string `json:"author_type,omitempty"`
AuthorURL string `json:"author_url,omitempty"`
ActivityCommentsCount int `json:"activity_comments_count,omitempty"`
ActivityHashtags []string `json:"activity_hashtags,omitempty"`
ActivityHeadline string `json:"activity_headline,omitempty"`
ActivityImages []string `json:"activity_images,omitempty"`
ActivityIsVideo bool `json:"activity_is_video,omitempty"`
ActivityPostedAt string `json:"activity_posted_at,omitempty"`
ActivityReactionsCount int `json:"activity_reactions_count,omitempty"`
ActivityRepostsCount int `json:"activity_reposts_count,omitempty"`
ActivityText string `json:"activity_text,omitempty"`
ActivityTopComments []string `json:"activity_top_comments,omitempty"`
ActivityVideos []string `json:"activity_videos,omitempty"`
}
type CaaResponse struct {
BaseResponse
Activities []CaaActivity `json:"activities"`
}
type CaaParams struct {
Query string `json:"query"`
Page int `json:"page,omitempty"`
}
type NacResponse struct {
BaseResponse
Company string `json:"company"`
}
type NacParams struct {
Company string `json:"company"`
}
type CjaCompany struct {
Name string `json:"name,omitempty"`
Industry string `json:"industry,omitempty"`
Website string `json:"website,omitempty"`
Linkedin string `json:"linkedin,omitempty"`
FollowersCount int `json:"followers_count,omitempty"`
Employees struct {
Range string `json:"range,omitempty"`
} `json:"employees,omitempty"`
FoundedDate string `json:"founded_date,omitempty"`
AnnualRevenue string `json:"annual_revenue,omitempty"`
FundingAmount string `json:"funding_amount,omitempty"`
MainLocation struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
} `json:"main_location,omitempty"`
}
type CjaJob struct {
JobID string `json:"job_id,omitempty"`
Title string `json:"title,omitempty"`
URL string `json:"url,omitempty"`
Location string `json:"location,omitempty"`
PostedAt string `json:"posted_at,omitempty"`
PostedAtText string `json:"posted_at_text,omitempty"`
}
type CjaJobItem struct {
Company CjaCompany `json:"company"`
Job CjaJob `json:"job"`
}
type CjaResponse struct {
BaseResponse
Jobs []CjaJobItem `json:"jobs"`
}
type CjaParams struct {
Name string `json:"name,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
FollowersCountMin int `json:"followers_count_min,omitempty"`
FollowersCountMax int `json:"followers_count_max,omitempty"`
Industry string `json:"industry,omitempty"`
EmployeeSize string `json:"employee_size,omitempty"`
FoundedAfterYear int `json:"founded_after_year,omitempty"`
FoundedBeforeYear int `json:"founded_before_year,omitempty"`
FundingAmountMax int `json:"funding_amount_max,omitempty"`
FundingAmountMin int `json:"funding_amount_min,omitempty"`
ProductsServices []string `json:"products_services,omitempty"`
IsSchool bool `json:"is_school,omitempty"`
AnnualRevenueMin int `json:"annual_revenue_min,omitempty"`
AnnualRevenueMax int `json:"annual_revenue_max,omitempty"`
Page int `json:"page,omitempty"`
}
type Signal struct {
Name string `json:"name,omitempty"`
TimeFrame int `json:"time_frame,omitempty"`
Bucket string `json:"bucket,omitempty"`
}
type ContactSignal struct {
FullName string `json:"full_name,omitempty"`
CurrentJob struct {
Title string `json:"title,omitempty"`
} `json:"current_job,omitempty"`
Company struct {
Name string `json:"name,omitempty"`
Linkedin string `json:"linkedin,omitempty"`
Website string `json:"website,omitempty"`
Industry string `json:"industry,omitempty"`
MainLocation struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
} `json:"main_location,omitempty"`
Social struct {
Linkedin string `json:"linkedin,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
} `json:"social,omitempty"`
} `json:"company,omitempty"`
Location struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
} `json:"location,omitempty"`
Social struct {
Linkedin string `json:"linkedin,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
} `json:"social,omitempty"`
Signal Signal `json:"signal,omitempty"`
}
type PsaResponse struct {
BaseResponse
Contacts []ContactSignal `json:"contacts"`
}
type PsaParams struct {
SignalName string `json:"signal_name"`
TimeFrame int `json:"time_frame"`
Bucket string `json:"bucket"`
Page int `json:"page,omitempty"`
}
type CompanySignal struct {
Name string `json:"name,omitempty"`
Website string `json:"website,omitempty"`
Domain string `json:"domain,omitempty"`
Employees struct {
Range string `json:"range,omitempty"`
} `json:"employees,omitempty"`
Industry string `json:"industry,omitempty"`
Overview string `json:"overview,omitempty"`
Type string `json:"type,omitempty"`
MainLocation struct {
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Address string `json:"address,omitempty"`
} `json:"main_location,omitempty"`
Social struct {
Facebook string `json:"facebook,omitempty"`
Linkedin string `json:"linkedin,omitempty"`
Twitter string `json:"twitter,omitempty"`
} `json:"social,omitempty"`
Signal Signal `json:"signal,omitempty"`
}
type CsaResponse struct {
BaseResponse
Companies []CompanySignal `json:"companies"`
}
type CsaParams struct {
SignalName string `json:"signal_name"`
TimeFrame int `json:"time_frame"`
Bucket string `json:"bucket"`
Page int `json:"page,omitempty"`
}
type JobChangeCompanySnapshot struct {
CompanyLinkedinURL string `json:"company_linkedin_url,omitempty"`
CompanyLinkedinID string `json:"company_linkedin_id,omitempty"`
CompanyName string `json:"company_name,omitempty"`
Title string `json:"title,omitempty"`
}
type JobChange struct {
Type string `json:"type,omitempty"`
LinkedinURL string `json:"linkedin_url,omitempty"`
DetectedAt string `json:"detected_at,omitempty"`
From JobChangeCompanySnapshot `json:"from,omitempty"`
To JobChangeCompanySnapshot `json:"to,omitempty"`
}
type JcaResponse struct {
BaseResponse
JobChanges []JobChange `json:"job_changes"`
}
type JcaParams struct {
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
Type string `json:"type,omitempty"`
Page int `json:"page,omitempty"`
}
type ClfProfile struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
FullName string `json:"full_name,omitempty"`
LinkedinURL string `json:"linkedin_url,omitempty"`
Summary string `json:"summary,omitempty"`
FollowersCount int `json:"followers_count,omitempty"`
Facebook string `json:"facebook,omitempty"`
Twitter string `json:"twitter,omitempty"`
Avatar string `json:"avatar,omitempty"`
Country string `json:"country,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
JobTitle string `json:"job_title,omitempty"`
JobTitleCategories []string `json:"job_title_categories,omitempty"`
CompanyName string `json:"company_name,omitempty"`
CompanyLinkedin string `json:"company_linkedin,omitempty"`
CompanyWebsite string `json:"company_website,omitempty"`
CompanySize string `json:"company_size,omitempty"`
CompanyIndustry string `json:"company_industry,omitempty"`
CompanyFacebook string `json:"company_facebook,omitempty"`
CompanyTwitter string `json:"company_twitter,omitempty"`
CompanyCountry string `json:"company_country,omitempty"`
CompanyState string `json:"company_state,omitempty"`
CompanyCity string `json:"company_city,omitempty"`
Experiences []interface{} `json:"experiences,omitempty"`
Educations []interface{} `json:"educations,omitempty"`
Interests []string `json:"interests,omitempty"`
Skills []string `json:"skills,omitempty"`
Certifications []interface{} `json:"certifications,omitempty"`
Projects []interface{} `json:"projects,omitempty"`
Publications []interface{} `json:"publications,omitempty"`
Recommendations []interface{} `json:"recommendations,omitempty"`
ServiceOffers []interface{} `json:"service_offers,omitempty"`
Volunteering []interface{} `json:"volunteering,omitempty"`
Languages []interface{} `json:"languages,omitempty"`
}
type ClfResponse struct {
BaseResponse
Profiles []ClfProfile `json:"profiles"`
}
type ClfParams struct {
Query string `json:"query"`
}
type NapResponse struct {
BaseResponse
NormalizedName string `json:"normalized_name"`
}
type NapParams struct {
PersonName string `json:"person_name"`
}
type NauResponse struct {
BaseResponse
NormalizedUrl string `json:"normalized_url"`
}
type NauParams struct {
Url string `json:"url"`
}
type GdcResponse struct {
BaseResponse
OffersDemo string `json:"offers_demo"`
}
type GdcParams struct {
Url string `json:"url"`
}
type CotResponse struct {
BaseResponse
OffersFreeTrial string `json:"offers_free_trial"`
}
type CotParams struct {
Url string `json:"url"`
}