import { UserEntity } from '@app/infra/db/entities'; export class UserResponseDto { id!: string; email!: string; firstName!: string; lastName!: string; createdAt!: string; profileImagePath!: string; shouldChangePassword!: boolean; isAdmin!: boolean; deletedAt?: Date; oauthId!: string; } export function mapUser(entity: UserEntity): UserResponseDto { return { id: entity.id, email: entity.email, firstName: entity.firstName, lastName: entity.lastName, createdAt: entity.createdAt, profileImagePath: entity.profileImagePath, shouldChangePassword: entity.shouldChangePassword, isAdmin: entity.isAdmin, deletedAt: entity.deletedAt, oauthId: entity.oauthId, }; }