@lgriffin/esi.ts 7.4.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +100 -24
  3. package/dist/EsiClient.d.ts +3 -0
  4. package/dist/EsiClient.d.ts.map +1 -1
  5. package/dist/EsiClientBuilder.d.ts +1 -0
  6. package/dist/EsiClientBuilder.d.ts.map +1 -1
  7. package/dist/clients/AllianceClient.d.ts +3 -0
  8. package/dist/clients/AllianceClient.d.ts.map +1 -1
  9. package/dist/clients/BaseEsiClient.d.ts +1 -1
  10. package/dist/clients/BaseEsiClient.d.ts.map +1 -1
  11. package/dist/clients/CalendarClient.d.ts +3 -0
  12. package/dist/clients/CalendarClient.d.ts.map +1 -1
  13. package/dist/clients/CharacterClient.d.ts +10 -2
  14. package/dist/clients/CharacterClient.d.ts.map +1 -1
  15. package/dist/clients/ClonesClient.d.ts +2 -0
  16. package/dist/clients/ClonesClient.d.ts.map +1 -1
  17. package/dist/clients/ContactsClient.d.ts +7 -0
  18. package/dist/clients/ContactsClient.d.ts.map +1 -1
  19. package/dist/clients/CorporationsClient.d.ts +18 -0
  20. package/dist/clients/CorporationsClient.d.ts.map +1 -1
  21. package/dist/clients/FittingsClient.d.ts +2 -0
  22. package/dist/clients/FittingsClient.d.ts.map +1 -1
  23. package/dist/clients/FleetClient.d.ts +3 -0
  24. package/dist/clients/FleetClient.d.ts.map +1 -1
  25. package/dist/clients/IndustryClient.d.ts +9 -0
  26. package/dist/clients/IndustryClient.d.ts.map +1 -1
  27. package/dist/clients/LoyaltyClient.d.ts +3 -0
  28. package/dist/clients/LoyaltyClient.d.ts.map +1 -1
  29. package/dist/clients/MailClient.d.ts +6 -0
  30. package/dist/clients/MailClient.d.ts.map +1 -1
  31. package/dist/clients/MarketClient.d.ts +13 -22
  32. package/dist/clients/MarketClient.d.ts.map +1 -1
  33. package/dist/clients/PiClient.d.ts +3 -0
  34. package/dist/clients/PiClient.d.ts.map +1 -1
  35. package/dist/clients/SkillsClient.d.ts +2 -0
  36. package/dist/clients/SkillsClient.d.ts.map +1 -1
  37. package/dist/clients/WalletClient.d.ts +1 -0
  38. package/dist/clients/WalletClient.d.ts.map +1 -1
  39. package/dist/clients/WarsClient.d.ts +3 -0
  40. package/dist/clients/WarsClient.d.ts.map +1 -1
  41. package/dist/config/jest/globalSetup.d.ts.map +1 -1
  42. package/dist/config/jest/globalTeardown.d.ts.map +1 -1
  43. package/dist/core/ApiClient.d.ts +14 -6
  44. package/dist/core/ApiClient.d.ts.map +1 -1
  45. package/dist/core/ApiRequestHandler.d.ts +3 -11
  46. package/dist/core/ApiRequestHandler.d.ts.map +1 -1
  47. package/dist/core/IDeduplicator.d.ts +6 -0
  48. package/dist/core/IDeduplicator.d.ts.map +1 -0
  49. package/dist/core/IRetryStrategy.d.ts +5 -0
  50. package/dist/core/IRetryStrategy.d.ts.map +1 -0
  51. package/dist/core/RequestDeduplicator.d.ts +2 -1
  52. package/dist/core/RequestDeduplicator.d.ts.map +1 -1
  53. package/dist/core/RetryStrategy.d.ts +19 -0
  54. package/dist/core/RetryStrategy.d.ts.map +1 -0
  55. package/dist/core/circuitBreaker/CircuitBreaker.d.ts +11 -1
  56. package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -1
  57. package/dist/core/circuitBreaker/ICircuitBreaker.d.ts +23 -0
  58. package/dist/core/circuitBreaker/ICircuitBreaker.d.ts.map +1 -0
  59. package/dist/core/configureApiClient.d.ts +18 -0
  60. package/dist/core/configureApiClient.d.ts.map +1 -0
  61. package/dist/core/endpoints/EndpointDefinition.d.ts +2 -0
  62. package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
  63. package/dist/core/endpoints/calendarEndpoints.d.ts +1 -1
  64. package/dist/core/endpoints/characterEndpoints.d.ts +3 -3
  65. package/dist/core/endpoints/contactEndpoints.d.ts +7 -3
  66. package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -1
  67. package/dist/core/endpoints/corporationEndpoints.d.ts +4 -1
  68. package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
  69. package/dist/core/endpoints/createClient.d.ts +18 -1
  70. package/dist/core/endpoints/createClient.d.ts.map +1 -1
  71. package/dist/core/endpoints/dogmaEndpoints.d.ts +17 -0
  72. package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
  73. package/dist/core/endpoints/esi-scopes.generated.d.ts +1 -1
  74. package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
  75. package/dist/core/endpoints/fleetEndpoints.d.ts +5 -0
  76. package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -1
  77. package/dist/core/endpoints/mailEndpoints.d.ts +13 -0
  78. package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
  79. package/dist/core/endpoints/marketEndpoints.d.ts +29 -48
  80. package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
  81. package/dist/core/endpoints/piEndpoints.d.ts +3 -0
  82. package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
  83. package/dist/core/endpoints/universeEndpoints.d.ts +13 -2
  84. package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
  85. package/dist/core/endpoints/walletEndpoints.d.ts +4 -0
  86. package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
  87. package/dist/core/logger/logger.d.ts +2 -1
  88. package/dist/core/logger/logger.d.ts.map +1 -1
  89. package/dist/core/pagination/AsyncPaginationIterator.d.ts +4 -1
  90. package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
  91. package/dist/core/pagination/CursorPaginationHandler.d.ts +15 -6
  92. package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -1
  93. package/dist/core/pagination/PaginationHandler.d.ts +7 -6
  94. package/dist/core/pagination/PaginationHandler.d.ts.map +1 -1
  95. package/dist/core/rateLimiter/RateLimiter.d.ts +8 -2
  96. package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
  97. package/dist/core/requestPipeline/cachePolicy.d.ts +31 -0
  98. package/dist/core/requestPipeline/cachePolicy.d.ts.map +1 -0
  99. package/dist/core/requestPipeline/dependencies.d.ts +10 -0
  100. package/dist/core/requestPipeline/dependencies.d.ts.map +1 -0
  101. package/dist/core/requestPipeline/fetchExecution.d.ts +28 -0
  102. package/dist/core/requestPipeline/fetchExecution.d.ts.map +1 -0
  103. package/dist/core/requestPipeline/headers.d.ts +11 -0
  104. package/dist/core/requestPipeline/headers.d.ts.map +1 -0
  105. package/dist/core/requestPipeline/index.d.ts +10 -0
  106. package/dist/core/requestPipeline/index.d.ts.map +1 -0
  107. package/dist/core/requestPipeline/middlewareBridge.d.ts +15 -0
  108. package/dist/core/requestPipeline/middlewareBridge.d.ts.map +1 -0
  109. package/dist/core/requestPipeline/paginationOrchestration.d.ts +15 -0
  110. package/dist/core/requestPipeline/paginationOrchestration.d.ts.map +1 -0
  111. package/dist/core/requestPipeline/statusHandling.d.ts +18 -0
  112. package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -0
  113. package/dist/core/util/error.d.ts +6 -1
  114. package/dist/core/util/error.d.ts.map +1 -1
  115. package/dist/errors.d.ts +4 -0
  116. package/dist/errors.d.ts.map +1 -0
  117. package/dist/errors.js +196 -0
  118. package/dist/errors.js.map +1 -0
  119. package/dist/errors.mjs +146 -0
  120. package/dist/errors.mjs.map +1 -0
  121. package/dist/index.d.ts +9 -2
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +9937 -176
  124. package/dist/index.js.map +1 -0
  125. package/dist/index.mjs +9834 -0
  126. package/dist/index.mjs.map +1 -0
  127. package/dist/schemas/calendar.d.ts +1 -1
  128. package/dist/schemas/character.d.ts +1 -10
  129. package/dist/schemas/character.d.ts.map +1 -1
  130. package/dist/schemas/common.d.ts +9 -0
  131. package/dist/schemas/common.d.ts.map +1 -1
  132. package/dist/schemas/contacts.d.ts +2 -1
  133. package/dist/schemas/contacts.d.ts.map +1 -1
  134. package/dist/schemas/corporation.d.ts +4 -9
  135. package/dist/schemas/corporation.d.ts.map +1 -1
  136. package/dist/schemas/dogma.d.ts +17 -0
  137. package/dist/schemas/dogma.d.ts.map +1 -1
  138. package/dist/schemas/fleet.d.ts +1 -0
  139. package/dist/schemas/fleet.d.ts.map +1 -1
  140. package/dist/schemas/index.js +2085 -46
  141. package/dist/schemas/index.js.map +1 -0
  142. package/dist/schemas/index.mjs +1914 -0
  143. package/dist/schemas/index.mjs.map +1 -0
  144. package/dist/schemas/market.d.ts +91 -4
  145. package/dist/schemas/market.d.ts.map +1 -1
  146. package/dist/schemas/pi.d.ts +3 -0
  147. package/dist/schemas/pi.d.ts.map +1 -1
  148. package/dist/schemas/sovereignty.d.ts +2 -0
  149. package/dist/schemas/sovereignty.d.ts.map +1 -1
  150. package/dist/schemas/universe.d.ts +11 -2
  151. package/dist/schemas/universe.d.ts.map +1 -1
  152. package/dist/schemas/wallet.d.ts +2 -0
  153. package/dist/schemas/wallet.d.ts.map +1 -1
  154. package/dist/testing/TestDataFactory.d.ts.map +1 -1
  155. package/dist/testing/index.d.ts +2 -0
  156. package/dist/testing/index.d.ts.map +1 -0
  157. package/dist/testing/index.js +935 -0
  158. package/dist/testing/index.js.map +1 -0
  159. package/dist/testing/index.mjs +898 -0
  160. package/dist/testing/index.mjs.map +1 -0
  161. package/dist/types/character.d.ts +2 -1
  162. package/dist/types/character.d.ts.map +1 -1
  163. package/dist/types/generated/esi-spec.generated.d.ts +3 -3
  164. package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
  165. package/dist/types/generated/spec-alignment.check.d.ts +9 -0
  166. package/dist/types/generated/spec-alignment.check.d.ts.map +1 -1
  167. package/dist/types/market.d.ts +7 -1
  168. package/dist/types/market.d.ts.map +1 -1
  169. package/package.json +33 -6
  170. package/dist/EsiClient.js +0 -251
  171. package/dist/EsiClientBuilder.js +0 -217
  172. package/dist/clients/AccessListsClient.js +0 -20
  173. package/dist/clients/AllianceClient.js +0 -72
  174. package/dist/clients/AssetsClient.js +0 -81
  175. package/dist/clients/BaseEsiClient.js +0 -40
  176. package/dist/clients/CalendarClient.js +0 -54
  177. package/dist/clients/CharacterClient.js +0 -149
  178. package/dist/clients/ClonesClient.js +0 -31
  179. package/dist/clients/ContactsClient.js +0 -104
  180. package/dist/clients/ContractsClient.js +0 -111
  181. package/dist/clients/CorporationsClient.js +0 -227
  182. package/dist/clients/DogmaClient.js +0 -55
  183. package/dist/clients/FactionClient.js +0 -79
  184. package/dist/clients/FittingsClient.js +0 -42
  185. package/dist/clients/FleetClient.js +0 -162
  186. package/dist/clients/FreelanceJobsClient.js +0 -76
  187. package/dist/clients/IncursionsClient.js +0 -19
  188. package/dist/clients/IndustryClient.js +0 -88
  189. package/dist/clients/InsuranceClient.js +0 -19
  190. package/dist/clients/KillmailsClient.js +0 -47
  191. package/dist/clients/LocationClient.js +0 -41
  192. package/dist/clients/LoyaltyClient.js +0 -30
  193. package/dist/clients/MailClient.js +0 -108
  194. package/dist/clients/MarketClient.js +0 -131
  195. package/dist/clients/MercenaryClient.js +0 -27
  196. package/dist/clients/MetaClient.js +0 -56
  197. package/dist/clients/PiClient.js +0 -51
  198. package/dist/clients/RouteClient.js +0 -24
  199. package/dist/clients/SearchClient.js +0 -22
  200. package/dist/clients/SkillsClient.js +0 -41
  201. package/dist/clients/SkyhooksClient.js +0 -35
  202. package/dist/clients/SovereigntyClient.js +0 -27
  203. package/dist/clients/StatusClient.js +0 -19
  204. package/dist/clients/UiClient.js +0 -58
  205. package/dist/clients/UniverseClient.js +0 -277
  206. package/dist/clients/WalletClient.js +0 -82
  207. package/dist/clients/WarsClient.js +0 -37
  208. package/dist/config/configManager.js +0 -47
  209. package/dist/config/jest/globalSetup.js +0 -7
  210. package/dist/config/jest/globalTeardown.js +0 -7
  211. package/dist/config/jest/jest.setup.js +0 -29
  212. package/dist/core/ApiClient.js +0 -123
  213. package/dist/core/ApiClientBuilder.js +0 -54
  214. package/dist/core/ApiRequestHandler.js +0 -444
  215. package/dist/core/BatchRequestHandler.js +0 -66
  216. package/dist/core/ClientRegistry.js +0 -116
  217. package/dist/core/EsiDiagnostics.js +0 -47
  218. package/dist/core/RequestDeduplicator.js +0 -26
  219. package/dist/core/cache/ETagCacheManager.js +0 -184
  220. package/dist/core/cache/ICache.js +0 -2
  221. package/dist/core/circuitBreaker/CircuitBreaker.js +0 -156
  222. package/dist/core/constants.js +0 -7
  223. package/dist/core/endpoints/EndpointDefinition.js +0 -2
  224. package/dist/core/endpoints/accessListEndpoints.js +0 -13
  225. package/dist/core/endpoints/allianceEndpoints.js +0 -34
  226. package/dist/core/endpoints/assetEndpoints.js +0 -51
  227. package/dist/core/endpoints/buildEndpointPath.js +0 -44
  228. package/dist/core/endpoints/calendarEndpoints.js +0 -35
  229. package/dist/core/endpoints/characterEndpoints.js +0 -104
  230. package/dist/core/endpoints/cloneEndpoints.js +0 -21
  231. package/dist/core/endpoints/contactEndpoints.js +0 -72
  232. package/dist/core/endpoints/contractEndpoints.js +0 -70
  233. package/dist/core/endpoints/corporationEndpoints.js +0 -161
  234. package/dist/core/endpoints/createClient.js +0 -175
  235. package/dist/core/endpoints/dogmaEndpoints.js +0 -40
  236. package/dist/core/endpoints/esi-cache-ttls.generated.js +0 -133
  237. package/dist/core/endpoints/esi-rate-limit-groups.generated.js +0 -153
  238. package/dist/core/endpoints/esi-scopes.generated.js +0 -135
  239. package/dist/core/endpoints/factionEndpoints.js +0 -57
  240. package/dist/core/endpoints/fittingEndpoints.js +0 -27
  241. package/dist/core/endpoints/fleetEndpoints.js +0 -101
  242. package/dist/core/endpoints/freelanceJobsEndpoints.js +0 -51
  243. package/dist/core/endpoints/incursionEndpoints.js +0 -13
  244. package/dist/core/endpoints/industryEndpoints.js +0 -61
  245. package/dist/core/endpoints/insuranceEndpoints.js +0 -13
  246. package/dist/core/endpoints/killmailEndpoints.js +0 -28
  247. package/dist/core/endpoints/locationEndpoints.js +0 -27
  248. package/dist/core/endpoints/loyaltyEndpoints.js +0 -21
  249. package/dist/core/endpoints/mailEndpoints.js +0 -68
  250. package/dist/core/endpoints/marketEndpoints.js +0 -84
  251. package/dist/core/endpoints/mercenaryEndpoints.js +0 -19
  252. package/dist/core/endpoints/metaEndpoints.js +0 -12
  253. package/dist/core/endpoints/piEndpoints.js +0 -36
  254. package/dist/core/endpoints/routeEndpoints.js +0 -14
  255. package/dist/core/endpoints/searchEndpoints.js +0 -14
  256. package/dist/core/endpoints/skillEndpoints.js +0 -29
  257. package/dist/core/endpoints/skyhookEndpoints.js +0 -25
  258. package/dist/core/endpoints/sovereigntyEndpoints.js +0 -19
  259. package/dist/core/endpoints/statusEndpoints.js +0 -12
  260. package/dist/core/endpoints/uiEndpoints.js +0 -39
  261. package/dist/core/endpoints/universeEndpoints.js +0 -210
  262. package/dist/core/endpoints/walletEndpoints.js +0 -50
  263. package/dist/core/endpoints/warEndpoints.js +0 -28
  264. package/dist/core/logger/ILogger.js +0 -2
  265. package/dist/core/logger/logger.js +0 -16
  266. package/dist/core/logger/loggerUtil.js +0 -30
  267. package/dist/core/middleware/Middleware.js +0 -42
  268. package/dist/core/pagination/AsyncPaginationIterator.js +0 -27
  269. package/dist/core/pagination/CursorPaginationHandler.js +0 -148
  270. package/dist/core/pagination/PaginationHandler.js +0 -115
  271. package/dist/core/rateLimiter/IRateLimiter.js +0 -2
  272. package/dist/core/rateLimiter/RateLimiter.js +0 -307
  273. package/dist/core/util/error.js +0 -122
  274. package/dist/core/util/headersUtil.js +0 -37
  275. package/dist/core/util/retry.js +0 -9
  276. package/dist/core/util/sleep.js +0 -6
  277. package/dist/core/util/stringUtil.js +0 -6
  278. package/dist/core/util/testHelpers.js +0 -9
  279. package/dist/core/util/validation.js +0 -52
  280. package/dist/schemas/access-lists.js +0 -14
  281. package/dist/schemas/alliance.js +0 -28
  282. package/dist/schemas/assets.js +0 -26
  283. package/dist/schemas/calendar.js +0 -43
  284. package/dist/schemas/character.js +0 -122
  285. package/dist/schemas/clones.js +0 -21
  286. package/dist/schemas/common.js +0 -34
  287. package/dist/schemas/contacts.js +0 -15
  288. package/dist/schemas/contracts.js +0 -58
  289. package/dist/schemas/corporation.js +0 -192
  290. package/dist/schemas/dogma.js +0 -42
  291. package/dist/schemas/faction-warfare.js +0 -92
  292. package/dist/schemas/fittings.js +0 -15
  293. package/dist/schemas/fleet.js +0 -48
  294. package/dist/schemas/freelance-jobs.js +0 -99
  295. package/dist/schemas/incursions.js +0 -14
  296. package/dist/schemas/industry.js +0 -75
  297. package/dist/schemas/insurance.js +0 -12
  298. package/dist/schemas/killmails.js +0 -42
  299. package/dist/schemas/location.js +0 -20
  300. package/dist/schemas/loyalty.js +0 -20
  301. package/dist/schemas/mail.js +0 -38
  302. package/dist/schemas/market.js +0 -39
  303. package/dist/schemas/mercenary.js +0 -22
  304. package/dist/schemas/pi.js +0 -85
  305. package/dist/schemas/skills.js +0 -30
  306. package/dist/schemas/skyhooks.js +0 -30
  307. package/dist/schemas/sovereignty.js +0 -70
  308. package/dist/schemas/status.js +0 -10
  309. package/dist/schemas/universe.js +0 -245
  310. package/dist/schemas/wallet.js +0 -29
  311. package/dist/schemas/wars.js +0 -31
  312. package/dist/testing/TestDataFactory.js +0 -823
  313. package/dist/types/access-lists.js +0 -2
  314. package/dist/types/alliance.js +0 -2
  315. package/dist/types/api-responses.js +0 -73
  316. package/dist/types/assets.js +0 -2
  317. package/dist/types/branded.js +0 -6
  318. package/dist/types/calendar.js +0 -2
  319. package/dist/types/character.js +0 -2
  320. package/dist/types/clones.js +0 -2
  321. package/dist/types/common.js +0 -2
  322. package/dist/types/contacts.js +0 -2
  323. package/dist/types/contracts.js +0 -2
  324. package/dist/types/corporation.js +0 -2
  325. package/dist/types/dogma.js +0 -2
  326. package/dist/types/faction-warfare.js +0 -2
  327. package/dist/types/fittings.js +0 -2
  328. package/dist/types/fleet.js +0 -2
  329. package/dist/types/freelance-jobs.js +0 -2
  330. package/dist/types/generated/esi-spec.generated.js +0 -6
  331. package/dist/types/generated/spec-alignment.check.js +0 -14
  332. package/dist/types/incursions.js +0 -2
  333. package/dist/types/industry.js +0 -2
  334. package/dist/types/insurance.js +0 -2
  335. package/dist/types/killmails.js +0 -2
  336. package/dist/types/location.js +0 -2
  337. package/dist/types/loyalty.js +0 -2
  338. package/dist/types/mail.js +0 -2
  339. package/dist/types/market.js +0 -2
  340. package/dist/types/mercenary.js +0 -2
  341. package/dist/types/pi.js +0 -2
  342. package/dist/types/skills.js +0 -2
  343. package/dist/types/skyhooks.js +0 -2
  344. package/dist/types/sovereignty.js +0 -2
  345. package/dist/types/status.js +0 -2
  346. package/dist/types/universe.js +0 -2
  347. package/dist/types/wallet.js +0 -2
  348. package/dist/types/wars.js +0 -2
