@bernierllc/email-manager 0.12.2 → 0.12.5
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/capabilities/degradation-logger.d.ts +59 -0
- package/dist/capabilities/degradation-logger.d.ts.map +1 -0
- package/dist/capabilities/degradation-logger.js +106 -0
- package/dist/capabilities/degradation-logger.js.map +1 -0
- package/dist/capabilities/feature-router.d.ts +55 -0
- package/dist/capabilities/feature-router.d.ts.map +1 -0
- package/dist/capabilities/feature-router.js +143 -0
- package/dist/capabilities/feature-router.js.map +1 -0
- package/dist/capabilities/in-memory-resolver.d.ts +27 -0
- package/dist/capabilities/in-memory-resolver.d.ts.map +1 -0
- package/dist/capabilities/in-memory-resolver.js +79 -0
- package/dist/capabilities/in-memory-resolver.js.map +1 -0
- package/dist/capabilities/index.d.ts +13 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +21 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/matrix.d.ts +67 -0
- package/dist/capabilities/matrix.d.ts.map +1 -0
- package/dist/capabilities/matrix.js +312 -0
- package/dist/capabilities/matrix.js.map +1 -0
- package/dist/capabilities/redis-resolver.d.ts +95 -0
- package/dist/capabilities/redis-resolver.d.ts.map +1 -0
- package/dist/capabilities/redis-resolver.js +227 -0
- package/dist/capabilities/redis-resolver.js.map +1 -0
- package/dist/capabilities/resolver-factory.d.ts +30 -0
- package/dist/capabilities/resolver-factory.d.ts.map +1 -0
- package/dist/capabilities/resolver-factory.js +70 -0
- package/dist/capabilities/resolver-factory.js.map +1 -0
- package/dist/capabilities/resolver.d.ts +40 -0
- package/dist/capabilities/resolver.d.ts.map +1 -0
- package/dist/capabilities/resolver.js +18 -0
- package/dist/capabilities/resolver.js.map +1 -0
- package/dist/capabilities/routing-metadata.d.ts +16 -0
- package/dist/capabilities/routing-metadata.d.ts.map +1 -0
- package/dist/capabilities/routing-metadata.js +17 -0
- package/dist/capabilities/routing-metadata.js.map +1 -0
- package/dist/capabilities/safe-resolver.d.ts +24 -0
- package/dist/capabilities/safe-resolver.d.ts.map +1 -0
- package/dist/capabilities/safe-resolver.js +48 -0
- package/dist/capabilities/safe-resolver.js.map +1 -0
- package/dist/config/loadConfiguration.d.ts +60 -0
- package/dist/config/loadConfiguration.d.ts.map +1 -0
- package/dist/config/loadConfiguration.js +468 -0
- package/dist/config/loadConfiguration.js.map +1 -0
- package/dist/config/schema.d.ts +962 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +318 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/types.d.ts +826 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +9 -0
- package/dist/config/types.js.map +1 -0
- package/dist/email-manager.d.ts +143 -0
- package/dist/email-manager.d.ts.map +1 -0
- package/dist/email-manager.js +365 -0
- package/dist/email-manager.js.map +1 -0
- package/dist/enhanced-email-manager.d.ts +349 -0
- package/dist/enhanced-email-manager.d.ts.map +1 -0
- package/dist/enhanced-email-manager.js +1396 -0
- package/dist/enhanced-email-manager.js.map +1 -0
- package/dist/errors.d.ts +154 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +251 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/managers/email-analytics.d.ts +92 -0
- package/dist/managers/email-analytics.d.ts.map +1 -0
- package/dist/managers/email-analytics.js +375 -0
- package/dist/managers/email-analytics.js.map +1 -0
- package/dist/managers/email-scheduler.d.ts +81 -0
- package/dist/managers/email-scheduler.d.ts.map +1 -0
- package/dist/managers/email-scheduler.js +288 -0
- package/dist/managers/email-scheduler.js.map +1 -0
- package/dist/managers/provider-manager.d.ts +152 -0
- package/dist/managers/provider-manager.d.ts.map +1 -0
- package/dist/managers/provider-manager.js +592 -0
- package/dist/managers/provider-manager.js.map +1 -0
- package/dist/managers/template-manager.d.ts +65 -0
- package/dist/managers/template-manager.d.ts.map +1 -0
- package/dist/managers/template-manager.js +314 -0
- package/dist/managers/template-manager.js.map +1 -0
- package/dist/types.d.ts +1029 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +62 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/simple-template-engine.d.ts +27 -0
- package/dist/utils/simple-template-engine.d.ts.map +1 -0
- package/dist/utils/simple-template-engine.js +61 -0
- package/dist/utils/simple-template-engine.js.map +1 -0
- package/package.json +13 -13
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { EmailManager } from './email-manager.js';
|
|
2
|
+
import type { CalendarEvent, CalendarAttendee } from '@bernierllc/email-calendar';
|
|
3
|
+
import type { BatchSenderOptions, BatchResult, BatchEmailInput } from '@bernierllc/email-batch-sender';
|
|
4
|
+
import type { SubscriptionStore, SubscriberList, Subscriber, AddSubscriberInput, CreateListOptions, BulkAddResult } from '@bernierllc/email-subscription';
|
|
5
|
+
import { EnhancedEmailManagerConfig, EmailRecipient, SendTemplateOptions, EnhancedSenderConfiguration, CreateSenderRequest, SenderSelectionOptions, EnhancedSenderValidationResult, EnhancedTemplateValidationResult, VariableContextDefinition, EnhancedVariableSuggestion, TemplateSyncResult, BatchTemplateSyncResult, BootstrapResult, SystemHealthReport, SendResult, EmailData, EnhancedSendOptions, VariableDefinition, CalendarInviteSendOptions } from './types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Internal template store for enhanced template management
|
|
8
|
+
*/
|
|
9
|
+
interface InternalTemplate {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
subject: string;
|
|
13
|
+
htmlContent: string;
|
|
14
|
+
textContent?: string;
|
|
15
|
+
context?: string;
|
|
16
|
+
category?: string;
|
|
17
|
+
version: string;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Internal variable context for validation
|
|
24
|
+
*/
|
|
25
|
+
interface InternalVariableContext {
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
variables: VariableDefinition[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* EnhancedEmailManager - Extended email management with template service,
|
|
32
|
+
* sender management, and variable validation integration.
|
|
33
|
+
*
|
|
34
|
+
* This class extends EmailManager to provide:
|
|
35
|
+
* - Advanced template management
|
|
36
|
+
* - Sender configuration and selection
|
|
37
|
+
* - Template variable validation
|
|
38
|
+
* - System bootstrap and health monitoring
|
|
39
|
+
*
|
|
40
|
+
* Note: This implementation provides built-in functionality that can be
|
|
41
|
+
* replaced with external services when available.
|
|
42
|
+
*/
|
|
43
|
+
export declare class EnhancedEmailManager extends EmailManager {
|
|
44
|
+
private enhancedConfig;
|
|
45
|
+
private templateStore;
|
|
46
|
+
private senderStore;
|
|
47
|
+
private variableContexts;
|
|
48
|
+
private initialized;
|
|
49
|
+
private subscriptionStore;
|
|
50
|
+
private subscriptionListManager;
|
|
51
|
+
private unsubscribeManager;
|
|
52
|
+
private suppressionManager;
|
|
53
|
+
private senderService?;
|
|
54
|
+
constructor(config: EnhancedEmailManagerConfig);
|
|
55
|
+
/**
|
|
56
|
+
* Send a templated email with variable validation and smart sender selection
|
|
57
|
+
*/
|
|
58
|
+
sendEnhancedTemplatedEmail(templateId: string, templateData: Record<string, unknown>, recipients: EmailRecipient[], options?: SendTemplateOptions): Promise<SendResult[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Send email with variable validation
|
|
61
|
+
*/
|
|
62
|
+
sendWithVariableValidation(email: EmailData, context?: string, _options?: EnhancedSendOptions): Promise<SendResult>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a template with validation
|
|
65
|
+
*/
|
|
66
|
+
createEnhancedTemplate(template: {
|
|
67
|
+
name: string;
|
|
68
|
+
subject: string;
|
|
69
|
+
htmlContent: string;
|
|
70
|
+
textContent?: string;
|
|
71
|
+
context?: string;
|
|
72
|
+
category?: string;
|
|
73
|
+
}): Promise<{
|
|
74
|
+
success: boolean;
|
|
75
|
+
templateId?: string;
|
|
76
|
+
errors?: string[];
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Get a template by ID from enhanced store
|
|
80
|
+
*/
|
|
81
|
+
getEnhancedTemplate(templateId: string): Promise<InternalTemplate | null>;
|
|
82
|
+
/**
|
|
83
|
+
* List all enhanced templates
|
|
84
|
+
*/
|
|
85
|
+
listEnhancedTemplates(): Promise<{
|
|
86
|
+
items: InternalTemplate[];
|
|
87
|
+
total: number;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Sync a template to providers (placeholder for future integration)
|
|
91
|
+
*/
|
|
92
|
+
syncTemplate(templateId: string, providerId?: string): Promise<TemplateSyncResult>;
|
|
93
|
+
/**
|
|
94
|
+
* Validate a template against a variable context
|
|
95
|
+
*/
|
|
96
|
+
validateEnhancedTemplate(templateContent: string, context: string): Promise<EnhancedTemplateValidationResult>;
|
|
97
|
+
/**
|
|
98
|
+
* Sync all templates to providers
|
|
99
|
+
*/
|
|
100
|
+
syncAllTemplates(): Promise<BatchTemplateSyncResult>;
|
|
101
|
+
/**
|
|
102
|
+
* Create a new sender configuration.
|
|
103
|
+
* Delegates to senderService if available, falls back to in-memory store.
|
|
104
|
+
*/
|
|
105
|
+
createSender(sender: CreateSenderRequest): Promise<EnhancedSenderConfiguration | null>;
|
|
106
|
+
/**
|
|
107
|
+
* Get a sender by ID
|
|
108
|
+
*/
|
|
109
|
+
getSender(senderId: string): Promise<EnhancedSenderConfiguration | null>;
|
|
110
|
+
/**
|
|
111
|
+
* List all senders
|
|
112
|
+
*/
|
|
113
|
+
listSenders(): Promise<{
|
|
114
|
+
items: EnhancedSenderConfiguration[];
|
|
115
|
+
total: number;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Update an existing sender configuration.
|
|
119
|
+
* Delegates to senderService if available, falls back to in-memory store.
|
|
120
|
+
*/
|
|
121
|
+
updateSender(senderId: string, updates: Partial<CreateSenderRequest>): Promise<EnhancedSenderConfiguration | null>;
|
|
122
|
+
/**
|
|
123
|
+
* Delete a sender configuration.
|
|
124
|
+
* Delegates to senderService if available, falls back to in-memory store.
|
|
125
|
+
*/
|
|
126
|
+
deleteSender(senderId: string): Promise<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Select the best sender for an email
|
|
129
|
+
*/
|
|
130
|
+
selectBestSender(fromEmail: string, provider?: string, options?: SenderSelectionOptions): Promise<EnhancedSenderConfiguration | null>;
|
|
131
|
+
/**
|
|
132
|
+
* Validate a sender configuration.
|
|
133
|
+
* When senderService is available, delegates verification status check.
|
|
134
|
+
*/
|
|
135
|
+
validateSender(senderId: string): Promise<EnhancedSenderValidationResult>;
|
|
136
|
+
/**
|
|
137
|
+
* Register a variable context
|
|
138
|
+
*/
|
|
139
|
+
registerVariableContext(name: string, contextDef: VariableContextDefinition): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Get a variable context
|
|
142
|
+
*/
|
|
143
|
+
getVariableContext(name: string): Promise<InternalVariableContext | null>;
|
|
144
|
+
/**
|
|
145
|
+
* Get variable suggestions for a context
|
|
146
|
+
*/
|
|
147
|
+
getVariableSuggestions(context: string, prefix?: string): Promise<EnhancedVariableSuggestion[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Validate template data against a context
|
|
150
|
+
*/
|
|
151
|
+
validateTemplateData(context: string, data: Record<string, unknown>): Promise<EnhancedTemplateValidationResult>;
|
|
152
|
+
/**
|
|
153
|
+
* Send a calendar invite email to recipients.
|
|
154
|
+
*
|
|
155
|
+
* Generates an ICS file from the CalendarEvent and attaches it to the email.
|
|
156
|
+
* The ICS attachment uses METHOD:REQUEST by default.
|
|
157
|
+
*
|
|
158
|
+
* @param event - The calendar event to send
|
|
159
|
+
* @param recipients - Array of recipient email addresses
|
|
160
|
+
* @param options - Optional subject, body, and provider overrides
|
|
161
|
+
* @returns SendResult from the email send operation
|
|
162
|
+
*
|
|
163
|
+
* @throws {Error} When the calendar event is invalid (missing title, bad dates, no attendees)
|
|
164
|
+
* @throws {EmailValidationError} When recipient validation fails
|
|
165
|
+
*/
|
|
166
|
+
sendCalendarInvite(event: CalendarEvent, recipients: string[], options?: CalendarInviteSendOptions): Promise<SendResult>;
|
|
167
|
+
/**
|
|
168
|
+
* Send a calendar cancellation email.
|
|
169
|
+
*
|
|
170
|
+
* Generates a METHOD:CANCEL ICS and sends it to the specified attendees.
|
|
171
|
+
*
|
|
172
|
+
* @param eventUid - The UID of the event to cancel
|
|
173
|
+
* @param organizer - The organizer attendee
|
|
174
|
+
* @param attendees - The attendees to notify
|
|
175
|
+
* @param options - Optional subject and body overrides
|
|
176
|
+
* @returns SendResult from the email send operation
|
|
177
|
+
*/
|
|
178
|
+
sendCalendarCancel(eventUid: string, organizer: CalendarAttendee, attendees: CalendarAttendee[], options?: CalendarInviteSendOptions): Promise<SendResult>;
|
|
179
|
+
/**
|
|
180
|
+
* Send a batch of emails with concurrency control, rate limiting, and retry.
|
|
181
|
+
*
|
|
182
|
+
* Wraps the existing email sending mechanism with the BatchSender from
|
|
183
|
+
* @bernierllc/email-batch-sender, providing efficient bulk email operations.
|
|
184
|
+
*
|
|
185
|
+
* @param emails - Array of batch email inputs
|
|
186
|
+
* @param options - Batch sender configuration (concurrency, rate limits, retry, etc.)
|
|
187
|
+
* @returns BatchResult with per-recipient results, timing, and abort status
|
|
188
|
+
*
|
|
189
|
+
* @throws {BatchSenderError} When batch input is invalid (missing toEmail/subject)
|
|
190
|
+
*/
|
|
191
|
+
sendBatch(emails: BatchEmailInput[], options?: BatchSenderOptions): Promise<BatchResult>;
|
|
192
|
+
/**
|
|
193
|
+
* Create a new subscriber list.
|
|
194
|
+
*
|
|
195
|
+
* @param name - The list name
|
|
196
|
+
* @param options - Optional description and metadata
|
|
197
|
+
* @returns The created SubscriberList
|
|
198
|
+
*/
|
|
199
|
+
createSubscriberList(name: string, options?: CreateListOptions): Promise<SubscriberList>;
|
|
200
|
+
/**
|
|
201
|
+
* Get a subscriber list by ID.
|
|
202
|
+
*
|
|
203
|
+
* @param listId - The list ID
|
|
204
|
+
* @returns The SubscriberList or null if not found
|
|
205
|
+
*/
|
|
206
|
+
getSubscriberList(listId: string): Promise<SubscriberList | null>;
|
|
207
|
+
/**
|
|
208
|
+
* Delete a subscriber list and all its subscribers.
|
|
209
|
+
*
|
|
210
|
+
* @param listId - The list ID
|
|
211
|
+
* @returns true if the list was deleted
|
|
212
|
+
*/
|
|
213
|
+
deleteSubscriberList(listId: string): Promise<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* Add a subscriber to a list.
|
|
216
|
+
*
|
|
217
|
+
* Checks for suppression and duplicates before adding.
|
|
218
|
+
*
|
|
219
|
+
* @param listId - The list ID
|
|
220
|
+
* @param input - Subscriber email, name, and metadata
|
|
221
|
+
* @throws {SubscriptionError} If list not found, email suppressed, or duplicate
|
|
222
|
+
*/
|
|
223
|
+
addSubscriber(listId: string, input: AddSubscriberInput): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Add multiple subscribers to a list in bulk.
|
|
226
|
+
*
|
|
227
|
+
* Skips duplicates and suppressed emails without throwing.
|
|
228
|
+
*
|
|
229
|
+
* @param listId - The list ID
|
|
230
|
+
* @param subscribers - Array of subscriber inputs
|
|
231
|
+
* @returns BulkAddResult with added/skipped counts
|
|
232
|
+
*/
|
|
233
|
+
addSubscribers(listId: string, subscribers: ReadonlyArray<{
|
|
234
|
+
email: string;
|
|
235
|
+
name?: string;
|
|
236
|
+
}>): Promise<BulkAddResult>;
|
|
237
|
+
/**
|
|
238
|
+
* Remove a subscriber from a list.
|
|
239
|
+
*
|
|
240
|
+
* @param listId - The list ID
|
|
241
|
+
* @param email - The subscriber email
|
|
242
|
+
* @returns true if the subscriber was removed
|
|
243
|
+
*/
|
|
244
|
+
removeSubscriber(listId: string, email: string): Promise<boolean>;
|
|
245
|
+
/**
|
|
246
|
+
* Get a subscriber from a list.
|
|
247
|
+
*
|
|
248
|
+
* @param listId - The list ID
|
|
249
|
+
* @param email - The subscriber email
|
|
250
|
+
* @returns The Subscriber or null if not found
|
|
251
|
+
*/
|
|
252
|
+
getSubscriber(listId: string, email: string): Promise<Subscriber | null>;
|
|
253
|
+
/**
|
|
254
|
+
* Generate an unsubscribe URL for a subscriber.
|
|
255
|
+
*
|
|
256
|
+
* Requires subscription.unsubscribe configuration in the manager config.
|
|
257
|
+
*
|
|
258
|
+
* @param email - The subscriber email
|
|
259
|
+
* @param listId - The list ID
|
|
260
|
+
* @returns The signed unsubscribe URL
|
|
261
|
+
* @throws {Error} If unsubscribe manager is not configured
|
|
262
|
+
*/
|
|
263
|
+
generateUnsubscribeUrl(email: string, listId: string): string;
|
|
264
|
+
/**
|
|
265
|
+
* Process an unsubscribe request from a signed token.
|
|
266
|
+
*
|
|
267
|
+
* Verifies the token, updates subscriber status, and adds suppression.
|
|
268
|
+
*
|
|
269
|
+
* @param token - The unsubscribe token from the URL
|
|
270
|
+
* @throws {Error} If unsubscribe manager is not configured
|
|
271
|
+
* @throws {SubscriptionError} If token is invalid or expired
|
|
272
|
+
*/
|
|
273
|
+
processUnsubscribe(token: string): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* Check if an email address is suppressed.
|
|
276
|
+
*
|
|
277
|
+
* @param email - The email address to check
|
|
278
|
+
* @param listId - Optional list ID for scope-specific checks
|
|
279
|
+
* @returns true if the email is suppressed
|
|
280
|
+
*/
|
|
281
|
+
isSuppressed(email: string, listId?: string): Promise<boolean>;
|
|
282
|
+
/**
|
|
283
|
+
* Send an email with List-Unsubscribe headers automatically added.
|
|
284
|
+
*
|
|
285
|
+
* Generates unsubscribe URL and adds RFC 2369/8058 headers to the email.
|
|
286
|
+
* Requires subscription.unsubscribe configuration.
|
|
287
|
+
*
|
|
288
|
+
* @param email - The email data to send
|
|
289
|
+
* @param listId - The list ID for unsubscribe scoping
|
|
290
|
+
* @param recipientEmail - The recipient email for unsubscribe token
|
|
291
|
+
* @param oneClick - Whether to include RFC 8058 one-click unsubscribe
|
|
292
|
+
* @returns SendResult from the email send operation
|
|
293
|
+
* @throws {Error} If unsubscribe manager is not configured
|
|
294
|
+
*/
|
|
295
|
+
sendWithUnsubscribe(email: EmailData, listId: string, recipientEmail: string, oneClick?: boolean): Promise<SendResult>;
|
|
296
|
+
/**
|
|
297
|
+
* Set a custom subscription store (e.g., database-backed).
|
|
298
|
+
*
|
|
299
|
+
* Replaces the default InMemorySubscriptionStore and reinitializes
|
|
300
|
+
* all subscription managers to use the new store.
|
|
301
|
+
*
|
|
302
|
+
* @param store - A SubscriptionStore implementation
|
|
303
|
+
*/
|
|
304
|
+
setSubscriptionStore(store: SubscriptionStore): void;
|
|
305
|
+
/**
|
|
306
|
+
* Bootstrap the email manager system
|
|
307
|
+
*/
|
|
308
|
+
bootstrap(): Promise<BootstrapResult>;
|
|
309
|
+
/**
|
|
310
|
+
* Get comprehensive system health report
|
|
311
|
+
*/
|
|
312
|
+
getSystemHealth(): Promise<SystemHealthReport>;
|
|
313
|
+
private bootstrapSenders;
|
|
314
|
+
private bootstrapVariableContexts;
|
|
315
|
+
private bootstrapTemplates;
|
|
316
|
+
private bootstrapProviders;
|
|
317
|
+
private getEmailDeliveryStats;
|
|
318
|
+
private getTemplateSystemStats;
|
|
319
|
+
private getSenderSystemStats;
|
|
320
|
+
private getProviderHealthStats;
|
|
321
|
+
private getSubscriptionHealthStats;
|
|
322
|
+
private getBatchSenderHealthStats;
|
|
323
|
+
private calculateOverallHealth;
|
|
324
|
+
private generateHealthRecommendations;
|
|
325
|
+
private renderSimpleTemplate;
|
|
326
|
+
private mapToEnhancedSender;
|
|
327
|
+
private serviceDataToEnhancedSender;
|
|
328
|
+
private extractDomain;
|
|
329
|
+
private isNestedPath;
|
|
330
|
+
private getNestedValue;
|
|
331
|
+
/**
|
|
332
|
+
* Check if the enhanced manager is initialized
|
|
333
|
+
*/
|
|
334
|
+
isInitialized(): boolean;
|
|
335
|
+
/**
|
|
336
|
+
* Get template store size
|
|
337
|
+
*/
|
|
338
|
+
getTemplateCount(): number;
|
|
339
|
+
/**
|
|
340
|
+
* Get sender store size
|
|
341
|
+
*/
|
|
342
|
+
getSenderCount(): number;
|
|
343
|
+
/**
|
|
344
|
+
* Get variable context count
|
|
345
|
+
*/
|
|
346
|
+
getVariableContextCount(): number;
|
|
347
|
+
}
|
|
348
|
+
export {};
|
|
349
|
+
//# sourceMappingURL=enhanced-email-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhanced-email-manager.d.ts","sourceRoot":"","sources":["../src/enhanced-email-manager.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,KAAK,EAAE,aAAa,EAAyC,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEzH,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,eAAe,EAAwB,MAAM,gCAAgC,CAAC;AAO7H,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EAEd,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EACL,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACtB,8BAA8B,EAG9B,gCAAgC,EAChC,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EAEf,kBAAkB,EAIlB,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAA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