import { Title } from '@angular/platform-browser'; import { CoreUtilityService } from '../../utilities/services/utility.service'; export declare class CoreSessionService { private titleService; private coreUtilityService; private APP_SCHEMA; private FULL_APP_SCHEMA; private LOGIN_STATUS; private CURR_APP_VISA_CAT; private CURR_APP_VISA_TYPE; private REGISTERED_USER_TOKEN; private loggedInStatus; private currentModuleObservable; private hideAddApplicantObservable; private isDeletedSubscriber; private APP_LANGUAGE_CODE; private APP_CULTURE_CODE; private TENENT; private DOCUMENT_IDENTIFIER; private ROUTE_ID; private APPLICANT_APLHA_ID; private APPLICANT_GRP_APLHA_ID; private LOGGED_IN_USING_EMAIL; private LOGGED_IN_FROM_MODULE; private APPLICATION_STATUS; private CURRENCY_CODE; isLoggedIn: import("rxjs").Observable; currentModule$: import("rxjs").Observable; hideaddApplicantBtn: import("rxjs").Observable; private appSchemaSubscriber; appSchema$: import("rxjs").Observable; isDeleted: import("rxjs").Observable; private loginFlagObservable; loginFlag: import("rxjs").Observable; constructor(titleService: Title, coreUtilityService: CoreUtilityService); /** * Get value from session storage * @param key - key */ getValue(key: string, isMandatory?: boolean): any; /** * This method will clear the session storage */ clearSession(): void; /** * This method will clear some of the keys from localstorage */ clearLocalStorage(): void; /** * This method will set title * @param newTitle - new value */ setTitle(newTitle: string): void; /** * This method will save app schema in browser * @param data - schema data */ saveApplicationSchemaInBrowser(data: object): Promise; /** * Save full application schema to session */ saveFullApplicationSchemaInBrowser(data: object): Promise; /** * Get app schema */ getApplicationSchema(): any; /** * Get unfiltered application schema */ getFullApplicationSchema(): any; /** * Get all module schema */ getAllModulesSchema(): Array; /** * This method will update login status of the user in session storgae * @param status - status */ updateLoginStatus(status: boolean): void; /** * Observable to update current module */ updateCurrentModule(moduleObj: object): void; /** * Getter function to get current module */ get currentModule(): object; /** * Observable to update login flag */ updateLoginFlag(flag: boolean): void; /** * Observable to update add applicant show/hide */ updateAddApplicantFlag(val: any): void; /** * Getter function to get flag for add applicant button */ get addApplicantFlag(): any; /** * Observable to update delete applicant flag */ updateDeletedFlag(val: any): void; /** * Getter function to get flag for delete applicant */ get addDeletedFlag(): any; /** * Get user logge in status */ getLoggedInStatus(): any; /** * Getter function to get login status */ get loginStatus(): boolean; /** * Getter function to get app schema */ get containsAppSchema(): boolean; /** * This method will set visa category of current app * @param visaCategory - visa category */ setCurrApplicantVisaCategory(visaCategory: string): void; /** * This method will set visa type of current app * @param visaType - visa type */ setCurrApplicantVisaType(visaType: string): void; get currentApplicantVisaCat(): string; get currentApplicantVisaType(): string; /** * This method will update token in session storgae * @param token - token */ updateTokenOnRegistration(token: any): void; set appLanguageCode(lang: string); get appLanguageCode(): string; set appCultureCode(cultureCode: string); get appCultureCode(): string; set tenent(mission: string); get tenent(): string; set documentIdentifierId(documentIdentifierId: string); get documentIdentifierId(): string; /** * get user token from session storage */ getUserToken(): string; /** * set route id to session storage * @param routeId - route id */ setRouteId(routeId: number): void; get routeId(): number; /** * set app id to session storage * @param id - id */ setApplicantAplhaId(id: string): void; get applicantAplhaId(): string; /** * set app group id to session storage * @param id - id */ setApplicantGroupAplhaId(id: string): void; get applicantGroupAplhaId(): string; /** * set currency code to session storgae * @param value - value */ setCurrencyCode(value: string): void; get currencyCode(): string; set loggedInUsingEmail(loggedInUsingEmail: boolean); get loggedInUsingEmail(): boolean; set loggedInFromModule(loggedInFromModule: string); get loggedInFromModule(): string; get applicationStatus(): string; set applicationStatus(value: string); /** * This method will set the key with value in local storage * @param key - localStorage key * @param value - localStorage key */ setStorageValue(key: string, value: any): void; /** * This method will get the value for specified key from local storage * @param key - localStorage key */ getStorageValue(key: string): string; /** * Set value to session * @param key - key to the value to be stored * @param value - value to be stored */ saveToSession(key: string, value: any): void; }