mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
145138b7e9
Summary: This moves some more tests to core that would be useful for ANCT, which had been stuck in grist-saas due to some entanglements with sendgrid and billing. For sendgrid, I've moved around just enough material to permit the tests to run mostly unchanged. Ideally the interface to a notification system would be generalized, but that's a bigger project. Test Plan: checked that tests are likely to run as expected in core using preview laid out by ./buildtools/build_core.sh Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D4149
13 lines
492 B
TypeScript
13 lines
492 B
TypeScript
import {SendGridConfig, SendGridMail} from 'app/gen-server/lib/NotifierTypes';
|
|
|
|
export interface INotifier {
|
|
// for test purposes, check if any notifications are in progress
|
|
readonly testPending: boolean;
|
|
|
|
deleteUser(userId: number): Promise<void>;
|
|
|
|
// Intercept outgoing messages for test purposes.
|
|
// Return undefined if no notification system is available.
|
|
testSetSendMessageCallback(op: (body: SendGridMail, description: string) => Promise<void>): SendGridConfig|undefined;
|
|
}
|