mirror of
https://github.com/standardnotes/server
synced 2026-07-31 05:16:40 -04:00
25 lines
660 B
TypeScript
25 lines
660 B
TypeScript
import { injectable } from 'inversify'
|
|
|
|
import { User } from '../Domain/User/User'
|
|
import { ProjectorInterface } from './ProjectorInterface'
|
|
import { SimpleUserProjection } from './SimpleUserProjection'
|
|
|
|
@injectable()
|
|
export class UserProjector implements ProjectorInterface<User> {
|
|
projectSimple(user: User): SimpleUserProjection {
|
|
return {
|
|
uuid: user.uuid,
|
|
email: user.email,
|
|
protocolVersion: user.version,
|
|
}
|
|
}
|
|
|
|
projectCustom(_projectionType: string, _user: User): Record<string, unknown> {
|
|
throw Error('not implemented')
|
|
}
|
|
|
|
projectFull(_user: User): Record<string, unknown> {
|
|
throw Error('not implemented')
|
|
}
|
|
}
|