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.
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
@@ -15,7 +15,7 @@ module ESI
15
15
  # @esi_version dev
16
16
  # @esi_version v5
17
17
  #
18
- # @param character_id [Integer,String] An EVE character ID
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
  #
@@ -29,11 +29,41 @@ module ESI
29
29
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
30
30
  #
31
31
  # @see https://esi.evetech.net/ui/#/Assets/get_characters_character_id_assets
32
- def get_character_assets(character_id:, params: {}, headers: {})
33
- get("/characters/#{character_id}/assets/", headers: headers, params: params)
32
+ def get_character_assets(character_id:, headers: {}, params: {})
33
+ responses = get_character_assets_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_assets get_character_assets
36
37
 
38
+ # Return a list of the characters assets.
39
+ #
40
+ # This endpoint is cached for up to 3600 seconds.
41
+ #
42
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
43
+ #
44
+ # @esi_scope esi-assets.read_assets.v1
45
+ #
46
+ # @esi_version dev
47
+ # @esi_version v5
48
+ #
49
+ # @param character_id [Integer] An EVE character ID
50
+ # @param params [Hash] Additional query string parameters
51
+ # @param headers [Hash] Additional headers
52
+ #
53
+ # @raise [ESI::Errors::BadRequestError] Bad request
54
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
55
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
56
+ # @raise [ESI::Errors::NotFoundError] Requested page does not exist
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/#/Assets/get_characters_character_id_assets
63
+ def get_character_assets_raw(character_id:, headers: {}, params: {})
64
+ get("/characters/#{character_id}/assets/", headers: headers, params: params)
65
+ end
66
+
37
67
  # Return a list of the corporation assets.
38
68
  #
39
69
  # This endpoint is cached for up to 3600 seconds.
@@ -45,7 +75,7 @@ module ESI
45
75
  # @esi_version dev
46
76
  # @esi_version v5
47
77
  #
48
- # @param corporation_id [Integer,String] An EVE corporation ID
78
+ # @param corporation_id [Integer] An EVE corporation ID
49
79
  # @param params [Hash] Additional query string parameters
50
80
  # @param headers [Hash] Additional headers
51
81
  #
@@ -58,11 +88,40 @@ module ESI
58
88
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
59
89
  #
60
90
  # @see https://esi.evetech.net/ui/#/Assets/get_corporations_corporation_id_assets
61
- def get_corporation_assets(corporation_id:, params: {}, headers: {})
62
- get("/corporations/#{corporation_id}/assets/", headers: headers, params: params)
91
+ def get_corporation_assets(corporation_id:, headers: {}, params: {})
92
+ responses = get_corporation_assets_raw(corporation_id: corporation_id, headers: headers, params: params)
93
+ responses.map(&:json).reduce([], :concat)
63
94
  end
64
95
  alias get_corporations_corporation_id_assets get_corporation_assets
65
96
 
97
+ # Return a list of the corporation assets.
98
+ #
99
+ # This endpoint is cached for up to 3600 seconds.
100
+ #
101
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
102
+ #
103
+ # @esi_scope esi-assets.read_corporation_assets.v1
104
+ #
105
+ # @esi_version dev
106
+ # @esi_version v5
107
+ #
108
+ # @param corporation_id [Integer] An EVE corporation ID
109
+ # @param params [Hash] Additional query string parameters
110
+ # @param headers [Hash] Additional headers
111
+ #
112
+ # @raise [ESI::Errors::BadRequestError] Bad request
113
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
114
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
115
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
116
+ # @raise [ESI::Errors::InternalServerError] Internal server error
117
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
118
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
119
+ #
120
+ # @see https://esi.evetech.net/ui/#/Assets/get_corporations_corporation_id_assets
121
+ def get_corporation_assets_raw(corporation_id:, headers: {}, params: {})
122
+ get("/corporations/#{corporation_id}/assets/", headers: headers, params: params)
123
+ end
124
+
66
125
  # Return locations for a set of item ids, which you can get from character assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0).
67
126
  #
68
127
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -72,8 +131,9 @@ module ESI
72
131
  # @esi_version dev
