2019-06-23 22:35:14 +00:00
|
|
|
# ===============================================
|
|
|
|
# ANALYTICS
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
analytics: AnalyticsQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
analytics: AnalyticsMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2019-07-14 00:27:31 +00:00
|
|
|
"""
|
|
|
|
Queries for Analytics
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
type AnalyticsQuery {
|
2019-07-14 00:27:31 +00:00
|
|
|
"""
|
|
|
|
Fetch list of Analytics providers and their configuration
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
providers(
|
2019-07-14 00:27:31 +00:00
|
|
|
"Return only active providers"
|
2019-06-23 22:35:14 +00:00
|
|
|
isEnabled: Boolean
|
2019-07-14 00:27:31 +00:00
|
|
|
): [AnalyticsProvider] @auth(requires: ["manage:system"])
|
2019-06-23 22:35:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2019-07-14 00:27:31 +00:00
|
|
|
"""
|
|
|
|
Mutations for Analytics
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
type AnalyticsMutation {
|
2019-07-14 00:27:31 +00:00
|
|
|
"""
|
|
|
|
Update a list of Analytics providers and their configuration
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
updateProviders(
|
2019-07-14 00:27:31 +00:00
|
|
|
"List of providers"
|
2019-06-23 22:35:14 +00:00
|
|
|
providers: [AnalyticsProviderInput]!
|
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
2019-07-14 00:27:31 +00:00
|
|
|
"""
|
|
|
|
Analytics Provider
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
type AnalyticsProvider {
|
2019-07-14 00:27:31 +00:00
|
|
|
"Is the provider active"
|
2019-06-23 22:35:14 +00:00
|
|
|
isEnabled: Boolean!
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Unique identifier for this provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
key: String!
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"List of configuration properties, formatted as stringified JSON objects"
|
2019-06-23 22:35:14 +00:00
|
|
|
props: [String]
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Name of the provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
title: String!
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Short description of the provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
description: String
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Is the provider available for use"
|
2019-06-23 22:35:14 +00:00
|
|
|
isAvailable: Boolean
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Path to the provider logo"
|
2019-06-23 22:35:14 +00:00
|
|
|
logo: String
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Website of the provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
website: String
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Configuration values for this provider"
|
|
|
|
config: [KeyValuePair]
|
2019-06-23 22:35:14 +00:00
|
|
|
}
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
Analytics Configuration Input
|
|
|
|
"""
|
2019-06-23 22:35:14 +00:00
|
|
|
input AnalyticsProviderInput {
|
2019-07-14 00:27:31 +00:00
|
|
|
"Is the provider active"
|
2019-06-23 22:35:14 +00:00
|
|
|
isEnabled: Boolean!
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Unique identifier of the provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
key: String!
|
2019-07-14 00:27:31 +00:00
|
|
|
|
|
|
|
"Configuration values for this provider"
|
2019-06-23 22:35:14 +00:00
|
|
|
config: [KeyValuePairInput]
|
|
|
|
}
|