esi-sdk 1.1.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/cicd.yml +17 -2
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +38 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +21 -40
  7. data/README.md +2 -0
  8. data/Rakefile +75 -37
  9. data/bin/console +1 -1
  10. data/esi-sdk.gemspec +2 -3
  11. data/lib/esi/client/alliance.rb +103 -10
  12. data/lib/esi/client/assets.rb +193 -18
  13. data/lib/esi/client/bookmarks.rb +130 -12
  14. data/lib/esi/client/calendar.rb +144 -16
  15. data/lib/esi/client/character.rb +414 -42
  16. data/lib/esi/client/clones.rb +65 -6
  17. data/lib/esi/client/contacts.rb +294 -30
  18. data/lib/esi/client/contracts.rb +294 -31
  19. data/lib/esi/client/corporation.rb +755 -152
  20. data/lib/esi/client/dogma.rb +118 -12
  21. data/lib/esi/client/faction_warfare.rb +198 -14
  22. data/lib/esi/client/fittings.rb +94 -10
  23. data/lib/esi/client/fleets.rb +469 -49
  24. data/lib/esi/client/incursions.rb +23 -1
  25. data/lib/esi/client/industry.rb +250 -23
  26. data/lib/esi/client/insurance.rb +23 -1
  27. data/lib/esi/client/killmails.rb +95 -10
  28. data/lib/esi/client/location.rb +98 -9
  29. data/lib/esi/client/loyalty.rb +57 -6
  30. data/lib/esi/client/mail.rb +262 -28
  31. data/lib/esi/client/market.rb +322 -34
  32. data/lib/esi/client/opportunities.rb +124 -13
  33. data/lib/esi/client/planetary_interaction.rb +124 -13
  34. data/lib/esi/client/routes.rb +34 -6
  35. data/lib/esi/client/search.rb +64 -7
  36. data/lib/esi/client/skills.rb +95 -9
  37. data/lib/esi/client/sovereignty.rb +69 -3
  38. data/lib/esi/client/status.rb +24 -1
  39. data/lib/esi/client/universe.rb +817 -194
  40. data/lib/esi/client/user_interface.rb +157 -14
  41. data/lib/esi/client/wallet.rb +199 -22
  42. data/lib/esi/client/wars.rb +81 -9
  43. data/lib/esi/client.rb +74 -82
  44. data/lib/esi/errors.rb +12 -1
  45. data/lib/esi/version.rb +1 -1
  46. data/package.json +19 -0
  47. data/release.config.js +2 -2
  48. data/yarn.lock +3695 -0
  49. metadata +10 -22
@@ -9,9 +9,9 @@ module ESI
9
9
  # This endpoint is cached for up to 86400 seconds.
10
10
  #
11
11
  # @esi_version dev
12
- # @esi_version v4
12
+ # @esi_version v5
13
13
  #
14
- # @param character_id [Integer,String] An EVE character ID
14
+ # @param character_id [Integer] An EVE character ID
15
15
  # @param params [Hash] Additional query string parameters
16
16
  # @param headers [Hash] Additional headers
17
17
  #
@@ -23,11 +23,34 @@ module ESI
23
23
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
24
24
  #
25
25
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
26
- def get_character(character_id:, params: {}, headers: {})
27
- get("/characters/#{character_id}/", headers: headers, params: params)
26
+ def get_character(character_id:, headers: {}, params: {})
27
+ get_character_raw(character_id: character_id, headers: headers, params: params).json
28
28
  end
29
29
  alias get_characters_character_id get_character
30
30
 
31
+ # Public information about a character.
32
+ #
33
+ # This endpoint is cached for up to 86400 seconds.
34
+ #
35
+ # @esi_version dev
36
+ # @esi_version v5
37
+ #
38
+ # @param character_id [Integer] An EVE character ID
39
+ # @param params [Hash] Additional query string parameters
40
+ # @param headers [Hash] Additional headers
41
+ #
42
+ # @raise [ESI::Errors::BadRequestError] Bad request
43
+ # @raise [ESI::Errors::NotFoundError] Character not found
44
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
45
+ # @raise [ESI::Errors::InternalServerError] Internal server error
46
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
47
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
48
+ #
49
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
50
+ def get_character_raw(character_id:, headers: {}, params: {})
51
+ get("/characters/#{character_id}/", headers: headers, params: params)
52
+ end
53
+
31
54
  # 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).
