eve-esi-types 3.2.7 → 3.2.11
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 +36 -0
- package/dist/v2/esi-tagged-types.d.ts +1 -1
- package/dist/v2/experimental-esi-types.d.ts +1 -1
- package/dist/v2/globals/assets.d.ts +2 -0
- package/dist/v2/globals/character.d.ts +6 -0
- package/dist/v2/globals/corporation.d.ts +14 -0
- package/dist/v2/globals/extra-types.d.ts +37 -31
- package/dist/v2/globals/wallet.d.ts +18 -0
- package/dist/v2/index.d.ts +21 -2
- package/dist/v2/response-map.d.ts +1 -1
- package/dist/v2/types-index.d.ts +1 -1
- package/dist/v2/types-util.d.ts +1 -1
- package/dist/v2/util.d.ts +2 -1
- package/lib/constants.mjs +1 -1
- package/lib/request-api.mjs +3 -5
- package/lib/rq-util.mjs +13 -10
- package/package.json +1 -1
- package/request-v3.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [3.2.11] - 2026-02-20
|
|
6
|
+
|
|
7
|
+
### ⚙️ Miscellaneous Tasks
|
|
8
|
+
|
|
9
|
+
- Update CHANGELOG.md
|
|
10
|
+
- Bump version to v3.2.11
|
|
11
|
+
|
|
12
|
+
## [3.2.9] - 2026-01-19
|
|
13
|
+
|
|
14
|
+
### ⚙️ Miscellaneous Tasks
|
|
15
|
+
|
|
16
|
+
- Update CHANGELOG.md
|
|
17
|
+
- Bump version to v3.2.9
|
|
18
|
+
|
|
19
|
+
## [3.2.8] - 2026-01-03
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug Fixes
|
|
22
|
+
|
|
23
|
+
- Resolve various errors
|
|
24
|
+
- Resolved type error (ts(2322)) using the `TFireReturn` type assertion
|
|
25
|
+
|
|
26
|
+
### 🚜 Refactor
|
|
27
|
+
|
|
28
|
+
- Use `util.hasPathParams`
|
|
29
|
+
|
|
30
|
+
### ⚙️ Miscellaneous Tasks
|
|
31
|
+
|
|
32
|
+
- Update CHANGELOG.md
|
|
33
|
+
- Update jsdoc
|
|
34
|
+
- Update README.md
|
|
35
|
+
- Update "files" (jsconfig -> tsconfig)
|
|
36
|
+
- Update CHANGELOG.md
|
|
37
|
+
- Bump version to v3.2.8
|
|
38
|
+
|
|
5
39
|
## [3.2.7] - 2025-04-28
|
|
6
40
|
|
|
7
41
|
### 🚜 Refactor
|
|
@@ -260,4 +294,6 @@ All notable changes to this project will be documented in this file.
|
|
|
260
294
|
|
|
261
295
|
- Remove non-functional bookmarks endpoints in ESI
|
|
262
296
|
|
|
297
|
+
## [1.0.1] - 2025-01-22
|
|
298
|
+
|
|
263
299
|
<!-- generated by git-cliff -->
|
|
@@ -9,7 +9,7 @@
|
|
|
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.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type { TESIResponseOKMap, ResolveEndpointParameters } from "./index.d.ts";
|
|
15
15
|
export type * from "./index.d.ts";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/experimental-esi-types.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type {
|
|
15
15
|
Split,
|
|
@@ -13,6 +13,7 @@ type GetCharactersCharacterIdAssetsLocationFlag =
|
|
|
13
13
|
| "AssetSafety"
|
|
14
14
|
| "AutoFit"
|
|
15
15
|
| "BoosterBay"
|
|
16
|
+
| "CapsuleerDeliveries"
|
|
16
17
|
| "Cargo"
|
|
17
18
|
| "CorporationGoalDeliveries"
|
|
18
19
|
| "CorpseBay"
|
|
@@ -151,6 +152,7 @@ type GetCorporationsCorporationIdAssetsLocationFlag =
|
|
|
151
152
|
| "Booster"
|
|
152
153
|
| "BoosterBay"
|
|
153
154
|
| "Capsule"
|
|
155
|
+
| "CapsuleerDeliveries"
|
|
154
156
|
| "Cargo"
|
|
155
157
|
| "CorpDeliveries"
|
|
156
158
|
| "CorpSAG1"
|
|
@@ -524,6 +524,12 @@ type GetCharactersCharacterIdNotificationsType =
|
|
|
524
524
|
| "FacWarLPDisqualifiedKill"
|
|
525
525
|
| "FacWarLPPayoutEvent"
|
|
526
526
|
| "FacWarLPPayoutKill"
|
|
527
|
+
| "FreelanceProjectClosed"
|
|
528
|
+
| "FreelanceProjectCompleted"
|
|
529
|
+
| "FreelanceProjectCreated"
|
|
530
|
+
| "FreelanceProjectExpired"
|
|
531
|
+
| "FreelanceProjectLimitReached"
|
|
532
|
+
| "FreelanceProjectParticipantKicked"
|
|
527
533
|
| "GameTimeAdded"
|
|
528
534
|
| "GameTimeReceived"
|
|
529
535
|
| "GameTimeSent"
|
|
@@ -126,6 +126,7 @@ type GetCorporationsCorporationIdBlueprintsLocationFlag =
|
|
|
126
126
|
| "Booster"
|
|
127
127
|
| "BoosterBay"
|
|
128
128
|
| "Capsule"
|
|
129
|
+
| "CapsuleerDeliveries"
|
|
129
130
|
| "Cargo"
|
|
130
131
|
| "CorpDeliveries"
|
|
131
132
|
| "CorpSAG1"
|
|
@@ -135,6 +136,7 @@ type GetCorporationsCorporationIdBlueprintsLocationFlag =
|
|
|
135
136
|
| "CorpSAG5"
|
|
136
137
|
| "CorpSAG6"
|
|
137
138
|
| "CorpSAG7"
|
|
139
|
+
| "CorporationGoalDeliveries"
|
|
138
140
|
| "CrateLoot"
|
|
139
141
|
| "Deliveries"
|
|
140
142
|
| "DroneBay"
|
|
@@ -161,6 +163,7 @@ type GetCorporationsCorporationIdBlueprintsLocationFlag =
|
|
|
161
163
|
| "HiddenModifiers"
|
|
162
164
|
| "Implant"
|
|
163
165
|
| "Impounded"
|
|
166
|
+
| "InfrastructureHangar"
|
|
164
167
|
| "JunkyardReprocessed"
|
|
165
168
|
| "JunkyardTrashed"
|
|
166
169
|
| "LoSlot0"
|
|
@@ -180,6 +183,8 @@ type GetCorporationsCorporationIdBlueprintsLocationFlag =
|
|
|
180
183
|
| "MedSlot5"
|
|
181
184
|
| "MedSlot6"
|
|
182
185
|
| "MedSlot7"
|
|
186
|
+
| "MobileDepotHold"
|
|
187
|
+
| "MoonMaterialBay"
|
|
183
188
|
| "OfficeFolder"
|
|
184
189
|
| "Pilot"
|
|
185
190
|
| "PlanetSurface"
|
|
@@ -208,9 +213,11 @@ type GetCorporationsCorporationIdBlueprintsLocationFlag =
|
|
|
208
213
|
| "Skill"
|
|
209
214
|
| "SkillInTraining"
|
|
210
215
|
| "SpecializedAmmoHold"
|
|
216
|
+
| "SpecializedAsteroidHold"
|
|
211
217
|
| "SpecializedCommandCenterHold"
|
|
212
218
|
| "SpecializedFuelBay"
|
|
213
219
|
| "SpecializedGasHold"
|
|
220
|
+
| "SpecializedIceHold"
|
|
214
221
|
| "SpecializedIndustrialShipHold"
|
|
215
222
|
| "SpecializedLargeShipHold"
|
|
216
223
|
| "SpecializedMaterialBay"
|
|
@@ -304,6 +311,7 @@ type GetCorporationsCorporationIdContainersLogsLocationFlag =
|
|
|
304
311
|
| "Booster"
|
|
305
312
|
| "BoosterBay"
|
|
306
313
|
| "Capsule"
|
|
314
|
+
| "CapsuleerDeliveries"
|
|
307
315
|
| "Cargo"
|
|
308
316
|
| "CorpDeliveries"
|
|
309
317
|
| "CorpSAG1"
|
|
@@ -313,6 +321,7 @@ type GetCorporationsCorporationIdContainersLogsLocationFlag =
|
|
|
313
321
|
| "CorpSAG5"
|
|
314
322
|
| "CorpSAG6"
|
|
315
323
|
| "CorpSAG7"
|
|
324
|
+
| "CorporationGoalDeliveries"
|
|
316
325
|
| "CrateLoot"
|
|
317
326
|
| "Deliveries"
|
|
318
327
|
| "DroneBay"
|
|
@@ -339,6 +348,7 @@ type GetCorporationsCorporationIdContainersLogsLocationFlag =
|
|
|
339
348
|
| "HiddenModifiers"
|
|
340
349
|
| "Implant"
|
|
341
350
|
| "Impounded"
|
|
351
|
+
| "InfrastructureHangar"
|
|
342
352
|
| "JunkyardReprocessed"
|
|
343
353
|
| "JunkyardTrashed"
|
|
344
354
|
| "LoSlot0"
|
|
@@ -358,6 +368,8 @@ type GetCorporationsCorporationIdContainersLogsLocationFlag =
|
|
|
358
368
|
| "MedSlot5"
|
|
359
369
|
| "MedSlot6"
|
|
360
370
|
| "MedSlot7"
|
|
371
|
+
| "MobileDepotHold"
|
|
372
|
+
| "MoonMaterialBay"
|
|
361
373
|
| "OfficeFolder"
|
|
362
374
|
| "Pilot"
|
|
363
375
|
| "PlanetSurface"
|
|
@@ -386,9 +398,11 @@ type GetCorporationsCorporationIdContainersLogsLocationFlag =
|
|
|
386
398
|
| "Skill"
|
|
387
399
|
| "SkillInTraining"
|
|
388
400
|
| "SpecializedAmmoHold"
|
|
401
|
+
| "SpecializedAsteroidHold"
|
|
389
402
|
| "SpecializedCommandCenterHold"
|
|
390
403
|
| "SpecializedFuelBay"
|
|
391
404
|
| "SpecializedGasHold"
|
|
405
|
+
| "SpecializedIceHold"
|
|
392
406
|
| "SpecializedIndustrialShipHold"
|
|
393
407
|
| "SpecializedLargeShipHold"
|
|
394
408
|
| "SpecializedMaterialBay"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
2
|
+
// BODY TYPES
|
|
3
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
4
|
+
/* (Character) post_characters_affiliation:body, type name: "characters" */
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* characters array
|
|
@@ -9,7 +11,7 @@
|
|
|
9
11
|
*/
|
|
10
12
|
type PostCharactersAffiliationCharacters = [number, ...number[]];
|
|
11
13
|
|
|
12
|
-
/* post_characters_character_id_assets_locations
|
|
14
|
+
/* (Assets) post_characters_character_id_assets_locations:body, type name: "item_ids" */
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* item_ids array
|
|
@@ -19,7 +21,7 @@ type PostCharactersAffiliationCharacters = [number, ...number[]];
|
|
|
19
21
|
*/
|
|
20
22
|
type PostCharactersCharacterIdAssetsLocationsItemIds = [number, ...number[]];
|
|
21
23
|
|
|
22
|
-
/* post_characters_character_id_assets_names
|
|
24
|
+
/* (Assets) post_characters_character_id_assets_names:body, type name: "item_ids" */
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* item_ids array
|
|
@@ -29,7 +31,7 @@ type PostCharactersCharacterIdAssetsLocationsItemIds = [number, ...number[]];
|
|
|
29
31
|
*/
|
|
30
32
|
type PostCharactersCharacterIdAssetsNamesItemIds = [number, ...number[]];
|
|
31
33
|
|
|
32
|
-
/* put_characters_character_id_calendar_event_id
|
|
34
|
+
/* (Calendar) put_characters_character_id_calendar_event_id:body, type name: "response" */
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
* response string
|
|
@@ -44,7 +46,7 @@ interface PutCharactersCharacterIdCalendarEventIdResponse {
|
|
|
44
46
|
[k: string]: unknown | undefined;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
/* post_characters_character_id_contacts
|
|
49
|
+
/* (Contacts) post_characters_character_id_contacts:body, type name: "contact_ids" */
|
|
48
50
|
|
|
49
51
|
/**
|
|
50
52
|
* contact_ids array
|
|
@@ -54,7 +56,7 @@ interface PutCharactersCharacterIdCalendarEventIdResponse {
|
|
|
54
56
|
*/
|
|
55
57
|
type PostCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
56
58
|
|
|
57
|
-
/* put_characters_character_id_contacts
|
|
59
|
+
/* (Contacts) put_characters_character_id_contacts:body, type name: "contact_ids" */
|
|
58
60
|
|
|
59
61
|
/**
|
|
60
62
|
* contact_ids array
|
|
@@ -64,7 +66,7 @@ type PostCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
|
64
66
|
*/
|
|
65
67
|
type PutCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
66
68
|
|
|
67
|
-
/* post_characters_character_id_cspa
|
|
69
|
+
/* (Character) post_characters_character_id_cspa:body, type name: "characters" */
|
|
68
70
|
|
|
69
71
|
/**
|
|
70
72
|
* characters array
|
|
@@ -74,7 +76,7 @@ type PutCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
|
74
76
|
*/
|
|
75
77
|
type PostCharactersCharacterIdCspaCharacters = [number, ...number[]];
|
|
76
78
|
|
|
77
|
-
/* post_characters_character_id_fittings
|
|
79
|
+
/* (Fittings) post_characters_character_id_fittings:body, type name: "fitting" */
|
|
78
80
|
|
|
79
81
|
/**
|
|
80
82
|
* items array
|
|
@@ -160,7 +162,7 @@ interface PostCharactersCharacterIdFittingsItem {
|
|
|
160
162
|
[k: string]: unknown | undefined;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
/* post_characters_character_id_mail
|
|
165
|
+
/* (Mail) post_characters_character_id_mail:body, type name: "mail" */
|
|
164
166
|
|
|
165
167
|
/**
|
|
166
168
|
* recipients array
|
|
@@ -205,7 +207,7 @@ interface PostCharactersCharacterIdMailRecipient {
|
|
|
205
207
|
[k: string]: unknown | undefined;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
|
-
/* post_characters_character_id_mail_labels
|
|
210
|
+
/* (Mail) post_characters_character_id_mail_labels:body, type name: "label" */
|
|
209
211
|
|
|
210
212
|
/**
|
|
211
213
|
* Hexadecimal string representing label color, in RGB format
|
|
@@ -242,7 +244,7 @@ interface PostCharactersCharacterIdMailLabelsLabel {
|
|
|
242
244
|
[k: string]: unknown | undefined;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
|
-
/* put_characters_character_id_mail_mail_id
|
|
247
|
+
/* (Mail) put_characters_character_id_mail_mail_id:body, type name: "contents" */
|
|
246
248
|
|
|
247
249
|
|
|
248
250
|
/**
|
|
@@ -262,7 +264,7 @@ interface PutCharactersCharacterIdMailMailIdContents {
|
|
|
262
264
|
[k: string]: unknown | undefined;
|
|
263
265
|
}
|
|
264
266
|
|
|
265
|
-
/* post_corporations_corporation_id_assets_locations
|
|
267
|
+
/* (Assets) post_corporations_corporation_id_assets_locations:body, type name: "item_ids" */
|
|
266
268
|
|
|
267
269
|
/**
|
|
268
270
|
* item_ids array
|
|
@@ -272,7 +274,7 @@ interface PutCharactersCharacterIdMailMailIdContents {
|
|
|
272
274
|
*/
|
|
273
275
|
type PostCorporationsCorporationIdAssetsLocationsItemIds = [number, ...number[]];
|
|
274
276
|
|
|
275
|
-
/* post_corporations_corporation_id_assets_names
|
|
277
|
+
/* (Assets) post_corporations_corporation_id_assets_names:body, type name: "item_ids" */
|
|
276
278
|
|
|
277
279
|
/**
|
|
278
280
|
* item_ids array
|
|
@@ -282,7 +284,7 @@ type PostCorporationsCorporationIdAssetsLocationsItemIds = [number, ...number[]]
|
|
|
282
284
|
*/
|
|
283
285
|
type PostCorporationsCorporationIdAssetsNamesItemIds = [number, ...number[]];
|
|
284
286
|
|
|
285
|
-
/* put_fleets_fleet_id
|
|
287
|
+
/* (Fleets) put_fleets_fleet_id:body, type name: "new_settings" */
|
|
286
288
|
|
|
287
289
|
|
|
288
290
|
/**
|
|
@@ -300,7 +302,7 @@ interface PutFleetsFleetIdNewSettings {
|
|
|
300
302
|
[k: string]: unknown | undefined;
|
|
301
303
|
}
|
|
302
304
|
|
|
303
|
-
/* post_fleets_fleet_id_members
|
|
305
|
+
/* (Fleets) post_fleets_fleet_id_members:body, type name: "invitation" */
|
|
304
306
|
|
|
305
307
|
/**
|
|
306
308
|
* If a character is invited with the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified. If a character is invited with the `wing_commander` role, only `wing_id` should be specified. If a character is invited with the `squad_commander` role, both `wing_id` and `squad_id` should be specified. If a character is invited with the `squad_member` role, `wing_id` and `squad_id` should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions.
|
|
@@ -327,7 +329,7 @@ interface PostFleetsFleetIdMembersInvitation {
|
|
|
327
329
|
[k: string]: unknown | undefined;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
/* put_fleets_fleet_id_members_member_id
|
|
332
|
+
/* (Fleets) put_fleets_fleet_id_members_member_id:body, type name: "movement" */
|
|
331
333
|
|
|
332
334
|
/**
|
|
333
335
|
* 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.
|
|
@@ -354,7 +356,7 @@ interface PutFleetsFleetIdMembersMemberIdMovement {
|
|
|
354
356
|
[k: string]: unknown | undefined;
|
|
355
357
|
}
|
|
356
358
|
|
|
357
|
-
/* put_fleets_fleet_id_squads_squad_id
|
|
359
|
+
/* (Fleets) put_fleets_fleet_id_squads_squad_id:body, type name: "naming" */
|
|
358
360
|
|
|
359
361
|
|
|
360
362
|
/**
|
|
@@ -368,7 +370,7 @@ interface PutFleetsFleetIdSquadsSquadIdNaming {
|
|
|
368
370
|
[k: string]: unknown | undefined;
|
|
369
371
|
}
|
|
370
372
|
|
|
371
|
-
/* put_fleets_fleet_id_wings_wing_id
|
|
373
|
+
/* (Fleets) put_fleets_fleet_id_wings_wing_id:body, type name: "naming" */
|
|
372
374
|
|
|
373
375
|
|
|
374
376
|
/**
|
|
@@ -382,7 +384,7 @@ interface PutFleetsFleetIdWingsWingIdNaming {
|
|
|
382
384
|
[k: string]: unknown | undefined;
|
|
383
385
|
}
|
|
384
386
|
|
|
385
|
-
/* post_ui_openwindow_newmail
|
|
387
|
+
/* (User Interface) post_ui_openwindow_newmail:body, type name: "new_mail" */
|
|
386
388
|
|
|
387
389
|
/**
|
|
388
390
|
* recipients array
|
|
@@ -416,7 +418,7 @@ interface PostUiOpenwindowNewmailNewMail {
|
|
|
416
418
|
[k: string]: unknown | undefined;
|
|
417
419
|
}
|
|
418
420
|
|
|
419
|
-
/* post_universe_ids
|
|
421
|
+
/* (Universe) post_universe_ids:body, type name: "names" */
|
|
420
422
|
|
|
421
423
|
/**
|
|
422
424
|
* names array
|
|
@@ -426,7 +428,7 @@ interface PostUiOpenwindowNewmailNewMail {
|
|
|
426
428
|
*/
|
|
427
429
|
type PostUniverseIdsNames = [string, ...string[]];
|
|
428
430
|
|
|
429
|
-
/* post_universe_names
|
|
431
|
+
/* (Universe) post_universe_names:body, type name: "ids" */
|
|
430
432
|
|
|
431
433
|
/**
|
|
432
434
|
* ids array
|
|
@@ -437,8 +439,10 @@ type PostUniverseIdsNames = [string, ...string[]];
|
|
|
437
439
|
type PostUniverseNamesIds = [number, ...number[]];
|
|
438
440
|
|
|
439
441
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
443
|
+
// QUERY TYPES
|
|
444
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
445
|
+
/* (Contacts) delete_characters_character_id_contacts:query, parameter name: "contact_ids" */
|
|
442
446
|
|
|
443
447
|
/**
|
|
444
448
|
* A list of contacts to delete
|
|
@@ -448,7 +452,7 @@ type PostUniverseNamesIds = [number, ...number[]];
|
|
|
448
452
|
*/
|
|
449
453
|
type DeleteCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
450
454
|
|
|
451
|
-
/* post_characters_character_id_contacts,
|
|
455
|
+
/* (Contacts) post_characters_character_id_contacts:query, parameter name: "label_ids" */
|
|
452
456
|
|
|
453
457
|
/**
|
|
454
458
|
* Add custom labels to the new contact
|
|
@@ -457,7 +461,7 @@ type DeleteCharactersCharacterIdContactsContactIds = [number, ...number[]];
|
|
|
457
461
|
*/
|
|
458
462
|
type PostCharactersCharacterIdContactsLabelIds = number[];
|
|
459
463
|
|
|
460
|
-
/* put_characters_character_id_contacts,
|
|
464
|
+
/* (Contacts) put_characters_character_id_contacts:query, parameter name: "label_ids" */
|
|
461
465
|
|
|
462
466
|
/**
|
|
463
467
|
* Add custom labels to the contact
|
|
@@ -466,7 +470,7 @@ type PostCharactersCharacterIdContactsLabelIds = number[];
|
|
|
466
470
|
*/
|
|
467
471
|
type PutCharactersCharacterIdContactsLabelIds = number[];
|
|
468
472
|
|
|
469
|
-
/* get_characters_character_id_mail,
|
|
473
|
+
/* (Mail) get_characters_character_id_mail:query, parameter name: "labels" */
|
|
470
474
|
|
|
471
475
|
/**
|
|
472
476
|
* Fetch only mails that match one or more of the given labels
|
|
@@ -491,6 +495,8 @@ type GetCharactersCharacterIdSearchCategory =
|
|
|
491
495
|
| "structure";
|
|
492
496
|
|
|
493
497
|
|
|
498
|
+
/* (Search) get_characters_character_id_search:query, parameter name: "categories" */
|
|
499
|
+
|
|
494
500
|
/**
|
|
495
501
|
* Type of entities to search for
|
|
496
502
|
*
|
|
@@ -499,7 +505,7 @@ type GetCharactersCharacterIdSearchCategory =
|
|
|
499
505
|
*/
|
|
500
506
|
type GetCharactersCharacterIdSearchCategories = [GetCharactersCharacterIdSearchCategory, ...GetCharactersCharacterIdSearchCategory[]];
|
|
501
507
|
|
|
502
|
-
/* get_characters_character_id_search,
|
|
508
|
+
/* (Search) get_characters_character_id_search:query, parameter name: "search" */
|
|
503
509
|
|
|
504
510
|
/**
|
|
505
511
|
* The string to search on
|
|
@@ -513,7 +519,7 @@ type GetCharactersCharacterIdSearchSearch = string;
|
|
|
513
519
|
*/
|
|
514
520
|
type GetMarketsRegionIdOrdersOrderType = "buy" | "sell" | "all";
|
|
515
521
|
|
|
516
|
-
/* get_route_origin_destination,
|
|
522
|
+
/* (Routes) get_route_origin_destination:query, parameter name: "avoid" */
|
|
517
523
|
|
|
518
524
|
/**
|
|
519
525
|
* avoid solar system ID(s)
|
|
@@ -522,7 +528,7 @@ type GetMarketsRegionIdOrdersOrderType = "buy" | "sell" | "all";
|
|
|
522
528
|
*/
|
|
523
529
|
type GetRouteOriginDestinationAvoid = number[];
|
|
524
530
|
|
|
525
|
-
/* get_route_origin_destination,
|
|
531
|
+
/* (Routes) get_route_origin_destination:query, parameter name: "connections" */
|
|
526
532
|
|
|
527
533
|
/**
|
|
528
534
|
* connected solar system pairs
|
|
@@ -531,7 +537,7 @@ type GetRouteOriginDestinationAvoid = number[];
|
|
|
531
537
|
*/
|
|
532
538
|
type GetRouteOriginDestinationConnections = [number, number][];
|
|
533
539
|
|
|
534
|
-
/* get_route_origin_destination,
|
|
540
|
+
/* (Routes) get_route_origin_destination:query, parameter name: "flag" */
|
|
535
541
|
|
|
536
542
|
/**
|
|
537
543
|
* route security preference
|
|
@@ -48,6 +48,7 @@ type GetCharactersCharacterIdWalletJournalRefType =
|
|
|
48
48
|
| "agent_security_services"
|
|
49
49
|
| "agent_services_rendered"
|
|
50
50
|
| "agents_preward"
|
|
51
|
+
| "air_career_program_reward"
|
|
51
52
|
| "alliance_maintainance_fee"
|
|
52
53
|
| "alliance_registration_fee"
|
|
53
54
|
| "allignment_based_gate_toll"
|
|
@@ -121,7 +122,14 @@ type GetCharactersCharacterIdWalletJournalRefType =
|
|
|
121
122
|
| "flux_tax"
|
|
122
123
|
| "flux_ticket_repayment"
|
|
123
124
|
| "flux_ticket_sale"
|
|
125
|
+
| "freelance_jobs_broadcasting_fee"
|
|
126
|
+
| "freelance_jobs_duration_fee"
|
|
127
|
+
| "freelance_jobs_escrow_refund"
|
|
128
|
+
| "freelance_jobs_reward"
|
|
129
|
+
| "freelance_jobs_reward_corporation_tax"
|
|
130
|
+
| "freelance_jobs_reward_escrow"
|
|
124
131
|
| "gm_cash_transfer"
|
|
132
|
+
| "gm_plex_fee_refund"
|
|
125
133
|
| "industry_job_tax"
|
|
126
134
|
| "infrastructure_hub_maintenance"
|
|
127
135
|
| "inheritance"
|
|
@@ -170,6 +178,7 @@ type GetCharactersCharacterIdWalletJournalRefType =
|
|
|
170
178
|
| "security_processing_fee"
|
|
171
179
|
| "shares"
|
|
172
180
|
| "skill_purchase"
|
|
181
|
+
| "skyhook_claim_fee"
|
|
173
182
|
| "sovereignity_bill"
|
|
174
183
|
| "store_purchase"
|
|
175
184
|
| "store_purchase_refund"
|
|
@@ -356,6 +365,7 @@ type GetCorporationsCorporationIdWalletsDivisionJournalRefType =
|
|
|
356
365
|
| "agent_security_services"
|
|
357
366
|
| "agent_services_rendered"
|
|
358
367
|
| "agents_preward"
|
|
368
|
+
| "air_career_program_reward"
|
|
359
369
|
| "alliance_maintainance_fee"
|
|
360
370
|
| "alliance_registration_fee"
|
|
361
371
|
| "allignment_based_gate_toll"
|
|
@@ -429,7 +439,14 @@ type GetCorporationsCorporationIdWalletsDivisionJournalRefType =
|
|
|
429
439
|
| "flux_tax"
|
|
430
440
|
| "flux_ticket_repayment"
|
|
431
441
|
| "flux_ticket_sale"
|
|
442
|
+
| "freelance_jobs_broadcasting_fee"
|
|
443
|
+
| "freelance_jobs_duration_fee"
|
|
444
|
+
| "freelance_jobs_escrow_refund"
|
|
445
|
+
| "freelance_jobs_reward"
|
|
446
|
+
| "freelance_jobs_reward_corporation_tax"
|
|
447
|
+
| "freelance_jobs_reward_escrow"
|
|
432
448
|
| "gm_cash_transfer"
|
|
449
|
+
| "gm_plex_fee_refund"
|
|
433
450
|
| "industry_job_tax"
|
|
434
451
|
| "infrastructure_hub_maintenance"
|
|
435
452
|
| "inheritance"
|
|
@@ -478,6 +495,7 @@ type GetCorporationsCorporationIdWalletsDivisionJournalRefType =
|
|
|
478
495
|
| "security_processing_fee"
|
|
479
496
|
| "shares"
|
|
480
497
|
| "skill_purchase"
|
|
498
|
+
| "skyhook_claim_fee"
|
|
481
499
|
| "sovereignity_bill"
|
|
482
500
|
| "store_purchase"
|
|
483
501
|
| "store_purchase_refund"
|
package/dist/v2/index.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/index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
15
15
|
import type { PickPathParameters, InferKeysLen, CombineIntersection, ExtractPathParamKeys } from "./util.d.ts";
|
|
@@ -85,8 +85,8 @@ export type RestrictKeys2<
|
|
|
85
85
|
|
|
86
86
|
declare global {
|
|
87
87
|
|
|
88
|
-
type ESIEndpointType = string | symbol;
|
|
89
88
|
type __ShiftType = 1;
|
|
89
|
+
|
|
90
90
|
/**
|
|
91
91
|
* Marks specific properties of a type as required.
|
|
92
92
|
*
|
|
@@ -107,6 +107,25 @@ declare global {
|
|
|
107
107
|
[P in keyof T as P extends K ? never : P]: T[P];
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
/* cct
|
|
111
|
+
// this type are old version
|
|
112
|
+
type RequireThese2<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
113
|
+
// type は "&" で分けられる
|
|
114
|
+
type TTOK0 = RequireThese<
|
|
115
|
+
{ index?: "text"; source?: string} & { hask?: true; }, "hask" | "index"
|
|
116
|
+
>;
|
|
117
|
+
// type は "&" で分けられる(冗長な type 表現)
|
|
118
|
+
type TTOK = RequireThese2<
|
|
119
|
+
{ index?: "text"; source?: string} & { hask?: true; }, "hask" | "index"
|
|
120
|
+
>;
|
|
121
|
+
// **完全に結合
|
|
122
|
+
type TTOK2 = CombineIntersection<
|
|
123
|
+
TTOK & TTOK0
|
|
124
|
+
// { index?: "text"; source?: string} & { hask?: true; }
|
|
125
|
+
>;
|
|
126
|
+
/*/
|
|
127
|
+
//*/
|
|
128
|
+
|
|
110
129
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
111
130
|
// Version 3 types
|
|
112
131
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
@@ -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.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./types-index.d.ts";
|
|
15
15
|
|
package/dist/v2/types-index.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/types-index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./globals/alliance.d.ts";
|
|
15
15
|
import "./globals/assets.d.ts";
|
package/dist/v2/types-util.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/types-util.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 3.2.
|
|
12
|
+
* @summary This file is auto-generated and defines version 3.2.11 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import type { TESIResponseOKMap } from "./response-map.d.ts";
|
|
15
15
|
import type { RestrictKeys, CombineIntersection } from "./index.d.ts";
|
package/dist/v2/util.d.ts
CHANGED
|
@@ -143,7 +143,8 @@ export type Split<S extends string, D extends string = ":"> =
|
|
|
143
143
|
*/
|
|
144
144
|
//* ctt
|
|
145
145
|
// export type CombineIntersection<IS> = IS extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
146
|
-
export type CombineIntersection<IS extends Record<string, unknown>> = { [K in keyof IS]: IS[K] };
|
|
146
|
+
// export type CombineIntersection<IS extends Record<string, unknown>> = { [K in keyof IS]: IS[K] };
|
|
147
|
+
export type CombineIntersection<IS> = true extends 0 ? { [K in keyof IS]: IS[K] } : { [K in keyof IS]: IS[K] };
|
|
147
148
|
/*/
|
|
148
149
|
export type CombineIntersection<IS> = IS;
|
|
149
150
|
//*/
|
package/lib/constants.mjs
CHANGED
|
@@ -12,7 +12,7 @@ export const isNode = await (async () => {
|
|
|
12
12
|
if (typeof process === "object") {
|
|
13
13
|
returnValue = typeof process.versions === "object" && /\d+\.\d+\.\d+/.test(process.versions.node);
|
|
14
14
|
if (returnValue) {
|
|
15
|
-
await import("colors.ts");
|
|
15
|
+
await import(/* webpackIgnore: true */ "colors.ts");
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
else {
|
package/lib/request-api.mjs
CHANGED
|
@@ -38,12 +38,10 @@ const DEBUG = util.isDebug();
|
|
|
38
38
|
export const request2 = /** @type {IESIRequestFunction2} */ (async (method, endpoint, opt) => {
|
|
39
39
|
// When only options are provided
|
|
40
40
|
const nOpt = util.normalizeOptions([opt]);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
pathParams = (Array.isArray(nOpt.pathParams) ? nOpt.pathParams : [nOpt.pathParams]);
|
|
41
|
+
if (util.hasPathParams(nOpt)) {
|
|
42
|
+
const pathParams = Array.isArray(nOpt.pathParams) ? nOpt.pathParams : [nOpt.pathParams];
|
|
43
|
+
endpoint = util.replaceCbt(endpoint, pathParams);
|
|
45
44
|
}
|
|
46
|
-
Array.isArray(pathParams) && (endpoint = util.replaceCbt(endpoint, pathParams));
|
|
47
45
|
const { rqopt, qss } = util.initOptions(method, nOpt);
|
|
48
46
|
const endpointUrl = util.curl(endpoint);
|
|
49
47
|
const up = new URLSearchParams(qss);
|
package/lib/rq-util.mjs
CHANGED
|
@@ -218,7 +218,7 @@ export const initOptions = (method, opt) => {
|
|
|
218
218
|
mode: "cors",
|
|
219
219
|
cache: "no-cache",
|
|
220
220
|
signal: opt.cancelable?.signal,
|
|
221
|
-
headers: {}
|
|
221
|
+
// headers: {}
|
|
222
222
|
};
|
|
223
223
|
/** @type {Record<string, any>} */
|
|
224
224
|
const qss = {
|
|
@@ -226,6 +226,8 @@ export const initOptions = (method, opt) => {
|
|
|
226
226
|
// Therefore, the language parameter should always be set.
|
|
227
227
|
language: "en",
|
|
228
228
|
};
|
|
229
|
+
/** @type {Record<string, string>} */
|
|
230
|
+
const headers = {}; // TODO: 2026/02/20 11:17:25 - "X-Compatibility-Date"
|
|
229
231
|
if (opt.query) {
|
|
230
232
|
// Object.assign(query, options.query); Object.assign is too slow
|
|
231
233
|
const oqs = opt.query;
|
|
@@ -236,14 +238,13 @@ export const initOptions = (method, opt) => {
|
|
|
236
238
|
if (!opt.token) {
|
|
237
239
|
throw new Error("Authentication required: missing `token`");
|
|
238
240
|
}
|
|
239
|
-
|
|
240
|
-
rqopt.headers.authorization = `Bearer ${opt.token}`;
|
|
241
|
+
headers.authorization = `Bearer ${opt.token}`;
|
|
241
242
|
}
|
|
242
243
|
if (opt.body) { // means "POST" method etc
|
|
243
|
-
|
|
244
|
-
rqopt.headers["content-type"] = "application/json";
|
|
244
|
+
headers["content-type"] = "application/json";
|
|
245
245
|
rqopt.body = JSON.stringify(opt.body);
|
|
246
246
|
}
|
|
247
|
+
rqopt.headers = headers;
|
|
247
248
|
return { rqopt, qss };
|
|
248
249
|
};
|
|
249
250
|
/**
|
|
@@ -261,7 +262,7 @@ export const initOptions = (method, opt) => {
|
|
|
261
262
|
export const fetchP = async (endpointUrl, rqopt, usp, pc, progress = () => { }) => {
|
|
262
263
|
const rqs = [];
|
|
263
264
|
for (let i = 2; i <= pc;) {
|
|
264
|
-
usp.set("page", (i++)
|
|
265
|
+
usp.set("page", String(i++));
|
|
265
266
|
progress();
|
|
266
267
|
rqs.push(fetch(`${endpointUrl}?${usp + ""}`, rqopt).then(res => res.json()).catch(reason => {
|
|
267
268
|
console.warn(reason);
|
|
@@ -383,25 +384,27 @@ export function getLogger() {
|
|
|
383
384
|
*/
|
|
384
385
|
/**
|
|
385
386
|
* @typedef {TESIRequestFunctionSignature2<ESIRequestOptions> | TESIRequestFunctionMethods2} TPrependParams
|
|
387
|
+
* @typedef {ReturnType<typeof fireWithoutAuth>} TFireReturn
|
|
386
388
|
*/
|
|
387
389
|
/**
|
|
388
390
|
* #### Fire a request that does not require authentication.
|
|
389
391
|
*
|
|
390
392
|
* @type {TESIEnhancedRequestFunctionSignature<TPrependParams, ESIRequestOptions>}
|
|
391
393
|
*/
|
|
392
|
-
//
|
|
394
|
+
// Resolved type error (ts(2322)) using the `TFireReturn` type assertion (2025/4/29)
|
|
393
395
|
const fireWithoutAuth = (fn, method, endpoint, ...opt) => {
|
|
394
396
|
const arg = opt.length ? opt[0] : void 0;
|
|
395
397
|
if (typeof fn === "function") {
|
|
398
|
+
return /** @type {TFireReturn} */ (
|
|
396
399
|
// @ts-expect-error TODO: ts(2345) The argument type does not match the type of the specified parameter
|
|
397
|
-
|
|
400
|
+
fn(method, endpoint, arg));
|
|
398
401
|
}
|
|
402
|
+
return /** @type {TFireReturn} */ (
|
|
399
403
|
// @ts-expect-error TODO: ts(2345) The argument type does not match the type of the specified parameter
|
|
400
|
-
|
|
404
|
+
fn[method](endpoint, arg));
|
|
401
405
|
};
|
|
402
406
|
// /**
|
|
403
407
|
// * ```
|
|
404
|
-
// * process.env.CID // Specify EVE Character id
|
|
405
408
|
// * process.env.OAUTH_TOKEN // Spedify valid OAuth token
|
|
406
409
|
// * ```
|
|
407
410
|
// * @param envName
|
package/package.json
CHANGED
package/request-v3.mjs
CHANGED
|
@@ -55,7 +55,7 @@ export const fire = /** @type {TESIRequestFunctionSignature2<ESIRequestOptions>}
|
|
|
55
55
|
// When only options are provided
|
|
56
56
|
const nOpt = normalizeOptions(opt);
|
|
57
57
|
if (hasPathParams(nOpt)) {
|
|
58
|
-
const pathParams =
|
|
58
|
+
const pathParams = isArray(nOpt.pathParams) ? nOpt.pathParams : [nOpt.pathParams];
|
|
59
59
|
endp = replaceCbt(endp, pathParams);
|
|
60
60
|
}
|
|
61
61
|
const { rqopt, qss } = initOptions(mthd, nOpt);
|