eve-esi-types 3.1.6 → 3.2.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.
- package/CHANGELOG.md +182 -0
- package/jsconfig.json +28 -0
- package/lib/rq-util.mjs +1 -1
- package/lib/tagged-request-api.mjs +5 -6
- package/package.json +14 -8
- package/v2/esi-tagged-types.d.ts +9 -5
- package/v2/{get_alliances_alliance_id_ok.d.ts → globals/alliance.d.ts} +44 -0
- package/v2/globals/assets.d.ts +443 -0
- package/v2/globals/calendar.d.ts +130 -0
- package/v2/globals/character.d.ts +1084 -0
- package/v2/{get_characters_character_id_clones_ok.d.ts → globals/clones.d.ts} +15 -0
- package/v2/globals/contacts.d.ts +212 -0
- package/v2/globals/contracts.d.ts +546 -0
- package/v2/globals/corporation.d.ts +2329 -0
- package/v2/globals/dogma.d.ts +262 -0
- package/v2/globals/factionwarfare.d.ts +668 -0
- package/v2/{get_characters_character_id_fittings_ok.d.ts → globals/fittings.d.ts} +23 -0
- package/v2/globals/fleets.d.ts +201 -0
- package/v2/{get_incursions_ok.d.ts → globals/incursions.d.ts} +5 -0
- package/v2/globals/industry.d.ts +445 -0
- package/v2/globals/insurance.d.ts +47 -0
- package/v2/{get_killmails_killmail_id_killmail_hash_ok.d.ts → globals/killmails.d.ts} +55 -0
- package/v2/globals/location.d.ts +74 -0
- package/v2/{get_loyalty_stores_corporation_id_offers_ok.d.ts → globals/loyalty.d.ts} +30 -0
- package/v2/globals/mail.d.ts +237 -0
- package/v2/globals/market.d.ts +615 -0
- package/v2/globals/planetaryinteraction.d.ts +344 -0
- package/v2/globals/routes.d.ts +14 -0
- package/v2/{get_characters_character_id_search_ok.d.ts → globals/search.d.ts} +5 -0
- package/v2/globals/skills.d.ts +144 -0
- package/v2/globals/sovereignty.d.ts +168 -0
- package/v2/{get_status_ok.d.ts → globals/status.d.ts} +5 -0
- package/v2/globals/universe.d.ts +1297 -0
- package/v2/globals/wallet.d.ts +601 -0
- package/v2/{get_wars_war_id_ok.d.ts → globals/wars.d.ts} +40 -0
- package/v2/index.d.ts +38 -163
- package/v2/response-map.d.ts +22 -45
- package/v2/types-index.d.ts +31 -182
- package/v2/types-util.d.ts +335 -0
- package/v2/util.d.ts +4 -2
- package/web/index.html +1 -1
- package/docs/esi-tagged-types.md +0 -120
- package/docs/v2/identify-parameters.md +0 -74
- package/docs/v2/if-parameterized-path.md +0 -70
- package/docs/v2/infer-esi-response-result.md +0 -44
- package/docs/v2/require-these.md +0 -57
- package/docs/v3/esi-enhanced-function-signature.md +0 -67
- package/docs/v3/esi-types-util3.md +0 -319
- package/docs/v3/has-require-params.md +0 -50
- package/docs/v3/infer-endpoint-origin.md +0 -57
- package/docs/v3/infer-path-params.md +0 -41
- package/docs/v3/pick-require-params.md +0 -56
- package/docs/v3/replace-path-params.md +0 -60
- package/docs/v3/resolved-endpoint.md +0 -44
- package/tsconfig.json +0 -28
- package/v2/get_alliances_alliance_id_contacts_labels_ok.d.ts +0 -24
- package/v2/get_alliances_alliance_id_contacts_ok.d.ts +0 -35
- package/v2/get_alliances_alliance_id_corporations_ok.d.ts +0 -9
- package/v2/get_alliances_alliance_id_icons_ok.d.ts +0 -18
- package/v2/get_alliances_ok.d.ts +0 -9
- package/v2/get_characters_character_id_agents_research_ok.d.ts +0 -33
- package/v2/get_characters_character_id_assets_ok.d.ts +0 -134
- package/v2/get_characters_character_id_attributes_ok.d.ts +0 -42
- package/v2/get_characters_character_id_blueprints_ok.d.ts +0 -122
- package/v2/get_characters_character_id_calendar_event_id_attendees_ok.d.ts +0 -30
- package/v2/get_characters_character_id_calendar_event_id_ok.d.ts +0 -56
- package/v2/get_characters_character_id_calendar_ok.d.ts +0 -37
- package/v2/get_characters_character_id_contacts_labels_ok.d.ts +0 -24
- package/v2/get_characters_character_id_contacts_ok.d.ts +0 -43
- package/v2/get_characters_character_id_contracts_contract_id_bids_ok.d.ts +0 -32
- package/v2/get_characters_character_id_contracts_contract_id_items_ok.d.ts +0 -38
- package/v2/get_characters_character_id_contracts_ok.d.ts +0 -117
- package/v2/get_characters_character_id_corporationhistory_ok.d.ts +0 -32
- package/v2/get_characters_character_id_fatigue_ok.d.ts +0 -22
- package/v2/get_characters_character_id_fleet_ok.d.ts +0 -31
- package/v2/get_characters_character_id_fw_stats_ok.d.ts +0 -64
- package/v2/get_characters_character_id_implants_ok.d.ts +0 -9
- package/v2/get_characters_character_id_industry_jobs_ok.d.ts +0 -105
- package/v2/get_characters_character_id_killmails_recent_ok.d.ts +0 -24
- package/v2/get_characters_character_id_location_ok.d.ts +0 -22
- package/v2/get_characters_character_id_loyalty_points_ok.d.ts +0 -24
- package/v2/get_characters_character_id_mail_labels_ok.d.ts +0 -62
- package/v2/get_characters_character_id_mail_lists_ok.d.ts +0 -24
- package/v2/get_characters_character_id_mail_mail_id_ok.d.ts +0 -59
- package/v2/get_characters_character_id_mail_ok.d.ts +0 -65
- package/v2/get_characters_character_id_medals_ok.d.ts +0 -135
- package/v2/get_characters_character_id_mining_ok.d.ts +0 -29
- package/v2/get_characters_character_id_notifications_contacts_ok.d.ts +0 -36
- package/v2/get_characters_character_id_notifications_ok.d.ts +0 -291
- package/v2/get_characters_character_id_ok.d.ts +0 -55
- package/v2/get_characters_character_id_online_ok.d.ts +0 -26
- package/v2/get_characters_character_id_opportunities_ok.d.ts +0 -24
- package/v2/get_characters_character_id_orders_history_ok.d.ts +0 -87
- package/v2/get_characters_character_id_orders_ok.d.ts +0 -82
- package/v2/get_characters_character_id_planets_ok.d.ts +0 -124
- package/v2/get_characters_character_id_planets_planet_id_ok.d.ts +0 -283
- package/v2/get_characters_character_id_portrait_ok.d.ts +0 -26
- package/v2/get_characters_character_id_roles_ok.d.ts +0 -270
- package/v2/get_characters_character_id_ship_ok.d.ts +0 -19
- package/v2/get_characters_character_id_skillqueue_ok.d.ts +0 -48
- package/v2/get_characters_character_id_skills_ok.d.ts +0 -47
- package/v2/get_characters_character_id_standings_ok.d.ts +0 -29
- package/v2/get_characters_character_id_titles_ok.d.ts +0 -184
- package/v2/get_characters_character_id_wallet_journal_ok.d.ts +0 -228
- package/v2/get_characters_character_id_wallet_ok.d.ts +0 -7
- package/v2/get_characters_character_id_wallet_transactions_ok.d.ts +0 -53
- package/v2/get_contracts_public_bids_contract_id_ok.d.ts +0 -28
- package/v2/get_contracts_public_items_contract_id_ok.d.ts +0 -49
- package/v2/get_contracts_public_region_id_ok.d.ts +0 -81
- package/v2/get_corporation_corporation_id_mining_extractions_ok.d.ts +0 -39
- package/v2/get_corporation_corporation_id_mining_observers_observer_id_ok.d.ts +0 -36
- package/v2/get_corporation_corporation_id_mining_observers_ok.d.ts +0 -30
- package/v2/get_corporations_corporation_id_alliancehistory_ok.d.ts +0 -32
- package/v2/get_corporations_corporation_id_assets_ok.d.ts +0 -170
- package/v2/get_corporations_corporation_id_blueprints_ok.d.ts +0 -163
- package/v2/get_corporations_corporation_id_contacts_labels_ok.d.ts +0 -24
- package/v2/get_corporations_corporation_id_contacts_ok.d.ts +0 -39
- package/v2/get_corporations_corporation_id_containers_logs_ok.d.ts +0 -188
- package/v2/get_corporations_corporation_id_contracts_contract_id_bids_ok.d.ts +0 -33
- package/v2/get_corporations_corporation_id_contracts_contract_id_items_ok.d.ts +0 -38
- package/v2/get_corporations_corporation_id_contracts_ok.d.ts +0 -117
- package/v2/get_corporations_corporation_id_customs_offices_ok.d.ts +0 -78
- package/v2/get_corporations_corporation_id_divisions_ok.d.ts +0 -128
- package/v2/get_corporations_corporation_id_facilities_ok.d.ts +0 -25
- package/v2/get_corporations_corporation_id_fw_stats_ok.d.ts +0 -60
- package/v2/get_corporations_corporation_id_icons_ok.d.ts +0 -22
- package/v2/get_corporations_corporation_id_industry_jobs_ok.d.ts +0 -105
- package/v2/get_corporations_corporation_id_killmails_recent_ok.d.ts +0 -24
- package/v2/get_corporations_corporation_id_medals_issued_ok.d.ts +0 -41
- package/v2/get_corporations_corporation_id_medals_ok.d.ts +0 -36
- package/v2/get_corporations_corporation_id_members_limit_ok.d.ts +0 -7
- package/v2/get_corporations_corporation_id_members_ok.d.ts +0 -9
- package/v2/get_corporations_corporation_id_members_titles_ok.d.ts +0 -194
- package/v2/get_corporations_corporation_id_membertracking_ok.d.ts +0 -41
- package/v2/get_corporations_corporation_id_ok.d.ts +0 -66
- package/v2/get_corporations_corporation_id_orders_history_ok.d.ts +0 -91
- package/v2/get_corporations_corporation_id_orders_ok.d.ts +0 -86
- package/v2/get_corporations_corporation_id_roles_history_ok.d.ts +0 -171
- package/v2/get_corporations_corporation_id_roles_ok.d.ts +0 -543
- package/v2/get_corporations_corporation_id_shareholders_ok.d.ts +0 -29
- package/v2/get_corporations_corporation_id_standings_ok.d.ts +0 -29
- package/v2/get_corporations_corporation_id_starbases_ok.d.ts +0 -51
- package/v2/get_corporations_corporation_id_starbases_starbase_id_ok.d.ts +0 -110
- package/v2/get_corporations_corporation_id_structures_ok.d.ts +0 -176
- package/v2/get_corporations_corporation_id_titles_ok.d.ts +0 -548
- package/v2/get_corporations_corporation_id_wallets_division_journal_ok.d.ts +0 -229
- package/v2/get_corporations_corporation_id_wallets_division_transactions_ok.d.ts +0 -50
- package/v2/get_corporations_corporation_id_wallets_ok.d.ts +0 -62
- package/v2/get_corporations_npccorps_ok.d.ts +0 -9
- package/v2/get_dogma_attributes_attribute_id_ok.d.ts +0 -50
- package/v2/get_dogma_attributes_ok.d.ts +0 -9
- package/v2/get_dogma_dynamic_items_type_id_item_id_ok.d.ts +0 -58
- package/v2/get_dogma_effects_effect_id_ok.d.ts +0 -127
- package/v2/get_dogma_effects_ok.d.ts +0 -9
- package/v2/get_fleets_fleet_id_members_ok.d.ts +0 -54
- package/v2/get_fleets_fleet_id_ok.d.ts +0 -26
- package/v2/get_fleets_fleet_id_wings_ok.d.ts +0 -45
- package/v2/get_fw_leaderboards_characters_ok.d.ts +0 -110
- package/v2/get_fw_leaderboards_corporations_ok.d.ts +0 -109
- package/v2/get_fw_leaderboards_ok.d.ts +0 -182
- package/v2/get_fw_stats_ok.d.ts +0 -66
- package/v2/get_fw_systems_ok.d.ts +0 -41
- package/v2/get_fw_wars_ok.d.ts +0 -24
- package/v2/get_industry_facilities_ok.d.ts +0 -37
- package/v2/get_industry_systems_ok.d.ts +0 -119
- package/v2/get_insurance_prices_ok.d.ts +0 -62
- package/v2/get_markets_groups_market_group_id_ok.d.ts +0 -27
- package/v2/get_markets_groups_ok.d.ts +0 -9
- package/v2/get_markets_prices_ok.d.ts +0 -25
- package/v2/get_markets_region_id_history_ok.d.ts +0 -40
- package/v2/get_markets_region_id_orders_ok.d.ts +0 -74
- package/v2/get_markets_region_id_types_ok.d.ts +0 -9
- package/v2/get_markets_structures_structure_id_ok.d.ts +0 -70
- package/v2/get_opportunities_groups_group_id_ok.d.ts +0 -38
- package/v2/get_opportunities_groups_ok.d.ts +0 -9
- package/v2/get_opportunities_tasks_ok.d.ts +0 -9
- package/v2/get_opportunities_tasks_task_id_ok.d.ts +0 -26
- package/v2/get_route_origin_destination_ok.d.ts +0 -9
- package/v2/get_sovereignty_campaigns_ok.d.ts +0 -83
- package/v2/get_sovereignty_map_ok.d.ts +0 -32
- package/v2/get_sovereignty_structures_ok.d.ts +0 -46
- package/v2/get_universe_ancestries_ok.d.ts +0 -40
- package/v2/get_universe_asteroid_belts_asteroid_belt_id_ok.d.ts +0 -37
- package/v2/get_universe_bloodlines_ok.d.ts +0 -57
- package/v2/get_universe_categories_category_id_ok.d.ts +0 -28
- package/v2/get_universe_categories_ok.d.ts +0 -9
- package/v2/get_universe_constellations_constellation_id_ok.d.ts +0 -47
- package/v2/get_universe_constellations_ok.d.ts +0 -9
- package/v2/get_universe_factions_ok.d.ts +0 -56
- package/v2/get_universe_graphics_graphic_id_ok.d.ts +0 -42
- package/v2/get_universe_graphics_ok.d.ts +0 -9
- package/v2/get_universe_groups_group_id_ok.d.ts +0 -27
- package/v2/get_universe_groups_ok.d.ts +0 -9
- package/v2/get_universe_moons_moon_id_ok.d.ts +0 -41
- package/v2/get_universe_planets_planet_id_ok.d.ts +0 -42
- package/v2/get_universe_races_ok.d.ts +0 -52
- package/v2/get_universe_regions_ok.d.ts +0 -9
- package/v2/get_universe_regions_region_id_ok.d.ts +0 -28
- package/v2/get_universe_schematics_schematic_id_ok.d.ts +0 -18
- package/v2/get_universe_stargates_stargate_id_ok.d.ts +0 -57
- package/v2/get_universe_stars_star_id_ok.d.ts +0 -129
- package/v2/get_universe_stations_station_id_ok.d.ts +0 -104
- package/v2/get_universe_structures_ok.d.ts +0 -9
- package/v2/get_universe_structures_structure_id_ok.d.ts +0 -43
- package/v2/get_universe_system_jumps_ok.d.ts +0 -24
- package/v2/get_universe_system_kills_ok.d.ts +0 -32
- package/v2/get_universe_systems_ok.d.ts +0 -9
- package/v2/get_universe_systems_system_id_ok.d.ts +0 -94
- package/v2/get_universe_types_ok.d.ts +0 -9
- package/v2/get_universe_types_type_id_ok.d.ts +0 -105
- package/v2/get_wars_ok.d.ts +0 -9
- package/v2/get_wars_war_id_killmails_ok.d.ts +0 -24
- package/v2/post_characters_affiliation_ok.d.ts +0 -32
- package/v2/post_characters_character_id_assets_locations_ok.d.ts +0 -39
- package/v2/post_characters_character_id_assets_names_ok.d.ts +0 -24
- package/v2/post_characters_character_id_contacts_created.d.ts +0 -9
- package/v2/post_characters_character_id_cspa_created.d.ts +0 -7
- package/v2/post_characters_character_id_fittings_created.d.ts +0 -14
- package/v2/post_characters_character_id_mail_created.d.ts +0 -7
- package/v2/post_characters_character_id_mail_labels_created.d.ts +0 -7
- package/v2/post_corporations_corporation_id_assets_locations_ok.d.ts +0 -39
- package/v2/post_corporations_corporation_id_assets_names_ok.d.ts +0 -24
- package/v2/post_fleets_fleet_id_wings_created.d.ts +0 -14
- package/v2/post_fleets_fleet_id_wings_wing_id_squads_created.d.ts +0 -14
- package/v2/post_universe_ids_ok.d.ts +0 -86
- package/v2/post_universe_names_ok.d.ts +0 -38
- /package/v2/{extra-types.d.ts → globals/extra-types.d.ts} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [3.2.0] - 2025-4-17
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- New experimental utility type `InferNextEndpoint` (beta).
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Until now, DTS files were written for each method and endpoint,
|
|
12
|
+
but from this version, DTS files are written collectively by "tag".
|
|
13
|
+
|
|
14
|
+
### Maintenance
|
|
15
|
+
- Confirmed removal of the unused "opportunities" ESI endpoint, as per official deprecation notice.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ⚙️ Miscellaneous Tasks
|
|
19
|
+
|
|
20
|
+
- Update keywords
|
|
21
|
+
- Required flags (jsconfig.json)
|
|
22
|
+
|
|
23
|
+
## [3.1.7] - 2025-04-05
|
|
24
|
+
|
|
25
|
+
### 🐛 Bug Fixes
|
|
26
|
+
|
|
27
|
+
- Update broken documentation link
|
|
28
|
+
|
|
29
|
+
## [3.1.6] - 2025-04-05
|
|
30
|
+
|
|
31
|
+
### 📚 Documentation
|
|
32
|
+
|
|
33
|
+
- Add Markdown documentation link
|
|
34
|
+
|
|
35
|
+
## [3.1.5] - 2025-04-04
|
|
36
|
+
|
|
37
|
+
### ⚙️ Miscellaneous Tasks
|
|
38
|
+
|
|
39
|
+
- Added utility type documentation (markdown)
|
|
40
|
+
|
|
41
|
+
## [3.1.4] - 2025-04-04
|
|
42
|
+
|
|
43
|
+
### 🚀 Features
|
|
44
|
+
|
|
45
|
+
- Added new type `TESIEnhancedRequestFunctionSignature`
|
|
46
|
+
|
|
47
|
+
### 🐛 Bug Fixes
|
|
48
|
+
|
|
49
|
+
- `RestrictKeys`, `RequireThese`
|
|
50
|
+
|
|
51
|
+
### 🚜 Refactor
|
|
52
|
+
|
|
53
|
+
- *(types)* Add constraint to `TESIRequestFunctionSignature2` to ensure `ActualOpt` extends `Record<string, unknown>`
|
|
54
|
+
- `IdentifyParameters`
|
|
55
|
+
|
|
56
|
+
### ⚙️ Miscellaneous Tasks
|
|
57
|
+
|
|
58
|
+
- Lint
|
|
59
|
+
|
|
60
|
+
## [3.1.3] - 2025-03-24
|
|
61
|
+
|
|
62
|
+
### 🐛 Bug Fixes
|
|
63
|
+
|
|
64
|
+
- Ensure intended behavior by deliberately triggering semantic error
|
|
65
|
+
|
|
66
|
+
## [3.1.2] - 2025-03-17
|
|
67
|
+
|
|
68
|
+
### 💼 Other
|
|
69
|
+
|
|
70
|
+
- Update README.md and add docs/esi-tagged-types.md
|
|
71
|
+
|
|
72
|
+
## [3.1.1] - 2025-03-17
|
|
73
|
+
|
|
74
|
+
### 🐛 Bug Fixes
|
|
75
|
+
|
|
76
|
+
- Incomplete `TaggedEndpointRequestFunction2` type
|
|
77
|
+
|
|
78
|
+
## [3.1.0] - 2025-03-17
|
|
79
|
+
|
|
80
|
+
### 💼 Other
|
|
81
|
+
|
|
82
|
+
- Significant enhancements to the main utility type for improved functionality
|
|
83
|
+
|
|
84
|
+
### ⚙️ Miscellaneous Tasks
|
|
85
|
+
|
|
86
|
+
- Update README.md, esi-types-util3.md
|
|
87
|
+
- Update to version 3.1
|
|
88
|
+
|
|
89
|
+
## [3.0.4] - 2025-03-14
|
|
90
|
+
|
|
91
|
+
### ⚙️ Miscellaneous Tasks
|
|
92
|
+
|
|
93
|
+
- Explain `TESIRequestFunctionSignature2` rest parameter `options` behavior
|
|
94
|
+
|
|
95
|
+
## [3.0.3] - 2025-03-14
|
|
96
|
+
|
|
97
|
+
### 🚜 Refactor
|
|
98
|
+
|
|
99
|
+
- Enable determination of whether `Opt` is required or optional using the `HasOpt` generics parameter
|
|
100
|
+
|
|
101
|
+
## [3.0.2] - 2025-03-14
|
|
102
|
+
|
|
103
|
+
### 🚜 Refactor
|
|
104
|
+
|
|
105
|
+
- Apply minItems and maxItems restrictions
|
|
106
|
+
|
|
107
|
+
## [3.0.1] - 2025-03-13
|
|
108
|
+
|
|
109
|
+
### ⚙️ Miscellaneous Tasks
|
|
110
|
+
|
|
111
|
+
- About `decoreateESIRequestBody`
|
|
112
|
+
|
|
113
|
+
## [3.0.0] - 2025-03-13
|
|
114
|
+
|
|
115
|
+
### 🚀 Features
|
|
116
|
+
|
|
117
|
+
- Update README for v3.0.0 new features
|
|
118
|
+
|
|
119
|
+
## [2.3.5] - 2025-03-10
|
|
120
|
+
|
|
121
|
+
### 🚀 Features
|
|
122
|
+
|
|
123
|
+
- Added `cachedSeconds` member from "x-cached-seconds", new utility type `TESICachedSeconds`
|
|
124
|
+
|
|
125
|
+
### 🐛 Bug Fixes
|
|
126
|
+
|
|
127
|
+
- Typo ESIRequesError -> ESIRequestError
|
|
128
|
+
|
|
129
|
+
### 🚜 Refactor
|
|
130
|
+
|
|
131
|
+
- Enum to type, `EInferSomethingBy`
|
|
132
|
+
|
|
133
|
+
## [2.3.4] - 2025-03-10
|
|
134
|
+
|
|
135
|
+
### 🐛 Bug Fixes
|
|
136
|
+
|
|
137
|
+
- Logger problem
|
|
138
|
+
|
|
139
|
+
### 🚜 Refactor
|
|
140
|
+
|
|
141
|
+
- Add lib/constants.mjs
|
|
142
|
+
|
|
143
|
+
### ⚙️ Miscellaneous Tasks
|
|
144
|
+
|
|
145
|
+
- Jsdoc of `initOptions`, refactor `injectESIRequestBody`
|
|
146
|
+
- ESITagsWithMethodList -> ESITagMethodMapping
|
|
147
|
+
- Apply `Object.freeze` to result of `injectESIRequestBody`
|
|
148
|
+
- *(release)* V2.3.4 release
|
|
149
|
+
|
|
150
|
+
## [2.3.3] - 2025-03-05
|
|
151
|
+
|
|
152
|
+
### ⚙️ Miscellaneous Tasks
|
|
153
|
+
|
|
154
|
+
- Add support for web browsers
|
|
155
|
+
- Add comment regarding the importance of setting the language parameter
|
|
156
|
+
- Add "index.html" for web testing
|
|
157
|
+
|
|
158
|
+
## [2.3.2] - 2025-03-04
|
|
159
|
+
|
|
160
|
+
### 🚜 Refactor
|
|
161
|
+
|
|
162
|
+
- Introduce ESI Error handling via "lib/esi-error-types.d.ts"
|
|
163
|
+
|
|
164
|
+
## [2.3.1] - 2025-03-02
|
|
165
|
+
|
|
166
|
+
### 💼 Other
|
|
167
|
+
|
|
168
|
+
- Added "v2/esi-tagged-types.d.ts" to define ESI tagged request types
|
|
169
|
+
- Fix missing pragma "/// <reference types='../v2/esi-tagged-types'/>"
|
|
170
|
+
|
|
171
|
+
### 🚜 Refactor
|
|
172
|
+
|
|
173
|
+
- Small improvements
|
|
174
|
+
- Utility type - v2/esi-tagged-types.d.ts
|
|
175
|
+
- `IfParameterizedPath` improved
|
|
176
|
+
|
|
177
|
+
## [2.2.5] - 2025-02-12
|
|
178
|
+
|
|
179
|
+
### ⚙️ Miscellaneous Tasks
|
|
180
|
+
|
|
181
|
+
- Remove non-functional bookmarks endpoints in ESI
|
|
182
|
+
|
package/jsconfig.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// This flag is required
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
// This flag is required
|
|
7
|
+
"checkJs": true,
|
|
8
|
+
// This flag is required
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
// "skipDefaultLibCheck": true,
|
|
12
|
+
// "target": "esnext",
|
|
13
|
+
// "module": "esnext",
|
|
14
|
+
// "diagnostics": true,
|
|
15
|
+
// "moduleResolution": "node",
|
|
16
|
+
"rootDirs": [
|
|
17
|
+
"./"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"include": [
|
|
21
|
+
"./*.mjs",
|
|
22
|
+
"./lib/*.mjs",
|
|
23
|
+
// "./lib/*.d.mts",
|
|
24
|
+
"./v2/**/*.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"exclude": [
|
|
27
|
+
]
|
|
28
|
+
}
|
package/lib/rq-util.mjs
CHANGED
|
@@ -276,7 +276,7 @@ export const fetchP = async (endpointUrl, rqopt, usp, pc, increment = () => { })
|
|
|
276
276
|
export const replaceCbt = (endpoint, ids) => {
|
|
277
277
|
let idx = 0;
|
|
278
278
|
// @ts-expect-error
|
|
279
|
-
return endpoint.replace(/{([\w]+)}/g,
|
|
279
|
+
return endpoint.replace(/{([\w]+)}/g, () => ids[idx++] + "");
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
282
|
* @template {unknown} T
|
|
@@ -28,12 +28,11 @@ const ESITagMethodMapping = [
|
|
|
28
28
|
"Insurance:get", "Killmails:get",
|
|
29
29
|
"Location:get", "Loyalty:get",
|
|
30
30
|
"Mail:get,post,put,delete", "Market:get",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"Wars:get"
|
|
31
|
+
"Planetary Interaction:get", "Routes:get",
|
|
32
|
+
"Search:get", "Skills:get",
|
|
33
|
+
"Sovereignty:get", "Status:get",
|
|
34
|
+
"Universe:get,post", "User Interface:post",
|
|
35
|
+
"Wallet:get", "Wars:get"
|
|
37
36
|
];
|
|
38
37
|
/**
|
|
39
38
|
* Decorates the ESI request body into a tagged ESI request map.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-esi-types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Extracted the main type of ESI. use for ESI request response types (version 2 only)",
|
|
5
5
|
"main": "v2/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,22 +15,28 @@
|
|
|
15
15
|
"v2",
|
|
16
16
|
"lib",
|
|
17
17
|
"web",
|
|
18
|
-
"docs",
|
|
19
18
|
"*.d.mts",
|
|
20
19
|
"*.mjs",
|
|
21
20
|
"LICENSE",
|
|
22
21
|
"*.md",
|
|
23
22
|
"package.json",
|
|
24
|
-
"
|
|
23
|
+
"jsconfig.json"
|
|
25
24
|
],
|
|
26
25
|
"keywords": [
|
|
27
|
-
"eve",
|
|
28
|
-
"esi",
|
|
29
|
-
"swagger",
|
|
30
|
-
"request",
|
|
31
26
|
"api",
|
|
27
|
+
"esi",
|
|
28
|
+
"eve",
|
|
32
29
|
"types",
|
|
33
|
-
"
|
|
30
|
+
"esi-api",
|
|
31
|
+
"eve-esi",
|
|
32
|
+
"swagger",
|
|
33
|
+
"api-types",
|
|
34
|
+
"eve online",
|
|
35
|
+
"eve-online",
|
|
36
|
+
"typescript",
|
|
37
|
+
"eve-swagger",
|
|
38
|
+
"swagger-types",
|
|
39
|
+
"typescript-definitions"
|
|
34
40
|
],
|
|
35
41
|
"author": "jeffy-g",
|
|
36
42
|
"license": "MIT",
|
package/v2/esi-tagged-types.d.ts
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/esi-tagged-types.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.0 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
|
-
import { TESIResponseOKMap } from "./index.d.ts";
|
|
15
|
-
export * from "./index.d.ts";
|
|
14
|
+
import type { TESIResponseOKMap } from "./index.d.ts";
|
|
15
|
+
export type * from "./index.d.ts";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Converts a string to lower camel case.
|
|
@@ -49,7 +49,11 @@ declare type InferSomethingBy<Tag, AsType extends InferSomethingByBrand = InferS
|
|
|
49
49
|
* @template M - The HTTP method.
|
|
50
50
|
* @date 2025/2/28
|
|
51
51
|
*/
|
|
52
|
-
export declare type ESITags = InferSomethingBy<never, InferSomethingByTags
|
|
52
|
+
export declare type ESITags = InferSomethingBy<never, InferSomethingByTags>;
|
|
53
|
+
/**
|
|
54
|
+
* @date 2025/4/12
|
|
55
|
+
*/
|
|
56
|
+
export declare type LESITags = LCamelCase<ESITags>;
|
|
53
57
|
|
|
54
58
|
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
55
59
|
// Utility Type `InferMethod`
|
|
@@ -60,7 +64,7 @@ export declare type ESITags = InferSomethingBy<never, InferSomethingByTags>
|
|
|
60
64
|
* @template Tag - The tag to infer the method for.
|
|
61
65
|
* @date 2025/2/28
|
|
62
66
|
*/
|
|
63
|
-
export declare type InferMethod<Tag> = InferSomethingBy<Tag
|
|
67
|
+
export declare type InferMethod<Tag> = InferSomethingBy<Tag>;
|
|
64
68
|
/* ctt
|
|
65
69
|
type XAssets = InferMethod<"Assets">;
|
|
66
70
|
type XContacts = InferMethod<"Contacts">;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// Generated by scripts/lib/code-synthesizer.mjs
|
|
2
|
+
|
|
3
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
4
|
+
// @method {get}
|
|
5
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
6
|
+
/*!
|
|
7
|
+
* ESI endpoint: get:/alliances/
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* 200 ok array
|
|
11
|
+
*
|
|
12
|
+
* @maxItems 5000
|
|
13
|
+
*/
|
|
14
|
+
type GetAlliancesOk = number[];
|
|
15
|
+
|
|
1
16
|
/*!
|
|
2
17
|
* ESI endpoint: get:/alliances/{alliance_id}/
|
|
3
18
|
*/
|
|
@@ -36,3 +51,32 @@ interface GetAlliancesAllianceIdOk {
|
|
|
36
51
|
ticker: string;
|
|
37
52
|
[k: string]: unknown | undefined;
|
|
38
53
|
}
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
* ESI endpoint: get:/alliances/{alliance_id}/corporations/
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* 200 ok array
|
|
60
|
+
*
|
|
61
|
+
* @maxItems 1000
|
|
62
|
+
*/
|
|
63
|
+
type GetAlliancesAllianceIdCorporationsOk = number[];
|
|
64
|
+
|
|
65
|
+
/*!
|
|
66
|
+
* ESI endpoint: get:/alliances/{alliance_id}/icons/
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 200 ok object
|
|
71
|
+
*/
|
|
72
|
+
interface GetAlliancesAllianceIdIconsOk {
|
|
73
|
+
/**
|
|
74
|
+
* px128x128 string
|
|
75
|
+
*/
|
|
76
|
+
px128x128?: string;
|
|
77
|
+
/**
|
|
78
|
+
* px64x64 string
|
|
79
|
+
*/
|
|
80
|
+
px64x64?: string;
|
|
81
|
+
[k: string]: unknown | undefined;
|
|
82
|
+
}
|