32
55
  #
33
56
  # This endpoint is cached for up to 3600 seconds.
@@ -39,7 +62,7 @@ module ESI
39
62
  # @esi_version dev
40
63
  # @esi_version v2
41
64
  #
42
- # @param character_id [Integer,String] An EVE character ID
65
+ # @param character_id [Integer] An EVE character ID
43
66
  # @param params [Hash] Additional query string parameters
44
67
  # @param headers [Hash] Additional headers
45
68
  #
@@ -52,11 +75,39 @@ module ESI
52
75
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
53
76
  #
54
77
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_agents_research
55
- def get_character_agents_research(character_id:, params: {}, headers: {})
56
- get("/characters/#{character_id}/agents_research/", headers: headers, params: params)
78
+ def get_character_agents_research(character_id:, headers: {}, params: {})
79
+ get_character_agents_research_raw(character_id: character_id, headers: headers, params: params).json
57
80
  end
58
81
  alias get_characters_character_id_agents_research get_character_agents_research
59
82
 
83
+ # 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).
84
+ #
85
+ # This endpoint is cached for up to 3600 seconds.
86
+ #
87
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
88
+ #
89
+ # @esi_scope esi-characters.read_agents_research.v1
90
+ #
91
+ # @esi_version dev
92
+ # @esi_version v2
93
+ #
94
+ # @param character_id [Integer] An EVE character ID
95
+ # @param params [Hash] Additional query string parameters
96
+ # @param headers [Hash] Additional headers
97
+ #
98
+ # @raise [ESI::Errors::BadRequestError] Bad request
99
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
100
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
101
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
102
+ # @raise [ESI::Errors::InternalServerError] Internal server error
103
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
104
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
105
+ #
106
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_agents_research
107
+ def get_character_agents_research_raw(character_id:, headers: {}, params: {})
108
+ get("/characters/#{character_id}/agents_research/", headers: headers, params: params)
109
+ end
110
+
60
111
  # Return a list of blueprints the character owns.
61
112
  #
62
113
  # This endpoint is cached for up to 3600 seconds.
@@ -68,7 +119,7 @@ module ESI
68
119
  # @esi_version dev
69
120
  # @esi_version v3
70
121
  #
71
- # @param character_id [Integer,String] An EVE character ID
122
+ # @param character_id [Integer] An EVE character ID
72
123
  # @param params [Hash] Additional query string parameters
73
124
  # @param headers [Hash] Additional headers
74
125
  #
@@ -81,11 +132,40 @@ module ESI
81
132
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
82
133
  #
83
134
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_blueprints
84
- def get_character_blueprints(character_id:, params: {}, headers: {})
85
- get("/characters/#{character_id}/blueprints/", headers: headers, params: params)
135
+ def get_character_blueprints(character_id:, headers: {}, params: {})
136
+ responses = get_character_blueprints_raw(character_id: character_id, headers: headers, params: params)
137
+ responses.map(&:json).reduce([], :concat)
86
138
  end
87
139
  alias get_characters_character_id_blueprints get_character_blueprints
88
140
 
141
+ # Return a list of blueprints the character owns.
142
+ #
143
+ # This endpoint is cached for up to 3600 seconds.
144
+ #
145
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
146
+ #
147
+ # @esi_scope esi-characters.read_blueprints.v1
148
+ #
149
+ # @esi_version dev
150
+ # @esi_version v3
151
+ #
152
+ # @param character_id [Integer] An EVE character ID
153
+ # @param params [Hash] Additional query string parameters
154
+ # @param headers [Hash] Additional headers
155
+ #
156
+ # @raise [ESI::Errors::BadRequestError] Bad request
157
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
158
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
159
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
160
+ # @raise [ESI::Errors::InternalServerError] Internal server error
161
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
162
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
163
+ #
164
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_blueprints
165
+ def get_character_blueprints_raw(character_id:, headers: {}, params: {})
166
+ get("/characters/#{character_id}/blueprints/", headers: headers, params: params)
167
+ end
168
+
89
169
  # Get a list of all the corporations a character has been a member of.
90
170
  #
