@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,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AssetsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const assetEndpoints_1 = require("../core/endpoints/assetEndpoints");
6
- class AssetsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, assetEndpoints_1.assetEndpoints);
9
- }
10
- /**
11
- * Retrieve a list of assets owned by a character.
12
- *
13
- * @param characterId - The ID of the character whose assets to retrieve
14
- * @returns A list of the character's assets including type, quantity, and location
15
- * @requires Authentication
16
- */
17
- getCharacterAssets(characterId) {
18
- return this.api.getCharacterAssets(characterId);
19
- }
20
- /**
21
- * Look up the locations of specific assets owned by a character via a bulk POST request.
22
- *
23
- * @param characterId - The ID of the character who owns the assets
24
- * @param itemIds - An array of item IDs to look up locations for
25
- * @returns Location information for each requested asset
26
- * @requires Authentication
27
- */
28
- postCharacterAssetLocations(characterId, itemIds) {
29
- return this.api.postCharacterAssetLocations(characterId, itemIds);
30
- }
31
- /**
32
- * Look up the names of specific assets owned by a character via a bulk POST request.
33
- *
34
- * @param characterId - The ID of the character who owns the assets
35
- * @param itemIds - An array of item IDs to look up names for
36
- * @returns The user-assigned names for each requested asset
37
- * @requires Authentication
38
- */
39
- postCharacterAssetNames(characterId, itemIds) {
40
- return this.api.postCharacterAssetNames(characterId, itemIds);
41
- }
42
- /**
43
- * Retrieve a list of assets owned by a corporation.
44
- *
45
- * @param corporationId - The ID of the corporation whose assets to retrieve
46
- * @returns A list of the corporation's assets including type, quantity, and location
47
- * @requires Authentication
48
- */
49
- getCorporationAssets(corporationId) {
50
- return this.api.getCorporationAssets(corporationId);
51
- }
52
- /**
53
- * Look up the locations of specific assets owned by a corporation via a bulk POST request.
54
- *
55
- * @param corporationId - The ID of the corporation that owns the assets
56
- * @param itemIds - An array of item IDs to look up locations for
57
- * @returns Location information for each requested asset
58
- * @requires Authentication
59
- */
60
- postCorporationAssetLocations(corporationId, itemIds) {
61
- return this.api.postCorporationAssetLocations(corporationId, itemIds);
62
- }
63
- /**
64
- * Look up the names of specific assets owned by a corporation via a bulk POST request.
65
- *
66
- * @param corporationId - The ID of the corporation that owns the assets
67
- * @param itemIds - An array of item IDs to look up names for
68
- * @returns The user-assigned names for each requested asset
69
- * @requires Authentication
70
- */
71
- postCorporationAssetNames(corporationId, itemIds) {
72
- return this.api.postCorporationAssetNames(corporationId, itemIds);
73
- }
74
- streamCharacterAssets(characterId) {
75
- return this.streamEndpoint('getCharacterAssets', characterId);
76
- }
77
- streamCorporationAssets(corporationId) {
78
- return this.streamEndpoint('getCorporationAssets', corporationId);
79
- }
80
- }
81
- exports.AssetsClient = AssetsClient;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseEsiClient = void 0;
4
- const createClient_1 = require("../core/endpoints/createClient");
5
- const buildEndpointPath_1 = require("../core/endpoints/buildEndpointPath");
6
- const AsyncPaginationIterator_1 = require("../core/pagination/AsyncPaginationIterator");
7
- class BaseEsiClient {
8
- api;
9
- _client;
10
- _endpoints;
11
- _metaApi;
12
- _safeApi;
13
- constructor(client, endpoints) {
14
- this._client = client;
15
- this._endpoints = endpoints;
16
- this.api = (0, createClient_1.createClient)(client, endpoints);
17
- }
18
- streamEndpoint(endpointName, ...args) {
19
- const def = this._endpoints[endpointName];
20
- const { path, body } = (0, buildEndpointPath_1.buildEndpointPath)(def, args, this._client.getDatasource());
21
- return (0, AsyncPaginationIterator_1.fetchPages)(this._client, path, def.method, def.requiresAuth, body);
22
- }
23
- withMetadata() {
24
- if (!this._metaApi) {
25
- this._metaApi = (0, createClient_1.createClient)(this._client, this._endpoints, {
26
- returnMetadata: true,
27
- });
28
- }
29
- return this._metaApi;
30
- }
31
- withSafeMode() {
32
- if (!this._safeApi) {
33
- this._safeApi = (0, createClient_1.createClient)(this._client, this._endpoints, {
34
- safeMode: true,
35
- });
36
- }
37
- return this._safeApi;
38
- }
39
- }
40
- exports.BaseEsiClient = BaseEsiClient;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalendarClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const calendarEndpoints_1 = require("../core/endpoints/calendarEndpoints");
6
- class CalendarClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, calendarEndpoints_1.calendarEndpoints);
9
- }
10
- /**
11
- * Retrieve a character's upcoming calendar events.
12
- *
13
- * @param characterId - The ID of the character whose calendar events to retrieve
14
- * @returns A list of upcoming calendar events
15
- * @requires Authentication
16
- */
17
- getCalendarEvents(characterId) {
18
- return this.api.getCalendarEvents(characterId);
19
- }
20
- /**
21
- * Retrieve detailed information about a specific calendar event for a character.
22
- *
23
- * @param characterId - The ID of the character who owns the event
24
- * @param eventId - The ID of the calendar event to retrieve
25
- * @returns Detailed event information including title, description, and timing
26
- * @requires Authentication
27
- */
28
- getCalendarEventById(characterId, eventId) {
29
- return this.api.getCalendarEventById(characterId, eventId);
30
- }
31
- /**
32
- * Set a character's response to a calendar event (accepted, declined, or tentative).
33
- *
34
- * @param characterId - The ID of the character responding to the event
35
- * @param eventId - The ID of the calendar event to respond to
36
- * @param response - The response status to set for this event
37
- * @requires Authentication
38
- */
39
- respondToCalendarEvent(characterId, eventId, response) {
40
- return this.api.respondToCalendarEvent(characterId, eventId, response);
41
- }
42
- /**
43
- * Retrieve the list of attendees and their response statuses for a calendar event.
44
- *
45
- * @param characterId - The ID of the character who owns the event
46
- * @param eventId - The ID of the calendar event whose attendees to retrieve
47
- * @returns A list of attendees with their response statuses
48
- * @requires Authentication
49
- */
50
- getEventAttendees(characterId, eventId) {
51
- return this.api.getEventAttendees(characterId, eventId);
52
- }
53
- }
54
- exports.CalendarClient = CalendarClient;
@@ -1,149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CharacterClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const characterEndpoints_1 = require("../core/endpoints/characterEndpoints");
6
- class CharacterClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, characterEndpoints_1.characterEndpoints);
9
- }
10
- /**
11
- * Retrieve publicly available information about a character.
12
- *
13
- * @param characterId - The ID of the character to look up
14
- * @returns Public character information including name, corporation, and birthday
15
- */
16
- getCharacterPublicInfo(characterId) {
17
- return this.api.getCharacterPublicInfo(characterId);
18
- }
19
- /**
20
- * Retrieve a character's active research agents and their accumulated research points.
21
- *
22
- * @param characterId - The ID of the character whose research agents to retrieve
23
- * @returns A list of research agents with skill, points, and start date information
24
- * @requires Authentication
25
- */
26
- getCharacterAgentsResearch(characterId) {
27
- return this.api.getAgentsResearch(characterId);
28
- }
29
- /**
30
- * Retrieve blueprints owned by a character.
31
- *
32
- * @param characterId - The ID of the character whose blueprints to retrieve
33
- * @returns A list of blueprints with material/time efficiency and run information
34
- * @requires Authentication
35
- */
36
- getCharacterBlueprints(characterId) {
37
- return this.api.getBlueprints(characterId);
38
- }
39
- /**
40
- * Retrieve the corporation membership history of a character.
41
- *
42
- * @param characterId - The ID of the character whose corporation history to retrieve
43
- * @returns A chronological list of corporations the character has been a member of
44
- * @requires Authentication
45
- */
46
- getCharacterCorporationHistory(characterId) {
47
- return this.api.getCorporationHistory(characterId);
48
- }
49
- /**
50
- * Calculate the CSPA (CONCORD Spam Prevention Act) charge cost for sending mail to a set of characters.
51
- *
52
- * @param characterId - The ID of the character who would be sending mail
53
- * @param characters - An array of character IDs to calculate CSPA charges for
54
- * @returns The total CSPA charge cost in ISK
55
- * @requires Authentication
56
- */
57
- postCspaChargeCost(characterId, characters) {
58
- return this.api.calculateCspaChargeCost(characterId, characters);
59
- }
60
- /**
61
- * Retrieve a character's current jump fatigue and activation cooldown timers.
62
- *
63
- * @param characterId - The ID of the character whose jump fatigue to retrieve
64
- * @returns Jump fatigue expiry dates and last jump information
65
- * @requires Authentication
66
- */
67
- getCharacterFatigue(characterId) {
68
- return this.api.getJumpFatigue(characterId);
69
- }
70
- /**
71
- * Retrieve medals awarded to a character.
72
- *
73
- * @param characterId - The ID of the character whose medals to retrieve
74
- * @returns A list of medals the character has been awarded
75
- * @requires Authentication
76
- */
77
- getCharacterMedals(characterId) {
78
- return this.api.getMedals(characterId);
79
- }
80
- /**
81
- * Retrieve a character's notifications from the notification center.
82
- *
83
- * @param characterId - The ID of the character whose notifications to retrieve
84
- * @returns A list of notifications including type, sender, and timestamp
85
- * @requires Authentication
86
- */
87
- getCharacterNotifications(characterId) {
88
- return this.api.getNotifications(characterId);
89
- }
90
- /**
91
- * Retrieve notifications related to contact changes for a character.
92
- *
93
- * @param characterId - The ID of the character whose contact notifications to retrieve
94
- * @returns A list of contact-related notifications
95
- * @requires Authentication
96
- */
97
- getCharacterNotificationsContacts(characterId) {
98
- return this.api.getContactNotifications(characterId);
99
- }
100
- /**
101
- * Retrieve portrait image URLs for a character at various resolutions.
102
- *
103
- * @param characterId - The ID of the character whose portrait to retrieve
104
- * @returns Portrait URLs at different resolutions (64x64, 128x128, 256x256, 512x512)
105
- */
106
- getCharacterPortrait(characterId) {
107
- return this.api.getPortrait(characterId);
108
- }
109
- /**
110
- * Retrieve the corporation roles assigned to a character.
111
- *
112
- * @param characterId - The ID of the character whose roles to retrieve
113
- * @returns The character's roles including regular, HQ, base, and other role categories
114
- * @requires Authentication
115
- */
116
- getCharacterRoles(characterId) {
117
- return this.api.getRoles(characterId);
118
- }
119
- /**
120
- * Retrieve a character's standings with NPC factions, corporations, and agents.
121
- *
122
- * @param characterId - The ID of the character whose standings to retrieve
123
- * @returns A list of standings with from_type, from_id, and standing value
124
- * @requires Authentication
125
- */
126
- getCharacterStandings(characterId) {
127
- return this.api.getStandings(characterId);
128
- }
129
- /**
130
- * Retrieve the corporation titles held by a character.
131
- *
132
- * @param characterId - The ID of the character whose titles to retrieve
133
- * @returns A list of corporation titles assigned to the character
134
- * @requires Authentication
135
- */
136
- getCharacterTitles(characterId) {
137
- return this.api.getTitles(characterId);
138
- }
139
- /**
140
- * Look up the current corporation, alliance, and faction affiliations for a set of characters via a bulk POST request.
141
- *
142
- * @param characters - An array of character IDs to look up affiliations for
143
- * @returns Affiliation data including corporation, alliance, and faction IDs for each character
144
- */
145
- postCharacterAffiliation(characters) {
146
- return this.api.postCharacterAffiliation(characters);
147
- }
148
- }
149
- exports.CharacterClient = CharacterClient;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClonesClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const cloneEndpoints_1 = require("../core/endpoints/cloneEndpoints");
6
- class ClonesClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, cloneEndpoints_1.cloneEndpoints);
9
- }
10
- /**
11
- * Retrieve a character's clone state, including home station and available jump clones.
12
- *
13
- * @param characterId - The ID of the character whose clone information to retrieve
14
- * @returns Clone information including home location and jump clone details
15
- * @requires Authentication
16
- */
17
- getClones(characterId) {
18
- return this.api.getClones(characterId);
19
- }
20
- /**
21
- * Retrieve the implants currently installed in a character's active clone.
22
- *
23
- * @param characterId - The ID of the character whose implants to retrieve
24
- * @returns An array of type IDs for the currently installed implants
25
- * @requires Authentication
26
- */
27
- getImplants(characterId) {
28
- return this.api.getImplants(characterId);
29
- }
30
- }
31
- exports.ClonesClient = ClonesClient;
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContactsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const contactEndpoints_1 = require("../core/endpoints/contactEndpoints");
6
- class ContactsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, contactEndpoints_1.contactEndpoints);
9
- }
10
- /**
11
- * Retrieve contacts for an alliance.
12
- *
13
- * @param allianceId - The ID of the alliance whose contacts to retrieve
14
- * @returns A list of alliance contacts with standings and contact types
15
- * @requires Authentication
16
- */
17
- getAllianceContacts(allianceId) {
18
- return this.api.getAllianceContacts(allianceId);
19
- }
20
- /**
21
- * Retrieve custom contact labels for an alliance.
22
- *
23
- * @param allianceId - The ID of the alliance whose contact labels to retrieve
24
- * @returns A list of custom labels used to categorize alliance contacts
25
- * @requires Authentication
26
- */
27
- getAllianceContactLabels(allianceId) {
28
- return this.api.getAllianceContactLabels(allianceId);
29
- }
30
- /**
31
- * Delete contacts from a character's contact list.
32
- *
33
- * @param characterId - The ID of the character whose contacts to delete
34
- * @param contactIds - An array of contact IDs to remove
35
- * @requires Authentication
36
- */
37
- deleteCharacterContacts(characterId, contactIds) {
38
- return this.api.deleteCharacterContacts(characterId, contactIds.join(','));
39
- }
40
- /**
41
- * Retrieve a character's contact list.
42
- *
43
- * @param characterId - The ID of the character whose contacts to retrieve
44
- * @returns A list of character contacts with standings, labels, and contact types
45
- * @requires Authentication
46
- */
47
- getCharacterContacts(characterId) {
48
- return this.api.getCharacterContacts(characterId);
49
- }
50
- /**
51
- * Add contacts to a character's contact list via a POST request.
52
- *
53
- * @param characterId - The ID of the character to add contacts for
54
- * @param standing - Standing value for the contacts (-10 to 10)
55
- * @param contactIds - Array of character/corporation/alliance IDs to add
56
- * @returns An array of contact IDs that were successfully added
57
- * @requires Authentication
58
- */
59
- postCharacterContacts(characterId, standing, contactIds) {
60
- return this.api.addContacts(characterId, standing, contactIds);
61
- }
62
- /**
63
- * Update existing contacts in a character's contact list via a PUT request.
64
- *
65
- * @param characterId - The ID of the character whose contacts to update
66
- * @param standing - New standing value for the contacts (-10 to 10)
67
- * @param contactIds - Array of contact IDs to update
68
- * @requires Authentication
69
- */
70
- putCharacterContacts(characterId, standing, contactIds) {
71
- return this.api.editContacts(characterId, standing, contactIds);
72
- }
73
- /**
74
- * Retrieve custom contact labels for a character.
75
- *
76
- * @param characterId - The ID of the character whose contact labels to retrieve
77
- * @returns A list of custom labels used to categorize character contacts
78
- * @requires Authentication
79
- */
80
- getCharacterContactLabels(characterId) {
81
- return this.api.getCharacterContactLabels(characterId);
82
- }
83
- /**
84
- * Retrieve contacts for a corporation.
85
- *
86
- * @param corporationId - The ID of the corporation whose contacts to retrieve
87
- * @returns A list of corporation contacts with standings and contact types
88
- * @requires Authentication
89
- */
90
- getCorporationContacts(corporationId) {
91
- return this.api.getCorporationContacts(corporationId);
92
- }
93
- /**
94
- * Retrieve custom contact labels for a corporation.
95
- *
96
- * @param corporationId - The ID of the corporation whose contact labels to retrieve
97
- * @returns A list of custom labels used to categorize corporation contacts
98
- * @requires Authentication
99
- */
100
- getCorporationContactLabels(corporationId) {
101
- return this.api.getCorporationContactLabels(corporationId);
102
- }
103
- }
104
- exports.ContactsClient = ContactsClient;
@@ -1,111 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContractsClient = void 0;
4
- const BaseEsiClient_1 = require("./BaseEsiClient");
5
- const contractEndpoints_1 = require("../core/endpoints/contractEndpoints");
6
- class ContractsClient extends BaseEsiClient_1.BaseEsiClient {
7
- constructor(client) {
8
- super(client, contractEndpoints_1.contractEndpoints);
9
- }
10
- /**
11
- * Retrieve contracts issued by or assigned to a character.
12
- *
13
- * @param characterId - The ID of the character whose contracts to retrieve
14
- * @returns A list of contracts with type, status, and pricing information
15
- * @requires Authentication
16
- */
17
- getCharacterContracts(characterId) {
18
- return this.api.getCharacterContracts(characterId);
19
- }
20
- /**
21
- * Retrieve bids placed on an auction contract owned by a character.
22
- *
23
- * @param characterId - The ID of the character who owns the contract
24
- * @param contractId - The ID of the contract whose bids to retrieve
25
- * @returns A list of bids with bidder, amount, and timestamp
26
- * @requires Authentication
27
- */
28
- getCharacterContractBids(characterId, contractId) {
29
- return this.api.getCharacterContractBids(characterId, contractId);
30
- }
31
- /**
32
- * Retrieve the items included in a contract owned by a character.
33
- *
34
- * @param characterId - The ID of the character who owns the contract
35
- * @param contractId - The ID of the contract whose items to retrieve
36
- * @returns A list of items in the contract with type, quantity, and included/excluded status
37
- * @requires Authentication
38
- */
39
- getCharacterContractItems(characterId, contractId) {
40
- return this.api.getCharacterContractItems(characterId, contractId);
41
- }
42
- /**
43
- * Retrieve publicly available contracts in a specific region.
44
- *
45
- * @param regionId - The ID of the region whose public contracts to retrieve
46
- * @returns A list of public contracts in the region
47
- */
48
- getPublicContracts(regionId) {
49
- return this.api.getPublicContracts(regionId);
50
- }
51
- /**
52
- * Retrieve bids placed on a public auction contract.
53
- *
54
- * @param contractId - The ID of the public contract whose bids to retrieve
55
- * @returns A list of bids with bidder, amount, and timestamp
56
- */
57
- getPublicContractBids(contractId) {
58
- return this.api.getPublicContractBids(contractId);
59
- }
60
- /**
61
- * Retrieve the items included in a public contract.
62
- *
63
- * @param contractId - The ID of the public contract whose items to retrieve
64
- * @returns A list of items in the contract with type, quantity, and included/excluded status
65
- */
66
- getPublicContractItems(contractId) {
67
- return this.api.getPublicContractItems(contractId);
68
- }
69
- /**
70
- * Retrieve contracts issued by or assigned to a corporation.
71
- *
72
- * @param corporationId - The ID of the corporation whose contracts to retrieve
73
- * @returns A list of contracts with type, status, and pricing information
74
- * @requires Authentication
75
- */
76
- getCorporationContracts(corporationId) {
77
- return this.api.getCorporationContracts(corporationId);
78
- }
79
- /**
80
- * Retrieve bids placed on an auction contract owned by a corporation.
81
- *
82
- * @param corporationId - The ID of the corporation that owns the contract
83
- * @param contractId - The ID of the contract whose bids to retrieve
84
- * @returns A list of bids with bidder, amount, and timestamp
85
- * @requires Authentication
86
- */
87
- getCorporationContractBids(corporationId, contractId) {
88
- return this.api.getCorporationContractBids(corporationId, contractId);
89
- }
90
- /**
91
- * Retrieve the items included in a contract owned by a corporation.
92
- *
93
- * @param corporationId - The ID of the corporation that owns the contract
94
- * @param contractId - The ID of the contract whose items to retrieve
95
- * @returns A list of items in the contract with type, quantity, and included/excluded status
96
- * @requires Authentication
97
- */
98
- getCorporationContractItems(corporationId, contractId) {
99
- return this.api.getCorporationContractItems(corporationId, contractId);
100
- }
101
- streamPublicContracts(regionId) {
102
- return this.streamEndpoint('getPublicContracts', regionId);
103
- }
104
- streamCharacterContracts(characterId) {
105
- return this.streamEndpoint('getCharacterContracts', characterId);
106
- }
107
- streamCorporationContracts(corporationId) {
108
- return this.streamEndpoint('getCorporationContracts', corporationId);
109
- }
110
- }
111
- exports.ContractsClient = ContractsClient;