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`
|
2021-05-17 18:19:24 +02:00
|
|
|
query FullConfig {
|
2020-02-18 08:57:00 +01:00
|
|
|
config {
|
|
|
|
name
|
|
|
|
description
|
2020-10-21 17:49:18 +02:00
|
|
|
slogan
|
2022-08-28 10:54:43 +02:00
|
|
|
version
|
2020-02-18 08:57:00 +01:00
|
|
|
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
|
2022-03-28 20:02:43 +02:00
|
|
|
eventCategories {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
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
|
|
|
|
}
|
2020-12-17 11:26:25 +01:00
|
|
|
routing {
|
|
|
|
type
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
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
|
|
|
}
|
2021-10-06 18:00:50 +02:00
|
|
|
restrictions {
|
|
|
|
onlyAdminCanCreateGroups
|
|
|
|
onlyGroupsCanCreateEvents
|
|
|
|
}
|
2020-06-27 19:12:45 +02:00
|
|
|
auth {
|
|
|
|
ldap
|
2022-10-28 16:05:55 +02:00
|
|
|
databaseLogin
|
2020-06-27 19:12:45 +02:00
|
|
|
oauthProviders {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
|
|
|
}
|
2021-04-12 10:13:11 +02:00
|
|
|
uploadLimits {
|
|
|
|
default
|
|
|
|
avatar
|
|
|
|
banner
|
|
|
|
}
|
2021-04-19 12:40:51 +02:00
|
|
|
instanceFeeds {
|
|
|
|
enabled
|
|
|
|
}
|
2021-05-06 18:39:59 +02:00
|
|
|
webPush {
|
|
|
|
enabled
|
|
|
|
publicKey
|
|
|
|
}
|
2021-12-16 16:48:50 +01:00
|
|
|
analytics {
|
|
|
|
id
|
|
|
|
enabled
|
|
|
|
configuration {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
2022-08-26 16:08:58 +02:00
|
|
|
search {
|
|
|
|
global {
|
|
|
|
isEnabled
|
|
|
|
isDefault
|
|
|
|
}
|
|
|
|
}
|
2019-11-08 19:37:14 +01:00
|
|
|
}
|
2019-03-22 10:53:38 +01:00
|
|
|
}
|
|
|
|
`;
|
2019-12-20 13:04:34 +01:00
|
|
|
|
2021-10-10 16:25:50 +02:00
|
|
|
export const CONFIG_EDIT_EVENT = gql`
|
|
|
|
query EditEventConfig {
|
|
|
|
config {
|
|
|
|
timezones
|
|
|
|
features {
|
|
|
|
groups
|
|
|
|
}
|
2022-03-28 20:02:43 +02:00
|
|
|
eventCategories {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
2021-10-10 16:25:50 +02:00
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
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
|
2022-08-26 16:08:58 +02:00
|
|
|
slogan
|
2020-06-19 19:27:10 +02:00
|
|
|
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
|
2021-04-19 12:40:51 +02:00
|
|
|
instanceFeeds {
|
|
|
|
enabled
|
|
|
|
}
|
2020-06-19 19:27:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-02-03 18:00:49 +01:00
|
|
|
export const CONTACT = gql`
|
|
|
|
query Contact {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
contact
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
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`
|
2021-06-28 09:36:29 +02:00
|
|
|
query Timezones {
|
2020-02-18 08:57:00 +01:00
|
|
|
config {
|
|
|
|
timezones
|
2019-12-20 13:04:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-05-06 18:39:59 +02:00
|
|
|
|
|
|
|
export const WEB_PUSH = gql`
|
2021-06-28 09:36:29 +02:00
|
|
|
query WebPush {
|
2021-05-06 18:39:59 +02:00
|
|
|
config {
|
|
|
|
webPush {
|
|
|
|
enabled
|
|
|
|
publicKey
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-10-04 18:59:41 +02:00
|
|
|
|
|
|
|
export const EVENT_PARTICIPANTS = gql`
|
|
|
|
query EventParticipants {
|
|
|
|
config {
|
|
|
|
exportFormats {
|
|
|
|
eventParticipants
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2022-07-12 10:55:28 +02:00
|
|
|
|
|
|
|
export const ANONYMOUS_PARTICIPATION_CONFIG = gql`
|
|
|
|
query AnonymousParticipationConfig {
|
|
|
|
config {
|
|
|
|
anonymous {
|
|
|
|
participation {
|
|
|
|
allowed
|
|
|
|
validation {
|
|
|
|
email {
|
|
|
|
enabled
|
|
|
|
confirmationRequired
|
|
|
|
}
|
|
|
|
captcha {
|
|
|
|
enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ANONYMOUS_REPORTS_CONFIG = gql`
|
|
|
|
query AnonymousParticipationConfig {
|
|
|
|
config {
|
|
|
|
anonymous {
|
|
|
|
reports {
|
|
|
|
allowed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const INSTANCE_NAME = gql`
|
|
|
|
query InstanceName {
|
|
|
|
config {
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ANONYMOUS_ACTOR_ID = gql`
|
|
|
|
query AnonymousActorId {
|
|
|
|
config {
|
|
|
|
anonymous {
|
|
|
|
actorId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const UPLOAD_LIMITS = gql`
|
|
|
|
query UploadLimits {
|
|
|
|
config {
|
|
|
|
uploadLimits {
|
|
|
|
default
|
|
|
|
avatar
|
|
|
|
banner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const EVENT_CATEGORIES = gql`
|
|
|
|
query EventCategories {
|
|
|
|
config {
|
|
|
|
eventCategories {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const RESTRICTIONS = gql`
|
|
|
|
query OnlyGroupsCanCreateEvents {
|
|
|
|
config {
|
|
|
|
restrictions {
|
|
|
|
onlyGroupsCanCreateEvents
|
|
|
|
onlyAdminCanCreateGroups
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const GEOCODING_AUTOCOMPLETE = gql`
|
|
|
|
query GeoCodingAutocomplete {
|
|
|
|
config {
|
|
|
|
geocoding {
|
|
|
|
autocomplete
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const MAPS_TILES = gql`
|
|
|
|
query MapsTiles {
|
|
|
|
config {
|
|
|
|
maps {
|
|
|
|
tiles {
|
|
|
|
endpoint
|
|
|
|
attribution
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-20 16:53:26 +02:00
|
|
|
export const ROUTING_TYPE = gql`
|
|
|
|
query RoutingType {
|
|
|
|
config {
|
|
|
|
maps {
|
|
|
|
routing {
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
export const FEATURES = gql`
|
|
|
|
query Features {
|
|
|
|
config {
|
|
|
|
features {
|
|
|
|
groups
|
|
|
|
eventCreation
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const RESOURCE_PROVIDERS = gql`
|
|
|
|
query ResourceProviders {
|
|
|
|
config {
|
|
|
|
resourceProviders {
|
|
|
|
type
|
|
|
|
endpoint
|
|
|
|
software
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const LOGIN_CONFIG = gql`
|
|
|
|
query LoginConfig {
|
|
|
|
config {
|
|
|
|
auth {
|
2022-10-28 16:05:55 +02:00
|
|
|
databaseLogin
|
2022-07-12 10:55:28 +02:00
|
|
|
oauthProviders {
|
|
|
|
id
|
|
|
|
label
|
|
|
|
}
|
|
|
|
}
|
|
|
|
registrationsOpen
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const LOCATION = gql`
|
|
|
|
query Location {
|
|
|
|
config {
|
|
|
|
location {
|
|
|
|
latitude
|
|
|
|
longitude
|
|
|
|
# accuracyRadius
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const DEMO_MODE = gql`
|
|
|
|
query DemoMode {
|
|
|
|
config {
|
|
|
|
demoMode
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const ANALYTICS = gql`
|
|
|
|
query Analytics {
|
|
|
|
config {
|
|
|
|
analytics {
|
|
|
|
id
|
|
|
|
enabled
|
|
|
|
configuration {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2022-08-26 16:08:58 +02:00
|
|
|
|
|
|
|
export const SEARCH_CONFIG = gql`
|
|
|
|
query SearchConfig {
|
|
|
|
config {
|
|
|
|
search {
|
|
|
|
global {
|
|
|
|
isEnabled
|
|
|
|
isDefault
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2022-10-28 12:58:52 +02:00
|
|
|
|
|
|
|
export const REGISTRATIONS = gql`
|
|
|
|
query Registrations {
|
|
|
|
config {
|
|
|
|
registrationsOpen
|
|
|
|
registrationsAllowlist
|
2022-10-28 16:05:55 +02:00
|
|
|
auth {
|
|
|
|
databaseLogin
|
|
|
|
}
|
2022-10-28 12:58:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|