91
171
  # This endpoint is cached for up to 86400 seconds.
@@ -93,7 +173,7 @@ module ESI
93
173
  # @esi_version dev
94
174
  # @esi_version v2
95
175
  #
96
- # @param character_id [Integer,String] An EVE character ID
176
+ # @param character_id [Integer] An EVE character ID
97
177
  # @param params [Hash] Additional query string parameters
98
178
  # @param headers [Hash] Additional headers
99
179
  #
@@ -104,12 +184,34 @@ module ESI
104
184
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
105
185
  #
106
186
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
107
- def get_character_corporationhistory(character_id:, params: {}, headers: {})
108
- get("/characters/#{character_id}/corporationhistory/", headers: headers, params: params)
187
+ def get_character_corporationhistory(character_id:, headers: {}, params: {})
188
+ get_character_corporationhistory_raw(character_id: character_id, headers: headers, params: params).json
109
189
  end
110
190
  alias get_character_corporation_history get_character_corporationhistory
111
191
  alias get_characters_character_id_corporationhistory get_character_corporationhistory
112
192
 
193
+ # Get a list of all the corporations a character has been a member of.
194
+ #
195
+ # This endpoint is cached for up to 86400 seconds.
196
+ #
197
+ # @esi_version dev
198
+ # @esi_version v2
199
+ #
200
+ # @param character_id [Integer] An EVE character ID
201
+ # @param params [Hash] Additional query string parameters
202
+ # @param headers [Hash] Additional headers
203
+ #
204
+ # @raise [ESI::Errors::BadRequestError] Bad request
205
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
206
+ # @raise [ESI::Errors::InternalServerError] Internal server error
207
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
208
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
209
+ #
210
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
211
+ def get_character_corporationhistory_raw(character_id:, headers: {}, params: {})
212
+ get("/characters/#{character_id}/corporationhistory/", headers: headers, params: params)
213
+ end
214
+
113
215
  # Return a character's jump activation and fatigue information.
114
216
  #
115
217
  # This endpoint is cached for up to 300 seconds.
@@ -121,7 +223,7 @@ module ESI
121
223
  # @esi_version dev
122
224
  # @esi_version v2
123
225
  #
124
- # @param character_id [Integer,String] An EVE character ID
226
+ # @param character_id [Integer] An EVE character ID
125
227
  # @param params [Hash] Additional query string parameters
126
228
  # @param headers [Hash] Additional headers
127
229
  #
@@ -134,11 +236,39 @@ module ESI
134
236
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
135
237
  #
136
238
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
137
- def get_character_fatigue(character_id:, params: {}, headers: {})
138
- get("/characters/#{character_id}/fatigue/", headers: headers, params: params)
239
+ def get_character_fatigue(character_id:, headers: {}, params: {})
240
+ get_character_fatigue_raw(character_id: character_id, headers: headers, params: params).json
139
241
  end
140
242
  alias get_characters_character_id_fatigue get_character_fatigue
141
243
 
244
+ # Return a character's jump activation and fatigue information.
245
+ #
246
+ # This endpoint is cached for up to 300 seconds.
247
+ #
248
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
249
+ #
250
+ # @esi_scope esi-characters.read_fatigue.v1
251
+ #
252
+ # @esi_version dev
253
+ # @esi_version v2
254
+ #
255
+ # @param character_id [Integer] An EVE character ID
256
+ # @param params [Hash] Additional query string parameters
257
+ # @param headers [Hash] Additional headers
258
+ #
259
+ # @raise [ESI::Errors::BadRequestError] Bad request
260
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
261
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
262
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
263
+ # @raise [ESI::Errors::InternalServerError] Internal server error
264
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
265
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
266
+ #
267
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
268
+ def get_character_fatigue_raw(character_id:, headers: {}, params: {})
269
+ get("/characters/#{character_id}/fatigue/", headers: headers, params: params)
270
+ end
271
+
142
272
  # Return a list of medals the character has.
143
273
  #
144
274
  # This endpoint is cached for up to 3600 seconds.
@@ -150,7 +280,7 @@ module ESI
150
280
  # @esi_version dev
151
281
  # @esi_version v2
152
282
  #
153
- # @param character_id [Integer,String] An EVE character ID
283
+ # @param character_id [Integer] An EVE character ID
154
284
  # @param params [Hash] Additional query string parameters
