hazo_notify 1.0.0 → 1.0.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.
Files changed (108) hide show
  1. package/dist/lib/emailer/emailer.d.ts +19 -0
  2. package/dist/lib/emailer/emailer.d.ts.map +1 -0
  3. package/dist/lib/emailer/emailer.js +220 -0
  4. package/dist/lib/emailer/emailer.js.map +1 -0
  5. package/{src/lib/emailer/index.ts → dist/lib/emailer/index.d.ts} +1 -1
  6. package/dist/lib/emailer/index.d.ts.map +1 -0
  7. package/dist/lib/emailer/index.js +34 -0
  8. package/dist/lib/emailer/index.js.map +1 -0
  9. package/dist/lib/emailer/providers/index.d.ts +15 -0
  10. package/dist/lib/emailer/providers/index.d.ts.map +1 -0
  11. package/dist/lib/emailer/providers/index.js +36 -0
  12. package/dist/lib/emailer/providers/index.js.map +1 -0
  13. package/dist/lib/emailer/providers/pop3_provider.d.ts +15 -0
  14. package/dist/lib/emailer/providers/pop3_provider.d.ts.map +1 -0
  15. package/dist/lib/emailer/providers/pop3_provider.js +29 -0
  16. package/dist/lib/emailer/providers/pop3_provider.js.map +1 -0
  17. package/dist/lib/emailer/providers/smtp_provider.d.ts +15 -0
  18. package/dist/lib/emailer/providers/smtp_provider.d.ts.map +1 -0
  19. package/dist/lib/emailer/providers/smtp_provider.js +29 -0
  20. package/dist/lib/emailer/providers/smtp_provider.js.map +1 -0
  21. package/dist/lib/emailer/providers/zeptomail_provider.d.ts +15 -0
  22. package/dist/lib/emailer/providers/zeptomail_provider.d.ts.map +1 -0
  23. package/dist/lib/emailer/providers/zeptomail_provider.js +250 -0
  24. package/dist/lib/emailer/providers/zeptomail_provider.js.map +1 -0
  25. package/dist/lib/emailer/types.d.ts +94 -0
  26. package/dist/lib/emailer/types.d.ts.map +1 -0
  27. package/dist/lib/emailer/types.js +6 -0
  28. package/dist/lib/emailer/types.js.map +1 -0
  29. package/dist/lib/emailer/utils/constants.d.ts +14 -0
  30. package/dist/lib/emailer/utils/constants.d.ts.map +1 -0
  31. package/dist/lib/emailer/utils/constants.js +22 -0
  32. package/dist/lib/emailer/utils/constants.js.map +1 -0
  33. package/{src/lib/emailer/utils/index.ts → dist/lib/emailer/utils/index.d.ts} +1 -2
  34. package/dist/lib/emailer/utils/index.d.ts.map +1 -0
  35. package/dist/lib/emailer/utils/index.js +24 -0
  36. package/dist/lib/emailer/utils/index.js.map +1 -0
  37. package/dist/lib/emailer/utils/logger.d.ts +37 -0
  38. package/dist/lib/emailer/utils/logger.d.ts.map +1 -0
  39. package/dist/lib/emailer/utils/logger.js +60 -0
  40. package/dist/lib/emailer/utils/logger.js.map +1 -0
  41. package/dist/lib/emailer/utils/validation.d.ts +37 -0
  42. package/dist/lib/emailer/utils/validation.d.ts.map +1 -0
  43. package/dist/lib/emailer/utils/validation.js +81 -0
  44. package/dist/lib/emailer/utils/validation.js.map +1 -0
  45. package/{src/lib/index.ts → dist/lib/index.d.ts} +1 -1
  46. package/dist/lib/index.d.ts.map +1 -0
  47. package/dist/lib/index.js +22 -0
  48. package/dist/lib/index.js.map +1 -0
  49. package/dist/lib/utils.d.ts +3 -0
  50. package/dist/lib/utils.d.ts.map +1 -0
  51. package/dist/lib/utils.js +9 -0
  52. package/dist/lib/utils.js.map +1 -0
  53. package/package.json +21 -7
  54. package/.cursor/rules/db_schema.mdc +0 -0
  55. package/.cursor/rules/design.mdc +0 -16
  56. package/.cursor/rules/general.mdc +0 -49
  57. package/components/emailer-html-editor.tsx +0 -94
  58. package/components/ui/button.tsx +0 -53
  59. package/components/ui/card.tsx +0 -78
  60. package/components/ui/input.tsx +0 -24
  61. package/components/ui/label.tsx +0 -21
  62. package/components/ui/sidebar.tsx +0 -121
  63. package/components/ui/spinner.tsx +0 -54
  64. package/components/ui/textarea.tsx +0 -23
  65. package/components/ui/tooltip.tsx +0 -30
  66. package/components.json +0 -20
  67. package/jest.config.js +0 -27
  68. package/jest.setup.js +0 -1
  69. package/next.config.js +0 -22
  70. package/postcss.config.js +0 -6
  71. package/src/app/api/hazo_notify/emailer/send/__tests__/route.test.ts +0 -227
  72. package/src/app/api/hazo_notify/emailer/send/route.ts +0 -537
  73. package/src/app/editor-00/page.tsx +0 -47
  74. package/src/app/globals.css +0 -69
  75. package/src/app/hazo_notify/emailer_test/layout.tsx +0 -53
  76. package/src/app/hazo_notify/emailer_test/page.tsx +0 -369
  77. package/src/app/hazo_notify/layout.tsx +0 -77
  78. package/src/app/hazo_notify/page.tsx +0 -12
  79. package/src/app/layout.tsx +0 -26
  80. package/src/app/page.tsx +0 -14
  81. package/src/components/blocks/editor-00/editor.tsx +0 -61
  82. package/src/components/blocks/editor-00/nodes.ts +0 -11
  83. package/src/components/blocks/editor-00/plugins.tsx +0 -36
  84. package/src/components/editor/editor-ui/content-editable.tsx +0 -34
  85. package/src/components/editor/themes/editor-theme.css +0 -91
  86. package/src/components/editor/themes/editor-theme.ts +0 -130
  87. package/src/components/ui/button.tsx +0 -53
  88. package/src/components/ui/card.tsx +0 -78
  89. package/src/components/ui/input.tsx +0 -24
  90. package/src/components/ui/label.tsx +0 -21
  91. package/src/components/ui/sidebar.tsx +0 -121
  92. package/src/components/ui/spinner.tsx +0 -54
  93. package/src/components/ui/textarea.tsx +0 -23
  94. package/src/components/ui/tooltip.tsx +0 -30
  95. package/src/lib/emailer/__tests__/emailer.test.ts +0 -200
  96. package/src/lib/emailer/emailer.ts +0 -263
  97. package/src/lib/emailer/providers/__tests__/zeptomail_provider.test.ts +0 -196
  98. package/src/lib/emailer/providers/index.ts +0 -33
  99. package/src/lib/emailer/providers/pop3_provider.ts +0 -30
  100. package/src/lib/emailer/providers/smtp_provider.ts +0 -30
  101. package/src/lib/emailer/providers/zeptomail_provider.ts +0 -299
  102. package/src/lib/emailer/types.ts +0 -119
  103. package/src/lib/emailer/utils/constants.ts +0 -24
  104. package/src/lib/emailer/utils/logger.ts +0 -71
  105. package/src/lib/emailer/utils/validation.ts +0 -84
  106. package/src/lib/utils.ts +0 -6
  107. package/tailwind.config.ts +0 -65
  108. package/tsconfig.json +0 -27
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Emailer service implementation
3
+ * Reads configuration from hazo_notify_config.ini via hazo_config package
4
+ * and sends emails using the configured provider
5
+ */
6
+ import { EmailerConfig, SendEmailOptions, EmailSendResponse } from './types';
7
+ /**
8
+ * Load emailer configuration from hazo_notify_config.ini
9
+ * @returns Emailer configuration
10
+ */
11
+ export declare function load_emailer_config(): EmailerConfig;
12
+ /**
13
+ * Send email using the configured provider
14
+ * @param options - Email send options
15
+ * @param config - Optional emailer configuration (if not provided, loads from config file)
16
+ * @returns Promise with email send response
17
+ */
18
+ export declare function send_email(options: SendEmailOptions, config?: EmailerConfig): Promise<EmailSendResponse>;
19
+ //# sourceMappingURL=emailer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailer.d.ts","sourceRoot":"","sources":["../../../src/lib/emailer/emailer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAiB,MAAM,SAAS,CAAC;AAQ5F;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,aAAa,CAqHnD;AAED;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,iBAAiB,CAAC,CAoH5B"}
@@ -0,0 +1,220 @@
1
+ "use strict";
2
+ /**
3
+ * Emailer service implementation
4
+ * Reads configuration from hazo_notify_config.ini via hazo_config package
5
+ * and sends emails using the configured provider
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.load_emailer_config = load_emailer_config;
9
+ exports.send_email = send_email;
10
+ const providers_1 = require("./providers");
11
+ const hazo_config_1 = require("hazo_config");
12
+ const path_1 = require("path");
13
+ const constants_1 = require("./utils/constants");
14
+ const logger_1 = require("./utils/logger");
15
+ const validation_1 = require("./utils/validation");
16
+ /**
17
+ * Load emailer configuration from hazo_notify_config.ini
18
+ * @returns Emailer configuration
19
+ */
20
+ function load_emailer_config() {
21
+ const filename = 'emailer.ts';
22
+ const function_name = 'load_emailer_config';
23
+ try {
24
+ // Read configuration from hazo_notify_config.ini using hazo_config
25
+ const config_file_path = (0, path_1.join)(process.cwd(), 'hazo_notify_config.ini');
26
+ const hazo_config = new hazo_config_1.HazoConfig({ filePath: config_file_path });
27
+ const emailer_section = hazo_config.getSection('emailer') || {};
28
+ const emailer_module_raw = emailer_section?.emailer_module || 'zeptoemail_api';
29
+ // Validate emailer_module
30
+ if (!constants_1.VALID_EMAILER_MODULES.includes(emailer_module_raw)) {
31
+ throw new Error(`Invalid emailer_module: ${emailer_module_raw}. Must be one of: ${constants_1.VALID_EMAILER_MODULES.join(', ')}`);
32
+ }
33
+ const emailer_module = emailer_module_raw;
34
+ // Build configuration object
35
+ const config = {
36
+ emailer_module: emailer_module,
37
+ from_email: emailer_section?.from_email || '',
38
+ from_name: emailer_section?.from_name || 'Hazo Notify',
39
+ // Rate limiting
40
+ rate_limit_requests: parseInt(emailer_section?.rate_limit_requests || String(constants_1.DEFAULT_RATE_LIMIT_REQUESTS), 10),
41
+ rate_limit_window: parseInt(emailer_section?.rate_limit_window || String(constants_1.DEFAULT_RATE_LIMIT_WINDOW), 10),
42
+ // Attachment limits
43
+ max_attachment_size: parseInt(emailer_section?.max_attachment_size || String(constants_1.DEFAULT_MAX_ATTACHMENT_SIZE), 10),
44
+ max_attachments: parseInt(emailer_section?.max_attachments || String(constants_1.DEFAULT_MAX_ATTACHMENTS), 10),
45
+ // Request timeout
46
+ request_timeout: parseInt(emailer_section?.request_timeout || String(constants_1.DEFAULT_REQUEST_TIMEOUT), 10),
47
+ // Input length limits
48
+ max_subject_length: parseInt(emailer_section?.max_subject_length || String(constants_1.MAX_SUBJECT_LENGTH), 10),
49
+ max_body_length: parseInt(emailer_section?.max_body_length || String(constants_1.MAX_BODY_LENGTH), 10),
50
+ // CORS
51
+ cors_allowed_origins: emailer_section?.cors_allowed_origins || '',
52
+ };
53
+ // Load Zeptomail API configuration if emailer_module is 'zeptoemail_api'
54
+ if (emailer_module === 'zeptoemail_api') {
55
+ config.zeptomail_api_endpoint = emailer_section?.zeptomail_api_endpoint || 'https://api.zeptomail.com.au/v1.1/email';
56
+ // Prioritize environment variables over config file for security
57
+ // Check .env.local first (Next.js convention), then .env, then config file
58
+ config.zeptomail_api_key = process.env.ZEPTOMAIL_API_KEY || emailer_section?.zeptomail_api_key || '';
59
+ }
60
+ // Load optional configuration
61
+ if (emailer_section?.reply_to_email) {
62
+ config.reply_to_email = emailer_section.reply_to_email;
63
+ }
64
+ if (emailer_section?.bounce_email) {
65
+ config.bounce_email = emailer_section.bounce_email;
66
+ }
67
+ if (emailer_section?.return_path_email) {
68
+ config.return_path_email = emailer_section.return_path_email;
69
+ }
70
+ // Load SMTP configuration if emailer_module is 'smtp' (placeholder)
71
+ if (emailer_module === 'smtp') {
72
+ config.smtp_host = emailer_section?.smtp_host || '';
73
+ config.smtp_port = parseInt(emailer_section?.smtp_port || '587', 10);
74
+ const smtp_secure_value = emailer_section?.smtp_secure;
75
+ config.smtp_secure = smtp_secure_value === 'true' || smtp_secure_value === true;
76
+ config.smtp_auth_user = emailer_section?.smtp_auth_user || '';
77
+ config.smtp_auth_pass = emailer_section?.smtp_auth_pass || '';
78
+ config.smtp_timeout = parseInt(emailer_section?.smtp_timeout || '5000', 10);
79
+ const smtp_pool_value = emailer_section?.smtp_pool;
80
+ config.smtp_pool = smtp_pool_value === 'true' || smtp_pool_value === true;
81
+ }
82
+ // Load POP3 configuration if emailer_module is 'pop3' (placeholder)
83
+ if (emailer_module === 'pop3') {
84
+ config.pop3_host = emailer_section?.pop3_host || '';
85
+ config.pop3_port = parseInt(emailer_section?.pop3_port || '995', 10);
86
+ const pop3_secure_value = emailer_section?.pop3_secure;
87
+ config.pop3_secure = pop3_secure_value === 'true' || pop3_secure_value === true;
88
+ config.pop3_auth_user = emailer_section?.pop3_auth_user || '';
89
+ config.pop3_auth_pass = emailer_section?.pop3_auth_pass || '';
90
+ config.pop3_timeout = parseInt(emailer_section?.pop3_timeout || '5000', 10);
91
+ }
92
+ // Validate required configuration
93
+ if (!config.from_email) {
94
+ throw new Error('from_email is required in hazo_notify_config.ini');
95
+ }
96
+ if (!config.from_name) {
97
+ throw new Error('from_name is required in hazo_notify_config.ini');
98
+ }
99
+ // Validate emailer_module specific configuration
100
+ if (emailer_module === 'zeptoemail_api') {
101
+ if (!config.zeptomail_api_endpoint) {
102
+ throw new Error('zeptomail_api_endpoint is required when emailer_module=zeptoemail_api');
103
+ }
104
+ if (!config.zeptomail_api_key) {
105
+ throw new Error('Zeptomail API key is required. Set ZEPTOMAIL_API_KEY in .env.local or zeptomail_api_key in config file');
106
+ }
107
+ }
108
+ return config;
109
+ }
110
+ catch (error) {
111
+ const error_message = error instanceof Error ? error.message : 'Failed to load emailer configuration';
112
+ const error_string = error instanceof Error ? error.toString() : String(error);
113
+ const stack = error instanceof Error ? error.stack : undefined;
114
+ (0, logger_1.log_error)((0, logger_1.create_log_entry)(filename, function_name, error_message, {
115
+ line_number: stack || 'unknown',
116
+ error: error_string,
117
+ }));
118
+ throw new Error(`Failed to load emailer configuration: ${error_message}`);
119
+ }
120
+ }
121
+ /**
122
+ * Send email using the configured provider
123
+ * @param options - Email send options
124
+ * @param config - Optional emailer configuration (if not provided, loads from config file)
125
+ * @returns Promise with email send response
126
+ */
127
+ async function send_email(options, config) {
128
+ const filename = 'emailer.ts';
129
+ const function_name = 'send_email';
130
+ try {
131
+ // Load configuration if not provided
132
+ const emailer_config = config || load_emailer_config();
133
+ // Validate email options
134
+ if (!options.to || (Array.isArray(options.to) && options.to.length === 0)) {
135
+ throw new Error('Recipient email address(es) are required');
136
+ }
137
+ // Validate email addresses
138
+ const to_emails = Array.isArray(options.to) ? options.to : [options.to];
139
+ for (const email of to_emails) {
140
+ if (!(0, validation_1.validate_email_address)(email)) {
141
+ throw new Error(`Invalid recipient email address: ${email}`);
142
+ }
143
+ }
144
+ if (!options.subject) {
145
+ throw new Error('Email subject is required');
146
+ }
147
+ // Validate subject length
148
+ if (!(0, validation_1.validate_subject_length)(options.subject)) {
149
+ throw new Error(`Email subject exceeds maximum length of ${emailer_config.max_subject_length || constants_1.MAX_SUBJECT_LENGTH} characters`);
150
+ }
151
+ if (!options.content.text && !options.content.html) {
152
+ throw new Error('Email content (text or html) is required');
153
+ }
154
+ // Validate body length
155
+ if (options.content.text && !(0, validation_1.validate_body_length)(options.content.text)) {
156
+ throw new Error(`Email text body exceeds maximum size of ${emailer_config.max_body_length || constants_1.MAX_BODY_LENGTH} bytes`);
157
+ }
158
+ if (options.content.html && !(0, validation_1.validate_body_length)(options.content.html)) {
159
+ throw new Error(`Email HTML body exceeds maximum size of ${emailer_config.max_body_length || constants_1.MAX_BODY_LENGTH} bytes`);
160
+ }
161
+ // Validate attachments
162
+ if (options.attachments) {
163
+ const max_attachments = emailer_config.max_attachments || constants_1.DEFAULT_MAX_ATTACHMENTS;
164
+ if (options.attachments.length > max_attachments) {
165
+ throw new Error(`Maximum ${max_attachments} attachments allowed`);
166
+ }
167
+ const max_size = emailer_config.max_attachment_size || constants_1.DEFAULT_MAX_ATTACHMENT_SIZE;
168
+ for (const attachment of options.attachments) {
169
+ if (!(0, validation_1.validate_attachment_size)(attachment.content, max_size)) {
170
+ throw new Error(`Attachment "${attachment.filename}" exceeds maximum size of ${max_size} bytes`);
171
+ }
172
+ }
173
+ }
174
+ // Get appropriate provider
175
+ const provider = (0, providers_1.get_email_provider)(emailer_config);
176
+ // Send email
177
+ const response = await provider.send_email(options, emailer_config);
178
+ // Log error if email sending failed
179
+ if (!response.success) {
180
+ (0, logger_1.log_error)((0, logger_1.create_log_entry)(filename, function_name, response.error || 'Failed to send email', {
181
+ options: {
182
+ to: options.to,
183
+ subject: options.subject,
184
+ has_text: !!options.content.text,
185
+ has_html: !!options.content.html,
186
+ attachments_count: options.attachments?.length || 0,
187
+ },
188
+ response: response.raw_response,
189
+ }));
190
+ }
191
+ return response;
192
+ }
193
+ catch (error) {
194
+ const error_message = error instanceof Error ? error.message : 'Failed to send email';
195
+ const error_string = error instanceof Error ? error.toString() : String(error);
196
+ const stack = error instanceof Error ? error.stack : undefined;
197
+ const is_production = process.env.NODE_ENV === 'production';
198
+ (0, logger_1.log_error)((0, logger_1.create_log_entry)(filename, function_name, error_message, {
199
+ line_number: stack || 'unknown',
200
+ error: error_string,
201
+ options: {
202
+ to: options.to,
203
+ subject: options.subject,
204
+ has_text: !!options.content.text,
205
+ has_html: !!options.content.html,
206
+ attachments_count: options.attachments?.length || 0,
207
+ },
208
+ }));
209
+ return {
210
+ success: false,
211
+ error: error_message,
212
+ message: error_message,
213
+ raw_response: is_production ? undefined : {
214
+ error: error_string,
215
+ stack: stack,
216
+ },
217
+ };
218
+ }
219
+ }
220
+ //# sourceMappingURL=emailer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailer.js","sourceRoot":"","sources":["../../../src/lib/emailer/emailer.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAcH,kDAqHC;AAQD,gCAuHC;AA/PD,2CAAiD;AACjD,6CAAyC;AACzC,+BAA4B;AAC5B,iDAAsO;AACtO,2CAA6D;AAC7D,mDAAqI;AAErI;;;GAGG;AACH,SAAgB,mBAAmB;IACjC,MAAM,QAAQ,GAAG,YAAY,CAAC;IAC9B,MAAM,aAAa,GAAG,qBAAqB,CAAC;IAE5C,IAAI,CAAC;QACH,mEAAmE;QACnE,MAAM,gBAAgB,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,wBAAwB,CAAC,CAAC;QACvE,MAAM,WAAW,GAAG,IAAI,wBAAU,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;QACnE,MAAM,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QAChE,MAAM,kBAAkB,GAAG,eAAe,EAAE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,CAAC,CAAC;gBACxC,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,KAAK;aACb;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -2,10 +2,10 @@
2
2
  * Emailer service exports
