eve-esi-types 3.2.7 → 3.2.8
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 +22 -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/wallet.d.ts +18 -0
- package/dist/v2/index.d.ts +1 -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/lib/request-api.mjs +3 -5
- package/lib/rq-util.mjs +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [3.2.8] - 2026-01-03
|
|
6
|
+
|
|
7
|
+
### 🐛 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Resolve various errors
|
|
10
|
+
- Resolved type error (ts(2322)) using the `TFireReturn` type assertion
|
|
11
|
+
|
|
12
|
+
### 🚜 Refactor
|
|
13
|
+
|
|
14
|
+
- Use `util.hasPathParams`
|
|
15
|
+
|
|
16
|
+
### ⚙️ Miscellaneous Tasks
|
|
17
|
+
|
|
18
|
+
- Update CHANGELOG.md
|
|
19
|
+
- Update jsdoc
|
|
20
|
+
- Update README.md
|
|
21
|
+
- Update "files" (jsconfig -> tsconfig)
|
|
22
|
+
- Update CHANGELOG.md
|
|
23
|
+
- Bump version to v3.2.8
|
|
24
|
+
|
|
5
25
|
## [3.2.7] - 2025-04-28
|
|
6
26
|
|
|
7
27
|
### 🚜 Refactor
|
|
@@ -260,4 +280,6 @@ All notable changes to this project will be documented in this file.
|
|
|
260
280
|
|
|
261
281
|
- Remove non-functional bookmarks endpoints in ESI
|
|
262
282
|
|
|
283
|
+
## [1.0.1] - 2025-01-22
|
|
284
|
+
|
|
263
285
|
<!-- 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.8 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.8 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"
|
|
@@ -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.8 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,7 +85,6 @@ export type RestrictKeys2<
|
|
|
85
85
|
|
|
86
86
|
declare global {
|
|
87
87
|
|
|
88
|
-
type ESIEndpointType = string | symbol;
|
|
89
88
|
type __ShiftType = 1;
|
|
90
89
|
/**
|
|
91
90
|
* Marks specific properties of a type as required.
|
|
@@ -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.8 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.8 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.8 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/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
|
@@ -383,25 +383,27 @@ export function getLogger() {
|
|
|
383
383
|
*/
|
|
384
384
|
/**
|
|
385
385
|
* @typedef {TESIRequestFunctionSignature2<ESIRequestOptions> | TESIRequestFunctionMethods2} TPrependParams
|
|
386
|
+
* @typedef {ReturnType<typeof fireWithoutAuth>} TFireReturn
|
|
386
387
|
*/
|
|
387
388
|
/**
|
|
388
389
|
* #### Fire a request that does not require authentication.
|
|
389
390
|
*
|
|
390
391
|
* @type {TESIEnhancedRequestFunctionSignature<TPrependParams, ESIRequestOptions>}
|
|
391
392
|
*/
|
|
392
|
-
//
|
|
393
|
+
// Resolved type error (ts(2322)) using the `TFireReturn` type assertion (2025/4/29)
|
|
393
394
|
const fireWithoutAuth = (fn, method, endpoint, ...opt) => {
|
|
394
395
|
const arg = opt.length ? opt[0] : void 0;
|
|
395
396
|
if (typeof fn === "function") {
|
|
397
|
+
return /** @type {TFireReturn} */ (
|
|
396
398
|
// @ts-expect-error TODO: ts(2345) The argument type does not match the type of the specified parameter
|
|
397
|
-
|
|
399
|
+
fn(method, endpoint, arg));
|
|
398
400
|
}
|
|
401
|
+
return /** @type {TFireReturn} */ (
|
|
399
402
|
// @ts-expect-error TODO: ts(2345) The argument type does not match the type of the specified parameter
|
|
400
|
-
|
|
403
|
+
fn[method](endpoint, arg));
|
|
401
404
|
};
|
|
402
405
|
// /**
|
|
403
406
|
// * ```
|
|
404
|
-
// * process.env.CID // Specify EVE Character id
|
|
405
407
|
// * process.env.OAUTH_TOKEN // Spedify valid OAuth token
|
|
406
408
|
// * ```
|
|
407
409
|
// * @param envName
|