@simplens/nodemailer-gmail 1.0.5 → 1.0.6

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/index.d.ts CHANGED
@@ -12,6 +12,7 @@ declare const gmailNotificationSchema: z.ZodObject<{
12
12
  notification_id: z.ZodString;
13
13
  request_id: z.ZodString;
14
14
  client_id: z.ZodString;
15
+ provider: z.ZodOptional<z.ZodString>;
15
16
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16
17
  webhook_url: z.ZodString;
17
18
  retry_count: z.ZodNumber;
@@ -38,14 +39,8 @@ declare const gmailNotificationSchema: z.ZodObject<{
38
39
  subject?: string | undefined;
39
40
  }>;
40
41
  created_at: z.ZodDate;
41
- }, z.core.$strip, z.ZodTypeAny, {
42
- notification_id: string;
43
- request_id: string;
44
- client_id: string;
42
+ }, "strip", z.ZodTypeAny, {
45
43
  channel: "email";
46
- webhook_url: string;
47
- retry_count: number;
48
- created_at: Date;
49
44
  recipient: {
50
45
  user_id: string;
51
46
  email: string;
@@ -54,15 +49,16 @@ declare const gmailNotificationSchema: z.ZodObject<{
54
49
  message: string;
55
50
  subject?: string | undefined;
56
51
  };
57
- variables?: Record<string, string> | undefined;
58
- }, {
52
+ created_at: Date;
59
53
  notification_id: string;
60
54
  request_id: string;
61
55
  client_id: string;
62
- channel: "email";
63
56
  webhook_url: string;
64
57
  retry_count: number;
65
- created_at: Date;
58
+ provider?: string | undefined;
59
+ variables?: Record<string, string> | undefined;
60
+ }, {
61
+ channel: "email";
66
62
  recipient: {
67
63
  user_id: string;
68
64
  email: string;
@@ -71,6 +67,13 @@ declare const gmailNotificationSchema: z.ZodObject<{
71
67
  message: string;
72
68
  subject?: string | undefined;
73
69
  };
70
+ created_at: Date;
71
+ notification_id: string;
72
+ request_id: string;
73
+ client_id: string;
74
+ webhook_url: string;
75
+ retry_count: number;
76
+ provider?: string | undefined;
74
77
  variables?: Record<string, string> | undefined;
75
78
  }>;
76
79
  /**
@@ -100,6 +103,7 @@ export declare class GmailProvider implements SimpleNSProvider<GmailNotification
100
103
  notification_id: z.ZodString;
101
104
  request_id: z.ZodString;
102
105
  client_id: z.ZodString;
106
+ provider: z.ZodOptional<z.ZodString>;
103
107
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
104
108
  webhook_url: z.ZodString;
105
109
  retry_count: z.ZodNumber;
@@ -126,14 +130,8 @@ export declare class GmailProvider implements SimpleNSProvider<GmailNotification
126
130
  subject?: string | undefined;
127
131
  }>;
128
132
  created_at: z.ZodDate;
129
- }, z.core.$strip, z.ZodTypeAny, {
130
- notification_id: string;
131
- request_id: string;
132
- client_id: string;
133
+ }, "strip", z.ZodTypeAny, {
133
134
  channel: "email";
134
- webhook_url: string;
135
- retry_count: number;
136
- created_at: Date;
137
135
  recipient: {
138
136
  user_id: string;
139
137
  email: string;
@@ -142,15 +140,16 @@ export declare class GmailProvider implements SimpleNSProvider<GmailNotification
142
140
  message: string;
143
141
  subject?: string | undefined;
144
142
  };
145
- variables?: Record<string, string> | undefined;
146
- }, {
143
+ created_at: Date;
147
144
  notification_id: string;
148
145
  request_id: string;
149
146
  client_id: string;
150
- channel: "email";
151
147
  webhook_url: string;
152
148
  retry_count: number;
153
- created_at: Date;
149
+ provider?: string | undefined;
150
+ variables?: Record<string, string> | undefined;
151
+ }, {
152
+ channel: "email";
154
153
  recipient: {
155
154
  user_id: string;
156
155
  email: string;
@@ -159,6 +158,13 @@ export declare class GmailProvider implements SimpleNSProvider<GmailNotification
159
158
  message: string;
160
159
  subject?: string | undefined;
161
160
  };
161
+ created_at: Date;
162
+ notification_id: string;
163
+ request_id: string;
164
+ client_id: string;
165
+ webhook_url: string;
166
+ retry_count: number;
167
+ provider?: string | undefined;
162
168
  variables?: Record<string, string> | undefined;
163
169
  }>;
164
170
  getRecipientSchema(): z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/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KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EAIvB,MAAM,eAAe,CAAC;AAkBvB;;GAEG;AACH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;;;;;;;;;;GAaG;AACH,qBAAa,aAAc,YAAW,gBAAgB,CAAC,iBAAiB,CAAC;IACrE,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,MAAM,CAA+B;IAE7C,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAUjC;IAEF,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIrB,kBAAkB;;;;;;;;;;IAIlB,gBAAgB;;;;;;;;;;IAIhB,kBAAkB,IAAI,eAAe;IAa/B,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjD,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAe/B,IAAI,CAAC,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC;IAqE9D,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAOlC;AAGD,eAAe,aAAa,CAAC;AAG7B,wBAAgB,cAAc,IAAI,aAAa,CAE9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplens/nodemailer-gmail",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Gmail/SMTP email provider plugin for SimpleNS using Nodemailer",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "author": "SimpleNS Team",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@simplens/sdk": "^1.0.3",
33
+ "@simplens/sdk": "^1.0.4",
34
34
  "nodemailer": "^6.9.0"
35
35
  },
36
36
  "devDependencies": {
@@ -46,4 +46,4 @@
46
46
  "type": "git",
47
47
  "url": "https://github.com/SimpleNotificationSystem/plugin-nodemailer-gmail"
48
48
  }
49
- }
49
+ }