feat: add editorial approval and account guards
This commit is contained in:
1 parent
a8d4e54ffb
commit
3584b4a7a7
9 files changed
+878
-1
No files matched your search
@@ -18,7 +18,11 @@ export type MailTransport = {
|
||||
export type Mailer = {
|
||||
sendVerification(input: { to: string; verificationUrl: string }): Promise<void>;
|
||||
sendPasswordReset(input: { to: string; resetUrl: string }): Promise<void>;
|
||||
sendApprovalNotice(input: { to: string; editorialName: string }): Promise<void>;
|
||||
sendApprovalNotice(input: {
|
||||
to: string;
|
||||
editorialName: string;
|
||||
editorialId?: string;
|
||||
}): Promise<void>;
|
||||
};
|
||||
|
||||
export function createMailer({ from, transport }: { from: string; transport: MailTransport }): Mailer {
|
||||
|
||||
Reference in new issue
Block a user