@lgriffin/esi.ts 1.0.0 → 4.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 (1581) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +555 -125
  3. package/dist/EsiClient.d.ts +111 -0
  4. package/dist/EsiClient.d.ts.map +1 -0
  5. package/dist/EsiClient.js +223 -0
  6. package/dist/EsiClientBuilder.d.ts +71 -0
  7. package/dist/EsiClientBuilder.d.ts.map +1 -0
  8. package/dist/EsiClientBuilder.js +208 -0
  9. package/dist/api/alliances/getAllianceById.js +17 -0
  10. package/dist/api/alliances/getAllianceContactLabels.js +13 -0
  11. package/dist/api/alliances/getAllianceContacts.js +13 -0
  12. package/dist/api/alliances/getAllianceCorporations.js +13 -0
  13. package/dist/api/alliances/getAllianceIcons.js +13 -0
  14. package/dist/api/alliances/getAlliances.js +13 -0
  15. package/dist/api/assets/getCharacterAssets.js +13 -0
  16. package/dist/api/assets/getCorporationAssets.js +13 -0
  17. package/dist/api/assets/postCharacterAssetLocations.js +13 -0
  18. package/dist/api/assets/postCharacterAssetNames.js +13 -0
  19. package/dist/api/assets/postCorporationAssetLocations.js +13 -0
  20. package/dist/api/assets/postCorporationAssetNames.js +13 -0
  21. package/dist/api/bookmarks/getCharacterBookmarkFolders.js +13 -0
  22. package/dist/api/bookmarks/getCharacterBookmarks.js +13 -0
  23. package/dist/api/bookmarks/getCorporationBookmarkFolders.js +13 -0
  24. package/dist/api/bookmarks/getCorporationBookmarks.js +13 -0
  25. package/dist/api/calendar/getCalendarEventById.js +13 -0
  26. package/dist/api/calendar/getCalendarEvents.js +13 -0
  27. package/dist/api/calendar/getEventAttendees.js +13 -0
  28. package/dist/api/calendar/respondToCalendarEvent.js +14 -0
  29. package/dist/api/characters/getAgentsResearch.js +13 -0
  30. package/dist/api/characters/getBlueprints.js +13 -0
  31. package/dist/api/characters/getCharacterPublicInfo.js +13 -0
  32. package/dist/api/characters/getCharacterRoles.js +13 -0
  33. package/dist/api/characters/getCharacterStandings.js +13 -0
  34. package/dist/api/characters/getCharacterTitles.js +13 -0
  35. package/dist/api/characters/getContactNotifications.js +13 -0
  36. package/dist/api/characters/getCorporationHistory.js +13 -0
  37. package/dist/api/characters/getJumpFatigue.js +13 -0
  38. package/dist/api/characters/getMedals.js +13 -0
  39. package/dist/api/characters/getNotifications.js +13 -0
  40. package/dist/api/characters/getPortrait.js +13 -0
  41. package/dist/api/characters/postCSPAChargeCost.js +13 -0
  42. package/dist/api/characters/postCharacterAffiliations.js +14 -0
  43. package/dist/api/clones/getClones.js +14 -0
  44. package/dist/api/clones/getImplants.js +14 -0
  45. package/dist/api/clones/postJumpCloneActivation.js +14 -0
  46. package/dist/api/contacts/deleteCharacterContacts.js +13 -0
  47. package/dist/api/contacts/getAllianceContactLabels.js +13 -0
  48. package/dist/api/contacts/getAllianceContacts.js +13 -0
  49. package/dist/api/contacts/getCharacterContactLabels.js +13 -0
  50. package/dist/api/contacts/getCharacterContacts.js +13 -0
  51. package/dist/api/contacts/getCorporationContactLabels.js +13 -0
  52. package/dist/api/contacts/getCorporationContacts.js +13 -0
  53. package/dist/api/contacts/postCharacterContacts.js +13 -0
  54. package/dist/api/contacts/putCharacterContacts.js +13 -0
  55. package/dist/api/contracts/getCharacterContractBids.js +13 -0
  56. package/dist/api/contracts/getCharacterContractItems.js +13 -0
  57. package/dist/api/contracts/getCharacterContracts.js +13 -0
  58. package/dist/api/contracts/getCorporationContractBids.js +13 -0
  59. package/dist/api/contracts/getCorporationContractItems.js +13 -0
  60. package/dist/api/contracts/getCorporationContracts.js +13 -0
  61. package/dist/api/contracts/getPublicContractBids.js +13 -0
  62. package/dist/api/contracts/getPublicContractItems.js +13 -0
  63. package/dist/api/contracts/getPublicContracts.js +13 -0
  64. package/dist/api/corporations/getCorporationAllianceHistory.js +13 -0
  65. package/dist/api/corporations/getCorporationAlscLogs.js +13 -0
  66. package/dist/api/corporations/getCorporationBlueprints.js +13 -0
  67. package/dist/api/corporations/getCorporationDivisions.js +13 -0
  68. package/dist/api/corporations/getCorporationFacilities.js +13 -0
  69. package/dist/api/corporations/getCorporationIcon.js +13 -0
  70. package/dist/api/corporations/getCorporationInfo.js +13 -0
  71. package/dist/api/corporations/getCorporationIssuedMedals.js +13 -0
  72. package/dist/api/corporations/getCorporationMedals.js +13 -0
  73. package/dist/api/corporations/getCorporationMemberLimit.js +13 -0
  74. package/dist/api/corporations/getCorporationMemberRoles.js +13 -0
  75. package/dist/api/corporations/getCorporationMemberRolesHistory.js +13 -0
  76. package/dist/api/corporations/getCorporationMemberTracking.js +13 -0
  77. package/dist/api/corporations/getCorporationMembers.js +13 -0
  78. package/dist/api/corporations/getCorporationMembersTitles.js +13 -0
  79. package/dist/api/corporations/getCorporationProjects.js +13 -0
  80. package/dist/api/corporations/getCorporationShareholders.js +13 -0
  81. package/dist/api/corporations/getCorporationStandings.js +13 -0
  82. package/dist/api/corporations/getCorporationStarbaseDetail.js +13 -0
  83. package/dist/api/corporations/getCorporationStarbases.js +13 -0
  84. package/dist/api/corporations/getCorporationStructures.js +13 -0
  85. package/dist/api/corporations/getCorporationTitles.js +13 -0
  86. package/dist/api/corporations/getNpcCorporations.js +13 -0
  87. package/dist/api/dogma/getDogmaAttributeById.js +13 -0
  88. package/dist/api/dogma/getDogmaAttributes.js +13 -0
  89. package/dist/api/dogma/getDogmaDynamicItemAttributes.js +13 -0
  90. package/dist/api/dogma/getDogmaEffectById.js +13 -0
  91. package/dist/api/dogma/getDogmaEffects.js +13 -0
  92. package/dist/api/factions/getCharacterFactionWarfareStats.js +13 -0
  93. package/dist/api/factions/getCharacterLeaderboards.js +13 -0
  94. package/dist/api/factions/getCorporationFactionWarfareStats.js +13 -0
  95. package/dist/api/factions/getCorporationLeaderboards.js +13 -0
  96. package/dist/api/factions/getFactionLeaderboards.js +13 -0
  97. package/dist/api/factions/getFactionWarfareStats.js +13 -0
  98. package/dist/api/factions/getFactionWarfareSystems.js +13 -0
  99. package/dist/api/factions/getFactionWarfareWars.js +13 -0
  100. package/dist/api/fittings/deleteCharacterFitting.js +13 -0
  101. package/dist/api/fittings/getCharacterFittings.js +13 -0
  102. package/dist/api/fittings/postCharacterFittings.js +13 -0
  103. package/dist/api/fleets/deleteFleetMember.js +13 -0
  104. package/dist/api/fleets/deleteFleetSquad.js +13 -0
  105. package/dist/api/fleets/deleteFleetWing.js +13 -0
  106. package/dist/api/fleets/getCharacterFleetInfo.js +13 -0
  107. package/dist/api/fleets/getFleetInfo.js +13 -0
  108. package/dist/api/fleets/getFleetMembers.js +13 -0
  109. package/dist/api/fleets/getFleetWings.js +13 -0
  110. package/dist/api/fleets/postFleetInvitation.js +13 -0
  111. package/dist/api/fleets/postFleetSquad.js +14 -0
  112. package/dist/api/fleets/postFleetWing.js +13 -0
  113. package/dist/api/fleets/putFleetMember.js +13 -0
  114. package/dist/api/fleets/putFleetSquad.js +13 -0
  115. package/dist/api/fleets/putFleetWing.js +14 -0
  116. package/dist/api/fleets/updateFleet.js +13 -0
  117. package/dist/api/incursions/getIncursions.js +13 -0
  118. package/dist/api/industry/getCharacterIndustryJobs.js +13 -0
  119. package/dist/api/industry/getCharacterMiningLedger.js +13 -0
  120. package/dist/api/industry/getCorporationIndustryJobs.js +13 -0
  121. package/dist/api/industry/getCorporationMiningObserver.js +13 -0
  122. package/dist/api/industry/getCorporationMiningObservers.js +13 -0
  123. package/dist/api/industry/getIndustryFacilities.js +13 -0
  124. package/dist/api/industry/getIndustrySystems.js +13 -0
  125. package/dist/api/industry/getMoonExtractionTimers.js +13 -0
  126. package/dist/api/insurance/getInsurancePrices.js +13 -0
  127. package/dist/api/killmails/getCharacterRecentKillmails.js +13 -0
  128. package/dist/api/killmails/getCorporationRecentKillmails.js +13 -0
  129. package/dist/api/killmails/getKillmail.js +13 -0
  130. package/dist/api/location/getCharacterLocation.js +13 -0
  131. package/dist/api/location/getCharacterOnline.js +13 -0
  132. package/dist/api/location/getCharacterShip.js +13 -0
  133. package/dist/api/loyalty/getLoyaltyPoints.js +13 -0
  134. package/dist/api/loyalty/getLoyaltyStoreOffers.js +13 -0
  135. package/dist/api/mail/deleteCharacterMail.js +13 -0
  136. package/dist/api/mail/deleteCharacterMailLabel.js +13 -0
  137. package/dist/api/mail/deleteCharacterMailLabel.test.js +21 -0
  138. package/dist/api/mail/getCharacerMailingLists.test.js +33 -0
  139. package/dist/api/mail/getCharacterMail.js +13 -0
  140. package/dist/api/mail/getCharacterMailHeaders.js +13 -0
  141. package/dist/api/mail/getCharacterMailLabels.js +13 -0
  142. package/dist/api/mail/getCharacterMailingLists.js +13 -0
  143. package/dist/api/mail/postCharacterMail.js +13 -0
  144. package/dist/api/mail/postCharacterMailLabels.js +13 -0
  145. package/dist/api/mail/putCharacterMail.js +13 -0
  146. package/dist/api/market/getCharacterOrderHistory.js +13 -0
  147. package/dist/api/market/getCharacterOrders.js +13 -0
  148. package/dist/api/market/getCorporationOrderHistory.js +13 -0
  149. package/dist/api/market/getCorporationOrders.js +13 -0
  150. package/dist/api/market/getMarketGroupInformation.js +13 -0
  151. package/dist/api/market/getMarketGroups.js +13 -0
  152. package/dist/api/market/getMarketHistory.js +13 -0
  153. package/dist/api/market/getMarketOrders.js +13 -0
  154. package/dist/api/market/getMarketOrdersInStructure.js +13 -0
  155. package/dist/api/market/getMarketPrices.js +13 -0
  156. package/dist/api/market/getMarketTypes.js +13 -0
  157. package/dist/api/meta/getSwaggerJson.js +13 -0
  158. package/dist/api/meta/getSwaggerYaml.js +37 -0
  159. package/dist/api/opportunities/getCharacterOpportunities.js +13 -0
  160. package/dist/api/opportunities/getOpportunitiesGroupById.js +13 -0
  161. package/dist/api/opportunities/getOpportunitiesGroups.js +13 -0
  162. package/dist/api/opportunities/getOpportunitiesTaskById.js +13 -0
  163. package/dist/api/opportunities/getOpportunitiesTasks.js +13 -0
  164. package/dist/api/pi/getColonies.js +13 -0
  165. package/dist/api/pi/getColonyLayout.js +13 -0
  166. package/dist/api/pi/getCorporationCustomsOffices.js +13 -0
  167. package/dist/api/pi/getSchematicInformation.js +13 -0
  168. package/dist/api/route/getRoute.js +13 -0
  169. package/dist/api/search/getCharacterSearch.js +13 -0
  170. package/dist/api/skills/getCharacterAttributes.js +13 -0
  171. package/dist/api/skills/getCharacterSkillQueue.js +13 -0
  172. package/dist/api/skills/getCharacterSkills.js +13 -0
  173. package/dist/api/sovereignty/getSovereigntyCampaigns.js +13 -0
  174. package/dist/api/sovereignty/getSovereigntyMap.js +13 -0
  175. package/dist/api/sovereignty/getSovereigntyStructures.js +13 -0
  176. package/dist/api/status/getStatus.js +13 -0
  177. package/dist/api/ui/postAutopilotWaypoint.js +13 -0
  178. package/dist/api/ui/postOpenContractWindow.js +13 -0
  179. package/dist/api/ui/postOpenInformationWindow.js +13 -0
  180. package/dist/api/ui/postOpenMarketDetailsWindow.js +13 -0
  181. package/dist/api/ui/postOpenNewMailWindow.js +13 -0
  182. package/dist/api/universe/getAncestries.js +13 -0
  183. package/dist/api/universe/getAsteroidBeltInfo.js +13 -0
  184. package/dist/api/universe/getBloodlines.js +13 -0
  185. package/dist/api/universe/getConstellationById.js +13 -0
  186. package/dist/api/universe/getConstellations.js +13 -0
  187. package/dist/api/universe/getFactions.js +13 -0
  188. package/dist/api/universe/getGraphicById.js +13 -0
  189. package/dist/api/universe/getGraphics.js +13 -0
  190. package/dist/api/universe/getItemCategories.js +13 -0
  191. package/dist/api/universe/getItemCategoryById.js +13 -0
  192. package/dist/api/universe/getItemGroupById.js +13 -0
  193. package/dist/api/universe/getItemGroups.js +13 -0
  194. package/dist/api/universe/getMoonById.js +13 -0
  195. package/dist/api/universe/getPlanetById.js +13 -0
  196. package/dist/api/universe/getRaces.js +13 -0
  197. package/dist/api/universe/getRegionById.js +13 -0
  198. package/dist/api/universe/getRegions.js +13 -0
  199. package/dist/api/universe/getSchematicById.js +13 -0
  200. package/dist/api/universe/getStarById.js +13 -0
  201. package/dist/api/universe/getStargateById.js +13 -0
  202. package/dist/api/universe/getStationById.js +13 -0
  203. package/dist/api/universe/getStructureById.js +13 -0
  204. package/dist/api/universe/getStructures.js +13 -0
  205. package/dist/api/universe/getSystemById.js +13 -0
  206. package/dist/api/universe/getSystemJumps.js +13 -0
  207. package/dist/api/universe/getSystemKills.js +13 -0
  208. package/dist/api/universe/getSystems.js +13 -0
  209. package/dist/api/universe/getTypeById.js +13 -0
  210. package/dist/api/universe/getTypes.js +13 -0
  211. package/dist/api/universe/postBulkNamesToIds.js +14 -0
  212. package/dist/api/universe/postNamesAndCategories.js +14 -0
  213. package/dist/api/wallet/getCharacterWallet.js +13 -0
  214. package/dist/api/wallet/getCharacterWalletJournal.js +13 -0
  215. package/dist/api/wallet/getCharacterWalletTransactions.js +13 -0
  216. package/dist/api/wallet/getCorporationWalletJournal.js +13 -0
  217. package/dist/api/wallet/getCorporationWalletTransactions.js +13 -0
  218. package/dist/api/wallet/getCorporationWallets.js +13 -0
  219. package/dist/api/wars/getWarById.js +13 -0
  220. package/dist/api/wars/getWarKillmails.js +13 -0
  221. package/dist/api/wars/getWars.js +13 -0
  222. package/dist/builders/AllianceApiBuilder.js +13 -0
  223. package/dist/builders/AssetsApiBuilder.js +13 -0
  224. package/dist/builders/BookmarkApiBuilder.js +13 -0
  225. package/dist/builders/CalendarApiBuilder.js +13 -0
  226. package/dist/builders/CharacterApiBuilder.js +13 -0
  227. package/dist/builders/ClonesApiBuilder.js +13 -0
  228. package/dist/builders/ContactsApiBuilder.js +13 -0
  229. package/dist/builders/ContractsApiBuilder.js +13 -0
  230. package/dist/builders/CorporationsApiBuilder.js +13 -0
  231. package/dist/builders/DogmaApiBuilder.js +13 -0
  232. package/dist/builders/FactionApiBuilder.js +13 -0
  233. package/dist/builders/FittingsApiBuilder.js +13 -0
  234. package/dist/builders/FleetApiBuilder.js +13 -0
  235. package/dist/builders/IncursionsApiBuilder.js +13 -0
  236. package/dist/builders/IndustryApiBuilder.js +13 -0
  237. package/dist/builders/InsuranceApiBuilder.js +13 -0
  238. package/dist/builders/KillmailsBuilder.js +13 -0
  239. package/dist/builders/LocationApiBuilder.js +13 -0
  240. package/dist/builders/LoyaltyApiBuilder.js +13 -0
  241. package/dist/builders/MailApiBuilder.js +13 -0
  242. package/dist/builders/MarketApiBuilder.js +13 -0
  243. package/dist/builders/MetaApiBuilder.js +13 -0
  244. package/dist/builders/OpportunitiesApiBuilder.js +13 -0
  245. package/dist/builders/PiApiBuilder.js +13 -0
  246. package/dist/builders/RouteApiBuilder.js +13 -0
  247. package/dist/builders/SearchApiBuilder.js +13 -0
  248. package/dist/builders/SkillsApiBuilder.js +13 -0
  249. package/dist/builders/SovereigntyApiBuilder.js +13 -0
  250. package/dist/builders/StatusApiBuilder.js +13 -0
  251. package/dist/builders/UiApiBuilder.js +13 -0
  252. package/dist/builders/UniverseApiBuilder.js +13 -0
  253. package/dist/builders/WalletApiBuilder.js +13 -0
  254. package/dist/builders/WarsAPIBuilder.js +13 -0
  255. package/dist/clients/AllianceClient.d.ts +52 -0
  256. package/dist/clients/AllianceClient.d.ts.map +1 -0
  257. package/dist/clients/AllianceClient.js +70 -0
  258. package/dist/clients/AssetsClient.d.ts +60 -0
  259. package/dist/clients/AssetsClient.d.ts.map +1 -0
  260. package/dist/clients/AssetsClient.js +75 -0
  261. package/dist/clients/BaseEsiClient.d.ts +14 -0
  262. package/dist/clients/BaseEsiClient.d.ts.map +1 -0
  263. package/dist/clients/BaseEsiClient.js +24 -0
  264. package/dist/clients/BookmarkClient.js +28 -0
  265. package/dist/clients/CalendarClient.d.ts +43 -0
  266. package/dist/clients/CalendarClient.d.ts.map +1 -0
  267. package/dist/clients/CalendarClient.js +54 -0
  268. package/dist/clients/CharacterClient.d.ts +118 -0
  269. package/dist/clients/CharacterClient.d.ts.map +1 -0
  270. package/dist/clients/CharacterClient.js +149 -0
  271. package/dist/clients/ClonesClient.d.ts +24 -0
  272. package/dist/clients/ClonesClient.d.ts.map +1 -0
  273. package/dist/clients/ClonesClient.js +31 -0
  274. package/dist/clients/ContactsClient.d.ts +81 -0
  275. package/dist/clients/ContactsClient.d.ts.map +1 -0
  276. package/dist/clients/ContactsClient.js +102 -0
  277. package/dist/clients/ContractsClient.d.ts +81 -0
  278. package/dist/clients/ContractsClient.d.ts.map +1 -0
  279. package/dist/clients/ContractsClient.js +102 -0
  280. package/dist/clients/CorporationsClient.d.ts +184 -0
  281. package/dist/clients/CorporationsClient.d.ts.map +1 -0
  282. package/dist/clients/CorporationsClient.js +227 -0
  283. package/dist/clients/DogmaClient.d.ts +42 -0
  284. package/dist/clients/DogmaClient.d.ts.map +1 -0
  285. package/dist/clients/DogmaClient.js +55 -0
  286. package/dist/clients/FactionClient.d.ts +60 -0
  287. package/dist/clients/FactionClient.d.ts.map +1 -0
  288. package/dist/clients/FactionClient.js +79 -0
  289. package/dist/clients/FittingsClient.d.ts +35 -0
  290. package/dist/clients/FittingsClient.d.ts.map +1 -0
  291. package/dist/clients/FittingsClient.js +42 -0
  292. package/dist/clients/FleetClient.d.ts +129 -0
  293. package/dist/clients/FleetClient.d.ts.map +1 -0
  294. package/dist/clients/FleetClient.js +156 -0
  295. package/dist/clients/FreelanceJobsClient.d.ts +61 -0
  296. package/dist/clients/FreelanceJobsClient.d.ts.map +1 -0
  297. package/dist/clients/FreelanceJobsClient.js +76 -0
  298. package/dist/clients/IncursionsClient.d.ts +14 -0
  299. package/dist/clients/IncursionsClient.d.ts.map +1 -0
  300. package/dist/clients/IncursionsClient.js +19 -0
  301. package/dist/clients/IndustryClient.d.ts +69 -0
  302. package/dist/clients/IndustryClient.d.ts.map +1 -0
  303. package/dist/clients/IndustryClient.js +88 -0
  304. package/dist/clients/InsuranceClient.d.ts +14 -0
  305. package/dist/clients/InsuranceClient.d.ts.map +1 -0
  306. package/dist/clients/InsuranceClient.js +19 -0
  307. package/dist/clients/KillmailsClient.d.ts +32 -0
  308. package/dist/clients/KillmailsClient.d.ts.map +1 -0
  309. package/dist/clients/KillmailsClient.js +41 -0
  310. package/dist/clients/LocationClient.d.ts +32 -0
  311. package/dist/clients/LocationClient.d.ts.map +1 -0
  312. package/dist/clients/LocationClient.js +41 -0
  313. package/dist/clients/LoyaltyClient.d.ts +23 -0
  314. package/dist/clients/LoyaltyClient.d.ts.map +1 -0
  315. package/dist/clients/LoyaltyClient.js +30 -0
  316. package/dist/clients/MailClient.d.ts +93 -0
  317. package/dist/clients/MailClient.d.ts.map +1 -0
  318. package/dist/clients/MailClient.js +108 -0
  319. package/dist/clients/MarketClient.d.ts +98 -0
  320. package/dist/clients/MarketClient.d.ts.map +1 -0
  321. package/dist/clients/MarketClient.js +113 -0
  322. package/dist/clients/MetaClient.d.ts +19 -0
  323. package/dist/clients/MetaClient.d.ts.map +1 -0
  324. package/dist/clients/MetaClient.js +56 -0
  325. package/dist/clients/OpportunitiesClient.js +33 -0
  326. package/dist/clients/PiClient.d.ts +40 -0
  327. package/dist/clients/PiClient.d.ts.map +1 -0
  328. package/dist/clients/PiClient.js +51 -0
  329. package/dist/clients/RouteClient.d.ts +25 -0
  330. package/dist/clients/RouteClient.d.ts.map +1 -0
  331. package/dist/clients/RouteClient.js +24 -0
  332. package/dist/clients/SearchClient.d.ts +17 -0
  333. package/dist/clients/SearchClient.d.ts.map +1 -0
  334. package/dist/clients/SearchClient.js +22 -0
  335. package/dist/clients/SkillsClient.d.ts +36 -0
  336. package/dist/clients/SkillsClient.d.ts.map +1 -0
  337. package/dist/clients/SkillsClient.js +41 -0
  338. package/dist/clients/SovereigntyClient.d.ts +26 -0
  339. package/dist/clients/SovereigntyClient.d.ts.map +1 -0
  340. package/dist/clients/SovereigntyClient.js +35 -0
  341. package/dist/clients/StatusClient.d.ts +14 -0
  342. package/dist/clients/StatusClient.d.ts.map +1 -0
  343. package/dist/clients/StatusClient.js +19 -0
  344. package/dist/clients/UiClient.d.ts +42 -0
  345. package/dist/clients/UiClient.d.ts.map +1 -0
  346. package/dist/clients/UiClient.js +56 -0
  347. package/dist/clients/UniverseClient.d.ts +212 -0
  348. package/dist/clients/UniverseClient.d.ts.map +1 -0
  349. package/dist/clients/UniverseClient.js +277 -0
  350. package/dist/clients/WalletClient.d.ts +61 -0
  351. package/dist/clients/WalletClient.d.ts.map +1 -0
  352. package/dist/clients/WalletClient.js +73 -0
  353. package/dist/clients/WarsClient.d.ts +28 -0
  354. package/dist/clients/WarsClient.d.ts.map +1 -0
  355. package/dist/clients/WarsClient.js +37 -0
  356. package/dist/config/configManager.d.ts +8 -0
  357. package/dist/config/configManager.d.ts.map +1 -0
  358. package/dist/config/configManager.js +41 -0
  359. package/dist/config/constants.js +11 -0
  360. package/dist/config/jest/globalSetup.d.ts +2 -0
  361. package/dist/config/jest/globalSetup.d.ts.map +1 -0
  362. package/dist/config/jest/globalSetup.js +7 -0
  363. package/dist/config/jest/globalTeardown.d.ts +2 -0
  364. package/dist/config/jest/globalTeardown.d.ts.map +1 -0
  365. package/dist/config/jest/globalTeardown.js +7 -0
  366. package/dist/config/jest/jest.setup.d.ts +3 -0
  367. package/dist/config/jest/jest.setup.d.ts.map +1 -0
  368. package/dist/config/jest/jest.setup.js +30 -0
  369. package/dist/core/ApiClient.d.ts +44 -0
  370. package/dist/core/ApiClient.d.ts.map +1 -0
  371. package/dist/core/ApiClient.js +102 -0
  372. package/dist/core/ApiClientBuilder.d.ts +22 -0
  373. package/dist/core/ApiClientBuilder.d.ts.map +1 -0
  374. package/dist/core/ApiClientBuilder.js +54 -0
  375. package/dist/core/ApiError.js +11 -0
  376. package/dist/core/ApiRequestHandler.d.ts +11 -0
  377. package/dist/core/ApiRequestHandler.d.ts.map +1 -0
  378. package/dist/core/ApiRequestHandler.js +365 -0
  379. package/dist/core/ClientRegistry.d.ts +39 -0
  380. package/dist/core/ClientRegistry.d.ts.map +1 -0
  381. package/dist/core/ClientRegistry.js +107 -0
  382. package/dist/core/EsiDiagnostics.d.ts +35 -0
  383. package/dist/core/EsiDiagnostics.d.ts.map +1 -0
  384. package/dist/core/EsiDiagnostics.js +47 -0
  385. package/dist/core/IAPIBuilder.js +2 -0
  386. package/dist/core/RequestDeduplicator.d.ts +7 -0
  387. package/dist/core/RequestDeduplicator.d.ts.map +1 -0
  388. package/dist/core/RequestDeduplicator.js +26 -0
  389. package/dist/core/cache/ETagCacheManager.d.ts +71 -0
  390. package/dist/core/cache/ETagCacheManager.d.ts.map +1 -0
  391. package/dist/core/cache/ETagCacheManager.js +184 -0
  392. package/dist/core/cache/ICache.d.ts +27 -0
  393. package/dist/core/cache/ICache.d.ts.map +1 -0
  394. package/dist/core/cache/ICache.js +2 -0
  395. package/dist/core/circuitBreaker/CircuitBreaker.d.ts +39 -0
  396. package/dist/core/circuitBreaker/CircuitBreaker.d.ts.map +1 -0
  397. package/dist/core/circuitBreaker/CircuitBreaker.js +156 -0
  398. package/dist/core/constants.d.ts +5 -0
  399. package/dist/core/constants.d.ts.map +1 -0
  400. package/dist/core/constants.js +7 -0
  401. package/dist/core/container/Container.js +145 -0
  402. package/dist/core/endpoints/EndpointDefinition.d.ts +50 -0
  403. package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -0
  404. package/dist/core/endpoints/EndpointDefinition.js +2 -0
  405. package/dist/core/endpoints/allianceEndpoints.d.ts +26 -0
  406. package/dist/core/endpoints/allianceEndpoints.d.ts.map +1 -0
  407. package/dist/core/endpoints/allianceEndpoints.js +28 -0
  408. package/dist/core/endpoints/assetEndpoints.d.ts +51 -0
  409. package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -0
  410. package/dist/core/endpoints/assetEndpoints.js +45 -0
  411. package/dist/core/endpoints/calendarEndpoints.d.ts +30 -0
  412. package/dist/core/endpoints/calendarEndpoints.d.ts.map +1 -0
  413. package/dist/core/endpoints/calendarEndpoints.js +30 -0
  414. package/dist/core/endpoints/characterEndpoints.d.ts +88 -0
  415. package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -0
  416. package/dist/core/endpoints/characterEndpoints.js +90 -0
  417. package/dist/core/endpoints/cloneEndpoints.d.ts +15 -0
  418. package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -0
  419. package/dist/core/endpoints/cloneEndpoints.js +17 -0
  420. package/dist/core/endpoints/contactEndpoints.d.ts +62 -0
  421. package/dist/core/endpoints/contactEndpoints.d.ts.map +1 -0
  422. package/dist/core/endpoints/contactEndpoints.js +62 -0
  423. package/dist/core/endpoints/contractEndpoints.d.ts +57 -0
  424. package/dist/core/endpoints/contractEndpoints.d.ts.map +1 -0
  425. package/dist/core/endpoints/contractEndpoints.js +59 -0
  426. package/dist/core/endpoints/corporationEndpoints.d.ts +134 -0
  427. package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -0
  428. package/dist/core/endpoints/corporationEndpoints.js +136 -0
  429. package/dist/core/endpoints/createClient.d.ts +48 -0
  430. package/dist/core/endpoints/createClient.d.ts.map +1 -0
  431. package/dist/core/endpoints/createClient.js +170 -0
  432. package/dist/core/endpoints/dogmaEndpoints.d.ts +31 -0
  433. package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -0
  434. package/dist/core/endpoints/dogmaEndpoints.js +33 -0
  435. package/dist/core/endpoints/factionEndpoints.d.ts +45 -0
  436. package/dist/core/endpoints/factionEndpoints.d.ts.map +1 -0
  437. package/dist/core/endpoints/factionEndpoints.js +47 -0
  438. package/dist/core/endpoints/fittingEndpoints.d.ts +22 -0
  439. package/dist/core/endpoints/fittingEndpoints.d.ts.map +1 -0
  440. package/dist/core/endpoints/fittingEndpoints.js +24 -0
  441. package/dist/core/endpoints/fleetEndpoints.d.ts +97 -0
  442. package/dist/core/endpoints/fleetEndpoints.d.ts.map +1 -0
  443. package/dist/core/endpoints/fleetEndpoints.js +95 -0
  444. package/dist/core/endpoints/freelanceJobsEndpoints.d.ts +50 -0
  445. package/dist/core/endpoints/freelanceJobsEndpoints.d.ts.map +1 -0
  446. package/dist/core/endpoints/freelanceJobsEndpoints.js +43 -0
  447. package/dist/core/endpoints/incursionEndpoints.d.ts +8 -0
  448. package/dist/core/endpoints/incursionEndpoints.d.ts.map +1 -0
  449. package/dist/core/endpoints/incursionEndpoints.js +10 -0
  450. package/dist/core/endpoints/industryEndpoints.d.ts +49 -0
  451. package/dist/core/endpoints/industryEndpoints.d.ts.map +1 -0
  452. package/dist/core/endpoints/industryEndpoints.js +51 -0
  453. package/dist/core/endpoints/insuranceEndpoints.d.ts +8 -0
  454. package/dist/core/endpoints/insuranceEndpoints.d.ts.map +1 -0
  455. package/dist/core/endpoints/insuranceEndpoints.js +10 -0
  456. package/dist/core/endpoints/killmailEndpoints.d.ts +21 -0
  457. package/dist/core/endpoints/killmailEndpoints.d.ts.map +1 -0
  458. package/dist/core/endpoints/killmailEndpoints.js +23 -0
  459. package/dist/core/endpoints/locationEndpoints.d.ts +21 -0
  460. package/dist/core/endpoints/locationEndpoints.d.ts.map +1 -0
  461. package/dist/core/endpoints/locationEndpoints.js +23 -0
  462. package/dist/core/endpoints/loyaltyEndpoints.d.ts +15 -0
  463. package/dist/core/endpoints/loyaltyEndpoints.d.ts.map +1 -0
  464. package/dist/core/endpoints/loyaltyEndpoints.js +17 -0
  465. package/dist/core/endpoints/mailEndpoints.d.ts +60 -0
  466. package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -0
  467. package/dist/core/endpoints/mailEndpoints.js +62 -0
  468. package/dist/core/endpoints/marketEndpoints.d.ts +73 -0
  469. package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -0
  470. package/dist/core/endpoints/marketEndpoints.js +71 -0
  471. package/dist/core/endpoints/metaEndpoints.d.ts +8 -0
  472. package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -0
  473. package/dist/core/endpoints/metaEndpoints.js +10 -0
  474. package/dist/core/endpoints/piEndpoints.d.ts +27 -0
  475. package/dist/core/endpoints/piEndpoints.d.ts.map +1 -0
  476. package/dist/core/endpoints/piEndpoints.js +29 -0
  477. package/dist/core/endpoints/routeEndpoints.d.ts +10 -0
  478. package/dist/core/endpoints/routeEndpoints.d.ts.map +1 -0
  479. package/dist/core/endpoints/routeEndpoints.js +12 -0
  480. package/dist/core/endpoints/searchEndpoints.d.ts +13 -0
  481. package/dist/core/endpoints/searchEndpoints.d.ts.map +1 -0
  482. package/dist/core/endpoints/searchEndpoints.js +12 -0
  483. package/dist/core/endpoints/skillEndpoints.d.ts +21 -0
  484. package/dist/core/endpoints/skillEndpoints.d.ts.map +1 -0
  485. package/dist/core/endpoints/skillEndpoints.js +23 -0
  486. package/dist/core/endpoints/sovereigntyEndpoints.d.ts +18 -0
  487. package/dist/core/endpoints/sovereigntyEndpoints.d.ts.map +1 -0
  488. package/dist/core/endpoints/sovereigntyEndpoints.js +20 -0
  489. package/dist/core/endpoints/statusEndpoints.d.ts +8 -0
  490. package/dist/core/endpoints/statusEndpoints.d.ts.map +1 -0
  491. package/dist/core/endpoints/statusEndpoints.js +10 -0
  492. package/dist/core/endpoints/uiEndpoints.d.ts +33 -0
  493. package/dist/core/endpoints/uiEndpoints.d.ts.map +1 -0
  494. package/dist/core/endpoints/uiEndpoints.js +35 -0
  495. package/dist/core/endpoints/universeEndpoints.d.ts +179 -0
  496. package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -0
  497. package/dist/core/endpoints/universeEndpoints.js +177 -0
  498. package/dist/core/endpoints/walletEndpoints.d.ts +39 -0
  499. package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -0
  500. package/dist/core/endpoints/walletEndpoints.js +41 -0
  501. package/dist/core/endpoints/warEndpoints.d.ts +20 -0
  502. package/dist/core/endpoints/warEndpoints.d.ts.map +1 -0
  503. package/dist/core/endpoints/warEndpoints.js +22 -0
  504. package/dist/core/errors/ApiError.js +129 -0
  505. package/dist/core/factory/ApiFactory.js +170 -0
  506. package/dist/core/logger/ILogger.d.ts +7 -0
  507. package/dist/core/logger/ILogger.d.ts.map +1 -0
  508. package/dist/core/logger/ILogger.js +2 -0
  509. package/dist/core/logger/index.d.ts +2 -0
  510. package/dist/core/logger/index.d.ts.map +1 -0
  511. package/dist/core/logger/index.js +8 -0
  512. package/dist/core/logger/logger.d.ts +3 -0
  513. package/dist/core/logger/logger.d.ts.map +1 -0
  514. package/dist/core/logger/logger.js +16 -0
  515. package/dist/core/logger/loggerUtil.d.ts +9 -0
  516. package/dist/core/logger/loggerUtil.d.ts.map +1 -0
  517. package/dist/core/logger/loggerUtil.js +30 -0
  518. package/dist/core/middleware/Middleware.d.ts +30 -0
  519. package/dist/core/middleware/Middleware.d.ts.map +1 -0
  520. package/dist/core/middleware/Middleware.js +42 -0
  521. package/dist/core/pagination/AsyncPaginationIterator.d.ts +8 -0
  522. package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -0
  523. package/dist/core/pagination/AsyncPaginationIterator.js +27 -0
  524. package/dist/core/pagination/CursorPaginationHandler.d.ts +59 -0
  525. package/dist/core/pagination/CursorPaginationHandler.d.ts.map +1 -0
  526. package/dist/core/pagination/CursorPaginationHandler.js +148 -0
  527. package/dist/core/pagination/PaginationHandler.d.ts +30 -0
  528. package/dist/core/pagination/PaginationHandler.d.ts.map +1 -0
  529. package/dist/core/pagination/PaginationHandler.js +115 -0
  530. package/dist/core/rateLimiter/IRateLimiter.d.ts +17 -0
  531. package/dist/core/rateLimiter/IRateLimiter.d.ts.map +1 -0
  532. package/dist/core/rateLimiter/IRateLimiter.js +2 -0
  533. package/dist/core/rateLimiter/RateLimiter.d.ts +77 -0
  534. package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -0
  535. package/dist/core/rateLimiter/RateLimiter.js +203 -0
  536. package/dist/core/util/error.d.ts +23 -0
  537. package/dist/core/util/error.d.ts.map +1 -0
  538. package/dist/core/util/error.js +100 -0
  539. package/dist/core/util/file.js +26 -0
  540. package/dist/core/util/headersUtil.d.ts +22 -0
  541. package/dist/core/util/headersUtil.d.ts.map +1 -0
  542. package/dist/core/util/headersUtil.js +36 -0
  543. package/dist/core/util/inputValidation.js +9 -0
  544. package/dist/core/util/network.js +15 -0
  545. package/dist/core/util/request.js +21 -0
  546. package/dist/core/util/sleep.d.ts +2 -0
  547. package/dist/core/util/sleep.d.ts.map +1 -0
  548. package/dist/core/util/sleep.js +6 -0
  549. package/dist/core/util/testHelpers.d.ts +4 -0
  550. package/dist/core/util/testHelpers.d.ts.map +1 -0
  551. package/dist/core/util/testHelpers.js +25 -0
  552. package/dist/core/util/validation.d.ts +4 -0
  553. package/dist/core/util/validation.d.ts.map +1 -0
  554. package/dist/core/util/validation.js +52 -0
  555. package/dist/index.d.ts +56 -0
  556. package/dist/index.d.ts.map +1 -0
  557. package/dist/index.js +137 -0
  558. package/dist/testing/TestDataFactory.d.ts +97 -0
  559. package/dist/testing/TestDataFactory.d.ts.map +1 -0
  560. package/dist/testing/TestDataFactory.js +729 -0
  561. package/dist/testing/TestHelpers.js +205 -0
  562. package/dist/tsconfig.tsbuildinfo +1 -0
  563. package/dist/types/alliance.d.ts +25 -0
  564. package/dist/types/alliance.d.ts.map +1 -0
  565. package/dist/types/alliance.js +2 -0
  566. package/dist/types/api-responses.d.ts +30 -0
  567. package/dist/types/api-responses.d.ts.map +1 -0
  568. package/dist/types/api-responses.js +45 -0
  569. package/dist/types/assets.d.ts +23 -0
  570. package/dist/types/assets.d.ts.map +1 -0
  571. package/dist/types/assets.js +2 -0
  572. package/dist/types/calendar.d.ts +24 -0
  573. package/dist/types/calendar.d.ts.map +1 -0
  574. package/dist/types/calendar.js +2 -0
  575. package/dist/types/character.d.ts +105 -0
  576. package/dist/types/character.d.ts.map +1 -0
  577. package/dist/types/character.js +2 -0
  578. package/dist/types/clones.d.ts +16 -0
  579. package/dist/types/clones.d.ts.map +1 -0
  580. package/dist/types/clones.js +2 -0
  581. package/dist/types/common.d.ts +17 -0
  582. package/dist/types/common.d.ts.map +1 -0
  583. package/dist/types/common.js +2 -0
  584. package/dist/types/contacts.d.ts +12 -0
  585. package/dist/types/contacts.d.ts.map +1 -0
  586. package/dist/types/contacts.js +2 -0
  587. package/dist/types/contracts.d.ts +40 -0
  588. package/dist/types/contracts.d.ts.map +1 -0
  589. package/dist/types/contracts.js +2 -0
  590. package/dist/types/corporation.d.ts +167 -0
  591. package/dist/types/corporation.d.ts.map +1 -0
  592. package/dist/types/corporation.js +2 -0
  593. package/dist/types/dogma.d.ts +39 -0
  594. package/dist/types/dogma.d.ts.map +1 -0
  595. package/dist/types/dogma.js +2 -0
  596. package/dist/types/faction-warfare.d.ts +89 -0
  597. package/dist/types/faction-warfare.d.ts.map +1 -0
  598. package/dist/types/faction-warfare.js +2 -0
  599. package/dist/types/fittings.d.ts +12 -0
  600. package/dist/types/fittings.d.ts.map +1 -0
  601. package/dist/types/fittings.js +2 -0
  602. package/dist/types/fleet.d.ts +35 -0
  603. package/dist/types/fleet.d.ts.map +1 -0
  604. package/dist/types/fleet.js +2 -0
  605. package/dist/types/freelance-jobs.d.ts +92 -0
  606. package/dist/types/freelance-jobs.d.ts.map +1 -0
  607. package/dist/types/freelance-jobs.js +2 -0
  608. package/dist/types/incursions.d.ts +11 -0
  609. package/dist/types/incursions.d.ts.map +1 -0
  610. package/dist/types/incursions.js +2 -0
  611. package/dist/types/industry.d.ts +65 -0
  612. package/dist/types/industry.d.ts.map +1 -0
  613. package/dist/types/industry.js +2 -0
  614. package/dist/types/insurance.d.ts +9 -0
  615. package/dist/types/insurance.d.ts.map +1 -0
  616. package/dist/types/insurance.js +2 -0
  617. package/dist/types/killmails.d.ts +37 -0
  618. package/dist/types/killmails.d.ts.map +1 -0
  619. package/dist/types/killmails.js +2 -0
  620. package/dist/types/location.d.ts +17 -0
  621. package/dist/types/location.d.ts.map +1 -0
  622. package/dist/types/location.js +2 -0
  623. package/dist/types/loyalty.d.ts +17 -0
  624. package/dist/types/loyalty.d.ts.map +1 -0
  625. package/dist/types/loyalty.js +2 -0
  626. package/dist/types/mail.d.ts +19 -0
  627. package/dist/types/mail.d.ts.map +1 -0
  628. package/dist/types/mail.js +2 -0
  629. package/dist/types/market.d.ts +23 -0
  630. package/dist/types/market.d.ts.map +1 -0
  631. package/dist/types/market.js +2 -0
  632. package/dist/types/pi.d.ts +67 -0
  633. package/dist/types/pi.d.ts.map +1 -0
  634. package/dist/types/pi.js +2 -0
  635. package/dist/types/skills.d.ts +17 -0
  636. package/dist/types/skills.d.ts.map +1 -0
  637. package/dist/types/skills.js +2 -0
  638. package/dist/types/sovereignty.d.ts +31 -0
  639. package/dist/types/sovereignty.d.ts.map +1 -0
  640. package/dist/types/sovereignty.js +2 -0
  641. package/dist/types/status.d.ts +7 -0
  642. package/dist/types/status.d.ts.map +1 -0
  643. package/dist/types/status.js +2 -0
  644. package/dist/types/universe.d.ts +275 -0
  645. package/dist/types/universe.d.ts.map +1 -0
  646. package/dist/types/universe.js +2 -0
  647. package/dist/types/wallet.d.ts +26 -0
  648. package/dist/types/wallet.d.ts.map +1 -0
  649. package/dist/types/wallet.js +2 -0
  650. package/dist/types/wars.d.ts +26 -0
  651. package/dist/types/wars.d.ts.map +1 -0
  652. package/dist/types/wars.js +2 -0
  653. package/package.json +127 -20
  654. package/.github/workflows/ci.yml +0 -16
  655. package/.prettierrc +0 -6
  656. package/Structure.js +0 -257
  657. package/eslint.json +0 -13
  658. package/jest.bdd.config.cjs +0 -22
  659. package/jest.unit.config.cjs +0 -30
  660. package/src/TODO +0 -72
  661. package/src/api/alliances/getAllianceById.ts +0 -10
  662. package/src/api/alliances/getAllianceContactLabels.ts +0 -11
  663. package/src/api/alliances/getAllianceContacts.ts +0 -10
  664. package/src/api/alliances/getAllianceCorporations.ts +0 -10
  665. package/src/api/alliances/getAllianceIcons.ts +0 -10
  666. package/src/api/alliances/getAlliances.ts +0 -10
  667. package/src/api/assets/getCharacterAssets.ts +0 -14
  668. package/src/api/assets/getCorporationAssets.ts +0 -14
  669. package/src/api/assets/postCharacterAssetLocations.ts +0 -14
  670. package/src/api/assets/postCharacterAssetNames.ts +0 -14
  671. package/src/api/assets/postCorporationAssetLocations.ts +0 -14
  672. package/src/api/assets/postCorporationAssetNames.ts +0 -14
  673. package/src/api/bookmarks/getCharacterBookmarkFolders.ts +0 -10
  674. package/src/api/bookmarks/getCharacterBookmarks.ts +0 -10
  675. package/src/api/bookmarks/getCorporationBookmarkFolders.ts +0 -10
  676. package/src/api/bookmarks/getCorporationBookmarks.ts +0 -10
  677. package/src/api/calendar/getCalendarEventById.ts +0 -10
  678. package/src/api/calendar/getCalendarEvents.ts +0 -10
  679. package/src/api/calendar/getEventAttendees.ts +0 -10
  680. package/src/api/calendar/respondToCalendarEvent.ts +0 -11
  681. package/src/api/characters/getAgentsResearch.ts +0 -10
  682. package/src/api/characters/getBlueprints.ts +0 -10
  683. package/src/api/characters/getCharacterPublicInfo.ts +0 -10
  684. package/src/api/characters/getCharacterRoles.ts +0 -10
  685. package/src/api/characters/getCharacterStandings.ts +0 -10
  686. package/src/api/characters/getCharacterTitles.ts +0 -10
  687. package/src/api/characters/getContactNotifications.ts +0 -10
  688. package/src/api/characters/getCorporationHistory.ts +0 -10
  689. package/src/api/characters/getJumpFatigue.ts +0 -10
  690. package/src/api/characters/getMedals.ts +0 -10
  691. package/src/api/characters/getNotifications.ts +0 -10
  692. package/src/api/characters/getPortrait.ts +0 -10
  693. package/src/api/characters/postCSPAChargeCost.ts +0 -10
  694. package/src/api/characters/postCharacterAffiliations.ts +0 -10
  695. package/src/api/clones/getClones.ts +0 -11
  696. package/src/api/clones/getImplants.ts +0 -11
  697. package/src/api/contacts/deleteCharacterContacts.ts +0 -10
  698. package/src/api/contacts/getAllianceContactLabels.ts +0 -10
  699. package/src/api/contacts/getAllianceContacts.ts +0 -10
  700. package/src/api/contacts/getCharacterContactLabels.ts +0 -10
  701. package/src/api/contacts/getCharacterContacts.ts +0 -10
  702. package/src/api/contacts/getCorporationContactLabels.ts +0 -10
  703. package/src/api/contacts/getCorporationContacts.ts +0 -10
  704. package/src/api/contacts/postCharacterContacts.ts +0 -10
  705. package/src/api/contacts/putCharacterContacts.ts +0 -10
  706. package/src/api/contracts/getCharacterContractBids.ts +0 -10
  707. package/src/api/contracts/getCharacterContractItems.ts +0 -10
  708. package/src/api/contracts/getCharacterContracts.ts +0 -10
  709. package/src/api/contracts/getCorporationContractBids.ts +0 -10
  710. package/src/api/contracts/getCorporationContractItems.ts +0 -10
  711. package/src/api/contracts/getCorporationContracts.ts +0 -10
  712. package/src/api/contracts/getPublicContractBids.ts +0 -10
  713. package/src/api/contracts/getPublicContractItems.ts +0 -10
  714. package/src/api/contracts/getPublicContracts.ts +0 -10
  715. package/src/api/corporations/getCorporationAllianceHistory.ts +0 -10
  716. package/src/api/corporations/getCorporationAlscLogs.ts +0 -10
  717. package/src/api/corporations/getCorporationBlueprints.ts +0 -10
  718. package/src/api/corporations/getCorporationDivisions.ts +0 -10
  719. package/src/api/corporations/getCorporationFacilities.ts +0 -10
  720. package/src/api/corporations/getCorporationIcon.ts +0 -10
  721. package/src/api/corporations/getCorporationInfo.ts +0 -10
  722. package/src/api/corporations/getCorporationIssuedMedals.ts +0 -10
  723. package/src/api/corporations/getCorporationMedals.ts +0 -10
  724. package/src/api/corporations/getCorporationMemberLimit.ts +0 -10
  725. package/src/api/corporations/getCorporationMemberRoles.ts +0 -10
  726. package/src/api/corporations/getCorporationMemberRolesHistory.ts +0 -10
  727. package/src/api/corporations/getCorporationMemberTracking.ts +0 -10
  728. package/src/api/corporations/getCorporationMembers.ts +0 -10
  729. package/src/api/corporations/getCorporationMembersTitles.ts +0 -10
  730. package/src/api/corporations/getCorporationShareholders.ts +0 -10
  731. package/src/api/corporations/getCorporationStandings.ts +0 -10
  732. package/src/api/corporations/getCorporationStarbaseDetail.ts +0 -10
  733. package/src/api/corporations/getCorporationStarbases.ts +0 -10
  734. package/src/api/corporations/getCorporationStructures.ts +0 -10
  735. package/src/api/corporations/getCorporationTitles.ts +0 -10
  736. package/src/api/corporations/getNpcCorporations.ts +0 -10
  737. package/src/api/dogma/getDogmaAttributeById.ts +0 -11
  738. package/src/api/dogma/getDogmaAttributes.ts +0 -11
  739. package/src/api/dogma/getDogmaDynamicItemAttributes.ts +0 -11
  740. package/src/api/dogma/getDogmaEffectById.ts +0 -11
  741. package/src/api/dogma/getDogmaEffects.ts +0 -11
  742. package/src/api/factions/getCharacterFactionWarfareStats.ts +0 -10
  743. package/src/api/factions/getCharacterLeaderboards.ts +0 -10
  744. package/src/api/factions/getCorporationFactionWarfareStats.ts +0 -10
  745. package/src/api/factions/getCorporationLeaderboards.ts +0 -10
  746. package/src/api/factions/getFactionLeaderboards.ts +0 -10
  747. package/src/api/factions/getFactionWarfareStats.ts +0 -10
  748. package/src/api/factions/getFactionWarfareSystems.ts +0 -10
  749. package/src/api/factions/getFactionWarfareWars.ts +0 -10
  750. package/src/api/fittings/deleteCharacterFitting.ts +0 -10
  751. package/src/api/fittings/getCharacterFittings.ts +0 -10
  752. package/src/api/fittings/postCharacterFittings.ts +0 -10
  753. package/src/api/fleets/deleteFleetMember.ts +0 -10
  754. package/src/api/fleets/deleteFleetSquad.ts +0 -10
  755. package/src/api/fleets/deleteFleetWing.ts +0 -10
  756. package/src/api/fleets/getCharacterFleetInfo.ts +0 -10
  757. package/src/api/fleets/getFleetInfo.ts +0 -10
  758. package/src/api/fleets/getFleetMembers.ts +0 -10
  759. package/src/api/fleets/getFleetWings.ts +0 -10
  760. package/src/api/fleets/postFleetInvitation.ts +0 -10
  761. package/src/api/fleets/postFleetSquad.ts +0 -10
  762. package/src/api/fleets/postFleetWing.ts +0 -10
  763. package/src/api/fleets/putFleetMember.ts +0 -10
  764. package/src/api/fleets/putFleetSquad.ts +0 -10
  765. package/src/api/fleets/putFleetWing.ts +0 -11
  766. package/src/api/fleets/updateFleet.ts +0 -10
  767. package/src/api/incursions/getIncursions.ts +0 -14
  768. package/src/api/industry/getCharacterIndustryJobs.ts +0 -10
  769. package/src/api/industry/getCharacterMiningLedger.ts +0 -10
  770. package/src/api/industry/getCorporationIndustryJobs.ts +0 -10
  771. package/src/api/industry/getCorporationMiningObserver.ts +0 -10
  772. package/src/api/industry/getCorporationMiningObservers.ts +0 -10
  773. package/src/api/industry/getIndustryFacilities.ts +0 -10
  774. package/src/api/industry/getIndustrySystems.ts +0 -10
  775. package/src/api/industry/getMoonExtractionTimers.ts +0 -10
  776. package/src/api/insurance/getInsurancePrices.ts +0 -10
  777. package/src/api/killmails/getCharacterRecentKillmails.ts +0 -10
  778. package/src/api/killmails/getCorporationRecentKillmails.ts +0 -10
  779. package/src/api/killmails/getKillmail.ts +0 -10
  780. package/src/api/location/getCharacterLocation.ts +0 -10
  781. package/src/api/location/getCharacterOnline.ts +0 -10
  782. package/src/api/location/getCharacterShip.ts +0 -10
  783. package/src/api/loyalty/getLoyaltyPoints.ts +0 -10
  784. package/src/api/loyalty/getLoyaltyStoreOffers.ts +0 -10
  785. package/src/api/mail/deleteCharacterMail.ts +0 -10
  786. package/src/api/mail/deleteCharacterMailLabel.test.ts +0 -22
  787. package/src/api/mail/deleteCharacterMailLabel.ts +0 -10
  788. package/src/api/mail/getCharacerMailingLists.test.ts +0 -35
  789. package/src/api/mail/getCharacterMail.ts +0 -10
  790. package/src/api/mail/getCharacterMailHeaders.ts +0 -10
  791. package/src/api/mail/getCharacterMailLabels.ts +0 -10
  792. package/src/api/mail/getCharacterMailingLists.ts +0 -10
  793. package/src/api/mail/postCharacterMail.ts +0 -10
  794. package/src/api/mail/postCharacterMailLabels.ts +0 -10
  795. package/src/api/mail/putCharacterMail.ts +0 -10
  796. package/src/api/market/getCharacterOrderHistory.ts +0 -10
  797. package/src/api/market/getCharacterOrders.ts +0 -10
  798. package/src/api/market/getCorporationOrderHistory.ts +0 -10
  799. package/src/api/market/getCorporationOrders.ts +0 -10
  800. package/src/api/market/getMarketGroupInformation.ts +0 -10
  801. package/src/api/market/getMarketGroups.ts +0 -10
  802. package/src/api/market/getMarketHistory.ts +0 -10
  803. package/src/api/market/getMarketOrders.ts +0 -10
  804. package/src/api/market/getMarketOrdersInStructure.ts +0 -10
  805. package/src/api/market/getMarketPrices.ts +0 -10
  806. package/src/api/market/getMarketTypes.ts +0 -10
  807. package/src/api/opportunities/getCharacterOpportunities.ts +0 -10
  808. package/src/api/opportunities/getOpportunitiesGroupById.ts +0 -10
  809. package/src/api/opportunities/getOpportunitiesGroups.ts +0 -10
  810. package/src/api/opportunities/getOpportunitiesTaskById.ts +0 -10
  811. package/src/api/opportunities/getOpportunitiesTasks.ts +0 -10
  812. package/src/api/pi/getColonies.ts +0 -10
  813. package/src/api/pi/getColonyLayout.ts +0 -10
  814. package/src/api/pi/getCorporationCustomsOffices.ts +0 -10
  815. package/src/api/pi/getSchematicInformation.ts +0 -10
  816. package/src/api/route/getRoute.ts +0 -14
  817. package/src/api/search/getCharacterSearch.ts +0 -14
  818. package/src/api/skills/getCharacterAttributes.ts +0 -10
  819. package/src/api/skills/getCharacterSkillQueue.ts +0 -10
  820. package/src/api/skills/getCharacterSkills.ts +0 -10
  821. package/src/api/sovereignty/getSovereigntyCampaigns.ts +0 -10
  822. package/src/api/sovereignty/getSovereigntyMap.ts +0 -10
  823. package/src/api/sovereignty/getSovereigntyStructures.ts +0 -10
  824. package/src/api/status/getStatus.ts +0 -11
  825. package/src/api/ui/postAutopilotWaypoint.ts +0 -10
  826. package/src/api/ui/postOpenContractWindow.ts +0 -10
  827. package/src/api/ui/postOpenInformationWindow.ts +0 -10
  828. package/src/api/ui/postOpenMarketDetailsWindow.ts +0 -10
  829. package/src/api/ui/postOpenNewMailWindow.ts +0 -10
  830. package/src/api/universe/getAncestries.ts +0 -10
  831. package/src/api/universe/getAsteroidBeltInfo.ts +0 -10
  832. package/src/api/universe/getBloodlines.ts +0 -10
  833. package/src/api/universe/getConstellationById.ts +0 -10
  834. package/src/api/universe/getConstellations.ts +0 -10
  835. package/src/api/universe/getFactions.ts +0 -10
  836. package/src/api/universe/getGraphicById.ts +0 -10
  837. package/src/api/universe/getGraphics.ts +0 -10
  838. package/src/api/universe/getItemCategories.ts +0 -10
  839. package/src/api/universe/getItemCategoryById.ts +0 -10
  840. package/src/api/universe/getItemGroupById.ts +0 -10
  841. package/src/api/universe/getItemGroups.ts +0 -10
  842. package/src/api/universe/getMoonById.ts +0 -10
  843. package/src/api/universe/getPlanetById.ts +0 -10
  844. package/src/api/universe/getRaces.ts +0 -10
  845. package/src/api/universe/getRegionById.ts +0 -10
  846. package/src/api/universe/getStarById.ts +0 -10
  847. package/src/api/universe/getStargateById.ts +0 -10
  848. package/src/api/universe/getStationById.ts +0 -10
  849. package/src/api/universe/getStructureById.ts +0 -10
  850. package/src/api/universe/getStructures.ts +0 -10
  851. package/src/api/universe/getSystemById.ts +0 -10
  852. package/src/api/universe/getSystemJumps.ts +0 -10
  853. package/src/api/universe/getSystemKills.ts +0 -10
  854. package/src/api/universe/getSystems.ts +0 -10
  855. package/src/api/universe/getTypeById.ts +0 -10
  856. package/src/api/universe/getTypes.ts +0 -10
  857. package/src/api/universe/postBulkNamesToIds.ts +0 -15
  858. package/src/api/universe/postNamesAndCategories.ts +0 -15
  859. package/src/api/wallet/getCharacterWallet.ts +0 -11
  860. package/src/api/wallet/getCharacterWalletJournal.ts +0 -11
  861. package/src/api/wallet/getCharacterWalletTransactions.ts +0 -11
  862. package/src/api/wallet/getCorporationWalletJournal.ts +0 -11
  863. package/src/api/wallet/getCorporationWalletTransactions.ts +0 -11
  864. package/src/api/wallet/getCorporationWallets.ts +0 -11
  865. package/src/api/wars/getWarById.ts +0 -10
  866. package/src/api/wars/getWarKillmails.ts +0 -10
  867. package/src/api/wars/getWars.ts +0 -10
  868. package/src/builders/AllianceApiBuilder.ts +0 -14
  869. package/src/builders/AssetsApiBuilder.ts +0 -14
  870. package/src/builders/BookmarkApiBuilder.ts +0 -14
  871. package/src/builders/CalendarApiBuilder.ts +0 -14
  872. package/src/builders/CharacterApiBuilder.ts +0 -14
  873. package/src/builders/ClonesApiBuilder.ts +0 -14
  874. package/src/builders/ContactsApiBuilder.ts +0 -14
  875. package/src/builders/ContractsApiBuilder.ts +0 -14
  876. package/src/builders/CorporationsApiBuilder.ts +0 -14
  877. package/src/builders/DogmaApiBuilder.ts +0 -15
  878. package/src/builders/FactionApiBuilder.ts +0 -14
  879. package/src/builders/FittingsApiBuilder.ts +0 -16
  880. package/src/builders/FleetApiBuilder.ts +0 -14
  881. package/src/builders/IncursionsApiBuilder.ts +0 -14
  882. package/src/builders/IndustryApiBuilder.ts +0 -14
  883. package/src/builders/InsuranceApiBuilder.ts +0 -14
  884. package/src/builders/KillmailsBuilder.ts +0 -14
  885. package/src/builders/LocationApiBuilder.ts +0 -14
  886. package/src/builders/LoyaltyApiBuilder.ts +0 -14
  887. package/src/builders/MailApiBuilder.ts +0 -14
  888. package/src/builders/MarketApiBuilder.ts +0 -14
  889. package/src/builders/OpportunitiesApiBuilder.ts +0 -16
  890. package/src/builders/PiApiBuilder.ts +0 -14
  891. package/src/builders/RouteApiBuilder.ts +0 -14
  892. package/src/builders/SearchApiBuilder.ts +0 -14
  893. package/src/builders/SkillsApiBuilder.ts +0 -14
  894. package/src/builders/SovereigntyApiBuilder.ts +0 -14
  895. package/src/builders/StatusApiBuilder.ts +0 -14
  896. package/src/builders/UiApiBuilder.ts +0 -14
  897. package/src/builders/UniverseApiBuilder.ts +0 -14
  898. package/src/builders/WalletApiBuilder.ts +0 -15
  899. package/src/builders/WarsAPIBuilder.ts +0 -14
  900. package/src/clients/AllianceClient.ts +0 -49
  901. package/src/clients/AssetsClient.ts +0 -49
  902. package/src/clients/BookmarkClient.ts +0 -35
  903. package/src/clients/CalendarClient.ts +0 -35
  904. package/src/clients/CharacterClient.ts +0 -105
  905. package/src/clients/ClonesClient.ts +0 -21
  906. package/src/clients/ContactsClient.ts +0 -70
  907. package/src/clients/ContractsClient.ts +0 -70
  908. package/src/clients/CorporationsClient.ts +0 -161
  909. package/src/clients/DogmaClient.ts +0 -43
  910. package/src/clients/FactionClient.ts +0 -63
  911. package/src/clients/FittingsClient.ts +0 -28
  912. package/src/clients/FleetClient.ts +0 -105
  913. package/src/clients/IncursionsClient.ts +0 -14
  914. package/src/clients/IndustryClient.ts +0 -63
  915. package/src/clients/InsuranceClient.ts +0 -14
  916. package/src/clients/KillmailsClient.ts +0 -28
  917. package/src/clients/LocationClient.ts +0 -28
  918. package/src/clients/LoyaltyClient.ts +0 -21
  919. package/src/clients/MailClient.ts +0 -70
  920. package/src/clients/MarketClient.ts +0 -84
  921. package/src/clients/OpportunitiesClient.ts +0 -42
  922. package/src/clients/PiClient.ts +0 -35
  923. package/src/clients/RouteClient.ts +0 -14
  924. package/src/clients/SearchClient.ts +0 -14
  925. package/src/clients/SkillsClient.ts +0 -28
  926. package/src/clients/SovereigntyClient.ts +0 -28
  927. package/src/clients/StatusClient.ts +0 -24
  928. package/src/clients/UiClient.ts +0 -42
  929. package/src/clients/UniverseClient.ts +0 -212
  930. package/src/clients/WalletClient.ts +0 -49
  931. package/src/clients/WarsClient.ts +0 -28
  932. package/src/config/configManager.ts +0 -30
  933. package/src/config/constants.ts +0 -6
  934. package/src/config/esi.json +0 -8
  935. package/src/config/jest/jest.bdd.setup.ts +0 -11
  936. package/src/config/jest/jest.setup.ts +0 -25
  937. package/src/config/swagger.json +0 -1
  938. package/src/core/ApiClient.ts +0 -18
  939. package/src/core/ApiClientBuilder.ts +0 -26
  940. package/src/core/ApiError.ts +0 -6
  941. package/src/core/ApiRequestHandler.ts +0 -138
  942. package/src/core/logger/index.ts +0 -1
  943. package/src/core/logger/logger.ts +0 -35
  944. package/src/core/logger/loggerUtil.ts +0 -17
  945. package/src/core/util/error.ts +0 -7
  946. package/src/core/util/file.ts +0 -21
  947. package/src/core/util/headersUtil.ts +0 -34
  948. package/src/core/util/inputValidation.ts +0 -6
  949. package/src/core/util/network.ts +0 -9
  950. package/src/core/util/request.ts +0 -15
  951. package/src/core/util/testHelpers.ts +0 -20
  952. package/src/index.ts +0 -1163
  953. package/src/types/winston-loggly-bulk.d.ts +0 -14
  954. package/tests/bdd/features/alliances/getAllianceById.feature +0 -6
  955. package/tests/bdd/features/alliances/getAllianceContactLabels.feature +0 -0
  956. package/tests/bdd/features/alliances/getAllianceContacts.feature +0 -0
  957. package/tests/bdd/features/alliances/getAllianceCorporations.feature +0 -6
  958. package/tests/bdd/features/alliances/getAllianceIcons.feature +0 -6
  959. package/tests/bdd/features/alliances/getAlliances.feature +0 -0
  960. package/tests/bdd/features/characters/getCharacter.feature +0 -0
  961. package/tests/bdd/features/characters/getCharacterAffiliation.feature +0 -0
  962. package/tests/bdd/features/characters/getCharacterAgentsResearch.feature +0 -0
  963. package/tests/bdd/features/characters/getCharacterAssetLocations.feature +0 -0
  964. package/tests/bdd/features/characters/getCharacterAssetNames.feature +0 -0
  965. package/tests/bdd/features/characters/getCharacterAssets.feature +0 -0
  966. package/tests/bdd/features/characters/getCharacterAttributes.feature +0 -0
  967. package/tests/bdd/features/characters/getCharacterBlueprints.feature +0 -0
  968. package/tests/bdd/features/characters/getCharacterBookmarkFolders.feature +0 -0
  969. package/tests/bdd/features/characters/getCharacterBookmarks.feature +0 -0
  970. package/tests/bdd/features/characters/getCharacterCalendarEventById.feature +0 -0
  971. package/tests/bdd/features/characters/getCharacterCalendarEvents.feature +0 -0
  972. package/tests/bdd/features/characters/getCharacterClones.feature +0 -0
  973. package/tests/bdd/features/characters/getCharacterContractBids.feature +0 -0
  974. package/tests/bdd/features/characters/getCharacterContractItems.feature +0 -0
  975. package/tests/bdd/features/characters/getCharacterContracts.feature +0 -0
  976. package/tests/bdd/features/characters/getCharacterCorporationHistory.feature +0 -0
  977. package/tests/bdd/features/characters/getCharacterFatigue.feature +0 -0
  978. package/tests/bdd/features/characters/getCharacterFittings.feature +0 -0
  979. package/tests/bdd/features/characters/getCharacterFleet.feature +0 -0
  980. package/tests/bdd/features/characters/getCharacterFwStats.feature +0 -0
  981. package/tests/bdd/features/characters/getCharacterImplants.feature +0 -0
  982. package/tests/bdd/features/characters/getCharacterIndustryJobs.feature +0 -0
  983. package/tests/bdd/features/characters/getCharacterKillmails.feature +0 -0
  984. package/tests/bdd/features/characters/getCharacterLocation.feature +0 -0
  985. package/tests/bdd/features/characters/getCharacterLoyaltyPoints.feature +0 -0
  986. package/tests/bdd/features/characters/getCharacterMail.feature +0 -0
  987. package/tests/bdd/features/characters/getCharacterMailById.feature +0 -0
  988. package/tests/bdd/features/characters/getCharacterMailLabels.feature +0 -0
  989. package/tests/bdd/features/characters/getCharacterMailLists.feature +0 -0
  990. package/tests/bdd/features/characters/getCharacterMedals.feature +0 -0
  991. package/tests/bdd/features/characters/getCharacterMining.feature +0 -0
  992. package/tests/bdd/features/characters/getCharacterNotifications.feature +0 -0
  993. package/tests/bdd/features/characters/getCharacterNotificationsContacts.feature +0 -0
  994. package/tests/bdd/features/characters/getCharacterOpportunities.feature +0 -0
  995. package/tests/bdd/features/characters/getCharacterOrderHistory.feature +0 -0
  996. package/tests/bdd/features/characters/getCharacterOrders.feature +0 -0
  997. package/tests/bdd/features/characters/getCharacterPlanets.feature +0 -0
  998. package/tests/bdd/features/characters/getCharacterPortrait.feature +0 -0
  999. package/tests/bdd/features/characters/getCharacterRoles.feature +0 -0
  1000. package/tests/bdd/features/characters/getCharacterSearch.feature +0 -0
  1001. package/tests/bdd/features/characters/getCharacterShip.feature +0 -0
  1002. package/tests/bdd/features/characters/getCharacterSkillQueue.feature +0 -0
  1003. package/tests/bdd/features/characters/getCharacterSkills.feature +0 -0
  1004. package/tests/bdd/features/characters/getCharacterStandings.feature +0 -0
  1005. package/tests/bdd/features/characters/getCharacterStats.feature +0 -0
  1006. package/tests/bdd/features/characters/getCharacterTitles.feature +0 -0
  1007. package/tests/bdd/features/characters/getCharacterWallet.feature +0 -0
  1008. package/tests/bdd/features/characters/getCharacterWalletJournal.feature +0 -0
  1009. package/tests/bdd/features/characters/getCharacterWalletTransactions.feature +0 -0
  1010. package/tests/bdd/features/contracts/getContractBids.feature +0 -0
  1011. package/tests/bdd/features/contracts/getContractById.feature +0 -0
  1012. package/tests/bdd/features/contracts/getContractItems.feature +0 -0
  1013. package/tests/bdd/features/contracts/getContracts.feature +0 -0
  1014. package/tests/bdd/features/contracts/getPublicContractBids.feature +0 -0
  1015. package/tests/bdd/features/contracts/getPublicContractItems.feature +0 -0
  1016. package/tests/bdd/features/contracts/getPublicContracts.feature +0 -0
  1017. package/tests/bdd/features/corporations/getCorporation.feature +0 -0
  1018. package/tests/bdd/features/corporations/getCorporationAlliances.feature +0 -0
  1019. package/tests/bdd/features/corporations/getCorporationBlueprints.feature +0 -0
  1020. package/tests/bdd/features/corporations/getCorporationBookmarkFolders.feature +0 -0
  1021. package/tests/bdd/features/corporations/getCorporationBookmarks.feature +0 -0
  1022. package/tests/bdd/features/corporations/getCorporationContactLabels.feature +0 -0
  1023. package/tests/bdd/features/corporations/getCorporationContacts.feature +0 -0
  1024. package/tests/bdd/features/corporations/getCorporationContainerLogs.feature +0 -0
  1025. package/tests/bdd/features/corporations/getCorporationContractBids.feature +0 -0
  1026. package/tests/bdd/features/corporations/getCorporationContractItems.feature +0 -0
  1027. package/tests/bdd/features/corporations/getCorporationContracts.feature +0 -0
  1028. package/tests/bdd/features/corporations/getCorporationDivisions.feature +0 -0
  1029. package/tests/bdd/features/corporations/getCorporationFacilities.feature +0 -0
  1030. package/tests/bdd/features/corporations/getCorporationFwStats.feature +0 -0
  1031. package/tests/bdd/features/corporations/getCorporationIcons.feature +0 -0
  1032. package/tests/bdd/features/corporations/getCorporationIndustryJobs.feature +0 -0
  1033. package/tests/bdd/features/corporations/getCorporationKillmails.feature +0 -0
  1034. package/tests/bdd/features/corporations/getCorporationMedals.feature +0 -0
  1035. package/tests/bdd/features/corporations/getCorporationMemberLimit.feature +0 -0
  1036. package/tests/bdd/features/corporations/getCorporationMemberTracking.feature +0 -0
  1037. package/tests/bdd/features/corporations/getCorporationMembers.feature +0 -0
  1038. package/tests/bdd/features/corporations/getCorporationMining.feature +0 -0
  1039. package/tests/bdd/features/corporations/getCorporationNotifications.feature +0 -0
  1040. package/tests/bdd/features/corporations/getCorporationOrderHistory.feature +0 -0
  1041. package/tests/bdd/features/corporations/getCorporationOrders.feature +0 -0
  1042. package/tests/bdd/features/corporations/getCorporationOutposts.feature +0 -0
  1043. package/tests/bdd/features/corporations/getCorporationRoles.feature +0 -0
  1044. package/tests/bdd/features/corporations/getCorporationShareholders.feature +0 -0
  1045. package/tests/bdd/features/corporations/getCorporationStandings.feature +0 -0
  1046. package/tests/bdd/features/corporations/getCorporationStarbases.feature +0 -0
  1047. package/tests/bdd/features/corporations/getCorporationStructures.feature +0 -0
  1048. package/tests/bdd/features/corporations/getCorporationTitles.feature +0 -0
  1049. package/tests/bdd/features/corporations/getCorporationWalletJournal.feature +0 -0
  1050. package/tests/bdd/features/corporations/getCorporationWalletTransactions.feature +0 -0
  1051. package/tests/bdd/features/corporations/getCorporationWallets.feature +0 -0
  1052. package/tests/bdd/features/dogma/getDogmaAttributeById.feature +0 -0
  1053. package/tests/bdd/features/dogma/getDogmaAttributes.feature +0 -0
  1054. package/tests/bdd/features/dogma/getDogmaDynamicItemAttributes.feature +0 -0
  1055. package/tests/bdd/features/dogma/getDogmaEffectById.feature +0 -0
  1056. package/tests/bdd/features/dogma/getDogmaEffects.feature +0 -0
  1057. package/tests/bdd/features/factions/getFactionWarfareLeaderboards.feature +0 -6
  1058. package/tests/bdd/features/factions/getFactionWarfareStats.feature +0 -6
  1059. package/tests/bdd/features/factions/getFactionWarfareSystems.feature +0 -6
  1060. package/tests/bdd/features/factions/getFactionWarfareWars.feature +0 -6
  1061. package/tests/bdd/features/fleets/getFleetMembers.feature +0 -0
  1062. package/tests/bdd/features/fleets/getFleetSquads.feature +0 -0
  1063. package/tests/bdd/features/fleets/getFleetWings.feature +0 -0
  1064. package/tests/bdd/features/fleets/getFleets.feature +0 -0
  1065. package/tests/bdd/features/incursions/getIncursions.feature +0 -0
  1066. package/tests/bdd/features/industry/getIndustryCorporationJobs.feature +0 -0
  1067. package/tests/bdd/features/industry/getIndustryFacilities.feature +0 -0
  1068. package/tests/bdd/features/industry/getIndustryJobs.feature +0 -0
  1069. package/tests/bdd/features/industry/getIndustrySystems.feature +0 -0
  1070. package/tests/bdd/features/insurance/getInsurancePrices.feature +0 -0
  1071. package/tests/bdd/features/killmails/getKillmailById.feature +0 -0
  1072. package/tests/bdd/features/killmails/getKillmails.feature +0 -0
  1073. package/tests/bdd/features/killmails/getRecentCharacterKillmails.feature +0 -0
  1074. package/tests/bdd/features/killmails/getRecentCorporationKillmails.feature +0 -0
  1075. package/tests/bdd/features/location/getLocation.feature +0 -0
  1076. package/tests/bdd/features/markets/getMarketGroupById.feature +0 -0
  1077. package/tests/bdd/features/markets/getMarketGroups.feature +0 -0
  1078. package/tests/bdd/features/markets/getMarketHistory.feature +0 -0
  1079. package/tests/bdd/features/markets/getMarketOrders.feature +0 -0
  1080. package/tests/bdd/features/markets/getMarketPrices.feature +0 -0
  1081. package/tests/bdd/features/markets/getMarketRegionHistory.feature +0 -0
  1082. package/tests/bdd/features/markets/getMarketRegionOrders.feature +0 -0
  1083. package/tests/bdd/features/opportunities/getOpportunitiesGroups.feature +0 -0
  1084. package/tests/bdd/features/opportunities/getOpportunitiesTasks.feature +0 -0
  1085. package/tests/bdd/features/search/postSearch.feature +0 -0
  1086. package/tests/bdd/features/sovereignty/getSovereigntyCampaigns.feature +0 -0
  1087. package/tests/bdd/features/sovereignty/getSovereigntyMap.feature +0 -0
  1088. package/tests/bdd/features/sovereignty/getSovereigntyStructures.feature +0 -0
  1089. package/tests/bdd/features/ui/postUiAutopilotWaypoint.feature +0 -0
  1090. package/tests/bdd/features/ui/postUiOpenWindowContract.feature +0 -0
  1091. package/tests/bdd/features/ui/postUiOpenWindowInformation.feature +0 -0
  1092. package/tests/bdd/features/ui/postUiOpenWindowMarketDetails.feature +0 -0
  1093. package/tests/bdd/features/ui/postUiOpenWindowNewMail.feature +0 -0
  1094. package/tests/bdd/features/universe/getAncestries.feature +0 -0
  1095. package/tests/bdd/features/universe/getAsteroidBelt.feature +0 -0
  1096. package/tests/bdd/features/universe/getBloodlines.feature +0 -0
  1097. package/tests/bdd/features/universe/getCategories.feature +0 -0
  1098. package/tests/bdd/features/universe/getCategoryById.feature +0 -0
  1099. package/tests/bdd/features/universe/getConstellationById.feature +0 -0
  1100. package/tests/bdd/features/universe/getConstellations.feature +0 -0
  1101. package/tests/bdd/features/universe/getFactions.feature +0 -0
  1102. package/tests/bdd/features/universe/getGraphicById.feature +0 -0
  1103. package/tests/bdd/features/universe/getGraphics.feature +0 -0
  1104. package/tests/bdd/features/universe/getGroupById.feature +0 -0
  1105. package/tests/bdd/features/universe/getGroups.feature +0 -0
  1106. package/tests/bdd/features/universe/getMoonById.feature +0 -0
  1107. package/tests/bdd/features/universe/getMoons.feature +0 -0
  1108. package/tests/bdd/features/universe/getPlanetById.feature +0 -0
  1109. package/tests/bdd/features/universe/getPlanets.feature +0 -0
  1110. package/tests/bdd/features/universe/getRaces.feature +0 -0
  1111. package/tests/bdd/features/universe/getRegionById.feature +0 -0
  1112. package/tests/bdd/features/universe/getRegions.feature +0 -0
  1113. package/tests/bdd/features/universe/getStarById.feature +0 -0
  1114. package/tests/bdd/features/universe/getStargateById.feature +0 -0
  1115. package/tests/bdd/features/universe/getStargates.feature +0 -0
  1116. package/tests/bdd/features/universe/getStars.feature +0 -0
  1117. package/tests/bdd/features/universe/getStationById.feature +0 -0
  1118. package/tests/bdd/features/universe/getStations.feature +0 -0
  1119. package/tests/bdd/features/universe/getStructures.feature +0 -0
  1120. package/tests/bdd/features/universe/getSystemById.feature +0 -0
  1121. package/tests/bdd/features/universe/getSystemJumps.feature +0 -0
  1122. package/tests/bdd/features/universe/getSystemKills.feature +0 -0
  1123. package/tests/bdd/features/universe/getSystems.feature +0 -0
  1124. package/tests/bdd/features/universe/getTypeById.feature +0 -0
  1125. package/tests/bdd/features/universe/getTypes.feature +0 -0
  1126. package/tests/bdd/features/universe/getWarById.feature +0 -0
  1127. package/tests/bdd/features/universe/getWars.feature +0 -0
  1128. package/tests/bdd/features/universe/postBulkIdsToNames.feature +0 -0
  1129. package/tests/bdd/features/universe/postBulkNamesToIds.feature +0 -0
  1130. package/tests/bdd/features/universe/postUniverseNames.feature +0 -0
  1131. package/tests/bdd/features/wars/getWarById.feature +0 -0
  1132. package/tests/bdd/features/wars/getWars.feature +0 -0
  1133. package/tests/bdd/steps/alliances/getAllianceById.ts +0 -17
  1134. package/tests/bdd/steps/alliances/getAllianceContactLabels.ts +0 -0
  1135. package/tests/bdd/steps/alliances/getAllianceContacts.ts +0 -0
  1136. package/tests/bdd/steps/alliances/getAllianceCorporations.ts +0 -18
  1137. package/tests/bdd/steps/alliances/getAllianceIcons.ts +0 -21
  1138. package/tests/bdd/steps/alliances/getAlliances.ts +0 -0
  1139. package/tests/bdd/steps/characters/getCharacter.ts +0 -0
  1140. package/tests/bdd/steps/characters/getCharacterAffiliation.ts +0 -0
  1141. package/tests/bdd/steps/characters/getCharacterAgentsResearch.ts +0 -0
  1142. package/tests/bdd/steps/characters/getCharacterAssetLocations.ts +0 -0
  1143. package/tests/bdd/steps/characters/getCharacterAssetNames.ts +0 -0
  1144. package/tests/bdd/steps/characters/getCharacterAssets.ts +0 -0
  1145. package/tests/bdd/steps/characters/getCharacterAttributes.ts +0 -0
  1146. package/tests/bdd/steps/characters/getCharacterBlueprints.ts +0 -0
  1147. package/tests/bdd/steps/characters/getCharacterBookmarkFolders.ts +0 -0
  1148. package/tests/bdd/steps/characters/getCharacterBookmarks.ts +0 -0
  1149. package/tests/bdd/steps/characters/getCharacterCalendarEventById.ts +0 -0
  1150. package/tests/bdd/steps/characters/getCharacterCalendarEvents.ts +0 -0
  1151. package/tests/bdd/steps/characters/getCharacterClones.ts +0 -0
  1152. package/tests/bdd/steps/characters/getCharacterContractBids.ts +0 -0
  1153. package/tests/bdd/steps/characters/getCharacterContractItems.ts +0 -0
  1154. package/tests/bdd/steps/characters/getCharacterContracts.ts +0 -0
  1155. package/tests/bdd/steps/characters/getCharacterCorporationHistory.ts +0 -0
  1156. package/tests/bdd/steps/characters/getCharacterFatigue.ts +0 -0
  1157. package/tests/bdd/steps/characters/getCharacterFittings.ts +0 -0
  1158. package/tests/bdd/steps/characters/getCharacterFleet.ts +0 -0
  1159. package/tests/bdd/steps/characters/getCharacterFwStats.ts +0 -0
  1160. package/tests/bdd/steps/characters/getCharacterImplants.ts +0 -0
  1161. package/tests/bdd/steps/characters/getCharacterIndustryJobs.ts +0 -0
  1162. package/tests/bdd/steps/characters/getCharacterKillmails.ts +0 -0
  1163. package/tests/bdd/steps/characters/getCharacterLocation.ts +0 -0
  1164. package/tests/bdd/steps/characters/getCharacterLoyaltyPoints.ts +0 -0
  1165. package/tests/bdd/steps/characters/getCharacterMail.ts +0 -0
  1166. package/tests/bdd/steps/characters/getCharacterMailById.ts +0 -0
  1167. package/tests/bdd/steps/characters/getCharacterMailLabels.ts +0 -0
  1168. package/tests/bdd/steps/characters/getCharacterMailLists.ts +0 -0
  1169. package/tests/bdd/steps/characters/getCharacterMedals.ts +0 -0
  1170. package/tests/bdd/steps/characters/getCharacterMining.ts +0 -0
  1171. package/tests/bdd/steps/characters/getCharacterNotifications.ts +0 -0
  1172. package/tests/bdd/steps/characters/getCharacterNotificationsContacts.ts +0 -0
  1173. package/tests/bdd/steps/characters/getCharacterOpportunities.ts +0 -0
  1174. package/tests/bdd/steps/characters/getCharacterOrderHistory.ts +0 -0
  1175. package/tests/bdd/steps/characters/getCharacterOrders.ts +0 -0
  1176. package/tests/bdd/steps/characters/getCharacterPlanets.ts +0 -0
  1177. package/tests/bdd/steps/characters/getCharacterPortrait.ts +0 -0
  1178. package/tests/bdd/steps/characters/getCharacterRoles.ts +0 -0
  1179. package/tests/bdd/steps/characters/getCharacterSearch.ts +0 -0
  1180. package/tests/bdd/steps/characters/getCharacterShip.ts +0 -0
  1181. package/tests/bdd/steps/characters/getCharacterSkillQueue.ts +0 -0
  1182. package/tests/bdd/steps/characters/getCharacterSkills.ts +0 -0
  1183. package/tests/bdd/steps/characters/getCharacterStandings.ts +0 -0
  1184. package/tests/bdd/steps/characters/getCharacterStats.ts +0 -0
  1185. package/tests/bdd/steps/characters/getCharacterTitles.ts +0 -0
  1186. package/tests/bdd/steps/characters/getCharacterWallet.ts +0 -0
  1187. package/tests/bdd/steps/characters/getCharacterWalletJournal.ts +0 -0
  1188. package/tests/bdd/steps/characters/getCharacterWalletTransactions.ts +0 -0
  1189. package/tests/bdd/steps/contracts/getContractBids.ts +0 -0
  1190. package/tests/bdd/steps/contracts/getContractById.ts +0 -0
  1191. package/tests/bdd/steps/contracts/getContractItems.ts +0 -0
  1192. package/tests/bdd/steps/contracts/getContracts.ts +0 -0
  1193. package/tests/bdd/steps/contracts/getPublicContractBids.ts +0 -0
  1194. package/tests/bdd/steps/contracts/getPublicContractItems.ts +0 -0
  1195. package/tests/bdd/steps/contracts/getPublicContracts.ts +0 -0
  1196. package/tests/bdd/steps/corporations/getCorporation.ts +0 -0
  1197. package/tests/bdd/steps/corporations/getCorporationAlliances.ts +0 -0
  1198. package/tests/bdd/steps/corporations/getCorporationBlueprints.ts +0 -0
  1199. package/tests/bdd/steps/corporations/getCorporationBookmarkFolders.ts +0 -0
  1200. package/tests/bdd/steps/corporations/getCorporationBookmarks.ts +0 -0
  1201. package/tests/bdd/steps/corporations/getCorporationContactLabels.ts +0 -0
  1202. package/tests/bdd/steps/corporations/getCorporationContacts.ts +0 -0
  1203. package/tests/bdd/steps/corporations/getCorporationContainerLogs.ts +0 -0
  1204. package/tests/bdd/steps/corporations/getCorporationContractBids.ts +0 -0
  1205. package/tests/bdd/steps/corporations/getCorporationContractItems.ts +0 -0
  1206. package/tests/bdd/steps/corporations/getCorporationContracts.ts +0 -0
  1207. package/tests/bdd/steps/corporations/getCorporationDivisions.ts +0 -0
  1208. package/tests/bdd/steps/corporations/getCorporationFacilities.ts +0 -0
  1209. package/tests/bdd/steps/corporations/getCorporationFwStats.ts +0 -0
  1210. package/tests/bdd/steps/corporations/getCorporationIcons.ts +0 -0
  1211. package/tests/bdd/steps/corporations/getCorporationIndustryJobs.ts +0 -0
  1212. package/tests/bdd/steps/corporations/getCorporationKillmails.ts +0 -0
  1213. package/tests/bdd/steps/corporations/getCorporationMedals.ts +0 -0
  1214. package/tests/bdd/steps/corporations/getCorporationMemberLimit.ts +0 -0
  1215. package/tests/bdd/steps/corporations/getCorporationMemberTracking.ts +0 -0
  1216. package/tests/bdd/steps/corporations/getCorporationMembers.ts +0 -0
  1217. package/tests/bdd/steps/corporations/getCorporationMining.ts +0 -0
  1218. package/tests/bdd/steps/corporations/getCorporationNotifications.ts +0 -0
  1219. package/tests/bdd/steps/corporations/getCorporationOrderHistory.ts +0 -0
  1220. package/tests/bdd/steps/corporations/getCorporationOrders.ts +0 -0
  1221. package/tests/bdd/steps/corporations/getCorporationOutposts.ts +0 -0
  1222. package/tests/bdd/steps/corporations/getCorporationRoles.ts +0 -0
  1223. package/tests/bdd/steps/corporations/getCorporationShareholders.ts +0 -0
  1224. package/tests/bdd/steps/corporations/getCorporationStandings.ts +0 -0
  1225. package/tests/bdd/steps/corporations/getCorporationStarbases.ts +0 -0
  1226. package/tests/bdd/steps/corporations/getCorporationStructures.ts +0 -0
  1227. package/tests/bdd/steps/corporations/getCorporationTitles.ts +0 -0
  1228. package/tests/bdd/steps/corporations/getCorporationWalletJournal.ts +0 -0
  1229. package/tests/bdd/steps/corporations/getCorporationWalletTransactions.ts +0 -0
  1230. package/tests/bdd/steps/corporations/getCorporationWallets.ts +0 -0
  1231. package/tests/bdd/steps/dogma/getDogmaAttributeById.ts +0 -0
  1232. package/tests/bdd/steps/dogma/getDogmaAttributes.ts +0 -0
  1233. package/tests/bdd/steps/dogma/getDogmaDynamicItemAttributes.ts +0 -0
  1234. package/tests/bdd/steps/dogma/getDogmaEffectById.ts +0 -0
  1235. package/tests/bdd/steps/dogma/getDogmaEffects.ts +0 -0
  1236. package/tests/bdd/steps/factions/getFactionWarfareLeaderboards.ts +0 -33
  1237. package/tests/bdd/steps/factions/getFactionWarfareStats.ts +0 -34
  1238. package/tests/bdd/steps/factions/getFactionWarfareSystems.ts +0 -33
  1239. package/tests/bdd/steps/factions/getFactionWarfareWars.ts +0 -33
  1240. package/tests/bdd/steps/fleets/getFleetMembers.ts +0 -0
  1241. package/tests/bdd/steps/fleets/getFleetSquads.ts +0 -0
  1242. package/tests/bdd/steps/fleets/getFleetWings.ts +0 -0
  1243. package/tests/bdd/steps/fleets/getFleets.ts +0 -0
  1244. package/tests/bdd/steps/incursions/getIncursions.ts +0 -0
  1245. package/tests/bdd/steps/industry/getIndustryCorporationJobs.ts +0 -0
  1246. package/tests/bdd/steps/industry/getIndustryFacilities.ts +0 -0
  1247. package/tests/bdd/steps/industry/getIndustryJobs.ts +0 -0
  1248. package/tests/bdd/steps/industry/getIndustrySystems.ts +0 -0
  1249. package/tests/bdd/steps/insurance/getInsurancePrices.ts +0 -0
  1250. package/tests/bdd/steps/killmails/getKillmailById.ts +0 -0
  1251. package/tests/bdd/steps/killmails/getKillmails.ts +0 -0
  1252. package/tests/bdd/steps/killmails/getRecentCharacterKillmails.ts +0 -0
  1253. package/tests/bdd/steps/killmails/getRecentCorporationKillmails.ts +0 -0
  1254. package/tests/bdd/steps/location/getLocation.ts +0 -0
  1255. package/tests/bdd/steps/markets/getMarketGroupById.ts +0 -0
  1256. package/tests/bdd/steps/markets/getMarketGroups.ts +0 -0
  1257. package/tests/bdd/steps/markets/getMarketHistory.ts +0 -0
  1258. package/tests/bdd/steps/markets/getMarketOrders.ts +0 -0
  1259. package/tests/bdd/steps/markets/getMarketPrices.ts +0 -0
  1260. package/tests/bdd/steps/markets/getMarketRegionHistory.ts +0 -0
  1261. package/tests/bdd/steps/markets/getMarketRegionOrders.ts +0 -0
  1262. package/tests/bdd/steps/opportunities/getOpportunitiesGroups.ts +0 -0
  1263. package/tests/bdd/steps/opportunities/getOpportunitiesTasks.ts +0 -0
  1264. package/tests/bdd/steps/search/postSearch.ts +0 -0
  1265. package/tests/bdd/steps/sovereignty/getSovereigntyCampaigns.ts +0 -0
  1266. package/tests/bdd/steps/sovereignty/getSovereigntyMap.ts +0 -0
  1267. package/tests/bdd/steps/sovereignty/getSovereigntyStructures.ts +0 -0
  1268. package/tests/bdd/steps/ui/postUiAutopilotWaypoint.ts +0 -0
  1269. package/tests/bdd/steps/ui/postUiOpenWindowContract.ts +0 -0
  1270. package/tests/bdd/steps/ui/postUiOpenWindowInformation.ts +0 -0
  1271. package/tests/bdd/steps/ui/postUiOpenWindowMarketDetails.ts +0 -0
  1272. package/tests/bdd/steps/ui/postUiOpenWindowNewMail.ts +0 -0
  1273. package/tests/bdd/steps/universe/getAncestries.ts +0 -0
  1274. package/tests/bdd/steps/universe/getAsteroidBelt.ts +0 -0
  1275. package/tests/bdd/steps/universe/getBloodlines.ts +0 -0
  1276. package/tests/bdd/steps/universe/getCategories.ts +0 -0
  1277. package/tests/bdd/steps/universe/getCategoryById.ts +0 -0
  1278. package/tests/bdd/steps/universe/getConstellationById.ts +0 -0
  1279. package/tests/bdd/steps/universe/getConstellations.ts +0 -0
  1280. package/tests/bdd/steps/universe/getFactions.ts +0 -0
  1281. package/tests/bdd/steps/universe/getGraphicById.ts +0 -0
  1282. package/tests/bdd/steps/universe/getGraphics.ts +0 -0
  1283. package/tests/bdd/steps/universe/getGroupById.ts +0 -0
  1284. package/tests/bdd/steps/universe/getGroups.ts +0 -0
  1285. package/tests/bdd/steps/universe/getMoonById.ts +0 -0
  1286. package/tests/bdd/steps/universe/getMoons.ts +0 -0
  1287. package/tests/bdd/steps/universe/getPlanetById.ts +0 -0
  1288. package/tests/bdd/steps/universe/getPlanets.ts +0 -0
  1289. package/tests/bdd/steps/universe/getRaces.ts +0 -0
  1290. package/tests/bdd/steps/universe/getRegionById.ts +0 -0
  1291. package/tests/bdd/steps/universe/getRegions.ts +0 -0
  1292. package/tests/bdd/steps/universe/getStarById.ts +0 -0
  1293. package/tests/bdd/steps/universe/getStargateById.ts +0 -0
  1294. package/tests/bdd/steps/universe/getStargates.ts +0 -0
  1295. package/tests/bdd/steps/universe/getStars.ts +0 -0
  1296. package/tests/bdd/steps/universe/getStationById.ts +0 -0
  1297. package/tests/bdd/steps/universe/getStations.ts +0 -0
  1298. package/tests/bdd/steps/universe/getStructures.ts +0 -0
  1299. package/tests/bdd/steps/universe/getSystemById.ts +0 -0
  1300. package/tests/bdd/steps/universe/getSystemJumps.ts +0 -0
  1301. package/tests/bdd/steps/universe/getSystemKills.ts +0 -0
  1302. package/tests/bdd/steps/universe/getSystems.ts +0 -0
  1303. package/tests/bdd/steps/universe/getTypeById.ts +0 -0
  1304. package/tests/bdd/steps/universe/getTypes.ts +0 -0
  1305. package/tests/bdd/steps/universe/getWarById.ts +0 -0
  1306. package/tests/bdd/steps/universe/getWars.ts +0 -0
  1307. package/tests/bdd/steps/universe/postBulkIdsToNames.ts +0 -0
  1308. package/tests/bdd/steps/universe/postBulkNamesToIds.ts +0 -0
  1309. package/tests/bdd/steps/universe/postUniverseNames.ts +0 -0
  1310. package/tests/bdd/steps/wars/getWarById.ts +0 -0
  1311. package/tests/bdd/steps/wars/getWars.ts +0 -0
  1312. package/tests/tdd/alliances/AllianceAPIBuilder.test.ts +0 -24
  1313. package/tests/tdd/alliances/AllianceClient.test.ts +0 -27
  1314. package/tests/tdd/alliances/getAllianceByID.test.ts +0 -61
  1315. package/tests/tdd/alliances/getAllianceContactLabels.test.ts +0 -43
  1316. package/tests/tdd/alliances/getAllianceContacts.test.ts +0 -60
  1317. package/tests/tdd/alliances/getAllianceCorporations.test.ts +0 -39
  1318. package/tests/tdd/alliances/getAllianceIcons.test.ts +0 -39
  1319. package/tests/tdd/alliances/getAlliances.test.ts +0 -38
  1320. package/tests/tdd/assets/AssetsBuilder.test.ts +0 -20
  1321. package/tests/tdd/assets/AssetsClient.test.ts +0 -192
  1322. package/tests/tdd/assets/getCharacterAssetsApi.test.ts +0 -33
  1323. package/tests/tdd/assets/getCorporationAssetsApi.test.ts +0 -55
  1324. package/tests/tdd/assets/postCharacterAssetsLocationApi.test.ts +0 -50
  1325. package/tests/tdd/assets/postCharacterAssetsNamesApi.test.ts +0 -43
  1326. package/tests/tdd/assets/postCorporationAssetLocationsApi.test.ts +0 -48
  1327. package/tests/tdd/assets/postCorporationAssetNamesApi.test.ts +0 -43
  1328. package/tests/tdd/bookmarks/BookmarkApiBuilder.test.ts +0 -21
  1329. package/tests/tdd/bookmarks/BookmarkClient.test.ts +0 -68
  1330. package/tests/tdd/bookmarks/getCharacterBookmarkFolders.test.ts +0 -37
  1331. package/tests/tdd/bookmarks/getCharacterBookmarks.test.ts +0 -42
  1332. package/tests/tdd/bookmarks/getCorporationBookmarkFolders.test.ts +0 -42
  1333. package/tests/tdd/bookmarks/getCorporationBookmarks.test.ts +0 -62
  1334. package/tests/tdd/calendar/CalendarApiBuilder.test.ts +0 -24
  1335. package/tests/tdd/calendar/CalendarClient.test.ts +0 -100
  1336. package/tests/tdd/calendar/getCalendarEventById.test.ts +0 -29
  1337. package/tests/tdd/calendar/getCalendarEvents.test.ts +0 -29
  1338. package/tests/tdd/calendar/getEventAttendees.test.ts +0 -29
  1339. package/tests/tdd/calendar/respondToCalendarEvent.test.ts +0 -29
  1340. package/tests/tdd/characters/CharacterBuilder.test.ts +0 -20
  1341. package/tests/tdd/characters/CharacterClient.test.ts +0 -153
  1342. package/tests/tdd/characters/getAgentsResearch.test.ts +0 -42
  1343. package/tests/tdd/characters/getBlueprints.test.ts +0 -42
  1344. package/tests/tdd/characters/getCharacterPublicInfo.test.ts +0 -37
  1345. package/tests/tdd/characters/getCharacterRoles.test.ts +0 -34
  1346. package/tests/tdd/characters/getCharacterStandings.test.ts +0 -45
  1347. package/tests/tdd/characters/getCharacterTitles.test.ts +0 -40
  1348. package/tests/tdd/characters/getContactNotifications.test.ts +0 -42
  1349. package/tests/tdd/characters/getCorporationHistory.test.ts +0 -42
  1350. package/tests/tdd/characters/getJumpFatigue.test.ts +0 -37
  1351. package/tests/tdd/characters/getMedals.test.ts +0 -42
  1352. package/tests/tdd/characters/getNotifications.test.ts +0 -42
  1353. package/tests/tdd/characters/getPortrait.test.ts +0 -35
  1354. package/tests/tdd/characters/postCSPAChargeCost.test.ts +0 -39
  1355. package/tests/tdd/characters/postCharacterAffiliation.test.ts +0 -48
  1356. package/tests/tdd/clones/ClonesApiBuilder.test.ts +0 -19
  1357. package/tests/tdd/clones/ClonesClient.test.ts +0 -61
  1358. package/tests/tdd/clones/getClonesApi.test.ts +0 -48
  1359. package/tests/tdd/clones/getImplantsApi.test.ts +0 -35
  1360. package/tests/tdd/contacts/ContactsApiBuilder.test.ts +0 -21
  1361. package/tests/tdd/contacts/ContactsClient.test.ts +0 -66
  1362. package/tests/tdd/contacts/deleteCharacterContacts.test.ts +0 -23
  1363. package/tests/tdd/contacts/getAllianceContactLabels.test.ts +0 -33
  1364. package/tests/tdd/contacts/getAllianceContacts.test.ts +0 -37
  1365. package/tests/tdd/contacts/getCharacterContactLabels.test.ts +0 -33
  1366. package/tests/tdd/contacts/getCharacterContacts.test.ts +0 -37
  1367. package/tests/tdd/contacts/getCorporationContactLabels.test.ts +0 -33
  1368. package/tests/tdd/contacts/getCorporationContacts.test.ts +0 -37
  1369. package/tests/tdd/contacts/postCharacterContacts.test.ts +0 -30
  1370. package/tests/tdd/contacts/putCharacterContacts.test.ts +0 -30
  1371. package/tests/tdd/contracts/ContractsApiBuilder.ts +0 -20
  1372. package/tests/tdd/contracts/ContractsClient.ts +0 -247
  1373. package/tests/tdd/contracts/getCharacterContractBids.test.ts +0 -49
  1374. package/tests/tdd/contracts/getCharacterContractItems.test.ts +0 -48
  1375. package/tests/tdd/contracts/getCharacterContracts.test.ts +0 -57
  1376. package/tests/tdd/contracts/getCorporationContractBids.test.ts +0 -48
  1377. package/tests/tdd/contracts/getCorporationContractItems.test.ts +0 -48
  1378. package/tests/tdd/contracts/getCorporationContracts.test.ts +0 -56
  1379. package/tests/tdd/contracts/getPublicContractBids.test.ts +0 -47
  1380. package/tests/tdd/contracts/getPublicContractItems.test.ts +0 -48
  1381. package/tests/tdd/contracts/getPublicContracts.test.ts +0 -58
  1382. package/tests/tdd/corporations/CorporationsApiBuilder.test.ts +0 -20
  1383. package/tests/tdd/corporations/CorporationsClient.test.ts +0 -230
  1384. package/tests/tdd/corporations/getCorporationAllianceHistory.test.ts +0 -45
  1385. package/tests/tdd/corporations/getCorporationAlscLogs.test.ts +0 -57
  1386. package/tests/tdd/corporations/getCorporationBlueprints.test.ts +0 -60
  1387. package/tests/tdd/corporations/getCorporationDivisions.test.ts +0 -64
  1388. package/tests/tdd/corporations/getCorporationFacilities.test.ts +0 -60
  1389. package/tests/tdd/corporations/getCorporationIcon.test.ts +0 -40
  1390. package/tests/tdd/corporations/getCorporationInfo.test.ts +0 -40
  1391. package/tests/tdd/corporations/getCorporationIssuedMedals.test.ts +0 -54
  1392. package/tests/tdd/corporations/getCorporationMedals.test.ts +0 -51
  1393. package/tests/tdd/corporations/getCorporationMemberLimit.test.ts +0 -32
  1394. package/tests/tdd/corporations/getCorporationMemberRoles.test.ts +0 -45
  1395. package/tests/tdd/corporations/getCorporationMemberRolesHistory.test.ts +0 -60
  1396. package/tests/tdd/corporations/getCorporationMemberTracking.test.ts +0 -48
  1397. package/tests/tdd/corporations/getCorporationMembers.test.ts +0 -34
  1398. package/tests/tdd/corporations/getCorporationMembersTitles.test.ts +0 -45
  1399. package/tests/tdd/corporations/getCorporationShareholders.test.ts +0 -45
  1400. package/tests/tdd/corporations/getCorporationStandings.test.ts +0 -45
  1401. package/tests/tdd/corporations/getCorporationStarbaseDetail.test.ts +0 -49
  1402. package/tests/tdd/corporations/getCorporationStarbases.test.ts +0 -54
  1403. package/tests/tdd/corporations/getCorporationStructures.test.ts +0 -54
  1404. package/tests/tdd/corporations/getCorporationTitles.test.ts +0 -66
  1405. package/tests/tdd/corporations/getNpcCorporations.test.ts +0 -34
  1406. package/tests/tdd/dogma/DogmaAPIBuilder.test.ts +0 -13
  1407. package/tests/tdd/dogma/DogmanClient.test.ts +0 -54
  1408. package/tests/tdd/dogma/getDogmaAttributeById.test.ts +0 -22
  1409. package/tests/tdd/dogma/getDogmaAttributes.test.ts +0 -22
  1410. package/tests/tdd/dogma/getDogmaDynamicItemAttributes.test.ts +0 -22
  1411. package/tests/tdd/dogma/getDogmaEffectById.test.ts +0 -22
  1412. package/tests/tdd/dogma/getDogmaEffects.test.ts +0 -22
  1413. package/tests/tdd/factions/FactionApiBuilder.test.ts +0 -17
  1414. package/tests/tdd/factions/FactionClient.test.ts +0 -281
  1415. package/tests/tdd/factions/getCharacterFactionWarfareStats.test.ts +0 -72
  1416. package/tests/tdd/factions/getCharacterLeaderboards.test.ts +0 -103
  1417. package/tests/tdd/factions/getCorporationFactionWarfareStats.test.ts +0 -72
  1418. package/tests/tdd/factions/getCorporationLeaderboards.test.ts +0 -103
  1419. package/tests/tdd/factions/getFactionLeaderboards.test.ts +0 -103
  1420. package/tests/tdd/factions/getFactionWarfareStats.test.ts +0 -77
  1421. package/tests/tdd/factions/getFactionWarfareSystems.test.ts +0 -59
  1422. package/tests/tdd/factions/getFactionWarfareWars.test.ts +0 -43
  1423. package/tests/tdd/fittings/FittingsBuilder.test.ts +0 -22
  1424. package/tests/tdd/fittings/FittingsClient.test.ts +0 -93
  1425. package/tests/tdd/fittings/deleteCharacterFitting.test.ts +0 -22
  1426. package/tests/tdd/fittings/getCharacterFittings.test.ts +0 -57
  1427. package/tests/tdd/fittings/postCharacterFittings.test.ts +0 -47
  1428. package/tests/tdd/fleets/FleetApiBuilder.test.ts +0 -20
  1429. package/tests/tdd/fleets/FleetClient.test.ts +0 -212
  1430. package/tests/tdd/fleets/deleteFleetMember.test.ts +0 -31
  1431. package/tests/tdd/fleets/deleteFleetSquad.test.ts +0 -24
  1432. package/tests/tdd/fleets/deleteFleetWing.test.ts +0 -24
  1433. package/tests/tdd/fleets/getCharacterFleetInfo.test.ts +0 -39
  1434. package/tests/tdd/fleets/getFleetInfo.test.ts +0 -42
  1435. package/tests/tdd/fleets/getFleetMembers.test.ts +0 -45
  1436. package/tests/tdd/fleets/getFleetWings.test.ts +0 -35
  1437. package/tests/tdd/fleets/postFleetInvitation.test.ts +0 -29
  1438. package/tests/tdd/fleets/postFleetSquad.test.ts +0 -22
  1439. package/tests/tdd/fleets/postFleetWing.test.ts +0 -31
  1440. package/tests/tdd/fleets/putFleetMember.test.ts +0 -36
  1441. package/tests/tdd/fleets/putFleetSquad.test.ts +0 -28
  1442. package/tests/tdd/fleets/putFleetWing.test.ts +0 -22
  1443. package/tests/tdd/fleets/updateFleet.test.ts +0 -39
  1444. package/tests/tdd/incursions/IncursionsApiBuilder.test.ts +0 -20
  1445. package/tests/tdd/incursions/IncursionsClient.test.ts +0 -63
  1446. package/tests/tdd/incursions/getIncursions.test.ts +0 -41
  1447. package/tests/tdd/industry/IndustryBuilder.test.ts +0 -20
  1448. package/tests/tdd/industry/IndustryClient.test.ts +0 -354
  1449. package/tests/tdd/industry/getCharacterIndustryJobs.test.ts +0 -80
  1450. package/tests/tdd/industry/getCharacterMiningLedger.test.ts +0 -41
  1451. package/tests/tdd/industry/getCorporationIndustryJobs.test.ts +0 -92
  1452. package/tests/tdd/industry/getCorporationMiningObserver.test.ts +0 -44
  1453. package/tests/tdd/industry/getCorporationMiningObservers.test.ts +0 -38
  1454. package/tests/tdd/industry/getIndustryFacilities.test.ts +0 -47
  1455. package/tests/tdd/industry/getIndustrySystems.test.ts +0 -46
  1456. package/tests/tdd/industry/getMoonExtractionTimers.test.ts +0 -44
  1457. package/tests/tdd/insurance/InsuranceApiBuilder.test.ts +0 -21
  1458. package/tests/tdd/insurance/InsuranceClient.test.ts +0 -50
  1459. package/tests/tdd/insurance/getInsurancePrices.test.ts +0 -51
  1460. package/tests/tdd/killmails/KillmailApiBuilder.test.ts +0 -20
  1461. package/tests/tdd/killmails/KillmailClient.test.ts +0 -110
  1462. package/tests/tdd/killmails/getCharacterRecentKillmails.test.ts +0 -52
  1463. package/tests/tdd/killmails/getCorporationRecentKillmails.test.ts +0 -52
  1464. package/tests/tdd/killmails/getKillmail.test.ts +0 -47
  1465. package/tests/tdd/location/LocationApiBuilder.test.ts +0 -20
  1466. package/tests/tdd/location/LocationClient.test.ts +0 -82
  1467. package/tests/tdd/location/getCharacterLocation.test.ts +0 -41
  1468. package/tests/tdd/location/getCharacterOnline.test.ts +0 -44
  1469. package/tests/tdd/location/getCharacterShip.test.ts +0 -41
  1470. package/tests/tdd/loyalty/LoyaltyApiBuilder.test.ts +0 -20
  1471. package/tests/tdd/loyalty/LoyaltyClient.test.ts +0 -73
  1472. package/tests/tdd/loyalty/getLoyaltyPoints.test.ts +0 -35
  1473. package/tests/tdd/loyalty/getLoyaltyStoreOffers.test.ts +0 -44
  1474. package/tests/tdd/mail/MailApiBuilder.test.ts +0 -20
  1475. package/tests/tdd/mail/MailClient.test.ts +0 -189
  1476. package/tests/tdd/mail/deleteCharacterMail.test.ts +0 -22
  1477. package/tests/tdd/mail/getCharacterMail.test.ts +0 -46
  1478. package/tests/tdd/mail/getCharacterMailHeaders.ts +0 -51
  1479. package/tests/tdd/mail/getCharacterMailLabels.test.ts +0 -44
  1480. package/tests/tdd/mail/postCharacterMail.test.ts +0 -40
  1481. package/tests/tdd/mail/postCharacterMailLabels.test.ts +0 -31
  1482. package/tests/tdd/mail/putCharacterMail.test.ts +0 -27
  1483. package/tests/tdd/market/MarketApiBuilder.test.ts +0 -20
  1484. package/tests/tdd/market/MarketClient.test.ts +0 -398
  1485. package/tests/tdd/market/getCharacterOrderHistory.test.ts +0 -61
  1486. package/tests/tdd/market/getCharacterOrders.test.test.ts +0 -61
  1487. package/tests/tdd/market/getCorporationOrderHistory.test.ts +0 -61
  1488. package/tests/tdd/market/getCorporationOrders.test.ts +0 -61
  1489. package/tests/tdd/market/getMarketGroupInformation.test.ts +0 -43
  1490. package/tests/tdd/market/getMarketGroups.test.ts +0 -48
  1491. package/tests/tdd/market/getMarketHistory.test.ts +0 -49
  1492. package/tests/tdd/market/getMarketOrders.test.ts +0 -59
  1493. package/tests/tdd/market/getMarketOrdersInStructure.test.ts +0 -67
  1494. package/tests/tdd/market/getMarketPrices.test.ts +0 -51
  1495. package/tests/tdd/market/getMarketTypes.test.ts +0 -35
  1496. package/tests/tdd/opportunities/OpportunitiesAPIBuillder.test.ts +0 -25
  1497. package/tests/tdd/opportunities/OpportunitiesClient.test.ts +0 -109
  1498. package/tests/tdd/opportunities/getCharacterOpportunities.test.ts +0 -38
  1499. package/tests/tdd/opportunities/getOpportunitiesGroupById.test.ts +0 -42
  1500. package/tests/tdd/opportunities/getOpportunitiesGroups.test.ts +0 -40
  1501. package/tests/tdd/opportunities/getOpportunitiesTaskById.test.ts +0 -37
  1502. package/tests/tdd/opportunities/getOpportunitiesTasks.test.ts +0 -40
  1503. package/tests/tdd/pi/PiApiBuilder.test.ts +0 -20
  1504. package/tests/tdd/pi/PiClient.test.ts +0 -155
  1505. package/tests/tdd/pi/getColonies.test.ts +0 -47
  1506. package/tests/tdd/pi/getColonyLayout.test.ts +0 -45
  1507. package/tests/tdd/pi/getCorporationCustomsOffices.test.ts +0 -63
  1508. package/tests/tdd/pi/getSchematicInformation.test.ts +0 -36
  1509. package/tests/tdd/route/RouteApiBuilder.ts +0 -20
  1510. package/tests/tdd/route/RouteClient.test.ts +0 -38
  1511. package/tests/tdd/route/getRoute.test.ts +0 -37
  1512. package/tests/tdd/search/characterSearch.test.ts +0 -50
  1513. package/tests/tdd/search/searchApiBuilder.test.ts +0 -17
  1514. package/tests/tdd/search/searchClient.test.ts +0 -40
  1515. package/tests/tdd/skills/SkillsApiBuilder.test.ts +0 -20
  1516. package/tests/tdd/skills/SkillsClient.test.ts +0 -112
  1517. package/tests/tdd/skills/getCharacterAttributes.test.ts +0 -39
  1518. package/tests/tdd/skills/getCharacterSkillQueue.test.ts +0 -48
  1519. package/tests/tdd/skills/getCharacterSkills.test.ts +0 -46
  1520. package/tests/tdd/sovereignty/SovereigntyApiBuilder.test.ts +0 -18
  1521. package/tests/tdd/sovereignty/SovereigntyClient.test.ts +0 -84
  1522. package/tests/tdd/sovereignty/getSovereigntyCampaigns.test.ts +0 -41
  1523. package/tests/tdd/sovereignty/getSovereigntyMap.test.ts +0 -37
  1524. package/tests/tdd/sovereignty/getSovereigntyStructures.test.ts +0 -41
  1525. package/tests/tdd/status/StatusAPIBuilder.test.ts +0 -20
  1526. package/tests/tdd/status/StatusClient.test.ts +0 -38
  1527. package/tests/tdd/status/getStatus.test.ts +0 -45
  1528. package/tests/tdd/ui/UiApiBuilder.test.ts +0 -20
  1529. package/tests/tdd/ui/UiClient.test.ts +0 -81
  1530. package/tests/tdd/ui/postAutopilotWaypoint.test.ts +0 -36
  1531. package/tests/tdd/ui/postOpenContractWindow.test.ts +0 -34
  1532. package/tests/tdd/ui/postOpenInformationWindow.test.ts +0 -34
  1533. package/tests/tdd/ui/postOpenMarketDetailsWindow.test.ts +0 -34
  1534. package/tests/tdd/ui/postOpenNewMailWindow.test.ts +0 -36
  1535. package/tests/tdd/universe/UniverseApiBuilder.test.ts +0 -60
  1536. package/tests/tdd/universe/UniverseClient.test.ts +0 -215
  1537. package/tests/tdd/universe/getAncestries.test.ts +0 -34
  1538. package/tests/tdd/universe/getAsteroidBeltInfo.test.ts +0 -29
  1539. package/tests/tdd/universe/getBloodlines.test.ts +0 -34
  1540. package/tests/tdd/universe/getConstellationById.test.ts +0 -37
  1541. package/tests/tdd/universe/getConstellations.test.ts +0 -34
  1542. package/tests/tdd/universe/getFactions.test.ts +0 -34
  1543. package/tests/tdd/universe/getGraphicById.test.ts +0 -45
  1544. package/tests/tdd/universe/getGraphics.test.ts +0 -34
  1545. package/tests/tdd/universe/getGroupById.test.ts +0 -45
  1546. package/tests/tdd/universe/getItemCategories.test.ts +0 -34
  1547. package/tests/tdd/universe/getItemCategoryById.test.ts +0 -37
  1548. package/tests/tdd/universe/getItemGroups.test.ts +0 -50
  1549. package/tests/tdd/universe/getMoonById.test.ts +0 -59
  1550. package/tests/tdd/universe/getPlanetById.test.ts +0 -63
  1551. package/tests/tdd/universe/getRaces.test.ts +0 -50
  1552. package/tests/tdd/universe/getRegionById.test.ts +0 -53
  1553. package/tests/tdd/universe/getStarById.test.ts +0 -53
  1554. package/tests/tdd/universe/getStargateById.test.ts +0 -63
  1555. package/tests/tdd/universe/getStationById.test.ts +0 -53
  1556. package/tests/tdd/universe/getStructureById.test.ts +0 -71
  1557. package/tests/tdd/universe/getStructures.test.ts +0 -33
  1558. package/tests/tdd/universe/getSystemById.test.ts +0 -49
  1559. package/tests/tdd/universe/getSystemJumps.test.ts +0 -46
  1560. package/tests/tdd/universe/getSystemKills.test.ts +0 -46
  1561. package/tests/tdd/universe/getSystems.test.ts +0 -33
  1562. package/tests/tdd/universe/getTypeById.test.ts +0 -53
  1563. package/tests/tdd/universe/getTypes.test.ts +0 -33
  1564. package/tests/tdd/universe/postBulkNamesToIds.test.ts +0 -47
  1565. package/tests/tdd/universe/postNamesAndCatagories.test.ts +0 -47
  1566. package/tests/tdd/wallet/WalletApiBuilder.test.ts +0 -20
  1567. package/tests/tdd/wallet/WalletClient.test.ts +0 -187
  1568. package/tests/tdd/wallet/getCharacterWallet.test.ts +0 -35
  1569. package/tests/tdd/wallet/getCharacterWalletJournal.test.ts +0 -53
  1570. package/tests/tdd/wallet/getCharacterWalletTransactions.test.ts +0 -57
  1571. package/tests/tdd/wallet/getCorporationWalletJournal.test.ts +0 -53
  1572. package/tests/tdd/wallet/getCorporationWalletTransactions.test.ts +0 -57
  1573. package/tests/tdd/wallet/getCorporationWallets.test.ts +0 -43
  1574. package/tests/tdd/wars/WarsAPIBuilder.test.ts +0 -23
  1575. package/tests/tdd/wars/WarsClient.test.ts +0 -93
  1576. package/tests/tdd/wars/getWarById.test.ts +0 -31
  1577. package/tests/tdd/wars/getWarKillmails.test.ts +0 -33
  1578. package/tests/tdd/wars/getWars.test.ts +0 -33
  1579. package/tsconfig.json +0 -15
  1580. package/types/global.d.ts +0 -17
  1581. package/types/jest.d.ts +0 -1
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ /**
3
+ * Cursor-based Pagination Handler for ESI API calls.
4
+ *
5
+ * New ESI routes (starting with Corporation Projects) use opaque
6
+ * before/after cursor tokens instead of page numbers.
7
+ *
8
+ * Response headers:
9
+ * x-cursor-before – token to fetch data preceding the current batch
10
+ * x-cursor-after – token to fetch data following the current batch
11
+ *
12
+ * Query parameters:
13
+ * before=<token> – crawl backwards
14
+ * after=<token> – crawl forwards
15
+ *
16
+ * An empty result array signals the beginning/end of the dataset.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.CursorPaginationHandler = void 0;
20
+ const loggerUtil_1 = require("../logger/loggerUtil");
21
+ const constants_1 = require("../constants");
22
+ const sleep_1 = require("../util/sleep");
23
+ class CursorPaginationHandler {
24
+ static DEFAULT_OPTIONS = {
25
+ maxPages: 1000,
26
+ maxRetries: 3,
27
+ retryDelayMs: 1000,
28
+ };
29
+ /**
30
+ * Fetch a single cursor page, returning data + cursor tokens.
31
+ */
32
+ static async fetchPage(client, endpoint, method, requiresAuth, cursor, body) {
33
+ const url = this.buildUrl(client, endpoint, cursor);
34
+ (0, loggerUtil_1.logInfo)(`Cursor fetch: ${url}`);
35
+ const response = await fetch(url, {
36
+ method,
37
+ headers: {
38
+ accept: 'gzip, deflate, br',
39
+ 'User-Agent': constants_1.USER_AGENT,
40
+ 'X-Compatibility-Date': constants_1.COMPATIBILITY_DATE,
41
+ ...(requiresAuth
42
+ ? { Authorization: client.getAuthorizationHeader() }
43
+ : {}),
44
+ },
45
+ body: body ? JSON.stringify(body) : undefined,
46
+ });
47
+ if (!response.ok) {
48
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
49
+ }
50
+ let data;
51
+ try {
52
+ const parsed = await response.json();
53
+ data = Array.isArray(parsed) ? parsed : [parsed];
54
+ }
55
+ catch (jsonError) {
56
+ throw new Error(`Invalid JSON response: ${jsonError instanceof Error ? jsonError.message : String(jsonError)}`);
57
+ }
58
+ const cursors = this.extractCursors(response.headers);
59
+ return { data, cursors };
60
+ }
61
+ /**
62
+ * Auto-fetch all pages by following `after` tokens until an empty
63
+ * response is received. Combines the caller-supplied first page
64
+ * data with all subsequent pages.
65
+ */
66
+ static async fetchAll(client, endpoint, method, requiresAuth, firstPageData, firstCursors, body, options = {}) {
67
+ const opts = { ...this.DEFAULT_OPTIONS, ...options };
68
+ const rateLimiter = client.getRateLimiter();
69
+ const allData = [...firstPageData];
70
+ let afterToken = firstCursors.after;
71
+ let pageCount = 1;
72
+ let consecutiveFailures = 0;
73
+ while (afterToken && pageCount < opts.maxPages) {
74
+ try {
75
+ if (rateLimiter)
76
+ await rateLimiter.checkRateLimit();
77
+ const page = await this.fetchPageWithRetry(client, endpoint, method, requiresAuth, { after: afterToken }, body, opts);
78
+ consecutiveFailures = 0;
79
+ pageCount++;
80
+ if (page.data.length === 0) {
81
+ (0, loggerUtil_1.logInfo)('Cursor pagination: empty page received, dataset complete.');
82
+ break;
83
+ }
84
+ allData.push(...page.data);
85
+ afterToken = page.cursors.after;
86
+ (0, loggerUtil_1.logInfo)(`Cursor page ${pageCount} fetched (${page.data.length} items)`);
87
+ }
88
+ catch (error) {
89
+ consecutiveFailures++;
90
+ (0, loggerUtil_1.logError)(`Cursor page fetch failed: ${error instanceof Error ? error.message : String(error)}`);
91
+ if (consecutiveFailures >= opts.maxRetries) {
92
+ (0, loggerUtil_1.logWarn)(`${consecutiveFailures} consecutive failures. Stopping cursor pagination.`);
93
+ break;
94
+ }
95
+ }
96
+ }
97
+ (0, loggerUtil_1.logInfo)(`Cursor pagination complete. ${allData.length} total items from ${pageCount} pages.`);
98
+ return allData;
99
+ }
100
+ /**
101
+ * Fetch a single cursor page with retry logic.
102
+ */
103
+ static async fetchPageWithRetry(client, endpoint, method, requiresAuth, cursor, body, options) {
104
+ let lastError = null;
105
+ for (let attempt = 1; attempt <= options.maxRetries; attempt++) {
106
+ try {
107
+ return await this.fetchPage(client, endpoint, method, requiresAuth, cursor, body);
108
+ }
109
+ catch (error) {
110
+ lastError = error;
111
+ (0, loggerUtil_1.logWarn)(`Cursor fetch attempt ${attempt}/${options.maxRetries} failed: ${error instanceof Error ? error.message : String(error)}`);
112
+ if (attempt < options.maxRetries) {
113
+ await (0, sleep_1.sleep)(options.retryDelayMs * attempt);
114
+ }
115
+ }
116
+ }
117
+ throw lastError || new Error('Cursor page fetch failed after all retries');
118
+ }
119
+ /**
120
+ * Extract cursor tokens from response headers.
121
+ */
122
+ static extractCursors(headers) {
123
+ const get = (name) => headers.get(name) || null;
124
+ return {
125
+ before: get('x-cursor-before'),
126
+ after: get('x-cursor-after'),
127
+ };
128
+ }
129
+ /**
130
+ * Build a URL with cursor query parameters appended.
131
+ */
132
+ static buildUrl(client, endpoint, cursor) {
133
+ let url = `${client.getLink()}/${endpoint}`;
134
+ if (!cursor)
135
+ return url;
136
+ const parts = [];
137
+ if (cursor.before)
138
+ parts.push(`before=${encodeURIComponent(cursor.before)}`);
139
+ if (cursor.after)
140
+ parts.push(`after=${encodeURIComponent(cursor.after)}`);
141
+ if (parts.length > 0) {
142
+ const separator = url.includes('?') ? '&' : '?';
143
+ url += separator + parts.join('&');
144
+ }
145
+ return url;
146
+ }
147
+ }
148
+ exports.CursorPaginationHandler = CursorPaginationHandler;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Pagination Handler for ESI API calls
3
+ * Handles pagination with proper error handling and empty page detection
4
+ */
5
+ import { ApiClient } from '../ApiClient';
6
+ export interface PaginationOptions {
7
+ maxPages?: number;
8
+ maxRetries?: number;
9
+ retryDelayMs?: number;
10
+ stopOnEmptyPage?: boolean;
11
+ }
12
+ export type PageFetcher = (paginatedEndpoint: string) => Promise<unknown[]>;
13
+ export declare class PaginationHandler {
14
+ private static readonly DEFAULT_OPTIONS;
15
+ /**
16
+ * Fetch remaining pages (2..totalPages) and combine with first page data.
17
+ * The caller has already fetched page 1 and knows the total page count.
18
+ */
19
+ static fetchRemainingPages(client: ApiClient, endpoint: string, method: string, requiresAuth: boolean, firstPageData: unknown[], totalPages: number, body?: unknown, options?: PaginationOptions, pageFetch?: PageFetcher): Promise<unknown[]>;
20
+ /**
21
+ * Fetch a single page with retry logic
22
+ */
23
+ private static fetchPageWithRetry;
24
+ /**
25
+ * Fetch a single page.
26
+ * Preserves any existing query params on the endpoint and appends page=N.
27
+ */
28
+ private static fetchSinglePage;
29
+ }
30
+ //# sourceMappingURL=PaginationHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationHandler.d.ts","sourceRoot":"","sources":["../../../src/core/pagination/PaginationHandler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,iBAAiB,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;AAE5E,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAKrC;IAEF;;;OAGG;WACU,mBAAmB,CAC9B,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,OAAO,EAAE,EACxB,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,OAAO,EACd,OAAO,GAAE,iBAAsB,EAC/B,SAAS,CAAC,EAAE,WAAW,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC;IA8DrB;;OAEG;mBACkB,kBAAkB;IA2CvC;;;OAGG;mBACkB,eAAe;CAiDrC"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /**
3
+ * Pagination Handler for ESI API calls
4
+ * Handles pagination with proper error handling and empty page detection
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.PaginationHandler = void 0;
8
+ const loggerUtil_1 = require("../logger/loggerUtil");
9
+ const constants_1 = require("../constants");
10
+ const sleep_1 = require("../util/sleep");
11
+ class PaginationHandler {
12
+ static DEFAULT_OPTIONS = {
13
+ maxPages: 1000, // Reasonable limit to prevent infinite loops
14
+ maxRetries: 3,
15
+ retryDelayMs: 1000,
16
+ stopOnEmptyPage: true,
17
+ };
18
+ /**
19
+ * Fetch remaining pages (2..totalPages) and combine with first page data.
20
+ * The caller has already fetched page 1 and knows the total page count.
21
+ */
22
+ static async fetchRemainingPages(client, endpoint, method, requiresAuth, firstPageData, totalPages, body, options = {}, pageFetch) {
23
+ const opts = { ...this.DEFAULT_OPTIONS, ...options };
24
+ const rateLimiter = client.getRateLimiter();
25
+ const allData = [...firstPageData];
26
+ const effectiveMaxPage = Math.min(totalPages, opts.maxPages);
27
+ if (effectiveMaxPage <= 1) {
28
+ return allData;
29
+ }
30
+ (0, loggerUtil_1.logInfo)(`Fetching pages 2-${effectiveMaxPage} for ${endpoint}...`);
31
+ let consecutiveFailures = 0;
32
+ for (let page = 2; page <= effectiveMaxPage; page++) {
33
+ try {
34
+ if (rateLimiter)
35
+ await rateLimiter.checkRateLimit();
36
+ const pageData = await this.fetchPageWithRetry(client, endpoint, method, page, requiresAuth, body, opts, pageFetch);
37
+ consecutiveFailures = 0;
38
+ if (opts.stopOnEmptyPage && (!pageData || pageData.length === 0)) {
39
+ (0, loggerUtil_1.logWarn)(`Page ${page} is empty. Stopping pagination.`);
40
+ break;
41
+ }
42
+ allData.push(...pageData);
43
+ (0, loggerUtil_1.logInfo)(`Fetched page ${page}/${effectiveMaxPage} (${pageData.length} items)`);
44
+ }
45
+ catch (error) {
46
+ consecutiveFailures++;
47
+ (0, loggerUtil_1.logError)(`Failed to fetch page ${page}: ${error instanceof Error ? error.message : String(error)}`);
48
+ if (consecutiveFailures >= opts.maxRetries) {
49
+ (0, loggerUtil_1.logWarn)(`${consecutiveFailures} consecutive failures. Stopping pagination.`);
50
+ break;
51
+ }
52
+ }
53
+ }
54
+ (0, loggerUtil_1.logInfo)(`Pagination complete. Fetched ${allData.length} total items from up to ${effectiveMaxPage} pages.`);
55
+ return allData;
56
+ }
57
+ /**
58
+ * Fetch a single page with retry logic
59
+ */
60
+ static async fetchPageWithRetry(client, endpoint, method, page, requiresAuth, body, options, pageFetch) {
61
+ let lastError = null;
62
+ for (let attempt = 1; attempt <= options.maxRetries; attempt++) {
63
+ try {
64
+ return await this.fetchSinglePage(client, endpoint, method, page, requiresAuth, body, pageFetch);
65
+ }
66
+ catch (error) {
67
+ lastError = error;
68
+ (0, loggerUtil_1.logWarn)(`Attempt ${attempt}/${options.maxRetries} failed for page ${page}: ${error instanceof Error ? error.message : String(error)}`);
69
+ if (attempt < options.maxRetries) {
70
+ await (0, sleep_1.sleep)(options.retryDelayMs * attempt);
71
+ }
72
+ }
73
+ }
74
+ throw (lastError ||
75
+ new Error(`Failed to fetch page ${page} after ${options.maxRetries} attempts`));
76
+ }
77
+ /**
78
+ * Fetch a single page.
79
+ * Preserves any existing query params on the endpoint and appends page=N.
80
+ */
81
+ static async fetchSinglePage(client, endpoint, method, page, requiresAuth, body, pageFetch) {
82
+ const separator = endpoint.includes('?') ? '&' : '?';
83
+ const paginatedEndpoint = `${endpoint}${separator}page=${page}`;
84
+ if (pageFetch) {
85
+ (0, loggerUtil_1.logInfo)(`Fetching page ${page} via pipeline: ${paginatedEndpoint}`);
86
+ return pageFetch(paginatedEndpoint);
87
+ }
88
+ const url = `${client.getLink()}/${paginatedEndpoint}`;
89
+ (0, loggerUtil_1.logInfo)(`Fetching page ${page}: ${url}`);
90
+ const response = await fetch(url, {
91
+ method,
92
+ headers: {
93
+ accept: 'gzip, deflate, br',
94
+ 'User-Agent': constants_1.USER_AGENT,
95
+ 'X-Compatibility-Date': constants_1.COMPATIBILITY_DATE,
96
+ ...(requiresAuth
97
+ ? { Authorization: client.getAuthorizationHeader() }
98
+ : {}),
99
+ },
100
+ body: body ? JSON.stringify(body) : undefined,
101
+ });
102
+ if (!response.ok) {
103
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
104
+ }
105
+ let data;
106
+ try {
107
+ data = (await response.json());
108
+ }
109
+ catch (jsonError) {
110
+ throw new Error(`Invalid JSON response for page ${page}: ${jsonError instanceof Error ? jsonError.message : String(jsonError)}`);
111
+ }
112
+ return Array.isArray(data) ? data : [data];
113
+ }
114
+ }
115
+ exports.PaginationHandler = PaginationHandler;
@@ -0,0 +1,17 @@
1
+ export interface IRateLimiter {
2
+ checkRateLimit(): Promise<void>;
3
+ updateFromResponse(headers: Record<string, string>, statusCode: number): void;
4
+ getStatus(): {
5
+ remaining: number;
6
+ limit: number;
7
+ used: number;
8
+ group: string | null;
9
+ errorLimitRemain: number;
10
+ errorLimitReset: number;
11
+ retryAfter: number | null;
12
+ blockedUntil: number;
13
+ };
14
+ isBlocked(): boolean;
15
+ reset(): void;
16
+ }
17
+ //# sourceMappingURL=IRateLimiter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRateLimiter.d.ts","sourceRoot":"","sources":["../../../src/core/rateLimiter/IRateLimiter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9E,SAAS,IAAI;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,IAAI,OAAO,CAAC;IACrB,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Rate Limiter for ESI API calls
3
+ *
4
+ * Implements both the new floating-window rate limiting system and the legacy
5
+ * error-limit system per the official ESI documentation:
6
+ *
7
+ * New system (X-Ratelimit-* headers):
8
+ * - Floating window with token bucket per IP+route group
9
+ * - Token costs: 2xx = 2 tokens, 3xx = 1 token, 4xx = 5 tokens, 5xx = 0 tokens
10
+ * - Returns 429 when bucket is empty, with Retry-After header
11
+ *
12
+ * Legacy system (x-esi-error-limit-* headers):
13
+ * - 100 non-2xx/3xx errors per minute
14
+ * - Returns 420 when limit exceeded, with Retry-After header
15
+ */
16
+ import { IRateLimiter } from './IRateLimiter';
17
+ export interface RateLimitInfo {
18
+ /** Tokens remaining in current window (new system) */
19
+ remaining: number;
20
+ /** Total token budget (new system) */
21
+ limit: number;
22
+ /** Tokens used in current window (new system) */
23
+ used: number;
24
+ /** Route group for this endpoint (new system) */
25
+ group: string | null;
26
+ /** Legacy error-limit remaining count */
27
+ errorLimitRemain: number;
28
+ /** Legacy error-limit seconds until reset */
29
+ errorLimitReset: number;
30
+ /** Retry-After value in seconds (set on 420/429) */
31
+ retryAfter: number | null;
32
+ /** Timestamp (ms) when we must stop sending requests */
33
+ blockedUntil: number;
34
+ }
35
+ export interface RateLimiterConfig {
36
+ minDelayMs?: number;
37
+ decelerationThreshold?: number;
38
+ }
39
+ export declare class RateLimiter implements IRateLimiter {
40
+ private rateLimitInfo;
41
+ private lastRequestTime;
42
+ private readonly minDelayMs;
43
+ private isTestMode;
44
+ private readonly decelerationThreshold;
45
+ constructor(config?: RateLimiterConfig);
46
+ private defaultInfo;
47
+ /**
48
+ * Update rate limit information from response headers and status code.
49
+ * Must be called on EVERY response, not just 2xx.
50
+ */
51
+ updateFromResponse(headers: Record<string, string>, statusCode: number): void;
52
+ /**
53
+ * Legacy method — kept for backwards compatibility.
54
+ * Prefer updateFromResponse() which also accepts status code.
55
+ */
56
+ updateRateLimitInfo(headers: Record<string, string>): void;
57
+ /**
58
+ * Check if we should wait before making the next request.
59
+ * Enforces hard blocks (420/429), proactive deceleration, and minimum delay.
60
+ */
61
+ checkRateLimit(): Promise<void>;
62
+ /**
63
+ * Enforce minimum delay between requests
64
+ */
65
+ private enforceMinDelay;
66
+ /** Get current rate limit status */
67
+ getStatus(): RateLimitInfo;
68
+ /** Get token cost for a given status code */
69
+ static getTokenCost(statusCode: number): number;
70
+ /** Check if currently blocked (420/429 backoff active) */
71
+ isBlocked(): boolean;
72
+ /** Set test mode (disables all delays) */
73
+ setTestMode(enabled: boolean): void;
74
+ /** Reset rate limiter state */
75
+ reset(): void;
76
+ }
77
+ //# sourceMappingURL=RateLimiter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../../../src/core/rateLimiter/RateLimiter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI9C,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,yCAAyC;IACzC,gBAAgB,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;CACtB;AAkBD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,qBAAa,WAAY,YAAW,YAAY;IAC9C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,UAAU,CAAkB;IAEpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;gBAEnC,MAAM,CAAC,EAAE,iBAAiB;IAMtC,OAAO,CAAC,WAAW;IAanB;;;OAGG;IACH,kBAAkB,CAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,MAAM,GACjB,IAAI;IAkDP;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAI1D;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAyErC;;OAEG;YACW,eAAe;IAgB7B,oCAAoC;IACpC,SAAS,IAAI,aAAa;IAI1B,6CAA6C;IAC7C,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAI/C,0DAA0D;IAC1D,SAAS,IAAI,OAAO;IAIpB,0CAA0C;IAC1C,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAInC,+BAA+B;IAC/B,KAAK,IAAI,IAAI;CAId"}
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+ /**
3
+ * Rate Limiter for ESI API calls
4
+ *
5
+ * Implements both the new floating-window rate limiting system and the legacy
6
+ * error-limit system per the official ESI documentation:
7
+ *
8
+ * New system (X-Ratelimit-* headers):
9
+ * - Floating window with token bucket per IP+route group
10
+ * - Token costs: 2xx = 2 tokens, 3xx = 1 token, 4xx = 5 tokens, 5xx = 0 tokens
11
+ * - Returns 429 when bucket is empty, with Retry-After header
12
+ *
13
+ * Legacy system (x-esi-error-limit-* headers):
14
+ * - 100 non-2xx/3xx errors per minute
15
+ * - Returns 420 when limit exceeded, with Retry-After header
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RateLimiter = void 0;
19
+ const loggerUtil_1 = require("../logger/loggerUtil");
20
+ const sleep_1 = require("../util/sleep");
21
+ /** Token costs per HTTP status code range, per ESI docs */
22
+ const TOKEN_COSTS = {
23
+ '2xx': 2,
24
+ '3xx': 1,
25
+ '4xx': 5,
26
+ '5xx': 0,
27
+ };
28
+ function getTokenCost(statusCode) {
29
+ if (statusCode >= 200 && statusCode < 300)
30
+ return TOKEN_COSTS['2xx'];
31
+ if (statusCode >= 300 && statusCode < 400)
32
+ return TOKEN_COSTS['3xx'];
33
+ if (statusCode >= 400 && statusCode < 500)
34
+ return TOKEN_COSTS['4xx'];
35
+ if (statusCode >= 500 && statusCode < 600)
36
+ return TOKEN_COSTS['5xx'];
37
+ return 2; // default to 2xx cost
38
+ }
39
+ class RateLimiter {
40
+ rateLimitInfo;
41
+ lastRequestTime = 0;
42
+ minDelayMs;
43
+ isTestMode = false;
44
+ decelerationThreshold;
45
+ constructor(config) {
46
+ this.minDelayMs = config?.minDelayMs ?? 50;
47
+ this.decelerationThreshold = config?.decelerationThreshold ?? 0.2;
48
+ this.rateLimitInfo = this.defaultInfo();
49
+ }
50
+ defaultInfo() {
51
+ return {
52
+ remaining: -1, // -1 means "no data yet"
53
+ limit: 0,
54
+ used: 0,
55
+ group: null,
56
+ errorLimitRemain: 100,
57
+ errorLimitReset: 0,
58
+ retryAfter: null,
59
+ blockedUntil: 0,
60
+ };
61
+ }
62
+ /**
63
+ * Update rate limit information from response headers and status code.
64
+ * Must be called on EVERY response, not just 2xx.
65
+ */
66
+ updateFromResponse(headers, statusCode) {
67
+ if (this.isTestMode)
68
+ return;
69
+ // New rate limit headers (preferred)
70
+ const group = headers['x-ratelimit-group'] || null;
71
+ if ('x-ratelimit-remaining' in headers) {
72
+ this.rateLimitInfo.remaining = parseInt(headers['x-ratelimit-remaining'], 10);
73
+ }
74
+ if ('x-ratelimit-limit' in headers) {
75
+ this.rateLimitInfo.limit = parseInt(headers['x-ratelimit-limit'], 10);
76
+ }
77
+ if ('x-ratelimit-used' in headers) {
78
+ this.rateLimitInfo.used = parseInt(headers['x-ratelimit-used'], 10);
79
+ }
80
+ this.rateLimitInfo.group = group;
81
+ // Legacy error limit headers
82
+ if ('x-esi-error-limit-remain' in headers) {
83
+ this.rateLimitInfo.errorLimitRemain = parseInt(headers['x-esi-error-limit-remain'], 10);
84
+ }
85
+ if ('x-esi-error-limit-reset' in headers) {
86
+ this.rateLimitInfo.errorLimitReset = parseInt(headers['x-esi-error-limit-reset'], 10);
87
+ }
88
+ // Retry-After (present on 420 and 429 responses)
89
+ if ('retry-after' in headers) {
90
+ const retrySeconds = parseInt(headers['retry-after'], 10);
91
+ this.rateLimitInfo.retryAfter = retrySeconds;
92
+ this.rateLimitInfo.blockedUntil = Date.now() + retrySeconds * 1000;
93
+ }
94
+ // Handle 420 (legacy error limited) and 429 (new rate limited)
95
+ if (statusCode === 420 || statusCode === 429) {
96
+ if (!this.rateLimitInfo.retryAfter) {
97
+ // No Retry-After header — default to 60 seconds for safety
98
+ this.rateLimitInfo.blockedUntil = Date.now() + 60_000;
99
+ }
100
+ }
101
+ }
102
+ /**
103
+ * Legacy method — kept for backwards compatibility.
104
+ * Prefer updateFromResponse() which also accepts status code.
105
+ */
106
+ updateRateLimitInfo(headers) {
107
+ this.updateFromResponse(headers, 200);
108
+ }
109
+ /**
110
+ * Check if we should wait before making the next request.
111
+ * Enforces hard blocks (420/429), proactive deceleration, and minimum delay.
112
+ */
113
+ async checkRateLimit() {
114
+ if (this.isTestMode)
115
+ return;
116
+ const now = Date.now();
117
+ // Hard block: we received a 420/429 and must wait
118
+ if (this.rateLimitInfo.blockedUntil > now) {
119
+ const waitTime = this.rateLimitInfo.blockedUntil - now;
120
+ (0, loggerUtil_1.logWarn)(`[ESI Rate Limit] Blocked for ${Math.ceil(waitTime / 1000)}s (420/429 received)`);
121
+ await (0, sleep_1.sleep)(waitTime);
122
+ // Clear the block after waiting
123
+ this.rateLimitInfo.blockedUntil = 0;
124
+ this.rateLimitInfo.retryAfter = null;
125
+ return;
126
+ }
127
+ // Legacy error limit: if remaining errors are very low, slow down
128
+ if (this.rateLimitInfo.errorLimitRemain <= 10 &&
129
+ this.rateLimitInfo.errorLimitRemain > 0) {
130
+ const resetMs = this.rateLimitInfo.errorLimitReset * 1000;
131
+ const delay = Math.min(resetMs, 5000); // cap at 5s
132
+ if (delay > 0) {
133
+ (0, loggerUtil_1.logWarn)(`[ESI Rate Limit] Legacy error limit low (${this.rateLimitInfo.errorLimitRemain}), waiting ${delay}ms`);
134
+ await (0, sleep_1.sleep)(delay);
135
+ return;
136
+ }
137
+ }
138
+ // Legacy error limit: completely exhausted
139
+ if (this.rateLimitInfo.errorLimitRemain <= 0 &&
140
+ this.rateLimitInfo.errorLimitReset > 0) {
141
+ const waitTime = this.rateLimitInfo.errorLimitReset * 1000;
142
+ (0, loggerUtil_1.logWarn)(`[ESI Rate Limit] Legacy error limit exhausted, waiting ${Math.ceil(waitTime / 1000)}s`);
143
+ await (0, sleep_1.sleep)(waitTime);
144
+ return;
145
+ }
146
+ // Proactive deceleration: if new-system remaining is known and getting low
147
+ if (this.rateLimitInfo.remaining >= 0 && this.rateLimitInfo.limit > 0) {
148
+ const ratio = this.rateLimitInfo.remaining / this.rateLimitInfo.limit;
149
+ if (this.rateLimitInfo.remaining <= 0) {
150
+ // Bucket empty — wait before next request
151
+ (0, loggerUtil_1.logWarn)('[ESI Rate Limit] Token bucket empty, waiting 1s');
152
+ await (0, sleep_1.sleep)(1000);
153
+ return;
154
+ }
155
+ if (ratio <= this.decelerationThreshold) {
156
+ // Linearly increase delay as remaining approaches 0
157
+ // At 20% remaining: ~50ms extra, at 1% remaining: ~1000ms extra
158
+ const extraDelay = Math.ceil((1 - ratio / this.decelerationThreshold) * 1000);
159
+ await (0, sleep_1.sleep)(extraDelay);
160
+ return;
161
+ }
162
+ }
163
+ // Minimum delay between requests
164
+ await this.enforceMinDelay();
165
+ }
166
+ /**
167
+ * Enforce minimum delay between requests
168
+ */
169
+ async enforceMinDelay() {
170
+ if (this.isTestMode) {
171
+ this.lastRequestTime = Date.now();
172
+ return;
173
+ }
174
+ const now = Date.now();
175
+ const timeSinceLastRequest = now - this.lastRequestTime;
176
+ if (timeSinceLastRequest < this.minDelayMs) {
177
+ await (0, sleep_1.sleep)(this.minDelayMs - timeSinceLastRequest);
178
+ }
179
+ this.lastRequestTime = Date.now();
180
+ }
181
+ /** Get current rate limit status */
182
+ getStatus() {
183
+ return { ...this.rateLimitInfo };
184
+ }
185
+ /** Get token cost for a given status code */
186
+ static getTokenCost(statusCode) {
187
+ return getTokenCost(statusCode);
188
+ }
189
+ /** Check if currently blocked (420/429 backoff active) */
190
+ isBlocked() {
191
+ return this.rateLimitInfo.blockedUntil > Date.now();
192
+ }
193
+ /** Set test mode (disables all delays) */
194
+ setTestMode(enabled) {
195
+ this.isTestMode = enabled;
196
+ }
197
+ /** Reset rate limiter state */
198
+ reset() {
199
+ this.rateLimitInfo = this.defaultInfo();
200
+ this.lastRequestTime = 0;
201
+ }
202
+ }
203
+ exports.RateLimiter = RateLimiter;
@@ -0,0 +1,23 @@
1
+ export declare class EsiError extends Error {
2
+ readonly statusCode: number;
3
+ readonly requestId?: string | undefined;
4
+ readonly url?: string;
5
+ constructor(statusCode: number, message: string, url?: string, requestId?: string | undefined);
6
+ isRateLimited(): boolean;
7
+ isNotFound(): boolean;
8
+ isUnauthorized(): boolean;
9
+ isForbidden(): boolean;
10
+ isServerError(): boolean;
11
+ isTimeout(): boolean;
12
+ get retryable(): boolean;
13
+ }
14
+ export declare function isEsiError(error: unknown): error is EsiError;
15
+ export declare function isRateLimited(error: unknown): error is EsiError;
16
+ export declare function isNotFound(error: unknown): error is EsiError;
17
+ export declare function isUnauthorized(error: unknown): error is EsiError;
18
+ export declare function isForbidden(error: unknown): error is EsiError;
19
+ export declare function isServerError(error: unknown): error is EsiError;
20
+ export declare function isTimeout(error: unknown): error is EsiError;
21
+ export declare function isRetryable(error: unknown): error is EsiError;
22
+ export declare const buildError: (message: string, type?: string, url?: string) => Error;
23
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/util/error.ts"],"names":[],"mappings":"AAiBA,qBAAa,QAAS,SAAQ,KAAK;aAIf,UAAU,EAAE,MAAM;aAGlB,SAAS,CAAC,EAAE,MAAM;IANpC,SAAgB,GAAG,CAAC,EAAE,MAAM,CAAC;gBAGX,UAAU,EAAE,MAAM,EAClC,OAAO,EAAE,MAAM,EACf,GAAG,CAAC,EAAE,MAAM,EACI,SAAS,CAAC,EAAE,MAAM,YAAA;IAOpC,aAAa,IAAI,OAAO;IAIxB,UAAU,IAAI,OAAO;IAIrB,cAAc,IAAI,OAAO;IAIzB,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,OAAO;IAIxB,SAAS,IAAI,OAAO;IAIpB,IAAI,SAAS,IAAI,OAAO,CASvB;CACF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAEhE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE7D;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE/D;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE3D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE7D;AAED,eAAO,MAAM,UAAU,GACrB,SAAS,MAAM,EACf,OAAM,MAAgB,EACtB,MAAM,MAAM,KACX,KAMF,CAAC"}