@stacksjs/email 0.67.0 → 0.68.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/dist/config.d.ts +3 -0
- package/dist/index.d.ts +3 -3
- package/dist/template.d.ts +6 -5
- package/dist/types.d.ts +35 -31
- package/package.json +1 -1
- package/dist/drivers/index.d.ts +0 -1
- package/dist/drivers/mailgun.d.ts +0 -0
- package/dist/drivers/nodemailer.d.ts +0 -0
- package/dist/drivers/ses.d.ts +0 -0
- package/dist/email.d.ts +0 -0
- package/dist/send.d.ts +0 -0
- package/dist/server/converter.d.ts +0 -0
- package/dist/server/inbound.d.ts +0 -0
- package/dist/server/outbound.d.ts +0 -0
- package/dist/utils/config.d.ts +0 -3
package/dist/config.d.ts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './drivers'
|
|
2
|
+
export * from './email.ts'
|
|
3
|
+
export * from './types'
|
package/dist/template.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { I18n } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { I18n } from 'vue-email';
|
|
2
|
+
|
|
3
|
+
export declare interface RenderOptions {
|
|
4
|
+
props?: Record<string, unknown>
|
|
5
|
+
i18n?: I18n
|
|
5
6
|
}
|
|
6
|
-
export declare function template(path: string, options?: RenderOptions): Promise<string>;
|
|
7
|
+
export declare function template(path: string, options?: RenderOptions): Promise<string>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
export interface Message {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
export declare interface Message {
|
|
2
|
+
name: string
|
|
3
|
+
subject: string
|
|
4
|
+
to: string
|
|
5
|
+
from?: {
|
|
6
|
+
name: string
|
|
7
|
+
address: string
|
|
8
|
+
}
|
|
9
|
+
template: string
|
|
10
|
+
handle?: () => Promise<{ message: string }>
|
|
11
|
+
onError?: (error: Error) => Promise<{ message: string }>
|
|
12
|
+
onSuccess?: () => void
|
|
13
13
|
}
|
|
14
|
-
export interface SendEmailParams {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
subject: string;
|
|
32
|
-
html: string;
|
|
14
|
+
export declare interface SendEmailParams {
|
|
15
|
+
Source: string
|
|
16
|
+
Destination: {
|
|
17
|
+
ToAddresses: string[]
|
|
18
|
+
}
|
|
19
|
+
Message: {
|
|
20
|
+
Body: {
|
|
21
|
+
Html: {
|
|
22
|
+
Charset: 'UTF-8'
|
|
23
|
+
Data: string
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
Subject: {
|
|
27
|
+
Charset: 'UTF-8'
|
|
28
|
+
Data: string
|
|
29
|
+
}
|
|
30
|
+
}
|
|
33
31
|
}
|
|
32
|
+
export declare interface EmailParams {
|
|
33
|
+
to: string
|
|
34
|
+
from: string
|
|
35
|
+
subject: string
|
|
36
|
+
html: string
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.68.1",
|
|
5
5
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
package/dist/drivers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ses from "./ses";
|
|
File without changes
|
|
File without changes
|
package/dist/drivers/ses.d.ts
DELETED
|
File without changes
|
package/dist/email.d.ts
DELETED
|
File without changes
|
package/dist/send.d.ts
DELETED
|
File without changes
|
|
File without changes
|
package/dist/server/inbound.d.ts
DELETED
|
File without changes
|
|
File without changes
|
package/dist/utils/config.d.ts
DELETED