2018-12-22 21:18:16 +00:00
|
|
|
# ===============================================
|
|
|
|
# MAIL
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
mail: MailQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
mail: MailMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type MailQuery {
|
|
|
|
config: MailConfig @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type MailMutation {
|
2019-06-08 04:07:30 +00:00
|
|
|
sendTest(
|
|
|
|
recipientEmail: String!
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
|
2018-12-22 21:18:16 +00:00
|
|
|
updateConfig(
|
|
|
|
senderName: String!
|
|
|
|
senderEmail: String!
|
|
|
|
host: String!
|
|
|
|
port: Int!
|
2022-06-11 03:15:00 +00:00
|
|
|
name: String!
|
2018-12-22 21:18:16 +00:00
|
|
|
secure: Boolean!
|
2020-05-08 18:35:57 +00:00
|
|
|
verifySSL: Boolean!
|
2018-12-22 21:18:16 +00:00
|
|
|
user: String!
|
|
|
|
pass: String!
|
|
|
|
useDKIM: Boolean!
|
|
|
|
dkimDomainName: String!
|
|
|
|
dkimKeySelector: String!
|
|
|
|
dkimPrivateKey: String!
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type MailConfig {
|
2022-06-11 21:24:53 +00:00
|
|
|
senderName: String
|
|
|
|
senderEmail: String
|
|
|
|
host: String
|
|
|
|
port: Int
|
|
|
|
name: String
|
|
|
|
secure: Boolean
|
|
|
|
verifySSL: Boolean
|
|
|
|
user: String
|
|
|
|
pass: String
|
|
|
|
useDKIM: Boolean
|
|
|
|
dkimDomainName: String
|
|
|
|
dkimKeySelector: String
|
|
|
|
dkimPrivateKey: String
|
2018-12-22 21:18:16 +00:00
|
|
|
}
|