From efed6c0a820c5c47e097fa29455157bbd318ffca Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 17 Dec 2021 23:28:17 +0100 Subject: chore: create mutation to send mail from contact form --- src/ts/types/contact.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ts/types/contact.ts (limited to 'src/ts/types') diff --git a/src/ts/types/contact.ts b/src/ts/types/contact.ts new file mode 100644 index 0000000..c0f23e0 --- /dev/null +++ b/src/ts/types/contact.ts @@ -0,0 +1,19 @@ +export type SentEmail = { + clientMutationId: string; + message: string; + origin: string; + replyTo: string; + sent: boolean; + to: string; +}; + +export type SentEmailResponse = { + sendEmail: SentEmail; +}; + +export type SendMailReturn = ( + subject: string, + body: string, + replyTo: string, + mutationId: string +) => Promise; -- cgit v1.2.3