@pipedream/voilanorbert 0.1.0 → 0.2.1
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.
|
@@ -5,13 +5,14 @@ export default {
|
|
|
5
5
|
key: "voilanorbert-find-contact",
|
|
6
6
|
name: "Find Contact",
|
|
7
7
|
description: "This action returns a specific contact. The object email is either null when the email is not found, or contains an object with at least email (the email string) and the score. [See the docs here](https://api.voilanorbert.com/2018-01-08/#contacts-get-1)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
12
12
|
readOnlyHint: true,
|
|
13
13
|
},
|
|
14
14
|
type: "action",
|
|
15
|
+
ai: "optimized",
|
|
15
16
|
props: {
|
|
16
17
|
...common.props,
|
|
17
18
|
contactId: {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import voilanorbert from "../../voilanorbert.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "voilanorbert-list-contact-id-options",
|
|
5
|
+
name: "List Contact Id Options",
|
|
6
|
+
description: "Retrieves available options for the Contact Id field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
voilanorbert,
|
|
16
|
+
page: {
|
|
17
|
+
type: "integer",
|
|
18
|
+
label: "Page",
|
|
19
|
+
description: "The page of results to retrieve.",
|
|
20
|
+
min: 0,
|
|
21
|
+
default: 0,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
async run({ $ }) {
|
|
25
|
+
const options = await voilanorbert.propDefinitions.contactId.options.call(this.voilanorbert, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
package/package.json
CHANGED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import common from "../common/base.mjs";
|
|
2
|
-
import { ConfigurationError } from "@pipedream/platform";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
...common,
|
|
6
|
-
key: "voilanorbert-start-contact-search",
|
|
7
|
-
name: "Start Contact Search",
|
|
8
|
-
description: `Search emails are based on the full name plus the domain or company name.
|
|
9
|
-
When your account does not have sufficient credits an HTTP status code of 402 is returned.
|
|
10
|
-
Also, take into consideration that we check the domain for its validity. So even if you provide a correct name+domain set, we may return a HTTP status code of 400 for the domain if we can't locate it.
|
|
11
|
-
[See the docs here](https://api.voilanorbert.com/2018-01-08/#search-endpoint-post)`,
|
|
12
|
-
version: "0.0.3",
|
|
13
|
-
annotations: {
|
|
14
|
-
destructiveHint: false,
|
|
15
|
-
openWorldHint: true,
|
|
16
|
-
readOnlyHint: false,
|
|
17
|
-
},
|
|
18
|
-
type: "action",
|
|
19
|
-
props: {
|
|
20
|
-
...common.props,
|
|
21
|
-
name: {
|
|
22
|
-
propDefinition: [
|
|
23
|
-
common.props.voilanorbert,
|
|
24
|
-
"name",
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
domain: {
|
|
28
|
-
propDefinition: [
|
|
29
|
-
common.props.voilanorbert,
|
|
30
|
-
"domain",
|
|
31
|
-
],
|
|
32
|
-
optional: true,
|
|
33
|
-
},
|
|
34
|
-
company: {
|
|
35
|
-
propDefinition: [
|
|
36
|
-
common.props.voilanorbert,
|
|
37
|
-
"company",
|
|
38
|
-
],
|
|
39
|
-
optional: true,
|
|
40
|
-
},
|
|
41
|
-
listId: {
|
|
42
|
-
propDefinition: [
|
|
43
|
-
common.props.voilanorbert,
|
|
44
|
-
"listId",
|
|
45
|
-
],
|
|
46
|
-
optional: true,
|
|
47
|
-
},
|
|
48
|
-
webhookUrl: {
|
|
49
|
-
type: "string",
|
|
50
|
-
label: "Webhook URL",
|
|
51
|
-
description: "The URL to send the webhook to. Required for Pipedream Connect. If not specified, the workflow will be suspended until verification results are returned.",
|
|
52
|
-
optional: true,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
methods: {
|
|
56
|
-
async processEvent({ $ }) {
|
|
57
|
-
if (!this.domain && !this.company) {
|
|
58
|
-
throw new ConfigurationError("Either domain or company is required.");
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const { resume_url } = this.webhookUrl
|
|
62
|
-
? {
|
|
63
|
-
resume_url: this.webhookUrl,
|
|
64
|
-
}
|
|
65
|
-
: $.flow
|
|
66
|
-
? $.flow.suspend()
|
|
67
|
-
: {
|
|
68
|
-
resume_url: undefined,
|
|
69
|
-
};
|
|
70
|
-
if (!resume_url) {
|
|
71
|
-
throw new ConfigurationError("Webhook URL is required for Pipedream Connect.");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const {
|
|
75
|
-
name,
|
|
76
|
-
domain,
|
|
77
|
-
company,
|
|
78
|
-
listId,
|
|
79
|
-
} = this;
|
|
80
|
-
|
|
81
|
-
return this.voilanorbert.startContactSearch({
|
|
82
|
-
name,
|
|
83
|
-
domain,
|
|
84
|
-
company,
|
|
85
|
-
webhook: resume_url,
|
|
86
|
-
list_id: listId,
|
|
87
|
-
});
|
|
88
|
-
},
|
|
89
|
-
getSummary() {
|
|
90
|
-
return "Contact Search Successfully fetched!";
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import common from "../common/base.mjs";
|
|
2
|
-
import { ConfigurationError } from "@pipedream/platform";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
...common,
|
|
6
|
-
key: "voilanorbert-verifiy-email",
|
|
7
|
-
name: "Verify Email",
|
|
8
|
-
description: `Verifies the given list of emails.
|
|
9
|
-
In case your account does not have a sufficient Verify API balance the service will try to auto refill the balance by charging using the billing details of the account. If it fails to charge, an HTTP status code of 402 will be returned.
|
|
10
|
-
[See the docs here](https://api.voilanorbert.com/2018-01-08/#verify-endpoint-post)`,
|
|
11
|
-
version: "0.0.3",
|
|
12
|
-
annotations: {
|
|
13
|
-
destructiveHint: false,
|
|
14
|
-
openWorldHint: true,
|
|
15
|
-
readOnlyHint: false,
|
|
16
|
-
},
|
|
17
|
-
type: "action",
|
|
18
|
-
props: {
|
|
19
|
-
...common.props,
|
|
20
|
-
emails: {
|
|
21
|
-
propDefinition: [
|
|
22
|
-
common.props.voilanorbert,
|
|
23
|
-
"emails",
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
webhookUrl: {
|
|
27
|
-
type: "string",
|
|
28
|
-
label: "Webhook URL",
|
|
29
|
-
description: "The URL to send the webhook to. Required for Pipedream Connect. If not specified, the workflow will be suspended until verification results are returned.",
|
|
30
|
-
optional: true,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
methods: {
|
|
34
|
-
async processEvent({ $ }) {
|
|
35
|
-
const { resume_url } = this.webhookUrl
|
|
36
|
-
? {
|
|
37
|
-
resume_url: this.webhookUrl,
|
|
38
|
-
}
|
|
39
|
-
: $.flow
|
|
40
|
-
? $.flow.suspend()
|
|
41
|
-
: {
|
|
42
|
-
resume_url: undefined,
|
|
43
|
-
};
|
|
44
|
-
if (!resume_url) {
|
|
45
|
-
throw new ConfigurationError("Webhook URL is required for Pipedream Connect.");
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return this.voilanorbert.verifyEmails({
|
|
49
|
-
emails: this.emails.toString(),
|
|
50
|
-
webhook: resume_url,
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
getSummary() {
|
|
54
|
-
return "Emails Successfully sent for verification!";
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|