73
132
  # @esi_version v2
74
133
  #
75
- # @param character_id [Integer,String] An EVE character ID
134
+ # @param character_id [Integer] An EVE character ID
76
135
  # @param item_ids [Array] A list of item ids
136
+ # @param params [Hash] Additional query string parameters
77
137
  # @param headers [Hash] Additional headers
78
138
  #
79
139
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -85,11 +145,38 @@ module ESI
85
145
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
86
146
  #
87
147
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
88
- def post_character_asset_locations(character_id:, item_ids:, headers: {})
89
- post("/characters/#{character_id}/assets/locations/", headers: headers, payload: item_ids)
148
+ def post_character_asset_locations(character_id:, item_ids:, headers: {}, params: {})
149
+ post_character_asset_locations_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
90
150
  end
91
151
  alias post_characters_character_id_assets_locations post_character_asset_locations
92
152
 
153
+ # Return locations for a set of item ids, which you can get from character assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0).
154
+ #
155
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
156
+ #
157
+ # @esi_scope esi-assets.read_assets.v1
158
+ #
159
+ # @esi_version dev
160
+ # @esi_version v2
161
+ #
162
+ # @param character_id [Integer] An EVE character ID
163
+ # @param item_ids [Array] A list of item ids
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::UnauthorizedError] Unauthorized
169
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
170
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
171
+ # @raise [ESI::Errors::InternalServerError] Internal server error
172
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
173
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
174
+ #
175
+ # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
176
+ def post_character_asset_locations_raw(character_id:, item_ids:, headers: {}, params: {})
177
+ post("/characters/#{character_id}/assets/locations/", headers: headers, params: params, payload: item_ids)
178
+ end
179
+
93
180
  # Return names for a set of item ids, which you can get from character assets endpoint. Typically used for items that can customize names, like containers or ships.
94
181
  #
95
182
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -100,8 +187,9 @@ module ESI
100
187
  # @esi_version legacy
101
188
  # @esi_version v1
102
189
  #
103
- # @param character_id [Integer,String] An EVE character ID
190
+ # @param character_id [Integer] An EVE character ID
104
191
  # @param item_ids [Array] A list of item ids
192
+ # @param params [Hash] Additional query string parameters
105
193
  # @param headers [Hash] Additional headers
106
194
  #
107
195
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -113,11 +201,39 @@ module ESI
113
201
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
114
202
  #
115
203
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
116
- def post_character_asset_names(character_id:, item_ids:, headers: {})
117
- post("/characters/#{character_id}/assets/names/", headers: headers, payload: item_ids)
204
+ def post_character_asset_names(character_id:, item_ids:, headers: {}, params: {})
205
+ post_character_asset_names_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
118
206
  end
119
207
  alias post_characters_character_id_assets_names post_character_asset_names
120
208
 
209
+ # Return names for a set of item ids, which you can get from character assets endpoint. Typically used for items that can customize names, like containers or ships.
210
+ #
211
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
212
+ #
213
+ # @esi_scope esi-assets.read_assets.v1
214
+ #
215
+ # @esi_version dev
216
+ # @esi_version legacy
217
+ # @esi_version v1
218
+ #
219
+ # @param character_id [Integer] An EVE character ID
220
+ # @param item_ids [Array] A list of item ids
221
+ # @param params [Hash] Additional query string parameters
222
+ # @param headers [Hash] Additional headers
223
+ #
224
+ # @raise [ESI::Errors::BadRequestError] Bad request
225
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
226
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
227
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
228
+ # @raise [ESI::Errors::InternalServerError] Internal server error
229
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
230
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
231
+ #
232
+ # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
233
+ def post_character_asset_names_raw(character_id:, item_ids:, headers: {}, params: {})
234
+ post("/characters/#{character_id}/assets/names/", headers: headers, params: params, payload: item_ids)
235
+ end
236
+
121
237
  # Return locations for a set of item ids, which you can get from corporation assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0).
122
238
  #
123
239
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -127,8 +243,9 @@ module ESI
127
243
  # @esi_version dev
128
244
  # @esi_version v2
129
245
  #
