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.

40 lines
894 B

  1. import gql from 'graphql-tag'
  2. export default {
  3. GQL_QUERY_AUTHENTICATION: gql`
  4. query($mode: String!) {
  5. authentication(mode:$mode) {
  6. key
  7. useForm
  8. title
  9. icon
  10. }
  11. }
  12. `,
  13. GQL_QUERY_TRANSLATIONS: gql`
  14. query($locale: String!, $namespace: String!) {
  15. translations(locale:$locale, namespace:$namespace) {
  16. key
  17. value
  18. }
  19. }
  20. `,
  21. GQL_MUTATION_LOGIN: gql`
  22. mutation($username: String!, $password: String!, $provider: String!) {
  23. login(username: $username, password: $password, provider: $provider) {
  24. succeeded
  25. message
  26. tfaRequired
  27. tfaLoginToken
  28. }
  29. }
  30. `,
  31. GQL_MUTATION_LOGINTFA: gql`
  32. mutation($loginToken: String!, $securityCode: String!) {
  33. loginTFA(loginToken: $loginToken, securityCode: $securityCode) {
  34. succeeded
  35. message
  36. }
  37. }
  38. `
  39. }