/** Internal type. DO NOT USE DIRECTLY. */ import * as VueApolloComposable from '@vue/apollo-composable' import type * as VueCompositionApi from 'vue' import { gql } from '@/utils/gql' import type * as Types from './schema' type Exact = { [K in keyof T]: T[K] } /** Internal type. DO NOT USE DIRECTLY. */ export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never } export type ReactiveFunction = () => TParam export type RemoveOriginMutationVariables = Exact<{ origin: string }> export type RemoveOriginMutation = { removed: boolean } export type SaveOriginMutationVariables = Exact<{ origin: string }> export type SaveOriginMutation = { saved: boolean } export type ToggleIgnoreBandMutationVariables = Exact<{ name: string }> export type ToggleIgnoreBandMutation = { ignore: boolean } export type ToggleIgnoreCityMutationVariables = Exact<{ name: string }> export type ToggleIgnoreCityMutation = { ignore: boolean } export type ToggleIgnoreDanceHallMutationVariables = Exact<{ name: string }> export type ToggleIgnoreDanceHallMutation = { ignore: boolean } export type ToggleIgnoreMunicipalityMutationVariables = Exact<{ name: string }> export type ToggleIgnoreMunicipalityMutation = { ignore: boolean } export type ToggleIgnoreStateMutationVariables = Exact<{ name: string }> export type ToggleIgnoreStateMutation = { ignore: boolean } export type FetchAddressQueryVariables = Exact<{ latlng: string }> export type FetchAddressQuery = { address: string } export type FetchFiltersQueryVariables = Exact<{ [key: string]: never }> export type FetchFiltersQuery = { bands: Array; cities: Array; states: Array; danceHalls: Array; municipalities: Array } export type FindEventsQueryVariables = Exact<{ range?: Types.Range | null | undefined origins?: Array | string | null | undefined includeOrigins: boolean search?: string | null | undefined includeHidden?: boolean | null | undefined }> export type FindEventsQuery = { origins?: Array; events: Array<{ date: string; time: string | null | undefined; extraInfo: string | null | undefined; band: { name: string } | null | undefined; danceHall: { name: string | null | undefined; city: string | null | undefined; municipality: string | null | undefined; state: string | null | undefined } | null | undefined; distances: Array<{ origin: string; distance: number; duration: string }> }> } export type FindOriginsQueryVariables = Exact<{ [key: string]: never }> export type FindOriginsQuery = { origins: Array } export const RemoveOriginDocument = gql` mutation RemoveOrigin($origin: String!) { removed: RemoveOrigin(origin: $origin) } ` /** * __useRemoveOriginMutation__ * * To run a mutation, you first call `useRemoveOriginMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useRemoveOriginMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useRemoveOriginMutation({ * variables: { * origin: // value for 'origin' * }, * }); */ export function useRemoveOriginMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(RemoveOriginDocument, options) } export type RemoveOriginMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const SaveOriginDocument = gql` mutation SaveOrigin($origin: String!) { saved: SaveOrigin(origin: $origin) } ` /** * __useSaveOriginMutation__ * * To run a mutation, you first call `useSaveOriginMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useSaveOriginMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useSaveOriginMutation({ * variables: { * origin: // value for 'origin' * }, * }); */ export function useSaveOriginMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(SaveOriginDocument, options) } export type SaveOriginMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const ToggleIgnoreBandDocument = gql` mutation ToggleIgnoreBand($name: String!) { ignore: ToggleIgnoreBand(name: $name) } ` /** * __useToggleIgnoreBandMutation__ * * To run a mutation, you first call `useToggleIgnoreBandMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useToggleIgnoreBandMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useToggleIgnoreBandMutation({ * variables: { * name: // value for 'name' * }, * }); */ export function useToggleIgnoreBandMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ToggleIgnoreBandDocument, options) } export type ToggleIgnoreBandMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const ToggleIgnoreCityDocument = gql` mutation ToggleIgnoreCity($name: String!) { ignore: ToggleIgnoreCity(name: $name) } ` /** * __useToggleIgnoreCityMutation__ * * To run a mutation, you first call `useToggleIgnoreCityMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useToggleIgnoreCityMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useToggleIgnoreCityMutation({ * variables: { * name: // value for 'name' * }, * }); */ export function useToggleIgnoreCityMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ToggleIgnoreCityDocument, options) } export type ToggleIgnoreCityMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const ToggleIgnoreDanceHallDocument = gql` mutation ToggleIgnoreDanceHall($name: String!) { ignore: ToggleIgnoreDanceHall(name: $name) } ` /** * __useToggleIgnoreDanceHallMutation__ * * To run a mutation, you first call `useToggleIgnoreDanceHallMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useToggleIgnoreDanceHallMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useToggleIgnoreDanceHallMutation({ * variables: { * name: // value for 'name' * }, * }); */ export function useToggleIgnoreDanceHallMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ToggleIgnoreDanceHallDocument, options) } export type ToggleIgnoreDanceHallMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const ToggleIgnoreMunicipalityDocument = gql` mutation ToggleIgnoreMunicipality($name: String!) { ignore: ToggleIgnoreMunicipality(name: $name) } ` /** * __useToggleIgnoreMunicipalityMutation__ * * To run a mutation, you first call `useToggleIgnoreMunicipalityMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useToggleIgnoreMunicipalityMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useToggleIgnoreMunicipalityMutation({ * variables: { * name: // value for 'name' * }, * }); */ export function useToggleIgnoreMunicipalityMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ToggleIgnoreMunicipalityDocument, options) } export type ToggleIgnoreMunicipalityMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const ToggleIgnoreStateDocument = gql` mutation ToggleIgnoreState($name: String!) { ignore: ToggleIgnoreState(name: $name) } ` /** * __useToggleIgnoreStateMutation__ * * To run a mutation, you first call `useToggleIgnoreStateMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useToggleIgnoreStateMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useToggleIgnoreStateMutation({ * variables: { * name: // value for 'name' * }, * }); */ export function useToggleIgnoreStateMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ToggleIgnoreStateDocument, options) } export type ToggleIgnoreStateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn export const FetchAddressDocument = gql` query FetchAddress($latlng: String!) { address: AddressFromLatLng(latlng: $latlng) } ` /** * __useFetchAddressQuery__ * * To run a query within a Vue component, call `useFetchAddressQuery` and pass it any options that fit your needs. * When your component renders, `useFetchAddressQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param variables that will be passed into the query * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useFetchAddressQuery({ * latlng: // value for 'latlng' * }); */ export function useFetchAddressQuery(variables: FetchAddressQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(FetchAddressDocument, variables, options) } export function useFetchAddressLazyQuery(variables?: FetchAddressQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(FetchAddressDocument, variables, options) } export type FetchAddressQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn export const FetchFiltersDocument = gql` query FetchFilters { bands: IgnoredBands cities: IgnoredCities states: IgnoredStates danceHalls: IgnoredDanceHalls municipalities: IgnoredMunicipalities } ` /** * __useFetchFiltersQuery__ * * To run a query within a Vue component, call `useFetchFiltersQuery` and pass it any options that fit your needs. * When your component renders, `useFetchFiltersQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useFetchFiltersQuery(); */ export function useFetchFiltersQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(FetchFiltersDocument, {}, options) } export function useFetchFiltersLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(FetchFiltersDocument, {}, options) } export type FetchFiltersQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn export const FindEventsDocument = gql` 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 { name } danceHall { name city municipality state } extraInfo distances { origin distance duration } } origins: Origins @include(if: $includeOrigins) } ` /** * __useFindEventsQuery__ * * To run a query within a Vue component, call `useFindEventsQuery` and pass it any options that fit your needs. * When your component renders, `useFindEventsQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param variables that will be passed into the query * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useFindEventsQuery({ * 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 | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(FindEventsDocument, variables, options) } export function useFindEventsLazyQuery(variables?: FindEventsQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(FindEventsDocument, variables, options) } export type FindEventsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn export const FindOriginsDocument = gql` query FindOrigins { origins: Origins } ` /** * __useFindOriginsQuery__ * * To run a query within a Vue component, call `useFindOriginsQuery` and pass it any options that fit your needs. * When your component renders, `useFindOriginsQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useFindOriginsQuery(); */ export function useFindOriginsQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(FindOriginsDocument, {}, options) } export function useFindOriginsLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(FindOriginsDocument, {}, options) } export type FindOriginsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn export interface PossibleTypesResultData { possibleTypes: { [key: string]: string[] } } const result: PossibleTypesResultData = { 'possibleTypes': {}, } export default result