mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
17 lines
587 B
TypeScript
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(),
|
|
}
|
|
}
|
|
}
|