ticketLiveUserUpsert.api.ts 1.3 KB

12345678910111213141516171819202122
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { ErrorsFragmentDoc } from '../../../../../../../shared/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 TicketLiveUserUpsertDocument = gql`
  8. mutation ticketLiveUserUpsert($id: ID!, $app: EnumTaskbarApp!, $editing: Boolean!) {
  9. ticketLiveUserUpsert(id: $id, app: $app, editing: $editing) {
  10. success
  11. errors {
  12. ...errors
  13. }
  14. }
  15. }
  16. ${ErrorsFragmentDoc}`;
  17. export function useTicketLiveUserUpsertMutation(options: VueApolloComposable.UseMutationOptions<Types.TicketLiveUserUpsertMutation, Types.TicketLiveUserUpsertMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.TicketLiveUserUpsertMutation, Types.TicketLiveUserUpsertMutationVariables>> = {}) {
  18. return VueApolloComposable.useMutation<Types.TicketLiveUserUpsertMutation, Types.TicketLiveUserUpsertMutationVariables>(TicketLiveUserUpsertDocument, options);
  19. }
  20. export type TicketLiveUserUpsertMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.TicketLiveUserUpsertMutation, Types.TicketLiveUserUpsertMutationVariables>;