userCurrentChangePassword.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 '../../../../../../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 UserCurrentChangePasswordDocument = gql`
  8. mutation userCurrentChangePassword($currentPassword: String!, $newPassword: String!) {
  9. userCurrentChangePassword(
  10. currentPassword: $currentPassword
  11. newPassword: $newPassword
  12. ) {
  13. success
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${ErrorsFragmentDoc}`;
  20. export function useUserCurrentChangePasswordMutation(options: VueApolloComposable.UseMutationOptions<Types.UserCurrentChangePasswordMutation, Types.UserCurrentChangePasswordMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserCurrentChangePasswordMutation, Types.UserCurrentChangePasswordMutationVariables>> = {}) {
  21. return VueApolloComposable.useMutation<Types.UserCurrentChangePasswordMutation, Types.UserCurrentChangePasswordMutationVariables>(UserCurrentChangePasswordDocument, options);
  22. }
  23. export type UserCurrentChangePasswordMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserCurrentChangePasswordMutation, Types.UserCurrentChangePasswordMutationVariables>;