channelEmailAdd.api.ts 1.2 KB

123456789101112131415161718192021222324252627
  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 ChannelEmailAddDocument = gql`
  8. mutation channelEmailAdd($input: ChannelEmailAddInput!) {
  9. channelEmailAdd(input: $input) {
  10. channel {
  11. options
  12. group {
  13. id
  14. }
  15. }
  16. errors {
  17. ...errors
  18. }
  19. }
  20. }
  21. ${ErrorsFragmentDoc}`;
  22. export function useChannelEmailAddMutation(options: VueApolloComposable.UseMutationOptions<Types.ChannelEmailAddMutation, Types.ChannelEmailAddMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.ChannelEmailAddMutation, Types.ChannelEmailAddMutationVariables>> = {}) {
  23. return VueApolloComposable.useMutation<Types.ChannelEmailAddMutation, Types.ChannelEmailAddMutationVariables>(ChannelEmailAddDocument, options);
  24. }
  25. export type ChannelEmailAddMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.ChannelEmailAddMutation, Types.ChannelEmailAddMutationVariables>;