-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
217 lines (184 loc) · 6.41 KB
/
types.go
File metadata and controls
217 lines (184 loc) · 6.41 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
package enrow
type Company struct {
Name string `json:"name"`
Domain string `json:"domain"`
}
// ── Email Finder ──
type EmailFindParams struct {
CompanyDomain string `json:"company_domain,omitempty"`
CompanyName string `json:"company_name,omitempty"`
FullName string `json:"fullname,omitempty"`
Custom interface{} `json:"custom,omitempty"`
Settings *SearchSettings `json:"settings,omitempty"`
}
type SearchSettings struct {
CountryCode string `json:"country_code,omitempty"`
Webhook string `json:"webhook,omitempty"`
RetrieveGender bool `json:"retrieve_gender,omitempty"`
}
type EmailInfo struct {
CompanyDomain string `json:"company_domain"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Gender string `json:"gender"`
}
type EmailFindResult struct {
ID string `json:"id"`
Status string `json:"status"`
Email string `json:"email"`
Qualification string `json:"qualification"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Company Company `json:"company"`
Verified bool `json:"verified"`
CreditsUsed float64 `json:"credits_used"`
Info *EmailInfo `json:"info,omitempty"`
Custom interface{} `json:"custom,omitempty"`
}
type EmailFindBulkParams struct {
Searches []EmailFindParams `json:"searches"`
Settings *SearchSettings `json:"settings,omitempty"`
}
type EmailFindBulkResponse struct {
BatchID string `json:"batch_id"`
Total int `json:"total"`
Status string `json:"status"`
CreditsUsed float64 `json:"credits_used"`
}
type EmailFindBulkResult struct {
General struct {
ID string `json:"id"`
Status string `json:"status"`
} `json:"general"`
Stats struct {
Finished int `json:"finished"`
Requested int `json:"requested"`
Valid int `json:"valid"`
CreditsCost struct {
Initial float64 `json:"initial"`
Refunded float64 `json:"refunded"`
Final float64 `json:"final"`
} `json:"credits_cost"`
} `json:"stats"`
Results []EmailFindResult `json:"results"`
}
// ── Email Verifier ──
type VerifySingleParams struct {
Email string `json:"email"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type WebhookOnlySetting struct {
Webhook string `json:"webhook,omitempty"`
}
type VerifySingleResult struct {
Email string `json:"email"`
Qualification string `json:"qualification"`
Custom interface{} `json:"custom,omitempty"`
}
type VerifyBulkParams struct {
Emails []string `json:"emails"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type VerifyBulkResponse struct {
BatchID string `json:"batch_id"`
Total int `json:"total"`
Status string `json:"status"`
CreditsUsed float64 `json:"credits_used"`
}
type VerifyBulkResult struct {
BatchID string `json:"batch_id"`
Status string `json:"status"`
Total int `json:"total"`
Completed int `json:"completed"`
CreditsUsed float64 `json:"credits_used"`
Results []VerifySingleResult `json:"results"`
}
// ── Phone Finder ──
type PhoneFindParams struct {
LinkedinURL string `json:"linkedin_url,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
CompanyDomain string `json:"company_domain,omitempty"`
CompanyName string `json:"company_name,omitempty"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type PhoneFindResponse struct {
ID string `json:"id"`
Status string `json:"status"`
Message string `json:"message"`
}
type PhoneFindResult struct {
ID string `json:"id"`
Qualification string `json:"qualification"`
Number string `json:"number"`
Country string `json:"country"`
Params interface{} `json:"params,omitempty"`
Custom interface{} `json:"custom,omitempty"`
}
type PhoneFindBulkParams struct {
Searches []PhoneFindParams `json:"searches"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type PhoneBulkResponse struct {
BatchID string `json:"batch_id"`
Total int `json:"total"`
Status string `json:"status"`
}
type PhoneBulkResultItem struct {
Index int `json:"index"`
Qualification string `json:"qualification"`
Number string `json:"number"`
Country string `json:"country"`
}
type PhoneBulkResult struct {
BatchID string `json:"batch_id"`
Status string `json:"status"`
Total int `json:"total"`
Results []PhoneBulkResultItem `json:"results"`
}
// ── Reverse Email ──
type ReverseEmailParams struct {
Email string `json:"email"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type ReverseEmailResult struct {
ID string `json:"id"`
Status string `json:"status"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Company Company `json:"company"`
LinkedinURL string `json:"linkedin_url"`
CreditsUsed float64 `json:"credits_used"`
}
type ReverseEmailBulkParams struct {
Emails []struct{ Email string `json:"email"` } `json:"emails"`
Settings *WebhookOnlySetting `json:"settings,omitempty"`
}
type ReverseEmailBulkResponse struct {
ID string `json:"id"`
Status string `json:"status"`
Total int `json:"total"`
}
type ReverseEmailBulkResult struct {
ID string `json:"id"`
Status string `json:"status"`
Total int `json:"total"`
Completed int `json:"completed"`
CreditsUsed float64 `json:"credits_used"`
Results []ReverseEmailBulkItemResult `json:"results"`
}
type ReverseEmailBulkItemResult struct {
Email string `json:"email"`
Status string `json:"status"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Company Company `json:"company"`
LinkedinURL string `json:"linkedin_url"`
Index int `json:"index"`
}
// ── Account ──
type AccountInfo struct {
Credits float64 `json:"credits"`
Webhooks []string `json:"webhooks"`
}