forked from CWX/ALT-Mods
bump
This commit is contained in:
parent
b5659c564a
commit
f21be476bb
@ -1,5 +1,5 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,9 +1,9 @@
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { Other } from "./other";
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { BaseClasses } from "../types/models/enums/BaseClasses";
|
||||
import { BaseClasses } from "@spt-aki/models/enums/BaseClasses";
|
||||
|
||||
@injectable()
|
||||
export class Items
|
||||
@ -27,7 +27,7 @@ export class Items
|
||||
if (!this.other.isThisIDaMod([id]))
|
||||
{
|
||||
//Examine all items
|
||||
if (!this.configHandler.getConfig().items.allExaminedItems)
|
||||
if (this.configHandler.getConfig().items.allExaminedItems)
|
||||
{
|
||||
this.editSimpleItemData(id, "ExaminedByDefault", true);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { DependencyContainer, Lifecycle } from "tsyringe";
|
||||
import type { StaticRouterModService } from "../types/services/mod/staticRouter/StaticRouterModService";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { StaticRouterModService } from "@spt-aki/services/mod/staticRouter/StaticRouterModService";
|
||||
import type { IMod } from "@spt-aki/models/external/mod";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import { Other } from "./other";
|
||||
import { Items } from "./items";
|
||||
import { Raids } from "./raids";
|
||||
@ -27,7 +27,7 @@ class AIOMod implements IMod
|
||||
container.register<Player>("AIOPlayer", Player);
|
||||
container.register<Notifications>("AIONotifications", Notifications);
|
||||
const staticRoute = container.resolve<StaticRouterModService>("StaticRouterModService");
|
||||
container.resolve<ILogger>("WinstonLogger");
|
||||
this.logger = container.resolve<ILogger>("WinstonLogger");
|
||||
|
||||
if (container.resolve<AIOConfigHandler>("AIOConfigHandler").getConfig().player.allSkillsMaster)
|
||||
{
|
||||
@ -36,13 +36,14 @@ class AIOMod implements IMod
|
||||
[
|
||||
{
|
||||
url: "/client/game/version/validate",
|
||||
action: (sessionID: string): any =>
|
||||
{
|
||||
action: (url: string, info: any, sessionID: string, output: string): any =>
|
||||
{
|
||||
this.logger.info(sessionID);
|
||||
return container.resolve<Player>("AIOPlayer").maxSkills(sessionID);
|
||||
}
|
||||
}
|
||||
],
|
||||
"AIOMod"
|
||||
"aki"
|
||||
)
|
||||
}
|
||||
|
||||
@ -53,13 +54,13 @@ class AIOMod implements IMod
|
||||
[
|
||||
{
|
||||
url: "/client/game/bot/generate",
|
||||
action: (info: any): any =>
|
||||
action: (url: string, info: any, sessionID: string, output: string): any =>
|
||||
{
|
||||
return container.resolve<Other>("AIOOther").spawnRaidersEverywhere(info);
|
||||
}
|
||||
}
|
||||
],
|
||||
"AIOMod"
|
||||
"aki"
|
||||
)
|
||||
}
|
||||
|
||||
@ -73,7 +74,7 @@ class AIOMod implements IMod
|
||||
container.resolve<Fixes>("AIOFixes").applyChanges();
|
||||
container.resolve<Raids>("AIORaids").applyChanges();
|
||||
container.resolve<Items>("AIOItems").applyChanges();
|
||||
container.resolve<Traders>("AIOTrader").applyChanges();
|
||||
container.resolve<Traders>("AIOTraders").applyChanges();
|
||||
container.resolve<Player>("AIOPlayer").applyChanges();
|
||||
|
||||
if (container.resolve<AIOConfigHandler>("AIOConfigHandler").getConfig().other.showModLogs)
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { HttpResponseUtil } from "../types/utils/HttpResponseUtil"
|
||||
import type { BotController } from "../types/controllers/BotController"
|
||||
import type { IBotBase } from "../types/models/eft/common/tables/IBotBase";
|
||||
import type { IGetBodyResponseData } from "../types/models/eft/httpResponse/IGetBodyResponseData";
|
||||
import type { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"
|
||||
import type { BotController } from "@spt-aki/controllers/BotController"
|
||||
import type { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||
import type { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { inject, injectable } from "tsyringe";
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { ProfileHelper } from "../types/helpers/ProfileHelper";
|
||||
import type { IPmcData } from "../types/models/eft/common/IPmcData";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { HttpResponseUtil } from "../types/utils/HttpResponseUtil";
|
||||
import type { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
||||
import type { IPmcData } from "@spt-aki//models/eft/common/IPmcData";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import type { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { BossLocationSpawn } from "../types/models/eft/common/ILocationBase";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { BossLocationSpawn } from "@spt-aki/models/eft/common/ILocationBase";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { Other } from "./other";
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { Other } from "./other";
|
||||
import { Money } from "../types/models/enums/Money"
|
||||
import { Traders as eftTraders} from "../types/models/spt/helpers/Traders"
|
||||
import { Money } from "@spt-aki/models/enums/Money"
|
||||
import { Traders as eftTraders} from "@spt-aki/models/spt/helpers/Traders"
|
||||
|
||||
@injectable()
|
||||
export class Traders
|
||||
|
@ -1,13 +1,13 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
export declare class CustomizationController {
|
||||
private logger;
|
||||
private itemEventRouter;
|
||||
|
@ -19,6 +19,7 @@ export declare class DialogueController {
|
||||
setDialoguePin(dialogueID: string, shouldPin: boolean, sessionID: string): void;
|
||||
setRead(dialogueIDs: string[], sessionID: string): void;
|
||||
getAllAttachments(dialogueID: string, sessionID: string): IGetAllAttachmentsResponse;
|
||||
private messagesHaveUncollectedRewards;
|
||||
private removeExpiredItems;
|
||||
update(): void;
|
||||
}
|
||||
|
@ -13,7 +13,15 @@ export declare class GameController {
|
||||
private configServer;
|
||||
private httpConfig;
|
||||
constructor(logger: ILogger, watermark: Watermark, httpServerHelper: HttpServerHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): void;
|
||||
gameStart(_url: string, _info: IEmptyRequestData, sessionID: string): void;
|
||||
private addMissingBonusesProperty;
|
||||
private addMissingRepeatableQuestsProperty;
|
||||
private addMissingWeaponRepairSkill;
|
||||
private addMissingAkiVersionTagToProfile;
|
||||
private addMissingArmorRepairSkill;
|
||||
private fixNullTraderSalesSums;
|
||||
private removeDanglingConditionCounters;
|
||||
private removeDanglingBackendCounters;
|
||||
getGameConfig(sessionID: string): IGameConfigResponse;
|
||||
getServer(): any[];
|
||||
private getActiveRepeatableQuests;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { HandbookHelper } from "../helpers/HandbookHelper";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
export declare class HandbookController {
|
||||
private databaseServer;
|
||||
private handbookHelper;
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { LocationGenerator } from "../generators/LocationGenerator";
|
||||
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
||||
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { JsonUtil } from "../utils/JsonUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
export declare class LocationController {
|
||||
private jsonUtil;
|
||||
private logger;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
declare class NoteController {
|
||||
private itemEventRouter;
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { ItemHelper } from "../helpers/ItemHelper";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
export declare class PresetBuildController {
|
||||
private hashUtil;
|
||||
private itemEventRouter;
|
||||
|
@ -1,18 +1,18 @@
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||
import { ItemHelper } from "../helpers/ItemHelper";
|
||||
import { TraderHelper } from "../helpers/TraderHelper";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||
import { IProfileChangeNicknameRequestData } from "../models/eft/profile/IProfileChangeNicknameRequestData";
|
||||
import { IProfileChangeVoiceRequestData } from "../models/eft/profile/IProfileChangeVoiceRequestData";
|
||||
import { IProfileCreateRequestData } from "../models/eft/profile/IProfileCreateRequestData";
|
||||
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
||||
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
||||
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||
export declare class ProfileController {
|
||||
private hashUtil;
|
||||
private timeUtil;
|
||||
|
@ -89,7 +89,7 @@ export declare class RepeatableQuestController {
|
||||
* @param {string} sessionId Player's session id
|
||||
* @returns {array} array of "repeatableQuestObjects" as descibed above
|
||||
*/
|
||||
getClientRepeatableQuests(info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[];
|
||||
getClientRepeatableQuests(_info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[];
|
||||
/**
|
||||
* This method is called by GetClientRepeatableQuests and creates one element of quest type format (see assets/database/templates/repeatableQuests.json).
|
||||
* It randomly draws a quest type (currently Elimination, Completion or Exploration) as well as a trader who is providing the quest
|
||||
|
@ -10,8 +10,16 @@ export declare class RagfairAssortGenerator {
|
||||
private databaseServer;
|
||||
private generatedAssortItems;
|
||||
constructor(jsonUtil: JsonUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseServer: DatabaseServer);
|
||||
/**
|
||||
* Get an array of unique items that can be sold on the flea
|
||||
* @returns array of unique items
|
||||
*/
|
||||
getAssortItems(): Item[];
|
||||
private assortsAreGenerated;
|
||||
/**
|
||||
* Generate an array of items the flea can sell
|
||||
* @returns array of unique items
|
||||
*/
|
||||
private generateRagfairAssortItems;
|
||||
private createRagfairAssortItem;
|
||||
}
|
||||
|
@ -39,6 +39,10 @@ export declare class RagfairOfferGenerator {
|
||||
private getRating;
|
||||
private getRatingGrowing;
|
||||
private getOfferEndTime;
|
||||
/**
|
||||
* Create multiple offers for items by using a unique list of items we've generated previously
|
||||
* @param expiredOffers
|
||||
*/
|
||||
generateDynamicOffers(expiredOffers?: Item[]): void;
|
||||
generateTraderOffers(traderID: string): void;
|
||||
private getItemCondition;
|
||||
|
@ -48,6 +48,8 @@ export declare class HideoutHelper {
|
||||
applyPlayerUpgradesBonuses(pmcData: IPmcData, bonus: StageBonus): void;
|
||||
private applySkillXPBoost;
|
||||
updatePlayerHideout(sessionID: string): void;
|
||||
private updateWaterCollector;
|
||||
private doesWaterCollectorHaveFilter;
|
||||
private updateFuel;
|
||||
private updateWaterFilters;
|
||||
private getAreaUpdObject;
|
||||
|
@ -24,8 +24,13 @@ export declare class RagfairServerHelper {
|
||||
private questConfig;
|
||||
private static TPL_GOODS_RETURNED;
|
||||
constructor(randomUtil: RandomUtil, hashUtil: HashUtil, saveServer: SaveServer, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, dialogueHelper: DialogueHelper, jsonUtil: JsonUtil, configServer: ConfigServer);
|
||||
/**
|
||||
* Is item valid / on blacklist / quest item
|
||||
* @param itemDetails
|
||||
* @returns boolean
|
||||
*/
|
||||
isItemValidRagfairItem(itemDetails: [boolean, ITemplateItem]): boolean;
|
||||
isItemBlacklisted(itemTemplateId: string): boolean;
|
||||
private isItemBlacklisted;
|
||||
isTrader(userID: string): boolean;
|
||||
isPlayer(userID: string): boolean;
|
||||
returnItems(sessionID: string, items: any[]): void;
|
||||
|
@ -21,9 +21,22 @@ export declare class TradeHelper {
|
||||
private inventoryHelper;
|
||||
private ragfairServer;
|
||||
constructor(logger: ILogger, itemEventRouter: ItemEventRouter, traderHelper: TraderHelper, itemHelper: ItemHelper, paymentService: PaymentService, fenceService: FenceService, inventoryHelper: InventoryHelper, ragfairServer: RagfairServer);
|
||||
/**
|
||||
* Buy item from flea or trader
|
||||
* @param pmcData
|
||||
* @param buyRequestData data from client
|
||||
* @param sessionID
|
||||
* @param foundInRaid
|
||||
* @param upd optional item details used when buying from flea
|
||||
* @returns
|
||||
*/
|
||||
buyItem(pmcData: IPmcData, buyRequestData: IProcessBuyTradeRequestData, sessionID: string, foundInRaid: boolean, upd: Upd): IItemEventRouterResponse;
|
||||
/**
|
||||
* Selling item to trader
|
||||
* Sell item to trader
|
||||
* @param pmcData
|
||||
* @param body
|
||||
* @param sessionID
|
||||
* @returns
|
||||
*/
|
||||
sellItem(pmcData: IPmcData, body: IProcessSellTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
private incrementAssortBuyCount;
|
||||
|
1
Ereshkigal-AIO/ZEreshkigal-AllinOneMod/dist/types/ide/BleedingEdgeEntry.d.ts
vendored
Normal file
1
Ereshkigal-AIO/ZEreshkigal-AllinOneMod/dist/types/ide/BleedingEdgeEntry.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
import "reflect-metadata";
|
@ -2,12 +2,12 @@ import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||
import { JsonUtil } from "../utils/JsonUtil";
|
||||
import { VFS } from "../utils/VFS";
|
||||
declare class BundleInfo {
|
||||
private httpServerHelper;
|
||||
modPath: string;
|
||||
key: string;
|
||||
path: string;
|
||||
filepath: string;
|
||||
dependencyKeys: string[];
|
||||
constructor(modpath: string, bundle: any, httpServerHelper: HttpServerHelper);
|
||||
constructor(modpath: string, bundle: any, bundlePath: string, bundleFilepath: string);
|
||||
}
|
||||
export declare class BundleLoader {
|
||||
private httpServerHelper;
|
||||
|
@ -26,6 +26,25 @@ export declare class InitialModLoader implements IModLoader {
|
||||
getModPath(mod: string): string;
|
||||
private importClass;
|
||||
private importMods;
|
||||
/**
|
||||
*
|
||||
* @param mods Get an array of broken/invalid mods by name
|
||||
* @returns Mod names array
|
||||
*/
|
||||
private getBrokenMods;
|
||||
/**
|
||||
* Get packageJson data for mods
|
||||
* @param mods mods to get packageJson for
|
||||
* @returns dictionary <modName - package.json>
|
||||
*/
|
||||
private getModsPackageData;
|
||||
/**
|
||||
* Does mod have "delayedLoad(" string in its entry class
|
||||
* @param modFolderName folder name
|
||||
* @param modToValidate package.json details
|
||||
* @returns boolean
|
||||
*/
|
||||
private isModSpt300Compatible;
|
||||
private isModCombatibleWithAki;
|
||||
private executeMods;
|
||||
private sortModsLoadOrder;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// <reference types="node" />
|
||||
import { IncomingMessage, ServerResponse } from "http";
|
||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||
import { ImageRouteService } from "../services/mod/image/imageRouteService";
|
||||
import { ImageRouteService } from "../services/mod/image/ImageRouteService";
|
||||
import { VFS } from "../utils/VFS";
|
||||
export declare class ImageRouter {
|
||||
private vfs;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { IHttpServer } from "../../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../../models/spt/utils/ILogger";
|
||||
import { Serializer } from "../../di/Serializer";
|
||||
import { BundleLoader } from "../../loaders/BundleLoader";
|
||||
import { IHttpServer } from "../../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../../models/spt/utils/ILogger";
|
||||
export declare class BundleSerializer extends Serializer {
|
||||
private logger;
|
||||
private bundleLoader;
|
||||
|
@ -1,38 +1,21 @@
|
||||
import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator";
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { RagfairCategoriesService } from "../services/RagfairCategoriesService";
|
||||
import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService";
|
||||
import { RagfairOfferService } from "../services/RagfairOfferService";
|
||||
import { RagfairPriceService } from "../services/RagfairPriceService";
|
||||
import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { ConfigServer } from "./ConfigServer";
|
||||
import { SaveServer } from "./SaveServer";
|
||||
export declare class RagfairServer {
|
||||
private logger;
|
||||
private ragfairOfferGenerator;
|
||||
private ragfairServerHelper;
|
||||
private profileHelper;
|
||||
private itemEventRouter;
|
||||
private httpResponse;
|
||||
private saveServer;
|
||||
private ragfairPriceService;
|
||||
private ragfairOfferService;
|
||||
private ragfairLinkedItemService;
|
||||
private ragfairCategoriesService;
|
||||
private ragfairRequiredItemsService;
|
||||
private configServer;
|
||||
private ragfairConfig;
|
||||
constructor(logger: ILogger, ragfairOfferGenerator: RagfairOfferGenerator, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, itemEventRouter: ItemEventRouter, httpResponse: HttpResponseUtil, saveServer: SaveServer, ragfairPriceService: RagfairPriceService, ragfairOfferService: RagfairOfferService, ragfairLinkedItemService: RagfairLinkedItemService, ragfairCategoriesService: RagfairCategoriesService, ragfairRequiredItemsService: RagfairRequiredItemsService, configServer: ConfigServer);
|
||||
constructor(logger: ILogger, ragfairOfferGenerator: RagfairOfferGenerator, ragfairOfferService: RagfairOfferService, ragfairCategoriesService: RagfairCategoriesService, ragfairRequiredItemsService: RagfairRequiredItemsService, configServer: ConfigServer);
|
||||
load(): void;
|
||||
update(): void;
|
||||
private processExpiredOffer;
|
||||
returnPlayerOffer(offer: IRagfairOffer): IItemEventRouterResponse;
|
||||
getCategories(): Record<string, number>;
|
||||
/**
|
||||
* Disable/Hide an offer from flea
|
||||
@ -40,6 +23,7 @@ export declare class RagfairServer {
|
||||
*/
|
||||
hideOffer(offerId: string): void;
|
||||
getOffer(offerID: string): IRagfairOffer;
|
||||
getOffers(): IRagfairOffer[];
|
||||
removeOfferStack(offerID: string, amount: number): void;
|
||||
doesOfferExist(offerId: string): boolean;
|
||||
addPlayerOffers(): void;
|
||||
|
@ -6,8 +6,10 @@ export declare class ModCompilerService {
|
||||
private hashCacheService;
|
||||
private vfs;
|
||||
constructor(logger: ILogger, hashCacheService: HashCacheService, vfs: VFS);
|
||||
compileMod(modName: string, path: string, modTypeScriptFiles: string[]): Promise<void>;
|
||||
compileMod(modName: string, modPath: string, modTypeScriptFiles: string[]): Promise<void>;
|
||||
private compile;
|
||||
private buildDepth;
|
||||
private calculateDepth;
|
||||
private areFilesReady;
|
||||
private delay;
|
||||
}
|
||||
|
@ -4,6 +4,6 @@ export declare class RagfairLinkedItemService {
|
||||
private linkedItemsCache;
|
||||
constructor(databaseServer: DatabaseServer);
|
||||
getLinkedItems(linkedSearchId: string): Iterable<string>;
|
||||
buildLinkedItemTable(): void;
|
||||
private buildLinkedItemTable;
|
||||
private getFilters;
|
||||
}
|
||||
|
@ -1,20 +1,30 @@
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||
import { Item } from "../models/eft/common/tables/IItem";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { Item } from "../models/eft/common/tables/IItem";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
export declare class RagfairOfferService {
|
||||
private logger;
|
||||
private timeUtil;
|
||||
private databaseServer;
|
||||
private saveServer;
|
||||
private ragfairServerHelper;
|
||||
private profileHelper;
|
||||
private itemEventRouter;
|
||||
private httpResponse;
|
||||
private configServer;
|
||||
private playerOffersLoaded;
|
||||
private toUpdate;
|
||||
private expiredOffers;
|
||||
private offers;
|
||||
private ragfairConfig;
|
||||
constructor(timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, configServer: ConfigServer);
|
||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, itemEventRouter: ItemEventRouter, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||
getOffers(): IRagfairOffer[];
|
||||
getOfferByOfferId(offerId: string): IRagfairOffer;
|
||||
getOffersOfType(templateId: string): IRagfairOffer[];
|
||||
@ -22,20 +32,13 @@ export declare class RagfairOfferService {
|
||||
addOfferToExpired(offer: Item): void;
|
||||
setTraderUpdateStatus(traderId: string, shouldUpdate: boolean): void;
|
||||
shouldTraderBeUpdated(traderID: string): boolean;
|
||||
/**
|
||||
* Get an array of expired offers that are still shown to player
|
||||
* @returns IRagfairOffer array
|
||||
*/
|
||||
getExpiredActiveOffers(): IRagfairOffer[];
|
||||
getExpiredOfferCount(): number;
|
||||
getOfferIndexByOfferId(offerId: string): number;
|
||||
/**
|
||||
* Get an array of expired items not yet processed into new offers
|
||||
* @returns items that need to be turned into offers
|
||||
*/
|
||||
getExpiredOffers(): Item[];
|
||||
resetExpiredOffers(): void;
|
||||
private isExpired;
|
||||
/**
|
||||
* Does the offer exist on the ragfair
|
||||
* @param offerId offer id to check for
|
||||
@ -44,9 +47,18 @@ export declare class RagfairOfferService {
|
||||
doesOfferExist(offerId: string): boolean;
|
||||
getTraders(): Record<string, boolean>;
|
||||
flagTraderForUpdate(expiredOfferUserId: string): void;
|
||||
removeOffer(globalOfferIndex: number, countToRemove: number): void;
|
||||
removeOfferById(offerId: string): void;
|
||||
removeOfferStack(offerID: string, amount: number): void;
|
||||
removeAllOffersByTrader(traderId: string): void;
|
||||
addTradersToUpdateList(): void;
|
||||
addPlayerOffers(): void;
|
||||
expireStaleOffers(): void;
|
||||
/**
|
||||
* Get an array of stale offers that are still shown to player
|
||||
* @returns IRagfairOffer array
|
||||
*/
|
||||
private getStaleOffers;
|
||||
private isStale;
|
||||
private processStaleOffer;
|
||||
private returnPlayerOffer;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ export declare class VFS {
|
||||
copyAsync(filepath: fs.PathLike, target: fs.PathLike): Promise<void>;
|
||||
createDir(filepath: string): void;
|
||||
createDirAsync(filepath: string): Promise<void>;
|
||||
copyDir(filepath: string, target: string, fileExtensions: string | string[]): void;
|
||||
copyDir(filepath: string, target: string, fileExtensions?: string | string[]): void;
|
||||
copyDirAsync(filepath: string, target: string, fileExtensions: string | string[]): Promise<void>;
|
||||
readFile(filepath: string): any;
|
||||
readFileAsync(filepath: string): Promise<any>;
|
||||
|
@ -5,6 +5,7 @@ export declare class WatermarkLocale {
|
||||
getLocale(): string;
|
||||
getDescription(): string[];
|
||||
getWarning(): string[];
|
||||
getModding(): string[];
|
||||
}
|
||||
export declare class Watermark {
|
||||
private logger;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,9 +1,9 @@
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { Other } from "./other";
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { BaseClasses } from "../types/models/enums/BaseClasses";
|
||||
import { BaseClasses } from "@spt-aki/models/enums/BaseClasses";
|
||||
|
||||
@injectable()
|
||||
export class Items
|
||||
@ -27,7 +27,7 @@ export class Items
|
||||
if (!this.other.isThisIDaMod([id]))
|
||||
{
|
||||
//Examine all items
|
||||
if (!this.configHandler.getConfig().items.allExaminedItems)
|
||||
if (this.configHandler.getConfig().items.allExaminedItems)
|
||||
{
|
||||
this.editSimpleItemData(id, "ExaminedByDefault", true);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { DependencyContainer, Lifecycle } from "tsyringe";
|
||||
import type { StaticRouterModService } from "../types/services/mod/staticRouter/StaticRouterModService";
|
||||
import type { IMod } from "../types/models/external/mod";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { StaticRouterModService } from "@spt-aki/services/mod/staticRouter/StaticRouterModService";
|
||||
import type { IMod } from "@spt-aki/models/external/mod";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import { Other } from "./other";
|
||||
import { Items } from "./items";
|
||||
import { Raids } from "./raids";
|
||||
@ -27,7 +27,7 @@ class AIOMod implements IMod
|
||||
container.register<Player>("AIOPlayer", Player);
|
||||
container.register<Notifications>("AIONotifications", Notifications);
|
||||
const staticRoute = container.resolve<StaticRouterModService>("StaticRouterModService");
|
||||
container.resolve<ILogger>("WinstonLogger");
|
||||
this.logger = container.resolve<ILogger>("WinstonLogger");
|
||||
|
||||
if (container.resolve<AIOConfigHandler>("AIOConfigHandler").getConfig().player.allSkillsMaster)
|
||||
{
|
||||
@ -36,13 +36,14 @@ class AIOMod implements IMod
|
||||
[
|
||||
{
|
||||
url: "/client/game/version/validate",
|
||||
action: (sessionID: string): any =>
|
||||
{
|
||||
action: (url: string, info: any, sessionID: string, output: string): any =>
|
||||
{
|
||||
this.logger.info(sessionID);
|
||||
return container.resolve<Player>("AIOPlayer").maxSkills(sessionID);
|
||||
}
|
||||
}
|
||||
],
|
||||
"AIOMod"
|
||||
"aki"
|
||||
)
|
||||
}
|
||||
|
||||
@ -53,13 +54,13 @@ class AIOMod implements IMod
|
||||
[
|
||||
{
|
||||
url: "/client/game/bot/generate",
|
||||
action: (info: any): any =>
|
||||
action: (url: string, info: any, sessionID: string, output: string): any =>
|
||||
{
|
||||
return container.resolve<Other>("AIOOther").spawnRaidersEverywhere(info);
|
||||
}
|
||||
}
|
||||
],
|
||||
"AIOMod"
|
||||
"aki"
|
||||
)
|
||||
}
|
||||
|
||||
@ -73,7 +74,7 @@ class AIOMod implements IMod
|
||||
container.resolve<Fixes>("AIOFixes").applyChanges();
|
||||
container.resolve<Raids>("AIORaids").applyChanges();
|
||||
container.resolve<Items>("AIOItems").applyChanges();
|
||||
container.resolve<Traders>("AIOTrader").applyChanges();
|
||||
container.resolve<Traders>("AIOTraders").applyChanges();
|
||||
container.resolve<Player>("AIOPlayer").applyChanges();
|
||||
|
||||
if (container.resolve<AIOConfigHandler>("AIOConfigHandler").getConfig().other.showModLogs)
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { HttpResponseUtil } from "../types/utils/HttpResponseUtil"
|
||||
import type { BotController } from "../types/controllers/BotController"
|
||||
import type { IBotBase } from "../types/models/eft/common/tables/IBotBase";
|
||||
import type { IGetBodyResponseData } from "../types/models/eft/httpResponse/IGetBodyResponseData";
|
||||
import type { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"
|
||||
import type { BotController } from "@spt-aki/controllers/BotController"
|
||||
import type { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||
import type { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { inject, injectable } from "tsyringe";
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { ProfileHelper } from "../types/helpers/ProfileHelper";
|
||||
import type { IPmcData } from "../types/models/eft/common/IPmcData";
|
||||
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { HttpResponseUtil } from "../types/utils/HttpResponseUtil";
|
||||
import type { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
||||
import type { IPmcData } from "@spt-aki//models/eft/common/IPmcData";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import type { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
|
||||
@injectable()
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { BossLocationSpawn } from "../types/models/eft/common/ILocationBase";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { BossLocationSpawn } from "@spt-aki/models/eft/common/ILocationBase";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { Other } from "./other";
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { inject, injectable } from "tsyringe";
|
||||
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||
import type { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||
import { AIOConfigHandler } from "./AIOConfigHandler";
|
||||
import { Other } from "./other";
|
||||
import { Money } from "../types/models/enums/Money"
|
||||
import { Traders as eftTraders} from "../types/models/spt/helpers/Traders"
|
||||
import { Money } from "@spt-aki/models/enums/Money"
|
||||
import { Traders as eftTraders} from "@spt-aki/models/spt/helpers/Traders"
|
||||
|
||||
@injectable()
|
||||
export class Traders
|
||||
|
@ -8,8 +8,12 @@
|
||||
"downlevelIteration": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"resolveJsonModule": true,
|
||||
"outDir": "out"
|
||||
"resolveJsonModule": true,
|
||||
"outDir": "tmp",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@spt-aki/*": ["./types/*"]
|
||||
}
|
||||
},
|
||||
"lib": [
|
||||
"es2020"
|
||||
|
@ -1,13 +1,13 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
export declare class CustomizationController {
|
||||
private logger;
|
||||
private itemEventRouter;
|
||||
|
@ -19,6 +19,7 @@ export declare class DialogueController {
|
||||
setDialoguePin(dialogueID: string, shouldPin: boolean, sessionID: string): void;
|
||||
setRead(dialogueIDs: string[], sessionID: string): void;
|
||||
getAllAttachments(dialogueID: string, sessionID: string): IGetAllAttachmentsResponse;
|
||||
private messagesHaveUncollectedRewards;
|
||||
private removeExpiredItems;
|
||||
update(): void;
|
||||
}
|
||||
|
@ -13,7 +13,15 @@ export declare class GameController {
|
||||
private configServer;
|
||||
private httpConfig;
|
||||
constructor(logger: ILogger, watermark: Watermark, httpServerHelper: HttpServerHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): void;
|
||||
gameStart(_url: string, _info: IEmptyRequestData, sessionID: string): void;
|
||||
private addMissingBonusesProperty;
|
||||
private addMissingRepeatableQuestsProperty;
|
||||
private addMissingWeaponRepairSkill;
|
||||
private addMissingAkiVersionTagToProfile;
|
||||
private addMissingArmorRepairSkill;
|
||||
private fixNullTraderSalesSums;
|
||||
private removeDanglingConditionCounters;
|
||||
private removeDanglingBackendCounters;
|
||||
getGameConfig(sessionID: string): IGameConfigResponse;
|
||||
getServer(): any[];
|
||||
private getActiveRepeatableQuests;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { HandbookHelper } from "../helpers/HandbookHelper";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
export declare class HandbookController {
|
||||
private databaseServer;
|
||||
private handbookHelper;
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { LocationGenerator } from "../generators/LocationGenerator";
|
||||
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
||||
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { JsonUtil } from "../utils/JsonUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
export declare class LocationController {
|
||||
private jsonUtil;
|
||||
private logger;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
declare class NoteController {
|
||||
private itemEventRouter;
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { ItemHelper } from "../helpers/ItemHelper";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
export declare class PresetBuildController {
|
||||
private hashUtil;
|
||||
private itemEventRouter;
|
||||
|
@ -1,18 +1,18 @@
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||
import { ItemHelper } from "../helpers/ItemHelper";
|
||||
import { TraderHelper } from "../helpers/TraderHelper";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||
import { IProfileChangeNicknameRequestData } from "../models/eft/profile/IProfileChangeNicknameRequestData";
|
||||
import { IProfileChangeVoiceRequestData } from "../models/eft/profile/IProfileChangeVoiceRequestData";
|
||||
import { IProfileCreateRequestData } from "../models/eft/profile/IProfileCreateRequestData";
|
||||
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
||||
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
||||
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||
export declare class ProfileController {
|
||||
private hashUtil;
|
||||
private timeUtil;
|
||||
|
@ -89,7 +89,7 @@ export declare class RepeatableQuestController {
|
||||
* @param {string} sessionId Player's session id
|
||||
* @returns {array} array of "repeatableQuestObjects" as descibed above
|
||||
*/
|
||||
getClientRepeatableQuests(info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[];
|
||||
getClientRepeatableQuests(_info: IEmptyRequestData, sessionID: string): IPmcDataRepeatableQuest[];
|
||||
/**
|
||||
* This method is called by GetClientRepeatableQuests and creates one element of quest type format (see assets/database/templates/repeatableQuests.json).
|
||||
* It randomly draws a quest type (currently Elimination, Completion or Exploration) as well as a trader who is providing the quest
|
||||
|
@ -10,8 +10,16 @@ export declare class RagfairAssortGenerator {
|
||||
private databaseServer;
|
||||
private generatedAssortItems;
|
||||
constructor(jsonUtil: JsonUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseServer: DatabaseServer);
|
||||
/**
|
||||
* Get an array of unique items that can be sold on the flea
|
||||
* @returns array of unique items
|
||||
*/
|
||||
getAssortItems(): Item[];
|
||||
private assortsAreGenerated;
|
||||
/**
|
||||
* Generate an array of items the flea can sell
|
||||
* @returns array of unique items
|
||||
*/
|
||||
private generateRagfairAssortItems;
|
||||
private createRagfairAssortItem;
|
||||
}
|
||||
|
@ -39,6 +39,10 @@ export declare class RagfairOfferGenerator {
|
||||
private getRating;
|
||||
private getRatingGrowing;
|
||||
private getOfferEndTime;
|
||||
/**
|
||||
* Create multiple offers for items by using a unique list of items we've generated previously
|
||||
* @param expiredOffers
|
||||
*/
|
||||
generateDynamicOffers(expiredOffers?: Item[]): void;
|
||||
generateTraderOffers(traderID: string): void;
|
||||
private getItemCondition;
|
||||
|
@ -48,6 +48,8 @@ export declare class HideoutHelper {
|
||||
applyPlayerUpgradesBonuses(pmcData: IPmcData, bonus: StageBonus): void;
|
||||
private applySkillXPBoost;
|
||||
updatePlayerHideout(sessionID: string): void;
|
||||
private updateWaterCollector;
|
||||
private doesWaterCollectorHaveFilter;
|
||||
private updateFuel;
|
||||
private updateWaterFilters;
|
||||
private getAreaUpdObject;
|
||||
|
@ -24,8 +24,13 @@ export declare class RagfairServerHelper {
|
||||
private questConfig;
|
||||
private static TPL_GOODS_RETURNED;
|
||||
constructor(randomUtil: RandomUtil, hashUtil: HashUtil, saveServer: SaveServer, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, dialogueHelper: DialogueHelper, jsonUtil: JsonUtil, configServer: ConfigServer);
|
||||
/**
|
||||
* Is item valid / on blacklist / quest item
|
||||
* @param itemDetails
|
||||
* @returns boolean
|
||||
*/
|
||||
isItemValidRagfairItem(itemDetails: [boolean, ITemplateItem]): boolean;
|
||||
isItemBlacklisted(itemTemplateId: string): boolean;
|
||||
private isItemBlacklisted;
|
||||
isTrader(userID: string): boolean;
|
||||
isPlayer(userID: string): boolean;
|
||||
returnItems(sessionID: string, items: any[]): void;
|
||||
|
@ -21,9 +21,22 @@ export declare class TradeHelper {
|
||||
private inventoryHelper;
|
||||
private ragfairServer;
|
||||
constructor(logger: ILogger, itemEventRouter: ItemEventRouter, traderHelper: TraderHelper, itemHelper: ItemHelper, paymentService: PaymentService, fenceService: FenceService, inventoryHelper: InventoryHelper, ragfairServer: RagfairServer);
|
||||
/**
|
||||
* Buy item from flea or trader
|
||||
* @param pmcData
|
||||
* @param buyRequestData data from client
|
||||
* @param sessionID
|
||||
* @param foundInRaid
|
||||
* @param upd optional item details used when buying from flea
|
||||
* @returns
|
||||
*/
|
||||
buyItem(pmcData: IPmcData, buyRequestData: IProcessBuyTradeRequestData, sessionID: string, foundInRaid: boolean, upd: Upd): IItemEventRouterResponse;
|
||||
/**
|
||||
* Selling item to trader
|
||||
* Sell item to trader
|
||||
* @param pmcData
|
||||
* @param body
|
||||
* @param sessionID
|
||||
* @returns
|
||||
*/
|
||||
sellItem(pmcData: IPmcData, body: IProcessSellTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
private incrementAssortBuyCount;
|
||||
|
1
Ereshkigal-AIO/ZEreshkigal-AllinOneMod/types/ide/BleedingEdgeEntry.d.ts
vendored
Normal file
1
Ereshkigal-AIO/ZEreshkigal-AllinOneMod/types/ide/BleedingEdgeEntry.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
import "reflect-metadata";
|
@ -2,12 +2,12 @@ import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||
import { JsonUtil } from "../utils/JsonUtil";
|
||||
import { VFS } from "../utils/VFS";
|
||||
declare class BundleInfo {
|
||||
private httpServerHelper;
|
||||
modPath: string;
|
||||
key: string;
|
||||
path: string;
|
||||
filepath: string;
|
||||
dependencyKeys: string[];
|
||||
constructor(modpath: string, bundle: any, httpServerHelper: HttpServerHelper);
|
||||
constructor(modpath: string, bundle: any, bundlePath: string, bundleFilepath: string);
|
||||
}
|
||||
export declare class BundleLoader {
|
||||
private httpServerHelper;
|
||||
|
@ -26,6 +26,25 @@ export declare class InitialModLoader implements IModLoader {
|
||||
getModPath(mod: string): string;
|
||||
private importClass;
|
||||
private importMods;
|
||||
/**
|
||||
*
|
||||
* @param mods Get an array of broken/invalid mods by name
|
||||
* @returns Mod names array
|
||||
*/
|
||||
private getBrokenMods;
|
||||
/**
|
||||
* Get packageJson data for mods
|
||||
* @param mods mods to get packageJson for
|
||||
* @returns dictionary <modName - package.json>
|
||||
*/
|
||||
private getModsPackageData;
|
||||
/**
|
||||
* Does mod have "delayedLoad(" string in its entry class
|
||||
* @param modFolderName folder name
|
||||
* @param modToValidate package.json details
|
||||
* @returns boolean
|
||||
*/
|
||||
private isModSpt300Compatible;
|
||||
private isModCombatibleWithAki;
|
||||
private executeMods;
|
||||
private sortModsLoadOrder;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// <reference types="node" />
|
||||
import { IncomingMessage, ServerResponse } from "http";
|
||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||
import { ImageRouteService } from "../services/mod/image/imageRouteService";
|
||||
import { ImageRouteService } from "../services/mod/image/ImageRouteService";
|
||||
import { VFS } from "../utils/VFS";
|
||||
export declare class ImageRouter {
|
||||
private vfs;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { IHttpServer } from "../../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../../models/spt/utils/ILogger";
|
||||
import { Serializer } from "../../di/Serializer";
|
||||
import { BundleLoader } from "../../loaders/BundleLoader";
|
||||
import { IHttpServer } from "../../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../../models/spt/utils/ILogger";
|
||||
export declare class BundleSerializer extends Serializer {
|
||||
private logger;
|
||||
private bundleLoader;
|
||||
|
@ -1,38 +1,21 @@
|
||||
import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator";
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { RagfairCategoriesService } from "../services/RagfairCategoriesService";
|
||||
import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService";
|
||||
import { RagfairOfferService } from "../services/RagfairOfferService";
|
||||
import { RagfairPriceService } from "../services/RagfairPriceService";
|
||||
import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { ConfigServer } from "./ConfigServer";
|
||||
import { SaveServer } from "./SaveServer";
|
||||
export declare class RagfairServer {
|
||||
private logger;
|
||||
private ragfairOfferGenerator;
|
||||
private ragfairServerHelper;
|
||||
private profileHelper;
|
||||
private itemEventRouter;
|
||||
private httpResponse;
|
||||
private saveServer;
|
||||
private ragfairPriceService;
|
||||
private ragfairOfferService;
|
||||
private ragfairLinkedItemService;
|
||||
private ragfairCategoriesService;
|
||||
private ragfairRequiredItemsService;
|
||||
private configServer;
|
||||
private ragfairConfig;
|
||||
constructor(logger: ILogger, ragfairOfferGenerator: RagfairOfferGenerator, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, itemEventRouter: ItemEventRouter, httpResponse: HttpResponseUtil, saveServer: SaveServer, ragfairPriceService: RagfairPriceService, ragfairOfferService: RagfairOfferService, ragfairLinkedItemService: RagfairLinkedItemService, ragfairCategoriesService: RagfairCategoriesService, ragfairRequiredItemsService: RagfairRequiredItemsService, configServer: ConfigServer);
|
||||
constructor(logger: ILogger, ragfairOfferGenerator: RagfairOfferGenerator, ragfairOfferService: RagfairOfferService, ragfairCategoriesService: RagfairCategoriesService, ragfairRequiredItemsService: RagfairRequiredItemsService, configServer: ConfigServer);
|
||||
load(): void;
|
||||
update(): void;
|
||||
private processExpiredOffer;
|
||||
returnPlayerOffer(offer: IRagfairOffer): IItemEventRouterResponse;
|
||||
getCategories(): Record<string, number>;
|
||||
/**
|
||||
* Disable/Hide an offer from flea
|
||||
@ -40,6 +23,7 @@ export declare class RagfairServer {
|
||||
*/
|
||||
hideOffer(offerId: string): void;
|
||||
getOffer(offerID: string): IRagfairOffer;
|
||||
getOffers(): IRagfairOffer[];
|
||||
removeOfferStack(offerID: string, amount: number): void;
|
||||
doesOfferExist(offerId: string): boolean;
|
||||
addPlayerOffers(): void;
|
||||
|
@ -6,8 +6,10 @@ export declare class ModCompilerService {
|
||||
private hashCacheService;
|
||||
private vfs;
|
||||
constructor(logger: ILogger, hashCacheService: HashCacheService, vfs: VFS);
|
||||
compileMod(modName: string, path: string, modTypeScriptFiles: string[]): Promise<void>;
|
||||
compileMod(modName: string, modPath: string, modTypeScriptFiles: string[]): Promise<void>;
|
||||
private compile;
|
||||
private buildDepth;
|
||||
private calculateDepth;
|
||||
private areFilesReady;
|
||||
private delay;
|
||||
}
|
||||
|
@ -4,6 +4,6 @@ export declare class RagfairLinkedItemService {
|
||||
private linkedItemsCache;
|
||||
constructor(databaseServer: DatabaseServer);
|
||||
getLinkedItems(linkedSearchId: string): Iterable<string>;
|
||||
buildLinkedItemTable(): void;
|
||||
private buildLinkedItemTable;
|
||||
private getFilters;
|
||||
}
|
||||
|
@ -1,20 +1,30 @@
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||
import { Item } from "../models/eft/common/tables/IItem";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
import { Item } from "../models/eft/common/tables/IItem";
|
||||
import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer";
|
||||
export declare class RagfairOfferService {
|
||||
private logger;
|
||||
private timeUtil;
|
||||
private databaseServer;
|
||||
private saveServer;
|
||||
private ragfairServerHelper;
|
||||
private profileHelper;
|
||||
private itemEventRouter;
|
||||
private httpResponse;
|
||||
private configServer;
|
||||
private playerOffersLoaded;
|
||||
private toUpdate;
|
||||
private expiredOffers;
|
||||
private offers;
|
||||
private ragfairConfig;
|
||||
constructor(timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, configServer: ConfigServer);
|
||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, itemEventRouter: ItemEventRouter, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||
getOffers(): IRagfairOffer[];
|
||||
getOfferByOfferId(offerId: string): IRagfairOffer;
|
||||
getOffersOfType(templateId: string): IRagfairOffer[];
|
||||
@ -22,20 +32,13 @@ export declare class RagfairOfferService {
|
||||
addOfferToExpired(offer: Item): void;
|
||||
setTraderUpdateStatus(traderId: string, shouldUpdate: boolean): void;
|
||||
shouldTraderBeUpdated(traderID: string): boolean;
|
||||
/**
|
||||
* Get an array of expired offers that are still shown to player
|
||||
* @returns IRagfairOffer array
|
||||
*/
|
||||
getExpiredActiveOffers(): IRagfairOffer[];
|
||||
getExpiredOfferCount(): number;
|
||||
getOfferIndexByOfferId(offerId: string): number;
|
||||
/**
|
||||
* Get an array of expired items not yet processed into new offers
|
||||
* @returns items that need to be turned into offers
|
||||
*/
|
||||
getExpiredOffers(): Item[];
|
||||
resetExpiredOffers(): void;
|
||||
private isExpired;
|
||||
/**
|
||||
* Does the offer exist on the ragfair
|
||||
* @param offerId offer id to check for
|
||||
@ -44,9 +47,18 @@ export declare class RagfairOfferService {
|
||||
doesOfferExist(offerId: string): boolean;
|
||||
getTraders(): Record<string, boolean>;
|
||||
flagTraderForUpdate(expiredOfferUserId: string): void;
|
||||
removeOffer(globalOfferIndex: number, countToRemove: number): void;
|
||||
removeOfferById(offerId: string): void;
|
||||
removeOfferStack(offerID: string, amount: number): void;
|
||||
removeAllOffersByTrader(traderId: string): void;
|
||||
addTradersToUpdateList(): void;
|
||||
addPlayerOffers(): void;
|
||||
expireStaleOffers(): void;
|
||||
/**
|
||||
* Get an array of stale offers that are still shown to player
|
||||
* @returns IRagfairOffer array
|
||||
*/
|
||||
private getStaleOffers;
|
||||
private isStale;
|
||||
private processStaleOffer;
|
||||
private returnPlayerOffer;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ export declare class VFS {
|
||||
copyAsync(filepath: fs.PathLike, target: fs.PathLike): Promise<void>;
|
||||
createDir(filepath: string): void;
|
||||
createDirAsync(filepath: string): Promise<void>;
|
||||
copyDir(filepath: string, target: string, fileExtensions: string | string[]): void;
|
||||
copyDir(filepath: string, target: string, fileExtensions?: string | string[]): void;
|
||||
copyDirAsync(filepath: string, target: string, fileExtensions: string | string[]): Promise<void>;
|
||||
readFile(filepath: string): any;
|
||||
readFileAsync(filepath: string): Promise<any>;
|
||||
|
@ -5,6 +5,7 @@ export declare class WatermarkLocale {
|
||||
getLocale(): string;
|
||||
getDescription(): string[];
|
||||
getWarning(): string[];
|
||||
getModding(): string[];
|
||||
}
|
||||
export declare class Watermark {
|
||||
private logger;
|
||||
|
9
Ereshkigal-AkiConfig/.eslintignore
Normal file
9
Ereshkigal-AkiConfig/.eslintignore
Normal file
@ -0,0 +1,9 @@
|
||||
# Exclude these folders from linting
|
||||
node_modules
|
||||
dist/
|
||||
types/
|
||||
|
||||
# Exclude these filetypes from linting
|
||||
*.json
|
||||
*.txt
|
||||
*.exe
|
75
Ereshkigal-AkiConfig/.eslintrc.json
Normal file
75
Ereshkigal-AkiConfig/.eslintrc.json
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/eslint-recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"@typescript-eslint/no-unused-vars": 1,
|
||||
"@typescript-eslint/no-empty-interface": 0,
|
||||
"@typescript-eslint/no-namespace": 0,
|
||||
"@typescript-eslint/comma-dangle": 1,
|
||||
"@typescript-eslint/func-call-spacing": 2,
|
||||
"@typescript-eslint/quotes": 1,
|
||||
"@typescript-eslint/brace-style": [
|
||||
"warn",
|
||||
"allman"
|
||||
],
|
||||
"@typescript-eslint/naming-convention": [
|
||||
"warn",
|
||||
{
|
||||
"selector": "default",
|
||||
"format": ["camelCase"],
|
||||
"leadingUnderscore": "allow"
|
||||
},
|
||||
{
|
||||
"selector": "typeLike",
|
||||
"format": ["PascalCase"]
|
||||
},
|
||||
{
|
||||
"selector": "objectLiteralProperty",
|
||||
"format": ["PascalCase", "camelCase"],
|
||||
"leadingUnderscore": "allow"
|
||||
},
|
||||
{
|
||||
"selector": "typeProperty",
|
||||
"format": ["PascalCase", "camelCase"],
|
||||
"leadingUnderscore": "allow"
|
||||
},
|
||||
{
|
||||
"selector": "enumMember",
|
||||
"format": ["UPPER_CASE"]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/indent": [
|
||||
"warn",
|
||||
4
|
||||
],
|
||||
"@typescript-eslint/no-unused-expressions": [
|
||||
"warn",
|
||||
{
|
||||
"allowShortCircuit": false,
|
||||
"allowTernary": false
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/keyword-spacing": [
|
||||
"warn",
|
||||
{
|
||||
"before": true,
|
||||
"after": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/explicit-module-boundary-types": [
|
||||
"warn",
|
||||
{
|
||||
"allowArgumentsExplicitlyTypedAsAny": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
95
Ereshkigal-AkiConfig/LICENSE
Normal file
95
Ereshkigal-AkiConfig/LICENSE
Normal file
@ -0,0 +1,95 @@
|
||||
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||
|
||||
Section 1 – Definitions.
|
||||
|
||||
Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||
Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||
Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||
Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||
Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||
Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||
Licensor means the individual(s) or entity(ies) granting rights under this Public License.
|
||||
NonCommercial means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
|
||||
Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||
Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||
You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||
|
||||
Section 2 – Scope.
|
||||
|
||||
License grant.
|
||||
Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||
reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
|
||||
produce and reproduce, but not Share, Adapted Material for NonCommercial purposes only.
|
||||
Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||
Term. The term of this Public License is specified in Section 6(a).
|
||||
Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||
Downstream recipients.
|
||||
Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||
No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||
No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
Other rights.
|
||||
Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||
Patent and trademark rights are not licensed under this Public License.
|
||||
To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
|
||||
|
||||
Section 3 – License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||
|
||||
Attribution.
|
||||
|
||||
If You Share the Licensed Material, You must:
|
||||
retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||
identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||
a copyright notice;
|
||||
a notice that refers to this Public License;
|
||||
a notice that refers to the disclaimer of warranties;
|
||||
a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||
indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||
indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||
For the avoidance of doubt, You do not have permission under this Public License to Share Adapted Material.
|
||||
You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||
If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||
|
||||
Section 4 – Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||
|
||||
for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only and provided You do not Share Adapted Material;
|
||||
if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
|
||||
You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||
|
||||
Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
|
||||
To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
|
||||
|
||||
The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||
|
||||
Section 6 – Term and Termination.
|
||||
|
||||
This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||
|
||||
Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||
automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||
upon express reinstatement by the Licensor.
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||
For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||
Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||
|
||||
Section 7 – Other Terms and Conditions.
|
||||
|
||||
The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||
Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||
|
||||
Section 8 – Interpretation.
|
||||
|
||||
For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||
To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||
No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||
Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
12
Ereshkigal-AkiConfig/mod.code-workspace
Normal file
12
Ereshkigal-AkiConfig/mod.code-workspace
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"extensions": {
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint"
|
||||
]
|
||||
}
|
||||
}
|
26
Ereshkigal-AkiConfig/package.json
Normal file
26
Ereshkigal-AkiConfig/package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "AkiConfig",
|
||||
"version": "3.0.0",
|
||||
"main": "src/mod.js",
|
||||
"license": "CC-BY-NC-ND 4.0",
|
||||
"author": "Ereshkigal",
|
||||
"akiVersion": "3.0.0",
|
||||
"updated by": "CWX, Valens",
|
||||
"scripts": {
|
||||
"setup:environment": "npm i",
|
||||
"build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" ./**/*.* ./dist",
|
||||
"zip:files": "cd dist/ && bestzip ../mod.zip *",
|
||||
"build:zip": "npm run clean:environment && npm run build:unzipped && npm run zip:files",
|
||||
"clean:environment": "node -e \"require('fs').rm('mod.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.15.3",
|
||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"copyfiles": "2.4.1",
|
||||
"eslint": "7.26.0",
|
||||
"tsyringe": "4.6.0",
|
||||
"typescript": "4.6.4",
|
||||
"bestzip": "2.2.1"
|
||||
}
|
||||
}
|
24
Ereshkigal-AkiConfig/src/mod.ts
Normal file
24
Ereshkigal-AkiConfig/src/mod.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import { DependencyContainer, Lifecycle } from "tsyringe";
|
||||
import type { IMod } from "@spt-aki/models/external/mod";
|
||||
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
|
||||
class AkiConfig implements IMod
|
||||
{
|
||||
private logger: ILogger;
|
||||
private pkg;
|
||||
|
||||
public load(container: DependencyContainer): void
|
||||
{
|
||||
this.logger = container.resolve<ILogger>("WinstonLogger");
|
||||
|
||||
this.pkg = require("../package.json");
|
||||
this.logger.info(`Loading: ${this.pkg.name} ${this.pkg.version}`);
|
||||
}
|
||||
|
||||
public delayedLoad(container: DependencyContainer): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { mod: new AkiConfig() };
|
25
Ereshkigal-AkiConfig/tsconfig.json
Normal file
25
Ereshkigal-AkiConfig/tsconfig.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"module": "CommonJS",
|
||||
"target": "es2020",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"downlevelIteration": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"resolveJsonModule": true,
|
||||
"outDir": "tmp",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@spt-aki/*": ["./types/*"]
|
||||
}
|
||||
},
|
||||
"lib": [
|
||||
"es2020"
|
||||
],
|
||||
"include": [
|
||||
"src/*",
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
4
Ereshkigal-AkiConfig/types/Program.d.ts
vendored
Normal file
4
Ereshkigal-AkiConfig/types/Program.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare class Program {
|
||||
constructor();
|
||||
start(): void;
|
||||
}
|
3
Ereshkigal-AkiConfig/types/TYPES.d.ts
vendored
Normal file
3
Ereshkigal-AkiConfig/types/TYPES.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
export declare const TYPES: {
|
||||
[name: string]: symbol;
|
||||
};
|
0
Ereshkigal-AkiConfig/types/Utils.d.ts
vendored
Normal file
0
Ereshkigal-AkiConfig/types/Utils.d.ts
vendored
Normal file
15
Ereshkigal-AkiConfig/types/callbacks/BotCallbacks.d.ts
vendored
Normal file
15
Ereshkigal-AkiConfig/types/callbacks/BotCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import { BotController } from "../controllers/BotController";
|
||||
import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IBotBase } from "../models/eft/common/tables/IBotBase";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class BotCallbacks {
|
||||
private botController;
|
||||
private httpResponse;
|
||||
constructor(botController: BotController, httpResponse: HttpResponseUtil);
|
||||
getBotLimit(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
getBotDifficulty(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
generateBots(url: string, info: IGenerateBotsRequestData, sessionID: string): IGetBodyResponseData<IBotBase[]>;
|
||||
getBotCap(): string;
|
||||
}
|
17
Ereshkigal-AkiConfig/types/callbacks/BundleCallbacks.d.ts
vendored
Normal file
17
Ereshkigal-AkiConfig/types/callbacks/BundleCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import { BundleLoader } from "../loaders/BundleLoader";
|
||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class BundleCallbacks {
|
||||
private logger;
|
||||
private httpResponse;
|
||||
private httpServer;
|
||||
private bundleLoader;
|
||||
private configServer;
|
||||
private httpConfig;
|
||||
constructor(logger: ILogger, httpResponse: HttpResponseUtil, httpServer: IHttpServer, bundleLoader: BundleLoader, configServer: ConfigServer);
|
||||
sendBundle(sessionID: string, req: any, resp: any, body: any): any;
|
||||
getBundles(url: string, info: any, sessionID: string): string;
|
||||
getBundle(url: string, info: any, sessionID: string): string;
|
||||
}
|
23
Ereshkigal-AkiConfig/types/callbacks/CustomizationCallbacks.d.ts
vendored
Normal file
23
Ereshkigal-AkiConfig/types/callbacks/CustomizationCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
import { CustomizationController } from "../controllers/CustomizationController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class CustomizationCallbacks {
|
||||
private customizationController;
|
||||
private saveServer;
|
||||
private httpResponse;
|
||||
constructor(customizationController: CustomizationController, saveServer: SaveServer, httpResponse: HttpResponseUtil);
|
||||
getSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<{
|
||||
_id: string;
|
||||
suites: string[];
|
||||
}>;
|
||||
getTraderSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISuit[]>;
|
||||
wearClothing(pmcData: IPmcData, body: IWearClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
}
|
32
Ereshkigal-AkiConfig/types/callbacks/DataCallbacks.d.ts
vendored
Normal file
32
Ereshkigal-AkiConfig/types/callbacks/DataCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IGlobals } from "../models/eft/common/IGlobals";
|
||||
import { ICustomizationItem } from "../models/eft/common/tables/ICustomizationItem";
|
||||
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 { ILanguageBase } from "../models/spt/server/ILocaleBase";
|
||||
import { ISettingsBase } from "../models/spt/server/ISettingsBase";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class DataCallbacks {
|
||||
private httpResponse;
|
||||
private databaseServer;
|
||||
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
||||
getSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISettingsBase>;
|
||||
getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals>;
|
||||
getTemplateItems(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
getTemplateHandbook(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getTemplateSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, ICustomizationItem>>;
|
||||
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[]>;
|
||||
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ILanguageBase[]>;
|
||||
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
}
|
45
Ereshkigal-AkiConfig/types/callbacks/DialogueCallbacks.d.ts
vendored
Normal file
45
Ereshkigal-AkiConfig/types/callbacks/DialogueCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
import { DialogueController } from "../controllers/DialogueController";
|
||||
import { OnUpdate } from "../di/OnUpdate";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IFriendRequestData } from "../models/eft/dialog/IFriendRequestData";
|
||||
import { IGetAllAttachmentsRequestData } from "../models/eft/dialog/IGetAllAttachmentsRequestData";
|
||||
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
||||
import { IGetChatServerListRequestData } from "../models/eft/dialog/IGetChatServerListRequestData";
|
||||
import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse";
|
||||
import { IGetMailDialogInfoRequestData } from "../models/eft/dialog/IGetMailDialogInfoRequestData";
|
||||
import { IGetMailDialogListRequestData } from "../models/eft/dialog/IGetMailDialogListRequestData";
|
||||
import { IGetMailDialogViewRequestData } from "../models/eft/dialog/IGetMailDialogViewRequestData";
|
||||
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
||||
import { IPinDialogRequestData } from "../models/eft/dialog/IPinDialogRequestData";
|
||||
import { IRemoveDialogRequestData } from "../models/eft/dialog/IRemoveDialogRequestData";
|
||||
import { ISendMessageRequest } from "../models/eft/dialog/ISendMessageRequest";
|
||||
import { ISetDialogReadRequestData } from "../models/eft/dialog/ISetDialogReadRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||
import { DialogueInfo } from "../models/eft/profile/IAkiProfile";
|
||||
import { HashUtil } from "../utils/HashUtil";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
export declare class DialogueCallbacks extends OnUpdate {
|
||||
private hashUtil;
|
||||
private timeUtil;
|
||||
private httpResponse;
|
||||
private dialogueController;
|
||||
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, httpResponse: HttpResponseUtil, dialogueController: DialogueController);
|
||||
getFriendList(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetFriendListDataResponse>;
|
||||
getChatServerList(url: string, info: IGetChatServerListRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
getMailDialogList(url: string, info: IGetMailDialogListRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo[]>;
|
||||
getMailDialogView(url: string, info: IGetMailDialogViewRequestData, sessionID: string): IGetBodyResponseData<IGetMailDialogViewResponseData>;
|
||||
getMailDialogInfo(url: string, info: IGetMailDialogInfoRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
removeDialog(url: string, info: IRemoveDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
pinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
unpinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
setRead(url: string, info: ISetDialogReadRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
getAllAttachments(url: string, info: IGetAllAttachmentsRequestData, sessionID: string): IGetBodyResponseData<IGetAllAttachmentsResponse>;
|
||||
listOutbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
listInbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
friendRequest(url: string, request: IFriendRequestData, sessionID: string): INullResponseData;
|
||||
sendMessage(url: string, request: ISendMessageRequest, sessionID: string): IGetBodyResponseData<number>;
|
||||
onUpdate(timeSinceLastRun: number): boolean;
|
||||
getRoute(): string;
|
||||
}
|
24
Ereshkigal-AkiConfig/types/callbacks/GameCallbacks.d.ts
vendored
Normal file
24
Ereshkigal-AkiConfig/types/callbacks/GameCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { GameController } from "../controllers/GameController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
||||
import { IGameEmptyCrcRequestData } from "../models/eft/game/IGameEmptyCrcRequestData";
|
||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { Watermark } from "../utils/Watermark";
|
||||
declare class GameCallbacks {
|
||||
private httpResponse;
|
||||
private watermark;
|
||||
private gameController;
|
||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
||||
versionValidate(url: string, info: IVersionValidateRequestData, sessionID: string): INullResponseData;
|
||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
||||
getServer(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
validateGameVersion(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
gameKeepalive(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getVersion(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
}
|
||||
export { GameCallbacks };
|
8
Ereshkigal-AkiConfig/types/callbacks/HandbookCallbacks.d.ts
vendored
Normal file
8
Ereshkigal-AkiConfig/types/callbacks/HandbookCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import { HandbookController } from "../controllers/HandbookController";
|
||||
import { OnLoad } from "../di/OnLoad";
|
||||
export declare class HandbookCallbacks extends OnLoad {
|
||||
private handbookController;
|
||||
constructor(handbookController: HandbookController);
|
||||
onLoad(): void;
|
||||
getRoute(): string;
|
||||
}
|
20
Ereshkigal-AkiConfig/types/callbacks/HealthCallbacks.d.ts
vendored
Normal file
20
Ereshkigal-AkiConfig/types/callbacks/HealthCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import { HealthController } from "../controllers/HealthController";
|
||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IHealthTreatmentRequestData } from "../models/eft/health/IHealthTreatmentRequestData";
|
||||
import { IOffraidEatRequestData } from "../models/eft/health/IOffraidEatRequestData";
|
||||
import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealRequestData";
|
||||
import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class HealthCallbacks {
|
||||
private httpResponse;
|
||||
private profileHelper;
|
||||
private healthController;
|
||||
constructor(httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, healthController: HealthController);
|
||||
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||
offraidEat(pmcData: IPmcData, body: IOffraidEatRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
offraidHeal(pmcData: IPmcData, body: IOffraidHealRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
healthTreatment(pmcData: IPmcData, info: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
}
|
32
Ereshkigal-AkiConfig/types/callbacks/HideoutCallbacks.d.ts
vendored
Normal file
32
Ereshkigal-AkiConfig/types/callbacks/HideoutCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
import { HideoutController } from "../controllers/HideoutController";
|
||||
import { OnUpdate } from "../di/OnUpdate";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
||||
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
||||
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
||||
import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData";
|
||||
import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData";
|
||||
import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||
import { IHideoutUpgradeCompleteRequestData } from "../models/eft/hideout/IHideoutUpgradeCompleteRequestData";
|
||||
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
export declare class HideoutCallbacks extends OnUpdate {
|
||||
private hideoutController;
|
||||
private configServer;
|
||||
private hideoutConfig;
|
||||
constructor(hideoutController: HideoutController, // TODO: delay needed
|
||||
configServer: ConfigServer);
|
||||
upgrade(pmcData: IPmcData, body: IHideoutUpgradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
upgradeComplete(pmcData: IPmcData, body: IHideoutUpgradeCompleteRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
putItemsInAreaSlots(pmcData: IPmcData, body: IHideoutPutItemInRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
takeItemsFromAreaSlots(pmcData: IPmcData, body: IHideoutTakeItemOutRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
toggleArea(pmcData: IPmcData, body: IHideoutToggleAreaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
singleProductionStart(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
scavCaseProductionStart(pmcData: IPmcData, body: IHideoutScavCaseStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
continuousProductionStart(pmcData: IPmcData, body: IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
takeProduction(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
onUpdate(timeSinceLastRun: number): boolean;
|
||||
getRoute(): string;
|
||||
}
|
9
Ereshkigal-AkiConfig/types/callbacks/HttpCallbacks.d.ts
vendored
Normal file
9
Ereshkigal-AkiConfig/types/callbacks/HttpCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import { OnLoad } from "../di/OnLoad";
|
||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||
export declare class HttpCallbacks extends OnLoad {
|
||||
private httpServer;
|
||||
constructor(httpServer: IHttpServer);
|
||||
onLoad(): void;
|
||||
getRoute(): string;
|
||||
getImage(): string;
|
||||
}
|
21
Ereshkigal-AkiConfig/types/callbacks/InraidCallbacks.d.ts
vendored
Normal file
21
Ereshkigal-AkiConfig/types/callbacks/InraidCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import { InraidController } from "../controllers/InraidController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||
import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData";
|
||||
import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class InraidCallbacks {
|
||||
private inraidController;
|
||||
private httpResponse;
|
||||
private configServer;
|
||||
private airdropConfig;
|
||||
private inraidConfig;
|
||||
constructor(inraidController: InraidController, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||
registerPlayer(url: string, info: IRegisterPlayerRequestData, sessionID: string): INullResponseData;
|
||||
saveProgress(url: string, info: ISaveProgressRequestData, sessionID: string): INullResponseData;
|
||||
getRaidEndState(): string;
|
||||
getRaidMenuSettings(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
getWeaponDurability(url: string, info: any, sessionID: string): string;
|
||||
getAirdropConfig(url: string, info: any, sessionID: string): string;
|
||||
}
|
23
Ereshkigal-AkiConfig/types/callbacks/InsuranceCallbacks.d.ts
vendored
Normal file
23
Ereshkigal-AkiConfig/types/callbacks/InsuranceCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
import { InsuranceController } from "../controllers/InsuranceController";
|
||||
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData";
|
||||
import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { InsuranceService } from "../services/InsuranceService";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class InsuranceCallbacks extends OnLoadOnUpdate {
|
||||
private insuranceController;
|
||||
private insuranceService;
|
||||
private httpResponse;
|
||||
private configServer;
|
||||
private insuranceConfig;
|
||||
constructor(insuranceController: InsuranceController, insuranceService: InsuranceService, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||
onLoad(): void;
|
||||
getInsuranceCost(url: string, info: IGetInsuranceCostRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
insure(pmcData: IPmcData, body: IInsureRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
onUpdate(secondsSinceLastRun: number): boolean;
|
||||
getRoute(): string;
|
||||
}
|
39
Ereshkigal-AkiConfig/types/callbacks/InventoryCallbacks.d.ts
vendored
Normal file
39
Ereshkigal-AkiConfig/types/callbacks/InventoryCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import { InventoryController } from "../controllers/InventoryController";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IInventoryBindRequestData } from "../models/eft/inventory/IInventoryBindRequestData";
|
||||
import { IInventoryCreateMarkerRequestData } from "../models/eft/inventory/IInventoryCreateMarkerRequestData";
|
||||
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
||||
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
||||
import { IInventoryExamineRequestData } from "../models/eft/inventory/IInventoryExamineRequestData";
|
||||
import { IInventoryFoldRequestData } from "../models/eft/inventory/IInventoryFoldRequestData";
|
||||
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
||||
import { IInventoryMoveRequestData } from "../models/eft/inventory/IInventoryMoveRequestData";
|
||||
import { IInventoryReadEncyclopediaRequestData } from "../models/eft/inventory/IInventoryReadEncyclopediaRequestData";
|
||||
import { IInventoryRemoveRequestData } from "../models/eft/inventory/IInventoryRemoveRequestData";
|
||||
import { IInventorySortRequestData } from "../models/eft/inventory/IInventorySortRequestData";
|
||||
import { IInventorySplitRequestData } from "../models/eft/inventory/IInventorySplitRequestData";
|
||||
import { IInventorySwapRequestData } from "../models/eft/inventory/IInventorySwapRequestData";
|
||||
import { IInventoryTagRequestData } from "../models/eft/inventory/IInventoryTagRequestData";
|
||||
import { IInventoryToggleRequestData } from "../models/eft/inventory/IInventoryToggleRequestData";
|
||||
import { IInventoryTransferRequestData } from "../models/eft/inventory/IInventoryTransferRequestData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
export declare class InventoryCallbacks {
|
||||
private inventoryController;
|
||||
constructor(inventoryController: InventoryController);
|
||||
moveItem(pmcData: IPmcData, body: IInventoryMoveRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
removeItem(pmcData: IPmcData, body: IInventoryRemoveRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
splitItem(pmcData: IPmcData, body: IInventorySplitRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
mergeItem(pmcData: IPmcData, body: IInventoryMergeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
transferItem(pmcData: IPmcData, body: IInventoryTransferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
swapItem(pmcData: IPmcData, body: IInventorySwapRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
foldItem(pmcData: IPmcData, body: IInventoryFoldRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
sortInventory(pmcData: IPmcData, body: IInventorySortRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
createMapMarker(pmcData: IPmcData, body: IInventoryCreateMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
deleteMapMarker(pmcData: IPmcData, body: IInventoryDeleteMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
editMapMarker(pmcData: IPmcData, body: IInventoryEditMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
}
|
11
Ereshkigal-AkiConfig/types/callbacks/ItemEventCallbacks.d.ts
vendored
Normal file
11
Ereshkigal-AkiConfig/types/callbacks/ItemEventCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IItemEventRouterRequest } from "../models/eft/itemEvent/IItemEventRouterRequest";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class ItemEventCallbacks {
|
||||
private httpResponse;
|
||||
private itemEventRouter;
|
||||
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
||||
handleEvents(url: string, info: IItemEventRouterRequest, sessionID: string): IGetBodyResponseData<IItemEventRouterResponse>;
|
||||
}
|
28
Ereshkigal-AkiConfig/types/callbacks/LauncherCallbacks.d.ts
vendored
Normal file
28
Ereshkigal-AkiConfig/types/callbacks/LauncherCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
import { LauncherController } from "../controllers/LauncherController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
||||
import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
|
||||
import { IRegisterData } from "../models/eft/launcher/IRegisterData";
|
||||
import { IRemoveProfileData } from "../models/eft/launcher/IRemoveProfileData";
|
||||
import { SaveServer } from "../servers/SaveServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { Watermark } from "../utils/Watermark";
|
||||
declare class LauncherCallbacks {
|
||||
private httpResponse;
|
||||
private launcherController;
|
||||
private saveServer;
|
||||
private watermark;
|
||||
constructor(httpResponse: HttpResponseUtil, launcherController: LauncherController, saveServer: SaveServer, watermark: Watermark);
|
||||
connect(): string;
|
||||
login(url: string, info: ILoginRequestData, sessionID: string): string;
|
||||
register(url: string, info: IRegisterData, sessionID: string): "FAILED" | "OK";
|
||||
get(url: string, info: ILoginRequestData, sessionID: string): string;
|
||||
changeUsername(url: string, info: IChangeRequestData, sessionID: string): "FAILED" | "OK";
|
||||
changePassword(url: string, info: IChangeRequestData, sessionID: string): "FAILED" | "OK";
|
||||
wipe(url: string, info: IRegisterData, sessionID: string): "FAILED" | "OK";
|
||||
getServerVersion(): string;
|
||||
ping(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||
removeProfile(url: string, info: IRemoveProfileData, sessionID: string): string;
|
||||
getCompatibleTarkovVersion(): string;
|
||||
}
|
||||
export { LauncherCallbacks };
|
14
Ereshkigal-AkiConfig/types/callbacks/LocationCallbacks.d.ts
vendored
Normal file
14
Ereshkigal-AkiConfig/types/callbacks/LocationCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import { LocationController } from "../controllers/LocationController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
||||
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IGetLocationRequestData } from "../models/eft/location/IGetLocationRequestData";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class LocationCallbacks {
|
||||
private httpResponse;
|
||||
private locationController;
|
||||
constructor(httpResponse: HttpResponseUtil, locationController: LocationController);
|
||||
getLocationData(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ILocationsGenerateAllResponse>;
|
||||
getLocation(url: string, info: IGetLocationRequestData, sessionID: string): IGetBodyResponseData<ILocationBase>;
|
||||
}
|
35
Ereshkigal-AkiConfig/types/callbacks/MatchCallbacks.d.ts
vendored
Normal file
35
Ereshkigal-AkiConfig/types/callbacks/MatchCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
import { MatchController } from "../controllers/MatchController";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
||||
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
||||
import { IStartOfflineRaidRequestData } from "../models/eft/match/IStartOffineRaidRequestData";
|
||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { JsonUtil } from "../utils/JsonUtil";
|
||||
export declare class MatchCallbacks {
|
||||
private httpResponse;
|
||||
private jsonUtil;
|
||||
private matchController;
|
||||
private databaseServer;
|
||||
constructor(httpResponse: HttpResponseUtil, jsonUtil: JsonUtil, matchController: MatchController, databaseServer: DatabaseServer);
|
||||
updatePing(url: string, info: any, sessionID: string): INullResponseData;
|
||||
exitMatch(url: string, info: any, sessionID: string): INullResponseData;
|
||||
exitToMenu(url: string, info: any, sessionID: string): INullResponseData;
|
||||
startGroupSearch(url: string, info: any, sessionID: string): INullResponseData;
|
||||
stopGroupSearch(url: string, info: any, sessionID: string): INullResponseData;
|
||||
sendGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||
acceptGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||
cancelGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||
putMetrics(url: string, info: any, sessionID: string): INullResponseData;
|
||||
getProfile(url: string, info: IGetProfileRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
||||
serverAvailable(url: string, info: any, sessionID: string): IGetBodyResponseData<any> | IGetBodyResponseData<true>;
|
||||
joinMatch(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
||||
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
||||
getGroupStatus(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
||||
createGroup(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
||||
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
||||
startOfflineRaid(url: string, info: IStartOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||
}
|
21
Ereshkigal-AkiConfig/types/callbacks/ModCallbacks.d.ts
vendored
Normal file
21
Ereshkigal-AkiConfig/types/callbacks/ModCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
import { OnLoad } from "../di/OnLoad";
|
||||
import { DelayedModLoader } from "../loaders/DelayedModLoader";
|
||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||
import { ILogger } from "../models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "../servers/ConfigServer";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
declare class ModCallbacks extends OnLoad {
|
||||
private logger;
|
||||
private httpResponse;
|
||||
private httpServer;
|
||||
private modLoader;
|
||||
private configServer;
|
||||
private httpConfig;
|
||||
constructor(logger: ILogger, httpResponse: HttpResponseUtil, httpServer: IHttpServer, modLoader: DelayedModLoader, configServer: ConfigServer);
|
||||
onLoad(): void;
|
||||
getRoute(): string;
|
||||
sendBundle(sessionID: string, req: any, resp: any, body: any): void;
|
||||
getBundles(url: string, info: any, sessionID: string): string;
|
||||
getBundle(url: string, info: any, sessionID: string): string;
|
||||
}
|
||||
export { ModCallbacks };
|
11
Ereshkigal-AkiConfig/types/callbacks/NoteCallbacks.d.ts
vendored
Normal file
11
Ereshkigal-AkiConfig/types/callbacks/NoteCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import { NoteController } from "../controllers/NoteController";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||
export declare class NoteCallbacks {
|
||||
private noteController;
|
||||
constructor(noteController: NoteController);
|
||||
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||
editNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||
deleteNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||
}
|
24
Ereshkigal-AkiConfig/types/callbacks/NotifierCallbacks.d.ts
vendored
Normal file
24
Ereshkigal-AkiConfig/types/callbacks/NotifierCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { NotifierController } from "../controllers/NotifierController";
|
||||
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
||||
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class NotifierCallbacks {
|
||||
private httpServerHelper;
|
||||
private httpResponse;
|
||||
private notifierController;
|
||||
constructor(httpServerHelper: HttpServerHelper, httpResponse: HttpResponseUtil, notifierController: NotifierController);
|
||||
/**
|
||||
* If we don't have anything to send, it's ok to not send anything back
|
||||
* because notification requests can be long-polling. In fact, we SHOULD wait
|
||||
* until we actually have something to send because otherwise we'd spam the client
|
||||
* and the client would abort the connection due to spam.
|
||||
*/
|
||||
sendNotification(sessionID: string, req: any, resp: any, data: any): void;
|
||||
getNotifier(url: string, info: any, sessionID: string): IGetBodyResponseData<any[]>;
|
||||
createNotifierChannel(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<INotifierChannel>;
|
||||
selectProfile(url: string, info: ISelectProfileRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
notify(url: string, info: any, sessionID: string): string;
|
||||
}
|
15
Ereshkigal-AkiConfig/types/callbacks/PresetBuildCallbacks.d.ts
vendored
Normal file
15
Ereshkigal-AkiConfig/types/callbacks/PresetBuildCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import { PresetBuildController } from "../controllers/PresetBuildController";
|
||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
export declare class PresetBuildCallbacks {
|
||||
private httpResponse;
|
||||
private presetBuildController;
|
||||
constructor(httpResponse: HttpResponseUtil, presetBuildController: PresetBuildController);
|
||||
getHandbookUserlist(url: string, info: any, sessionID: string): IGetBodyResponseData<WeaponBuild[]>;
|
||||
saveBuild(pmcData: IPmcData, body: IPresetBuildActionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
removeBuild(pmcData: IPmcData, body: IPresetBuildActionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||
}
|
8
Ereshkigal-AkiConfig/types/callbacks/PresetCallbacks.d.ts
vendored
Normal file
8
Ereshkigal-AkiConfig/types/callbacks/PresetCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import { PresetController } from "../controllers/PresetController";
|
||||
import { OnLoad } from "../di/OnLoad";
|
||||
export declare class PresetCallbacks extends OnLoad {
|
||||
private presetController;
|
||||
constructor(presetController: PresetController);
|
||||
onLoad(): void;
|
||||
getRoute(): string;
|
||||
}
|
30
Ereshkigal-AkiConfig/types/callbacks/ProfileCallbacks.d.ts
vendored
Normal file
30
Ereshkigal-AkiConfig/types/callbacks/ProfileCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
import { ProfileController } from "../controllers/ProfileController";
|
||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||
import { IGetMiniProfileRequestData } from "../models/eft/launcher/IGetMiniProfileRequestData";
|
||||
import { IProfileChangeNicknameRequestData } from "../models/eft/profile/IProfileChangeNicknameRequestData";
|
||||
import { IProfileChangeVoiceRequestData } from "../models/eft/profile/IProfileChangeVoiceRequestData";
|
||||
import { IProfileCreateRequestData } from "../models/eft/profile/IProfileCreateRequestData";
|
||||
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
||||
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
||||
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||
import { TimeUtil } from "../utils/TimeUtil";
|
||||
export declare class ProfileCallbacks {
|
||||
private httpResponse;
|
||||
private timeUtil;
|
||||
private profileController;
|
||||
constructor(httpResponse: HttpResponseUtil, timeUtil: TimeUtil, profileController: ProfileController);
|
||||
createProfile(url: string, info: IProfileCreateRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getProfileData(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
regenerateScav(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
changeVoice(url: string, info: IProfileChangeVoiceRequestData, sessionID: string): INullResponseData;
|
||||
changeNickname(url: string, info: IProfileChangeNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
validateNickname(url: string, info: IValidateNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||
getProfileStatus(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||
searchFriend(url: string, info: ISearchFriendRequestData, sessionID: string): IGetBodyResponseData<ISearchFriendResponse[]>;
|
||||
getMiniProfile(url: string, info: IGetMiniProfileRequestData, sessionID: string): string;
|
||||
getAllMiniProfiles(url: string, info: any, sessionID: string): string;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user