@@ -1,227 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CorporationsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const corporationEndpoints_1 = require("../core/endpoints/corporationEndpoints");
6
- class CorporationsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, corporationEndpoints_1.corporationEndpoints);
9
- }
10
- /**
11
- * Retrieve public information about a corporation.
12
- *
13
- * @param corporationId - The ID of the corporation to look up
14
- * @returns Public corporation information including name, ticker, member count, and CEO
15
- */
16
- getCorporationInfo(corporationId) {
17
- return this.api.getCorporationInfo(corporationId);
18
- }
19
- /**
20
- * Retrieve the alliance membership history of a corporation.
21
- *
22
- * @param corporationId - The ID of the corporation whose alliance history to retrieve
23
- * @returns A chronological list of alliances the corporation has been a member of
24
- */
25
- getCorporationAllianceHistory(corporationId) {
26
- return this.api.getCorporationAllianceHistory(corporationId);
27
- }
28
- /**
29
- * Retrieve blueprints owned by a corporation.
30
- *
31
- * @param corporationId - The ID of the corporation whose blueprints to retrieve
32
- * @returns A list of blueprints with material/time efficiency and run information
33
- * @requires Authentication
34
- */
35
- getCorporationBlueprints(corporationId) {
36
- return this.api.getCorporationBlueprints(corporationId);
37
- }
38
- /**
39
- * Retrieve audit log secure container (ALSC) logs for a corporation.
40
- *
41
- * @param corporationId - The ID of the corporation whose container logs to retrieve
42
- * @returns A list of container access logs with action, character, and timestamp details
43
- * @requires Authentication
44
- */
45
- getCorporationAlscLogs(corporationId) {
46
- return this.api.getCorporationAlscLogs(corporationId);
47
- }
48
- /**
49
- * Retrieve the hangar and wallet division names for a corporation.
50
- *
51
- * @param corporationId - The ID of the corporation whose divisions to retrieve
52
- * @returns Hangar and wallet division configurations with custom names
53
- * @requires Authentication
54
- */
55
- getCorporationDivisions(corporationId) {
56
- return this.api.getCorporationDivisions(corporationId);
57
- }
58
- /**
59
- * Retrieve the industrial facilities owned by a corporation.
60
- *
61
- * @param corporationId - The ID of the corporation whose facilities to retrieve
62
- * @returns A list of corporation-owned facilities with type and solar system information
63
- * @requires Authentication
64
- */
65
- getCorporationFacilities(corporationId) {
66
- return this.api.getCorporationFacilities(corporationId);
67
- }
68
- /**
69
- * Retrieve icon URLs for a corporation at various resolutions.
70
- *
71
- * @param corporationId - The ID of the corporation whose icons to retrieve
72
- * @returns Icon URLs at 64x64, 128x128, and 256x256 resolutions
73
- */
74
- getCorporationIcon(corporationId) {
75
- return this.api.getCorporationIcon(corporationId);
76
- }
77
- /**
78
- * Retrieve medals created by a corporation.
79
- *
80
- * @param corporationId - The ID of the corporation whose medals to retrieve
81
- * @returns A list of medals defined by the corporation
82
- * @requires Authentication
83
- */
84
- getCorporationMedals(corporationId) {
85
- return this.api.getCorporationMedals(corporationId);
86
- }
87
- /**
88
- * Retrieve medals that have been issued to members by a corporation.
89
- *
90
- * @param corporationId - The ID of the corporation whose issued medals to retrieve
91
- * @returns A list of medals issued to corporation members with recipient and issuer details
92
- * @requires Authentication
93
- */
94
- getCorporationIssuedMedals(corporationId) {
95
- return this.api.getCorporationIssuedMedals(corporationId);
96
- }
97
- /**
98
- * Retrieve the character IDs of all members in a corporation.
99
- *
100
- * @param corporationId - The ID of the corporation whose members to retrieve
101
- * @returns An array of character IDs for all corporation members
102
- * @requires Authentication
103
- */
104
- getCorporationMembers(corporationId) {
105
- return this.api.getCorporationMembers(corporationId);
106
- }
107
- /**
108
- * Retrieve the maximum number of members a corporation can have based on its current skills.
109
- *
110
- * @param corporationId - The ID of the corporation whose member limit to retrieve
111
- * @returns The maximum member count for the corporation
112
- * @requires Authentication
113
- */
114
- getCorporationMemberLimit(corporationId) {
115
- return this.api.getCorporationMemberLimit(corporationId);
116
- }
117
- /**
118
- * Retrieve the titles assigned to each member of a corporation.
119
- *
120
- * @param corporationId - The ID of the corporation whose member titles to retrieve
121
- * @returns A list of members and their assigned title IDs
122
- * @requires Authentication
123
- */
124
- getCorporationMemberTitles(corporationId) {
125
- return this.api.getCorporationMembersTitles(corporationId);
126
- }
127
- /**
128
- * Retrieve tracking information for corporation members including last login and location.
129
- *
130
- * @param corporationId - The ID of the corporation whose member tracking data to retrieve
131
- * @returns A list of members with login times, ship types, and location details
132
- * @requires Authentication
133
- */
134
- getCorporationMemberTracking(corporationId) {
135
- return this.api.getCorporationMemberTracking(corporationId);
136
- }
137
- /**
138
- * Retrieve the roles assigned to each member of a corporation.
139
- *
140
- * @param corporationId - The ID of the corporation whose member roles to retrieve
141
- * @returns A list of members and their assigned roles across all role categories
142
- * @requires Authentication
143
- */
144
- getCorporationRoles(corporationId) {
145
- return this.api.getCorporationMemberRoles(corporationId);
146
- }
147
- /**
148
- * Retrieve the history of role changes for members of a corporation.
149
- *
150
- * @param corporationId - The ID of the corporation whose role change history to retrieve
151
- * @returns A chronological list of role changes with before/after states and issuer details
152
- * @requires Authentication
153
- */
154
- getCorporationRolesHistory(corporationId) {
155
- return this.api.getCorporationMemberRolesHistory(corporationId);
156
- }
157
- /**
158
- * Retrieve the shareholders of a corporation, including characters and corporations holding shares.
159
- *
160
- * @param corporationId - The ID of the corporation whose shareholders to retrieve
161
- * @returns A list of shareholders with share counts and holder types
162
- * @requires Authentication
163
- */
164
- getCorporationShareholders(corporationId) {
165
- return this.api.getCorporationShareholders(corporationId);
166
- }
167
- /**
168
- * Retrieve a corporation's standings with NPC factions, corporations, and agents.
169
- *
170
- * @param corporationId - The ID of the corporation whose standings to retrieve
171
- * @returns A list of standings with from_type, from_id, and standing value
172
- * @requires Authentication
173
- */
174
- getCorporationStandings(corporationId) {
175
- return this.api.getCorporationStandings(corporationId);
176
- }
177
- /**
178
- * Retrieve the list of starbases (POSes) owned by a corporation.
179
- *
180
- * @param corporationId - The ID of the corporation whose starbases to retrieve
181
- * @returns A list of starbases with type, system, and state information
182
- * @requires Authentication
183
- */
184
- getCorporationStarbases(corporationId) {
185
- return this.api.getCorporationStarbases(corporationId);
186
- }
187
- /**
188
- * Retrieve detailed configuration and fuel information for a specific starbase (POS).
189
- *
190
- * @param corporationId - The ID of the corporation that owns the starbase
191
- * @param starbaseId - The ID of the starbase to retrieve details for
192
- * @returns Detailed starbase information including fuel levels and access settings
193
- * @requires Authentication
194
- */
195
- getCorporationStarbaseDetail(corporationId, starbaseId) {
196
- return this.api.getCorporationStarbaseDetail(corporationId, starbaseId);
197
- }
198
- /**
199
- * Retrieve citadel and other upwell structures owned by a corporation.
200
- *
201
- * @param corporationId - The ID of the corporation whose structures to retrieve
202
- * @returns A list of structures with type, location, state, and service information
203
- * @requires Authentication
204
- */
205
- getCorporationStructures(corporationId) {
206
- return this.api.getCorporationStructures(corporationId);
207
- }
208
- /**
209
- * Retrieve the titles defined by a corporation and their associated roles.
210
- *
211
- * @param corporationId - The ID of the corporation whose titles to retrieve
212
- * @returns A list of corporation titles with names and granted roles
213
- * @requires Authentication
214
- */
215
- getCorporationTitles(corporationId) {
216
- return this.api.getCorporationTitles(corporationId);
217
- }
218
- /**
219
- * Retrieve a list of all NPC corporation IDs in EVE Online.
220
- *
221
- * @returns An array of NPC corporation IDs
222
- */
223
- getNpcCorporations() {
224
- return this.api.getNpcCorporations();
225
- }
226
- }
227
- exports.CorporationsClient = CorporationsClient;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DogmaClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const dogmaEndpoints_1 = require("../core/endpoints/dogmaEndpoints");
6
- class DogmaClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, dogmaEndpoints_1.dogmaEndpoints);
9
- }
10
- /**
11
- * Retrieves a list of all dogma attribute IDs.
12
- *
13
- * @returns An array of dogma attribute IDs
14
- */
15
- getAttributes() {
16
- return this.api.getAttributes();
17
- }
18
- /**
19
- * Retrieves detailed information about a specific dogma attribute.
20
- *
21
- * @param attributeId - The ID of the dogma attribute to look up
22
- * @returns Detailed information about the dogma attribute
23
- */
24
- getAttributeById(attributeId) {
25
- return this.api.getAttributeById(attributeId);
26
- }
27
- /**
28
- * Retrieves the dynamic dogma information for a specific mutated item, including its modified attributes.
29
- *
30
- * @param typeId - The type ID of the item
31
- * @param itemId - The item ID of the specific dynamic item
32
- * @returns Dynamic dogma information for the mutated item
33
- */
34
- getDynamicItemInfo(typeId, itemId) {
35
- return this.api.getDynamicItemInfo(typeId, itemId);
36
- }
37
- /**
38
- * Retrieves a list of all dogma effect IDs.
39
- *
40
- * @returns An array of dogma effect IDs
41
- */
42
- getEffects() {
43
- return this.api.getEffects();
44
- }
45
- /**
46
- * Retrieves detailed information about a specific dogma effect.
47
- *
48
- * @param effectId - The ID of the dogma effect to look up
49
- * @returns Detailed information about the dogma effect
50
- */
51
- getEffectById(effectId) {
52
- return this.api.getEffectById(effectId);
53
- }
54
- }
55
- exports.DogmaClient = DogmaClient;
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FactionClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const factionEndpoints_1 = require("../core/endpoints/factionEndpoints");
6
- class FactionClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, factionEndpoints_1.factionEndpoints);
9
- }
10
- /**
11
- * Retrieves the top characters in faction warfare leaderboards.
12
- *
13
- * @returns Faction warfare character leaderboard rankings
14
- */
15
- getLeaderboardsCharacters() {
16
- return this.api.getCharacters();
17
- }
18
- /**
19
- * Retrieves the top corporations in faction warfare leaderboards.
20
- *
21
- * @returns Faction warfare corporation leaderboard rankings
22
- */
23
- getLeaderboardsCorporations() {
24
- return this.api.getCorporations();
25
- }
26
- /**
27
- * Retrieves the overall faction warfare leaderboards across all factions.
28
- *
29
- * @returns Overall faction warfare leaderboard rankings
30
- */
31
- getLeaderboardsOverall() {
32
- return this.api.getOverall();
33
- }
34
- /**
35
- * Retrieves faction warfare statistics for all factions, including kill and victory point totals.
36
- *
37
- * @returns An array of per-faction warfare statistics
38
- */
39
- getStats() {
40
- return this.api.getStats();
41
- }
42
- /**
43
- * Retrieves faction warfare statistics for a specific character, including enlistment info and kill counts.
44
- *
45
- * @param characterId - The ID of the character
46
- * @returns Faction warfare statistics for the character
47
- * @requires Authentication
48
- */
49
- getCharacterStats(characterId) {
50
- return this.api.getCharacterStats(characterId);
51
- }
52
- /**
53
- * Retrieves faction warfare statistics for a specific corporation, including kill counts and victory points.
54
- *
55
- * @param corporationId - The ID of the corporation
56
- * @returns Faction warfare statistics for the corporation
57
- * @requires Authentication
58
- */
59
- getCorporationStats(corporationId) {
60
- return this.api.getCorporationStats(corporationId);
61
- }
62
- /**
63
- * Retrieves the current ownership and contested status of all faction warfare systems.
64
- *
65
- * @returns An array of faction warfare system statuses
66
- */
67
- getSystems() {
68
- return this.api.getSystems();
69
- }
70
- /**
71
- * Retrieves the list of active faction warfare wars, showing which factions are fighting each other.
72
- *
73
- * @returns An array of active faction warfare wars
74
- */
75
- getWars() {
76
- return this.api.getWars();
77
- }
78
- }
79
- exports.FactionClient = FactionClient;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FittingsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const fittingEndpoints_1 = require("../core/endpoints/fittingEndpoints");
6
- class FittingsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, fittingEndpoints_1.fittingEndpoints);
9
- }
10
- /**
11
- * Retrieves all saved ship fittings for a character.
12
- *
13
- * @param characterId - The ID of the character
14
- * @returns An array of the character's saved fittings
15
- * @requires Authentication
16
- */
17
- getFittings(characterId) {
18
- return this.api.getFittings(characterId);
19
- }
20
- /**
21
- * Creates a new saved ship fitting for a character via POST.
22
- *
23
- * @param characterId - The ID of the character
24
- * @param fittingData - The fitting details including ship type and module layout
25
- * @returns The ID of the newly created fitting
26
- * @requires Authentication
27
- */
28
- createFitting(characterId, fittingData) {
29
- return this.api.createFitting(characterId, fittingData);
30
- }
31
- /**
32
- * Deletes a saved ship fitting for a character.
33
- *
34
- * @param characterId - The ID of the character
35
- * @param fittingId - The ID of the fitting to delete
36
- * @requires Authentication
37
- */
38
- deleteFitting(characterId, fittingId) {
39
- return this.api.deleteFitting(characterId, fittingId);
40
- }
41
- }
42
- exports.FittingsClient = FittingsClient;
@@ -1,162 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FleetClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const fleetEndpoints_1 = require("../core/endpoints/fleetEndpoints");
6
- class FleetClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, fleetEndpoints_1.fleetEndpoints);
9
- }
10
- /**
11
- * Retrieves the fleet that a character is currently in, including their role and wing/squad assignment.
12
- *
13
- * @param characterId - The ID of the character
14
- * @returns Fleet membership information for the character
15
- * @requires Authentication
16
- */
17
- getCharacterFleetInfo(characterId) {
18
- return this.api.getCharacterFleetInfo(characterId);
19
- }
20
- /**
21
- * Retrieves detailed information about a fleet, including its MOTD and free-move setting.
22
- *
23
- * @param fleetId - The ID of the fleet
24
- * @returns Detailed fleet information
25
- * @requires Authentication
26
- */
27
- getFleetInformation(fleetId) {
28
- return this.api.getFleetInfo(fleetId);
29
- }
30
- /**
31
- * Updates fleet settings such as the MOTD and free-move toggle via PUT.
32
- *
33
- * @param fleetId - The ID of the fleet
34
- * @param body - The fleet settings to update
35
- * @requires Authentication
36
- */
37
- updateFleet(fleetId, body) {
38
- return this.api.updateFleet(fleetId, body);
39
- }
40
- /**
41
- * Retrieves all current members of a fleet, including their ship types and roles.
42
- *
43
- * @param fleetId - The ID of the fleet
44
- * @returns An array of fleet members
45
- * @requires Authentication
46
- */
47
- getFleetMembers(fleetId) {
48
- return this.api.getFleetMembers(fleetId);
49
- }
50
- /**
51
- * Sends an invitation to a character to join a fleet via POST.
52
- *
53
- * @param fleetId - The ID of the fleet
54
- * @param body - The invitation details including the character to invite and their role
55
- * @requires Authentication
56
- */
57
- createFleetInvitation(fleetId, body) {
58
- return this.api.createFleetInvitation(fleetId, body);
59
- }
60
- /**
61
- * Kicks a member from a fleet.
62
- *
63
- * @param fleetId - The ID of the fleet
64
- * @param memberId - The character ID of the member to kick
65
- * @requires Authentication
66
- */
67
- kickFleetMember(fleetId, memberId) {
68
- return this.api.kickFleetMember(fleetId, memberId);
69
- }
70
- /**
71
- * Moves a fleet member to a different wing, squad, or role via PUT.
72
- *
73
- * @param fleetId - The ID of the fleet
74
- * @param memberId - The character ID of the member to move
75
- * @param body - The target role, wing, and/or squad assignment
76
- * @requires Authentication
77
- */
78
- moveFleetMember(fleetId, memberId, body) {
79
- return this.api.moveFleetMember(fleetId, memberId, body);
80
- }
81
- /**
82
- * Deletes a squad from a fleet.
83
- *
84
- * @param fleetId - The ID of the fleet
85
- * @param squadId - The ID of the squad to delete
86
- * @requires Authentication
87
- */
88
- deleteFleetSquad(fleetId, squadId) {
89
- return this.api.deleteFleetSquad(fleetId, squadId);
90
- }
91
- /**
92
- * Renames a squad within a fleet via PUT.
93
- *
94
- * @param fleetId - The ID of the fleet
95
- * @param squadId - The ID of the squad to rename
96
- * @param name - The new name for the squad (max 10 characters)
97
- * @requires Authentication
98
- */
99
- renameFleetSquad(fleetId, squadId, name) {
100
- if (name.length > 10) {
101
- return Promise.reject(new Error(`Fleet squad name "${name}" exceeds ESI maximum of 10 characters`));
102
- }
103
- return this.api.renameFleetSquad(fleetId, squadId, name);
104
- }
105
- /**
106
- * Retrieves all wings and their squads for a fleet.
107
- *
108
- * @param fleetId - The ID of the fleet
109
- * @returns An array of fleet wings with their nested squads
110
- * @requires Authentication
111
- */
112
- getFleetWings(fleetId) {
113
- return this.api.getFleetWings(fleetId);
114
- }
115
- /**
116
- * Creates a new wing in a fleet via POST.
117
- *
118
- * @param fleetId - The ID of the fleet
119
- * @param body - The wing creation details
120
- * @returns The ID of the newly created wing
121
- * @requires Authentication
122
- */
123
- createFleetWing(fleetId, body) {
124
- return this.api.createFleetWing(fleetId, body);
125
- }
126
- /**
127
- * Deletes a wing from a fleet, along with all its squads.
128
- *
129
- * @param fleetId - The ID of the fleet
130
- * @param wingId - The ID of the wing to delete
131
- * @requires Authentication
132
- */
133
- deleteFleetWing(fleetId, wingId) {
134
- return this.api.deleteFleetWing(fleetId, wingId);
135
- }
136
- /**
137
- * Renames a wing within a fleet via PUT.
138
- *
139
- * @param fleetId - The ID of the fleet
140
- * @param wingId - The ID of the wing to rename
141
- * @param name - The new name for the wing (max 10 characters)
142
- * @requires Authentication
143
- */
144
- renameFleetWing(fleetId, wingId, name) {
145
- if (name.length > 10) {
146
- return Promise.reject(new Error(`Fleet wing name "${name}" exceeds ESI maximum of 10 characters`));
147
- }
148
- return this.api.renameFleetWing(fleetId, wingId, name);
149
- }
150
- /**
151
- * Creates a new squad under a wing in a fleet via POST.
152
- *
153
- * @param fleetId - The ID of the fleet
154
- * @param wingId - The ID of the wing to add the squad to
155
- * @returns The ID of the newly created squad
156
- * @requires Authentication
157
- */
158
- createFleetSquad(fleetId, wingId) {
159
- return this.api.createFleetSquad(fleetId, wingId);
160
- }
161
- }
162
- exports.FleetClient = FleetClient;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FreelanceJobsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const freelanceJobsEndpoints_1 = require("../core/endpoints/freelanceJobsEndpoints");
6
- class FreelanceJobsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, freelanceJobsEndpoints_1.freelanceJobsEndpoints);
9
- }
10
- /**
11
- * Retrieves a paginated listing of all publicly available freelance jobs.
12
- *
13
- * @param before - Optional cursor token for fetching the previous page of results
14
- * @param after - Optional cursor token for fetching the next page of results
15
- * @returns A listing of freelance jobs with cursor pagination metadata
16
- */
17
- getFreelanceJobs(before, after) {
18
- return this.api.getFreelanceJobs(before, after);
19
- }
20
- /**
21
- * Retrieves detailed information about a specific freelance job.
22
- *
23
- * @param jobId - The unique identifier of the freelance job
24
- * @returns Detailed information about the freelance job
25
- */
26
- getFreelanceJobById(jobId) {
27
- return this.api.getFreelanceJobById(jobId);
28
- }
29
- /**
30
- * Retrieves a paginated listing of freelance jobs associated with a specific character.
31
- *
32
- * @param characterId - The ID of the character
33
- * @param before - Optional cursor token for fetching the previous page of results
34
- * @param after - Optional cursor token for fetching the next page of results
35
- * @returns A listing of the character's freelance jobs with cursor pagination metadata
36
- * @requires Authentication
37
- */
38
- getCharacterFreelanceJobs(characterId, before, after) {
39
- return this.api.getCharacterFreelanceJobs(characterId, before, after);
40
- }
41
- /**
42
- * Retrieves a character's participation details for a specific freelance job.
43
- *
44
- * @param characterId - The ID of the character
45
- * @param jobId - The unique identifier of the freelance job
46
- * @returns The character's participation details for the job
47
- * @requires Authentication
48
- */
49
- getCharacterFreelanceJobParticipation(characterId, jobId) {
50
- return this.api.getCharacterFreelanceJobParticipation(characterId, jobId);
51
- }
52
- /**
53
- * Retrieves a paginated listing of freelance jobs associated with a specific corporation.
54
- *
55
- * @param corporationId - The ID of the corporation
56
- * @param before - Optional cursor token for fetching the previous page of results
57
- * @param after - Optional cursor token for fetching the next page of results
58
- * @returns A listing of the corporation's freelance jobs with cursor pagination metadata
59
- * @requires Authentication
60
- */
61
- getCorporationFreelanceJobs(corporationId, before, after) {
62
- return this.api.getCorporationFreelanceJobs(corporationId, before, after);
63
- }
64
- /**
65
- * Retrieves the list of participants from a corporation in a specific freelance job.
66
- *
67
- * @param corporationId - The ID of the corporation
68
- * @param jobId - The unique identifier of the freelance job
69
- * @returns An array of participants from the corporation in the job
70
- * @requires Authentication
71
- */
72
- getCorporationFreelanceJobParticipants(corporationId, jobId) {
73
- return this.api.getCorporationFreelanceJobParticipants(corporationId, jobId);
74
- }
75
- }
76
- exports.FreelanceJobsClient = FreelanceJobsClient;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncursionsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const incursionEndpoints_1 = require("../core/endpoints/incursionEndpoints");
6
- class IncursionsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, incursionEndpoints_1.incursionEndpoints);
9
- }
10
- /**
11
- * Retrieves all currently active incursions, including their staging systems and influence levels.
12
- *
13
- * @returns An array of active incursions
14
- */
15
- getIncursions() {
16
- return this.api.getIncursions();
17
- }
18
- }
19
- exports.IncursionsClient = IncursionsClient;