158 lines
4.6 KiB
TypeScript
158 lines
4.6 KiB
TypeScript
export type Maybe<T> = T | null | undefined
|
|||
|
|
export type InputMaybe<T> = T | null | undefined
|
||
|
|
/** All built-in and custom scalars, mapped to their actual values */
|
||
|
|
export type Scalars = {
|
||
|
|
ID: { input: string; output: string }
|
||
|
|
String: { input: string; output: string }
|
||
|
|
Boolean: { input: boolean; output: boolean }
|
||
|
|
Int: { input: number; output: number }
|
||
|
|
Float: { input: number; output: number }
|
||
|
|
LocalDate: { input: string; output: string }
|
||
|
|
LocalDateTime: { input: string; output: string }
|
||
|
|
}
|
||
|
|
|
||
|
|
/** Band */
|
||
|
|
export type Band = {
|
||
|
|
__typename?: 'Band'
|
||
|
|
created: Scalars['LocalDateTime']['output']
|
||
|
|
id: Maybe<Scalars['String']['output']>
|
||
|
|
name: Scalars['String']['output']
|
||
|
|
}
|
||
|
|
|
||
|
|
/** DanceHall */
|
||
|
|
export type DanceHall = {
|
||
|
|
__typename?: 'DanceHall'
|
||
|
|
city: Maybe<Scalars['String']['output']>
|
||
|
|
created: Scalars['LocalDateTime']['output']
|
||
|
|
id: Maybe<Scalars['String']['output']>
|
||
|
|
latitude: Maybe<Scalars['Float']['output']>
|
||
|
|
longitude: Maybe<Scalars['Float']['output']>
|
||
|
|
municipality: Maybe<Scalars['String']['output']>
|
||
|
|
name: Maybe<Scalars['String']['output']>
|
||
|
|
state: Maybe<Scalars['String']['output']>
|
||
|
|
}
|
||
|
|
|
||
|
|
/** DanceHallDistance */
|
||
|
|
export type DanceHallDistance = {
|
||
|
|
__typename?: 'DanceHallDistance'
|
||
|
|
distance: Scalars['Int']['output']
|
||
|
|
duration: Scalars['String']['output']
|
||
|
|
origin: Scalars['String']['output']
|
||
|
|
}
|
||
|
|
|
||
|
|
/** Event */
|
||
|
|
export type Event = {
|
||
|
|
__typename?: 'Event'
|
||
|
|
/** The band of the event */
|
||
|
|
band: Maybe<Band>
|
||
|
|
created: Scalars['LocalDateTime']['output']
|
||
|
|
/** The place of the event */
|
||
|
|
danceHall: Maybe<DanceHall>
|
||
|
|
/** The date of the event */
|
||
|
|
date: Scalars['LocalDate']['output']
|
||
|
|
/** The driving distances and driving durations to the event from the provided origins */
|
||
|
|
distances: Array<DanceHallDistance>
|
||
|
|
/** Additional information regarding the event */
|
||
|
|
extraInfo: Maybe<Scalars['String']['output']>
|
||
|
|
id: Maybe<Scalars['String']['output']>
|
||
|
|
/** The time of the event */
|
||
|
|
time: Maybe<Scalars['String']['output']>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type Mutation = {
|
||
|
|
__typename?: 'Mutation'
|
||
|
|
/** Remove provided origin from authenticated user */
|
||
|
|
RemoveOrigin: Scalars['Boolean']['output']
|
||
|
|
/** Save provided origin for authenticated user */
|
||
|
|
SaveOrigin: Scalars['Boolean']['output']
|
||
|
|
/** Toggle band in ignore list */
|
||
|
|
ToggleIgnoreBand: Scalars['Boolean']['output']
|
||
|
|
/** Toggle city in ignore list */
|
||
|
|
ToggleIgnoreCity: Scalars['Boolean']['output']
|
||
|
|
/** Toggle dance hall in ignore list */
|
||
|
|
ToggleIgnoreDanceHall: Scalars['Boolean']['output']
|
||
|
|
/** Toggle municipality in ignore list */
|
||
|
|
ToggleIgnoreMunicipality: Scalars['Boolean']['output']
|
||
|
|
/** Toggle state in ignore list */
|
||
|
|
ToggleIgnoreState: Scalars['Boolean']['output']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationRemoveOriginArgs = {
|
||
|
|
origin: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationSaveOriginArgs = {
|
||
|
|
origin: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationToggleIgnoreBandArgs = {
|
||
|
|
name: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationToggleIgnoreCityArgs = {
|
||
|
|
name: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationToggleIgnoreDanceHallArgs = {
|
||
|
|
name: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationToggleIgnoreMunicipalityArgs = {
|
||
|
|
name: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type MutationToggleIgnoreStateArgs = {
|
||
|
|
name: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
export type Query = {
|
||
|
|
__typename?: 'Query'
|
||
|
|
/** Fetch address for provided lat/long */
|
||
|
|
AddressFromLatLng: Scalars['String']['output']
|
||
|
|
/** Find bands given provided criteria */
|
||
|
|
Bands: Array<Band>
|
||
|
|
/** Find dance halls given provided criteria */
|
||
|
|
DanceHalls: Array<DanceHall>
|
||
|
|
/** Find events given provided criteria */
|
||
|
|
Events: Array<Event>
|
||
|
|
/** Fetch ignored bands for authenticated user */
|
||
|
|
IgnoredBands: Array<Scalars['String']['output']>
|
||
|
|
/** Fetch ignored cities for authenticated user */
|
||
|
|
IgnoredCities: Array<Scalars['String']['output']>
|
||
|
|
/** Fetch ignored dance halls for authenticated user */
|
||
|
|
IgnoredDanceHalls: Array<Scalars['String']['output']>
|
||
|
|
/** Fetch ignored municipalities for authenticated user */
|
||
|
|
IgnoredMunicipalities: Array<Scalars['String']['output']>
|
||
|
|
/** Fetch ignored states for authenticated user */
|
||
|
|
IgnoredStates: Array<Scalars['String']['output']>
|
||
|
|
/** Fetch origins for authenticated user */
|
||
|
|
Origins: Array<Scalars['String']['output']>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type QueryAddressFromLatLngArgs = {
|
||
|
|
latlng: Scalars['String']['input']
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type QueryEventsArgs = {
|
||
|
|
includeHidden?: InputMaybe<Scalars['Boolean']['input']>
|
||
|
|
origins?: InputMaybe<Array<Scalars['String']['input']>>
|
||
|
|
range?: InputMaybe<Range>
|
||
|
|
search?: InputMaybe<Scalars['String']['input']>
|
||
|
|
}
|
||
|
|
|
||
|
|
export enum Range {
|
||
|
|
OneMonth = 'ONE_MONTH',
|
||
|
|
OneQuarter = 'ONE_QUARTER',
|
||
|
|
OneWeek = 'ONE_WEEK',
|
||
|
|
OneYear = 'ONE_YEAR',
|
||
|
|
TwoWeeks = 'TWO_WEEKS'
|
||
|
|
}
|