login.api.ts 981 B

12345678910111213141516171819202122
  1. import * as Types from '../types';
  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 LoginDocument = gql`
  8. mutation login($input: LoginInput!) {
  9. login(input: $input) {
  10. sessionId
  11. errors {
  12. ...errors
  13. }
  14. }
  15. }
  16. ${ErrorsFragmentDoc}`;
  17. export function useLoginMutation(options: VueApolloComposable.UseMutationOptions<Types.LoginMutation, Types.LoginMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.LoginMutation, Types.LoginMutationVariables>> = {}) {
  18. return VueApolloComposable.useMutation<Types.LoginMutation, Types.LoginMutationVariables>(LoginDocument, options);
  19. }
  20. export type LoginMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.LoginMutation, Types.LoginMutationVariables>;