@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
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [9.0.0] - 2026-08-12
|
|
9
|
+
|
|
10
|
+
### Breaking Changes
|
|
11
|
+
|
|
12
|
+
- **Default retry count changed from 0 to 3** — transient failures (502, 503, 504, timeout, rate limit) now retry automatically with exponential backoff and jitter. Set `maxRetries: 0` in `retryConfig` to restore the previous behavior
|
|
13
|
+
- **Generated Zod schemas removed** — the `src/schemas/generated/` directory has been removed; only hand-written schemas in `src/schemas/` remain
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **Sub-path exports** — targeted imports for reduced bundle size:
|
|
18
|
+
- `@lgriffin/esi.ts/schemas` — Zod schemas for runtime validation
|
|
19
|
+
- `@lgriffin/esi.ts/errors` — error classes and type guards
|
|
20
|
+
- `@lgriffin/esi.ts/testing` — `TestDataFactory` for test mock data
|
|
21
|
+
- **`isCircuitOpen()` type guard** — checks whether an error is a `CircuitOpenError`, complementing the existing `isTimeout()`, `isRetryable()`, and `isValidationError()` guards
|
|
22
|
+
- **`generate:all` script** — runs all generators (types, endpoints, OKF) in one command
|
|
23
|
+
- **`generate:endpoints` script** — regenerates endpoint definitions from the ESI OpenAPI spec
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **Cursor pagination routed through full pipeline** — cursor-based pagination now goes through the same middleware pipeline (rate limiter, circuit breaker, retry, caching) as offset pagination
|
|
28
|
+
- **Pagination retry unified with `IRetryStrategy`** — pagination requests now use the injectable retry strategy instead of a separate retry path
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **Response interceptor status fix** — response interceptors previously received a hardcoded 200 status; they now receive the actual HTTP status code from the response
|
|
33
|
+
- **CI consolidated** — `pr-validation.yml` merged into `ci.yml`; all PR validation now runs through the main CI pipeline
|
|
34
|
+
|
|
8
35
|
## [7.4.0] - 2026-07-17
|
|
9
36
|
|
|
10
37
|
### Added
|
package/README.md
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
6
|
[](https://github.com/lgriffin/ESI.ts/actions/workflows/ci.yml)
|
|
7
|
-
[](https://github.com/lgriffin/ESI.ts)
|
|
7
|
+
[](https://github.com/lgriffin/ESI.ts)
|
|
9
8
|
[](https://www.npmjs.com/package/@lgriffin/esi.ts)
|
|
10
9
|
|
|
11
10
|
A production-grade TypeScript client for the [EVE Online ESI API](https://esi.evetech.net/), built on the **OpenAPI 3.1 spec**, with runtime validation, intelligent caching, and full endpoint coverage.
|
|
12
11
|
|
|
13
|
-
**
|
|
12
|
+
**v9.0.0** — Default retry count changed from 0 to 3, sub-path exports (`@lgriffin/esi.ts/schemas`, `/errors`, `/testing`), `isCircuitOpen()` type guard, cursor pagination routed through full pipeline, unified pagination retry via `IRetryStrategy`, response interceptor status fix, and CI consolidation.
|
|
14
13
|
|
|
15
14
|
**208 endpoint definitions — 194 from the public ESI OpenAPI spec, plus 14 for newer EVE features (Equinox sovereignty, orbital skyhooks, mercenary dens, access lists, freelance jobs). All 206 exercisable endpoints validated against live Tranquility on 2026-07-08.**
|
|
16
15
|
|
|
@@ -26,17 +25,18 @@ Tools like `openapi-typescript` or `openapi-generator` can produce a typed clien
|
|
|
26
25
|
|
|
27
26
|
### What ESI.ts gives you on top of that
|
|
28
27
|
|
|
29
|
-
| Capability | openapi-typescript | ESI.ts
|
|
30
|
-
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
31
|
-
| **Runtime response validation** | None — types are erased at compile time. If CCP changes a field, you get silent data corruption. | Every GET response is validated at runtime via [Zod](https://zod.dev/) schemas — all 173 GET endpoints have schemas. Schema mismatches throw `EsiValidationError` immediately.
|
|
32
|
-
| **Intelligent caching** | None — you build your own. | Three-tier: spec-aware TTL (zero HTTP calls within ESI's `x-cached-seconds` window), ETag conditional GETs, stale-on-error fallback on 5xx. Write operations auto-invalidate related GET caches.
|
|
33
|
-
| **Rate limiting** | None — you build your own. | 36 per-group token buckets extracted from the ESI spec at build time. Market requests can't starve wallet requests. Optional per-user bucketing for multi-character apps.
|
|
34
|
-
| **Pagination** | Manual — you write the page loop. | Automatic offset pagination, cursor-based pagination (Equinox-era endpoints), and streaming `AsyncGenerator` pagination for memory-efficient processing of large datasets.
|
|
35
|
-
| **Retry & resilience** | None. | Exponential backoff with jitter, circuit breaker (closed/open/half-open), automatic 401 token refresh with concurrent coalescing.
|
|
36
|
-
| **Wire format correctness** | Generates from spec, but ESI's spec has inconsistencies (query params documented as body, missing required fields). | Every endpoint tested against live ESI. Wire format bugs (query params vs. body, field naming) are caught and fixed — see the contacts and UI endpoint fixes in v6.1.0.
|
|
37
|
-
| **Batch operations** | None. | `batch()` with bounded concurrency for GET fan-out, `batchPost()` with auto-chunking for large POST payloads.
|
|
38
|
-
| **Domain knowledge** | None — generic HTTP client. | 35 domain clients with typed methods, JSDoc documentation, and input validation (e.g., fleet wing/squad names are capped at 10 characters before hitting the API).
|
|
39
|
-
| **
|
|
28
|
+
| Capability | openapi-typescript | ESI.ts |
|
|
29
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| **Runtime response validation** | None — types are erased at compile time. If CCP changes a field, you get silent data corruption. | Every GET response is validated at runtime via [Zod](https://zod.dev/) schemas — all 173 GET endpoints have schemas. Schema mismatches throw `EsiValidationError` immediately. |
|
|
31
|
+
| **Intelligent caching** | None — you build your own. | Three-tier: spec-aware TTL (zero HTTP calls within ESI's `x-cached-seconds` window), ETag conditional GETs, stale-on-error fallback on 5xx. Write operations auto-invalidate related GET caches. |
|
|
32
|
+
| **Rate limiting** | None — you build your own. | 36 per-group token buckets extracted from the ESI spec at build time. Market requests can't starve wallet requests. Optional per-user bucketing for multi-character apps. |
|
|
33
|
+
| **Pagination** | Manual — you write the page loop. | Automatic offset pagination, cursor-based pagination (Equinox-era endpoints), and streaming `AsyncGenerator` pagination for memory-efficient processing of large datasets. |
|
|
34
|
+
| **Retry & resilience** | None. | Exponential backoff with jitter, circuit breaker (closed/open/half-open), automatic 401 token refresh with concurrent coalescing. |
|
|
35
|
+
| **Wire format correctness** | Generates from spec, but ESI's spec has inconsistencies (query params documented as body, missing required fields). | Every endpoint tested against live ESI. Wire format bugs (query params vs. body, field naming) are caught and fixed — see the contacts and UI endpoint fixes in v6.1.0. |
|
|
36
|
+
| **Batch operations** | None. | `batch()` with bounded concurrency for GET fan-out, `batchPost()` with auto-chunking for large POST payloads. |
|
|
37
|
+
| **Domain knowledge** | None — generic HTTP client. | 35 domain clients with typed methods, JSDoc documentation, and input validation (e.g., fleet wing/squad names are capped at 10 characters before hitting the API). |
|
|
38
|
+
| **Streaming pagination** | None. | 21 domain clients with 73+ `stream*` methods via `AsyncGenerator` — process large datasets page-by-page without loading everything into memory. |
|
|
39
|
+
| **Testing** | Whatever you write. | 139 test suites, 4,104 tests across 9 tiers including property-based fuzzing (fast-check), mutation testing (Stryker), deep contract tests against live OpenAPI spec, and consumer type tests (tsd). 43 runnable example scripts. |
|
|
40
40
|
|
|
41
41
|
### The real problem with generated clients
|
|
42
42
|
|
|
@@ -73,7 +73,22 @@ Verify everything works:
|
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
75
|
npm run example:status # quick smoke test — checks ESI is reachable
|
|
76
|
-
npm test # run the full test suite (
|
|
76
|
+
npm test # run the full test suite (139 suites, 4,104 tests)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Sub-path Exports
|
|
80
|
+
|
|
81
|
+
ESI.ts provides sub-path exports for targeted imports, reducing bundle size when you only need specific parts of the library:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
// Zod schemas for runtime validation
|
|
85
|
+
import { MarketOrderSchema } from '@lgriffin/esi.ts/schemas';
|
|
86
|
+
|
|
87
|
+
// Error classes and type guards
|
|
88
|
+
import { EsiError, isCircuitOpen } from '@lgriffin/esi.ts/errors';
|
|
89
|
+
|
|
90
|
+
// Test utilities
|
|
91
|
+
import { TestDataFactory } from '@lgriffin/esi.ts/testing';
|
|
77
92
|
```
|
|
78
93
|
|
|
79
94
|
## Quick Start
|
|
@@ -109,7 +124,7 @@ const client = new EsiClient({
|
|
|
109
124
|
language: 'en', // Accept-Language header: en, de, fr, ja, ru, zh, ko, es (default: none)
|
|
110
125
|
timeout: 30000, // Request timeout in ms (default: 30000)
|
|
111
126
|
retryConfig: {
|
|
112
|
-
maxRetries: 3, // Max retry attempts for transient errors (default:
|
|
127
|
+
maxRetries: 3, // Max retry attempts for transient errors (default: 3)
|
|
113
128
|
baseDelayMs: 1000, // Initial backoff delay (default: 1000)
|
|
114
129
|
maxDelayMs: 30000, // Maximum backoff delay (default: 30000)
|
|
115
130
|
retryMutations: false, // Retry POST/PUT/DELETE (default: false, GET only)
|
|
@@ -121,10 +136,16 @@ const client = new EsiClient({
|
|
|
121
136
|
cleanupInterval: 60000, // Expired entry cleanup interval (default: 1 min)
|
|
122
137
|
},
|
|
123
138
|
validateResponse: true, // Runtime Zod validation of ESI responses (default: true)
|
|
139
|
+
validateRequest: false, // Opt-in request body Zod validation for POST/PUT/DELETE (default: false)
|
|
140
|
+
retryStrategy: customRetryStrategy, // Injectable IRetryStrategy (default: built-in exponential backoff)
|
|
141
|
+
circuitBreakerConfig: {
|
|
142
|
+
keyStrategy: 'resolved', // CB keying: 'resolved' (per-URL) or 'template' (per-route) (default: 'resolved')
|
|
143
|
+
cleanupIntervalMs: 300000, // Automatic stale circuit cleanup interval (default: 5 min)
|
|
144
|
+
},
|
|
124
145
|
});
|
|
125
146
|
```
|
|
126
147
|
|
|
127
|
-
Retry is
|
|
148
|
+
Retry is enabled by default (`maxRetries: 3`). Transient errors (502, 503, 504, timeout, rate limit) are retried with exponential backoff and jitter. The circuit breaker is respected — requests are not retried when the circuit is open. Set `maxRetries: 0` to disable retry.
|
|
128
149
|
|
|
129
150
|
The access token can be updated at runtime:
|
|
130
151
|
|
|
@@ -303,6 +324,22 @@ if (result.success) {
|
|
|
303
324
|
}
|
|
304
325
|
```
|
|
305
326
|
|
|
327
|
+
### Request Body Validation
|
|
328
|
+
|
|
329
|
+
For POST/PUT/DELETE endpoints, opt-in request body validation ensures outgoing payloads match the endpoint's `requestSchema` before the request is sent:
|
|
330
|
+
|
|
331
|
+
```typescript
|
|
332
|
+
// Opt-in request body validation for POST/PUT/DELETE
|
|
333
|
+
const client = new EsiClient({ validateRequest: true });
|
|
334
|
+
|
|
335
|
+
// Throws EsiValidationError if the request body doesn't match the endpoint's requestSchema
|
|
336
|
+
await client.mail.sendMail(characterId, {
|
|
337
|
+
recipients: [{ recipient_id: 12345, recipient_type: 'character' }],
|
|
338
|
+
subject: 'Hello',
|
|
339
|
+
body: 'Message body',
|
|
340
|
+
});
|
|
341
|
+
```
|
|
342
|
+
|
|
306
343
|
See [guides/RUNTIME-VALIDATION.md](guides/RUNTIME-VALIDATION.md) for the full guide on schemas, error handling, and extending schemas.
|
|
307
344
|
|
|
308
345
|
## Caching
|
|
@@ -410,13 +447,31 @@ for await (const page of client.market.streamMarketOrders(10000002)) {
|
|
|
410
447
|
}
|
|
411
448
|
```
|
|
412
449
|
|
|
413
|
-
|
|
450
|
+
21 domain clients expose 73+ streaming methods. `BaseEsiClient.streamEndpoint()` is also public as an escape hatch for any paginated endpoint not yet wrapped with a convenience method.
|
|
451
|
+
|
|
452
|
+
Available streaming methods (representative selection):
|
|
414
453
|
|
|
415
454
|
- **MarketClient** — `streamMarketOrders`, `streamMarketTypes`, `streamCharacterOrderHistory`, `streamCorporationOrders`, `streamCorporationOrderHistory`, `streamMarketOrdersInStructure`
|
|
455
|
+
- **CorporationsClient** — `streamCorporationMembers`, `streamCorporationStructures`, `streamCorporationBlueprints`, + 14 more
|
|
456
|
+
- **CharacterClient** — `streamCharacterBlueprints`, `streamCharacterNotifications`, `streamCharacterStandings`, + 5 more
|
|
416
457
|
- **ContractsClient** — `streamPublicContracts`, `streamCharacterContracts`, `streamCorporationContracts`
|
|
417
458
|
- **WalletClient** — `streamCharacterWalletJournal`, `streamCorporationWalletJournal`, `streamCharacterWalletTransactions`
|
|
459
|
+
- **IndustryClient** — `streamCorporationIndustryJobs`, `streamCorporationMiningObservers`, + 6 more
|
|
460
|
+
- **ContactsClient** — `streamAllianceContacts`, `streamCharacterContacts`, `streamCorporationContacts`, + 3 more
|
|
418
461
|
- **AssetsClient** — `streamCharacterAssets`, `streamCorporationAssets`
|
|
419
462
|
- **KillmailsClient** — `streamCharacterRecentKillmails`, `streamCorporationRecentKillmails`
|
|
463
|
+
- **MailClient** — `streamCharacterMail`, `streamCharacterMailLabels`
|
|
464
|
+
- **FleetsClient** — `streamFleetMembers`, `streamFleetWings`
|
|
465
|
+
- **CalendarClient** — `streamCalendarEvents`
|
|
466
|
+
- **FittingsClient** — `streamCharacterFittings`
|
|
467
|
+
- **SkillsClient** — `streamCharacterSkillQueue`
|
|
468
|
+
- **LoyaltyClient** — `streamCorporationLoyaltyStoreOffers`
|
|
469
|
+
- **BookmarksClient** — `streamCharacterBookmarks`, `streamCorporationBookmarks`
|
|
470
|
+
- **ClonesClient** — `streamCharacterImplants`
|
|
471
|
+
- **PIClient** — `streamCharacterPlanets`
|
|
472
|
+
- **WarsClient** — `streamWars`
|
|
473
|
+
- **FactionWarfareClient** — `streamFactionWarfareStats`
|
|
474
|
+
- **AllianceClient** — `streamAllianceCorporations`
|
|
420
475
|
|
|
421
476
|
Try it: `npm run example:streaming`
|
|
422
477
|
|
|
@@ -536,13 +591,16 @@ import {
|
|
|
536
591
|
isTimeout,
|
|
537
592
|
isRetryable,
|
|
538
593
|
isValidationError,
|
|
594
|
+
isCircuitOpen,
|
|
539
595
|
} from '@lgriffin/esi.ts';
|
|
540
596
|
|
|
541
597
|
try {
|
|
542
598
|
const alliance = await client.alliance.getAllianceById(99999999);
|
|
543
599
|
console.log('Alliance:', alliance.name);
|
|
544
600
|
} catch (err) {
|
|
545
|
-
if (
|
|
601
|
+
if (isCircuitOpen(err)) {
|
|
602
|
+
console.log('Circuit breaker is open — endpoint temporarily unavailable');
|
|
603
|
+
} else if (isValidationError(err)) {
|
|
546
604
|
console.log('Response validation failed:', err.validationError);
|
|
547
605
|
} else if (isTimeout(err)) {
|
|
548
606
|
console.log(`Request timed out after ${err.timeoutMs}ms`);
|
|
@@ -631,6 +689,8 @@ console.log(limiter.isBlocked('char-notification')); // true if 429'd
|
|
|
631
689
|
|
|
632
690
|
## Lightweight Clients
|
|
633
691
|
|
|
692
|
+
All three client creation patterns (`EsiClient`, `CustomEsiClient`, `EsiApiFactory`) now get identical middleware defaults (cache, request deduplication, rate limiter) thanks to `configureApiClient()`. Previously `CustomEsiClient` and `EsiApiFactory` only configured the rate limiter.
|
|
693
|
+
|
|
634
694
|
If you only need a subset of APIs, use `CustomEsiClient` or `EsiClientBuilder` to load only what you need:
|
|
635
695
|
|
|
636
696
|
```typescript
|
|
@@ -778,7 +838,7 @@ try {
|
|
|
778
838
|
|
|
779
839
|
## Testing
|
|
780
840
|
|
|
781
|
-
ESI.ts has a comprehensive multi-tier testing strategy:
|
|
841
|
+
ESI.ts has a comprehensive multi-tier testing strategy with 139 suites and 4,104 tests:
|
|
782
842
|
|
|
783
843
|
| Tier | Tests | Purpose |
|
|
784
844
|
| -------------------------- | ---------------- | ------------------------------------------------------------------ |
|
|
@@ -789,19 +849,24 @@ ESI.ts has a comprehensive multi-tier testing strategy:
|
|
|
789
849
|
| **ESI spec contract** | 15 tests | Endpoint definitions validated against live OpenAPI spec |
|
|
790
850
|
| **Deep contract tests** | 8 categories | Path params, query params, body, auth, schemas, pagination vs spec |
|
|
791
851
|
| **Property-based fuzzing** | 601 tests | fast-check fuzzing of validation, URL construction, Zod schemas |
|
|
852
|
+
| **Mutation testing** | Stryker | Validates test suite kills code mutants |
|
|
792
853
|
| **Type-level tests** | tsd | Consumer API type correctness via tsd |
|
|
793
854
|
| **Gated auth tests** | 33 tests | Authenticated endpoints with real tokens |
|
|
855
|
+
| **Construction parity** | Per-surface | Verifies all client surfaces get identical middleware defaults |
|
|
856
|
+
| **Spec-alignment** | Type assertions | Ensures hand-written types align with generated OpenAPI types |
|
|
794
857
|
|
|
795
858
|
```bash
|
|
796
|
-
npm test # Unit + BDD tests (
|
|
859
|
+
npm test # Unit + BDD tests (139 suites, 4,104 tests)
|
|
797
860
|
npm run coverage # Tests with coverage report (thresholds enforced)
|
|
798
861
|
npm run bdd # BDD scenario tests only
|
|
799
862
|
npm run contract # Contract tests (skipped without ESI_LIVE_TESTS=true)
|
|
800
863
|
npm run fuzz # Property-based fuzz tests (601 tests)
|
|
864
|
+
npm run mutation # Mutation testing (Stryker)
|
|
865
|
+
npm run benchmark # Performance benchmark tests
|
|
801
866
|
npm run test:types # tsd consumer type tests
|
|
802
867
|
```
|
|
803
868
|
|
|
804
|
-
Coverage
|
|
869
|
+
Coverage: statements 98.47%, branches 90.10%, functions 97.54%, lines 98.59%. Thresholds enforced in CI: branches 80%, functions 75%, lines 90%, statements 90%.
|
|
805
870
|
|
|
806
871
|
See [guides/TESTING.md](guides/TESTING.md) for the full testing guide, and [guides/ARCHITECTURE.md](guides/ARCHITECTURE.md) for architecture diagrams.
|
|
807
872
|
|
|
@@ -838,12 +903,14 @@ npm run format # Format code with Prettier
|
|
|
838
903
|
npm run format:check # Check formatting without modifying
|
|
839
904
|
|
|
840
905
|
# Testing
|
|
841
|
-
npm test # Unit tests (
|
|
906
|
+
npm test # Unit tests (139 suites, 4,104 tests)
|
|
842
907
|
npm run test:all # Unit + BDD + integration + fuzz + type tests
|
|
843
908
|
npm run coverage # Tests with coverage report (thresholds enforced)
|
|
844
909
|
npm run bdd # BDD scenario tests
|
|
845
910
|
npm run contract:live # Deep contract tests against live ESI spec
|
|
846
911
|
npm run fuzz # Property-based fuzz tests (fast-check)
|
|
912
|
+
npm run mutation # Mutation testing (Stryker)
|
|
913
|
+
npm run benchmark # Performance benchmark tests
|
|
847
914
|
npm run test:types # Consumer type tests (tsd)
|
|
848
915
|
npm run mock:esi # Start Prism mock ESI server on port 4010
|
|
849
916
|
|
|
@@ -851,8 +918,13 @@ npm run mock:esi # Start Prism mock ESI server on port 4010
|
|
|
851
918
|
npm run knip # Detect dead code and unused exports
|
|
852
919
|
npm run validate:esi # Validate endpoints against live ESI OpenAPI spec
|
|
853
920
|
npm run validate:spec # Lint ESI OpenAPI spec with Redocly (structural + best practices)
|
|
921
|
+
npm run validate:auth-scopes # Auth/scope cross-validation
|
|
922
|
+
npm run schema:drift # Schema drift detection (hand-written vs OpenAPI spec)
|
|
854
923
|
npm run validate # Run all checks: lint, format, build, coverage, knip
|
|
855
924
|
npm run generate:types # Regenerate TypeScript interfaces from ESI OpenAPI spec
|
|
925
|
+
npm run generate:endpoints # Regenerate endpoint definitions from ESI OpenAPI spec
|
|
926
|
+
npm run generate:all # Run all generators (types + endpoints + OKF)
|
|
927
|
+
npm run generate:okf # Generate OKF knowledge bundle from ESI OpenAPI spec
|
|
856
928
|
|
|
857
929
|
# Documentation
|
|
858
930
|
npm run docs # Generate TypeDoc API documentation
|
|
@@ -887,7 +959,11 @@ Every pull request runs the full validation suite:
|
|
|
887
959
|
- Generated types staleness check (regenerates from live ESI OpenAPI spec and verifies no diff)
|
|
888
960
|
- Unit tests across Node.js 18, 20, and 22
|
|
889
961
|
- BDD scenario tests
|
|
890
|
-
- Coverage threshold enforcement (branches:
|
|
962
|
+
- Coverage threshold enforcement (branches: 80%, functions: 75%, lines: 90%, statements: 90%)
|
|
963
|
+
- Auth/scopes cross-validation
|
|
964
|
+
- Spec-alignment type assertions
|
|
965
|
+
- Schema drift detection
|
|
966
|
+
- Mutation testing (Stryker)
|
|
891
967
|
- Dead code detection via knip
|
|
892
968
|
- npm security audit
|
|
893
969
|
|
package/dist/EsiClient.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { ETagCacheConfig } from './core/cache/ETagCacheManager';
|
|
|
39
39
|
import { CircuitBreakerConfig } from './core/circuitBreaker/CircuitBreaker';
|
|
40
40
|
import { RateLimiterConfig } from './core/rateLimiter/RateLimiter';
|
|
41
41
|
import { RetryConfig } from './core/util/retry';
|
|
42
|
+
import { IRetryStrategy } from './core/IRetryStrategy';
|
|
42
43
|
import { EsiDiagnostics } from './core/EsiDiagnostics';
|
|
43
44
|
import { BatchOptions, BatchResult } from './core/BatchRequestHandler';
|
|
44
45
|
export type EsiDatasource = 'tranquility' | 'singularity';
|
|
@@ -51,6 +52,7 @@ export interface EsiClientConfig {
|
|
|
51
52
|
timeout?: number;
|
|
52
53
|
retryAttempts?: number;
|
|
53
54
|
retryConfig?: RetryConfig;
|
|
55
|
+
retryStrategy?: IRetryStrategy;
|
|
54
56
|
enableETagCache?: boolean;
|
|
55
57
|
etagCacheConfig?: ETagCacheConfig;
|
|
56
58
|
enableCircuitBreaker?: boolean;
|
|
@@ -62,6 +64,7 @@ export interface EsiClientConfig {
|
|
|
62
64
|
requestInterceptors?: RequestInterceptor[];
|
|
63
65
|
responseInterceptors?: ResponseInterceptor[];
|
|
64
66
|
validateResponse?: boolean;
|
|
67
|
+
validateRequest?: boolean;
|
|
65
68
|
}
|
|
66
69
|
export declare class EsiClient {
|
|
67
70
|
private apiClient;
|
package/dist/EsiClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsiClient.d.ts","sourceRoot":"","sources":["../src/EsiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aA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AI,WAAW,IAAI,iBAAiB,CAEnC;IAED,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,IAAI;IAIzD,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,GAAG,MAAM,IAAI;IAI3D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKnC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAO3D,IAAI,WAAW,IAAI,cAAc,CAShC;IAED,aAAa;IAIb,UAAU,IAAI,IAAI;IAIlB,iBAAiB,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAI5D,sBAAsB;IAItB,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAItC,KAAK,CAAC,CAAC,EAAE,CAAC,EACd,IAAI,EAAE,CAAC,EAAE,EACT,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,EAC/B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAIvB,SAAS,CAAC,CAAC,EACf,GAAG,EAAE,MAAM,EAAE,EACb,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,EACzC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,CAAC,EAAE,CAAC;IAIf,QAAQ,IAAI,IAAI;CAejB;AAGD,wBAAgB,gBAAgB,IAAI,SAAS,CAK5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsiClientBuilder.d.ts","sourceRoot":"","sources":["../src/EsiClientBuilder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EsiClientBuilder.d.ts","sourceRoot":"","sources":["../src/EsiClientBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,cAAc,EAEd,c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,IAAI;IAKpC,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAK1C,KAAK,IAAI,eAAe;CAMzB"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { allianceEndpoints } from '../core/endpoints/allianceEndpoints';
|
|
4
4
|
import { AllianceInfo, AllianceContact, AllianceContactLabel, AllianceIcon } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class AllianceClient extends BaseEsiClient<typeof allianceEndpoints> {
|
|
6
7
|
private contactApi;
|
|
7
8
|
constructor(client: ApiClient);
|
|
@@ -50,5 +51,7 @@ export declare class AllianceClient extends BaseEsiClient<typeof allianceEndpoin
|
|
|
50
51
|
* @returns An array of all active alliance IDs
|
|
51
52
|
*/
|
|
52
53
|
getAlliances(): Promise<number[]>;
|
|
54
|
+
streamAlliances(): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
55
|
+
streamCorporations(allianceId: number): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
53
56
|
}
|
|
54
57
|
//# sourceMappingURL=AllianceClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllianceClient.d.ts","sourceRoot":"","sources":["../../src/clients/AllianceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EACL,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"AllianceClient.d.ts","sourceRoot":"","sources":["../../src/clients/AllianceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EACL,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAGxE,qBAAa,cAAe,SAAQ,aAAa,CAAC,OAAO,iBAAiB,CAAC;IACzE,OAAO,CAAC,UAAU,CAA2D;gBAEjE,MAAM,EAAE,SAAS;IAK7B;;;;;OAKG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI1D;;;;;;;OAOG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAW3D;;;;;;;OAOG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IASrE;;;;;OAKG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAItD;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAInD;;;;OAIG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIjC,eAAe,IAAI,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAItE,kBAAkB,CAChB,UAAU,EAAE,MAAM,GACjB,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAGvD"}
|
|
@@ -10,7 +10,7 @@ export declare abstract class BaseEsiClient<T extends EndpointMap> {
|
|
|
10
10
|
private _metaApi?;
|
|
11
11
|
private _safeApi?;
|
|
12
12
|
constructor(client: ApiClient, endpoints: T);
|
|
13
|
-
|
|
13
|
+
streamEndpoint<R>(endpointName: string & keyof T, ...args: unknown[]): AsyncGenerator<PageResult<R>, void, undefined>;
|
|
14
14
|
withMetadata(): WithMetadata<Omit<this, 'withMetadata' | 'withSafeMode'>>;
|
|
15
15
|
withSafeMode(): WithSafeMode<Omit<this, 'withMetadata' | 'withSafeMode'>>;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseEsiClient.d.ts","sourceRoot":"","sources":["../../src/clients/BaseEsiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,YAAY,EAEZ,YAAY,EACZ,YAAY,EACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAEL,UAAU,EACX,MAAM,4CAA4C,CAAC;AAEpD,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,8BAAsB,aAAa,CAAC,CAAC,SAAS,WAAW;IACvD,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;IAC7B,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,CAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,CAAmB;gBAExB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseEsiClient.d.ts","sourceRoot":"","sources":["../../src/clients/BaseEsiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,YAAY,EAEZ,YAAY,EACZ,YAAY,EACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAEL,UAAU,EACX,MAAM,4CAA4C,CAAC;AAEpD,KAAK,aAAa,CAAC,CAAC,SAAS,WAAW,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,8BAAsB,aAAa,CAAC,CAAC,SAAS,WAAW;IACvD,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;IAC7B,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,CAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,CAAmB;gBAExB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IAMpC,cAAc,CAAC,CAAC,EACrB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,EAC9B,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAkBjD,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc,CAAC,CAAC;IAWzE,YAAY,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc,CAAC,CAAC;CAU1E"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { calendarEndpoints } from '../core/endpoints/calendarEndpoints';
|
|
4
4
|
import { CalendarEvent, CalendarEventDetail, CalendarEventAttendee } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class CalendarClient extends BaseEsiClient<typeof calendarEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -39,5 +40,7 @@ export declare class CalendarClient extends BaseEsiClient<typeof calendarEndpoin
|
|
|
39
40
|
* @requires Authentication
|
|
40
41
|
*/
|
|
41
42
|
getEventAttendees(characterId: number, eventId: number): Promise<CalendarEventAttendee[]>;
|
|
43
|
+
streamCalendarEvents(characterId: number): AsyncGenerator<PageResult<CalendarEvent>, void, undefined>;
|
|
44
|
+
streamEventAttendees(characterId: number, eventId: number): AsyncGenerator<PageResult<CalendarEventAttendee>, void, undefined>;
|
|
42
45
|
}
|
|
43
46
|
//# sourceMappingURL=CalendarClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarClient.d.ts","sourceRoot":"","sources":["../../src/clients/CalendarClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarClient.d.ts","sourceRoot":"","sources":["../../src/clients/CalendarClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,qBAAa,cAAe,SAAQ,aAAa,CAAC,OAAO,iBAAiB,CAAC;gBAC7D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAIhE;;;;;;;OAOG;IACH,oBAAoB,CAClB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,CAAC;IAI/B;;;;;;;OAOG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;;OAOG;IACH,iBAAiB,CACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAInC,oBAAoB,CAClB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAI7D,oBAAoB,CAClB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,cAAc,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAOtE"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { characterEndpoints } from '../core/endpoints/characterEndpoints';
|
|
4
4
|
import { CharacterInfo, CharacterPortrait, AgentResearch, Blueprint, CorporationHistory, JumpFatigue, Medal, Notification, Standing, CharacterTitle, CharacterAffiliation, CharacterRole } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class CharacterClient extends BaseEsiClient<typeof characterEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -28,11 +29,10 @@ export declare class CharacterClient extends BaseEsiClient<typeof characterEndpo
|
|
|
28
29
|
*/
|
|
29
30
|
getCharacterBlueprints(characterId: number): Promise<Blueprint[]>;
|
|
30
31
|
/**
|
|
31
|
-
* Retrieve the corporation membership history of a character.
|
|
32
|
+
* Retrieve the corporation membership history of a character (public endpoint).
|
|
32
33
|
*
|
|
33
34
|
* @param characterId - The ID of the character whose corporation history to retrieve
|
|
34
35
|
* @returns A chronological list of corporations the character has been a member of
|
|
35
|
-
* @requires Authentication
|
|
36
36
|
*/
|
|
37
37
|
getCharacterCorporationHistory(characterId: number): Promise<CorporationHistory[]>;
|
|
38
38
|
/**
|
|
@@ -114,5 +114,13 @@ export declare class CharacterClient extends BaseEsiClient<typeof characterEndpo
|
|
|
114
114
|
* @returns Affiliation data including corporation, alliance, and faction IDs for each character
|
|
115
115
|
*/
|
|
116
116
|
postCharacterAffiliation(characters: number[]): Promise<CharacterAffiliation[]>;
|
|
117
|
+
streamCharacterAgentsResearch(characterId: number): AsyncGenerator<PageResult<AgentResearch>, void, undefined>;
|
|
118
|
+
streamCharacterBlueprints(characterId: number): AsyncGenerator<PageResult<Blueprint>, void, undefined>;
|
|
119
|
+
streamCharacterCorporationHistory(characterId: number): AsyncGenerator<PageResult<CorporationHistory>, void, undefined>;
|
|
120
|
+
streamCharacterMedals(characterId: number): AsyncGenerator<PageResult<Medal>, void, undefined>;
|
|
121
|
+
streamCharacterNotifications(characterId: number): AsyncGenerator<PageResult<Notification>, void, undefined>;
|
|
122
|
+
streamCharacterNotificationsContacts(characterId: number): AsyncGenerator<PageResult<Notification>, void, undefined>;
|
|
123
|
+
streamCharacterStandings(characterId: number): AsyncGenerator<PageResult<Standing>, void, undefined>;
|
|
124
|
+
streamCharacterTitles(characterId: number): AsyncGenerator<PageResult<CharacterTitle>, void, undefined>;
|
|
117
125
|
}
|
|
118
126
|
//# sourceMappingURL=CharacterClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterClient.d.ts","sourceRoot":"","sources":["../../src/clients/CharacterClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACh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nB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAIrD,4BAA4B,CAC1B,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAI5D,oCAAoC,CAClC,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAO5D,wBAAwB,CACtB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAIxD,qBAAqB,CACnB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAG/D"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { cloneEndpoints } from '../core/endpoints/cloneEndpoints';
|
|
4
4
|
import { CloneInfo } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class ClonesClient extends BaseEsiClient<typeof cloneEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -20,5 +21,6 @@ export declare class ClonesClient extends BaseEsiClient<typeof cloneEndpoints> {
|
|
|
20
21
|
* @requires Authentication
|
|
21
22
|
*/
|
|
22
23
|
getImplants(characterId: number): Promise<number[]>;
|
|
24
|
+
streamImplants(characterId: number): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
23
25
|
}
|
|
24
26
|
//# sourceMappingURL=ClonesClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClonesClient.d.ts","sourceRoot":"","sources":["../../src/clients/ClonesClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ClonesClient.d.ts","sourceRoot":"","sources":["../../src/clients/ClonesClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,qBAAa,YAAa,SAAQ,aAAa,CAAC,OAAO,cAAc,CAAC;gBACxD,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIlD;;;;;;OAMG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAInD,cAAc,CACZ,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAGvD"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { contactEndpoints } from '../core/endpoints/contactEndpoints';
|
|
4
4
|
import { Contact, ContactLabel } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class ContactsClient extends BaseEsiClient<typeof contactEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -79,5 +80,11 @@ export declare class ContactsClient extends BaseEsiClient<typeof contactEndpoint
|
|
|
79
80
|
* @requires Authentication
|
|
80
81
|
*/
|
|
81
82
|
getCorporationContactLabels(corporationId: number): Promise<ContactLabel[]>;
|
|
83
|
+
streamAllianceContacts(allianceId: number): AsyncGenerator<PageResult<Contact>, void, undefined>;
|
|
84
|
+
streamAllianceContactLabels(allianceId: number): AsyncGenerator<PageResult<ContactLabel>, void, undefined>;
|
|
85
|
+
streamCharacterContacts(characterId: number): AsyncGenerator<PageResult<Contact>, void, undefined>;
|
|
86
|
+
streamCharacterContactLabels(characterId: number): AsyncGenerator<PageResult<ContactLabel>, void, undefined>;
|
|
87
|
+
streamCorporationContacts(corporationId: number): AsyncGenerator<PageResult<Contact>, void, undefined>;
|
|
88
|
+
streamCorporationContactLabels(corporationId: number): AsyncGenerator<PageResult<ContactLabel>, void, undefined>;
|
|
82
89
|
}
|
|
83
90
|
//# sourceMappingURL=ContactsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsClient.d.ts","sourceRoot":"","sources":["../../src/clients/ContactsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactsClient.d.ts","sourceRoot":"","sources":["../../src/clients/ContactsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,OA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,IAAI,EAAE,SAAS,CAAC;IAIvD,2BAA2B,CACzB,UAAU,EAAE,MAAM,GACjB,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAO5D,uBAAuB,CACrB,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAIvD,4BAA4B,CAC1B,WAAW,EAAE,MAAM,GAClB,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAO5D,yBAAyB,CACvB,aAAa,EAAE,MAAM,GACpB,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;IAOvD,8BAA8B,CAC5B,aAAa,EAAE,MAAM,GACpB,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC;CAM7D"}
|
|
@@ -2,6 +2,7 @@ import { ApiClient } from '../core/ApiClient';
|
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { corporationEndpoints } from '../core/endpoints/corporationEndpoints';
|
|
4
4
|
import { Blueprint, CorporationInfo, CorporationAllianceHistory, CorporationDivisions, CorporationFacility, CorporationIssuedMedal, CorporationMedal, CorporationMemberRole, CorporationMemberTitle, CorporationMemberTracking, CorporationRoleHistory, CorporationShareholder, CorporationStarbase, CorporationStarbaseDetail, CorporationStructure, CorporationTitle, ContainerLog, Standing } from '../types/api-responses';
|
|
5
|
+
import { PageResult } from '../core/pagination/AsyncPaginationIterator';
|
|
5
6
|
export declare class CorporationsClient extends BaseEsiClient<typeof corporationEndpoints> {
|
|
6
7
|
constructor(client: ApiClient);
|
|
7
8
|
/**
|
|
@@ -180,5 +181,22 @@ export declare class CorporationsClient extends BaseEsiClient<typeof corporation
|
|
|
180
181
|
* @returns An array of NPC corporation IDs
|
|
181
182
|
*/
|
|
182
183
|
getNpcCorporations(): Promise<number[]>;
|
|
184
|
+
streamCorporationAllianceHistory(corporationId: number): AsyncGenerator<PageResult<CorporationAllianceHistory>, void, undefined>;
|
|
185
|
+
streamCorporationBlueprints(corporationId: number): AsyncGenerator<PageResult<Blueprint>, void, undefined>;
|
|
186
|
+
streamCorporationAlscLogs(corporationId: number): AsyncGenerator<PageResult<ContainerLog>, void, undefined>;
|
|
187
|
+
streamCorporationFacilities(corporationId: number): AsyncGenerator<PageResult<CorporationFacility>, void, undefined>;
|
|
188
|
+
streamCorporationMedals(corporationId: number): AsyncGenerator<PageResult<CorporationMedal>, void, undefined>;
|
|
189
|
+
streamCorporationIssuedMedals(corporationId: number): AsyncGenerator<PageResult<CorporationIssuedMedal>, void, undefined>;
|
|
190
|
+
streamCorporationMembers(corporationId: number): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
191
|
+
streamCorporationMemberTitles(corporationId: number): AsyncGenerator<PageResult<CorporationMemberTitle>, void, undefined>;
|
|
192
|
+
streamCorporationMemberTracking(corporationId: number): AsyncGenerator<PageResult<CorporationMemberTracking>, void, undefined>;
|
|
193
|
+
streamCorporationRoles(corporationId: number): AsyncGenerator<PageResult<CorporationMemberRole>, void, undefined>;
|
|
194
|
+
streamCorporationRolesHistory(corporationId: number): AsyncGenerator<PageResult<CorporationRoleHistory>, void, undefined>;
|
|
195
|
+
streamCorporationShareholders(corporationId: number): AsyncGenerator<PageResult<CorporationShareholder>, void, undefined>;
|
|
196
|
+
streamCorporationStandings(corporationId: number): AsyncGenerator<PageResult<Standing>, void, undefined>;
|
|
197
|
+
streamCorporationStarbases(corporationId: number): AsyncGenerator<PageResult<CorporationStarbase>, void, undefined>;
|
|
198
|
+
streamCorporationStructures(corporationId: number): AsyncGenerator<PageResult<CorporationStructure>, void, undefined>;
|
|
199
|
+
streamCorporationTitles(corporationId: number): AsyncGenerator<PageResult<CorporationTitle>, void, undefined>;
|
|
200
|
+
streamNpcCorporations(): AsyncGenerator<PageResult<number>, void, undefined>;
|
|
183
201
|
}
|
|
184
202
|
//# sourceMappingURL=CorporationsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporationsClient.d.ts","sourceRoot":"","sources":["../../src/clients/CorporationsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EACL,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACT,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CorporationsClient.d.ts","sourceRoot":"","sources":["../../src/clients/CorporationsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EACL,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,qBAAa,kBAAmB,SAAQ,aAA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