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.
wiki/server/graph/schemas/analytics.graphql

54 lines
1.1 KiB

# ===============================================
# ANALYTICS
# ===============================================
extend type Query {
analytics: AnalyticsQuery
}
extend type Mutation {
analytics: AnalyticsMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type AnalyticsQuery {
providers(
isEnabled: Boolean
): [AnalyticsProvider]
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type AnalyticsMutation {
updateProviders(
providers: [AnalyticsProviderInput]!
): DefaultResponse @auth(requires: ["manage:system"])
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type AnalyticsProvider {
isEnabled: Boolean!
key: String!
props: [String]
title: String!
description: String
isAvailable: Boolean
logo: String
website: String
icon: String
config: [KeyValuePair] @auth(requires: ["manage:system"])
}
input AnalyticsProviderInput {
isEnabled: Boolean!
key: String!
config: [KeyValuePairInput]
}