eve-esi-types 3.0.1 → 3.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-esi-types",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Extracted the main type of ESI. use for ESI request response types (version 2 only)",
5
5
  "main": "v2/index.d.ts",
6
6
  "scripts": {
package/tagged-rq.mjs CHANGED
@@ -8,32 +8,44 @@
8
8
  /// <reference types="./v2"/>
9
9
  /**
10
10
  * @file tagged-rq.mts
11
- * @command node tagged-rq.mjs -x
11
+ * @command node tagged-rq.mjs -x -debug
12
12
  */
13
13
  import { esi } from "./lib/tagged-request-api.mjs";
14
- // import * as util from "./lib/rq-util.mjs";
14
+ import * as util from "./lib/rq-util.mjs";
15
15
  // Furthermore, the endpoint selected is narrowed down by "tags" and "method".
16
- esi.assets.get("/characters/2112625428/assets/", {
17
- auth: true
18
- }).then(console.log).catch(console.log);
16
+ esi.alliance.get("/alliances/").then(aIds => {
17
+ console.log(`get:alliances, id size=${aIds.length}`);
18
+ // for (const aid of aIds.slice(0, 20)) {
19
+ // esi.alliance.get(`/alliances/${aid}/`).then(console.log);
20
+ // }
21
+ });
19
22
  esi.character.get("/characters/{character_id}/", { pathParams: 2112625428 }).then(console.log);
20
- esi.mail.post("/characters/2112625428/mail/", /** @satisfies {Pick<TESIResponsePostEntry<"/characters/{character_id}/mail/">, "auth" | "body">} */ ({
21
- auth: true,
22
- body: {
23
- subject: "test!!",
24
- body: "",
25
- recipients: [{
26
- recipient_id: 2112625428, recipient_type: "character"
27
- }]
28
- },
29
- // token: "s.s.s"
30
- })).then(console.log).catch(console.log);
31
- esi.universe.get("/universe/structures/", { query: { filter: "market" } }).then(console.log);
32
23
  esi.universe.post("/universe/ids/", {
33
24
  body: ["the forge", "plex"]
34
25
  }).then(console.log);
35
- esi.fittings.delete("/characters/{character_id}/fittings/{fitting_id}/", {
36
- pathParams: [1234, 56789],
37
- auth: true
38
- });
39
- esi.character.post("/characters/affiliation/").catch(console.log);
26
+ esi.universe.post("/universe/names/", {
27
+ body: [44992, 434243723, 109299958, 10000002]
28
+ }).then(console.log);
29
+ esi.universe.get("/universe/structures/", { query: { filter: "market" } }).then(console.log);
30
+ // node tagged-rq.mjs -x -withError
31
+ if (util.is("withError")) {
32
+ esi.assets.get("/characters/2112625428/assets/", {
33
+ auth: true
34
+ }).then(console.log).catch(console.log);
35
+ esi.mail.post("/characters/2112625428/mail/", /** @satisfies {Pick<TESIResponsePostEntry<"/characters/{character_id}/mail/">, "auth" | "body">} */ ({
36
+ auth: true,
37
+ body: {
38
+ subject: "test!!",
39
+ body: "",
40
+ recipients: [{
41
+ recipient_id: 2112625428, recipient_type: "character"
42
+ }]
43
+ },
44
+ // token: "s.s.s"
45
+ })).then(console.log).catch(console.log);
46
+ esi.fittings.delete("/characters/{character_id}/fittings/{fitting_id}/", {
47
+ pathParams: [1234, 56789],
48
+ auth: true
49
+ });
50
+ esi.character.post("/characters/affiliation/").catch(console.log);
51
+ }
@@ -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.0.0 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.0.2 of the EVE Online ESI response types.
13
13
  */
14
14
  import { TESIResponseOKMap, TPathParamsNever } from "./index.d.ts";
15
15
  export * from "./index.d.ts";
@@ -7,7 +7,7 @@
7
7
  * @minItems 1
8
8
  * @maxItems 1000
9
9
  */
10
- type PostCharactersAffiliationCharacters = number[];
10
+ type PostCharactersAffiliationCharacters = [number, ...number[]];
11
11
 
12
12
  /* post_characters_character_id_assets_locations body type, name: item_ids */
13
13
 
@@ -17,7 +17,7 @@ type PostCharactersAffiliationCharacters = number[];
17
17
  * @minItems 1
18
18
  * @maxItems 1000
19
19
  */
20
- type PostCharactersCharacterIdAssetsLocationsItemIds = number[];
20
+ type PostCharactersCharacterIdAssetsLocationsItemIds = [number, ...number[]];
21
21
 
22
22
  /* post_characters_character_id_assets_names body type, name: item_ids */
23
23
 
@@ -27,7 +27,7 @@ type PostCharactersCharacterIdAssetsLocationsItemIds = number[];
27
27
  * @minItems 1
28
28
  * @maxItems 1000
29
29
  */
30
- type PostCharactersCharacterIdAssetsNamesItemIds = number[];
30
+ type PostCharactersCharacterIdAssetsNamesItemIds = [number, ...number[]];
31
31
 
32
32
  /* put_characters_character_id_calendar_event_id body type, name: response */
33
33
 
@@ -52,7 +52,7 @@ interface PutCharactersCharacterIdCalendarEventIdResponse {
52
52
  * @minItems 1
53
53
  * @maxItems 100
54
54
  */
55
- type PostCharactersCharacterIdContactsContactIds = number[];
55
+ type PostCharactersCharacterIdContactsContactIds = [number, ...number[]];
56
56
 
57
57
  /* put_characters_character_id_contacts body type, name: contact_ids */
58
58
 
@@ -62,7 +62,7 @@ type PostCharactersCharacterIdContactsContactIds = number[];
62
62
  * @minItems 1
63
63
  * @maxItems 100
64
64
  */
65
- type PutCharactersCharacterIdContactsContactIds = number[];
65
+ type PutCharactersCharacterIdContactsContactIds = [number, ...number[]];
66
66
 
67
67
  /* post_characters_character_id_cspa body type, name: characters */
68
68
 
@@ -72,7 +72,7 @@ type PutCharactersCharacterIdContactsContactIds = number[];
72
72
  * @minItems 1
73
73
  * @maxItems 100
74
74
  */
75
- type PostCharactersCharacterIdCspaCharacters = number[];
75
+ type PostCharactersCharacterIdCspaCharacters = [number, ...number[]];
76
76
 
77
77
  /* post_characters_character_id_fittings body type, name: fitting */
78
78
 
@@ -82,7 +82,7 @@ type PostCharactersCharacterIdCspaCharacters = number[];
82
82
  * @minItems 1
83
83
  * @maxItems 512
84
84
  */
85
- type PostCharactersCharacterIdFittingsItems = PostCharactersCharacterIdFittingsItem[];
85
+ type PostCharactersCharacterIdFittingsItems = [PostCharactersCharacterIdFittingsItem, ...PostCharactersCharacterIdFittingsItem[]];
86
86
  /**
87
87
  * Fitting location for the item. Entries placed in 'Invalid' will be discarded. If this leaves the fitting with nothing, it will cause an error.
88
88
  */
@@ -168,7 +168,7 @@ interface PostCharactersCharacterIdFittingsItem {
168
168
  * @minItems 1
169
169
  * @maxItems 50
170
170
  */
171
- type PostCharactersCharacterIdMailRecipients = PostCharactersCharacterIdMailRecipient[];
171
+ type PostCharactersCharacterIdMailRecipients = [PostCharactersCharacterIdMailRecipient, ...PostCharactersCharacterIdMailRecipient[]];
172
172
  /**
173
173
  * recipient_type string
174
174
  */
@@ -270,7 +270,7 @@ interface PutCharactersCharacterIdMailMailIdContents {
270
270
  * @minItems 1
271
271
  * @maxItems 1000
272
272
  */
273
- type PostCorporationsCorporationIdAssetsLocationsItemIds = number[];
273
+ type PostCorporationsCorporationIdAssetsLocationsItemIds = [number, ...number[]];
274
274
 
275
275
  /* post_corporations_corporation_id_assets_names body type, name: item_ids */
276
276
 
@@ -280,7 +280,7 @@ type PostCorporationsCorporationIdAssetsLocationsItemIds = number[];
280
280
  * @minItems 1
281
281
  * @maxItems 1000
282
282
  */
283
- type PostCorporationsCorporationIdAssetsNamesItemIds = number[];
283
+ type PostCorporationsCorporationIdAssetsNamesItemIds = [number, ...number[]];
284
284
 
285
285
  /* put_fleets_fleet_id body type, name: new_settings */
286
286
 
@@ -390,7 +390,7 @@ interface PutFleetsFleetIdWingsWingIdNaming {
390
390
  * @minItems 1
391
391
  * @maxItems 50
392
392
  */
393
- type PostUiOpenwindowNewmailRecipients = number[];
393
+ type PostUiOpenwindowNewmailRecipients = [number, ...number[]];
394
394
 
395
395
  /**
396
396
  * new_mail object
@@ -424,7 +424,7 @@ interface PostUiOpenwindowNewmailNewMail {
424
424
  * @minItems 1
425
425
  * @maxItems 500
426
426
  */
427
- type PostUniverseIdsNames = string[];
427
+ type PostUniverseIdsNames = [string, ...string[]];
428
428
 
429
429
  /* post_universe_names body type, name: ids */
430
430
 
@@ -434,7 +434,7 @@ type PostUniverseIdsNames = string[];
434
434
  * @minItems 1
435
435
  * @maxItems 1000
436
436
  */
437
- type PostUniverseNamesIds = number[];
437
+ type PostUniverseNamesIds = [number, ...number[]];
438
438
 
439
439
 
440
440
  /*! query types */
@@ -446,7 +446,7 @@ type PostUniverseNamesIds = number[];
446
446
  * @minItems 1
447
447
  * @maxItems 20
448
448
  */
449
- type DeleteCharactersCharacterIdContactsContactIds = number[];
449
+ type DeleteCharactersCharacterIdContactsContactIds = [number, ...number[]];
450
450
 
451
451
  /* post_characters_character_id_contacts, label_ids query type */
452
452
 
@@ -497,7 +497,7 @@ type GetCharactersCharacterIdSearchCategory =
497
497
  * @minItems 1
498
498
  * @maxItems 11
499
499
  */
500
- type GetCharactersCharacterIdSearchCategories = GetCharactersCharacterIdSearchCategory[];
500
+ type GetCharactersCharacterIdSearchCategories = [GetCharactersCharacterIdSearchCategory, ...GetCharactersCharacterIdSearchCategory[]];
501
501
 
502
502
  /* get_characters_character_id_search, search query type */
503
503
 
package/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.0.0 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.0.2 of the EVE Online ESI response types.
13
13
  */
14
14
 
15
15
  import type { TESIResponseOKMap } from "./response-map.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/response-map.d.ts
12
- * @summary This file is auto-generated and defines version 3.0.0 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.0.2 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.0.0 of the EVE Online ESI response types.
12
+ * @summary This file is auto-generated and defines version 3.0.2 of the EVE Online ESI response types.
13
13
  */
14
14
  import "./get_wars_ok.d.ts";
15
15
  import "./get_status_ok.d.ts";