Add email integration to be able to broadcast emails to all users.
Resolves #388
This commit is contained in:
22
app/api/src/graphql/email.sdl.ts
Normal file
22
app/api/src/graphql/email.sdl.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
export const schema = gql`
|
||||
type Envelope {
|
||||
from: String
|
||||
to: [String!]!
|
||||
}
|
||||
|
||||
type EmailResponse {
|
||||
accepted: [String!]!
|
||||
rejected: [String!]!
|
||||
messageId: String!
|
||||
envelope: Envelope
|
||||
}
|
||||
|
||||
input Email {
|
||||
subject: String!
|
||||
body: String!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
sendAllUsersEmail(input: Email!): EmailResponse!
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user