2018-03-30 15:30:30 -04:00
|
|
|
import {UserDTO, UserRoles} from '../../../common/entities/UserDTO';
|
|
|
|
|
2016-12-27 16:09:47 +01:00
|
|
|
export interface IUserManager {
|
2017-07-03 19:17:49 +02:00
|
|
|
findOne(filter: any): Promise<UserDTO>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
find(filter: any): Promise<UserDTO[]>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
createUser(user: UserDTO): Promise<UserDTO>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
deleteUser(id: number): Promise<UserDTO>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
changeRole(id: number, newRole: UserRoles): Promise<UserDTO>;
|
2018-03-30 15:30:30 -04:00
|
|
|
|
2017-07-03 19:17:49 +02:00
|
|
|
changePassword(request: any): Promise<void>;
|
|
|
|
}
|