@lgriffin/esi.ts 9.0.0 → 9.4.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 +18 -0
- package/README.md +82 -50
- package/dist/EsiClient.d.ts +5 -0
- package/dist/EsiClient.d.ts.map +1 -1
- package/dist/EsiClientBuilder.d.ts.map +1 -1
- package/dist/clients/AccessListsClient.d.ts +11 -1
- package/dist/clients/AccessListsClient.d.ts.map +1 -1
- package/dist/clients/CorporationProjectsClient.d.ts +44 -0
- package/dist/clients/CorporationProjectsClient.d.ts.map +1 -0
- package/dist/clients/MercenaryClient.d.ts +6 -2
- package/dist/clients/MercenaryClient.d.ts.map +1 -1
- package/dist/clients/MetaClient.d.ts +25 -0
- package/dist/clients/MetaClient.d.ts.map +1 -1
- package/dist/clients/MilitaryCampaignsClient.d.ts +53 -0
- package/dist/clients/MilitaryCampaignsClient.d.ts.map +1 -0
- package/dist/clients/SkyhooksClient.d.ts +6 -2
- package/dist/clients/SkyhooksClient.d.ts.map +1 -1
- package/dist/core/ApiClient.d.ts +3 -0
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ClientRegistry.d.ts +5 -3
- package/dist/core/ClientRegistry.d.ts.map +1 -1
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/endpoints/accessListEndpoints.d.ts +27 -18
- package/dist/core/endpoints/accessListEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/assetEndpoints.d.ts +2 -12
- package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/calendarEndpoints.d.ts +3 -19
- package/dist/core/endpoints/calendarEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/characterEndpoints.d.ts +4 -20
- package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/cloneEndpoints.d.ts +2 -8
- package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/contactEndpoints.d.ts +3 -18
- package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/contractEndpoints.d.ts +9 -75
- package/dist/core/endpoints/contractEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationEndpoints.d.ts +7 -36
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationProjectEndpoints.d.ts +50 -0
- package/dist/core/endpoints/corporationProjectEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/factionEndpoints.d.ts +1 -6
- package/dist/core/endpoints/factionEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/fleetEndpoints.d.ts +2 -12
- package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/incursionEndpoints.d.ts +1 -5
- package/dist/core/endpoints/incursionEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/industryEndpoints.d.ts +5 -19
- package/dist/core/endpoints/industryEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mailEndpoints.d.ts +2 -12
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/marketEndpoints.d.ts +2 -8
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mercenaryEndpoints.d.ts +7 -10
- package/dist/core/endpoints/mercenaryEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/metaEndpoints.d.ts +36 -0
- package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/militaryCampaignEndpoints.d.ts +87 -0
- package/dist/core/endpoints/militaryCampaignEndpoints.d.ts.map +1 -0
- package/dist/core/endpoints/piEndpoints.d.ts +1 -10
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/skyhookEndpoints.d.ts +7 -5
- package/dist/core/endpoints/skyhookEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts +1 -6
- package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.d.ts +1 -11
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2047 -1616
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2045 -1616
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/access-lists.d.ts +4 -18
- package/dist/schemas/access-lists.d.ts.map +1 -1
- package/dist/schemas/alliance.d.ts +1 -5
- package/dist/schemas/alliance.d.ts.map +1 -1
- package/dist/schemas/assets.d.ts +1 -6
- package/dist/schemas/assets.d.ts.map +1 -1
- package/dist/schemas/calendar.d.ts +3 -19
- package/dist/schemas/calendar.d.ts.map +1 -1
- package/dist/schemas/character.d.ts +3 -15
- package/dist/schemas/character.d.ts.map +1 -1
- package/dist/schemas/clones.d.ts +2 -8
- package/dist/schemas/clones.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +1 -5
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/contacts.d.ts +1 -6
- package/dist/schemas/contacts.d.ts.map +1 -1
- package/dist/schemas/contracts.d.ts +3 -25
- package/dist/schemas/contracts.d.ts.map +1 -1
- package/dist/schemas/corporation-projects.d.ts +17 -0
- package/dist/schemas/corporation-projects.d.ts.map +1 -0
- package/dist/schemas/corporation.d.ts +6 -31
- package/dist/schemas/corporation.d.ts.map +1 -1
- package/dist/schemas/esiEnum.d.ts +3 -0
- package/dist/schemas/esiEnum.d.ts.map +1 -0
- package/dist/schemas/faction-warfare.d.ts +1 -6
- package/dist/schemas/faction-warfare.d.ts.map +1 -1
- package/dist/schemas/fleet.d.ts +2 -12
- package/dist/schemas/fleet.d.ts.map +1 -1
- package/dist/schemas/incursions.d.ts +1 -5
- package/dist/schemas/incursions.d.ts.map +1 -1
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1552 -1434
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +1540 -1434
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/schemas/industry.d.ts +1 -8
- package/dist/schemas/industry.d.ts.map +1 -1
- package/dist/schemas/mail.d.ts +1 -6
- package/dist/schemas/mail.d.ts.map +1 -1
- package/dist/schemas/market.d.ts +2 -8
- package/dist/schemas/market.d.ts.map +1 -1
- package/dist/schemas/mercenary.d.ts +1 -6
- package/dist/schemas/mercenary.d.ts.map +1 -1
- package/dist/schemas/meta.d.ts +25 -0
- package/dist/schemas/meta.d.ts.map +1 -0
- package/dist/schemas/military-campaigns.d.ts +26 -0
- package/dist/schemas/military-campaigns.d.ts.map +1 -0
- package/dist/schemas/pi.d.ts +1 -10
- package/dist/schemas/pi.d.ts.map +1 -1
- package/dist/schemas/sovereignty.d.ts +1 -6
- package/dist/schemas/sovereignty.d.ts.map +1 -1
- package/dist/schemas/universe.d.ts +1 -11
- package/dist/schemas/universe.d.ts.map +1 -1
- package/dist/sde/IStaticDataProvider.d.ts +106 -0
- package/dist/sde/IStaticDataProvider.d.ts.map +1 -0
- package/dist/sde/MemorySdeProvider.d.ts +167 -0
- package/dist/sde/MemorySdeProvider.d.ts.map +1 -0
- package/dist/sde/SdeDataProvider.d.ts +119 -0
- package/dist/sde/SdeDataProvider.d.ts.map +1 -0
- package/dist/sde/SdeTestDataFactory.d.ts +33 -0
- package/dist/sde/SdeTestDataFactory.d.ts.map +1 -0
- package/dist/sde/errors.d.ts +23 -0
- package/dist/sde/errors.d.ts.map +1 -0
- package/dist/sde/index.d.ts +9 -0
- package/dist/sde/index.d.ts.map +1 -0
- package/dist/sde/index.js +7684 -0
- package/dist/sde/index.js.map +1 -0
- package/dist/sde/index.mjs +7666 -0
- package/dist/sde/index.mjs.map +1 -0
- package/dist/sde/ingestion/SdeDatabaseBuilder.d.ts +18 -0
- package/dist/sde/ingestion/SdeDatabaseBuilder.d.ts.map +1 -0
- package/dist/sde/ingestion/SdeDownloader.d.ts +14 -0
- package/dist/sde/ingestion/SdeDownloader.d.ts.map +1 -0
- package/dist/sde/ingestion/SdeExtractor.d.ts +18 -0
- package/dist/sde/ingestion/SdeExtractor.d.ts.map +1 -0
- package/dist/sde/ingestion/constants.d.ts +13 -0
- package/dist/sde/ingestion/constants.d.ts.map +1 -0
- package/dist/sde/ingestion/index.d.ts +10 -0
- package/dist/sde/ingestion/index.d.ts.map +1 -0
- package/dist/sde/ingestion/transforms.d.ts +13 -0
- package/dist/sde/ingestion/transforms.d.ts.map +1 -0
- package/dist/sde/schemas.d.ts +1121 -0
- package/dist/sde/schemas.d.ts.map +1 -0
- package/dist/sde/types.d.ts +1039 -0
- package/dist/sde/types.d.ts.map +1 -0
- package/dist/sde/version.d.ts +7 -0
- package/dist/sde/version.d.ts.map +1 -0
- package/dist/testing/TestDataFactory.d.ts +1 -1
- package/dist/types/api-responses.d.ts +3 -0
- package/dist/types/api-responses.d.ts.map +1 -1
- package/dist/types/corporation-projects.d.ts +6 -0
- package/dist/types/corporation-projects.d.ts.map +1 -0
- package/dist/types/meta.d.ts +8 -0
- package/dist/types/meta.d.ts.map +1 -0
- package/dist/types/military-campaigns.d.ts +6 -0
- package/dist/types/military-campaigns.d.ts.map +1 -0
- package/package.json +34 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ 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.1.0] - 2026-08-14
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Schema rejection tests** — 104 new tests verifying Zod schemas correctly reject invalid input shapes
|
|
13
|
+
- **Domain property fuzz tests** — property-based fuzz testing across domain clients using fast-check
|
|
14
|
+
- **Schema validation benchmarks** — performance benchmarks for Zod schema validation paths
|
|
15
|
+
- **Domain response type tests** — compile-time type tests for domain client response types via tsd
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Expanded documentation** — updated examples, architecture guide, and testing guide with broader coverage
|
|
20
|
+
- **README refreshed** — updated feature descriptions and endpoint counts
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Fuzz test date handling** — switched to integer-based date arbitrary to avoid invalid `Date` values in property-based tests
|
|
25
|
+
|
|
8
26
|
## [9.0.0] - 2026-08-12
|
|
9
27
|
|
|
10
28
|
### Breaking Changes
|
package/README.md
CHANGED
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
[](https://github.com/lgriffin/ESI.ts/actions/workflows/ci.yml)
|
|
7
7
|
[](https://github.com/lgriffin/ESI.ts)
|
|
8
8
|
[](https://www.npmjs.com/package/@lgriffin/esi.ts)
|
|
9
|
+
[](https://scorecard.dev/viewer/?uri=github.com/lgriffin/ESI.ts)
|
|
9
10
|
|
|
10
11
|
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.
|
|
11
12
|
|
|
12
|
-
**v9.
|
|
13
|
+
**v9.1.0** — Expanded test pyramid (schema rejection, domain fuzz, benchmark, type tests), updated documentation and examples, fuzz test date handling fix.
|
|
13
14
|
|
|
14
|
-
**
|
|
15
|
+
**223 endpoint definitions — 194 from the public ESI OpenAPI spec, plus 29 for newer EVE features (Equinox sovereignty, orbital skyhooks, mercenary dens, access lists, freelance jobs, military campaigns, corporation projects). All 221 exercisable endpoints validated against live Tranquility on 2026-08-14.**
|
|
15
16
|
|
|
16
17
|
## Why ESI.ts vs. OpenAPI-Generated Clients?
|
|
17
18
|
|
|
@@ -34,9 +35,9 @@ Tools like `openapi-typescript` or `openapi-generator` can produce a typed clien
|
|
|
34
35
|
| **Retry & resilience** | None. | Exponential backoff with jitter, circuit breaker (closed/open/half-open), automatic 401 token refresh with concurrent coalescing. |
|
|
35
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. |
|
|
36
37
|
| **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. |
|
|
38
|
+
| **Domain knowledge** | None — generic HTTP client. | 37 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
39
|
| **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. |
|
|
40
|
+
| **Testing** | Whatever you write. | 143 test suites, 4,182 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). 46 runnable example scripts. |
|
|
40
41
|
|
|
41
42
|
### The real problem with generated clients
|
|
42
43
|
|
|
@@ -73,7 +74,7 @@ Verify everything works:
|
|
|
73
74
|
|
|
74
75
|
```bash
|
|
75
76
|
npm run example:status # quick smoke test — checks ESI is reachable
|
|
76
|
-
npm test # run the full test suite (
|
|
77
|
+
npm test # run the full test suite (143 suites, 4,182 tests)
|
|
77
78
|
```
|
|
78
79
|
|
|
79
80
|
## Sub-path Exports
|
|
@@ -91,6 +92,35 @@ import { EsiError, isCircuitOpen } from '@lgriffin/esi.ts/errors';
|
|
|
91
92
|
import { TestDataFactory } from '@lgriffin/esi.ts/testing';
|
|
92
93
|
```
|
|
93
94
|
|
|
95
|
+
## Static Data Export (SDE) Module
|
|
96
|
+
|
|
97
|
+
ESI.ts includes a standalone module for querying CCP's EVE Online Static Data Export — 102 YAML files loaded into in-memory Maps with 109 typed interfaces, Zod validation, and ~97 query methods. No database, no external services.
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
import { SdeDataProvider } from '@lgriffin/esi.ts/sde';
|
|
101
|
+
|
|
102
|
+
const sde = SdeDataProvider.fromDirectory('./sde-data');
|
|
103
|
+
|
|
104
|
+
const tritanium = sde.getType(34);
|
|
105
|
+
console.log(tritanium?.name); // "Tritanium"
|
|
106
|
+
|
|
107
|
+
const jita = sde.getSolarSystem(30000142);
|
|
108
|
+
const minerals = sde.getTypesByGroup(18);
|
|
109
|
+
const caldari = sde.getFaction(500001);
|
|
110
|
+
|
|
111
|
+
sde.close();
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Download SDE data with: `npx ts-node scripts/sde-ingest.ts --output sde-data`
|
|
115
|
+
|
|
116
|
+
| Document | Description |
|
|
117
|
+
| -------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
118
|
+
| [SDE README](src/sde/README.md) | Module overview, quick start, full API reference (~97 methods), entity coverage table |
|
|
119
|
+
| [Architecture](src/sde/docs/ARCHITECTURE.md) | C4 diagrams (context, container, component), data flow sequence, ER diagram, design decisions |
|
|
120
|
+
| [Usage Guide](src/sde/docs/USAGE.md) | Provider patterns, query examples, error handling |
|
|
121
|
+
| [Developer Guide](src/sde/docs/DEVELOPER_GUIDE.md) | Project structure, new entity checklist, field normalization, testing patterns |
|
|
122
|
+
| [API Contracts](src/sde/docs/API_CONTRACTS.md) | Complete method reference for all IStaticDataProvider methods |
|
|
123
|
+
|
|
94
124
|
## Quick Start
|
|
95
125
|
|
|
96
126
|
```typescript
|
|
@@ -257,43 +287,45 @@ Key behaviors:
|
|
|
257
287
|
|
|
258
288
|
All clients are accessed as properties on the `EsiClient` instance. Authenticated endpoints require an access token.
|
|
259
289
|
|
|
260
|
-
| Client
|
|
261
|
-
|
|
|
262
|
-
| Alliance
|
|
263
|
-
| Assets
|
|
264
|
-
| Calendar
|
|
265
|
-
| Characters
|
|
266
|
-
| Clones
|
|
267
|
-
| Contacts
|
|
268
|
-
| Contracts
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
|
|
|
279
|
-
|
|
|
280
|
-
|
|
|
281
|
-
|
|
|
282
|
-
|
|
|
283
|
-
|
|
|
284
|
-
|
|
|
285
|
-
|
|
|
286
|
-
|
|
|
287
|
-
|
|
|
288
|
-
|
|
|
289
|
-
|
|
|
290
|
-
|
|
|
291
|
-
|
|
|
292
|
-
|
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
|
|
|
296
|
-
|
|
|
290
|
+
| Client | Property | Auth | Examples |
|
|
291
|
+
| ------------------ | ---------------------------- | ---- | -------------------------------------------------------------------------------- |
|
|
292
|
+
| Alliance | `client.alliance` | Some | `getAlliances()`, `getAllianceById(id)` |
|
|
293
|
+
| Assets | `client.assets` | Yes | `getCharacterAssets(id)` |
|
|
294
|
+
| Calendar | `client.calendar` | Yes | `getCalendarEvents(id)` |
|
|
295
|
+
| Characters | `client.characters` | Some | `getCharacterPublicInfo(id)`, `getCharacterPortrait(id)` |
|
|
296
|
+
| Clones | `client.clones` | Yes | `getCharacterClones(id)` |
|
|
297
|
+
| Contacts | `client.contacts` | Yes | `getCharacterContacts(id)`, `postCharacterContacts(id, standing, contactIds)` |
|
|
298
|
+
| Contracts | `client.contracts` | Yes | `getCharacterContracts(id)` |
|
|
299
|
+
| Corp Projects | `client.corporationProjects` | Yes | `getCorporationProjects(corpId)`, `getCorporationProject(corpId, projectId)` |
|
|
300
|
+
| Corporations | `client.corporations` | Some | `getCorporationInfo(id)`, `getCorporationMembers(id)` |
|
|
301
|
+
| Dogma | `client.dogma` | No | `getDogmaAttributes()`, `getDynamicItemInfo(typeId, itemId)` |
|
|
302
|
+
| Factions | `client.factions` | Some | `getFactionWarStats()` |
|
|
303
|
+
| Fittings | `client.fittings` | Yes | `getFittings(id)`, `createFitting(id, body)` |
|
|
304
|
+
| Fleets | `client.fleets` | Yes | `getFleetInformation(id)`, `getFleetMembers(id)` |
|
|
305
|
+
| Incursions | `client.incursions` | No | `getIncursions()` |
|
|
306
|
+
| Industry | `client.industry` | Some | `getCharacterIndustryJobs(id)` |
|
|
307
|
+
| Insurance | `client.insurance` | No | `getInsurancePrices()` |
|
|
308
|
+
| Killmails | `client.killmails` | Some | `getKillmail(id, hash)` |
|
|
309
|
+
| Location | `client.location` | Yes | `getCharacterLocation(id)` |
|
|
310
|
+
| Loyalty | `client.loyalty` | Yes | `getCharacterLoyaltyPoints(id)` |
|
|
311
|
+
| Mail | `client.mail` | Yes | `getCharacterMail(id)`, `sendMail(id, body)` |
|
|
312
|
+
| Market | `client.market` | Some | `getMarketPrices()`, `getMarketOrders(regionId)` |
|
|
313
|
+
| Military Campaigns | `client.militaryCampaigns` | Some | `getMilitaryCampaigns()`, `getMilitaryCampaignById(id)` |
|
|
314
|
+
| PI | `client.pi` | Yes | `getCharacterPlanets(id)` |
|
|
315
|
+
| Route | `client.route` | No | `getRoute(origin, destination)` |
|
|
316
|
+
| Search | `client.search` | Some | `search(characterId, query)` |
|
|
317
|
+
| Skills | `client.skills` | Yes | `getCharacterSkills(id)` |
|
|
318
|
+
| Sovereignty | `client.sovereignty` | No | `getSovereigntySystems()`, `getSovereigntyMap()` |
|
|
319
|
+
| Skyhooks | `client.skyhooks` | No | `getSovereigntyHubs()`, `getRaidableSkyhooks()` |
|
|
320
|
+
| Mercenary | `client.mercenary` | No | `getMercenaryDens()`, `getMercenaryTacticalOperations()` |
|
|
321
|
+
| Access Lists | `client.accessLists` | Yes | `getAccessList(id)` |
|
|
322
|
+
| Status | `client.status` | No | `getStatus()` |
|
|
323
|
+
| UI | `client.ui` | Yes | `setAutopilotWaypoint(destId, addToBeginning, clear)`, `openNewMailWindow(body)` |
|
|
324
|
+
| Universe | `client.universe` | Some | `getSystemById(id)`, `getTypeById(id)` |
|
|
325
|
+
| Wallet | `client.wallet` | Yes | `getCharacterWallet(id)` |
|
|
326
|
+
| Wars | `client.wars` | No | `getWars()`, `getWarById(id)` |
|
|
327
|
+
| Freelance Jobs | `client.freelanceJobs` | Some | `getFreelanceJobs()`, `getFreelanceJobById(id)` |
|
|
328
|
+
| Meta | `client.meta` | No | `getOpenApiJson()`, `getOpenApiYaml()` |
|
|
297
329
|
|
|
298
330
|
## Runtime Response Validation
|
|
299
331
|
|
|
@@ -719,11 +751,11 @@ const prices = await marketClient.getMarketPrices();
|
|
|
719
751
|
|
|
720
752
|
## Endpoint Coverage
|
|
721
753
|
|
|
722
|
-
All
|
|
754
|
+
All 223 endpoint definitions have been validated against live Tranquility using the **OpenAPI 3.1 spec** — 194 from the public ESI spec plus 29 for newer EVE features. 221 endpoints are exercisable (2 mercenary den endpoints await CCP deployment). Full output is captured in [`openapi.output.md`](openapi.output.md).
|
|
723
755
|
|
|
724
756
|
| Category | Endpoints | Method |
|
|
725
757
|
| --------------------------- | --------- | -------------------------------------------------- |
|
|
726
|
-
| Public GETs | 78 |
|
|
758
|
+
| Public GETs | 78 | 46 runnable example scripts with captured output |
|
|
727
759
|
| Authenticated GETs | 72 | Example scripts + live testing with EVE SSO tokens |
|
|
728
760
|
| Contacts (POST/PUT/DELETE) | 3 | Live create/edit/delete lifecycle |
|
|
729
761
|
| Fittings (POST/DELETE) | 2 | Live create/delete lifecycle |
|
|
@@ -739,7 +771,7 @@ All 208 endpoint definitions have been validated against live Tranquility using
|
|
|
739
771
|
|
|
740
772
|
## Examples
|
|
741
773
|
|
|
742
|
-
|
|
774
|
+
46 runnable examples are in the `examples/` directory.
|
|
743
775
|
|
|
744
776
|
### Public Endpoints (no auth needed)
|
|
745
777
|
|
|
@@ -842,10 +874,10 @@ ESI.ts has a comprehensive multi-tier testing strategy with 139 suites and 4,104
|
|
|
842
874
|
|
|
843
875
|
| Tier | Tests | Purpose |
|
|
844
876
|
| -------------------------- | ---------------- | ------------------------------------------------------------------ |
|
|
845
|
-
| **TDD unit tests** |
|
|
846
|
-
| **BDD scenario tests** |
|
|
877
|
+
| **TDD unit tests** | 100 files | Every client method, endpoint path, query param, and body format |
|
|
878
|
+
| **BDD scenario tests** | 41 feature files | Behavioral specifications in Gherkin (Given/When/Then) |
|
|
847
879
|
| **Mocked integration** | Full suite | Cross-layer request flow with jest-fetch-mock |
|
|
848
|
-
| **Live smoke tests** |
|
|
880
|
+
| **Live smoke tests** | 46 examples | Every endpoint against live Tranquility |
|
|
849
881
|
| **ESI spec contract** | 15 tests | Endpoint definitions validated against live OpenAPI spec |
|
|
850
882
|
| **Deep contract tests** | 8 categories | Path params, query params, body, auth, schemas, pagination vs spec |
|
|
851
883
|
| **Property-based fuzzing** | 601 tests | fast-check fuzzing of validation, URL construction, Zod schemas |
|
|
@@ -856,7 +888,7 @@ ESI.ts has a comprehensive multi-tier testing strategy with 139 suites and 4,104
|
|
|
856
888
|
| **Spec-alignment** | Type assertions | Ensures hand-written types align with generated OpenAPI types |
|
|
857
889
|
|
|
858
890
|
```bash
|
|
859
|
-
npm test # Unit + BDD tests (
|
|
891
|
+
npm test # Unit + BDD tests (143 suites, 4,182 tests)
|
|
860
892
|
npm run coverage # Tests with coverage report (thresholds enforced)
|
|
861
893
|
npm run bdd # BDD scenario tests only
|
|
862
894
|
npm run contract # Contract tests (skipped without ESI_LIVE_TESTS=true)
|
|
@@ -903,7 +935,7 @@ npm run format # Format code with Prettier
|
|
|
903
935
|
npm run format:check # Check formatting without modifying
|
|
904
936
|
|
|
905
937
|
# Testing
|
|
906
|
-
npm test # Unit tests (
|
|
938
|
+
npm test # Unit tests (143 suites, 4,182 tests)
|
|
907
939
|
npm run test:all # Unit + BDD + integration + fuzz + type tests
|
|
908
940
|
npm run coverage # Tests with coverage report (thresholds enforced)
|
|
909
941
|
npm run bdd # BDD scenario tests
|
package/dist/EsiClient.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ClonesClient } from './clients/ClonesClient';
|
|
|
8
8
|
import { ContactsClient } from './clients/ContactsClient';
|
|
9
9
|
import { ContractsClient } from './clients/ContractsClient';
|
|
10
10
|
import { CorporationsClient } from './clients/CorporationsClient';
|
|
11
|
+
import { CorporationProjectsClient } from './clients/CorporationProjectsClient';
|
|
11
12
|
import { DogmaClient } from './clients/DogmaClient';
|
|
12
13
|
import { FactionClient } from './clients/FactionClient';
|
|
13
14
|
import { FittingsClient } from './clients/FittingsClient';
|
|
@@ -35,6 +36,7 @@ import { FreelanceJobsClient } from './clients/FreelanceJobsClient';
|
|
|
35
36
|
import { SkyhooksClient } from './clients/SkyhooksClient';
|
|
36
37
|
import { MercenaryClient } from './clients/MercenaryClient';
|
|
37
38
|
import { AccessListsClient } from './clients/AccessListsClient';
|
|
39
|
+
import { MilitaryCampaignsClient } from './clients/MilitaryCampaignsClient';
|
|
38
40
|
import { ETagCacheConfig } from './core/cache/ETagCacheManager';
|
|
39
41
|
import { CircuitBreakerConfig } from './core/circuitBreaker/CircuitBreaker';
|
|
40
42
|
import { RateLimiterConfig } from './core/rateLimiter/RateLimiter';
|
|
@@ -60,6 +62,7 @@ export interface EsiClientConfig {
|
|
|
60
62
|
unsafeAllowCustomHost?: boolean;
|
|
61
63
|
enableRequestDeduplication?: boolean;
|
|
62
64
|
language?: string;
|
|
65
|
+
compatibilityDate?: string;
|
|
63
66
|
rateLimiterConfig?: RateLimiterConfig;
|
|
64
67
|
requestInterceptors?: RequestInterceptor[];
|
|
65
68
|
responseInterceptors?: ResponseInterceptor[];
|
|
@@ -82,6 +85,7 @@ export declare class EsiClient {
|
|
|
82
85
|
get contacts(): ContactsClient;
|
|
83
86
|
get contracts(): ContractsClient;
|
|
84
87
|
get corporations(): CorporationsClient;
|
|
88
|
+
get corporationProjects(): CorporationProjectsClient;
|
|
85
89
|
get dogma(): DogmaClient;
|
|
86
90
|
get factions(): FactionClient;
|
|
87
91
|
get fittings(): FittingsClient;
|
|
@@ -108,6 +112,7 @@ export declare class EsiClient {
|
|
|
108
112
|
get freelanceJobs(): FreelanceJobsClient;
|
|
109
113
|
get skyhooks(): SkyhooksClient;
|
|
110
114
|
get mercenary(): MercenaryClient;
|
|
115
|
+
get militaryCampaigns(): MilitaryCampaignsClient;
|
|
111
116
|
get accessLists(): AccessListsClient;
|
|
112
117
|
addRequestInterceptor(fn: RequestInterceptor): () => void;
|
|
113
118
|
addResponseInterceptor(fn: ResponseInterceptor): () => void;
|
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,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,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E,eAAe,GAAG,WAAW;IAO/D,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,YAAY;IAOjE,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,YAAY;IAOjE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,UAAU;IAO7D,MAAM,CAAC,YAAY,CACjB,UAAU,EAAE,aAAa,EACzB,MAAM,CAAC,EAAE,eAAe,GACvB,cAAc;IAIjB,OAAO,CAAC,MAAM,CAAC,cAAc;CA2B9B;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAuB;IACtC,OAAO,CAAC,MAAM,CAAuB;IAErC,SAAS,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI;IAO1C,UAAU,CAAC,WAAW,EAAE,aAAa,EAAE,GAAG,IAAI;IAK9C,UAAU,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAKzC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKpC,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAK1C,KAAK,IAAI,eAAe;CAMzB"}
|
|
@@ -7,9 +7,19 @@ export declare class AccessListsClient extends BaseEsiClient<typeof accessListEn
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves the contents of an access list (ACL) including all character, corporation, and alliance entries.
|
|
9
9
|
*
|
|
10
|
+
* @param characterId - The ID of the character who owns the access list
|
|
10
11
|
* @param accessListId - The ID of the access list to retrieve
|
|
11
12
|
* @returns The access list with its entries
|
|
13
|
+
* @requires Authentication
|
|
12
14
|
*/
|
|
13
|
-
getAccessList(accessListId: number): Promise<AccessList>;
|
|
15
|
+
getAccessList(characterId: number, accessListId: number): Promise<AccessList>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves all access lists for a character.
|
|
18
|
+
*
|
|
19
|
+
* @param characterId - The ID of the character
|
|
20
|
+
* @returns An array of the character's access lists
|
|
21
|
+
* @requires Authentication
|
|
22
|
+
*/
|
|
23
|
+
getCharacterAccessLists(characterId: number): Promise<AccessList[]>;
|
|
14
24
|
}
|
|
15
25
|
//# sourceMappingURL=AccessListsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessListsClient.d.ts","sourceRoot":"","sources":["../../src/clients/AccessListsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,qBAAa,iBAAkB,SAAQ,aAAa,CAClD,OAAO,mBAAmB,CAC3B;gBACa,MAAM,EAAE,SAAS;IAI7B
|
|
1
|
+
{"version":3,"file":"AccessListsClient.d.ts","sourceRoot":"","sources":["../../src/clients/AccessListsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,qBAAa,iBAAkB,SAAQ,aAAa,CAClD,OAAO,mBAAmB,CAC3B;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;;;;OAOG;IACH,aAAa,CACX,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,UAAU,CAAC;IAItB;;;;;;OAMG;IACH,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;CAGpE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
|
+
import { corporationProjectEndpoints } from '../core/endpoints/corporationProjectEndpoints';
|
|
4
|
+
import { CorporationProject, CorporationProjectContribution, CorporationProjectContributor } from '../types/api-responses';
|
|
5
|
+
export declare class CorporationProjectsClient extends BaseEsiClient<typeof corporationProjectEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of projects for a corporation.
|
|
9
|
+
*
|
|
10
|
+
* @param corporationId - The ID of the corporation
|
|
11
|
+
* @returns An array of corporation projects
|
|
12
|
+
* @requires Authentication
|
|
13
|
+
*/
|
|
14
|
+
getCorporationProjects(corporationId: number): Promise<CorporationProject[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves details of a specific corporation project.
|
|
17
|
+
*
|
|
18
|
+
* @param corporationId - The ID of the corporation
|
|
19
|
+
* @param projectId - The ID of the project
|
|
20
|
+
* @returns The corporation project details
|
|
21
|
+
* @requires Authentication
|
|
22
|
+
*/
|
|
23
|
+
getCorporationProject(corporationId: number, projectId: number): Promise<CorporationProject>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves a character's contribution to a specific corporation project.
|
|
26
|
+
*
|
|
27
|
+
* @param corporationId - The ID of the corporation
|
|
28
|
+
* @param projectId - The ID of the project
|
|
29
|
+
* @param characterId - The ID of the character
|
|
30
|
+
* @returns The character's contribution details
|
|
31
|
+
* @requires Authentication
|
|
32
|
+
*/
|
|
33
|
+
getCorporationProjectContribution(corporationId: number, projectId: number, characterId: number): Promise<CorporationProjectContribution>;
|
|
34
|
+
/**
|
|
35
|
+
* Retrieves a list of contributors to a specific corporation project.
|
|
36
|
+
*
|
|
37
|
+
* @param corporationId - The ID of the corporation
|
|
38
|
+
* @param projectId - The ID of the project
|
|
39
|
+
* @returns An array of project contributors
|
|
40
|
+
* @requires Authentication
|
|
41
|
+
*/
|
|
42
|
+
getCorporationProjectContributors(corporationId: number, projectId: number): Promise<CorporationProjectContributor[]>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=CorporationProjectsClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporationProjectsClient.d.ts","sourceRoot":"","sources":["../../src/clients/CorporationProjectsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,yBAA0B,SAAQ,aAAa,CAC1D,OAAO,2BAA2B,CACnC;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI5E;;;;;;;OAOG;IACH,qBAAqB,CACnB,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,CAAC;IAI9B;;;;;;;;OAQG;IACH,iCAAiC,CAC/B,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,8BAA8B,CAAC;IAQ1C;;;;;;;OAOG;IACH,iCAAiC,CAC/B,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,6BAA6B,EAAE,CAAC;CAG5C"}
|
|
@@ -7,14 +7,18 @@ export declare class MercenaryClient extends BaseEsiClient<typeof mercenaryEndpo
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves all mercenary dens with their development and anarchy parameters.
|
|
9
9
|
*
|
|
10
|
+
* @param characterId - The ID of the character to query mercenary dens for
|
|
10
11
|
* @returns A list of mercenary dens
|
|
12
|
+
* @requires Authentication
|
|
11
13
|
*/
|
|
12
|
-
getMercenaryDens(): Promise<MercenaryDen[]>;
|
|
14
|
+
getMercenaryDens(characterId: number): Promise<MercenaryDen[]>;
|
|
13
15
|
/**
|
|
14
16
|
* Retrieves all mercenary tactical operations (MTOs) spawned from mercenary dens.
|
|
15
17
|
*
|
|
18
|
+
* @param characterId - The ID of the character to query tactical operations for
|
|
16
19
|
* @returns A list of mercenary tactical operations
|
|
20
|
+
* @requires Authentication
|
|
17
21
|
*/
|
|
18
|
-
getMercenaryTacticalOperations(): Promise<MercenaryTacticalOperation[]>;
|
|
22
|
+
getMercenaryTacticalOperations(characterId: number): Promise<MercenaryTacticalOperation[]>;
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=MercenaryClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MercenaryClient.d.ts","sourceRoot":"","sources":["../../src/clients/MercenaryClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,eAAgB,SAAQ,aAAa,CAAC,OAAO,kBAAkB,CAAC;gBAC/D,MAAM,EAAE,SAAS;IAI7B
|
|
1
|
+
{"version":3,"file":"MercenaryClient.d.ts","sourceRoot":"","sources":["../../src/clients/MercenaryClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,eAAgB,SAAQ,aAAa,CAAC,OAAO,kBAAkB,CAAC;gBAC/D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAI9D;;;;;;OAMG;IACH,8BAA8B,CAC5B,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,0BAA0B,EAAE,CAAC;CAGzC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiClient } from '../core/ApiClient';
|
|
2
2
|
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
3
|
import { metaEndpoints } from '../core/endpoints/metaEndpoints';
|
|
4
|
+
import { MetaChangelog, MetaCompatibilityDates, MetaName, MetaStatus } from '../types/api-responses';
|
|
4
5
|
export declare class MetaClient extends BaseEsiClient<typeof metaEndpoints> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
6
7
|
/**
|
|
@@ -15,5 +16,29 @@ export declare class MetaClient extends BaseEsiClient<typeof metaEndpoints> {
|
|
|
15
16
|
* @returns The full ESI OpenAPI specification as a YAML string
|
|
16
17
|
*/
|
|
17
18
|
getOpenApiYaml(): Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the ESI changelog data.
|
|
21
|
+
*
|
|
22
|
+
* @returns The changelog keyed by compatibility date
|
|
23
|
+
*/
|
|
24
|
+
getChangelog(): Promise<MetaChangelog>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the list of ESI compatibility dates.
|
|
27
|
+
*
|
|
28
|
+
* @returns An object containing the list of compatibility dates
|
|
29
|
+
*/
|
|
30
|
+
getCompatibilityDates(): Promise<MetaCompatibilityDates>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the ESI name.
|
|
33
|
+
*
|
|
34
|
+
* @returns An object containing the ESI name
|
|
35
|
+
*/
|
|
36
|
+
getName(): Promise<MetaName>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the ESI status.
|
|
39
|
+
*
|
|
40
|
+
* @returns An object containing the ESI status
|
|
41
|
+
*/
|
|
42
|
+
getStatus(): Promise<MetaStatus>;
|
|
18
43
|
}
|
|
19
44
|
//# sourceMappingURL=MetaClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaClient.d.ts","sourceRoot":"","sources":["../../src/clients/MetaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"MetaClient.d.ts","sourceRoot":"","sources":["../../src/clients/MetaClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,QAAQ,EACR,UAAU,EACX,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,UAAW,SAAQ,aAAa,CAAC,OAAO,aAAa,CAAC;gBACrD,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IAEH,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAK9C;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IA+BvC;;;;OAIG;IACH,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC;IAItC;;;;OAIG;IACH,qBAAqB,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAIxD;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;IAI5B;;;;OAIG;IACH,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC;CAGjC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ApiClient } from '../core/ApiClient';
|
|
2
|
+
import { BaseEsiClient } from './BaseEsiClient';
|
|
3
|
+
import { militaryCampaignEndpoints } from '../core/endpoints/militaryCampaignEndpoints';
|
|
4
|
+
import { MilitaryCampaign, MilitaryCampaignObjective, CharacterMilitaryCampaignObjective } from '../types/api-responses';
|
|
5
|
+
export declare class MilitaryCampaignsClient extends BaseEsiClient<typeof militaryCampaignEndpoints> {
|
|
6
|
+
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of all active, completed, and expired military campaigns.
|
|
9
|
+
*
|
|
10
|
+
* @returns An array of military campaigns
|
|
11
|
+
*/
|
|
12
|
+
getMilitaryCampaigns(): Promise<MilitaryCampaign[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves detailed information about a specific military campaign.
|
|
15
|
+
*
|
|
16
|
+
* @param campaignId - The UUID of the military campaign
|
|
17
|
+
* @returns Detailed information about the campaign
|
|
18
|
+
*/
|
|
19
|
+
getMilitaryCampaign(campaignId: string): Promise<MilitaryCampaign>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves all objectives for a specific military campaign.
|
|
22
|
+
*
|
|
23
|
+
* @param campaignId - The UUID of the military campaign
|
|
24
|
+
* @returns An array of objectives for the campaign
|
|
25
|
+
*/
|
|
26
|
+
getMilitaryCampaignObjectives(campaignId: string): Promise<MilitaryCampaignObjective[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves detailed information about a specific objective in a military campaign.
|
|
29
|
+
*
|
|
30
|
+
* @param campaignId - The UUID of the military campaign
|
|
31
|
+
* @param objectiveId - The UUID of the objective
|
|
32
|
+
* @returns Detailed information about the objective
|
|
33
|
+
*/
|
|
34
|
+
getMilitaryCampaignObjective(campaignId: string, objectiveId: string): Promise<MilitaryCampaignObjective>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a character's participated objectives across military campaigns.
|
|
37
|
+
*
|
|
38
|
+
* @param characterId - The ID of the character
|
|
39
|
+
* @returns An array of the character's campaign objective participations
|
|
40
|
+
* @requires Authentication with scope esi.activity.char:read
|
|
41
|
+
*/
|
|
42
|
+
getCharacterMilitaryCampaignObjectives(characterId: number): Promise<CharacterMilitaryCampaignObjective[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves a character's participation details for a specific campaign objective.
|
|
45
|
+
*
|
|
46
|
+
* @param characterId - The ID of the character
|
|
47
|
+
* @param objectiveId - The UUID of the objective
|
|
48
|
+
* @returns The character's participation details for the objective
|
|
49
|
+
* @requires Authentication with scope esi.activity.char:read
|
|
50
|
+
*/
|
|
51
|
+
getCharacterMilitaryCampaignObjective(characterId: number, objectiveId: string): Promise<CharacterMilitaryCampaignObjective>;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=MilitaryCampaignsClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MilitaryCampaignsClient.d.ts","sourceRoot":"","sources":["../../src/clients/MilitaryCampaignsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,kCAAkC,EACnC,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,uBAAwB,SAAQ,aAAa,CACxD,OAAO,yBAAyB,CACjC;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACH,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAInD;;;;;OAKG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlE;;;;;OAKG;IACH,6BAA6B,CAC3B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAIvC;;;;;;OAMG;IACH,4BAA4B,CAC1B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,yBAAyB,CAAC;IAIrC;;;;;;OAMG;IACH,sCAAsC,CACpC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,kCAAkC,EAAE,CAAC;IAIhD;;;;;;;OAOG;IACH,qCAAqC,CACnC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,kCAAkC,CAAC;CAM/C"}
|
|
@@ -7,15 +7,19 @@ export declare class SkyhooksClient extends BaseEsiClient<typeof skyhookEndpoint
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves all sovereignty hubs exposed as Upwell structures, including online status and installed upgrades.
|
|
9
9
|
*
|
|
10
|
+
* @param corporationId - The ID of the corporation to query sovereignty hubs for
|
|
10
11
|
* @returns A list of sovereignty hubs
|
|
12
|
+
* @requires Authentication
|
|
11
13
|
*/
|
|
12
|
-
getSovereigntyHubs(): Promise<SovereigntyHub[]>;
|
|
14
|
+
getSovereigntyHubs(corporationId: number): Promise<SovereigntyHub[]>;
|
|
13
15
|
/**
|
|
14
16
|
* Retrieves all orbital skyhooks with their silo capacity and levels.
|
|
15
17
|
*
|
|
18
|
+
* @param corporationId - The ID of the corporation to query skyhooks for
|
|
16
19
|
* @returns A list of orbital skyhooks
|
|
20
|
+
* @requires Authentication
|
|
17
21
|
*/
|
|
18
|
-
getOrbitalSkyhooks(): Promise<OrbitalSkyhook[]>;
|
|
22
|
+
getOrbitalSkyhooks(corporationId: number): Promise<OrbitalSkyhook[]>;
|
|
19
23
|
/**
|
|
20
24
|
* Retrieves the rolling list of skyhooks that are currently or becoming raidable across New Eden.
|
|
21
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkyhooksClient.d.ts","sourceRoot":"","sources":["../../src/clients/SkyhooksClient.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,EACL,cAAc,EACd,cAAc,EACd,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,cAAe,SAAQ,aAAa,CAAC,OAAO,gBAAgB,CAAC;gBAC5D,MAAM,EAAE,SAAS;IAI7B
|
|
1
|
+
{"version":3,"file":"SkyhooksClient.d.ts","sourceRoot":"","sources":["../../src/clients/SkyhooksClient.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,EACL,cAAc,EACd,cAAc,EACd,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,cAAe,SAAQ,aAAa,CAAC,OAAO,gBAAgB,CAAC;gBAC5D,MAAM,EAAE,SAAS;IAI7B;;;;;;OAMG;IACH,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIpE;;;;;;OAMG;IACH,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAIpE;;;;OAIG;IACH,mBAAmB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAGlD"}
|
package/dist/core/ApiClient.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare class ApiClient {
|
|
|
25
25
|
private validateResponse;
|
|
26
26
|
private validateRequest;
|
|
27
27
|
private language?;
|
|
28
|
+
private compatibilityDate?;
|
|
28
29
|
constructor(clientId: string, link: string, accessToken?: string | undefined);
|
|
29
30
|
getTimeout(): number;
|
|
30
31
|
setTimeout(timeout: number): void;
|
|
@@ -53,6 +54,8 @@ export declare class ApiClient {
|
|
|
53
54
|
setDatasource(datasource: EsiDatasource | undefined): void;
|
|
54
55
|
getLanguage(): string | undefined;
|
|
55
56
|
setLanguage(language: string | undefined): void;
|
|
57
|
+
getCompatibilityDate(): string | undefined;
|
|
58
|
+
setCompatibilityDate(date: string | undefined): void;
|
|
56
59
|
setAccessToken(token: string): void;
|
|
57
60
|
setTokenProvider(provider: TokenProvider | undefined): void;
|
|
58
61
|
hasTokenProvider(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/core/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,aAAa,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;AAElD,qBAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../../src/core/ApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,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