2
0

analytics.graphql 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # ===============================================
  2. # ANALYTICS
  3. # ===============================================
  4. extend type Query {
  5. analytics: AnalyticsQuery
  6. }
  7. extend type Mutation {
  8. analytics: AnalyticsMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type AnalyticsQuery {
  14. providers(
  15. isEnabled: Boolean
  16. ): [AnalyticsProvider]
  17. }
  18. # -----------------------------------------------
  19. # MUTATIONS
  20. # -----------------------------------------------
  21. type AnalyticsMutation {
  22. updateProviders(
  23. providers: [AnalyticsProviderInput]!
  24. ): DefaultResponse @auth(requires: ["manage:system"])
  25. }
  26. # -----------------------------------------------
  27. # TYPES
  28. # -----------------------------------------------
  29. type AnalyticsProvider {
  30. isEnabled: Boolean!
  31. key: String!
  32. props: [String]
  33. title: String!
  34. description: String
  35. isAvailable: Boolean
  36. logo: String
  37. website: String
  38. icon: String
  39. config: [KeyValuePair] @auth(requires: ["manage:system"])
  40. }
  41. input AnalyticsProviderInput {
  42. isEnabled: Boolean!
  43. key: String!
  44. config: [KeyValuePairInput]
  45. }