import { injectable } from 'inversify' import { User } from '../Domain/User/User' import { ProjectorInterface } from './ProjectorInterface' import { SimpleUserProjection } from './SimpleUserProjection' @injectable() export class UserProjector implements ProjectorInterface { projectSimple(user: User): SimpleUserProjection { return { uuid: user.uuid, email: user.email, protocolVersion: user.version, } } projectCustom(_projectionType: string, _user: User): Record { throw Error('not implemented') } projectFull(_user: User): Record { throw Error('not implemented') } }