@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.
@@ -0,0 +1,3 @@
1
+ export declare const email: typeof notification.email;
2
+
3
+ export default email;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./drivers";
2
- export * from "./email.ts";
3
- export * from "./types";
1
+ export * from './drivers'
2
+ export * from './email.ts'
3
+ export * from './types'
@@ -1,6 +1,7 @@
1
- import type { I18n } from "vue-email";
2
- export interface RenderOptions {
3
- props?: Record<string, unknown>;
4
- i18n?: I18n;
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
- 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;
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
- Source: string;
16
- Destination: { ToAddresses: string[] };
17
- Message: {
18
- Body: { Html: {
19
- Charset: "UTF-8";
20
- Data: string;
21
- } };
22
- Subject: {
23
- Charset: "UTF-8";
24
- Data: string;
25
- };
26
- };
27
- }
28
- export interface EmailParams {
29
- to: string;
30
- from: string;
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.67.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>"],
@@ -1 +0,0 @@
1
- export * as ses from "./ses";
File without changes
File without changes
File without changes
package/dist/email.d.ts DELETED
File without changes
package/dist/send.d.ts DELETED
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- import { notification } from "@stacksjs/config";
2
- export declare const email: typeof notification.email;
3
- export default email;