@activepieces/piece-enrichlayer 0.0.3 → 0.0.4
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.
- package/package.json +7 -12
- package/src/index.js +13 -80
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/get-company-id-lookup.d.ts +0 -4
- package/src/lib/actions/get-company-id-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-company-id-lookup.js +0 -34
- package/src/lib/actions/get-company-id-lookup.js.map +0 -1
- package/src/lib/actions/get-company-lookup.d.ts +0 -7
- package/src/lib/actions/get-company-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-company-lookup.js +0 -58
- package/src/lib/actions/get-company-lookup.js.map +0 -1
- package/src/lib/actions/get-company-picture.d.ts +0 -4
- package/src/lib/actions/get-company-picture.d.ts.map +0 -1
- package/src/lib/actions/get-company-picture.js +0 -34
- package/src/lib/actions/get-company-picture.js.map +0 -1
- package/src/lib/actions/get-company-profile.d.ts +0 -11
- package/src/lib/actions/get-company-profile.d.ts.map +0 -1
- package/src/lib/actions/get-company-profile.js +0 -118
- package/src/lib/actions/get-company-profile.js.map +0 -1
- package/src/lib/actions/get-company-search.d.ts +0 -29
- package/src/lib/actions/get-company-search.d.ts.map +0 -1
- package/src/lib/actions/get-company-search.js +0 -218
- package/src/lib/actions/get-company-search.js.map +0 -1
- package/src/lib/actions/get-credit-balance.d.ts +0 -2
- package/src/lib/actions/get-credit-balance.d.ts.map +0 -1
- package/src/lib/actions/get-credit-balance.js +0 -26
- package/src/lib/actions/get-credit-balance.js.map +0 -1
- package/src/lib/actions/get-disposable-email-check.d.ts +0 -4
- package/src/lib/actions/get-disposable-email-check.d.ts.map +0 -1
- package/src/lib/actions/get-disposable-email-check.js +0 -34
- package/src/lib/actions/get-disposable-email-check.js.map +0 -1
- package/src/lib/actions/get-employee-count.d.ts +0 -9
- package/src/lib/actions/get-employee-count.d.ts.map +0 -1
- package/src/lib/actions/get-employee-count.js +0 -89
- package/src/lib/actions/get-employee-count.js.map +0 -1
- package/src/lib/actions/get-employee-listing.d.ts +0 -14
- package/src/lib/actions/get-employee-listing.d.ts.map +0 -1
- package/src/lib/actions/get-employee-listing.js +0 -133
- package/src/lib/actions/get-employee-listing.js.map +0 -1
- package/src/lib/actions/get-employee-search.d.ts +0 -10
- package/src/lib/actions/get-employee-search.d.ts.map +0 -1
- package/src/lib/actions/get-employee-search.js +0 -82
- package/src/lib/actions/get-employee-search.js.map +0 -1
- package/src/lib/actions/get-job-count.d.ts +0 -10
- package/src/lib/actions/get-job-count.d.ts.map +0 -1
- package/src/lib/actions/get-job-count.js +0 -107
- package/src/lib/actions/get-job-count.js.map +0 -1
- package/src/lib/actions/get-job-profile.d.ts +0 -4
- package/src/lib/actions/get-job-profile.d.ts.map +0 -1
- package/src/lib/actions/get-job-profile.js +0 -34
- package/src/lib/actions/get-job-profile.js.map +0 -1
- package/src/lib/actions/get-job-search.d.ts +0 -10
- package/src/lib/actions/get-job-search.d.ts.map +0 -1
- package/src/lib/actions/get-job-search.js +0 -107
- package/src/lib/actions/get-job-search.js.map +0 -1
- package/src/lib/actions/get-person-lookup.d.ts +0 -10
- package/src/lib/actions/get-person-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-person-lookup.js +0 -82
- package/src/lib/actions/get-person-lookup.js.map +0 -1
- package/src/lib/actions/get-person-picture.d.ts +0 -4
- package/src/lib/actions/get-person-picture.d.ts.map +0 -1
- package/src/lib/actions/get-person-picture.js +0 -34
- package/src/lib/actions/get-person-picture.js.map +0 -1
- package/src/lib/actions/get-person-profile.d.ts +0 -17
- package/src/lib/actions/get-person-profile.d.ts.map +0 -1
- package/src/lib/actions/get-person-profile.js +0 -178
- package/src/lib/actions/get-person-profile.js.map +0 -1
- package/src/lib/actions/get-person-search.d.ts +0 -57
- package/src/lib/actions/get-person-search.d.ts.map +0 -1
- package/src/lib/actions/get-person-search.js +0 -386
- package/src/lib/actions/get-person-search.js.map +0 -1
- package/src/lib/actions/get-personal-contact.d.ts +0 -7
- package/src/lib/actions/get-personal-contact.d.ts.map +0 -1
- package/src/lib/actions/get-personal-contact.js +0 -52
- package/src/lib/actions/get-personal-contact.js.map +0 -1
- package/src/lib/actions/get-personal-email.d.ts +0 -8
- package/src/lib/actions/get-personal-email.d.ts.map +0 -1
- package/src/lib/actions/get-personal-email.js +0 -68
- package/src/lib/actions/get-personal-email.js.map +0 -1
- package/src/lib/actions/get-reverse-email-lookup.d.ts +0 -6
- package/src/lib/actions/get-reverse-email-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-reverse-email-lookup.js +0 -61
- package/src/lib/actions/get-reverse-email-lookup.js.map +0 -1
- package/src/lib/actions/get-reverse-phone-lookup.d.ts +0 -4
- package/src/lib/actions/get-reverse-phone-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-reverse-phone-lookup.js +0 -34
- package/src/lib/actions/get-reverse-phone-lookup.js.map +0 -1
- package/src/lib/actions/get-role-lookup.d.ts +0 -6
- package/src/lib/actions/get-role-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-role-lookup.js +0 -52
- package/src/lib/actions/get-role-lookup.js.map +0 -1
- package/src/lib/actions/get-school-profile.d.ts +0 -6
- package/src/lib/actions/get-school-profile.d.ts.map +0 -1
- package/src/lib/actions/get-school-profile.js +0 -58
- package/src/lib/actions/get-school-profile.js.map +0 -1
- package/src/lib/actions/get-student-listing.d.ts +0 -11
- package/src/lib/actions/get-student-listing.d.ts.map +0 -1
- package/src/lib/actions/get-student-listing.js +0 -102
- package/src/lib/actions/get-student-listing.js.map +0 -1
- package/src/lib/actions/get-work-email-lookup.d.ts +0 -5
- package/src/lib/actions/get-work-email-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-work-email-lookup.js +0 -40
- package/src/lib/actions/get-work-email-lookup.js.map +0 -1
- package/src/lib/auth.d.ts +0 -2
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -22
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -2
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -28
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -29
- package/src/lib/common/constants.d.ts.map +0 -1
- package/src/lib/common/constants.js +0 -32
- package/src/lib/common/constants.js.map +0 -1
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPersonSearch = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getPersonSearch = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_person_search',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Search People',
|
|
13
|
-
description: 'Search for people matching a set of criteria across an exhaustive dataset (3 credits per profile URL returned)',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Find people by querying a large professional dataset on attributes like name, location, current/past role and company, education, skills, languages, and follower counts. Pick this for discovery when you do not already have a specific profile URL; read-only and idempotent, but billed per result so narrow filters before running. Set Enrich Profiles to return full profile records instead of just URLs (costs extra credits each).',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
country: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Country',
|
|
22
|
-
description: 'Filter by country (ISO 3166-1 alpha-2, e.g., US)',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
region: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Region',
|
|
27
|
-
description: 'Filter by state/province (e.g., California or Washington)',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
city: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'City',
|
|
32
|
-
description: 'Filter by city (e.g., Seattle OR "Palo Alto")',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
first_name: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'First Name',
|
|
37
|
-
description: 'Filter by first name (e.g., Bill OR Mark)',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
last_name: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Last Name',
|
|
42
|
-
description: 'Filter by last name (e.g., Gates or Zuckerberg)',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
headline: pieces_framework_1.Property.ShortText({
|
|
46
|
-
displayName: 'Headline',
|
|
47
|
-
description: 'Filter by headline (boolean search)',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
summary: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Summary',
|
|
52
|
-
description: 'Filter by summary (boolean search)',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
current_role_title: pieces_framework_1.Property.ShortText({
|
|
56
|
-
displayName: 'Current Role Title',
|
|
57
|
-
description: 'Filter by current job title (e.g., CEO || Founder)',
|
|
58
|
-
required: false,
|
|
59
|
-
}),
|
|
60
|
-
past_role_title: pieces_framework_1.Property.ShortText({
|
|
61
|
-
displayName: 'Past Role Title',
|
|
62
|
-
description: 'Filter by past job title (boolean search)',
|
|
63
|
-
required: false,
|
|
64
|
-
}),
|
|
65
|
-
current_role_before: pieces_framework_1.Property.ShortText({
|
|
66
|
-
displayName: 'Current Role Before',
|
|
67
|
-
description: 'People who started current role before this date (YYYY-MM-DD)',
|
|
68
|
-
required: false,
|
|
69
|
-
}),
|
|
70
|
-
current_role_after: pieces_framework_1.Property.ShortText({
|
|
71
|
-
displayName: 'Current Role After',
|
|
72
|
-
description: 'People who started current role after this date (YYYY-MM-DD)',
|
|
73
|
-
required: false,
|
|
74
|
-
}),
|
|
75
|
-
current_company_profile_url: pieces_framework_1.Property.ShortText({
|
|
76
|
-
displayName: 'Current Company Profile URL',
|
|
77
|
-
description: 'Filter by current company profile URL',
|
|
78
|
-
required: false,
|
|
79
|
-
}),
|
|
80
|
-
past_company_profile_url: pieces_framework_1.Property.ShortText({
|
|
81
|
-
displayName: 'Past Company Profile URL',
|
|
82
|
-
description: 'Filter by past company profile URL',
|
|
83
|
-
required: false,
|
|
84
|
-
}),
|
|
85
|
-
current_company_name: pieces_framework_1.Property.ShortText({
|
|
86
|
-
displayName: 'Current Company Name',
|
|
87
|
-
description: 'Filter by current company name (e.g., Stripe OR Apple)',
|
|
88
|
-
required: false,
|
|
89
|
-
}),
|
|
90
|
-
past_company_name: pieces_framework_1.Property.ShortText({
|
|
91
|
-
displayName: 'Past Company Name',
|
|
92
|
-
description: 'Filter by past company name (e.g., Stripe OR Apple)',
|
|
93
|
-
required: false,
|
|
94
|
-
}),
|
|
95
|
-
current_job_description: pieces_framework_1.Property.ShortText({
|
|
96
|
-
displayName: 'Current Job Description',
|
|
97
|
-
description: 'Filter by current job description (boolean search)',
|
|
98
|
-
required: false,
|
|
99
|
-
}),
|
|
100
|
-
past_job_description: pieces_framework_1.Property.ShortText({
|
|
101
|
-
displayName: 'Past Job Description',
|
|
102
|
-
description: 'Filter by past job description (boolean search)',
|
|
103
|
-
required: false,
|
|
104
|
-
}),
|
|
105
|
-
current_company_country: pieces_framework_1.Property.ShortText({
|
|
106
|
-
displayName: 'Current Company Country',
|
|
107
|
-
description: 'Filter by current company country (ISO alpha-2)',
|
|
108
|
-
required: false,
|
|
109
|
-
}),
|
|
110
|
-
current_company_region: pieces_framework_1.Property.ShortText({
|
|
111
|
-
displayName: 'Current Company Region',
|
|
112
|
-
description: 'Filter by current company region',
|
|
113
|
-
required: false,
|
|
114
|
-
}),
|
|
115
|
-
current_company_city: pieces_framework_1.Property.ShortText({
|
|
116
|
-
displayName: 'Current Company City',
|
|
117
|
-
description: 'Filter by current company city',
|
|
118
|
-
required: false,
|
|
119
|
-
}),
|
|
120
|
-
current_company_type: pieces_framework_1.Property.StaticDropdown({
|
|
121
|
-
displayName: 'Current Company Type',
|
|
122
|
-
description: 'Filter by current company type',
|
|
123
|
-
required: false,
|
|
124
|
-
options: {
|
|
125
|
-
options: [
|
|
126
|
-
{ label: 'Educational', value: 'EDUCATIONAL' },
|
|
127
|
-
{ label: 'Government Agency', value: 'GOVERNMENT_AGENCY' },
|
|
128
|
-
{ label: 'Non-Profit', value: 'NON_PROFIT' },
|
|
129
|
-
{ label: 'Partnership', value: 'PARTNERSHIP' },
|
|
130
|
-
{ label: 'Privately Held', value: 'PRIVATELY_HELD' },
|
|
131
|
-
{ label: 'Public Company', value: 'PUBLIC_COMPANY' },
|
|
132
|
-
{ label: 'Self-Employed', value: 'SELF_EMPLOYED' },
|
|
133
|
-
{ label: 'Sole Proprietorship', value: 'SELF_OWNED' },
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
}),
|
|
137
|
-
current_company_industry: pieces_framework_1.Property.ShortText({
|
|
138
|
-
displayName: 'Current Company Industry',
|
|
139
|
-
description: 'Filter by current company industry (boolean search)',
|
|
140
|
-
required: false,
|
|
141
|
-
}),
|
|
142
|
-
current_company_primary_industry: pieces_framework_1.Property.ShortText({
|
|
143
|
-
displayName: 'Current Company Primary Industry',
|
|
144
|
-
description: 'Filter by current company primary industry',
|
|
145
|
-
required: false,
|
|
146
|
-
}),
|
|
147
|
-
current_company_specialities: pieces_framework_1.Property.ShortText({
|
|
148
|
-
displayName: 'Current Company Specialities',
|
|
149
|
-
description: 'Filter by current company speciality (boolean search)',
|
|
150
|
-
required: false,
|
|
151
|
-
}),
|
|
152
|
-
current_company_employee_count_category: pieces_framework_1.Property.StaticDropdown({
|
|
153
|
-
displayName: 'Current Company Employee Count Category',
|
|
154
|
-
description: 'Filter by current company size category',
|
|
155
|
-
required: false,
|
|
156
|
-
options: {
|
|
157
|
-
options: [
|
|
158
|
-
{ label: 'Custom (default)', value: 'custom' },
|
|
159
|
-
{ label: 'Startup (1-10)', value: 'startup' },
|
|
160
|
-
{ label: 'Small (11-50)', value: 'small' },
|
|
161
|
-
{ label: 'Medium (51-250)', value: 'medium' },
|
|
162
|
-
{ label: 'Large (251-1000)', value: 'large' },
|
|
163
|
-
{ label: 'Enterprise (1001+)', value: 'enterprise' },
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
}),
|
|
167
|
-
current_company_employee_count_min: pieces_framework_1.Property.ShortText({
|
|
168
|
-
displayName: 'Current Company Min Employees',
|
|
169
|
-
description: 'Minimum employees at current company',
|
|
170
|
-
required: false,
|
|
171
|
-
}),
|
|
172
|
-
current_company_employee_count_max: pieces_framework_1.Property.ShortText({
|
|
173
|
-
displayName: 'Current Company Max Employees',
|
|
174
|
-
description: 'Maximum employees at current company',
|
|
175
|
-
required: false,
|
|
176
|
-
}),
|
|
177
|
-
current_company_follower_count_min: pieces_framework_1.Property.ShortText({
|
|
178
|
-
displayName: 'Current Company Min Followers',
|
|
179
|
-
description: 'Minimum follower count at current company',
|
|
180
|
-
required: false,
|
|
181
|
-
}),
|
|
182
|
-
current_company_follower_count_max: pieces_framework_1.Property.ShortText({
|
|
183
|
-
displayName: 'Current Company Max Followers',
|
|
184
|
-
description: 'Maximum follower count at current company',
|
|
185
|
-
required: false,
|
|
186
|
-
}),
|
|
187
|
-
current_company_description: pieces_framework_1.Property.ShortText({
|
|
188
|
-
displayName: 'Current Company Description',
|
|
189
|
-
description: 'Filter by current company description (boolean search)',
|
|
190
|
-
required: false,
|
|
191
|
-
}),
|
|
192
|
-
current_company_founded_after_year: pieces_framework_1.Property.ShortText({
|
|
193
|
-
displayName: 'Current Company Founded After Year',
|
|
194
|
-
description: 'Filter by current company founded after this year',
|
|
195
|
-
required: false,
|
|
196
|
-
}),
|
|
197
|
-
current_company_founded_before_year: pieces_framework_1.Property.ShortText({
|
|
198
|
-
displayName: 'Current Company Founded Before Year',
|
|
199
|
-
description: 'Filter by current company founded before this year',
|
|
200
|
-
required: false,
|
|
201
|
-
}),
|
|
202
|
-
current_company_funding_amount_min: pieces_framework_1.Property.ShortText({
|
|
203
|
-
displayName: 'Current Company Funding Min (USD)',
|
|
204
|
-
description: 'Minimum funding raised by current company',
|
|
205
|
-
required: false,
|
|
206
|
-
}),
|
|
207
|
-
current_company_funding_amount_max: pieces_framework_1.Property.ShortText({
|
|
208
|
-
displayName: 'Current Company Funding Max (USD)',
|
|
209
|
-
description: 'Maximum funding raised by current company',
|
|
210
|
-
required: false,
|
|
211
|
-
}),
|
|
212
|
-
current_company_funding_raised_after: pieces_framework_1.Property.ShortText({
|
|
213
|
-
displayName: 'Current Company Funding Raised After',
|
|
214
|
-
description: 'Current company raised funding after this date (YYYY-MM-DD)',
|
|
215
|
-
required: false,
|
|
216
|
-
}),
|
|
217
|
-
current_company_funding_raised_before: pieces_framework_1.Property.ShortText({
|
|
218
|
-
displayName: 'Current Company Funding Raised Before',
|
|
219
|
-
description: 'Current company raised funding before this date (YYYY-MM-DD)',
|
|
220
|
-
required: false,
|
|
221
|
-
}),
|
|
222
|
-
current_company_domain_name: pieces_framework_1.Property.ShortText({
|
|
223
|
-
displayName: 'Current Company Domain Name',
|
|
224
|
-
description: 'Filter by current company domain (e.g., pfizer.com)',
|
|
225
|
-
required: false,
|
|
226
|
-
}),
|
|
227
|
-
education_field_of_study: pieces_framework_1.Property.ShortText({
|
|
228
|
-
displayName: 'Education Field of Study',
|
|
229
|
-
description: 'Filter by field of study (e.g., computer science)',
|
|
230
|
-
required: false,
|
|
231
|
-
}),
|
|
232
|
-
education_degree_name: pieces_framework_1.Property.ShortText({
|
|
233
|
-
displayName: 'Education Degree Name',
|
|
234
|
-
description: 'Filter by degree name (e.g., MBA)',
|
|
235
|
-
required: false,
|
|
236
|
-
}),
|
|
237
|
-
education_school_name: pieces_framework_1.Property.ShortText({
|
|
238
|
-
displayName: 'Education School Name',
|
|
239
|
-
description: 'Filter by school name (e.g., "Harvard University")',
|
|
240
|
-
required: false,
|
|
241
|
-
}),
|
|
242
|
-
education_school_profile_url: pieces_framework_1.Property.ShortText({
|
|
243
|
-
displayName: 'Education School Profile URL',
|
|
244
|
-
description: 'Filter by school profile URL',
|
|
245
|
-
required: false,
|
|
246
|
-
}),
|
|
247
|
-
industries: pieces_framework_1.Property.ShortText({
|
|
248
|
-
displayName: 'Industries',
|
|
249
|
-
description: "Filter by person's inferred industry (boolean search)",
|
|
250
|
-
required: false,
|
|
251
|
-
}),
|
|
252
|
-
interests: pieces_framework_1.Property.ShortText({
|
|
253
|
-
displayName: 'Interests',
|
|
254
|
-
description: 'Filter by interests (boolean search)',
|
|
255
|
-
required: false,
|
|
256
|
-
}),
|
|
257
|
-
skills: pieces_framework_1.Property.ShortText({
|
|
258
|
-
displayName: 'Skills',
|
|
259
|
-
description: 'Filter by skills (boolean search)',
|
|
260
|
-
required: false,
|
|
261
|
-
}),
|
|
262
|
-
skills_all_in_list: pieces_framework_1.Property.ShortText({
|
|
263
|
-
displayName: 'Skills (All in List)',
|
|
264
|
-
description: 'Filter by all skills in a comma-separated list (e.g., rust,mongodb). Cannot combine with Skills.',
|
|
265
|
-
required: false,
|
|
266
|
-
}),
|
|
267
|
-
languages: pieces_framework_1.Property.ShortText({
|
|
268
|
-
displayName: 'Languages',
|
|
269
|
-
description: 'Filter by language (e.g., Mandarin OR Chinese)',
|
|
270
|
-
required: false,
|
|
271
|
-
}),
|
|
272
|
-
groups: pieces_framework_1.Property.ShortText({
|
|
273
|
-
displayName: 'Groups',
|
|
274
|
-
description: 'Filter by group membership (boolean search)',
|
|
275
|
-
required: false,
|
|
276
|
-
}),
|
|
277
|
-
follower_count_min: pieces_framework_1.Property.ShortText({
|
|
278
|
-
displayName: 'Follower Count Min',
|
|
279
|
-
description: 'Minimum follower count',
|
|
280
|
-
required: false,
|
|
281
|
-
}),
|
|
282
|
-
follower_count_max: pieces_framework_1.Property.ShortText({
|
|
283
|
-
displayName: 'Follower Count Max',
|
|
284
|
-
description: 'Maximum follower count',
|
|
285
|
-
required: false,
|
|
286
|
-
}),
|
|
287
|
-
public_identifier_in_list: pieces_framework_1.Property.ShortText({
|
|
288
|
-
displayName: 'Public Identifier In List',
|
|
289
|
-
description: 'Comma-separated list of public identifiers person must be in',
|
|
290
|
-
required: false,
|
|
291
|
-
}),
|
|
292
|
-
public_identifier_not_in_list: pieces_framework_1.Property.ShortText({
|
|
293
|
-
displayName: 'Public Identifier Not In List',
|
|
294
|
-
description: 'Comma-separated list of public identifiers person must not be in',
|
|
295
|
-
required: false,
|
|
296
|
-
}),
|
|
297
|
-
page_size: pieces_framework_1.Property.ShortText({
|
|
298
|
-
displayName: 'Page Size',
|
|
299
|
-
description: 'Maximum results per call (1-100, default: 100)',
|
|
300
|
-
required: false,
|
|
301
|
-
}),
|
|
302
|
-
enrich_profiles: pieces_framework_1.Property.StaticDropdown({
|
|
303
|
-
displayName: 'Enrich Profiles',
|
|
304
|
-
description: 'Return full profiles instead of just URLs (+1 credit each)',
|
|
305
|
-
required: false,
|
|
306
|
-
options: {
|
|
307
|
-
options: [
|
|
308
|
-
{ label: 'Skip (default)', value: 'skip' },
|
|
309
|
-
{ label: 'Enrich (+1 credit each)', value: 'enrich' },
|
|
310
|
-
],
|
|
311
|
-
},
|
|
312
|
-
}),
|
|
313
|
-
use_cache: pieces_framework_1.Property.StaticDropdown({
|
|
314
|
-
displayName: 'Cache Strategy',
|
|
315
|
-
description: 'Control how cached data is used',
|
|
316
|
-
required: false,
|
|
317
|
-
options: {
|
|
318
|
-
options: [
|
|
319
|
-
{ label: 'If Present (default)', value: 'if-present' },
|
|
320
|
-
{ label: 'If Recent (+1-2 credits per result)', value: 'if-recent' },
|
|
321
|
-
],
|
|
322
|
-
},
|
|
323
|
-
}),
|
|
324
|
-
},
|
|
325
|
-
run(context) {
|
|
326
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
327
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.PERSON_SEARCH, {
|
|
328
|
-
country: context.propsValue.country,
|
|
329
|
-
region: context.propsValue.region,
|
|
330
|
-
city: context.propsValue.city,
|
|
331
|
-
first_name: context.propsValue.first_name,
|
|
332
|
-
last_name: context.propsValue.last_name,
|
|
333
|
-
headline: context.propsValue.headline,
|
|
334
|
-
summary: context.propsValue.summary,
|
|
335
|
-
current_role_title: context.propsValue.current_role_title,
|
|
336
|
-
past_role_title: context.propsValue.past_role_title,
|
|
337
|
-
current_role_before: context.propsValue.current_role_before,
|
|
338
|
-
current_role_after: context.propsValue.current_role_after,
|
|
339
|
-
current_company_profile_url: context.propsValue.current_company_profile_url,
|
|
340
|
-
past_company_profile_url: context.propsValue.past_company_profile_url,
|
|
341
|
-
current_company_name: context.propsValue.current_company_name,
|
|
342
|
-
past_company_name: context.propsValue.past_company_name,
|
|
343
|
-
current_job_description: context.propsValue.current_job_description,
|
|
344
|
-
past_job_description: context.propsValue.past_job_description,
|
|
345
|
-
current_company_country: context.propsValue.current_company_country,
|
|
346
|
-
current_company_region: context.propsValue.current_company_region,
|
|
347
|
-
current_company_city: context.propsValue.current_company_city,
|
|
348
|
-
current_company_type: context.propsValue.current_company_type,
|
|
349
|
-
current_company_industry: context.propsValue.current_company_industry,
|
|
350
|
-
current_company_primary_industry: context.propsValue.current_company_primary_industry,
|
|
351
|
-
current_company_specialities: context.propsValue.current_company_specialities,
|
|
352
|
-
current_company_employee_count_category: context.propsValue.current_company_employee_count_category,
|
|
353
|
-
current_company_employee_count_min: context.propsValue.current_company_employee_count_min,
|
|
354
|
-
current_company_employee_count_max: context.propsValue.current_company_employee_count_max,
|
|
355
|
-
current_company_follower_count_min: context.propsValue.current_company_follower_count_min,
|
|
356
|
-
current_company_follower_count_max: context.propsValue.current_company_follower_count_max,
|
|
357
|
-
current_company_description: context.propsValue.current_company_description,
|
|
358
|
-
current_company_founded_after_year: context.propsValue.current_company_founded_after_year,
|
|
359
|
-
current_company_founded_before_year: context.propsValue.current_company_founded_before_year,
|
|
360
|
-
current_company_funding_amount_min: context.propsValue.current_company_funding_amount_min,
|
|
361
|
-
current_company_funding_amount_max: context.propsValue.current_company_funding_amount_max,
|
|
362
|
-
current_company_funding_raised_after: context.propsValue.current_company_funding_raised_after,
|
|
363
|
-
current_company_funding_raised_before: context.propsValue.current_company_funding_raised_before,
|
|
364
|
-
current_company_domain_name: context.propsValue.current_company_domain_name,
|
|
365
|
-
education_field_of_study: context.propsValue.education_field_of_study,
|
|
366
|
-
education_degree_name: context.propsValue.education_degree_name,
|
|
367
|
-
education_school_name: context.propsValue.education_school_name,
|
|
368
|
-
education_school_profile_url: context.propsValue.education_school_profile_url,
|
|
369
|
-
industries: context.propsValue.industries,
|
|
370
|
-
interests: context.propsValue.interests,
|
|
371
|
-
skills: context.propsValue.skills,
|
|
372
|
-
skills_all_in_list: context.propsValue.skills_all_in_list,
|
|
373
|
-
languages: context.propsValue.languages,
|
|
374
|
-
groups: context.propsValue.groups,
|
|
375
|
-
follower_count_min: context.propsValue.follower_count_min,
|
|
376
|
-
follower_count_max: context.propsValue.follower_count_max,
|
|
377
|
-
public_identifier_in_list: context.propsValue.public_identifier_in_list,
|
|
378
|
-
public_identifier_not_in_list: context.propsValue.public_identifier_not_in_list,
|
|
379
|
-
page_size: context.propsValue.page_size,
|
|
380
|
-
enrich_profiles: context.propsValue.enrich_profiles,
|
|
381
|
-
use_cache: context.propsValue.use_cache,
|
|
382
|
-
});
|
|
383
|
-
});
|
|
384
|
-
},
|
|
385
|
-
});
|
|
386
|
-
//# sourceMappingURL=get-person-search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-person-search.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-person-search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,eAAe,GAAG,IAAA,+BAA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AAO,CAAC,UAAU,CAAC,qBAAqB;gBAC/D,qBAAqB,EAAE,OAAO,CAAC,UAAU,CAAC,qBAAqB;gBAC/D,4BAA4B,EAC1B,OAAO,CAAC,UAAU,CAAC,4BAA4B;gBACjD,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;gBACzC,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;gBACjC,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB;gBACzD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;gBACjC,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB;gBACzD,kBAAkB,EAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB;gBACzD,yBAAyB,EACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB;gBAC9C,6BAA6B,EAC3B,OAAO,CAAC,UAAU,CAAC,6BAA6B;gBAClD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;gBACnD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;aACxC,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getPersonalContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
|
-
twitter_profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
facebook_profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
page_size: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-personal-contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-personal-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-personal-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;EAkD7B,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPersonalContact = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getPersonalContact = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_personal_contact',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Look Up Personal Contact Numbers',
|
|
13
|
-
description: 'Find personal phone numbers from a social media profile (1 credit per number returned)',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: "Find a person's personal phone numbers from one social profile URL (professional-network, Twitter/X, or Facebook — supply exactly one). Read-only and safe to retry. Use when you have a profile link and need phone contact details; the email counterpart is Look Up Personal Email.",
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
profile_url: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Profile URL',
|
|
22
|
-
description: 'Professional network profile URL. Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
twitter_profile_url: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Twitter/X Profile URL',
|
|
27
|
-
description: 'Twitter/X profile URL (e.g., https://x.com/enrichlayer). Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
facebook_profile_url: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Facebook Profile URL',
|
|
32
|
-
description: 'Facebook profile URL (e.g., https://www.facebook.com/zuck). Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
page_size: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Page Size',
|
|
37
|
-
description: 'Maximum numbers returned (0 = no limit, default: 0)',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
|
-
run(context) {
|
|
42
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.PERSONAL_CONTACT, {
|
|
44
|
-
profile_url: context.propsValue.profile_url,
|
|
45
|
-
twitter_profile_url: context.propsValue.twitter_profile_url,
|
|
46
|
-
facebook_profile_url: context.propsValue.facebook_profile_url,
|
|
47
|
-
page_size: context.propsValue.page_size,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=get-personal-contact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-personal-contact.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-personal-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,kCAAkC;IAC/C,WAAW,EACT,wFAAwF;IAC1F,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,wRAAwR;QAC1R,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,kGAAkG;YACpG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yHAAyH;YAC3H,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvC,WAAW,EAAE,sBAAsB;YACnC,WAAW,EACT,4HAA4H;YAC9H,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,qDAAqD;YACvD,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,gBAAgB,EAC1B;gBACE,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;gBAC3C,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB;gBAC3D,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB;gBAC7D,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;aACxC,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const getPersonalEmail: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
|
-
twitter_profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
facebook_profile_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
email_validation: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
|
-
page_size: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=get-personal-email.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-personal-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-personal-email.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;EAkE3B,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPersonalEmail = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getPersonalEmail = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_personal_email',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Look Up Personal Email',
|
|
13
|
-
description: 'Find personal email addresses from a social media profile (1 credit per email returned)',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: "Find a person's personal (non-work) email addresses given one social profile URL (professional-network, Twitter/X, or Facebook — supply exactly one). Read-only and safe to retry. Use when you have a profile link and need personal contact emails; for work emails use Look Up Work Email, and to go from email back to profiles use Reverse Email Lookup.",
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
profile_url: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Profile URL',
|
|
22
|
-
description: 'Professional network profile URL. Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
twitter_profile_url: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Twitter/X Profile URL',
|
|
27
|
-
description: 'Twitter/X profile URL (e.g., https://x.com/enrichlayer). Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
facebook_profile_url: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Facebook Profile URL',
|
|
32
|
-
description: 'Facebook profile URL (e.g., https://www.facebook.com/zuck). Provide only one of Profile URL, Twitter URL, or Facebook URL.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
email_validation: pieces_framework_1.Property.StaticDropdown({
|
|
36
|
-
displayName: 'Email Validation',
|
|
37
|
-
description: 'How to validate each email found',
|
|
38
|
-
required: false,
|
|
39
|
-
options: {
|
|
40
|
-
options: [
|
|
41
|
-
{ label: 'None (default)', value: 'none' },
|
|
42
|
-
{ label: 'Fast (no extra credit)', value: 'fast' },
|
|
43
|
-
{
|
|
44
|
-
label: 'Precise (+1 credit per email)',
|
|
45
|
-
value: 'precise',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
}),
|
|
50
|
-
page_size: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Page Size',
|
|
52
|
-
description: 'Maximum emails returned (0 = no limit, default: 0)',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
run(context) {
|
|
57
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.PERSONAL_EMAIL, {
|
|
59
|
-
profile_url: context.propsValue.profile_url,
|
|
60
|
-
twitter_profile_url: context.propsValue.twitter_profile_url,
|
|
61
|
-
facebook_profile_url: context.propsValue.facebook_profile_url,
|
|
62
|
-
email_validation: context.propsValue.email_validation,
|
|
63
|
-
page_size: context.propsValue.page_size,
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=get-personal-email.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-personal-email.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-personal-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,wBAAwB;IACrC,WAAW,EACT,yFAAyF;IAC3F,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,+VAA+V;QACjW,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,kGAAkG;YACpG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EACT,yHAAyH;YAC3H,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvC,WAAW,EAAE,sBAAsB;YACnC,WAAW,EACT,4HAA4H;YAC9H,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACxC,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC1C,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,EAAE;oBAClD;wBACE,KAAK,EAAE,+BAA+B;wBACtC,KAAK,EAAE,SAAS;qBACjB;iBACF;aACF;SACF,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EACT,oDAAoD;YACtD,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,cAAc,EACxB;gBACE,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;gBAC3C,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB;gBAC3D,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB;gBAC7D,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,gBAAgB;gBACrD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;aACxC,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const getReverseEmailLookup: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
lookup_depth: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
-
enrich_profile: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
5
|
-
}>;
|
|
6
|
-
//# sourceMappingURL=get-reverse-email-lookup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-reverse-email-lookup.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-reverse-email-lookup.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;EA0DhC,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReverseEmailLookup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getReverseEmailLookup = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_reverse_email_lookup',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Reverse Email Lookup',
|
|
13
|
-
description: 'Find social media profiles from an email address. Works with both personal and work emails (3 credits)',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: "Find social/professional-network profiles associated with an email address (personal or work). Read-only and safe to retry. Use to go from a known email back to a person's profiles; the reverse direction (profile to emails) is Look Up Personal Email or Look Up Work Email. Superficial lookup depth charges no credits when there are no results; Deep charges regardless.",
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
email: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Email Address',
|
|
22
|
-
description: 'Email address to look up (e.g., johndoe@enrichlayer.com)',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
lookup_depth: pieces_framework_1.Property.StaticDropdown({
|
|
26
|
-
displayName: 'Lookup Depth',
|
|
27
|
-
description: 'Superficial: no credits if no results. Deep: credits used regardless.',
|
|
28
|
-
required: false,
|
|
29
|
-
options: {
|
|
30
|
-
options: [
|
|
31
|
-
{ label: 'Deep (default)', value: 'deep' },
|
|
32
|
-
{
|
|
33
|
-
label: 'Superficial (no credits if no results)',
|
|
34
|
-
value: 'superficial',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
enrich_profile: pieces_framework_1.Property.StaticDropdown({
|
|
40
|
-
displayName: 'Enrich Profile',
|
|
41
|
-
description: 'Enrich the result with cached profile data (+1 credit)',
|
|
42
|
-
required: false,
|
|
43
|
-
options: {
|
|
44
|
-
options: [
|
|
45
|
-
{ label: 'Skip (default)', value: 'skip' },
|
|
46
|
-
{ label: 'Enrich (+1 credit)', value: 'enrich' },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
}),
|
|
50
|
-
},
|
|
51
|
-
run(context) {
|
|
52
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.REVERSE_EMAIL_LOOKUP, {
|
|
54
|
-
email: context.propsValue.email,
|
|
55
|
-
lookup_depth: context.propsValue.lookup_depth,
|
|
56
|
-
enrich_profile: context.propsValue.enrich_profile,
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=get-reverse-email-lookup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-reverse-email-lookup.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-reverse-email-lookup.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,sBAAsB;IACnC,WAAW,EACT,wGAAwG;IAC1G,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kXAAkX;QACpX,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,eAAe;YAC5B,WAAW,EACT,0DAA0D;YAC5D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,cAA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