@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,86 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { industryEndpoints } from '../core/endpoints/industryEndpoints.mjs';
4
+ import { IndustryJob, CorporationIndustryJob, MiningLedgerEntry, IndustryFacility, IndustrySystem, MoonExtractionTimer, MiningObserver, MiningObserverEntry } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class IndustryClient extends BaseEsiClient<typeof industryEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves all industry jobs for a character, including manufacturing, research, and invention.
10
+ *
11
+ * @param characterId - The ID of the character
12
+ * @returns An array of the character's industry jobs
13
+ * @requires Authentication
14
+ */
15
+ getCharacterIndustryJobs(characterId: number): Promise<IndustryJob[]>;
16
+ /**
17
+ * Retrieves a character's personal mining ledger, showing ore mined per day.
18
+ *
19
+ * @param characterId - The ID of the character
20
+ * @returns An array of mining ledger entries
21
+ * @requires Authentication
22
+ */
23
+ getCharacterMiningLedger(characterId: number): Promise<MiningLedgerEntry[]>;
24
+ /**
25
+ * Retrieves moon extraction timers for a corporation's refineries.
26
+ *
27
+ * @param corporationId - The ID of the corporation
28
+ * @returns An array of moon extraction timers
29
+ * @requires Authentication
30
+ */
31
+ getMoonExtractionTimers(corporationId: number): Promise<MoonExtractionTimer[]>;
32
+ /**
33
+ * Retrieves the list of mining observers (e.g., refineries) owned by a corporation.
34
+ *
35
+ * @param corporationId - The ID of the corporation
36
+ * @returns An array of mining observers
37
+ * @requires Authentication
38
+ */
39
+ getCorporationMiningObservers(corporationId: number): Promise<MiningObserver[]>;
40
+ /**
41
+ * Retrieves mining activity recorded by a specific corporation mining observer.
42
+ *
43
+ * @param corporationId - The ID of the corporation
44
+ * @param observerId - The ID of the mining observer
45
+ * @returns An array of mining activity entries for the observer
46
+ * @requires Authentication
47
+ */
48
+ getCorporationMiningObserver(corporationId: number, observerId: number): Promise<MiningObserverEntry[]>;
49
+ /**
50
+ * Retrieves all industry jobs for a corporation, including manufacturing, research, and invention.
51
+ *
52
+ * @param corporationId - The ID of the corporation
53
+ * @returns An array of the corporation's industry jobs
54
+ * @requires Authentication
55
+ */
56
+ getCorporationIndustryJobs(corporationId: number): Promise<CorporationIndustryJob[]>;
57
+ /**
58
+ * Retrieves a list of all publicly available industry facilities in the universe.
59
+ *
60
+ * @returns An array of industry facilities
61
+ */
62
+ getIndustryFacilities(): Promise<IndustryFacility[]>;
63
+ /**
64
+ * Retrieves cost indices for solar systems with industry activity, used to calculate job installation fees.
65
+ *
66
+ * @returns An array of industry system cost indices
67
+ */
68
+ getIndustrySystems(): Promise<IndustrySystem[]>;
69
+ fetchAllCharacterIndustryJobs(characterId: number, concurrency?: number): Promise<IndustryJob[]>;
70
+ fetchAllCharacterMiningLedger(characterId: number, concurrency?: number): Promise<MiningLedgerEntry[]>;
71
+ fetchAllCorporationIndustryJobs(corporationId: number, concurrency?: number): Promise<CorporationIndustryJob[]>;
72
+ fetchAllMoonExtractionTimers(corporationId: number, concurrency?: number): Promise<MoonExtractionTimer[]>;
73
+ fetchAllCorporationMiningObservers(corporationId: number, concurrency?: number): Promise<MiningObserver[]>;
74
+ fetchAllCorporationMiningObserver(corporationId: number, observerId: number, concurrency?: number): Promise<MiningObserverEntry[]>;
75
+ fetchAllIndustryFacilities(concurrency?: number): Promise<IndustryFacility[]>;
76
+ fetchAllIndustrySystems(concurrency?: number): Promise<IndustrySystem[]>;
77
+ streamCharacterIndustryJobs(characterId: number): AsyncGenerator<PageResult<IndustryJob>, void, undefined>;
78
+ streamCharacterMiningLedger(characterId: number): AsyncGenerator<PageResult<MiningLedgerEntry>, void, undefined>;
79
+ streamCorporationIndustryJobs(corporationId: number): AsyncGenerator<PageResult<CorporationIndustryJob>, void, undefined>;
80
+ streamMoonExtractionTimers(corporationId: number): AsyncGenerator<PageResult<MoonExtractionTimer>, void, undefined>;
81
+ streamCorporationMiningObservers(corporationId: number): AsyncGenerator<PageResult<MiningObserver>, void, undefined>;
82
+ streamCorporationMiningObserver(corporationId: number, observerId: number): AsyncGenerator<PageResult<MiningObserverEntry>, void, undefined>;
83
+ streamIndustryFacilities(): AsyncGenerator<PageResult<IndustryFacility>, void, undefined>;
84
+ streamIndustrySystems(): AsyncGenerator<PageResult<IndustrySystem>, void, undefined>;
85
+ }
86
+ //# sourceMappingURL=IndustryClient.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { insuranceEndpoints } from '../core/endpoints/insuranceEndpoints.mjs';
4
+ import { InsurancePrice } from '../types/api-responses.mjs';
5
+ export declare class InsuranceClient extends BaseEsiClient<typeof insuranceEndpoints> {
6
+ constructor(client: ApiClient);
7
+ /**
8
+ * Retrieves available insurance levels and their costs for all ship types.
9
+ *
10
+ * @returns An array of insurance price listings per ship type
11
+ */
12
+ getInsurancePrices(): Promise<InsurancePrice[]>;
13
+ }
14
+ //# sourceMappingURL=InsuranceClient.d.ts.map
@@ -0,0 +1,37 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { killmailEndpoints } from '../core/endpoints/killmailEndpoints.mjs';
4
+ import { KillmailSummary, Killmail } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class KillmailsClient extends BaseEsiClient<typeof killmailEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves a list of recent killmail summaries for a character.
10
+ *
11
+ * @param characterId - The ID of the character to fetch killmails for
12
+ * @returns A list of recent killmail summaries including killmail IDs and hashes
13
+ * @requires Authentication
14
+ */
15
+ getCharacterRecentKillmails(characterId: number): Promise<KillmailSummary[]>;
16
+ /**
17
+ * Retrieves a list of recent killmail summaries for a corporation.
18
+ *
19
+ * @param corporationId - The ID of the corporation to fetch killmails for
20
+ * @returns A list of recent killmail summaries including killmail IDs and hashes
21
+ * @requires Authentication
22
+ */
23
+ getCorporationRecentKillmails(corporationId: number): Promise<KillmailSummary[]>;
24
+ /**
25
+ * Retrieves the full details of a specific killmail by its ID and hash.
26
+ *
27
+ * @param killmailId - The ID of the killmail to retrieve
28
+ * @param killmailHash - The hash of the killmail for verification
29
+ * @returns The full killmail details including victim, attackers, and items
30
+ */
31
+ getKillmail(killmailId: number, killmailHash: string): Promise<Killmail>;
32
+ fetchAllCharacterRecentKillmails(characterId: number, concurrency?: number): Promise<KillmailSummary[]>;
33
+ fetchAllCorporationRecentKillmails(corporationId: number, concurrency?: number): Promise<KillmailSummary[]>;
34
+ streamCharacterRecentKillmails(characterId: number): AsyncGenerator<PageResult<KillmailSummary>, void, undefined>;
35
+ streamCorporationRecentKillmails(corporationId: number): AsyncGenerator<PageResult<KillmailSummary>, void, undefined>;
36
+ }
37
+ //# sourceMappingURL=KillmailsClient.d.ts.map
@@ -0,0 +1,32 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { locationEndpoints } from '../core/endpoints/locationEndpoints.mjs';
4
+ import { CharacterLocation, CharacterOnline, CharacterShip } from '../types/api-responses.mjs';
5
+ export declare class LocationClient extends BaseEsiClient<typeof locationEndpoints> {
6
+ constructor(client: ApiClient);
7
+ /**
8
+ * Retrieves the current solar system, station, and structure location of a character.
9
+ *
10
+ * @param characterId - The ID of the character to locate
11
+ * @returns The character's current location including solar system and optional station or structure
12
+ * @requires Authentication
13
+ */
14
+ getCharacterLocation(characterId: number): Promise<CharacterLocation>;
15
+ /**
16
+ * Checks whether a character is currently online and retrieves login/logout timestamps.
17
+ *
18
+ * @param characterId - The ID of the character to check
19
+ * @returns The character's online status and last login/logout times
20
+ * @requires Authentication
21
+ */
22
+ getCharacterOnline(characterId: number): Promise<CharacterOnline>;
23
+ /**
24
+ * Retrieves the type, name, and item ID of the ship a character is currently flying.
25
+ *
26
+ * @param characterId - The ID of the character whose ship to retrieve
27
+ * @returns The character's current ship details including type ID and ship name
28
+ * @requires Authentication
29
+ */
30
+ getCharacterShip(characterId: number): Promise<CharacterShip>;
31
+ }
32
+ //# sourceMappingURL=LocationClient.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { loyaltyEndpoints } from '../core/endpoints/loyaltyEndpoints.mjs';
4
+ import { LoyaltyPoints, LoyaltyStoreOffer } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class LoyaltyClient extends BaseEsiClient<typeof loyaltyEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves the loyalty points a character has earned with each NPC corporation.
10
+ *
11
+ * @param characterId - The ID of the character to fetch loyalty points for
12
+ * @returns A list of loyalty point balances per corporation
13
+ * @requires Authentication
14
+ */
15
+ getLoyaltyPoints(characterId: number): Promise<LoyaltyPoints[]>;
16
+ /**
17
+ * Retrieves the list of items available in an NPC corporation's loyalty point store.
18
+ *
19
+ * @param corporationId - The ID of the NPC corporation whose LP store to query
20
+ * @returns A list of offers available in the loyalty store
21
+ */
22
+ getLoyaltyStoreOffers(corporationId: number): Promise<LoyaltyStoreOffer[]>;
23
+ fetchAllLoyaltyPoints(characterId: number, concurrency?: number): Promise<LoyaltyPoints[]>;
24
+ fetchAllLoyaltyStoreOffers(corporationId: number, concurrency?: number): Promise<LoyaltyStoreOffer[]>;
25
+ streamLoyaltyPoints(characterId: number): AsyncGenerator<PageResult<LoyaltyPoints>, void, undefined>;
26
+ streamLoyaltyStoreOffers(corporationId: number): AsyncGenerator<PageResult<LoyaltyStoreOffer>, void, undefined>;
27
+ }
28
+ //# sourceMappingURL=LoyaltyClient.d.ts.map
@@ -0,0 +1,104 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { mailEndpoints } from '../core/endpoints/mailEndpoints.mjs';
4
+ import { MailHeader, MailMessage, MailLabel } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class MailClient extends BaseEsiClient<typeof mailEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves the mail headers (subject, sender, timestamp) for a character's inbox.
10
+ *
11
+ * @param characterId - The ID of the character whose mail headers to fetch
12
+ * @returns A list of mail message headers
13
+ * @requires Authentication
14
+ */
15
+ getMailHeaders(characterId: number): Promise<MailHeader[]>;
16
+ /**
17
+ * Sends a new mail on behalf of a character via POST.
18
+ *
19
+ * @param characterId - The ID of the character sending the mail
20
+ * @param body - The mail content including recipients, subject, and body text
21
+ * @returns The ID of the newly created mail
22
+ * @requires Authentication
23
+ */
24
+ sendMail(characterId: number, body: object): Promise<number>;
25
+ /**
26
+ * Deletes a specific mail from a character's mailbox.
27
+ *
28
+ * @param characterId - The ID of the character who owns the mail
29
+ * @param mailId - The ID of the mail to delete
30
+ * @returns void
31
+ * @requires Authentication
32
+ */
33
+ deleteMail(characterId: number, mailId: number): Promise<void>;
34
+ /**
35
+ * Retrieves the full contents of a specific mail including its body text.
36
+ *
37
+ * @param characterId - The ID of the character who owns the mail
38
+ * @param mailId - The ID of the mail to retrieve
39
+ * @returns The full mail message including body, sender, and recipients
40
+ * @requires Authentication
41
+ */
42
+ getMail(characterId: number, mailId: number): Promise<MailMessage>;
43
+ /**
44
+ * Updates the metadata of a mail, such as read status or labels, via PUT.
45
+ *
46
+ * @param characterId - The ID of the character who owns the mail
47
+ * @param mailId - The ID of the mail to update
48
+ * @param body - The metadata fields to update (e.g., labels, read status)
49
+ * @returns void
50
+ * @requires Authentication
51
+ */
52
+ updateMailMetadata(characterId: number, mailId: number, body: object): Promise<void>;
53
+ /**
54
+ * Retrieves the mail labels and total unread count for a character.
55
+ *
56
+ * @param characterId - The ID of the character whose labels to fetch
57
+ * @returns The character's mail labels and total unread mail count
58
+ * @requires Authentication
59
+ */
60
+ getMailLabels(characterId: number): Promise<{
61
+ total_unread_count?: number;
62
+ labels?: MailLabel[];
63
+ }>;
64
+ /**
65
+ * Creates a new custom mail label for a character via POST.
66
+ *
67
+ * @param characterId - The ID of the character to create the label for
68
+ * @param body - The label definition including name and optional color
69
+ * @returns The ID of the newly created label
70
+ * @requires Authentication
71
+ */
72
+ createMailLabel(characterId: number, body: object): Promise<number>;
73
+ /**
74
+ * Deletes a custom mail label from a character's mailbox.
75
+ *
76
+ * @param characterId - The ID of the character who owns the label
77
+ * @param labelId - The ID of the label to delete
78
+ * @returns void
79
+ * @requires Authentication
80
+ */
81
+ deleteMailLabel(characterId: number, labelId: number): Promise<void>;
82
+ /**
83
+ * Retrieves the mailing lists that a character is subscribed to.
84
+ *
85
+ * @param characterId - The ID of the character whose mailing lists to fetch
86
+ * @returns A list of mailing lists with their IDs and names
87
+ * @requires Authentication
88
+ */
89
+ getMailingLists(characterId: number): Promise<{
90
+ mailing_list_id: number;
91
+ name: string;
92
+ }[]>;
93
+ fetchAllMailHeaders(characterId: number, concurrency?: number): Promise<MailHeader[]>;
94
+ fetchAllMailingLists(characterId: number, concurrency?: number): Promise<{
95
+ mailing_list_id: number;
96
+ name: string;
97
+ }[]>;
98
+ streamMailHeaders(characterId: number): AsyncGenerator<PageResult<MailHeader>, void, undefined>;
99
+ streamMailingLists(characterId: number): AsyncGenerator<PageResult<{
100
+ mailing_list_id: number;
101
+ name: string;
102
+ }>, void, undefined>;
103
+ }
104
+ //# sourceMappingURL=MailClient.d.ts.map
@@ -0,0 +1,102 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { marketEndpoints } from '../core/endpoints/marketEndpoints.mjs';
4
+ import { MarketOrder, CharacterMarketOrder, CharacterMarketOrderHistory, CorporationMarketOrder, CorporationMarketOrderHistory, StructureMarketOrder, MarketHistory, MarketGroup, MarketPrice } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class MarketClient extends BaseEsiClient<typeof marketEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves all active market orders placed by a character.
10
+ *
11
+ * @param characterId - The ID of the character whose orders to fetch
12
+ * @returns A list of the character's open market orders
13
+ * @requires Authentication
14
+ */
15
+ getCharacterOrders(characterId: number): Promise<CharacterMarketOrder[]>;
16
+ /**
17
+ * Retrieves the history of expired and cancelled market orders for a character.
18
+ *
19
+ * @param characterId - The ID of the character whose order history to fetch
20
+ * @returns A list of the character's historical market orders
21
+ * @requires Authentication
22
+ */
23
+ getCharacterOrderHistory(characterId: number): Promise<CharacterMarketOrderHistory[]>;
24
+ /**
25
+ * Retrieves all active market orders placed by members of a corporation.
26
+ *
27
+ * @param corporationId - The ID of the corporation whose orders to fetch
28
+ * @returns A list of the corporation's open market orders
29
+ * @requires Authentication
30
+ */
31
+ getCorporationOrders(corporationId: number): Promise<CorporationMarketOrder[]>;
32
+ /**
33
+ * Retrieves the history of expired and cancelled market orders for a corporation.
34
+ *
35
+ * @param corporationId - The ID of the corporation whose order history to fetch
36
+ * @returns A list of the corporation's historical market orders
37
+ * @requires Authentication
38
+ */
39
+ getCorporationOrderHistory(corporationId: number): Promise<CorporationMarketOrderHistory[]>;
40
+ /**
41
+ * Retrieves the daily price and volume history for a specific item type in a region.
42
+ *
43
+ * @param regionId - The ID of the region to fetch market history for
44
+ * @param typeId - The type ID of the item to get history for
45
+ * @returns A list of daily market history entries with price and volume data
46
+ */
47
+ getMarketHistory(regionId: number, typeId: number): Promise<MarketHistory[]>;
48
+ /**
49
+ * Retrieves all active market orders in a region for all item types.
50
+ *
51
+ * @param regionId - The ID of the region to fetch orders for
52
+ * @returns A list of all active market orders in the region
53
+ */
54
+ getMarketOrders(regionId: number): Promise<MarketOrder[]>;
55
+ /**
56
+ * Retrieves the list of type IDs that have active market orders in a region.
57
+ *
58
+ * @param regionId - The ID of the region to check for active types
59
+ * @returns A list of type IDs with active orders in the region
60
+ */
61
+ getMarketTypes(regionId: number): Promise<number[]>;
62
+ /**
63
+ * Retrieves the list of all market group IDs used to categorize items on the market.
64
+ *
65
+ * @returns A list of all market group IDs
66
+ */
67
+ getMarketGroups(): Promise<number[]>;
68
+ /**
69
+ * Retrieves detailed information about a specific market group, including its name, description, and contained types.
70
+ *
71
+ * @param marketGroupId - The ID of the market group to look up
72
+ * @returns The market group details including name, description, types, and optional parent group
73
+ */
74
+ getMarketGroupInformation(marketGroupId: number): Promise<MarketGroup>;
75
+ /**
76
+ * Retrieves the global average and adjusted prices for all tradeable item types.
77
+ *
78
+ * @returns A list of item types with their average and adjusted market prices
79
+ */
80
+ getMarketPrices(): Promise<MarketPrice[]>;
81
+ /**
82
+ * Retrieves all active market orders listed in a specific player-owned structure.
83
+ *
84
+ * @param structureId - The ID of the structure to fetch orders for
85
+ * @returns A list of active market orders in the structure
86
+ * @requires Authentication
87
+ */
88
+ getMarketOrdersInStructure(structureId: number): Promise<StructureMarketOrder[]>;
89
+ fetchAllMarketOrders(regionId: number, concurrency?: number): Promise<MarketOrder[]>;
90
+ fetchAllMarketTypes(regionId: number, concurrency?: number): Promise<number[]>;
91
+ fetchAllCharacterOrderHistory(characterId: number, concurrency?: number): Promise<CharacterMarketOrderHistory[]>;
92
+ fetchAllCorporationOrders(corporationId: number, concurrency?: number): Promise<CorporationMarketOrder[]>;
93
+ fetchAllCorporationOrderHistory(corporationId: number, concurrency?: number): Promise<CorporationMarketOrderHistory[]>;
94
+ fetchAllMarketOrdersInStructure(structureId: number, concurrency?: number): Promise<StructureMarketOrder[]>;
95
+ streamMarketOrders(regionId: number): AsyncGenerator<PageResult<MarketOrder>, void, undefined>;
96
+ streamMarketTypes(regionId: number): AsyncGenerator<PageResult<number>, void, undefined>;
97
+ streamCharacterOrderHistory(characterId: number): AsyncGenerator<PageResult<CharacterMarketOrderHistory>, void, undefined>;
98
+ streamCorporationOrders(corporationId: number): AsyncGenerator<PageResult<CorporationMarketOrder>, void, undefined>;
99
+ streamCorporationOrderHistory(corporationId: number): AsyncGenerator<PageResult<CorporationMarketOrderHistory>, void, undefined>;
100
+ streamMarketOrdersInStructure(structureId: number): AsyncGenerator<PageResult<StructureMarketOrder>, void, undefined>;
101
+ }
102
+ //# sourceMappingURL=MarketClient.d.ts.map
@@ -0,0 +1,42 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { mercenaryEndpoints } from '../core/endpoints/mercenaryEndpoints.mjs';
4
+ import { MercenaryDen, MercenaryTacticalOperation, MercenaryDenDetail, MercenaryTacticalOperationDetail } from '../types/api-responses.mjs';
5
+ export declare class MercenaryClient extends BaseEsiClient<typeof mercenaryEndpoints> {
6
+ constructor(client: ApiClient);
7
+ /**
8
+ * Retrieves all mercenary dens with their development and anarchy parameters.
9
+ *
10
+ * @param characterId - The ID of the character to query mercenary dens for
11
+ * @returns A list of mercenary dens
12
+ * @requires Authentication
13
+ */
14
+ getMercenaryDens(characterId: number): Promise<MercenaryDen[]>;
15
+ /**
16
+ * Retrieves all mercenary tactical operations (MTOs) spawned from mercenary dens.
17
+ *
18
+ * @param characterId - The ID of the character to query tactical operations for
19
+ * @returns A list of mercenary tactical operations
20
+ * @requires Authentication
21
+ */
22
+ getMercenaryTacticalOperations(characterId: number): Promise<MercenaryTacticalOperation[]>;
23
+ /**
24
+ * Retrieves detail for a specific mercenary den including evolution, infomorphs, and skyhook attachment.
25
+ *
26
+ * @param characterId - The ID of the character
27
+ * @param mercenaryDenId - The ID of the mercenary den
28
+ * @returns Mercenary den detail
29
+ * @requires Authentication
30
+ */
31
+ getMercenaryDenDetail(characterId: number, mercenaryDenId: number): Promise<MercenaryDenDetail>;
32
+ /**
33
+ * Retrieves detail for a specific mercenary tactical operation.
34
+ *
35
+ * @param characterId - The ID of the character
36
+ * @param operationId - The UUID of the tactical operation
37
+ * @returns Mercenary tactical operation detail
38
+ * @requires Authentication
39
+ */
40
+ getMercenaryTacticalOperationDetail(characterId: number, operationId: string): Promise<MercenaryTacticalOperationDetail>;
41
+ }
42
+ //# sourceMappingURL=MercenaryClient.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { metaEndpoints } from '../core/endpoints/metaEndpoints.mjs';
4
+ import { MetaChangelog, MetaCompatibilityDates, MetaName, MetaStatus } from '../types/api-responses.mjs';
5
+ export declare class MetaClient extends BaseEsiClient<typeof metaEndpoints> {
6
+ constructor(client: ApiClient);
7
+ /**
8
+ * Retrieves the ESI OpenAPI specification in JSON format.
9
+ *
10
+ * @returns The full ESI OpenAPI specification as a JSON object
11
+ */
12
+ getOpenApiJson(): Promise<Record<string, any>>;
13
+ /**
14
+ * Retrieves the ESI OpenAPI specification in YAML format.
15
+ *
16
+ * @returns The full ESI OpenAPI specification as a YAML string
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 health of each ESI route.
39
+ *
40
+ * @returns `{ routes }`, one entry per route with its method, path and
41
+ * status ('OK', 'Degraded', 'Down', ...)
42
+ */
43
+ getStatus(): Promise<MetaStatus>;
44
+ }
45
+ //# sourceMappingURL=MetaClient.d.ts.map
@@ -0,0 +1,53 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { militaryCampaignEndpoints } from '../core/endpoints/militaryCampaignEndpoints.mjs';
4
+ import { MilitaryCampaign, MilitaryCampaignObjective, CharacterMilitaryCampaignObjective } from '../types/api-responses.mjs';
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,13 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { paragonHubEndpoints } from '../core/endpoints/paragonHubEndpoints.mjs';
4
+ import { ParagonHubSkinrResponse, ParagonHubCharacterSkinrResponse } from '../types/api-responses.mjs';
5
+ export declare class ParagonHubClient extends BaseEsiClient<typeof paragonHubEndpoints> {
6
+ constructor(client: ApiClient);
7
+ getPublicListings(after?: string, before?: string, limit?: number): Promise<ParagonHubSkinrResponse>;
8
+ getCharacterListings(characterId: number, after?: string, before?: string, limit?: number): Promise<ParagonHubCharacterSkinrResponse>;
9
+ getAllianceListings(allianceId: number, after?: string, before?: string, limit?: number): Promise<ParagonHubSkinrResponse>;
10
+ getCharacterTargetedListings(characterId: number, after?: string, before?: string, limit?: number): Promise<ParagonHubSkinrResponse>;
11
+ getCorporationListings(corporationId: number, after?: string, before?: string, limit?: number): Promise<ParagonHubSkinrResponse>;
12
+ }
13
+ //# sourceMappingURL=ParagonHubClient.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { piEndpoints } from '../core/endpoints/piEndpoints.mjs';
4
+ import { PlanetaryColony, CustomsOffice, ColonyLayout, SchematicInfo } from '../types/api-responses.mjs';
5
+ import { PageResult } from '../core/pagination/AsyncPaginationIterator.mjs';
6
+ export declare class PiClient extends BaseEsiClient<typeof piEndpoints> {
7
+ constructor(client: ApiClient);
8
+ /**
9
+ * Retrieves the list of planetary interaction colonies owned by a character.
10
+ *
11
+ * @param characterId - The ID of the character whose colonies to fetch
12
+ * @returns A list of the character's planetary colonies
13
+ * @requires Authentication
14
+ */
15
+ getColonies(characterId: number): Promise<PlanetaryColony[]>;
16
+ /**
17
+ * Retrieves the full layout of a planetary colony including pins, links, and routes.
18
+ *
19
+ * @param characterId - The ID of the character who owns the colony
20
+ * @param planetId - The ID of the planet to get the colony layout for
21
+ * @returns The colony layout with pins, links, and routes
22
+ * @requires Authentication
23
+ */
24
+ getColonyLayout(characterId: number, planetId: number): Promise<ColonyLayout>;
25
+ /**
26
+ * Retrieves the list of customs offices owned by a corporation.
27
+ *
28
+ * @param corporationId - The ID of the corporation whose customs offices to fetch
29
+ * @returns A list of the corporation's customs offices with their settings
30
+ * @requires Authentication
31
+ */
32
+ getCorporationCustomsOffices(corporationId: number): Promise<CustomsOffice[]>;
33
+ /**
34
+ * Retrieves information about a planetary interaction schematic, including its inputs and outputs.
35
+ *
36
+ * @param schematicId - The ID of the schematic to look up
37
+ * @returns The schematic details including cycle time, inputs, and outputs
38
+ */
39
+ getSchematicInformation(schematicId: number): Promise<SchematicInfo>;
40
+ fetchAllColonies(characterId: number, concurrency?: number): Promise<PlanetaryColony[]>;
41
+ fetchAllCorporationCustomsOffices(corporationId: number, concurrency?: number): Promise<CustomsOffice[]>;
42
+ streamColonies(characterId: number): AsyncGenerator<PageResult<PlanetaryColony>, void, undefined>;
43
+ streamCorporationCustomsOffices(corporationId: number): AsyncGenerator<PageResult<CustomsOffice>, void, undefined>;
44
+ }
45
+ //# sourceMappingURL=PiClient.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { routeEndpoints } from '../core/endpoints/routeEndpoints.mjs';
4
+ export interface RouteOptions {
5
+ preference?: 'Shorter' | 'Safer' | 'LessSecure';
6
+ avoid_systems?: number[];
7
+ connections?: {
8
+ from: number;
9
+ to: number;
10
+ }[];
11
+ security_penalty?: number;
12
+ }
13
+ export declare class RouteClient extends BaseEsiClient<typeof routeEndpoints> {
14
+ constructor(client: ApiClient);
15
+ /**
16
+ * Calculates a route between two solar systems, returning the list of system IDs along the path via POST.
17
+ *
18
+ * @param origin - The solar system ID to start the route from
19
+ * @param destination - The solar system ID to route to
20
+ * @param options - Optional routing preferences such as route type, avoided systems, and custom connections
21
+ * @returns An ordered list of solar system IDs representing the route
22
+ */
23
+ getRoute(origin: number, destination: number, options?: RouteOptions): Promise<number[]>;
24
+ }
25
+ //# sourceMappingURL=RouteClient.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { ApiClient } from '../core/ApiClient.mjs';
2
+ import { BaseEsiClient } from './BaseEsiClient.mjs';
3
+ import { searchEndpoints } from '../core/endpoints/searchEndpoints.mjs';
4
+ import { SearchResult } from '../types/api-responses.mjs';
5
+ export declare class SearchClient extends BaseEsiClient<typeof searchEndpoints> {
6
+ constructor(client: ApiClient);
7
+ /**
8
+ * Searches for entities matching a query string on behalf of a character.
9
+ *
10
+ * @param characterId - The ID of the character performing the search
11
+ * @param searchString - The search query string to match against
12
+ * @returns Search results grouped by entity category
13
+ * @requires Authentication
14
+ */
15
+ characterSearch(characterId: number, searchString: string, categories: string[]): Promise<SearchResult>;
16
+ }
17
+ //# sourceMappingURL=SearchClient.d.ts.map