155
285
  # @param headers [Hash] Additional headers
156
286
  #
@@ -163,11 +293,39 @@ module ESI
163
293
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
164
294
  #
165
295
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
166
- def get_character_medals(character_id:, params: {}, headers: {})
167
- get("/characters/#{character_id}/medals/", headers: headers, params: params)
296
+ def get_character_medals(character_id:, headers: {}, params: {})
297
+ get_character_medals_raw(character_id: character_id, headers: headers, params: params).json
168
298
  end
169
299
  alias get_characters_character_id_medals get_character_medals
170
300
 
301
+ # Return a list of medals the character has.
302
+ #
303
+ # This endpoint is cached for up to 3600 seconds.
304
+ #
305
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
306
+ #
307
+ # @esi_scope esi-characters.read_medals.v1
308
+ #
309
+ # @esi_version dev
310
+ # @esi_version v2
311
+ #
312
+ # @param character_id [Integer] An EVE character ID
313
+ # @param params [Hash] Additional query string parameters
314
+ # @param headers [Hash] Additional headers
315
+ #
316
+ # @raise [ESI::Errors::BadRequestError] Bad request
317
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
318
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
319
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
320
+ # @raise [ESI::Errors::InternalServerError] Internal server error
321
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
322
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
323
+ #
324
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
325
+ def get_character_medals_raw(character_id:, headers: {}, params: {})
326
+ get("/characters/#{character_id}/medals/", headers: headers, params: params)
327
+ end
328
+
171
329
  # Return notifications about having been added to someone's contact list.
172
330
  #
173
331
  # This endpoint is cached for up to 600 seconds.
@@ -179,7 +337,7 @@ module ESI
179
337
  # @esi_version dev
180
338
  # @esi_version v2
181
339
  #
182
- # @param character_id [Integer,String] An EVE character ID
340
+ # @param character_id [Integer] An EVE character ID
183
341
  # @param params [Hash] Additional query string parameters
184
342
  # @param headers [Hash] Additional headers
185
343
  #
@@ -192,11 +350,39 @@ module ESI
192
350
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
193
351
  #
194
352
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
195
- def get_character_notification_contacts(character_id:, params: {}, headers: {})
196
- get("/characters/#{character_id}/notifications/contacts/", headers: headers, params: params)
353
+ def get_character_notification_contacts(character_id:, headers: {}, params: {})
354
+ get_character_notification_contacts_raw(character_id: character_id, headers: headers, params: params).json
197
355
  end
198
356
  alias get_characters_character_id_notifications_contacts get_character_notification_contacts
199
357
 
358
+ # Return notifications about having been added to someone's contact list.
359
+ #
360
+ # This endpoint is cached for up to 600 seconds.
361
+ #
362
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
363
+ #
364
+ # @esi_scope esi-characters.read_notifications.v1
365
+ #
366
+ # @esi_version dev
367
+ # @esi_version v2
368
+ #
369
+ # @param character_id [Integer] An EVE character ID
370
+ # @param params [Hash] Additional query string parameters
371
+ # @param headers [Hash] Additional headers
372
+ #
373
+ # @raise [ESI::Errors::BadRequestError] Bad request
374
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
375
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
376
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
377
+ # @raise [ESI::Errors::InternalServerError] Internal server error
378
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
379
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
380
+ #
381
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
382
+ def get_character_notification_contacts_raw(character_id:, headers: {}, params: {})
383
+ get("/characters/#{character_id}/notifications/contacts/", headers: headers, params: params)
384
+ end
385
+
200
386
  # Return character notifications.
201
387
  #
202
388
  # This endpoint is cached for up to 600 seconds.
@@ -209,7 +395,7 @@ module ESI
209
395
  # @esi_version v5
210
396
  # @esi_version v6
211
397
  #
212
- # @param character_id [Integer,String] An EVE character ID
398
+ # @param character_id [Integer] An EVE character ID
213
399
  # @param params [Hash] Additional query string parameters
214
400
  # @param headers [Hash] Additional headers
215
401
  #
@@ -222,18 +408,47 @@ module ESI
222
408
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
223
409
  #
