import { CurrentView } from '../achievement/current-view.type' ; import { SharingAchievement } from '../achievement/sharing-achievement' ; export class NavigationAchievements { readonly currentView : CurrentView = 'categories' ; readonly menuDisplayType : string = 'menu' ; readonly selectedCategoryId : string ; readonly selectedAchievementId : string ; readonly displayedAchievementsList : readonly string [ ] = [ ] ; readonly sharingAchievement : SharingAchievement ; readonly viewBeforeSearch ? : CurrentView ; readonly textBeforeSearch ? : string ; public update ( base ) { return Object . assign ( new NavigationAchievements ( ) , this , base ) ; } public getPageName ( ) { return this . currentView ; } }