evo360-types 1.3.679 → 1.3.685
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.
|
@@ -247,14 +247,26 @@ export interface IEmailSmtpConfig {
|
|
|
247
247
|
*/
|
|
248
248
|
password_secret_ref: string;
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
/**
|
|
251
|
+
* Provider de transporte do canal de email.
|
|
252
|
+
* Ausente preserva documentos legados e equivale a `smtp` nas bordas.
|
|
253
|
+
*/
|
|
254
|
+
export type EmailChannelProvider = "smtp" | "amazon-ses";
|
|
255
|
+
interface IEmailChannelConfigBase extends IFireDoc {
|
|
251
256
|
display_name: string;
|
|
252
257
|
from_address: string;
|
|
253
258
|
from_name: string;
|
|
254
259
|
reply_to?: string;
|
|
255
|
-
smtp: IEmailSmtpConfig;
|
|
256
260
|
enabled: boolean;
|
|
257
261
|
}
|
|
262
|
+
export type IEmailChannelConfig = IEmailChannelConfigBase & ({
|
|
263
|
+
/** Ausente preserva documentos legados e equivale a SMTP. */
|
|
264
|
+
provider?: "smtp";
|
|
265
|
+
smtp: IEmailSmtpConfig;
|
|
266
|
+
} | {
|
|
267
|
+
provider: "amazon-ses";
|
|
268
|
+
smtp?: never;
|
|
269
|
+
});
|
|
258
270
|
export interface IEmailTemplate extends IFireDoc {
|
|
259
271
|
/**
|
|
260
272
|
* Chave usada no payload de envio (template.template_id).
|
|
@@ -396,15 +396,32 @@ export interface IEmailSmtpConfig {
|
|
|
396
396
|
password_secret_ref: string;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
/**
|
|
400
|
+
* Provider de transporte do canal de email.
|
|
401
|
+
* Ausente preserva documentos legados e equivale a `smtp` nas bordas.
|
|
402
|
+
*/
|
|
403
|
+
export type EmailChannelProvider = "smtp" | "amazon-ses";
|
|
404
|
+
|
|
405
|
+
interface IEmailChannelConfigBase extends IFireDoc {
|
|
400
406
|
display_name: string;
|
|
401
407
|
from_address: string;
|
|
402
408
|
from_name: string;
|
|
403
409
|
reply_to?: string;
|
|
404
|
-
smtp: IEmailSmtpConfig;
|
|
405
410
|
enabled: boolean;
|
|
406
411
|
}
|
|
407
412
|
|
|
413
|
+
export type IEmailChannelConfig = IEmailChannelConfigBase & (
|
|
414
|
+
| {
|
|
415
|
+
/** Ausente preserva documentos legados e equivale a SMTP. */
|
|
416
|
+
provider?: "smtp";
|
|
417
|
+
smtp: IEmailSmtpConfig;
|
|
418
|
+
}
|
|
419
|
+
| {
|
|
420
|
+
provider: "amazon-ses";
|
|
421
|
+
smtp?: never;
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
|
|
408
425
|
// ======================================================
|
|
409
426
|
// Email templates (subcollection of email_channels)
|
|
410
427
|
// Path: /tenants/{tenant}/apps/evo-notifications/email_channels/{channelId}/email_templates/{templateId}
|