@activepieces/piece-millionverifier 0.0.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.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-millionverifier
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-millionverifier` to build the library.
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@activepieces/piece-millionverifier",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@sinclair/typebox": "0.34.11",
9
+ "axios": "1.13.1",
10
+ "axios-retry": "4.4.1",
11
+ "deepmerge-ts": "7.1.0",
12
+ "mime-types": "2.1.35",
13
+ "nanoid": "3.3.8",
14
+ "semver": "7.6.0",
15
+ "socket.io-client": "4.8.1",
16
+ "tslib": "^2.3.0",
17
+ "zod": "4.1.13",
18
+ "@activepieces/pieces-common": "0.10.1",
19
+ "@activepieces/pieces-framework": "0.22.2",
20
+ "@activepieces/shared": "0.30.3"
21
+ },
22
+ "resolutions": {
23
+ "rollup": "npm:@rollup/wasm-node"
24
+ }
25
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const millionverifier: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
package/src/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.millionverifier = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ const auth_1 = require("./lib/common/auth");
6
+ const shared_1 = require("@activepieces/shared");
7
+ const verify_email_1 = require("./lib/actions/verify-email");
8
+ exports.millionverifier = (0, pieces_framework_1.createPiece)({
9
+ displayName: 'MillionVerifier',
10
+ auth: auth_1.millionVerifierAuth,
11
+ minimumSupportedRelease: '0.36.1',
12
+ logoUrl: 'https://cdn.activepieces.com/pieces/millionverifier.png',
13
+ authors: ['sanket-a11y'],
14
+ categories: [shared_1.PieceCategory.COMMUNICATION],
15
+ description: 'MillionVerifier is an email verifier service and API',
16
+ actions: [verify_email_1.verifyEmail],
17
+ triggers: [],
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/millionverifier/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAC7D,4CAAwD;AACxD,iDAAqD;AACrD,6DAAyD;AAE5C,QAAA,eAAe,GAAG,IAAA,8BAAW,EAAC;IACzC,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,0BAAmB;IACzB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,yDAAyD;IAClE,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,WAAW,EAAE,sDAAsD;IACnE,OAAO,EAAE,CAAC,0BAAW,CAAC;IACtB,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const verifyEmail: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ timeout: import("@activepieces/pieces-framework").NumberProperty<false>;
4
+ }>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.verifyEmail = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const pieces_common_1 = require("@activepieces/pieces-common");
8
+ exports.verifyEmail = (0, pieces_framework_1.createAction)({
9
+ auth: auth_1.millionVerifierAuth,
10
+ name: 'verifyEmail',
11
+ displayName: 'Verify Email',
12
+ description: 'Verify email address using Million Verifier API',
13
+ props: {
14
+ email: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Email Address',
16
+ description: 'The email address to verify',
17
+ required: true,
18
+ }),
19
+ timeout: pieces_framework_1.Property.Number({
20
+ displayName: 'Timeout',
21
+ description: 'Timeout in seconds (default: 10)',
22
+ required: false,
23
+ defaultValue: 10,
24
+ }),
25
+ },
26
+ run(context) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const { email, timeout = 10 } = context.propsValue;
29
+ const apiKey = context.auth.secret_text;
30
+ const params = new URLSearchParams({
31
+ api: apiKey,
32
+ email: email,
33
+ timeout: timeout.toString(),
34
+ });
35
+ const url = `https://millionverifier.com/api/v3/?${params.toString()}`;
36
+ const response = yield pieces_common_1.httpClient.sendRequest({
37
+ method: pieces_common_1.HttpMethod.GET,
38
+ url: url,
39
+ });
40
+ return response.body;
41
+ });
42
+ },
43
+ });
44
+ //# sourceMappingURL=verify-email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-email.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/millionverifier/src/lib/actions/verify-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAAqD;AACrD,+DAAqE;AACxD,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,0BAAmB;IACzB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACnD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;YAExC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC;gBACjC,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;aAC5B,CAAC,CAAC;YACH,MAAM,GAAG,GAAG,uCAAuC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;YACvE,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG;aACT,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const millionVerifierAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.millionVerifierAuth = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ exports.millionVerifierAuth = pieces_framework_1.PieceAuth.SecretText({
6
+ displayName: 'MillionVerifier API Key',
7
+ description: `API Key for MillionVerifier.
8
+
9
+ API key you can find on this page: https://app.millionverifier.com/api
10
+
11
+ **Test API key for development:** \`API_KEY_FOR_TEST\`. This API key will return random results.`,
12
+ required: true,
13
+ });
14
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/millionverifier/src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,mBAAmB,GAAG,4BAAS,CAAC,UAAU,CAAC;IACtD,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE;;;;iGAIkF;IAC/F,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}