@lgriffin/esi.ts 1.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/.github/workflows/ci.yml +16 -0
- package/.prettierrc +6 -0
- package/README.md +127 -0
- package/Structure.js +257 -0
- package/eslint.json +13 -0
- package/jest.bdd.config.cjs +22 -0
- package/jest.unit.config.cjs +30 -0
- package/package.json +49 -0
- package/src/TODO +72 -0
- package/src/api/alliances/getAllianceById.ts +10 -0
- package/src/api/alliances/getAllianceContactLabels.ts +11 -0
- package/src/api/alliances/getAllianceContacts.ts +10 -0
- package/src/api/alliances/getAllianceCorporations.ts +10 -0
- package/src/api/alliances/getAllianceIcons.ts +10 -0
- package/src/api/alliances/getAlliances.ts +10 -0
- package/src/api/assets/getCharacterAssets.ts +14 -0
- package/src/api/assets/getCorporationAssets.ts +14 -0
- package/src/api/assets/postCharacterAssetLocations.ts +14 -0
- package/src/api/assets/postCharacterAssetNames.ts +14 -0
- package/src/api/assets/postCorporationAssetLocations.ts +14 -0
- package/src/api/assets/postCorporationAssetNames.ts +14 -0
- package/src/api/bookmarks/getCharacterBookmarkFolders.ts +10 -0
- package/src/api/bookmarks/getCharacterBookmarks.ts +10 -0
- package/src/api/bookmarks/getCorporationBookmarkFolders.ts +10 -0
- package/src/api/bookmarks/getCorporationBookmarks.ts +10 -0
- package/src/api/calendar/getCalendarEventById.ts +10 -0
- package/src/api/calendar/getCalendarEvents.ts +10 -0
- package/src/api/calendar/getEventAttendees.ts +10 -0
- package/src/api/calendar/respondToCalendarEvent.ts +11 -0
- package/src/api/characters/getAgentsResearch.ts +10 -0
- package/src/api/characters/getBlueprints.ts +10 -0
- package/src/api/characters/getCharacterPublicInfo.ts +10 -0
- package/src/api/characters/getCharacterRoles.ts +10 -0
- package/src/api/characters/getCharacterStandings.ts +10 -0
- package/src/api/characters/getCharacterTitles.ts +10 -0
- package/src/api/characters/getContactNotifications.ts +10 -0
- package/src/api/characters/getCorporationHistory.ts +10 -0
- package/src/api/characters/getJumpFatigue.ts +10 -0
- package/src/api/characters/getMedals.ts +10 -0
- package/src/api/characters/getNotifications.ts +10 -0
- package/src/api/characters/getPortrait.ts +10 -0
- package/src/api/characters/postCSPAChargeCost.ts +10 -0
- package/src/api/characters/postCharacterAffiliations.ts +10 -0
- package/src/api/clones/getClones.ts +11 -0
- package/src/api/clones/getImplants.ts +11 -0
- package/src/api/contacts/deleteCharacterContacts.ts +10 -0
- package/src/api/contacts/getAllianceContactLabels.ts +10 -0
- package/src/api/contacts/getAllianceContacts.ts +10 -0
- package/src/api/contacts/getCharacterContactLabels.ts +10 -0
- package/src/api/contacts/getCharacterContacts.ts +10 -0
- package/src/api/contacts/getCorporationContactLabels.ts +10 -0
- package/src/api/contacts/getCorporationContacts.ts +10 -0
- package/src/api/contacts/postCharacterContacts.ts +10 -0
- package/src/api/contacts/putCharacterContacts.ts +10 -0
- package/src/api/contracts/getCharacterContractBids.ts +10 -0
- package/src/api/contracts/getCharacterContractItems.ts +10 -0
- package/src/api/contracts/getCharacterContracts.ts +10 -0
- package/src/api/contracts/getCorporationContractBids.ts +10 -0
- package/src/api/contracts/getCorporationContractItems.ts +10 -0
- package/src/api/contracts/getCorporationContracts.ts +10 -0
- package/src/api/contracts/getPublicContractBids.ts +10 -0
- package/src/api/contracts/getPublicContractItems.ts +10 -0
- package/src/api/contracts/getPublicContracts.ts +10 -0
- package/src/api/corporations/getCorporationAllianceHistory.ts +10 -0
- package/src/api/corporations/getCorporationAlscLogs.ts +10 -0
- package/src/api/corporations/getCorporationBlueprints.ts +10 -0
- package/src/api/corporations/getCorporationDivisions.ts +10 -0
- package/src/api/corporations/getCorporationFacilities.ts +10 -0
- package/src/api/corporations/getCorporationIcon.ts +10 -0
- package/src/api/corporations/getCorporationInfo.ts +10 -0
- package/src/api/corporations/getCorporationIssuedMedals.ts +10 -0
- package/src/api/corporations/getCorporationMedals.ts +10 -0
- package/src/api/corporations/getCorporationMemberLimit.ts +10 -0
- package/src/api/corporations/getCorporationMemberRoles.ts +10 -0
- package/src/api/corporations/getCorporationMemberRolesHistory.ts +10 -0
- package/src/api/corporations/getCorporationMemberTracking.ts +10 -0
- package/src/api/corporations/getCorporationMembers.ts +10 -0
- package/src/api/corporations/getCorporationMembersTitles.ts +10 -0
- package/src/api/corporations/getCorporationShareholders.ts +10 -0
- package/src/api/corporations/getCorporationStandings.ts +10 -0
- package/src/api/corporations/getCorporationStarbaseDetail.ts +10 -0
- package/src/api/corporations/getCorporationStarbases.ts +10 -0
- package/src/api/corporations/getCorporationStructures.ts +10 -0
- package/src/api/corporations/getCorporationTitles.ts +10 -0
- package/src/api/corporations/getNpcCorporations.ts +10 -0
- package/src/api/dogma/getDogmaAttributeById.ts +11 -0
- package/src/api/dogma/getDogmaAttributes.ts +11 -0
- package/src/api/dogma/getDogmaDynamicItemAttributes.ts +11 -0
- package/src/api/dogma/getDogmaEffectById.ts +11 -0
- package/src/api/dogma/getDogmaEffects.ts +11 -0
- package/src/api/factions/getCharacterFactionWarfareStats.ts +10 -0
- package/src/api/factions/getCharacterLeaderboards.ts +10 -0
- package/src/api/factions/getCorporationFactionWarfareStats.ts +10 -0
- package/src/api/factions/getCorporationLeaderboards.ts +10 -0
- package/src/api/factions/getFactionLeaderboards.ts +10 -0
- package/src/api/factions/getFactionWarfareStats.ts +10 -0
- package/src/api/factions/getFactionWarfareSystems.ts +10 -0
- package/src/api/factions/getFactionWarfareWars.ts +10 -0
- package/src/api/fittings/deleteCharacterFitting.ts +10 -0
- package/src/api/fittings/getCharacterFittings.ts +10 -0
- package/src/api/fittings/postCharacterFittings.ts +10 -0
- package/src/api/fleets/deleteFleetMember.ts +10 -0
- package/src/api/fleets/deleteFleetSquad.ts +10 -0
- package/src/api/fleets/deleteFleetWing.ts +10 -0
- package/src/api/fleets/getCharacterFleetInfo.ts +10 -0
- package/src/api/fleets/getFleetInfo.ts +10 -0
- package/src/api/fleets/getFleetMembers.ts +10 -0
- package/src/api/fleets/getFleetWings.ts +10 -0
- package/src/api/fleets/postFleetInvitation.ts +10 -0
- package/src/api/fleets/postFleetSquad.ts +10 -0
- package/src/api/fleets/postFleetWing.ts +10 -0
- package/src/api/fleets/putFleetMember.ts +10 -0
- package/src/api/fleets/putFleetSquad.ts +10 -0
- package/src/api/fleets/putFleetWing.ts +11 -0
- package/src/api/fleets/updateFleet.ts +10 -0
- package/src/api/incursions/getIncursions.ts +14 -0
- package/src/api/industry/getCharacterIndustryJobs.ts +10 -0
- package/src/api/industry/getCharacterMiningLedger.ts +10 -0
- package/src/api/industry/getCorporationIndustryJobs.ts +10 -0
- package/src/api/industry/getCorporationMiningObserver.ts +10 -0
- package/src/api/industry/getCorporationMiningObservers.ts +10 -0
- package/src/api/industry/getIndustryFacilities.ts +10 -0
- package/src/api/industry/getIndustrySystems.ts +10 -0
- package/src/api/industry/getMoonExtractionTimers.ts +10 -0
- package/src/api/insurance/getInsurancePrices.ts +10 -0
- package/src/api/killmails/getCharacterRecentKillmails.ts +10 -0
- package/src/api/killmails/getCorporationRecentKillmails.ts +10 -0
- package/src/api/killmails/getKillmail.ts +10 -0
- package/src/api/location/getCharacterLocation.ts +10 -0
- package/src/api/location/getCharacterOnline.ts +10 -0
- package/src/api/location/getCharacterShip.ts +10 -0
- package/src/api/loyalty/getLoyaltyPoints.ts +10 -0
- package/src/api/loyalty/getLoyaltyStoreOffers.ts +10 -0
- package/src/api/mail/deleteCharacterMail.ts +10 -0
- package/src/api/mail/deleteCharacterMailLabel.test.ts +22 -0
- package/src/api/mail/deleteCharacterMailLabel.ts +10 -0
- package/src/api/mail/getCharacerMailingLists.test.ts +35 -0
- package/src/api/mail/getCharacterMail.ts +10 -0
- package/src/api/mail/getCharacterMailHeaders.ts +10 -0
- package/src/api/mail/getCharacterMailLabels.ts +10 -0
- package/src/api/mail/getCharacterMailingLists.ts +10 -0
- package/src/api/mail/postCharacterMail.ts +10 -0
- package/src/api/mail/postCharacterMailLabels.ts +10 -0
- package/src/api/mail/putCharacterMail.ts +10 -0
- package/src/api/market/getCharacterOrderHistory.ts +10 -0
- package/src/api/market/getCharacterOrders.ts +10 -0
- package/src/api/market/getCorporationOrderHistory.ts +10 -0
- package/src/api/market/getCorporationOrders.ts +10 -0
- package/src/api/market/getMarketGroupInformation.ts +10 -0
- package/src/api/market/getMarketGroups.ts +10 -0
- package/src/api/market/getMarketHistory.ts +10 -0
- package/src/api/market/getMarketOrders.ts +10 -0
- package/src/api/market/getMarketOrdersInStructure.ts +10 -0
- package/src/api/market/getMarketPrices.ts +10 -0
- package/src/api/market/getMarketTypes.ts +10 -0
- package/src/api/opportunities/getCharacterOpportunities.ts +10 -0
- package/src/api/opportunities/getOpportunitiesGroupById.ts +10 -0
- package/src/api/opportunities/getOpportunitiesGroups.ts +10 -0
- package/src/api/opportunities/getOpportunitiesTaskById.ts +10 -0
- package/src/api/opportunities/getOpportunitiesTasks.ts +10 -0
- package/src/api/pi/getColonies.ts +10 -0
- package/src/api/pi/getColonyLayout.ts +10 -0
- package/src/api/pi/getCorporationCustomsOffices.ts +10 -0
- package/src/api/pi/getSchematicInformation.ts +10 -0
- package/src/api/route/getRoute.ts +14 -0
- package/src/api/search/getCharacterSearch.ts +14 -0
- package/src/api/skills/getCharacterAttributes.ts +10 -0
- package/src/api/skills/getCharacterSkillQueue.ts +10 -0
- package/src/api/skills/getCharacterSkills.ts +10 -0
- package/src/api/sovereignty/getSovereigntyCampaigns.ts +10 -0
- package/src/api/sovereignty/getSovereigntyMap.ts +10 -0
- package/src/api/sovereignty/getSovereigntyStructures.ts +10 -0
- package/src/api/status/getStatus.ts +11 -0
- package/src/api/ui/postAutopilotWaypoint.ts +10 -0
- package/src/api/ui/postOpenContractWindow.ts +10 -0
- package/src/api/ui/postOpenInformationWindow.ts +10 -0
- package/src/api/ui/postOpenMarketDetailsWindow.ts +10 -0
- package/src/api/ui/postOpenNewMailWindow.ts +10 -0
- package/src/api/universe/getAncestries.ts +10 -0
- package/src/api/universe/getAsteroidBeltInfo.ts +10 -0
- package/src/api/universe/getBloodlines.ts +10 -0
- package/src/api/universe/getConstellationById.ts +10 -0
- package/src/api/universe/getConstellations.ts +10 -0
- package/src/api/universe/getFactions.ts +10 -0
- package/src/api/universe/getGraphicById.ts +10 -0
- package/src/api/universe/getGraphics.ts +10 -0
- package/src/api/universe/getItemCategories.ts +10 -0
- package/src/api/universe/getItemCategoryById.ts +10 -0
- package/src/api/universe/getItemGroupById.ts +10 -0
- package/src/api/universe/getItemGroups.ts +10 -0
- package/src/api/universe/getMoonById.ts +10 -0
- package/src/api/universe/getPlanetById.ts +10 -0
- package/src/api/universe/getRaces.ts +10 -0
- package/src/api/universe/getRegionById.ts +10 -0
- package/src/api/universe/getStarById.ts +10 -0
- package/src/api/universe/getStargateById.ts +10 -0
- package/src/api/universe/getStationById.ts +10 -0
- package/src/api/universe/getStructureById.ts +10 -0
- package/src/api/universe/getStructures.ts +10 -0
- package/src/api/universe/getSystemById.ts +10 -0
- package/src/api/universe/getSystemJumps.ts +10 -0
- package/src/api/universe/getSystemKills.ts +10 -0
- package/src/api/universe/getSystems.ts +10 -0
- package/src/api/universe/getTypeById.ts +10 -0
- package/src/api/universe/getTypes.ts +10 -0
- package/src/api/universe/postBulkNamesToIds.ts +15 -0
- package/src/api/universe/postNamesAndCategories.ts +15 -0
- package/src/api/wallet/getCharacterWallet.ts +11 -0
- package/src/api/wallet/getCharacterWalletJournal.ts +11 -0
- package/src/api/wallet/getCharacterWalletTransactions.ts +11 -0
- package/src/api/wallet/getCorporationWalletJournal.ts +11 -0
- package/src/api/wallet/getCorporationWalletTransactions.ts +11 -0
- package/src/api/wallet/getCorporationWallets.ts +11 -0
- package/src/api/wars/getWarById.ts +10 -0
- package/src/api/wars/getWarKillmails.ts +10 -0
- package/src/api/wars/getWars.ts +10 -0
- package/src/builders/AllianceApiBuilder.ts +14 -0
- package/src/builders/AssetsApiBuilder.ts +14 -0
- package/src/builders/BookmarkApiBuilder.ts +14 -0
- package/src/builders/CalendarApiBuilder.ts +14 -0
- package/src/builders/CharacterApiBuilder.ts +14 -0
- package/src/builders/ClonesApiBuilder.ts +14 -0
- package/src/builders/ContactsApiBuilder.ts +14 -0
- package/src/builders/ContractsApiBuilder.ts +14 -0
- package/src/builders/CorporationsApiBuilder.ts +14 -0
- package/src/builders/DogmaApiBuilder.ts +15 -0
- package/src/builders/FactionApiBuilder.ts +14 -0
- package/src/builders/FittingsApiBuilder.ts +16 -0
- package/src/builders/FleetApiBuilder.ts +14 -0
- package/src/builders/IncursionsApiBuilder.ts +14 -0
- package/src/builders/IndustryApiBuilder.ts +14 -0
- package/src/builders/InsuranceApiBuilder.ts +14 -0
- package/src/builders/KillmailsBuilder.ts +14 -0
- package/src/builders/LocationApiBuilder.ts +14 -0
- package/src/builders/LoyaltyApiBuilder.ts +14 -0
- package/src/builders/MailApiBuilder.ts +14 -0
- package/src/builders/MarketApiBuilder.ts +14 -0
- package/src/builders/OpportunitiesApiBuilder.ts +16 -0
- package/src/builders/PiApiBuilder.ts +14 -0
- package/src/builders/RouteApiBuilder.ts +14 -0
- package/src/builders/SearchApiBuilder.ts +14 -0
- package/src/builders/SkillsApiBuilder.ts +14 -0
- package/src/builders/SovereigntyApiBuilder.ts +14 -0
- package/src/builders/StatusApiBuilder.ts +14 -0
- package/src/builders/UiApiBuilder.ts +14 -0
- package/src/builders/UniverseApiBuilder.ts +14 -0
- package/src/builders/WalletApiBuilder.ts +15 -0
- package/src/builders/WarsAPIBuilder.ts +14 -0
- package/src/clients/AllianceClient.ts +49 -0
- package/src/clients/AssetsClient.ts +49 -0
- package/src/clients/BookmarkClient.ts +35 -0
- package/src/clients/CalendarClient.ts +35 -0
- package/src/clients/CharacterClient.ts +105 -0
- package/src/clients/ClonesClient.ts +21 -0
- package/src/clients/ContactsClient.ts +70 -0
- package/src/clients/ContractsClient.ts +70 -0
- package/src/clients/CorporationsClient.ts +161 -0
- package/src/clients/DogmaClient.ts +43 -0
- package/src/clients/FactionClient.ts +63 -0
- package/src/clients/FittingsClient.ts +28 -0
- package/src/clients/FleetClient.ts +105 -0
- package/src/clients/IncursionsClient.ts +14 -0
- package/src/clients/IndustryClient.ts +63 -0
- package/src/clients/InsuranceClient.ts +14 -0
- package/src/clients/KillmailsClient.ts +28 -0
- package/src/clients/LocationClient.ts +28 -0
- package/src/clients/LoyaltyClient.ts +21 -0
- package/src/clients/MailClient.ts +70 -0
- package/src/clients/MarketClient.ts +84 -0
- package/src/clients/OpportunitiesClient.ts +42 -0
- package/src/clients/PiClient.ts +35 -0
- package/src/clients/RouteClient.ts +14 -0
- package/src/clients/SearchClient.ts +14 -0
- package/src/clients/SkillsClient.ts +28 -0
- package/src/clients/SovereigntyClient.ts +28 -0
- package/src/clients/StatusClient.ts +24 -0
- package/src/clients/UiClient.ts +42 -0
- package/src/clients/UniverseClient.ts +212 -0
- package/src/clients/WalletClient.ts +49 -0
- package/src/clients/WarsClient.ts +28 -0
- package/src/config/configManager.ts +30 -0
- package/src/config/constants.ts +6 -0
- package/src/config/esi.json +8 -0
- package/src/config/jest/jest.bdd.setup.ts +11 -0
- package/src/config/jest/jest.setup.ts +25 -0
- package/src/config/swagger.json +1 -0
- package/src/core/ApiClient.ts +18 -0
- package/src/core/ApiClientBuilder.ts +26 -0
- package/src/core/ApiError.ts +6 -0
- package/src/core/ApiRequestHandler.ts +138 -0
- package/src/core/logger/index.ts +1 -0
- package/src/core/logger/logger.ts +35 -0
- package/src/core/logger/loggerUtil.ts +17 -0
- package/src/core/util/error.ts +7 -0
- package/src/core/util/file.ts +21 -0
- package/src/core/util/headersUtil.ts +34 -0
- package/src/core/util/inputValidation.ts +6 -0
- package/src/core/util/network.ts +9 -0
- package/src/core/util/request.ts +15 -0
- package/src/core/util/testHelpers.ts +20 -0
- package/src/index.ts +1163 -0
- package/src/types/winston-loggly-bulk.d.ts +14 -0
- package/tests/bdd/features/alliances/getAllianceById.feature +6 -0
- 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 +6 -0
- package/tests/bdd/features/alliances/getAllianceIcons.feature +6 -0
- 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 +6 -0
- package/tests/bdd/features/factions/getFactionWarfareStats.feature +6 -0
- package/tests/bdd/features/factions/getFactionWarfareSystems.feature +6 -0
- package/tests/bdd/features/factions/getFactionWarfareWars.feature +6 -0
- 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 +17 -0
- 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 +18 -0
- package/tests/bdd/steps/alliances/getAllianceIcons.ts +21 -0
- 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 +33 -0
- package/tests/bdd/steps/factions/getFactionWarfareStats.ts +34 -0
- package/tests/bdd/steps/factions/getFactionWarfareSystems.ts +33 -0
- package/tests/bdd/steps/factions/getFactionWarfareWars.ts +33 -0
- 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 +24 -0
- package/tests/tdd/alliances/AllianceClient.test.ts +27 -0
- package/tests/tdd/alliances/getAllianceByID.test.ts +61 -0
- package/tests/tdd/alliances/getAllianceContactLabels.test.ts +43 -0
- package/tests/tdd/alliances/getAllianceContacts.test.ts +60 -0
- package/tests/tdd/alliances/getAllianceCorporations.test.ts +39 -0
- package/tests/tdd/alliances/getAllianceIcons.test.ts +39 -0
- package/tests/tdd/alliances/getAlliances.test.ts +38 -0
- package/tests/tdd/assets/AssetsBuilder.test.ts +20 -0
- package/tests/tdd/assets/AssetsClient.test.ts +192 -0
- package/tests/tdd/assets/getCharacterAssetsApi.test.ts +33 -0
- package/tests/tdd/assets/getCorporationAssetsApi.test.ts +55 -0
- package/tests/tdd/assets/postCharacterAssetsLocationApi.test.ts +50 -0
- package/tests/tdd/assets/postCharacterAssetsNamesApi.test.ts +43 -0
- package/tests/tdd/assets/postCorporationAssetLocationsApi.test.ts +48 -0
- package/tests/tdd/assets/postCorporationAssetNamesApi.test.ts +43 -0
- package/tests/tdd/bookmarks/BookmarkApiBuilder.test.ts +21 -0
- package/tests/tdd/bookmarks/BookmarkClient.test.ts +68 -0
- package/tests/tdd/bookmarks/getCharacterBookmarkFolders.test.ts +37 -0
- package/tests/tdd/bookmarks/getCharacterBookmarks.test.ts +42 -0
- package/tests/tdd/bookmarks/getCorporationBookmarkFolders.test.ts +42 -0
- package/tests/tdd/bookmarks/getCorporationBookmarks.test.ts +62 -0
- package/tests/tdd/calendar/CalendarApiBuilder.test.ts +24 -0
- package/tests/tdd/calendar/CalendarClient.test.ts +100 -0
- package/tests/tdd/calendar/getCalendarEventById.test.ts +29 -0
- package/tests/tdd/calendar/getCalendarEvents.test.ts +29 -0
- package/tests/tdd/calendar/getEventAttendees.test.ts +29 -0
- package/tests/tdd/calendar/respondToCalendarEvent.test.ts +29 -0
- package/tests/tdd/characters/CharacterBuilder.test.ts +20 -0
- package/tests/tdd/characters/CharacterClient.test.ts +153 -0
- package/tests/tdd/characters/getAgentsResearch.test.ts +42 -0
- package/tests/tdd/characters/getBlueprints.test.ts +42 -0
- package/tests/tdd/characters/getCharacterPublicInfo.test.ts +37 -0
- package/tests/tdd/characters/getCharacterRoles.test.ts +34 -0
- package/tests/tdd/characters/getCharacterStandings.test.ts +45 -0
- package/tests/tdd/characters/getCharacterTitles.test.ts +40 -0
- package/tests/tdd/characters/getContactNotifications.test.ts +42 -0
- package/tests/tdd/characters/getCorporationHistory.test.ts +42 -0
- package/tests/tdd/characters/getJumpFatigue.test.ts +37 -0
- package/tests/tdd/characters/getMedals.test.ts +42 -0
- package/tests/tdd/characters/getNotifications.test.ts +42 -0
- package/tests/tdd/characters/getPortrait.test.ts +35 -0
- package/tests/tdd/characters/postCSPAChargeCost.test.ts +39 -0
- package/tests/tdd/characters/postCharacterAffiliation.test.ts +48 -0
- package/tests/tdd/clones/ClonesApiBuilder.test.ts +19 -0
- package/tests/tdd/clones/ClonesClient.test.ts +61 -0
- package/tests/tdd/clones/getClonesApi.test.ts +48 -0
- package/tests/tdd/clones/getImplantsApi.test.ts +35 -0
- package/tests/tdd/contacts/ContactsApiBuilder.test.ts +21 -0
- package/tests/tdd/contacts/ContactsClient.test.ts +66 -0
- package/tests/tdd/contacts/deleteCharacterContacts.test.ts +23 -0
- package/tests/tdd/contacts/getAllianceContactLabels.test.ts +33 -0
- package/tests/tdd/contacts/getAllianceContacts.test.ts +37 -0
- package/tests/tdd/contacts/getCharacterContactLabels.test.ts +33 -0
- package/tests/tdd/contacts/getCharacterContacts.test.ts +37 -0
- package/tests/tdd/contacts/getCorporationContactLabels.test.ts +33 -0
- package/tests/tdd/contacts/getCorporationContacts.test.ts +37 -0
- package/tests/tdd/contacts/postCharacterContacts.test.ts +30 -0
- package/tests/tdd/contacts/putCharacterContacts.test.ts +30 -0
- package/tests/tdd/contracts/ContractsApiBuilder.ts +20 -0
- package/tests/tdd/contracts/ContractsClient.ts +247 -0
- package/tests/tdd/contracts/getCharacterContractBids.test.ts +49 -0
- package/tests/tdd/contracts/getCharacterContractItems.test.ts +48 -0
- package/tests/tdd/contracts/getCharacterContracts.test.ts +57 -0
- package/tests/tdd/contracts/getCorporationContractBids.test.ts +48 -0
- package/tests/tdd/contracts/getCorporationContractItems.test.ts +48 -0
- package/tests/tdd/contracts/getCorporationContracts.test.ts +56 -0
- package/tests/tdd/contracts/getPublicContractBids.test.ts +47 -0
- package/tests/tdd/contracts/getPublicContractItems.test.ts +48 -0
- package/tests/tdd/contracts/getPublicContracts.test.ts +58 -0
- package/tests/tdd/corporations/CorporationsApiBuilder.test.ts +20 -0
- package/tests/tdd/corporations/CorporationsClient.test.ts +230 -0
- package/tests/tdd/corporations/getCorporationAllianceHistory.test.ts +45 -0
- package/tests/tdd/corporations/getCorporationAlscLogs.test.ts +57 -0
- package/tests/tdd/corporations/getCorporationBlueprints.test.ts +60 -0
- package/tests/tdd/corporations/getCorporationDivisions.test.ts +64 -0
- package/tests/tdd/corporations/getCorporationFacilities.test.ts +60 -0
- package/tests/tdd/corporations/getCorporationIcon.test.ts +40 -0
- package/tests/tdd/corporations/getCorporationInfo.test.ts +40 -0
- package/tests/tdd/corporations/getCorporationIssuedMedals.test.ts +54 -0
- package/tests/tdd/corporations/getCorporationMedals.test.ts +51 -0
- package/tests/tdd/corporations/getCorporationMemberLimit.test.ts +32 -0
- package/tests/tdd/corporations/getCorporationMemberRoles.test.ts +45 -0
- package/tests/tdd/corporations/getCorporationMemberRolesHistory.test.ts +60 -0
- package/tests/tdd/corporations/getCorporationMemberTracking.test.ts +48 -0
- package/tests/tdd/corporations/getCorporationMembers.test.ts +34 -0
- package/tests/tdd/corporations/getCorporationMembersTitles.test.ts +45 -0
- package/tests/tdd/corporations/getCorporationShareholders.test.ts +45 -0
- package/tests/tdd/corporations/getCorporationStandings.test.ts +45 -0
- package/tests/tdd/corporations/getCorporationStarbaseDetail.test.ts +49 -0
- package/tests/tdd/corporations/getCorporationStarbases.test.ts +54 -0
- package/tests/tdd/corporations/getCorporationStructures.test.ts +54 -0
- package/tests/tdd/corporations/getCorporationTitles.test.ts +66 -0
- package/tests/tdd/corporations/getNpcCorporations.test.ts +34 -0
- package/tests/tdd/dogma/DogmaAPIBuilder.test.ts +13 -0
- package/tests/tdd/dogma/DogmanClient.test.ts +54 -0
- package/tests/tdd/dogma/getDogmaAttributeById.test.ts +22 -0
- package/tests/tdd/dogma/getDogmaAttributes.test.ts +22 -0
- package/tests/tdd/dogma/getDogmaDynamicItemAttributes.test.ts +22 -0
- package/tests/tdd/dogma/getDogmaEffectById.test.ts +22 -0
- package/tests/tdd/dogma/getDogmaEffects.test.ts +22 -0
- package/tests/tdd/factions/FactionApiBuilder.test.ts +17 -0
- package/tests/tdd/factions/FactionClient.test.ts +281 -0
- package/tests/tdd/factions/getCharacterFactionWarfareStats.test.ts +72 -0
- package/tests/tdd/factions/getCharacterLeaderboards.test.ts +103 -0
- package/tests/tdd/factions/getCorporationFactionWarfareStats.test.ts +72 -0
- package/tests/tdd/factions/getCorporationLeaderboards.test.ts +103 -0
- package/tests/tdd/factions/getFactionLeaderboards.test.ts +103 -0
- package/tests/tdd/factions/getFactionWarfareStats.test.ts +77 -0
- package/tests/tdd/factions/getFactionWarfareSystems.test.ts +59 -0
- package/tests/tdd/factions/getFactionWarfareWars.test.ts +43 -0
- package/tests/tdd/fittings/FittingsBuilder.test.ts +22 -0
- package/tests/tdd/fittings/FittingsClient.test.ts +93 -0
- package/tests/tdd/fittings/deleteCharacterFitting.test.ts +22 -0
- package/tests/tdd/fittings/getCharacterFittings.test.ts +57 -0
- package/tests/tdd/fittings/postCharacterFittings.test.ts +47 -0
- package/tests/tdd/fleets/FleetApiBuilder.test.ts +20 -0
- package/tests/tdd/fleets/FleetClient.test.ts +212 -0
- package/tests/tdd/fleets/deleteFleetMember.test.ts +31 -0
- package/tests/tdd/fleets/deleteFleetSquad.test.ts +24 -0
- package/tests/tdd/fleets/deleteFleetWing.test.ts +24 -0
- package/tests/tdd/fleets/getCharacterFleetInfo.test.ts +39 -0
- package/tests/tdd/fleets/getFleetInfo.test.ts +42 -0
- package/tests/tdd/fleets/getFleetMembers.test.ts +45 -0
- package/tests/tdd/fleets/getFleetWings.test.ts +35 -0
- package/tests/tdd/fleets/postFleetInvitation.test.ts +29 -0
- package/tests/tdd/fleets/postFleetSquad.test.ts +22 -0
- package/tests/tdd/fleets/postFleetWing.test.ts +31 -0
- package/tests/tdd/fleets/putFleetMember.test.ts +36 -0
- package/tests/tdd/fleets/putFleetSquad.test.ts +28 -0
- package/tests/tdd/fleets/putFleetWing.test.ts +22 -0
- package/tests/tdd/fleets/updateFleet.test.ts +39 -0
- package/tests/tdd/incursions/IncursionsApiBuilder.test.ts +20 -0
- package/tests/tdd/incursions/IncursionsClient.test.ts +63 -0
- package/tests/tdd/incursions/getIncursions.test.ts +41 -0
- package/tests/tdd/industry/IndustryBuilder.test.ts +20 -0
- package/tests/tdd/industry/IndustryClient.test.ts +354 -0
- package/tests/tdd/industry/getCharacterIndustryJobs.test.ts +80 -0
- package/tests/tdd/industry/getCharacterMiningLedger.test.ts +41 -0
- package/tests/tdd/industry/getCorporationIndustryJobs.test.ts +92 -0
- package/tests/tdd/industry/getCorporationMiningObserver.test.ts +44 -0
- package/tests/tdd/industry/getCorporationMiningObservers.test.ts +38 -0
- package/tests/tdd/industry/getIndustryFacilities.test.ts +47 -0
- package/tests/tdd/industry/getIndustrySystems.test.ts +46 -0
- package/tests/tdd/industry/getMoonExtractionTimers.test.ts +44 -0
- package/tests/tdd/insurance/InsuranceApiBuilder.test.ts +21 -0
- package/tests/tdd/insurance/InsuranceClient.test.ts +50 -0
- package/tests/tdd/insurance/getInsurancePrices.test.ts +51 -0
- package/tests/tdd/killmails/KillmailApiBuilder.test.ts +20 -0
- package/tests/tdd/killmails/KillmailClient.test.ts +110 -0
- package/tests/tdd/killmails/getCharacterRecentKillmails.test.ts +52 -0
- package/tests/tdd/killmails/getCorporationRecentKillmails.test.ts +52 -0
- package/tests/tdd/killmails/getKillmail.test.ts +47 -0
- package/tests/tdd/location/LocationApiBuilder.test.ts +20 -0
- package/tests/tdd/location/LocationClient.test.ts +82 -0
- package/tests/tdd/location/getCharacterLocation.test.ts +41 -0
- package/tests/tdd/location/getCharacterOnline.test.ts +44 -0
- package/tests/tdd/location/getCharacterShip.test.ts +41 -0
- package/tests/tdd/loyalty/LoyaltyApiBuilder.test.ts +20 -0
- package/tests/tdd/loyalty/LoyaltyClient.test.ts +73 -0
- package/tests/tdd/loyalty/getLoyaltyPoints.test.ts +35 -0
- package/tests/tdd/loyalty/getLoyaltyStoreOffers.test.ts +44 -0
- package/tests/tdd/mail/MailApiBuilder.test.ts +20 -0
- package/tests/tdd/mail/MailClient.test.ts +189 -0
- package/tests/tdd/mail/deleteCharacterMail.test.ts +22 -0
- package/tests/tdd/mail/getCharacterMail.test.ts +46 -0
- package/tests/tdd/mail/getCharacterMailHeaders.ts +51 -0
- package/tests/tdd/mail/getCharacterMailLabels.test.ts +44 -0
- package/tests/tdd/mail/postCharacterMail.test.ts +40 -0
- package/tests/tdd/mail/postCharacterMailLabels.test.ts +31 -0
- package/tests/tdd/mail/putCharacterMail.test.ts +27 -0
- package/tests/tdd/market/MarketApiBuilder.test.ts +20 -0
- package/tests/tdd/market/MarketClient.test.ts +398 -0
- package/tests/tdd/market/getCharacterOrderHistory.test.ts +61 -0
- package/tests/tdd/market/getCharacterOrders.test.test.ts +61 -0
- package/tests/tdd/market/getCorporationOrderHistory.test.ts +61 -0
- package/tests/tdd/market/getCorporationOrders.test.ts +61 -0
- package/tests/tdd/market/getMarketGroupInformation.test.ts +43 -0
- package/tests/tdd/market/getMarketGroups.test.ts +48 -0
- package/tests/tdd/market/getMarketHistory.test.ts +49 -0
- package/tests/tdd/market/getMarketOrders.test.ts +59 -0
- package/tests/tdd/market/getMarketOrdersInStructure.test.ts +67 -0
- package/tests/tdd/market/getMarketPrices.test.ts +51 -0
- package/tests/tdd/market/getMarketTypes.test.ts +35 -0
- package/tests/tdd/opportunities/OpportunitiesAPIBuillder.test.ts +25 -0
- package/tests/tdd/opportunities/OpportunitiesClient.test.ts +109 -0
- package/tests/tdd/opportunities/getCharacterOpportunities.test.ts +38 -0
- package/tests/tdd/opportunities/getOpportunitiesGroupById.test.ts +42 -0
- package/tests/tdd/opportunities/getOpportunitiesGroups.test.ts +40 -0
- package/tests/tdd/opportunities/getOpportunitiesTaskById.test.ts +37 -0
- package/tests/tdd/opportunities/getOpportunitiesTasks.test.ts +40 -0
- package/tests/tdd/pi/PiApiBuilder.test.ts +20 -0
- package/tests/tdd/pi/PiClient.test.ts +155 -0
- package/tests/tdd/pi/getColonies.test.ts +47 -0
- package/tests/tdd/pi/getColonyLayout.test.ts +45 -0
- package/tests/tdd/pi/getCorporationCustomsOffices.test.ts +63 -0
- package/tests/tdd/pi/getSchematicInformation.test.ts +36 -0
- package/tests/tdd/route/RouteApiBuilder.ts +20 -0
- package/tests/tdd/route/RouteClient.test.ts +38 -0
- package/tests/tdd/route/getRoute.test.ts +37 -0
- package/tests/tdd/search/characterSearch.test.ts +50 -0
- package/tests/tdd/search/searchApiBuilder.test.ts +17 -0
- package/tests/tdd/search/searchClient.test.ts +40 -0
- package/tests/tdd/skills/SkillsApiBuilder.test.ts +20 -0
- package/tests/tdd/skills/SkillsClient.test.ts +112 -0
- package/tests/tdd/skills/getCharacterAttributes.test.ts +39 -0
- package/tests/tdd/skills/getCharacterSkillQueue.test.ts +48 -0
- package/tests/tdd/skills/getCharacterSkills.test.ts +46 -0
- package/tests/tdd/sovereignty/SovereigntyApiBuilder.test.ts +18 -0
- package/tests/tdd/sovereignty/SovereigntyClient.test.ts +84 -0
- package/tests/tdd/sovereignty/getSovereigntyCampaigns.test.ts +41 -0
- package/tests/tdd/sovereignty/getSovereigntyMap.test.ts +37 -0
- package/tests/tdd/sovereignty/getSovereigntyStructures.test.ts +41 -0
- package/tests/tdd/status/StatusAPIBuilder.test.ts +20 -0
- package/tests/tdd/status/StatusClient.test.ts +38 -0
- package/tests/tdd/status/getStatus.test.ts +45 -0
- package/tests/tdd/ui/UiApiBuilder.test.ts +20 -0
- package/tests/tdd/ui/UiClient.test.ts +81 -0
- package/tests/tdd/ui/postAutopilotWaypoint.test.ts +36 -0
- package/tests/tdd/ui/postOpenContractWindow.test.ts +34 -0
- package/tests/tdd/ui/postOpenInformationWindow.test.ts +34 -0
- package/tests/tdd/ui/postOpenMarketDetailsWindow.test.ts +34 -0
- package/tests/tdd/ui/postOpenNewMailWindow.test.ts +36 -0
- package/tests/tdd/universe/UniverseApiBuilder.test.ts +60 -0
- package/tests/tdd/universe/UniverseClient.test.ts +215 -0
- package/tests/tdd/universe/getAncestries.test.ts +34 -0
- package/tests/tdd/universe/getAsteroidBeltInfo.test.ts +29 -0
- package/tests/tdd/universe/getBloodlines.test.ts +34 -0
- package/tests/tdd/universe/getConstellationById.test.ts +37 -0
- package/tests/tdd/universe/getConstellations.test.ts +34 -0
- package/tests/tdd/universe/getFactions.test.ts +34 -0
- package/tests/tdd/universe/getGraphicById.test.ts +45 -0
- package/tests/tdd/universe/getGraphics.test.ts +34 -0
- package/tests/tdd/universe/getGroupById.test.ts +45 -0
- package/tests/tdd/universe/getItemCategories.test.ts +34 -0
- package/tests/tdd/universe/getItemCategoryById.test.ts +37 -0
- package/tests/tdd/universe/getItemGroups.test.ts +50 -0
- package/tests/tdd/universe/getMoonById.test.ts +59 -0
- package/tests/tdd/universe/getPlanetById.test.ts +63 -0
- package/tests/tdd/universe/getRaces.test.ts +50 -0
- package/tests/tdd/universe/getRegionById.test.ts +53 -0
- package/tests/tdd/universe/getStarById.test.ts +53 -0
- package/tests/tdd/universe/getStargateById.test.ts +63 -0
- package/tests/tdd/universe/getStationById.test.ts +53 -0
- package/tests/tdd/universe/getStructureById.test.ts +71 -0
- package/tests/tdd/universe/getStructures.test.ts +33 -0
- package/tests/tdd/universe/getSystemById.test.ts +49 -0
- package/tests/tdd/universe/getSystemJumps.test.ts +46 -0
- package/tests/tdd/universe/getSystemKills.test.ts +46 -0
- package/tests/tdd/universe/getSystems.test.ts +33 -0
- package/tests/tdd/universe/getTypeById.test.ts +53 -0
- package/tests/tdd/universe/getTypes.test.ts +33 -0
- package/tests/tdd/universe/postBulkNamesToIds.test.ts +47 -0
- package/tests/tdd/universe/postNamesAndCatagories.test.ts +47 -0
- package/tests/tdd/wallet/WalletApiBuilder.test.ts +20 -0
- package/tests/tdd/wallet/WalletClient.test.ts +187 -0
- package/tests/tdd/wallet/getCharacterWallet.test.ts +35 -0
- package/tests/tdd/wallet/getCharacterWalletJournal.test.ts +53 -0
- package/tests/tdd/wallet/getCharacterWalletTransactions.test.ts +57 -0
- package/tests/tdd/wallet/getCorporationWalletJournal.test.ts +53 -0
- package/tests/tdd/wallet/getCorporationWalletTransactions.test.ts +57 -0
- package/tests/tdd/wallet/getCorporationWallets.test.ts +43 -0
- package/tests/tdd/wars/WarsAPIBuilder.test.ts +23 -0
- package/tests/tdd/wars/WarsClient.test.ts +93 -0
- package/tests/tdd/wars/getWarById.test.ts +31 -0
- package/tests/tdd/wars/getWarKillmails.test.ts +33 -0
- package/tests/tdd/wars/getWars.test.ts +33 -0
- package/tsconfig.json +15 -0
- package/types/global.d.ts +17 -0
- package/types/jest.d.ts +1 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
import { ApiClientBuilder } from './core/ApiClientBuilder';
|
|
2
|
+
import { FactionAPIBuilder } from './builders/FactionApiBuilder';
|
|
3
|
+
import { getConfig } from './config/configManager';
|
|
4
|
+
import logger from './core/logger/logger'; // Ensure logger is imported
|
|
5
|
+
import { AllianceClient } from './clients/AllianceClient'; // Import the AllianceClient correctly
|
|
6
|
+
import { WarsAPIBuilder } from './builders/WarsAPIBuilder';
|
|
7
|
+
import { UniverseAPIBuilder } from './builders/UniverseApiBuilder';
|
|
8
|
+
import { StatusAPIBuilder } from './builders/StatusApiBuilder';
|
|
9
|
+
import { InsuranceAPIBuilder } from './builders/InsuranceApiBuilder';
|
|
10
|
+
import { DogmaAPIBuilder } from './builders/DogmaApiBuilder';
|
|
11
|
+
import { RouteApiBuilder } from './builders/RouteApiBuilder';
|
|
12
|
+
import { IncursionsApiBuilder } from './builders/IncursionsApiBuilder';
|
|
13
|
+
import { OpportunitiesApiBuilder } from './builders/OpportunitiesApiBuilder';
|
|
14
|
+
import { SearchApiBuilder } from './builders/SearchApiBuilder';
|
|
15
|
+
import { SovereigntyApiBuilder } from './builders/SovereigntyApiBuilder';
|
|
16
|
+
import { AssetsApiBuilder } from './builders/AssetsApiBuilder';
|
|
17
|
+
import { BookmarkApiBuilder } from './builders/BookmarkApiBuilder';
|
|
18
|
+
import { CalendarApiBuilder } from './builders/CalendarApiBuilder';
|
|
19
|
+
import { ClonesApiBuilder } from './builders/ClonesApiBuilder';
|
|
20
|
+
import { CharacterApiBuilder } from './builders/CharacterApiBuilder';
|
|
21
|
+
import { ContractsApiBuilder } from './builders/ContractsApiBuilder';
|
|
22
|
+
import { CorporationsApiBuilder } from './builders/CorporationsApiBuilder';
|
|
23
|
+
import { FittingsApiBuilder } from './builders/FittingsApiBuilder';
|
|
24
|
+
import { FleetApiBuilder } from './builders/FleetApiBuilder';
|
|
25
|
+
import { IndustryApiBuilder } from './builders/IndustryApiBuilder';
|
|
26
|
+
import { KillmailsApiBuilder } from './builders/KillmailsBuilder';
|
|
27
|
+
import { LocationApiBuilder } from './builders/LocationApiBuilder';
|
|
28
|
+
import { LoyaltyApiBuilder } from './builders/LoyaltyApiBuilder';
|
|
29
|
+
import { PiApiBuilder } from './builders/PiApiBuilder';
|
|
30
|
+
import { SkillsApiBuilder } from './builders/SkillsApiBuilder';
|
|
31
|
+
import { MailApiBuilder } from './builders/MailApiBuilder';
|
|
32
|
+
import { UiApiBuilder } from './builders/UiApiBuilder';
|
|
33
|
+
import { WalletApiBuilder } from './builders/WalletApiBuilder';
|
|
34
|
+
import { ContactsApiBuilder } from './builders/ContactsApiBuilder';
|
|
35
|
+
import { MarketApiBuilder } from './builders/MarketApiBuilder';
|
|
36
|
+
import HeadersUtil from './core/util/headersUtil';
|
|
37
|
+
import { getBody, getHeaders } from './core/util/testHelpers';
|
|
38
|
+
import * as fs from 'fs';
|
|
39
|
+
import * as path from 'path';
|
|
40
|
+
|
|
41
|
+
const config = getConfig();
|
|
42
|
+
|
|
43
|
+
const client = new ApiClientBuilder()
|
|
44
|
+
.setClientId(config.projectName)
|
|
45
|
+
.setLink(config.link)
|
|
46
|
+
.setAccessToken(config.authToken || undefined) // Allow undefined token
|
|
47
|
+
.build();
|
|
48
|
+
|
|
49
|
+
const factionClient = new FactionAPIBuilder(client).build();
|
|
50
|
+
const allianceClient = new AllianceClient(client);
|
|
51
|
+
const warsClient = new WarsAPIBuilder(client).build();
|
|
52
|
+
const universeClient = new UniverseAPIBuilder(client).build();
|
|
53
|
+
const statusClient = new StatusAPIBuilder(client).build();
|
|
54
|
+
const insuranceClient = new InsuranceAPIBuilder(client).build();
|
|
55
|
+
const dogmaClient = new DogmaAPIBuilder(client).build();
|
|
56
|
+
const routeClient = new RouteApiBuilder(client).build();
|
|
57
|
+
const incursionsClient = new IncursionsApiBuilder(client).build();
|
|
58
|
+
const searchClient = new SearchApiBuilder(client).build();
|
|
59
|
+
const sovereigntyClient = new SovereigntyApiBuilder(client).build();
|
|
60
|
+
const opportunitiesClient = new OpportunitiesApiBuilder(client).build();
|
|
61
|
+
const assetsClient = new AssetsApiBuilder(client).build();
|
|
62
|
+
const bookmarkClient = new BookmarkApiBuilder(client).build();
|
|
63
|
+
const calendarClient = new CalendarApiBuilder(client).build();
|
|
64
|
+
const clonesClient = new ClonesApiBuilder(client).build();
|
|
65
|
+
const characterClient = new CharacterApiBuilder(client).build();
|
|
66
|
+
const contractsClient = new ContractsApiBuilder(client).build();
|
|
67
|
+
const corporationsClient = new CorporationsApiBuilder(client).build();
|
|
68
|
+
const fittingsClient = new FittingsApiBuilder(client).build();
|
|
69
|
+
const fleetClient = new FleetApiBuilder(client).build();
|
|
70
|
+
const industryClient = new IndustryApiBuilder(client).build();
|
|
71
|
+
const killmailsClient = new KillmailsApiBuilder(client).build();
|
|
72
|
+
const locationClient = new LocationApiBuilder(client).build();
|
|
73
|
+
const loyaltyClient = new LoyaltyApiBuilder(client).build();
|
|
74
|
+
const piClient = new PiApiBuilder(client).build();
|
|
75
|
+
const skillsClient = new SkillsApiBuilder(client).build();
|
|
76
|
+
const mailClient = new MailApiBuilder(client).build();
|
|
77
|
+
const uiClient = new UiApiBuilder(client).build();
|
|
78
|
+
const walletClient = new WalletApiBuilder(client).build();
|
|
79
|
+
const contactsClient = new ContactsApiBuilder(client).build();
|
|
80
|
+
const marketClient = new MarketApiBuilder(client).build();
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
const demoCharacter = 1689391488;
|
|
84
|
+
const demoCorp = 98742334;
|
|
85
|
+
const demoAlliance = 99005338;
|
|
86
|
+
const demoWarId = 740620;
|
|
87
|
+
const demoItemIds = [111, 222, 333];
|
|
88
|
+
|
|
89
|
+
const testFactionAPIs = async () => {
|
|
90
|
+
try {
|
|
91
|
+
console.log('Testing Faction Warfare Character Stats');
|
|
92
|
+
const characterStats = await factionClient.getCharacterStats(demoCharacter);
|
|
93
|
+
console.log('Character Stats:', JSON.stringify(characterStats, null, 2));
|
|
94
|
+
|
|
95
|
+
console.log('Testing Faction Warfare Corporation Stats');
|
|
96
|
+
const corporationStats = await factionClient.getCorporationStats(demoCorp);
|
|
97
|
+
console.log('Corporation Stats:', JSON.stringify(corporationStats, null, 2));
|
|
98
|
+
|
|
99
|
+
console.log('Testing Faction Warfare Leaderboards - Characters');
|
|
100
|
+
const leaderboardsCharacters = await factionClient.getLeaderboardsCharacters();
|
|
101
|
+
console.log('Leaderboards - Characters:', JSON.stringify(leaderboardsCharacters, null, 2));
|
|
102
|
+
|
|
103
|
+
console.log('Testing Faction Warfare Leaderboards - Corporations');
|
|
104
|
+
const leaderboardsCorporations = await factionClient.getLeaderboardsCorporations();
|
|
105
|
+
console.log('Leaderboards - Corporations:', JSON.stringify(leaderboardsCorporations, null, 2));
|
|
106
|
+
|
|
107
|
+
console.log('Testing Faction Warfare Leaderboards - Overall');
|
|
108
|
+
const leaderboardsOverall = await factionClient.getLeaderboardsOverall();
|
|
109
|
+
console.log('Leaderboards - Overall:', JSON.stringify(leaderboardsOverall, null, 2));
|
|
110
|
+
|
|
111
|
+
console.log('Testing Faction Warfare Stats');
|
|
112
|
+
const stats = await factionClient.getStats();
|
|
113
|
+
console.log('Stats:', JSON.stringify(stats, null, 2));
|
|
114
|
+
|
|
115
|
+
console.log('Testing Faction Warfare Systems');
|
|
116
|
+
const systems = await factionClient.getSystems();
|
|
117
|
+
console.log('Systems:', JSON.stringify(systems, null, 2));
|
|
118
|
+
|
|
119
|
+
console.log('Testing Faction Warfare Wars');
|
|
120
|
+
const wars = await factionClient.getWars();
|
|
121
|
+
console.log('Wars:', JSON.stringify(wars, null, 2));
|
|
122
|
+
} catch (error) {
|
|
123
|
+
console.error('Error testing Faction Warfare APIs:', error);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
const testAllianceAPIs = async () => {
|
|
129
|
+
try {
|
|
130
|
+
console.log('Testing Alliance Info');
|
|
131
|
+
const allianceInfo = await allianceClient.getAllianceById(demoAlliance);
|
|
132
|
+
console.log('Alliance Info:', JSON.stringify(allianceInfo, null, 2));
|
|
133
|
+
|
|
134
|
+
console.log('Testing Alliance Contacts');
|
|
135
|
+
const allianceContacts = await allianceClient.getContacts(demoAlliance);
|
|
136
|
+
console.log('Alliance Contacts:', JSON.stringify(allianceContacts, null, 2));
|
|
137
|
+
|
|
138
|
+
console.log('Testing Alliance Contact Labels');
|
|
139
|
+
const allianceContactLabels = await allianceClient.getContactLabels(demoAlliance);
|
|
140
|
+
console.log('Alliance Contact Labels:', JSON.stringify(allianceContactLabels, null, 2));
|
|
141
|
+
|
|
142
|
+
console.log('Testing Alliance Corporations');
|
|
143
|
+
const allianceCorporations = await allianceClient.getCorporations(demoAlliance);
|
|
144
|
+
console.log('Alliance Corporations:', JSON.stringify(allianceCorporations, null, 2));
|
|
145
|
+
|
|
146
|
+
console.log('Testing Alliance Icons');
|
|
147
|
+
const allianceIcons = await allianceClient.getIcons(demoAlliance);
|
|
148
|
+
console.log('Alliance Icons:', JSON.stringify(allianceIcons, null, 2));
|
|
149
|
+
|
|
150
|
+
console.log('Testing All Alliances');
|
|
151
|
+
// const allAlliances = await allianceClient.getAlliances();
|
|
152
|
+
// console.log('All Alliances:', JSON.stringify(allAlliances, null, 2));
|
|
153
|
+
} catch (error) {
|
|
154
|
+
console.error('Error testing Alliance APIs:', error);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const testWarsAPI = async () => {
|
|
159
|
+
|
|
160
|
+
try {
|
|
161
|
+
console.log('Testing War Info');
|
|
162
|
+
const warInfo = await warsClient.getWarById(demoWarId);
|
|
163
|
+
console.log('War Info:', JSON.stringify(warInfo, null, 2));
|
|
164
|
+
|
|
165
|
+
console.log('Testing War Killmails');
|
|
166
|
+
const warKillmails = await warsClient.getWarKillmails(demoWarId);
|
|
167
|
+
console.log('War Killmails:', JSON.stringify(warKillmails, null, 2));
|
|
168
|
+
|
|
169
|
+
console.log('Testing Getting Wars');
|
|
170
|
+
const activeWars = await warsClient.getWars();
|
|
171
|
+
console.log(activeWars);
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
} catch (error) {
|
|
175
|
+
console.error('Error testing Wars APIs:', error);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const testUniverseAPIs = async () => {
|
|
181
|
+
try {
|
|
182
|
+
console.log('Testing Universe Ancestries');
|
|
183
|
+
const ancestries = await universeClient.getAncestries();
|
|
184
|
+
console.log('Ancestries:', JSON.stringify(ancestries, null, 2));
|
|
185
|
+
|
|
186
|
+
console.log('Testing Universe Asteroid Belt Information');
|
|
187
|
+
const asteroidBeltInfo = await universeClient.getAsteroidBeltInfo(12345); // Replace with a valid asteroid belt ID
|
|
188
|
+
console.log('Asteroid Belt Info:', JSON.stringify(asteroidBeltInfo, null, 2));
|
|
189
|
+
|
|
190
|
+
console.log('Testing Universe Bloodlines');
|
|
191
|
+
const bloodlines = await universeClient.getBloodlines();
|
|
192
|
+
console.log('Bloodlines:', JSON.stringify(bloodlines, null, 2));
|
|
193
|
+
|
|
194
|
+
console.log('Testing Universe Constellations');
|
|
195
|
+
const constellations = await universeClient.getConstellations();
|
|
196
|
+
console.log('Constellations:', JSON.stringify(constellations, null, 2));
|
|
197
|
+
|
|
198
|
+
console.log('Testing Universe Constellation by ID');
|
|
199
|
+
const constellationById = await universeClient.getConstellationById(12345); // Replace with a valid constellation ID
|
|
200
|
+
console.log('Constellation by ID:', JSON.stringify(constellationById, null, 2));
|
|
201
|
+
|
|
202
|
+
console.log('Testing Universe Factions');
|
|
203
|
+
const factions = await universeClient.getFactions();
|
|
204
|
+
console.log('Factions:', JSON.stringify(factions, null, 2));
|
|
205
|
+
|
|
206
|
+
console.log('Testing Universe Graphics');
|
|
207
|
+
const graphics = await universeClient.getGraphics();
|
|
208
|
+
console.log('Graphics:', JSON.stringify(graphics, null, 2));
|
|
209
|
+
|
|
210
|
+
console.log('Testing Universe Graphic by ID');
|
|
211
|
+
const graphicById = await universeClient.getGraphicById(12345); // Replace with a valid graphic ID
|
|
212
|
+
console.log('Graphic by ID:', JSON.stringify(graphicById, null, 2));
|
|
213
|
+
|
|
214
|
+
console.log('Testing Universe Item Categories');
|
|
215
|
+
const itemCategories = await universeClient.getItemCategories();
|
|
216
|
+
console.log('Item Categories:', JSON.stringify(itemCategories, null, 2));
|
|
217
|
+
|
|
218
|
+
console.log('Testing Universe Item Category by ID');
|
|
219
|
+
const itemCategoryById = await universeClient.getItemCategoryById(12345); // Replace with a valid category ID
|
|
220
|
+
console.log('Item Category by ID:', JSON.stringify(itemCategoryById, null, 2));
|
|
221
|
+
|
|
222
|
+
console.log('Testing Universe Item Groups');
|
|
223
|
+
const itemGroups = await universeClient.getItemGroups();
|
|
224
|
+
console.log('Item Groups:', JSON.stringify(itemGroups, null, 2));
|
|
225
|
+
|
|
226
|
+
console.log('Testing Universe Item Group by ID');
|
|
227
|
+
const itemGroupById = await universeClient.getItemGroupById(12345); // Replace with a valid group ID
|
|
228
|
+
console.log('Item Group by ID:', JSON.stringify(itemGroupById, null, 2));
|
|
229
|
+
|
|
230
|
+
console.log('Testing Universe Moon by ID');
|
|
231
|
+
const moonById = await universeClient.getMoonById(12345); // Replace with a valid moon ID
|
|
232
|
+
console.log('Moon by ID:', JSON.stringify(moonById, null, 2));
|
|
233
|
+
|
|
234
|
+
console.log('Testing Universe Planet by ID');
|
|
235
|
+
const planetById = await universeClient.getPlanetById(12345); // Replace with a valid planet ID
|
|
236
|
+
console.log('Planet by ID:', JSON.stringify(planetById, null, 2));
|
|
237
|
+
|
|
238
|
+
console.log('Testing Universe Races');
|
|
239
|
+
const races = await universeClient.getRaces();
|
|
240
|
+
console.log('Races:', JSON.stringify(races, null, 2));
|
|
241
|
+
|
|
242
|
+
console.log('Testing Universe Region by ID');
|
|
243
|
+
const regionById = await universeClient.getRegionById(12345); // Replace with a valid region ID
|
|
244
|
+
console.log('Region by ID:', JSON.stringify(regionById, null, 2));
|
|
245
|
+
|
|
246
|
+
console.log('Testing Universe Star by ID');
|
|
247
|
+
const starById = await universeClient.getStarById(12345); // Replace with a valid star ID
|
|
248
|
+
console.log('Star by ID:', JSON.stringify(starById, null, 2));
|
|
249
|
+
|
|
250
|
+
console.log('Testing Universe Stargate by ID');
|
|
251
|
+
const stargateById = await universeClient.getStargateById(12345); // Replace with a valid stargate ID
|
|
252
|
+
console.log('Stargate by ID:', JSON.stringify(stargateById, null, 2));
|
|
253
|
+
|
|
254
|
+
console.log('Testing Universe Station by ID');
|
|
255
|
+
const stationById = await universeClient.getStationById(12345); // Replace with a valid station ID
|
|
256
|
+
console.log('Station by ID:', JSON.stringify(stationById, null, 2));
|
|
257
|
+
|
|
258
|
+
console.log('Testing Universe Structure by ID');
|
|
259
|
+
const structureById = await universeClient.getStructureById(12345); // Replace with a valid structure ID
|
|
260
|
+
console.log('Structure by ID:', JSON.stringify(structureById, null, 2));
|
|
261
|
+
|
|
262
|
+
console.log('Testing Universe Structures');
|
|
263
|
+
const structures = await universeClient.getStructures();
|
|
264
|
+
console.log('Structures:', JSON.stringify(structures, null, 2));
|
|
265
|
+
|
|
266
|
+
console.log('Testing Universe System by ID');
|
|
267
|
+
const systemById = await universeClient.getSystemById(12345); // Replace with a valid system ID
|
|
268
|
+
console.log('System by ID:', JSON.stringify(systemById, null, 2));
|
|
269
|
+
|
|
270
|
+
console.log('Testing Universe System Jumps');
|
|
271
|
+
const systemJumps = await universeClient.getSystemJumps();
|
|
272
|
+
console.log('System Jumps:', JSON.stringify(systemJumps, null, 2));
|
|
273
|
+
|
|
274
|
+
console.log('Testing Universe System Kills');
|
|
275
|
+
const systemKills = await universeClient.getSystemKills();
|
|
276
|
+
console.log('System Kills:', JSON.stringify(systemKills, null, 2));
|
|
277
|
+
|
|
278
|
+
console.log('Testing Universe Systems');
|
|
279
|
+
const systems = await universeClient.getSystems();
|
|
280
|
+
console.log('Systems:', JSON.stringify(systems, null, 2));
|
|
281
|
+
|
|
282
|
+
console.log('Testing Universe Type by ID');
|
|
283
|
+
const typeById = await universeClient.getTypeById(12345); // Replace with a valid type ID
|
|
284
|
+
console.log('Type by ID:', JSON.stringify(typeById, null, 2));
|
|
285
|
+
|
|
286
|
+
console.log('Testing Universe Types');
|
|
287
|
+
const types = await universeClient.getTypes();
|
|
288
|
+
console.log('Types:', JSON.stringify(types, null, 2));
|
|
289
|
+
|
|
290
|
+
// console.log('Testing Bulk Names to IDs');
|
|
291
|
+
// const bulkNamesToIds = await universeClient.postBulkNamesToIds([12345, 67890]); // Replace with valid IDs
|
|
292
|
+
// console.log('Bulk Names to IDs:', JSON.stringify(bulkNamesToIds, null, 2));
|
|
293
|
+
|
|
294
|
+
// console.log('Testing Names and Categories for IDs');
|
|
295
|
+
// const namesAndCategories = await universeClient.postNamesAndCategories([12345, 67890]); // Replace with valid IDs
|
|
296
|
+
// console.log('Names and Categories for IDs:', JSON.stringify(namesAndCategories, null, 2));
|
|
297
|
+
|
|
298
|
+
} catch (error) {
|
|
299
|
+
console.error('Error testing Universe APIs:', error);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
const testStatusAPI = async () => {
|
|
304
|
+
try {
|
|
305
|
+
console.log('Testing Status API');
|
|
306
|
+
const { headers, body } = await statusClient.getStatus();
|
|
307
|
+
console.log('Status:', body);
|
|
308
|
+
} catch (error) {
|
|
309
|
+
console.error('Error testing Status API:', error);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
const testInsurancePrices = async () => {
|
|
314
|
+
try {
|
|
315
|
+
console.log('Testing Insurance Prices');
|
|
316
|
+
const prices = await insuranceClient.getInsurancePrices();
|
|
317
|
+
console.log('Insurance Prices:', JSON.stringify(prices, null, 2));
|
|
318
|
+
} catch (error) {
|
|
319
|
+
console.error('Error testing Insurance Prices:', error);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const testDogmaAPI = async () => {
|
|
324
|
+
try {
|
|
325
|
+
console.log('Testing Dogma Attributes');
|
|
326
|
+
const attributes = await dogmaClient.getAttributes();
|
|
327
|
+
console.log('Attributes:', JSON.stringify(attributes, null, 2));
|
|
328
|
+
|
|
329
|
+
console.log('Testing Dogma Attribute by ID');
|
|
330
|
+
const attributeInfo = await dogmaClient.getAttributeById(1237); // Replace with a valid attribute ID
|
|
331
|
+
console.log('Attribute Info:', JSON.stringify(attributeInfo, null, 2));
|
|
332
|
+
|
|
333
|
+
console.log('Testing Dogma Dynamic Item Information');
|
|
334
|
+
const dynamicItemInfo = await dogmaClient.getDynamicItemInfo(1, 1); // Replace with valid type_id and item_id
|
|
335
|
+
console.log('Dynamic Item Info:', JSON.stringify(dynamicItemInfo, null, 2));
|
|
336
|
+
|
|
337
|
+
console.log('Testing Dogma Effects');
|
|
338
|
+
const effects = await dogmaClient.getEffects();
|
|
339
|
+
console.log('Effects:', JSON.stringify(effects, null, 2));
|
|
340
|
+
|
|
341
|
+
console.log('Testing Dogma Effect by ID');
|
|
342
|
+
const effectInfo = await dogmaClient.getEffectById(6402); // Replace with a valid effect ID
|
|
343
|
+
console.log('Effect Info:', JSON.stringify(effectInfo, null, 2));
|
|
344
|
+
} catch (error) {
|
|
345
|
+
console.error('Error in the Dogma testing');
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
const testRouteAPI = async () => {
|
|
350
|
+
try {
|
|
351
|
+
console.log('Testing Route API');
|
|
352
|
+
const route = await routeClient.getRoute(30003283, 30000142);
|
|
353
|
+
console.log('Route:', JSON.stringify(route, null, 2));
|
|
354
|
+
} catch (error) {
|
|
355
|
+
console.error('Error testing Route API:', error);
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
const testIncursionsAPI = async () => {
|
|
360
|
+
|
|
361
|
+
try{
|
|
362
|
+
console.log("Testing incursions API");
|
|
363
|
+
const incursions = await incursionsClient.getIncursions();
|
|
364
|
+
console.log(incursions);
|
|
365
|
+
} catch (error) {
|
|
366
|
+
console.error('Hmmm we hit an error testing our incursions API:',error);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
const testOpportunitiesAPIs = async () => {
|
|
372
|
+
try {
|
|
373
|
+
console.log('Testing Character Opportunities');
|
|
374
|
+
const characterOpportunities = await opportunitiesClient.getCharacterOpportunities(12345); // Replace with a valid character ID
|
|
375
|
+
console.log('Character Opportunities:', JSON.stringify(characterOpportunities, null, 2));
|
|
376
|
+
|
|
377
|
+
console.log('Testing Opportunities Groups');
|
|
378
|
+
const opportunitiesGroups = await opportunitiesClient.getOpportunitiesGroups();
|
|
379
|
+
console.log('Opportunities Groups:', JSON.stringify(opportunitiesGroups, null, 2));
|
|
380
|
+
|
|
381
|
+
console.log('Testing Opportunities Group by ID');
|
|
382
|
+
const opportunitiesGroupById = await opportunitiesClient.getOpportunitiesGroupById(100); // Replace with a valid group ID using 100 as an example
|
|
383
|
+
console.log('Opportunities Group by ID:', JSON.stringify(opportunitiesGroupById, null, 2));
|
|
384
|
+
|
|
385
|
+
console.log('Testing Opportunities Tasks');
|
|
386
|
+
const opportunitiesTasks = await opportunitiesClient.getOpportunitiesTasks();
|
|
387
|
+
console.log('Opportunities Tasks:', JSON.stringify(opportunitiesTasks, null, 2));
|
|
388
|
+
|
|
389
|
+
console.log('Testing Opportunities Task by ID');
|
|
390
|
+
const opportunitiesTaskById = await opportunitiesClient.getOpportunitiesTaskById(102); // Replace with a valid task ID using 102 as an example
|
|
391
|
+
console.log('Opportunities Task by ID:', JSON.stringify(opportunitiesTaskById, null, 2));
|
|
392
|
+
|
|
393
|
+
} catch (error) {
|
|
394
|
+
console.error('Error testing Opportunities APIs:', error);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
const testCharacterSearchAPI = async () => {
|
|
399
|
+
try {
|
|
400
|
+
|
|
401
|
+
console.log('Testing Character Search');
|
|
402
|
+
const searchResults = await searchClient.characterSearch(demoCharacter, 'Test');
|
|
403
|
+
console.log('Search Results:', JSON.stringify(searchResults, null, 2));
|
|
404
|
+
} catch (error) {
|
|
405
|
+
console.error('Error testing Character Search API:', error);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
const testSovereigntyAPIs = async () => {
|
|
410
|
+
try {
|
|
411
|
+
console.log('Testing Sovereignty Campaigns');
|
|
412
|
+
const campaigns = await sovereigntyClient.getSovereigntyCampaigns();
|
|
413
|
+
console.log('Campaigns:', JSON.stringify(campaigns, null, 2));
|
|
414
|
+
|
|
415
|
+
console.log('Testing Sovereignty Map');
|
|
416
|
+
const map = await sovereigntyClient.getSovereigntyMap();
|
|
417
|
+
console.log('Map:', JSON.stringify(map, null, 2));
|
|
418
|
+
|
|
419
|
+
console.log('Testing Sovereignty Structures');
|
|
420
|
+
const structures = await sovereigntyClient.getSovereigntyStructures();
|
|
421
|
+
console.log('Structures:', JSON.stringify(structures, null, 2));
|
|
422
|
+
} catch (error) {
|
|
423
|
+
console.error('Error testing Sovereignty APIs:', error);
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
const testAssetsAPI = async () => {
|
|
428
|
+
try {
|
|
429
|
+
console.log('Testing Character Assets');
|
|
430
|
+
const characterAssets = await assetsClient.getCharacterAssets(demoCharacter);
|
|
431
|
+
console.log('Character Assets:', JSON.stringify(characterAssets, null, 2));
|
|
432
|
+
|
|
433
|
+
console.log('Testing Post Character Asset Locations');
|
|
434
|
+
const characterAssetLocations = await assetsClient.postCharacterAssetLocations(demoCharacter, demoItemIds);
|
|
435
|
+
console.log('Character Asset Locations:', JSON.stringify(characterAssetLocations, null, 2));
|
|
436
|
+
|
|
437
|
+
console.log('Testing Post Character Asset Names');
|
|
438
|
+
const characterAssetNames = await assetsClient.postCharacterAssetNames(demoCharacter, demoItemIds);
|
|
439
|
+
console.log('Character Asset Names:', JSON.stringify(characterAssetNames, null, 2));
|
|
440
|
+
|
|
441
|
+
console.log('Testing Corporation Assets');
|
|
442
|
+
const corporationAssets = await assetsClient.getCorporationAssets(demoCorp);
|
|
443
|
+
console.log('Corporation Assets:', JSON.stringify(corporationAssets, null, 2));
|
|
444
|
+
|
|
445
|
+
console.log('Testing Post Corporation Asset Locations');
|
|
446
|
+
const corporationAssetLocations = await assetsClient.postCorporationAssetLocations(demoCorp, demoItemIds);
|
|
447
|
+
console.log('Corporation Asset Locations:', JSON.stringify(corporationAssetLocations, null, 2));
|
|
448
|
+
|
|
449
|
+
console.log('Testing Post Corporation Asset Names');
|
|
450
|
+
const corporationAssetNames = await assetsClient.postCorporationAssetNames(demoCorp, demoItemIds);
|
|
451
|
+
console.log('Corporation Asset Names:', JSON.stringify(corporationAssetNames, null, 2));
|
|
452
|
+
} catch (error) {
|
|
453
|
+
console.error('Error testing Assets APIs:', error);
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
const testBookmarkAPIs = async () => {
|
|
458
|
+
|
|
459
|
+
try {
|
|
460
|
+
console.log('Testing Character Bookmarks');
|
|
461
|
+
const characterBookmarks = await bookmarkClient.getCharacterBookmarks(demoCharacter);
|
|
462
|
+
console.log('Character Bookmarks:', JSON.stringify(characterBookmarks, null, 2));
|
|
463
|
+
|
|
464
|
+
console.log('Testing Character Bookmark Folders');
|
|
465
|
+
const characterBookmarkFolders = await bookmarkClient.getCharacterBookmarkFolders(demoCharacter);
|
|
466
|
+
console.log('Character Bookmark Folders:', JSON.stringify(characterBookmarkFolders, null, 2));
|
|
467
|
+
|
|
468
|
+
console.log('Testing Corporation Bookmarks');
|
|
469
|
+
const corporationBookmarks = await bookmarkClient.getCorporationBookmarks(demoCorp);
|
|
470
|
+
console.log('Corporation Bookmarks:', JSON.stringify(corporationBookmarks, null, 2));
|
|
471
|
+
|
|
472
|
+
console.log('Testing Corporation Bookmark Folders');
|
|
473
|
+
const corporationBookmarkFolders = await bookmarkClient.getCorporationBookmarkFolders(demoCorp);
|
|
474
|
+
console.log('Corporation Bookmark Folders:', JSON.stringify(corporationBookmarkFolders, null, 2));
|
|
475
|
+
} catch (error) {
|
|
476
|
+
console.error('Error testing Bookmark APIs:', error);
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
const testCalendarAPIs = async () => {
|
|
481
|
+
try {
|
|
482
|
+
console.log('Testing Calendar Events');
|
|
483
|
+
const calendarEvents = await calendarClient.getCalendarEvents(demoCharacter);
|
|
484
|
+
console.log('Calendar Events:', JSON.stringify(calendarEvents, null, 2));
|
|
485
|
+
|
|
486
|
+
console.log('Testing Calendar Event by ID');
|
|
487
|
+
const calendarEvent = await calendarClient.getCalendarEventById(demoCharacter, 67890);
|
|
488
|
+
console.log('Calendar Event:', JSON.stringify(calendarEvent, null, 2));
|
|
489
|
+
|
|
490
|
+
console.log('Testing Respond to Calendar Event');
|
|
491
|
+
const response = await calendarClient.respondToCalendarEvent(demoCharacter, 67890, 'accepted');
|
|
492
|
+
console.log('Response to Calendar Event:', JSON.stringify(response, null, 2));
|
|
493
|
+
|
|
494
|
+
console.log('Testing Get Event Attendees');
|
|
495
|
+
const attendees = await calendarClient.getEventAttendees(demoCharacter, 67890);
|
|
496
|
+
console.log('Event Attendees:', JSON.stringify(attendees, null, 2));
|
|
497
|
+
|
|
498
|
+
} catch (error) {
|
|
499
|
+
console.error('Error testing Calendar APIs:', error);
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
const testClonesAPI = async () => {
|
|
504
|
+
|
|
505
|
+
try {
|
|
506
|
+
console.log('Testing Clones');
|
|
507
|
+
const clones = await clonesClient.getClones(demoCharacter);
|
|
508
|
+
console.log('Clones:', JSON.stringify(clones, null, 2));
|
|
509
|
+
|
|
510
|
+
console.log('Testing Implants');
|
|
511
|
+
const implants = await clonesClient.getImplants(demoCharacter);
|
|
512
|
+
console.log('Implants:', JSON.stringify(implants, null, 2));
|
|
513
|
+
} catch (error) {
|
|
514
|
+
console.error('Error testing Clones API:', error);
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
const testCharacterApi = async () => {
|
|
519
|
+
try {
|
|
520
|
+
console.log('Testing Character Public Info');
|
|
521
|
+
const characterPublicInfo = await characterClient.getCharacterPublicInfo(demoCharacter);
|
|
522
|
+
console.log('Character Public Info:', JSON.stringify(characterPublicInfo, null, 2));
|
|
523
|
+
|
|
524
|
+
console.log('Testing Character Agents Research');
|
|
525
|
+
const characterAgentsResearch = await characterClient.getCharacterAgentsResearch(demoCharacter);
|
|
526
|
+
console.log('Character Agents Research:', JSON.stringify(characterAgentsResearch, null, 2));
|
|
527
|
+
|
|
528
|
+
console.log('Testing Character Blueprints');
|
|
529
|
+
const characterBlueprints = await characterClient.getCharacterBlueprints(demoCharacter);
|
|
530
|
+
console.log('Character Blueprints:', JSON.stringify(characterBlueprints, null, 2));
|
|
531
|
+
|
|
532
|
+
console.log('Testing Character Corporation History');
|
|
533
|
+
const characterCorporationHistory = await characterClient.getCharacterCorporationHistory(demoCharacter);
|
|
534
|
+
console.log('Character Corporation History:', JSON.stringify(characterCorporationHistory, null, 2));
|
|
535
|
+
|
|
536
|
+
console.log('Testing CSPA Charge Cost');
|
|
537
|
+
const cspaChargeCost = await characterClient.postCspaChargeCost(demoCharacter, [1234567890, 1234567891]);
|
|
538
|
+
console.log('CSPA Charge Cost:', JSON.stringify(cspaChargeCost, null, 2));
|
|
539
|
+
} catch (error) {
|
|
540
|
+
console.error('Error testing Character APIs:', error);
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
const testContracts = async () => {
|
|
545
|
+
try {
|
|
546
|
+
console.log('Testing Character Contracts');
|
|
547
|
+
const characterContracts = await contractsClient.getCharacterContracts(demoCharacter);
|
|
548
|
+
console.log('Character Contracts:', characterContracts);
|
|
549
|
+
|
|
550
|
+
console.log('Testing Character Contract Bids');
|
|
551
|
+
const characterContractBids = await contractsClient.getCharacterContractBids(demoCharacter, 206732670);
|
|
552
|
+
console.log('Character Contract Bids:', characterContractBids);
|
|
553
|
+
|
|
554
|
+
console.log('Testing Character Contract Items');
|
|
555
|
+
const characterContractItems = await contractsClient.getCharacterContractItems(demoCharacter, 987654321);
|
|
556
|
+
console.log('Character Contract Items:', characterContractItems);
|
|
557
|
+
|
|
558
|
+
console.log('Testing Public Contracts');
|
|
559
|
+
const publicContracts = await contractsClient.getPublicContracts(10000001);
|
|
560
|
+
console.log('Public Contracts:', publicContracts);
|
|
561
|
+
|
|
562
|
+
console.log('Testing Public Contract Bids');
|
|
563
|
+
const publicContractBids = await contractsClient.getPublicContractBids(206732670); // update to a valid contract ID, this works right now!
|
|
564
|
+
console.log('Public Contract Bids:', publicContractBids);
|
|
565
|
+
|
|
566
|
+
console.log('Testing Public Contract Items');
|
|
567
|
+
const publicContractItems = await contractsClient.getPublicContractItems(206732670);
|
|
568
|
+
console.log('Public Contract Items:', publicContractItems);
|
|
569
|
+
|
|
570
|
+
console.log('Testing Corporation Contracts');
|
|
571
|
+
const corporationContracts = await contractsClient.getCorporationContracts(demoCorp);
|
|
572
|
+
console.log('Corporation Contracts:', corporationContracts);
|
|
573
|
+
|
|
574
|
+
console.log('Testing Corporation Contract Bids');
|
|
575
|
+
const corporationContractBids = await contractsClient.getCorporationContractBids(demoCorp, 987654321);
|
|
576
|
+
console.log('Corporation Contract Bids:', corporationContractBids);
|
|
577
|
+
|
|
578
|
+
console.log('Testing Corporation Contract Items');
|
|
579
|
+
const corporationContractItems = await contractsClient.getCorporationContractItems(demoCorp, 987654321);
|
|
580
|
+
console.log('Corporation Contract Items:', corporationContractItems);
|
|
581
|
+
} catch (error) {
|
|
582
|
+
console.error('Error testing Contracts APIs:', error);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
const testCorporations = async () => {
|
|
587
|
+
try {
|
|
588
|
+
console.log('Testing Corporation Info');
|
|
589
|
+
const corporationInfo = await corporationsClient.getCorporationInfo(123456789);
|
|
590
|
+
console.log('Corporation Info:', corporationInfo);
|
|
591
|
+
|
|
592
|
+
console.log('Testing Corporation Alliance History');
|
|
593
|
+
const allianceHistory = await corporationsClient.getCorporationAllianceHistory(123456789);
|
|
594
|
+
console.log('Alliance History:', allianceHistory);
|
|
595
|
+
|
|
596
|
+
console.log('Testing Corporation Blueprints');
|
|
597
|
+
const blueprints = await corporationsClient.getCorporationBlueprints(123456789);
|
|
598
|
+
console.log('Blueprints:', blueprints);
|
|
599
|
+
|
|
600
|
+
console.log('Testing Corporation ALSC Logs');
|
|
601
|
+
const alscLogs = await corporationsClient.getCorporationAlscLogs(123456789);
|
|
602
|
+
console.log('ALSC Logs:', alscLogs);
|
|
603
|
+
|
|
604
|
+
console.log('Testing Corporation Divisions');
|
|
605
|
+
const divisions = await corporationsClient.getCorporationDivisions(123456789);
|
|
606
|
+
console.log('Divisions:', divisions);
|
|
607
|
+
|
|
608
|
+
console.log('Testing Corporation Facilities');
|
|
609
|
+
const facilities = await corporationsClient.getCorporationFacilities(123456789);
|
|
610
|
+
console.log('Facilities:', facilities);
|
|
611
|
+
|
|
612
|
+
console.log('Testing Corporation Icon');
|
|
613
|
+
const icon = await corporationsClient.getCorporationIcon(123456789);
|
|
614
|
+
console.log('Icon:', icon);
|
|
615
|
+
|
|
616
|
+
console.log('Testing Corporation Medals');
|
|
617
|
+
const medals = await corporationsClient.getCorporationMedals(123456789);
|
|
618
|
+
console.log('Medals:', medals);
|
|
619
|
+
|
|
620
|
+
console.log('Testing Corporation Issued Medals');
|
|
621
|
+
const issuedMedals = await corporationsClient.getCorporationIssuedMedals(123456789);
|
|
622
|
+
console.log('Issued Medals:', issuedMedals);
|
|
623
|
+
|
|
624
|
+
console.log('Testing Corporation Members');
|
|
625
|
+
const members = await corporationsClient.getCorporationMembers(123456789);
|
|
626
|
+
console.log('Members:', members);
|
|
627
|
+
|
|
628
|
+
console.log('Testing Corporation Member Limit');
|
|
629
|
+
const memberLimit = await corporationsClient.getCorporationMemberLimit(123456789);
|
|
630
|
+
console.log('Member Limit:', memberLimit);
|
|
631
|
+
|
|
632
|
+
console.log('Testing Corporation Member Titles');
|
|
633
|
+
const memberTitles = await corporationsClient.getCorporationMemberTitles(123456789);
|
|
634
|
+
console.log('Member Titles:', memberTitles);
|
|
635
|
+
|
|
636
|
+
console.log('Testing Corporation Member Tracking');
|
|
637
|
+
const memberTracking = await corporationsClient.getCorporationMemberTracking(123456789);
|
|
638
|
+
console.log('Member Tracking:', memberTracking);
|
|
639
|
+
|
|
640
|
+
console.log('Testing Corporation Roles');
|
|
641
|
+
const roles = await corporationsClient.getCorporationRoles(123456789);
|
|
642
|
+
console.log('Roles:', roles);
|
|
643
|
+
|
|
644
|
+
console.log('Testing Corporation Roles History');
|
|
645
|
+
const rolesHistory = await corporationsClient.getCorporationRolesHistory(123456789);
|
|
646
|
+
console.log('Roles History:', rolesHistory);
|
|
647
|
+
|
|
648
|
+
console.log('Testing Corporation Shareholders');
|
|
649
|
+
const shareholders = await corporationsClient.getCorporationShareholders(123456789);
|
|
650
|
+
console.log('Shareholders:', shareholders);
|
|
651
|
+
|
|
652
|
+
console.log('Testing Corporation Standings');
|
|
653
|
+
const standings = await corporationsClient.getCorporationStandings(123456789);
|
|
654
|
+
console.log('Standings:', standings);
|
|
655
|
+
|
|
656
|
+
console.log('Testing Corporation Starbases');
|
|
657
|
+
const starbases = await corporationsClient.getCorporationStarbases(123456789);
|
|
658
|
+
console.log('Starbases:', starbases);
|
|
659
|
+
|
|
660
|
+
console.log('Testing Corporation Starbase Detail');
|
|
661
|
+
const starbaseDetail = await corporationsClient.getCorporationStarbaseDetail(123456789, 987654321);
|
|
662
|
+
console.log('Starbase Detail:', starbaseDetail);
|
|
663
|
+
|
|
664
|
+
console.log('Testing Corporation Structures');
|
|
665
|
+
const structures = await corporationsClient.getCorporationStructures(123456789);
|
|
666
|
+
console.log('Structures:', structures);
|
|
667
|
+
|
|
668
|
+
console.log('Testing Corporation Titles');
|
|
669
|
+
const titles = await corporationsClient.getCorporationTitles(123456789);
|
|
670
|
+
console.log('Titles:', titles);
|
|
671
|
+
|
|
672
|
+
console.log('Testing NPC Corporations');
|
|
673
|
+
const npcCorporations = await corporationsClient.getNpcCorporations();
|
|
674
|
+
console.log('NPC Corporations:', npcCorporations);
|
|
675
|
+
|
|
676
|
+
} catch (error) {
|
|
677
|
+
console.error('Error testing CorporationsClient:', error);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
const testFittings = async () => {
|
|
684
|
+
try {
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
// Test get fittings
|
|
688
|
+
console.log('Testing getCharacterFittings...');
|
|
689
|
+
const fittings = await fittingsClient.getFittings(demoCharacter);
|
|
690
|
+
console.log('Character Fittings:', fittings);
|
|
691
|
+
|
|
692
|
+
// Test create fitting
|
|
693
|
+
console.log('Testing createCharacterFitting...');
|
|
694
|
+
const newFitting = {
|
|
695
|
+
name: 'New Fitting',
|
|
696
|
+
description: 'Test fitting',
|
|
697
|
+
ship_type_id: 1234,
|
|
698
|
+
items: [
|
|
699
|
+
{
|
|
700
|
+
type_id: 5678,
|
|
701
|
+
quantity: 1,
|
|
702
|
+
flag: 12
|
|
703
|
+
}
|
|
704
|
+
]
|
|
705
|
+
};
|
|
706
|
+
const createdFitting = await fittingsClient.createFitting(demoCharacter, newFitting);
|
|
707
|
+
console.log('Created Fitting:', createdFitting);
|
|
708
|
+
|
|
709
|
+
// Test delete fitting
|
|
710
|
+
console.log('Testing deleteCharacterFitting...');
|
|
711
|
+
const fittingIdToDelete = 1; // Replace with actual fitting ID
|
|
712
|
+
await fittingsClient.deleteFitting(demoCharacter, fittingIdToDelete);
|
|
713
|
+
console.log('Deleted Fitting ID:', fittingIdToDelete);
|
|
714
|
+
|
|
715
|
+
} catch (error) {
|
|
716
|
+
console.error('Error testing fittings:', error);
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
export const testFleet = async () => {
|
|
722
|
+
try {
|
|
723
|
+
const characterFleetInfo = await fleetClient.getCharacterFleetInfo(1234567890);
|
|
724
|
+
console.log('Character Fleet Info:', characterFleetInfo);
|
|
725
|
+
|
|
726
|
+
const fleetInfo = await fleetClient.getFleetInformation(1234567890);
|
|
727
|
+
console.log('Fleet Info:', fleetInfo);
|
|
728
|
+
|
|
729
|
+
const updateFleetBody = { is_free_move: true };
|
|
730
|
+
const updateFleet = await fleetClient.updateFleet(1234567890, updateFleetBody);
|
|
731
|
+
console.log('Update Fleet:', updateFleet);
|
|
732
|
+
|
|
733
|
+
const fleetMembers = await fleetClient.getFleetMembers(1234567890);
|
|
734
|
+
console.log('Fleet Members:', fleetMembers);
|
|
735
|
+
|
|
736
|
+
const createFleetInvitationBody = { character_id: 123456, role: 'squad_member' };
|
|
737
|
+
const createFleetInvitation = await fleetClient.createFleetInvitation(1234567890, createFleetInvitationBody);
|
|
738
|
+
console.log('Create Fleet Invitation:', createFleetInvitation);
|
|
739
|
+
|
|
740
|
+
const kickFleetMember = await fleetClient.kickFleetMember(1234567890, 123456789);
|
|
741
|
+
console.log('Kick Fleet Member:', kickFleetMember);
|
|
742
|
+
|
|
743
|
+
const moveFleetMemberBody = { role: 'squad_member', squad_id: 1, wing_id: 2 };
|
|
744
|
+
const moveFleetMember = await fleetClient.moveFleetMember(1234567890, 123456789, moveFleetMemberBody);
|
|
745
|
+
console.log('Move Fleet Member:', moveFleetMember);
|
|
746
|
+
|
|
747
|
+
const deleteFleetSquad = await fleetClient.deleteFleetSquad(1234567890, 1);
|
|
748
|
+
console.log('Delete Fleet Squad:', deleteFleetSquad);
|
|
749
|
+
|
|
750
|
+
const renameFleetSquad = await fleetClient.renameFleetSquad(1234567890, 1, 'New Squad Name');
|
|
751
|
+
console.log('Rename Fleet Squad:', renameFleetSquad);
|
|
752
|
+
|
|
753
|
+
const fleetWings = await fleetClient.getFleetWings(1234567890);
|
|
754
|
+
console.log('Fleet Wings:', fleetWings);
|
|
755
|
+
|
|
756
|
+
const createFleetWingBody = { name: 'New Wing' };
|
|
757
|
+
const createFleetWing = await fleetClient.createFleetWing(1234567890, createFleetWingBody);
|
|
758
|
+
console.log('Create Fleet Wing:', createFleetWing);
|
|
759
|
+
|
|
760
|
+
const deleteFleetWing = await fleetClient.deleteFleetWing(1234567890, 1);
|
|
761
|
+
console.log('Delete Fleet Wing:', deleteFleetWing);
|
|
762
|
+
|
|
763
|
+
const renameFleetWing = await fleetClient.renameFleetWing(1234567890, 1, 'New Wing Name');
|
|
764
|
+
console.log('Rename Fleet Wing:', renameFleetWing);
|
|
765
|
+
|
|
766
|
+
const createFleetSquad = await fleetClient.createFleetSquad(1234567890, 1);
|
|
767
|
+
console.log('Create Fleet Squad:', createFleetSquad);
|
|
768
|
+
} catch (error) {
|
|
769
|
+
console.error('Error:', error);
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
const testIndustry = async () => {
|
|
774
|
+
const observerId = 11223344; // Replace with a valid observer ID
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
try {
|
|
778
|
+
console.log('Testing Industry APIs...');
|
|
779
|
+
|
|
780
|
+
// Test character industry jobs
|
|
781
|
+
const characterIndustryJobs = await industryClient.getCharacterIndustryJobs(demoCharacter);
|
|
782
|
+
console.log('Character Industry Jobs:', characterIndustryJobs);
|
|
783
|
+
|
|
784
|
+
// Test character mining ledger
|
|
785
|
+
const characterMiningLedger = await industryClient.getCharacterMiningLedger(demoCharacter);
|
|
786
|
+
console.log('Character Mining Ledger:', characterMiningLedger);
|
|
787
|
+
|
|
788
|
+
// Test corporation mining extractions
|
|
789
|
+
const moonExtractionTimers = await industryClient.getMoonExtractionTimers(demoCorp);
|
|
790
|
+
console.log('Moon Extraction Timers:', moonExtractionTimers);
|
|
791
|
+
|
|
792
|
+
// Test corporation mining observers
|
|
793
|
+
const corporationMiningObservers = await industryClient.getCorporationMiningObservers(demoCorp);
|
|
794
|
+
console.log('Corporation Mining Observers:', corporationMiningObservers);
|
|
795
|
+
|
|
796
|
+
// Test observed corporation mining
|
|
797
|
+
const observedCorporationMining = await industryClient.getMoonExtractionTimers(demoCorp);
|
|
798
|
+
console.log('Observed Corporation Mining:', observedCorporationMining);
|
|
799
|
+
|
|
800
|
+
// Test corporation industry jobs
|
|
801
|
+
const corporationIndustryJobs = await industryClient.getCorporationIndustryJobs(demoCorp);
|
|
802
|
+
console.log('Corporation Industry Jobs:', corporationIndustryJobs);
|
|
803
|
+
|
|
804
|
+
// Test industry facilities
|
|
805
|
+
const industryFacilities = await industryClient.getIndustryFacilities();
|
|
806
|
+
console.log('Industry Facilities:', industryFacilities);
|
|
807
|
+
|
|
808
|
+
// Test solar system cost indices
|
|
809
|
+
const solarSystemCostIndices = await industryClient.getIndustrySystems();
|
|
810
|
+
console.log('Solar System Cost Indices:', solarSystemCostIndices);
|
|
811
|
+
console.log(solarSystemCostIndices.length);
|
|
812
|
+
|
|
813
|
+
} catch (error) {
|
|
814
|
+
console.error('Error testing Industry APIs:', error);
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
const testKillmails = async () => {
|
|
819
|
+
try {
|
|
820
|
+
console.log('Testing getCharacterRecentKillmails...');
|
|
821
|
+
const characterKillmails = await killmailsClient.getCharacterRecentKillmails(demoCharacter);
|
|
822
|
+
console.log('Character Recent Killmails:', characterKillmails);
|
|
823
|
+
|
|
824
|
+
console.log('Testing getCorporationRecentKillmails...');
|
|
825
|
+
const corporationKillmails = await killmailsClient.getCorporationRecentKillmails(demoCorp);
|
|
826
|
+
console.log('Corporation Recent Killmails:', corporationKillmails);
|
|
827
|
+
|
|
828
|
+
console.log('Testing getKillmail...');
|
|
829
|
+
const killmail = await killmailsClient.getKillmail(119525756, 'abcdef1234567890');
|
|
830
|
+
console.log('Killmail:', killmail);
|
|
831
|
+
|
|
832
|
+
console.log('All Killmails API tests passed!');
|
|
833
|
+
} catch (error) {
|
|
834
|
+
console.error('Killmails API test failed:', error);
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
const testLocationApis = async () => {
|
|
839
|
+
try {
|
|
840
|
+
console.log("LOCATION TESTING");
|
|
841
|
+
const location = await locationClient.getCharacterLocation(demoCharacter);
|
|
842
|
+
console.log('Character Location:', location);
|
|
843
|
+
|
|
844
|
+
const onlineStatus = await locationClient.getCharacterOnline(demoCharacter);
|
|
845
|
+
console.log('Character Online Status:', onlineStatus);
|
|
846
|
+
|
|
847
|
+
const ship = await locationClient.getCharacterShip(demoCharacter);
|
|
848
|
+
console.log('Character Ship:', ship);
|
|
849
|
+
|
|
850
|
+
} catch (error) {
|
|
851
|
+
console.error('Error testing Location APIs:', error);
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
const testLoyaltyApis = async () => {
|
|
857
|
+
try {
|
|
858
|
+
const corporationId = 123;
|
|
859
|
+
|
|
860
|
+
const loyaltyPoints = await loyaltyClient.getLoyaltyPoints(demoCharacter);
|
|
861
|
+
console.log('Loyalty Points:', loyaltyPoints);
|
|
862
|
+
|
|
863
|
+
const loyaltyStoreOffers = await loyaltyClient.getLoyaltyStoreOffers(56);
|
|
864
|
+
console.log('Loyalty Store Offers:', loyaltyStoreOffers);
|
|
865
|
+
|
|
866
|
+
} catch (error) {
|
|
867
|
+
console.error('Error testing Loyalty APIs:', error);
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
const testPI = async () => {
|
|
873
|
+
|
|
874
|
+
try {
|
|
875
|
+
console.log('Testing getColonies...');
|
|
876
|
+
const colonies = await piClient.getColonies(demoCharacter);
|
|
877
|
+
console.log('Colonies:', colonies);
|
|
878
|
+
|
|
879
|
+
console.log('Testing getColonyLayout...');
|
|
880
|
+
const colonyLayout = await piClient.getColonyLayout(demoCharacter, 123);
|
|
881
|
+
console.log('Colony Layout:', colonyLayout);
|
|
882
|
+
|
|
883
|
+
console.log('Testing getCorporationCustomsOffices...');
|
|
884
|
+
const customsOffices = await piClient.getCorporationCustomsOffices(demoCorp);
|
|
885
|
+
console.log('Customs Offices:', customsOffices);
|
|
886
|
+
|
|
887
|
+
console.log('Testing getSchematicInformation...');
|
|
888
|
+
const schematicInformation = await piClient.getSchematicInformation(1);
|
|
889
|
+
console.log('Schematic Information:', schematicInformation);
|
|
890
|
+
|
|
891
|
+
} catch (error) {
|
|
892
|
+
console.error('Error testing PI APIs:', error);
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
const testCharacterSkills = async () => {
|
|
897
|
+
try {
|
|
898
|
+
console.log('Testing getCharacterAttributes...');
|
|
899
|
+
const attributes = await skillsClient.getCharacterAttributes(demoCharacter);
|
|
900
|
+
console.log('Attributes:', attributes);
|
|
901
|
+
|
|
902
|
+
console.log('Testing getCharacterSkillQueue...');
|
|
903
|
+
const skillQueue = await skillsClient.getCharacterSkillQueue(demoCharacter);
|
|
904
|
+
console.log('Skill Queue:', skillQueue);
|
|
905
|
+
|
|
906
|
+
console.log('Testing getCharacterSkills...');
|
|
907
|
+
const skills = await skillsClient.getCharacterSkills(demoCharacter);
|
|
908
|
+
console.log('Skills:', skills);
|
|
909
|
+
} catch (error) {
|
|
910
|
+
console.error('Error testing Character Skills APIs:', error);
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
const testMailApis = async () => {
|
|
915
|
+
try {
|
|
916
|
+
console.log('Testing getMailHeaders...');
|
|
917
|
+
const headers = await mailClient.getMailHeaders(demoCharacter);
|
|
918
|
+
console.log('Mail headers:', headers);
|
|
919
|
+
|
|
920
|
+
console.log('Testing sendMail...');
|
|
921
|
+
const newMailBody = {
|
|
922
|
+
recipients: [{ recipient_id: 123, recipient_type: 'character' }],
|
|
923
|
+
subject: 'Test Mail',
|
|
924
|
+
body: 'This is a test mail'
|
|
925
|
+
};
|
|
926
|
+
const sentMail = await mailClient.sendMail(demoCharacter, newMailBody);
|
|
927
|
+
console.log('Sent mail:', sentMail);
|
|
928
|
+
|
|
929
|
+
console.log('Testing deleteMail...');
|
|
930
|
+
const deleteMailResult = await mailClient.deleteMail(demoCharacter, 1);
|
|
931
|
+
console.log('Deleted mail:', deleteMailResult);
|
|
932
|
+
|
|
933
|
+
console.log('Testing getMail...');
|
|
934
|
+
const mail = await mailClient.getMail(demoCharacter, 1);
|
|
935
|
+
console.log('Mail:', mail);
|
|
936
|
+
|
|
937
|
+
console.log('Testing updateMailMetadata...');
|
|
938
|
+
const updateMailBody = {
|
|
939
|
+
labels: [1, 2],
|
|
940
|
+
read: true
|
|
941
|
+
};
|
|
942
|
+
const updateMailResult = await mailClient.updateMailMetadata(demoCharacter, 1, updateMailBody);
|
|
943
|
+
console.log('Updated mail metadata:', updateMailResult);
|
|
944
|
+
|
|
945
|
+
console.log('Testing getMailLabels...');
|
|
946
|
+
const labels = await mailClient.getMailLabels(demoCharacter);
|
|
947
|
+
console.log('Mail labels and unread counts:', labels);
|
|
948
|
+
|
|
949
|
+
console.log('Testing createMailLabel...');
|
|
950
|
+
const newLabelBody = {
|
|
951
|
+
name: 'New Label'
|
|
952
|
+
};
|
|
953
|
+
const createdLabel = await mailClient.createMailLabel(demoCharacter, newLabelBody);
|
|
954
|
+
console.log('Created mail label:', createdLabel);
|
|
955
|
+
|
|
956
|
+
console.log('Testing deleteMailLabel...');
|
|
957
|
+
const deleteLabelResult = await mailClient.deleteMailLabel(demoCharacter, 1);
|
|
958
|
+
console.log('Deleted mail label:', deleteLabelResult);
|
|
959
|
+
|
|
960
|
+
console.log('Testing getMailingLists...');
|
|
961
|
+
const mailingLists = await mailClient.getMailingLists(demoCharacter);
|
|
962
|
+
console.log('Mailing lists:', mailingLists);
|
|
963
|
+
|
|
964
|
+
} catch (error) {
|
|
965
|
+
console.error('Error testing Mail APIs:', error);
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
const testUIClient = async () => {
|
|
970
|
+
try {
|
|
971
|
+
console.log('Testing setAutopilotWaypoint');
|
|
972
|
+
const autopilotResponse = await uiClient.setAutopilotWaypoint({
|
|
973
|
+
destination_id: 30002505,
|
|
974
|
+
clear_other_waypoints: true,
|
|
975
|
+
add_to_beginning: false
|
|
976
|
+
});
|
|
977
|
+
console.log('setAutopilotWaypoint Response:', autopilotResponse);
|
|
978
|
+
|
|
979
|
+
console.log('Testing openContractWindow');
|
|
980
|
+
const contractWindowResponse = await uiClient.openContractWindow({
|
|
981
|
+
contract_id: 123456789
|
|
982
|
+
});
|
|
983
|
+
console.log('openContractWindow Response:', contractWindowResponse);
|
|
984
|
+
|
|
985
|
+
console.log('Testing openInformationWindow');
|
|
986
|
+
const informationWindowResponse = await uiClient.openInformationWindow({
|
|
987
|
+
target_id: 123456789
|
|
988
|
+
});
|
|
989
|
+
console.log('openInformationWindow Response:', informationWindowResponse);
|
|
990
|
+
|
|
991
|
+
console.log('Testing openMarketDetailsWindow');
|
|
992
|
+
const marketDetailsWindowResponse = await uiClient.openMarketDetailsWindow({
|
|
993
|
+
type_id: 123456
|
|
994
|
+
});
|
|
995
|
+
console.log('openMarketDetailsWindow Response:', marketDetailsWindowResponse);
|
|
996
|
+
|
|
997
|
+
console.log('Testing openNewMailWindow');
|
|
998
|
+
const newMailWindowResponse = await uiClient.openNewMailWindow({
|
|
999
|
+
to: [123456789],
|
|
1000
|
+
subject: 'Test Subject',
|
|
1001
|
+
body: 'Test Body'
|
|
1002
|
+
});
|
|
1003
|
+
console.log('openNewMailWindow Response:', newMailWindowResponse);
|
|
1004
|
+
} catch (error) {
|
|
1005
|
+
console.error('Error testing Alliance APIs:', error);
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
const testWallet = async () => {
|
|
1011
|
+
try {
|
|
1012
|
+
const division = 1;
|
|
1013
|
+
|
|
1014
|
+
console.log(await walletClient.getCharacterWallet(demoCharacter));
|
|
1015
|
+
console.log(await walletClient.getCharacterWalletJournal(demoCharacter));
|
|
1016
|
+
console.log(await walletClient.getCharacterWalletTransactions(demoCharacter));
|
|
1017
|
+
|
|
1018
|
+
console.log(await walletClient.getCorporationWallets(demoCorp));
|
|
1019
|
+
console.log(await walletClient.getCorporationWalletJournal(demoCorp, division));
|
|
1020
|
+
console.log(await walletClient.getCorporationWalletTransactions(demoCorp, division));
|
|
1021
|
+
} catch (error) {
|
|
1022
|
+
console.error('Error testing Alliance APIs:', error);
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
const testContacts = async () => {
|
|
1027
|
+
|
|
1028
|
+
try {
|
|
1029
|
+
|
|
1030
|
+
console.log(await contactsClient.getAllianceContacts(123456));
|
|
1031
|
+
console.log(await contactsClient.getAllianceContactLabels(123456));
|
|
1032
|
+
console.log(await contactsClient.deleteCharacterContacts(123456, [1, 2, 3]));
|
|
1033
|
+
console.log(await contactsClient.getCharacterContacts(123456));
|
|
1034
|
+
console.log(await contactsClient.postCharacterContacts(123456, { contact_ids: [1, 2], standing: 10 }));
|
|
1035
|
+
console.log(await contactsClient.putCharacterContacts(123456, { contact_ids: [1, 2], standing: 5 }));
|
|
1036
|
+
console.log(await contactsClient.getCharacterContactLabels(123456));
|
|
1037
|
+
console.log(await contactsClient.getCorporationContacts(123456));
|
|
1038
|
+
console.log(await contactsClient.getCorporationContactLabels(123456));
|
|
1039
|
+
} catch (error) {
|
|
1040
|
+
console.error('Error testing Contacts APIs:', error);
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
export const testMarketApis = async () => {
|
|
1045
|
+
try {
|
|
1046
|
+
// Test getCharacterOrders
|
|
1047
|
+
const characterOrders = await marketClient.getCharacterOrders(demoCharacter);
|
|
1048
|
+
console.log('Character Orders:', characterOrders);
|
|
1049
|
+
|
|
1050
|
+
// Test getCharacterOrdersHistory
|
|
1051
|
+
const characterOrdersHistory = await marketClient.getCharacterOrderHistory(demoCharacter);
|
|
1052
|
+
console.log('Character Orders History:', characterOrdersHistory);
|
|
1053
|
+
|
|
1054
|
+
// Test getCorporationOrders
|
|
1055
|
+
const corporationOrders = await marketClient.getCorporationOrders(demoCorp);
|
|
1056
|
+
console.log('Corporation Orders:', corporationOrders);
|
|
1057
|
+
|
|
1058
|
+
// Test getCorporationOrdersHistory
|
|
1059
|
+
const corporationOrdersHistory = await marketClient.getCorporationOrderHistory(demoCorp);
|
|
1060
|
+
console.log('Corporation Orders History:', corporationOrdersHistory);
|
|
1061
|
+
|
|
1062
|
+
// Test getMarketHistory
|
|
1063
|
+
const marketHistory = await marketClient.getMarketHistory(123, 456);
|
|
1064
|
+
console.log('Market History:', marketHistory);
|
|
1065
|
+
|
|
1066
|
+
// Test getMarketOrders
|
|
1067
|
+
const marketOrders = await marketClient.getMarketOrders(30000142); //Jita (30000142) is in The Forge (10000002)
|
|
1068
|
+
console.log('Market Orders:', marketOrders);
|
|
1069
|
+
|
|
1070
|
+
// Test getMarketTypes
|
|
1071
|
+
const marketTypes = await marketClient.getMarketTypes(123);
|
|
1072
|
+
console.log('Market Types:', marketTypes);
|
|
1073
|
+
|
|
1074
|
+
// Test getMarketGroups
|
|
1075
|
+
const marketGroups = await marketClient.getMarketGroups();
|
|
1076
|
+
console.log('Market Groups:', marketGroups);
|
|
1077
|
+
|
|
1078
|
+
// Test getMarketGroupInformation
|
|
1079
|
+
const marketGroupInformation = await marketClient.getMarketGroupInformation(123);
|
|
1080
|
+
console.log('Market Group Information:', marketGroupInformation);
|
|
1081
|
+
|
|
1082
|
+
// Test getMarketPrices
|
|
1083
|
+
const marketPrices = await marketClient.getMarketPrices();
|
|
1084
|
+
console.log('Market Prices:', marketPrices);
|
|
1085
|
+
|
|
1086
|
+
// Test getMarketOrdersInStructure
|
|
1087
|
+
const marketOrdersInStructure = await marketClient.getMarketOrdersInStructure(123456789);
|
|
1088
|
+
console.log('Market Orders In Structure:', marketOrdersInStructure);
|
|
1089
|
+
} catch (error) {
|
|
1090
|
+
console.error('Error testing Market APIs:', error);
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
const writeResponseToFileSync = (filename: string, data: any) => {
|
|
1095
|
+
try {
|
|
1096
|
+
// Define the file path (saving in the project's root directory)
|
|
1097
|
+
const filePath = path.join(__dirname, filename);
|
|
1098
|
+
|
|
1099
|
+
// Convert JSON body to a string
|
|
1100
|
+
const jsonData = JSON.stringify(data, null, 2); // Pretty print with 2 spaces
|
|
1101
|
+
|
|
1102
|
+
// Write the file synchronously
|
|
1103
|
+
fs.writeFileSync(filePath, jsonData, 'utf8');
|
|
1104
|
+
|
|
1105
|
+
console.log(`File has been written to ${filePath}`);
|
|
1106
|
+
console.log(jsonData.length);
|
|
1107
|
+
} catch (error) {
|
|
1108
|
+
console.error('Error writing file:', error);
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
const testMarketOrders2 = async () => {
|
|
1113
|
+
try {
|
|
1114
|
+
const { headers, body } = await marketClient.getMarketOrders(10000002);
|
|
1115
|
+
// console.log('Market Orders:', JSON.stringify(body, null, 2));
|
|
1116
|
+
const bodySize = JSON.stringify(body).length;
|
|
1117
|
+
console.log('Size of JSON body (in characters):', bodySize);
|
|
1118
|
+
writeResponseToFileSync('marketOrders.json', body);
|
|
1119
|
+
// console.log('X-Pages:', HeadersUtil.xPages);
|
|
1120
|
+
// console.log('Full Headers:', headers);
|
|
1121
|
+
} catch (error) {
|
|
1122
|
+
console.error('Error testing Market Orders:', error);
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
logger.info('Testing about to begin');
|
|
1128
|
+
logger.info('Auth Token is ' + config.authToken + ' be happy if this is not set and a blank space exists');
|
|
1129
|
+
logger.info('config is pointing towards ' + config.link);
|
|
1130
|
+
|
|
1131
|
+
//testFactionAPIs();
|
|
1132
|
+
//testAllianceAPIs();
|
|
1133
|
+
//testWarsAPI();
|
|
1134
|
+
testStatusAPI();
|
|
1135
|
+
//testUniverseAPIs();
|
|
1136
|
+
//testInsurancePrices();
|
|
1137
|
+
//testDogmaAPI();
|
|
1138
|
+
//testRouteAPI();
|
|
1139
|
+
//testIncursionsAPI();
|
|
1140
|
+
//testOpportunitiesAPIs();
|
|
1141
|
+
//testCharacterSearchAPI();
|
|
1142
|
+
//testSovereigntyAPIs();
|
|
1143
|
+
//testAssetsAPI();
|
|
1144
|
+
//testBookmarkAPIs();
|
|
1145
|
+
//testCalendarAPIs();
|
|
1146
|
+
//testClonesAPI();
|
|
1147
|
+
//testCharacterApi();
|
|
1148
|
+
//testContracts();
|
|
1149
|
+
//testCorporations();
|
|
1150
|
+
//testFittings();
|
|
1151
|
+
//testFleet();
|
|
1152
|
+
//testIndustry();
|
|
1153
|
+
//testKillmails();
|
|
1154
|
+
//testLocationApis();
|
|
1155
|
+
//testLoyaltyApis();
|
|
1156
|
+
//testPI();
|
|
1157
|
+
//testCharacterSkills();
|
|
1158
|
+
//testMailApis();
|
|
1159
|
+
//testUIClient();
|
|
1160
|
+
//testWallet();
|
|
1161
|
+
//testContacts();
|
|
1162
|
+
//testMarketApis();
|
|
1163
|
+
//testMarketOrders2();
|