@ever-works/mailchimp-transactional-plugin 1.0.0 → 1.0.4

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.
@@ -0,0 +1,25 @@
1
+ import { IEmailOutboundPlugin, PluginCategory, JsonSchema, EmailSendInput, EmailOptions, EmailSendResult, EmailVerification } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Mailchimp Transactional (formerly Mandrill) outbound email plugin,
5
+ * built on the official `@mailchimp/mailchimp_transactional` SDK.
6
+ *
7
+ * NOTE: this is the *transactional* product (per-message API), NOT the
8
+ * Mailchimp Marketing/campaigns API.
9
+ */
10
+ declare class MailchimpTransactionalPlugin implements IEmailOutboundPlugin {
11
+ readonly id = "mailchimp-transactional";
12
+ readonly name = "Mailchimp Transactional";
13
+ readonly version = "1.0.0";
14
+ readonly category: PluginCategory;
15
+ readonly capabilities: readonly ["email-outbound"];
16
+ readonly settingsSchema: JsonSchema;
17
+ onLoad(): Promise<void>;
18
+ onUnload(): Promise<void>;
19
+ private readonly idempotencyCache;
20
+ sendEmail(input: EmailSendInput, options: EmailOptions): Promise<EmailSendResult>;
21
+ verifyAddress(address: string, _options: EmailOptions): Promise<EmailVerification>;
22
+ }
23
+ declare const mailchimpTransactionalPlugin: MailchimpTransactionalPlugin;
24
+
25
+ export { MailchimpTransactionalPlugin, mailchimpTransactionalPlugin };
@@ -0,0 +1,25 @@
1
+ import { IEmailOutboundPlugin, PluginCategory, JsonSchema, EmailSendInput, EmailOptions, EmailSendResult, EmailVerification } from '@ever-works/plugin';
2
+
3
+ /**
4
+ * Mailchimp Transactional (formerly Mandrill) outbound email plugin,
5
+ * built on the official `@mailchimp/mailchimp_transactional` SDK.
6
+ *
7
+ * NOTE: this is the *transactional* product (per-message API), NOT the
8
+ * Mailchimp Marketing/campaigns API.
9
+ */
10
+ declare class MailchimpTransactionalPlugin implements IEmailOutboundPlugin {
11
+ readonly id = "mailchimp-transactional";
12
+ readonly name = "Mailchimp Transactional";
13
+ readonly version = "1.0.0";
14
+ readonly category: PluginCategory;
15
+ readonly capabilities: readonly ["email-outbound"];
16
+ readonly settingsSchema: JsonSchema;
17
+ onLoad(): Promise<void>;
18
+ onUnload(): Promise<void>;
19
+ private readonly idempotencyCache;
20
+ sendEmail(input: EmailSendInput, options: EmailOptions): Promise<EmailSendResult>;
21
+ verifyAddress(address: string, _options: EmailOptions): Promise<EmailVerification>;
22
+ }
23
+ declare const mailchimpTransactionalPlugin: MailchimpTransactionalPlugin;
24
+
25
+ export { MailchimpTransactionalPlugin, mailchimpTransactionalPlugin };