eve-esi-types 2.0.3-beta → 2.0.4-beta

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 (198) hide show
  1. package/package.json +1 -1
  2. package/snippet.ts +49 -0
  3. package/v2/get_alliances_alliance_id_contacts_labels_ok.d.ts +9 -9
  4. package/v2/get_alliances_alliance_id_contacts_ok.d.ts +14 -17
  5. package/v2/get_alliances_alliance_id_corporations_ok.d.ts +3 -6
  6. package/v2/get_alliances_alliance_id_icons_ok.d.ts +9 -9
  7. package/v2/get_alliances_alliance_id_ok.d.ts +24 -24
  8. package/v2/get_alliances_ok.d.ts +3 -6
  9. package/v2/get_characters_character_id_agents_research_ok.d.ts +15 -18
  10. package/v2/get_characters_character_id_assets_ok.d.ts +18 -21
  11. package/v2/get_characters_character_id_attributes_ok.d.ts +27 -27
  12. package/v2/get_characters_character_id_blueprints_ok.d.ts +21 -24
  13. package/v2/get_characters_character_id_bookmarks_folders_ok.d.ts +9 -9
  14. package/v2/get_characters_character_id_bookmarks_ok.d.ts +36 -39
  15. package/v2/get_characters_character_id_calendar_event_id_attendees_ok.d.ts +6 -6
  16. package/v2/get_characters_character_id_calendar_event_id_ok.d.ts +30 -30
  17. package/v2/get_characters_character_id_calendar_ok.d.ts +15 -15
  18. package/v2/get_characters_character_id_clones_ok.d.ts +26 -29
  19. package/v2/get_characters_character_id_contacts_labels_ok.d.ts +9 -9
  20. package/v2/get_characters_character_id_contacts_ok.d.ts +20 -23
  21. package/v2/get_characters_character_id_contracts_contract_id_bids_ok.d.ts +15 -15
  22. package/v2/get_characters_character_id_contracts_contract_id_items_ok.d.ts +18 -21
  23. package/v2/get_characters_character_id_contracts_ok.d.ts +60 -60
  24. package/v2/get_characters_character_id_corporationhistory_ok.d.ts +15 -15
  25. package/v2/get_characters_character_id_fatigue_ok.d.ts +12 -12
  26. package/v2/get_characters_character_id_fittings_ok.d.ts +15 -21
  27. package/v2/get_characters_character_id_fleet_ok.d.ts +12 -12
  28. package/v2/get_characters_character_id_fw_stats_ok.d.ts +33 -33
  29. package/v2/get_characters_character_id_implants_ok.d.ts +3 -6
  30. package/v2/get_characters_character_id_industry_jobs_ok.d.ts +60 -66
  31. package/v2/get_characters_character_id_killmails_recent_ok.d.ts +9 -9
  32. package/v2/get_characters_character_id_location_ok.d.ts +12 -12
  33. package/v2/get_characters_character_id_loyalty_points_ok.d.ts +9 -9
  34. package/v2/get_characters_character_id_mail_labels_ok.d.ts +15 -15
  35. package/v2/get_characters_character_id_mail_lists_ok.d.ts +9 -9
  36. package/v2/get_characters_character_id_mail_mail_id_ok.d.ts +25 -28
  37. package/v2/get_characters_character_id_mail_ok.d.ts +25 -28
  38. package/v2/get_characters_character_id_medals_ok.d.ts +36 -36
  39. package/v2/get_characters_character_id_mining_ok.d.ts +12 -15
  40. package/v2/get_characters_character_id_notifications_contacts_ok.d.ts +18 -18
  41. package/v2/get_characters_character_id_notifications_ok.d.ts +18 -18
  42. package/v2/get_characters_character_id_ok.d.ts +33 -33
  43. package/v2/get_characters_character_id_online_ok.d.ts +15 -15
  44. package/v2/get_characters_character_id_opportunities_ok.d.ts +9 -9
  45. package/v2/get_characters_character_id_orders_history_ok.d.ts +39 -43
  46. package/v2/get_characters_character_id_orders_ok.d.ts +39 -43
  47. package/v2/get_characters_character_id_planets_ok.d.ts +21 -21
  48. package/v2/get_characters_character_id_planets_planet_id_ok.d.ts +73 -124
  49. package/v2/get_characters_character_id_portrait_ok.d.ts +15 -15
  50. package/v2/get_characters_character_id_roles_ok.d.ts +3 -3
  51. package/v2/get_characters_character_id_search_ok.d.ts +52 -90
  52. package/v2/get_characters_character_id_ship_ok.d.ts +9 -12
  53. package/v2/get_characters_character_id_skillqueue_ok.d.ts +27 -27
  54. package/v2/get_characters_character_id_skills_ok.d.ts +21 -21
  55. package/v2/get_characters_character_id_standings_ok.d.ts +9 -9
  56. package/v2/get_characters_character_id_titles_ok.d.ts +9 -9
  57. package/v2/get_characters_character_id_wallet_journal_ok.d.ts +38 -40
  58. package/v2/get_characters_character_id_wallet_ok.d.ts +3 -3
  59. package/v2/get_characters_character_id_wallet_transactions_ok.d.ts +30 -33
  60. package/v2/get_contracts_public_bids_contract_id_ok.d.ts +12 -12
  61. package/v2/get_contracts_public_items_contract_id_ok.d.ts +27 -30
  62. package/v2/get_contracts_public_region_id_ok.d.ts +48 -48
  63. package/v2/get_corporation_corporation_id_mining_extractions_ok.d.ts +21 -21
  64. package/v2/get_corporation_corporation_id_mining_observers_observer_id_ok.d.ts +17 -20
  65. package/v2/get_corporation_corporation_id_mining_observers_ok.d.ts +10 -10
  66. package/v2/get_corporations_corporation_id_alliancehistory_ok.d.ts +15 -15
  67. package/v2/get_corporations_corporation_id_assets_ok.d.ts +18 -21
  68. package/v2/get_corporations_corporation_id_blueprints_ok.d.ts +21 -24
  69. package/v2/get_corporations_corporation_id_bookmarks_folders_ok.d.ts +12 -12
  70. package/v2/get_corporations_corporation_id_bookmarks_ok.d.ts +36 -39
  71. package/v2/get_corporations_corporation_id_contacts_labels_ok.d.ts +9 -9
  72. package/v2/get_corporations_corporation_id_contacts_ok.d.ts +17 -20
  73. package/v2/get_corporations_corporation_id_containers_logs_ok.d.ts +24 -30
  74. package/v2/get_corporations_corporation_id_contracts_contract_id_bids_ok.d.ts +15 -15
  75. package/v2/get_corporations_corporation_id_contracts_contract_id_items_ok.d.ts +18 -21
  76. package/v2/get_corporations_corporation_id_contracts_ok.d.ts +60 -60
  77. package/v2/get_corporations_corporation_id_customs_offices_ok.d.ts +42 -42
  78. package/v2/get_corporations_corporation_id_divisions_ok.d.ts +15 -15
  79. package/v2/get_corporations_corporation_id_facilities_ok.d.ts +9 -12
  80. package/v2/get_corporations_corporation_id_fw_stats_ok.d.ts +30 -30
  81. package/v2/get_corporations_corporation_id_icons_ok.d.ts +12 -12
  82. package/v2/get_corporations_corporation_id_industry_jobs_ok.d.ts +60 -66
  83. package/v2/get_corporations_corporation_id_killmails_recent_ok.d.ts +9 -9
  84. package/v2/get_corporations_corporation_id_medals_issued_ok.d.ts +18 -18
  85. package/v2/get_corporations_corporation_id_medals_ok.d.ts +18 -18
  86. package/v2/get_corporations_corporation_id_members_limit_ok.d.ts +3 -3
  87. package/v2/get_corporations_corporation_id_members_ok.d.ts +3 -6
  88. package/v2/get_corporations_corporation_id_members_titles_ok.d.ts +10 -412
  89. package/v2/get_corporations_corporation_id_membertracking_ok.d.ts +21 -24
  90. package/v2/get_corporations_corporation_id_ok.d.ts +45 -45
  91. package/v2/get_corporations_corporation_id_orders_history_ok.d.ts +42 -45
  92. package/v2/get_corporations_corporation_id_orders_ok.d.ts +42 -45
  93. package/v2/get_corporations_corporation_id_roles_history_ok.d.ts +12 -12
  94. package/v2/get_corporations_corporation_id_roles_ok.d.ts +6 -6
  95. package/v2/get_corporations_corporation_id_shareholders_ok.d.ts +9 -9
  96. package/v2/get_corporations_corporation_id_standings_ok.d.ts +9 -9
  97. package/v2/get_corporations_corporation_id_starbases_ok.d.ts +21 -24
  98. package/v2/get_corporations_corporation_id_starbases_starbase_id_ok.d.ts +27 -30
  99. package/v2/get_corporations_corporation_id_structures_ok.d.ts +42 -46
  100. package/v2/get_corporations_corporation_id_titles_ok.d.ts +9 -9
  101. package/v2/get_corporations_corporation_id_wallets_division_journal_ok.d.ts +38 -40
  102. package/v2/get_corporations_corporation_id_wallets_division_transactions_ok.d.ts +27 -30
  103. package/v2/get_corporations_corporation_id_wallets_ok.d.ts +9 -9
  104. package/v2/get_corporations_npccorps_ok.d.ts +3 -6
  105. package/v2/get_dogma_attributes_attribute_id_ok.d.ts +33 -33
  106. package/v2/get_dogma_attributes_ok.d.ts +3 -6
  107. package/v2/get_dogma_dynamic_items_type_id_item_id_ok.d.ts +18 -24
  108. package/v2/get_dogma_effects_effect_id_ok.d.ts +81 -81
  109. package/v2/get_dogma_effects_ok.d.ts +3 -6
  110. package/v2/get_fleets_fleet_id_members_ok.d.ts +27 -30
  111. package/v2/get_fleets_fleet_id_ok.d.ts +15 -15
  112. package/v2/get_fleets_fleet_id_wings_ok.d.ts +15 -15
  113. package/v2/get_fw_leaderboards_characters_ok.d.ts +39 -39
  114. package/v2/get_fw_leaderboards_corporations_ok.d.ts +39 -39
  115. package/v2/get_fw_leaderboards_ok.d.ts +39 -39
  116. package/v2/get_fw_stats_ok.d.ts +30 -30
  117. package/v2/get_fw_systems_ok.d.ts +18 -18
  118. package/v2/get_fw_wars_ok.d.ts +9 -9
  119. package/v2/get_incursions_ok.d.ts +22 -28
  120. package/v2/get_industry_facilities_ok.d.ts +18 -21
  121. package/v2/get_industry_systems_ok.d.ts +9 -9
  122. package/v2/get_insurance_prices_ok.d.ts +12 -15
  123. package/v2/get_killmails_killmail_id_killmail_hash_ok.d.ts +96 -114
  124. package/v2/get_loyalty_stores_corporation_id_offers_ok.d.ts +21 -27
  125. package/v2/get_markets_groups_market_group_id_ok.d.ts +14 -22
  126. package/v2/get_markets_groups_ok.d.ts +3 -6
  127. package/v2/get_markets_prices_ok.d.ts +9 -12
  128. package/v2/get_markets_region_id_history_ok.d.ts +21 -21
  129. package/v2/get_markets_region_id_orders_ok.d.ts +33 -36
  130. package/v2/get_markets_region_id_types_ok.d.ts +3 -6
  131. package/v2/get_markets_structures_structure_id_ok.d.ts +30 -33
  132. package/v2/get_opportunities_groups_group_id_ok.d.ts +24 -30
  133. package/v2/get_opportunities_groups_ok.d.ts +3 -6
  134. package/v2/get_opportunities_tasks_ok.d.ts +3 -6
  135. package/v2/get_opportunities_tasks_task_id_ok.d.ts +15 -15
  136. package/v2/get_route_origin_destination_ok.d.ts +3 -6
  137. package/v2/get_sovereignty_campaigns_ok.d.ts +40 -40
  138. package/v2/get_sovereignty_map_ok.d.ts +15 -15
  139. package/v2/get_sovereignty_structures_ok.d.ts +26 -30
  140. package/v2/get_status_ok.d.ts +15 -15
  141. package/v2/get_universe_ancestries_ok.d.ts +21 -21
  142. package/v2/get_universe_asteroid_belts_asteroid_belt_id_ok.d.ts +18 -18
  143. package/v2/get_universe_bloodlines_ok.d.ts +33 -36
  144. package/v2/get_universe_categories_category_id_ok.d.ts +16 -19
  145. package/v2/get_universe_categories_ok.d.ts +3 -6
  146. package/v2/get_universe_constellations_constellation_id_ok.d.ts +25 -28
  147. package/v2/get_universe_constellations_ok.d.ts +3 -6
  148. package/v2/get_universe_factions_ok.d.ts +33 -33
  149. package/v2/get_universe_graphics_graphic_id_ok.d.ts +27 -27
  150. package/v2/get_universe_graphics_ok.d.ts +3 -6
  151. package/v2/get_universe_groups_group_id_ok.d.ts +14 -22
  152. package/v2/get_universe_groups_ok.d.ts +3 -6
  153. package/v2/get_universe_moons_moon_id_ok.d.ts +21 -21
  154. package/v2/get_universe_planets_planet_id_ok.d.ts +21 -24
  155. package/v2/get_universe_races_ok.d.ts +15 -15
  156. package/v2/get_universe_regions_ok.d.ts +3 -6
  157. package/v2/get_universe_regions_region_id_ok.d.ts +16 -19
  158. package/v2/get_universe_schematics_schematic_id_ok.d.ts +9 -9
  159. package/v2/get_universe_stargates_stargate_id_ok.d.ts +27 -30
  160. package/v2/get_universe_stars_star_id_ok.d.ts +21 -24
  161. package/v2/get_universe_stations_station_id_ok.d.ts +39 -42
  162. package/v2/get_universe_structures_ok.d.ts +3 -6
  163. package/v2/get_universe_structures_structure_id_ok.d.ts +21 -24
  164. package/v2/get_universe_system_jumps_ok.d.ts +9 -9
  165. package/v2/get_universe_system_kills_ok.d.ts +15 -15
  166. package/v2/get_universe_systems_ok.d.ts +3 -6
  167. package/v2/get_universe_systems_system_id_ok.d.ts +52 -64
  168. package/v2/get_universe_types_ok.d.ts +3 -6
  169. package/v2/get_universe_types_type_id_ok.d.ts +54 -57
  170. package/v2/get_wars_ok.d.ts +3 -6
  171. package/v2/get_wars_war_id_killmails_ok.d.ts +9 -9
  172. package/v2/get_wars_war_id_ok.d.ts +54 -54
  173. package/v2/index.d.ts +1 -1
  174. package/v2/post_characters_affiliation_ok.d.ts +15 -15
  175. package/v2/post_characters_character_id_assets_locations_ok.d.ts +15 -15
  176. package/v2/post_characters_character_id_assets_names_ok.d.ts +9 -9
  177. package/v2/post_characters_character_id_contacts_created.d.ts +3 -6
  178. package/v2/post_characters_character_id_cspa_created.d.ts +3 -3
  179. package/v2/post_characters_character_id_fittings_created.d.ts +6 -6
  180. package/v2/post_characters_character_id_mail_created.d.ts +3 -3
  181. package/v2/post_characters_character_id_mail_labels_created.d.ts +3 -3
  182. package/v2/post_corporations_corporation_id_assets_locations_ok.d.ts +15 -15
  183. package/v2/post_corporations_corporation_id_assets_names_ok.d.ts +9 -9
  184. package/v2/post_fleets_fleet_id_members_invitation.d.ts +12 -12
  185. package/v2/post_fleets_fleet_id_wings_created.d.ts +6 -6
  186. package/v2/post_fleets_fleet_id_wings_wing_id_squads_created.d.ts +6 -6
  187. package/v2/post_ui_openwindow_newmail_new_mail.d.ts +18 -21
  188. package/v2/post_universe_ids_ok.d.ts +63 -63
  189. package/v2/post_universe_names_ok.d.ts +9 -9
  190. package/v2/put_characters_character_id_calendar_event_id_response.d.ts +3 -3
  191. package/v2/put_characters_character_id_contacts_contact_ids.d.ts +6 -9
  192. package/v2/put_characters_character_id_mail_mail_id_contents.d.ts +10 -13
  193. package/v2/put_fleets_fleet_id_members_member_id_movement.d.ts +9 -9
  194. package/v2/put_fleets_fleet_id_new_settings.d.ts +9 -9
  195. package/v2/put_fleets_fleet_id_squads_squad_id_naming.d.ts +6 -6
  196. package/v2/put_fleets_fleet_id_wings_wing_id_naming.d.ts +6 -6
  197. package/v2.mjs +6 -6
  198. package/v2.mts +8 -8
