userCurrentAvatarAdd.api.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 UserCurrentAvatarAddDocument = gql`
  8. mutation userCurrentAvatarAdd($images: AvatarInput!) {
  9. userCurrentAvatarAdd(images: $images) {
  10. avatar {
  11. id
  12. default
  13. deletable
  14. initial
  15. imageFull
  16. imageResize
  17. imageHash
  18. createdAt
  19. updatedAt
  20. }
  21. errors {
  22. ...errors
  23. }
  24. }
  25. }
  26. ${ErrorsFragmentDoc}`;
  27. export function useUserCurrentAvatarAddMutation(options: VueApolloComposable.UseMutationOptions<Types.UserCurrentAvatarAddMutation, Types.UserCurrentAvatarAddMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserCurrentAvatarAddMutation, Types.UserCurrentAvatarAddMutationVariables>> = {}) {
  28. return VueApolloComposable.useMutation<Types.UserCurrentAvatarAddMutation, Types.UserCurrentAvatarAddMutationVariables>(UserCurrentAvatarAddDocument, options);
  29. }
  30. export type UserCurrentAvatarAddMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserCurrentAvatarAddMutation, Types.UserCurrentAvatarAddMutationVariables>;