userCurrentAccessTokenAdd.api.ts 1.4 KB

123456789101112131415161718192021222324252627
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { TokenAttributesFragmentDoc } from '../fragments/tokenAttributes.api';
  4. import { ErrorsFragmentDoc } from '../../../../../graphql/fragments/errors.api';
  5. import * as VueApolloComposable from '@vue/apollo-composable';
  6. import * as VueCompositionApi from 'vue';
  7. export type ReactiveFunction<TParam> = () => TParam;
  8. export const UserCurrentAccessTokenAddDocument = gql`
  9. mutation userCurrentAccessTokenAdd($input: UserAccessTokenInput!) {
  10. userCurrentAccessTokenAdd(input: $input) {
  11. token {
  12. ...tokenAttributes
  13. }
  14. tokenValue
  15. errors {
  16. ...errors
  17. }
  18. }
  19. }
  20. ${TokenAttributesFragmentDoc}
  21. ${ErrorsFragmentDoc}`;
  22. export function useUserCurrentAccessTokenAddMutation(options: VueApolloComposable.UseMutationOptions<Types.UserCurrentAccessTokenAddMutation, Types.UserCurrentAccessTokenAddMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserCurrentAccessTokenAddMutation, Types.UserCurrentAccessTokenAddMutationVariables>> = {}) {
  23. return VueApolloComposable.useMutation<Types.UserCurrentAccessTokenAddMutation, Types.UserCurrentAccessTokenAddMutationVariables>(UserCurrentAccessTokenAddDocument, options);
  24. }
  25. export type UserCurrentAccessTokenAddMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserCurrentAccessTokenAddMutation, Types.UserCurrentAccessTokenAddMutationVariables>;