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

27 lines
586 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[];
2023-04-19 16:13:33 +00:00
channels: {
excludedFrom: string[];
restrictedTo: string[];
};
}
export type SendgridConfig = {
configurations: SendgridConfiguration[];
};