@activepieces/piece-mailgun 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/package.json +16 -0
- package/src/i18n/fr.json +126 -0
- package/src/i18n/translation.json +126 -0
- package/src/index.d.ts +9 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +109 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/add-mailing-list-member.d.ts +15 -0
- package/src/lib/actions/add-mailing-list-member.d.ts.map +1 -0
- package/src/lib/actions/add-mailing-list-member.js +76 -0
- package/src/lib/actions/add-mailing-list-member.js.map +1 -0
- package/src/lib/actions/get-domain-stats.d.ts +12 -0
- package/src/lib/actions/get-domain-stats.d.ts.map +1 -0
- package/src/lib/actions/get-domain-stats.js +117 -0
- package/src/lib/actions/get-domain-stats.js.map +1 -0
- package/src/lib/actions/get-events.d.ts +15 -0
- package/src/lib/actions/get-events.d.ts.map +1 -0
- package/src/lib/actions/get-events.js +141 -0
- package/src/lib/actions/get-events.js.map +1 -0
- package/src/lib/actions/list-bounces.d.ts +11 -0
- package/src/lib/actions/list-bounces.d.ts.map +1 -0
- package/src/lib/actions/list-bounces.js +49 -0
- package/src/lib/actions/list-bounces.js.map +1 -0
- package/src/lib/actions/send-email.d.ts +18 -0
- package/src/lib/actions/send-email.d.ts.map +1 -0
- package/src/lib/actions/send-email.js +93 -0
- package/src/lib/actions/send-email.js.map +1 -0
- package/src/lib/actions/validate-email.d.ts +8 -0
- package/src/lib/actions/validate-email.d.ts.map +1 -0
- package/src/lib/actions/validate-email.js +54 -0
- package/src/lib/actions/validate-email.js.map +1 -0
- package/src/lib/common/index.d.ts +39 -0
- package/src/lib/common/index.d.ts.map +1 -0
- package/src/lib/common/index.js +165 -0
- package/src/lib/common/index.js.map +1 -0
- package/src/lib/triggers/common.d.ts +42 -0
- package/src/lib/triggers/common.d.ts.map +1 -0
- package/src/lib/triggers/common.js +102 -0
- package/src/lib/triggers/common.js.map +1 -0
- package/src/lib/triggers/new-bounce-event.d.ts +34 -0
- package/src/lib/triggers/new-bounce-event.d.ts.map +1 -0
- package/src/lib/triggers/new-bounce-event.js +29 -0
- package/src/lib/triggers/new-bounce-event.js.map +1 -0
- package/src/lib/triggers/new-click-event.d.ts +34 -0
- package/src/lib/triggers/new-click-event.d.ts.map +1 -0
- package/src/lib/triggers/new-click-event.js +29 -0
- package/src/lib/triggers/new-click-event.js.map +1 -0
- package/src/lib/triggers/new-complaint-event.d.ts +34 -0
- package/src/lib/triggers/new-complaint-event.d.ts.map +1 -0
- package/src/lib/triggers/new-complaint-event.js +24 -0
- package/src/lib/triggers/new-complaint-event.js.map +1 -0
- package/src/lib/triggers/new-delivery-event.d.ts +34 -0
- package/src/lib/triggers/new-delivery-event.d.ts.map +1 -0
- package/src/lib/triggers/new-delivery-event.js +26 -0
- package/src/lib/triggers/new-delivery-event.js.map +1 -0
- package/src/lib/triggers/new-failed-delivery-event.d.ts +34 -0
- package/src/lib/triggers/new-failed-delivery-event.d.ts.map +1 -0
- package/src/lib/triggers/new-failed-delivery-event.js +29 -0
- package/src/lib/triggers/new-failed-delivery-event.js.map +1 -0
- package/src/lib/triggers/new-open-event.d.ts +34 -0
- package/src/lib/triggers/new-open-event.d.ts.map +1 -0
- package/src/lib/triggers/new-open-event.js +28 -0
- package/src/lib/triggers/new-open-event.js.map +1 -0
- package/src/lib/triggers/new-unsubscribe-event.d.ts +34 -0
- package/src/lib/triggers/new-unsubscribe-event.d.ts.map +1 -0
- package/src/lib/triggers/new-unsubscribe-event.js +28 -0
- package/src/lib/triggers/new-unsubscribe-event.js.map +1 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDomainStats = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
exports.getDomainStats = (0, pieces_framework_1.createAction)({
|
|
9
|
+
auth: __1.mailgunAuth,
|
|
10
|
+
name: 'get_domain_stats',
|
|
11
|
+
displayName: 'Get Domain Stats',
|
|
12
|
+
description: 'Retrieve aggregated email statistics for a Mailgun domain (delivered, failed, opened, etc.). Useful for monitoring delivery health and detecting anomalies.',
|
|
13
|
+
props: {
|
|
14
|
+
domain: common_1.mailgunCommon.domainDropdown,
|
|
15
|
+
event: pieces_framework_1.Property.StaticMultiSelectDropdown({
|
|
16
|
+
displayName: 'Event Types',
|
|
17
|
+
description: 'Select which event types to include in the statistics.',
|
|
18
|
+
required: true,
|
|
19
|
+
options: {
|
|
20
|
+
options: [
|
|
21
|
+
{ label: 'Accepted', value: 'accepted' },
|
|
22
|
+
{ label: 'Delivered', value: 'delivered' },
|
|
23
|
+
{ label: 'Failed', value: 'failed' },
|
|
24
|
+
{ label: 'Opened', value: 'opened' },
|
|
25
|
+
{ label: 'Clicked', value: 'clicked' },
|
|
26
|
+
{ label: 'Complained', value: 'complained' },
|
|
27
|
+
{ label: 'Unsubscribed', value: 'unsubscribed' },
|
|
28
|
+
{ label: 'Stored', value: 'stored' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
duration: pieces_framework_1.Property.StaticDropdown({
|
|
33
|
+
displayName: 'Duration',
|
|
34
|
+
description: 'Time period to aggregate stats over.',
|
|
35
|
+
required: true,
|
|
36
|
+
defaultValue: '1h',
|
|
37
|
+
options: {
|
|
38
|
+
options: [
|
|
39
|
+
{ label: 'Last 1 hour', value: '1h' },
|
|
40
|
+
{ label: 'Last 6 hours', value: '6h' },
|
|
41
|
+
{ label: 'Last 12 hours', value: '12h' },
|
|
42
|
+
{ label: 'Last 24 hours', value: '24h' },
|
|
43
|
+
{ label: 'Last 7 days', value: '7d' },
|
|
44
|
+
{ label: 'Last 30 days', value: '30d' },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
run(context) {
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
52
|
+
const { domain, event, duration } = context.propsValue;
|
|
53
|
+
const auth = context.auth;
|
|
54
|
+
const baseUrl = auth.props.region === 'eu'
|
|
55
|
+
? 'https://api.eu.mailgun.net'
|
|
56
|
+
: 'https://api.mailgun.net';
|
|
57
|
+
const params = new URLSearchParams({ duration });
|
|
58
|
+
for (const e of event) {
|
|
59
|
+
params.append('event', e);
|
|
60
|
+
}
|
|
61
|
+
const response = yield (0, common_1.mailgunApiCallAbsoluteUrl)({
|
|
62
|
+
apiKey: auth.props.api_key,
|
|
63
|
+
url: `${baseUrl}/v3/${domain}/stats/total?${params.toString()}`,
|
|
64
|
+
});
|
|
65
|
+
const stats = response.body.stats;
|
|
66
|
+
if (!stats || stats.length === 0) {
|
|
67
|
+
return {
|
|
68
|
+
duration,
|
|
69
|
+
accepted: 0,
|
|
70
|
+
delivered: 0,
|
|
71
|
+
failed_permanent: 0,
|
|
72
|
+
failed_temporary: 0,
|
|
73
|
+
failed_total: 0,
|
|
74
|
+
opened: 0,
|
|
75
|
+
clicked: 0,
|
|
76
|
+
complained: 0,
|
|
77
|
+
unsubscribed: 0,
|
|
78
|
+
stored: 0,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
let accepted = 0;
|
|
82
|
+
let delivered = 0;
|
|
83
|
+
let failedPermanent = 0;
|
|
84
|
+
let failedTemporary = 0;
|
|
85
|
+
let opened = 0;
|
|
86
|
+
let clicked = 0;
|
|
87
|
+
let complained = 0;
|
|
88
|
+
let unsubscribed = 0;
|
|
89
|
+
let stored = 0;
|
|
90
|
+
for (const bucket of stats) {
|
|
91
|
+
accepted += (_b = (_a = bucket.accepted) === null || _a === void 0 ? void 0 : _a.total) !== null && _b !== void 0 ? _b : 0;
|
|
92
|
+
delivered += (_d = (_c = bucket.delivered) === null || _c === void 0 ? void 0 : _c.total) !== null && _d !== void 0 ? _d : 0;
|
|
93
|
+
failedPermanent += (_g = (_f = (_e = bucket.failed) === null || _e === void 0 ? void 0 : _e.permanent) === null || _f === void 0 ? void 0 : _f.total) !== null && _g !== void 0 ? _g : 0;
|
|
94
|
+
failedTemporary += (_k = (_j = (_h = bucket.failed) === null || _h === void 0 ? void 0 : _h.temporary) === null || _j === void 0 ? void 0 : _j.total) !== null && _k !== void 0 ? _k : 0;
|
|
95
|
+
opened += (_m = (_l = bucket.opened) === null || _l === void 0 ? void 0 : _l.total) !== null && _m !== void 0 ? _m : 0;
|
|
96
|
+
clicked += (_p = (_o = bucket.clicked) === null || _o === void 0 ? void 0 : _o.total) !== null && _p !== void 0 ? _p : 0;
|
|
97
|
+
complained += (_r = (_q = bucket.complained) === null || _q === void 0 ? void 0 : _q.total) !== null && _r !== void 0 ? _r : 0;
|
|
98
|
+
unsubscribed += (_t = (_s = bucket.unsubscribed) === null || _s === void 0 ? void 0 : _s.total) !== null && _t !== void 0 ? _t : 0;
|
|
99
|
+
stored += (_v = (_u = bucket.stored) === null || _u === void 0 ? void 0 : _u.total) !== null && _v !== void 0 ? _v : 0;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
duration,
|
|
103
|
+
accepted,
|
|
104
|
+
delivered,
|
|
105
|
+
failed_permanent: failedPermanent,
|
|
106
|
+
failed_temporary: failedTemporary,
|
|
107
|
+
failed_total: failedPermanent + failedTemporary,
|
|
108
|
+
opened,
|
|
109
|
+
clicked,
|
|
110
|
+
complained,
|
|
111
|
+
unsubscribed,
|
|
112
|
+
stored,
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
//# sourceMappingURL=get-domain-stats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-domain-stats.js","sourceRoot":"","sources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AC,YAAY,0CAAE,KAAK,mCAAI,CAAC,CAAC;gBAChD,MAAM,IAAI,MAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,KAAK,mCAAI,CAAC,CAAC;YACtC,CAAC;YAED,OAAO;gBACL,QAAQ;gBACR,QAAQ;gBACR,SAAS;gBACT,gBAAgB,EAAE,eAAe;gBACjC,gBAAgB,EAAE,eAAe;gBACjC,YAAY,EAAE,eAAe,GAAG,eAAe;gBAC/C,MAAM;gBACN,OAAO;gBACP,UAAU;gBACV,YAAY;gBACZ,MAAM;aACP,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const getEvents: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
}>, {
|
|
5
|
+
domain: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
7
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
8
|
+
}>>;
|
|
9
|
+
event: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
10
|
+
severity: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
11
|
+
begin: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
+
end: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=get-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-events.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;EA0GpB,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEvents = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
+
exports.getEvents = (0, pieces_framework_1.createAction)({
|
|
10
|
+
auth: __1.mailgunAuth,
|
|
11
|
+
name: 'get_events',
|
|
12
|
+
displayName: 'Get Events',
|
|
13
|
+
description: 'Retrieve email events from your Mailgun domain (deliveries, failures, opens, clicks, etc.). Useful for monitoring and alerting.',
|
|
14
|
+
props: {
|
|
15
|
+
domain: common_1.mailgunCommon.domainDropdown,
|
|
16
|
+
event: pieces_framework_1.Property.StaticDropdown({
|
|
17
|
+
displayName: 'Event Type',
|
|
18
|
+
description: 'Filter events by type.',
|
|
19
|
+
required: true,
|
|
20
|
+
options: {
|
|
21
|
+
options: [
|
|
22
|
+
{ label: 'Failed (permanent + temporary)', value: 'failed' },
|
|
23
|
+
{ label: 'Delivered', value: 'delivered' },
|
|
24
|
+
{ label: 'Accepted', value: 'accepted' },
|
|
25
|
+
{ label: 'Rejected', value: 'rejected' },
|
|
26
|
+
{ label: 'Opened', value: 'opened' },
|
|
27
|
+
{ label: 'Clicked', value: 'clicked' },
|
|
28
|
+
{ label: 'Complained', value: 'complained' },
|
|
29
|
+
{ label: 'Unsubscribed', value: 'unsubscribed' },
|
|
30
|
+
{ label: 'Stored', value: 'stored' },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
severity: pieces_framework_1.Property.StaticDropdown({
|
|
35
|
+
displayName: 'Severity',
|
|
36
|
+
description: 'Only applies to "failed" events. Filter by permanent (hard bounce) or temporary (soft bounce).',
|
|
37
|
+
required: false,
|
|
38
|
+
options: {
|
|
39
|
+
options: [
|
|
40
|
+
{ label: 'All', value: '' },
|
|
41
|
+
{ label: 'Permanent (hard bounce)', value: 'permanent' },
|
|
42
|
+
{ label: 'Temporary (soft bounce)', value: 'temporary' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
begin: pieces_framework_1.Property.ShortText({
|
|
47
|
+
displayName: 'Begin Date',
|
|
48
|
+
description: 'Start of the time range. RFC 2822 date (e.g. "Fri, 28 Mar 2026 10:00:00 -0000") or Unix timestamp (e.g. "1711620000"). Leave empty for Mailgun default (about 30 days ago).',
|
|
49
|
+
required: false,
|
|
50
|
+
}),
|
|
51
|
+
end: pieces_framework_1.Property.ShortText({
|
|
52
|
+
displayName: 'End Date',
|
|
53
|
+
description: 'End of the time range. Same format as Begin Date. Leave empty for now.',
|
|
54
|
+
required: false,
|
|
55
|
+
}),
|
|
56
|
+
limit: pieces_framework_1.Property.Number({
|
|
57
|
+
displayName: 'Max Results',
|
|
58
|
+
description: 'Maximum number of events to return. Default is 100, max is 1000. Mailgun returns up to 300 per page — pagination is handled automatically.',
|
|
59
|
+
required: false,
|
|
60
|
+
defaultValue: 100,
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
|
+
run(context) {
|
|
64
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
var _a, _b, _c, _d;
|
|
66
|
+
const { domain, event, severity, begin, end, limit } = context.propsValue;
|
|
67
|
+
const auth = context.auth;
|
|
68
|
+
const maxResults = Math.min(Math.max(limit !== null && limit !== void 0 ? limit : 100, 1), 1000);
|
|
69
|
+
const pageSize = Math.min(maxResults, 300);
|
|
70
|
+
const queryParams = {
|
|
71
|
+
event,
|
|
72
|
+
limit: String(pageSize),
|
|
73
|
+
};
|
|
74
|
+
if (severity)
|
|
75
|
+
queryParams['severity'] = severity;
|
|
76
|
+
if (begin)
|
|
77
|
+
queryParams['begin'] = begin;
|
|
78
|
+
if (end)
|
|
79
|
+
queryParams['end'] = end;
|
|
80
|
+
const allItems = [];
|
|
81
|
+
const firstResponse = yield (0, common_1.mailgunApiCall)({
|
|
82
|
+
apiKey: auth.props.api_key,
|
|
83
|
+
region: auth.props.region,
|
|
84
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
85
|
+
path: `/v3/${domain}/events`,
|
|
86
|
+
queryParams,
|
|
87
|
+
});
|
|
88
|
+
allItems.push(...firstResponse.body.items);
|
|
89
|
+
let nextUrl = (_b = (_a = firstResponse.body.paging) === null || _a === void 0 ? void 0 : _a.next) !== null && _b !== void 0 ? _b : null;
|
|
90
|
+
while (nextUrl && allItems.length < maxResults) {
|
|
91
|
+
const pageResponse = yield (0, common_1.mailgunApiCallAbsoluteUrl)({
|
|
92
|
+
apiKey: auth.props.api_key,
|
|
93
|
+
url: nextUrl,
|
|
94
|
+
});
|
|
95
|
+
if (!pageResponse.body.items || pageResponse.body.items.length === 0) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
allItems.push(...pageResponse.body.items);
|
|
99
|
+
nextUrl = (_d = (_c = pageResponse.body.paging) === null || _c === void 0 ? void 0 : _c.next) !== null && _d !== void 0 ? _d : null;
|
|
100
|
+
}
|
|
101
|
+
const events = allItems.slice(0, maxResults).map(flattenEvent);
|
|
102
|
+
return {
|
|
103
|
+
total_count: events.length,
|
|
104
|
+
events,
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
function flattenEvent(item) {
|
|
110
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
111
|
+
const result = {
|
|
112
|
+
event: (_a = item['event']) !== null && _a !== void 0 ? _a : null,
|
|
113
|
+
id: (_b = item['id']) !== null && _b !== void 0 ? _b : null,
|
|
114
|
+
timestamp: (_c = item['timestamp']) !== null && _c !== void 0 ? _c : null,
|
|
115
|
+
recipient: (_d = item['recipient']) !== null && _d !== void 0 ? _d : null,
|
|
116
|
+
domain: (_e = item['domain']) !== null && _e !== void 0 ? _e : null,
|
|
117
|
+
log_level: (_f = item['log-level']) !== null && _f !== void 0 ? _f : null,
|
|
118
|
+
severity: (_g = item['severity']) !== null && _g !== void 0 ? _g : null,
|
|
119
|
+
reason: (_h = item['reason']) !== null && _h !== void 0 ? _h : null,
|
|
120
|
+
};
|
|
121
|
+
const message = item['message'];
|
|
122
|
+
if (message) {
|
|
123
|
+
const headers = message['headers'];
|
|
124
|
+
if (headers) {
|
|
125
|
+
result['message_id'] = (_j = headers['message-id']) !== null && _j !== void 0 ? _j : null;
|
|
126
|
+
result['from'] = (_k = headers['from']) !== null && _k !== void 0 ? _k : null;
|
|
127
|
+
result['to'] = (_l = headers['to']) !== null && _l !== void 0 ? _l : null;
|
|
128
|
+
result['subject'] = (_m = headers['subject']) !== null && _m !== void 0 ? _m : null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const deliveryStatus = item['delivery-status'];
|
|
132
|
+
if (deliveryStatus) {
|
|
133
|
+
result['delivery_status_code'] = (_o = deliveryStatus['code']) !== null && _o !== void 0 ? _o : null;
|
|
134
|
+
result['delivery_status_message'] = (_p = deliveryStatus['message']) !== null && _p !== void 0 ? _p : null;
|
|
135
|
+
result['delivery_status_description'] = (_q = deliveryStatus['description']) !== null && _q !== void 0 ? _q : null;
|
|
136
|
+
}
|
|
137
|
+
const tags = item['tags'];
|
|
138
|
+
result['tags'] = Array.isArray(tags) ? tags.join(', ') : null;
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=get-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-events.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-events.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AACpC,sCAAqF;AACrF,+DAAyD;AAE5C,QAAA,SAAS,GAA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AM,CAAC,mCAAI,IAAI,CAAC;QAChE,MAAM,CAAC,yBAAyB,CAAC,GAAG,MAAA,cAAc,CAAC,SAAS,CAAC,mCAAI,IAAI,CAAC;QACtE,MAAM,CAAC,6BAA6B,CAAC,GAAG,MAAA,cAAc,CAAC,aAAa,CAAC,mCAAI,IAAI,CAAC;IAChF,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAyB,CAAC;IAClD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAE9D,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const listBounces: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
}>, {
|
|
5
|
+
domain: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
7
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
8
|
+
}>>;
|
|
9
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=list-bounces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-bounces.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-bounces.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;EAiDtB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listBounces = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
+
exports.listBounces = (0, pieces_framework_1.createAction)({
|
|
10
|
+
auth: __1.mailgunAuth,
|
|
11
|
+
name: 'list_bounces',
|
|
12
|
+
displayName: 'List Bounces',
|
|
13
|
+
description: 'Retrieve the list of bounced email addresses for a Mailgun domain. Useful for cleanup after delivery issues or spam attacks.',
|
|
14
|
+
props: {
|
|
15
|
+
domain: common_1.mailgunCommon.domainDropdown,
|
|
16
|
+
limit: pieces_framework_1.Property.Number({
|
|
17
|
+
displayName: 'Max Results',
|
|
18
|
+
description: 'Maximum number of bounces to return (1-1000). Default is 100.',
|
|
19
|
+
required: false,
|
|
20
|
+
defaultValue: 100,
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
23
|
+
run(context) {
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const { domain, limit } = context.propsValue;
|
|
26
|
+
const auth = context.auth;
|
|
27
|
+
const response = yield (0, common_1.mailgunApiCall)({
|
|
28
|
+
apiKey: auth.props.api_key,
|
|
29
|
+
region: auth.props.region,
|
|
30
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
31
|
+
path: `/v3/${domain}/bounces`,
|
|
32
|
+
queryParams: {
|
|
33
|
+
limit: String(Math.min(Math.max(limit !== null && limit !== void 0 ? limit : 100, 1), 1000)),
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
const bounces = response.body.items.map((item) => ({
|
|
37
|
+
address: item.address,
|
|
38
|
+
code: item.code,
|
|
39
|
+
error: item.error,
|
|
40
|
+
created_at: item.created_at,
|
|
41
|
+
}));
|
|
42
|
+
return {
|
|
43
|
+
total_count: bounces.length,
|
|
44
|
+
bounces,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=list-bounces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-bounces.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-bounces.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AACpC,sCAA0D;AAC1D,+DAAyD;AAE5C,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EACT,8HAA8H;IAChI,KAAK,EAAE;QACL,MAAM,EAAE,sBAAa,CAAC,cAAc;QACpC,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,GAAG;SAClB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAE1B,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAQlC;gBACD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;gBACzB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,OAAO,MAAM,UAAU;gBAC7B,WAAW,EAAE;oBACX,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;iBACzD;aACF,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACjD,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,UAAU,EAAE,IAAI,CAAC,UAAU;aAC5B,CAAC,CAAC,CAAC;YAEJ,OAAO;gBACL,WAAW,EAAE,OAAO,CAAC,MAAM;gBAC3B,OAAO;aACR,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const sendEmail: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
}>, {
|
|
5
|
+
domain: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
7
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
8
|
+
}>>;
|
|
9
|
+
from: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
to: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
cc: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
+
bcc: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
+
replyTo: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
+
subject: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
text: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
16
|
+
html: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=send-email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-email.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;EAwFpB,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendEmail = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
+
exports.sendEmail = (0, pieces_framework_1.createAction)({
|
|
10
|
+
auth: __1.mailgunAuth,
|
|
11
|
+
name: 'send_email',
|
|
12
|
+
displayName: 'Send Email',
|
|
13
|
+
description: 'Send an email using your Mailgun domain',
|
|
14
|
+
props: {
|
|
15
|
+
domain: common_1.mailgunCommon.domainDropdown,
|
|
16
|
+
from: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'From',
|
|
18
|
+
description: 'Sender email address, e.g. "Your Name <you@yourdomain.com>"',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
to: pieces_framework_1.Property.ShortText({
|
|
22
|
+
displayName: 'To Email Address',
|
|
23
|
+
description: 'Recipient email address. For multiple recipients, separate with commas.',
|
|
24
|
+
required: true,
|
|
25
|
+
}),
|
|
26
|
+
cc: pieces_framework_1.Property.ShortText({
|
|
27
|
+
displayName: 'CC Email Address',
|
|
28
|
+
description: 'Carbon copy recipients, separated by commas.',
|
|
29
|
+
required: false,
|
|
30
|
+
}),
|
|
31
|
+
bcc: pieces_framework_1.Property.ShortText({
|
|
32
|
+
displayName: 'BCC Email Address',
|
|
33
|
+
description: 'Blind carbon copy recipients, separated by commas.',
|
|
34
|
+
required: false,
|
|
35
|
+
}),
|
|
36
|
+
replyTo: pieces_framework_1.Property.ShortText({
|
|
37
|
+
displayName: 'Reply-To Email Address',
|
|
38
|
+
description: 'Email address for replies.',
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
41
|
+
subject: pieces_framework_1.Property.ShortText({
|
|
42
|
+
displayName: 'Email Subject',
|
|
43
|
+
required: true,
|
|
44
|
+
}),
|
|
45
|
+
text: pieces_framework_1.Property.LongText({
|
|
46
|
+
displayName: 'Email Body (Plain Text)',
|
|
47
|
+
description: 'Plain text version of the email body.',
|
|
48
|
+
required: false,
|
|
49
|
+
}),
|
|
50
|
+
html: pieces_framework_1.Property.LongText({
|
|
51
|
+
displayName: 'Email Body (HTML)',
|
|
52
|
+
description: 'HTML version of the email body.',
|
|
53
|
+
required: false,
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
run(context) {
|
|
57
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const { domain, from, to, cc, bcc, replyTo, subject, text, html } = context.propsValue;
|
|
59
|
+
const auth = context.auth;
|
|
60
|
+
if (!text && !html) {
|
|
61
|
+
throw new Error('Please provide either a plain text or HTML body for the email.');
|
|
62
|
+
}
|
|
63
|
+
const bodyFields = {
|
|
64
|
+
from,
|
|
65
|
+
to,
|
|
66
|
+
subject,
|
|
67
|
+
};
|
|
68
|
+
if (cc)
|
|
69
|
+
bodyFields['cc'] = cc;
|
|
70
|
+
if (bcc)
|
|
71
|
+
bodyFields['bcc'] = bcc;
|
|
72
|
+
if (replyTo)
|
|
73
|
+
bodyFields['h:Reply-To'] = replyTo;
|
|
74
|
+
if (text)
|
|
75
|
+
bodyFields['text'] = text;
|
|
76
|
+
if (html)
|
|
77
|
+
bodyFields['html'] = html;
|
|
78
|
+
const response = yield (0, common_1.mailgunApiCall)({
|
|
79
|
+
apiKey: auth.props.api_key,
|
|
80
|
+
region: auth.props.region,
|
|
81
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
82
|
+
path: `/v3/${domain}/messages`,
|
|
83
|
+
body: new URLSearchParams(bodyFields).toString(),
|
|
84
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
85
|
+
});
|
|
86
|
+
return {
|
|
87
|
+
message_id: response.body.id,
|
|
88
|
+
message: response.body.message,
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=send-email.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-email.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AACpC,sCAA0D;AAC1D,+DAAyD;AAE5C,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACL,MAAM,EAAE,sBAAa,CAAC,cAAc;QACpC,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EACT,yEAAyE;YAC3E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,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CAAC,GAAG,IAAI,CAAC;YAEpC,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAGlC;gBACD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;gBACzB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,OAAO,MAAM,WAAW;gBAC9B,IAAI,EAAE,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;gBAChD,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;aACjE,CAAC,CAAC;YAEH,OAAO;gBACL,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;gBAC5B,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO;aAC/B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const validateEmail: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
}>, {
|
|
5
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
+
providerLookup: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=validate-email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-email.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/validate-email.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;EAoDxB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateEmail = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
+
exports.validateEmail = (0, pieces_framework_1.createAction)({
|
|
10
|
+
auth: __1.mailgunAuth,
|
|
11
|
+
name: 'validate_email',
|
|
12
|
+
displayName: 'Validate Email',
|
|
13
|
+
description: 'Validate an email address using Mailgun validation service. Requires a Mailgun account with email validation enabled.',
|
|
14
|
+
props: {
|
|
15
|
+
email: pieces_framework_1.Property.ShortText({
|
|
16
|
+
displayName: 'Email Address',
|
|
17
|
+
description: 'The email address to validate.',
|
|
18
|
+
required: true,
|
|
19
|
+
}),
|
|
20
|
+
providerLookup: pieces_framework_1.Property.Checkbox({
|
|
21
|
+
displayName: 'Provider Lookup',
|
|
22
|
+
description: 'Enable additional mailbox provider checks for more accurate results.',
|
|
23
|
+
required: false,
|
|
24
|
+
defaultValue: true,
|
|
25
|
+
}),
|
|
26
|
+
},
|
|
27
|
+
run(context) {
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
var _a;
|
|
30
|
+
const auth = context.auth;
|
|
31
|
+
const response = yield (0, common_1.mailgunApiCall)({
|
|
32
|
+
apiKey: auth.props.api_key,
|
|
33
|
+
region: auth.props.region,
|
|
34
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
35
|
+
path: '/v4/address/validate',
|
|
36
|
+
queryParams: {
|
|
37
|
+
address: context.propsValue.email,
|
|
38
|
+
provider_lookup: String((_a = context.propsValue.providerLookup) !== null && _a !== void 0 ? _a : true),
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
address: response.body.address,
|
|
43
|
+
is_disposable_address: response.body.is_disposable_address,
|
|
44
|
+
is_role_address: response.body.is_role_address,
|
|
45
|
+
reason: Array.isArray(response.body.reason)
|
|
46
|
+
? response.body.reason.join(', ')
|
|
47
|
+
: null,
|
|
48
|
+
result: response.body.result,
|
|
49
|
+
risk: response.body.risk,
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=validate-email.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-email.js","sourceRoot":"","sources":["../../../../src/lib/actions/validate-email.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAoC;AACpC,sCAA2C;AAC3C,+DAAyD;AAE5C,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EACT,uHAAuH;IACzH,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAChC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EACT,sEAAsE;YACxE,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAE1B,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAOlC;gBACD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;gBACzB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,sBAAsB;gBAC5B,WAAW,EAAE;oBACX,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;oBACjC,eAAe,EAAE,MAAM,CAAC,MAAA,OAAO,CAAC,UAAU,CAAC,cAAc,mCAAI,IAAI,CAAC;iBACnE;aACF,CAAC,CAAC;YAEH,OAAO;gBACL,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO;gBAC9B,qBAAqB,EAAE,QAAQ,CAAC,IAAI,CAAC,qBAAqB;gBAC1D,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe;gBAC9C,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;oBACzC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;oBACjC,CAAC,CAAC,IAAI;gBACR,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;gBAC5B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI;aACzB,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { HttpMethod, HttpMessageBody, HttpResponse } from '@activepieces/pieces-common';
|
|
2
|
+
export declare function verifyMailgunSignature(apiKey: string, timestamp: string, token: string, signature: string): boolean;
|
|
3
|
+
export declare function mailgunApiCall<T extends HttpMessageBody>({ apiKey, region, method, path, body, queryParams, headers, }: {
|
|
4
|
+
apiKey: string;
|
|
5
|
+
region: string;
|
|
6
|
+
method: HttpMethod;
|
|
7
|
+
path: string;
|
|
8
|
+
body?: unknown;
|
|
9
|
+
queryParams?: Record<string, string>;
|
|
10
|
+
headers?: Record<string, string>;
|
|
11
|
+
}): Promise<HttpResponse<T>>;
|
|
12
|
+
export declare function subscribeWebhook({ apiKey, region, domain, eventType, webhookUrl, }: {
|
|
13
|
+
apiKey: string;
|
|
14
|
+
region: string;
|
|
15
|
+
domain: string;
|
|
16
|
+
eventType: string;
|
|
17
|
+
webhookUrl: string;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
export declare function unsubscribeWebhook({ apiKey, region, domain, eventType, }: {
|
|
20
|
+
apiKey: string;
|
|
21
|
+
region: string;
|
|
22
|
+
domain: string;
|
|
23
|
+
eventType: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
export declare function mailgunApiCallAbsoluteUrl<T extends HttpMessageBody>({ apiKey, url, }: {
|
|
26
|
+
apiKey: string;
|
|
27
|
+
url: string;
|
|
28
|
+
}): Promise<HttpResponse<T>>;
|
|
29
|
+
export declare const mailgunCommon: {
|
|
30
|
+
domainDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
31
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
32
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
33
|
+
}>>;
|
|
34
|
+
mailingListDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
35
|
+
api_key: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
36
|
+
region: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
37
|
+
}>>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAEV,eAAe,EACf,YAAY,EAEb,MAAM,6BAA6B,CAAC;AAKrC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAChB,OAAO,CAUT;AAED,wBAAsB,cAAc,CAAC,CAAC,SAAS,eAAe,EAAE,EAC9D,MAAM,EACN,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,OAAO,GACR,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;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