130
- # @param corporation_id [Integer,String] An EVE corporation ID
246
+ # @param corporation_id [Integer] An EVE corporation ID
131
247
  # @param item_ids [Array] A list of item ids
248
+ # @param params [Hash] Additional query string parameters
132
249
  # @param headers [Hash] Additional headers
133
250
  #
134
251
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -141,11 +258,39 @@ module ESI
141
258
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
142
259
  #
143
260
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
144
- def post_corporation_asset_locations(corporation_id:, item_ids:, headers: {})
145
- post("/corporations/#{corporation_id}/assets/locations/", headers: headers, payload: item_ids)
261
+ def post_corporation_asset_locations(corporation_id:, item_ids:, headers: {}, params: {})
262
+ post_corporation_asset_locations_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
146
263
  end
147
264
  alias post_corporations_corporation_id_assets_locations post_corporation_asset_locations
148
265
 
266
+ # Return locations for a set of item ids, which you can get from corporation assets endpoint. Coordinates for items in hangars or stations are set to (0,0,0).
267
+ #
268
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
269
+ #
270
+ # @esi_scope esi-assets.read_corporation_assets.v1
271
+ #
272
+ # @esi_version dev
273
+ # @esi_version v2
274
+ #
275
+ # @param corporation_id [Integer] An EVE corporation ID
276
+ # @param item_ids [Array] A list of item ids
277
+ # @param params [Hash] Additional query string parameters
278
+ # @param headers [Hash] Additional headers
279
+ #
280
+ # @raise [ESI::Errors::BadRequestError] Bad request
281
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
282
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
283
+ # @raise [ESI::Errors::NotFoundError] Invalid IDs
284
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
285
+ # @raise [ESI::Errors::InternalServerError] Internal server error
286
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
287
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
288
+ #
289
+ # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
290
+ def post_corporation_asset_locations_raw(corporation_id:, item_ids:, headers: {}, params: {})
291
+ post("/corporations/#{corporation_id}/assets/locations/", headers: headers, params: params, payload: item_ids)
292
+ end
293
+
149
294
  # Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships.
150
295
  #
151
296
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -156,8 +301,9 @@ module ESI
156
301
  # @esi_version legacy
157
302
  # @esi_version v1
158
303
  #
159
- # @param corporation_id [Integer,String] An EVE corporation ID
304
+ # @param corporation_id [Integer] An EVE corporation ID
160
305
  # @param item_ids [Array] A list of item ids
306
+ # @param params [Hash] Additional query string parameters
161
307
  # @param headers [Hash] Additional headers
162
308
  #
163
309
  # @raise [ESI::Errors::BadRequestError] Bad request
@@ -170,10 +316,39 @@ module ESI
170
316
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
171
317
  #
172
318
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
173
- def post_corporation_asset_names(corporation_id:, item_ids:, headers: {})
174
- post("/corporations/#{corporation_id}/assets/names/", headers: headers, payload: item_ids)
319
+ def post_corporation_asset_names(corporation_id:, item_ids:, headers: {}, params: {})
320
+ post_corporation_asset_names_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
175
321
  end
176
322
  alias post_corporations_corporation_id_assets_names post_corporation_asset_names
323
+
324
+ # Return names for a set of item ids, which you can get from corporation assets endpoint. Only valid for items that can customize names, like containers or ships.
325
+ #
326
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
327
+ #
328
+ # @esi_scope esi-assets.read_corporation_assets.v1
329
+ #
330
+ # @esi_version dev
331
+ # @esi_version legacy
332
+ # @esi_version v1
333
+ #
334
+ # @param corporation_id [Integer] An EVE corporation ID
335
+ # @param item_ids [Array] A list of item ids
336
+ # @param params [Hash] Additional query string parameters
337
+ # @param headers [Hash] Additional headers
338
+ #
339
+ # @raise [ESI::Errors::BadRequestError] Bad request
340
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
341
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
342
+ # @raise [ESI::Errors::NotFoundError] Invalid IDs
343
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
344
+ # @raise [ESI::Errors::InternalServerError] Internal server error
345
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
346
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
347
+ #
348
+ # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
349
+ def post_corporation_asset_names_raw(corporation_id:, item_ids:, headers: {}, params: {})
350
+ post("/corporations/#{corporation_id}/assets/names/", headers: headers, params: params, payload: item_ids)
351
+ end
177
352
  end
