2022-08-17 02:29:54 -04:00
|
|
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|
|
|
import { IGlobals } from "../models/eft/common/IGlobals";
|
|
|
|
import { ICustomizationItem } from "../models/eft/common/tables/ICustomizationItem";
|
2022-12-25 18:45:30 -05:00
|
|
|
import { IHandbookBase } from "../models/eft/common/tables/IHandbookBase";
|
2022-08-17 02:29:54 -04:00
|
|
|
import { IQuest } from "../models/eft/common/tables/IQuest";
|
|
|
|
import { IHideoutArea } from "../models/eft/hideout/IHideoutArea";
|
|
|
|
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
|
|
|
import { IHideoutScavCase } from "../models/eft/hideout/IHideoutScavCase";
|
|
|
|
import { IHideoutSettingsBase } from "../models/eft/hideout/IHideoutSettingsBase";
|
|
|
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
|
|
|
import { ISettingsBase } from "../models/spt/server/ISettingsBase";
|
|
|
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
|
|
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handle client requests
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
export declare class DataCallbacks {
|
|
|
|
protected httpResponse: HttpResponseUtil;
|
|
|
|
protected databaseServer: DatabaseServer;
|
|
|
|
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handles client/settings
|
|
|
|
* @returns ISettingsBase
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
getSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISettingsBase>;
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handles client/globals
|
|
|
|
* @returns IGlobals
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals>;
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handles client/items
|
|
|
|
* @returns string
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
getTemplateItems(url: string, info: IEmptyRequestData, sessionID: string): string;
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handles client/handbook/templates
|
|
|
|
* @returns IHandbookBase
|
|
|
|
*/
|
|
|
|
getTemplateHandbook(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHandbookBase>;
|
|
|
|
/**
|
|
|
|
* Handles client/customization
|
|
|
|
* @returns Record<string, ICustomizationItem
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
getTemplateSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, ICustomizationItem>>;
|
2022-12-25 18:45:30 -05:00
|
|
|
/**
|
|
|
|
* Handles client/account/customization
|
|
|
|
* @returns string[]
|
|
|
|
*/
|
2022-08-17 02:29:54 -04:00
|
|
|
getTemplateCharacter(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string[]>;
|
|
|
|
getTemplateQuests(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IQuest[]>;
|
|
|
|
getHideoutSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutSettingsBase>;
|
|
|
|
getHideoutAreas(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutArea[]>;
|
|
|
|
gethideoutProduction(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutProduction[]>;
|
|
|
|
getHideoutScavcase(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutScavCase[]>;
|
2022-12-25 18:45:30 -05:00
|
|
|
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, string>>;
|
|
|
|
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
2022-08-17 02:29:54 -04:00
|
|
|
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
|
|
|
}
|