Skip to content

Commit de87d59

Browse files
authored
Merging pull request #17676
* new commponent * pnpm-lock.yaml
1 parent ae16898 commit de87d59

File tree

4 files changed

+50
-6
lines changed

4 files changed

+50
-6
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import verifiEmail from "../../verifi_email.app.mjs";
2+
3+
export default {
4+
key: "verifi_email-validate-email-address",
5+
name: "Validate Email Address",
6+
description: "Validate an email address. [See the documentation](https://verifi.email/docs)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
verifiEmail,
11+
email: {
12+
type: "string",
13+
label: "Email Address",
14+
description: "The email address to validate",
15+
},
16+
},
17+
async run({ $ }) {
18+
const response = await this.verifiEmail.validateEmailAddress({
19+
$,
20+
params: {
21+
email: this.email,
22+
},
23+
});
24+
$.export("$summary", `Successfully validated email address ${this.email}`);
25+
return response;
26+
},
27+
};

components/verifi_email/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/verifi_email",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream verifi.email Components",
55
"main": "verifi_email.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.1.0"
1417
}
15-
}
18+
}
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
import { axios } from "@pipedream/platform";
2+
13
export default {
24
type: "app",
35
app: "verifi_email",
46
propDefinitions: {},
57
methods: {
6-
// this.$auth contains connected account data
7-
authKeys() {
8-
console.log(Object.keys(this.$auth));
8+
validateEmailAddress({
9+
$ = this, params, ...opts
10+
}) {
11+
return axios($, {
12+
url: "https://api.verifi.email/check",
13+
params: {
14+
...params,
15+
token: this.$auth.api_key,
16+
},
17+
...opts,
18+
});
919
},
1020
},
1121
};

pnpm-lock.yaml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)