import { User } from '../../common'; import { SECURITY_CONTEXT_MIDDLEWARE_PRIORITY } from '../context/context-protocol'; export const UserService = Symbol('UserService'); export const UserChecker = Symbol('UserChecker'); export const UserMapper = Symbol('UserMapper'); export const USER_MIDDLEWARE_PRIORITY = SECURITY_CONTEXT_MIDDLEWARE_PRIORITY - 100; export interface UserService { load(userRequest: R): Promise; } export interface UserChecker { check(user: User): Promise; } export interface UserMapper { map(user: User): Promise; }