@lgriffin/esi.ts 4.0.0 → 5.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/CHANGELOG.md +156 -0
- package/LICENSE +26 -26
- package/README.md +562 -557
- package/dist/EsiClient.d.ts +8 -2
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/EsiClient.js +9 -0
- package/dist/EsiClientBuilder.d.ts +4 -1
- package/dist/EsiClientBuilder.d.ts.map +1 -1
- package/dist/EsiClientBuilder.js +9 -0
- package/dist/clients/AccessListsClient.d.ts +15 -0
- package/dist/clients/AccessListsClient.d.ts.map +1 -0
- package/dist/clients/AccessListsClient.js +20 -0
- package/dist/clients/MercenaryClient.d.ts +20 -0
- package/dist/clients/MercenaryClient.d.ts.map +1 -0
- package/dist/clients/MercenaryClient.js +27 -0
- package/dist/clients/SkyhooksClient.d.ts +26 -0
- package/dist/clients/SkyhooksClient.d.ts.map +1 -0
- package/dist/clients/SkyhooksClient.js +35 -0
- package/dist/clients/SovereigntyClient.d.ts +4 -10
- package/dist/clients/SovereigntyClient.d.ts.map +1 -1
- package/dist/clients/SovereigntyClient.js +4 -12
- package/dist/clients/UniverseClient.d.ts +2 -2
- package/dist/clients/UniverseClient.d.ts.map +1 -1
- package/dist/clients/UniverseClient.js +3 -3
- package/dist/config/configManager.d.ts.map +1 -1
- package/dist/config/configManager.js +12 -6
- package/dist/config/jest/jest.setup.js +0 -1
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/ApiRequestHandler.js +6 -2
- package/dist/core/ClientRegistry.d.ts +6 -4
- package/dist/core/ClientRegistry.d.ts.map +1 -1
- package/dist/core/ClientRegistry.js +11 -2
- package/dist/core/circuitBreaker/CircuitBreaker.js +2 -2
- package/dist/core/constants.d.ts +3 -3
- package/dist/core/constants.js +2 -2
- package/dist/core/endpoints/accessListEndpoints.d.ts +9 -0
- package/dist/core/endpoints/accessListEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/accessListEndpoints.js +11 -0
- package/dist/core/endpoints/assetEndpoints.d.ts +4 -12
- package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/assetEndpoints.js +4 -4
- package/dist/core/endpoints/contactEndpoints.d.ts +1 -3
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/contactEndpoints.js +1 -1
- package/dist/core/endpoints/mercenaryEndpoints.d.ts +13 -0
- package/dist/core/endpoints/mercenaryEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/mercenaryEndpoints.js +15 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts +18 -0
- package/dist/core/endpoints/skyhookEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/skyhookEndpoints.js +20 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts +2 -7
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/sovereigntyEndpoints.js +2 -7
- package/dist/core/endpoints/universeEndpoints.d.ts +2 -6
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.js +2 -2
- package/dist/core/util/testHelpers.d.ts +0 -2
- package/dist/core/util/testHelpers.d.ts.map +1 -1
- package/dist/core/util/testHelpers.js +3 -19
- package/dist/core/util/validation.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/testing/TestDataFactory.d.ts +8 -2
- package/dist/testing/TestDataFactory.d.ts.map +1 -1
- package/dist/testing/TestDataFactory.js +86 -1
- package/dist/types/access-lists.d.ts +11 -0
- package/dist/types/access-lists.d.ts.map +1 -0
- package/dist/types/api-responses.d.ts +3 -0
- package/dist/types/api-responses.d.ts.map +1 -1
- package/dist/types/api-responses.js +3 -0
- package/dist/types/mercenary.d.ts +19 -0
- package/dist/types/mercenary.d.ts.map +1 -0
- package/dist/types/mercenary.js +2 -0
- package/dist/types/skyhooks.d.ts +27 -0
- package/dist/types/skyhooks.d.ts.map +1 -0
- package/dist/types/skyhooks.js +2 -0
- package/dist/types/sovereignty.d.ts +11 -9
- package/dist/types/sovereignty.d.ts.map +1 -1
- package/package.json +181 -156
- package/dist/api/alliances/getAllianceById.js +0 -17
- package/dist/api/alliances/getAllianceContactLabels.js +0 -13
- package/dist/api/alliances/getAllianceContacts.js +0 -13
- package/dist/api/alliances/getAllianceCorporations.js +0 -13
- package/dist/api/alliances/getAllianceIcons.js +0 -13
- package/dist/api/alliances/getAlliances.js +0 -13
- package/dist/api/assets/getCharacterAssets.js +0 -13
- package/dist/api/assets/getCorporationAssets.js +0 -13
- package/dist/api/assets/postCharacterAssetLocations.js +0 -13
- package/dist/api/assets/postCharacterAssetNames.js +0 -13
- package/dist/api/assets/postCorporationAssetLocations.js +0 -13
- package/dist/api/assets/postCorporationAssetNames.js +0 -13
- package/dist/api/bookmarks/getCharacterBookmarkFolders.js +0 -13
- package/dist/api/bookmarks/getCharacterBookmarks.js +0 -13
- package/dist/api/bookmarks/getCorporationBookmarkFolders.js +0 -13
- package/dist/api/bookmarks/getCorporationBookmarks.js +0 -13
- package/dist/api/calendar/getCalendarEventById.js +0 -13
- package/dist/api/calendar/getCalendarEvents.js +0 -13
- package/dist/api/calendar/getEventAttendees.js +0 -13
- package/dist/api/calendar/respondToCalendarEvent.js +0 -14
- package/dist/api/characters/getAgentsResearch.js +0 -13
- package/dist/api/characters/getBlueprints.js +0 -13
- package/dist/api/characters/getCharacterPublicInfo.js +0 -13
- package/dist/api/characters/getCharacterRoles.js +0 -13
- package/dist/api/characters/getCharacterStandings.js +0 -13
- package/dist/api/characters/getCharacterTitles.js +0 -13
- package/dist/api/characters/getContactNotifications.js +0 -13
- package/dist/api/characters/getCorporationHistory.js +0 -13
- package/dist/api/characters/getJumpFatigue.js +0 -13
- package/dist/api/characters/getMedals.js +0 -13
- package/dist/api/characters/getNotifications.js +0 -13
- package/dist/api/characters/getPortrait.js +0 -13
- package/dist/api/characters/postCSPAChargeCost.js +0 -13
- package/dist/api/characters/postCharacterAffiliations.js +0 -14
- package/dist/api/clones/getClones.js +0 -14
- package/dist/api/clones/getImplants.js +0 -14
- package/dist/api/clones/postJumpCloneActivation.js +0 -14
- package/dist/api/contacts/deleteCharacterContacts.js +0 -13
- package/dist/api/contacts/getAllianceContactLabels.js +0 -13
- package/dist/api/contacts/getAllianceContacts.js +0 -13
- package/dist/api/contacts/getCharacterContactLabels.js +0 -13
- package/dist/api/contacts/getCharacterContacts.js +0 -13
- package/dist/api/contacts/getCorporationContactLabels.js +0 -13
- package/dist/api/contacts/getCorporationContacts.js +0 -13
- package/dist/api/contacts/postCharacterContacts.js +0 -13
- package/dist/api/contacts/putCharacterContacts.js +0 -13
- package/dist/api/contracts/getCharacterContractBids.js +0 -13
- package/dist/api/contracts/getCharacterContractItems.js +0 -13
- package/dist/api/contracts/getCharacterContracts.js +0 -13
- package/dist/api/contracts/getCorporationContractBids.js +0 -13
- package/dist/api/contracts/getCorporationContractItems.js +0 -13
- package/dist/api/contracts/getCorporationContracts.js +0 -13
- package/dist/api/contracts/getPublicContractBids.js +0 -13
- package/dist/api/contracts/getPublicContractItems.js +0 -13
- package/dist/api/contracts/getPublicContracts.js +0 -13
- package/dist/api/corporations/getCorporationAllianceHistory.js +0 -13
- package/dist/api/corporations/getCorporationAlscLogs.js +0 -13
- package/dist/api/corporations/getCorporationBlueprints.js +0 -13
- package/dist/api/corporations/getCorporationDivisions.js +0 -13
- package/dist/api/corporations/getCorporationFacilities.js +0 -13
- package/dist/api/corporations/getCorporationIcon.js +0 -13
- package/dist/api/corporations/getCorporationInfo.js +0 -13
- package/dist/api/corporations/getCorporationIssuedMedals.js +0 -13
- package/dist/api/corporations/getCorporationMedals.js +0 -13
- package/dist/api/corporations/getCorporationMemberLimit.js +0 -13
- package/dist/api/corporations/getCorporationMemberRoles.js +0 -13
- package/dist/api/corporations/getCorporationMemberRolesHistory.js +0 -13
- package/dist/api/corporations/getCorporationMemberTracking.js +0 -13
- package/dist/api/corporations/getCorporationMembers.js +0 -13
- package/dist/api/corporations/getCorporationMembersTitles.js +0 -13
- package/dist/api/corporations/getCorporationProjects.js +0 -13
- package/dist/api/corporations/getCorporationShareholders.js +0 -13
- package/dist/api/corporations/getCorporationStandings.js +0 -13
- package/dist/api/corporations/getCorporationStarbaseDetail.js +0 -13
- package/dist/api/corporations/getCorporationStarbases.js +0 -13
- package/dist/api/corporations/getCorporationStructures.js +0 -13
- package/dist/api/corporations/getCorporationTitles.js +0 -13
- package/dist/api/corporations/getNpcCorporations.js +0 -13
- package/dist/api/dogma/getDogmaAttributeById.js +0 -13
- package/dist/api/dogma/getDogmaAttributes.js +0 -13
- package/dist/api/dogma/getDogmaDynamicItemAttributes.js +0 -13
- package/dist/api/dogma/getDogmaEffectById.js +0 -13
- package/dist/api/dogma/getDogmaEffects.js +0 -13
- package/dist/api/factions/getCharacterFactionWarfareStats.js +0 -13
- package/dist/api/factions/getCharacterLeaderboards.js +0 -13
- package/dist/api/factions/getCorporationFactionWarfareStats.js +0 -13
- package/dist/api/factions/getCorporationLeaderboards.js +0 -13
- package/dist/api/factions/getFactionLeaderboards.js +0 -13
- package/dist/api/factions/getFactionWarfareStats.js +0 -13
- package/dist/api/factions/getFactionWarfareSystems.js +0 -13
- package/dist/api/factions/getFactionWarfareWars.js +0 -13
- package/dist/api/fittings/deleteCharacterFitting.js +0 -13
- package/dist/api/fittings/getCharacterFittings.js +0 -13
- package/dist/api/fittings/postCharacterFittings.js +0 -13
- package/dist/api/fleets/deleteFleetMember.js +0 -13
- package/dist/api/fleets/deleteFleetSquad.js +0 -13
- package/dist/api/fleets/deleteFleetWing.js +0 -13
- package/dist/api/fleets/getCharacterFleetInfo.js +0 -13
- package/dist/api/fleets/getFleetInfo.js +0 -13
- package/dist/api/fleets/getFleetMembers.js +0 -13
- package/dist/api/fleets/getFleetWings.js +0 -13
- package/dist/api/fleets/postFleetInvitation.js +0 -13
- package/dist/api/fleets/postFleetSquad.js +0 -14
- package/dist/api/fleets/postFleetWing.js +0 -13
- package/dist/api/fleets/putFleetMember.js +0 -13
- package/dist/api/fleets/putFleetSquad.js +0 -13
- package/dist/api/fleets/putFleetWing.js +0 -14
- package/dist/api/fleets/updateFleet.js +0 -13
- package/dist/api/incursions/getIncursions.js +0 -13
- package/dist/api/industry/getCharacterIndustryJobs.js +0 -13
- package/dist/api/industry/getCharacterMiningLedger.js +0 -13
- package/dist/api/industry/getCorporationIndustryJobs.js +0 -13
- package/dist/api/industry/getCorporationMiningObserver.js +0 -13
- package/dist/api/industry/getCorporationMiningObservers.js +0 -13
- package/dist/api/industry/getIndustryFacilities.js +0 -13
- package/dist/api/industry/getIndustrySystems.js +0 -13
- package/dist/api/industry/getMoonExtractionTimers.js +0 -13
- package/dist/api/insurance/getInsurancePrices.js +0 -13
- package/dist/api/killmails/getCharacterRecentKillmails.js +0 -13
- package/dist/api/killmails/getCorporationRecentKillmails.js +0 -13
- package/dist/api/killmails/getKillmail.js +0 -13
- package/dist/api/location/getCharacterLocation.js +0 -13
- package/dist/api/location/getCharacterOnline.js +0 -13
- package/dist/api/location/getCharacterShip.js +0 -13
- package/dist/api/loyalty/getLoyaltyPoints.js +0 -13
- package/dist/api/loyalty/getLoyaltyStoreOffers.js +0 -13
- package/dist/api/mail/deleteCharacterMail.js +0 -13
- package/dist/api/mail/deleteCharacterMailLabel.js +0 -13
- package/dist/api/mail/deleteCharacterMailLabel.test.js +0 -21
- package/dist/api/mail/getCharacerMailingLists.test.js +0 -33
- package/dist/api/mail/getCharacterMail.js +0 -13
- package/dist/api/mail/getCharacterMailHeaders.js +0 -13
- package/dist/api/mail/getCharacterMailLabels.js +0 -13
- package/dist/api/mail/getCharacterMailingLists.js +0 -13
- package/dist/api/mail/postCharacterMail.js +0 -13
- package/dist/api/mail/postCharacterMailLabels.js +0 -13
- package/dist/api/mail/putCharacterMail.js +0 -13
- package/dist/api/market/getCharacterOrderHistory.js +0 -13
- package/dist/api/market/getCharacterOrders.js +0 -13
- package/dist/api/market/getCorporationOrderHistory.js +0 -13
- package/dist/api/market/getCorporationOrders.js +0 -13
- package/dist/api/market/getMarketGroupInformation.js +0 -13
- package/dist/api/market/getMarketGroups.js +0 -13
- package/dist/api/market/getMarketHistory.js +0 -13
- package/dist/api/market/getMarketOrders.js +0 -13
- package/dist/api/market/getMarketOrdersInStructure.js +0 -13
- package/dist/api/market/getMarketPrices.js +0 -13
- package/dist/api/market/getMarketTypes.js +0 -13
- package/dist/api/meta/getSwaggerJson.js +0 -13
- package/dist/api/meta/getSwaggerYaml.js +0 -37
- package/dist/api/opportunities/getCharacterOpportunities.js +0 -13
- package/dist/api/opportunities/getOpportunitiesGroupById.js +0 -13
- package/dist/api/opportunities/getOpportunitiesGroups.js +0 -13
- package/dist/api/opportunities/getOpportunitiesTaskById.js +0 -13
- package/dist/api/opportunities/getOpportunitiesTasks.js +0 -13
- package/dist/api/pi/getColonies.js +0 -13
- package/dist/api/pi/getColonyLayout.js +0 -13
- package/dist/api/pi/getCorporationCustomsOffices.js +0 -13
- package/dist/api/pi/getSchematicInformation.js +0 -13
- package/dist/api/route/getRoute.js +0 -13
- package/dist/api/search/getCharacterSearch.js +0 -13
- package/dist/api/skills/getCharacterAttributes.js +0 -13
- package/dist/api/skills/getCharacterSkillQueue.js +0 -13
- package/dist/api/skills/getCharacterSkills.js +0 -13
- package/dist/api/sovereignty/getSovereigntyCampaigns.js +0 -13
- package/dist/api/sovereignty/getSovereigntyMap.js +0 -13
- package/dist/api/sovereignty/getSovereigntyStructures.js +0 -13
- package/dist/api/status/getStatus.js +0 -13
- package/dist/api/ui/postAutopilotWaypoint.js +0 -13
- package/dist/api/ui/postOpenContractWindow.js +0 -13
- package/dist/api/ui/postOpenInformationWindow.js +0 -13
- package/dist/api/ui/postOpenMarketDetailsWindow.js +0 -13
- package/dist/api/ui/postOpenNewMailWindow.js +0 -13
- package/dist/api/universe/getAncestries.js +0 -13
- package/dist/api/universe/getAsteroidBeltInfo.js +0 -13
- package/dist/api/universe/getBloodlines.js +0 -13
- package/dist/api/universe/getConstellationById.js +0 -13
- package/dist/api/universe/getConstellations.js +0 -13
- package/dist/api/universe/getFactions.js +0 -13
- package/dist/api/universe/getGraphicById.js +0 -13
- package/dist/api/universe/getGraphics.js +0 -13
- package/dist/api/universe/getItemCategories.js +0 -13
- package/dist/api/universe/getItemCategoryById.js +0 -13
- package/dist/api/universe/getItemGroupById.js +0 -13
- package/dist/api/universe/getItemGroups.js +0 -13
- package/dist/api/universe/getMoonById.js +0 -13
- package/dist/api/universe/getPlanetById.js +0 -13
- package/dist/api/universe/getRaces.js +0 -13
- package/dist/api/universe/getRegionById.js +0 -13
- package/dist/api/universe/getRegions.js +0 -13
- package/dist/api/universe/getSchematicById.js +0 -13
- package/dist/api/universe/getStarById.js +0 -13
- package/dist/api/universe/getStargateById.js +0 -13
- package/dist/api/universe/getStationById.js +0 -13
- package/dist/api/universe/getStructureById.js +0 -13
- package/dist/api/universe/getStructures.js +0 -13
- package/dist/api/universe/getSystemById.js +0 -13
- package/dist/api/universe/getSystemJumps.js +0 -13
- package/dist/api/universe/getSystemKills.js +0 -13
- package/dist/api/universe/getSystems.js +0 -13
- package/dist/api/universe/getTypeById.js +0 -13
- package/dist/api/universe/getTypes.js +0 -13
- package/dist/api/universe/postBulkNamesToIds.js +0 -14
- package/dist/api/universe/postNamesAndCategories.js +0 -14
- package/dist/api/wallet/getCharacterWallet.js +0 -13
- package/dist/api/wallet/getCharacterWalletJournal.js +0 -13
- package/dist/api/wallet/getCharacterWalletTransactions.js +0 -13
- package/dist/api/wallet/getCorporationWalletJournal.js +0 -13
- package/dist/api/wallet/getCorporationWalletTransactions.js +0 -13
- package/dist/api/wallet/getCorporationWallets.js +0 -13
- package/dist/api/wars/getWarById.js +0 -13
- package/dist/api/wars/getWarKillmails.js +0 -13
- package/dist/api/wars/getWars.js +0 -13
- package/dist/builders/AllianceApiBuilder.js +0 -13
- package/dist/builders/AssetsApiBuilder.js +0 -13
- package/dist/builders/BookmarkApiBuilder.js +0 -13
- package/dist/builders/CalendarApiBuilder.js +0 -13
- package/dist/builders/CharacterApiBuilder.js +0 -13
- package/dist/builders/ClonesApiBuilder.js +0 -13
- package/dist/builders/ContactsApiBuilder.js +0 -13
- package/dist/builders/ContractsApiBuilder.js +0 -13
- package/dist/builders/CorporationsApiBuilder.js +0 -13
- package/dist/builders/DogmaApiBuilder.js +0 -13
- package/dist/builders/FactionApiBuilder.js +0 -13
- package/dist/builders/FittingsApiBuilder.js +0 -13
- package/dist/builders/FleetApiBuilder.js +0 -13
- package/dist/builders/IncursionsApiBuilder.js +0 -13
- package/dist/builders/IndustryApiBuilder.js +0 -13
- package/dist/builders/InsuranceApiBuilder.js +0 -13
- package/dist/builders/KillmailsBuilder.js +0 -13
- package/dist/builders/LocationApiBuilder.js +0 -13
- package/dist/builders/LoyaltyApiBuilder.js +0 -13
- package/dist/builders/MailApiBuilder.js +0 -13
- package/dist/builders/MarketApiBuilder.js +0 -13
- package/dist/builders/MetaApiBuilder.js +0 -13
- package/dist/builders/OpportunitiesApiBuilder.js +0 -13
- package/dist/builders/PiApiBuilder.js +0 -13
- package/dist/builders/RouteApiBuilder.js +0 -13
- package/dist/builders/SearchApiBuilder.js +0 -13
- package/dist/builders/SkillsApiBuilder.js +0 -13
- package/dist/builders/SovereigntyApiBuilder.js +0 -13
- package/dist/builders/StatusApiBuilder.js +0 -13
- package/dist/builders/UiApiBuilder.js +0 -13
- package/dist/builders/UniverseApiBuilder.js +0 -13
- package/dist/builders/WalletApiBuilder.js +0 -13
- package/dist/builders/WarsAPIBuilder.js +0 -13
- package/dist/clients/BookmarkClient.js +0 -28
- package/dist/clients/OpportunitiesClient.js +0 -33
- package/dist/config/constants.js +0 -11
- package/dist/core/ApiError.js +0 -11
- package/dist/core/container/Container.js +0 -145
- package/dist/core/errors/ApiError.js +0 -129
- package/dist/core/factory/ApiFactory.js +0 -170
- package/dist/core/logger/index.d.ts +0 -2
- package/dist/core/logger/index.d.ts.map +0 -1
- package/dist/core/logger/index.js +0 -8
- package/dist/core/util/file.js +0 -26
- package/dist/core/util/inputValidation.js +0 -9
- package/dist/core/util/network.js +0 -15
- package/dist/core/util/request.js +0 -21
- package/dist/testing/TestHelpers.js +0 -205
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{core/IAPIBuilder.js → types/access-lists.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyhooks.d.ts","sourceRoot":"","sources":["../../src/types/skyhooks.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -13,19 +13,21 @@ export interface SovereigntyCampaign {
|
|
|
13
13
|
score: number;
|
|
14
14
|
}[];
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
system_id: number;
|
|
18
|
-
alliance_id?: number;
|
|
19
|
-
corporation_id?: number;
|
|
20
|
-
faction_id?: number;
|
|
21
|
-
}
|
|
22
|
-
export interface SovereigntyStructure {
|
|
23
|
-
alliance_id: number;
|
|
24
|
-
solar_system_id: number;
|
|
16
|
+
export interface SovereigntySystemStructure {
|
|
25
17
|
structure_id: number;
|
|
26
18
|
structure_type_id: number;
|
|
27
19
|
vulnerability_occupancy_level?: number;
|
|
28
20
|
vulnerable_start_time?: string;
|
|
29
21
|
vulnerable_end_time?: string;
|
|
30
22
|
}
|
|
23
|
+
export interface SovereigntySystem {
|
|
24
|
+
system_id: number;
|
|
25
|
+
alliance_id?: number;
|
|
26
|
+
corporation_id?: number;
|
|
27
|
+
faction_id?: number;
|
|
28
|
+
military_index?: number;
|
|
29
|
+
industry_index?: number;
|
|
30
|
+
strategic_index?: number;
|
|
31
|
+
structures?: SovereigntySystemStructure[];
|
|
32
|
+
}
|
|
31
33
|
//# sourceMappingURL=sovereignty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sovereignty.d.ts","sourceRoot":"","sources":["../../src/types/sovereignty.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EACN,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"sovereignty.d.ts","sourceRoot":"","sources":["../../src/types/sovereignty.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EACN,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;CAC3C"}
|
package/package.json
CHANGED
|
@@ -1,156 +1,181 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lgriffin/esi.ts",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "This is a TypeScript Implementation for the EVE Online API offered through ESI",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"engines": {
|
|
9
|
-
"node": ">=18.0.0"
|
|
10
|
-
},
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"exports": {
|
|
15
|
-
".": {
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"require": "./dist/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./package.json": "./package.json"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"example
|
|
31
|
-
"example:
|
|
32
|
-
"example:
|
|
33
|
-
"example:
|
|
34
|
-
"example:
|
|
35
|
-
"example:
|
|
36
|
-
"example:
|
|
37
|
-
"example:
|
|
38
|
-
"example:
|
|
39
|
-
"example:
|
|
40
|
-
"example:
|
|
41
|
-
"example:
|
|
42
|
-
"example:
|
|
43
|
-
"example:
|
|
44
|
-
"example:
|
|
45
|
-
"example:
|
|
46
|
-
"example:
|
|
47
|
-
"example:
|
|
48
|
-
"example:
|
|
49
|
-
"example:
|
|
50
|
-
"example:
|
|
51
|
-
"example:
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"bdd
|
|
66
|
-
"bdd:
|
|
67
|
-
"bdd:
|
|
68
|
-
"bdd:
|
|
69
|
-
"bdd:
|
|
70
|
-
"bdd:
|
|
71
|
-
"bdd:
|
|
72
|
-
"bdd:
|
|
73
|
-
"bdd:
|
|
74
|
-
"bdd:
|
|
75
|
-
"bdd:
|
|
76
|
-
"bdd:
|
|
77
|
-
"bdd:
|
|
78
|
-
"bdd:
|
|
79
|
-
"bdd:
|
|
80
|
-
"bdd:
|
|
81
|
-
"bdd:
|
|
82
|
-
"bdd:
|
|
83
|
-
"bdd:
|
|
84
|
-
"bdd:
|
|
85
|
-
"bdd:
|
|
86
|
-
"bdd:
|
|
87
|
-
"bdd:
|
|
88
|
-
"bdd:
|
|
89
|
-
"bdd:
|
|
90
|
-
"bdd:
|
|
91
|
-
"bdd:
|
|
92
|
-
"bdd:
|
|
93
|
-
"bdd:
|
|
94
|
-
"bdd:
|
|
95
|
-
"bdd:
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@lgriffin/esi.ts",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "This is a TypeScript Implementation for the EVE Online API offered through ESI",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18.0.0"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"start": "ts-node examples/character-profile.ts",
|
|
30
|
+
"example": "ts-node examples/character-profile.ts",
|
|
31
|
+
"example:status": "ts-node examples/status.ts",
|
|
32
|
+
"example:character": "ts-node examples/character-lookup.ts",
|
|
33
|
+
"example:universe": "ts-node examples/universe-info.ts",
|
|
34
|
+
"example:market": "ts-node examples/market-prices.ts",
|
|
35
|
+
"example:alliance": "ts-node examples/alliance-info.ts",
|
|
36
|
+
"example:route": "ts-node examples/route-planner.ts",
|
|
37
|
+
"example:wars": "ts-node examples/wars.ts",
|
|
38
|
+
"example:sovereignty": "ts-node examples/sovereignty.ts",
|
|
39
|
+
"example:skyhooks": "ts-node examples/skyhooks.ts",
|
|
40
|
+
"example:mercenary": "ts-node examples/mercenary.ts",
|
|
41
|
+
"example:access-lists": "ts-node examples/access-lists.ts",
|
|
42
|
+
"example:industry": "ts-node examples/industry.ts",
|
|
43
|
+
"example:incursions": "ts-node examples/incursions.ts",
|
|
44
|
+
"example:dogma": "ts-node examples/dogma.ts",
|
|
45
|
+
"example:wallet": "ts-node examples/wallet-overview.ts",
|
|
46
|
+
"example:skills": "ts-node examples/skills-overview.ts",
|
|
47
|
+
"example:assets": "ts-node examples/assets-inventory.ts",
|
|
48
|
+
"example:contracts": "ts-node examples/contracts-browser.ts",
|
|
49
|
+
"example:killmails": "ts-node examples/killmails.ts",
|
|
50
|
+
"example:fleet": "ts-node examples/fleet-operations.ts",
|
|
51
|
+
"example:mail": "ts-node examples/mail-inbox.ts",
|
|
52
|
+
"example:location": "ts-node examples/location-tracker.ts",
|
|
53
|
+
"example:fittings": "ts-node examples/fittings-clones.ts",
|
|
54
|
+
"example:contacts": "ts-node examples/contacts.ts",
|
|
55
|
+
"example:rate-limiting": "ts-node examples/rate-limiting.ts",
|
|
56
|
+
"example:cursor-pagination": "ts-node examples/cursor-pagination.ts",
|
|
57
|
+
"example:token-refresh": "ts-node examples/token-refresh.ts",
|
|
58
|
+
"token:create": "ts-node scripts/create-token.ts",
|
|
59
|
+
"lint": "eslint src --ext .ts",
|
|
60
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
61
|
+
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
62
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
63
|
+
"test": "jest --config jest.unit.config.cjs",
|
|
64
|
+
"test:watch": "jest --config jest.unit.config.cjs --watch",
|
|
65
|
+
"bdd": "jest --config jest.unit.config.cjs --testPathPattern=bdd-",
|
|
66
|
+
"bdd:alliance": "jest --config jest.unit.config.cjs --testPathPattern=bdd-alliance",
|
|
67
|
+
"bdd:assets": "jest --config jest.unit.config.cjs --testPathPattern=bdd-assets",
|
|
68
|
+
"bdd:calendar": "jest --config jest.unit.config.cjs --testPathPattern=bdd-calendar",
|
|
69
|
+
"bdd:character": "jest --config jest.unit.config.cjs --testPathPattern=bdd-character",
|
|
70
|
+
"bdd:clones": "jest --config jest.unit.config.cjs --testPathPattern=bdd-clones",
|
|
71
|
+
"bdd:contacts": "jest --config jest.unit.config.cjs --testPathPattern=bdd-contacts",
|
|
72
|
+
"bdd:contracts": "jest --config jest.unit.config.cjs --testPathPattern=bdd-contracts",
|
|
73
|
+
"bdd:corporation": "jest --config jest.unit.config.cjs --testPathPattern=bdd-corporation",
|
|
74
|
+
"bdd:dogma": "jest --config jest.unit.config.cjs --testPathPattern=bdd-dogma",
|
|
75
|
+
"bdd:etag-caching": "jest --config jest.unit.config.cjs --testPathPattern=bdd-etag-caching",
|
|
76
|
+
"bdd:factions": "jest --config jest.unit.config.cjs --testPathPattern=bdd-factions",
|
|
77
|
+
"bdd:fittings": "jest --config jest.unit.config.cjs --testPathPattern=bdd-fittings",
|
|
78
|
+
"bdd:fleets": "jest --config jest.unit.config.cjs --testPathPattern=bdd-fleets",
|
|
79
|
+
"bdd:freelance": "jest --config jest.unit.config.cjs --testPathPattern=bdd-freelance",
|
|
80
|
+
"bdd:incursions": "jest --config jest.unit.config.cjs --testPathPattern=bdd-incursions",
|
|
81
|
+
"bdd:industry": "jest --config jest.unit.config.cjs --testPathPattern=bdd-industry",
|
|
82
|
+
"bdd:insurance": "jest --config jest.unit.config.cjs --testPathPattern=bdd-insurance",
|
|
83
|
+
"bdd:killmails": "jest --config jest.unit.config.cjs --testPathPattern=bdd-killmails",
|
|
84
|
+
"bdd:location": "jest --config jest.unit.config.cjs --testPathPattern=bdd-location",
|
|
85
|
+
"bdd:loyalty": "jest --config jest.unit.config.cjs --testPathPattern=bdd-loyalty",
|
|
86
|
+
"bdd:mail": "jest --config jest.unit.config.cjs --testPathPattern=bdd-mail",
|
|
87
|
+
"bdd:market": "jest --config jest.unit.config.cjs --testPathPattern=bdd-market",
|
|
88
|
+
"bdd:meta": "jest --config jest.unit.config.cjs --testPathPattern=bdd-meta",
|
|
89
|
+
"bdd:pi": "jest --config jest.unit.config.cjs --testPathPattern=bdd-pi",
|
|
90
|
+
"bdd:route": "jest --config jest.unit.config.cjs --testPathPattern=bdd-route",
|
|
91
|
+
"bdd:search": "jest --config jest.unit.config.cjs --testPathPattern=bdd-search",
|
|
92
|
+
"bdd:skills": "jest --config jest.unit.config.cjs --testPathPattern=bdd-skills",
|
|
93
|
+
"bdd:skyhooks": "jest --config jest.unit.config.cjs --testPathPattern=bdd-skyhooks",
|
|
94
|
+
"bdd:sovereignty": "jest --config jest.unit.config.cjs --testPathPattern=bdd-sovereignty",
|
|
95
|
+
"bdd:mercenary": "jest --config jest.unit.config.cjs --testPathPattern=bdd-mercenary",
|
|
96
|
+
"bdd:access-lists": "jest --config jest.unit.config.cjs --testPathPattern=bdd-access-lists",
|
|
97
|
+
"bdd:status": "jest --config jest.unit.config.cjs --testPathPattern=bdd-status",
|
|
98
|
+
"bdd:ui": "jest --config jest.unit.config.cjs --testPathPattern=bdd-ui",
|
|
99
|
+
"bdd:universe": "jest --config jest.unit.config.cjs --testPathPattern=bdd-universe",
|
|
100
|
+
"bdd:wallet": "jest --config jest.unit.config.cjs --testPathPattern=bdd-wallet",
|
|
101
|
+
"bdd:wars": "jest --config jest.unit.config.cjs --testPathPattern=bdd-wars",
|
|
102
|
+
"bdd:integration": "jest --config jest.unit.config.cjs --testPathPattern=bdd-integration",
|
|
103
|
+
"bdd:performance": "jest --config jest.unit.config.cjs --testPathPattern=bdd-performance",
|
|
104
|
+
"coverage": "jest --config jest.unit.config.cjs --coverage",
|
|
105
|
+
"test:integration": "jest --config jest.integration.config.cjs",
|
|
106
|
+
"test:integration:live": "node -e \"process.env.ESI_LIVE_TESTS='true';require('child_process').execSync('npx jest --config jest.integration.config.cjs --testPathPattern=live-esi',{stdio:'inherit',env:Object.assign({},process.env,{ESI_LIVE_TESTS:'true'})})\"",
|
|
107
|
+
"test:integration:gated": "node --env-file=.env -e \"require('child_process').execSync('npx jest --config jest.integration.config.cjs --testPathPattern=gated-auth',{stdio:'inherit',env:Object.assign({},process.env,{ESI_GATED_TESTS:'true'})})\"",
|
|
108
|
+
"test:all": "npm run test && npm run bdd && npm run test:integration",
|
|
109
|
+
"knip": "knip",
|
|
110
|
+
"validate:esi": "ts-node scripts/validate-esi-endpoints.ts",
|
|
111
|
+
"validate": "npm run lint && npm run format:check && npm run build && npm run coverage && knip --no-exit-code",
|
|
112
|
+
"validate:versions": "ts-node scripts/validate-versions.ts",
|
|
113
|
+
"check:all": "npm run lint && npm run format:check && npm run build && npm run coverage && knip --no-exit-code && npm run validate:esi && npm run validate:versions",
|
|
114
|
+
"docs": "typedoc --options typedoc.json",
|
|
115
|
+
"docs:watch": "typedoc --options typedoc.json --watch",
|
|
116
|
+
"docs:serve": "npx http-server docs -p 8080 -o",
|
|
117
|
+
"clean": "rm -rf dist coverage docs",
|
|
118
|
+
"clean:docs": "rm -rf docs",
|
|
119
|
+
"prepare": "husky && npm run build",
|
|
120
|
+
"health-check": "ts-node -e \"import('./src/EsiClient').then(({EsiClient}) => new EsiClient().healthCheck().then(console.log))\""
|
|
121
|
+
},
|
|
122
|
+
"lint-staged": {
|
|
123
|
+
"src/**/*.ts": [
|
|
124
|
+
"eslint --fix",
|
|
125
|
+
"prettier --write"
|
|
126
|
+
],
|
|
127
|
+
"tests/**/*.ts": [
|
|
128
|
+
"prettier --write"
|
|
129
|
+
],
|
|
130
|
+
"*.{json,md,yml,yaml}": [
|
|
131
|
+
"prettier --write"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"keywords": [
|
|
135
|
+
"eve-online",
|
|
136
|
+
"esi",
|
|
137
|
+
"api-client",
|
|
138
|
+
"typescript",
|
|
139
|
+
"eve",
|
|
140
|
+
"caching",
|
|
141
|
+
"rate-limiting",
|
|
142
|
+
"mmo"
|
|
143
|
+
],
|
|
144
|
+
"author": "lgriffin",
|
|
145
|
+
"license": "GPL-3.0-or-later",
|
|
146
|
+
"homepage": "https://github.com/lgriffin/ESI.ts#readme",
|
|
147
|
+
"bugs": {
|
|
148
|
+
"url": "https://github.com/lgriffin/ESI.ts/issues"
|
|
149
|
+
},
|
|
150
|
+
"repository": {
|
|
151
|
+
"type": "git",
|
|
152
|
+
"url": "https://github.com/lgriffin/ESI.ts"
|
|
153
|
+
},
|
|
154
|
+
"devDependencies": {
|
|
155
|
+
"@commitlint/cli": "^21.0.2",
|
|
156
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
157
|
+
"@types/jest": "^29.5.12",
|
|
158
|
+
"@types/node": "^26.0.0",
|
|
159
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
160
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
161
|
+
"eslint": "^8.57.0",
|
|
162
|
+
"eslint-config-prettier": "^10.1.8",
|
|
163
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
164
|
+
"eslint-plugin-security": "^4.0.0",
|
|
165
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
166
|
+
"husky": "^9.1.7",
|
|
167
|
+
"jest": "^29.7.0",
|
|
168
|
+
"jest-fetch-mock": "^3.0.3",
|
|
169
|
+
"jest-junit": "^17.0.0",
|
|
170
|
+
"knip": "^6.6.1",
|
|
171
|
+
"lint-staged": "^17.0.8",
|
|
172
|
+
"prettier": "^3.3.2",
|
|
173
|
+
"ts-jest": "^29.4.11",
|
|
174
|
+
"ts-node": "^10.9.2",
|
|
175
|
+
"typedoc": "^0.28.18",
|
|
176
|
+
"typescript": "^6.0.3"
|
|
177
|
+
},
|
|
178
|
+
"dependencies": {
|
|
179
|
+
"winston": "^3.13.0"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllianceByIdApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
const ApiError_1 = require("../../core/errors/ApiError");
|
|
6
|
-
class AllianceByIdApi {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
this.client = client;
|
|
9
|
-
}
|
|
10
|
-
async getAllianceById(allianceId) {
|
|
11
|
-
if (!allianceId || allianceId <= 0) {
|
|
12
|
-
throw ApiError_1.ApiError.validationError('Alliance ID must be a positive number');
|
|
13
|
-
}
|
|
14
|
-
return await (0, ApiRequestHandler_1.handleRequest)(this.client, `alliances/${allianceId}/`, 'GET', undefined, false);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.AllianceByIdApi = AllianceByIdApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllianceContactLabelsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class AllianceContactLabelsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getAllianceContactLabels(allianceId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `alliances/${allianceId}/contacts/labels`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AllianceContactLabelsApi = AllianceContactLabelsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllianceContactsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class AllianceContactsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getAllianceContacts(allianceId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `alliances/${allianceId}/contacts`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AllianceContactsApi = AllianceContactsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllianceCorporationsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class AllianceCorporationsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getAllianceCorporations(allianceId) {
|
|
10
|
-
return await (0, ApiRequestHandler_1.handleRequest)(this.client, `alliances/${allianceId}/corporations/`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AllianceCorporationsApi = AllianceCorporationsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllianceIconsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class AllianceIconsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getAllianceIcons(allianceId) {
|
|
10
|
-
return await (0, ApiRequestHandler_1.handleRequest)(this.client, `alliances/${allianceId}/icons/`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AllianceIconsApi = AllianceIconsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllAlliancesApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class AllAlliancesApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getAllAlliances() {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequestBody)(this.client, 'alliances', 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AllAlliancesApi = AllAlliancesApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterAssetsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterAssetsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterAssets(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/assets/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterAssetsApi = GetCharacterAssetsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCorporationAssetsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCorporationAssetsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCorporationAssets(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporations/${corporationId}/assets/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCorporationAssetsApi = GetCorporationAssetsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCharacterAssetLocationsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCharacterAssetLocationsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async postCharacterAssetLocations(characterId, itemIds) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/assets/locations/`, 'POST', JSON.stringify({ item_ids: itemIds }), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCharacterAssetLocationsApi = PostCharacterAssetLocationsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCharacterAssetNamesApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCharacterAssetNamesApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async postCharacterAssetNames(characterId, itemIds) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/assets/names/`, 'POST', JSON.stringify({ item_ids: itemIds }), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCharacterAssetNamesApi = PostCharacterAssetNamesApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCorporationAssetLocationsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCorporationAssetLocationsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async postCorporationAssetLocations(corporationId, itemIds) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporations/${corporationId}/assets/locations/`, 'POST', JSON.stringify({ item_ids: itemIds }), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCorporationAssetLocationsApi = PostCorporationAssetLocationsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCorporationAssetNamesApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCorporationAssetNamesApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async postCorporationAssetNames(corporationId, itemIds) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporations/${corporationId}/assets/names/`, 'POST', JSON.stringify({ item_ids: itemIds }), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCorporationAssetNamesApi = PostCorporationAssetNamesApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CharacterBookmarkFoldersApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class CharacterBookmarkFoldersApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterBookmarkFolders(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/bookmarks/folders`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CharacterBookmarkFoldersApi = CharacterBookmarkFoldersApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CharacterBookmarksApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class CharacterBookmarksApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterBookmarks(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/bookmarks`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CharacterBookmarksApi = CharacterBookmarksApi;
|