import { User } from '@ulangi/ulangi-common/interfaces' ; import { UserExtraDataItem } from '@ulangi/ulangi-common/types' ; import { UserRow } from '../interfaces/UserRow' ; export class UserRowConverter { public convertToUser ( userRow , extraData ) { const user = { userId : userRow . userId , email : userRow . email , userStatus : userRow . userStatus , membership : userRow . membership , membershipExpiredAt : userRow . membershipExpiredAt , createdAt : userRow . createdAt , updatedAt : userRow . updatedAt , firstSyncedAt : userRow . firstSyncedAt , lastSyncedAt : userRow . lastSyncedAt , extraData , } ; return user ; } }