@lgriffin/esi.ts 10.0.0 → 10.2.1
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 +158 -0
- package/README.md +14 -5
- package/dist/EsiClient.d.mts +140 -0
- package/dist/EsiClientBuilder.d.mts +75 -0
- package/dist/auth/EsiTokenManager.d.mts +200 -0
- package/dist/auth/EveSsoClient.d.mts +88 -0
- package/dist/auth/errors.d.mts +42 -0
- package/dist/auth/index.d.mts +14 -0
- package/dist/auth/jwt.d.mts +43 -0
- package/dist/auth/pkce.d.mts +21 -0
- package/dist/auth/storage/FileTokenStorage.d.mts +44 -0
- package/dist/auth/storage/MemoryTokenStorage.d.mts +18 -0
- package/dist/auth/types.d.mts +42 -0
- package/dist/{chunk-7A72QFDF.mjs → chunk-4W66ONJI.mjs} +4 -7
- package/dist/chunk-4W66ONJI.mjs.map +1 -0
- package/dist/{chunk-HPSACXX3.js → chunk-N3B65VLB.js} +4 -7
- package/dist/chunk-N3B65VLB.js.map +1 -0
- package/dist/clients/AccessListsClient.d.mts +25 -0
- package/dist/clients/AllianceClient.d.mts +59 -0
- package/dist/clients/AssetsClient.d.mts +65 -0
- package/dist/clients/BaseEsiClient.d.mts +19 -0
- package/dist/clients/CalendarClient.d.mts +48 -0
- package/dist/clients/CharacterClient.d.mts +134 -0
- package/dist/clients/ClonesClient.d.mts +27 -0
- package/dist/clients/ContactsClient.d.mts +96 -0
- package/dist/clients/ContractsClient.d.mts +91 -0
- package/dist/clients/CorporationProjectsClient.d.mts +54 -0
- package/dist/clients/CorporationsClient.d.mts +219 -0
- package/dist/clients/CosmeticsClient.d.mts +11 -0
- package/dist/clients/DogmaClient.d.mts +42 -0
- package/dist/clients/FactionClient.d.mts +60 -0
- package/dist/clients/FittingsClient.d.mts +38 -0
- package/dist/clients/FleetClient.d.mts +134 -0
- package/dist/clients/FreelanceJobsClient.d.mts +61 -0
- package/dist/clients/IncursionsClient.d.mts +14 -0
- package/dist/clients/IndustryClient.d.mts +86 -0
- package/dist/clients/InsuranceClient.d.mts +14 -0
- package/dist/clients/KillmailsClient.d.mts +37 -0
- package/dist/clients/LocationClient.d.mts +32 -0
- package/dist/clients/LoyaltyClient.d.mts +28 -0
- package/dist/clients/MailClient.d.mts +104 -0
- package/dist/clients/MarketClient.d.mts +102 -0
- package/dist/clients/MercenaryClient.d.mts +42 -0
- package/dist/clients/MetaClient.d.mts +45 -0
- package/dist/clients/MilitaryCampaignsClient.d.mts +53 -0
- package/dist/clients/ParagonHubClient.d.mts +13 -0
- package/dist/clients/PiClient.d.mts +45 -0
- package/dist/clients/RouteClient.d.mts +25 -0
- package/dist/clients/SearchClient.d.mts +17 -0
- package/dist/clients/SkillsClient.d.mts +39 -0
- package/dist/clients/SkyhooksClient.d.mts +48 -0
- package/dist/clients/SovereigntyClient.d.mts +20 -0
- package/dist/clients/StatusClient.d.mts +14 -0
- package/dist/clients/UiClient.d.mts +44 -0
- package/dist/clients/UniverseClient.d.mts +212 -0
- package/dist/clients/WalletClient.d.mts +70 -0
- package/dist/clients/WarsClient.d.mts +33 -0
- package/dist/core/ApiClient.d.mts +73 -0
- package/dist/core/ApiClientBuilder.d.mts +24 -0
- package/dist/core/ApiRequestHandler.d.ts.map +1 -1
- package/dist/core/BatchRequestHandler.d.mts +12 -0
- package/dist/core/ClientRegistry.d.mts +45 -0
- package/dist/core/EsiDiagnostics.d.mts +35 -0
- package/dist/core/IDeduplicator.d.mts +22 -0
- package/dist/core/IDeduplicator.d.ts +16 -0
- package/dist/core/IDeduplicator.d.ts.map +1 -1
- package/dist/core/IRetryStrategy.d.mts +5 -0
- package/dist/core/RequestDeduplicator.d.mts +21 -0
- package/dist/core/RequestDeduplicator.d.ts +11 -0
- package/dist/core/RequestDeduplicator.d.ts.map +1 -1
- package/dist/core/RetryStrategy.d.mts +21 -0
- package/dist/core/cache/ETagCacheManager.d.mts +75 -0
- package/dist/core/cache/ICache.d.mts +27 -0
- package/dist/core/cache/cacheKey.d.ts +11 -0
- package/dist/core/cache/cacheKey.d.ts.map +1 -1
- package/dist/core/circuitBreaker/CircuitBreaker.d.mts +52 -0
- package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -1
- package/dist/core/circuitBreaker/ICircuitBreaker.d.mts +23 -0
- package/dist/core/configureApiClient.d.mts +18 -0
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/endpoints/EndpointDefinition.d.mts +63 -0
- package/dist/core/endpoints/accessListEndpoints.d.mts +34 -0
- package/dist/core/endpoints/allianceEndpoints.d.mts +43 -0
- package/dist/core/endpoints/assetEndpoints.d.mts +76 -0
- package/dist/core/endpoints/buildEndpointPath.d.mts +7 -0
- package/dist/core/endpoints/calendarEndpoints.d.mts +54 -0
- package/dist/core/endpoints/characterEndpoints.d.mts +185 -0
- package/dist/core/endpoints/cloneEndpoints.d.mts +32 -0
- package/dist/core/endpoints/contactEndpoints.d.mts +106 -0
- package/dist/core/endpoints/contractEndpoints.d.mts +168 -0
- package/dist/core/endpoints/corporationEndpoints.d.mts +324 -0
- package/dist/core/endpoints/corporationProjectEndpoints.d.mts +102 -0
- package/dist/core/endpoints/cosmeticsEndpoints.d.mts +52 -0
- package/dist/core/endpoints/createClient.d.mts +69 -0
- package/dist/core/endpoints/dogmaEndpoints.d.mts +89 -0
- package/dist/core/endpoints/esi-cache-ttls.generated.d.ts.map +1 -1
- package/dist/core/endpoints/esi-rate-limit-groups.generated.d.mts +7 -0
- package/dist/core/endpoints/esi-rate-limit-groups.generated.d.ts.map +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.mts +3 -0
- package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
- package/dist/core/endpoints/factionEndpoints.d.mts +194 -0
- package/dist/core/endpoints/fittingEndpoints.d.mts +34 -0
- package/dist/core/endpoints/fleetEndpoints.d.mts +137 -0
- package/dist/core/endpoints/freelanceJobsEndpoints.d.mts +181 -0
- package/dist/core/endpoints/incursionEndpoints.d.mts +19 -0
- package/dist/core/endpoints/industryEndpoints.d.mts +138 -0
- package/dist/core/endpoints/insuranceEndpoints.d.mts +17 -0
- package/dist/core/endpoints/killmailEndpoints.d.mts +62 -0
- package/dist/core/endpoints/locationEndpoints.d.mts +37 -0
- package/dist/core/endpoints/loyaltyEndpoints.d.mts +32 -0
- package/dist/core/endpoints/mailEndpoints.d.mts +111 -0
- package/dist/core/endpoints/marketEndpoints.d.mts +191 -0
- package/dist/core/endpoints/mercenaryEndpoints.d.mts +79 -0
- package/dist/core/endpoints/metaEndpoints.d.mts +50 -0
- package/dist/core/endpoints/militaryCampaignEndpoints.d.mts +87 -0
- package/dist/core/endpoints/paragonHubEndpoints.d.mts +163 -0
- package/dist/core/endpoints/piEndpoints.d.mts +101 -0
- package/dist/core/endpoints/routeEndpoints.d.mts +14 -0
- package/dist/core/endpoints/searchEndpoints.d.mts +26 -0
- package/dist/core/endpoints/skillEndpoints.d.mts +52 -0
- package/dist/core/endpoints/skyhookEndpoints.d.mts +111 -0
- package/dist/core/endpoints/sovereigntyEndpoints.d.mts +59 -0
- package/dist/core/endpoints/statusEndpoints.d.mts +14 -0
- package/dist/core/endpoints/uiEndpoints.d.mts +43 -0
- package/dist/core/endpoints/universeEndpoints.d.mts +456 -0
- package/dist/core/endpoints/walletEndpoints.d.mts +98 -0
- package/dist/core/endpoints/warEndpoints.d.mts +51 -0
- package/dist/core/logger/DefaultLogger.d.mts +31 -0
- package/dist/core/logger/ILogger.d.mts +17 -0
- package/dist/core/logger/NoopLogger.d.mts +7 -0
- package/dist/core/logger/loggerUtil.d.mts +11 -0
- package/dist/core/logger/resolveLogger.d.ts +3 -3
- package/dist/core/logger/resolveLogger.d.ts.map +1 -1
- package/dist/core/middleware/Middleware.d.mts +30 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.mts +12 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
- package/dist/core/pagination/CursorPaginationHandler.d.mts +68 -0
- package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
- package/dist/core/rateLimiter/IRateLimiter.d.mts +27 -0
- package/dist/core/rateLimiter/RateLimiter.d.mts +62 -0
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/requestPipeline/cachePolicy.d.ts +11 -1
- package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -1
- package/dist/core/requestPipeline/fetchExecution.d.ts.map +1 -1
- package/dist/core/requestPipeline/index.d.ts +1 -1
- package/dist/core/requestPipeline/index.d.ts.map +1 -1
- package/dist/core/requestPipeline/paginationOrchestration.d.ts +1 -1
- package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -1
- package/dist/core/requestPipeline/statusHandling.d.ts +6 -0
- package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -1
- package/dist/core/util/concurrency.d.ts.map +1 -1
- package/dist/core/util/error.d.mts +37 -0
- package/dist/core/util/retry.d.mts +8 -0
- package/dist/core/util/retry.d.ts.map +1 -1
- package/dist/errors.d.mts +5 -0
- package/dist/errors.js +2 -2
- package/dist/errors.mjs +1 -1
- package/dist/index.d.mts +81 -0
- package/dist/index.js +374 -197
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -90
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/access-lists.d.mts +16 -0
- package/dist/schemas/alliance.d.mts +26 -0
- package/dist/schemas/assets.d.mts +24 -0
- package/dist/schemas/calendar.d.mts +27 -0
- package/dist/schemas/character.d.mts +109 -0
- package/dist/schemas/clones.d.mts +17 -0
- package/dist/schemas/common.d.mts +74 -0
- package/dist/schemas/contacts.d.mts +14 -0
- package/dist/schemas/contracts.d.mts +104 -0
- package/dist/schemas/corporation-projects.d.mts +104 -0
- package/dist/schemas/corporation.d.mts +193 -0
- package/dist/schemas/cosmetics.d.mts +58 -0
- package/dist/schemas/dogma.d.mts +57 -0
- package/dist/schemas/esiEnum.d.mts +3 -0
- package/dist/schemas/faction-warfare.d.mts +203 -0
- package/dist/schemas/fittings.d.mts +13 -0
- package/dist/schemas/fleet.d.mts +37 -0
- package/dist/schemas/freelance-jobs.d.mts +171 -0
- package/dist/schemas/incursions.d.mts +12 -0
- package/dist/schemas/index.d.mts +39 -0
- package/dist/schemas/industry.d.mts +99 -0
- package/dist/schemas/insurance.d.mts +10 -0
- package/dist/schemas/killmails.d.mts +38 -0
- package/dist/schemas/location.d.mts +18 -0
- package/dist/schemas/loyalty.d.mts +18 -0
- package/dist/schemas/mail.d.mts +53 -0
- package/dist/schemas/market.d.mts +123 -0
- package/dist/schemas/mercenary.d.mts +74 -0
- package/dist/schemas/meta.d.mts +36 -0
- package/dist/schemas/military-campaigns.d.mts +26 -0
- package/dist/schemas/paragon-hub.d.mts +96 -0
- package/dist/schemas/pi.d.mts +71 -0
- package/dist/schemas/skills.d.mts +28 -0
- package/dist/schemas/skyhooks.d.mts +129 -0
- package/dist/schemas/sovereignty.d.mts +56 -0
- package/dist/schemas/status.d.mts +8 -0
- package/dist/schemas/universe.d.mts +285 -0
- package/dist/schemas/wallet.d.mts +45 -0
- package/dist/schemas/wars.d.mts +27 -0
- package/dist/sde/IStaticDataProvider.d.mts +106 -0
- package/dist/sde/MemorySdeProvider.d.mts +167 -0
- package/dist/sde/SdeDataProvider.d.mts +119 -0
- package/dist/sde/SdeTestDataFactory.d.mts +33 -0
- package/dist/sde/errors.d.mts +23 -0
- package/dist/sde/index.d.mts +9 -0
- package/dist/sde/memory.d.mts +8 -0
- package/dist/sde/types.d.mts +1039 -0
- package/dist/sde/version.d.mts +7 -0
- package/dist/testing/TestDataFactory.d.mts +172 -0
- package/dist/testing/index.d.mts +2 -0
- package/dist/testing/index.js +2 -2
- package/dist/testing/index.mjs +1 -1
- package/dist/types/access-lists.d.mts +5 -0
- package/dist/types/alliance.d.mts +7 -0
- package/dist/types/api-responses.d.mts +40 -0
- package/dist/types/assets.d.mts +6 -0
- package/dist/types/branded.d.mts +23 -0
- package/dist/types/calendar.d.mts +6 -0
- package/dist/types/character.d.mts +17 -0
- package/dist/types/clones.d.mts +4 -0
- package/dist/types/common.d.mts +19 -0
- package/dist/types/contacts.d.mts +5 -0
- package/dist/types/contracts.d.mts +9 -0
- package/dist/types/corporation-projects.d.mts +10 -0
- package/dist/types/corporation.d.mts +19 -0
- package/dist/types/cosmetics.d.mts +8 -0
- package/dist/types/dogma.d.mts +6 -0
- package/dist/types/faction-warfare.d.mts +17 -0
- package/dist/types/fittings.d.mts +4 -0
- package/dist/types/fleet.d.mts +7 -0
- package/dist/types/freelance-jobs.d.mts +12 -0
- package/dist/types/generated/esi-spec.generated.d.mts +2136 -0
- package/dist/types/generated/esi-spec.generated.d.ts +164 -16
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/dist/types/generated/spec-alignment.check.d.ts +2 -2
- package/dist/types/incursions.d.mts +4 -0
- package/dist/types/industry.d.mts +11 -0
- package/dist/types/insurance.d.mts +4 -0
- package/dist/types/killmails.d.mts +5 -0
- package/dist/types/location.d.mts +6 -0
- package/dist/types/loyalty.d.mts +5 -0
- package/dist/types/mail.d.mts +6 -0
- package/dist/types/market.d.mts +12 -0
- package/dist/types/mercenary.d.mts +7 -0
- package/dist/types/meta.d.mts +9 -0
- package/dist/types/military-campaigns.d.mts +6 -0
- package/dist/types/paragon-hub.d.mts +8 -0
- package/dist/types/pi.d.mts +6 -0
- package/dist/types/skills.d.mts +5 -0
- package/dist/types/skyhooks.d.mts +8 -0
- package/dist/types/sovereignty.d.mts +6 -0
- package/dist/types/status.d.mts +4 -0
- package/dist/types/universe.d.mts +27 -0
- package/dist/types/wallet.d.mts +6 -0
- package/dist/types/wars.d.mts +4 -0
- package/package.json +92 -24
- package/dist/chunk-7A72QFDF.mjs.map +0 -1
- package/dist/chunk-HPSACXX3.js.map +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { skillEndpoints } from '../core/endpoints/skillEndpoints.mjs';
|
|
4
|
+
import { CharacterAttributes, CharacterSkill, SkillQueue } from '../types/api-responses.mjs';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
|
|
6
|
+
export declare class CharacterSkillsClient extends BaseEsiClient<typeof skillEndpoints> {
|
|
7
|
+
constructor(client: ApiClient);
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a character's neural remap attribute values (intelligence, memory, charisma, perception, willpower).
|
|
10
|
+
*
|
|
11
|
+
* @param characterId - The ID of the character
|
|
12
|
+
* @returns The character's current attribute values and bonus remap information
|
|
13
|
+
* @requires Authentication
|
|
14
|
+
*/
|
|
15
|
+
getCharacterAttributes(characterId: number): Promise<CharacterAttributes>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the skill training queue for a character.
|
|
18
|
+
*
|
|
19
|
+
* @param characterId - The ID of the character
|
|
20
|
+
* @returns An ordered list of skills currently in the character's training queue
|
|
21
|
+
* @requires Authentication
|
|
22
|
+
*/
|
|
23
|
+
getCharacterSkillQueue(characterId: number): Promise<SkillQueue[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves all trained skills for a character, including total and unallocated skill points.
|
|
26
|
+
*
|
|
27
|
+
* @param characterId - The ID of the character
|
|
28
|
+
* @returns The character's trained skills, total SP, and optionally unallocated SP
|
|
29
|
+
* @requires Authentication
|
|
30
|
+
*/
|
|
31
|
+
getCharacterSkills(characterId: number): Promise<{
|
|
32
|
+
skills: CharacterSkill[];
|
|
33
|
+
total_sp: number;
|
|
34
|
+
unallocated_sp?: number;
|
|
35
|
+
}>;
|
|
36
|
+
fetchAllCharacterSkillQueue(characterId: number, concurrency?: number): Promise<SkillQueue[]>;
|
|
37
|
+
streamCharacterSkillQueue(characterId: number): AsyncGenerator<PageResult<SkillQueue>, void, undefined>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=SkillsClient.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { skyhookEndpoints } from '../core/endpoints/skyhookEndpoints.mjs';
|
|
4
|
+
import { SovereigntyHub, OrbitalSkyhook, RaidableSkyhook, SkyhookDetail, SovereigntyHubDetail } from '../types/api-responses.mjs';
|
|
5
|
+
export declare class SkyhooksClient extends BaseEsiClient<typeof skyhookEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all sovereignty hubs exposed as Upwell structures, including online status and installed upgrades.
|
|
9
|
+
*
|
|
10
|
+
* @param corporationId - The ID of the corporation to query sovereignty hubs for
|
|
11
|
+
* @returns A list of sovereignty hubs
|
|
12
|
+
* @requires Authentication
|
|
13
|
+
*/
|
|
14
|
+
getSovereigntyHubs(corporationId: number): Promise<SovereigntyHub[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves all orbital skyhooks with their silo capacity and levels.
|
|
17
|
+
*
|
|
18
|
+
* @param corporationId - The ID of the corporation to query skyhooks for
|
|
19
|
+
* @returns A list of orbital skyhooks
|
|
20
|
+
* @requires Authentication
|
|
21
|
+
*/
|
|
22
|
+
getOrbitalSkyhooks(corporationId: number): Promise<OrbitalSkyhook[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the rolling list of skyhooks that are currently or becoming raidable across New Eden.
|
|
25
|
+
*
|
|
26
|
+
* @returns A list of raidable skyhooks
|
|
27
|
+
*/
|
|
28
|
+
getRaidableSkyhooks(): Promise<RaidableSkyhook[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves detail for a specific skyhook including reagents, reinforcement timer, and theft vulnerability.
|
|
31
|
+
*
|
|
32
|
+
* @param corporationId - The ID of the corporation
|
|
33
|
+
* @param skyhookId - The ID of the skyhook
|
|
34
|
+
* @returns Skyhook detail
|
|
35
|
+
* @requires Authentication
|
|
36
|
+
*/
|
|
37
|
+
getSkyhookDetail(corporationId: number, skyhookId: number): Promise<SkyhookDetail>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves detail for a specific sovereignty hub including reagent bay, resources, upgrades, and vulnerability window.
|
|
40
|
+
*
|
|
41
|
+
* @param corporationId - The ID of the corporation
|
|
42
|
+
* @param sovereigntyHubId - The ID of the sovereignty hub
|
|
43
|
+
* @returns Sovereignty hub detail
|
|
44
|
+
* @requires Authentication
|
|
45
|
+
*/
|
|
46
|
+
getSovereigntyHubDetail(corporationId: number, sovereigntyHubId: number): Promise<SovereigntyHubDetail>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=SkyhooksClient.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { sovereigntyEndpoints } from '../core/endpoints/sovereigntyEndpoints.mjs';
|
|
4
|
+
import { SovereigntyCampaign, SovereigntySystem } from '../types/api-responses.mjs';
|
|
5
|
+
export declare class SovereigntyClient extends BaseEsiClient<typeof sovereigntyEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all active sovereignty campaigns, including command node contests and station freeports.
|
|
9
|
+
*
|
|
10
|
+
* @returns A list of active sovereignty campaigns
|
|
11
|
+
*/
|
|
12
|
+
getSovereigntyCampaigns(): Promise<SovereigntyCampaign[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the combined sovereignty systems data including occupancy, structures, and separate ADM indices (military, industry, strategic).
|
|
15
|
+
*
|
|
16
|
+
* @returns A list of sovereignty systems with ownership, ADM indices, and anchored structures
|
|
17
|
+
*/
|
|
18
|
+
getSovereigntySystems(): Promise<SovereigntySystem>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SovereigntyClient.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { statusEndpoints } from '../core/endpoints/statusEndpoints.mjs';
|
|
4
|
+
import { ServerStatus } from '../types/api-responses.mjs';
|
|
5
|
+
export declare class StatusClient extends BaseEsiClient<typeof statusEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the current Tranquility server status, including player count and server version.
|
|
9
|
+
*
|
|
10
|
+
* @returns The current server status information
|
|
11
|
+
*/
|
|
12
|
+
getStatus(): Promise<ServerStatus>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=StatusClient.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { uiEndpoints } from '../core/endpoints/uiEndpoints.mjs';
|
|
4
|
+
export declare class UiClient extends BaseEsiClient<typeof uiEndpoints> {
|
|
5
|
+
constructor(client: ApiClient);
|
|
6
|
+
/**
|
|
7
|
+
* Sets a solar system as an autopilot waypoint in the EVE client.
|
|
8
|
+
*
|
|
9
|
+
* @param destinationId - The solar system, station, or structure ID to set as waypoint
|
|
10
|
+
* @param addToBeginning - Whether to add the waypoint to the beginning of the route
|
|
11
|
+
* @param clearOtherWaypoints - Whether to clear existing waypoints first
|
|
12
|
+
* @requires Authentication
|
|
13
|
+
*/
|
|
14
|
+
setAutopilotWaypoint(destinationId: number, addToBeginning: boolean, clearOtherWaypoints: boolean): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Opens the contract window for a specific contract in the EVE client.
|
|
17
|
+
*
|
|
18
|
+
* @param contractId - The contract ID to display
|
|
19
|
+
* @requires Authentication
|
|
20
|
+
*/
|
|
21
|
+
openContractWindow(contractId: number): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Opens the information window for a specific entity in the EVE client.
|
|
24
|
+
*
|
|
25
|
+
* @param targetId - The character, corporation, alliance, or type ID to display
|
|
26
|
+
* @requires Authentication
|
|
27
|
+
*/
|
|
28
|
+
openInformationWindow(targetId: number): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Opens the market details window for a specific type in the EVE client.
|
|
31
|
+
*
|
|
32
|
+
* @param typeId - The inventory type ID to display market details for
|
|
33
|
+
* @requires Authentication
|
|
34
|
+
*/
|
|
35
|
+
openMarketDetailsWindow(typeId: number): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Opens the new mail composition window in the EVE client with pre-filled fields.
|
|
38
|
+
*
|
|
39
|
+
* @param body - The mail details including recipients (integer array), subject, and body text
|
|
40
|
+
* @requires Authentication
|
|
41
|
+
*/
|
|
42
|
+
openNewMailWindow(body: object): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=UiClient.d.ts.map
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { universeEndpoints } from '../core/endpoints/universeEndpoints.mjs';
|
|
4
|
+
import { Ancestry, AsteroidBeltInfo, Bloodline, BulkIdResult, ConstellationInfo, Faction, GraphicInfo, ItemCategory, ItemGroup, MoonInfo, NameAndCategory, PlanetInfo, Race, RegionInfo, SchematicInfo, SolarSystemInfo, StarInfo, StargateInfo, StationInfo, StructureInfo, SystemJump, SystemKill, TypeInfo } from '../types/api-responses.mjs';
|
|
5
|
+
export declare class UniverseClient extends BaseEsiClient<typeof universeEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all available character ancestries for character creation.
|
|
9
|
+
*
|
|
10
|
+
* @returns A list of character ancestries
|
|
11
|
+
*/
|
|
12
|
+
getAncestries(): Promise<Ancestry[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves information about an asteroid belt, including its position in space.
|
|
15
|
+
*
|
|
16
|
+
* @param asteroidBeltId - The ID of the asteroid belt
|
|
17
|
+
* @returns Details about the asteroid belt
|
|
18
|
+
*/
|
|
19
|
+
getAsteroidBeltInfo(asteroidBeltId: number): Promise<AsteroidBeltInfo>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves all available character bloodlines for character creation.
|
|
22
|
+
*
|
|
23
|
+
* @returns A list of character bloodlines
|
|
24
|
+
*/
|
|
25
|
+
getBloodlines(): Promise<Bloodline[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves information about a constellation, including its systems and position.
|
|
28
|
+
*
|
|
29
|
+
* @param constellationId - The ID of the constellation
|
|
30
|
+
* @returns Detailed constellation information
|
|
31
|
+
*/
|
|
32
|
+
getConstellationById(constellationId: number): Promise<ConstellationInfo>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a list of all constellation IDs in the EVE universe.
|
|
35
|
+
*
|
|
36
|
+
* @returns A list of constellation IDs
|
|
37
|
+
*/
|
|
38
|
+
getConstellations(): Promise<number[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves all NPC factions in the EVE universe.
|
|
41
|
+
*
|
|
42
|
+
* @returns A list of NPC factions
|
|
43
|
+
*/
|
|
44
|
+
getFactions(): Promise<Faction[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves information about a specific graphic asset used in the EVE client.
|
|
47
|
+
*
|
|
48
|
+
* @param graphicId - The ID of the graphic
|
|
49
|
+
* @returns Detailed graphic information
|
|
50
|
+
*/
|
|
51
|
+
getGraphicById(graphicId: number): Promise<GraphicInfo>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves a list of all graphic asset IDs.
|
|
54
|
+
*
|
|
55
|
+
* @returns A list of graphic IDs
|
|
56
|
+
*/
|
|
57
|
+
getGraphics(): Promise<number[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves a list of all item category IDs in the EVE universe.
|
|
60
|
+
*
|
|
61
|
+
* @returns A list of item category IDs
|
|
62
|
+
*/
|
|
63
|
+
getItemCategories(): Promise<number[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves information about a specific item category, including its groups.
|
|
66
|
+
*
|
|
67
|
+
* @param categoryId - The ID of the item category
|
|
68
|
+
* @returns Detailed item category information
|
|
69
|
+
*/
|
|
70
|
+
getItemCategoryById(categoryId: number): Promise<ItemCategory>;
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves information about a specific item group, including its types.
|
|
73
|
+
*
|
|
74
|
+
* @param groupId - The ID of the item group
|
|
75
|
+
* @returns Detailed item group information
|
|
76
|
+
*/
|
|
77
|
+
getItemGroupById(groupId: number): Promise<ItemGroup>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves a list of all item group IDs in the EVE universe.
|
|
80
|
+
*
|
|
81
|
+
* @returns A list of item group IDs
|
|
82
|
+
*/
|
|
83
|
+
getItemGroups(): Promise<number[]>;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves information about a moon, including its name and position.
|
|
86
|
+
*
|
|
87
|
+
* @param moonId - The ID of the moon
|
|
88
|
+
* @returns Detailed moon information
|
|
89
|
+
*/
|
|
90
|
+
getMoonById(moonId: number): Promise<MoonInfo>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves information about a planet, including its name, type, and position.
|
|
93
|
+
*
|
|
94
|
+
* @param planetId - The ID of the planet
|
|
95
|
+
* @returns Detailed planet information
|
|
96
|
+
*/
|
|
97
|
+
getPlanetById(planetId: number): Promise<PlanetInfo>;
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves all playable races in the EVE universe.
|
|
100
|
+
*
|
|
101
|
+
* @returns A list of playable races
|
|
102
|
+
*/
|
|
103
|
+
getRaces(): Promise<Race[]>;
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves information about a region, including its constellations and name.
|
|
106
|
+
*
|
|
107
|
+
* @param regionId - The ID of the region
|
|
108
|
+
* @returns Detailed region information
|
|
109
|
+
*/
|
|
110
|
+
getRegionById(regionId: number): Promise<RegionInfo>;
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves information about a star, including its spectral class and luminosity.
|
|
113
|
+
*
|
|
114
|
+
* @param starId - The ID of the star
|
|
115
|
+
* @returns Detailed star information
|
|
116
|
+
*/
|
|
117
|
+
getStarById(starId: number): Promise<StarInfo>;
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves information about a stargate, including its destination and position.
|
|
120
|
+
*
|
|
121
|
+
* @param stargateId - The ID of the stargate
|
|
122
|
+
* @returns Detailed stargate information
|
|
123
|
+
*/
|
|
124
|
+
getStargateById(stargateId: number): Promise<StargateInfo>;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieves public information about a station, including its services and location.
|
|
127
|
+
*
|
|
128
|
+
* @param stationId - The ID of the station
|
|
129
|
+
* @returns Detailed station information
|
|
130
|
+
*/
|
|
131
|
+
getStationById(stationId: number): Promise<StationInfo>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves information about a player-owned structure by its ID.
|
|
134
|
+
*
|
|
135
|
+
* @param structureId - The ID of the structure
|
|
136
|
+
* @returns Detailed structure information
|
|
137
|
+
* @requires Authentication
|
|
138
|
+
*/
|
|
139
|
+
getStructureById(structureId: number): Promise<StructureInfo>;
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves a list of all publicly visible player-owned structure IDs.
|
|
142
|
+
*
|
|
143
|
+
* @returns A list of structure IDs
|
|
144
|
+
*/
|
|
145
|
+
getStructures(): Promise<number[]>;
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves information about a solar system, including its planets, stargates, and security status.
|
|
148
|
+
*
|
|
149
|
+
* @param systemId - The ID of the solar system
|
|
150
|
+
* @returns Detailed solar system information
|
|
151
|
+
*/
|
|
152
|
+
getSystemById(systemId: number): Promise<SolarSystemInfo>;
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the number of ship jumps per solar system within the last hour.
|
|
155
|
+
*
|
|
156
|
+
* @returns A list of solar systems with their jump counts
|
|
157
|
+
*/
|
|
158
|
+
getSystemJumps(): Promise<SystemJump[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Retrieves the number of NPC and player ship kills per solar system within the last hour.
|
|
161
|
+
*
|
|
162
|
+
* @returns A list of solar systems with their kill counts
|
|
163
|
+
*/
|
|
164
|
+
getSystemKills(): Promise<SystemKill[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves a list of all solar system IDs in the EVE universe.
|
|
167
|
+
*
|
|
168
|
+
* @returns A list of solar system IDs
|
|
169
|
+
*/
|
|
170
|
+
getSystems(): Promise<number[]>;
|
|
171
|
+
/**
|
|
172
|
+
* Retrieves information about a specific item type, including its description and attributes.
|
|
173
|
+
*
|
|
174
|
+
* @param typeId - The ID of the item type
|
|
175
|
+
* @returns Detailed item type information
|
|
176
|
+
*/
|
|
177
|
+
getTypeById(typeId: number): Promise<TypeInfo>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieves a list of all item type IDs in the EVE universe.
|
|
180
|
+
*
|
|
181
|
+
* @returns A list of item type IDs
|
|
182
|
+
*/
|
|
183
|
+
getTypes(): Promise<number[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Resolves a list of names to their corresponding IDs via a bulk POST operation.
|
|
186
|
+
*
|
|
187
|
+
* @param names - An array of names to resolve to IDs
|
|
188
|
+
* @returns The resolved IDs grouped by entity category
|
|
189
|
+
*/
|
|
190
|
+
postBulkNamesToIds(names: string[]): Promise<BulkIdResult>;
|
|
191
|
+
/**
|
|
192
|
+
* Resolves a list of IDs to their names and categories via a bulk POST operation.
|
|
193
|
+
*
|
|
194
|
+
* @param ids - An array of entity IDs to resolve
|
|
195
|
+
* @returns A list of names with their corresponding categories
|
|
196
|
+
*/
|
|
197
|
+
postNamesAndCategories(ids: number[]): Promise<NameAndCategory[]>;
|
|
198
|
+
/**
|
|
199
|
+
* Retrieves information about a planetary interaction schematic.
|
|
200
|
+
*
|
|
201
|
+
* @param schematicId - The ID of the PI schematic
|
|
202
|
+
* @returns Detailed schematic information including inputs and outputs
|
|
203
|
+
*/
|
|
204
|
+
getSchematicById(schematicId: number): Promise<SchematicInfo>;
|
|
205
|
+
/**
|
|
206
|
+
* Retrieves a list of all region IDs in the EVE universe.
|
|
207
|
+
*
|
|
208
|
+
* @returns A list of region IDs
|
|
209
|
+
*/
|
|
210
|
+
getRegions(): Promise<number[]>;
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=UniverseClient.d.ts.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { walletEndpoints } from '../core/endpoints/walletEndpoints.mjs';
|
|
4
|
+
import { CorporationWalletTransaction, WalletJournal, WalletTransaction } from '../types/api-responses.mjs';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
|
|
6
|
+
export declare class WalletClient extends BaseEsiClient<typeof walletEndpoints> {
|
|
7
|
+
constructor(client: ApiClient);
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the current ISK balance of a character's wallet.
|
|
10
|
+
*
|
|
11
|
+
* @param characterId - The ID of the character
|
|
12
|
+
* @returns The character's wallet balance in ISK
|
|
13
|
+
* @requires Authentication
|
|
14
|
+
*/
|
|
15
|
+
getCharacterWallet(characterId: number): Promise<number>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves the wallet journal entries for a character, showing ISK transactions and their reasons.
|
|
18
|
+
*
|
|
19
|
+
* @param characterId - The ID of the character
|
|
20
|
+
* @returns A list of wallet journal entries
|
|
21
|
+
* @requires Authentication
|
|
22
|
+
*/
|
|
23
|
+
getCharacterWalletJournal(characterId: number): Promise<WalletJournal[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves the market transaction history for a character's wallet.
|
|
26
|
+
*
|
|
27
|
+
* @param characterId - The ID of the character
|
|
28
|
+
* @returns A list of market buy and sell transactions
|
|
29
|
+
* @requires Authentication
|
|
30
|
+
*/
|
|
31
|
+
getCharacterWalletTransactions(characterId: number): Promise<WalletTransaction[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the balances for all wallet divisions of a corporation.
|
|
34
|
+
*
|
|
35
|
+
* @param corporationId - The ID of the corporation
|
|
36
|
+
* @returns A list of wallet divisions with their balances
|
|
37
|
+
* @requires Authentication
|
|
38
|
+
*/
|
|
39
|
+
getCorporationWallets(corporationId: number): Promise<{
|
|
40
|
+
division: number;
|
|
41
|
+
balance: number;
|
|
42
|
+
}[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves the wallet journal entries for a specific division of a corporation wallet.
|
|
45
|
+
*
|
|
46
|
+
* @param corporationId - The ID of the corporation
|
|
47
|
+
* @param division - The wallet division number (1-7)
|
|
48
|
+
* @returns A list of wallet journal entries for the specified division
|
|
49
|
+
* @requires Authentication
|
|
50
|
+
*/
|
|
51
|
+
getCorporationWalletJournal(corporationId: number, division: number): Promise<WalletJournal[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the market transaction history for a specific division of a corporation wallet.
|
|
54
|
+
*
|
|
55
|
+
* @param corporationId - The ID of the corporation
|
|
56
|
+
* @param division - The wallet division number (1-7)
|
|
57
|
+
* @returns A list of market buy and sell transactions for the specified division
|
|
58
|
+
* @requires Authentication
|
|
59
|
+
*/
|
|
60
|
+
getCorporationWalletTransactions(corporationId: number, division: number): Promise<CorporationWalletTransaction[]>;
|
|
61
|
+
fetchAllCharacterWalletJournal(characterId: number, concurrency?: number): Promise<WalletJournal[]>;
|
|
62
|
+
fetchAllCorporationWalletJournal(corporationId: number, division: number, concurrency?: number): Promise<WalletJournal[]>;
|
|
63
|
+
fetchAllCharacterWalletTransactions(characterId: number, concurrency?: number): Promise<WalletTransaction[]>;
|
|
64
|
+
fetchAllCorporationWalletTransactions(corporationId: number, division: number, concurrency?: number): Promise<CorporationWalletTransaction[]>;
|
|
65
|
+
streamCharacterWalletJournal(characterId: number): AsyncGenerator<PageResult<WalletJournal>, void, undefined>;
|
|
66
|
+
streamCorporationWalletJournal(corporationId: number, division: number): AsyncGenerator<PageResult<WalletJournal>, void, undefined>;
|
|
67
|
+
streamCharacterWalletTransactions(characterId: number): AsyncGenerator<PageResult<WalletTransaction>, void, undefined>;
|
|
68
|
+
streamCorporationWalletTransactions(corporationId: number, division: number): AsyncGenerator<PageResult<CorporationWalletTransaction>, void, undefined>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=WalletClient.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient.mjs';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient.mjs';
|
|
3
|
+
import { warEndpoints } from '../core/endpoints/warEndpoints.mjs';
|
|
4
|
+
import { War, KillmailSummary } from '../types/api-responses.mjs';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
|
|
6
|
+
export declare class WarsClient extends BaseEsiClient<typeof warEndpoints> {
|
|
7
|
+
constructor(client: ApiClient);
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a list of all war IDs, ordered by war ID descending.
|
|
10
|
+
*
|
|
11
|
+
* @returns A list of war IDs
|
|
12
|
+
*/
|
|
13
|
+
getWars(): Promise<number[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves detailed information about a specific war, including aggressors, defenders, and status.
|
|
16
|
+
*
|
|
17
|
+
* @param warId - The ID of the war
|
|
18
|
+
* @returns Detailed war information
|
|
19
|
+
*/
|
|
20
|
+
getWarById(warId: number): Promise<War>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves the killmail summaries associated with a specific war.
|
|
23
|
+
*
|
|
24
|
+
* @param warId - The ID of the war
|
|
25
|
+
* @returns A list of killmail summaries for the war
|
|
26
|
+
*/
|
|
27
|
+
getWarKillmails(warId: number): Promise<KillmailSummary[]>;
|
|
28
|
+
fetchAllWars(concurrency?: number): Promise<number[]>;
|
|
29
|
+
fetchAllWarKillmails(warId: number, concurrency?: number): Promise<KillmailSummary[]>;
|
|
30
|
+
streamWars(): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
31
|
+
streamWarKillmails(warId: number): AsyncGenerator<PageResult<KillmailSummary>, void, undefined>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=WarsClient.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { MiddlewareManager, RequestInterceptor, ResponseInterceptor } from './middleware/Middleware.mjs';
|
|
2
|
+
import { ICache } from './cache/ICache.mjs';
|
|
3
|
+
import { IRateLimiter } from './rateLimiter/IRateLimiter.mjs';
|
|
4
|
+
import { ICircuitBreaker } from './circuitBreaker/ICircuitBreaker.mjs';
|
|
5
|
+
import { IDeduplicator } from './IDeduplicator.mjs';
|
|
6
|
+
import { IRetryStrategy } from './IRetryStrategy.mjs';
|
|
7
|
+
import { RetryConfig } from './util/retry.mjs';
|
|
8
|
+
import type { ILogger } from './logger/ILogger.mjs';
|
|
9
|
+
export type EsiDatasource = 'tranquility' | 'singularity';
|
|
10
|
+
export type TokenProvider = () => Promise<string>;
|
|
11
|
+
export type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
12
|
+
export declare class ApiClient {
|
|
13
|
+
private clientId;
|
|
14
|
+
private link;
|
|
15
|
+
private accessToken?;
|
|
16
|
+
private datasource?;
|
|
17
|
+
private tokenProvider?;
|
|
18
|
+
private refreshInFlight?;
|
|
19
|
+
private middleware;
|
|
20
|
+
private cache;
|
|
21
|
+
private rateLimiter;
|
|
22
|
+
private circuitBreaker;
|
|
23
|
+
private timeout;
|
|
24
|
+
private deduplicator;
|
|
25
|
+
private retryConfig;
|
|
26
|
+
private retryStrategy;
|
|
27
|
+
private validateResponse;
|
|
28
|
+
private validateRequest;
|
|
29
|
+
private language?;
|
|
30
|
+
private compatibilityDate?;
|
|
31
|
+
private fetchFn;
|
|
32
|
+
private logger;
|
|
33
|
+
constructor(clientId: string, link: string, accessToken?: string | undefined);
|
|
34
|
+
getTimeout(): number;
|
|
35
|
+
setTimeout(timeout: number): void;
|
|
36
|
+
getCache(): ICache | null;
|
|
37
|
+
setCache(cache: ICache | null): void;
|
|
38
|
+
getRateLimiter(): IRateLimiter | null;
|
|
39
|
+
setRateLimiter(limiter: IRateLimiter | null): void;
|
|
40
|
+
getCircuitBreaker(): ICircuitBreaker | null;
|
|
41
|
+
setCircuitBreaker(cb: ICircuitBreaker | null): void;
|
|
42
|
+
getDeduplicator(): IDeduplicator | null;
|
|
43
|
+
setDeduplicator(dedup: IDeduplicator | null): void;
|
|
44
|
+
getRetryConfig(): RetryConfig | null;
|
|
45
|
+
setRetryConfig(config: RetryConfig | null): void;
|
|
46
|
+
getRetryStrategy(): IRetryStrategy | null;
|
|
47
|
+
setRetryStrategy(strategy: IRetryStrategy | null): void;
|
|
48
|
+
getValidateResponse(): boolean;
|
|
49
|
+
setValidateResponse(validate: boolean): void;
|
|
50
|
+
getValidateRequest(): boolean;
|
|
51
|
+
setValidateRequest(validate: boolean): void;
|
|
52
|
+
getFetch(): FetchLike;
|
|
53
|
+
setFetch(fn: FetchLike): void;
|
|
54
|
+
getMiddleware(): MiddlewareManager;
|
|
55
|
+
addRequestInterceptor(fn: RequestInterceptor): () => void;
|
|
56
|
+
addResponseInterceptor(fn: ResponseInterceptor): () => void;
|
|
57
|
+
getAuthorizationHeader(): string | undefined;
|
|
58
|
+
getLink(): string;
|
|
59
|
+
getDatasource(): EsiDatasource | undefined;
|
|
60
|
+
setDatasource(datasource: EsiDatasource | undefined): void;
|
|
61
|
+
getLanguage(): string | undefined;
|
|
62
|
+
setLanguage(language: string | undefined): void;
|
|
63
|
+
getCompatibilityDate(): string | undefined;
|
|
64
|
+
setCompatibilityDate(date: string | undefined): void;
|
|
65
|
+
setAccessToken(token: string): void;
|
|
66
|
+
setTokenProvider(provider: TokenProvider | undefined): void;
|
|
67
|
+
getLogger(): ILogger | null;
|
|
68
|
+
setLogger(logger: ILogger | null): void;
|
|
69
|
+
hasTokenProvider(): boolean;
|
|
70
|
+
toJSON(): Record<string, unknown>;
|
|
71
|
+
refreshToken(): Promise<string>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=ApiClient.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiClient, FetchLike } from './ApiClient.mjs';
|
|
2
|
+
import { IRateLimiter } from './rateLimiter/IRateLimiter.mjs';
|
|
3
|
+
import { ICache } from './cache/ICache.mjs';
|
|
4
|
+
import { CircuitBreaker } from './circuitBreaker/CircuitBreaker.mjs';
|
|
5
|
+
export declare class ApiClientBuilder {
|
|
6
|
+
private clientId;
|
|
7
|
+
private link;
|
|
8
|
+
private accessToken?;
|
|
9
|
+
private rateLimiter?;
|
|
10
|
+
private cache?;
|
|
11
|
+
private circuitBreaker?;
|
|
12
|
+
private _timeout?;
|
|
13
|
+
private _fetch?;
|
|
14
|
+
setClientId(clientId: string): ApiClientBuilder;
|
|
15
|
+
setLink(link: string): ApiClientBuilder;
|
|
16
|
+
setAccessToken(accessToken?: string): ApiClientBuilder;
|
|
17
|
+
setRateLimiter(limiter: IRateLimiter): ApiClientBuilder;
|
|
18
|
+
setCache(cache: ICache): ApiClientBuilder;
|
|
19
|
+
setCircuitBreaker(cb: CircuitBreaker): ApiClientBuilder;
|
|
20
|
+
setTimeout(timeout: number): ApiClientBuilder;
|
|
21
|
+
setFetch(fn: FetchLike): ApiClientBuilder;
|
|
22
|
+
build(): ApiClient;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=ApiClientBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiRequestHandler.d.ts","sourceRoot":"","sources":["../../src/core/ApiRequestHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiRequestHandler.d.ts","sourceRoot":"","sources":["../../src/core/ApiRequestHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAwBxC,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAgL5D,eAAO,MAAM,uBAAuB,GAClC,QAAQ,SAAS,EACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,OAAO,OAAO,EACd,eAAc,OAAe,EAC7B,eAAe,MAAM,EACrB,iBAAiB,MAAM,KACtB,OAAO,CAAC,kBAAkB,CA8B5B,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,QAAQ,SAAS,EACjB,UAAU,MAAM,EAChB,QAAQ,MAAM,EACd,OAAO,OAAO,EACd,eAAc,OAAe,EAC7B,UAAS,OAAc,EACvB,eAAe,MAAM,EACrB,iBAAiB,MAAM,KACtB,OAAO,CAAC,kBAAkB,CAsE5B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EsiError } from './util/error.mjs';
|
|
2
|
+
export interface BatchOptions {
|
|
3
|
+
concurrency?: number;
|
|
4
|
+
onProgress?: (completed: number, total: number) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface BatchResult<K, T> {
|
|
7
|
+
results: Map<K, T>;
|
|
8
|
+
errors: Map<K, EsiError | Error>;
|
|
9
|
+
}
|
|
10
|
+
export declare function batchFetch<K, T>(keys: K[], fetcher: (key: K) => Promise<T>, options?: BatchOptions): Promise<BatchResult<K, T>>;
|
|
11
|
+
export declare function batchPost<T>(ids: number[], poster: (chunk: number[]) => Promise<T[]>, chunkSize?: number): Promise<T[]>;
|
|
12
|
+
//# sourceMappingURL=BatchRequestHandler.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiClient } from './ApiClient.mjs';
|
|
2
|
+
import { AllianceClient } from '../clients/AllianceClient.mjs';
|
|
3
|
+
import { AssetsClient } from '../clients/AssetsClient.mjs';
|
|
4
|
+
import { CalendarClient } from '../clients/CalendarClient.mjs';
|
|
5
|
+
import { CharacterClient } from '../clients/CharacterClient.mjs';
|
|
6
|
+
import { ClonesClient } from '../clients/ClonesClient.mjs';
|
|
7
|
+
import { ContactsClient } from '../clients/ContactsClient.mjs';
|
|
8
|
+
import { ContractsClient } from '../clients/ContractsClient.mjs';
|
|
9
|
+
import { CorporationsClient } from '../clients/CorporationsClient.mjs';
|
|
10
|
+
import { CorporationProjectsClient } from '../clients/CorporationProjectsClient.mjs';
|
|
11
|
+
import { DogmaClient } from '../clients/DogmaClient.mjs';
|
|
12
|
+
import { FactionClient } from '../clients/FactionClient.mjs';
|
|
13
|
+
import { FittingsClient } from '../clients/FittingsClient.mjs';
|
|
14
|
+
import { FleetClient } from '../clients/FleetClient.mjs';
|
|
15
|
+
import { IncursionsClient } from '../clients/IncursionsClient.mjs';
|
|
16
|
+
import { IndustryClient } from '../clients/IndustryClient.mjs';
|
|
17
|
+
import { InsuranceClient } from '../clients/InsuranceClient.mjs';
|
|
18
|
+
import { KillmailsClient } from '../clients/KillmailsClient.mjs';
|
|
19
|
+
import { LocationClient } from '../clients/LocationClient.mjs';
|
|
20
|
+
import { LoyaltyClient } from '../clients/LoyaltyClient.mjs';
|
|
21
|
+
import { MailClient } from '../clients/MailClient.mjs';
|
|
22
|
+
import { MarketClient } from '../clients/MarketClient.mjs';
|
|
23
|
+
import { PiClient } from '../clients/PiClient.mjs';
|
|
24
|
+
import { RouteClient } from '../clients/RouteClient.mjs';
|
|
25
|
+
import { SearchClient } from '../clients/SearchClient.mjs';
|
|
26
|
+
import { CharacterSkillsClient } from '../clients/SkillsClient.mjs';
|
|
27
|
+
import { SovereigntyClient } from '../clients/SovereigntyClient.mjs';
|
|
28
|
+
import { StatusClient } from '../clients/StatusClient.mjs';
|
|
29
|
+
import { UiClient } from '../clients/UiClient.mjs';
|
|
30
|
+
import { UniverseClient } from '../clients/UniverseClient.mjs';
|
|
31
|
+
import { WalletClient } from '../clients/WalletClient.mjs';
|
|
32
|
+
import { WarsClient } from '../clients/WarsClient.mjs';
|
|
33
|
+
import { MetaClient } from '../clients/MetaClient.mjs';
|
|
34
|
+
import { FreelanceJobsClient } from '../clients/FreelanceJobsClient.mjs';
|
|
35
|
+
import { SkyhooksClient } from '../clients/SkyhooksClient.mjs';
|
|
36
|
+
import { MercenaryClient } from '../clients/MercenaryClient.mjs';
|
|
37
|
+
import { AccessListsClient } from '../clients/AccessListsClient.mjs';
|
|
38
|
+
import { CosmeticsClient } from '../clients/CosmeticsClient.mjs';
|
|
39
|
+
import { ParagonHubClient } from '../clients/ParagonHubClient.mjs';
|
|
40
|
+
import { MilitaryCampaignsClient } from '../clients/MilitaryCampaignsClient.mjs';
|
|
41
|
+
export type ApiClientType = 'alliance' | 'assets' | 'calendar' | 'characters' | 'clones' | 'contacts' | 'contracts' | 'corporations' | 'corporationProjects' | 'dogma' | 'factions' | 'fittings' | 'fleets' | 'incursions' | 'industry' | 'insurance' | 'killmails' | 'location' | 'loyalty' | 'mail' | 'market' | 'pi' | 'route' | 'search' | 'skills' | 'sovereignty' | 'status' | 'ui' | 'universe' | 'wallet' | 'wars' | 'meta' | 'freelanceJobs' | 'skyhooks' | 'cosmetics' | 'paragonHub' | 'mercenary' | 'militaryCampaigns' | 'accessLists';
|
|
42
|
+
export type ClientInstance = AllianceClient | AssetsClient | CalendarClient | CharacterClient | ClonesClient | ContactsClient | ContractsClient | CorporationsClient | CorporationProjectsClient | DogmaClient | FactionClient | FittingsClient | FleetClient | IncursionsClient | IndustryClient | InsuranceClient | KillmailsClient | LocationClient | LoyaltyClient | MailClient | MarketClient | PiClient | RouteClient | SearchClient | CharacterSkillsClient | SovereigntyClient | StatusClient | UiClient | UniverseClient | WalletClient | WarsClient | MetaClient | FreelanceJobsClient | SkyhooksClient | CosmeticsClient | ParagonHubClient | MercenaryClient | MilitaryCampaignsClient | AccessListsClient;
|
|
43
|
+
export declare function createClientInstance(name: ApiClientType, apiClient: ApiClient): ClientInstance;
|
|
44
|
+
export { AllianceClient, AssetsClient, CalendarClient, CharacterClient, ClonesClient, ContactsClient, ContractsClient, CorporationsClient, CorporationProjectsClient, DogmaClient, FactionClient, FittingsClient, FleetClient, IncursionsClient, IndustryClient, InsuranceClient, KillmailsClient, LocationClient, LoyaltyClient, MailClient, MarketClient, PiClient, RouteClient, SearchClient, CharacterSkillsClient, SovereigntyClient, StatusClient, UiClient, UniverseClient, WalletClient, WarsClient, MetaClient, FreelanceJobsClient, SkyhooksClient, CosmeticsClient, ParagonHubClient, MercenaryClient, MilitaryCampaignsClient, AccessListsClient, };
|
|
45
|
+
//# sourceMappingURL=ClientRegistry.d.ts.map
|