Files
standardnotes-server/packages/auth/src/Mapping/AuthenticatorHttpMapper.ts
T

17 lines
587 B
TypeScript

import { MapperInterface } from '@standardnotes/domain-core'
import { Authenticator } from '../Domain/Authenticator/Authenticator'
import { AuthenticatorHttpProjection } from '../Infra/Http/Projection/AuthenticatorHttpProjection'
export class AuthenticatorHttpMapper implements MapperInterface<Authenticator, AuthenticatorHttpProjection> {
toDomain(_projection: AuthenticatorHttpProjection): Authenticator {
throw new Error('Not implemented yet.')
}
toProjection(domain: Authenticator): AuthenticatorHttpProjection {
return {
id: domain.id.toString(),
}
}
}