saleor-apps-redis_apl/apps/emails-and-messages/src/modules/sendgrid/configuration/sendgrid-config.ts

23 lines
511 B
TypeScript
Raw Normal View History

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[];
}
export type SendgridConfig = {
configurations: SendgridConfiguration[];
};