eve-esi-types 3.1.7 → 3.2.1
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 -7
- 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 +918 -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 +1577 -0
- package/v2/globals/dogma.d.ts +262 -0
- package/v2/globals/factionwarfare.d.ts +596 -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 +25 -152
- package/v2/response-map.d.ts +1 -24
- package/v2/types-index.d.ts +31 -182
- package/v2/types-util.d.ts +316 -0
- package/v2/util.d.ts +4 -2
- package/web/index.html +1 -1
- 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/v2/index.d.ts
CHANGED
|
@@ -9,162 +9,24 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
15
|
-
export type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
16
|
-
|
|
17
15
|
import type { PickPathParameters, InferKeysLen } from "./util.d.ts";
|
|
16
|
+
import type {
|
|
17
|
+
_ESIResponseType,
|
|
18
|
+
_IfNeedPathParams,
|
|
19
|
+
TPathParamsNever,
|
|
20
|
+
// ESIEndpointUnions,
|
|
21
|
+
// IESIRequestFunction2,
|
|
22
|
+
// InferESIResponseResultEX,
|
|
23
|
+
// TESICachedSeconds, TESIRequestFunctionMethods2,
|
|
24
|
+
// __IdentifyParameters, __InferESIResponseResult,
|
|
25
|
+
} from "./types-util.d.ts";
|
|
26
|
+
export type * from "./response-map.d.ts";
|
|
27
|
+
export type * from "./types-util.d.ts";
|
|
28
|
+
export type * from "./util.d.ts";
|
|
18
29
|
|
|
19
|
-
/**
|
|
20
|
-
* Represents a function that can make ESI requests with various HTTP methods.
|
|
21
|
-
*
|
|
22
|
-
* @template ActualOpt - The actual type of the options.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* // @ ts-expect-error
|
|
27
|
-
* export const request: IESIRequestFunction2<ESIRequestOptions> = (method, endpoint, opt) => {
|
|
28
|
-
* // Implementation for "get" | "post" | "put" | "delete" request
|
|
29
|
-
* };
|
|
30
|
-
* // You can easily implement "get" | "post" | "put" | "delete" requests
|
|
31
|
-
* // with code like the following:
|
|
32
|
-
* (["get", "post", "put", "delete"] as (keyof typeof request)[]).forEach((method) => {
|
|
33
|
-
* request[method] = function (this: typeof request, endpoint, opt) {
|
|
34
|
-
* return this(method, endpoint, opt);
|
|
35
|
-
* } as TESIRequestFunctionEachMethod2<typeof method>;
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export interface IESIRequestFunction2<ActualOpt extends Record<string, unknown>>
|
|
40
|
-
extends TESIRequestFunctionSignature2<ActualOpt>, TESIRequestFunctionMethods2<ActualOpt> {
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Represents the methods available for making ESI requests.
|
|
45
|
-
*
|
|
46
|
-
* + This interface is used when you already have implementation code such as
|
|
47
|
-
* TESIRequestFunctionSignature2 and you want to implement additional shorthand methods.
|
|
48
|
-
*
|
|
49
|
-
* @template ActualOpt - The actual type of the options.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* export const request: TESIRequestFunctionSignature2<ESIRequestOptions> = (method, endpoint, opt) => {
|
|
54
|
-
* // Implementation for "get" | "post" | "put" | "delete" request
|
|
55
|
-
* };
|
|
56
|
-
* // You can easily implement "get" | "post" | "put" | "delete" requests
|
|
57
|
-
* // with code like the following:
|
|
58
|
-
* const esiMethods = {} as TESIRequestFunctionMethods2<ESIRequestOptions>;
|
|
59
|
-
* (["get", "post", "put", "delete"] as (keyof TESIRequestFunctionMethods2)[]).forEach((method) => {
|
|
60
|
-
* esiMethods[method] = function (endpoint, opt) {
|
|
61
|
-
* return request(method, endpoint, opt);
|
|
62
|
-
* } as TESIRequestFunctionEachMethod2<typeof method>;
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export type TESIRequestFunctionMethods2<ActualOpt extends Record<string, unknown>> = {
|
|
67
|
-
[method in TESIEntryMethod]: TESIRequestFunctionEachMethod2<method, ActualOpt>;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* List of "x-cached-seconds"
|
|
72
|
-
*
|
|
73
|
-
* ```ts
|
|
74
|
-
* // const cacheSecGet: 3600 | 300 | 604800 | 120 | 5 | 600 | 86400 | 60 | 30 | 1200 | 1800 | 30758400
|
|
75
|
-
* const cacheSecGet: TESICachedSeconds<"get">;
|
|
76
|
-
* // const cache5sec: 5
|
|
77
|
-
* const cache5s: TESICachedSeconds<"put">;
|
|
78
|
-
* // const cache3600s: 3600
|
|
79
|
-
* const cache3600s: TESICachedSeconds<"post">;
|
|
80
|
-
* // "/characters/affiliation/"
|
|
81
|
-
* const cache3600sEndpoint: TESICachedSeconds<"post", 1>;
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
export declare type TESICachedSeconds<
|
|
85
|
-
Method extends TESIEntryMethod, AsEndpoint = void
|
|
86
|
-
> = {
|
|
87
|
-
[M in TESIEntryMethod]: {
|
|
88
|
-
[EP in ESIEndpointOf<M>]: TESIResponseOKMap[M][EP] extends { cachedSeconds: number }
|
|
89
|
-
? AsEndpoint extends void
|
|
90
|
-
? TESIResponseOKMap[M][EP]["cachedSeconds"]: EP
|
|
91
|
-
: never
|
|
92
|
-
}[ESIEndpointOf<M>];
|
|
93
|
-
}[Method];
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Indicates that no path parameters are allowed.
|
|
97
|
-
*
|
|
98
|
-
* This type serves as a compile-time signal for endpoints that do not support dynamic URL segments.
|
|
99
|
-
* By using this type, it is clear that no path parameters should be provided.
|
|
100
|
-
*/
|
|
101
|
-
export declare type TPathParamsNever = { /* pathParams?: never */ };
|
|
102
|
-
|
|
103
|
-
// local types
|
|
104
|
-
/**
|
|
105
|
-
* Infers the response type of an ESI request based on the HTTP method and endpoint.
|
|
106
|
-
*
|
|
107
|
-
* This type extracts the response type from the `TESIResponseOKMap` based on the provided
|
|
108
|
-
* HTTP method and endpoint.
|
|
109
|
-
*
|
|
110
|
-
* @template M - The HTTP method to use for the request.
|
|
111
|
-
* @template EPx - The endpoint path.
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* ```ts
|
|
115
|
-
* type ResponseType = _ESIResponseType<"get", "/characters/{character_id}/">;
|
|
116
|
-
* // Result: The inferred response type for the given method and endpoint.
|
|
117
|
-
* ```
|
|
118
|
-
* @internal
|
|
119
|
-
* @see {@link ESIEndpointOf}
|
|
120
|
-
*/
|
|
121
|
-
export type _ESIResponseType<
|
|
122
|
-
M extends TESIEntryMethod,
|
|
123
|
-
EPx extends ESIEndpointOf<M> | string,
|
|
124
|
-
> = TESIResponseOKMap[M][Extract<EPx, ESIEndpointOf<M>>];
|
|
125
|
-
// type XOK = _ESIResponseType<"get", "/status/"> extends global._ESIResponseType<"get", "/status/"> ? 1 : 0;
|
|
126
|
-
/**
|
|
127
|
-
* Determines if the endpoint requires path parameters.
|
|
128
|
-
*
|
|
129
|
-
* @template EP - The string representing the endpoint path.
|
|
130
|
-
* @returns {TPathParamsNever | { pathParams: IfParameterizedPath<EP> }}
|
|
131
|
-
* Returns an object with `pathParams` if the endpoint requires parameters, otherwise returns `TPathParamsNever`.
|
|
132
|
-
* @example
|
|
133
|
-
* ```ts
|
|
134
|
-
* type Example = IfNeedPathParams<"/characters/{character_id}/fittings/{fitting_id}/">;
|
|
135
|
-
* // Result: { pathParams: [number, number] }
|
|
136
|
-
* ```
|
|
137
|
-
* @internal
|
|
138
|
-
* @see {@link IfParameterizedPath}
|
|
139
|
-
* @see {@link ReplacePathParams}
|
|
140
|
-
*/
|
|
141
|
-
export type _IfNeedPathParams<EP extends unknown> = IfParameterizedPath<EP> extends never ? TPathParamsNever :
|
|
142
|
-
EP extends ReplacePathParams<EP> ? TPathParamsNever : { pathParams: IfParameterizedPath<EP> };
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Infer the result type of an ESI response based on the method and endpoint.
|
|
146
|
-
*
|
|
147
|
-
* @template M - The HTTP method (e.g., "get", "post").
|
|
148
|
-
* @template EP - The endpoint path.
|
|
149
|
-
* @deprecated 2025/3/17
|
|
150
|
-
*/
|
|
151
|
-
export type __InferESIResponseResult<
|
|
152
|
-
M extends TESIEntryMethod,
|
|
153
|
-
EP extends ESIEndpointOf<M>
|
|
154
|
-
> = TESIResponseOKMap[M][EP] extends { result: infer U } ? U : never;
|
|
155
|
-
/**
|
|
156
|
-
* Identifies the required parameters for a given entry type.
|
|
157
|
-
*
|
|
158
|
-
* @template Entry - The entry type to identify parameters for.
|
|
159
|
-
* @template Opt - The type of the parameters.
|
|
160
|
-
* @type {Opt & Pick<Entry, Exclude<keyof Entry, "result">>}
|
|
161
|
-
* @deprecated 2025/3/17
|
|
162
|
-
*/
|
|
163
|
-
export type __IdentifyParameters<
|
|
164
|
-
Entry, Opt,
|
|
165
|
-
Keys = Exclude<keyof Entry, "result" | "tag" | "cachedSeconds">
|
|
166
|
-
// @ts-expect-error
|
|
167
|
-
> = RequireThese<Opt, Keys> & Pick<Entry, Keys>;
|
|
168
30
|
|
|
169
31
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
170
32
|
// Internal types
|
|
@@ -218,6 +80,7 @@ type RestrictKeys<
|
|
|
218
80
|
|
|
219
81
|
declare global {
|
|
220
82
|
|
|
83
|
+
type __ShiftType = 1;
|
|
221
84
|
/**
|
|
222
85
|
* Marks specific properties of a type as required.
|
|
223
86
|
*
|
|
@@ -610,7 +473,17 @@ declare global {
|
|
|
610
473
|
* Represents the endpoints for the "delete" method.
|
|
611
474
|
*/
|
|
612
475
|
type TEndPointDelete = ESIEndpointOf<"delete">;
|
|
476
|
+
/**
|
|
477
|
+
* Union of all `ESIEndpointOf<TESIEntryMethod>`
|
|
478
|
+
* @date 2025/4/12
|
|
479
|
+
*/
|
|
480
|
+
type ESIEndpointAll = {
|
|
481
|
+
[M in TESIEntryMethod]: ESIEndpointOf<M>;
|
|
482
|
+
}[TESIEntryMethod];
|
|
613
483
|
|
|
484
|
+
// type TESIResponseEntries<
|
|
485
|
+
// M extends TESIEntryMethod, EP extends ESIEndpointOf<M>
|
|
486
|
+
// > = TESIResponseOKMap[M][EP];
|
|
614
487
|
/**
|
|
615
488
|
* Represents the entry details for the "get" method.
|
|
616
489
|
*
|
package/v2/response-map.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/response-map.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./types-index.d.ts";
|
|
15
15
|
|
|
@@ -285,13 +285,6 @@ export type TESIResponseOKMap = {
|
|
|
285
285
|
tag: "Location";
|
|
286
286
|
cachedSeconds: 60;
|
|
287
287
|
},
|
|
288
|
-
"/characters/{character_id}/opportunities/": {
|
|
289
|
-
result: GetCharactersCharacterIdOpportunitiesOk;
|
|
290
|
-
/** `esi-characters.read_opportunities.v1` */
|
|
291
|
-
auth: true;
|
|
292
|
-
tag: "Opportunities";
|
|
293
|
-
cachedSeconds: 3600;
|
|
294
|
-
},
|
|
295
288
|
"/characters/{character_id}/orders/": {
|
|
296
289
|
result: GetCharactersCharacterIdOrdersOk;
|
|
297
290
|
/** `esi-markets.read_character_orders.v1` */
|
|
@@ -831,22 +824,6 @@ export type TESIResponseOKMap = {
|
|
|
831
824
|
tag: "Market";
|
|
832
825
|
cachedSeconds: 600;
|
|
833
826
|
},
|
|
834
|
-
"/opportunities/groups/": {
|
|
835
|
-
result: GetOpportunitiesGroupsOk;
|
|
836
|
-
tag: "Opportunities";
|
|
837
|
-
},
|
|
838
|
-
"/opportunities/groups/{group_id}/": {
|
|
839
|
-
result: GetOpportunitiesGroupsGroupIdOk;
|
|
840
|
-
tag: "Opportunities";
|
|
841
|
-
},
|
|
842
|
-
"/opportunities/tasks/": {
|
|
843
|
-
result: GetOpportunitiesTasksOk;
|
|
844
|
-
tag: "Opportunities";
|
|
845
|
-
},
|
|
846
|
-
"/opportunities/tasks/{task_id}/": {
|
|
847
|
-
result: GetOpportunitiesTasksTaskIdOk;
|
|
848
|
-
tag: "Opportunities";
|
|
849
|
-
},
|
|
850
827
|
"/route/{origin}/{destination}/": {
|
|
851
828
|
result: GetRouteOriginDestinationOk;
|
|
852
829
|
query: {
|
package/v2/types-index.d.ts
CHANGED
|
@@ -9,187 +9,36 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/types-index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.1
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.1 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
import "./
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import "./get_universe_categories_ok.d.ts";
|
|
45
|
-
import "./get_universe_structures_ok.d.ts";
|
|
46
|
-
import "./get_opportunities_groups_ok.d.ts";
|
|
47
|
-
import "./get_alliances_alliance_id_ok.d.ts";
|
|
48
|
-
import "./get_corporations_npccorps_ok.d.ts";
|
|
49
|
-
import "./get_fleets_fleet_id_wings_ok.d.ts";
|
|
50
|
-
import "./get_sovereignty_campaigns_ok.d.ts";
|
|
51
|
-
import "./get_universe_system_jumps_ok.d.ts";
|
|
52
|
-
import "./get_universe_system_kills_ok.d.ts";
|
|
53
|
-
import "./get_wars_war_id_killmails_ok.d.ts";
|
|
54
|
-
import "./get_sovereignty_structures_ok.d.ts";
|
|
55
|
-
import "./get_universe_moons_moon_id_ok.d.ts";
|
|
56
|
-
import "./get_universe_stars_star_id_ok.d.ts";
|
|
57
|
-
import "./get_universe_types_type_id_ok.d.ts";
|
|
58
|
-
import "./post_characters_affiliation_ok.d.ts";
|
|
59
|
-
import "./get_characters_character_id_ok.d.ts";
|
|
60
|
-
import "./get_dogma_effects_effect_id_ok.d.ts";
|
|
61
|
-
import "./get_fleets_fleet_id_members_ok.d.ts";
|
|
62
|
-
import "./get_markets_region_id_types_ok.d.ts";
|
|
63
|
-
import "./get_universe_constellations_ok.d.ts";
|
|
64
|
-
import "./get_markets_region_id_orders_ok.d.ts";
|
|
65
|
-
import "./get_route_origin_destination_ok.d.ts";
|
|
66
|
-
import "./get_universe_groups_group_id_ok.d.ts";
|
|
67
|
-
import "./get_markets_region_id_history_ok.d.ts";
|
|
68
|
-
import "./get_contracts_public_region_id_ok.d.ts";
|
|
69
|
-
import "./get_fw_leaderboards_characters_ok.d.ts";
|
|
70
|
-
import "./get_universe_planets_planet_id_ok.d.ts";
|
|
71
|
-
import "./get_universe_regions_region_id_ok.d.ts";
|
|
72
|
-
import "./get_universe_systems_system_id_ok.d.ts";
|
|
73
|
-
import "./get_alliances_alliance_id_icons_ok.d.ts";
|
|
74
|
-
import "./get_corporations_corporation_id_ok.d.ts";
|
|
75
|
-
import "./post_fleets_fleet_id_wings_created.d.ts";
|
|
76
|
-
import "./get_opportunities_tasks_task_id_ok.d.ts";
|
|
77
|
-
import "./get_characters_character_id_mail_ok.d.ts";
|
|
78
|
-
import "./get_characters_character_id_ship_ok.d.ts";
|
|
79
|
-
import "./get_fw_leaderboards_corporations_ok.d.ts";
|
|
80
|
-
import "./get_universe_graphics_graphic_id_ok.d.ts";
|
|
81
|
-
import "./get_universe_stations_station_id_ok.d.ts";
|
|
82
|
-
import "./get_characters_character_id_fleet_ok.d.ts";
|
|
83
|
-
import "./get_characters_character_id_roles_ok.d.ts";
|
|
84
|
-
import "./get_dogma_attributes_attribute_id_ok.d.ts";
|
|
85
|
-
import "./get_opportunities_groups_group_id_ok.d.ts";
|
|
86
|
-
import "./get_alliances_alliance_id_contacts_ok.d.ts";
|
|
87
|
-
import "./get_characters_character_id_assets_ok.d.ts";
|
|
88
|
-
import "./get_characters_character_id_clones_ok.d.ts";
|
|
89
|
-
import "./get_characters_character_id_medals_ok.d.ts";
|
|
90
|
-
import "./get_characters_character_id_mining_ok.d.ts";
|
|
91
|
-
import "./get_characters_character_id_online_ok.d.ts";
|
|
92
|
-
import "./get_characters_character_id_orders_ok.d.ts";
|
|
93
|
-
import "./get_characters_character_id_search_ok.d.ts";
|
|
94
|
-
import "./get_characters_character_id_skills_ok.d.ts";
|
|
95
|
-
import "./get_characters_character_id_titles_ok.d.ts";
|
|
96
|
-
import "./get_characters_character_id_wallet_ok.d.ts";
|
|
97
|
-
import "./get_markets_groups_market_group_id_ok.d.ts";
|
|
98
|
-
import "./get_universe_stargates_stargate_id_ok.d.ts";
|
|
99
|
-
import "./get_characters_character_id_fatigue_ok.d.ts";
|
|
100
|
-
import "./get_characters_character_id_planets_ok.d.ts";
|
|
101
|
-
import "./get_markets_structures_structure_id_ok.d.ts";
|
|
102
|
-
import "./get_universe_categories_category_id_ok.d.ts";
|
|
103
|
-
import "./get_characters_character_id_calendar_ok.d.ts";
|
|
104
|
-
import "./get_characters_character_id_contacts_ok.d.ts";
|
|
105
|
-
import "./get_characters_character_id_fittings_ok.d.ts";
|
|
106
|
-
import "./get_characters_character_id_fw_stats_ok.d.ts";
|
|
107
|
-
import "./get_characters_character_id_implants_ok.d.ts";
|
|
108
|
-
import "./get_characters_character_id_location_ok.d.ts";
|
|
109
|
-
import "./get_characters_character_id_portrait_ok.d.ts";
|
|
110
|
-
import "./get_universe_schematics_schematic_id_ok.d.ts";
|
|
111
|
-
import "./get_universe_structures_structure_id_ok.d.ts";
|
|
112
|
-
import "./get_characters_character_id_contracts_ok.d.ts";
|
|
113
|
-
import "./get_characters_character_id_standings_ok.d.ts";
|
|
114
|
-
import "./get_contracts_public_bids_contract_id_ok.d.ts";
|
|
115
|
-
import "./get_corporations_corporation_id_icons_ok.d.ts";
|
|
116
|
-
import "./get_corporations_corporation_id_roles_ok.d.ts";
|
|
117
|
-
import "./get_alliances_alliance_id_corporations_ok.d.ts";
|
|
118
|
-
import "./get_characters_character_id_attributes_ok.d.ts";
|
|
119
|
-
import "./get_characters_character_id_blueprints_ok.d.ts";
|
|
120
|
-
import "./post_characters_character_id_cspa_created.d.ts";
|
|
121
|
-
import "./post_characters_character_id_mail_created.d.ts";
|
|
122
|
-
import "./get_characters_character_id_mail_lists_ok.d.ts";
|
|
123
|
-
import "./get_characters_character_id_skillqueue_ok.d.ts";
|
|
124
|
-
import "./get_contracts_public_items_contract_id_ok.d.ts";
|
|
125
|
-
import "./get_corporations_corporation_id_assets_ok.d.ts";
|
|
126
|
-
import "./get_corporations_corporation_id_medals_ok.d.ts";
|
|
127
|
-
import "./get_corporations_corporation_id_orders_ok.d.ts";
|
|
128
|
-
import "./get_corporations_corporation_id_titles_ok.d.ts";
|
|
129
|
-
import "./get_characters_character_id_mail_labels_ok.d.ts";
|
|
130
|
-
import "./get_corporations_corporation_id_members_ok.d.ts";
|
|
131
|
-
import "./get_corporations_corporation_id_wallets_ok.d.ts";
|
|
132
|
-
import "./get_dogma_dynamic_items_type_id_item_id_ok.d.ts";
|
|
133
|
-
import "./get_killmails_killmail_id_killmail_hash_ok.d.ts";
|
|
134
|
-
import "./get_characters_character_id_mail_mail_id_ok.d.ts";
|
|
135
|
-
import "./get_corporations_corporation_id_contacts_ok.d.ts";
|
|
136
|
-
import "./get_corporations_corporation_id_fw_stats_ok.d.ts";
|
|
137
|
-
import "./get_loyalty_stores_corporation_id_offers_ok.d.ts";
|
|
138
|
-
import "./get_alliances_alliance_id_contacts_labels_ok.d.ts";
|
|
139
|
-
import "./post_characters_character_id_assets_names_ok.d.ts";
|
|
140
|
-
import "./get_characters_character_id_industry_jobs_ok.d.ts";
|
|
141
|
-
import "./get_characters_character_id_notifications_ok.d.ts";
|
|
142
|
-
import "./get_characters_character_id_opportunities_ok.d.ts";
|
|
143
|
-
import "./get_corporations_corporation_id_contracts_ok.d.ts";
|
|
144
|
-
import "./get_corporations_corporation_id_divisions_ok.d.ts";
|
|
145
|
-
import "./get_corporations_corporation_id_standings_ok.d.ts";
|
|
146
|
-
import "./get_corporations_corporation_id_starbases_ok.d.ts";
|
|
147
|
-
import "./post_characters_character_id_contacts_created.d.ts";
|
|
148
|
-
import "./post_characters_character_id_fittings_created.d.ts";
|
|
149
|
-
import "./get_characters_character_id_loyalty_points_ok.d.ts";
|
|
150
|
-
import "./get_characters_character_id_orders_history_ok.d.ts";
|
|
151
|
-
import "./get_characters_character_id_wallet_journal_ok.d.ts";
|
|
152
|
-
import "./get_corporations_corporation_id_blueprints_ok.d.ts";
|
|
153
|
-
import "./get_corporations_corporation_id_facilities_ok.d.ts";
|
|
154
|
-
import "./get_corporations_corporation_id_structures_ok.d.ts";
|
|
155
|
-
import "./get_characters_character_id_agents_research_ok.d.ts";
|
|
156
|
-
import "./get_characters_character_id_contacts_labels_ok.d.ts";
|
|
157
|
-
import "./get_characters_character_id_killmails_recent_ok.d.ts";
|
|
158
|
-
import "./get_corporations_corporation_id_shareholders_ok.d.ts";
|
|
159
|
-
import "./get_universe_asteroid_belts_asteroid_belt_id_ok.d.ts";
|
|
160
|
-
import "./get_universe_constellations_constellation_id_ok.d.ts";
|
|
161
|
-
import "./post_characters_character_id_assets_locations_ok.d.ts";
|
|
162
|
-
import "./get_characters_character_id_calendar_event_id_ok.d.ts";
|
|
163
|
-
import "./post_characters_character_id_mail_labels_created.d.ts";
|
|
164
|
-
import "./get_characters_character_id_planets_planet_id_ok.d.ts";
|
|
165
|
-
import "./post_corporations_corporation_id_assets_names_ok.d.ts";
|
|
166
|
-
import "./get_corporations_corporation_id_industry_jobs_ok.d.ts";
|
|
167
|
-
import "./get_corporations_corporation_id_medals_issued_ok.d.ts";
|
|
168
|
-
import "./get_corporations_corporation_id_members_limit_ok.d.ts";
|
|
169
|
-
import "./get_corporations_corporation_id_roles_history_ok.d.ts";
|
|
170
|
-
import "./get_characters_character_id_corporationhistory_ok.d.ts";
|
|
171
|
-
import "./get_corporations_corporation_id_members_titles_ok.d.ts";
|
|
172
|
-
import "./get_corporations_corporation_id_membertracking_ok.d.ts";
|
|
173
|
-
import "./get_corporations_corporation_id_orders_history_ok.d.ts";
|
|
174
|
-
import "./post_fleets_fleet_id_wings_wing_id_squads_created.d.ts";
|
|
175
|
-
import "./get_characters_character_id_wallet_transactions_ok.d.ts";
|
|
176
|
-
import "./get_corporation_corporation_id_mining_observers_ok.d.ts";
|
|
177
|
-
import "./get_corporations_corporation_id_alliancehistory_ok.d.ts";
|
|
178
|
-
import "./get_corporations_corporation_id_contacts_labels_ok.d.ts";
|
|
179
|
-
import "./get_corporations_corporation_id_containers_logs_ok.d.ts";
|
|
180
|
-
import "./get_corporations_corporation_id_customs_offices_ok.d.ts";
|
|
181
|
-
import "./get_corporations_corporation_id_killmails_recent_ok.d.ts";
|
|
182
|
-
import "./get_corporation_corporation_id_mining_extractions_ok.d.ts";
|
|
183
|
-
import "./post_corporations_corporation_id_assets_locations_ok.d.ts";
|
|
184
|
-
import "./get_characters_character_id_notifications_contacts_ok.d.ts";
|
|
185
|
-
import "./get_corporations_corporation_id_starbases_starbase_id_ok.d.ts";
|
|
186
|
-
import "./get_characters_character_id_contracts_contract_id_bids_ok.d.ts";
|
|
187
|
-
import "./get_characters_character_id_calendar_event_id_attendees_ok.d.ts";
|
|
188
|
-
import "./get_characters_character_id_contracts_contract_id_items_ok.d.ts";
|
|
189
|
-
import "./get_corporations_corporation_id_wallets_division_journal_ok.d.ts";
|
|
190
|
-
import "./get_corporations_corporation_id_contracts_contract_id_bids_ok.d.ts";
|
|
191
|
-
import "./get_corporation_corporation_id_mining_observers_observer_id_ok.d.ts";
|
|
192
|
-
import "./get_corporations_corporation_id_contracts_contract_id_items_ok.d.ts";
|
|
193
|
-
import "./get_corporations_corporation_id_wallets_division_transactions_ok.d.ts";
|
|
194
|
-
import "./extra-types.d.ts";
|
|
14
|
+
import "./globals/alliance.d.ts";
|
|
15
|
+
import "./globals/assets.d.ts";
|
|
16
|
+
import "./globals/calendar.d.ts";
|
|
17
|
+
import "./globals/character.d.ts";
|
|
18
|
+
import "./globals/clones.d.ts";
|
|
19
|
+
import "./globals/contacts.d.ts";
|
|
20
|
+
import "./globals/contracts.d.ts";
|
|
21
|
+
import "./globals/corporation.d.ts";
|
|
22
|
+
import "./globals/dogma.d.ts";
|
|
23
|
+
import "./globals/factionwarfare.d.ts";
|
|
24
|
+
import "./globals/fittings.d.ts";
|
|
25
|
+
import "./globals/fleets.d.ts";
|
|
26
|
+
import "./globals/incursions.d.ts";
|
|
27
|
+
import "./globals/industry.d.ts";
|
|
28
|
+
import "./globals/insurance.d.ts";
|
|
29
|
+
import "./globals/killmails.d.ts";
|
|
30
|
+
import "./globals/location.d.ts";
|
|
31
|
+
import "./globals/loyalty.d.ts";
|
|
32
|
+
import "./globals/mail.d.ts";
|
|
33
|
+
import "./globals/market.d.ts";
|
|
34
|
+
import "./globals/planetaryinteraction.d.ts";
|
|
35
|
+
import "./globals/routes.d.ts";
|
|
36
|
+
import "./globals/search.d.ts";
|
|
37
|
+
import "./globals/skills.d.ts";
|
|
38
|
+
import "./globals/sovereignty.d.ts";
|
|
39
|
+
import "./globals/status.d.ts";
|
|
40
|
+
import "./globals/universe.d.ts";
|
|
41
|
+
import "./globals/wallet.d.ts";
|
|
42
|
+
import "./globals/wars.d.ts";
|
|
43
|
+
import "./globals/extra-types.d.ts";
|
|
195
44
|
|