eve-esi-types 3.2.8 → 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 CHANGED
@@ -2,6 +2,20 @@
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
+
5
19
  ## [3.2.8] - 2026-01-03
6
20
 
7
21
  ### 🐛 Bug Fixes
@@ -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.8 of the EVE Online ESI response types.
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.8 of the EVE Online ESI response types.
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,
@@ -1,5 +1,7 @@
1
- /*! body types */
2
- /* post_characters_affiliation body type, name: characters */
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 body type, name: item_ids */
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 body type, name: item_ids */
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 body type, name: response */
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 body type, name: contact_ids */
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 body type, name: contact_ids */
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 body type, name: characters */
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 body type, name: fitting */
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 body type, name: 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 body type, name: label */
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 body type, name: contents */
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 body type, name: item_ids */
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 body type, name: item_ids */
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 body type, name: new_settings */
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 body type, name: invitation */
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 body type, name: movement */
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 body type, name: naming */
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 body type, name: naming */
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 body type, name: new_mail */
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 body type, name: names */
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 body type, name: ids */
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
- /*! query types */
441
- /* delete_characters_character_id_contacts, contact_ids query type */
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, label_ids query type */
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, label_ids query type */
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, labels query type */
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, search query type */
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, avoid query type */
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, connections query type */
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, flag query type */
540
+ /* (Routes) get_route_origin_destination:query, parameter name: "flag" */
535
541
 
536
542
  /**
537
543
  * route security preference
@@ -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.8 of the EVE Online ESI response types.
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";
@@ -86,6 +86,7 @@ export type RestrictKeys2<
86
86
  declare global {
87
87
 
88
88
  type __ShiftType = 1;
89
+
89
90
  /**
90
91
  * Marks specific properties of a type as required.
91
92
  *
@@ -106,6 +107,25 @@ declare global {
106
107
  [P in keyof T as P extends K ? never : P]: T[P];
107
108
  };
108
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
+
109
129
  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
110
130
  // Version 3 types
111
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.8 of the EVE Online ESI response types.
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
 
@@ -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.8 of the EVE Online ESI response types.
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";
@@ -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.8 of the EVE Online ESI response types.
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/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
- // @ts-ignore The header is indeed an object
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
- // @ts-ignore The header is indeed an object
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-esi-types",
3
- "version": "3.2.8",
3
+ "version": "3.2.11",
4
4
  "description": "Extracted the main type of ESI. use for ESI request response types (version 2 only)",
5
5
  "main": "dist/v2/index.d.ts",
6
6
  "scripts": {
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 = Array.isArray(nOpt.pathParams) ? nOpt.pathParams : [nOpt.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);