@taskmagic/apps-mailercheck 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
+ # apps-mailercheck
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build apps-mailercheck` to build the library.
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@taskmagic/apps-mailercheck",
3
+ "version": "0.0.1",
4
+ "dependencies": {
5
+ "@anthropic-ai/sdk": "0.33.1",
6
+ "@sinclair/typebox": "0.34.11",
7
+ "axios": "1.17.0",
8
+ "axios-retry": "4.4.1",
9
+ "deepmerge-ts": "7.1.0",
10
+ "mime-types": "2.1.35",
11
+ "nanoid": "3.3.8",
12
+ "openai": "4.67.1",
13
+ "replicate": "0.34.1",
14
+ "semver": "7.6.0",
15
+ "zod": "3.25.76",
16
+ "@taskmagic/pieces-common": "0.4.4",
17
+ "@taskmagic/pieces-framework": "0.7.46",
18
+ "@taskmagic/shared": "0.10.171",
19
+ "tslib": "1.14.1"
20
+ },
21
+ "overrides": {
22
+ "cross-spawn": "7.0.6",
23
+ "elliptic": "^6.6.1",
24
+ "fast-xml-parser": "^4.4.1",
25
+ "protobufjs": "^7.5.5",
26
+ "tmp": "^0.2.4",
27
+ "koa": "^2.16.4",
28
+ "picomatch": "^4.0.4",
29
+ "langsmith": "^0.6.0",
30
+ "serialize-javascript": "^6.0.2",
31
+ "elevenlabs": {
32
+ "form-data": "^4.0.4"
33
+ },
34
+ "@tryfabric/martian": {
35
+ "@notionhq/client": "$@notionhq/client"
36
+ },
37
+ "vite": {
38
+ "rollup": "npm:@rollup/wasm-node@^4.61.1"
39
+ }
40
+ },
41
+ "resolutions": {
42
+ "rollup": "npm:@rollup/wasm-node@^4.61.1"
43
+ },
44
+ "types": "./src/index.d.ts",
45
+ "main": "./src/index.js",
46
+ "type": "commonjs"
47
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const mailercheck: import("@taskmagic/pieces-framework").Piece<import("@taskmagic/pieces-framework").SecretTextProperty<true>>;
package/src/index.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mailercheck = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const shared_1 = require("@taskmagic/shared");
8
+ const auth_1 = require("./lib/common/auth");
9
+ const verify_an_email_address_1 = require("./lib/actions/verify-an-email-address");
10
+ exports.mailercheck = (0, pieces_framework_1.createPiece)({
11
+ displayName: 'Mailercheck',
12
+ auth: auth_1.mailercheckAuth,
13
+ minimumSupportedRelease: '0.30.0',
14
+ logoUrl: 'https://cdn.activepieces.com/pieces/mailercheck.png',
15
+ categories: [shared_1.PieceCategory.SALES_AND_CRM],
16
+ description: 'MailerCheck is an easy-to-use email and campaign analysis tool. Anyone using an email service provider can keep their email lists clean and their campaigns deliverable.',
17
+ authors: ['sanket-a11y'],
18
+ ai: {
19
+ description: 'Verify email addresses with MailerCheck to keep lists clean and improve deliverability: check whether an address is valid, invalid, or risky before sending or storing it.',
20
+ keywords: [
21
+ 'email verification',
22
+ 'verify email',
23
+ 'validate email',
24
+ 'email validation',
25
+ 'deliverability',
26
+ 'clean email list',
27
+ 'bounce check',
28
+ 'mailercheck',
29
+ ],
30
+ },
31
+ actions: [
32
+ verify_an_email_address_1.verifyAnEmailAddress,
33
+ (0, pieces_common_1.createCustomApiCallAction)({
34
+ auth: auth_1.mailercheckAuth,
35
+ baseUrl: () => 'https://app.mailercheck.com/api',
36
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
37
+ return ({
38
+ Authorization: `Bearer ${auth}`,
39
+ });
40
+ }),
41
+ }),
42
+ ],
43
+ triggers: [],
44
+ });
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/mailercheck/src/index.ts"],"names":[],"mappings":";;;;AAAA,kEAA0D;AAC1D,4DAAqE;AACrE,8CAAkD;AAClD,4CAAoD;AACpD,mFAA6E;AAEhE,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,sBAAe;IACrB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,qDAAqD;IAC9D,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,WAAW,EACT,0KAA0K;IAC5K,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,EAAE,EAAE;QACF,WAAW,EACT,4KAA4K;QAC9K,QAAQ,EAAE;YACR,oBAAoB;YACpB,cAAc;YACd,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,kBAAkB;YAClB,cAAc;YACd,aAAa;SACd;KACF;IACD,OAAO,EAAE;QACP,8CAAoB;QACpB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,sBAAe;YACrB,OAAO,EAAE,GAAG,EAAE,CAAC,iCAAiC;YAChD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,IAAc,EAAE;iBAC1C,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const verifyAnEmailAddress: import("@taskmagic/pieces-framework").IAction<import("@taskmagic/pieces-framework").SecretTextProperty<true>, {
2
+ email: import("@taskmagic/pieces-framework").ShortTextProperty<true>;
3
+ }>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.verifyAnEmailAddress = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
6
+ const pieces_common_1 = require("@taskmagic/pieces-common");
7
+ const auth_1 = require("../common/auth");
8
+ exports.verifyAnEmailAddress = (0, pieces_framework_1.createAction)({
9
+ auth: auth_1.mailercheckAuth,
10
+ name: 'verifyAnEmailAddress',
11
+ displayName: 'Verify an Email Address',
12
+ description: 'Verify a single email address in real-time',
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
+ },
20
+ run(context) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
+ const response = yield pieces_common_1.httpClient.sendRequest({
23
+ method: pieces_common_1.HttpMethod.POST,
24
+ url: 'https://app.mailercheck.com/api/check/single',
25
+ body: {
26
+ email: context.propsValue.email,
27
+ },
28
+ headers: {
29
+ Authorization: `Bearer ${context.auth}`,
30
+ 'Content-Type': 'application/json',
31
+ },
32
+ });
33
+ return response.body;
34
+ });
35
+ },
36
+ });
37
+ //# sourceMappingURL=verify-an-email-address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-an-email-address.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/mailercheck/src/lib/actions/verify-an-email-address.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,4DAAkE;AAClE,yCAAiD;AAEpC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,sBAAe;IACrB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,4CAA4C;IACzD,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,8CAA8C;gBACnD,IAAI,EAAE;oBACJ,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;iBAChC;gBACD,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,OAAO,CAAC,IAAc,EAAE;oBACjD,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const mailercheckAuth: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mailercheckAuth = void 0;
4
+ const pieces_framework_1 = require("@taskmagic/pieces-framework");
5
+ exports.mailercheckAuth = pieces_framework_1.PieceAuth.SecretText({
6
+ displayName: 'API Key',
7
+ description: 'Your MailerCheck API Key. Get it from https://app.mailercheck.com/',
8
+ required: true,
9
+ });
10
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/mailercheck/src/lib/common/auth.ts"],"names":[],"mappings":";;;AAAA,kEAAwD;AAE3C,QAAA,eAAe,GAAG,4BAAS,CAAC,UAAU,CAAC;IAClD,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,oEAAoE;IACjF,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}