2023-08-01 20:21:31 +02:00
# This file was generated. Do not edit manually.
2020-01-25 14:59:56 +01:00
2023-08-01 20:21:31 +02:00
schema {
query : Query
mutation : Mutation
}
"The @defer directive may be specified on a fragment spread to imply de-prioritization, that causes the fragment to be omitted in the initial response, and delivered as a subsequent response afterward. A query with @defer directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred delivered in a subsequent response. @include and @skip take precedence over @defer."
directive @defer ( if : Boolean = true , label : String ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
"Band"
2020-01-25 14:59:56 +01:00
type Band {
2023-08-01 20:21:31 +02:00
created : LocalDateTime !
2020-01-25 14:59:56 +01:00
id : Int
name : String !
}
2023-08-01 20:21:31 +02:00
"DanceHall"
2020-01-25 14:59:56 +01:00
type DanceHall {
city : String
2023-08-01 20:21:31 +02:00
created : LocalDateTime !
id : Int
2020-01-25 14:59:56 +01:00
latitude : Float
longitude : Float
2023-08-01 20:21:31 +02:00
municipality : String
name : String
state : String
2020-01-25 14:59:56 +01:00
}
2023-08-01 20:21:31 +02:00
"DanceHallDistance"
2020-01-25 14:59:56 +01:00
type DanceHallDistance {
distance : Int !
duration : String !
2023-08-01 20:21:31 +02:00
origin : String !
2020-01-25 14:59:56 +01:00
}
2023-08-01 20:21:31 +02:00
"Event"
2020-01-25 14:59:56 +01:00
type Event {
2023-08-01 20:21:31 +02:00
"The band of the event"
2020-01-25 14:59:56 +01:00
band : Band
2023-08-01 20:21:31 +02:00
created : LocalDateTime !
"The place of the event"
2020-01-25 14:59:56 +01:00
danceHall : DanceHall
2023-08-01 20:21:31 +02:00
"The date of the event"
date : LocalDate !
"The driving distances and driving durations to the event from the provided origins"
2020-01-25 14:59:56 +01:00
distances : [ DanceHallDistance ! ] !
2023-08-01 20:21:31 +02:00
"Additional information regarding the event"
extraInfo : String
id : Int
"The time of the event"
time : String
2020-01-25 14:59:56 +01:00
}
type Mutation {
2023-08-01 20:21:31 +02:00
"Remove provided origin from authenticated user"
RemoveOrigin ( origin : String ! ) : Boolean !
"Save provided origin for authenticated user"
SaveOrigin ( origin : String ! ) : Boolean !
"Toggle band in ignore list"
2020-01-25 14:59:56 +01:00
ToggleIgnoreBand ( name : String ! ) : Boolean !
2023-08-01 20:21:31 +02:00
"Toggle city in ignore list"
2020-01-25 14:59:56 +01:00
ToggleIgnoreCity ( name : String ! ) : Boolean !
2023-08-01 20:21:31 +02:00
"Toggle dance hall in ignore list"
ToggleIgnoreDanceHall ( name : String ! ) : Boolean !
"Toggle municipality in ignore list"
2020-01-25 14:59:56 +01:00
ToggleIgnoreMunicipality ( name : String ! ) : Boolean !
2023-08-01 20:21:31 +02:00
"Toggle state in ignore list"
2020-01-25 14:59:56 +01:00
ToggleIgnoreState ( name : String ! ) : Boolean !
}
type Query {
2023-08-01 20:21:31 +02:00
"Fetch address for provided lat/long"
AddressFromLatLng ( latlng : String ! ) : String !
"Find bands given provided criteria"
2020-01-25 14:59:56 +01:00
Bands : [ Band ! ] !
2023-08-01 20:21:31 +02:00
"Find dance halls given provided criteria"
2020-01-25 14:59:56 +01:00
DanceHalls : [ DanceHall ! ] !
2023-08-01 20:21:31 +02:00
"Find events given provided criteria"
Events ( includeHidden : Boolean , origins : [ String ! ] , range : Range , search : String ) : [ Event ! ] !
"Fetch ignored bands for authenticated user"
2020-01-25 14:59:56 +01:00
IgnoredBands : [ String ! ] !
2023-08-01 20:21:31 +02:00
"Fetch ignored cities for authenticated user"
2020-01-25 14:59:56 +01:00
IgnoredCities : [ String ! ] !
2023-08-01 20:21:31 +02:00
"Fetch ignored dance halls for authenticated user"
IgnoredDanceHalls : [ String ! ] !
"Fetch ignored municipalities for authenticated user"
2020-01-25 14:59:56 +01:00
IgnoredMunicipalities : [ String ! ] !
2023-08-01 20:21:31 +02:00
"Fetch ignored states for authenticated user"
2020-01-25 14:59:56 +01:00
IgnoredStates : [ String ! ] !
2023-08-01 20:21:31 +02:00
"Fetch origins for authenticated user"
Origins : [ String ! ] !
2020-01-25 14:59:56 +01:00
}
enum Range {
ONE_MONTH
ONE_QUARTER
ONE_WEEK
2023-08-01 20:21:31 +02:00
ONE_YEAR
TWO_WEEKS
2020-01-25 14:59:56 +01:00
}
2023-08-01 20:21:31 +02:00
scalar LocalDate
scalar LocalDateTime