@webiny/api-mailer 6.4.12-beta.4 → 6.5.0-beta.0

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.
@@ -1,10 +1,10 @@
1
1
  import zod from "zod";
2
2
  export declare const saveValidation: zod.ZodObject<{
3
- secure: zod.ZodOptional<zod.ZodBoolean>;
4
- password: zod.ZodPipe<zod.ZodOptional<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>, zod.ZodTransform<string | null, string | null | undefined>>;
5
3
  from: zod.ZodString;
6
4
  port: zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodNumber>>>;
7
- replyTo: zod.ZodPreprocess<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>, unknown>;
5
+ replyTo: zod.ZodPreprocess<zod.ZodOptional<zod.ZodNullable<zod.ZodOptional<zod.ZodString>>>>;
8
6
  host: zod.ZodString;
9
7
  user: zod.ZodString;
8
+ secure: zod.ZodOptional<zod.ZodBoolean>;
9
+ password: zod.ZodPipe<zod.ZodOptional<zod.ZodOptional<zod.ZodNullable<zod.ZodString>>>, zod.ZodTransform<string | null, string | null | undefined>>;
10
10
  }, zod.core.$strip>;
@@ -5,7 +5,7 @@ export declare class SmtpMailTransport implements MailTransport.Interface {
5
5
  private readonly transporter;
6
6
  constructor(config: SMTPTransport.Options);
7
7
  send(params: MailTransport.SendParams): Promise<{
8
- result: string | undefined;
8
+ result: string;
9
9
  error: null;
10
10
  } | {
11
11
  result: null;
@@ -13,19 +13,12 @@ export declare class SmtpMailTransport implements MailTransport.Interface {
13
13
  message: string;
14
14
  code: string;
15
15
  data: {
16
- [key: string]: unknown;
17
- envelope: import("nodemailer/lib/mime-node").MimeNodeEnvelope;
16
+ envelope: import("nodemailer/lib/mime-node").Envelope;
18
17
  messageId: string;
19
- accepted: string[];
20
- rejected: string[];
21
- ehlo?: string[] | undefined;
22
- rejectedErrors?: import("nodemailer").NodemailerError[] | undefined;
23
- envelopeTime?: number | undefined;
24
- messageTime?: number | undefined;
25
- messageSize?: number | undefined;
26
- response?: string | undefined;
27
- pending?: string[] | undefined;
28
- message?: unknown;
18
+ accepted: Array<string | import("nodemailer/lib/mailer").Address>;
19
+ rejected: Array<string | import("nodemailer/lib/mailer").Address>;
20
+ pending: Array<string | import("nodemailer/lib/mailer").Address>;
21
+ response: string;
29
22
  };
30
23
  };
31
24
  } | {
@@ -34,21 +27,18 @@ export declare class SmtpMailTransport implements MailTransport.Interface {
34
27
  message: any;
35
28
  code: any;
36
29
  data: {
37
- command: any;
38
- response: any;
39
- responseCode: any;
40
- to: string[];
30
+ to?: string[];
41
31
  cc?: string[];
42
- bcc?: string[];
32
+ bcc: string[];
43
33
  from?: string;
44
34
  subject: string;
45
35
  text?: string;
46
36
  html?: string;
47
37
  replyTo?: string;
48
- } | {
49
38
  command: any;
50
39
  response: any;
51
40
  responseCode: any;
41
+ } | {
52
42
  to?: string[];
53
43
  cc: string[];
54
44
  bcc?: string[];
@@ -57,18 +47,21 @@ export declare class SmtpMailTransport implements MailTransport.Interface {
57
47
  text?: string;
58
48
  html?: string;
59
49
  replyTo?: string;
60
- } | {
61
50
  command: any;
62
51
  response: any;
63
52
  responseCode: any;
64
- to?: string[];
53
+ } | {
54
+ to: string[];
65
55
  cc?: string[];
66
- bcc: string[];
56
+ bcc?: string[];
67
57
  from?: string;
68
58
  subject: string;
69
59
  text?: string;
70
60
  html?: string;
71
61
  replyTo?: string;
62
+ command: any;
63
+ response: any;
64
+ responseCode: any;
72
65
  };
73
66
  };
74
67
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-mailer",
3
- "version": "6.4.12-beta.4",
3
+ "version": "6.5.0-beta.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -18,29 +18,27 @@
18
18
  "description": "The API to send e-mails.",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@webiny/api": "6.4.12-beta.4",
22
- "@webiny/api-headless-cms": "6.4.12-beta.4",
23
- "@webiny/feature": "6.4.12-beta.4",
24
- "@webiny/handler-graphql": "6.4.12-beta.4",
25
- "@webiny/plugins": "6.4.12-beta.4",
21
+ "@webiny/api": "6.5.0-beta.0",
22
+ "@webiny/api-headless-cms": "6.5.0-beta.0",
23
+ "@webiny/feature": "6.5.0-beta.0",
24
+ "@webiny/handler-graphql": "6.5.0-beta.0",
25
+ "@webiny/plugins": "6.5.0-beta.0",
26
26
  "email-addresses": "5.0.0",
27
- "nodemailer": "10.0.10",
28
- "zod": "4.6.5"
27
+ "nodemailer": "9.0.3",
28
+ "zod": "4.4.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/nodemailer": "8.0.2",
32
- "@webiny/api-core": "6.4.12-beta.4",
33
- "@webiny/build-tools": "6.4.12-beta.4",
34
- "@webiny/db-dynamodb": "6.4.12-beta.4",
35
- "@webiny/handler": "6.4.12-beta.4",
36
- "@webiny/handler-aws": "6.4.12-beta.4",
37
- "@webiny/handler-db": "6.4.12-beta.4",
38
- "@webiny/project-utils": "6.4.12-beta.4",
31
+ "@types/nodemailer": "8.0.1",
32
+ "@webiny/api-core": "6.5.0-beta.0",
33
+ "@webiny/build-tools": "6.5.0-beta.0",
34
+ "@webiny/handler": "6.5.0-beta.0",
35
+ "@webiny/handler-aws": "6.5.0-beta.0",
36
+ "@webiny/handler-db": "6.5.0-beta.0",
37
+ "@webiny/project-utils": "6.5.0-beta.0",
39
38
  "graphql": "16.14.2",
40
- "jest-dynalite": "3.6.1",
41
39
  "rimraf": "6.1.3",
42
- "typescript": "6.0.3",
43
- "vitest": "5.0.1"
40
+ "typescript": "7.0.2",
41
+ "vitest": "4.1.10"
44
42
  },
45
43
  "publishConfig": {
46
44
  "access": "public"