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
|
|
|
|
registrationsWhitelist
|
|
|
|
demoMode
|
|
|
|
countryCode
|
|
|
|
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
|
|
|
|
}
|
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-15 11:01:49 +02:00
|
|
|
export const RULES = gql`
|
|
|
|
query Rules {
|
|
|
|
config {
|
|
|
|
rules
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
export const TIMEZONES = gql`
|
|
|
|
query {
|
|
|
|
config {
|
|
|
|
timezones
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|