@@ -1,14 +1,14 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/wings/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/wings/
3
+ */
4
4
 
5
5
  /**
6
6
  * 201 created object
7
7
  */
8
8
  interface PostFleetsFleetIdWingsCreated {
9
- /**
10
- * The wing_id of the newly created wing
11
- */
9
+ /**
10
+ * The wing_id of the newly created wing
11
+ */
12
12
  wing_id: number;
13
13
  [k: string]: unknown | undefined;
14
14
  }
@@ -1,14 +1,14 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/wings/{wing_id}/squads/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/wings/{wing_id}/squads/
3
+ */
4
4
 
5
5
  /**
6
6
  * 201 created object
7
7
  */
8
8
  interface PostFleetsFleetIdWingsWingIdSquadsCreated {
9
- /**
10
- * The squad_id of the newly created squad
11
- */
9
+ /**
10
+ * The squad_id of the newly created squad
11
+ */
12
12
  squad_id: number;
13
13
  [k: string]: unknown | undefined;
14
14
  }
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /ui/openwindow/newmail/
3
- */
1
+ /*!
2
+ * ESI endpoint: /ui/openwindow/newmail/
3
+ */
4
4
  /**
5
5
  * recipients array
6
6
  *
@@ -8,13 +8,10 @@
8
8
  * @maxItems 50
9
9
  */
