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