diff --git a/project/src/ErrorHandler.ts b/project/src/ErrorHandler.ts index 1216de6f..c5e3ccdd 100644 --- a/project/src/ErrorHandler.ts +++ b/project/src/ErrorHandler.ts @@ -1,6 +1,6 @@ import readline from "readline"; import { ILogger } from "./models/spt/utils/ILogger"; -import { AsyncQueue } from "./utils/AyncQueue"; +import { AsyncQueue } from "./utils/AsyncQueue"; import { WinstonMainLogger } from "./utils/logging/WinstonMainLogger"; import { UUidGenerator } from "./utils/UUidGenerator"; diff --git a/project/src/callbacks/DataCallbacks.ts b/project/src/callbacks/DataCallbacks.ts index e91aab33..c45976ba 100644 --- a/project/src/callbacks/DataCallbacks.ts +++ b/project/src/callbacks/DataCallbacks.ts @@ -158,7 +158,6 @@ export class DataCallbacks // eslint-disable-next-line @typescript-eslint/no-unused-vars public getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData { - const traderId = url.replace("/client/items/prices/", ""); const handbookPrices = this.ragfairController.getStaticPrices(); const response: IGetItemPricesResponse = { supplyNextTime: 1672236024, // todo: get trader refresh time? diff --git a/project/src/di/Container.ts b/project/src/di/Container.ts index aa9a2929..6379aa7a 100644 --- a/project/src/di/Container.ts +++ b/project/src/di/Container.ts @@ -227,7 +227,7 @@ import { SeasonalEventService } from "../services/SeasonalEventService"; import { TraderAssortService } from "../services/TraderAssortService"; import { TraderPurchasePersisterService } from "../services/TraderPurchasePersisterService"; import { App } from "../utils/App"; -import { AsyncQueue } from "../utils/AyncQueue"; +import { AsyncQueue } from "../utils/AsyncQueue"; import { DatabaseImporter } from "../utils/DatabaseImporter"; import { EncodingUtil } from "../utils/EncodingUtil"; import { HashUtil } from "../utils/HashUtil"; diff --git a/project/src/models/eft/common/ILocationsSourceDestinationBase.ts b/project/src/models/eft/common/ILocationsSourceDestinationBase.ts index 5f3facda..1d636f90 100644 --- a/project/src/models/eft/common/ILocationsSourceDestinationBase.ts +++ b/project/src/models/eft/common/ILocationsSourceDestinationBase.ts @@ -1,4 +1,4 @@ -import { ILocations } from "../../spt/server/ILocations" +import { ILocations } from "../../spt/server/ILocations"; export interface ILocationsGenerateAllResponse { diff --git a/project/src/models/eft/common/tables/ILootBase.ts b/project/src/models/eft/common/tables/ILootBase.ts index ea623ee7..544180af 100644 --- a/project/src/models/eft/common/tables/ILootBase.ts +++ b/project/src/models/eft/common/tables/ILootBase.ts @@ -1,4 +1,4 @@ -import { Item } from "./IItem" +import { Item } from "./IItem"; export interface ILootBase { diff --git a/project/src/models/eft/common/tables/ITrader.ts b/project/src/models/eft/common/tables/ITrader.ts index 0aea5fb2..4d3c9add 100644 --- a/project/src/models/eft/common/tables/ITrader.ts +++ b/project/src/models/eft/common/tables/ITrader.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { Item } from "./IItem" +import { Item } from "./IItem"; export interface ITrader { diff --git a/project/src/models/eft/dialog/IGetAllAttachmentsResponse.ts b/project/src/models/eft/dialog/IGetAllAttachmentsResponse.ts index ee35781b..caf2f2fe 100644 --- a/project/src/models/eft/dialog/IGetAllAttachmentsResponse.ts +++ b/project/src/models/eft/dialog/IGetAllAttachmentsResponse.ts @@ -1,4 +1,4 @@ -import { Message } from "../profile/IAkiProfile" +import { Message } from "../profile/IAkiProfile"; export interface IGetAllAttachmentsResponse { diff --git a/project/src/models/eft/dialog/IGetFriendListDataResponse.ts b/project/src/models/eft/dialog/IGetFriendListDataResponse.ts index c829b9f7..945ce292 100644 --- a/project/src/models/eft/dialog/IGetFriendListDataResponse.ts +++ b/project/src/models/eft/dialog/IGetFriendListDataResponse.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../../enums/MemberCategory" +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { diff --git a/project/src/models/eft/dialog/ISendMessageRequest.ts b/project/src/models/eft/dialog/ISendMessageRequest.ts index 4477ed8a..1a746be1 100644 --- a/project/src/models/eft/dialog/ISendMessageRequest.ts +++ b/project/src/models/eft/dialog/ISendMessageRequest.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../../enums/MessageType" +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { diff --git a/project/src/models/eft/health/IOffraidEatRequestData.ts b/project/src/models/eft/health/IOffraidEatRequestData.ts index 05a316ca..8f1db115 100644 --- a/project/src/models/eft/health/IOffraidEatRequestData.ts +++ b/project/src/models/eft/health/IOffraidEatRequestData.ts @@ -1,4 +1,4 @@ -import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData" +import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData"; export interface IOffraidEatRequestData extends IBaseInteractionRequestData { diff --git a/project/src/models/eft/health/IOffraidHealRequestData.ts b/project/src/models/eft/health/IOffraidHealRequestData.ts index 906b66b7..a8755b19 100644 --- a/project/src/models/eft/health/IOffraidHealRequestData.ts +++ b/project/src/models/eft/health/IOffraidHealRequestData.ts @@ -1,4 +1,4 @@ -import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData" +import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData"; export interface IOffraidHealRequestData extends IBaseInteractionRequestData { diff --git a/project/src/models/eft/hideout/IHideoutScavCase.ts b/project/src/models/eft/hideout/IHideoutScavCase.ts index 4863cd54..d2a45e4f 100644 --- a/project/src/models/eft/hideout/IHideoutScavCase.ts +++ b/project/src/models/eft/hideout/IHideoutScavCase.ts @@ -1,4 +1,4 @@ -import { MinMax } from "../../common/MinMax" +import { MinMax } from "../../common/MinMax"; export interface IHideoutScavCase { diff --git a/project/src/models/eft/inRaid/ISaveProgressRequestData.ts b/project/src/models/eft/inRaid/ISaveProgressRequestData.ts index 9fb70b60..161a994c 100644 --- a/project/src/models/eft/inRaid/ISaveProgressRequestData.ts +++ b/project/src/models/eft/inRaid/ISaveProgressRequestData.ts @@ -1,5 +1,5 @@ -import { IPmcData } from "../common/IPmcData" -import { ISyncHealthRequestData } from "../health/ISyncHealthRequestData" +import { IPmcData } from "../common/IPmcData"; +import { ISyncHealthRequestData } from "../health/ISyncHealthRequestData"; export interface ISaveProgressRequestData { diff --git a/project/src/models/eft/insurance/IInsureRequestData.ts b/project/src/models/eft/insurance/IInsureRequestData.ts index 1aa4c3a7..e01e46f0 100644 --- a/project/src/models/eft/insurance/IInsureRequestData.ts +++ b/project/src/models/eft/insurance/IInsureRequestData.ts @@ -1,4 +1,4 @@ -import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData" +import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData"; export interface IInsureRequestData extends IBaseInteractionRequestData { diff --git a/project/src/models/eft/inventory/IAddItemTempObject.ts b/project/src/models/eft/inventory/IAddItemTempObject.ts index fc9abaed..81f52c6a 100644 --- a/project/src/models/eft/inventory/IAddItemTempObject.ts +++ b/project/src/models/eft/inventory/IAddItemTempObject.ts @@ -1,4 +1,4 @@ -import { Item, Location } from "../common/tables/IItem" +import { Item, Location } from "../common/tables/IItem"; export interface IAddItemTempObject { diff --git a/project/src/models/eft/inventory/IInventoryBaseActionRequestData.ts b/project/src/models/eft/inventory/IInventoryBaseActionRequestData.ts index c5c20a56..7eab3c24 100644 --- a/project/src/models/eft/inventory/IInventoryBaseActionRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryBaseActionRequestData.ts @@ -1,4 +1,4 @@ -import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData" +import { IBaseInteractionRequestData } from "../common/request/IBaseInteractionRequestData"; export interface IInventoryBaseActionRequestData extends IBaseInteractionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryCreateMarkerRequestData.ts b/project/src/models/eft/inventory/IInventoryCreateMarkerRequestData.ts index 31f898a3..d8796ea3 100644 --- a/project/src/models/eft/inventory/IInventoryCreateMarkerRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryCreateMarkerRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryCreateMarkerRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryDeleteMarkerRequestData.ts b/project/src/models/eft/inventory/IInventoryDeleteMarkerRequestData.ts index 34fa0c2d..43ff1063 100644 --- a/project/src/models/eft/inventory/IInventoryDeleteMarkerRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryDeleteMarkerRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryDeleteMarkerRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryEditMarkerRequestData.ts b/project/src/models/eft/inventory/IInventoryEditMarkerRequestData.ts index df4cdf77..735fde70 100644 --- a/project/src/models/eft/inventory/IInventoryEditMarkerRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryEditMarkerRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryEditMarkerRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryExamineRequestData.ts b/project/src/models/eft/inventory/IInventoryExamineRequestData.ts index 798cd3d4..9ea02ba1 100644 --- a/project/src/models/eft/inventory/IInventoryExamineRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryExamineRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryExamineRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryFoldRequestData.ts b/project/src/models/eft/inventory/IInventoryFoldRequestData.ts index 9b0793bd..4ad46b11 100644 --- a/project/src/models/eft/inventory/IInventoryFoldRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryFoldRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryFoldRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryMergeRequestData.ts b/project/src/models/eft/inventory/IInventoryMergeRequestData.ts index a09d622d..d6b72ef0 100644 --- a/project/src/models/eft/inventory/IInventoryMergeRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryMergeRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryMergeRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryMoveRequestData.ts b/project/src/models/eft/inventory/IInventoryMoveRequestData.ts index aaf96cee..1163d4d7 100644 --- a/project/src/models/eft/inventory/IInventoryMoveRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryMoveRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData, To } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData, To } from "./IInventoryBaseActionRequestData"; export interface IInventoryMoveRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryReadEncyclopediaRequestData.ts b/project/src/models/eft/inventory/IInventoryReadEncyclopediaRequestData.ts index f8391f8e..b513fc5e 100644 --- a/project/src/models/eft/inventory/IInventoryReadEncyclopediaRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryReadEncyclopediaRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryReadEncyclopediaRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryRemoveRequestData.ts b/project/src/models/eft/inventory/IInventoryRemoveRequestData.ts index 0a4ec628..7b95dd8a 100644 --- a/project/src/models/eft/inventory/IInventoryRemoveRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryRemoveRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryRemoveRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventorySortRequestData.ts b/project/src/models/eft/inventory/IInventorySortRequestData.ts index f69b63c8..99829d78 100644 --- a/project/src/models/eft/inventory/IInventorySortRequestData.ts +++ b/project/src/models/eft/inventory/IInventorySortRequestData.ts @@ -1,5 +1,5 @@ -import { Upd } from "../common/tables/IItem" -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { Upd } from "../common/tables/IItem"; +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventorySortRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventorySplitRequestData.ts b/project/src/models/eft/inventory/IInventorySplitRequestData.ts index f93e1d6b..69068518 100644 --- a/project/src/models/eft/inventory/IInventorySplitRequestData.ts +++ b/project/src/models/eft/inventory/IInventorySplitRequestData.ts @@ -1,4 +1,4 @@ -import { Container, IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { Container, IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventorySplitRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryTagRequestData.ts b/project/src/models/eft/inventory/IInventoryTagRequestData.ts index caa9d3b0..5ec5dc6a 100644 --- a/project/src/models/eft/inventory/IInventoryTagRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryTagRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryTagRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryToggleRequestData.ts b/project/src/models/eft/inventory/IInventoryToggleRequestData.ts index 02b08722..0f993575 100644 --- a/project/src/models/eft/inventory/IInventoryToggleRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryToggleRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryToggleRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/inventory/IInventoryTransferRequestData.ts b/project/src/models/eft/inventory/IInventoryTransferRequestData.ts index 2e3cac27..9b19d37f 100644 --- a/project/src/models/eft/inventory/IInventoryTransferRequestData.ts +++ b/project/src/models/eft/inventory/IInventoryTransferRequestData.ts @@ -1,4 +1,4 @@ -import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData" +import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData"; export interface IInventoryTransferRequestData extends IInventoryBaseActionRequestData { diff --git a/project/src/models/eft/itemEvent/IItemEventRouterResponse.ts b/project/src/models/eft/itemEvent/IItemEventRouterResponse.ts index cddf32b2..79e0f711 100644 --- a/project/src/models/eft/itemEvent/IItemEventRouterResponse.ts +++ b/project/src/models/eft/itemEvent/IItemEventRouterResponse.ts @@ -1,4 +1,4 @@ -import { IItemEventRouterBase } from "./IItemEventRouterBase" +import { IItemEventRouterBase } from "./IItemEventRouterBase"; export interface IItemEventRouterResponse extends IItemEventRouterBase {} \ No newline at end of file diff --git a/project/src/models/eft/match/ICreateGroupRequestData.ts b/project/src/models/eft/match/ICreateGroupRequestData.ts index a7cf7b1e..044b1d5a 100644 --- a/project/src/models/eft/match/ICreateGroupRequestData.ts +++ b/project/src/models/eft/match/ICreateGroupRequestData.ts @@ -1,4 +1,4 @@ -import { RaidMode } from "../../enums/RaidMode" +import { RaidMode } from "../../enums/RaidMode"; export interface ICreateGroupRequestData { diff --git a/project/src/models/eft/match/IGetGroupStatusRequestData.ts b/project/src/models/eft/match/IGetGroupStatusRequestData.ts index 5cc4cef5..a8ab5f15 100644 --- a/project/src/models/eft/match/IGetGroupStatusRequestData.ts +++ b/project/src/models/eft/match/IGetGroupStatusRequestData.ts @@ -1,4 +1,4 @@ -import { RaidMode } from "../../enums/RaidMode" +import { RaidMode } from "../../enums/RaidMode"; export interface IGetGroupStatusRequestData { diff --git a/project/src/models/eft/notifier/ISelectProfileResponse.ts b/project/src/models/eft/notifier/ISelectProfileResponse.ts index 1f65f1df..ad3e1dea 100644 --- a/project/src/models/eft/notifier/ISelectProfileResponse.ts +++ b/project/src/models/eft/notifier/ISelectProfileResponse.ts @@ -1,4 +1,4 @@ -import { INotifierChannel } from "./INotifier" +import { INotifierChannel } from "./INotifier"; export interface ISelectProfileResponse { diff --git a/project/src/models/eft/player/IPlayerIncrementSkillLevelRequestData.ts b/project/src/models/eft/player/IPlayerIncrementSkillLevelRequestData.ts index f073a66a..ab6011ee 100644 --- a/project/src/models/eft/player/IPlayerIncrementSkillLevelRequestData.ts +++ b/project/src/models/eft/player/IPlayerIncrementSkillLevelRequestData.ts @@ -1,4 +1,4 @@ -import { Skills } from "../common/tables/IBotBase" +import { Skills } from "../common/tables/IBotBase"; export interface IPlayerIncrementSkillLevelRequestData { diff --git a/project/src/models/eft/ragfair/IGetOffersResult.ts b/project/src/models/eft/ragfair/IGetOffersResult.ts index 1e630ab6..673df4eb 100644 --- a/project/src/models/eft/ragfair/IGetOffersResult.ts +++ b/project/src/models/eft/ragfair/IGetOffersResult.ts @@ -1,4 +1,4 @@ -import { IRagfairOffer } from "./IRagfairOffer" +import { IRagfairOffer } from "./IRagfairOffer"; export interface IGetOffersResult { diff --git a/project/src/models/eft/ragfair/ISearchRequestData.ts b/project/src/models/eft/ragfair/ISearchRequestData.ts index 43461728..93072f29 100644 --- a/project/src/models/eft/ragfair/ISearchRequestData.ts +++ b/project/src/models/eft/ragfair/ISearchRequestData.ts @@ -1,4 +1,4 @@ -import { RagfairSort } from "../../enums/RagfairSort" +import { RagfairSort } from "../../enums/RagfairSort"; export interface ISearchRequestData { diff --git a/project/src/models/eft/repair/ITraderRepairActionDataRequest.ts b/project/src/models/eft/repair/ITraderRepairActionDataRequest.ts index 55cc4a44..8a12440f 100644 --- a/project/src/models/eft/repair/ITraderRepairActionDataRequest.ts +++ b/project/src/models/eft/repair/ITraderRepairActionDataRequest.ts @@ -1,4 +1,4 @@ -import { IBaseRepairActionDataRequest } from "./IBaseRepairActionDataRequest" +import { IBaseRepairActionDataRequest } from "./IBaseRepairActionDataRequest"; export interface ITraderRepairActionDataRequest extends IBaseRepairActionDataRequest { diff --git a/project/src/models/eft/trade/IProcessBuyTradeRequestData.ts b/project/src/models/eft/trade/IProcessBuyTradeRequestData.ts index 2095b7e9..6538a248 100644 --- a/project/src/models/eft/trade/IProcessBuyTradeRequestData.ts +++ b/project/src/models/eft/trade/IProcessBuyTradeRequestData.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { IProcessBaseTradeRequestData } from "./IProcessBaseTradeRequestData" +import { IProcessBaseTradeRequestData } from "./IProcessBaseTradeRequestData"; export interface IProcessBuyTradeRequestData extends IProcessBaseTradeRequestData { diff --git a/project/src/models/eft/trade/IProcessSellTradeRequestData.ts b/project/src/models/eft/trade/IProcessSellTradeRequestData.ts index 3382c7ed..d5b0f887 100644 --- a/project/src/models/eft/trade/IProcessSellTradeRequestData.ts +++ b/project/src/models/eft/trade/IProcessSellTradeRequestData.ts @@ -1,4 +1,4 @@ -import { IProcessBaseTradeRequestData } from "./IProcessBaseTradeRequestData" +import { IProcessBaseTradeRequestData } from "./IProcessBaseTradeRequestData"; export interface IProcessSellTradeRequestData extends IProcessBaseTradeRequestData { diff --git a/project/src/models/external/HttpFramework.ts b/project/src/models/external/HttpFramework.ts index 60200322..8e569239 100644 --- a/project/src/models/external/HttpFramework.ts +++ b/project/src/models/external/HttpFramework.ts @@ -19,7 +19,7 @@ export const Listen = (basePath: string) => return class extends Base { // Record of each handler per HTTP method and path - handlers: Partial>> + handlers: Partial>>; constructor(...args: any[]) { @@ -33,7 +33,7 @@ export const Listen = (basePath: string) => // Add each flagged handler to the Record handlersArray.forEach(({ handlerName, path, httpMethod }) => { - if (!this.handlers[httpMethod]) this.handlers[httpMethod] = {} + if (!this.handlers[httpMethod]) this.handlers[httpMethod] = {}; if (this[handlerName] !== undefined && typeof this[handlerName] === "function") { @@ -53,8 +53,8 @@ export const Listen = (basePath: string) => const routesHandles = this.handlers[req.method]; return Object.keys(this.handlers).some(meth => meth === req.method) && - Object.keys(routesHandles).some(route => (new RegExp(route)).test(req.url)) - } + Object.keys(routesHandles).some(route => (new RegExp(route)).test(req.url)); + }; // The actual handle method dispatches the request to the registered handlers handle = (sessionID: string, req: IncomingMessage, resp: ServerResponse): void => @@ -70,11 +70,11 @@ export const Listen = (basePath: string) => // Filter to select valid routes but only use the first element since it's the most precise const validRoutes = routes.filter(handlerKey => (new RegExp(handlerKey)).test(route)); - if (validRoutes.length > 0) routesHandles[validRoutes[0]](sessionID, req, resp) - } - } - } -} + if (validRoutes.length > 0) routesHandles[validRoutes[0]](sessionID, req, resp); + }; + }; + }; +}; /** * Internally used to create HTTP decorators. @@ -89,17 +89,17 @@ const createHttpDecorator = (httpMethod: HttpMethods) => return (target: any, propertyKey: string) => { // If the handlers array has not been initialized yet - if (!target["handlers"]) target["handlers"] = [] + if (!target["handlers"]) target["handlers"] = []; // Flag the method as a HTTP handler target["handlers"].push({ handlerName: propertyKey, path, httpMethod - }) - } - } -} + }); + }; + }; +}; /** * HTTP DELETE decorator diff --git a/project/src/models/spt/bots/BotLootCache.ts b/project/src/models/spt/bots/BotLootCache.ts index 85b2abb4..847bc1cc 100644 --- a/project/src/models/spt/bots/BotLootCache.ts +++ b/project/src/models/spt/bots/BotLootCache.ts @@ -1,17 +1,17 @@ -import { ITemplateItem } from "../../eft/common/tables/ITemplateItem" +import { ITemplateItem } from "../../eft/common/tables/ITemplateItem"; export class BotLootCache { - backpackLoot: ITemplateItem[] - pocketLoot: ITemplateItem[] - vestLoot: ITemplateItem[] - combinedPoolLoot: ITemplateItem[] + backpackLoot: ITemplateItem[]; + pocketLoot: ITemplateItem[]; + vestLoot: ITemplateItem[]; + combinedPoolLoot: ITemplateItem[]; - specialItems: ITemplateItem[] - healingItems: ITemplateItem[] - drugItems: ITemplateItem[] - stimItems: ITemplateItem[] - grenadeItems: ITemplateItem[] + specialItems: ITemplateItem[]; + healingItems: ITemplateItem[]; + drugItems: ITemplateItem[]; + stimItems: ITemplateItem[]; + grenadeItems: ITemplateItem[]; } export enum LootCacheType diff --git a/project/src/models/spt/bots/GenerateWeaponResult.ts b/project/src/models/spt/bots/GenerateWeaponResult.ts index 51dee352..4433eccd 100644 --- a/project/src/models/spt/bots/GenerateWeaponResult.ts +++ b/project/src/models/spt/bots/GenerateWeaponResult.ts @@ -1,12 +1,12 @@ -import { Mods } from "../../eft/common/tables/IBotType" -import { Item } from "../../eft/common/tables/IItem" -import { ITemplateItem } from "../../eft/common/tables/ITemplateItem" +import { Mods } from "../../eft/common/tables/IBotType"; +import { Item } from "../../eft/common/tables/IItem"; +import { ITemplateItem } from "../../eft/common/tables/ITemplateItem"; export class GenerateWeaponResult { - weapon: Item[] - chosenAmmoTpl: string - chosenUbglAmmoTpl: string - weaponMods: Mods - weaponTemplate: ITemplateItem + weapon: Item[]; + chosenAmmoTpl: string; + chosenUbglAmmoTpl: string; + weaponMods: Mods; + weaponTemplate: ITemplateItem; } \ No newline at end of file diff --git a/project/src/models/spt/config/IHealthConfig.ts b/project/src/models/spt/config/IHealthConfig.ts index ae58bbb3..e83334a4 100644 --- a/project/src/models/spt/config/IHealthConfig.ts +++ b/project/src/models/spt/config/IHealthConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IHealthConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IHideoutConfig.ts b/project/src/models/spt/config/IHideoutConfig.ts index b1ccd114..686450b7 100644 --- a/project/src/models/spt/config/IHideoutConfig.ts +++ b/project/src/models/spt/config/IHideoutConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IHideoutConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IHttpConfig.ts b/project/src/models/spt/config/IHttpConfig.ts index 9b08568b..4e927c4e 100644 --- a/project/src/models/spt/config/IHttpConfig.ts +++ b/project/src/models/spt/config/IHttpConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IHttpConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IInRaidConfig.ts b/project/src/models/spt/config/IInRaidConfig.ts index 1cfcd76e..96dc577f 100644 --- a/project/src/models/spt/config/IInRaidConfig.ts +++ b/project/src/models/spt/config/IInRaidConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IInRaidConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IInsuranceConfig.ts b/project/src/models/spt/config/IInsuranceConfig.ts index eaef1340..77486215 100644 --- a/project/src/models/spt/config/IInsuranceConfig.ts +++ b/project/src/models/spt/config/IInsuranceConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IInsuranceConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IItemConfig.ts b/project/src/models/spt/config/IItemConfig.ts index 41bc903e..f1d1829f 100644 --- a/project/src/models/spt/config/IItemConfig.ts +++ b/project/src/models/spt/config/IItemConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface IItemConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/ILocaleConfig.ts b/project/src/models/spt/config/ILocaleConfig.ts index 78786032..c85fc3b5 100644 --- a/project/src/models/spt/config/ILocaleConfig.ts +++ b/project/src/models/spt/config/ILocaleConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface ILocaleConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IRepairConfig.ts b/project/src/models/spt/config/IRepairConfig.ts index 005a0851..e23e9451 100644 --- a/project/src/models/spt/config/IRepairConfig.ts +++ b/project/src/models/spt/config/IRepairConfig.ts @@ -1,5 +1,5 @@ -import { MinMax } from "../../../models/common/MinMax" -import { IBaseConfig } from "./IBaseConfig" +import { MinMax } from "../../../models/common/MinMax"; +import { IBaseConfig } from "./IBaseConfig"; export interface IRepairConfig extends IBaseConfig { diff --git a/project/src/models/spt/config/IScavCaseConfig.ts b/project/src/models/spt/config/IScavCaseConfig.ts index 2c7138f5..325d6b16 100644 --- a/project/src/models/spt/config/IScavCaseConfig.ts +++ b/project/src/models/spt/config/IScavCaseConfig.ts @@ -1,5 +1,5 @@ -import { MinMax } from "../../common/MinMax" -import { IBaseConfig } from "./IBaseConfig" +import { MinMax } from "../../common/MinMax"; +import { IBaseConfig } from "./IBaseConfig"; export interface IScavCaseConfig extends IBaseConfig diff --git a/project/src/models/spt/config/ISeasonalEventConfig.ts b/project/src/models/spt/config/ISeasonalEventConfig.ts index 2dcd7e9c..f51fd6df 100644 --- a/project/src/models/spt/config/ISeasonalEventConfig.ts +++ b/project/src/models/spt/config/ISeasonalEventConfig.ts @@ -1,4 +1,4 @@ -import { IBaseConfig } from "./IBaseConfig" +import { IBaseConfig } from "./IBaseConfig"; export interface ISeasonalEventConfig extends IBaseConfig { diff --git a/project/src/models/spt/mod/NewItemDetails.ts b/project/src/models/spt/mod/NewItemDetails.ts index 8400c4d5..4e60e466 100644 --- a/project/src/models/spt/mod/NewItemDetails.ts +++ b/project/src/models/spt/mod/NewItemDetails.ts @@ -3,49 +3,49 @@ import { ITemplateItem, Props } from "../../eft/common/tables/ITemplateItem"; export abstract class NewItemDetailsBase { /** Price of the item on flea market */ - fleaPriceRoubles: number + fleaPriceRoubles: number; /** Price of the item in the handbook */ - handbookPriceRoubles: number + handbookPriceRoubles: number; /** Handbook ParentId for the new item */ - handbookParentId : string + handbookParentId : string; /** * A dictionary for locale settings, key = langauge (e.g. en,cn,es-mx,jp,fr) * If a language is not included, the first item in the array will be used in its place */ - locales: Record + locales: Record; } export class NewItemFromCloneDetails extends NewItemDetailsBase { /** Id of the item to copy and use as a base */ - itemTplToClone: string + itemTplToClone: string; /** Item properties that should be applied over the top of the cloned base */ - overrideProperties: Props + overrideProperties: Props; /** ParentId for the new item (item type) */ - parentId: string + parentId: string; /** * the id the new item should have, leave blank to have one generated for you * This is often known as the TplId, or TemplateId */ - newId = "" + newId = ""; } export class NewItemDetails extends NewItemDetailsBase { - newItem: ITemplateItem + newItem: ITemplateItem; } export class LocaleDetails { - name: string - shortName: string - description: string + name: string; + shortName: string; + description: string; } export class CreateItemResult @@ -55,7 +55,7 @@ export class CreateItemResult this.success = false; } - success: boolean - itemId: string - errors: string[] + success: boolean; + itemId: string; + errors: string[]; } \ No newline at end of file diff --git a/project/src/models/spt/server/ILocations.ts b/project/src/models/spt/server/ILocations.ts index 6a001011..bc004d3b 100644 --- a/project/src/models/spt/server/ILocations.ts +++ b/project/src/models/spt/server/ILocations.ts @@ -1,6 +1,6 @@ -import { ILocationBase } from "../../eft/common/ILocationBase" -import { ILooseLoot } from "../../eft/common/ILooseLoot" -import { ILocationsBase } from "../../eft/common/tables/ILocationsBase" +import { ILocationBase } from "../../eft/common/ILocationBase"; +import { ILooseLoot } from "../../eft/common/ILooseLoot"; +import { ILocationsBase } from "../../eft/common/tables/ILocationsBase"; export interface ILocations { diff --git a/project/src/models/spt/services/LootItem.ts b/project/src/models/spt/services/LootItem.ts index c16d491c..0bd736dd 100644 --- a/project/src/models/spt/services/LootItem.ts +++ b/project/src/models/spt/services/LootItem.ts @@ -1,7 +1,7 @@ export class LootItem { - id?: string - tpl: string - isPreset: boolean - stackCount: number + id?: string; + tpl: string; + isPreset: boolean; + stackCount: number; } \ No newline at end of file diff --git a/project/src/services/ModCompilerService.ts b/project/src/services/ModCompilerService.ts index dabbbd47..5ec917a8 100644 --- a/project/src/services/ModCompilerService.ts +++ b/project/src/services/ModCompilerService.ts @@ -24,7 +24,7 @@ export class ModCompilerService let fileExists = true; // does every js file exist (been compiled before) for (const file of modTypeScriptFiles) { - const fileContent = this.vfs.readFile(file) + const fileContent = this.vfs.readFile(file); tsFileContents+= fileContent; // Does equivalent .js file exist @@ -69,7 +69,7 @@ export class ModCompilerService { const tranOptions: TranspileOptions = { compilerOptions: options - } + }; for (const filePath of fileNames) { diff --git a/project/src/services/PlayerService.ts b/project/src/services/PlayerService.ts index 16f0069e..255658c5 100644 --- a/project/src/services/PlayerService.ts +++ b/project/src/services/PlayerService.ts @@ -2,9 +2,6 @@ import { inject, injectable } from "tsyringe"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Common } from "../models/eft/common/tables/IBotBase"; -import { - IPlayerIncrementSkillLevelRequestData -} from "../models/eft/player/IPlayerIncrementSkillLevelRequestData"; import { ILogger } from "../models/spt/utils/ILogger"; import { DatabaseServer } from "../servers/DatabaseServer"; import { LocalisationService } from "./LocalisationService"; diff --git a/project/src/services/RagfairCategoriesService.ts b/project/src/services/RagfairCategoriesService.ts index 4e3bdc00..f10971ac 100644 --- a/project/src/services/RagfairCategoriesService.ts +++ b/project/src/services/RagfairCategoriesService.ts @@ -28,7 +28,7 @@ export class RagfairCategoriesService */ public getBespokeCategories(offers: IRagfairOffer[]): Record { - return this.processOffersIntoCategories(offers) + return this.processOffersIntoCategories(offers); } /** diff --git a/project/src/services/RagfairRequiredItemsService.ts b/project/src/services/RagfairRequiredItemsService.ts index 48234a0d..11df05d7 100644 --- a/project/src/services/RagfairRequiredItemsService.ts +++ b/project/src/services/RagfairRequiredItemsService.ts @@ -18,7 +18,7 @@ export class RagfairRequiredItemsService public getRequiredItemsById(searchId: string): any { - return this.requiredItemsCache[searchId] || [] + return this.requiredItemsCache[searchId] || []; } public buildRequiredItemTable(): void diff --git a/project/src/utils/AyncQueue.ts b/project/src/utils/AsyncQueue.ts similarity index 93% rename from project/src/utils/AyncQueue.ts rename to project/src/utils/AsyncQueue.ts index 7a4da0c5..2511ffcc 100644 --- a/project/src/utils/AyncQueue.ts +++ b/project/src/utils/AsyncQueue.ts @@ -3,7 +3,7 @@ import { ICommand } from "../models/spt/utils/ICommand"; export class AsyncQueue implements IAsyncQueue { - protected commandsQueue: ICommand[] + protected commandsQueue: ICommand[]; constructor() { @@ -23,7 +23,7 @@ export class AsyncQueue implements IAsyncQueue await new Promise(resolve => { setTimeout(resolve, 100); - }) + }); } // When the command is ready, execute it diff --git a/project/src/utils/logging/AbstractWinstonLogger.ts b/project/src/utils/logging/AbstractWinstonLogger.ts index 51e23119..8a3c3045 100644 --- a/project/src/utils/logging/AbstractWinstonLogger.ts +++ b/project/src/utils/logging/AbstractWinstonLogger.ts @@ -44,9 +44,9 @@ export abstract class AbstractWinstonLogger implements ILogger cyanBG: "cyanBG", whiteBG: "whiteBG" } - } + }; protected logger: winston.Logger & SptLogger; - protected writeFilePromisify: (path: fs.PathLike, data: string, options?: any) => Promise + protected writeFilePromisify: (path: fs.PathLike, data: string, options?: any) => Promise; constructor( protected asyncQueue: IAsyncQueue, diff --git a/project/tests/common/TestHelper.ts b/project/tests/common/TestHelper.ts index c5613ea6..7dd7eaa9 100644 --- a/project/tests/common/TestHelper.ts +++ b/project/tests/common/TestHelper.ts @@ -7,7 +7,7 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ItemBaseClassService } from "@spt-aki/services/ItemBaseClassService"; import { LocaleService } from "@spt-aki/services/LocaleService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; -import { AsyncQueue } from "@spt-aki/utils/AyncQueue"; +import { AsyncQueue } from "@spt-aki/utils/AsyncQueue"; import { DatabaseImporter } from "@spt-aki/utils/DatabaseImporter"; import { EncodingUtil } from "@spt-aki/utils/EncodingUtil"; import { HashUtil } from "@spt-aki/utils/HashUtil"; @@ -22,7 +22,8 @@ import { VFS } from "@spt-aki/utils/VFS"; import { MockHelper } from "./MockHelper"; import WinstonLogger from "./__mocks__/WinstonLogger"; -export class TestHelper { +export class TestHelper +{ logger: ILogger; asyncQueue: AsyncQueue; uuidGenerator: UUidGenerator; @@ -44,7 +45,8 @@ export class TestHelper { itemBaseClassService: ItemBaseClassService; botHelper: BotHelper; - public static async fetchTestHelper() { + public static async fetchTestHelper() + { const initTestHelper = new TestHelper(); const mockHelper = new MockHelper(); @@ -60,10 +62,11 @@ export class TestHelper { initTestHelper.importerUtil ); await dbImporter.onLoad(); - return initTestHelper + return initTestHelper; } - constructor() { + constructor() + { this.logger = new WinstonLogger(); this.asyncQueue = new AsyncQueue();