@lgriffin/esi.ts 4.0.0 → 5.1.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 +174 -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 +7 -3
- 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/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/rateLimiter/RateLimiter.js +5 -11
- package/dist/core/util/headersUtil.d.ts.map +1 -1
- package/dist/core/util/headersUtil.js +2 -1
- 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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteFleetWingApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class DeleteFleetWingApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async deleteFleetWing(fleetId, wingId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/wings/${wingId}/`, 'DELETE', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.DeleteFleetWingApi = DeleteFleetWingApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterFleetInfoApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterFleetInfoApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterFleetInfo(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/fleet`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterFleetInfoApi = GetCharacterFleetInfoApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFleetInfoApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetFleetInfoApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getFleetInfo(fleetId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetFleetInfoApi = GetFleetInfoApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFleetMembersApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetFleetMembersApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getFleetMembers(fleetId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/members`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetFleetMembersApi = GetFleetMembersApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFleetWingsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetFleetWingsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getFleetWings(fleetId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/wings/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetFleetWingsApi = GetFleetWingsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostFleetInvitationApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostFleetInvitationApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async createFleetInvitation(fleetId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/members/`, 'POST', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostFleetInvitationApi = PostFleetInvitationApi;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostFleetSquadApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostFleetSquadApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
// @todo check back on this one to see why undefinied and not handling any inputs
|
|
10
|
-
async createFleetSquad(fleetId, wingId) {
|
|
11
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/wings/${wingId}/squads/`, 'POST', undefined, true);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.PostFleetSquadApi = PostFleetSquadApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostFleetWingApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostFleetWingApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async createFleetWing(fleetId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/wings/`, 'POST', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostFleetWingApi = PostFleetWingApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutFleetMemberApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PutFleetMemberApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async moveFleetMember(fleetId, memberId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/members/${memberId}/`, 'PUT', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PutFleetMemberApi = PutFleetMemberApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutFleetSquadApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PutFleetSquadApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async renameFleetSquad(fleetId, squadId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/squads/${squadId}/`, 'PUT', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PutFleetSquadApi = PutFleetSquadApi;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutFleetWingApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PutFleetWingApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async renameFleetWing(fleetId, wingId, name) {
|
|
10
|
-
const body = JSON.stringify({ name });
|
|
11
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}/wings/${wingId}/`, 'PUT', body, true);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.PutFleetWingApi = PutFleetWingApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateFleetApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class UpdateFleetApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async updateFleet(fleetId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `fleets/${fleetId}`, 'PUT', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.UpdateFleetApi = UpdateFleetApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IncursionsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class IncursionsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getIncursions() {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, 'incursions', 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.IncursionsApi = IncursionsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterIndustryJobsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterIndustryJobsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterIndustryJobs(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/industry/jobs`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterIndustryJobsApi = GetCharacterIndustryJobsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterMiningLedgerApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterMiningLedgerApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterMiningLedger(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mining`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterMiningLedgerApi = GetCharacterMiningLedgerApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCorporationIndustryJobsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCorporationIndustryJobsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCorporationIndustryJobs(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporations/${corporationId}/industry/jobs`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCorporationIndustryJobsApi = GetCorporationIndustryJobsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCorporationMiningObserverApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCorporationMiningObserverApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCorporationMiningObserver(corporationId, observerId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporation/${corporationId}/mining/observers/${observerId}`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCorporationMiningObserverApi = GetCorporationMiningObserverApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCorporationMiningObserversApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCorporationMiningObserversApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCorporationMiningObservers(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporation/${corporationId}/mining/observers`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCorporationMiningObserversApi = GetCorporationMiningObserversApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetIndustryFacilitiesApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetIndustryFacilitiesApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getIndustryFacilities() {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `industry/facilities`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetIndustryFacilitiesApi = GetIndustryFacilitiesApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetIndustrySystemsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetIndustrySystemsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getIndustrySystems() {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `industry/systems`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetIndustrySystemsApi = GetIndustrySystemsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMoonExtractionTimersApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetMoonExtractionTimersApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getMoonExtractionTimers(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporation/${corporationId}/mining/extractions`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetMoonExtractionTimersApi = GetMoonExtractionTimersApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InsuranceApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class InsuranceApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getInsurancePrices() {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, 'insurance/prices', 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.InsuranceApi = InsuranceApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterRecentKillmailsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterRecentKillmailsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterRecentKillmails(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/killmails/recent`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterRecentKillmailsApi = GetCharacterRecentKillmailsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCorporationRecentKillmailsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCorporationRecentKillmailsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCorporationRecentKillmails(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `corporations/${corporationId}/killmails/recent`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCorporationRecentKillmailsApi = GetCorporationRecentKillmailsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetKillmailApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetKillmailApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getKillmail(killmailId, killmailHash) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `killmails/${killmailId}/${killmailHash}`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetKillmailApi = GetKillmailApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterLocationApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterLocationApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterLocation(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/location`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterLocationApi = GetCharacterLocationApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterOnlineApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterOnlineApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterOnline(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/online`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterOnlineApi = GetCharacterOnlineApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterShipApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterShipApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterShip(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/ship`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterShipApi = GetCharacterShipApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetLoyaltyPointsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetLoyaltyPointsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getLoyaltyPoints(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/loyalty/points`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetLoyaltyPointsApi = GetLoyaltyPointsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetLoyaltyStoreOffersApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetLoyaltyStoreOffersApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getLoyaltyStoreOffers(corporationId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `loyalty/stores/${corporationId}/offers`, 'GET', undefined, false);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetLoyaltyStoreOffersApi = GetLoyaltyStoreOffersApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCharacterMailApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class DeleteCharacterMailApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async deleteMail(characterId, mailId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/${mailId}/`, 'DELETE', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.DeleteCharacterMailApi = DeleteCharacterMailApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCharacterMailLabelApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class DeleteCharacterMailLabelApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async deleteMailLabel(characterId, labelId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/labels/${labelId}/`, 'DELETE', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.DeleteCharacterMailLabelApi = DeleteCharacterMailLabelApi;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const deleteCharacterMailLabel_1 = require("../../../src/api/mail/deleteCharacterMailLabel");
|
|
7
|
-
const jest_setup_1 = require("../../../src/config/jest/jest.setup");
|
|
8
|
-
const jest_fetch_mock_1 = __importDefault(require("jest-fetch-mock"));
|
|
9
|
-
jest_fetch_mock_1.default.enableMocks();
|
|
10
|
-
const client = (0, jest_setup_1.getClient)();
|
|
11
|
-
const mailLabelApi = new deleteCharacterMailLabel_1.DeleteCharacterMailLabelApi(client);
|
|
12
|
-
describe('DeleteCharacterMailLabelApi', () => {
|
|
13
|
-
beforeEach(() => {
|
|
14
|
-
jest_fetch_mock_1.default.resetMocks();
|
|
15
|
-
});
|
|
16
|
-
it('should delete a mail label', async () => {
|
|
17
|
-
jest_fetch_mock_1.default.mockResponseOnce('', { status: 204 });
|
|
18
|
-
const result = await mailLabelApi.deleteMailLabel(123456, 1);
|
|
19
|
-
expect(result).toEqual({ error: 'no content' });
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const getCharacterMailingLists_1 = require("../../../src/api/mail/getCharacterMailingLists");
|
|
7
|
-
const jest_setup_1 = require("../../../src/config/jest/jest.setup");
|
|
8
|
-
const jest_fetch_mock_1 = __importDefault(require("jest-fetch-mock"));
|
|
9
|
-
jest_fetch_mock_1.default.enableMocks();
|
|
10
|
-
const client = (0, jest_setup_1.getClient)();
|
|
11
|
-
const mailingListsApi = new getCharacterMailingLists_1.GetCharacterMailingListsApi(client);
|
|
12
|
-
describe('GetCharacterMailingListsApi', () => {
|
|
13
|
-
beforeEach(() => {
|
|
14
|
-
jest_fetch_mock_1.default.resetMocks();
|
|
15
|
-
});
|
|
16
|
-
it('should return mailing list subscriptions', async () => {
|
|
17
|
-
const mockResponse = [
|
|
18
|
-
{
|
|
19
|
-
mailing_list_id: 1,
|
|
20
|
-
name: "Test List"
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
jest_fetch_mock_1.default.mockResponseOnce(JSON.stringify(mockResponse));
|
|
24
|
-
const result = await mailingListsApi.getMailingLists(123456789);
|
|
25
|
-
expect(Array.isArray(result)).toBe(true);
|
|
26
|
-
result.forEach((list) => {
|
|
27
|
-
expect(list).toHaveProperty('mailing_list_id');
|
|
28
|
-
expect(typeof list.mailing_list_id).toBe('number');
|
|
29
|
-
expect(list).toHaveProperty('name');
|
|
30
|
-
expect(typeof list.name).toBe('string');
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterMailApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterMailApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getMail(characterId, mailId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/${mailId}/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterMailApi = GetCharacterMailApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterMailHeadersApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterMailHeadersApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getCharacterMailHeaders(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterMailHeadersApi = GetCharacterMailHeadersApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterMailLabelsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterMailLabelsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getMailLabels(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/labels/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterMailLabelsApi = GetCharacterMailLabelsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCharacterMailingListsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class GetCharacterMailingListsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async getMailingLists(characterId) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/lists/`, 'GET', undefined, true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.GetCharacterMailingListsApi = GetCharacterMailingListsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCharacterMailApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCharacterMailApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async sendMail(characterId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/`, 'POST', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCharacterMailApi = PostCharacterMailApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostCharacterMailLabelsApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PostCharacterMailLabelsApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async createMailLabel(characterId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/labels/`, 'POST', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PostCharacterMailLabelsApi = PostCharacterMailLabelsApi;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutCharacterMailApi = void 0;
|
|
4
|
-
const ApiRequestHandler_1 = require("../../core/ApiRequestHandler");
|
|
5
|
-
class PutCharacterMailApi {
|
|
6
|
-
constructor(client) {
|
|
7
|
-
this.client = client;
|
|
8
|
-
}
|
|
9
|
-
async updateMailMetadata(characterId, mailId, body) {
|
|
10
|
-
return (0, ApiRequestHandler_1.handleRequest)(this.client, `characters/${characterId}/mail/${mailId}/`, 'PUT', JSON.stringify(body), true);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PutCharacterMailApi = PutCharacterMailApi;
|