224
410
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
225
- def get_character_notifications(character_id:, params: {}, headers: {})
226
- get("/characters/#{character_id}/notifications/", headers: headers, params: params)
411
+ def get_character_notifications(character_id:, headers: {}, params: {})
412
+ get_character_notifications_raw(character_id: character_id, headers: headers, params: params).json
227
413
  end
228
414
  alias get_characters_character_id_notifications get_character_notifications
229
415
 
416
+ # Return character notifications.
417
+ #
418
+ # This endpoint is cached for up to 600 seconds.
419
+ #
420
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
421
+ #
422
+ # @esi_scope esi-characters.read_notifications.v1
423
+ #
424
+ # @esi_version dev
425
+ # @esi_version v5
426
+ # @esi_version v6
427
+ #
428
+ # @param character_id [Integer] An EVE character ID
429
+ # @param params [Hash] Additional query string parameters
430
+ # @param headers [Hash] Additional headers
431
+ #
432
+ # @raise [ESI::Errors::BadRequestError] Bad request
433
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
434
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
435
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
436
+ # @raise [ESI::Errors::InternalServerError] Internal server error
437
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
438
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
439
+ #
440
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
441
+ def get_character_notifications_raw(character_id:, headers: {}, params: {})
442
+ get("/characters/#{character_id}/notifications/", headers: headers, params: params)
443
+ end
444
+
230
445
  # Get portrait urls for a character.
231
446
  #
232
447
  # @esi_version dev
233
448
  # @esi_version v2
234
449
  # @esi_version v3
235
450
  #
236
- # @param character_id [Integer,String] An EVE character ID
451
+ # @param character_id [Integer] An EVE character ID
237
452
  # @param params [Hash] Additional query string parameters
238
453
  # @param headers [Hash] Additional headers
239
454
  #
@@ -245,11 +460,33 @@ module ESI
245
460
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
246
461
  #
247
462
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
248
- def get_character_portrait(character_id:, params: {}, headers: {})
249
- get("/characters/#{character_id}/portrait/", headers: headers, params: params)
463
+ def get_character_portrait(character_id:, headers: {}, params: {})
464
+ get_character_portrait_raw(character_id: character_id, headers: headers, params: params).json
250
465
  end
251
466
  alias get_characters_character_id_portrait get_character_portrait
252
467
 
468
+ # Get portrait urls for a character.
469
+ #
470
+ # @esi_version dev
471
+ # @esi_version v2
472
+ # @esi_version v3
473
+ #
474
+ # @param character_id [Integer] An EVE character ID
475
+ # @param params [Hash] Additional query string parameters
476
+ # @param headers [Hash] Additional headers
477
+ #
478
+ # @raise [ESI::Errors::BadRequestError] Bad request
479
+ # @raise [ESI::Errors::NotFoundError] No image server for this datasource
480
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
481
+ # @raise [ESI::Errors::InternalServerError] Internal server error
482
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
483
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
484
+ #
485
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
486
+ def get_character_portrait_raw(character_id:, headers: {}, params: {})
487
+ get("/characters/#{character_id}/portrait/", headers: headers, params: params)
488
+ end
489
+
253
490
  # Returns a character's corporation roles.
254
491
  #
255
492
  # This endpoint is cached for up to 3600 seconds.
@@ -261,7 +498,7 @@ module ESI
261
498
  # @esi_version dev
262
499
  # @esi_version v3
263
500
  #
264
- # @param character_id [Integer,String] An EVE character ID
501
+ # @param character_id [Integer] An EVE character ID
265
502
  # @param params [Hash] Additional query string parameters
266
503
  # @param headers [Hash] Additional headers
267
504
  #
@@ -274,11 +511,39 @@ module ESI
274
511
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
275
512
  #
276
513
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_roles
277
- def get_character_roles(character_id:, params: {}, headers: {})
278
- get("/characters/#{character_id}/roles/", headers: headers, params: params)
514
+ def get_character_roles(character_id:, headers: {}, params: {})
515
+ get_character_roles_raw(character_id: character_id, headers: headers, params: params).json
279
516
  end
280
517
  alias get_characters_character_id_roles get_character_roles
281
518
 