178
353
  end
179
354
  end
@@ -15,7 +15,7 @@ module ESI
15
15
  # @esi_version dev
16
16
  # @esi_version v2
17
17
  #
18
- # @param character_id [Integer,String] An EVE character ID
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,40 @@ module ESI
28
28
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
29
29
  #
30
30
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks_folders
31
- def get_character_bookmark_folders(character_id:, params: {}, headers: {})
32
- get("/characters/#{character_id}/bookmarks/folders/", headers: headers, params: params)
31
+ def get_character_bookmark_folders(character_id:, headers: {}, params: {})
32
+ responses = get_character_bookmark_folders_raw(character_id: character_id, headers: headers, params: params)
33
+ responses.map(&:json).reduce([], :concat)
33
34
  end
34
35
  alias get_characters_character_id_bookmarks_folders get_character_bookmark_folders
35
36
 
37
+ # A list of your character's personal bookmark folders.
38
+ #
39
+ # This endpoint is cached for up to 3600 seconds.
40
+ #
41
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
42
+ #
43
+ # @esi_scope esi-bookmarks.read_character_bookmarks.v1
44
+ #
45
+ # @esi_version dev
46
+ # @esi_version v2
47
+ #
48
+ # @param character_id [Integer] An EVE character ID
49
+ # @param params [Hash] Additional query string parameters
50
+ # @param headers [Hash] Additional headers
51
+ #
52
+ # @raise [ESI::Errors::BadRequestError] Bad request
53
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
54
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
55
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
56
+ # @raise [ESI::Errors::InternalServerError] Internal server error
57
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
58
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
59
+ #
60
+ # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks_folders
61
+ def get_character_bookmark_folders_raw(character_id:, headers: {}, params: {})
62
+ get("/characters/#{character_id}/bookmarks/folders/", headers: headers, params: params)
63
+ end
64
+
36
65
  # A list of your character's personal bookmarks.
37
66
  #
38
67
  # This endpoint is cached for up to 3600 seconds.
@@ -44,7 +73,7 @@ module ESI
44
73
  # @esi_version dev
45
74
  # @esi_version v2
46
75
  #
47
- # @param character_id [Integer,String] An EVE character ID
76
+ # @param character_id [Integer] An EVE character ID
48
77
  # @param params [Hash] Additional query string parameters
49
78
  # @param headers [Hash] Additional headers
50
79
  #
@@ -57,11 +86,40 @@ module ESI
57
86
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
58
87
  #
59
88
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks
60
- def get_character_bookmarks(character_id:, params: {}, headers: {})
61
- get("/characters/#{character_id}/bookmarks/", headers: headers, params: params)
89
+ def get_character_bookmarks(character_id:, headers: {}, params: {})
90
+ responses = get_character_bookmarks_raw(character_id: character_id, headers: headers, params: params)
91
+ responses.map(&:json).reduce([], :concat)
62
92
  end
63
93
  alias get_characters_character_id_bookmarks get_character_bookmarks
64
94
 
95
+ # A list of your character's personal bookmarks.
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-bookmarks.read_character_bookmarks.v1
102
+ #
103
+ # @esi_version dev
104
+ # @esi_version v2
105
+ #
106
+ # @param character_id [Integer] An EVE character ID
107
+ # @param params [Hash] Additional query string parameters
108
+ # @param headers [Hash] Additional headers
109
+ #
110
+ # @raise [ESI::Errors::BadRequestError] Bad request
111
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
112
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
113
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
114
+ # @raise [ESI::Errors::InternalServerError] Internal server error
115
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
116
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
117
+ #
118
+ # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks
119
+ def get_character_bookmarks_raw(character_id:, headers: {}, params: {})
120
+ get("/characters/#{character_id}/bookmarks/", headers: headers, params: params)
121
+ end
122
+
65
123
  # A list of your corporation's bookmark folders.
66
124
  #
