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 TemplatesDocument = gql` query templates($onlyActive: Boolean = false) { templates(onlyActive: $onlyActive) { id name } } `; export function useTemplatesQuery(variables: Types.TemplatesQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(TemplatesDocument, variables, options); } export function useTemplatesLazyQuery(variables: Types.TemplatesQueryVariables | VueCompositionApi.Ref | ReactiveFunction = {}, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(TemplatesDocument, variables, options); } export type TemplatesQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn;