2023-03-24 14:33:48 +00:00
|
|
|
import { MessageEventTypes } from "../../event-handlers/message-event-types";
|
|
|
|
|
|
|
|
export interface SendgridEventConfiguration {
|
|
|
|
active: boolean;
|
|
|
|
eventType: MessageEventTypes;
|
|
|
|
template: string;
|
|
|
|
}
|
|
|
|
|
2023-03-09 08:14:29 +00:00
|
|
|
export interface SendgridConfiguration {
|
2023-03-24 14:33:48 +00:00
|
|
|
id: string;
|
2023-03-09 08:14:29 +00:00
|
|
|
active: boolean;
|
|
|
|
configurationName: string;
|
|
|
|
sandboxMode: boolean;
|
2023-03-24 14:33:48 +00:00
|
|
|
senderName?: string;
|
|
|
|
senderEmail?: string;
|
2023-03-09 08:14:29 +00:00
|
|
|
apiKey: string;
|
2023-03-24 14:33:48 +00:00
|
|
|
events: SendgridEventConfiguration[];
|
2023-03-09 08:14:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type SendgridConfig = {
|
2023-03-24 14:33:48 +00:00
|
|
|
configurations: SendgridConfiguration[];
|
2023-03-09 08:14:29 +00:00
|
|
|
};
|