import { GQLVariable } from "../../lib/variables.js";
import { useSingleTenantMutation } from "../../lib/useSingleTenantMutation.js";
const CHANGE_PASSWORD_MUTATION = `
	changeMyPassword(
		currentPassword: $currentPassword,
		newPassword: $newPassword
	) {
		ok
		error {
			code
			developerMessage
		}
	}
`;
const changePasswordVariables = {
  currentPassword: GQLVariable.Required(GQLVariable.String),
  newPassword: GQLVariable.Required(GQLVariable.String)
};
const useChangePassword = () => {
  return useSingleTenantMutation(
    CHANGE_PASSWORD_MUTATION,
    changePasswordVariables
  );
};
export {
  useChangePassword
};
//# sourceMappingURL=changePasswords.js.map
