2
0

analytics.graphql 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # ===============================================
  2. # ANALYTICS
  3. # ===============================================
  4. extend type Query {
  5. """
  6. Fetch list of Analytics providers and their configuration
  7. """
  8. analyticsProviders(
  9. "Return only active providers"
  10. isEnabled: Boolean
  11. ): [AnalyticsProvider]
  12. }
  13. extend type Mutation {
  14. """
  15. Update a list of Analytics providers and their configuration
  16. """
  17. updateAnalyticsProviders(
  18. "List of providers"
  19. providers: [AnalyticsProviderInput]!
  20. ): DefaultResponse
  21. }
  22. # -----------------------------------------------
  23. # TYPES
  24. # -----------------------------------------------
  25. """
  26. Analytics Provider
  27. """
  28. type AnalyticsProvider {
  29. "Is the provider active"
  30. isEnabled: Boolean!
  31. "Unique identifier for this provider"
  32. key: String!
  33. "List of configuration properties, formatted as stringified JSON objects"
  34. props: [String]
  35. "Name of the provider"
  36. title: String!
  37. "Short description of the provider"
  38. description: String
  39. "Is the provider available for use"
  40. isAvailable: Boolean
  41. "Path to the provider logo"
  42. logo: String
  43. "Website of the provider"
  44. website: String
  45. "Configuration values for this provider"
  46. config: [KeyValuePair]
  47. }
  48. """
  49. Analytics Configuration Input
  50. """
  51. input AnalyticsProviderInput {
  52. "Is the provider active"
  53. isEnabled: Boolean!
  54. "Unique identifier of the provider"
  55. key: String!
  56. "Configuration values for this provider"
  57. config: [KeyValuePairInput]
  58. }