twoFactorMethodInitiateAuthentication.api.ts 1.6 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ErrorsFragmentDoc } from '../fragments/errors.api';
  4. import * as VueApolloComposable from '@vue/apollo-composable';
  5. import * as VueCompositionApi from 'vue';
  6. export type ReactiveFunction<TParam> = () => TParam;
  7. export const TwoFactorMethodInitiateAuthenticationDocument = gql`
  8. mutation twoFactorMethodInitiateAuthentication($login: String!, $password: String!, $twoFactorMethod: EnumTwoFactorAuthenticationMethod!) {
  9. twoFactorMethodInitiateAuthentication(
  10. login: $login
  11. password: $password
  12. twoFactorMethod: $twoFactorMethod
  13. ) {
  14. initiationData
  15. errors {
  16. ...errors
  17. }
  18. }
  19. }
  20. ${ErrorsFragmentDoc}`;
  21. export function useTwoFactorMethodInitiateAuthenticationMutation(options: VueApolloComposable.UseMutationOptions<Types.TwoFactorMethodInitiateAuthenticationMutation, Types.TwoFactorMethodInitiateAuthenticationMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TwoFactorMethodInitiateAuthenticationMutation, Types.TwoFactorMethodInitiateAuthenticationMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.TwoFactorMethodInitiateAuthenticationMutation, Types.TwoFactorMethodInitiateAuthenticationMutationVariables>(TwoFactorMethodInitiateAuthenticationDocument, options);
  23. }
  24. export type TwoFactorMethodInitiateAuthenticationMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TwoFactorMethodInitiateAuthenticationMutation, Types.TwoFactorMethodInitiateAuthenticationMutationVariables>;