26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import { MessageEventTypes } from "../../event-handlers/message-event-types";
|
|
|
|
export interface SendgridEventConfiguration {
|
|
active: boolean;
|
|
eventType: MessageEventTypes;
|
|
template: string;
|
|
}
|
|
|
|
export interface SendgridConfiguration {
|
|
id: string;
|
|
active: boolean;
|
|
configurationName: string;
|
|
sandboxMode: boolean;
|
|
senderName?: string;
|
|
senderEmail?: string;
|
|
apiKey: string;
|
|
events: SendgridEventConfiguration[];
|
|
channels: {
|
|
excludedFrom: string[];
|
|
restrictedTo: string[];
|
|
};
|
|
}
|
|
|
|
export type SendgridConfig = {
|
|
configurations: SendgridConfiguration[];
|
|
};
|