106 lines
2.9 KiB
GraphQL
106 lines
2.9 KiB
GraphQL
# This file was generated. Do not edit manually.
|
|
|
|
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"
|
|
type Band {
|
|
created: LocalDateTime!
|
|
id: Int
|
|
name: String!
|
|
}
|
|
|
|
"DanceHall"
|
|
type DanceHall {
|
|
city: String
|
|
created: LocalDateTime!
|
|
id: Int
|
|
latitude: Float
|
|
longitude: Float
|
|
municipality: String
|
|
name: String
|
|
state: String
|
|
}
|
|
|
|
"DanceHallDistance"
|
|
type DanceHallDistance {
|
|
distance: Int!
|
|
duration: String!
|
|
origin: String!
|
|
}
|
|
|
|
"Event"
|
|
type Event {
|
|
"The band of the event"
|
|
band: Band
|
|
created: LocalDateTime!
|
|
"The place of the event"
|
|
danceHall: DanceHall
|
|
"The date of the event"
|
|
date: LocalDate!
|
|
"The driving distances and driving durations to the event from the provided origins"
|
|
distances: [DanceHallDistance!]!
|
|
"Additional information regarding the event"
|
|
extraInfo: String
|
|
id: Int
|
|
"The time of the event"
|
|
time: String
|
|
}
|
|
|
|
type Mutation {
|
|
"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"
|
|
ToggleIgnoreBand(name: String!): Boolean!
|
|
"Toggle city in ignore list"
|
|
ToggleIgnoreCity(name: String!): Boolean!
|
|
"Toggle dance hall in ignore list"
|
|
ToggleIgnoreDanceHall(name: String!): Boolean!
|
|
"Toggle municipality in ignore list"
|
|
ToggleIgnoreMunicipality(name: String!): Boolean!
|
|
"Toggle state in ignore list"
|
|
ToggleIgnoreState(name: String!): Boolean!
|
|
}
|
|
|
|
type Query {
|
|
"Fetch address for provided lat/long"
|
|
AddressFromLatLng(latlng: String!): String!
|
|
"Find bands given provided criteria"
|
|
Bands: [Band!]!
|
|
"Find dance halls given provided criteria"
|
|
DanceHalls: [DanceHall!]!
|
|
"Find events given provided criteria"
|
|
Events(includeHidden: Boolean, origins: [String!], range: Range, search: String): [Event!]!
|
|
"Fetch ignored bands for authenticated user"
|
|
IgnoredBands: [String!]!
|
|
"Fetch ignored cities for authenticated user"
|
|
IgnoredCities: [String!]!
|
|
"Fetch ignored dance halls for authenticated user"
|
|
IgnoredDanceHalls: [String!]!
|
|
"Fetch ignored municipalities for authenticated user"
|
|
IgnoredMunicipalities: [String!]!
|
|
"Fetch ignored states for authenticated user"
|
|
IgnoredStates: [String!]!
|
|
"Fetch origins for authenticated user"
|
|
Origins: [String!]!
|
|
}
|
|
|
|
enum Range {
|
|
ONE_MONTH
|
|
ONE_QUARTER
|
|
ONE_WEEK
|
|
ONE_YEAR
|
|
TWO_WEEKS
|
|
}
|
|
|
|
scalar LocalDate
|
|
|
|
scalar LocalDateTime
|