@localisprimary/esi 2.1.0 → 2.1.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/README.md +5 -4
- package/dist/cache.d.ts +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +7 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types.d.ts +316 -307
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ console.log(alliance.data)
|
|
|
29
29
|
## Options
|
|
30
30
|
|
|
31
31
|
The `EsiClient` constructor requires an options object with the following properties:
|
|
32
|
+
|
|
32
33
|
| Parameter | Description | Type | Default | Required |
|
|
33
34
|
| ------------------- | ------------------------------------------------------ | --------- | ----------- | -------- |
|
|
34
35
|
| `userAgent` | Resolves to `"localisprimary/esi <userAgent>"` | `string` | | Yes |
|
|
@@ -83,7 +84,7 @@ esi.postCharacterMail({
|
|
|
83
84
|
character_id: 91884358,
|
|
84
85
|
|
|
85
86
|
// request body
|
|
86
|
-
|
|
87
|
+
subject: 'Test mail',
|
|
87
88
|
body: 'Hello from the ESI!',
|
|
88
89
|
recipients: [{ recipient_type: 'character', recipient_id: 96135698 }],
|
|
89
90
|
})
|
|
@@ -128,7 +129,7 @@ esi.postCharacterMail({
|
|
|
128
129
|
| [`getCharacterImplants`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdImplants) | Return implants on the active clone of a character |
|
|
129
130
|
| [`getCharacterIndustryJobs`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdIndustryJobs) | List industry jobs placed by a character |
|
|
130
131
|
| [`getCharacterKillmailsRecent`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdKillmailsRecent) | Return a list of a character's kills and losses going back 90 days |
|
|
131
|
-
| [`getCharacterLocation`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLocation) |
|
|
132
|
+
| [`getCharacterLocation`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLocation) | Get the current location of a character, including the station or structure it is docked in. |
|
|
132
133
|
| [`getCharacterLoyaltyPoints`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLoyaltyPoints) | Return a list of loyalty points for all corporations the character has worked for |
|
|
133
134
|
| [`getCharacterMail`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMail) | Return the 50 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards |
|
|
134
135
|
| [`postCharacterMail`](https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdMail) | Create and send a new mail |
|
|
@@ -143,7 +144,7 @@ esi.postCharacterMail({
|
|
|
143
144
|
| [`getCharacterMining`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMining) | Paginated record of all mining done by a character for the past 30 days |
|
|
144
145
|
| [`getCharacterNotifications`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdNotifications) | Return character notifications |
|
|
145
146
|
| [`getCharacterNotificationsContacts`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdNotificationsContacts) | Return notifications about having been added to someone's contact list |
|
|
146
|
-
| [`getCharacterOnline`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOnline) |
|
|
147
|
+
| [`getCharacterOnline`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOnline) | Get whether a character is online, and its login statistics. |
|
|
147
148
|
| [`getCharacterOrders`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOrders) | List open market orders placed by a character |
|
|
148
149
|
| [`getCharacterOrdersHistory`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOrdersHistory) | List cancelled and expired market orders placed by a character up to 90 days in the past. |
|
|
149
150
|
| [`getCharacterPlanet`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdPlanetsPlanetId) | Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met. |
|
|
@@ -152,7 +153,7 @@ esi.postCharacterMail({
|
|
|
152
153
|
| [`getCharacterRoles`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdRoles) | Returns a character's corporation roles |
|
|
153
154
|
| [`postCharactersAffiliation`](https://developers.eveonline.com/api-explorer#/operations/PostCharactersAffiliation) | Bulk lookup of character IDs to corporation, alliance and faction |
|
|
154
155
|
| [`getCharacterSearch`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSearch) | Search for entities that match a given sub-string. |
|
|
155
|
-
| [`getCharacterShip`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdShip) | Get the
|
|
156
|
+
| [`getCharacterShip`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdShip) | Get the ship a character is currently in. |
|
|
156
157
|
| [`getCharacterSkillqueue`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSkillqueue) | List the configured skill queue for the given character. Entries that have their finish time in the past are completed, but aren't updated in the "/skills" route yet. This will happen the next time the character logs in. |
|
|
157
158
|
| [`getCharacterSkills`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSkills) | List all trained skills for the given character. Skills returned by this route can be out-of-date if the character hasn't logged in since one or more skills completed training. Use the /skillqueue route to check for skills that completed training. Entries that are in the past need to be applied on top of this list to get an accurate view of the character's current skills. |
|
|
158
159
|
| [`getCharacterStandings`](https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdStandings) | Return character standings from agents, NPC corporations, and factions |
|
package/dist/cache.d.ts
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
1
|
+
import type * as Types from './types.js';
|
|
2
2
|
export declare class EsiClient {
|
|
3
3
|
private readonly baseUrl;
|
|
4
4
|
private readonly userAgent;
|
|
@@ -245,7 +245,7 @@ export declare class EsiClient {
|
|
|
245
245
|
*/
|
|
246
246
|
getCharacterKillmailsRecent(params: Types.GetCharacterKillmailsRecentParams): Promise<Types.EsiResponse<Types.GetCharacterKillmailsRecentResponse, Types.GetCharacterKillmailsRecentResponseHeaders>>;
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
248
|
+
* Get the current location of a character, including the station or structure it is docked in.
|
|
249
249
|
|
|
250
250
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLocation
|
|
251
251
|
*/
|
|
@@ -335,7 +335,7 @@ export declare class EsiClient {
|
|
|
335
335
|
*/
|
|
336
336
|
getCharacterNotificationsContacts(params: Types.GetCharacterNotificationsContactsParams): Promise<Types.EsiResponse<Types.GetCharacterNotificationsContactsResponse, Types.GetCharacterNotificationsContactsResponseHeaders>>;
|
|
337
337
|
/**
|
|
338
|
-
*
|
|
338
|
+
* Get whether a character is online, and its login statistics.
|
|
339
339
|
|
|
340
340
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOnline
|
|
341
341
|
*/
|
|
@@ -385,7 +385,7 @@ export declare class EsiClient {
|
|
|
385
385
|
*/
|
|
386
386
|
getCharacterSearch(params: Types.GetCharacterSearchParams): Promise<Types.EsiResponse<Types.GetCharacterSearchResponse, Types.GetCharacterSearchResponseHeaders>>;
|
|
387
387
|
/**
|
|
388
|
-
* Get the
|
|
388
|
+
* Get the ship a character is currently in.
|
|
389
389
|
|
|
390
390
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdShip
|
|
391
391
|
*/
|
package/dist/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createCacheEntry, createCacheKey, esiMemoryCache, isFresh, refreshCacheEntry, } from './cache';
|
|
2
|
-
const COMPATIBILITY_DATE = '2026-08-
|
|
1
|
+
import { createCacheEntry, createCacheKey, esiMemoryCache, isFresh, refreshCacheEntry, } from './cache.js';
|
|
2
|
+
const COMPATIBILITY_DATE = '2026-08-31';
|
|
3
3
|
export class EsiClient {
|
|
4
4
|
constructor(options) {
|
|
5
5
|
this.baseUrl = 'https://esi.evetech.net';
|
|
@@ -19,7 +19,8 @@ export class EsiClient {
|
|
|
19
19
|
if (params) {
|
|
20
20
|
Object.entries(params).forEach(([key, value]) => {
|
|
21
21
|
if (value !== undefined) {
|
|
22
|
-
|
|
22
|
+
const values = Array.isArray(value) ? value : [value];
|
|
23
|
+
values.forEach(item => url.searchParams.append(key, String(item)));
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -497,7 +498,7 @@ export class EsiClient {
|
|
|
497
498
|
return this.request('GET', path, queryParams, undefined);
|
|
498
499
|
}
|
|
499
500
|
/**
|
|
500
|
-
*
|
|
501
|
+
* Get the current location of a character, including the station or structure it is docked in.
|
|
501
502
|
|
|
502
503
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLocation
|
|
503
504
|
*/
|
|
@@ -645,7 +646,7 @@ export class EsiClient {
|
|
|
645
646
|
return this.request('GET', path, undefined, undefined);
|
|
646
647
|
}
|
|
647
648
|
/**
|
|
648
|
-
*
|
|
649
|
+
* Get whether a character is online, and its login statistics.
|
|
649
650
|
|
|
650
651
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOnline
|
|
651
652
|
*/
|
|
@@ -725,7 +726,7 @@ export class EsiClient {
|
|
|
725
726
|
return this.request('GET', path, queryParams, undefined);
|
|
726
727
|
}
|
|
727
728
|
/**
|
|
728
|
-
* Get the
|
|
729
|
+
* Get the ship a character is currently in.
|
|
729
730
|
|
|
730
731
|
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdShip
|
|
731
732
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EsiClient } from './client';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { EsiClient } from './client.js';
|
|
2
|
+
export * from './types.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EsiClient } from './client';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { EsiClient } from './client.js';
|
|
2
|
+
export * from './types.js';
|