2020-02-18 07:57:00 +00:00
|
|
|
import gql from "graphql-tag";
|
2019-03-22 09:53:38 +00:00
|
|
|
|
2019-03-22 12:58:19 +00:00
|
|
|
export const CONFIG = gql`
|
2021-05-17 16:19:24 +00:00
|
|
|
query FullConfig {
|
2020-02-18 07:57:00 +00:00
|
|
|
config {
|
|
|
|
name
|
|
|
|
description
|
2020-10-21 15:49:18 +00:00
|
|
|
slogan
|
2020-02-18 07:57:00 +00:00
|
|
|
registrationsOpen
|
2020-09-29 07:53:48 +00:00
|
|
|
registrationsAllowlist
|
2020-02-18 07:57:00 +00:00
|
|
|
demoMode
|
|
|
|
countryCode
|
2020-10-20 08:36:43 +00:00
|
|
|
languages
|
2022-03-28 18:02:43 +00:00
|
|
|
eventCategories {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
2019-12-20 12:04:34 +00:00
|
|
|
}
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
eventCreation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
2019-12-20 12:04:34 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-09 12:07:49 +00:00
|
|
|
reports {
|
|
|
|
allowed
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
actorId
|
|
|
|
}
|
|
|
|
location {
|
|
|
|
latitude
|
|
|
|
longitude
|
2020-06-09 13:20:07 +00:00
|
|
|
# accuracyRadius
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
|
|
|
maps {
|
|
|
|
tiles {
|
|
|
|
endpoint
|
|
|
|
attribution
|
|
|
|
}
|
2020-12-17 10:26:25 +00:00
|
|
|
routing {
|
|
|
|
type
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
|
|
|
geocoding {
|
|
|
|
provider
|
|
|
|
autocomplete
|
2019-12-20 12:04:34 +00:00
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
resourceProviders {
|
|
|
|
type
|
|
|
|
endpoint
|
|
|
|
software
|
2019-11-20 12:49:57 +00:00
|
|
|
}
|
2020-06-08 14:47:57 +00:00
|
|
|
features {
|
|
|
|
groups
|
2020-09-02 13:08:47 +00:00
|
|
|
eventCreation
|
2020-06-08 14:47:57 +00:00
|
|
|
}
|
2021-10-06 16:00:50 +00:00
|
|
|
restrictions {
|
|
|
|
onlyAdminCanCreateGroups
|
|
|
|
onlyGroupsCanCreateEvents
|
|
|
|
}
|
2020-06-27 17:12:45 +00:00
|
|
|
auth {
|
|
|
|
ldap
|
|
|
|
oauthProviders {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
|
|
|
}
|
2021-04-12 08:13:11 +00:00
|
|
|
uploadLimits {
|
|
|
|
default
|
|
|
|
avatar
|
|
|
|
banner
|
|
|
|
}
|
2021-04-19 10:40:51 +00:00
|
|
|
instanceFeeds {
|
|
|
|
enabled
|
|
|
|
}
|
2021-05-06 16:39:59 +00:00
|
|
|
webPush {
|
|
|
|
enabled
|
|
|
|
publicKey
|
|
|
|
}
|
2021-12-16 15:48:50 +00:00
|
|
|
analytics {
|
|
|
|
id
|
|
|
|
enabled
|
|
|
|
configuration {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
2019-11-08 18:37:14 +00:00
|
|
|
}
|
2019-03-22 09:53:38 +00:00
|
|
|
}
|
|
|
|
`;
|
2019-12-20 12:04:34 +00:00
|
|
|
|
2021-10-10 14:25:50 +00:00
|
|
|
export const CONFIG_EDIT_EVENT = gql`
|
|
|
|
query EditEventConfig {
|
|
|
|
config {
|
|
|
|
timezones
|
|
|
|
features {
|
|
|
|
groups
|
|
|
|
}
|
2022-03-28 18:02:43 +00:00
|
|
|
eventCategories {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
2021-10-10 14:25:50 +00:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-20 12:04:34 +00:00
|
|
|
export const TERMS = gql`
|
2020-02-18 07:57:00 +00:00
|
|
|
query Terms($locale: String) {
|
|
|
|
config {
|
|
|
|
terms(locale: $locale) {
|
|
|
|
type
|
|
|
|
url
|
|
|
|
bodyHtml
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-19 17:27:10 +00:00
|
|
|
export const ABOUT = gql`
|
|
|
|
query About {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
description
|
|
|
|
longDescription
|
|
|
|
contact
|
2020-10-20 08:36:43 +00:00
|
|
|
languages
|
2020-06-19 17:27:10 +00:00
|
|
|
registrationsOpen
|
2020-09-29 07:53:48 +00:00
|
|
|
registrationsAllowlist
|
2020-06-19 17:27:10 +00:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
version
|
|
|
|
federating
|
2021-04-19 10:40:51 +00:00
|
|
|
instanceFeeds {
|
|
|
|
enabled
|
|
|
|
}
|
2020-06-19 17:27:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-02-03 17:00:49 +00:00
|
|
|
export const CONTACT = gql`
|
|
|
|
query Contact {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
contact
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-15 09:01:49 +00:00
|
|
|
export const RULES = gql`
|
|
|
|
query Rules {
|
|
|
|
config {
|
|
|
|
rules
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-19 17:27:10 +00:00
|
|
|
export const PRIVACY = gql`
|
|
|
|
query Privacy($locale: String) {
|
|
|
|
config {
|
|
|
|
privacy(locale: $locale) {
|
|
|
|
type
|
|
|
|
url
|
|
|
|
bodyHtml
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-02-18 07:57:00 +00:00
|
|
|
export const TIMEZONES = gql`
|
2021-06-28 07:36:29 +00:00
|
|
|
query Timezones {
|
2020-02-18 07:57:00 +00:00
|
|
|
config {
|
|
|
|
timezones
|
2019-12-20 12:04:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-05-06 16:39:59 +00:00
|
|
|
|
|
|
|
export const WEB_PUSH = gql`
|
2021-06-28 07:36:29 +00:00
|
|
|
query WebPush {
|
2021-05-06 16:39:59 +00:00
|
|
|
config {
|
|
|
|
webPush {
|
|
|
|
enabled
|
|
|
|
publicKey
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-10-04 16:59:41 +00:00
|
|
|
|
|
|
|
export const EVENT_PARTICIPANTS = gql`
|
|
|
|
query EventParticipants {
|
|
|
|
config {
|
|
|
|
exportFormats {
|
|
|
|
eventParticipants
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|