|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
|
import { IsActive } from '@app/core/common/enum/is-active.enum';
|
|
|
|
|
import { DmpAssociatedUser, User, UserMergeRequestPersist, UserPersist, UserRolePatchPersist } from '@app/core/model/user/user';
|
|
|
|
|
import { DmpAssociatedUser, RemoveCredentialRequestPersist, User, UserMergeRequestPersist, UserPersist, UserRolePatchPersist } from '@app/core/model/user/user';
|
|
|
|
|
import { UserLookup } from '@app/core/query/user.lookup';
|
|
|
|
|
import { MultipleAutoCompleteConfiguration } from '@app/library/auto-complete/multiple/multiple-auto-complete-configuration';
|
|
|
|
|
import { SingleAutoCompleteConfiguration } from '@app/library/auto-complete/single/single-auto-complete-configuration';
|
|
|
|
@ -106,6 +106,16 @@ export class UserService {
|
|
|
|
|
.post<boolean>(url, item).pipe(
|
|
|
|
|
catchError((error: any) => throwError(error)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
removeCredentialAccount(item: RemoveCredentialRequestPersist): Observable<boolean> {
|
|
|
|
|
const url = `${this.apiBase}/mine/remove-credential-request`;
|
|
|
|
|
console.log(item);
|
|
|
|
|
console.log(url);
|
|
|
|
|
|
|
|
|
|
return this.http
|
|
|
|
|
.post<boolean>(url, item).pipe(
|
|
|
|
|
catchError((error: any) => throwError(error)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
confirmMergeAccount(token: Guid): Observable<boolean> {
|
|
|
|
|
const url = `${this.apiBase}/mine/confirm-merge-account/token/${token}`;
|
|
|
|
|