You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB

  1. # ===============================================
  2. # MAIL
  3. # ===============================================
  4. extend type Query {
  5. mail: MailQuery
  6. }
  7. extend type Mutation {
  8. mail: MailMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type MailQuery {
  14. config: MailConfig @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type MailMutation {
  20. sendTest(
  21. recipientEmail: String!
  22. ): DefaultResponse @auth(requires: ["manage:system"])
  23. updateConfig(
  24. senderName: String!
  25. senderEmail: String!
  26. host: String!
  27. port: Int!
  28. secure: Boolean!
  29. verifySSL: Boolean!
  30. user: String!
  31. pass: String!
  32. useDKIM: Boolean!
  33. dkimDomainName: String!
  34. dkimKeySelector: String!
  35. dkimPrivateKey: String!
  36. ): DefaultResponse @auth(requires: ["manage:system"])
  37. }
  38. # -----------------------------------------------
  39. # TYPES
  40. # -----------------------------------------------
  41. type MailConfig {
  42. senderName: String!
  43. senderEmail: String!
  44. host: String!
  45. port: Int!
  46. secure: Boolean!
  47. verifySSL: Boolean!
  48. user: String!
  49. pass: String!
  50. useDKIM: Boolean!
  51. dkimDomainName: String!
  52. dkimKeySelector: String!
  53. dkimPrivateKey: String!
  54. }