esi-sdk 1.1.2 → 2.1.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.
- 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
data/lib/esi/client/market.rb
CHANGED
@@ -15,7 +15,7 @@ module ESI
|
|
15
15
|
# @esi_version dev
|
16
16
|
# @esi_version v2
|
17
17
|
#
|
18
|
-
# @param character_id [Integer
|
18
|
+
# @param character_id [Integer] An EVE character ID
|
19
19
|
# @param params [Hash] Additional query string parameters
|
20
20
|
# @param headers [Hash] Additional headers
|
21
21
|
#
|
@@ -28,11 +28,39 @@ module ESI
|
|
28
28
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders
|
31
|
-
def get_character_orders(character_id:,
|
32
|
-
|
31
|
+
def get_character_orders(character_id:, headers: {}, params: {})
|
32
|
+
get_character_orders_raw(character_id: character_id, headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias get_characters_character_id_orders get_character_orders
|
35
35
|
|
36
|
+
# List open market orders placed by a character.
|
37
|
+
#
|
38
|
+
# This endpoint is cached for up to 1200 seconds.
|
39
|
+
#
|
40
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
41
|
+
#
|
42
|
+
# @esi_scope esi-markets.read_character_orders.v1
|
43
|
+
#
|
44
|
+
# @esi_version dev
|
45
|
+
# @esi_version v2
|
46
|
+
#
|
47
|
+
# @param character_id [Integer] An EVE character ID
|
48
|
+
# @param params [Hash] Additional query string parameters
|
49
|
+
# @param headers [Hash] Additional headers
|
50
|
+
#
|
51
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
52
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
53
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
54
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
55
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
56
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
57
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
58
|
+
#
|
59
|
+
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders
|
60
|
+
def get_character_orders_raw(character_id:, headers: {}, params: {})
|
61
|
+
get("/characters/#{character_id}/orders/", headers: headers, params: params)
|
62
|
+
end
|
63
|
+
|
36
64
|
# List cancelled and expired market orders placed by a character up to 90 days in the past.
|
37
65
|
#
|
38
66
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -45,7 +73,7 @@ module ESI
|
|
45
73
|
# @esi_version legacy
|
46
74
|
# @esi_version v1
|
47
75
|
#
|
48
|
-
# @param character_id [Integer
|
76
|
+
# @param character_id [Integer] An EVE character ID
|
49
77
|
# @param params [Hash] Additional query string parameters
|
50
78
|
# @param headers [Hash] Additional headers
|
51
79
|
#
|
@@ -58,11 +86,41 @@ module ESI
|
|
58
86
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
59
87
|
#
|
60
88
|
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders_history
|
61
|
-
def get_character_orders_history(character_id:,
|
62
|
-
|
89
|
+
def get_character_orders_history(character_id:, headers: {}, params: {})
|
90
|
+
responses = get_character_orders_history_raw(character_id: character_id, headers: headers, params: params)
|
91
|
+
responses.map(&:json).reduce([], :concat)
|
63
92
|
end
|
64
93
|
alias get_characters_character_id_orders_history get_character_orders_history
|
65
94
|
|
95
|
+
# List cancelled and expired market orders placed by a character up to 90 days in the past.
|
96
|
+
#
|
97
|
+
# This endpoint is cached for up to 3600 seconds.
|
98
|
+
#
|
99
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
100
|
+
#
|
101
|
+
# @esi_scope esi-markets.read_character_orders.v1
|
102
|
+
#
|
103
|
+
# @esi_version dev
|
104
|
+
# @esi_version legacy
|
105
|
+
# @esi_version v1
|
106
|
+
#
|
107
|
+
# @param character_id [Integer] An EVE character ID
|
108
|
+
# @param params [Hash] Additional query string parameters
|
109
|
+
# @param headers [Hash] Additional headers
|
110
|
+
#
|
111
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
112
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
113
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
114
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
115
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
116
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
117
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
118
|
+
#
|
119
|
+
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders_history
|
120
|
+
def get_character_orders_history_raw(character_id:, headers: {}, params: {})
|
121
|
+
get("/characters/#{character_id}/orders/history/", headers: headers, params: params)
|
122
|
+
end
|
123
|
+
|
66
124
|
# List open market orders placed on behalf of a corporation.
|
67
125
|
#
|
68
126
|
# This endpoint is cached for up to 1200 seconds.
|
@@ -74,7 +132,7 @@ module ESI
|
|
74
132
|
# @esi_version dev
|
75
133
|
# @esi_version v3
|
76
134
|
#
|
77
|
-
# @param corporation_id [Integer
|
135
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
78
136
|
# @param params [Hash] Additional query string parameters
|
79
137
|
# @param headers [Hash] Additional headers
|
80
138
|
#
|
@@ -87,11 +145,40 @@ module ESI
|
|
87
145
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
88
146
|
#
|
89
147
|
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders
|
90
|
-
def get_corporation_orders(corporation_id:,
|
91
|
-
|
148
|
+
def get_corporation_orders(corporation_id:, headers: {}, params: {})
|
149
|
+
responses = get_corporation_orders_raw(corporation_id: corporation_id, headers: headers, params: params)
|
150
|
+
responses.map(&:json).reduce([], :concat)
|
92
151
|
end
|
93
152
|
alias get_corporations_corporation_id_orders get_corporation_orders
|
94
153
|
|
154
|
+
# List open market orders placed on behalf of a corporation.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 1200 seconds.
|
157
|
+
#
|
158
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
159
|
+
#
|
160
|
+
# @esi_scope esi-markets.read_corporation_orders.v1
|
161
|
+
#
|
162
|
+
# @esi_version dev
|
163
|
+
# @esi_version v3
|
164
|
+
#
|
165
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
166
|
+
# @param params [Hash] Additional query string parameters
|
167
|
+
# @param headers [Hash] Additional headers
|
168
|
+
#
|
169
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
170
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
171
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
172
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
173
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
174
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
175
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
176
|
+
#
|
177
|
+
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders
|
178
|
+
def get_corporation_orders_raw(corporation_id:, headers: {}, params: {})
|
179
|
+
get("/corporations/#{corporation_id}/orders/", headers: headers, params: params)
|
180
|
+
end
|
181
|
+
|
95
182
|
# List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
|
96
183
|
#
|
97
184
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -103,7 +190,7 @@ module ESI
|
|
103
190
|
# @esi_version dev
|
104
191
|
# @esi_version v2
|
105
192
|
#
|
106
|
-
# @param corporation_id [Integer
|
193
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
107
194
|
# @param params [Hash] Additional query string parameters
|
108
195
|
# @param headers [Hash] Additional headers
|
109
196
|
#
|
@@ -116,11 +203,40 @@ module ESI
|
|
116
203
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
117
204
|
#
|
118
205
|
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders_history
|
119
|
-
def get_corporation_orders_history(corporation_id:,
|
120
|
-
|
206
|
+
def get_corporation_orders_history(corporation_id:, headers: {}, params: {})
|
207
|
+
responses = get_corporation_orders_history_raw(corporation_id: corporation_id, headers: headers, params: params)
|
208
|
+
responses.map(&:json).reduce([], :concat)
|
121
209
|
end
|
122
210
|
alias get_corporations_corporation_id_orders_history get_corporation_orders_history
|
123
211
|
|
212
|
+
# List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
|
213
|
+
#
|
214
|
+
# This endpoint is cached for up to 3600 seconds.
|
215
|
+
#
|
216
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
217
|
+
#
|
218
|
+
# @esi_scope esi-markets.read_corporation_orders.v1
|
219
|
+
#
|
220
|
+
# @esi_version dev
|
221
|
+
# @esi_version v2
|
222
|
+
#
|
223
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
224
|
+
# @param params [Hash] Additional query string parameters
|
225
|
+
# @param headers [Hash] Additional headers
|
226
|
+
#
|
227
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
228
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
229
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
230
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
231
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
232
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
233
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
234
|
+
#
|
235
|
+
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders_history
|
236
|
+
def get_corporation_orders_history_raw(corporation_id:, headers: {}, params: {})
|
237
|
+
get("/corporations/#{corporation_id}/orders/history/", headers: headers, params: params)
|
238
|
+
end
|
239
|
+
|
124
240
|
# Get a list of item groups.
|
125
241
|
#
|
126
242
|
# @esi_version dev
|
@@ -137,18 +253,38 @@ module ESI
|
|
137
253
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
138
254
|
#
|
139
255
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups
|
140
|
-
def get_market_groups(
|
141
|
-
|
256
|
+
def get_market_groups(headers: {}, params: {})
|
257
|
+
get_market_groups_raw(headers: headers, params: params).json
|
142
258
|
end
|
143
259
|
alias get_markets_groups get_market_groups
|
144
260
|
|
261
|
+
# Get a list of item groups.
|
262
|
+
#
|
263
|
+
# @esi_version dev
|
264
|
+
# @esi_version legacy
|
265
|
+
# @esi_version v1
|
266
|
+
#
|
267
|
+
# @param params [Hash] Additional query string parameters
|
268
|
+
# @param headers [Hash] Additional headers
|
269
|
+
#
|
270
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
271
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
272
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
273
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
274
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
275
|
+
#
|
276
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups
|
277
|
+
def get_market_groups_raw(headers: {}, params: {})
|
278
|
+
get("/markets/groups/", headers: headers, params: params)
|
279
|
+
end
|
280
|
+
|
145
281
|
# Get information on an item group.
|
146
282
|
#
|
147
283
|
# @esi_version dev
|
148
284
|
# @esi_version legacy
|
149
285
|
# @esi_version v1
|
150
286
|
#
|
151
|
-
# @param market_group_id [Integer
|
287
|
+
# @param market_group_id [Integer] An Eve item group ID
|
152
288
|
# @param params [Hash] Additional query string parameters
|
153
289
|
# @param headers [Hash] Additional headers
|
154
290
|
#
|
@@ -160,11 +296,33 @@ module ESI
|
|
160
296
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
161
297
|
#
|
162
298
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups_market_group_id
|
163
|
-
def get_market_groups_market_group(market_group_id:,
|
164
|
-
|
299
|
+
def get_market_groups_market_group(market_group_id:, headers: {}, params: {})
|
300
|
+
get_market_groups_market_group_raw(market_group_id: market_group_id, headers: headers, params: params).json
|
165
301
|
end
|
166
302
|
alias get_markets_groups_market_group_id get_market_groups_market_group
|
167
303
|
|
304
|
+
# Get information on an item group.
|
305
|
+
#
|
306
|
+
# @esi_version dev
|
307
|
+
# @esi_version legacy
|
308
|
+
# @esi_version v1
|
309
|
+
#
|
310
|
+
# @param market_group_id [Integer] An Eve item group ID
|
311
|
+
# @param params [Hash] Additional query string parameters
|
312
|
+
# @param headers [Hash] Additional headers
|
313
|
+
#
|
314
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
315
|
+
# @raise [ESI::Errors::NotFoundError] Market group not found
|
316
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
317
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
318
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
319
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
320
|
+
#
|
321
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups_market_group_id
|
322
|
+
def get_market_groups_market_group_raw(market_group_id:, headers: {}, params: {})
|
323
|
+
get("/markets/groups/#{market_group_id}/", headers: headers, params: params)
|
324
|
+
end
|
325
|
+
|
168
326
|
# Return a list of prices.
|
169
327
|
#
|
170
328
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -183,18 +341,40 @@ module ESI
|
|
183
341
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
184
342
|
#
|
185
343
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_prices
|
186
|
-
def get_market_prices(
|
187
|
-
|
344
|
+
def get_market_prices(headers: {}, params: {})
|
345
|
+
get_market_prices_raw(headers: headers, params: params).json
|
188
346
|
end
|
189
347
|
alias get_markets_prices get_market_prices
|
190
348
|
|
349
|
+
# Return a list of prices.
|
350
|
+
#
|
351
|
+
# This endpoint is cached for up to 3600 seconds.
|
352
|
+
#
|
353
|
+
# @esi_version dev
|
354
|
+
# @esi_version legacy
|
355
|
+
# @esi_version v1
|
356
|
+
#
|
357
|
+
# @param params [Hash] Additional query string parameters
|
358
|
+
# @param headers [Hash] Additional headers
|
359
|
+
#
|
360
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
361
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
362
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
363
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
364
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
365
|
+
#
|
366
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_prices
|
367
|
+
def get_market_prices_raw(headers: {}, params: {})
|
368
|
+
get("/markets/prices/", headers: headers, params: params)
|
369
|
+
end
|
370
|
+
|
191
371
|
# Return a list of historical market statistics for the specified type in a region.
|
192
372
|
#
|
193
373
|
# @esi_version dev
|
194
374
|
# @esi_version legacy
|
195
375
|
# @esi_version v1
|
196
376
|
#
|
197
|
-
# @param region_id [Integer
|
377
|
+
# @param region_id [Integer] Return statistics in this region
|
198
378
|
# @param type_id [Integer] Return statistics for this type
|
199
379
|
# @param params [Hash] Additional query string parameters
|
200
380
|
# @param headers [Hash] Additional headers
|
@@ -209,12 +389,37 @@ module ESI
|
|
209
389
|
# @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server
|
210
390
|
#
|
211
391
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_history
|
212
|
-
def get_markets_region_history(region_id:, type_id:,
|
213
|
-
|
214
|
-
get("/markets/#{region_id}/history/?#{query_string}", headers: headers, params: params)
|
392
|
+
def get_markets_region_history(region_id:, type_id:, headers: {}, params: {})
|
393
|
+
get_markets_region_history_raw(region_id: region_id, type_id: type_id, headers: headers, params: params).json
|
215
394
|
end
|
216
395
|
alias get_markets_region_id_history get_markets_region_history
|
217
396
|
|
397
|
+
# Return a list of historical market statistics for the specified type in a region.
|
398
|
+
#
|
399
|
+
# @esi_version dev
|
400
|
+
# @esi_version legacy
|
401
|
+
# @esi_version v1
|
402
|
+
#
|
403
|
+
# @param region_id [Integer] Return statistics in this region
|
404
|
+
# @param type_id [Integer] Return statistics for this type
|
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::NotFoundError] Type not found
|
410
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
411
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Not found
|
412
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
413
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
414
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
415
|
+
# @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server
|
416
|
+
#
|
417
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_history
|
418
|
+
def get_markets_region_history_raw(region_id:, type_id:, headers: {}, params: {})
|
419
|
+
params.merge!("type_id" => type_id)
|
420
|
+
get("/markets/#{region_id}/history/", headers: headers, params: params)
|
421
|
+
end
|
422
|
+
|
218
423
|
# Return a list of orders in a region.
|
219
424
|
#
|
220
425
|
# This endpoint is cached for up to 300 seconds.
|
@@ -223,8 +428,8 @@ module ESI
|
|
223
428
|
# @esi_version legacy
|
224
429
|
# @esi_version v1
|
225
430
|
#
|
226
|
-
# @param region_id [Integer
|
227
|
-
# @param order_type [String] Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders
|
431
|
+
# @param region_id [Integer] Return orders in this region
|
432
|
+
# @param order_type [String] Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. Must be one of: `buy`, `sell`, `all`
|
228
433
|
# @param type_id [Integer] Return orders only for this type
|
229
434
|
# @param params [Hash] Additional query string parameters
|
230
435
|
# @param headers [Hash] Additional headers
|
@@ -238,12 +443,41 @@ module ESI
|
|
238
443
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
239
444
|
#
|
240
445
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_orders
|
241
|
-
def get_markets_region_orders(region_id:, order_type
|
242
|
-
|
243
|
-
|
446
|
+
def get_markets_region_orders(region_id:, order_type: "all", type_id: nil, headers: {}, params: {})
|
447
|
+
params.merge!("order_type" => order_type, "type_id" => type_id)
|
448
|
+
responses = get_markets_region_orders_raw(region_id: region_id, order_type: order_type, type_id: type_id, headers: headers, params: params)
|
449
|
+
responses.map(&:json).reduce([], :concat)
|
244
450
|
end
|
245
451
|
alias get_markets_region_id_orders get_markets_region_orders
|
246
452
|
|
453
|
+
# Return a list of orders in a region.
|
454
|
+
#
|
455
|
+
# This endpoint is cached for up to 300 seconds.
|
456
|
+
#
|
457
|
+
# @esi_version dev
|
458
|
+
# @esi_version legacy
|
459
|
+
# @esi_version v1
|
460
|
+
#
|
461
|
+
# @param region_id [Integer] Return orders in this region
|
462
|
+
# @param order_type [String] Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. Must be one of: `buy`, `sell`, `all`
|
463
|
+
# @param type_id [Integer] Return orders only for this type
|
464
|
+
# @param params [Hash] Additional query string parameters
|
465
|
+
# @param headers [Hash] Additional headers
|
466
|
+
#
|
467
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
468
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
469
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
470
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Not found
|
471
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
472
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
473
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
474
|
+
#
|
475
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_orders
|
476
|
+
def get_markets_region_orders_raw(region_id:, order_type: "all", type_id: nil, headers: {}, params: {})
|
477
|
+
params.merge!("order_type" => order_type, "type_id" => type_id)
|
478
|
+
get("/markets/#{region_id}/orders/", headers: headers, params: params)
|
479
|
+
end
|
480
|
+
|
247
481
|
# Return a list of type IDs that have active orders in the region, for efficient market indexing.
|
248
482
|
#
|
249
483
|
# This endpoint is cached for up to 600 seconds.
|
@@ -252,7 +486,7 @@ module ESI
|
|
252
486
|
# @esi_version legacy
|
253
487
|
# @esi_version v1
|
254
488
|
#
|
255
|
-
# @param region_id [Integer
|
489
|
+
# @param region_id [Integer] Return statistics in this region
|
256
490
|
# @param params [Hash] Additional query string parameters
|
257
491
|
# @param headers [Hash] Additional headers
|
258
492
|
#
|
@@ -263,11 +497,35 @@ module ESI
|
|
263
497
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
264
498
|
#
|
265
499
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_types
|
266
|
-
def get_markets_region_types(region_id:,
|
267
|
-
|
500
|
+
def get_markets_region_types(region_id:, headers: {}, params: {})
|
501
|
+
responses = get_markets_region_types_raw(region_id: region_id, headers: headers, params: params)
|
502
|
+
responses.map(&:json).reduce([], :concat)
|
268
503
|
end
|
269
504
|
alias get_markets_region_id_types get_markets_region_types
|
270
505
|
|
506
|
+
# Return a list of type IDs that have active orders in the region, for efficient market indexing.
|
507
|
+
#
|
508
|
+
# This endpoint is cached for up to 600 seconds.
|
509
|
+
#
|
510
|
+
# @esi_version dev
|
511
|
+
# @esi_version legacy
|
512
|
+
# @esi_version v1
|
513
|
+
#
|
514
|
+
# @param region_id [Integer] Return statistics in this region
|
515
|
+
# @param params [Hash] Additional query string parameters
|
516
|
+
# @param headers [Hash] Additional headers
|
517
|
+
#
|
518
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
519
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
520
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
521
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
522
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
523
|
+
#
|
524
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_types
|
525
|
+
def get_markets_region_types_raw(region_id:, headers: {}, params: {})
|
526
|
+
get("/markets/#{region_id}/types/", headers: headers, params: params)
|
527
|
+
end
|
528
|
+
|
271
529
|
# Return all orders in a structure.
|
272
530
|
#
|
273
531
|
# This endpoint is cached for up to 300 seconds.
|
@@ -280,7 +538,7 @@ module ESI
|
|
280
538
|
# @esi_version legacy
|
281
539
|
# @esi_version v1
|
282
540
|
#
|
283
|
-
# @param structure_id [Integer
|
541
|
+
# @param structure_id [Integer] Return orders in this structure
|
284
542
|
# @param params [Hash] Additional query string parameters
|
285
543
|
# @param headers [Hash] Additional headers
|
286
544
|
#
|
@@ -293,10 +551,40 @@ module ESI
|
|
293
551
|
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
294
552
|
#
|
295
553
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_structures_structure_id
|
296
|
-
def get_markets_structure(structure_id:,
|
297
|
-
|
554
|
+
def get_markets_structure(structure_id:, headers: {}, params: {})
|
555
|
+
responses = get_markets_structure_raw(structure_id: structure_id, headers: headers, params: params)
|
556
|
+
responses.map(&:json).reduce([], :concat)
|
298
557
|
end
|
299
558
|
alias get_markets_structures_structure_id get_markets_structure
|
559
|
+
|
560
|
+
# Return all orders in a structure.
|
561
|
+
#
|
562
|
+
# This endpoint is cached for up to 300 seconds.
|
563
|
+
#
|
564
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
565
|
+
#
|
566
|
+
# @esi_scope esi-markets.structure_markets.v1
|
567
|
+
#
|
568
|
+
# @esi_version dev
|
569
|
+
# @esi_version legacy
|
570
|
+
# @esi_version v1
|
571
|
+
#
|
572
|
+
# @param structure_id [Integer] Return orders in this structure
|
573
|
+
# @param params [Hash] Additional query string parameters
|
574
|
+
# @param headers [Hash] Additional headers
|
575
|
+
#
|
576
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
577
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
578
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
579
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
580
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
581
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
582
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
583
|
+
#
|
584
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_structures_structure_id
|
585
|
+
def get_markets_structure_raw(structure_id:, headers: {}, params: {})
|
586
|
+
get("/markets/structures/#{structure_id}/", headers: headers, params: params)
|
587
|
+
end
|
300
588
|
end
|
301
589
|
end
|
302
590
|
end
|