Skip to content

Commit a2cfd29

Browse files
authored
Merge branch 'master' into fix/enum-exports
2 parents 0112ea8 + be43604 commit a2cfd29

File tree

35 files changed

+768
-76
lines changed

35 files changed

+768
-76
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "zerobounce",
3+
app: "adp",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};

components/apollo_io/actions/people-enrichment/people-enrichment.mjs

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "People Enrichment",
66
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)",
77
type: "action",
8-
version: "0.0.4",
8+
version: "0.0.5",
99
props: {
1010
app,
1111
firstName: {
@@ -20,20 +20,93 @@ export default {
2020
description: "The person's last name",
2121
optional: true,
2222
},
23+
name: {
24+
type: "string",
25+
label: "Name",
26+
description: "The full name of the person",
27+
optional: true,
28+
},
2329
email: {
2430
type: "string",
2531
label: "Email",
2632
description: "The person's email",
2733
optional: true,
2834
},
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+
},
2941
organizationName: {
3042
type: "string",
3143
label: "Organization Name",
3244
description: "The person's company name",
3345
optional: true,
3446
},
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+
async options({ page }) {
59+
const { people } = await this.peopleSearch({
60+
params: {
61+
page: page + 1,
62+
},
63+
});
64+
return people?.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+
async additionalProps() {
93+
const props = {};
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`",
99+
};
100+
}
101+
return props;
35102
},
36103
methods: {
104+
peopleSearch(args = {}) {
105+
return this.app.post({
106+
path: "/people/search",
107+
...args,
108+
});
109+
},
37110
peopleEnrichment(args = {}) {
38111
return this.app.post({
39112
path: "/people/match",
@@ -46,17 +119,33 @@ export default {
46119
peopleEnrichment,
47120
firstName,
48121
lastName,
122+
name,
49123
email,
124+
hashedEmail,
50125
organizationName,
126+
domain,
127+
personId,
128+
linkedinUrl,
129+
revealPersonalEmails,
130+
revealPhoneNumber,
131+
webhookUrl,
51132
} = this;
52133

53134
const response = await peopleEnrichment({
54135
step,
55136
data: {
56137
first_name: firstName,
57138
last_name: lastName,
139+
name,
58140
email,
141+
hashed_email: hashedEmail,
59142
organization_name: organizationName,
143+
domain,
144+
id: personId,
145+
linkedin_url: linkedinUrl,
146+
reveal_personal_emails: revealPersonalEmails,
147+
reveal_phone_number: revealPhoneNumber,
148+
webhook_url: webhookUrl,
60149
},
61150
});
62151

components/apollo_io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/apollo_io",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Pipedream Apollo.io Components",
55
"main": "apollo_io.app.mjs",
66
"keywords": [

components/gmail/actions/add-label-to-email/add-label-to-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "gmail-add-label-to-email",
55
name: "Add Label to Email",
66
description: "Add label(s) to an email message. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/modify)",
7-
version: "0.0.5",
7+
version: "0.0.6",
88
type: "action",
99
props: {
1010
gmail,

components/gmail/actions/create-draft/create-draft.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "gmail-create-draft",
77
name: "Create Draft",
88
description: "Create a draft from your Google Workspace email account. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.drafts/create)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "action",
1111
props: {
1212
gmail,

components/gmail/actions/download-attachment/download-attachment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "gmail-download-attachment",
88
name: "Download Attachment",
99
description: "Download an attachment by attachmentId to the /tmp directory. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages.attachments/get)",
10-
version: "0.0.3",
10+
version: "0.0.4",
1111
type: "action",
1212
props: {
1313
gmail,

components/gmail/actions/find-email/find-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "gmail-find-email",
55
name: "Find Email",
66
description: "Find an email using Google's Search Engine. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list)",
7-
version: "0.0.6",
7+
version: "0.0.7",
88
type: "action",
99
props: {
1010
gmail,

components/gmail/actions/remove-label-from-email/remove-label-from-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "gmail-remove-label-from-email",
55
name: "Remove Label from Email",
66
description: "Remove label(s) from an email message. [See the docs](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/modify)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
gmail,

components/gmail/actions/send-email/send-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "gmail-send-email",
77
name: "Send Email",
88
description: "Send an email from your Google Workspace email account. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.messages/send)",
9-
version: "0.1.5",
9+
version: "0.1.6",
1010
type: "action",
1111
props: {
1212
gmail,

components/gmail/actions/update-org-signature/update-org-signature.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "Update Signature for Email in Organization",
99
description: `Update the signature for a specific email address in an organization.
1010
A Google Cloud service account with delegated domain-wide authority is required for this action. [See the documentation](https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs/update)`,
11-
version: "0.0.3",
11+
version: "0.0.4",
1212
type: "action",
1313
props: {
1414
gmail,

0 commit comments

Comments
 (0)