519
+ # Returns a character's corporation roles.
520
+ #
521
+ # This endpoint is cached for up to 3600 seconds.
522
+ #
523
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
524
+ #
525
+ # @esi_scope esi-characters.read_corporation_roles.v1
526
+ #
527
+ # @esi_version dev
528
+ # @esi_version v3
529
+ #
530
+ # @param character_id [Integer] An EVE character ID
531
+ # @param params [Hash] Additional query string parameters
532
+ # @param headers [Hash] Additional headers
533
+ #
534
+ # @raise [ESI::Errors::BadRequestError] Bad request
535
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
536
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
537
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
538
+ # @raise [ESI::Errors::InternalServerError] Internal server error
539
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
540
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
541
+ #
542
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_roles
543
+ def get_character_roles_raw(character_id:, headers: {}, params: {})
544
+ get("/characters/#{character_id}/roles/", headers: headers, params: params)
545
+ end
546
+
282
547
  # Return character standings from agents, NPC corporations, and factions.
283
548
  #
284
549
  # This endpoint is cached for up to 3600 seconds.
@@ -290,7 +555,7 @@ module ESI
290
555
  # @esi_version dev
291
556
  # @esi_version v2
292
557
  #
293
- # @param character_id [Integer,String] An EVE character ID
558
+ # @param character_id [Integer] An EVE character ID
294
559
  # @param params [Hash] Additional query string parameters
295
560
  # @param headers [Hash] Additional headers
296
561
  #
@@ -303,11 +568,39 @@ module ESI
303
568
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
304
569
  #
305
570
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
306
- def get_character_standings(character_id:, params: {}, headers: {})
307
- get("/characters/#{character_id}/standings/", headers: headers, params: params)
571
+ def get_character_standings(character_id:, headers: {}, params: {})
572
+ get_character_standings_raw(character_id: character_id, headers: headers, params: params).json
308
573
  end
309
574
  alias get_characters_character_id_standings get_character_standings
310
575
 
576
+ # Return character standings from agents, NPC corporations, and factions.
577
+ #
578
+ # This endpoint is cached for up to 3600 seconds.
579
+ #
580
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
581
+ #
582
+ # @esi_scope esi-characters.read_standings.v1
583
+ #
584
+ # @esi_version dev
585
+ # @esi_version v2
586
+ #
587
+ # @param character_id [Integer] An EVE character ID
588
+ # @param params [Hash] Additional query string parameters
589
+ # @param headers [Hash] Additional headers
590
+ #
591
+ # @raise [ESI::Errors::BadRequestError] Bad request
592
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
593
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
594
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
595
+ # @raise [ESI::Errors::InternalServerError] Internal server error
596
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
597
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
598
+ #
599
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
600
+ def get_character_standings_raw(character_id:, headers: {}, params: {})
601
+ get("/characters/#{character_id}/standings/", headers: headers, params: params)
602
+ end
603
+
311
604
  # Returns a character's titles.
312
605
  #
313
606
  # This endpoint is cached for up to 3600 seconds.
@@ -319,7 +612,7 @@ module ESI
319
612
  # @esi_version dev
320
613
  # @esi_version v2
321
614
  #
322
- # @param character_id [Integer,String] An EVE character ID
615
+ # @param character_id [Integer] An EVE character ID
323
616
  # @param params [Hash] Additional query string parameters
324
617
  # @param headers [Hash] Additional headers
325
618
  #
@@ -332,11 +625,39 @@ module ESI
332
625
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
333
626
  #
334
627
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
335
- def get_character_titles(character_id:, params: {}, headers: {})
336
- get("/characters/#{character_id}/titles/", headers: headers, params: params)
628
+ def get_character_titles(character_id:, headers: {}, params: {})
629
+ get_character_titles_raw(character_id: character_id, headers: headers, params: params).json
337
630
  end
338
631
  alias get_characters_character_id_titles get_character_titles
339
632
 
633
+ # Returns a character's titles.
634
+ #
635
+ # This endpoint is cached for up to 3600 seconds.
636
+ #
637
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
638
+ #
639
+ # @esi_scope esi-characters.read_titles.v1
640
+ #
641
+ # @esi_version dev
642
+ # @esi_version v2
643
+ #
644
+ # @param character_id [Integer] An EVE character ID
645
+ # @param params [Hash] Additional query string parameters
646
+ # @param headers [Hash] Additional headers
647
+ #
648
+ # @raise [ESI::Errors::BadRequestError] Bad request
649
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
650
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
651
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
652
+ # @raise [ESI::Errors::InternalServerError] Internal server error
653
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
654
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
655
+ #
656
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
657
+ def get_character_titles_raw(character_id:, headers: {}, params: {})
658
+ get("/characters/#{character_id}/titles/", headers: headers, params: params)
659
+ end
660
+
340
661
  # Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost.
