You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/apollo_io/actions/people-enrichment/people-enrichment.mjs
+89-1Lines changed: 89 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ export default {
5
5
name: "People Enrichment",
6
6
description: "Enriches a person's information, the more information you pass in, the more likely we can find a match. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#people-enrichment)",
7
7
type: "action",
8
-
version: "0.0.4",
8
+
version: "0.0.5",
9
9
props: {
10
10
app,
11
11
firstName: {
@@ -20,20 +20,92 @@ export default {
20
20
description: "The person's last name",
21
21
optional: true,
22
22
},
23
+
name: {
24
+
type: "string",
25
+
label: "Name",
26
+
description: "The full name of the person",
27
+
optional: true,
28
+
},
23
29
email: {
24
30
type: "string",
25
31
label: "Email",
26
32
description: "The person's email",
27
33
optional: true,
28
34
},
35
+
hashedEmail: {
36
+
type: "string",
37
+
label: "Hashed Email",
38
+
description: "The hashed email of the person. The email should adhere to either the MD5 or SHA-256 hash format. Example: `8d935115b9ff4489f2d1f9249503cadf` (MD5) or `97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152` (SHA-256)",
39
+
optional: true,
40
+
},
29
41
organizationName: {
30
42
type: "string",
31
43
label: "Organization Name",
32
44
description: "The person's company name",
33
45
optional: true,
34
46
},
47
+
domain: {
48
+
type: "string",
49
+
label: "Domain",
50
+
description: "The domain name for the person's employer. This can be the current employer or a previous employer. Do not include `www.`, the `@` symbol, or similar. Example: `apollo.io` or `microsoft.com`",
51
+
optional: true,
52
+
},
53
+
personId: {
54
+
type: "string",
55
+
label: "Person ID",
56
+
description: "The Apollo ID for the person",
57
+
optional: true,
58
+
asyncoptions({ page }){
59
+
const{ people }=awaitthis.peopleSearch({
60
+
params: {
61
+
page: page+1,
62
+
},
63
+
});
64
+
returnpeople?.map(({
65
+
id: value,name: label,
66
+
})=>({
67
+
value,
68
+
label,
69
+
}))||[];
70
+
},
71
+
},
72
+
linkedinUrl: {
73
+
type: "string",
74
+
label: "LinkedIn URL",
75
+
description: "The URL for the person's LinkedIn profile",
76
+
optional: true,
77
+
},
78
+
revealPersonalEmails: {
79
+
type: "boolean",
80
+
label: "Reveal Personal Emails",
81
+
description: "Set to `true` if you want to enrich the person's data with personal emails",
82
+
optional: true,
83
+
},
84
+
revealPhoneNumber: {
85
+
type: "boolean",
86
+
label: "Reveal Phone Number",
87
+
description: "Set to `true` if you want to enrich the person's data with all available phone numbers, including mobile phone numbers",
88
+
optional: true,
89
+
reloadProps: true,
90
+
},
91
+
},
92
+
asyncadditionalProps(){
93
+
constprops={};
94
+
if(this.revealPhoneNumber){
95
+
props.webhookUrl={
96
+
type: "string",
97
+
label: "Webhook URL",
98
+
description: "Enter the webhook URL that specifies where Apollo should send a JSON response that includes the phone number you requested. Required if \"Reveal Phone Number\" is set to `true`",
0 commit comments