@lgriffin/esi.ts 1.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +555 -125
- package/dist/EsiClient.d.ts +111 -0
- package/dist/EsiClient.d.ts.map +1 -0
- package/dist/EsiClient.js +223 -0
- package/dist/EsiClientBuilder.d.ts +71 -0
- package/dist/EsiClientBuilder.d.ts.map +1 -0
- package/dist/EsiClientBuilder.js +208 -0
- package/dist/api/alliances/getAllianceById.js +17 -0
- package/dist/api/alliances/getAllianceContactLabels.js +13 -0
- package/dist/api/alliances/getAllianceContacts.js +13 -0
- package/dist/api/alliances/getAllianceCorporations.js +13 -0
- package/dist/api/alliances/getAllianceIcons.js +13 -0
- package/dist/api/alliances/getAlliances.js +13 -0
- package/dist/api/assets/getCharacterAssets.js +13 -0
- package/dist/api/assets/getCorporationAssets.js +13 -0
- package/dist/api/assets/postCharacterAssetLocations.js +13 -0
- package/dist/api/assets/postCharacterAssetNames.js +13 -0
- package/dist/api/assets/postCorporationAssetLocations.js +13 -0
- package/dist/api/assets/postCorporationAssetNames.js +13 -0
- package/dist/api/bookmarks/getCharacterBookmarkFolders.js +13 -0
- package/dist/api/bookmarks/getCharacterBookmarks.js +13 -0
- package/dist/api/bookmarks/getCorporationBookmarkFolders.js +13 -0
- package/dist/api/bookmarks/getCorporationBookmarks.js +13 -0
- package/dist/api/calendar/getCalendarEventById.js +13 -0
- package/dist/api/calendar/getCalendarEvents.js +13 -0
- package/dist/api/calendar/getEventAttendees.js +13 -0
- package/dist/api/calendar/respondToCalendarEvent.js +14 -0
- package/dist/api/characters/getAgentsResearch.js +13 -0
- package/dist/api/characters/getBlueprints.js +13 -0
- package/dist/api/characters/getCharacterPublicInfo.js +13 -0
- package/dist/api/characters/getCharacterRoles.js +13 -0
- package/dist/api/characters/getCharacterStandings.js +13 -0
- package/dist/api/characters/getCharacterTitles.js +13 -0
- package/dist/api/characters/getContactNotifications.js +13 -0
- package/dist/api/characters/getCorporationHistory.js +13 -0
- package/dist/api/characters/getJumpFatigue.js +13 -0
- package/dist/api/characters/getMedals.js +13 -0
- package/dist/api/characters/getNotifications.js +13 -0
- package/dist/api/characters/getPortrait.js +13 -0
- package/dist/api/characters/postCSPAChargeCost.js +13 -0
- package/dist/api/characters/postCharacterAffiliations.js +14 -0
- package/dist/api/clones/getClones.js +14 -0
- package/dist/api/clones/getImplants.js +14 -0
- package/dist/api/clones/postJumpCloneActivation.js +14 -0
- package/dist/api/contacts/deleteCharacterContacts.js +13 -0
- package/dist/api/contacts/getAllianceContactLabels.js +13 -0
- package/dist/api/contacts/getAllianceContacts.js +13 -0
- package/dist/api/contacts/getCharacterContactLabels.js +13 -0
- package/dist/api/contacts/getCharacterContacts.js +13 -0
- package/dist/api/contacts/getCorporationContactLabels.js +13 -0
- package/dist/api/contacts/getCorporationContacts.js +13 -0
- package/dist/api/contacts/postCharacterContacts.js +13 -0
- package/dist/api/contacts/putCharacterContacts.js +13 -0
- package/dist/api/contracts/getCharacterContractBids.js +13 -0
- package/dist/api/contracts/getCharacterContractItems.js +13 -0
- package/dist/api/contracts/getCharacterContracts.js +13 -0
- package/dist/api/contracts/getCorporationContractBids.js +13 -0
- package/dist/api/contracts/getCorporationContractItems.js +13 -0
- package/dist/api/contracts/getCorporationContracts.js +13 -0
- package/dist/api/contracts/getPublicContractBids.js +13 -0
- package/dist/api/contracts/getPublicContractItems.js +13 -0
- package/dist/api/contracts/getPublicContracts.js +13 -0
- package/dist/api/corporations/getCorporationAllianceHistory.js +13 -0
- package/dist/api/corporations/getCorporationAlscLogs.js +13 -0
- package/dist/api/corporations/getCorporationBlueprints.js +13 -0
- package/dist/api/corporations/getCorporationDivisions.js +13 -0
- package/dist/api/corporations/getCorporationFacilities.js +13 -0
- package/dist/api/corporations/getCorporationIcon.js +13 -0
- package/dist/api/corporations/getCorporationInfo.js +13 -0
- package/dist/api/corporations/getCorporationIssuedMedals.js +13 -0
- package/dist/api/corporations/getCorporationMedals.js +13 -0
- package/dist/api/corporations/getCorporationMemberLimit.js +13 -0
- package/dist/api/corporations/getCorporationMemberRoles.js +13 -0
- package/dist/api/corporations/getCorporationMemberRolesHistory.js +13 -0
- package/dist/api/corporations/getCorporationMemberTracking.js +13 -0
- package/dist/api/corporations/getCorporationMembers.js +13 -0
- package/dist/api/corporations/getCorporationMembersTitles.js +13 -0
- package/dist/api/corporations/getCorporationProjects.js +13 -0
- package/dist/api/corporations/getCorporationShareholders.js +13 -0
- package/dist/api/corporations/getCorporationStandings.js +13 -0
- package/dist/api/corporations/getCorporationStarbaseDetail.js +13 -0
- package/dist/api/corporations/getCorporationStarbases.js +13 -0
- package/dist/api/corporations/getCorporationStructures.js +13 -0
- package/dist/api/corporations/getCorporationTitles.js +13 -0
- package/dist/api/corporations/getNpcCorporations.js +13 -0
- package/dist/api/dogma/getDogmaAttributeById.js +13 -0
- package/dist/api/dogma/getDogmaAttributes.js +13 -0
- package/dist/api/dogma/getDogmaDynamicItemAttributes.js +13 -0
- package/dist/api/dogma/getDogmaEffectById.js +13 -0
- package/dist/api/dogma/getDogmaEffects.js +13 -0
- package/dist/api/factions/getCharacterFactionWarfareStats.js +13 -0
- package/dist/api/factions/getCharacterLeaderboards.js +13 -0
- package/dist/api/factions/getCorporationFactionWarfareStats.js +13 -0
- package/dist/api/factions/getCorporationLeaderboards.js +13 -0
- package/dist/api/factions/getFactionLeaderboards.js +13 -0
- package/dist/api/factions/getFactionWarfareStats.js +13 -0
- package/dist/api/factions/getFactionWarfareSystems.js +13 -0
- package/dist/api/factions/getFactionWarfareWars.js +13 -0
- package/dist/api/fittings/deleteCharacterFitting.js +13 -0
- package/dist/api/fittings/getCharacterFittings.js +13 -0
- package/dist/api/fittings/postCharacterFittings.js +13 -0
- package/dist/api/fleets/deleteFleetMember.js +13 -0
- package/dist/api/fleets/deleteFleetSquad.js +13 -0
- package/dist/api/fleets/deleteFleetWing.js +13 -0
- package/dist/api/fleets/getCharacterFleetInfo.js +13 -0
- package/dist/api/fleets/getFleetInfo.js +13 -0
- package/dist/api/fleets/getFleetMembers.js +13 -0
- package/dist/api/fleets/getFleetWings.js +13 -0
- package/dist/api/fleets/postFleetInvitation.js +13 -0
- package/dist/api/fleets/postFleetSquad.js +14 -0
- package/dist/api/fleets/postFleetWing.js +13 -0
- package/dist/api/fleets/putFleetMember.js +13 -0
- package/dist/api/fleets/putFleetSquad.js +13 -0
- package/dist/api/fleets/putFleetWing.js +14 -0
- package/dist/api/fleets/updateFleet.js +13 -0
- package/dist/api/incursions/getIncursions.js +13 -0
- package/dist/api/industry/getCharacterIndustryJobs.js +13 -0
- package/dist/api/industry/getCharacterMiningLedger.js +13 -0
- package/dist/api/industry/getCorporationIndustryJobs.js +13 -0
- package/dist/api/industry/getCorporationMiningObserver.js +13 -0
- package/dist/api/industry/getCorporationMiningObservers.js +13 -0
- package/dist/api/industry/getIndustryFacilities.js +13 -0
- package/dist/api/industry/getIndustrySystems.js +13 -0
- package/dist/api/industry/getMoonExtractionTimers.js +13 -0
- package/dist/api/insurance/getInsurancePrices.js +13 -0
- package/dist/api/killmails/getCharacterRecentKillmails.js +13 -0
- package/dist/api/killmails/getCorporationRecentKillmails.js +13 -0
- package/dist/api/killmails/getKillmail.js +13 -0
- package/dist/api/location/getCharacterLocation.js +13 -0
- package/dist/api/location/getCharacterOnline.js +13 -0
- package/dist/api/location/getCharacterShip.js +13 -0
- package/dist/api/loyalty/getLoyaltyPoints.js +13 -0
- package/dist/api/loyalty/getLoyaltyStoreOffers.js +13 -0
- package/dist/api/mail/deleteCharacterMail.js +13 -0
- package/dist/api/mail/deleteCharacterMailLabel.js +13 -0
- package/dist/api/mail/deleteCharacterMailLabel.test.js +21 -0
- package/dist/api/mail/getCharacerMailingLists.test.js +33 -0
- package/dist/api/mail/getCharacterMail.js +13 -0
- package/dist/api/mail/getCharacterMailHeaders.js +13 -0
- package/dist/api/mail/getCharacterMailLabels.js +13 -0
- package/dist/api/mail/getCharacterMailingLists.js +13 -0
- package/dist/api/mail/postCharacterMail.js +13 -0
- package/dist/api/mail/postCharacterMailLabels.js +13 -0
- package/dist/api/mail/putCharacterMail.js +13 -0
- package/dist/api/market/getCharacterOrderHistory.js +13 -0
- package/dist/api/market/getCharacterOrders.js +13 -0
- package/dist/api/market/getCorporationOrderHistory.js +13 -0
- package/dist/api/market/getCorporationOrders.js +13 -0
- package/dist/api/market/getMarketGroupInformation.js +13 -0
- package/dist/api/market/getMarketGroups.js +13 -0
- package/dist/api/market/getMarketHistory.js +13 -0
- package/dist/api/market/getMarketOrders.js +13 -0
- package/dist/api/market/getMarketOrdersInStructure.js +13 -0
- package/dist/api/market/getMarketPrices.js +13 -0
- package/dist/api/market/getMarketTypes.js +13 -0
- package/dist/api/meta/getSwaggerJson.js +13 -0
- package/dist/api/meta/getSwaggerYaml.js +37 -0
- package/dist/api/opportunities/getCharacterOpportunities.js +13 -0
- package/dist/api/opportunities/getOpportunitiesGroupById.js +13 -0
- package/dist/api/opportunities/getOpportunitiesGroups.js +13 -0
- package/dist/api/opportunities/getOpportunitiesTaskById.js +13 -0
- package/dist/api/opportunities/getOpportunitiesTasks.js +13 -0
- package/dist/api/pi/getColonies.js +13 -0
- package/dist/api/pi/getColonyLayout.js +13 -0
- package/dist/api/pi/getCorporationCustomsOffices.js +13 -0
- package/dist/api/pi/getSchematicInformation.js +13 -0
- package/dist/api/route/getRoute.js +13 -0
- package/dist/api/search/getCharacterSearch.js +13 -0
- package/dist/api/skills/getCharacterAttributes.js +13 -0
- package/dist/api/skills/getCharacterSkillQueue.js +13 -0
- package/dist/api/skills/getCharacterSkills.js +13 -0
- package/dist/api/sovereignty/getSovereigntyCampaigns.js +13 -0
- package/dist/api/sovereignty/getSovereigntyMap.js +13 -0
- package/dist/api/sovereignty/getSovereigntyStructures.js +13 -0
- package/dist/api/status/getStatus.js +13 -0
- package/dist/api/ui/postAutopilotWaypoint.js +13 -0
- package/dist/api/ui/postOpenContractWindow.js +13 -0
- package/dist/api/ui/postOpenInformationWindow.js +13 -0
- package/dist/api/ui/postOpenMarketDetailsWindow.js +13 -0
- package/dist/api/ui/postOpenNewMailWindow.js +13 -0
- package/dist/api/universe/getAncestries.js +13 -0
- package/dist/api/universe/getAsteroidBeltInfo.js +13 -0
- package/dist/api/universe/getBloodlines.js +13 -0
- package/dist/api/universe/getConstellationById.js +13 -0
- package/dist/api/universe/getConstellations.js +13 -0
- package/dist/api/universe/getFactions.js +13 -0
- package/dist/api/universe/getGraphicById.js +13 -0
- package/dist/api/universe/getGraphics.js +13 -0
- package/dist/api/universe/getItemCategories.js +13 -0
- package/dist/api/universe/getItemCategoryById.js +13 -0
- package/dist/api/universe/getItemGroupById.js +13 -0
- package/dist/api/universe/getItemGroups.js +13 -0
- package/dist/api/universe/getMoonById.js +13 -0
- package/dist/api/universe/getPlanetById.js +13 -0
- package/dist/api/universe/getRaces.js +13 -0
- package/dist/api/universe/getRegionById.js +13 -0
- package/dist/api/universe/getRegions.js +13 -0
- package/dist/api/universe/getSchematicById.js +13 -0
- package/dist/api/universe/getStarById.js +13 -0
- package/dist/api/universe/getStargateById.js +13 -0
- package/dist/api/universe/getStationById.js +13 -0
- package/dist/api/universe/getStructureById.js +13 -0
- package/dist/api/universe/getStructures.js +13 -0
- package/dist/api/universe/getSystemById.js +13 -0
- package/dist/api/universe/getSystemJumps.js +13 -0
- package/dist/api/universe/getSystemKills.js +13 -0
- package/dist/api/universe/getSystems.js +13 -0
- package/dist/api/universe/getTypeById.js +13 -0
- package/dist/api/universe/getTypes.js +13 -0
- package/dist/api/universe/postBulkNamesToIds.js +14 -0
- package/dist/api/universe/postNamesAndCategories.js +14 -0
- package/dist/api/wallet/getCharacterWallet.js +13 -0
- package/dist/api/wallet/getCharacterWalletJournal.js +13 -0
- package/dist/api/wallet/getCharacterWalletTransactions.js +13 -0
- package/dist/api/wallet/getCorporationWalletJournal.js +13 -0
- package/dist/api/wallet/getCorporationWalletTransactions.js +13 -0
- package/dist/api/wallet/getCorporationWallets.js +13 -0
- package/dist/api/wars/getWarById.js +13 -0
- package/dist/api/wars/getWarKillmails.js +13 -0
- package/dist/api/wars/getWars.js +13 -0
- package/dist/builders/AllianceApiBuilder.js +13 -0
- package/dist/builders/AssetsApiBuilder.js +13 -0
- package/dist/builders/BookmarkApiBuilder.js +13 -0
- package/dist/builders/CalendarApiBuilder.js +13 -0
- package/dist/builders/CharacterApiBuilder.js +13 -0
- package/dist/builders/ClonesApiBuilder.js +13 -0
- package/dist/builders/ContactsApiBuilder.js +13 -0
- package/dist/builders/ContractsApiBuilder.js +13 -0
- package/dist/builders/CorporationsApiBuilder.js +13 -0
- package/dist/builders/DogmaApiBuilder.js +13 -0
- package/dist/builders/FactionApiBuilder.js +13 -0
- package/dist/builders/FittingsApiBuilder.js +13 -0
- package/dist/builders/FleetApiBuilder.js +13 -0
- package/dist/builders/IncursionsApiBuilder.js +13 -0
- package/dist/builders/IndustryApiBuilder.js +13 -0
- package/dist/builders/InsuranceApiBuilder.js +13 -0
- package/dist/builders/KillmailsBuilder.js +13 -0
- package/dist/builders/LocationApiBuilder.js +13 -0
- package/dist/builders/LoyaltyApiBuilder.js +13 -0
- package/dist/builders/MailApiBuilder.js +13 -0
- package/dist/builders/MarketApiBuilder.js +13 -0
- package/dist/builders/MetaApiBuilder.js +13 -0
- package/dist/builders/OpportunitiesApiBuilder.js +13 -0
- package/dist/builders/PiApiBuilder.js +13 -0
- package/dist/builders/RouteApiBuilder.js +13 -0
- package/dist/builders/SearchApiBuilder.js +13 -0
- package/dist/builders/SkillsApiBuilder.js +13 -0
- package/dist/builders/SovereigntyApiBuilder.js +13 -0
- package/dist/builders/StatusApiBuilder.js +13 -0
- package/dist/builders/UiApiBuilder.js +13 -0
- package/dist/builders/UniverseApiBuilder.js +13 -0
- package/dist/builders/WalletApiBuilder.js +13 -0
- package/dist/builders/WarsAPIBuilder.js +13 -0
- package/dist/clients/AllianceClient.d.ts +52 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -0
- package/dist/clients/AllianceClient.js +70 -0
- package/dist/clients/AssetsClient.d.ts +60 -0
- package/dist/clients/AssetsClient.d.ts.map +1 -0
- package/dist/clients/AssetsClient.js +75 -0
- package/dist/clients/BaseEsiClient.d.ts +14 -0
- package/dist/clients/BaseEsiClient.d.ts.map +1 -0
- package/dist/clients/BaseEsiClient.js +24 -0
- package/dist/clients/BookmarkClient.js +28 -0
- package/dist/clients/CalendarClient.d.ts +43 -0
- package/dist/clients/CalendarClient.d.ts.map +1 -0
- package/dist/clients/CalendarClient.js +54 -0
- package/dist/clients/CharacterClient.d.ts +118 -0
- package/dist/clients/CharacterClient.d.ts.map +1 -0
- package/dist/clients/CharacterClient.js +149 -0
- package/dist/clients/ClonesClient.d.ts +24 -0
- package/dist/clients/ClonesClient.d.ts.map +1 -0
- package/dist/clients/ClonesClient.js +31 -0
- package/dist/clients/ContactsClient.d.ts +81 -0
- package/dist/clients/ContactsClient.d.ts.map +1 -0
- package/dist/clients/ContactsClient.js +102 -0
- package/dist/clients/ContractsClient.d.ts +81 -0
- package/dist/clients/ContractsClient.d.ts.map +1 -0
- package/dist/clients/ContractsClient.js +102 -0
- package/dist/clients/CorporationsClient.d.ts +184 -0
- package/dist/clients/CorporationsClient.d.ts.map +1 -0
- package/dist/clients/CorporationsClient.js +227 -0
- package/dist/clients/DogmaClient.d.ts +42 -0
- package/dist/clients/DogmaClient.d.ts.map +1 -0
- package/dist/clients/DogmaClient.js +55 -0
- package/dist/clients/FactionClient.d.ts +60 -0
- package/dist/clients/FactionClient.d.ts.map +1 -0
- package/dist/clients/FactionClient.js +79 -0
- package/dist/clients/FittingsClient.d.ts +35 -0
- package/dist/clients/FittingsClient.d.ts.map +1 -0
- package/dist/clients/FittingsClient.js +42 -0
- package/dist/clients/FleetClient.d.ts +129 -0
- package/dist/clients/FleetClient.d.ts.map +1 -0
- package/dist/clients/FleetClient.js +156 -0
- package/dist/clients/FreelanceJobsClient.d.ts +61 -0
- package/dist/clients/FreelanceJobsClient.d.ts.map +1 -0
- package/dist/clients/FreelanceJobsClient.js +76 -0
- package/dist/clients/IncursionsClient.d.ts +14 -0
- package/dist/clients/IncursionsClient.d.ts.map +1 -0
- package/dist/clients/IncursionsClient.js +19 -0
- package/dist/clients/IndustryClient.d.ts +69 -0
- package/dist/clients/IndustryClient.d.ts.map +1 -0
- package/dist/clients/IndustryClient.js +88 -0
- package/dist/clients/InsuranceClient.d.ts +14 -0
- package/dist/clients/InsuranceClient.d.ts.map +1 -0
- package/dist/clients/InsuranceClient.js +19 -0
- package/dist/clients/KillmailsClient.d.ts +32 -0
- package/dist/clients/KillmailsClient.d.ts.map +1 -0
- package/dist/clients/KillmailsClient.js +41 -0
- package/dist/clients/LocationClient.d.ts +32 -0
- package/dist/clients/LocationClient.d.ts.map +1 -0
- package/dist/clients/LocationClient.js +41 -0
- package/dist/clients/LoyaltyClient.d.ts +23 -0
- package/dist/clients/LoyaltyClient.d.ts.map +1 -0
- package/dist/clients/LoyaltyClient.js +30 -0
- package/dist/clients/MailClient.d.ts +93 -0
- package/dist/clients/MailClient.d.ts.map +1 -0
- package/dist/clients/MailClient.js +108 -0
- package/dist/clients/MarketClient.d.ts +98 -0
- package/dist/clients/MarketClient.d.ts.map +1 -0
- package/dist/clients/MarketClient.js +113 -0
- package/dist/clients/MetaClient.d.ts +19 -0
- package/dist/clients/MetaClient.d.ts.map +1 -0
- package/dist/clients/MetaClient.js +56 -0
- package/dist/clients/OpportunitiesClient.js +33 -0
- package/dist/clients/PiClient.d.ts +40 -0
- package/dist/clients/PiClient.d.ts.map +1 -0
- package/dist/clients/PiClient.js +51 -0
- package/dist/clients/RouteClient.d.ts +25 -0
- package/dist/clients/RouteClient.d.ts.map +1 -0
- package/dist/clients/RouteClient.js +24 -0
- package/dist/clients/SearchClient.d.ts +17 -0
- package/dist/clients/SearchClient.d.ts.map +1 -0
- package/dist/clients/SearchClient.js +22 -0
- package/dist/clients/SkillsClient.d.ts +36 -0
- package/dist/clients/SkillsClient.d.ts.map +1 -0
- package/dist/clients/SkillsClient.js +41 -0
- package/dist/clients/SovereigntyClient.d.ts +26 -0
- package/dist/clients/SovereigntyClient.d.ts.map +1 -0
- package/dist/clients/SovereigntyClient.js +35 -0
- package/dist/clients/StatusClient.d.ts +14 -0
- package/dist/clients/StatusClient.d.ts.map +1 -0
- package/dist/clients/StatusClient.js +19 -0
- package/dist/clients/UiClient.d.ts +42 -0
- package/dist/clients/UiClient.d.ts.map +1 -0
- package/dist/clients/UiClient.js +56 -0
- package/dist/clients/UniverseClient.d.ts +212 -0
- package/dist/clients/UniverseClient.d.ts.map +1 -0
- package/dist/clients/UniverseClient.js +277 -0
- package/dist/clients/WalletClient.d.ts +61 -0
- package/dist/clients/WalletClient.d.ts.map +1 -0
- package/dist/clients/WalletClient.js +73 -0
- package/dist/clients/WarsClient.d.ts +28 -0
- package/dist/clients/WarsClient.d.ts.map +1 -0
- package/dist/clients/WarsClient.js +37 -0
- package/dist/config/configManager.d.ts +8 -0
- package/dist/config/configManager.d.ts.map +1 -0
- package/dist/config/configManager.js +41 -0
- package/dist/config/constants.js +11 -0
- package/dist/config/jest/globalSetup.d.ts +2 -0
- package/dist/config/jest/globalSetup.d.ts.map +1 -0
- package/dist/config/jest/globalSetup.js +7 -0
- package/dist/config/jest/globalTeardown.d.ts +2 -0
- package/dist/config/jest/globalTeardown.d.ts.map +1 -0
- package/dist/config/jest/globalTeardown.js +7 -0
- package/dist/config/jest/jest.setup.d.ts +3 -0
- package/dist/config/jest/jest.setup.d.ts.map +1 -0
- package/dist/config/jest/jest.setup.js +30 -0
- package/dist/core/ApiClient.d.ts +44 -0
- package/dist/core/ApiClient.d.ts.map +1 -0
- package/dist/core/ApiClient.js +102 -0
- package/dist/core/ApiClientBuilder.d.ts +22 -0
- package/dist/core/ApiClientBuilder.d.ts.map +1 -0
- package/dist/core/ApiClientBuilder.js +54 -0
- package/dist/core/ApiError.js +11 -0
- package/dist/core/ApiRequestHandler.d.ts +11 -0
- package/dist/core/ApiRequestHandler.d.ts.map +1 -0
- package/dist/core/ApiRequestHandler.js +365 -0
- package/dist/core/ClientRegistry.d.ts +39 -0
- package/dist/core/ClientRegistry.d.ts.map +1 -0
- package/dist/core/ClientRegistry.js +107 -0
- package/dist/core/EsiDiagnostics.d.ts +35 -0
- package/dist/core/EsiDiagnostics.d.ts.map +1 -0
- package/dist/core/EsiDiagnostics.js +47 -0
- package/dist/core/IAPIBuilder.js +2 -0
- package/dist/core/RequestDeduplicator.d.ts +7 -0
- package/dist/core/RequestDeduplicator.d.ts.map +1 -0
- package/dist/core/RequestDeduplicator.js +26 -0
- package/dist/core/cache/ETagCacheManager.d.ts +71 -0
- package/dist/core/cache/ETagCacheManager.d.ts.map +1 -0
- package/dist/core/cache/ETagCacheManager.js +184 -0
- package/dist/core/cache/ICache.d.ts +27 -0
- package/dist/core/cache/ICache.d.ts.map +1 -0
- package/dist/core/cache/ICache.js +2 -0
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts +39 -0
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -0
- package/dist/core/circuitBreaker/CircuitBreaker.js +156 -0
- package/dist/core/constants.d.ts +5 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/constants.js +7 -0
- package/dist/core/container/Container.js +145 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts +50 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -0
- package/dist/core/endpoints/EndpointDefinition.js +2 -0
- package/dist/core/endpoints/allianceEndpoints.d.ts +26 -0
- package/dist/core/endpoints/allianceEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/allianceEndpoints.js +28 -0
- package/dist/core/endpoints/assetEndpoints.d.ts +51 -0
- package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/assetEndpoints.js +45 -0
- package/dist/core/endpoints/calendarEndpoints.d.ts +30 -0
- package/dist/core/endpoints/calendarEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/calendarEndpoints.js +30 -0
- package/dist/core/endpoints/characterEndpoints.d.ts +88 -0
- package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/characterEndpoints.js +90 -0
- package/dist/core/endpoints/cloneEndpoints.d.ts +15 -0
- package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/cloneEndpoints.js +17 -0
- package/dist/core/endpoints/contactEndpoints.d.ts +62 -0
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/contactEndpoints.js +62 -0
- package/dist/core/endpoints/contractEndpoints.d.ts +57 -0
- package/dist/core/endpoints/contractEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/contractEndpoints.js +59 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts +134 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/corporationEndpoints.js +136 -0
- package/dist/core/endpoints/createClient.d.ts +48 -0
- package/dist/core/endpoints/createClient.d.ts.map +1 -0
- package/dist/core/endpoints/createClient.js +170 -0
- package/dist/core/endpoints/dogmaEndpoints.d.ts +31 -0
- package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/dogmaEndpoints.js +33 -0
- package/dist/core/endpoints/factionEndpoints.d.ts +45 -0
- package/dist/core/endpoints/factionEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/factionEndpoints.js +47 -0
- package/dist/core/endpoints/fittingEndpoints.d.ts +22 -0
- package/dist/core/endpoints/fittingEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/fittingEndpoints.js +24 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts +97 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/fleetEndpoints.js +95 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.d.ts +50 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.js +43 -0
- package/dist/core/endpoints/incursionEndpoints.d.ts +8 -0
- package/dist/core/endpoints/incursionEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/incursionEndpoints.js +10 -0
- package/dist/core/endpoints/industryEndpoints.d.ts +49 -0
- package/dist/core/endpoints/industryEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/industryEndpoints.js +51 -0
- package/dist/core/endpoints/insuranceEndpoints.d.ts +8 -0
- package/dist/core/endpoints/insuranceEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/insuranceEndpoints.js +10 -0
- package/dist/core/endpoints/killmailEndpoints.d.ts +21 -0
- package/dist/core/endpoints/killmailEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/killmailEndpoints.js +23 -0
- package/dist/core/endpoints/locationEndpoints.d.ts +21 -0
- package/dist/core/endpoints/locationEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/locationEndpoints.js +23 -0
- package/dist/core/endpoints/loyaltyEndpoints.d.ts +15 -0
- package/dist/core/endpoints/loyaltyEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/loyaltyEndpoints.js +17 -0
- package/dist/core/endpoints/mailEndpoints.d.ts +60 -0
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/mailEndpoints.js +62 -0
- package/dist/core/endpoints/marketEndpoints.d.ts +73 -0
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/marketEndpoints.js +71 -0
- package/dist/core/endpoints/metaEndpoints.d.ts +8 -0
- package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/metaEndpoints.js +10 -0
- package/dist/core/endpoints/piEndpoints.d.ts +27 -0
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/piEndpoints.js +29 -0
- package/dist/core/endpoints/routeEndpoints.d.ts +10 -0
- package/dist/core/endpoints/routeEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/routeEndpoints.js +12 -0
- package/dist/core/endpoints/searchEndpoints.d.ts +13 -0
- package/dist/core/endpoints/searchEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/searchEndpoints.js +12 -0
- package/dist/core/endpoints/skillEndpoints.d.ts +21 -0
- package/dist/core/endpoints/skillEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/skillEndpoints.js +23 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts +18 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/sovereigntyEndpoints.js +20 -0
- package/dist/core/endpoints/statusEndpoints.d.ts +8 -0
- package/dist/core/endpoints/statusEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/statusEndpoints.js +10 -0
- package/dist/core/endpoints/uiEndpoints.d.ts +33 -0
- package/dist/core/endpoints/uiEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/uiEndpoints.js +35 -0
- package/dist/core/endpoints/universeEndpoints.d.ts +179 -0
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/universeEndpoints.js +177 -0
- package/dist/core/endpoints/walletEndpoints.d.ts +39 -0
- package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/walletEndpoints.js +41 -0
- package/dist/core/endpoints/warEndpoints.d.ts +20 -0
- package/dist/core/endpoints/warEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/warEndpoints.js +22 -0
- package/dist/core/errors/ApiError.js +129 -0
- package/dist/core/factory/ApiFactory.js +170 -0
- package/dist/core/logger/ILogger.d.ts +7 -0
- package/dist/core/logger/ILogger.d.ts.map +1 -0
- package/dist/core/logger/ILogger.js +2 -0
- package/dist/core/logger/index.d.ts +2 -0
- package/dist/core/logger/index.d.ts.map +1 -0
- package/dist/core/logger/index.js +8 -0
- package/dist/core/logger/logger.d.ts +3 -0
- package/dist/core/logger/logger.d.ts.map +1 -0
- package/dist/core/logger/logger.js +16 -0
- package/dist/core/logger/loggerUtil.d.ts +9 -0
- package/dist/core/logger/loggerUtil.d.ts.map +1 -0
- package/dist/core/logger/loggerUtil.js +30 -0
- package/dist/core/middleware/Middleware.d.ts +30 -0
- package/dist/core/middleware/Middleware.d.ts.map +1 -0
- package/dist/core/middleware/Middleware.js +42 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts +8 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -0
- package/dist/core/pagination/AsyncPaginationIterator.js +27 -0
- package/dist/core/pagination/CursorPaginationHandler.d.ts +59 -0
- package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -0
- package/dist/core/pagination/CursorPaginationHandler.js +148 -0
- package/dist/core/pagination/PaginationHandler.d.ts +30 -0
- package/dist/core/pagination/PaginationHandler.d.ts.map +1 -0
- package/dist/core/pagination/PaginationHandler.js +115 -0
- package/dist/core/rateLimiter/IRateLimiter.d.ts +17 -0
- package/dist/core/rateLimiter/IRateLimiter.d.ts.map +1 -0
- package/dist/core/rateLimiter/IRateLimiter.js +2 -0
- package/dist/core/rateLimiter/RateLimiter.d.ts +77 -0
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -0
- package/dist/core/rateLimiter/RateLimiter.js +203 -0
- package/dist/core/util/error.d.ts +23 -0
- package/dist/core/util/error.d.ts.map +1 -0
- package/dist/core/util/error.js +100 -0
- package/dist/core/util/file.js +26 -0
- package/dist/core/util/headersUtil.d.ts +22 -0
- package/dist/core/util/headersUtil.d.ts.map +1 -0
- package/dist/core/util/headersUtil.js +36 -0
- package/dist/core/util/inputValidation.js +9 -0
- package/dist/core/util/network.js +15 -0
- package/dist/core/util/request.js +21 -0
- package/dist/core/util/sleep.d.ts +2 -0
- package/dist/core/util/sleep.d.ts.map +1 -0
- package/dist/core/util/sleep.js +6 -0
- package/dist/core/util/testHelpers.d.ts +4 -0
- package/dist/core/util/testHelpers.d.ts.map +1 -0
- package/dist/core/util/testHelpers.js +25 -0
- package/dist/core/util/validation.d.ts +4 -0
- package/dist/core/util/validation.d.ts.map +1 -0
- package/dist/core/util/validation.js +52 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +137 -0
- package/dist/testing/TestDataFactory.d.ts +97 -0
- package/dist/testing/TestDataFactory.d.ts.map +1 -0
- package/dist/testing/TestDataFactory.js +729 -0
- package/dist/testing/TestHelpers.js +205 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/alliance.d.ts +25 -0
- package/dist/types/alliance.d.ts.map +1 -0
- package/dist/types/alliance.js +2 -0
- package/dist/types/api-responses.d.ts +30 -0
- package/dist/types/api-responses.d.ts.map +1 -0
- package/dist/types/api-responses.js +45 -0
- package/dist/types/assets.d.ts +23 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/assets.js +2 -0
- package/dist/types/calendar.d.ts +24 -0
- package/dist/types/calendar.d.ts.map +1 -0
- package/dist/types/calendar.js +2 -0
- package/dist/types/character.d.ts +105 -0
- package/dist/types/character.d.ts.map +1 -0
- package/dist/types/character.js +2 -0
- package/dist/types/clones.d.ts +16 -0
- package/dist/types/clones.d.ts.map +1 -0
- package/dist/types/clones.js +2 -0
- package/dist/types/common.d.ts +17 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +2 -0
- package/dist/types/contacts.d.ts +12 -0
- package/dist/types/contacts.d.ts.map +1 -0
- package/dist/types/contacts.js +2 -0
- package/dist/types/contracts.d.ts +40 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/dist/types/contracts.js +2 -0
- package/dist/types/corporation.d.ts +167 -0
- package/dist/types/corporation.d.ts.map +1 -0
- package/dist/types/corporation.js +2 -0
- package/dist/types/dogma.d.ts +39 -0
- package/dist/types/dogma.d.ts.map +1 -0
- package/dist/types/dogma.js +2 -0
- package/dist/types/faction-warfare.d.ts +89 -0
- package/dist/types/faction-warfare.d.ts.map +1 -0
- package/dist/types/faction-warfare.js +2 -0
- package/dist/types/fittings.d.ts +12 -0
- package/dist/types/fittings.d.ts.map +1 -0
- package/dist/types/fittings.js +2 -0
- package/dist/types/fleet.d.ts +35 -0
- package/dist/types/fleet.d.ts.map +1 -0
- package/dist/types/fleet.js +2 -0
- package/dist/types/freelance-jobs.d.ts +92 -0
- package/dist/types/freelance-jobs.d.ts.map +1 -0
- package/dist/types/freelance-jobs.js +2 -0
- package/dist/types/incursions.d.ts +11 -0
- package/dist/types/incursions.d.ts.map +1 -0
- package/dist/types/incursions.js +2 -0
- package/dist/types/industry.d.ts +65 -0
- package/dist/types/industry.d.ts.map +1 -0
- package/dist/types/industry.js +2 -0
- package/dist/types/insurance.d.ts +9 -0
- package/dist/types/insurance.d.ts.map +1 -0
- package/dist/types/insurance.js +2 -0
- package/dist/types/killmails.d.ts +37 -0
- package/dist/types/killmails.d.ts.map +1 -0
- package/dist/types/killmails.js +2 -0
- package/dist/types/location.d.ts +17 -0
- package/dist/types/location.d.ts.map +1 -0
- package/dist/types/location.js +2 -0
- package/dist/types/loyalty.d.ts +17 -0
- package/dist/types/loyalty.d.ts.map +1 -0
- package/dist/types/loyalty.js +2 -0
- package/dist/types/mail.d.ts +19 -0
- package/dist/types/mail.d.ts.map +1 -0
- package/dist/types/mail.js +2 -0
- package/dist/types/market.d.ts +23 -0
- package/dist/types/market.d.ts.map +1 -0
- package/dist/types/market.js +2 -0
- package/dist/types/pi.d.ts +67 -0
- package/dist/types/pi.d.ts.map +1 -0
- package/dist/types/pi.js +2 -0
- package/dist/types/skills.d.ts +17 -0
- package/dist/types/skills.d.ts.map +1 -0
- package/dist/types/skills.js +2 -0
- package/dist/types/sovereignty.d.ts +31 -0
- package/dist/types/sovereignty.d.ts.map +1 -0
- package/dist/types/sovereignty.js +2 -0
- package/dist/types/status.d.ts +7 -0
- package/dist/types/status.d.ts.map +1 -0
- package/dist/types/status.js +2 -0
- package/dist/types/universe.d.ts +275 -0
- package/dist/types/universe.d.ts.map +1 -0
- package/dist/types/universe.js +2 -0
- package/dist/types/wallet.d.ts +26 -0
- package/dist/types/wallet.d.ts.map +1 -0
- package/dist/types/wallet.js +2 -0
- package/dist/types/wars.d.ts +26 -0
- package/dist/types/wars.d.ts.map +1 -0
- package/dist/types/wars.js +2 -0
- package/package.json +127 -20
- package/.github/workflows/ci.yml +0 -16
- package/.prettierrc +0 -6
- package/Structure.js +0 -257
- package/eslint.json +0 -13
- package/jest.bdd.config.cjs +0 -22
- package/jest.unit.config.cjs +0 -30
- package/src/TODO +0 -72
- package/src/api/alliances/getAllianceById.ts +0 -10
- package/src/api/alliances/getAllianceContactLabels.ts +0 -11
- package/src/api/alliances/getAllianceContacts.ts +0 -10
- package/src/api/alliances/getAllianceCorporations.ts +0 -10
- package/src/api/alliances/getAllianceIcons.ts +0 -10
- package/src/api/alliances/getAlliances.ts +0 -10
- package/src/api/assets/getCharacterAssets.ts +0 -14
- package/src/api/assets/getCorporationAssets.ts +0 -14
- package/src/api/assets/postCharacterAssetLocations.ts +0 -14
- package/src/api/assets/postCharacterAssetNames.ts +0 -14
- package/src/api/assets/postCorporationAssetLocations.ts +0 -14
- package/src/api/assets/postCorporationAssetNames.ts +0 -14
- package/src/api/bookmarks/getCharacterBookmarkFolders.ts +0 -10
- package/src/api/bookmarks/getCharacterBookmarks.ts +0 -10
- package/src/api/bookmarks/getCorporationBookmarkFolders.ts +0 -10
- package/src/api/bookmarks/getCorporationBookmarks.ts +0 -10
- package/src/api/calendar/getCalendarEventById.ts +0 -10
- package/src/api/calendar/getCalendarEvents.ts +0 -10
- package/src/api/calendar/getEventAttendees.ts +0 -10
- package/src/api/calendar/respondToCalendarEvent.ts +0 -11
- package/src/api/characters/getAgentsResearch.ts +0 -10
- package/src/api/characters/getBlueprints.ts +0 -10
- package/src/api/characters/getCharacterPublicInfo.ts +0 -10
- package/src/api/characters/getCharacterRoles.ts +0 -10
- package/src/api/characters/getCharacterStandings.ts +0 -10
- package/src/api/characters/getCharacterTitles.ts +0 -10
- package/src/api/characters/getContactNotifications.ts +0 -10
- package/src/api/characters/getCorporationHistory.ts +0 -10
- package/src/api/characters/getJumpFatigue.ts +0 -10
- package/src/api/characters/getMedals.ts +0 -10
- package/src/api/characters/getNotifications.ts +0 -10
- package/src/api/characters/getPortrait.ts +0 -10
- package/src/api/characters/postCSPAChargeCost.ts +0 -10
- package/src/api/characters/postCharacterAffiliations.ts +0 -10
- package/src/api/clones/getClones.ts +0 -11
- package/src/api/clones/getImplants.ts +0 -11
- package/src/api/contacts/deleteCharacterContacts.ts +0 -10
- package/src/api/contacts/getAllianceContactLabels.ts +0 -10
- package/src/api/contacts/getAllianceContacts.ts +0 -10
- package/src/api/contacts/getCharacterContactLabels.ts +0 -10
- package/src/api/contacts/getCharacterContacts.ts +0 -10
- package/src/api/contacts/getCorporationContactLabels.ts +0 -10
- package/src/api/contacts/getCorporationContacts.ts +0 -10
- package/src/api/contacts/postCharacterContacts.ts +0 -10
- package/src/api/contacts/putCharacterContacts.ts +0 -10
- package/src/api/contracts/getCharacterContractBids.ts +0 -10
- package/src/api/contracts/getCharacterContractItems.ts +0 -10
- package/src/api/contracts/getCharacterContracts.ts +0 -10
- package/src/api/contracts/getCorporationContractBids.ts +0 -10
- package/src/api/contracts/getCorporationContractItems.ts +0 -10
- package/src/api/contracts/getCorporationContracts.ts +0 -10
- package/src/api/contracts/getPublicContractBids.ts +0 -10
- package/src/api/contracts/getPublicContractItems.ts +0 -10
- package/src/api/contracts/getPublicContracts.ts +0 -10
- package/src/api/corporations/getCorporationAllianceHistory.ts +0 -10
- package/src/api/corporations/getCorporationAlscLogs.ts +0 -10
- package/src/api/corporations/getCorporationBlueprints.ts +0 -10
- package/src/api/corporations/getCorporationDivisions.ts +0 -10
- package/src/api/corporations/getCorporationFacilities.ts +0 -10
- package/src/api/corporations/getCorporationIcon.ts +0 -10
- package/src/api/corporations/getCorporationInfo.ts +0 -10
- package/src/api/corporations/getCorporationIssuedMedals.ts +0 -10
- package/src/api/corporations/getCorporationMedals.ts +0 -10
- package/src/api/corporations/getCorporationMemberLimit.ts +0 -10
- package/src/api/corporations/getCorporationMemberRoles.ts +0 -10
- package/src/api/corporations/getCorporationMemberRolesHistory.ts +0 -10
- package/src/api/corporations/getCorporationMemberTracking.ts +0 -10
- package/src/api/corporations/getCorporationMembers.ts +0 -10
- package/src/api/corporations/getCorporationMembersTitles.ts +0 -10
- package/src/api/corporations/getCorporationShareholders.ts +0 -10
- package/src/api/corporations/getCorporationStandings.ts +0 -10
- package/src/api/corporations/getCorporationStarbaseDetail.ts +0 -10
- package/src/api/corporations/getCorporationStarbases.ts +0 -10
- package/src/api/corporations/getCorporationStructures.ts +0 -10
- package/src/api/corporations/getCorporationTitles.ts +0 -10
- package/src/api/corporations/getNpcCorporations.ts +0 -10
- package/src/api/dogma/getDogmaAttributeById.ts +0 -11
- package/src/api/dogma/getDogmaAttributes.ts +0 -11
- package/src/api/dogma/getDogmaDynamicItemAttributes.ts +0 -11
- package/src/api/dogma/getDogmaEffectById.ts +0 -11
- package/src/api/dogma/getDogmaEffects.ts +0 -11
- package/src/api/factions/getCharacterFactionWarfareStats.ts +0 -10
- package/src/api/factions/getCharacterLeaderboards.ts +0 -10
- package/src/api/factions/getCorporationFactionWarfareStats.ts +0 -10
- package/src/api/factions/getCorporationLeaderboards.ts +0 -10
- package/src/api/factions/getFactionLeaderboards.ts +0 -10
- package/src/api/factions/getFactionWarfareStats.ts +0 -10
- package/src/api/factions/getFactionWarfareSystems.ts +0 -10
- package/src/api/factions/getFactionWarfareWars.ts +0 -10
- package/src/api/fittings/deleteCharacterFitting.ts +0 -10
- package/src/api/fittings/getCharacterFittings.ts +0 -10
- package/src/api/fittings/postCharacterFittings.ts +0 -10
- package/src/api/fleets/deleteFleetMember.ts +0 -10
- package/src/api/fleets/deleteFleetSquad.ts +0 -10
- package/src/api/fleets/deleteFleetWing.ts +0 -10
- package/src/api/fleets/getCharacterFleetInfo.ts +0 -10
- package/src/api/fleets/getFleetInfo.ts +0 -10
- package/src/api/fleets/getFleetMembers.ts +0 -10
- package/src/api/fleets/getFleetWings.ts +0 -10
- package/src/api/fleets/postFleetInvitation.ts +0 -10
- package/src/api/fleets/postFleetSquad.ts +0 -10
- package/src/api/fleets/postFleetWing.ts +0 -10
- package/src/api/fleets/putFleetMember.ts +0 -10
- package/src/api/fleets/putFleetSquad.ts +0 -10
- package/src/api/fleets/putFleetWing.ts +0 -11
- package/src/api/fleets/updateFleet.ts +0 -10
- package/src/api/incursions/getIncursions.ts +0 -14
- package/src/api/industry/getCharacterIndustryJobs.ts +0 -10
- package/src/api/industry/getCharacterMiningLedger.ts +0 -10
- package/src/api/industry/getCorporationIndustryJobs.ts +0 -10
- package/src/api/industry/getCorporationMiningObserver.ts +0 -10
- package/src/api/industry/getCorporationMiningObservers.ts +0 -10
- package/src/api/industry/getIndustryFacilities.ts +0 -10
- package/src/api/industry/getIndustrySystems.ts +0 -10
- package/src/api/industry/getMoonExtractionTimers.ts +0 -10
- package/src/api/insurance/getInsurancePrices.ts +0 -10
- package/src/api/killmails/getCharacterRecentKillmails.ts +0 -10
- package/src/api/killmails/getCorporationRecentKillmails.ts +0 -10
- package/src/api/killmails/getKillmail.ts +0 -10
- package/src/api/location/getCharacterLocation.ts +0 -10
- package/src/api/location/getCharacterOnline.ts +0 -10
- package/src/api/location/getCharacterShip.ts +0 -10
- package/src/api/loyalty/getLoyaltyPoints.ts +0 -10
- package/src/api/loyalty/getLoyaltyStoreOffers.ts +0 -10
- package/src/api/mail/deleteCharacterMail.ts +0 -10
- package/src/api/mail/deleteCharacterMailLabel.test.ts +0 -22
- package/src/api/mail/deleteCharacterMailLabel.ts +0 -10
- package/src/api/mail/getCharacerMailingLists.test.ts +0 -35
- package/src/api/mail/getCharacterMail.ts +0 -10
- package/src/api/mail/getCharacterMailHeaders.ts +0 -10
- package/src/api/mail/getCharacterMailLabels.ts +0 -10
- package/src/api/mail/getCharacterMailingLists.ts +0 -10
- package/src/api/mail/postCharacterMail.ts +0 -10
- package/src/api/mail/postCharacterMailLabels.ts +0 -10
- package/src/api/mail/putCharacterMail.ts +0 -10
- package/src/api/market/getCharacterOrderHistory.ts +0 -10
- package/src/api/market/getCharacterOrders.ts +0 -10
- package/src/api/market/getCorporationOrderHistory.ts +0 -10
- package/src/api/market/getCorporationOrders.ts +0 -10
- package/src/api/market/getMarketGroupInformation.ts +0 -10
- package/src/api/market/getMarketGroups.ts +0 -10
- package/src/api/market/getMarketHistory.ts +0 -10
- package/src/api/market/getMarketOrders.ts +0 -10
- package/src/api/market/getMarketOrdersInStructure.ts +0 -10
- package/src/api/market/getMarketPrices.ts +0 -10
- package/src/api/market/getMarketTypes.ts +0 -10
- package/src/api/opportunities/getCharacterOpportunities.ts +0 -10
- package/src/api/opportunities/getOpportunitiesGroupById.ts +0 -10
- package/src/api/opportunities/getOpportunitiesGroups.ts +0 -10
- package/src/api/opportunities/getOpportunitiesTaskById.ts +0 -10
- package/src/api/opportunities/getOpportunitiesTasks.ts +0 -10
- package/src/api/pi/getColonies.ts +0 -10
- package/src/api/pi/getColonyLayout.ts +0 -10
- package/src/api/pi/getCorporationCustomsOffices.ts +0 -10
- package/src/api/pi/getSchematicInformation.ts +0 -10
- package/src/api/route/getRoute.ts +0 -14
- package/src/api/search/getCharacterSearch.ts +0 -14
- package/src/api/skills/getCharacterAttributes.ts +0 -10
- package/src/api/skills/getCharacterSkillQueue.ts +0 -10
- package/src/api/skills/getCharacterSkills.ts +0 -10
- package/src/api/sovereignty/getSovereigntyCampaigns.ts +0 -10
- package/src/api/sovereignty/getSovereigntyMap.ts +0 -10
- package/src/api/sovereignty/getSovereigntyStructures.ts +0 -10
- package/src/api/status/getStatus.ts +0 -11
- package/src/api/ui/postAutopilotWaypoint.ts +0 -10
- package/src/api/ui/postOpenContractWindow.ts +0 -10
- package/src/api/ui/postOpenInformationWindow.ts +0 -10
- package/src/api/ui/postOpenMarketDetailsWindow.ts +0 -10
- package/src/api/ui/postOpenNewMailWindow.ts +0 -10
- package/src/api/universe/getAncestries.ts +0 -10
- package/src/api/universe/getAsteroidBeltInfo.ts +0 -10
- package/src/api/universe/getBloodlines.ts +0 -10
- package/src/api/universe/getConstellationById.ts +0 -10
- package/src/api/universe/getConstellations.ts +0 -10
- package/src/api/universe/getFactions.ts +0 -10
- package/src/api/universe/getGraphicById.ts +0 -10
- package/src/api/universe/getGraphics.ts +0 -10
- package/src/api/universe/getItemCategories.ts +0 -10
- package/src/api/universe/getItemCategoryById.ts +0 -10
- package/src/api/universe/getItemGroupById.ts +0 -10
- package/src/api/universe/getItemGroups.ts +0 -10
- package/src/api/universe/getMoonById.ts +0 -10
- package/src/api/universe/getPlanetById.ts +0 -10
- package/src/api/universe/getRaces.ts +0 -10
- package/src/api/universe/getRegionById.ts +0 -10
- package/src/api/universe/getStarById.ts +0 -10
- package/src/api/universe/getStargateById.ts +0 -10
- package/src/api/universe/getStationById.ts +0 -10
- package/src/api/universe/getStructureById.ts +0 -10
- package/src/api/universe/getStructures.ts +0 -10
- package/src/api/universe/getSystemById.ts +0 -10
- package/src/api/universe/getSystemJumps.ts +0 -10
- package/src/api/universe/getSystemKills.ts +0 -10
- package/src/api/universe/getSystems.ts +0 -10
- package/src/api/universe/getTypeById.ts +0 -10
- package/src/api/universe/getTypes.ts +0 -10
- package/src/api/universe/postBulkNamesToIds.ts +0 -15
- package/src/api/universe/postNamesAndCategories.ts +0 -15
- package/src/api/wallet/getCharacterWallet.ts +0 -11
- package/src/api/wallet/getCharacterWalletJournal.ts +0 -11
- package/src/api/wallet/getCharacterWalletTransactions.ts +0 -11
- package/src/api/wallet/getCorporationWalletJournal.ts +0 -11
- package/src/api/wallet/getCorporationWalletTransactions.ts +0 -11
- package/src/api/wallet/getCorporationWallets.ts +0 -11
- package/src/api/wars/getWarById.ts +0 -10
- package/src/api/wars/getWarKillmails.ts +0 -10
- package/src/api/wars/getWars.ts +0 -10
- package/src/builders/AllianceApiBuilder.ts +0 -14
- package/src/builders/AssetsApiBuilder.ts +0 -14
- package/src/builders/BookmarkApiBuilder.ts +0 -14
- package/src/builders/CalendarApiBuilder.ts +0 -14
- package/src/builders/CharacterApiBuilder.ts +0 -14
- package/src/builders/ClonesApiBuilder.ts +0 -14
- package/src/builders/ContactsApiBuilder.ts +0 -14
- package/src/builders/ContractsApiBuilder.ts +0 -14
- package/src/builders/CorporationsApiBuilder.ts +0 -14
- package/src/builders/DogmaApiBuilder.ts +0 -15
- package/src/builders/FactionApiBuilder.ts +0 -14
- package/src/builders/FittingsApiBuilder.ts +0 -16
- package/src/builders/FleetApiBuilder.ts +0 -14
- package/src/builders/IncursionsApiBuilder.ts +0 -14
- package/src/builders/IndustryApiBuilder.ts +0 -14
- package/src/builders/InsuranceApiBuilder.ts +0 -14
- package/src/builders/KillmailsBuilder.ts +0 -14
- package/src/builders/LocationApiBuilder.ts +0 -14
- package/src/builders/LoyaltyApiBuilder.ts +0 -14
- package/src/builders/MailApiBuilder.ts +0 -14
- package/src/builders/MarketApiBuilder.ts +0 -14
- package/src/builders/OpportunitiesApiBuilder.ts +0 -16
- package/src/builders/PiApiBuilder.ts +0 -14
- package/src/builders/RouteApiBuilder.ts +0 -14
- package/src/builders/SearchApiBuilder.ts +0 -14
- package/src/builders/SkillsApiBuilder.ts +0 -14
- package/src/builders/SovereigntyApiBuilder.ts +0 -14
- package/src/builders/StatusApiBuilder.ts +0 -14
- package/src/builders/UiApiBuilder.ts +0 -14
- package/src/builders/UniverseApiBuilder.ts +0 -14
- package/src/builders/WalletApiBuilder.ts +0 -15
- package/src/builders/WarsAPIBuilder.ts +0 -14
- package/src/clients/AllianceClient.ts +0 -49
- package/src/clients/AssetsClient.ts +0 -49
- package/src/clients/BookmarkClient.ts +0 -35
- package/src/clients/CalendarClient.ts +0 -35
- package/src/clients/CharacterClient.ts +0 -105
- package/src/clients/ClonesClient.ts +0 -21
- package/src/clients/ContactsClient.ts +0 -70
- package/src/clients/ContractsClient.ts +0 -70
- package/src/clients/CorporationsClient.ts +0 -161
- package/src/clients/DogmaClient.ts +0 -43
- package/src/clients/FactionClient.ts +0 -63
- package/src/clients/FittingsClient.ts +0 -28
- package/src/clients/FleetClient.ts +0 -105
- package/src/clients/IncursionsClient.ts +0 -14
- package/src/clients/IndustryClient.ts +0 -63
- package/src/clients/InsuranceClient.ts +0 -14
- package/src/clients/KillmailsClient.ts +0 -28
- package/src/clients/LocationClient.ts +0 -28
- package/src/clients/LoyaltyClient.ts +0 -21
- package/src/clients/MailClient.ts +0 -70
- package/src/clients/MarketClient.ts +0 -84
- package/src/clients/OpportunitiesClient.ts +0 -42
- package/src/clients/PiClient.ts +0 -35
- package/src/clients/RouteClient.ts +0 -14
- package/src/clients/SearchClient.ts +0 -14
- package/src/clients/SkillsClient.ts +0 -28
- package/src/clients/SovereigntyClient.ts +0 -28
- package/src/clients/StatusClient.ts +0 -24
- package/src/clients/UiClient.ts +0 -42
- package/src/clients/UniverseClient.ts +0 -212
- package/src/clients/WalletClient.ts +0 -49
- package/src/clients/WarsClient.ts +0 -28
- package/src/config/configManager.ts +0 -30
- package/src/config/constants.ts +0 -6
- package/src/config/esi.json +0 -8
- package/src/config/jest/jest.bdd.setup.ts +0 -11
- package/src/config/jest/jest.setup.ts +0 -25
- package/src/config/swagger.json +0 -1
- package/src/core/ApiClient.ts +0 -18
- package/src/core/ApiClientBuilder.ts +0 -26
- package/src/core/ApiError.ts +0 -6
- package/src/core/ApiRequestHandler.ts +0 -138
- package/src/core/logger/index.ts +0 -1
- package/src/core/logger/logger.ts +0 -35
- package/src/core/logger/loggerUtil.ts +0 -17
- package/src/core/util/error.ts +0 -7
- package/src/core/util/file.ts +0 -21
- package/src/core/util/headersUtil.ts +0 -34
- package/src/core/util/inputValidation.ts +0 -6
- package/src/core/util/network.ts +0 -9
- package/src/core/util/request.ts +0 -15
- package/src/core/util/testHelpers.ts +0 -20
- package/src/index.ts +0 -1163
- package/src/types/winston-loggly-bulk.d.ts +0 -14
- package/tests/bdd/features/alliances/getAllianceById.feature +0 -6
- package/tests/bdd/features/alliances/getAllianceContactLabels.feature +0 -0
- package/tests/bdd/features/alliances/getAllianceContacts.feature +0 -0
- package/tests/bdd/features/alliances/getAllianceCorporations.feature +0 -6
- package/tests/bdd/features/alliances/getAllianceIcons.feature +0 -6
- package/tests/bdd/features/alliances/getAlliances.feature +0 -0
- package/tests/bdd/features/characters/getCharacter.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAffiliation.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAgentsResearch.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAssetLocations.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAssetNames.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAssets.feature +0 -0
- package/tests/bdd/features/characters/getCharacterAttributes.feature +0 -0
- package/tests/bdd/features/characters/getCharacterBlueprints.feature +0 -0
- package/tests/bdd/features/characters/getCharacterBookmarkFolders.feature +0 -0
- package/tests/bdd/features/characters/getCharacterBookmarks.feature +0 -0
- package/tests/bdd/features/characters/getCharacterCalendarEventById.feature +0 -0
- package/tests/bdd/features/characters/getCharacterCalendarEvents.feature +0 -0
- package/tests/bdd/features/characters/getCharacterClones.feature +0 -0
- package/tests/bdd/features/characters/getCharacterContractBids.feature +0 -0
- package/tests/bdd/features/characters/getCharacterContractItems.feature +0 -0
- package/tests/bdd/features/characters/getCharacterContracts.feature +0 -0
- package/tests/bdd/features/characters/getCharacterCorporationHistory.feature +0 -0
- package/tests/bdd/features/characters/getCharacterFatigue.feature +0 -0
- package/tests/bdd/features/characters/getCharacterFittings.feature +0 -0
- package/tests/bdd/features/characters/getCharacterFleet.feature +0 -0
- package/tests/bdd/features/characters/getCharacterFwStats.feature +0 -0
- package/tests/bdd/features/characters/getCharacterImplants.feature +0 -0
- package/tests/bdd/features/characters/getCharacterIndustryJobs.feature +0 -0
- package/tests/bdd/features/characters/getCharacterKillmails.feature +0 -0
- package/tests/bdd/features/characters/getCharacterLocation.feature +0 -0
- package/tests/bdd/features/characters/getCharacterLoyaltyPoints.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMail.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMailById.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMailLabels.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMailLists.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMedals.feature +0 -0
- package/tests/bdd/features/characters/getCharacterMining.feature +0 -0
- package/tests/bdd/features/characters/getCharacterNotifications.feature +0 -0
- package/tests/bdd/features/characters/getCharacterNotificationsContacts.feature +0 -0
- package/tests/bdd/features/characters/getCharacterOpportunities.feature +0 -0
- package/tests/bdd/features/characters/getCharacterOrderHistory.feature +0 -0
- package/tests/bdd/features/characters/getCharacterOrders.feature +0 -0
- package/tests/bdd/features/characters/getCharacterPlanets.feature +0 -0
- package/tests/bdd/features/characters/getCharacterPortrait.feature +0 -0
- package/tests/bdd/features/characters/getCharacterRoles.feature +0 -0
- package/tests/bdd/features/characters/getCharacterSearch.feature +0 -0
- package/tests/bdd/features/characters/getCharacterShip.feature +0 -0
- package/tests/bdd/features/characters/getCharacterSkillQueue.feature +0 -0
- package/tests/bdd/features/characters/getCharacterSkills.feature +0 -0
- package/tests/bdd/features/characters/getCharacterStandings.feature +0 -0
- package/tests/bdd/features/characters/getCharacterStats.feature +0 -0
- package/tests/bdd/features/characters/getCharacterTitles.feature +0 -0
- package/tests/bdd/features/characters/getCharacterWallet.feature +0 -0
- package/tests/bdd/features/characters/getCharacterWalletJournal.feature +0 -0
- package/tests/bdd/features/characters/getCharacterWalletTransactions.feature +0 -0
- package/tests/bdd/features/contracts/getContractBids.feature +0 -0
- package/tests/bdd/features/contracts/getContractById.feature +0 -0
- package/tests/bdd/features/contracts/getContractItems.feature +0 -0
- package/tests/bdd/features/contracts/getContracts.feature +0 -0
- package/tests/bdd/features/contracts/getPublicContractBids.feature +0 -0
- package/tests/bdd/features/contracts/getPublicContractItems.feature +0 -0
- package/tests/bdd/features/contracts/getPublicContracts.feature +0 -0
- package/tests/bdd/features/corporations/getCorporation.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationAlliances.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationBlueprints.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationBookmarkFolders.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationBookmarks.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContactLabels.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContacts.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContainerLogs.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContractBids.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContractItems.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationContracts.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationDivisions.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationFacilities.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationFwStats.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationIcons.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationIndustryJobs.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationKillmails.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationMedals.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationMemberLimit.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationMemberTracking.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationMembers.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationMining.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationNotifications.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationOrderHistory.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationOrders.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationOutposts.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationRoles.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationShareholders.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationStandings.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationStarbases.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationStructures.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationTitles.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationWalletJournal.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationWalletTransactions.feature +0 -0
- package/tests/bdd/features/corporations/getCorporationWallets.feature +0 -0
- package/tests/bdd/features/dogma/getDogmaAttributeById.feature +0 -0
- package/tests/bdd/features/dogma/getDogmaAttributes.feature +0 -0
- package/tests/bdd/features/dogma/getDogmaDynamicItemAttributes.feature +0 -0
- package/tests/bdd/features/dogma/getDogmaEffectById.feature +0 -0
- package/tests/bdd/features/dogma/getDogmaEffects.feature +0 -0
- package/tests/bdd/features/factions/getFactionWarfareLeaderboards.feature +0 -6
- package/tests/bdd/features/factions/getFactionWarfareStats.feature +0 -6
- package/tests/bdd/features/factions/getFactionWarfareSystems.feature +0 -6
- package/tests/bdd/features/factions/getFactionWarfareWars.feature +0 -6
- package/tests/bdd/features/fleets/getFleetMembers.feature +0 -0
- package/tests/bdd/features/fleets/getFleetSquads.feature +0 -0
- package/tests/bdd/features/fleets/getFleetWings.feature +0 -0
- package/tests/bdd/features/fleets/getFleets.feature +0 -0
- package/tests/bdd/features/incursions/getIncursions.feature +0 -0
- package/tests/bdd/features/industry/getIndustryCorporationJobs.feature +0 -0
- package/tests/bdd/features/industry/getIndustryFacilities.feature +0 -0
- package/tests/bdd/features/industry/getIndustryJobs.feature +0 -0
- package/tests/bdd/features/industry/getIndustrySystems.feature +0 -0
- package/tests/bdd/features/insurance/getInsurancePrices.feature +0 -0
- package/tests/bdd/features/killmails/getKillmailById.feature +0 -0
- package/tests/bdd/features/killmails/getKillmails.feature +0 -0
- package/tests/bdd/features/killmails/getRecentCharacterKillmails.feature +0 -0
- package/tests/bdd/features/killmails/getRecentCorporationKillmails.feature +0 -0
- package/tests/bdd/features/location/getLocation.feature +0 -0
- package/tests/bdd/features/markets/getMarketGroupById.feature +0 -0
- package/tests/bdd/features/markets/getMarketGroups.feature +0 -0
- package/tests/bdd/features/markets/getMarketHistory.feature +0 -0
- package/tests/bdd/features/markets/getMarketOrders.feature +0 -0
- package/tests/bdd/features/markets/getMarketPrices.feature +0 -0
- package/tests/bdd/features/markets/getMarketRegionHistory.feature +0 -0
- package/tests/bdd/features/markets/getMarketRegionOrders.feature +0 -0
- package/tests/bdd/features/opportunities/getOpportunitiesGroups.feature +0 -0
- package/tests/bdd/features/opportunities/getOpportunitiesTasks.feature +0 -0
- package/tests/bdd/features/search/postSearch.feature +0 -0
- package/tests/bdd/features/sovereignty/getSovereigntyCampaigns.feature +0 -0
- package/tests/bdd/features/sovereignty/getSovereigntyMap.feature +0 -0
- package/tests/bdd/features/sovereignty/getSovereigntyStructures.feature +0 -0
- package/tests/bdd/features/ui/postUiAutopilotWaypoint.feature +0 -0
- package/tests/bdd/features/ui/postUiOpenWindowContract.feature +0 -0
- package/tests/bdd/features/ui/postUiOpenWindowInformation.feature +0 -0
- package/tests/bdd/features/ui/postUiOpenWindowMarketDetails.feature +0 -0
- package/tests/bdd/features/ui/postUiOpenWindowNewMail.feature +0 -0
- package/tests/bdd/features/universe/getAncestries.feature +0 -0
- package/tests/bdd/features/universe/getAsteroidBelt.feature +0 -0
- package/tests/bdd/features/universe/getBloodlines.feature +0 -0
- package/tests/bdd/features/universe/getCategories.feature +0 -0
- package/tests/bdd/features/universe/getCategoryById.feature +0 -0
- package/tests/bdd/features/universe/getConstellationById.feature +0 -0
- package/tests/bdd/features/universe/getConstellations.feature +0 -0
- package/tests/bdd/features/universe/getFactions.feature +0 -0
- package/tests/bdd/features/universe/getGraphicById.feature +0 -0
- package/tests/bdd/features/universe/getGraphics.feature +0 -0
- package/tests/bdd/features/universe/getGroupById.feature +0 -0
- package/tests/bdd/features/universe/getGroups.feature +0 -0
- package/tests/bdd/features/universe/getMoonById.feature +0 -0
- package/tests/bdd/features/universe/getMoons.feature +0 -0
- package/tests/bdd/features/universe/getPlanetById.feature +0 -0
- package/tests/bdd/features/universe/getPlanets.feature +0 -0
- package/tests/bdd/features/universe/getRaces.feature +0 -0
- package/tests/bdd/features/universe/getRegionById.feature +0 -0
- package/tests/bdd/features/universe/getRegions.feature +0 -0
- package/tests/bdd/features/universe/getStarById.feature +0 -0
- package/tests/bdd/features/universe/getStargateById.feature +0 -0
- package/tests/bdd/features/universe/getStargates.feature +0 -0
- package/tests/bdd/features/universe/getStars.feature +0 -0
- package/tests/bdd/features/universe/getStationById.feature +0 -0
- package/tests/bdd/features/universe/getStations.feature +0 -0
- package/tests/bdd/features/universe/getStructures.feature +0 -0
- package/tests/bdd/features/universe/getSystemById.feature +0 -0
- package/tests/bdd/features/universe/getSystemJumps.feature +0 -0
- package/tests/bdd/features/universe/getSystemKills.feature +0 -0
- package/tests/bdd/features/universe/getSystems.feature +0 -0
- package/tests/bdd/features/universe/getTypeById.feature +0 -0
- package/tests/bdd/features/universe/getTypes.feature +0 -0
- package/tests/bdd/features/universe/getWarById.feature +0 -0
- package/tests/bdd/features/universe/getWars.feature +0 -0
- package/tests/bdd/features/universe/postBulkIdsToNames.feature +0 -0
- package/tests/bdd/features/universe/postBulkNamesToIds.feature +0 -0
- package/tests/bdd/features/universe/postUniverseNames.feature +0 -0
- package/tests/bdd/features/wars/getWarById.feature +0 -0
- package/tests/bdd/features/wars/getWars.feature +0 -0
- package/tests/bdd/steps/alliances/getAllianceById.ts +0 -17
- package/tests/bdd/steps/alliances/getAllianceContactLabels.ts +0 -0
- package/tests/bdd/steps/alliances/getAllianceContacts.ts +0 -0
- package/tests/bdd/steps/alliances/getAllianceCorporations.ts +0 -18
- package/tests/bdd/steps/alliances/getAllianceIcons.ts +0 -21
- package/tests/bdd/steps/alliances/getAlliances.ts +0 -0
- package/tests/bdd/steps/characters/getCharacter.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAffiliation.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAgentsResearch.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAssetLocations.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAssetNames.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAssets.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterAttributes.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterBlueprints.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterBookmarkFolders.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterBookmarks.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterCalendarEventById.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterCalendarEvents.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterClones.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterContractBids.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterContractItems.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterContracts.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterCorporationHistory.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterFatigue.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterFittings.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterFleet.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterFwStats.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterImplants.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterIndustryJobs.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterKillmails.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterLocation.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterLoyaltyPoints.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMail.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMailById.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMailLabels.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMailLists.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMedals.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterMining.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterNotifications.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterNotificationsContacts.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterOpportunities.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterOrderHistory.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterOrders.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterPlanets.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterPortrait.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterRoles.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterSearch.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterShip.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterSkillQueue.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterSkills.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterStandings.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterStats.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterTitles.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterWallet.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterWalletJournal.ts +0 -0
- package/tests/bdd/steps/characters/getCharacterWalletTransactions.ts +0 -0
- package/tests/bdd/steps/contracts/getContractBids.ts +0 -0
- package/tests/bdd/steps/contracts/getContractById.ts +0 -0
- package/tests/bdd/steps/contracts/getContractItems.ts +0 -0
- package/tests/bdd/steps/contracts/getContracts.ts +0 -0
- package/tests/bdd/steps/contracts/getPublicContractBids.ts +0 -0
- package/tests/bdd/steps/contracts/getPublicContractItems.ts +0 -0
- package/tests/bdd/steps/contracts/getPublicContracts.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporation.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationAlliances.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationBlueprints.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationBookmarkFolders.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationBookmarks.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContactLabels.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContacts.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContainerLogs.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContractBids.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContractItems.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationContracts.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationDivisions.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationFacilities.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationFwStats.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationIcons.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationIndustryJobs.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationKillmails.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationMedals.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationMemberLimit.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationMemberTracking.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationMembers.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationMining.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationNotifications.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationOrderHistory.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationOrders.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationOutposts.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationRoles.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationShareholders.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationStandings.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationStarbases.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationStructures.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationTitles.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationWalletJournal.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationWalletTransactions.ts +0 -0
- package/tests/bdd/steps/corporations/getCorporationWallets.ts +0 -0
- package/tests/bdd/steps/dogma/getDogmaAttributeById.ts +0 -0
- package/tests/bdd/steps/dogma/getDogmaAttributes.ts +0 -0
- package/tests/bdd/steps/dogma/getDogmaDynamicItemAttributes.ts +0 -0
- package/tests/bdd/steps/dogma/getDogmaEffectById.ts +0 -0
- package/tests/bdd/steps/dogma/getDogmaEffects.ts +0 -0
- package/tests/bdd/steps/factions/getFactionWarfareLeaderboards.ts +0 -33
- package/tests/bdd/steps/factions/getFactionWarfareStats.ts +0 -34
- package/tests/bdd/steps/factions/getFactionWarfareSystems.ts +0 -33
- package/tests/bdd/steps/factions/getFactionWarfareWars.ts +0 -33
- package/tests/bdd/steps/fleets/getFleetMembers.ts +0 -0
- package/tests/bdd/steps/fleets/getFleetSquads.ts +0 -0
- package/tests/bdd/steps/fleets/getFleetWings.ts +0 -0
- package/tests/bdd/steps/fleets/getFleets.ts +0 -0
- package/tests/bdd/steps/incursions/getIncursions.ts +0 -0
- package/tests/bdd/steps/industry/getIndustryCorporationJobs.ts +0 -0
- package/tests/bdd/steps/industry/getIndustryFacilities.ts +0 -0
- package/tests/bdd/steps/industry/getIndustryJobs.ts +0 -0
- package/tests/bdd/steps/industry/getIndustrySystems.ts +0 -0
- package/tests/bdd/steps/insurance/getInsurancePrices.ts +0 -0
- package/tests/bdd/steps/killmails/getKillmailById.ts +0 -0
- package/tests/bdd/steps/killmails/getKillmails.ts +0 -0
- package/tests/bdd/steps/killmails/getRecentCharacterKillmails.ts +0 -0
- package/tests/bdd/steps/killmails/getRecentCorporationKillmails.ts +0 -0
- package/tests/bdd/steps/location/getLocation.ts +0 -0
- package/tests/bdd/steps/markets/getMarketGroupById.ts +0 -0
- package/tests/bdd/steps/markets/getMarketGroups.ts +0 -0
- package/tests/bdd/steps/markets/getMarketHistory.ts +0 -0
- package/tests/bdd/steps/markets/getMarketOrders.ts +0 -0
- package/tests/bdd/steps/markets/getMarketPrices.ts +0 -0
- package/tests/bdd/steps/markets/getMarketRegionHistory.ts +0 -0
- package/tests/bdd/steps/markets/getMarketRegionOrders.ts +0 -0
- package/tests/bdd/steps/opportunities/getOpportunitiesGroups.ts +0 -0
- package/tests/bdd/steps/opportunities/getOpportunitiesTasks.ts +0 -0
- package/tests/bdd/steps/search/postSearch.ts +0 -0
- package/tests/bdd/steps/sovereignty/getSovereigntyCampaigns.ts +0 -0
- package/tests/bdd/steps/sovereignty/getSovereigntyMap.ts +0 -0
- package/tests/bdd/steps/sovereignty/getSovereigntyStructures.ts +0 -0
- package/tests/bdd/steps/ui/postUiAutopilotWaypoint.ts +0 -0
- package/tests/bdd/steps/ui/postUiOpenWindowContract.ts +0 -0
- package/tests/bdd/steps/ui/postUiOpenWindowInformation.ts +0 -0
- package/tests/bdd/steps/ui/postUiOpenWindowMarketDetails.ts +0 -0
- package/tests/bdd/steps/ui/postUiOpenWindowNewMail.ts +0 -0
- package/tests/bdd/steps/universe/getAncestries.ts +0 -0
- package/tests/bdd/steps/universe/getAsteroidBelt.ts +0 -0
- package/tests/bdd/steps/universe/getBloodlines.ts +0 -0
- package/tests/bdd/steps/universe/getCategories.ts +0 -0
- package/tests/bdd/steps/universe/getCategoryById.ts +0 -0
- package/tests/bdd/steps/universe/getConstellationById.ts +0 -0
- package/tests/bdd/steps/universe/getConstellations.ts +0 -0
- package/tests/bdd/steps/universe/getFactions.ts +0 -0
- package/tests/bdd/steps/universe/getGraphicById.ts +0 -0
- package/tests/bdd/steps/universe/getGraphics.ts +0 -0
- package/tests/bdd/steps/universe/getGroupById.ts +0 -0
- package/tests/bdd/steps/universe/getGroups.ts +0 -0
- package/tests/bdd/steps/universe/getMoonById.ts +0 -0
- package/tests/bdd/steps/universe/getMoons.ts +0 -0
- package/tests/bdd/steps/universe/getPlanetById.ts +0 -0
- package/tests/bdd/steps/universe/getPlanets.ts +0 -0
- package/tests/bdd/steps/universe/getRaces.ts +0 -0
- package/tests/bdd/steps/universe/getRegionById.ts +0 -0
- package/tests/bdd/steps/universe/getRegions.ts +0 -0
- package/tests/bdd/steps/universe/getStarById.ts +0 -0
- package/tests/bdd/steps/universe/getStargateById.ts +0 -0
- package/tests/bdd/steps/universe/getStargates.ts +0 -0
- package/tests/bdd/steps/universe/getStars.ts +0 -0
- package/tests/bdd/steps/universe/getStationById.ts +0 -0
- package/tests/bdd/steps/universe/getStations.ts +0 -0
- package/tests/bdd/steps/universe/getStructures.ts +0 -0
- package/tests/bdd/steps/universe/getSystemById.ts +0 -0
- package/tests/bdd/steps/universe/getSystemJumps.ts +0 -0
- package/tests/bdd/steps/universe/getSystemKills.ts +0 -0
- package/tests/bdd/steps/universe/getSystems.ts +0 -0
- package/tests/bdd/steps/universe/getTypeById.ts +0 -0
- package/tests/bdd/steps/universe/getTypes.ts +0 -0
- package/tests/bdd/steps/universe/getWarById.ts +0 -0
- package/tests/bdd/steps/universe/getWars.ts +0 -0
- package/tests/bdd/steps/universe/postBulkIdsToNames.ts +0 -0
- package/tests/bdd/steps/universe/postBulkNamesToIds.ts +0 -0
- package/tests/bdd/steps/universe/postUniverseNames.ts +0 -0
- package/tests/bdd/steps/wars/getWarById.ts +0 -0
- package/tests/bdd/steps/wars/getWars.ts +0 -0
- package/tests/tdd/alliances/AllianceAPIBuilder.test.ts +0 -24
- package/tests/tdd/alliances/AllianceClient.test.ts +0 -27
- package/tests/tdd/alliances/getAllianceByID.test.ts +0 -61
- package/tests/tdd/alliances/getAllianceContactLabels.test.ts +0 -43
- package/tests/tdd/alliances/getAllianceContacts.test.ts +0 -60
- package/tests/tdd/alliances/getAllianceCorporations.test.ts +0 -39
- package/tests/tdd/alliances/getAllianceIcons.test.ts +0 -39
- package/tests/tdd/alliances/getAlliances.test.ts +0 -38
- package/tests/tdd/assets/AssetsBuilder.test.ts +0 -20
- package/tests/tdd/assets/AssetsClient.test.ts +0 -192
- package/tests/tdd/assets/getCharacterAssetsApi.test.ts +0 -33
- package/tests/tdd/assets/getCorporationAssetsApi.test.ts +0 -55
- package/tests/tdd/assets/postCharacterAssetsLocationApi.test.ts +0 -50
- package/tests/tdd/assets/postCharacterAssetsNamesApi.test.ts +0 -43
- package/tests/tdd/assets/postCorporationAssetLocationsApi.test.ts +0 -48
- package/tests/tdd/assets/postCorporationAssetNamesApi.test.ts +0 -43
- package/tests/tdd/bookmarks/BookmarkApiBuilder.test.ts +0 -21
- package/tests/tdd/bookmarks/BookmarkClient.test.ts +0 -68
- package/tests/tdd/bookmarks/getCharacterBookmarkFolders.test.ts +0 -37
- package/tests/tdd/bookmarks/getCharacterBookmarks.test.ts +0 -42
- package/tests/tdd/bookmarks/getCorporationBookmarkFolders.test.ts +0 -42
- package/tests/tdd/bookmarks/getCorporationBookmarks.test.ts +0 -62
- package/tests/tdd/calendar/CalendarApiBuilder.test.ts +0 -24
- package/tests/tdd/calendar/CalendarClient.test.ts +0 -100
- package/tests/tdd/calendar/getCalendarEventById.test.ts +0 -29
- package/tests/tdd/calendar/getCalendarEvents.test.ts +0 -29
- package/tests/tdd/calendar/getEventAttendees.test.ts +0 -29
- package/tests/tdd/calendar/respondToCalendarEvent.test.ts +0 -29
- package/tests/tdd/characters/CharacterBuilder.test.ts +0 -20
- package/tests/tdd/characters/CharacterClient.test.ts +0 -153
- package/tests/tdd/characters/getAgentsResearch.test.ts +0 -42
- package/tests/tdd/characters/getBlueprints.test.ts +0 -42
- package/tests/tdd/characters/getCharacterPublicInfo.test.ts +0 -37
- package/tests/tdd/characters/getCharacterRoles.test.ts +0 -34
- package/tests/tdd/characters/getCharacterStandings.test.ts +0 -45
- package/tests/tdd/characters/getCharacterTitles.test.ts +0 -40
- package/tests/tdd/characters/getContactNotifications.test.ts +0 -42
- package/tests/tdd/characters/getCorporationHistory.test.ts +0 -42
- package/tests/tdd/characters/getJumpFatigue.test.ts +0 -37
- package/tests/tdd/characters/getMedals.test.ts +0 -42
- package/tests/tdd/characters/getNotifications.test.ts +0 -42
- package/tests/tdd/characters/getPortrait.test.ts +0 -35
- package/tests/tdd/characters/postCSPAChargeCost.test.ts +0 -39
- package/tests/tdd/characters/postCharacterAffiliation.test.ts +0 -48
- package/tests/tdd/clones/ClonesApiBuilder.test.ts +0 -19
- package/tests/tdd/clones/ClonesClient.test.ts +0 -61
- package/tests/tdd/clones/getClonesApi.test.ts +0 -48
- package/tests/tdd/clones/getImplantsApi.test.ts +0 -35
- package/tests/tdd/contacts/ContactsApiBuilder.test.ts +0 -21
- package/tests/tdd/contacts/ContactsClient.test.ts +0 -66
- package/tests/tdd/contacts/deleteCharacterContacts.test.ts +0 -23
- package/tests/tdd/contacts/getAllianceContactLabels.test.ts +0 -33
- package/tests/tdd/contacts/getAllianceContacts.test.ts +0 -37
- package/tests/tdd/contacts/getCharacterContactLabels.test.ts +0 -33
- package/tests/tdd/contacts/getCharacterContacts.test.ts +0 -37
- package/tests/tdd/contacts/getCorporationContactLabels.test.ts +0 -33
- package/tests/tdd/contacts/getCorporationContacts.test.ts +0 -37
- package/tests/tdd/contacts/postCharacterContacts.test.ts +0 -30
- package/tests/tdd/contacts/putCharacterContacts.test.ts +0 -30
- package/tests/tdd/contracts/ContractsApiBuilder.ts +0 -20
- package/tests/tdd/contracts/ContractsClient.ts +0 -247
- package/tests/tdd/contracts/getCharacterContractBids.test.ts +0 -49
- package/tests/tdd/contracts/getCharacterContractItems.test.ts +0 -48
- package/tests/tdd/contracts/getCharacterContracts.test.ts +0 -57
- package/tests/tdd/contracts/getCorporationContractBids.test.ts +0 -48
- package/tests/tdd/contracts/getCorporationContractItems.test.ts +0 -48
- package/tests/tdd/contracts/getCorporationContracts.test.ts +0 -56
- package/tests/tdd/contracts/getPublicContractBids.test.ts +0 -47
- package/tests/tdd/contracts/getPublicContractItems.test.ts +0 -48
- package/tests/tdd/contracts/getPublicContracts.test.ts +0 -58
- package/tests/tdd/corporations/CorporationsApiBuilder.test.ts +0 -20
- package/tests/tdd/corporations/CorporationsClient.test.ts +0 -230
- package/tests/tdd/corporations/getCorporationAllianceHistory.test.ts +0 -45
- package/tests/tdd/corporations/getCorporationAlscLogs.test.ts +0 -57
- package/tests/tdd/corporations/getCorporationBlueprints.test.ts +0 -60
- package/tests/tdd/corporations/getCorporationDivisions.test.ts +0 -64
- package/tests/tdd/corporations/getCorporationFacilities.test.ts +0 -60
- package/tests/tdd/corporations/getCorporationIcon.test.ts +0 -40
- package/tests/tdd/corporations/getCorporationInfo.test.ts +0 -40
- package/tests/tdd/corporations/getCorporationIssuedMedals.test.ts +0 -54
- package/tests/tdd/corporations/getCorporationMedals.test.ts +0 -51
- package/tests/tdd/corporations/getCorporationMemberLimit.test.ts +0 -32
- package/tests/tdd/corporations/getCorporationMemberRoles.test.ts +0 -45
- package/tests/tdd/corporations/getCorporationMemberRolesHistory.test.ts +0 -60
- package/tests/tdd/corporations/getCorporationMemberTracking.test.ts +0 -48
- package/tests/tdd/corporations/getCorporationMembers.test.ts +0 -34
- package/tests/tdd/corporations/getCorporationMembersTitles.test.ts +0 -45
- package/tests/tdd/corporations/getCorporationShareholders.test.ts +0 -45
- package/tests/tdd/corporations/getCorporationStandings.test.ts +0 -45
- package/tests/tdd/corporations/getCorporationStarbaseDetail.test.ts +0 -49
- package/tests/tdd/corporations/getCorporationStarbases.test.ts +0 -54
- package/tests/tdd/corporations/getCorporationStructures.test.ts +0 -54
- package/tests/tdd/corporations/getCorporationTitles.test.ts +0 -66
- package/tests/tdd/corporations/getNpcCorporations.test.ts +0 -34
- package/tests/tdd/dogma/DogmaAPIBuilder.test.ts +0 -13
- package/tests/tdd/dogma/DogmanClient.test.ts +0 -54
- package/tests/tdd/dogma/getDogmaAttributeById.test.ts +0 -22
- package/tests/tdd/dogma/getDogmaAttributes.test.ts +0 -22
- package/tests/tdd/dogma/getDogmaDynamicItemAttributes.test.ts +0 -22
- package/tests/tdd/dogma/getDogmaEffectById.test.ts +0 -22
- package/tests/tdd/dogma/getDogmaEffects.test.ts +0 -22
- package/tests/tdd/factions/FactionApiBuilder.test.ts +0 -17
- package/tests/tdd/factions/FactionClient.test.ts +0 -281
- package/tests/tdd/factions/getCharacterFactionWarfareStats.test.ts +0 -72
- package/tests/tdd/factions/getCharacterLeaderboards.test.ts +0 -103
- package/tests/tdd/factions/getCorporationFactionWarfareStats.test.ts +0 -72
- package/tests/tdd/factions/getCorporationLeaderboards.test.ts +0 -103
- package/tests/tdd/factions/getFactionLeaderboards.test.ts +0 -103
- package/tests/tdd/factions/getFactionWarfareStats.test.ts +0 -77
- package/tests/tdd/factions/getFactionWarfareSystems.test.ts +0 -59
- package/tests/tdd/factions/getFactionWarfareWars.test.ts +0 -43
- package/tests/tdd/fittings/FittingsBuilder.test.ts +0 -22
- package/tests/tdd/fittings/FittingsClient.test.ts +0 -93
- package/tests/tdd/fittings/deleteCharacterFitting.test.ts +0 -22
- package/tests/tdd/fittings/getCharacterFittings.test.ts +0 -57
- package/tests/tdd/fittings/postCharacterFittings.test.ts +0 -47
- package/tests/tdd/fleets/FleetApiBuilder.test.ts +0 -20
- package/tests/tdd/fleets/FleetClient.test.ts +0 -212
- package/tests/tdd/fleets/deleteFleetMember.test.ts +0 -31
- package/tests/tdd/fleets/deleteFleetSquad.test.ts +0 -24
- package/tests/tdd/fleets/deleteFleetWing.test.ts +0 -24
- package/tests/tdd/fleets/getCharacterFleetInfo.test.ts +0 -39
- package/tests/tdd/fleets/getFleetInfo.test.ts +0 -42
- package/tests/tdd/fleets/getFleetMembers.test.ts +0 -45
- package/tests/tdd/fleets/getFleetWings.test.ts +0 -35
- package/tests/tdd/fleets/postFleetInvitation.test.ts +0 -29
- package/tests/tdd/fleets/postFleetSquad.test.ts +0 -22
- package/tests/tdd/fleets/postFleetWing.test.ts +0 -31
- package/tests/tdd/fleets/putFleetMember.test.ts +0 -36
- package/tests/tdd/fleets/putFleetSquad.test.ts +0 -28
- package/tests/tdd/fleets/putFleetWing.test.ts +0 -22
- package/tests/tdd/fleets/updateFleet.test.ts +0 -39
- package/tests/tdd/incursions/IncursionsApiBuilder.test.ts +0 -20
- package/tests/tdd/incursions/IncursionsClient.test.ts +0 -63
- package/tests/tdd/incursions/getIncursions.test.ts +0 -41
- package/tests/tdd/industry/IndustryBuilder.test.ts +0 -20
- package/tests/tdd/industry/IndustryClient.test.ts +0 -354
- package/tests/tdd/industry/getCharacterIndustryJobs.test.ts +0 -80
- package/tests/tdd/industry/getCharacterMiningLedger.test.ts +0 -41
- package/tests/tdd/industry/getCorporationIndustryJobs.test.ts +0 -92
- package/tests/tdd/industry/getCorporationMiningObserver.test.ts +0 -44
- package/tests/tdd/industry/getCorporationMiningObservers.test.ts +0 -38
- package/tests/tdd/industry/getIndustryFacilities.test.ts +0 -47
- package/tests/tdd/industry/getIndustrySystems.test.ts +0 -46
- package/tests/tdd/industry/getMoonExtractionTimers.test.ts +0 -44
- package/tests/tdd/insurance/InsuranceApiBuilder.test.ts +0 -21
- package/tests/tdd/insurance/InsuranceClient.test.ts +0 -50
- package/tests/tdd/insurance/getInsurancePrices.test.ts +0 -51
- package/tests/tdd/killmails/KillmailApiBuilder.test.ts +0 -20
- package/tests/tdd/killmails/KillmailClient.test.ts +0 -110
- package/tests/tdd/killmails/getCharacterRecentKillmails.test.ts +0 -52
- package/tests/tdd/killmails/getCorporationRecentKillmails.test.ts +0 -52
- package/tests/tdd/killmails/getKillmail.test.ts +0 -47
- package/tests/tdd/location/LocationApiBuilder.test.ts +0 -20
- package/tests/tdd/location/LocationClient.test.ts +0 -82
- package/tests/tdd/location/getCharacterLocation.test.ts +0 -41
- package/tests/tdd/location/getCharacterOnline.test.ts +0 -44
- package/tests/tdd/location/getCharacterShip.test.ts +0 -41
- package/tests/tdd/loyalty/LoyaltyApiBuilder.test.ts +0 -20
- package/tests/tdd/loyalty/LoyaltyClient.test.ts +0 -73
- package/tests/tdd/loyalty/getLoyaltyPoints.test.ts +0 -35
- package/tests/tdd/loyalty/getLoyaltyStoreOffers.test.ts +0 -44
- package/tests/tdd/mail/MailApiBuilder.test.ts +0 -20
- package/tests/tdd/mail/MailClient.test.ts +0 -189
- package/tests/tdd/mail/deleteCharacterMail.test.ts +0 -22
- package/tests/tdd/mail/getCharacterMail.test.ts +0 -46
- package/tests/tdd/mail/getCharacterMailHeaders.ts +0 -51
- package/tests/tdd/mail/getCharacterMailLabels.test.ts +0 -44
- package/tests/tdd/mail/postCharacterMail.test.ts +0 -40
- package/tests/tdd/mail/postCharacterMailLabels.test.ts +0 -31
- package/tests/tdd/mail/putCharacterMail.test.ts +0 -27
- package/tests/tdd/market/MarketApiBuilder.test.ts +0 -20
- package/tests/tdd/market/MarketClient.test.ts +0 -398
- package/tests/tdd/market/getCharacterOrderHistory.test.ts +0 -61
- package/tests/tdd/market/getCharacterOrders.test.test.ts +0 -61
- package/tests/tdd/market/getCorporationOrderHistory.test.ts +0 -61
- package/tests/tdd/market/getCorporationOrders.test.ts +0 -61
- package/tests/tdd/market/getMarketGroupInformation.test.ts +0 -43
- package/tests/tdd/market/getMarketGroups.test.ts +0 -48
- package/tests/tdd/market/getMarketHistory.test.ts +0 -49
- package/tests/tdd/market/getMarketOrders.test.ts +0 -59
- package/tests/tdd/market/getMarketOrdersInStructure.test.ts +0 -67
- package/tests/tdd/market/getMarketPrices.test.ts +0 -51
- package/tests/tdd/market/getMarketTypes.test.ts +0 -35
- package/tests/tdd/opportunities/OpportunitiesAPIBuillder.test.ts +0 -25
- package/tests/tdd/opportunities/OpportunitiesClient.test.ts +0 -109
- package/tests/tdd/opportunities/getCharacterOpportunities.test.ts +0 -38
- package/tests/tdd/opportunities/getOpportunitiesGroupById.test.ts +0 -42
- package/tests/tdd/opportunities/getOpportunitiesGroups.test.ts +0 -40
- package/tests/tdd/opportunities/getOpportunitiesTaskById.test.ts +0 -37
- package/tests/tdd/opportunities/getOpportunitiesTasks.test.ts +0 -40
- package/tests/tdd/pi/PiApiBuilder.test.ts +0 -20
- package/tests/tdd/pi/PiClient.test.ts +0 -155
- package/tests/tdd/pi/getColonies.test.ts +0 -47
- package/tests/tdd/pi/getColonyLayout.test.ts +0 -45
- package/tests/tdd/pi/getCorporationCustomsOffices.test.ts +0 -63
- package/tests/tdd/pi/getSchematicInformation.test.ts +0 -36
- package/tests/tdd/route/RouteApiBuilder.ts +0 -20
- package/tests/tdd/route/RouteClient.test.ts +0 -38
- package/tests/tdd/route/getRoute.test.ts +0 -37
- package/tests/tdd/search/characterSearch.test.ts +0 -50
- package/tests/tdd/search/searchApiBuilder.test.ts +0 -17
- package/tests/tdd/search/searchClient.test.ts +0 -40
- package/tests/tdd/skills/SkillsApiBuilder.test.ts +0 -20
- package/tests/tdd/skills/SkillsClient.test.ts +0 -112
- package/tests/tdd/skills/getCharacterAttributes.test.ts +0 -39
- package/tests/tdd/skills/getCharacterSkillQueue.test.ts +0 -48
- package/tests/tdd/skills/getCharacterSkills.test.ts +0 -46
- package/tests/tdd/sovereignty/SovereigntyApiBuilder.test.ts +0 -18
- package/tests/tdd/sovereignty/SovereigntyClient.test.ts +0 -84
- package/tests/tdd/sovereignty/getSovereigntyCampaigns.test.ts +0 -41
- package/tests/tdd/sovereignty/getSovereigntyMap.test.ts +0 -37
- package/tests/tdd/sovereignty/getSovereigntyStructures.test.ts +0 -41
- package/tests/tdd/status/StatusAPIBuilder.test.ts +0 -20
- package/tests/tdd/status/StatusClient.test.ts +0 -38
- package/tests/tdd/status/getStatus.test.ts +0 -45
- package/tests/tdd/ui/UiApiBuilder.test.ts +0 -20
- package/tests/tdd/ui/UiClient.test.ts +0 -81
- package/tests/tdd/ui/postAutopilotWaypoint.test.ts +0 -36
- package/tests/tdd/ui/postOpenContractWindow.test.ts +0 -34
- package/tests/tdd/ui/postOpenInformationWindow.test.ts +0 -34
- package/tests/tdd/ui/postOpenMarketDetailsWindow.test.ts +0 -34
- package/tests/tdd/ui/postOpenNewMailWindow.test.ts +0 -36
- package/tests/tdd/universe/UniverseApiBuilder.test.ts +0 -60
- package/tests/tdd/universe/UniverseClient.test.ts +0 -215
- package/tests/tdd/universe/getAncestries.test.ts +0 -34
- package/tests/tdd/universe/getAsteroidBeltInfo.test.ts +0 -29
- package/tests/tdd/universe/getBloodlines.test.ts +0 -34
- package/tests/tdd/universe/getConstellationById.test.ts +0 -37
- package/tests/tdd/universe/getConstellations.test.ts +0 -34
- package/tests/tdd/universe/getFactions.test.ts +0 -34
- package/tests/tdd/universe/getGraphicById.test.ts +0 -45
- package/tests/tdd/universe/getGraphics.test.ts +0 -34
- package/tests/tdd/universe/getGroupById.test.ts +0 -45
- package/tests/tdd/universe/getItemCategories.test.ts +0 -34
- package/tests/tdd/universe/getItemCategoryById.test.ts +0 -37
- package/tests/tdd/universe/getItemGroups.test.ts +0 -50
- package/tests/tdd/universe/getMoonById.test.ts +0 -59
- package/tests/tdd/universe/getPlanetById.test.ts +0 -63
- package/tests/tdd/universe/getRaces.test.ts +0 -50
- package/tests/tdd/universe/getRegionById.test.ts +0 -53
- package/tests/tdd/universe/getStarById.test.ts +0 -53
- package/tests/tdd/universe/getStargateById.test.ts +0 -63
- package/tests/tdd/universe/getStationById.test.ts +0 -53
- package/tests/tdd/universe/getStructureById.test.ts +0 -71
- package/tests/tdd/universe/getStructures.test.ts +0 -33
- package/tests/tdd/universe/getSystemById.test.ts +0 -49
- package/tests/tdd/universe/getSystemJumps.test.ts +0 -46
- package/tests/tdd/universe/getSystemKills.test.ts +0 -46
- package/tests/tdd/universe/getSystems.test.ts +0 -33
- package/tests/tdd/universe/getTypeById.test.ts +0 -53
- package/tests/tdd/universe/getTypes.test.ts +0 -33
- package/tests/tdd/universe/postBulkNamesToIds.test.ts +0 -47
- package/tests/tdd/universe/postNamesAndCatagories.test.ts +0 -47
- package/tests/tdd/wallet/WalletApiBuilder.test.ts +0 -20
- package/tests/tdd/wallet/WalletClient.test.ts +0 -187
- package/tests/tdd/wallet/getCharacterWallet.test.ts +0 -35
- package/tests/tdd/wallet/getCharacterWalletJournal.test.ts +0 -53
- package/tests/tdd/wallet/getCharacterWalletTransactions.test.ts +0 -57
- package/tests/tdd/wallet/getCorporationWalletJournal.test.ts +0 -53
- package/tests/tdd/wallet/getCorporationWalletTransactions.test.ts +0 -57
- package/tests/tdd/wallet/getCorporationWallets.test.ts +0 -43
- package/tests/tdd/wars/WarsAPIBuilder.test.ts +0 -23
- package/tests/tdd/wars/WarsClient.test.ts +0 -93
- package/tests/tdd/wars/getWarById.test.ts +0 -31
- package/tests/tdd/wars/getWarKillmails.test.ts +0 -33
- package/tests/tdd/wars/getWars.test.ts +0 -33
- package/tsconfig.json +0 -15
- package/types/global.d.ts +0 -17
- package/types/jest.d.ts +0 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleRequest = void 0;
|
|
4
|
+
const error_1 = require("../core/util/error");
|
|
5
|
+
const loggerUtil_1 = require("../core/logger/loggerUtil");
|
|
6
|
+
const headersUtil_1 = require("../core/util/headersUtil");
|
|
7
|
+
const PaginationHandler_1 = require("./pagination/PaginationHandler");
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
const STATUS_MESSAGES = {
|
|
10
|
+
201: 'Created',
|
|
11
|
+
204: 'No Content',
|
|
12
|
+
304: 'Not Modified',
|
|
13
|
+
400: 'Bad Request',
|
|
14
|
+
401: 'Unauthorized',
|
|
15
|
+
403: 'Forbidden',
|
|
16
|
+
404: 'Resource not found',
|
|
17
|
+
420: 'Error Limited',
|
|
18
|
+
422: 'Unprocessable Entity',
|
|
19
|
+
429: 'Too many requests',
|
|
20
|
+
500: 'Internal server error',
|
|
21
|
+
503: 'Service Unavailable',
|
|
22
|
+
504: 'Gateway Timeout',
|
|
23
|
+
520: 'Internal server error, did the request terminate too soon?',
|
|
24
|
+
};
|
|
25
|
+
// --- Dependency resolution ---
|
|
26
|
+
function resolveCache(client) {
|
|
27
|
+
return client.getCache();
|
|
28
|
+
}
|
|
29
|
+
function resolveRateLimiter(client) {
|
|
30
|
+
const limiter = client.getRateLimiter();
|
|
31
|
+
if (!limiter) {
|
|
32
|
+
throw (0, error_1.buildError)('No rate limiter configured on ApiClient. ' +
|
|
33
|
+
'Set one via apiClient.setRateLimiter(new RateLimiter()).', 'CONFIGURATION_ERROR');
|
|
34
|
+
}
|
|
35
|
+
return limiter;
|
|
36
|
+
}
|
|
37
|
+
function resolveCircuitBreaker(client) {
|
|
38
|
+
return client.getCircuitBreaker();
|
|
39
|
+
}
|
|
40
|
+
// --- Pure helpers ---
|
|
41
|
+
const parseCacheControlTtl = (headers) => {
|
|
42
|
+
const cacheControl = headers['cache-control'] || headers['Cache-Control'];
|
|
43
|
+
if (!cacheControl)
|
|
44
|
+
return undefined;
|
|
45
|
+
const match = /max-age=(\d+)/.exec(cacheControl);
|
|
46
|
+
return match ? parseInt(match[1], 10) * 1000 : undefined;
|
|
47
|
+
};
|
|
48
|
+
function buildRequestHeaders(client, url, method, requiresAuth, useETag, body) {
|
|
49
|
+
const headers = {
|
|
50
|
+
accept: 'gzip, deflate, br',
|
|
51
|
+
'User-Agent': constants_1.USER_AGENT,
|
|
52
|
+
'X-Compatibility-Date': constants_1.COMPATIBILITY_DATE,
|
|
53
|
+
};
|
|
54
|
+
if (requiresAuth) {
|
|
55
|
+
const authHeader = client.getAuthorizationHeader();
|
|
56
|
+
if (!authHeader) {
|
|
57
|
+
throw (0, error_1.buildError)('Authorization header is required but not provided', 'NO_AUTH_TOKEN');
|
|
58
|
+
}
|
|
59
|
+
headers['Authorization'] = authHeader;
|
|
60
|
+
}
|
|
61
|
+
const cache = resolveCache(client);
|
|
62
|
+
if (useETag && method === 'GET' && cache) {
|
|
63
|
+
const cachedETag = cache.getETag(url);
|
|
64
|
+
if (cachedETag) {
|
|
65
|
+
headers['If-None-Match'] = cachedETag;
|
|
66
|
+
(0, loggerUtil_1.logDebug)(`Adding If-None-Match header: ${cachedETag}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (body) {
|
|
70
|
+
headers['Content-Type'] = 'application/json';
|
|
71
|
+
}
|
|
72
|
+
return headers;
|
|
73
|
+
}
|
|
74
|
+
function handleEarlyStatus(client, status, url, parsed, useETag) {
|
|
75
|
+
if (status === 201) {
|
|
76
|
+
return { headers: parsed.raw, body: undefined };
|
|
77
|
+
}
|
|
78
|
+
if (status === 204) {
|
|
79
|
+
(0, loggerUtil_1.logInfo)(`No Content for endpoint: ${url}`);
|
|
80
|
+
return { headers: parsed.raw, body: undefined };
|
|
81
|
+
}
|
|
82
|
+
if (status === 304) {
|
|
83
|
+
const cache = resolveCache(client);
|
|
84
|
+
if (useETag && cache) {
|
|
85
|
+
const cachedEntry = cache.get(url);
|
|
86
|
+
if (cachedEntry) {
|
|
87
|
+
(0, loggerUtil_1.logInfo)(`Cache hit (304) for endpoint: ${url}`);
|
|
88
|
+
return {
|
|
89
|
+
headers: { ...cachedEntry.headers, ...parsed.raw },
|
|
90
|
+
body: cachedEntry.data,
|
|
91
|
+
fromCache: true,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
throw new error_1.EsiError(304, 'Not Modified — no cached data available', url, parsed.requestId ?? undefined);
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
function tryStaleCacheResponse(client, url, parsed) {
|
|
100
|
+
const cache = resolveCache(client);
|
|
101
|
+
if (!cache)
|
|
102
|
+
return null;
|
|
103
|
+
const cachedEntry = cache.get(url);
|
|
104
|
+
if (!cachedEntry)
|
|
105
|
+
return null;
|
|
106
|
+
return {
|
|
107
|
+
headers: { ...cachedEntry.headers, ...parsed.raw },
|
|
108
|
+
body: cachedEntry.data,
|
|
109
|
+
fromCache: true,
|
|
110
|
+
stale: true,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function cacheResponse(client, url, method, endpoint, parsed, data, useETag) {
|
|
114
|
+
const cache = resolveCache(client);
|
|
115
|
+
if (useETag && method === 'GET' && cache && parsed.etag) {
|
|
116
|
+
const ttl = parseCacheControlTtl(parsed.raw);
|
|
117
|
+
cache.set(url, parsed.etag, data, parsed.raw, ttl);
|
|
118
|
+
const ttlInfo = ttl ? ` (ttl=${ttl}ms)` : '';
|
|
119
|
+
(0, loggerUtil_1.logDebug)(`Cached response for ${url} with ETag ${parsed.etag}${ttlInfo}`);
|
|
120
|
+
}
|
|
121
|
+
if (method !== 'GET' && cache) {
|
|
122
|
+
cache.deleteByPath(endpoint.split('?')[0]);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
async function parseJsonBody(response, _url) {
|
|
126
|
+
try {
|
|
127
|
+
return (await response.json());
|
|
128
|
+
}
|
|
129
|
+
catch (jsonError) {
|
|
130
|
+
const msg = jsonError instanceof Error ? jsonError.message : String(jsonError);
|
|
131
|
+
(0, loggerUtil_1.logError)(`Failed to parse JSON response: ${msg}`);
|
|
132
|
+
throw (0, error_1.buildError)(`Invalid JSON response: ${msg}`, 'JSON_PARSE_ERROR');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function handleCursorPagination(parsed, data) {
|
|
136
|
+
if (!parsed.hasCursorPagination)
|
|
137
|
+
return null;
|
|
138
|
+
const cursors = {
|
|
139
|
+
before: parsed.cursorBefore,
|
|
140
|
+
after: parsed.cursorAfter,
|
|
141
|
+
};
|
|
142
|
+
return { headers: parsed.raw, body: data, cursors };
|
|
143
|
+
}
|
|
144
|
+
async function handleOffsetPagination(client, endpoint, method, requiresAuth, parsed, data, body, url, useETag, pageFetch) {
|
|
145
|
+
const totalPages = parsed.xPages;
|
|
146
|
+
if (totalPages <= 1) {
|
|
147
|
+
return { headers: parsed.raw, body: data };
|
|
148
|
+
}
|
|
149
|
+
(0, loggerUtil_1.logInfo)(`Found ${totalPages} pages, fetching additional pages with rate limiting...`);
|
|
150
|
+
try {
|
|
151
|
+
const firstPageData = Array.isArray(data) ? data : [data];
|
|
152
|
+
const allData = await PaginationHandler_1.PaginationHandler.fetchRemainingPages(client, endpoint, method, requiresAuth, firstPageData, totalPages, body, {
|
|
153
|
+
maxPages: Math.min(totalPages, 1000),
|
|
154
|
+
stopOnEmptyPage: true,
|
|
155
|
+
maxRetries: 3,
|
|
156
|
+
}, pageFetch);
|
|
157
|
+
cacheResponse(client, url, method, endpoint, parsed, allData, useETag);
|
|
158
|
+
return { headers: parsed.raw, body: allData };
|
|
159
|
+
}
|
|
160
|
+
catch (paginationError) {
|
|
161
|
+
const msg = paginationError instanceof Error
|
|
162
|
+
? paginationError.message
|
|
163
|
+
: String(paginationError);
|
|
164
|
+
(0, loggerUtil_1.logWarn)(`Pagination failed, returning first page only: ${msg}`);
|
|
165
|
+
return { headers: parsed.raw, body: data };
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
// --- Response interceptor wrapper ---
|
|
169
|
+
async function applyResponseInterceptors(client, result, url, endpoint, method, startTime) {
|
|
170
|
+
const middleware = client.getMiddleware();
|
|
171
|
+
if (!middleware.hasInterceptors())
|
|
172
|
+
return result;
|
|
173
|
+
const responseCtx = {
|
|
174
|
+
url,
|
|
175
|
+
endpoint,
|
|
176
|
+
method,
|
|
177
|
+
status: 200,
|
|
178
|
+
headers: result.headers,
|
|
179
|
+
body: result.body,
|
|
180
|
+
durationMs: Date.now() - startTime,
|
|
181
|
+
fromCache: result.fromCache ?? false,
|
|
182
|
+
};
|
|
183
|
+
const modified = await middleware.applyResponseInterceptors(responseCtx);
|
|
184
|
+
return {
|
|
185
|
+
...result,
|
|
186
|
+
headers: modified.headers,
|
|
187
|
+
body: modified.body,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
// --- Main request functions ---
|
|
191
|
+
async function applyRequestMiddleware(client, url, endpoint, method, headers, body) {
|
|
192
|
+
const middleware = client.getMiddleware();
|
|
193
|
+
if (!middleware.hasInterceptors()) {
|
|
194
|
+
return { url, headers, body };
|
|
195
|
+
}
|
|
196
|
+
const reqCtx = {
|
|
197
|
+
url,
|
|
198
|
+
endpoint,
|
|
199
|
+
method,
|
|
200
|
+
headers: { ...headers },
|
|
201
|
+
body,
|
|
202
|
+
};
|
|
203
|
+
const modified = await middleware.applyRequestInterceptors(reqCtx);
|
|
204
|
+
return {
|
|
205
|
+
url: modified.url,
|
|
206
|
+
headers: modified.headers,
|
|
207
|
+
body: modified.body,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function handleErrorResponse(client, response, url, parsed, useETag) {
|
|
211
|
+
const errorMessage = STATUS_MESSAGES[response.status] || response.statusText;
|
|
212
|
+
if (response.status >= 500 && useETag) {
|
|
213
|
+
const staleResult = tryStaleCacheResponse(client, url, parsed);
|
|
214
|
+
if (staleResult) {
|
|
215
|
+
(0, loggerUtil_1.logWarn)(`${errorMessage} for ${url} — serving stale cache`);
|
|
216
|
+
return staleResult;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (response.status === 420 || response.status === 429) {
|
|
220
|
+
(0, loggerUtil_1.logWarn)(`Rate limited (${response.status}) on ${url}`);
|
|
221
|
+
}
|
|
222
|
+
throw new error_1.EsiError(response.status, errorMessage, url, parsed.requestId ?? undefined);
|
|
223
|
+
}
|
|
224
|
+
function wrapError(error) {
|
|
225
|
+
if (error instanceof error_1.EsiError) {
|
|
226
|
+
throw error;
|
|
227
|
+
}
|
|
228
|
+
if (error instanceof Error) {
|
|
229
|
+
(0, loggerUtil_1.logError)(`Unexpected error: ${error.message}`);
|
|
230
|
+
throw (0, error_1.buildError)(error.message, 'ESIJS_ERROR');
|
|
231
|
+
}
|
|
232
|
+
(0, loggerUtil_1.logError)(`Unexpected error: ${String(error)}`);
|
|
233
|
+
throw (0, error_1.buildError)(String(error), 'ESIJS_ERROR');
|
|
234
|
+
}
|
|
235
|
+
async function executeSingleFetch(client, endpoint, method, body, requiresAuth, useETag) {
|
|
236
|
+
const rawUrl = `${client.getLink()}/${endpoint}`;
|
|
237
|
+
const builtHeaders = buildRequestHeaders(client, rawUrl, method, requiresAuth, useETag, body);
|
|
238
|
+
const req = await applyRequestMiddleware(client, rawUrl, endpoint, method, builtHeaders, body);
|
|
239
|
+
const options = {
|
|
240
|
+
method,
|
|
241
|
+
headers: req.headers,
|
|
242
|
+
body: req.body ? JSON.stringify(req.body) : undefined,
|
|
243
|
+
};
|
|
244
|
+
const url = req.url;
|
|
245
|
+
(0, loggerUtil_1.logInfo)(`Hitting endpoint: ${url}`);
|
|
246
|
+
const cb = resolveCircuitBreaker(client);
|
|
247
|
+
if (cb)
|
|
248
|
+
cb.checkCircuit(endpoint);
|
|
249
|
+
const rateLimiter = resolveRateLimiter(client);
|
|
250
|
+
await rateLimiter.checkRateLimit();
|
|
251
|
+
const timeoutMs = client.getTimeout();
|
|
252
|
+
const controller = new AbortController();
|
|
253
|
+
const timer = globalThis.setTimeout(() => controller.abort(), timeoutMs);
|
|
254
|
+
options.signal = controller.signal;
|
|
255
|
+
let response;
|
|
256
|
+
try {
|
|
257
|
+
response = await fetch(url, options);
|
|
258
|
+
}
|
|
259
|
+
catch (err) {
|
|
260
|
+
clearTimeout(timer);
|
|
261
|
+
if (err instanceof Error && err.name === 'AbortError') {
|
|
262
|
+
throw new error_1.EsiError(0, `Request timed out after ${timeoutMs}ms`, url);
|
|
263
|
+
}
|
|
264
|
+
throw err;
|
|
265
|
+
}
|
|
266
|
+
clearTimeout(timer);
|
|
267
|
+
const parsed = (0, headersUtil_1.parseHeaders)(response.headers);
|
|
268
|
+
rateLimiter.updateFromResponse(parsed.raw, response.status);
|
|
269
|
+
if (cb) {
|
|
270
|
+
if (response.status >= 500)
|
|
271
|
+
cb.recordFailure(endpoint, response.status);
|
|
272
|
+
else
|
|
273
|
+
cb.recordSuccess(endpoint);
|
|
274
|
+
}
|
|
275
|
+
if (parsed.warning) {
|
|
276
|
+
(0, loggerUtil_1.logWarn)(`ESI Warning ${parsed.warning.code} for ${url}: ${parsed.warning.message}`);
|
|
277
|
+
}
|
|
278
|
+
return { response, parsed, url };
|
|
279
|
+
}
|
|
280
|
+
async function fetchOnePage(client, endpoint, method, body, requiresAuth = false, useETag = false) {
|
|
281
|
+
const { response, parsed, url } = await executeSingleFetch(client, endpoint, method, body, requiresAuth, useETag);
|
|
282
|
+
if (!response.ok) {
|
|
283
|
+
throw new error_1.EsiError(response.status, STATUS_MESSAGES[response.status] || response.statusText, url, parsed.requestId ?? undefined);
|
|
284
|
+
}
|
|
285
|
+
const data = await parseJsonBody(response, url);
|
|
286
|
+
return { data, parsed, url };
|
|
287
|
+
}
|
|
288
|
+
const executeRequest = async (client, endpoint, method, body, requiresAuth = false, useETag = true) => {
|
|
289
|
+
const startTime = Date.now();
|
|
290
|
+
const finish = (r) => {
|
|
291
|
+
const rawUrl = `${client.getLink()}/${endpoint}`;
|
|
292
|
+
return applyResponseInterceptors(client, r, rawUrl, endpoint, method, startTime);
|
|
293
|
+
};
|
|
294
|
+
try {
|
|
295
|
+
const { response, parsed, url } = await executeSingleFetch(client, endpoint, method, body, requiresAuth, useETag);
|
|
296
|
+
if (response.status === 201) {
|
|
297
|
+
let data;
|
|
298
|
+
try {
|
|
299
|
+
data = (await response.json());
|
|
300
|
+
}
|
|
301
|
+
catch {
|
|
302
|
+
data = undefined;
|
|
303
|
+
}
|
|
304
|
+
return finish({ headers: parsed.raw, body: data });
|
|
305
|
+
}
|
|
306
|
+
const earlyResult = handleEarlyStatus(client, response.status, url, parsed, useETag);
|
|
307
|
+
if (earlyResult)
|
|
308
|
+
return finish(earlyResult);
|
|
309
|
+
if (!response.ok) {
|
|
310
|
+
const staleOrThrow = handleErrorResponse(client, response, url, parsed, useETag);
|
|
311
|
+
return finish(staleOrThrow);
|
|
312
|
+
}
|
|
313
|
+
const data = await parseJsonBody(response, url);
|
|
314
|
+
cacheResponse(client, url, method, endpoint, parsed, data, useETag);
|
|
315
|
+
const cursorResult = handleCursorPagination(parsed, data);
|
|
316
|
+
if (cursorResult)
|
|
317
|
+
return finish(cursorResult);
|
|
318
|
+
const pageFetch = async (paginatedEndpoint) => {
|
|
319
|
+
const result = await fetchOnePage(client, paginatedEndpoint, method, body, requiresAuth);
|
|
320
|
+
return Array.isArray(result.data)
|
|
321
|
+
? result.data
|
|
322
|
+
: [result.data];
|
|
323
|
+
};
|
|
324
|
+
const paginatedResult = await handleOffsetPagination(client, endpoint, method, requiresAuth, parsed, data, body, url, useETag, pageFetch);
|
|
325
|
+
return finish(paginatedResult);
|
|
326
|
+
}
|
|
327
|
+
catch (error) {
|
|
328
|
+
wrapError(error);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
const handleRequest = async (client, endpoint, method, body, requiresAuth = false, useETag = true) => {
|
|
332
|
+
const doExecute = () => executeRequest(client, endpoint, method, body, requiresAuth, useETag);
|
|
333
|
+
const dedup = client.getDeduplicator();
|
|
334
|
+
const canDedup = dedup && method === 'GET' && !body;
|
|
335
|
+
try {
|
|
336
|
+
return canDedup
|
|
337
|
+
? await dedup.dedupe(endpoint, doExecute)
|
|
338
|
+
: await doExecute();
|
|
339
|
+
}
|
|
340
|
+
catch (error) {
|
|
341
|
+
if (error instanceof error_1.EsiError &&
|
|
342
|
+
error.statusCode === 401 &&
|
|
343
|
+
requiresAuth &&
|
|
344
|
+
client.hasTokenProvider()) {
|
|
345
|
+
(0, loggerUtil_1.logInfo)('Received 401, attempting token refresh...');
|
|
346
|
+
try {
|
|
347
|
+
await client.refreshToken();
|
|
348
|
+
(0, loggerUtil_1.logInfo)('Token refreshed, retrying request');
|
|
349
|
+
return await executeRequest(client, endpoint, method, body, requiresAuth, useETag);
|
|
350
|
+
}
|
|
351
|
+
catch (refreshError) {
|
|
352
|
+
if (refreshError instanceof error_1.EsiError) {
|
|
353
|
+
throw refreshError;
|
|
354
|
+
}
|
|
355
|
+
const msg = refreshError instanceof Error
|
|
356
|
+
? refreshError.message
|
|
357
|
+
: String(refreshError);
|
|
358
|
+
(0, loggerUtil_1.logError)(`Token refresh failed: ${msg}`);
|
|
359
|
+
throw (0, error_1.buildError)(`Token refresh failed: ${msg}`, 'TOKEN_REFRESH_FAILED');
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
throw error;
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
exports.handleRequest = handleRequest;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApiClient } from './ApiClient';
|
|
2
|
+
import { AllianceClient } from '../clients/AllianceClient';
|
|
3
|
+
import { AssetsClient } from '../clients/AssetsClient';
|
|
4
|
+
import { CalendarClient } from '../clients/CalendarClient';
|
|
5
|
+
import { CharacterClient } from '../clients/CharacterClient';
|
|
6
|
+
import { ClonesClient } from '../clients/ClonesClient';
|
|
7
|
+
import { ContactsClient } from '../clients/ContactsClient';
|
|
8
|
+
import { ContractsClient } from '../clients/ContractsClient';
|
|
9
|
+
import { CorporationsClient } from '../clients/CorporationsClient';
|
|
10
|
+
import { DogmaClient } from '../clients/DogmaClient';
|
|
11
|
+
import { FactionClient } from '../clients/FactionClient';
|
|
12
|
+
import { FittingsClient } from '../clients/FittingsClient';
|
|
13
|
+
import { FleetClient } from '../clients/FleetClient';
|
|
14
|
+
import { IncursionsClient } from '../clients/IncursionsClient';
|
|
15
|
+
import { IndustryClient } from '../clients/IndustryClient';
|
|
16
|
+
import { InsuranceClient } from '../clients/InsuranceClient';
|
|
17
|
+
import { KillmailsClient } from '../clients/KillmailsClient';
|
|
18
|
+
import { LocationClient } from '../clients/LocationClient';
|
|
19
|
+
import { LoyaltyClient } from '../clients/LoyaltyClient';
|
|
20
|
+
import { MailClient } from '../clients/MailClient';
|
|
21
|
+
import { MarketClient } from '../clients/MarketClient';
|
|
22
|
+
import { PiClient } from '../clients/PiClient';
|
|
23
|
+
import { RouteClient } from '../clients/RouteClient';
|
|
24
|
+
import { SearchClient } from '../clients/SearchClient';
|
|
25
|
+
import { CharacterSkillsClient } from '../clients/SkillsClient';
|
|
26
|
+
import { SovereigntyClient } from '../clients/SovereigntyClient';
|
|
27
|
+
import { StatusClient } from '../clients/StatusClient';
|
|
28
|
+
import { UiClient } from '../clients/UiClient';
|
|
29
|
+
import { UniverseClient } from '../clients/UniverseClient';
|
|
30
|
+
import { WalletClient } from '../clients/WalletClient';
|
|
31
|
+
import { WarsClient } from '../clients/WarsClient';
|
|
32
|
+
import { MetaClient } from '../clients/MetaClient';
|
|
33
|
+
import { FreelanceJobsClient } from '../clients/FreelanceJobsClient';
|
|
34
|
+
export type ApiClientType = 'alliance' | 'assets' | 'calendar' | 'characters' | 'clones' | 'contacts' | 'contracts' | 'corporations' | 'dogma' | 'factions' | 'fittings' | 'fleets' | 'incursions' | 'industry' | 'insurance' | 'killmails' | 'location' | 'loyalty' | 'mail' | 'market' | 'pi' | 'route' | 'search' | 'skills' | 'sovereignty' | 'status' | 'ui' | 'universe' | 'wallet' | 'wars' | 'meta' | 'freelanceJobs';
|
|
35
|
+
export type ClientInstance = AllianceClient | AssetsClient | CalendarClient | CharacterClient | ClonesClient | ContactsClient | ContractsClient | CorporationsClient | DogmaClient | FactionClient | FittingsClient | FleetClient | IncursionsClient | IndustryClient | InsuranceClient | KillmailsClient | LocationClient | LoyaltyClient | MailClient | MarketClient | PiClient | RouteClient | SearchClient | CharacterSkillsClient | SovereigntyClient | StatusClient | UiClient | UniverseClient | WalletClient | WarsClient | MetaClient | FreelanceJobsClient;
|
|
36
|
+
export declare function createClientInstance(name: ApiClientType, apiClient: ApiClient): ClientInstance;
|
|
37
|
+
export declare const allClientTypes: ApiClientType[];
|
|
38
|
+
export { AllianceClient, AssetsClient, CalendarClient, CharacterClient, ClonesClient, ContactsClient, ContractsClient, CorporationsClient, DogmaClient, FactionClient, FittingsClient, FleetClient, IncursionsClient, IndustryClient, InsuranceClient, KillmailsClient, LocationClient, LoyaltyClient, MailClient, MarketClient, PiClient, RouteClient, SearchClient, CharacterSkillsClient, SovereigntyClient, StatusClient, UiClient, UniverseClient, WalletClient, WarsClient, MetaClient, FreelanceJobsClient, };
|
|
39
|
+
//# sourceMappingURL=ClientRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientRegistry.d.ts","sourceRoot":"","sources":["../../src/core/ClientRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,WAAW,GACX,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,SAAS,GACT,MAAM,GACN,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,IAAI,GACJ,UAAU,GACV,QAAQ,GACR,MAAM,GACN,MAAM,GACN,eAAe,CAAC;AAEpB,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,YAAY,GACZ,cAAc,GACd,eAAe,GACf,YAAY,GACZ,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,aAAa,GACb,cAAc,GACd,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,cAAc,GACd,aAAa,GACb,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,qBAAqB,GACrB,iBAAiB,GACjB,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,UAAU,GACV,UAAU,GACV,mBAAmB,CAAC;AAwCxB,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,SAAS,GACnB,cAAc,CAGhB;AAED,eAAO,MAAM,cAAc,EAAE,aAAa,EAEtB,CAAC;AAGrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,UAAU,EACV,UAAU,EACV,mBAAmB,GACpB,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FreelanceJobsClient = exports.MetaClient = exports.WarsClient = exports.WalletClient = exports.UniverseClient = exports.UiClient = exports.StatusClient = exports.SovereigntyClient = exports.CharacterSkillsClient = exports.SearchClient = exports.RouteClient = exports.PiClient = exports.MarketClient = exports.MailClient = exports.LoyaltyClient = exports.LocationClient = exports.KillmailsClient = exports.InsuranceClient = exports.IndustryClient = exports.IncursionsClient = exports.FleetClient = exports.FittingsClient = exports.FactionClient = exports.DogmaClient = exports.CorporationsClient = exports.ContractsClient = exports.ContactsClient = exports.ClonesClient = exports.CharacterClient = exports.CalendarClient = exports.AssetsClient = exports.AllianceClient = exports.allClientTypes = void 0;
|
|
4
|
+
exports.createClientInstance = createClientInstance;
|
|
5
|
+
const AllianceClient_1 = require("../clients/AllianceClient");
|
|
6
|
+
Object.defineProperty(exports, "AllianceClient", { enumerable: true, get: function () { return AllianceClient_1.AllianceClient; } });
|
|
7
|
+
const AssetsClient_1 = require("../clients/AssetsClient");
|
|
8
|
+
Object.defineProperty(exports, "AssetsClient", { enumerable: true, get: function () { return AssetsClient_1.AssetsClient; } });
|
|
9
|
+
const CalendarClient_1 = require("../clients/CalendarClient");
|
|
10
|
+
Object.defineProperty(exports, "CalendarClient", { enumerable: true, get: function () { return CalendarClient_1.CalendarClient; } });
|
|
11
|
+
const CharacterClient_1 = require("../clients/CharacterClient");
|
|
12
|
+
Object.defineProperty(exports, "CharacterClient", { enumerable: true, get: function () { return CharacterClient_1.CharacterClient; } });
|
|
13
|
+
const ClonesClient_1 = require("../clients/ClonesClient");
|
|
14
|
+
Object.defineProperty(exports, "ClonesClient", { enumerable: true, get: function () { return ClonesClient_1.ClonesClient; } });
|
|
15
|
+
const ContactsClient_1 = require("../clients/ContactsClient");
|
|
16
|
+
Object.defineProperty(exports, "ContactsClient", { enumerable: true, get: function () { return ContactsClient_1.ContactsClient; } });
|
|
17
|
+
const ContractsClient_1 = require("../clients/ContractsClient");
|
|
18
|
+
Object.defineProperty(exports, "ContractsClient", { enumerable: true, get: function () { return ContractsClient_1.ContractsClient; } });
|
|
19
|
+
const CorporationsClient_1 = require("../clients/CorporationsClient");
|
|
20
|
+
Object.defineProperty(exports, "CorporationsClient", { enumerable: true, get: function () { return CorporationsClient_1.CorporationsClient; } });
|
|
21
|
+
const DogmaClient_1 = require("../clients/DogmaClient");
|
|
22
|
+
Object.defineProperty(exports, "DogmaClient", { enumerable: true, get: function () { return DogmaClient_1.DogmaClient; } });
|
|
23
|
+
const FactionClient_1 = require("../clients/FactionClient");
|
|
24
|
+
Object.defineProperty(exports, "FactionClient", { enumerable: true, get: function () { return FactionClient_1.FactionClient; } });
|
|
25
|
+
const FittingsClient_1 = require("../clients/FittingsClient");
|
|
26
|
+
Object.defineProperty(exports, "FittingsClient", { enumerable: true, get: function () { return FittingsClient_1.FittingsClient; } });
|
|
27
|
+
const FleetClient_1 = require("../clients/FleetClient");
|
|
28
|
+
Object.defineProperty(exports, "FleetClient", { enumerable: true, get: function () { return FleetClient_1.FleetClient; } });
|
|
29
|
+
const IncursionsClient_1 = require("../clients/IncursionsClient");
|
|
30
|
+
Object.defineProperty(exports, "IncursionsClient", { enumerable: true, get: function () { return IncursionsClient_1.IncursionsClient; } });
|
|
31
|
+
const IndustryClient_1 = require("../clients/IndustryClient");
|
|
32
|
+
Object.defineProperty(exports, "IndustryClient", { enumerable: true, get: function () { return IndustryClient_1.IndustryClient; } });
|
|
33
|
+
const InsuranceClient_1 = require("../clients/InsuranceClient");
|
|
34
|
+
Object.defineProperty(exports, "InsuranceClient", { enumerable: true, get: function () { return InsuranceClient_1.InsuranceClient; } });
|
|
35
|
+
const KillmailsClient_1 = require("../clients/KillmailsClient");
|
|
36
|
+
Object.defineProperty(exports, "KillmailsClient", { enumerable: true, get: function () { return KillmailsClient_1.KillmailsClient; } });
|
|
37
|
+
const LocationClient_1 = require("../clients/LocationClient");
|
|
38
|
+
Object.defineProperty(exports, "LocationClient", { enumerable: true, get: function () { return LocationClient_1.LocationClient; } });
|
|
39
|
+
const LoyaltyClient_1 = require("../clients/LoyaltyClient");
|
|
40
|
+
Object.defineProperty(exports, "LoyaltyClient", { enumerable: true, get: function () { return LoyaltyClient_1.LoyaltyClient; } });
|
|
41
|
+
const MailClient_1 = require("../clients/MailClient");
|
|
42
|
+
Object.defineProperty(exports, "MailClient", { enumerable: true, get: function () { return MailClient_1.MailClient; } });
|
|
43
|
+
const MarketClient_1 = require("../clients/MarketClient");
|
|
44
|
+
Object.defineProperty(exports, "MarketClient", { enumerable: true, get: function () { return MarketClient_1.MarketClient; } });
|
|
45
|
+
const PiClient_1 = require("../clients/PiClient");
|
|
46
|
+
Object.defineProperty(exports, "PiClient", { enumerable: true, get: function () { return PiClient_1.PiClient; } });
|
|
47
|
+
const RouteClient_1 = require("../clients/RouteClient");
|
|
48
|
+
Object.defineProperty(exports, "RouteClient", { enumerable: true, get: function () { return RouteClient_1.RouteClient; } });
|
|
49
|
+
const SearchClient_1 = require("../clients/SearchClient");
|
|
50
|
+
Object.defineProperty(exports, "SearchClient", { enumerable: true, get: function () { return SearchClient_1.SearchClient; } });
|
|
51
|
+
const SkillsClient_1 = require("../clients/SkillsClient");
|
|
52
|
+
Object.defineProperty(exports, "CharacterSkillsClient", { enumerable: true, get: function () { return SkillsClient_1.CharacterSkillsClient; } });
|
|
53
|
+
const SovereigntyClient_1 = require("../clients/SovereigntyClient");
|
|
54
|
+
Object.defineProperty(exports, "SovereigntyClient", { enumerable: true, get: function () { return SovereigntyClient_1.SovereigntyClient; } });
|
|
55
|
+
const StatusClient_1 = require("../clients/StatusClient");
|
|
56
|
+
Object.defineProperty(exports, "StatusClient", { enumerable: true, get: function () { return StatusClient_1.StatusClient; } });
|
|
57
|
+
const UiClient_1 = require("../clients/UiClient");
|
|
58
|
+
Object.defineProperty(exports, "UiClient", { enumerable: true, get: function () { return UiClient_1.UiClient; } });
|
|
59
|
+
const UniverseClient_1 = require("../clients/UniverseClient");
|
|
60
|
+
Object.defineProperty(exports, "UniverseClient", { enumerable: true, get: function () { return UniverseClient_1.UniverseClient; } });
|
|
61
|
+
const WalletClient_1 = require("../clients/WalletClient");
|
|
62
|
+
Object.defineProperty(exports, "WalletClient", { enumerable: true, get: function () { return WalletClient_1.WalletClient; } });
|
|
63
|
+
const WarsClient_1 = require("../clients/WarsClient");
|
|
64
|
+
Object.defineProperty(exports, "WarsClient", { enumerable: true, get: function () { return WarsClient_1.WarsClient; } });
|
|
65
|
+
const MetaClient_1 = require("../clients/MetaClient");
|
|
66
|
+
Object.defineProperty(exports, "MetaClient", { enumerable: true, get: function () { return MetaClient_1.MetaClient; } });
|
|
67
|
+
const FreelanceJobsClient_1 = require("../clients/FreelanceJobsClient");
|
|
68
|
+
Object.defineProperty(exports, "FreelanceJobsClient", { enumerable: true, get: function () { return FreelanceJobsClient_1.FreelanceJobsClient; } });
|
|
69
|
+
const clientFactories = {
|
|
70
|
+
alliance: AllianceClient_1.AllianceClient,
|
|
71
|
+
assets: AssetsClient_1.AssetsClient,
|
|
72
|
+
calendar: CalendarClient_1.CalendarClient,
|
|
73
|
+
characters: CharacterClient_1.CharacterClient,
|
|
74
|
+
clones: ClonesClient_1.ClonesClient,
|
|
75
|
+
contacts: ContactsClient_1.ContactsClient,
|
|
76
|
+
contracts: ContractsClient_1.ContractsClient,
|
|
77
|
+
corporations: CorporationsClient_1.CorporationsClient,
|
|
78
|
+
dogma: DogmaClient_1.DogmaClient,
|
|
79
|
+
factions: FactionClient_1.FactionClient,
|
|
80
|
+
fittings: FittingsClient_1.FittingsClient,
|
|
81
|
+
fleets: FleetClient_1.FleetClient,
|
|
82
|
+
incursions: IncursionsClient_1.IncursionsClient,
|
|
83
|
+
industry: IndustryClient_1.IndustryClient,
|
|
84
|
+
insurance: InsuranceClient_1.InsuranceClient,
|
|
85
|
+
killmails: KillmailsClient_1.KillmailsClient,
|
|
86
|
+
location: LocationClient_1.LocationClient,
|
|
87
|
+
loyalty: LoyaltyClient_1.LoyaltyClient,
|
|
88
|
+
mail: MailClient_1.MailClient,
|
|
89
|
+
market: MarketClient_1.MarketClient,
|
|
90
|
+
pi: PiClient_1.PiClient,
|
|
91
|
+
route: RouteClient_1.RouteClient,
|
|
92
|
+
search: SearchClient_1.SearchClient,
|
|
93
|
+
skills: SkillsClient_1.CharacterSkillsClient,
|
|
94
|
+
sovereignty: SovereigntyClient_1.SovereigntyClient,
|
|
95
|
+
status: StatusClient_1.StatusClient,
|
|
96
|
+
ui: UiClient_1.UiClient,
|
|
97
|
+
universe: UniverseClient_1.UniverseClient,
|
|
98
|
+
wallet: WalletClient_1.WalletClient,
|
|
99
|
+
wars: WarsClient_1.WarsClient,
|
|
100
|
+
meta: MetaClient_1.MetaClient,
|
|
101
|
+
freelanceJobs: FreelanceJobsClient_1.FreelanceJobsClient,
|
|
102
|
+
};
|
|
103
|
+
function createClientInstance(name, apiClient) {
|
|
104
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
105
|
+
return new clientFactories[name](apiClient);
|
|
106
|
+
}
|
|
107
|
+
exports.allClientTypes = Object.keys(clientFactories);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ApiClient } from './ApiClient';
|
|
2
|
+
import { ETagCacheConfig } from './cache/ETagCacheManager';
|
|
3
|
+
import { RequestDeduplicator } from './RequestDeduplicator';
|
|
4
|
+
export interface CacheStats {
|
|
5
|
+
totalEntries: number;
|
|
6
|
+
maxEntries: number;
|
|
7
|
+
hits: number;
|
|
8
|
+
misses: number;
|
|
9
|
+
hitRate: number;
|
|
10
|
+
oldestEntry: number | null;
|
|
11
|
+
newestEntry: number | null;
|
|
12
|
+
}
|
|
13
|
+
export interface CircuitBreakerStats {
|
|
14
|
+
totalCircuits: number;
|
|
15
|
+
openCircuits: number;
|
|
16
|
+
circuits: Record<string, {
|
|
17
|
+
state: 'closed' | 'open' | 'half-open';
|
|
18
|
+
failures: number;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export declare class EsiDiagnostics {
|
|
22
|
+
private apiClient;
|
|
23
|
+
private etagCacheEnabled;
|
|
24
|
+
private deduplicator;
|
|
25
|
+
constructor(apiClient: ApiClient, etagCacheEnabled: boolean, deduplicator: RequestDeduplicator | null);
|
|
26
|
+
getCacheStats(): CacheStats | null;
|
|
27
|
+
clearCache(): void;
|
|
28
|
+
updateCacheConfig(newConfig: Partial<ETagCacheConfig>): void;
|
|
29
|
+
getCircuitBreakerStats(): CircuitBreakerStats | null;
|
|
30
|
+
resetCircuitBreaker(endpoint?: string): void;
|
|
31
|
+
getDeduplicatorStats(): {
|
|
32
|
+
pendingRequests: number;
|
|
33
|
+
} | null;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=EsiDiagnostics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EsiDiagnostics.d.ts","sourceRoot":"","sources":["../../src/core/EsiDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAoB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CACd,MAAM,EACN;QAAE,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAC7D,CAAC;CACH;AAED,qBAAa,cAAc;IAEvB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,YAAY;gBAFZ,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,OAAO,EACzB,YAAY,EAAE,mBAAmB,GAAG,IAAI;IAGlD,aAAa,IAAI,UAAU,GAAG,IAAI;IAMlC,UAAU,IAAI,IAAI;IAOlB,iBAAiB,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAO5D,sBAAsB,IAAI,mBAAmB,GAAG,IAAI;IAKpD,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAO5C,oBAAoB,IAAI;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAK3D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsiDiagnostics = void 0;
|
|
4
|
+
class EsiDiagnostics {
|
|
5
|
+
apiClient;
|
|
6
|
+
etagCacheEnabled;
|
|
7
|
+
deduplicator;
|
|
8
|
+
constructor(apiClient, etagCacheEnabled, deduplicator) {
|
|
9
|
+
this.apiClient = apiClient;
|
|
10
|
+
this.etagCacheEnabled = etagCacheEnabled;
|
|
11
|
+
this.deduplicator = deduplicator;
|
|
12
|
+
}
|
|
13
|
+
getCacheStats() {
|
|
14
|
+
if (!this.etagCacheEnabled)
|
|
15
|
+
return null;
|
|
16
|
+
const cache = this.apiClient.getCache();
|
|
17
|
+
return cache ? cache.getStats() : null;
|
|
18
|
+
}
|
|
19
|
+
clearCache() {
|
|
20
|
+
const cache = this.apiClient.getCache();
|
|
21
|
+
if (cache) {
|
|
22
|
+
cache.clear();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
updateCacheConfig(newConfig) {
|
|
26
|
+
const cache = this.apiClient.getCache();
|
|
27
|
+
if (cache) {
|
|
28
|
+
cache.updateConfig(newConfig);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
getCircuitBreakerStats() {
|
|
32
|
+
const cb = this.apiClient.getCircuitBreaker();
|
|
33
|
+
return cb ? cb.getStats() : null;
|
|
34
|
+
}
|
|
35
|
+
resetCircuitBreaker(endpoint) {
|
|
36
|
+
const cb = this.apiClient.getCircuitBreaker();
|
|
37
|
+
if (cb) {
|
|
38
|
+
cb.reset(endpoint);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
getDeduplicatorStats() {
|
|
42
|
+
return this.deduplicator
|
|
43
|
+
? { pendingRequests: this.deduplicator.pending }
|
|
44
|
+
: null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.EsiDiagnostics = EsiDiagnostics;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestDeduplicator.d.ts","sourceRoot":"","sources":["../../src/core/RequestDeduplicator.ts"],"names":[],"mappings":"AAEA,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAuC;IAEjD,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAenE,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestDeduplicator = void 0;
|
|
4
|
+
const loggerUtil_1 = require("./logger/loggerUtil");
|
|
5
|
+
class RequestDeduplicator {
|
|
6
|
+
inflight = new Map();
|
|
7
|
+
async dedupe(key, execute) {
|
|
8
|
+
const existing = this.inflight.get(key);
|
|
9
|
+
if (existing) {
|
|
10
|
+
(0, loggerUtil_1.logDebug)(`[Dedup] Coalescing request: ${key}`);
|
|
11
|
+
return existing;
|
|
12
|
+
}
|
|
13
|
+
const promise = execute().finally(() => {
|
|
14
|
+
this.inflight.delete(key);
|
|
15
|
+
});
|
|
16
|
+
this.inflight.set(key, promise);
|
|
17
|
+
return promise;
|
|
18
|
+
}
|
|
19
|
+
get pending() {
|
|
20
|
+
return this.inflight.size;
|
|
21
|
+
}
|
|
22
|
+
clear() {
|
|
23
|
+
this.inflight.clear();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.RequestDeduplicator = RequestDeduplicator;
|