341
662
  #
342
663
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -346,8 +667,9 @@ module ESI
346
667
  # @esi_version dev
347
668
  # @esi_version v5
348
669
  #
349
- # @param character_id [Integer,String] An EVE character ID
670
+ # @param character_id [Integer] An EVE character ID
350
671
  # @param characters [Array] The target characters to calculate the charge for
672
+ # @param params [Hash] Additional query string parameters
351
673
  # @param headers [Hash] Additional headers
352
674
  #
353
675
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -359,11 +681,60 @@ module ESI
359
681
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
360
682
  #
361
683
  # @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
362
- def post_character_cspa(character_id:, characters:, headers: {})
363
- post("/characters/#{character_id}/cspa/", headers: headers, payload: characters)
684
+ def post_character_cspa(character_id:, characters:, headers: {}, params: {})
685
+ post_character_cspa_raw(character_id: character_id, characters: characters, headers: headers, params: params).json
364
686
  end
365
687
  alias post_characters_character_id_cspa post_character_cspa
366
688
 
689
+ # Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost.
690
+ #
691
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
692
+ #
693
+ # @esi_scope esi-characters.read_contacts.v1
694
+ #
695
+ # @esi_version dev
696
+ # @esi_version v5
697
+ #
698
+ # @param character_id [Integer] An EVE character ID
699
+ # @param characters [Array] The target characters to calculate the charge for
700
+ # @param params [Hash] Additional query string parameters
701
+ # @param headers [Hash] Additional headers
702
+ #
703
+ # @raise [ESI::Errors::BadRequestError] Bad request
704
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
705
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
706
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
707
+ # @raise [ESI::Errors::InternalServerError] Internal server error
708
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
709
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
710
+ #
711
+ # @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
712
+ def post_character_cspa_raw(character_id:, characters:, headers: {}, params: {})
713
+ post("/characters/#{character_id}/cspa/", headers: headers, params: params, payload: characters)
714
+ end
715
+
716
+ # Bulk lookup of character IDs to corporation, alliance and faction.
717
+ #
718
+ # This endpoint is cached for up to 3600 seconds.
719
+ #
720
+ # @esi_version dev
721
+ # @esi_version v2
722
+ #
723
+ # @param characters [Array] The character IDs to fetch affiliations for. All characters must exist, or none will be returned
724
+ # @param params [Hash] Additional query string parameters
725
+ # @param headers [Hash] Additional headers
726
+ #
727
+ # @raise [ESI::Errors::BadRequestError] Bad request
728
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
729
+ # @raise [ESI::Errors::InternalServerError] Internal server error
730
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
731
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
732
+ #
733
+ # @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
734
+ def post_characters_affiliation(characters:, headers: {}, params: {})
735
+ post_characters_affiliation_raw(characters: characters, headers: headers, params: params).json
736
+ end
737
+
367
738
  # Bulk lookup of character IDs to corporation, alliance and faction.
368
739
  #
369
740
  # This endpoint is cached for up to 3600 seconds.
@@ -372,6 +743,7 @@ module ESI
372
743
  # @esi_version v2
373
744
  #
374
745
  # @param characters [Array] The character IDs to fetch affiliations for. All characters must exist, or none will be returned
746
+ # @param params [Hash] Additional query string parameters
375
747
  # @param headers [Hash] Additional headers
376
748
  #
377
749
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -381,8 +753,8 @@ module ESI
381
753
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
382
754
  #
383
755
  # @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
384
- def post_characters_affiliation(characters:, headers: {})
385
- post("/characters/affiliation/", headers: headers, payload: characters)
756
+ def post_characters_affiliation_raw(characters:, headers: {}, params: {})
757
+ post("/characters/affiliation/", headers: headers, params: params, payload: characters)
386
758
  end
387
759
  end
388
760
  end