@lgriffin/esi.ts 10.0.0 → 10.2.1

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