@localisprimary/esi 1.0.0
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 +256 -0
- package/dist/client.d.ts +1322 -0
- package/dist/client.js +2077 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/types.d.ts +2301 -0
- package/dist/types.js +2 -0
- package/package.json +54 -0
package/dist/client.js
ADDED
|
@@ -0,0 +1,2077 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsiClient = void 0;
|
|
4
|
+
class EsiClient {
|
|
5
|
+
constructor(options = {}) {
|
|
6
|
+
this.baseUrl = 'https://esi.evetech.net';
|
|
7
|
+
this.token = options.token;
|
|
8
|
+
}
|
|
9
|
+
async request(method, path, params, body) {
|
|
10
|
+
const url = new URL(path, this.baseUrl);
|
|
11
|
+
if (params && method === 'GET') {
|
|
12
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
13
|
+
if (value !== undefined) {
|
|
14
|
+
url.searchParams.append(key, String(value));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const headers = {
|
|
19
|
+
'Content-Type': 'application/json',
|
|
20
|
+
};
|
|
21
|
+
if (this.token) {
|
|
22
|
+
headers['Authorization'] = `Bearer ${this.token}`;
|
|
23
|
+
}
|
|
24
|
+
const response = await fetch(url.toString(), {
|
|
25
|
+
method,
|
|
26
|
+
headers,
|
|
27
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
28
|
+
});
|
|
29
|
+
const data = await response.json();
|
|
30
|
+
if (!response.ok) {
|
|
31
|
+
throw {
|
|
32
|
+
error: data.error || 'Request failed',
|
|
33
|
+
status: response.status,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
data,
|
|
38
|
+
status: response.status,
|
|
39
|
+
headers: Object.fromEntries(response.headers.entries()),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* List all active player alliances
|
|
44
|
+
|
|
45
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliances
|
|
46
|
+
*/
|
|
47
|
+
async getAlliances() {
|
|
48
|
+
const path = `/alliances`;
|
|
49
|
+
return this.request('GET', path, undefined, undefined);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Public information about an alliance
|
|
53
|
+
|
|
54
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliancesAllianceId
|
|
55
|
+
*/
|
|
56
|
+
async getAlliance(params) {
|
|
57
|
+
const path = `/alliances/${params.alliance_id}`;
|
|
58
|
+
return this.request('GET', path, undefined, undefined);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Return contacts of an alliance
|
|
62
|
+
|
|
63
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliancesAllianceIdContacts
|
|
64
|
+
*/
|
|
65
|
+
async getAllianceContacts(params) {
|
|
66
|
+
const path = `/alliances/${params.alliance_id}/contacts`;
|
|
67
|
+
const queryParams = { page: params.page };
|
|
68
|
+
return this.request('GET', path, queryParams, undefined);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Return custom labels for an alliance's contacts
|
|
72
|
+
|
|
73
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliancesAllianceIdContactsLabels
|
|
74
|
+
*/
|
|
75
|
+
async getAllianceContactsLabels(params) {
|
|
76
|
+
const path = `/alliances/${params.alliance_id}/contacts/labels`;
|
|
77
|
+
return this.request('GET', path, undefined, undefined);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* List all current member corporations of an alliance
|
|
81
|
+
|
|
82
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliancesAllianceIdCorporations
|
|
83
|
+
*/
|
|
84
|
+
async getAllianceCorporations(params) {
|
|
85
|
+
const path = `/alliances/${params.alliance_id}/corporations`;
|
|
86
|
+
return this.request('GET', path, undefined, undefined);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Get the icon urls for a alliance
|
|
90
|
+
|
|
91
|
+
* This route expires daily at 11:05
|
|
92
|
+
|
|
93
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetAlliancesAllianceIdIcons
|
|
94
|
+
*/
|
|
95
|
+
async getAllianceIcons(params) {
|
|
96
|
+
const path = `/alliances/${params.alliance_id}/icons`;
|
|
97
|
+
return this.request('GET', path, undefined, undefined);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Bulk lookup of character IDs to corporation, alliance and faction
|
|
101
|
+
|
|
102
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersAffiliation
|
|
103
|
+
*/
|
|
104
|
+
async postCharactersAffiliation(params) {
|
|
105
|
+
const path = `/characters/affiliation`;
|
|
106
|
+
const body = params.body;
|
|
107
|
+
return this.request('POST', path, undefined, body);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Public information about a character
|
|
111
|
+
|
|
112
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterId
|
|
113
|
+
*/
|
|
114
|
+
async getCharacter(params) {
|
|
115
|
+
const path = `/characters/${params.character_id}`;
|
|
116
|
+
return this.request('GET', path, undefined, undefined);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate)
|
|
120
|
+
|
|
121
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdAgentsResearch
|
|
122
|
+
*/
|
|
123
|
+
async getCharacterAgentsResearch(params) {
|
|
124
|
+
const path = `/characters/${params.character_id}/agents_research`;
|
|
125
|
+
return this.request('GET', path, undefined, undefined);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Return a list of the characters assets
|
|
129
|
+
|
|
130
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdAssets
|
|
131
|
+
*/
|
|
132
|
+
async getCharacterAssets(params) {
|
|
133
|
+
const path = `/characters/${params.character_id}/assets`;
|
|
134
|
+
const queryParams = { page: params.page };
|
|
135
|
+
return this.request('GET', path, queryParams, undefined);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Return locations for a set of item ids, which you can get from character assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0)
|
|
139
|
+
|
|
140
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdAssetsLocations
|
|
141
|
+
*/
|
|
142
|
+
async postCharacterAssetsLocations(params) {
|
|
143
|
+
const path = `/characters/${params.character_id}/assets/locations`;
|
|
144
|
+
const body = params.body;
|
|
145
|
+
return this.request('POST', path, undefined, body);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Return names for a set of item ids, which you can get from character assets endpoint. Typically used for items that can customize names, like containers or ships.
|
|
149
|
+
|
|
150
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdAssetsNames
|
|
151
|
+
*/
|
|
152
|
+
async postCharacterAssetsNames(params) {
|
|
153
|
+
const path = `/characters/${params.character_id}/assets/names`;
|
|
154
|
+
const body = params.body;
|
|
155
|
+
return this.request('POST', path, undefined, body);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Return attributes of a character
|
|
159
|
+
|
|
160
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdAttributes
|
|
161
|
+
*/
|
|
162
|
+
async getCharacterAttributes(params) {
|
|
163
|
+
const path = `/characters/${params.character_id}/attributes`;
|
|
164
|
+
return this.request('GET', path, undefined, undefined);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Return a list of blueprints the character owns
|
|
168
|
+
|
|
169
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdBlueprints
|
|
170
|
+
*/
|
|
171
|
+
async getCharacterBlueprints(params) {
|
|
172
|
+
const path = `/characters/${params.character_id}/blueprints`;
|
|
173
|
+
const queryParams = { page: params.page };
|
|
174
|
+
return this.request('GET', path, queryParams, undefined);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Get 50 event summaries from the calendar. If no from_event ID is given, the resource will return the next 50 chronological event summaries from now. If a from_event ID is specified, it will return the next 50 chronological event summaries from after that event
|
|
178
|
+
|
|
179
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdCalendar
|
|
180
|
+
*/
|
|
181
|
+
async getCharacterCalendar(params) {
|
|
182
|
+
const path = `/characters/${params.character_id}/calendar`;
|
|
183
|
+
const queryParams = { from_event: params.from_event };
|
|
184
|
+
return this.request('GET', path, queryParams, undefined);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Get all the information for a specific event
|
|
188
|
+
|
|
189
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdCalendarEventId
|
|
190
|
+
*/
|
|
191
|
+
async getCharacterCalendarEventId(params) {
|
|
192
|
+
const path = `/characters/${params.character_id}/calendar/${params.event_id}`;
|
|
193
|
+
return this.request('GET', path, undefined, undefined);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Set your response status to an event
|
|
197
|
+
|
|
198
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutCharactersCharacterIdCalendarEventId
|
|
199
|
+
*/
|
|
200
|
+
async putCharacterCalendarEventId(params) {
|
|
201
|
+
const path = `/characters/${params.character_id}/calendar/${params.event_id}`;
|
|
202
|
+
const body = { response: params.response };
|
|
203
|
+
return this.request('PUT', path, undefined, body);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get all invited attendees for a given event
|
|
207
|
+
|
|
208
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdCalendarEventIdAttendees
|
|
209
|
+
*/
|
|
210
|
+
async getCharacterCalendarEventAttendees(params) {
|
|
211
|
+
const path = `/characters/${params.character_id}/calendar/${params.event_id}/attendees`;
|
|
212
|
+
return this.request('GET', path, undefined, undefined);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* A list of the character's clones
|
|
216
|
+
|
|
217
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdClones
|
|
218
|
+
*/
|
|
219
|
+
async getCharacterClones(params) {
|
|
220
|
+
const path = `/characters/${params.character_id}/clones`;
|
|
221
|
+
return this.request('GET', path, undefined, undefined);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Bulk delete contacts
|
|
225
|
+
|
|
226
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteCharactersCharacterIdContacts
|
|
227
|
+
*/
|
|
228
|
+
async deleteCharacterContacts(params) {
|
|
229
|
+
const path = `/characters/${params.character_id}/contacts`;
|
|
230
|
+
const queryParams = { contact_ids: params.contact_ids };
|
|
231
|
+
return this.request('DELETE', path, queryParams, undefined);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Return contacts of a character
|
|
235
|
+
|
|
236
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdContacts
|
|
237
|
+
*/
|
|
238
|
+
async getCharacterContacts(params) {
|
|
239
|
+
const path = `/characters/${params.character_id}/contacts`;
|
|
240
|
+
const queryParams = { page: params.page };
|
|
241
|
+
return this.request('GET', path, queryParams, undefined);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Bulk add contacts with same settings
|
|
245
|
+
|
|
246
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdContacts
|
|
247
|
+
*/
|
|
248
|
+
async postCharacterContacts(params) {
|
|
249
|
+
const path = `/characters/${params.character_id}/contacts`;
|
|
250
|
+
const queryParams = {
|
|
251
|
+
label_ids: params.label_ids,
|
|
252
|
+
standing: params.standing,
|
|
253
|
+
watched: params.watched,
|
|
254
|
+
};
|
|
255
|
+
const body = params.body;
|
|
256
|
+
return this.request('POST', path, queryParams, body);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Bulk edit contacts with same settings
|
|
260
|
+
|
|
261
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutCharactersCharacterIdContacts
|
|
262
|
+
*/
|
|
263
|
+
async putCharacterContacts(params) {
|
|
264
|
+
const path = `/characters/${params.character_id}/contacts`;
|
|
265
|
+
const queryParams = {
|
|
266
|
+
label_ids: params.label_ids,
|
|
267
|
+
standing: params.standing,
|
|
268
|
+
watched: params.watched,
|
|
269
|
+
};
|
|
270
|
+
const body = params.body;
|
|
271
|
+
return this.request('PUT', path, queryParams, body);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Return custom labels for a character's contacts
|
|
275
|
+
|
|
276
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdContactsLabels
|
|
277
|
+
*/
|
|
278
|
+
async getCharacterContactsLabels(params) {
|
|
279
|
+
const path = `/characters/${params.character_id}/contacts/labels`;
|
|
280
|
+
return this.request('GET', path, undefined, undefined);
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Returns contracts available to a character, only if the character is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
|
|
284
|
+
|
|
285
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdContracts
|
|
286
|
+
*/
|
|
287
|
+
async getCharacterContracts(params) {
|
|
288
|
+
const path = `/characters/${params.character_id}/contracts`;
|
|
289
|
+
const queryParams = { page: params.page };
|
|
290
|
+
return this.request('GET', path, queryParams, undefined);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Lists bids on a particular auction contract
|
|
294
|
+
|
|
295
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdContractsContractIdBids
|
|
296
|
+
*/
|
|
297
|
+
async getCharacterContractBids(params) {
|
|
298
|
+
const path = `/characters/${params.character_id}/contracts/${params.contract_id}/bids`;
|
|
299
|
+
return this.request('GET', path, undefined, undefined);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Lists items of a particular contract
|
|
303
|
+
|
|
304
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdContractsContractIdItems
|
|
305
|
+
*/
|
|
306
|
+
async getCharacterContractItems(params) {
|
|
307
|
+
const path = `/characters/${params.character_id}/contracts/${params.contract_id}/items`;
|
|
308
|
+
return this.request('GET', path, undefined, undefined);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Get a list of all the corporations a character has been a member of
|
|
312
|
+
|
|
313
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdCorporationhistory
|
|
314
|
+
*/
|
|
315
|
+
async getCharacterCorporationhistory(params) {
|
|
316
|
+
const path = `/characters/${params.character_id}/corporationhistory`;
|
|
317
|
+
return this.request('GET', path, undefined, undefined);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost
|
|
321
|
+
|
|
322
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdCspa
|
|
323
|
+
*/
|
|
324
|
+
async postCharacterCspa(params) {
|
|
325
|
+
const path = `/characters/${params.character_id}/cspa`;
|
|
326
|
+
const body = params.body;
|
|
327
|
+
return this.request('POST', path, undefined, body);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Return a character's jump activation and fatigue information
|
|
331
|
+
|
|
332
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdFatigue
|
|
333
|
+
*/
|
|
334
|
+
async getCharacterFatigue(params) {
|
|
335
|
+
const path = `/characters/${params.character_id}/fatigue`;
|
|
336
|
+
return this.request('GET', path, undefined, undefined);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Return fittings of a character
|
|
340
|
+
|
|
341
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdFittings
|
|
342
|
+
*/
|
|
343
|
+
async getCharacterFittings(params) {
|
|
344
|
+
const path = `/characters/${params.character_id}/fittings`;
|
|
345
|
+
return this.request('GET', path, undefined, undefined);
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Save a new fitting for a character
|
|
349
|
+
|
|
350
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdFittings
|
|
351
|
+
*/
|
|
352
|
+
async postCharacterFittings(params) {
|
|
353
|
+
const path = `/characters/${params.character_id}/fittings`;
|
|
354
|
+
const body = {
|
|
355
|
+
description: params.description,
|
|
356
|
+
items: params.items,
|
|
357
|
+
name: params.name,
|
|
358
|
+
ship_type_id: params.ship_type_id,
|
|
359
|
+
};
|
|
360
|
+
return this.request('POST', path, undefined, body);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Delete a fitting from a character
|
|
364
|
+
|
|
365
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteCharactersCharacterIdFittingsFittingId
|
|
366
|
+
*/
|
|
367
|
+
async deleteCharacterFitting(params) {
|
|
368
|
+
const path = `/characters/${params.character_id}/fittings/${params.fitting_id}`;
|
|
369
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Return the fleet ID the character is in, if any.
|
|
373
|
+
|
|
374
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdFleet
|
|
375
|
+
*/
|
|
376
|
+
async getCharacterFleet(params) {
|
|
377
|
+
const path = `/characters/${params.character_id}/fleet`;
|
|
378
|
+
return this.request('GET', path, undefined, undefined);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Statistical overview of a character involved in faction warfare
|
|
382
|
+
|
|
383
|
+
* This route expires daily at 11:05
|
|
384
|
+
|
|
385
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdFwStats
|
|
386
|
+
*/
|
|
387
|
+
async getCharacterFwStats(params) {
|
|
388
|
+
const path = `/characters/${params.character_id}/fw/stats`;
|
|
389
|
+
return this.request('GET', path, undefined, undefined);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Return implants on the active clone of a character
|
|
393
|
+
|
|
394
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdImplants
|
|
395
|
+
*/
|
|
396
|
+
async getCharacterImplants(params) {
|
|
397
|
+
const path = `/characters/${params.character_id}/implants`;
|
|
398
|
+
return this.request('GET', path, undefined, undefined);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* List industry jobs placed by a character
|
|
402
|
+
|
|
403
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdIndustryJobs
|
|
404
|
+
*/
|
|
405
|
+
async getCharacterIndustryJobs(params) {
|
|
406
|
+
const path = `/characters/${params.character_id}/industry/jobs`;
|
|
407
|
+
const queryParams = { include_completed: params.include_completed };
|
|
408
|
+
return this.request('GET', path, queryParams, undefined);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Return a list of a character's kills and losses going back 90 days
|
|
412
|
+
|
|
413
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdKillmailsRecent
|
|
414
|
+
*/
|
|
415
|
+
async getCharacterKillmailsRecent(params) {
|
|
416
|
+
const path = `/characters/${params.character_id}/killmails/recent`;
|
|
417
|
+
const queryParams = { page: params.page };
|
|
418
|
+
return this.request('GET', path, queryParams, undefined);
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable
|
|
422
|
+
|
|
423
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLocation
|
|
424
|
+
*/
|
|
425
|
+
async getCharacterLocation(params) {
|
|
426
|
+
const path = `/characters/${params.character_id}/location`;
|
|
427
|
+
return this.request('GET', path, undefined, undefined);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Return a list of loyalty points for all corporations the character has worked for
|
|
431
|
+
|
|
432
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdLoyaltyPoints
|
|
433
|
+
*/
|
|
434
|
+
async getCharacterLoyaltyPoints(params) {
|
|
435
|
+
const path = `/characters/${params.character_id}/loyalty/points`;
|
|
436
|
+
return this.request('GET', path, undefined, undefined);
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* 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
|
|
440
|
+
|
|
441
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMail
|
|
442
|
+
*/
|
|
443
|
+
async getCharacterMail(params) {
|
|
444
|
+
const path = `/characters/${params.character_id}/mail`;
|
|
445
|
+
const queryParams = {
|
|
446
|
+
labels: params.labels,
|
|
447
|
+
last_mail_id: params.last_mail_id,
|
|
448
|
+
};
|
|
449
|
+
return this.request('GET', path, queryParams, undefined);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Create and send a new mail
|
|
453
|
+
|
|
454
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdMail
|
|
455
|
+
*/
|
|
456
|
+
async postCharacterMail(params) {
|
|
457
|
+
const path = `/characters/${params.character_id}/mail`;
|
|
458
|
+
const body = {
|
|
459
|
+
approved_cost: params.approved_cost,
|
|
460
|
+
body: params.body,
|
|
461
|
+
recipients: params.recipients,
|
|
462
|
+
subject: params.subject,
|
|
463
|
+
};
|
|
464
|
+
return this.request('POST', path, undefined, body);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Return a list of the users mail labels, unread counts for each label and a total unread count.
|
|
468
|
+
|
|
469
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMailLabels
|
|
470
|
+
*/
|
|
471
|
+
async getCharacterMailLabels(params) {
|
|
472
|
+
const path = `/characters/${params.character_id}/mail/labels`;
|
|
473
|
+
return this.request('GET', path, undefined, undefined);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Create a mail label
|
|
477
|
+
|
|
478
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCharactersCharacterIdMailLabels
|
|
479
|
+
*/
|
|
480
|
+
async postCharacterMailLabels(params) {
|
|
481
|
+
const path = `/characters/${params.character_id}/mail/labels`;
|
|
482
|
+
const body = { color: params.color, name: params.name };
|
|
483
|
+
return this.request('POST', path, undefined, body);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Delete a mail label
|
|
487
|
+
|
|
488
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteCharactersCharacterIdMailLabelsLabelId
|
|
489
|
+
*/
|
|
490
|
+
async deleteCharacterMailLabel(params) {
|
|
491
|
+
const path = `/characters/${params.character_id}/mail/labels/${params.label_id}`;
|
|
492
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Return all mailing lists that the character is subscribed to
|
|
496
|
+
|
|
497
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMailLists
|
|
498
|
+
*/
|
|
499
|
+
async getCharacterMailLists(params) {
|
|
500
|
+
const path = `/characters/${params.character_id}/mail/lists`;
|
|
501
|
+
return this.request('GET', path, undefined, undefined);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Delete a mail
|
|
505
|
+
|
|
506
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteCharactersCharacterIdMailMailId
|
|
507
|
+
*/
|
|
508
|
+
async deleteCharacterMailMailId(params) {
|
|
509
|
+
const path = `/characters/${params.character_id}/mail/${params.mail_id}`;
|
|
510
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Return the contents of an EVE mail
|
|
514
|
+
|
|
515
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMailMailId
|
|
516
|
+
*/
|
|
517
|
+
async getCharacterMailMailId(params) {
|
|
518
|
+
const path = `/characters/${params.character_id}/mail/${params.mail_id}`;
|
|
519
|
+
return this.request('GET', path, undefined, undefined);
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Update metadata about a mail
|
|
523
|
+
|
|
524
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutCharactersCharacterIdMailMailId
|
|
525
|
+
*/
|
|
526
|
+
async putCharacterMailMailId(params) {
|
|
527
|
+
const path = `/characters/${params.character_id}/mail/${params.mail_id}`;
|
|
528
|
+
const body = { labels: params.labels, read: params.read };
|
|
529
|
+
return this.request('PUT', path, undefined, body);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Return a list of medals the character has
|
|
533
|
+
|
|
534
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMedals
|
|
535
|
+
*/
|
|
536
|
+
async getCharacterMedals(params) {
|
|
537
|
+
const path = `/characters/${params.character_id}/medals`;
|
|
538
|
+
return this.request('GET', path, undefined, undefined);
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Paginated record of all mining done by a character for the past 30 days
|
|
542
|
+
|
|
543
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdMining
|
|
544
|
+
*/
|
|
545
|
+
async getCharacterMining(params) {
|
|
546
|
+
const path = `/characters/${params.character_id}/mining`;
|
|
547
|
+
const queryParams = { page: params.page };
|
|
548
|
+
return this.request('GET', path, queryParams, undefined);
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Return character notifications
|
|
552
|
+
|
|
553
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdNotifications
|
|
554
|
+
*/
|
|
555
|
+
async getCharacterNotifications(params) {
|
|
556
|
+
const path = `/characters/${params.character_id}/notifications`;
|
|
557
|
+
return this.request('GET', path, undefined, undefined);
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Return notifications about having been added to someone's contact list
|
|
561
|
+
|
|
562
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdNotificationsContacts
|
|
563
|
+
*/
|
|
564
|
+
async getCharacterNotificationsContacts(params) {
|
|
565
|
+
const path = `/characters/${params.character_id}/notifications/contacts`;
|
|
566
|
+
return this.request('GET', path, undefined, undefined);
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Checks if the character is currently online
|
|
570
|
+
|
|
571
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOnline
|
|
572
|
+
*/
|
|
573
|
+
async getCharacterOnline(params) {
|
|
574
|
+
const path = `/characters/${params.character_id}/online`;
|
|
575
|
+
return this.request('GET', path, undefined, undefined);
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* List open market orders placed by a character
|
|
579
|
+
|
|
580
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOrders
|
|
581
|
+
*/
|
|
582
|
+
async getCharacterOrders(params) {
|
|
583
|
+
const path = `/characters/${params.character_id}/orders`;
|
|
584
|
+
return this.request('GET', path, undefined, undefined);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* List cancelled and expired market orders placed by a character up to 90 days in the past.
|
|
588
|
+
|
|
589
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdOrdersHistory
|
|
590
|
+
*/
|
|
591
|
+
async getCharacterOrdersHistory(params) {
|
|
592
|
+
const path = `/characters/${params.character_id}/orders/history`;
|
|
593
|
+
const queryParams = { page: params.page };
|
|
594
|
+
return this.request('GET', path, queryParams, undefined);
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Returns a list of all planetary colonies owned by a character.
|
|
598
|
+
|
|
599
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdPlanets
|
|
600
|
+
*/
|
|
601
|
+
async getCharacterPlanets(params) {
|
|
602
|
+
const path = `/characters/${params.character_id}/planets`;
|
|
603
|
+
return this.request('GET', path, undefined, undefined);
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* 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.
|
|
607
|
+
|
|
608
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdPlanetsPlanetId
|
|
609
|
+
*/
|
|
610
|
+
async getCharacterPlanet(params) {
|
|
611
|
+
const path = `/characters/${params.character_id}/planets/${params.planet_id}`;
|
|
612
|
+
return this.request('GET', path, undefined, undefined);
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Get portrait urls for a character
|
|
616
|
+
|
|
617
|
+
* This route expires daily at 11:05
|
|
618
|
+
|
|
619
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdPortrait
|
|
620
|
+
*/
|
|
621
|
+
async getCharacterPortrait(params) {
|
|
622
|
+
const path = `/characters/${params.character_id}/portrait`;
|
|
623
|
+
return this.request('GET', path, undefined, undefined);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Returns a character's corporation roles
|
|
627
|
+
|
|
628
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdRoles
|
|
629
|
+
*/
|
|
630
|
+
async getCharacterRoles(params) {
|
|
631
|
+
const path = `/characters/${params.character_id}/roles`;
|
|
632
|
+
return this.request('GET', path, undefined, undefined);
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Search for entities that match a given sub-string.
|
|
636
|
+
|
|
637
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSearch
|
|
638
|
+
*/
|
|
639
|
+
async getCharacterSearch(params) {
|
|
640
|
+
const path = `/characters/${params.character_id}/search`;
|
|
641
|
+
const queryParams = {
|
|
642
|
+
categories: params.categories,
|
|
643
|
+
search: params.search,
|
|
644
|
+
strict: params.strict,
|
|
645
|
+
};
|
|
646
|
+
return this.request('GET', path, queryParams, undefined);
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Get the current ship type, name and id
|
|
650
|
+
|
|
651
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdShip
|
|
652
|
+
*/
|
|
653
|
+
async getCharacterShip(params) {
|
|
654
|
+
const path = `/characters/${params.character_id}/ship`;
|
|
655
|
+
return this.request('GET', path, undefined, undefined);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* List the configured skill queue for the given character
|
|
659
|
+
|
|
660
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSkillqueue
|
|
661
|
+
*/
|
|
662
|
+
async getCharacterSkillqueue(params) {
|
|
663
|
+
const path = `/characters/${params.character_id}/skillqueue`;
|
|
664
|
+
return this.request('GET', path, undefined, undefined);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* List all trained skills for the given character
|
|
668
|
+
|
|
669
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdSkills
|
|
670
|
+
*/
|
|
671
|
+
async getCharacterSkills(params) {
|
|
672
|
+
const path = `/characters/${params.character_id}/skills`;
|
|
673
|
+
return this.request('GET', path, undefined, undefined);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Return character standings from agents, NPC corporations, and factions
|
|
677
|
+
|
|
678
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdStandings
|
|
679
|
+
*/
|
|
680
|
+
async getCharacterStandings(params) {
|
|
681
|
+
const path = `/characters/${params.character_id}/standings`;
|
|
682
|
+
return this.request('GET', path, undefined, undefined);
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* Returns a character's titles
|
|
686
|
+
|
|
687
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdTitles
|
|
688
|
+
*/
|
|
689
|
+
async getCharacterTitles(params) {
|
|
690
|
+
const path = `/characters/${params.character_id}/titles`;
|
|
691
|
+
return this.request('GET', path, undefined, undefined);
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Returns a character's wallet balance
|
|
695
|
+
|
|
696
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdWallet
|
|
697
|
+
*/
|
|
698
|
+
async getCharacterWallet(params) {
|
|
699
|
+
const path = `/characters/${params.character_id}/wallet`;
|
|
700
|
+
return this.request('GET', path, undefined, undefined);
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Retrieve the given character's wallet journal going 30 days back
|
|
704
|
+
|
|
705
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdWalletJournal
|
|
706
|
+
*/
|
|
707
|
+
async getCharacterWalletJournal(params) {
|
|
708
|
+
const path = `/characters/${params.character_id}/wallet/journal`;
|
|
709
|
+
const queryParams = { page: params.page };
|
|
710
|
+
return this.request('GET', path, queryParams, undefined);
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Get wallet transactions of a character
|
|
714
|
+
|
|
715
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCharactersCharacterIdWalletTransactions
|
|
716
|
+
*/
|
|
717
|
+
async getCharacterWalletTransactions(params) {
|
|
718
|
+
const path = `/characters/${params.character_id}/wallet/transactions`;
|
|
719
|
+
const queryParams = { from_id: params.from_id };
|
|
720
|
+
return this.request('GET', path, queryParams, undefined);
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Lists bids on a public auction contract
|
|
724
|
+
|
|
725
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetContractsPublicBidsContractId
|
|
726
|
+
*/
|
|
727
|
+
async getContractsPublicBids(params) {
|
|
728
|
+
const path = `/contracts/public/bids/${params.contract_id}`;
|
|
729
|
+
const queryParams = { page: params.page };
|
|
730
|
+
return this.request('GET', path, queryParams, undefined);
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Lists items of a public contract
|
|
734
|
+
|
|
735
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetContractsPublicItemsContractId
|
|
736
|
+
*/
|
|
737
|
+
async getContractsPublicItems(params) {
|
|
738
|
+
const path = `/contracts/public/items/${params.contract_id}`;
|
|
739
|
+
const queryParams = { page: params.page };
|
|
740
|
+
return this.request('GET', path, queryParams, undefined);
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Returns a paginated list of all public contracts in the given region
|
|
744
|
+
|
|
745
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetContractsPublicRegionId
|
|
746
|
+
*/
|
|
747
|
+
async getContractsPublicRegionId(params) {
|
|
748
|
+
const path = `/contracts/public/${params.region_id}`;
|
|
749
|
+
const queryParams = { page: params.page };
|
|
750
|
+
return this.request('GET', path, queryParams, undefined);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Extraction timers for all moon chunks being extracted by refineries belonging to a corporation.
|
|
754
|
+
|
|
755
|
+
* Requires one of the following EVE corporation role(s): Station_Manager
|
|
756
|
+
|
|
757
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationCorporationIdMiningExtractions
|
|
758
|
+
*/
|
|
759
|
+
async getCorporationCorporationMiningExtractions(params) {
|
|
760
|
+
const path = `/corporation/${params.corporation_id}/mining/extractions`;
|
|
761
|
+
const queryParams = { page: params.page };
|
|
762
|
+
return this.request('GET', path, queryParams, undefined);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Paginated list of all entities capable of observing and recording mining for a corporation
|
|
766
|
+
|
|
767
|
+
* Requires one of the following EVE corporation role(s): Accountant
|
|
768
|
+
|
|
769
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationCorporationIdMiningObservers
|
|
770
|
+
*/
|
|
771
|
+
async getCorporationCorporationMiningObservers(params) {
|
|
772
|
+
const path = `/corporation/${params.corporation_id}/mining/observers`;
|
|
773
|
+
const queryParams = { page: params.page };
|
|
774
|
+
return this.request('GET', path, queryParams, undefined);
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Paginated record of all mining seen by an observer
|
|
778
|
+
|
|
779
|
+
* Requires one of the following EVE corporation role(s): Accountant
|
|
780
|
+
|
|
781
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationCorporationIdMiningObserversObserverId
|
|
782
|
+
*/
|
|
783
|
+
async getCorporationCorporationMiningObserver(params) {
|
|
784
|
+
const path = `/corporation/${params.corporation_id}/mining/observers/${params.observer_id}`;
|
|
785
|
+
const queryParams = { page: params.page };
|
|
786
|
+
return this.request('GET', path, queryParams, undefined);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Get a list of npc corporations
|
|
790
|
+
|
|
791
|
+
* This route expires daily at 11:05
|
|
792
|
+
|
|
793
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsNpccorps
|
|
794
|
+
*/
|
|
795
|
+
async getCorporationsNpccorps() {
|
|
796
|
+
const path = `/corporations/npccorps`;
|
|
797
|
+
return this.request('GET', path, undefined, undefined);
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Public information about a corporation
|
|
801
|
+
|
|
802
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationId
|
|
803
|
+
*/
|
|
804
|
+
async getCorporation(params) {
|
|
805
|
+
const path = `/corporations/${params.corporation_id}`;
|
|
806
|
+
return this.request('GET', path, undefined, undefined);
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Get a list of all the alliances a corporation has been a member of
|
|
810
|
+
|
|
811
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdAlliancehistory
|
|
812
|
+
*/
|
|
813
|
+
async getCorporationAlliancehistory(params) {
|
|
814
|
+
const path = `/corporations/${params.corporation_id}/alliancehistory`;
|
|
815
|
+
return this.request('GET', path, undefined, undefined);
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Return a list of the corporation assets
|
|
819
|
+
|
|
820
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
821
|
+
|
|
822
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdAssets
|
|
823
|
+
*/
|
|
824
|
+
async getCorporationAssets(params) {
|
|
825
|
+
const path = `/corporations/${params.corporation_id}/assets`;
|
|
826
|
+
const queryParams = { page: params.page };
|
|
827
|
+
return this.request('GET', path, queryParams, undefined);
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Return locations for a set of item ids, which you can get from corporation assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0)
|
|
831
|
+
|
|
832
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
833
|
+
|
|
834
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCorporationsCorporationIdAssetsLocations
|
|
835
|
+
*/
|
|
836
|
+
async postCorporationAssetsLocations(params) {
|
|
837
|
+
const path = `/corporations/${params.corporation_id}/assets/locations`;
|
|
838
|
+
const body = params.body;
|
|
839
|
+
return this.request('POST', path, undefined, body);
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships
|
|
843
|
+
|
|
844
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
845
|
+
|
|
846
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostCorporationsCorporationIdAssetsNames
|
|
847
|
+
*/
|
|
848
|
+
async postCorporationAssetsNames(params) {
|
|
849
|
+
const path = `/corporations/${params.corporation_id}/assets/names`;
|
|
850
|
+
const body = params.body;
|
|
851
|
+
return this.request('POST', path, undefined, body);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Returns a list of blueprints the corporation owns
|
|
855
|
+
|
|
856
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
857
|
+
|
|
858
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdBlueprints
|
|
859
|
+
*/
|
|
860
|
+
async getCorporationBlueprints(params) {
|
|
861
|
+
const path = `/corporations/${params.corporation_id}/blueprints`;
|
|
862
|
+
const queryParams = { page: params.page };
|
|
863
|
+
return this.request('GET', path, queryParams, undefined);
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Return contacts of a corporation
|
|
867
|
+
|
|
868
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContacts
|
|
869
|
+
*/
|
|
870
|
+
async getCorporationContacts(params) {
|
|
871
|
+
const path = `/corporations/${params.corporation_id}/contacts`;
|
|
872
|
+
const queryParams = { page: params.page };
|
|
873
|
+
return this.request('GET', path, queryParams, undefined);
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Return custom labels for a corporation's contacts
|
|
877
|
+
|
|
878
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContactsLabels
|
|
879
|
+
*/
|
|
880
|
+
async getCorporationContactsLabels(params) {
|
|
881
|
+
const path = `/corporations/${params.corporation_id}/contacts/labels`;
|
|
882
|
+
return this.request('GET', path, undefined, undefined);
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Returns logs recorded in the past seven days from all audit log secure containers (ALSC) owned by a given corporation
|
|
886
|
+
|
|
887
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
888
|
+
|
|
889
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContainersLogs
|
|
890
|
+
*/
|
|
891
|
+
async getCorporationContainersLogs(params) {
|
|
892
|
+
const path = `/corporations/${params.corporation_id}/containers/logs`;
|
|
893
|
+
const queryParams = { page: params.page };
|
|
894
|
+
return this.request('GET', path, queryParams, undefined);
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Returns contracts available to a corporation, only if the corporation is issuer, acceptor or assignee. Only returns contracts no older than 30 days, or if the status is "in_progress".
|
|
898
|
+
|
|
899
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContracts
|
|
900
|
+
*/
|
|
901
|
+
async getCorporationContracts(params) {
|
|
902
|
+
const path = `/corporations/${params.corporation_id}/contracts`;
|
|
903
|
+
const queryParams = { page: params.page };
|
|
904
|
+
return this.request('GET', path, queryParams, undefined);
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Lists bids on a particular auction contract
|
|
908
|
+
|
|
909
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContractsContractIdBids
|
|
910
|
+
*/
|
|
911
|
+
async getCorporationContractBids(params) {
|
|
912
|
+
const path = `/corporations/${params.corporation_id}/contracts/${params.contract_id}/bids`;
|
|
913
|
+
const queryParams = { page: params.page };
|
|
914
|
+
return this.request('GET', path, queryParams, undefined);
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Lists items of a particular contract
|
|
918
|
+
|
|
919
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdContractsContractIdItems
|
|
920
|
+
*/
|
|
921
|
+
async getCorporationContractItems(params) {
|
|
922
|
+
const path = `/corporations/${params.corporation_id}/contracts/${params.contract_id}/items`;
|
|
923
|
+
return this.request('GET', path, undefined, undefined);
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* List customs offices owned by a corporation
|
|
927
|
+
|
|
928
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
929
|
+
|
|
930
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdCustomsOffices
|
|
931
|
+
*/
|
|
932
|
+
async getCorporationCustomsOffices(params) {
|
|
933
|
+
const path = `/corporations/${params.corporation_id}/customs_offices`;
|
|
934
|
+
const queryParams = { page: params.page };
|
|
935
|
+
return this.request('GET', path, queryParams, undefined);
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Return corporation hangar and wallet division names, only show if a division is not using the default name
|
|
939
|
+
|
|
940
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
941
|
+
|
|
942
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdDivisions
|
|
943
|
+
*/
|
|
944
|
+
async getCorporationDivisions(params) {
|
|
945
|
+
const path = `/corporations/${params.corporation_id}/divisions`;
|
|
946
|
+
return this.request('GET', path, undefined, undefined);
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Return a corporation's facilities
|
|
950
|
+
|
|
951
|
+
* Requires one of the following EVE corporation role(s): Factory_Manager
|
|
952
|
+
|
|
953
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdFacilities
|
|
954
|
+
*/
|
|
955
|
+
async getCorporationFacilities(params) {
|
|
956
|
+
const path = `/corporations/${params.corporation_id}/facilities`;
|
|
957
|
+
return this.request('GET', path, undefined, undefined);
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Statistics about a corporation involved in faction warfare
|
|
961
|
+
|
|
962
|
+
* This route expires daily at 11:05
|
|
963
|
+
|
|
964
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdFwStats
|
|
965
|
+
*/
|
|
966
|
+
async getCorporationFwStats(params) {
|
|
967
|
+
const path = `/corporations/${params.corporation_id}/fw/stats`;
|
|
968
|
+
return this.request('GET', path, undefined, undefined);
|
|
969
|
+
}
|
|
970
|
+
/**
|
|
971
|
+
* Get the icon urls for a corporation
|
|
972
|
+
|
|
973
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdIcons
|
|
974
|
+
*/
|
|
975
|
+
async getCorporationIcons(params) {
|
|
976
|
+
const path = `/corporations/${params.corporation_id}/icons`;
|
|
977
|
+
return this.request('GET', path, undefined, undefined);
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* List industry jobs run by a corporation
|
|
981
|
+
|
|
982
|
+
* Requires one of the following EVE corporation role(s): Factory_Manager
|
|
983
|
+
|
|
984
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdIndustryJobs
|
|
985
|
+
*/
|
|
986
|
+
async getCorporationIndustryJobs(params) {
|
|
987
|
+
const path = `/corporations/${params.corporation_id}/industry/jobs`;
|
|
988
|
+
const queryParams = {
|
|
989
|
+
include_completed: params.include_completed,
|
|
990
|
+
page: params.page,
|
|
991
|
+
};
|
|
992
|
+
return this.request('GET', path, queryParams, undefined);
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Get a list of a corporation's kills and losses going back 90 days
|
|
996
|
+
|
|
997
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
998
|
+
|
|
999
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdKillmailsRecent
|
|
1000
|
+
*/
|
|
1001
|
+
async getCorporationKillmailsRecent(params) {
|
|
1002
|
+
const path = `/corporations/${params.corporation_id}/killmails/recent`;
|
|
1003
|
+
const queryParams = { page: params.page };
|
|
1004
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Returns a corporation's medals
|
|
1008
|
+
|
|
1009
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMedals
|
|
1010
|
+
*/
|
|
1011
|
+
async getCorporationMedals(params) {
|
|
1012
|
+
const path = `/corporations/${params.corporation_id}/medals`;
|
|
1013
|
+
const queryParams = { page: params.page };
|
|
1014
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Returns medals issued by a corporation
|
|
1018
|
+
|
|
1019
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1020
|
+
|
|
1021
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMedalsIssued
|
|
1022
|
+
*/
|
|
1023
|
+
async getCorporationMedalsIssued(params) {
|
|
1024
|
+
const path = `/corporations/${params.corporation_id}/medals/issued`;
|
|
1025
|
+
const queryParams = { page: params.page };
|
|
1026
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Return the current member list of a corporation, the token's character need to be a member of the corporation.
|
|
1030
|
+
|
|
1031
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMembers
|
|
1032
|
+
*/
|
|
1033
|
+
async getCorporationMembers(params) {
|
|
1034
|
+
const path = `/corporations/${params.corporation_id}/members`;
|
|
1035
|
+
return this.request('GET', path, undefined, undefined);
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Return a corporation's member limit, not including CEO himself
|
|
1039
|
+
|
|
1040
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1041
|
+
|
|
1042
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMembersLimit
|
|
1043
|
+
*/
|
|
1044
|
+
async getCorporationMembersLimit(params) {
|
|
1045
|
+
const path = `/corporations/${params.corporation_id}/members/limit`;
|
|
1046
|
+
return this.request('GET', path, undefined, undefined);
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Returns a corporation's members' titles
|
|
1050
|
+
|
|
1051
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1052
|
+
|
|
1053
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMembersTitles
|
|
1054
|
+
*/
|
|
1055
|
+
async getCorporationMembersTitles(params) {
|
|
1056
|
+
const path = `/corporations/${params.corporation_id}/members/titles`;
|
|
1057
|
+
return this.request('GET', path, undefined, undefined);
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Returns additional information about a corporation's members which helps tracking their activities
|
|
1061
|
+
|
|
1062
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1063
|
+
|
|
1064
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdMembertracking
|
|
1065
|
+
*/
|
|
1066
|
+
async getCorporationMembertracking(params) {
|
|
1067
|
+
const path = `/corporations/${params.corporation_id}/membertracking`;
|
|
1068
|
+
return this.request('GET', path, undefined, undefined);
|
|
1069
|
+
}
|
|
1070
|
+
/**
|
|
1071
|
+
* List open market orders placed on behalf of a corporation
|
|
1072
|
+
|
|
1073
|
+
* Requires one of the following EVE corporation role(s): Accountant, Trader
|
|
1074
|
+
|
|
1075
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdOrders
|
|
1076
|
+
*/
|
|
1077
|
+
async getCorporationOrders(params) {
|
|
1078
|
+
const path = `/corporations/${params.corporation_id}/orders`;
|
|
1079
|
+
const queryParams = { page: params.page };
|
|
1080
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
|
|
1084
|
+
|
|
1085
|
+
* Requires one of the following EVE corporation role(s): Accountant, Trader
|
|
1086
|
+
|
|
1087
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdOrdersHistory
|
|
1088
|
+
*/
|
|
1089
|
+
async getCorporationOrdersHistory(params) {
|
|
1090
|
+
const path = `/corporations/${params.corporation_id}/orders/history`;
|
|
1091
|
+
const queryParams = { page: params.page };
|
|
1092
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Return the roles of all members if the character has the personnel manager role or any grantable role.
|
|
1096
|
+
|
|
1097
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdRoles
|
|
1098
|
+
*/
|
|
1099
|
+
async getCorporationRoles(params) {
|
|
1100
|
+
const path = `/corporations/${params.corporation_id}/roles`;
|
|
1101
|
+
return this.request('GET', path, undefined, undefined);
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Return how roles have changed for a coporation's members, up to a month
|
|
1105
|
+
|
|
1106
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1107
|
+
|
|
1108
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdRolesHistory
|
|
1109
|
+
*/
|
|
1110
|
+
async getCorporationRolesHistory(params) {
|
|
1111
|
+
const path = `/corporations/${params.corporation_id}/roles/history`;
|
|
1112
|
+
const queryParams = { page: params.page };
|
|
1113
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Return the current shareholders of a corporation.
|
|
1117
|
+
|
|
1118
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1119
|
+
|
|
1120
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdShareholders
|
|
1121
|
+
*/
|
|
1122
|
+
async getCorporationShareholders(params) {
|
|
1123
|
+
const path = `/corporations/${params.corporation_id}/shareholders`;
|
|
1124
|
+
const queryParams = { page: params.page };
|
|
1125
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Return corporation standings from agents, NPC corporations, and factions
|
|
1129
|
+
|
|
1130
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdStandings
|
|
1131
|
+
*/
|
|
1132
|
+
async getCorporationStandings(params) {
|
|
1133
|
+
const path = `/corporations/${params.corporation_id}/standings`;
|
|
1134
|
+
const queryParams = { page: params.page };
|
|
1135
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Returns list of corporation starbases (POSes)
|
|
1139
|
+
|
|
1140
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1141
|
+
|
|
1142
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdStarbases
|
|
1143
|
+
*/
|
|
1144
|
+
async getCorporationStarbases(params) {
|
|
1145
|
+
const path = `/corporations/${params.corporation_id}/starbases`;
|
|
1146
|
+
const queryParams = { page: params.page };
|
|
1147
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Returns various settings and fuels of a starbase (POS)
|
|
1151
|
+
|
|
1152
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1153
|
+
|
|
1154
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdStarbasesStarbaseId
|
|
1155
|
+
*/
|
|
1156
|
+
async getCorporationStarbase(params) {
|
|
1157
|
+
const path = `/corporations/${params.corporation_id}/starbases/${params.starbase_id}`;
|
|
1158
|
+
const queryParams = { system_id: params.system_id };
|
|
1159
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Get a list of corporation structures. This route's version includes the changes to structures detailed in this blog: https://www.eveonline.com/article/upwell-2.0-structures-changes-coming-on-february-13th
|
|
1163
|
+
|
|
1164
|
+
* Requires one of the following EVE corporation role(s): Station_Manager
|
|
1165
|
+
|
|
1166
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdStructures
|
|
1167
|
+
*/
|
|
1168
|
+
async getCorporationStructures(params) {
|
|
1169
|
+
const path = `/corporations/${params.corporation_id}/structures`;
|
|
1170
|
+
const queryParams = { page: params.page };
|
|
1171
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Returns a corporation's titles
|
|
1175
|
+
|
|
1176
|
+
* Requires one of the following EVE corporation role(s): Director
|
|
1177
|
+
|
|
1178
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdTitles
|
|
1179
|
+
*/
|
|
1180
|
+
async getCorporationTitles(params) {
|
|
1181
|
+
const path = `/corporations/${params.corporation_id}/titles`;
|
|
1182
|
+
return this.request('GET', path, undefined, undefined);
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Get a corporation's wallets
|
|
1186
|
+
|
|
1187
|
+
* Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant
|
|
1188
|
+
|
|
1189
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdWallets
|
|
1190
|
+
*/
|
|
1191
|
+
async getCorporationWallets(params) {
|
|
1192
|
+
const path = `/corporations/${params.corporation_id}/wallets`;
|
|
1193
|
+
return this.request('GET', path, undefined, undefined);
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Retrieve the given corporation's wallet journal for the given division going 30 days back
|
|
1197
|
+
|
|
1198
|
+
* Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant
|
|
1199
|
+
|
|
1200
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdWalletsDivisionJournal
|
|
1201
|
+
*/
|
|
1202
|
+
async getCorporationWalletsDivisionJournal(params) {
|
|
1203
|
+
const path = `/corporations/${params.corporation_id}/wallets/${params.division}/journal`;
|
|
1204
|
+
const queryParams = { page: params.page };
|
|
1205
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Get wallet transactions of a corporation
|
|
1209
|
+
|
|
1210
|
+
* Requires one of the following EVE corporation role(s): Accountant, Junior_Accountant
|
|
1211
|
+
|
|
1212
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetCorporationsCorporationIdWalletsDivisionTransactions
|
|
1213
|
+
*/
|
|
1214
|
+
async getCorporationWalletsDivisionTransactions(params) {
|
|
1215
|
+
const path = `/corporations/${params.corporation_id}/wallets/${params.division}/transactions`;
|
|
1216
|
+
const queryParams = { from_id: params.from_id };
|
|
1217
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Get a list of dogma attribute ids
|
|
1221
|
+
|
|
1222
|
+
* This route expires daily at 11:05
|
|
1223
|
+
|
|
1224
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetDogmaAttributes
|
|
1225
|
+
*/
|
|
1226
|
+
async getDogmaAttributes() {
|
|
1227
|
+
const path = `/dogma/attributes`;
|
|
1228
|
+
return this.request('GET', path, undefined, undefined);
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Get information on a dogma attribute
|
|
1232
|
+
|
|
1233
|
+
* This route expires daily at 11:05
|
|
1234
|
+
|
|
1235
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetDogmaAttributesAttributeId
|
|
1236
|
+
*/
|
|
1237
|
+
async getDogmaAttribute(params) {
|
|
1238
|
+
const path = `/dogma/attributes/${params.attribute_id}`;
|
|
1239
|
+
return this.request('GET', path, undefined, undefined);
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Returns info about a dynamic item resulting from mutation with a mutaplasmid.
|
|
1243
|
+
|
|
1244
|
+
* This route expires daily at 11:05
|
|
1245
|
+
|
|
1246
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetDogmaDynamicItemsTypeIdItemId
|
|
1247
|
+
*/
|
|
1248
|
+
async getDogmaDynamicTypeItemId(params) {
|
|
1249
|
+
const path = `/dogma/dynamic/items/${params.type_id}/${params.item_id}`;
|
|
1250
|
+
return this.request('GET', path, undefined, undefined);
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* Get a list of dogma effect ids
|
|
1254
|
+
|
|
1255
|
+
* This route expires daily at 11:05
|
|
1256
|
+
|
|
1257
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetDogmaEffects
|
|
1258
|
+
*/
|
|
1259
|
+
async getDogmaEffects() {
|
|
1260
|
+
const path = `/dogma/effects`;
|
|
1261
|
+
return this.request('GET', path, undefined, undefined);
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Get information on a dogma effect
|
|
1265
|
+
|
|
1266
|
+
* This route expires daily at 11:05
|
|
1267
|
+
|
|
1268
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetDogmaEffectsEffectId
|
|
1269
|
+
*/
|
|
1270
|
+
async getDogmaEffect(params) {
|
|
1271
|
+
const path = `/dogma/effects/${params.effect_id}`;
|
|
1272
|
+
return this.request('GET', path, undefined, undefined);
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Return details about a fleet
|
|
1276
|
+
|
|
1277
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFleetsFleetId
|
|
1278
|
+
*/
|
|
1279
|
+
async getFleet(params) {
|
|
1280
|
+
const path = `/fleets/${params.fleet_id}`;
|
|
1281
|
+
return this.request('GET', path, undefined, undefined);
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Update settings about a fleet
|
|
1285
|
+
|
|
1286
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutFleetsFleetId
|
|
1287
|
+
*/
|
|
1288
|
+
async putFleet(params) {
|
|
1289
|
+
const path = `/fleets/${params.fleet_id}`;
|
|
1290
|
+
const body = { is_free_move: params.is_free_move, motd: params.motd };
|
|
1291
|
+
return this.request('PUT', path, undefined, body);
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Return information about fleet members
|
|
1295
|
+
|
|
1296
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFleetsFleetIdMembers
|
|
1297
|
+
*/
|
|
1298
|
+
async getFleetMembers(params) {
|
|
1299
|
+
const path = `/fleets/${params.fleet_id}/members`;
|
|
1300
|
+
return this.request('GET', path, undefined, undefined);
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Invite a character into the fleet. If a character has a CSPA charge set it is not possible to invite them to the fleet using ESI
|
|
1304
|
+
|
|
1305
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostFleetsFleetIdMembers
|
|
1306
|
+
*/
|
|
1307
|
+
async postFleetMembers(params) {
|
|
1308
|
+
const path = `/fleets/${params.fleet_id}/members`;
|
|
1309
|
+
const body = {
|
|
1310
|
+
character_id: params.character_id,
|
|
1311
|
+
role: params.role,
|
|
1312
|
+
squad_id: params.squad_id,
|
|
1313
|
+
wing_id: params.wing_id,
|
|
1314
|
+
};
|
|
1315
|
+
return this.request('POST', path, undefined, body);
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Kick a fleet member
|
|
1319
|
+
|
|
1320
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteFleetsFleetIdMembersMemberId
|
|
1321
|
+
*/
|
|
1322
|
+
async deleteFleetMember(params) {
|
|
1323
|
+
const path = `/fleets/${params.fleet_id}/members/${params.member_id}`;
|
|
1324
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Move a fleet member around
|
|
1328
|
+
|
|
1329
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutFleetsFleetIdMembersMemberId
|
|
1330
|
+
*/
|
|
1331
|
+
async putFleetMember(params) {
|
|
1332
|
+
const path = `/fleets/${params.fleet_id}/members/${params.member_id}`;
|
|
1333
|
+
const body = {
|
|
1334
|
+
role: params.role,
|
|
1335
|
+
squad_id: params.squad_id,
|
|
1336
|
+
wing_id: params.wing_id,
|
|
1337
|
+
};
|
|
1338
|
+
return this.request('PUT', path, undefined, body);
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Delete a fleet squad, only empty squads can be deleted
|
|
1342
|
+
|
|
1343
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteFleetsFleetIdSquadsSquadId
|
|
1344
|
+
*/
|
|
1345
|
+
async deleteFleetSquad(params) {
|
|
1346
|
+
const path = `/fleets/${params.fleet_id}/squads/${params.squad_id}`;
|
|
1347
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Rename a fleet squad
|
|
1351
|
+
|
|
1352
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutFleetsFleetIdSquadsSquadId
|
|
1353
|
+
*/
|
|
1354
|
+
async putFleetSquad(params) {
|
|
1355
|
+
const path = `/fleets/${params.fleet_id}/squads/${params.squad_id}`;
|
|
1356
|
+
const body = { name: params.name };
|
|
1357
|
+
return this.request('PUT', path, undefined, body);
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Return information about wings in a fleet
|
|
1361
|
+
|
|
1362
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFleetsFleetIdWings
|
|
1363
|
+
*/
|
|
1364
|
+
async getFleetWings(params) {
|
|
1365
|
+
const path = `/fleets/${params.fleet_id}/wings`;
|
|
1366
|
+
return this.request('GET', path, undefined, undefined);
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Create a new wing in a fleet
|
|
1370
|
+
|
|
1371
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostFleetsFleetIdWings
|
|
1372
|
+
*/
|
|
1373
|
+
async postFleetWings(params) {
|
|
1374
|
+
const path = `/fleets/${params.fleet_id}/wings`;
|
|
1375
|
+
return this.request('POST', path, undefined, undefined);
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty
|
|
1379
|
+
|
|
1380
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/DeleteFleetsFleetIdWingsWingId
|
|
1381
|
+
*/
|
|
1382
|
+
async deleteFleetWing(params) {
|
|
1383
|
+
const path = `/fleets/${params.fleet_id}/wings/${params.wing_id}`;
|
|
1384
|
+
return this.request('DELETE', path, undefined, undefined);
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Rename a fleet wing
|
|
1388
|
+
|
|
1389
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PutFleetsFleetIdWingsWingId
|
|
1390
|
+
*/
|
|
1391
|
+
async putFleetWing(params) {
|
|
1392
|
+
const path = `/fleets/${params.fleet_id}/wings/${params.wing_id}`;
|
|
1393
|
+
const body = { name: params.name };
|
|
1394
|
+
return this.request('PUT', path, undefined, body);
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Create a new squad in a fleet
|
|
1398
|
+
|
|
1399
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostFleetsFleetIdWingsWingIdSquads
|
|
1400
|
+
*/
|
|
1401
|
+
async postFleetWingSquads(params) {
|
|
1402
|
+
const path = `/fleets/${params.fleet_id}/wings/${params.wing_id}/squads`;
|
|
1403
|
+
return this.request('POST', path, undefined, undefined);
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday
|
|
1407
|
+
|
|
1408
|
+
* This route expires daily at 11:05
|
|
1409
|
+
|
|
1410
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwLeaderboards
|
|
1411
|
+
*/
|
|
1412
|
+
async getFwLeaderboards() {
|
|
1413
|
+
const path = `/fw/leaderboards`;
|
|
1414
|
+
return this.request('GET', path, undefined, undefined);
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday
|
|
1418
|
+
|
|
1419
|
+
* This route expires daily at 11:05
|
|
1420
|
+
|
|
1421
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwLeaderboardsCharacters
|
|
1422
|
+
*/
|
|
1423
|
+
async getFwLeaderboardsCharacters() {
|
|
1424
|
+
const path = `/fw/leaderboards/characters`;
|
|
1425
|
+
return this.request('GET', path, undefined, undefined);
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday
|
|
1429
|
+
|
|
1430
|
+
* This route expires daily at 11:05
|
|
1431
|
+
|
|
1432
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwLeaderboardsCorporations
|
|
1433
|
+
*/
|
|
1434
|
+
async getFwLeaderboardsCorporations() {
|
|
1435
|
+
const path = `/fw/leaderboards/corporations`;
|
|
1436
|
+
return this.request('GET', path, undefined, undefined);
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Statistical overviews of factions involved in faction warfare
|
|
1440
|
+
|
|
1441
|
+
* This route expires daily at 11:05
|
|
1442
|
+
|
|
1443
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwStats
|
|
1444
|
+
*/
|
|
1445
|
+
async getFwStats() {
|
|
1446
|
+
const path = `/fw/stats`;
|
|
1447
|
+
return this.request('GET', path, undefined, undefined);
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* An overview of the current ownership of faction warfare solar systems
|
|
1451
|
+
|
|
1452
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwSystems
|
|
1453
|
+
*/
|
|
1454
|
+
async getFwSystems() {
|
|
1455
|
+
const path = `/fw/systems`;
|
|
1456
|
+
return this.request('GET', path, undefined, undefined);
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Data about which NPC factions are at war
|
|
1460
|
+
|
|
1461
|
+
* This route expires daily at 11:05
|
|
1462
|
+
|
|
1463
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetFwWars
|
|
1464
|
+
*/
|
|
1465
|
+
async getFwWars() {
|
|
1466
|
+
const path = `/fw/wars`;
|
|
1467
|
+
return this.request('GET', path, undefined, undefined);
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* Return a list of current incursions
|
|
1471
|
+
|
|
1472
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetIncursions
|
|
1473
|
+
*/
|
|
1474
|
+
async getIncursions() {
|
|
1475
|
+
const path = `/incursions`;
|
|
1476
|
+
return this.request('GET', path, undefined, undefined);
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Return a list of industry facilities
|
|
1480
|
+
|
|
1481
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetIndustryFacilities
|
|
1482
|
+
*/
|
|
1483
|
+
async getIndustryFacilities() {
|
|
1484
|
+
const path = `/industry/facilities`;
|
|
1485
|
+
return this.request('GET', path, undefined, undefined);
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Return cost indices for solar systems
|
|
1489
|
+
|
|
1490
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetIndustrySystems
|
|
1491
|
+
*/
|
|
1492
|
+
async getIndustrySystems() {
|
|
1493
|
+
const path = `/industry/systems`;
|
|
1494
|
+
return this.request('GET', path, undefined, undefined);
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Return available insurance levels for all ship types
|
|
1498
|
+
|
|
1499
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetInsurancePrices
|
|
1500
|
+
*/
|
|
1501
|
+
async getInsurancePrices() {
|
|
1502
|
+
const path = `/insurance/prices`;
|
|
1503
|
+
return this.request('GET', path, undefined, undefined);
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Return a single killmail from its ID and hash
|
|
1507
|
+
|
|
1508
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetKillmailsKillmailIdKillmailHash
|
|
1509
|
+
*/
|
|
1510
|
+
async getKillmailKillmailHash(params) {
|
|
1511
|
+
const path = `/killmails/${params.killmail_id}/${params.killmail_hash}`;
|
|
1512
|
+
return this.request('GET', path, undefined, undefined);
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Return a list of offers from a specific corporation's loyalty store
|
|
1516
|
+
|
|
1517
|
+
* This route expires daily at 11:05
|
|
1518
|
+
|
|
1519
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetLoyaltyStoresCorporationIdOffers
|
|
1520
|
+
*/
|
|
1521
|
+
async getLoyaltyCorporationOffers(params) {
|
|
1522
|
+
const path = `/loyalty/stores/${params.corporation_id}/offers`;
|
|
1523
|
+
return this.request('GET', path, undefined, undefined);
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Get a list of item groups
|
|
1527
|
+
|
|
1528
|
+
* This route expires daily at 11:05
|
|
1529
|
+
|
|
1530
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsGroups
|
|
1531
|
+
*/
|
|
1532
|
+
async getMarketsGroups() {
|
|
1533
|
+
const path = `/markets/groups`;
|
|
1534
|
+
return this.request('GET', path, undefined, undefined);
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Get information on an item group
|
|
1538
|
+
|
|
1539
|
+
* This route expires daily at 11:05
|
|
1540
|
+
|
|
1541
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsGroupsMarketGroupId
|
|
1542
|
+
*/
|
|
1543
|
+
async getMarketsGroupsMarketGroupId(params) {
|
|
1544
|
+
const path = `/markets/groups/${params.market_group_id}`;
|
|
1545
|
+
return this.request('GET', path, undefined, undefined);
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Return a list of prices
|
|
1549
|
+
|
|
1550
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsPrices
|
|
1551
|
+
*/
|
|
1552
|
+
async getMarketsPrices() {
|
|
1553
|
+
const path = `/markets/prices`;
|
|
1554
|
+
return this.request('GET', path, undefined, undefined);
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Return all orders in a structure
|
|
1558
|
+
|
|
1559
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsStructuresStructureId
|
|
1560
|
+
*/
|
|
1561
|
+
async getMarketsStructure(params) {
|
|
1562
|
+
const path = `/markets/structures/${params.structure_id}`;
|
|
1563
|
+
const queryParams = { page: params.page };
|
|
1564
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Return a list of historical market statistics for the specified type in a region
|
|
1568
|
+
|
|
1569
|
+
* This route expires daily at 11:05
|
|
1570
|
+
|
|
1571
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsRegionIdHistory
|
|
1572
|
+
*/
|
|
1573
|
+
async getRegionHistory(params) {
|
|
1574
|
+
const path = `/markets/${params.region_id}/history`;
|
|
1575
|
+
const queryParams = { type_id: params.type_id };
|
|
1576
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* Return a list of orders in a region
|
|
1580
|
+
|
|
1581
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsRegionIdOrders
|
|
1582
|
+
*/
|
|
1583
|
+
async getRegionOrders(params) {
|
|
1584
|
+
const path = `/markets/${params.region_id}/orders`;
|
|
1585
|
+
const queryParams = {
|
|
1586
|
+
order_type: params.order_type,
|
|
1587
|
+
page: params.page,
|
|
1588
|
+
type_id: params.type_id,
|
|
1589
|
+
};
|
|
1590
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Return a list of type IDs that have active orders in the region, for efficient market indexing.
|
|
1594
|
+
|
|
1595
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetMarketsRegionIdTypes
|
|
1596
|
+
*/
|
|
1597
|
+
async getRegionTypes(params) {
|
|
1598
|
+
const path = `/markets/${params.region_id}/types`;
|
|
1599
|
+
const queryParams = { page: params.page };
|
|
1600
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* Get the systems between origin and destination
|
|
1604
|
+
|
|
1605
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetRouteOriginDestination
|
|
1606
|
+
*/
|
|
1607
|
+
async getRouteOriginDestination(params) {
|
|
1608
|
+
const path = `/route/${params.origin}/${params.destination}`;
|
|
1609
|
+
const queryParams = {
|
|
1610
|
+
avoid: params.avoid,
|
|
1611
|
+
connections: params.connections,
|
|
1612
|
+
flag: params.flag,
|
|
1613
|
+
};
|
|
1614
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Shows sovereignty data for campaigns.
|
|
1618
|
+
|
|
1619
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetSovereigntyCampaigns
|
|
1620
|
+
*/
|
|
1621
|
+
async getSovereigntyCampaigns() {
|
|
1622
|
+
const path = `/sovereignty/campaigns`;
|
|
1623
|
+
return this.request('GET', path, undefined, undefined);
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Shows sovereignty information for solar systems
|
|
1627
|
+
|
|
1628
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetSovereigntyMap
|
|
1629
|
+
*/
|
|
1630
|
+
async getSovereigntyMap() {
|
|
1631
|
+
const path = `/sovereignty/map`;
|
|
1632
|
+
return this.request('GET', path, undefined, undefined);
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Shows sovereignty data for structures.
|
|
1636
|
+
|
|
1637
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetSovereigntyStructures
|
|
1638
|
+
*/
|
|
1639
|
+
async getSovereigntyStructures() {
|
|
1640
|
+
const path = `/sovereignty/structures`;
|
|
1641
|
+
return this.request('GET', path, undefined, undefined);
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* EVE Server status
|
|
1645
|
+
|
|
1646
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetStatus
|
|
1647
|
+
*/
|
|
1648
|
+
async getStatus() {
|
|
1649
|
+
const path = `/status`;
|
|
1650
|
+
return this.request('GET', path, undefined, undefined);
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Set a solar system as autopilot waypoint
|
|
1654
|
+
|
|
1655
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUiAutopilotWaypoint
|
|
1656
|
+
*/
|
|
1657
|
+
async postUiAutopilotWaypoint(params) {
|
|
1658
|
+
const path = `/ui/autopilot/waypoint`;
|
|
1659
|
+
const queryParams = params
|
|
1660
|
+
? {
|
|
1661
|
+
add_to_beginning: params.add_to_beginning,
|
|
1662
|
+
clear_other_waypoints: params.clear_other_waypoints,
|
|
1663
|
+
destination_id: params.destination_id,
|
|
1664
|
+
}
|
|
1665
|
+
: undefined;
|
|
1666
|
+
return this.request('POST', path, queryParams, undefined);
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Open the contract window inside the client
|
|
1670
|
+
|
|
1671
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUiOpenwindowContract
|
|
1672
|
+
*/
|
|
1673
|
+
async postUiOpenwindowContract(params) {
|
|
1674
|
+
const path = `/ui/openwindow/contract`;
|
|
1675
|
+
const queryParams = params ? { contract_id: params.contract_id } : undefined;
|
|
1676
|
+
return this.request('POST', path, queryParams, undefined);
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Open the information window for a character, corporation or alliance inside the client
|
|
1680
|
+
|
|
1681
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUiOpenwindowInformation
|
|
1682
|
+
*/
|
|
1683
|
+
async postUiOpenwindowInformation(params) {
|
|
1684
|
+
const path = `/ui/openwindow/information`;
|
|
1685
|
+
const queryParams = params ? { target_id: params.target_id } : undefined;
|
|
1686
|
+
return this.request('POST', path, queryParams, undefined);
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Open the market details window for a specific typeID inside the client
|
|
1690
|
+
|
|
1691
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUiOpenwindowMarketdetails
|
|
1692
|
+
*/
|
|
1693
|
+
async postUiOpenwindowMarketdetails(params) {
|
|
1694
|
+
const path = `/ui/openwindow/marketdetails`;
|
|
1695
|
+
const queryParams = params ? { type_id: params.type_id } : undefined;
|
|
1696
|
+
return this.request('POST', path, queryParams, undefined);
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Open the New Mail window, according to settings from the request if applicable
|
|
1700
|
+
|
|
1701
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUiOpenwindowNewmail
|
|
1702
|
+
*/
|
|
1703
|
+
async postUiOpenwindowNewmail(params) {
|
|
1704
|
+
const path = `/ui/openwindow/newmail`;
|
|
1705
|
+
const body = {
|
|
1706
|
+
body: params.body,
|
|
1707
|
+
recipients: params.recipients,
|
|
1708
|
+
subject: params.subject,
|
|
1709
|
+
to_corp_or_alliance_id: params.to_corp_or_alliance_id,
|
|
1710
|
+
to_mailing_list_id: params.to_mailing_list_id,
|
|
1711
|
+
};
|
|
1712
|
+
return this.request('POST', path, undefined, body);
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Get all character ancestries
|
|
1716
|
+
|
|
1717
|
+
* This route expires daily at 11:05
|
|
1718
|
+
|
|
1719
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseAncestries
|
|
1720
|
+
*/
|
|
1721
|
+
async getUniverseAncestries() {
|
|
1722
|
+
const path = `/universe/ancestries`;
|
|
1723
|
+
return this.request('GET', path, undefined, undefined);
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Get information on an asteroid belt
|
|
1727
|
+
|
|
1728
|
+
* This route expires daily at 11:05
|
|
1729
|
+
|
|
1730
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseAsteroidBeltsAsteroidBeltId
|
|
1731
|
+
*/
|
|
1732
|
+
async getUniverseAsteroidBeltsAsteroidBeltId(params) {
|
|
1733
|
+
const path = `/universe/asteroid_belts/${params.asteroid_belt_id}`;
|
|
1734
|
+
return this.request('GET', path, undefined, undefined);
|
|
1735
|
+
}
|
|
1736
|
+
/**
|
|
1737
|
+
* Get a list of bloodlines
|
|
1738
|
+
|
|
1739
|
+
* This route expires daily at 11:05
|
|
1740
|
+
|
|
1741
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseBloodlines
|
|
1742
|
+
*/
|
|
1743
|
+
async getUniverseBloodlines() {
|
|
1744
|
+
const path = `/universe/bloodlines`;
|
|
1745
|
+
return this.request('GET', path, undefined, undefined);
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Get a list of item categories
|
|
1749
|
+
|
|
1750
|
+
* This route expires daily at 11:05
|
|
1751
|
+
|
|
1752
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseCategories
|
|
1753
|
+
*/
|
|
1754
|
+
async getUniverseCategories() {
|
|
1755
|
+
const path = `/universe/categories`;
|
|
1756
|
+
return this.request('GET', path, undefined, undefined);
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Get information of an item category
|
|
1760
|
+
|
|
1761
|
+
* This route expires daily at 11:05
|
|
1762
|
+
|
|
1763
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseCategoriesCategoryId
|
|
1764
|
+
*/
|
|
1765
|
+
async getUniverseCategory(params) {
|
|
1766
|
+
const path = `/universe/categories/${params.category_id}`;
|
|
1767
|
+
return this.request('GET', path, undefined, undefined);
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Get a list of constellations
|
|
1771
|
+
|
|
1772
|
+
* This route expires daily at 11:05
|
|
1773
|
+
|
|
1774
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseConstellations
|
|
1775
|
+
*/
|
|
1776
|
+
async getUniverseConstellations() {
|
|
1777
|
+
const path = `/universe/constellations`;
|
|
1778
|
+
return this.request('GET', path, undefined, undefined);
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Get information on a constellation
|
|
1782
|
+
|
|
1783
|
+
* This route expires daily at 11:05
|
|
1784
|
+
|
|
1785
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseConstellationsConstellationId
|
|
1786
|
+
*/
|
|
1787
|
+
async getUniverseConstellation(params) {
|
|
1788
|
+
const path = `/universe/constellations/${params.constellation_id}`;
|
|
1789
|
+
return this.request('GET', path, undefined, undefined);
|
|
1790
|
+
}
|
|
1791
|
+
/**
|
|
1792
|
+
* Get a list of factions
|
|
1793
|
+
|
|
1794
|
+
* This route expires daily at 11:05
|
|
1795
|
+
|
|
1796
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseFactions
|
|
1797
|
+
*/
|
|
1798
|
+
async getUniverseFactions() {
|
|
1799
|
+
const path = `/universe/factions`;
|
|
1800
|
+
return this.request('GET', path, undefined, undefined);
|
|
1801
|
+
}
|
|
1802
|
+
/**
|
|
1803
|
+
* Get a list of graphics
|
|
1804
|
+
|
|
1805
|
+
* This route expires daily at 11:05
|
|
1806
|
+
|
|
1807
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseGraphics
|
|
1808
|
+
*/
|
|
1809
|
+
async getUniverseGraphics() {
|
|
1810
|
+
const path = `/universe/graphics`;
|
|
1811
|
+
return this.request('GET', path, undefined, undefined);
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Get information on a graphic
|
|
1815
|
+
|
|
1816
|
+
* This route expires daily at 11:05
|
|
1817
|
+
|
|
1818
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseGraphicsGraphicId
|
|
1819
|
+
*/
|
|
1820
|
+
async getUniverseGraphic(params) {
|
|
1821
|
+
const path = `/universe/graphics/${params.graphic_id}`;
|
|
1822
|
+
return this.request('GET', path, undefined, undefined);
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Get a list of item groups
|
|
1826
|
+
|
|
1827
|
+
* This route expires daily at 11:05
|
|
1828
|
+
|
|
1829
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseGroups
|
|
1830
|
+
*/
|
|
1831
|
+
async getUniverseGroups(params) {
|
|
1832
|
+
const path = `/universe/groups`;
|
|
1833
|
+
const queryParams = params ? { page: params.page } : undefined;
|
|
1834
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Get information on an item group
|
|
1838
|
+
|
|
1839
|
+
* This route expires daily at 11:05
|
|
1840
|
+
|
|
1841
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseGroupsGroupId
|
|
1842
|
+
*/
|
|
1843
|
+
async getUniverseGroup(params) {
|
|
1844
|
+
const path = `/universe/groups/${params.group_id}`;
|
|
1845
|
+
return this.request('GET', path, undefined, undefined);
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours
|
|
1849
|
+
|
|
1850
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUniverseIds
|
|
1851
|
+
*/
|
|
1852
|
+
async postUniverseIds(params) {
|
|
1853
|
+
const path = `/universe/ids`;
|
|
1854
|
+
const body = params.body;
|
|
1855
|
+
return this.request('POST', path, undefined, body);
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Get information on a moon
|
|
1859
|
+
|
|
1860
|
+
* This route expires daily at 11:05
|
|
1861
|
+
|
|
1862
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseMoonsMoonId
|
|
1863
|
+
*/
|
|
1864
|
+
async getUniverseMoon(params) {
|
|
1865
|
+
const path = `/universe/moons/${params.moon_id}`;
|
|
1866
|
+
return this.request('GET', path, undefined, undefined);
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types, Factions
|
|
1870
|
+
|
|
1871
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/PostUniverseNames
|
|
1872
|
+
*/
|
|
1873
|
+
async postUniverseNames(params) {
|
|
1874
|
+
const path = `/universe/names`;
|
|
1875
|
+
const body = params.body;
|
|
1876
|
+
return this.request('POST', path, undefined, body);
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Get information on a planet
|
|
1880
|
+
|
|
1881
|
+
* This route expires daily at 11:05
|
|
1882
|
+
|
|
1883
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniversePlanetsPlanetId
|
|
1884
|
+
*/
|
|
1885
|
+
async getUniversePlanet(params) {
|
|
1886
|
+
const path = `/universe/planets/${params.planet_id}`;
|
|
1887
|
+
return this.request('GET', path, undefined, undefined);
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Get a list of character races
|
|
1891
|
+
|
|
1892
|
+
* This route expires daily at 11:05
|
|
1893
|
+
|
|
1894
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseRaces
|
|
1895
|
+
*/
|
|
1896
|
+
async getUniverseRaces() {
|
|
1897
|
+
const path = `/universe/races`;
|
|
1898
|
+
return this.request('GET', path, undefined, undefined);
|
|
1899
|
+
}
|
|
1900
|
+
/**
|
|
1901
|
+
* Get a list of regions
|
|
1902
|
+
|
|
1903
|
+
* This route expires daily at 11:05
|
|
1904
|
+
|
|
1905
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseRegions
|
|
1906
|
+
*/
|
|
1907
|
+
async getUniverseRegions() {
|
|
1908
|
+
const path = `/universe/regions`;
|
|
1909
|
+
return this.request('GET', path, undefined, undefined);
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Get information on a region
|
|
1913
|
+
|
|
1914
|
+
* This route expires daily at 11:05
|
|
1915
|
+
|
|
1916
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseRegionsRegionId
|
|
1917
|
+
*/
|
|
1918
|
+
async getUniverseRegion(params) {
|
|
1919
|
+
const path = `/universe/regions/${params.region_id}`;
|
|
1920
|
+
return this.request('GET', path, undefined, undefined);
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Get information on a planetary factory schematic
|
|
1924
|
+
|
|
1925
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseSchematicsSchematicId
|
|
1926
|
+
*/
|
|
1927
|
+
async getUniverseSchematic(params) {
|
|
1928
|
+
const path = `/universe/schematics/${params.schematic_id}`;
|
|
1929
|
+
return this.request('GET', path, undefined, undefined);
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Get information on a stargate
|
|
1933
|
+
|
|
1934
|
+
* This route expires daily at 11:05
|
|
1935
|
+
|
|
1936
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseStargatesStargateId
|
|
1937
|
+
*/
|
|
1938
|
+
async getUniverseStargate(params) {
|
|
1939
|
+
const path = `/universe/stargates/${params.stargate_id}`;
|
|
1940
|
+
return this.request('GET', path, undefined, undefined);
|
|
1941
|
+
}
|
|
1942
|
+
/**
|
|
1943
|
+
* Get information on a star
|
|
1944
|
+
|
|
1945
|
+
* This route expires daily at 11:05
|
|
1946
|
+
|
|
1947
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseStarsStarId
|
|
1948
|
+
*/
|
|
1949
|
+
async getUniverseStar(params) {
|
|
1950
|
+
const path = `/universe/stars/${params.star_id}`;
|
|
1951
|
+
return this.request('GET', path, undefined, undefined);
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* Get information on a station
|
|
1955
|
+
|
|
1956
|
+
* This route expires daily at 11:05
|
|
1957
|
+
|
|
1958
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseStationsStationId
|
|
1959
|
+
*/
|
|
1960
|
+
async getUniverseStation(params) {
|
|
1961
|
+
const path = `/universe/stations/${params.station_id}`;
|
|
1962
|
+
return this.request('GET', path, undefined, undefined);
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* List all public structures
|
|
1966
|
+
|
|
1967
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseStructures
|
|
1968
|
+
*/
|
|
1969
|
+
async getUniverseStructures(params) {
|
|
1970
|
+
const path = `/universe/structures`;
|
|
1971
|
+
const queryParams = params ? { filter: params.filter } : undefined;
|
|
1972
|
+
return this.request('GET', path, queryParams, undefined);
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Returns information on requested structure if you are on the ACL. Otherwise, returns "Forbidden" for all inputs.
|
|
1976
|
+
|
|
1977
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseStructuresStructureId
|
|
1978
|
+
*/
|
|
1979
|
+
async getUniverseStructure(params) {
|
|
1980
|
+
const path = `/universe/structures/${params.structure_id}`;
|
|
1981
|
+
return this.request('GET', path, undefined, undefined);
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed
|
|
1985
|
+
|
|
1986
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseSystemJumps
|
|
1987
|
+
*/
|
|
1988
|
+
async getUniverseSystemJumps() {
|
|
1989
|
+
const path = `/universe/system_jumps`;
|
|
1990
|
+
return this.request('GET', path, undefined, undefined);
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
* Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed
|
|
1994
|
+
|
|
1995
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseSystemKills
|
|
1996
|
+
*/
|
|
1997
|
+
async getUniverseSystemKills() {
|
|
1998
|
+
const path = `/universe/system_kills`;
|
|
1999
|
+
return this.request('GET', path, undefined, undefined);
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
* Get a list of solar systems
|
|
2003
|
+
|
|
2004
|
+
* This route expires daily at 11:05
|
|
2005
|
+
|
|
2006
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseSystems
|
|
2007
|
+
*/
|
|
2008
|
+
async getUniverseSystems() {
|
|
2009
|
+
const path = `/universe/systems`;
|
|
2010
|
+
return this.request('GET', path, undefined, undefined);
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Get information on a solar system.
|
|
2014
|
+
|
|
2015
|
+
* This route expires daily at 11:05
|
|
2016
|
+
|
|
2017
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseSystemsSystemId
|
|
2018
|
+
*/
|
|
2019
|
+
async getUniverseSystem(params) {
|
|
2020
|
+
const path = `/universe/systems/${params.system_id}`;
|
|
2021
|
+
return this.request('GET', path, undefined, undefined);
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* Get a list of type ids
|
|
2025
|
+
|
|
2026
|
+
* This route expires daily at 11:05
|
|
2027
|
+
|
|
2028
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseTypes
|
|
2029
|
+
*/
|
|
2030
|
+
async getUniverseTypes(params) {
|
|
2031
|
+
const path = `/universe/types`;
|
|
2032
|
+
const queryParams = params ? { page: params.page } : undefined;
|
|
2033
|
+
return this.request('GET', path, queryParams, undefined);
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* Get information on a type
|
|
2037
|
+
|
|
2038
|
+
* This route expires daily at 11:05
|
|
2039
|
+
|
|
2040
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetUniverseTypesTypeId
|
|
2041
|
+
*/
|
|
2042
|
+
async getUniverseType(params) {
|
|
2043
|
+
const path = `/universe/types/${params.type_id}`;
|
|
2044
|
+
return this.request('GET', path, undefined, undefined);
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Return a list of wars
|
|
2048
|
+
|
|
2049
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetWars
|
|
2050
|
+
*/
|
|
2051
|
+
async getWars(params) {
|
|
2052
|
+
const path = `/wars`;
|
|
2053
|
+
const queryParams = params ? { max_war_id: params.max_war_id } : undefined;
|
|
2054
|
+
return this.request('GET', path, queryParams, undefined);
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* Return details about a war
|
|
2058
|
+
|
|
2059
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetWarsWarId
|
|
2060
|
+
*/
|
|
2061
|
+
async getWar(params) {
|
|
2062
|
+
const path = `/wars/${params.war_id}`;
|
|
2063
|
+
return this.request('GET', path, undefined, undefined);
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Return a list of kills related to a war
|
|
2067
|
+
|
|
2068
|
+
* @see https://developers.eveonline.com/api-explorer#/operations/GetWarsWarIdKillmails
|
|
2069
|
+
*/
|
|
2070
|
+
async getWarKillmails(params) {
|
|
2071
|
+
const path = `/wars/${params.war_id}/killmails`;
|
|
2072
|
+
const queryParams = { page: params.page };
|
|
2073
|
+
return this.request('GET', path, queryParams, undefined);
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
exports.EsiClient = EsiClient;
|
|
2077
|
+
exports.default = EsiClient;
|