changeVisibility.api.ts 1.4 KB

12345678910111213141516171819202122232425
  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 TicketArticleChangeVisibilityDocument = gql`
  8. mutation ticketArticleChangeVisibility($articleId: ID!, $internal: Boolean!) {
  9. ticketArticleChangeVisibility(articleId: $articleId, internal: $internal) {
  10. article {
  11. id
  12. internal
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${ErrorsFragmentDoc}`;
  20. export function useTicketArticleChangeVisibilityMutation(options: VueApolloComposable.UseMutationOptions<Types.TicketArticleChangeVisibilityMutation, Types.TicketArticleChangeVisibilityMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TicketArticleChangeVisibilityMutation, Types.TicketArticleChangeVisibilityMutationVariables>> = {}) {
  21. return VueApolloComposable.useMutation<Types.TicketArticleChangeVisibilityMutation, Types.TicketArticleChangeVisibilityMutationVariables>(TicketArticleChangeVisibilityDocument, options);
  22. }
  23. export type TicketArticleChangeVisibilityMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TicketArticleChangeVisibilityMutation, Types.TicketArticleChangeVisibilityMutationVariables>;