10
10
  type PostUiOpenwindowNewmailRecipients = [
11
- /**
12
- * recipient integer
13
- */
11
+ /**
12
+ * recipient integer
13
+ */
14
14
  number,
15
- /**
16
- * recipient integer
17
- */
18
15
  ...number[]
19
16
  ];
20
17
 
@@ -22,22 +19,22 @@ type PostUiOpenwindowNewmailRecipients = [
22
19
  * new_mail object
23
20
  */
24
21
  interface PostUiOpenwindowNewmailNewMail {
25
- /**
26
- * body string
27
- */
22
+ /**
23
+ * body string
24
+ */
28
25
  body: string;
29
26
  recipients: PostUiOpenwindowNewmailRecipients;
30
- /**
31
- * subject string
32
- */
27
+ /**
28
+ * subject string
29
+ */
33
30
  subject: string;
34
- /**
35
- * to_corp_or_alliance_id integer
36
- */
31
+ /**
32
+ * to_corp_or_alliance_id integer
33
+ */
37
34
  to_corp_or_alliance_id?: number;
38
- /**
39
- * Corporations, alliances and mailing lists are all types of mailing groups. You may only send to one mailing group, at a time, so you may fill out either this field or the to_corp_or_alliance_ids field
40
- */
35
+ /**
36
+ * Corporations, alliances and mailing lists are all types of mailing groups. You may only send to one mailing group, at a time, so you may fill out either this field or the to_corp_or_alliance_ids field
37
+ */
41
38
  to_mailing_list_id?: number;
42
39
  [k: string]: unknown | undefined;
43
40
  }
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /universe/ids/
3
- */
1
+ /*!
2
+ * ESI endpoint: /universe/ids/
3
+ */
4
4
  /**
5
5
  * agents array
6
6
  *
@@ -82,13 +82,13 @@ interface PostUniverseIdsOk {
82
82
  * agent object
83
83
  */
84
84
  interface PostUniverseIdsAgent {
85
- /**
86
- * id integer
87
- */
85
+ /**
86
+ * id integer
87
+ */
88
88
  id?: number;
89
- /**
90
- * name string
91
- */
89
+ /**
90
+ * name string
91
+ */
92
92
  name?: string;
93
93
  [k: string]: unknown | undefined;
94
94
  }
@@ -96,13 +96,13 @@ interface PostUniverseIdsAgent {
96
96
  * alliance object
97
97
  */
98
98
  interface PostUniverseIdsAlliance {
99
- /**
100
- * id integer
101
- */
99
+ /**
100
+ * id integer
101
+ */
102
102
  id?: number;
103
- /**
104
- * name string
105
- */
103
+ /**
104
+ * name string
105
+ */
106
106
  name?: string;
107
107
  [k: string]: unknown | undefined;
108
108
  }
@@ -110,13 +110,13 @@ interface PostUniverseIdsAlliance {
110
110
  * character object
111
111
  */
112
112
  interface PostUniverseIdsCharacter {
113
- /**
114
- * id integer
115
- */
113
+ /**
114
+ * id integer
115
+ */
116
116
  id?: number;
117
- /**
118
- * name string
119
- */
117
+ /**
118
+ * name string
119
+ */
120
120
  name?: string;
121
121
  [k: string]: unknown | undefined;
122
122
  }
@@ -124,13 +124,13 @@ interface PostUniverseIdsCharacter {
124
124
  * constellation object
125
125
  */
126
126
  interface PostUniverseIdsConstellation {
127
- /**
128
- * id integer
129
- */
127
+ /**
128
+ * id integer
129
+ */
130
130
  id?: number;
131
- /**
132
- * name string
133
- */
131
+ /**
132
+ * name string
133
+ */
134
134
  name?: string;
135
135
  [k: string]: unknown | undefined;
136
136
  }
@@ -138,13 +138,13 @@ interface PostUniverseIdsConstellation {
138
138
  * corporation object
139
139
  */
140
140
  interface PostUniverseIdsCorporation {
141
- /**
142
- * id integer
143
- */
141
+ /**
142
+ * id integer
143
+ */
144
144
  id?: number;
145
- /**
146
- * name string
147
- */
145
+ /**
146
+ * name string
147
+ */
148
148
  name?: string;
149
149
  [k: string]: unknown | undefined;
150
150
  }
@@ -152,13 +152,13 @@ interface PostUniverseIdsCorporation {
152
152
  * faction object
153
153
  */
154
154
  interface PostUniverseIdsFaction {
155
- /**
156
- * id integer
157
- */
155
+ /**
156
+ * id integer
157
+ */
158
158
  id?: number;
159
- /**
160
- * name string
161
- */
159
+ /**
160
+ * name string
161
+ */
162
162
  name?: string;
163
163
  [k: string]: unknown | undefined;
164
164
  }
@@ -166,13 +166,13 @@ interface PostUniverseIdsFaction {
166
166
  * inventory_type object
167
167
  */
168
168
  interface PostUniverseIdsInventoryType {
169
- /**
170
- * id integer
171
- */
169
+ /**
170
+ * id integer
171
+ */
172
172
  id?: number;
173
- /**
174
- * name string
175
- */
173
+ /**
174
+ * name string
175
+ */
176
176
  name?: string;
177
177
  [k: string]: unknown | undefined;
178
178
  }
@@ -180,13 +180,13 @@ interface PostUniverseIdsInventoryType {
180
180
  * region object
181
181
  */
182
182
  interface PostUniverseIdsRegion {
183
- /**
184
- * id integer
185
- */
183
+ /**
184
+ * id integer
185
+ */
186
186
  id?: number;
187
- /**
188
- * name string
189
- */
187
+ /**
188
+ * name string
189
+ */
190
190
  name?: string;
191
191
  [k: string]: unknown | undefined;
192
192
  }
@@ -194,13 +194,13 @@ interface PostUniverseIdsRegion {
194
194
  * station object
195
195
  */
196
196
  interface PostUniverseIdsStation {
197
- /**
198
- * id integer
199
- */
197
+ /**
198
+ * id integer
199
+ */
200
200
  id?: number;
201
- /**
202
- * name string
203
- */
201
+ /**
202
+ * name string
203
+ */
204
204
  name?: string;
205
205
  [k: string]: unknown | undefined;
206
206
  }
@@ -208,13 +208,13 @@ interface PostUniverseIdsStation {
208
208
  * system object
209
209
  */
210
210
  interface PostUniverseIdsSystem {
211
- /**
212
- * id integer
213
- */
211
+ /**
212
+ * id integer
213
+ */
214
214
  id?: number;
215
- /**
216
- * name string
217
- */
215
+ /**
216
+ * name string
217
+ */
218
218
  name?: string;
219
219
  [k: string]: unknown | undefined;
220
220
  }
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /universe/names/
3
- */
1
+ /*!
2
+ * ESI endpoint: /universe/names/
3
+ */
4
4
  /**
5
5
  * category string
6
6
  */
@@ -26,13 +26,13 @@ type PostUniverseNamesOk = PostUniverseNames_200Ok[];
26
26
  */
27
27
  interface PostUniverseNames_200Ok {
28
28
  category: PostUniverseNamesCategory;
29
- /**
30
- * id integer
31
- */
29
+ /**
30
+ * id integer
31
+ */
32
32
  id: number;
33
- /**
34
- * name string
35
- */
33
+ /**
34
+ * name string
35
+ */
36
36
  name: string;
37
37
  [k: string]: unknown | undefined;
38
38
  }
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /characters/{character_id}/calendar/{event_id}/
3
- */
1
+ /*!
2
+ * ESI endpoint: /characters/{character_id}/calendar/{event_id}/
3
+ */
4
4
  /**
5
5
  * response string
6
6
  */
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /characters/{character_id}/contacts/
3
- */
1
+ /*!
2
+ * ESI endpoint: /characters/{character_id}/contacts/
3
+ */
4
4
  /**
5
5
  * contact_ids array
6
6
  *
@@ -8,12 +8,9 @@
8
8
  * @maxItems 100
9
9
  */
10
10
  type PutCharactersCharacterIdContactsContactIds = [
11
- /**
12
- * ID of the contact to edit
13
- */
11
+ /**
12
+ * ID of the contact to edit
13
+ */
14
14
  number,
15
- /**
16
- * ID of the contact to edit
17
- */
18
15
  ...number[]
19
16
  ];
@@ -1,23 +1,20 @@
1
- /**
2
- * ESI endpoint: /characters/{character_id}/mail/{mail_id}/
3
- */
4
- /**
5
- * Labels to assign to the mail. Pre-existing labels are unassigned.
6
- *
7
- * @maxItems 25
1
+ /*!
2
+ * ESI endpoint: /characters/{character_id}/mail/{mail_id}/
8
3
  */
9
4
 
10
5
  /**
11
6
  * contents object
12
7
  */
13
8
  interface PutCharactersCharacterIdMailMailIdContents {
14
- /**
15
- * label integer
16
- */
9
+ /**
10
+ * Labels to assign to the mail. Pre-existing labels are unassigned.
11
+ *
12
+ * @maxItems 25
13
+ */
17
14
  labels?: number[];
18
- /**
19
- * Whether the mail is flagged as read
20
- */
15
+ /**
16
+ * Whether the mail is flagged as read
17
+ */
21
18
  read?: boolean;
22
19
  [k: string]: unknown | undefined;
23
20
  }
@@ -1,6 +1,6 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/members/{member_id}/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/members/{member_id}/
3
+ */
4
4
  /**
5
5
  * If a character is moved to the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is moved to the `wing_commander` role, only `wing_id` should be specified. If a character is moved to the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is moved to the `squad_member` role, both `wing_id` and `squad_id` should be specified.
6
6
  */
@@ -15,13 +15,13 @@ type PutFleetsFleetIdMembersMemberIdRole =
15
15
  */
16
16
  interface PutFleetsFleetIdMembersMemberIdMovement {
17
17
  role: PutFleetsFleetIdMembersMemberIdRole;
18
- /**
19
- * squad_id integer
20
- */
18
+ /**
19
+ * squad_id integer
20
+ */
21
21
  squad_id?: number;
22
- /**
23
- * wing_id integer
24
- */
22
+ /**
23
+ * wing_id integer
24
+ */
25
25
  wing_id?: number;
26
26
  [k: string]: unknown | undefined;
27
27
  }
@@ -1,18 +1,18 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/
3
+ */
4
4
 
5
5
  /**
6
6
  * new_settings object
7
7
  */
8
8
  interface PutFleetsFleetIdNewSettings {
9
- /**
10
- * Should free-move be enabled in the fleet
11
- */
9
+ /**
10
+ * Should free-move be enabled in the fleet
11
+ */
12
12
  is_free_move?: boolean;
13
- /**
14
- * New fleet MOTD in CCP flavoured HTML
15
- */
13
+ /**
14
+ * New fleet MOTD in CCP flavoured HTML
15
+ */
16
16
  motd?: string;
17
17
  [k: string]: unknown | undefined;
18
18
  }
@@ -1,14 +1,14 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/squads/{squad_id}/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/squads/{squad_id}/
3
+ */
4
4
 
5
5
  /**
6
6
  * naming object
7
7
  */
8
8
  interface PutFleetsFleetIdSquadsSquadIdNaming {
9
- /**
10
- * name string
11
- */
9
+ /**
10
+ * name string
11
+ */
12
12
  name: string;
13
13
  [k: string]: unknown | undefined;
14
14
  }
@@ -1,14 +1,14 @@
1
- /**
2
- * ESI endpoint: /fleets/{fleet_id}/wings/{wing_id}/
3
- */
1
+ /*!
2
+ * ESI endpoint: /fleets/{fleet_id}/wings/{wing_id}/
3
+ */
4
4
 
5
5
  /**
6
6
  * naming object
7
7
  */
8
8
  interface PutFleetsFleetIdWingsWingIdNaming {
9
- /**
10
- * name string
11
- */
9
+ /**
10
+ * name string
11
+ */
12
12
  name: string;
13
13
  [k: string]: unknown | undefined;
14
14
  }
package/v2.mjs CHANGED
@@ -143,7 +143,7 @@ async function getEVEStatus() {
143
143
  * @throws
144
144
  * @async
145
145
  */
146
- export async function fire(mthd, endp, pathParams, opt) {
146
+ export async function fire(mthd, endp, pathParams, opt = {}) {
147
147
  if (typeof pathParams === "number") {
148
148
  pathParams = /** @type {number[]} */ ([pathParams]);
149
149
  }
@@ -151,20 +151,20 @@ export async function fire(mthd, endp, pathParams, opt) {
151
151
  // @ts-ignore actualy endp is string
152
152
  endp = replaceCbt(endp, pathParams);
153
153
  }
154
- if (!opt) {
155
- // When only options are provided
156
- opt = /** @type {Opt} */ (pathParams) || opt || {};
157
- }
154
+ // When only options are provided
155
+ // @ts- ignore
156
+ opt = /** @type {Opt} */ (pathParams) || opt || /** @type {Opt} */ ({});
158
157
  /** @type {RequestInit} */
159
158
  const rqopt = {
160
159
  method: mthd,
161
160
  mode: "cors",
162
161
  cache: "no-cache",
162
+ // @ts-ignore
163
163
  signal: opt.cancelable?.signal,
164
164
  headers: {}
165
165
  };
166
166
  const qss = {
167
- // language: "en",
167
+ language: "en",
168
168
  };
169
169
  if (opt.queries) {
170
170
  // Object.assign(queries, options.queries); Object.assign is too slow
package/v2.mts CHANGED
@@ -176,6 +176,7 @@ async function getEVEStatus() {
176
176
  }
177
177
  return fire("get", "/status/");
178
178
  }
179
+
179
180
  /**
180
181
  * fire ESI request
181
182
  * @template {TESIEntryMethod} M
@@ -194,12 +195,11 @@ async function getEVEStatus() {
194
195
  export async function fire<
195
196
  M extends TESIEntryMethod,
196
197
  EP extends keyof TESIResponseOKMap[M],
197
- // Entry extends TESIResponseOKMap[M][EP],
198
198
  Opt extends IdentifyParameters<TESIResponseOKMap[M][EP], ESIRequestOptions>,
199
199
  R extends InferESIResponseResult<M, EP>
200
200
  >(
201
201
  mthd: M, endp: EP, pathParams?: number | number[] | Opt,
202
- opt?: Opt
202
+ opt: Opt = {} as Opt
203
203
  ): Promise<R> {
204
204
 
205
205
  if (typeof pathParams === "number") {
@@ -207,23 +207,23 @@ export async function fire<
207
207
  }
208
208
  if (isArray(pathParams)) {
209
209
  // @ts-ignore actualy endp is string
210
- endp = replaceCbt(endp, pathParams) as EP;
211
- }
212
- if (!opt) {
213
- // When only options are provided
214
- opt = /** @type {Opt} */(pathParams) as Opt || opt || {};
210
+ endp = replaceCbt(endp as string, pathParams) as EP;
215
211
  }
212
+ // When only options are provided
213
+ // @ts- ignore
214
+ opt = /** @type {Opt} */(pathParams) as Opt || opt || /** @type {Opt} */({}) as Opt;
216
215
 
217
216
  /** @type {RequestInit} */
218
217
  const rqopt: RequestInit = {
219
218
  method: mthd,
220
219
  mode: "cors",
221
220
  cache: "no-cache",
221
+ // @ts-ignore
222
222
  signal: opt.cancelable?.signal,
223
223
  headers: {}
224
224
  };
225
225
  const qss: Record<string, string> = {
226
- // language: "en",
226
+ language: "en",
227
227
  };
228
228
 
229
229
  if (opt.queries) {