@lgriffin/esi.ts 7.4.0 → 9.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 +27 -0
- package/README.md +100 -24
- package/dist/EsiClient.d.ts +3 -0
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/EsiClientBuilder.d.ts +1 -0
- package/dist/EsiClientBuilder.d.ts.map +1 -1
- package/dist/clients/AllianceClient.d.ts +3 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.d.ts +1 -1
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/CalendarClient.d.ts +3 -0
- package/dist/clients/CalendarClient.d.ts.map +1 -1
- package/dist/clients/CharacterClient.d.ts +10 -2
- package/dist/clients/CharacterClient.d.ts.map +1 -1
- package/dist/clients/ClonesClient.d.ts +2 -0
- package/dist/clients/ClonesClient.d.ts.map +1 -1
- package/dist/clients/ContactsClient.d.ts +7 -0
- package/dist/clients/ContactsClient.d.ts.map +1 -1
- package/dist/clients/CorporationsClient.d.ts +18 -0
- package/dist/clients/CorporationsClient.d.ts.map +1 -1
- package/dist/clients/FittingsClient.d.ts +2 -0
- package/dist/clients/FittingsClient.d.ts.map +1 -1
- package/dist/clients/FleetClient.d.ts +3 -0
- package/dist/clients/FleetClient.d.ts.map +1 -1
- package/dist/clients/IndustryClient.d.ts +9 -0
- package/dist/clients/IndustryClient.d.ts.map +1 -1
- package/dist/clients/LoyaltyClient.d.ts +3 -0
- package/dist/clients/LoyaltyClient.d.ts.map +1 -1
- package/dist/clients/MailClient.d.ts +6 -0
- package/dist/clients/MailClient.d.ts.map +1 -1
- package/dist/clients/MarketClient.d.ts +13 -22
- package/dist/clients/MarketClient.d.ts.map +1 -1
- package/dist/clients/PiClient.d.ts +3 -0
- package/dist/clients/PiClient.d.ts.map +1 -1
- package/dist/clients/SkillsClient.d.ts +2 -0
- package/dist/clients/SkillsClient.d.ts.map +1 -1
- package/dist/clients/WalletClient.d.ts +1 -0
- package/dist/clients/WalletClient.d.ts.map +1 -1
- package/dist/clients/WarsClient.d.ts +3 -0
- package/dist/clients/WarsClient.d.ts.map +1 -1
- package/dist/config/jest/globalSetup.d.ts.map +1 -1
- package/dist/config/jest/globalTeardown.d.ts.map +1 -1
- package/dist/core/ApiClient.d.ts +14 -6
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ApiRequestHandler.d.ts +3 -11
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/IDeduplicator.d.ts +6 -0
- package/dist/core/IDeduplicator.d.ts.map +1 -0
- package/dist/core/IRetryStrategy.d.ts +5 -0
- package/dist/core/IRetryStrategy.d.ts.map +1 -0
- package/dist/core/RequestDeduplicator.d.ts +2 -1
- package/dist/core/RequestDeduplicator.d.ts.map +1 -1
- package/dist/core/RetryStrategy.d.ts +19 -0
- package/dist/core/RetryStrategy.d.ts.map +1 -0
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts +11 -1
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -1
- package/dist/core/circuitBreaker/ICircuitBreaker.d.ts +23 -0
- package/dist/core/circuitBreaker/ICircuitBreaker.d.ts.map +1 -0
- package/dist/core/configureApiClient.d.ts +18 -0
- package/dist/core/configureApiClient.d.ts.map +1 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts +2 -0
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
- package/dist/core/endpoints/calendarEndpoints.d.ts +1 -1
- package/dist/core/endpoints/characterEndpoints.d.ts +3 -3
- package/dist/core/endpoints/contactEndpoints.d.ts +7 -3
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationEndpoints.d.ts +4 -1
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/createClient.d.ts +18 -1
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/endpoints/dogmaEndpoints.d.ts +17 -0
- package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.ts +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
- package/dist/core/endpoints/fleetEndpoints.d.ts +5 -0
- package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mailEndpoints.d.ts +13 -0
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/marketEndpoints.d.ts +29 -48
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/piEndpoints.d.ts +3 -0
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.d.ts +13 -2
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/walletEndpoints.d.ts +4 -0
- package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
- package/dist/core/logger/logger.d.ts +2 -1
- package/dist/core/logger/logger.d.ts.map +1 -1
- package/dist/core/pagination/AsyncPaginationIterator.d.ts +4 -1
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
- package/dist/core/pagination/CursorPaginationHandler.d.ts +15 -6
- package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
- package/dist/core/pagination/PaginationHandler.d.ts +7 -6
- package/dist/core/pagination/PaginationHandler.d.ts.map +1 -1
- package/dist/core/rateLimiter/RateLimiter.d.ts +8 -2
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/requestPipeline/cachePolicy.d.ts +31 -0
- package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -0
- package/dist/core/requestPipeline/dependencies.d.ts +10 -0
- package/dist/core/requestPipeline/dependencies.d.ts.map +1 -0
- package/dist/core/requestPipeline/fetchExecution.d.ts +28 -0
- package/dist/core/requestPipeline/fetchExecution.d.ts.map +1 -0
- package/dist/core/requestPipeline/headers.d.ts +11 -0
- package/dist/core/requestPipeline/headers.d.ts.map +1 -0
- package/dist/core/requestPipeline/index.d.ts +10 -0
- package/dist/core/requestPipeline/index.d.ts.map +1 -0
- package/dist/core/requestPipeline/middlewareBridge.d.ts +15 -0
- package/dist/core/requestPipeline/middlewareBridge.d.ts.map +1 -0
- package/dist/core/requestPipeline/paginationOrchestration.d.ts +15 -0
- package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -0
- package/dist/core/requestPipeline/statusHandling.d.ts +18 -0
- package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -0
- package/dist/core/util/error.d.ts +6 -1
- package/dist/core/util/error.d.ts.map +1 -1
- package/dist/errors.d.ts +4 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +196 -0
- package/dist/errors.js.map +1 -0
- package/dist/errors.mjs +146 -0
- package/dist/errors.mjs.map +1 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9937 -176
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +9834 -0
- package/dist/index.mjs.map +1 -0
- package/dist/schemas/calendar.d.ts +1 -1
- package/dist/schemas/character.d.ts +1 -10
- package/dist/schemas/character.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +9 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/contacts.d.ts +2 -1
- package/dist/schemas/contacts.d.ts.map +1 -1
- package/dist/schemas/corporation.d.ts +4 -9
- package/dist/schemas/corporation.d.ts.map +1 -1
- package/dist/schemas/dogma.d.ts +17 -0
- package/dist/schemas/dogma.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +1 -0
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/index.js +2085 -46
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/index.mjs +1914 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/dist/schemas/market.d.ts +91 -4
- package/dist/schemas/market.d.ts.map +1 -1
- package/dist/schemas/pi.d.ts +3 -0
- package/dist/schemas/pi.d.ts.map +1 -1
- package/dist/schemas/sovereignty.d.ts +2 -0
- package/dist/schemas/sovereignty.d.ts.map +1 -1
- package/dist/schemas/universe.d.ts +11 -2
- package/dist/schemas/universe.d.ts.map +1 -1
- package/dist/schemas/wallet.d.ts +2 -0
- package/dist/schemas/wallet.d.ts.map +1 -1
- package/dist/testing/TestDataFactory.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +935 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/index.mjs +898 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/types/character.d.ts +2 -1
- package/dist/types/character.d.ts.map +1 -1
- package/dist/types/generated/esi-spec.generated.d.ts +3 -3
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/dist/types/generated/spec-alignment.check.d.ts +9 -0
- package/dist/types/generated/spec-alignment.check.d.ts.map +1 -1
- package/dist/types/market.d.ts +7 -1
- package/dist/types/market.d.ts.map +1 -1
- package/package.json +33 -6
- package/dist/EsiClient.js +0 -251
- package/dist/EsiClientBuilder.js +0 -217
- package/dist/clients/AccessListsClient.js +0 -20
- package/dist/clients/AllianceClient.js +0 -72
- package/dist/clients/AssetsClient.js +0 -81
- package/dist/clients/BaseEsiClient.js +0 -40
- package/dist/clients/CalendarClient.js +0 -54
- package/dist/clients/CharacterClient.js +0 -149
- package/dist/clients/ClonesClient.js +0 -31
- package/dist/clients/ContactsClient.js +0 -104
- package/dist/clients/ContractsClient.js +0 -111
- package/dist/clients/CorporationsClient.js +0 -227
- package/dist/clients/DogmaClient.js +0 -55
- package/dist/clients/FactionClient.js +0 -79
- package/dist/clients/FittingsClient.js +0 -42
- package/dist/clients/FleetClient.js +0 -162
- package/dist/clients/FreelanceJobsClient.js +0 -76
- package/dist/clients/IncursionsClient.js +0 -19
- package/dist/clients/IndustryClient.js +0 -88
- package/dist/clients/InsuranceClient.js +0 -19
- package/dist/clients/KillmailsClient.js +0 -47
- package/dist/clients/LocationClient.js +0 -41
- package/dist/clients/LoyaltyClient.js +0 -30
- package/dist/clients/MailClient.js +0 -108
- package/dist/clients/MarketClient.js +0 -131
- package/dist/clients/MercenaryClient.js +0 -27
- package/dist/clients/MetaClient.js +0 -56
- package/dist/clients/PiClient.js +0 -51
- package/dist/clients/RouteClient.js +0 -24
- package/dist/clients/SearchClient.js +0 -22
- package/dist/clients/SkillsClient.js +0 -41
- package/dist/clients/SkyhooksClient.js +0 -35
- package/dist/clients/SovereigntyClient.js +0 -27
- package/dist/clients/StatusClient.js +0 -19
- package/dist/clients/UiClient.js +0 -58
- package/dist/clients/UniverseClient.js +0 -277
- package/dist/clients/WalletClient.js +0 -82
- package/dist/clients/WarsClient.js +0 -37
- package/dist/config/configManager.js +0 -47
- package/dist/config/jest/globalSetup.js +0 -7
- package/dist/config/jest/globalTeardown.js +0 -7
- package/dist/config/jest/jest.setup.js +0 -29
- package/dist/core/ApiClient.js +0 -123
- package/dist/core/ApiClientBuilder.js +0 -54
- package/dist/core/ApiRequestHandler.js +0 -444
- package/dist/core/BatchRequestHandler.js +0 -66
- package/dist/core/ClientRegistry.js +0 -116
- package/dist/core/EsiDiagnostics.js +0 -47
- package/dist/core/RequestDeduplicator.js +0 -26
- package/dist/core/cache/ETagCacheManager.js +0 -184
- package/dist/core/cache/ICache.js +0 -2
- package/dist/core/circuitBreaker/CircuitBreaker.js +0 -156
- package/dist/core/constants.js +0 -7
- package/dist/core/endpoints/EndpointDefinition.js +0 -2
- package/dist/core/endpoints/accessListEndpoints.js +0 -13
- package/dist/core/endpoints/allianceEndpoints.js +0 -34
- package/dist/core/endpoints/assetEndpoints.js +0 -51
- package/dist/core/endpoints/buildEndpointPath.js +0 -44
- package/dist/core/endpoints/calendarEndpoints.js +0 -35
- package/dist/core/endpoints/characterEndpoints.js +0 -104
- package/dist/core/endpoints/cloneEndpoints.js +0 -21
- package/dist/core/endpoints/contactEndpoints.js +0 -72
- package/dist/core/endpoints/contractEndpoints.js +0 -70
- package/dist/core/endpoints/corporationEndpoints.js +0 -161
- package/dist/core/endpoints/createClient.js +0 -175
- package/dist/core/endpoints/dogmaEndpoints.js +0 -40
- package/dist/core/endpoints/esi-cache-ttls.generated.js +0 -133
- package/dist/core/endpoints/esi-rate-limit-groups.generated.js +0 -153
- package/dist/core/endpoints/esi-scopes.generated.js +0 -135
- package/dist/core/endpoints/factionEndpoints.js +0 -57
- package/dist/core/endpoints/fittingEndpoints.js +0 -27
- package/dist/core/endpoints/fleetEndpoints.js +0 -101
- package/dist/core/endpoints/freelanceJobsEndpoints.js +0 -51
- package/dist/core/endpoints/incursionEndpoints.js +0 -13
- package/dist/core/endpoints/industryEndpoints.js +0 -61
- package/dist/core/endpoints/insuranceEndpoints.js +0 -13
- package/dist/core/endpoints/killmailEndpoints.js +0 -28
- package/dist/core/endpoints/locationEndpoints.js +0 -27
- package/dist/core/endpoints/loyaltyEndpoints.js +0 -21
- package/dist/core/endpoints/mailEndpoints.js +0 -68
- package/dist/core/endpoints/marketEndpoints.js +0 -84
- package/dist/core/endpoints/mercenaryEndpoints.js +0 -19
- package/dist/core/endpoints/metaEndpoints.js +0 -12
- package/dist/core/endpoints/piEndpoints.js +0 -36
- package/dist/core/endpoints/routeEndpoints.js +0 -14
- package/dist/core/endpoints/searchEndpoints.js +0 -14
- package/dist/core/endpoints/skillEndpoints.js +0 -29
- package/dist/core/endpoints/skyhookEndpoints.js +0 -25
- package/dist/core/endpoints/sovereigntyEndpoints.js +0 -19
- package/dist/core/endpoints/statusEndpoints.js +0 -12
- package/dist/core/endpoints/uiEndpoints.js +0 -39
- package/dist/core/endpoints/universeEndpoints.js +0 -210
- package/dist/core/endpoints/walletEndpoints.js +0 -50
- package/dist/core/endpoints/warEndpoints.js +0 -28
- package/dist/core/logger/ILogger.js +0 -2
- package/dist/core/logger/logger.js +0 -16
- package/dist/core/logger/loggerUtil.js +0 -30
- package/dist/core/middleware/Middleware.js +0 -42
- package/dist/core/pagination/AsyncPaginationIterator.js +0 -27
- package/dist/core/pagination/CursorPaginationHandler.js +0 -148
- package/dist/core/pagination/PaginationHandler.js +0 -115
- package/dist/core/rateLimiter/IRateLimiter.js +0 -2
- package/dist/core/rateLimiter/RateLimiter.js +0 -307
- package/dist/core/util/error.js +0 -122
- package/dist/core/util/headersUtil.js +0 -37
- package/dist/core/util/retry.js +0 -9
- package/dist/core/util/sleep.js +0 -6
- package/dist/core/util/stringUtil.js +0 -6
- package/dist/core/util/testHelpers.js +0 -9
- package/dist/core/util/validation.js +0 -52
- package/dist/schemas/access-lists.js +0 -14
- package/dist/schemas/alliance.js +0 -28
- package/dist/schemas/assets.js +0 -26
- package/dist/schemas/calendar.js +0 -43
- package/dist/schemas/character.js +0 -122
- package/dist/schemas/clones.js +0 -21
- package/dist/schemas/common.js +0 -34
- package/dist/schemas/contacts.js +0 -15
- package/dist/schemas/contracts.js +0 -58
- package/dist/schemas/corporation.js +0 -192
- package/dist/schemas/dogma.js +0 -42
- package/dist/schemas/faction-warfare.js +0 -92
- package/dist/schemas/fittings.js +0 -15
- package/dist/schemas/fleet.js +0 -48
- package/dist/schemas/freelance-jobs.js +0 -99
- package/dist/schemas/incursions.js +0 -14
- package/dist/schemas/industry.js +0 -75
- package/dist/schemas/insurance.js +0 -12
- package/dist/schemas/killmails.js +0 -42
- package/dist/schemas/location.js +0 -20
- package/dist/schemas/loyalty.js +0 -20
- package/dist/schemas/mail.js +0 -38
- package/dist/schemas/market.js +0 -39
- package/dist/schemas/mercenary.js +0 -22
- package/dist/schemas/pi.js +0 -85
- package/dist/schemas/skills.js +0 -30
- package/dist/schemas/skyhooks.js +0 -30
- package/dist/schemas/sovereignty.js +0 -70
- package/dist/schemas/status.js +0 -10
- package/dist/schemas/universe.js +0 -245
- package/dist/schemas/wallet.js +0 -29
- package/dist/schemas/wars.js +0 -31
- package/dist/testing/TestDataFactory.js +0 -823
- package/dist/types/access-lists.js +0 -2
- package/dist/types/alliance.js +0 -2
- package/dist/types/api-responses.js +0 -73
- package/dist/types/assets.js +0 -2
- package/dist/types/branded.js +0 -6
- package/dist/types/calendar.js +0 -2
- package/dist/types/character.js +0 -2
- package/dist/types/clones.js +0 -2
- package/dist/types/common.js +0 -2
- package/dist/types/contacts.js +0 -2
- package/dist/types/contracts.js +0 -2
- package/dist/types/corporation.js +0 -2
- package/dist/types/dogma.js +0 -2
- package/dist/types/faction-warfare.js +0 -2
- package/dist/types/fittings.js +0 -2
- package/dist/types/fleet.js +0 -2
- package/dist/types/freelance-jobs.js +0 -2
- package/dist/types/generated/esi-spec.generated.js +0 -6
- package/dist/types/generated/spec-alignment.check.js +0 -14
- package/dist/types/incursions.js +0 -2
- package/dist/types/industry.js +0 -2
- package/dist/types/insurance.js +0 -2
- package/dist/types/killmails.js +0 -2
- package/dist/types/location.js +0 -2
- package/dist/types/loyalty.js +0 -2
- package/dist/types/mail.js +0 -2
- package/dist/types/market.js +0 -2
- package/dist/types/mercenary.js +0 -2
- package/dist/types/pi.js +0 -2
- package/dist/types/skills.js +0 -2
- package/dist/types/skyhooks.js +0 -2
- package/dist/types/sovereignty.js +0 -2
- package/dist/types/status.js +0 -2
- package/dist/types/universe.js +0 -2
- package/dist/types/wallet.js +0 -2
- package/dist/types/wars.js +0 -2
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IndustryClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const industryEndpoints_1 = require("../core/endpoints/industryEndpoints");
|
|
6
|
-
class IndustryClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, industryEndpoints_1.industryEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves all industry jobs for a character, including manufacturing, research, and invention.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character
|
|
14
|
-
* @returns An array of the character's industry jobs
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterIndustryJobs(characterId) {
|
|
18
|
-
return this.api.getCharacterIndustryJobs(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves a character's personal mining ledger, showing ore mined per day.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character
|
|
24
|
-
* @returns An array of mining ledger entries
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getCharacterMiningLedger(characterId) {
|
|
28
|
-
return this.api.getCharacterMiningLedger(characterId);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves moon extraction timers for a corporation's refineries.
|
|
32
|
-
*
|
|
33
|
-
* @param corporationId - The ID of the corporation
|
|
34
|
-
* @returns An array of moon extraction timers
|
|
35
|
-
* @requires Authentication
|
|
36
|
-
*/
|
|
37
|
-
getMoonExtractionTimers(corporationId) {
|
|
38
|
-
return this.api.getMoonExtractionTimers(corporationId);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves the list of mining observers (e.g., refineries) owned by a corporation.
|
|
42
|
-
*
|
|
43
|
-
* @param corporationId - The ID of the corporation
|
|
44
|
-
* @returns An array of mining observers
|
|
45
|
-
* @requires Authentication
|
|
46
|
-
*/
|
|
47
|
-
getCorporationMiningObservers(corporationId) {
|
|
48
|
-
return this.api.getCorporationMiningObservers(corporationId);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves mining activity recorded by a specific corporation mining observer.
|
|
52
|
-
*
|
|
53
|
-
* @param corporationId - The ID of the corporation
|
|
54
|
-
* @param observerId - The ID of the mining observer
|
|
55
|
-
* @returns An array of mining activity entries for the observer
|
|
56
|
-
* @requires Authentication
|
|
57
|
-
*/
|
|
58
|
-
getCorporationMiningObserver(corporationId, observerId) {
|
|
59
|
-
return this.api.getCorporationMiningObserver(corporationId, observerId);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves all industry jobs for a corporation, including manufacturing, research, and invention.
|
|
63
|
-
*
|
|
64
|
-
* @param corporationId - The ID of the corporation
|
|
65
|
-
* @returns An array of the corporation's industry jobs
|
|
66
|
-
* @requires Authentication
|
|
67
|
-
*/
|
|
68
|
-
getCorporationIndustryJobs(corporationId) {
|
|
69
|
-
return this.api.getCorporationIndustryJobs(corporationId);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Retrieves a list of all publicly available industry facilities in the universe.
|
|
73
|
-
*
|
|
74
|
-
* @returns An array of industry facilities
|
|
75
|
-
*/
|
|
76
|
-
getIndustryFacilities() {
|
|
77
|
-
return this.api.getIndustryFacilities();
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Retrieves cost indices for solar systems with industry activity, used to calculate job installation fees.
|
|
81
|
-
*
|
|
82
|
-
* @returns An array of industry system cost indices
|
|
83
|
-
*/
|
|
84
|
-
getIndustrySystems() {
|
|
85
|
-
return this.api.getIndustrySystems();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.IndustryClient = IndustryClient;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InsuranceClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const insuranceEndpoints_1 = require("../core/endpoints/insuranceEndpoints");
|
|
6
|
-
class InsuranceClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, insuranceEndpoints_1.insuranceEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves available insurance levels and their costs for all ship types.
|
|
12
|
-
*
|
|
13
|
-
* @returns An array of insurance price listings per ship type
|
|
14
|
-
*/
|
|
15
|
-
getInsurancePrices() {
|
|
16
|
-
return this.api.getInsurancePrices();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.InsuranceClient = InsuranceClient;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KillmailsClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const killmailEndpoints_1 = require("../core/endpoints/killmailEndpoints");
|
|
6
|
-
class KillmailsClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, killmailEndpoints_1.killmailEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves a list of recent killmail summaries for a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character to fetch killmails for
|
|
14
|
-
* @returns A list of recent killmail summaries including killmail IDs and hashes
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterRecentKillmails(characterId) {
|
|
18
|
-
return this.api.getCharacterRecentKillmails(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves a list of recent killmail summaries for a corporation.
|
|
22
|
-
*
|
|
23
|
-
* @param corporationId - The ID of the corporation to fetch killmails for
|
|
24
|
-
* @returns A list of recent killmail summaries including killmail IDs and hashes
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getCorporationRecentKillmails(corporationId) {
|
|
28
|
-
return this.api.getCorporationRecentKillmails(corporationId);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the full details of a specific killmail by its ID and hash.
|
|
32
|
-
*
|
|
33
|
-
* @param killmailId - The ID of the killmail to retrieve
|
|
34
|
-
* @param killmailHash - The hash of the killmail for verification
|
|
35
|
-
* @returns The full killmail details including victim, attackers, and items
|
|
36
|
-
*/
|
|
37
|
-
getKillmail(killmailId, killmailHash) {
|
|
38
|
-
return this.api.getKillmail(killmailId, killmailHash);
|
|
39
|
-
}
|
|
40
|
-
streamCharacterRecentKillmails(characterId) {
|
|
41
|
-
return this.streamEndpoint('getCharacterRecentKillmails', characterId);
|
|
42
|
-
}
|
|
43
|
-
streamCorporationRecentKillmails(corporationId) {
|
|
44
|
-
return this.streamEndpoint('getCorporationRecentKillmails', corporationId);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.KillmailsClient = KillmailsClient;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocationClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const locationEndpoints_1 = require("../core/endpoints/locationEndpoints");
|
|
6
|
-
class LocationClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, locationEndpoints_1.locationEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves the current solar system, station, and structure location of a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character to locate
|
|
14
|
-
* @returns The character's current location including solar system and optional station or structure
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterLocation(characterId) {
|
|
18
|
-
return this.api.getCharacterLocation(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Checks whether a character is currently online and retrieves login/logout timestamps.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character to check
|
|
24
|
-
* @returns The character's online status and last login/logout times
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getCharacterOnline(characterId) {
|
|
28
|
-
return this.api.getCharacterOnline(characterId);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the type, name, and item ID of the ship a character is currently flying.
|
|
32
|
-
*
|
|
33
|
-
* @param characterId - The ID of the character whose ship to retrieve
|
|
34
|
-
* @returns The character's current ship details including type ID and ship name
|
|
35
|
-
* @requires Authentication
|
|
36
|
-
*/
|
|
37
|
-
getCharacterShip(characterId) {
|
|
38
|
-
return this.api.getCharacterShip(characterId);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.LocationClient = LocationClient;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoyaltyClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const loyaltyEndpoints_1 = require("../core/endpoints/loyaltyEndpoints");
|
|
6
|
-
class LoyaltyClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, loyaltyEndpoints_1.loyaltyEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves the loyalty points a character has earned with each NPC corporation.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character to fetch loyalty points for
|
|
14
|
-
* @returns A list of loyalty point balances per corporation
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getLoyaltyPoints(characterId) {
|
|
18
|
-
return this.api.getLoyaltyPoints(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves the list of items available in an NPC corporation's loyalty point store.
|
|
22
|
-
*
|
|
23
|
-
* @param corporationId - The ID of the NPC corporation whose LP store to query
|
|
24
|
-
* @returns A list of offers available in the loyalty store
|
|
25
|
-
*/
|
|
26
|
-
getLoyaltyStoreOffers(corporationId) {
|
|
27
|
-
return this.api.getLoyaltyStoreOffers(corporationId);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.LoyaltyClient = LoyaltyClient;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MailClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const mailEndpoints_1 = require("../core/endpoints/mailEndpoints");
|
|
6
|
-
class MailClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, mailEndpoints_1.mailEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves the mail headers (subject, sender, timestamp) for a character's inbox.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose mail headers to fetch
|
|
14
|
-
* @returns A list of mail message headers
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getMailHeaders(characterId) {
|
|
18
|
-
return this.api.getCharacterMailHeaders(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Sends a new mail on behalf of a character via POST.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character sending the mail
|
|
24
|
-
* @param body - The mail content including recipients, subject, and body text
|
|
25
|
-
* @returns The ID of the newly created mail
|
|
26
|
-
* @requires Authentication
|
|
27
|
-
*/
|
|
28
|
-
sendMail(characterId, body) {
|
|
29
|
-
return this.api.sendMail(characterId, body);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Deletes a specific mail from a character's mailbox.
|
|
33
|
-
*
|
|
34
|
-
* @param characterId - The ID of the character who owns the mail
|
|
35
|
-
* @param mailId - The ID of the mail to delete
|
|
36
|
-
* @returns void
|
|
37
|
-
* @requires Authentication
|
|
38
|
-
*/
|
|
39
|
-
deleteMail(characterId, mailId) {
|
|
40
|
-
return this.api.deleteMail(characterId, mailId);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Retrieves the full contents of a specific mail including its body text.
|
|
44
|
-
*
|
|
45
|
-
* @param characterId - The ID of the character who owns the mail
|
|
46
|
-
* @param mailId - The ID of the mail to retrieve
|
|
47
|
-
* @returns The full mail message including body, sender, and recipients
|
|
48
|
-
* @requires Authentication
|
|
49
|
-
*/
|
|
50
|
-
getMail(characterId, mailId) {
|
|
51
|
-
return this.api.getMail(characterId, mailId);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Updates the metadata of a mail, such as read status or labels, via PUT.
|
|
55
|
-
*
|
|
56
|
-
* @param characterId - The ID of the character who owns the mail
|
|
57
|
-
* @param mailId - The ID of the mail to update
|
|
58
|
-
* @param body - The metadata fields to update (e.g., labels, read status)
|
|
59
|
-
* @returns void
|
|
60
|
-
* @requires Authentication
|
|
61
|
-
*/
|
|
62
|
-
updateMailMetadata(characterId, mailId, body) {
|
|
63
|
-
return this.api.updateMailMetadata(characterId, mailId, body);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves the mail labels and total unread count for a character.
|
|
67
|
-
*
|
|
68
|
-
* @param characterId - The ID of the character whose labels to fetch
|
|
69
|
-
* @returns The character's mail labels and total unread mail count
|
|
70
|
-
* @requires Authentication
|
|
71
|
-
*/
|
|
72
|
-
getMailLabels(characterId) {
|
|
73
|
-
return this.api.getMailLabels(characterId);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Creates a new custom mail label for a character via POST.
|
|
77
|
-
*
|
|
78
|
-
* @param characterId - The ID of the character to create the label for
|
|
79
|
-
* @param body - The label definition including name and optional color
|
|
80
|
-
* @returns The ID of the newly created label
|
|
81
|
-
* @requires Authentication
|
|
82
|
-
*/
|
|
83
|
-
createMailLabel(characterId, body) {
|
|
84
|
-
return this.api.createMailLabel(characterId, body);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Deletes a custom mail label from a character's mailbox.
|
|
88
|
-
*
|
|
89
|
-
* @param characterId - The ID of the character who owns the label
|
|
90
|
-
* @param labelId - The ID of the label to delete
|
|
91
|
-
* @returns void
|
|
92
|
-
* @requires Authentication
|
|
93
|
-
*/
|
|
94
|
-
deleteMailLabel(characterId, labelId) {
|
|
95
|
-
return this.api.deleteMailLabel(characterId, labelId);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Retrieves the mailing lists that a character is subscribed to.
|
|
99
|
-
*
|
|
100
|
-
* @param characterId - The ID of the character whose mailing lists to fetch
|
|
101
|
-
* @returns A list of mailing lists with their IDs and names
|
|
102
|
-
* @requires Authentication
|
|
103
|
-
*/
|
|
104
|
-
getMailingLists(characterId) {
|
|
105
|
-
return this.api.getMailingLists(characterId);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.MailClient = MailClient;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const marketEndpoints_1 = require("../core/endpoints/marketEndpoints");
|
|
6
|
-
class MarketClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, marketEndpoints_1.marketEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves all active market orders placed by a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose orders to fetch
|
|
14
|
-
* @returns A list of the character's open market orders
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getCharacterOrders(characterId) {
|
|
18
|
-
return this.api.getCharacterOrders(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves the history of expired and cancelled market orders for a character.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character whose order history to fetch
|
|
24
|
-
* @returns A list of the character's historical market orders
|
|
25
|
-
* @requires Authentication
|
|
26
|
-
*/
|
|
27
|
-
getCharacterOrderHistory(characterId) {
|
|
28
|
-
return this.api.getCharacterOrderHistory(characterId);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves all active market orders placed by members of a corporation.
|
|
32
|
-
*
|
|
33
|
-
* @param corporationId - The ID of the corporation whose orders to fetch
|
|
34
|
-
* @returns A list of the corporation's open market orders
|
|
35
|
-
* @requires Authentication
|
|
36
|
-
*/
|
|
37
|
-
getCorporationOrders(corporationId) {
|
|
38
|
-
return this.api.getCorporationOrders(corporationId);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves the history of expired and cancelled market orders for a corporation.
|
|
42
|
-
*
|
|
43
|
-
* @param corporationId - The ID of the corporation whose order history to fetch
|
|
44
|
-
* @returns A list of the corporation's historical market orders
|
|
45
|
-
* @requires Authentication
|
|
46
|
-
*/
|
|
47
|
-
getCorporationOrderHistory(corporationId) {
|
|
48
|
-
return this.api.getCorporationOrderHistory(corporationId);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves the daily price and volume history for a specific item type in a region.
|
|
52
|
-
*
|
|
53
|
-
* @param regionId - The ID of the region to fetch market history for
|
|
54
|
-
* @param typeId - The type ID of the item to get history for
|
|
55
|
-
* @returns A list of daily market history entries with price and volume data
|
|
56
|
-
*/
|
|
57
|
-
getMarketHistory(regionId, typeId) {
|
|
58
|
-
return this.api.getMarketHistory(regionId, typeId);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves all active market orders in a region for all item types.
|
|
62
|
-
*
|
|
63
|
-
* @param regionId - The ID of the region to fetch orders for
|
|
64
|
-
* @returns A list of all active market orders in the region
|
|
65
|
-
*/
|
|
66
|
-
getMarketOrders(regionId) {
|
|
67
|
-
return this.api.getMarketOrders(regionId, 'all');
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Retrieves the list of type IDs that have active market orders in a region.
|
|
71
|
-
*
|
|
72
|
-
* @param regionId - The ID of the region to check for active types
|
|
73
|
-
* @returns A list of type IDs with active orders in the region
|
|
74
|
-
*/
|
|
75
|
-
getMarketTypes(regionId) {
|
|
76
|
-
return this.api.getMarketTypes(regionId);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves the list of all market group IDs used to categorize items on the market.
|
|
80
|
-
*
|
|
81
|
-
* @returns A list of all market group IDs
|
|
82
|
-
*/
|
|
83
|
-
getMarketGroups() {
|
|
84
|
-
return this.api.getMarketGroups();
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves detailed information about a specific market group, including its name, description, and contained types.
|
|
88
|
-
*
|
|
89
|
-
* @param marketGroupId - The ID of the market group to look up
|
|
90
|
-
* @returns The market group details including name, description, types, and optional parent group
|
|
91
|
-
*/
|
|
92
|
-
getMarketGroupInformation(marketGroupId) {
|
|
93
|
-
return this.api.getMarketGroupInformation(marketGroupId);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Retrieves the global average and adjusted prices for all tradeable item types.
|
|
97
|
-
*
|
|
98
|
-
* @returns A list of item types with their average and adjusted market prices
|
|
99
|
-
*/
|
|
100
|
-
getMarketPrices() {
|
|
101
|
-
return this.api.getMarketPrices();
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Retrieves all active market orders listed in a specific player-owned structure.
|
|
105
|
-
*
|
|
106
|
-
* @param structureId - The ID of the structure to fetch orders for
|
|
107
|
-
* @returns A list of active market orders in the structure
|
|
108
|
-
*/
|
|
109
|
-
getMarketOrdersInStructure(structureId) {
|
|
110
|
-
return this.api.getMarketOrdersInStructure(structureId);
|
|
111
|
-
}
|
|
112
|
-
streamMarketOrders(regionId) {
|
|
113
|
-
return this.streamEndpoint('getMarketOrders', regionId, 'all');
|
|
114
|
-
}
|
|
115
|
-
streamMarketTypes(regionId) {
|
|
116
|
-
return this.streamEndpoint('getMarketTypes', regionId);
|
|
117
|
-
}
|
|
118
|
-
streamCharacterOrderHistory(characterId) {
|
|
119
|
-
return this.streamEndpoint('getCharacterOrderHistory', characterId);
|
|
120
|
-
}
|
|
121
|
-
streamCorporationOrders(corporationId) {
|
|
122
|
-
return this.streamEndpoint('getCorporationOrders', corporationId);
|
|
123
|
-
}
|
|
124
|
-
streamCorporationOrderHistory(corporationId) {
|
|
125
|
-
return this.streamEndpoint('getCorporationOrderHistory', corporationId);
|
|
126
|
-
}
|
|
127
|
-
streamMarketOrdersInStructure(structureId) {
|
|
128
|
-
return this.streamEndpoint('getMarketOrdersInStructure', structureId);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
exports.MarketClient = MarketClient;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MercenaryClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const mercenaryEndpoints_1 = require("../core/endpoints/mercenaryEndpoints");
|
|
6
|
-
class MercenaryClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, mercenaryEndpoints_1.mercenaryEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves all mercenary dens with their development and anarchy parameters.
|
|
12
|
-
*
|
|
13
|
-
* @returns A list of mercenary dens
|
|
14
|
-
*/
|
|
15
|
-
getMercenaryDens() {
|
|
16
|
-
return this.api.getMercenaryDens();
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves all mercenary tactical operations (MTOs) spawned from mercenary dens.
|
|
20
|
-
*
|
|
21
|
-
* @returns A list of mercenary tactical operations
|
|
22
|
-
*/
|
|
23
|
-
getMercenaryTacticalOperations() {
|
|
24
|
-
return this.api.getMercenaryTacticalOperations();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.MercenaryClient = MercenaryClient;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetaClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const metaEndpoints_1 = require("../core/endpoints/metaEndpoints");
|
|
6
|
-
const loggerUtil_1 = require("../core/logger/loggerUtil");
|
|
7
|
-
const constants_1 = require("../core/constants");
|
|
8
|
-
class MetaClient extends BaseEsiClient_1.BaseEsiClient {
|
|
9
|
-
constructor(client) {
|
|
10
|
-
super(client, metaEndpoints_1.metaEndpoints);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves the ESI OpenAPI specification in JSON format.
|
|
14
|
-
*
|
|
15
|
-
* @returns The full ESI OpenAPI specification as a JSON object
|
|
16
|
-
*/
|
|
17
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
18
|
-
getOpenApiJson() {
|
|
19
|
-
return this.api.getOpenApiJson();
|
|
20
|
-
}
|
|
21
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
22
|
-
/**
|
|
23
|
-
* Retrieves the ESI OpenAPI specification in YAML format.
|
|
24
|
-
*
|
|
25
|
-
* @returns The full ESI OpenAPI specification as a YAML string
|
|
26
|
-
*/
|
|
27
|
-
async getOpenApiYaml() {
|
|
28
|
-
const url = `${this._client.getLink()}/meta/openapi.yaml`;
|
|
29
|
-
(0, loggerUtil_1.logInfo)(`Hitting endpoint: ${url}`);
|
|
30
|
-
try {
|
|
31
|
-
const response = await fetch(url, {
|
|
32
|
-
method: 'GET',
|
|
33
|
-
headers: {
|
|
34
|
-
accept: 'text/yaml, application/x-yaml, text/plain',
|
|
35
|
-
'User-Agent': constants_1.USER_AGENT,
|
|
36
|
-
'X-Compatibility-Date': constants_1.COMPATIBILITY_DATE,
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
if (!response.ok) {
|
|
40
|
-
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
|
|
41
|
-
}
|
|
42
|
-
return await response.text();
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
if (error instanceof Error) {
|
|
46
|
-
(0, loggerUtil_1.logError)(`Error fetching YAML: ${error.message}`);
|
|
47
|
-
throw error;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
(0, loggerUtil_1.logError)(`Unexpected error: ${String(error)}`);
|
|
51
|
-
throw new Error(String(error));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.MetaClient = MetaClient;
|
package/dist/clients/PiClient.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PiClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const piEndpoints_1 = require("../core/endpoints/piEndpoints");
|
|
6
|
-
class PiClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, piEndpoints_1.piEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves the list of planetary interaction colonies owned by a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character whose colonies to fetch
|
|
14
|
-
* @returns A list of the character's planetary colonies
|
|
15
|
-
* @requires Authentication
|
|
16
|
-
*/
|
|
17
|
-
getColonies(characterId) {
|
|
18
|
-
return this.api.getColonies(characterId);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves the full layout of a planetary colony including pins, links, and routes.
|
|
22
|
-
*
|
|
23
|
-
* @param characterId - The ID of the character who owns the colony
|
|
24
|
-
* @param planetId - The ID of the planet to get the colony layout for
|
|
25
|
-
* @returns The colony layout with pins, links, and routes
|
|
26
|
-
* @requires Authentication
|
|
27
|
-
*/
|
|
28
|
-
getColonyLayout(characterId, planetId) {
|
|
29
|
-
return this.api.getColonyLayout(characterId, planetId);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves the list of customs offices owned by a corporation.
|
|
33
|
-
*
|
|
34
|
-
* @param corporationId - The ID of the corporation whose customs offices to fetch
|
|
35
|
-
* @returns A list of the corporation's customs offices with their settings
|
|
36
|
-
* @requires Authentication
|
|
37
|
-
*/
|
|
38
|
-
getCorporationCustomsOffices(corporationId) {
|
|
39
|
-
return this.api.getCorporationCustomsOffices(corporationId);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves information about a planetary interaction schematic, including its inputs and outputs.
|
|
43
|
-
*
|
|
44
|
-
* @param schematicId - The ID of the schematic to look up
|
|
45
|
-
* @returns The schematic details including cycle time, inputs, and outputs
|
|
46
|
-
*/
|
|
47
|
-
getSchematicInformation(schematicId) {
|
|
48
|
-
return this.api.getSchematicInformation(schematicId);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.PiClient = PiClient;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RouteClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const routeEndpoints_1 = require("../core/endpoints/routeEndpoints");
|
|
6
|
-
class RouteClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, routeEndpoints_1.routeEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Calculates a route between two solar systems, returning the list of system IDs along the path via POST.
|
|
12
|
-
*
|
|
13
|
-
* @param origin - The solar system ID to start the route from
|
|
14
|
-
* @param destination - The solar system ID to route to
|
|
15
|
-
* @param options - Optional routing preferences such as route type, avoided systems, and custom connections
|
|
16
|
-
* @returns An ordered list of solar system IDs representing the route
|
|
17
|
-
*/
|
|
18
|
-
async getRoute(origin, destination, options) {
|
|
19
|
-
const body = options ?? {};
|
|
20
|
-
const result = (await this.api.getRoute(origin, destination, body));
|
|
21
|
-
return result.route;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.RouteClient = RouteClient;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchClient = void 0;
|
|
4
|
-
const BaseEsiClient_1 = require("./BaseEsiClient");
|
|
5
|
-
const searchEndpoints_1 = require("../core/endpoints/searchEndpoints");
|
|
6
|
-
class SearchClient extends BaseEsiClient_1.BaseEsiClient {
|
|
7
|
-
constructor(client) {
|
|
8
|
-
super(client, searchEndpoints_1.searchEndpoints);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Searches for entities matching a query string on behalf of a character.
|
|
12
|
-
*
|
|
13
|
-
* @param characterId - The ID of the character performing the search
|
|
14
|
-
* @param searchString - The search query string to match against
|
|
15
|
-
* @returns Search results grouped by entity category
|
|
16
|
-
* @requires Authentication
|
|
17
|
-
*/
|
|
18
|
-
characterSearch(characterId, searchString, categories) {
|
|
19
|
-
return this.api.searchCharacter(characterId, searchString, categories.join(','));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.SearchClient = SearchClient;
|