emailAddresses.api.ts 2.0 KB

1234567891011121314151617181920212223
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import * as VueApolloComposable from '@vue/apollo-composable';
  4. import * as VueCompositionApi from 'vue';
  5. export type ReactiveFunction<TParam> = () => TParam;
  6. export const EmailAddressesDocument = gql`
  7. query emailAddresses($onlyActive: Boolean = false) {
  8. emailAddresses(onlyActive: $onlyActive) {
  9. name
  10. email
  11. active
  12. }
  13. }
  14. `;
  15. export function useEmailAddressesQuery(variables: Types.EmailAddressesQueryVariables | VueCompositionApi.Ref<Types.EmailAddressesQueryVariables> | ReactiveFunction<Types.EmailAddressesQueryVariables> = {}, options: VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>> = {}) {
  16. return VueApolloComposable.useQuery<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>(EmailAddressesDocument, variables, options);
  17. }
  18. export function useEmailAddressesLazyQuery(variables: Types.EmailAddressesQueryVariables | VueCompositionApi.Ref<Types.EmailAddressesQueryVariables> | ReactiveFunction<Types.EmailAddressesQueryVariables> = {}, options: VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables> | VueCompositionApi.Ref<VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>> | ReactiveFunction<VueApolloComposable.UseQueryOptions<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>> = {}) {
  19. return VueApolloComposable.useLazyQuery<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>(EmailAddressesDocument, variables, options);
  20. }
  21. export type EmailAddressesQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn<Types.EmailAddressesQuery, Types.EmailAddressesQueryVariables>;