3
3
  * Main entry point for the emailer library
4
4
  */
5
-
6
5
  export { send_email, load_emailer_config } from './emailer';
7
6
  export * from './types';
8
7
  export { get_email_provider } from './providers';
9
8
  export { ZeptomailProvider } from './providers/zeptomail_provider';
10
9
  export { SmtpProvider } from './providers/smtp_provider';
11
10
  export { Pop3Provider } from './providers/pop3_provider';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/emailer/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * Emailer service exports
4
+ * Main entry point for the emailer library
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.Pop3Provider = exports.SmtpProvider = exports.ZeptomailProvider = exports.get_email_provider = exports.load_emailer_config = exports.send_email = void 0;
22
+ var emailer_1 = require("./emailer");
23
+ Object.defineProperty(exports, "send_email", { enumerable: true, get: function () { return emailer_1.send_email; } });
24
+ Object.defineProperty(exports, "load_emailer_config", { enumerable: true, get: function () { return emailer_1.load_emailer_config; } });
25
+ __exportStar(require("./types"), exports);
26
+ var providers_1 = require("./providers");
27
+ Object.defineProperty(exports, "get_email_provider", { enumerable: true, get: function () { return providers_1.get_email_provider; } });
28
+ var zeptomail_provider_1 = require("./providers/zeptomail_provider");
29
+ Object.defineProperty(exports, "ZeptomailProvider", { enumerable: true, get: function () { return zeptomail_provider_1.ZeptomailProvider; } });
30
+ var smtp_provider_1 = require("./providers/smtp_provider");
31
+ Object.defineProperty(exports, "SmtpProvider", { enumerable: true, get: function () { return smtp_provider_1.SmtpProvider; } });
32
+ var pop3_provider_1 = require("./providers/pop3_provider");
33
+ Object.defineProperty(exports, "Pop3Provider", { enumerable: true, get: function () { return pop3_provider_1.Pop3Provider; } });
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/emailer/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH,qCAA4D;AAAnD,qGAAA,UAAU,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AACxC,0CAAwB;AACxB,yCAAiD;AAAxC,+GAAA,kBAAkB,OAAA;AAC3B,qEAAmE;AAA1D,uHAAA,iBAAiB,OAAA;AAC1B,2DAAyD;AAAhD,6GAAA,YAAY,OAAA;AACrB,2DAAyD;AAAhD,6GAAA,YAAY,OAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Provider factory for email providers
3
+ * Selects and returns the appropriate provider based on configuration
4
+ */
5
+ import { EmailProvider, EmailerConfig } from '../types';
6
+ /**
7
+ * Get email provider based on configuration module
8
+ * @param config - Emailer configuration
9
+ * @returns Email provider instance
10
+ */
11
+ export declare function get_email_provider(config: EmailerConfig): EmailProvider;
12
+ export { ZeptomailProvider } from './zeptomail_provider';
13
+ export { SmtpProvider } from './smtp_provider';
14
+ export { Pop3Provider } from './pop3_provider';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAiB,MAAM,UAAU,CAAC;AAKvE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAavE;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * Provider factory for email providers
4
+ * Selects and returns the appropriate provider based on configuration
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Pop3Provider = exports.SmtpProvider = exports.ZeptomailProvider = void 0;
8
+ exports.get_email_provider = get_email_provider;
9
+ const zeptomail_provider_1 = require("./zeptomail_provider");
10
+ const smtp_provider_1 = require("./smtp_provider");
11
+ const pop3_provider_1 = require("./pop3_provider");
12
+ /**
13
+ * Get email provider based on configuration module
14
+ * @param config - Emailer configuration
15
+ * @returns Email provider instance
16
+ */
17
+ function get_email_provider(config) {
18
+ const emailer_module = config.emailer_module || 'zeptoemail_api';
19
+ switch (emailer_module) {
20
+ case 'zeptoemail_api':
21
+ return new zeptomail_provider_1.ZeptomailProvider();
22
+ case 'smtp':
23
+ return new smtp_provider_1.SmtpProvider();
24
+ case 'pop3':
25
+ return new pop3_provider_1.Pop3Provider();
26
+ default:
27
+ throw new Error(`Unsupported emailer module: ${emailer_module}`);
28
+ }
29
+ }
30
+ var zeptomail_provider_2 = require("./zeptomail_provider");
31
+ Object.defineProperty(exports, "ZeptomailProvider", { enumerable: true, get: function () { return zeptomail_provider_2.ZeptomailProvider; } });
32
+ var smtp_provider_2 = require("./smtp_provider");
33
+ Object.defineProperty(exports, "SmtpProvider", { enumerable: true, get: function () { return smtp_provider_2.SmtpProvider; } });
34
+ var pop3_provider_2 = require("./pop3_provider");
35
+ Object.defineProperty(exports, "Pop3Provider", { enumerable: true, get: function () { return pop3_provider_2.Pop3Provider; } });
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,gDAaC;AAtBD,6DAAyD;AACzD,mDAA+C;AAC/C,mDAA+C;AAE/C;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,MAAqB;IACtD,MAAM,cAAc,GAAkB,MAAM,CAAC,cAAc,IAAI,gBAAgB,CAAC;IAEhF,QAAQ,cAAc,EAAE,CAAC;QACvB,KAAK,gBAAgB;YACnB,OAAO,IAAI,sCAAiB,EAAE,CAAC;QACjC,KAAK,MAAM;YACT,OAAO,IAAI,4BAAY,EAAE,CAAC;QAC5B,KAAK,MAAM;YACT,OAAO,IAAI,4BAAY,EAAE,CAAC;QAC5B;YACE,MAAM,IAAI,KAAK,CAAC,+BAA+B,cAAc,EAAE,CAAC,CAAC;IACrE,CAAC;AACH,CAAC;AAED,2DAAyD;AAAhD,uHAAA,iBAAiB,OAAA;AAC1B,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * POP3 provider implementation (placeholder)
3
+ * This provider is not yet implemented and will return an error
4
+ */
5
+ import { EmailProvider, SendEmailOptions, EmailerConfig, EmailSendResponse } from '../types';
6
+ export declare class Pop3Provider implements EmailProvider {
7
+ /**
8
+ * Send email using POP3 (not implemented)
9
+ * @param options - Email send options
10
+ * @param config - Emailer configuration
11
+ * @returns Promise with error response
12
+ */
13
+ send_email(options: SendEmailOptions, config: EmailerConfig): Promise<EmailSendResponse>;
14
+ }
15
+ //# sourceMappingURL=pop3_provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pop3_provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/pop3_provider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7F,qBAAa,YAAa,YAAW,aAAa;IAChD;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,iBAAiB,CAAC;CAY9B"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * POP3 provider implementation (placeholder)
4
+ * This provider is not yet implemented and will return an error
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Pop3Provider = void 0;
8
+ class Pop3Provider {
9
+ /**
10
+ * Send email using POP3 (not implemented)
11
+ * @param options - Email send options
12
+ * @param config - Emailer configuration
13
+ * @returns Promise with error response
14
+ */
15
+ async send_email(options, config) {
16
+ return {
17
+ success: false,
18
+ error: 'POP3 provider is not yet implemented',
19
+ message: 'POP3 provider is not yet implemented. Please use API method instead.',
20
+ raw_response: {
21
+ provider: 'pop3',
22
+ status: 'not_implemented',
23
+ message: 'POP3 provider is a placeholder and will be implemented in a future version',
24
+ },
25
+ };
26
+ }
27
+ }
28
+ exports.Pop3Provider = Pop3Provider;
29
+ //# sourceMappingURL=pop3_provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pop3_provider.js","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/pop3_provider.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,MAAa,YAAY;IACvB;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAyB,EACzB,MAAqB;QAErB,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,sCAAsC;YAC7C,OAAO,EAAE,sEAAsE;YAC/E,YAAY,EAAE;gBACZ,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,4EAA4E;aACtF;SACF,CAAC;IACJ,CAAC;CACF;AAtBD,oCAsBC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * SMTP provider implementation (placeholder)
3
+ * This provider is not yet implemented and will return an error
4
+ */
5
+ import { EmailProvider, SendEmailOptions, EmailerConfig, EmailSendResponse } from '../types';
6
+ export declare class SmtpProvider implements EmailProvider {
7
+ /**
8
+ * Send email using SMTP (not implemented)
9
+ * @param options - Email send options
10
+ * @param config - Emailer configuration
11
+ * @returns Promise with error response
12
+ */
13
+ send_email(options: SendEmailOptions, config: EmailerConfig): Promise<EmailSendResponse>;
14
+ }
15
+ //# sourceMappingURL=smtp_provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp_provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/smtp_provider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7F,qBAAa,YAAa,YAAW,aAAa;IAChD;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,iBAAiB,CAAC;CAY9B"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * SMTP provider implementation (placeholder)
4
+ * This provider is not yet implemented and will return an error
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.SmtpProvider = void 0;
8
+ class SmtpProvider {
9
+ /**
10
+ * Send email using SMTP (not implemented)
11
+ * @param options - Email send options
12
+ * @param config - Emailer configuration
13
+ * @returns Promise with error response
14
+ */
15
+ async send_email(options, config) {
16
+ return {
17
+ success: false,
18
+ error: 'SMTP provider is not yet implemented',
19
+ message: 'SMTP provider is not yet implemented. Please use API method instead.',
20
+ raw_response: {
21
+ provider: 'smtp',
22
+ status: 'not_implemented',
23
+ message: 'SMTP provider is a placeholder and will be implemented in a future version',
24
+ },
25
+ };
26
+ }
27
+ }
28
+ exports.SmtpProvider = SmtpProvider;
29
+ //# sourceMappingURL=smtp_provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp_provider.js","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/smtp_provider.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,MAAa,YAAY;IACvB;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAAyB,EACzB,MAAqB;QAErB,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,sCAAsC;YAC7C,OAAO,EAAE,sEAAsE;YAC/E,YAAY,EAAE;gBACZ,QAAQ,EAAE,MAAM;gBAChB,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,4EAA4E;aACtF;SACF,CAAC;IACJ,CAAC;CACF;AAtBD,oCAsBC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Zeptomail API provider implementation
3
+ * Sends emails using the Zeptomail API
4
+ */
5
+ import { EmailProvider, SendEmailOptions, EmailerConfig, EmailSendResponse } from '../types';
6
+ export declare class ZeptomailProvider implements EmailProvider {
7
+ /**
8
+ * Send email using Zeptomail API
9
+ * @param options - Email send options
10
+ * @param config - Emailer configuration
11
+ * @returns Promise with email send response
12
+ */
13
+ send_email(options: SendEmailOptions, config: EmailerConfig): Promise<EmailSendResponse>;
14
+ }
15
+ //# sourceMappingURL=zeptomail_provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zeptomail_provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/emailer/providers/zeptomail_provider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAC;AAMjH,qBAAa,iBAAkB,YAAW,aAAa;IACrD;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,iBAAiB,CAAC;CAqR9B"}