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.
- checksums.yaml +4 -4
- data/.github/workflows/cicd.yml +17 -2
- data/.gitignore +2 -0
- data/CHANGELOG.md +38 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +21 -40
- data/README.md +2 -0
- data/Rakefile +75 -37
- data/bin/console +1 -1
- data/esi-sdk.gemspec +2 -3
- data/lib/esi/client/alliance.rb +103 -10
- data/lib/esi/client/assets.rb +193 -18
- data/lib/esi/client/bookmarks.rb +130 -12
- data/lib/esi/client/calendar.rb +144 -16
- data/lib/esi/client/character.rb +414 -42
- data/lib/esi/client/clones.rb +65 -6
- data/lib/esi/client/contacts.rb +294 -30
- data/lib/esi/client/contracts.rb +294 -31
- data/lib/esi/client/corporation.rb +755 -152
- data/lib/esi/client/dogma.rb +118 -12
- data/lib/esi/client/faction_warfare.rb +198 -14
- data/lib/esi/client/fittings.rb +94 -10
- data/lib/esi/client/fleets.rb +469 -49
- data/lib/esi/client/incursions.rb +23 -1
- data/lib/esi/client/industry.rb +250 -23
- data/lib/esi/client/insurance.rb +23 -1
- data/lib/esi/client/killmails.rb +95 -10
- data/lib/esi/client/location.rb +98 -9
- data/lib/esi/client/loyalty.rb +57 -6
- data/lib/esi/client/mail.rb +262 -28
- data/lib/esi/client/market.rb +322 -34
- data/lib/esi/client/opportunities.rb +124 -13
- data/lib/esi/client/planetary_interaction.rb +124 -13
- data/lib/esi/client/routes.rb +34 -6
- data/lib/esi/client/search.rb +64 -7
- data/lib/esi/client/skills.rb +95 -9
- data/lib/esi/client/sovereignty.rb +69 -3
- data/lib/esi/client/status.rb +24 -1
- data/lib/esi/client/universe.rb +817 -194
- data/lib/esi/client/user_interface.rb +157 -14
- data/lib/esi/client/wallet.rb +199 -22
- data/lib/esi/client/wars.rb +81 -9
- data/lib/esi/client.rb +74 -82
- data/lib/esi/errors.rb +12 -1
- data/lib/esi/version.rb +1 -1
- data/package.json +19 -0
- data/release.config.js +2 -2
- data/yarn.lock +3695 -0
- metadata +10 -22
@@ -22,7 +22,29 @@ module ESI
|
|
22
22
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
23
23
|
#
|
24
24
|
# @see https://esi.evetech.net/ui/#/Incursions/get_incursions
|
25
|
-
def get_incursions(
|
25
|
+
def get_incursions(headers: {}, params: {})
|
26
|
+
get_incursions_raw(headers: headers, params: params).json
|
27
|
+
end
|
28
|
+
|
29
|
+
# Return a list of current incursions.
|
30
|
+
#
|
31
|
+
# This endpoint is cached for up to 300 seconds.
|
32
|
+
#
|
33
|
+
# @esi_version dev
|
34
|
+
# @esi_version legacy
|
35
|
+
# @esi_version v1
|
36
|
+
#
|
37
|
+
# @param params [Hash] Additional query string parameters
|
38
|
+
# @param headers [Hash] Additional headers
|
39
|
+
#
|
40
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
41
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
42
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
43
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
44
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
45
|
+
#
|
46
|
+
# @see https://esi.evetech.net/ui/#/Incursions/get_incursions
|
47
|
+
def get_incursions_raw(headers: {}, params: {})
|
26
48
|
get("/incursions/", headers: headers, params: params)
|
27
49
|
end
|
28
50
|
end
|
data/lib/esi/client/industry.rb
CHANGED
@@ -16,7 +16,7 @@ module ESI
|
|
16
16
|
# @esi_version legacy
|
17
17
|
# @esi_version v1
|
18
18
|
#
|
19
|
-
# @param character_id [Integer
|
19
|
+
# @param character_id [Integer] An EVE character ID
|
20
20
|
# @param include_completed [Boolean] Whether to retrieve completed character industry jobs. Only includes jobs from the past 90 days
|
21
21
|
# @param params [Hash] Additional query string parameters
|
22
22
|
# @param headers [Hash] Additional headers
|
@@ -30,12 +30,42 @@ module ESI
|
|
30
30
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
31
31
|
#
|
32
32
|
# @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_industry_jobs
|
33
|
-
def get_character_industry_jobs(character_id:, include_completed
|
34
|
-
|
35
|
-
get("/characters/#{character_id}/industry/jobs/?#{query_string}", headers: headers, params: params)
|
33
|
+
def get_character_industry_jobs(character_id:, include_completed: nil, headers: {}, params: {})
|
34
|
+
get_character_industry_jobs_raw(character_id: character_id, include_completed: include_completed, headers: headers, params: params).json
|
36
35
|
end
|
37
36
|
alias get_characters_character_id_industry_jobs get_character_industry_jobs
|
38
37
|
|
38
|
+
# List industry jobs placed by a character.
|
39
|
+
#
|
40
|
+
# This endpoint is cached for up to 300 seconds.
|
41
|
+
#
|
42
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
43
|
+
#
|
44
|
+
# @esi_scope esi-industry.read_character_jobs.v1
|
45
|
+
#
|
46
|
+
# @esi_version dev
|
47
|
+
# @esi_version legacy
|
48
|
+
# @esi_version v1
|
49
|
+
#
|
50
|
+
# @param character_id [Integer] An EVE character ID
|
51
|
+
# @param include_completed [Boolean] Whether to retrieve completed character industry jobs. Only includes jobs from the past 90 days
|
52
|
+
# @param params [Hash] Additional query string parameters
|
53
|
+
# @param headers [Hash] Additional headers
|
54
|
+
#
|
55
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
56
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
57
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
58
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
59
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
60
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
61
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
62
|
+
#
|
63
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_industry_jobs
|
64
|
+
def get_character_industry_jobs_raw(character_id:, include_completed: nil, headers: {}, params: {})
|
65
|
+
params.merge!("include_completed" => include_completed)
|
66
|
+
get("/characters/#{character_id}/industry/jobs/", headers: headers, params: params)
|
67
|
+
end
|
68
|
+
|
39
69
|
# Paginated record of all mining done by a character for the past 30 days.
|
40
70
|
#
|
41
71
|
# This endpoint is cached for up to 600 seconds.
|
@@ -48,7 +78,7 @@ module ESI
|
|
48
78
|
# @esi_version legacy
|
49
79
|
# @esi_version v1
|
50
80
|
#
|
51
|
-
# @param character_id [Integer
|
81
|
+
# @param character_id [Integer] An EVE character ID
|
52
82
|
# @param params [Hash] Additional query string parameters
|
53
83
|
# @param headers [Hash] Additional headers
|
54
84
|
#
|
@@ -61,11 +91,41 @@ module ESI
|
|
61
91
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
62
92
|
#
|
63
93
|
# @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_mining
|
64
|
-
def get_character_mining(character_id:,
|
65
|
-
|
94
|
+
def get_character_mining(character_id:, headers: {}, params: {})
|
95
|
+
responses = get_character_mining_raw(character_id: character_id, headers: headers, params: params)
|
96
|
+
responses.map(&:json).reduce([], :concat)
|
66
97
|
end
|
67
98
|
alias get_characters_character_id_mining get_character_mining
|
68
99
|
|
100
|
+
# Paginated record of all mining done by a character for the past 30 days.
|
101
|
+
#
|
102
|
+
# This endpoint is cached for up to 600 seconds.
|
103
|
+
#
|
104
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
105
|
+
#
|
106
|
+
# @esi_scope esi-industry.read_character_mining.v1
|
107
|
+
#
|
108
|
+
# @esi_version dev
|
109
|
+
# @esi_version legacy
|
110
|
+
# @esi_version v1
|
111
|
+
#
|
112
|
+
# @param character_id [Integer] An EVE character ID
|
113
|
+
# @param params [Hash] Additional query string parameters
|
114
|
+
# @param headers [Hash] Additional headers
|
115
|
+
#
|
116
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
117
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
118
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
119
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
120
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
121
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
122
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
123
|
+
#
|
124
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_characters_character_id_mining
|
125
|
+
def get_character_mining_raw(character_id:, headers: {}, params: {})
|
126
|
+
get("/characters/#{character_id}/mining/", headers: headers, params: params)
|
127
|
+
end
|
128
|
+
|
69
129
|
# List industry jobs run by a corporation.
|
70
130
|
#
|
71
131
|
# This endpoint is cached for up to 300 seconds.
|
@@ -78,7 +138,7 @@ module ESI
|
|
78
138
|
# @esi_version legacy
|
79
139
|
# @esi_version v1
|
80
140
|
#
|
81
|
-
# @param corporation_id [Integer
|
141
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
82
142
|
# @param include_completed [Boolean] Whether to retrieve completed corporation industry jobs. Only includes jobs from the past 90 days
|
83
143
|
# @param params [Hash] Additional query string parameters
|
84
144
|
# @param headers [Hash] Additional headers
|
@@ -92,12 +152,44 @@ module ESI
|
|
92
152
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
93
153
|
#
|
94
154
|
# @see https://esi.evetech.net/ui/#/Industry/get_corporations_corporation_id_industry_jobs
|
95
|
-
def get_corporation_industry_jobs(corporation_id:, include_completed
|
96
|
-
|
97
|
-
|
155
|
+
def get_corporation_industry_jobs(corporation_id:, include_completed: nil, headers: {}, params: {})
|
156
|
+
params.merge!("include_completed" => include_completed)
|
157
|
+
responses = get_corporation_industry_jobs_raw(corporation_id: corporation_id, include_completed: include_completed, headers: headers, params: params)
|
158
|
+
responses.map(&:json).reduce([], :concat)
|
98
159
|
end
|
99
160
|
alias get_corporations_corporation_id_industry_jobs get_corporation_industry_jobs
|
100
161
|
|
162
|
+
# List industry jobs run by a corporation.
|
163
|
+
#
|
164
|
+
# This endpoint is cached for up to 300 seconds.
|
165
|
+
#
|
166
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
167
|
+
#
|
168
|
+
# @esi_scope esi-industry.read_corporation_jobs.v1
|
169
|
+
#
|
170
|
+
# @esi_version dev
|
171
|
+
# @esi_version legacy
|
172
|
+
# @esi_version v1
|
173
|
+
#
|
174
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
175
|
+
# @param include_completed [Boolean] Whether to retrieve completed corporation industry jobs. Only includes jobs from the past 90 days
|
176
|
+
# @param params [Hash] Additional query string parameters
|
177
|
+
# @param headers [Hash] Additional headers
|
178
|
+
#
|
179
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
180
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
181
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
182
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
183
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
184
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
185
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
186
|
+
#
|
187
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_corporations_corporation_id_industry_jobs
|
188
|
+
def get_corporation_industry_jobs_raw(corporation_id:, include_completed: nil, headers: {}, params: {})
|
189
|
+
params.merge!("include_completed" => include_completed)
|
190
|
+
get("/corporations/#{corporation_id}/industry/jobs/", headers: headers, params: params)
|
191
|
+
end
|
192
|
+
|
101
193
|
# Extraction timers for all moon chunks being extracted by refineries belonging to a corporation.
|
102
194
|
#
|
103
195
|
# This endpoint is cached for up to 1800 seconds.
|
@@ -110,7 +202,7 @@ module ESI
|
|
110
202
|
# @esi_version legacy
|
111
203
|
# @esi_version v1
|
112
204
|
#
|
113
|
-
# @param corporation_id [Integer
|
205
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
114
206
|
# @param params [Hash] Additional query string parameters
|
115
207
|
# @param headers [Hash] Additional headers
|
116
208
|
#
|
@@ -123,11 +215,41 @@ module ESI
|
|
123
215
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
124
216
|
#
|
125
217
|
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_extractions
|
126
|
-
def get_corporation_mining_extractions(corporation_id:,
|
127
|
-
|
218
|
+
def get_corporation_mining_extractions(corporation_id:, headers: {}, params: {})
|
219
|
+
responses = get_corporation_mining_extractions_raw(corporation_id: corporation_id, headers: headers, params: params)
|
220
|
+
responses.map(&:json).reduce([], :concat)
|
128
221
|
end
|
129
222
|
alias get_corporation_corporation_id_mining_extractions get_corporation_mining_extractions
|
130
223
|
|
224
|
+
# Extraction timers for all moon chunks being extracted by refineries belonging to a corporation.
|
225
|
+
#
|
226
|
+
# This endpoint is cached for up to 1800 seconds.
|
227
|
+
#
|
228
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
229
|
+
#
|
230
|
+
# @esi_scope esi-industry.read_corporation_mining.v1
|
231
|
+
#
|
232
|
+
# @esi_version dev
|
233
|
+
# @esi_version legacy
|
234
|
+
# @esi_version v1
|
235
|
+
#
|
236
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
237
|
+
# @param params [Hash] Additional query string parameters
|
238
|
+
# @param headers [Hash] Additional headers
|
239
|
+
#
|
240
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
241
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
242
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
243
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
244
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
245
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
246
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
247
|
+
#
|
248
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_extractions
|
249
|
+
def get_corporation_mining_extractions_raw(corporation_id:, headers: {}, params: {})
|
250
|
+
get("/corporation/#{corporation_id}/mining/extractions/", headers: headers, params: params)
|
251
|
+
end
|
252
|
+
|
131
253
|
# Paginated record of all mining seen by an observer.
|
132
254
|
#
|
133
255
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -140,8 +262,8 @@ module ESI
|
|
140
262
|
# @esi_version legacy
|
141
263
|
# @esi_version v1
|
142
264
|
#
|
143
|
-
# @param corporation_id [Integer
|
144
|
-
# @param observer_id [Integer
|
265
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
266
|
+
# @param observer_id [Integer] A mining observer id
|
145
267
|
# @param params [Hash] Additional query string parameters
|
146
268
|
# @param headers [Hash] Additional headers
|
147
269
|
#
|
@@ -154,11 +276,42 @@ module ESI
|
|
154
276
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
155
277
|
#
|
156
278
|
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers_observer_id
|
157
|
-
def get_corporation_mining_observer(corporation_id:, observer_id:,
|
158
|
-
|
279
|
+
def get_corporation_mining_observer(corporation_id:, observer_id:, headers: {}, params: {})
|
280
|
+
responses = get_corporation_mining_observer_raw(corporation_id: corporation_id, observer_id: observer_id, headers: headers, params: params)
|
281
|
+
responses.map(&:json).reduce([], :concat)
|
159
282
|
end
|
160
283
|
alias get_corporation_corporation_id_mining_observers_observer_id get_corporation_mining_observer
|
161
284
|
|
285
|
+
# Paginated record of all mining seen by an observer.
|
286
|
+
#
|
287
|
+
# This endpoint is cached for up to 3600 seconds.
|
288
|
+
#
|
289
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
290
|
+
#
|
291
|
+
# @esi_scope esi-industry.read_corporation_mining.v1
|
292
|
+
#
|
293
|
+
# @esi_version dev
|
294
|
+
# @esi_version legacy
|
295
|
+
# @esi_version v1
|
296
|
+
#
|
297
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
298
|
+
# @param observer_id [Integer] A mining observer id
|
299
|
+
# @param params [Hash] Additional query string parameters
|
300
|
+
# @param headers [Hash] Additional headers
|
301
|
+
#
|
302
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
303
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
304
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
305
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
306
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
307
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
308
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
309
|
+
#
|
310
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers_observer_id
|
311
|
+
def get_corporation_mining_observer_raw(corporation_id:, observer_id:, headers: {}, params: {})
|
312
|
+
get("/corporation/#{corporation_id}/mining/observers/#{observer_id}/", headers: headers, params: params)
|
313
|
+
end
|
314
|
+
|
162
315
|
# Paginated list of all entities capable of observing and recording mining for a corporation.
|
163
316
|
#
|
164
317
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -171,7 +324,7 @@ module ESI
|
|
171
324
|
# @esi_version legacy
|
172
325
|
# @esi_version v1
|
173
326
|
#
|
174
|
-
# @param corporation_id [Integer
|
327
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
175
328
|
# @param params [Hash] Additional query string parameters
|
176
329
|
# @param headers [Hash] Additional headers
|
177
330
|
#
|
@@ -184,11 +337,41 @@ module ESI
|
|
184
337
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
185
338
|
#
|
186
339
|
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers
|
187
|
-
def get_corporation_mining_observers(corporation_id:,
|
188
|
-
|
340
|
+
def get_corporation_mining_observers(corporation_id:, headers: {}, params: {})
|
341
|
+
responses = get_corporation_mining_observers_raw(corporation_id: corporation_id, headers: headers, params: params)
|
342
|
+
responses.map(&:json).reduce([], :concat)
|
189
343
|
end
|
190
344
|
alias get_corporation_corporation_id_mining_observers get_corporation_mining_observers
|
191
345
|
|
346
|
+
# Paginated list of all entities capable of observing and recording mining for a corporation.
|
347
|
+
#
|
348
|
+
# This endpoint is cached for up to 3600 seconds.
|
349
|
+
#
|
350
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
351
|
+
#
|
352
|
+
# @esi_scope esi-industry.read_corporation_mining.v1
|
353
|
+
#
|
354
|
+
# @esi_version dev
|
355
|
+
# @esi_version legacy
|
356
|
+
# @esi_version v1
|
357
|
+
#
|
358
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
359
|
+
# @param params [Hash] Additional query string parameters
|
360
|
+
# @param headers [Hash] Additional headers
|
361
|
+
#
|
362
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
363
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
364
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
365
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
366
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
367
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
368
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
369
|
+
#
|
370
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_corporation_corporation_id_mining_observers
|
371
|
+
def get_corporation_mining_observers_raw(corporation_id:, headers: {}, params: {})
|
372
|
+
get("/corporation/#{corporation_id}/mining/observers/", headers: headers, params: params)
|
373
|
+
end
|
374
|
+
|
192
375
|
# Return a list of industry facilities.
|
193
376
|
#
|
194
377
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -207,7 +390,29 @@ module ESI
|
|
207
390
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
208
391
|
#
|
209
392
|
# @see https://esi.evetech.net/ui/#/Industry/get_industry_facilities
|
210
|
-
def get_industry_facilities(
|
393
|
+
def get_industry_facilities(headers: {}, params: {})
|
394
|
+
get_industry_facilities_raw(headers: headers, params: params).json
|
395
|
+
end
|
396
|
+
|
397
|
+
# Return a list of industry facilities.
|
398
|
+
#
|
399
|
+
# This endpoint is cached for up to 3600 seconds.
|
400
|
+
#
|
401
|
+
# @esi_version dev
|
402
|
+
# @esi_version legacy
|
403
|
+
# @esi_version v1
|
404
|
+
#
|
405
|
+
# @param params [Hash] Additional query string parameters
|
406
|
+
# @param headers [Hash] Additional headers
|
407
|
+
#
|
408
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
409
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
410
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
411
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
412
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
413
|
+
#
|
414
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_industry_facilities
|
415
|
+
def get_industry_facilities_raw(headers: {}, params: {})
|
211
416
|
get("/industry/facilities/", headers: headers, params: params)
|
212
417
|
end
|
213
418
|
|
@@ -229,7 +434,29 @@ module ESI
|
|
229
434
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
230
435
|
#
|
231
436
|
# @see https://esi.evetech.net/ui/#/Industry/get_industry_systems
|
232
|
-
def get_industry_systems(
|
437
|
+
def get_industry_systems(headers: {}, params: {})
|
438
|
+
get_industry_systems_raw(headers: headers, params: params).json
|
439
|
+
end
|
440
|
+
|
441
|
+
# Return cost indices for solar systems.
|
442
|
+
#
|
443
|
+
# This endpoint is cached for up to 3600 seconds.
|
444
|
+
#
|
445
|
+
# @esi_version dev
|
446
|
+
# @esi_version legacy
|
447
|
+
# @esi_version v1
|
448
|
+
#
|
449
|
+
# @param params [Hash] Additional query string parameters
|
450
|
+
# @param headers [Hash] Additional headers
|
451
|
+
#
|
452
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
453
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
454
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
455
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
456
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
457
|
+
#
|
458
|
+
# @see https://esi.evetech.net/ui/#/Industry/get_industry_systems
|
459
|
+
def get_industry_systems_raw(headers: {}, params: {})
|
233
460
|
get("/industry/systems/", headers: headers, params: params)
|
234
461
|
end
|
235
462
|
end
|
data/lib/esi/client/insurance.rb
CHANGED
@@ -22,7 +22,29 @@ module ESI
|
|
22
22
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
23
23
|
#
|
24
24
|
# @see https://esi.evetech.net/ui/#/Insurance/get_insurance_prices
|
25
|
-
def get_insurance_prices(
|
25
|
+
def get_insurance_prices(headers: {}, params: {})
|
26
|
+
get_insurance_prices_raw(headers: headers, params: params).json
|
27
|
+
end
|
28
|
+
|
29
|
+
# Return available insurance levels for all ship types.
|
30
|
+
#
|
31
|
+
# This endpoint is cached for up to 3600 seconds.
|
32
|
+
#
|
33
|
+
# @esi_version dev
|
34
|
+
# @esi_version legacy
|
35
|
+
# @esi_version v1
|
36
|
+
#
|
37
|
+
# @param params [Hash] Additional query string parameters
|
38
|
+
# @param headers [Hash] Additional headers
|
39
|
+
#
|
40
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
41
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
42
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
43
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
44
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
45
|
+
#
|
46
|
+
# @see https://esi.evetech.net/ui/#/Insurance/get_insurance_prices
|
47
|
+
def get_insurance_prices_raw(headers: {}, params: {})
|
26
48
|
get("/insurance/prices/", headers: headers, params: params)
|
27
49
|
end
|
28
50
|
end
|
data/lib/esi/client/killmails.rb
CHANGED
@@ -16,7 +16,7 @@ module ESI
|
|
16
16
|
# @esi_version legacy
|
17
17
|
# @esi_version v1
|
18
18
|
#
|
19
|
-
# @param character_id [Integer
|
19
|
+
# @param character_id [Integer] An EVE character ID
|
20
20
|
# @param params [Hash] Additional query string parameters
|
21
21
|
# @param headers [Hash] Additional headers
|
22
22
|
#
|
@@ -29,11 +29,41 @@ module ESI
|
|
29
29
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
30
30
|
#
|
31
31
|
# @see https://esi.evetech.net/ui/#/Killmails/get_characters_character_id_killmails_recent
|
32
|
-
def get_character_killmails_recent(character_id:,
|
33
|
-
|
32
|
+
def get_character_killmails_recent(character_id:, headers: {}, params: {})
|
33
|
+
responses = get_character_killmails_recent_raw(character_id: character_id, headers: headers, params: params)
|
34
|
+
responses.map(&:json).reduce([], :concat)
|
34
35
|
end
|
35
36
|
alias get_characters_character_id_killmails_recent get_character_killmails_recent
|
36
37
|
|
38
|
+
# Return a list of a character's kills and losses going back 90 days.
|
39
|
+
#
|
40
|
+
# This endpoint is cached for up to 300 seconds.
|
41
|
+
#
|
42
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
43
|
+
#
|
44
|
+
# @esi_scope esi-killmails.read_killmails.v1
|
45
|
+
#
|
46
|
+
# @esi_version dev
|
47
|
+
# @esi_version legacy
|
48
|
+
# @esi_version v1
|
49
|
+
#
|
50
|
+
# @param character_id [Integer] An EVE character ID
|
51
|
+
# @param params [Hash] Additional query string parameters
|
52
|
+
# @param headers [Hash] Additional headers
|
53
|
+
#
|
54
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
55
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
56
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
57
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
58
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
59
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
60
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
61
|
+
#
|
62
|
+
# @see https://esi.evetech.net/ui/#/Killmails/get_characters_character_id_killmails_recent
|
63
|
+
def get_character_killmails_recent_raw(character_id:, headers: {}, params: {})
|
64
|
+
get("/characters/#{character_id}/killmails/recent/", headers: headers, params: params)
|
65
|
+
end
|
66
|
+
|
37
67
|
# Get a list of a corporation's kills and losses going back 90 days.
|
38
68
|
#
|
39
69
|
# This endpoint is cached for up to 300 seconds.
|
@@ -46,7 +76,7 @@ module ESI
|
|
46
76
|
# @esi_version legacy
|
47
77
|
# @esi_version v1
|
48
78
|
#
|
49
|
-
# @param corporation_id [Integer
|
79
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
50
80
|
# @param params [Hash] Additional query string parameters
|
51
81
|
# @param headers [Hash] Additional headers
|
52
82
|
#
|
@@ -59,11 +89,41 @@ module ESI
|
|
59
89
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
60
90
|
#
|
61
91
|
# @see https://esi.evetech.net/ui/#/Killmails/get_corporations_corporation_id_killmails_recent
|
62
|
-
def get_corporation_killmails_recent(corporation_id:,
|
63
|
-
|
92
|
+
def get_corporation_killmails_recent(corporation_id:, headers: {}, params: {})
|
93
|
+
responses = get_corporation_killmails_recent_raw(corporation_id: corporation_id, headers: headers, params: params)
|
94
|
+
responses.map(&:json).reduce([], :concat)
|
64
95
|
end
|
65
96
|
alias get_corporations_corporation_id_killmails_recent get_corporation_killmails_recent
|
66
97
|
|
98
|
+
# Get a list of a corporation's kills and losses going back 90 days.
|
99
|
+
#
|
100
|
+
# This endpoint is cached for up to 300 seconds.
|
101
|
+
#
|
102
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
103
|
+
#
|
104
|
+
# @esi_scope esi-killmails.read_corporation_killmails.v1
|
105
|
+
#
|
106
|
+
# @esi_version dev
|
107
|
+
# @esi_version legacy
|
108
|
+
# @esi_version v1
|
109
|
+
#
|
110
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
111
|
+
# @param params [Hash] Additional query string parameters
|
112
|
+
# @param headers [Hash] Additional headers
|
113
|
+
#
|
114
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
115
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
116
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
117
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
118
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
119
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
120
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
121
|
+
#
|
122
|
+
# @see https://esi.evetech.net/ui/#/Killmails/get_corporations_corporation_id_killmails_recent
|
123
|
+
def get_corporation_killmails_recent_raw(corporation_id:, headers: {}, params: {})
|
124
|
+
get("/corporations/#{corporation_id}/killmails/recent/", headers: headers, params: params)
|
125
|
+
end
|
126
|
+
|
67
127
|
# Return a single killmail from its ID and hash.
|
68
128
|
#
|
69
129
|
# This endpoint is cached for up to 30758400 seconds.
|
@@ -72,8 +132,8 @@ module ESI
|
|
72
132
|
# @esi_version legacy
|
73
133
|
# @esi_version v1
|
74
134
|
#
|
75
|
-
# @param killmail_hash [
|
76
|
-
# @param killmail_id [Integer
|
135
|
+
# @param killmail_hash [String] The killmail hash for verification
|
136
|
+
# @param killmail_id [Integer] The killmail ID to be queried
|
77
137
|
# @param params [Hash] Additional query string parameters
|
78
138
|
# @param headers [Hash] Additional headers
|
79
139
|
#
|
@@ -85,11 +145,36 @@ module ESI
|
|
85
145
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
86
146
|
#
|
87
147
|
# @see https://esi.evetech.net/ui/#/Killmails/get_killmails_killmail_id_killmail_hash
|
88
|
-
def get_killmail_killmail_hash(killmail_hash:, killmail_id:,
|
89
|
-
|
148
|
+
def get_killmail_killmail_hash(killmail_hash:, killmail_id:, headers: {}, params: {})
|
149
|
+
get_killmail_killmail_hash_raw(killmail_hash: killmail_hash, killmail_id: killmail_id, headers: headers, params: params).json
|
90
150
|
end
|
91
151
|
alias get_killmail get_killmail_killmail_hash
|
92
152
|
alias get_killmails_killmail_id_killmail_hash get_killmail_killmail_hash
|
153
|
+
|
154
|
+
# Return a single killmail from its ID and hash.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 30758400 seconds.
|
157
|
+
#
|
158
|
+
# @esi_version dev
|
159
|
+
# @esi_version legacy
|
160
|
+
# @esi_version v1
|
161
|
+
#
|
162
|
+
# @param killmail_hash [String] The killmail hash for verification
|
163
|
+
# @param killmail_id [Integer] The killmail ID to be queried
|
164
|
+
# @param params [Hash] Additional query string parameters
|
165
|
+
# @param headers [Hash] Additional headers
|
166
|
+
#
|
167
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
168
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
169
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Invalid killmail_id and/or killmail_hash
|
170
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
171
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
172
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
173
|
+
#
|
174
|
+
# @see https://esi.evetech.net/ui/#/Killmails/get_killmails_killmail_id_killmail_hash
|
175
|
+
def get_killmail_killmail_hash_raw(killmail_hash:, killmail_id:, headers: {}, params: {})
|
176
|
+
get("/killmails/#{killmail_id}/#{killmail_hash}/", headers: headers, params: params)
|
177
|
+
end
|
93
178
|
end
|
94
179
|
end
|
95
180
|
end
|