@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,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorHandler = exports.ApiError = exports.ApiErrorType = void 0;
4
+ var ApiErrorType;
5
+ (function (ApiErrorType) {
6
+ ApiErrorType["NETWORK_ERROR"] = "NETWORK_ERROR";
7
+ ApiErrorType["AUTHENTICATION_ERROR"] = "AUTHENTICATION_ERROR";
8
+ ApiErrorType["AUTHORIZATION_ERROR"] = "AUTHORIZATION_ERROR";
9
+ ApiErrorType["RATE_LIMIT_ERROR"] = "RATE_LIMIT_ERROR";
10
+ ApiErrorType["SERVER_ERROR"] = "SERVER_ERROR";
11
+ ApiErrorType["CLIENT_ERROR"] = "CLIENT_ERROR";
12
+ ApiErrorType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
13
+ ApiErrorType["NOT_FOUND_ERROR"] = "NOT_FOUND_ERROR";
14
+ ApiErrorType["TIMEOUT_ERROR"] = "TIMEOUT_ERROR";
15
+ ApiErrorType["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
16
+ })(ApiErrorType || (exports.ApiErrorType = ApiErrorType = {}));
17
+ class ApiError extends Error {
18
+ constructor(message, type = ApiErrorType.UNKNOWN_ERROR, statusCode, details, requestId) {
19
+ super(message);
20
+ this.name = 'ApiError';
21
+ this.type = type;
22
+ this.statusCode = statusCode;
23
+ this.details = details;
24
+ this.timestamp = new Date();
25
+ this.requestId = requestId;
26
+ // Maintains proper stack trace for where our error was thrown (only available on V8)
27
+ if (Error.captureStackTrace) {
28
+ Error.captureStackTrace(this, ApiError);
29
+ }
30
+ }
31
+ static fromHttpStatus(statusCode, message, details, requestId) {
32
+ let type;
33
+ switch (Math.floor(statusCode / 100)) {
34
+ case 4:
35
+ if (statusCode === 401) {
36
+ type = ApiErrorType.AUTHENTICATION_ERROR;
37
+ }
38
+ else if (statusCode === 403) {
39
+ type = ApiErrorType.AUTHORIZATION_ERROR;
40
+ }
41
+ else if (statusCode === 404) {
42
+ type = ApiErrorType.NOT_FOUND_ERROR;
43
+ }
44
+ else if (statusCode === 429) {
45
+ type = ApiErrorType.RATE_LIMIT_ERROR;
46
+ }
47
+ else {
48
+ type = ApiErrorType.CLIENT_ERROR;
49
+ }
50
+ break;
51
+ case 5:
52
+ type = ApiErrorType.SERVER_ERROR;
53
+ break;
54
+ default:
55
+ type = ApiErrorType.UNKNOWN_ERROR;
56
+ }
57
+ return new ApiError(message, type, statusCode, details, requestId);
58
+ }
59
+ static networkError(message = 'Network connection failed', details) {
60
+ return new ApiError(message, ApiErrorType.NETWORK_ERROR, undefined, details);
61
+ }
62
+ static timeoutError(message = 'Request timeout', details) {
63
+ return new ApiError(message, ApiErrorType.TIMEOUT_ERROR, undefined, details);
64
+ }
65
+ static validationError(message, details) {
66
+ return new ApiError(message, ApiErrorType.VALIDATION_ERROR, 400, details);
67
+ }
68
+ toJSON() {
69
+ return {
70
+ name: this.name,
71
+ message: this.message,
72
+ type: this.type,
73
+ statusCode: this.statusCode,
74
+ details: this.details,
75
+ timestamp: this.timestamp.toISOString(),
76
+ requestId: this.requestId,
77
+ stack: this.stack
78
+ };
79
+ }
80
+ }
81
+ exports.ApiError = ApiError;
82
+ class ErrorHandler {
83
+ static handle(error, requestId) {
84
+ var _a, _b, _c;
85
+ if (error instanceof ApiError) {
86
+ throw error;
87
+ }
88
+ // Handle Axios/HTTP errors
89
+ if (error.response) {
90
+ const statusCode = error.response.status;
91
+ const message = ((_a = error.response.data) === null || _a === void 0 ? void 0 : _a.error) ||
92
+ ((_b = error.response.data) === null || _b === void 0 ? void 0 : _b.message) ||
93
+ error.message ||
94
+ `HTTP ${statusCode} Error`;
95
+ throw ApiError.fromHttpStatus(statusCode, message, error.response.data, requestId);
96
+ }
97
+ // Handle network errors
98
+ if (error.code === 'ECONNREFUSED' || error.code === 'ENOTFOUND' || error.code === 'ECONNRESET') {
99
+ throw ApiError.networkError(`Network error: ${error.message}`, { code: error.code });
100
+ }
101
+ // Handle timeout errors
102
+ if (error.code === 'ECONNABORTED' || ((_c = error.message) === null || _c === void 0 ? void 0 : _c.includes('timeout'))) {
103
+ throw ApiError.timeoutError(`Request timeout: ${error.message}`);
104
+ }
105
+ // Default to unknown error
106
+ throw new ApiError(error.message || 'An unknown error occurred', ApiErrorType.UNKNOWN_ERROR, undefined, error, requestId);
107
+ }
108
+ static isRetryable(error) {
109
+ return [
110
+ ApiErrorType.NETWORK_ERROR,
111
+ ApiErrorType.TIMEOUT_ERROR,
112
+ ApiErrorType.SERVER_ERROR,
113
+ ApiErrorType.RATE_LIMIT_ERROR
114
+ ].includes(error.type);
115
+ }
116
+ static getRetryDelay(error, attempt) {
117
+ var _a, _b;
118
+ if (error.type === ApiErrorType.RATE_LIMIT_ERROR) {
119
+ // Check for Retry-After header in details
120
+ const retryAfter = (_b = (_a = error.details) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b['retry-after'];
121
+ if (retryAfter) {
122
+ return parseInt(retryAfter) * 1000; // Convert to milliseconds
123
+ }
124
+ }
125
+ // Exponential backoff: 1s, 2s, 4s, 8s, etc.
126
+ return Math.min(1000 * Math.pow(2, attempt - 1), 30000); // Max 30 seconds
127
+ }
128
+ }
129
+ exports.ErrorHandler = ErrorHandler;
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.apiFactory = exports.ApiFactory = exports.ApiModule = void 0;
7
+ const ApiClient_1 = require("../ApiClient");
8
+ const Container_1 = require("../container/Container");
9
+ const ApiError_1 = require("../errors/ApiError");
10
+ const logger_1 = __importDefault(require("../logger/logger"));
11
+ class ApiModule {
12
+ constructor(client, container) {
13
+ this.client = client;
14
+ this.container = container;
15
+ }
16
+ }
17
+ exports.ApiModule = ApiModule;
18
+ class ApiFactory {
19
+ constructor() {
20
+ this.clients = new Map();
21
+ this.modules = new Map();
22
+ this.container = new Container_1.Container({
23
+ enableLogging: process.env.NODE_ENV === 'development',
24
+ enableCircularDependencyDetection: true
25
+ });
26
+ this.registerCoreServices();
27
+ }
28
+ static getInstance() {
29
+ if (!this.instance) {
30
+ this.instance = new ApiFactory();
31
+ }
32
+ return this.instance;
33
+ }
34
+ /**
35
+ * Register core services in the container
36
+ */
37
+ registerCoreServices() {
38
+ this.container.registerInstance('logger', logger_1.default);
39
+ this.container.registerInstance('errorHandler', ApiError_1.ErrorHandler);
40
+ }
41
+ /**
42
+ * Create and register an API client
43
+ */
44
+ createClient(name, config) {
45
+ try {
46
+ const client = new ApiClient_1.ApiClient(config.clientId, config.baseUrl, config.accessToken);
47
+ this.clients.set(name, client);
48
+ this.container.registerInstance(`client:${name}`, client);
49
+ logger_1.default.info(`API client '${name}' created and registered`);
50
+ return client;
51
+ }
52
+ catch (error) {
53
+ logger_1.default.error(`Failed to create API client '${name}':`, error);
54
+ throw ApiError_1.ErrorHandler.handle(error);
55
+ }
56
+ }
57
+ /**
58
+ * Get an existing API client
59
+ */
60
+ getClient(name) {
61
+ const client = this.clients.get(name);
62
+ if (!client) {
63
+ throw new ApiError_1.ApiError(`API client '${name}' not found. Available clients: ${Array.from(this.clients.keys()).join(', ')}`, ApiError_1.ApiErrorType.CLIENT_ERROR);
64
+ }
65
+ return client;
66
+ }
67
+ /**
68
+ * Register an API module
69
+ */
70
+ registerModule(module) {
71
+ try {
72
+ // Check dependencies
73
+ if (module.config.dependencies) {
74
+ for (const dependency of module.config.dependencies) {
75
+ if (!this.container.has(dependency)) {
76
+ throw new ApiError_1.ApiError(`Module '${module.config.name}' requires dependency '${dependency}' which is not registered`, ApiError_1.ApiErrorType.VALIDATION_ERROR);
77
+ }
78
+ }
79
+ }
80
+ // Register the module
81
+ module.register();
82
+ this.modules.set(module.config.name, module);
83
+ this.container.registerInstance(`module:${module.config.name}`, module);
84
+ logger_1.default.info(`API module '${module.config.name}' v${module.config.version} registered`);
85
+ }
86
+ catch (error) {
87
+ logger_1.default.error(`Failed to register module '${module.config.name}':`, error);
88
+ throw ApiError_1.ErrorHandler.handle(error);
89
+ }
90
+ }
91
+ /**
92
+ * Get a service from the container
93
+ */
94
+ getService(token) {
95
+ try {
96
+ return this.container.resolve(token);
97
+ }
98
+ catch (error) {
99
+ logger_1.default.error(`Failed to resolve service '${token}':`, error);
100
+ throw ApiError_1.ErrorHandler.handle(error);
101
+ }
102
+ }
103
+ /**
104
+ * Register a service in the container
105
+ */
106
+ registerService(token, factory, singleton = false) {
107
+ try {
108
+ this.container.register(token, factory, singleton);
109
+ logger_1.default.debug(`Service '${token}' registered (singleton: ${singleton})`);
110
+ }
111
+ catch (error) {
112
+ logger_1.default.error(`Failed to register service '${token}':`, error);
113
+ throw ApiError_1.ErrorHandler.handle(error);
114
+ }
115
+ }
116
+ /**
117
+ * Get all registered clients
118
+ */
119
+ getRegisteredClients() {
120
+ return Array.from(this.clients.keys());
121
+ }
122
+ /**
123
+ * Get all registered modules
124
+ */
125
+ getRegisteredModules() {
126
+ return Array.from(this.modules.keys());
127
+ }
128
+ /**
129
+ * Health check for all registered clients
130
+ */
131
+ async healthCheck() {
132
+ const results = {};
133
+ for (const [name, client] of this.clients) {
134
+ try {
135
+ // Perform a simple health check (this would need to be implemented in ApiClient)
136
+ // For now, just check if client exists and has required properties
137
+ results[name] = !!(client && client.getLink());
138
+ }
139
+ catch (error) {
140
+ logger_1.default.warn(`Health check failed for client '${name}':`, error);
141
+ results[name] = false;
142
+ }
143
+ }
144
+ return results;
145
+ }
146
+ /**
147
+ * Shutdown factory and cleanup resources
148
+ */
149
+ async shutdown() {
150
+ try {
151
+ // Cleanup modules
152
+ for (const [name, module] of this.modules) {
153
+ logger_1.default.debug(`Shutting down module: ${name}`);
154
+ // If modules have cleanup methods, call them here
155
+ }
156
+ // Clear containers
157
+ this.container.clear();
158
+ this.clients.clear();
159
+ this.modules.clear();
160
+ logger_1.default.info('ApiFactory shutdown completed');
161
+ }
162
+ catch (error) {
163
+ logger_1.default.error('Error during ApiFactory shutdown:', error);
164
+ throw ApiError_1.ErrorHandler.handle(error);
165
+ }
166
+ }
167
+ }
168
+ exports.ApiFactory = ApiFactory;
169
+ // Export singleton instance
170
+ exports.apiFactory = ApiFactory.getInstance();
@@ -0,0 +1,7 @@
1
+ export interface ILogger {
2
+ info(message: string): void;
3
+ warn(message: string): void;
4
+ error(message: string): void;
5
+ debug(message: string): void;
6
+ }
7
+ //# sourceMappingURL=ILogger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILogger.d.ts","sourceRoot":"","sources":["../../../src/core/logger/ILogger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { default } from './logger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var logger_1 = require("./logger");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(logger_1).default; } });
@@ -0,0 +1,3 @@
1
+ declare const logger: import("winston").Logger;
2
+ export default logger;
3
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/core/logger/logger.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,MAAM,0BAIV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const winston_1 = require("winston");
4
+ const { combine, timestamp, printf, colorize } = winston_1.format;
5
+ // Define custom log format
6
+ const logFormat = printf(({ level, message, timestamp }) => {
7
+ return `${String(timestamp)} [${String(level)}]: ${String(message)}`;
8
+ });
9
+ // Create Winston logger instance — console only by default.
10
+ // Libraries should not write to files; the consuming application controls logging.
11
+ const logger = (0, winston_1.createLogger)({
12
+ level: process.env.ESI_LOG_LEVEL || 'warn',
13
+ format: combine(colorize(), timestamp(), logFormat),
14
+ transports: [new winston_1.transports.Console()],
15
+ });
16
+ exports.default = logger;
@@ -0,0 +1,9 @@
1
+ import { ILogger } from './ILogger';
2
+ export type { ILogger } from './ILogger';
3
+ export declare const setLogger: (customLogger: ILogger) => void;
4
+ export declare const getLogger: () => ILogger;
5
+ export declare const logInfo: (message: string) => void;
6
+ export declare const logError: (message: string) => void;
7
+ export declare const logWarn: (message: string) => void;
8
+ export declare const logDebug: (message: string) => void;
9
+ //# sourceMappingURL=loggerUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggerUtil.d.ts","sourceRoot":"","sources":["../../../src/core/logger/loggerUtil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,eAAO,MAAM,SAAS,GAAI,cAAc,OAAO,KAAG,IAEjD,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,OAAuB,CAAC;AAErD,eAAO,MAAM,OAAO,GAAI,SAAS,MAAM,SAEtC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,SAEvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,SAAS,MAAM,SAEtC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,SAEvC,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.logDebug = exports.logWarn = exports.logError = exports.logInfo = exports.getLogger = exports.setLogger = void 0;
7
+ const logger_1 = __importDefault(require("./logger"));
8
+ let activeLogger = logger_1.default;
9
+ const setLogger = (customLogger) => {
10
+ activeLogger = customLogger;
11
+ };
12
+ exports.setLogger = setLogger;
13
+ const getLogger = () => activeLogger;
14
+ exports.getLogger = getLogger;
15
+ const logInfo = (message) => {
16
+ activeLogger.info(message);
17
+ };
18
+ exports.logInfo = logInfo;
19
+ const logError = (message) => {
20
+ activeLogger.error(message);
21
+ };
22
+ exports.logError = logError;
23
+ const logWarn = (message) => {
24
+ activeLogger.warn(message);
25
+ };
26
+ exports.logWarn = logWarn;
27
+ const logDebug = (message) => {
28
+ activeLogger.debug(message);
29
+ };
30
+ exports.logDebug = logDebug;
@@ -0,0 +1,30 @@
1
+ export interface RequestContext {
2
+ url: string;
3
+ endpoint: string;
4
+ method: string;
5
+ headers: Record<string, string>;
6
+ body?: unknown;
7
+ }
8
+ export interface ResponseContext {
9
+ url: string;
10
+ endpoint: string;
11
+ method: string;
12
+ status: number;
13
+ headers: Record<string, string>;
14
+ body: unknown;
15
+ durationMs: number;
16
+ fromCache: boolean;
17
+ }
18
+ export type RequestInterceptor = (context: RequestContext) => RequestContext | Promise<RequestContext>;
19
+ export type ResponseInterceptor = (context: ResponseContext) => ResponseContext | Promise<ResponseContext>;
20
+ export declare class MiddlewareManager {
21
+ private requestInterceptors;
22
+ private responseInterceptors;
23
+ addRequestInterceptor(fn: RequestInterceptor): () => void;
24
+ addResponseInterceptor(fn: ResponseInterceptor): () => void;
25
+ applyRequestInterceptors(context: RequestContext): Promise<RequestContext>;
26
+ applyResponseInterceptors(context: ResponseContext): Promise<ResponseContext>;
27
+ hasInterceptors(): boolean;
28
+ clear(): void;
29
+ }
30
+ //# sourceMappingURL=Middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Middleware.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/Middleware.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,cAAc,KACpB,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,eAAe,KACrB,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEhD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,mBAAmB,CAA4B;IACvD,OAAO,CAAC,oBAAoB,CAA6B;IAEzD,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,IAAI;IASzD,sBAAsB,CAAC,EAAE,EAAE,mBAAmB,GAAG,MAAM,IAAI;IASrD,wBAAwB,CAC5B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,cAAc,CAAC;IAQpB,yBAAyB,CAC7B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC;IAQ3B,eAAe,IAAI,OAAO;IAO1B,KAAK,IAAI,IAAI;CAId"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MiddlewareManager = void 0;
4
+ class MiddlewareManager {
5
+ requestInterceptors = [];
6
+ responseInterceptors = [];
7
+ addRequestInterceptor(fn) {
8
+ this.requestInterceptors.push(fn);
9
+ return () => {
10
+ this.requestInterceptors = this.requestInterceptors.filter((i) => i !== fn);
11
+ };
12
+ }
13
+ addResponseInterceptor(fn) {
14
+ this.responseInterceptors.push(fn);
15
+ return () => {
16
+ this.responseInterceptors = this.responseInterceptors.filter((i) => i !== fn);
17
+ };
18
+ }
19
+ async applyRequestInterceptors(context) {
20
+ let ctx = context;
21
+ for (const interceptor of this.requestInterceptors) {
22
+ ctx = await interceptor(ctx);
23
+ }
24
+ return ctx;
25
+ }
26
+ async applyResponseInterceptors(context) {
27
+ let ctx = context;
28
+ for (const interceptor of this.responseInterceptors) {
29
+ ctx = await interceptor(ctx);
30
+ }
31
+ return ctx;
32
+ }
33
+ hasInterceptors() {
34
+ return (this.requestInterceptors.length > 0 ||
35
+ this.responseInterceptors.length > 0);
36
+ }
37
+ clear() {
38
+ this.requestInterceptors = [];
39
+ this.responseInterceptors = [];
40
+ }
41
+ }
42
+ exports.MiddlewareManager = MiddlewareManager;
@@ -0,0 +1,8 @@
1
+ import { ApiClient } from '../ApiClient';
2
+ export interface PageResult<T = unknown> {
3
+ data: T[];
4
+ page: number;
5
+ totalPages: number;
6
+ }
7
+ export declare function fetchPages<T = unknown>(client: ApiClient, endpoint: string, method: string, requiresAuth?: boolean, body?: unknown): AsyncGenerator<PageResult<T>, void, undefined>;
8
+ //# sourceMappingURL=AsyncPaginationIterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncPaginationIterator.d.ts","sourceRoot":"","sources":["../../../src/core/pagination/AsyncPaginationIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO;IACrC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAQD,wBAAuB,UAAU,CAAC,CAAC,GAAG,OAAO,EAC3C,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,OAAe,EAC7B,IAAI,CAAC,EAAE,OAAO,GACb,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAgChD"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchPages = fetchPages;
4
+ const ApiRequestHandler_1 = require("../ApiRequestHandler");
5
+ const loggerUtil_1 = require("../logger/loggerUtil");
6
+ function extractArray(body) {
7
+ if (Array.isArray(body))
8
+ return body;
9
+ if (body !== undefined && body !== null)
10
+ return [body];
11
+ return [];
12
+ }
13
+ async function* fetchPages(client, endpoint, method, requiresAuth = false, body) {
14
+ const firstResponse = await (0, ApiRequestHandler_1.handleRequest)(client, endpoint, method, body, requiresAuth);
15
+ const totalPages = parseInt(firstResponse.headers['x-pages'] || '1', 10);
16
+ yield { data: extractArray(firstResponse.body), page: 1, totalPages };
17
+ for (let page = 2; page <= totalPages; page++) {
18
+ const sep = endpoint.includes('?') ? '&' : '?';
19
+ const pagedEndpoint = `${endpoint}${sep}page=${page}`;
20
+ (0, loggerUtil_1.logInfo)(`Fetching page ${page}/${totalPages}: ${pagedEndpoint}`);
21
+ const response = await (0, ApiRequestHandler_1.handleRequest)(client, pagedEndpoint, method, body, requiresAuth);
22
+ const pageData = extractArray(response.body);
23
+ if (pageData.length === 0)
24
+ break;
25
+ yield { data: pageData, page, totalPages };
26
+ }
27
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Cursor-based Pagination Handler for ESI API calls.
3
+ *
4
+ * New ESI routes (starting with Corporation Projects) use opaque
5
+ * before/after cursor tokens instead of page numbers.
6
+ *
7
+ * Response headers:
8
+ * x-cursor-before – token to fetch data preceding the current batch
9
+ * x-cursor-after – token to fetch data following the current batch
10
+ *
11
+ * Query parameters:
12
+ * before=<token> – crawl backwards
13
+ * after=<token> – crawl forwards
14
+ *
15
+ * An empty result array signals the beginning/end of the dataset.
16
+ */
17
+ import { ApiClient } from '../ApiClient';
18
+ export interface CursorTokens {
19
+ before: string | null;
20
+ after: string | null;
21
+ }
22
+ export interface CursorPage<T = unknown> {
23
+ data: T[];
24
+ cursors: CursorTokens;
25
+ }
26
+ export interface CursorPaginationOptions {
27
+ maxPages?: number;
28
+ maxRetries?: number;
29
+ retryDelayMs?: number;
30
+ }
31
+ export declare class CursorPaginationHandler {
32
+ private static readonly DEFAULT_OPTIONS;
33
+ /**
34
+ * Fetch a single cursor page, returning data + cursor tokens.
35
+ */
36
+ static fetchPage(client: ApiClient, endpoint: string, method: string, requiresAuth: boolean, cursor?: {
37
+ before?: string;
38
+ after?: string;
39
+ }, body?: unknown): Promise<CursorPage>;
40
+ /**
41
+ * Auto-fetch all pages by following `after` tokens until an empty
42
+ * response is received. Combines the caller-supplied first page
43
+ * data with all subsequent pages.
44
+ */
45
+ static fetchAll(client: ApiClient, endpoint: string, method: string, requiresAuth: boolean, firstPageData: unknown[], firstCursors: CursorTokens, body?: unknown, options?: CursorPaginationOptions): Promise<unknown[]>;
46
+ /**
47
+ * Fetch a single cursor page with retry logic.
48
+ */
49
+ private static fetchPageWithRetry;
50
+ /**
51
+ * Extract cursor tokens from response headers.
52
+ */
53
+ static extractCursors(headers: Headers): CursorTokens;
54
+ /**
55
+ * Build a URL with cursor query parameters appended.
56
+ */
57
+ private static buildUrl;
58
+ }
59
+ //# sourceMappingURL=CursorPaginationHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CursorPaginationHandler.d.ts","sourceRoot":"","sources":["../../../src/core/pagination/CursorPaginationHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO;IACrC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAIrC;IAEF;;OAEG;WACU,SAAS,CACpB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,OAAO,EACrB,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAC5C,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC,UAAU,CAAC;IAqCtB;;;;OAIG;WACU,QAAQ,CACnB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,OAAO,EAAE,EACxB,YAAY,EAAE,YAAY,EAC1B,IAAI,CAAC,EAAE,OAAO,EACd,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,OAAO,EAAE,CAAC;IAwDrB;;OAEG;mBACkB,kBAAkB;IAmCvC;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY;IAQrD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ;CAmBxB"}