subscribe.api.ts 1.1 KB

12345678910111213141516171819202122
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ErrorsFragmentDoc } from '../../../../graphql/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 MentionSubscribeDocument = gql`
  8. mutation mentionSubscribe($ticketId: ID!) {
  9. mentionSubscribe(objectId: $ticketId) {
  10. success
  11. errors {
  12. ...errors
  13. }
  14. }
  15. }
  16. ${ErrorsFragmentDoc}`;
  17. export function useMentionSubscribeMutation(options: VueApolloComposable.UseMutationOptions<Types.MentionSubscribeMutation, Types.MentionSubscribeMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.MentionSubscribeMutation, Types.MentionSubscribeMutationVariables>> = {}) {
  18. return VueApolloComposable.useMutation<Types.MentionSubscribeMutation, Types.MentionSubscribeMutationVariables>(MentionSubscribeDocument, options);
  19. }
  20. export type MentionSubscribeMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.MentionSubscribeMutation, Types.MentionSubscribeMutationVariables>;