2020-02-18 08:57:00 +01:00
|
|
|
import gql from "graphql-tag";
|
2019-03-22 10:53:38 +01:00
|
|
|
|
2019-03-22 13:58:19 +01:00
|
|
|
export const CONFIG = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
description
|
|
|
|
registrationsOpen
|
2020-09-29 09:53:48 +02:00
|
|
|
registrationsAllowlist
|
2020-02-18 08:57:00 +01:00
|
|
|
demoMode
|
|
|
|
countryCode
|
2020-10-20 10:36:43 +02:00
|
|
|
languages
|
2020-02-18 08:57:00 +01:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
eventCreation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
}
|
2020-06-09 14:07:49 +02:00
|
|
|
reports {
|
|
|
|
allowed
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
actorId
|
|
|
|
}
|
|
|
|
location {
|
|
|
|
latitude
|
|
|
|
longitude
|
2020-06-09 15:20:07 +02:00
|
|
|
# accuracyRadius
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
maps {
|
|
|
|
tiles {
|
|
|
|
endpoint
|
|
|
|
attribution
|
|
|
|
}
|
|
|
|
}
|
|
|
|
geocoding {
|
|
|
|
provider
|
|
|
|
autocomplete
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
resourceProviders {
|
|
|
|
type
|
|
|
|
endpoint
|
|
|
|
software
|
2019-11-20 13:49:57 +01:00
|
|
|
}
|
2020-06-08 16:47:57 +02:00
|
|
|
features {
|
|
|
|
groups
|
2020-09-02 15:08:47 +02:00
|
|
|
eventCreation
|
2020-06-08 16:47:57 +02:00
|
|
|
}
|
2020-06-27 19:12:45 +02:00
|
|
|
auth {
|
|
|
|
ldap
|
|
|
|
oauthProviders {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
|
|
|
}
|
2019-11-08 19:37:14 +01:00
|
|
|
}
|
2019-03-22 10:53:38 +01:00
|
|
|
}
|
|
|
|
`;
|
2019-12-20 13:04:34 +01:00
|
|
|
|
|
|
|
export const TERMS = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query Terms($locale: String) {
|
|
|
|
config {
|
|
|
|
terms(locale: $locale) {
|
|
|
|
type
|
|
|
|
url
|
|
|
|
bodyHtml
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
export const ABOUT = gql`
|
|
|
|
query About {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
description
|
|
|
|
longDescription
|
|
|
|
contact
|
2020-10-20 10:36:43 +02:00
|
|
|
languages
|
2020-06-19 19:27:10 +02:00
|
|
|
registrationsOpen
|
2020-09-29 09:53:48 +02:00
|
|
|
registrationsAllowlist
|
2020-06-19 19:27:10 +02:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
version
|
|
|
|
federating
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-15 11:01:49 +02:00
|
|
|
export const RULES = gql`
|
|
|
|
query Rules {
|
|
|
|
config {
|
|
|
|
rules
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-19 19:27:10 +02:00
|
|
|
export const PRIVACY = gql`
|
|
|
|
query Privacy($locale: String) {
|
|
|
|
config {
|
|
|
|
privacy(locale: $locale) {
|
|
|
|
type
|
|
|
|
url
|
|
|
|
bodyHtml
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
export const TIMEZONES = gql`
|
|
|
|
query {
|
|
|
|
config {
|
|
|
|
timezones
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|