ClearVision/types/controllers/LauncherController.d.ts

37 lines
1.9 KiB
TypeScript
Raw Normal View History

2022-07-09 16:03:26 -04:00
import { HttpServerHelper } from "../helpers/HttpServerHelper";
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
import { IRegisterData } from "../models/eft/launcher/IRegisterData";
import { Info } from "../models/eft/profile/IAkiProfile";
2023-05-18 15:57:25 -04:00
import { IConnectResponse } from "../models/eft/profile/IConnectResponse";
2022-07-09 16:03:26 -04:00
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
import { ConfigServer } from "../servers/ConfigServer";
import { DatabaseServer } from "../servers/DatabaseServer";
import { SaveServer } from "../servers/SaveServer";
2023-05-18 15:57:25 -04:00
import { LocalisationService } from "../services/LocalisationService";
2022-07-09 16:03:26 -04:00
import { HashUtil } from "../utils/HashUtil";
export declare class LauncherController {
protected hashUtil: HashUtil;
protected saveServer: SaveServer;
protected httpServerHelper: HttpServerHelper;
protected databaseServer: DatabaseServer;
2023-05-18 15:57:25 -04:00
protected localisationService: LocalisationService;
2022-07-09 16:03:26 -04:00
protected configServer: ConfigServer;
protected coreConfig: ICoreConfig;
2023-05-18 15:57:25 -04:00
constructor(hashUtil: HashUtil, saveServer: SaveServer, httpServerHelper: HttpServerHelper, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
connect(): IConnectResponse;
/**
* Get descriptive text for each of the profile edtions a player can choose
* @returns
*/
protected getProfileDescriptions(): Record<string, string>;
2022-07-09 16:03:26 -04:00
find(sessionIdKey: string): Info;
login(info: ILoginRequestData): string;
register(info: IRegisterData): string;
protected createAccount(info: IRegisterData): string;
changeUsername(info: IChangeRequestData): string;
changePassword(info: IChangeRequestData): string;
wipe(info: IRegisterData): string;
getCompatibleTarkovVersion(): string;
}