67
125
  # This endpoint is cached for up to 3600 seconds.
@@ -74,7 +132,7 @@ module ESI
74
132
  # @esi_version legacy
75
133
  # @esi_version v1
76
134
  #
77
- # @param corporation_id [Integer,String] An EVE corporation ID
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,41 @@ module ESI
87
145
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
88
146
  #
89
147
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks_folders
90
- def get_corporation_bookmark_folders(corporation_id:, params: {}, headers: {})
91
- get("/corporations/#{corporation_id}/bookmarks/folders/", headers: headers, params: params)
148
+ def get_corporation_bookmark_folders(corporation_id:, headers: {}, params: {})
149
+ responses = get_corporation_bookmark_folders_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_bookmarks_folders get_corporation_bookmark_folders
94
153
 
154
+ # A list of your corporation's bookmark folders.
155
+ #
156
+ # This endpoint is cached for up to 3600 seconds.
157
+ #
158
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
159
+ #
160
+ # @esi_scope esi-bookmarks.read_corporation_bookmarks.v1
161
+ #
162
+ # @esi_version dev
163
+ # @esi_version legacy
164
+ # @esi_version v1
165
+ #
166
+ # @param corporation_id [Integer] An EVE corporation ID
167
+ # @param params [Hash] Additional query string parameters
168
+ # @param headers [Hash] Additional headers
169
+ #
170
+ # @raise [ESI::Errors::BadRequestError] Bad request
171
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
172
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
173
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
174
+ # @raise [ESI::Errors::InternalServerError] Internal server error
175
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
176
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
177
+ #
178
+ # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks_folders
179
+ def get_corporation_bookmark_folders_raw(corporation_id:, headers: {}, params: {})
180
+ get("/corporations/#{corporation_id}/bookmarks/folders/", headers: headers, params: params)
181
+ end
182
+
95
183
  # A list of your corporation's bookmarks.
96
184
  #
97
185
  # This endpoint is cached for up to 3600 seconds.
@@ -104,7 +192,7 @@ module ESI
104
192
  # @esi_version legacy
105
193
  # @esi_version v1
106
194
  #
107
- # @param corporation_id [Integer,String] An EVE corporation ID
195
+ # @param corporation_id [Integer] An EVE corporation ID
108
196
  # @param params [Hash] Additional query string parameters
109
197
  # @param headers [Hash] Additional headers
110
198
  #
@@ -117,10 +205,40 @@ module ESI
117
205
  # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
118
206
  #
119
207
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks
120
- def get_corporation_bookmarks(corporation_id:, params: {}, headers: {})
121
- get("/corporations/#{corporation_id}/bookmarks/", headers: headers, params: params)
208
+ def get_corporation_bookmarks(corporation_id:, headers: {}, params: {})
209
+ responses = get_corporation_bookmarks_raw(corporation_id: corporation_id, headers: headers, params: params)
210
+ responses.map(&:json).reduce([], :concat)
122
211
  end
123
212
  alias get_corporations_corporation_id_bookmarks get_corporation_bookmarks
213
+
214
+ # A list of your corporation's bookmarks.
215
+ #
216
+ # This endpoint is cached for up to 3600 seconds.
217
+ #
218
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
219
+ #
220
+ # @esi_scope esi-bookmarks.read_corporation_bookmarks.v1
221
+ #
222
+ # @esi_version dev
223
+ # @esi_version legacy
224
+ # @esi_version v1
225
+ #
226
+ # @param corporation_id [Integer] An EVE corporation ID
227
+ # @param params [Hash] Additional query string parameters
228
+ # @param headers [Hash] Additional headers
229
+ #
230
+ # @raise [ESI::Errors::BadRequestError] Bad request
231
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
232
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
233
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
234
+ # @raise [ESI::Errors::InternalServerError] Internal server error
235
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
236
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
237
+ #
238
+ # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks
239
+ def get_corporation_bookmarks_raw(corporation_id:, headers: {}, params: {})
240
+ get("/corporations/#{corporation_id}/bookmarks/", headers: headers, params: params)
241
+ end
124
242
  end
125
243
  end
126
244
  end