feat: add full text search
This commit is contained in:
@@ -152,8 +152,10 @@ export type QueryAddressFromLatLngArgs = {
|
||||
|
||||
|
||||
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 {
|
||||
@@ -229,6 +231,8 @@ export type FindEventsQueryVariables = Exact<{
|
||||
range?: InputMaybe<Range>;
|
||||
origins?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
||||
includeOrigins: Scalars['Boolean']['input'];
|
||||
search?: InputMaybe<Scalars['String']['input']>;
|
||||
includeHidden?: InputMaybe<Scalars['Boolean']['input']>;
|
||||
}>;
|
||||
|
||||
|
||||
@@ -487,8 +491,13 @@ export function useFetchFiltersLazyQuery(options: VueApolloComposable.UseQueryOp
|
||||
}
|
||||
export type FetchFiltersQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<FetchFiltersQuery, FetchFiltersQueryVariables>;
|
||||
export const FindEventsDocument = gql`
|
||||
query FindEvents($range: Range, $origins: [String!], $includeOrigins: Boolean!) {
|
||||
events: Events(range: $range, origins: $origins) {
|
||||
query FindEvents($range: Range, $origins: [String!], $includeOrigins: Boolean!, $search: String, $includeHidden: Boolean) {
|
||||
events: Events(
|
||||
range: $range
|
||||
origins: $origins
|
||||
search: $search
|
||||
includeHidden: $includeHidden
|
||||
) {
|
||||
date
|
||||
time
|
||||
band {
|
||||
@@ -526,6 +535,8 @@ export const FindEventsDocument = gql`
|
||||
* range: // value for 'range'
|
||||
* origins: // value for 'origins'
|
||||
* includeOrigins: // value for 'includeOrigins'
|
||||
* search: // value for 'search'
|
||||
* includeHidden: // value for 'includeHidden'
|
||||
* });
|
||||
*/
|
||||
export function useFindEventsQuery(variables: FindEventsQueryVariables | VueCompositionApi.Ref<FindEventsQueryVariables> | ReactiveFunction<FindEventsQueryVariables>, options: VueApolloComposable.UseQueryOptions<FindEventsQuery, FindEventsQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<FindEventsQuery, FindEventsQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<FindEventsQuery, FindEventsQueryVariables>> = {}) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
query FindEvents($range: Range, $origins: [String!], $includeOrigins: Boolean!) {
|
||||
events: Events(range: $range, origins: $origins) {
|
||||
query FindEvents($range: Range, $origins: [String!], $includeOrigins: Boolean!, $search: String, $includeHidden: Boolean) {
|
||||
events: Events(range: $range, origins: $origins, search: $search, includeHidden: $includeHidden) {
|
||||
date
|
||||
time
|
||||
band {
|
||||
|
||||
+79
-95
@@ -1,121 +1,105 @@
|
||||
# source: https://dancefinder.unbound.se/graph/
|
||||
# timestamp: Wed Jul 03 2019 13:36:10 GMT+0200 (Central European Summer Time)
|
||||
# This file was generated. Do not edit manually.
|
||||
|
||||
"""Band"""
|
||||
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!
|
||||
created: LocalDateTime!
|
||||
}
|
||||
|
||||
"""DanceHall"""
|
||||
"DanceHall"
|
||||
type DanceHall {
|
||||
id: Int
|
||||
name: String
|
||||
city: String
|
||||
municipality: String
|
||||
state: String
|
||||
created: LocalDateTime!
|
||||
id: Int
|
||||
latitude: Float
|
||||
longitude: Float
|
||||
created: LocalDateTime!
|
||||
municipality: String
|
||||
name: String
|
||||
state: String
|
||||
}
|
||||
|
||||
"""DanceHallDistance"""
|
||||
"DanceHallDistance"
|
||||
type DanceHallDistance {
|
||||
origin: String!
|
||||
distance: Int!
|
||||
duration: String!
|
||||
origin: String!
|
||||
}
|
||||
|
||||
"""Event"""
|
||||
"Event"
|
||||
type Event {
|
||||
id: Int
|
||||
|
||||
"""The date of the event"""
|
||||
date: LocalDate!
|
||||
|
||||
"""The time of the event"""
|
||||
time: String
|
||||
|
||||
"""Additional information regarding the event"""
|
||||
extraInfo: String
|
||||
created: LocalDateTime!
|
||||
|
||||
"""The band of the event"""
|
||||
"The band of the event"
|
||||
band: Band
|
||||
|
||||
"""The place of the event"""
|
||||
created: LocalDateTime!
|
||||
"The place of the event"
|
||||
danceHall: DanceHall
|
||||
|
||||
"""
|
||||
The driving distances and driving durations to the event from the provided origins
|
||||
"""
|
||||
"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
|
||||
|
||||
type Mutation {
|
||||
"""Toggle band in ignore list"""
|
||||
ToggleIgnoreBand(name: String!): Boolean!
|
||||
|
||||
"""Toggle dance hall in ignore list"""
|
||||
ToggleIgnoreDanceHall(name: String!): Boolean!
|
||||
|
||||
"""Toggle city in ignore list"""
|
||||
ToggleIgnoreCity(name: String!): Boolean!
|
||||
|
||||
"""Toggle municipality in ignore list"""
|
||||
ToggleIgnoreMunicipality(name: String!): Boolean!
|
||||
|
||||
"""Toggle state in ignore list"""
|
||||
ToggleIgnoreState(name: String!): Boolean!
|
||||
|
||||
"""Save provided origin for authenticated user"""
|
||||
SaveOrigin(origin: String!): Boolean!
|
||||
|
||||
"""Remove provided origin from authenticated user"""
|
||||
RemoveOrigin(origin: String!): Boolean!
|
||||
}
|
||||
|
||||
type Query {
|
||||
"""Find events given provided criteria"""
|
||||
Events(range: Range, origins: [String!]): [Event!]!
|
||||
|
||||
"""Find bands given provided criteria"""
|
||||
Bands: [Band!]!
|
||||
|
||||
"""Find dance halls given provided criteria"""
|
||||
DanceHalls: [DanceHall!]!
|
||||
|
||||
"""Fetch origins for authenticated user"""
|
||||
Origins: [String!]!
|
||||
|
||||
"""Fetch address for provided lat/long"""
|
||||
AddressFromLatLng(latlng: String!): String!
|
||||
|
||||
"""Fetch ignored bands for authenticated user"""
|
||||
IgnoredBands: [String!]!
|
||||
|
||||
"""Fetch ignored dance halls for authenticated user"""
|
||||
IgnoredDanceHalls: [String!]!
|
||||
|
||||
"""Fetch ignored cities for authenticated user"""
|
||||
IgnoredCities: [String!]!
|
||||
|
||||
"""Fetch ignored municipalities for authenticated user"""
|
||||
IgnoredMunicipalities: [String!]!
|
||||
|
||||
"""Fetch ignored states for authenticated user"""
|
||||
IgnoredStates: [String!]!
|
||||
}
|
||||
|
||||
enum Range {
|
||||
ONE_MONTH
|
||||
ONE_YEAR
|
||||
TWO_WEEKS
|
||||
ONE_QUARTER
|
||||
ONE_WEEK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user