import * as Types from '#shared/graphql/types.ts'; import gql from 'graphql-tag'; import * as VueApolloComposable from '@vue/apollo-composable'; import * as VueCompositionApi from 'vue'; export type ReactiveFunction = () => TParam; export const TranslationsDocument = gql` query translations($locale: String!, $cacheKey: String) { translations(locale: $locale, cacheKey: $cacheKey) { isCacheStillValid cacheKey translations } } `; export function useTranslationsQuery(variables: Types.TranslationsQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(TranslationsDocument, variables, options); } export function useTranslationsLazyQuery(variables?: Types.TranslationsQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(TranslationsDocument, variables, options); } export type TranslationsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;