Skip to content

17531 components exact mails #17796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions components/exact_mails/actions/common/base.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import exactMails from "../../exact_mails.app.mjs";

export default {
props: {
exactMails,
},
async run({ $ }) {
const fn = this.getFn();
const response = await fn({
$,
data: this.getData(),
});

$.export("$summary", response.message);
return response;
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import base from "../common/base.mjs";

export default {
...base,
key: "exact_mails-search-company-email",
name: "Search Company Email",
description: "Search for company email in Exact Mails. [See the documentation](https://dashboard.exactmails.com/documentation)",
version: "0.0.1",
type: "action",
props: {
...base.props,
companyDomain: {
type: "string",
label: "Company Domain",
description: "The company domain of the company to search for.",
},
},
methods: {
getFn() {
return this.exactMails.searchCompanyEmail;
},
getData() {
return {
company_domain: this.companyDomain,
};
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import base from "../common/base.mjs";

export default {
...base,
key: "exact_mails-search-decision-maker-email",
name: "Search Decision Maker Email",
description: "Search for decision maker email in Exact Mails. [See the documentation](https://dashboard.exactmails.com/documentation)",
version: "0.0.1",
type: "action",
props: {
...base.props,
companyDomain: {
type: "string",
label: "Company Domain",
description: "The company domain of the decision maker to search for.",
},
role: {
type: "string",
label: "Role",
description: "The role of the decision maker to search for.",
optional: true,
},
},
methods: {
getFn() {
return this.exactMails.searchDecisionMakerEmail;
},
getData() {
return {
company_domain: this.companyDomain,
role: this.role,
};
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import base from "../common/base.mjs";

export default {
...base,
key: "exact_mails-search-linkedin-email",
name: "Search LinkedIn Email",
description: "Search for linkedin email in Exact Mails. [See the documentation](https://dashboard.exactmails.com/documentation)",
version: "0.0.1",
type: "action",
props: {
...base.props,
linkedin: {
type: "string",
label: "LinkedIn Profile",
description: "The linkedin profile of the person to search for.",
},
},
methods: {
getFn() {
return this.exactMails.searchLinkedinEmail;
},
getData() {
return {
linkedin_url: this.linkedin,
};
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import base from "../common/base.mjs";

export default {
...base,
key: "exact_mails-search-person-email",
name: "Search Person Email",
description: "Search for person email in Exact Mails. [See the documentation](https://dashboard.exactmails.com/documentation)",
version: "0.0.1",
type: "action",
props: {
...base.props,
username: {
type: "string",
label: "Username",
description: "The username of the person to search for.",
},
domain: {
type: "string",
label: "Domain",
description: "The domain of the person to search for.",
optional: true,
},
},
methods: {
getFn() {
return this.exactMails.searchPersonEmails;
},
getData() {
return {
username: this.username,
domain: this.domain,
};
},
},
};
50 changes: 47 additions & 3 deletions components/exact_mails/exact_mails.app.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,55 @@
import { axios } from "@pipedream/platform";

export default {
type: "app",
app: "exact_mails",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
_baseUrl() {
return "https://api.exactmails.com/api/v1/email";
},
_auth() {
return {
username: `${this.$auth.username}`,
password: `${this.$auth.api_key}`,
};
},
_makeRequest({
$ = this, path, ...opts
}) {
return axios($, {
url: this._baseUrl() + path,
auth: this._auth(),
...opts,
});
},
searchPersonEmails(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/find-person-email",
...opts,
});
},
searchDecisionMakerEmail(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/find-decision-maker-email",
...opts,
});
},
searchLinkedinEmail(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/find-linkedin-email",
...opts,
});
},
searchCompanyEmail(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/find-company-emails",
...opts,
});
},
},
};
7 changes: 5 additions & 2 deletions components/exact_mails/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/exact_mails",
"version": "0.0.1",
"version": "0.1.0",
"description": "Pipedream Exact Mails Components",
"main": "exact_mails.app.mjs",
"keywords": [
Expand All @@ -11,5 +11,8 @@
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.1.0"
}
}
}
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading