esi-sdk 2.0.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b65c246beb4ff8ae1f851071d58394a3bdc9c879277d33ee2267c8ba57586b9c
4
- data.tar.gz: be6ce8a4242acb9a51ae39b38397861c8b1ff22fc4ae6f9f2a6dad941627de2a
3
+ metadata.gz: '0792d0a5356452963fc5a91496c0344add3d4cc9efa29debc185713bd294cb70'
4
+ data.tar.gz: a13e39a46b2d958c4fc9bb4dfe4c73f42d3e8fb070592a980e9b1b1f510bdfa9
5
5
  SHA512:
6
- metadata.gz: f49d61698e073ea71c5f950eb251fdb4278aeac68e1c0dd2c07455bcb55af9e177f9057f0c13c6f0d55b51e4a4f688db2882d882ec9fead74c6c33c0c32dd218
7
- data.tar.gz: 1b2fb34cf860ee60518fc38059c230f53adcf739a1f3dae9ea0527e095b6db2c6997b4659de46808e712b85bfb83a3dcc81539d0e3fa2ab3c2be98aaac451117
6
+ metadata.gz: 44468ca22260a2c6cb6a13f5d10021448e9e01a03de1216c2a50122b138fa24992bae8775f5b8afda41d7de701aca2417ef3a3cd24f8bfabb70f787f3293021d
7
+ data.tar.gz: 889a62e3d428345ca4378acaacb2aeb8c4b32e0a503f7ad02b6d08af5ebfbf01fb6fb3341c619f8ebe8cd999fecd0db729141657ccb30fa430777d7e106aac51
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # ESI SDK Changelog
2
2
 
3
+ # [2.1.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.0.0...v2.1.0) (2021-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * add methods to return raw responses ([93dc308](https://github.com/bokoboshahni/esi-sdk-ruby/commit/93dc3082cf06b0b4e42e17e3de77c9e05e3345b5))
9
+
3
10
  # [2.0.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v1.2.0...v2.0.0) (2021-10-08)
4
11
 
5
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esi-sdk (2.0.0)
4
+ esi-sdk (2.1.0)
5
5
  httpx (~> 0.18)
6
6
  retriable (~> 3.1)
7
7
 
data/Rakefile CHANGED
@@ -120,6 +120,7 @@ task :generate do
120
120
  module_name = tag.gsub(/ /, "_").classify
121
121
  method_definitions = operations.sort_by { |(k, _v)| k }.each_with_object([]) do |(method_name, operation), a|
122
122
  signature_params = operation[:params].map { |p| "#{p["name"]}:" }
123
+ raw_call_params = operation[:params].map { |p| "#{p["name"]}: #{p["name"]}" }
123
124
 
124
125
  description = "# #{operation[:description]}"
125
126
  description = "#{description}." unless description.end_with?(".")
@@ -157,6 +158,7 @@ task :generate do
157
158
  end
158
159
 
159
160
  signature_params << "#{body_name}:"
161
+ raw_call_params << "#{body_name}: #{body_name}"
160
162
  param_tags += ["# @param #{body_name} [#{body_type}] #{body_param["description"]}"]
161
163
  end
162
164
 
@@ -174,12 +176,16 @@ task :generate do
174
176
  "#{p["name"]}:"
175
177
  end
176
178
  signature_params << p_str
179
+ raw_call_params << "#{p["name"]}: #{p["name"]}"
177
180
  param_tags << p_tag
178
181
  end
179
182
 
180
183
  signature_params += %w[headers params].map do |p|
181
184
  "#{p}: {}"
182
185
  end
186
+ raw_call_params += %w[headers params].map do |p|
187
+ "#{p}: #{p}"
188
+ end
183
189
  param_tags << "# @param params [Hash] Additional query string parameters"
184
190
 
185
191
  param_tags += [
@@ -201,6 +207,7 @@ task :generate do
201
207
  description.gsub!(/^$\n/m, "")
202
208
 
203
209
  signature = "(#{signature_params.join(", ")})"
210
+ raw_call = "(#{raw_call_params.join(", ")})"
204
211
  path_parts = operation[:path].split("/")
205
212
  path_parts.map! do |p|
206
213
  if p =~ /\{\w+\}/
@@ -237,19 +244,30 @@ task :generate do
237
244
  #{description}
238
245
  def #{method_name}#{signature}
239
246
  #{params_merge}
240
- responses = #{http_call}
247
+ responses = #{method_name}_raw#{raw_call}
241
248
  responses.map(&:json).reduce([], :concat)
242
249
  end
243
250
  #{alias_methods}
251
+
252
+ #{description}
253
+ def #{method_name}_raw#{signature}
254
+ #{params_merge}
255
+ #{http_call}
256
+ end
244
257
  METHOD_DEFINITION
245
258
  else
246
259
  a << <<~METHOD_DEFINITION
247
260
  #{description}
248
261
  def #{method_name}#{signature}
249
- #{params_merge}
250
- #{http_call}.json
262
+ #{method_name}_raw#{raw_call}.json
251
263
  end
252
264
  #{alias_methods}
265
+
266
+ #{description}
267
+ def #{method_name}_raw#{signature}
268
+ #{params_merge}
269
+ #{http_call}
270
+ end
253
271
  METHOD_DEFINITION
254
272
  end
255
273
  end
@@ -26,10 +26,35 @@ module ESI
26
26
  #
27
27
  # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id
28
28
  def get_alliance(alliance_id:, headers: {}, params: {})
29
- get("/alliances/#{alliance_id}/", headers: headers, params: params).json
29
+ get_alliance_raw(alliance_id: alliance_id, headers: headers, params: params).json
30
30
  end
31
31
  alias get_alliances_alliance_id get_alliance
32
32
 
33
+ # Public information about an alliance.
34
+ #
35
+ # This endpoint is cached for up to 3600 seconds.
36
+ #
37
+ # @esi_version dev
38
+ # @esi_version legacy
39
+ # @esi_version v3
40
+ # @esi_version v4
41
+ #
42
+ # @param alliance_id [Integer] An EVE alliance ID
43
+ # @param params [Hash] Additional query string parameters
44
+ # @param headers [Hash] Additional headers
45
+ #
46
+ # @raise [ESI::Errors::BadRequestError] Bad request
47
+ # @raise [ESI::Errors::NotFoundError] Alliance not found
48
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
49
+ # @raise [ESI::Errors::InternalServerError] Internal server error
50
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
51
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
52
+ #
53
+ # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id
54
+ def get_alliance_raw(alliance_id:, headers: {}, params: {})
55
+ get("/alliances/#{alliance_id}/", headers: headers, params: params)
56
+ end
57
+
33
58
  # List all current member corporations of an alliance.
34
59
  #
35
60
  # This endpoint is cached for up to 3600 seconds.
@@ -51,10 +76,34 @@ module ESI
51
76
  #
52
77
  # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_corporations
53
78
  def get_alliance_corporations(alliance_id:, headers: {}, params: {})
54
- get("/alliances/#{alliance_id}/corporations/", headers: headers, params: params).json
79
+ get_alliance_corporations_raw(alliance_id: alliance_id, headers: headers, params: params).json
55
80
  end
56
81
  alias get_alliances_alliance_id_corporations get_alliance_corporations
57
82
 
83
+ # List all current member corporations of an alliance.
84
+ #
85
+ # This endpoint is cached for up to 3600 seconds.
86
+ #
87
+ # @esi_version dev
88
+ # @esi_version legacy
89
+ # @esi_version v1
90
+ # @esi_version v2
91
+ #
92
+ # @param alliance_id [Integer] An EVE alliance ID
93
+ # @param params [Hash] Additional query string parameters
94
+ # @param headers [Hash] Additional headers
95
+ #
96
+ # @raise [ESI::Errors::BadRequestError] Bad request
97
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
98
+ # @raise [ESI::Errors::InternalServerError] Internal server error
99
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
100
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
101
+ #
102
+ # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_corporations
103
+ def get_alliance_corporations_raw(alliance_id:, headers: {}, params: {})
104
+ get("/alliances/#{alliance_id}/corporations/", headers: headers, params: params)
105
+ end
106
+
58
107
  # Get the icon urls for a alliance.
59
108
  #
60
109
  # @esi_version legacy
@@ -73,10 +122,31 @@ module ESI
73
122
  #
74
123
  # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_icons
75
124
  def get_alliance_icons(alliance_id:, headers: {}, params: {})
76
- get("/alliances/#{alliance_id}/icons/", headers: headers, params: params).json
125
+ get_alliance_icons_raw(alliance_id: alliance_id, headers: headers, params: params).json
77
126
  end
78
127
  alias get_alliances_alliance_id_icons get_alliance_icons
79
128
 
129
+ # Get the icon urls for a alliance.
130
+ #
131
+ # @esi_version legacy
132
+ # @esi_version v1
133
+ #
134
+ # @param alliance_id [Integer] An EVE alliance ID
135
+ # @param params [Hash] Additional query string parameters
136
+ # @param headers [Hash] Additional headers
137
+ #
138
+ # @raise [ESI::Errors::BadRequestError] Bad request
139
+ # @raise [ESI::Errors::NotFoundError] No image server for this datasource
140
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
141
+ # @raise [ESI::Errors::InternalServerError] Internal server error
142
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
143
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
144
+ #
145
+ # @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_icons
146
+ def get_alliance_icons_raw(alliance_id:, headers: {}, params: {})
147
+ get("/alliances/#{alliance_id}/icons/", headers: headers, params: params)
148
+ end
149
+
80
150
  # List all active player alliances.
81
151
  #
82
152
  # This endpoint is cached for up to 3600 seconds.
@@ -97,7 +167,30 @@ module ESI
97
167
  #
98
168
  # @see https://esi.evetech.net/ui/#/Alliance/get_alliances
99
169
  def get_alliances(headers: {}, params: {})
100
- get("/alliances/", headers: headers, params: params).json
170
+ get_alliances_raw(headers: headers, params: params).json
171
+ end
172
+
173
+ # List all active player alliances.
174
+ #
175
+ # This endpoint is cached for up to 3600 seconds.
176
+ #
177
+ # @esi_version dev
178
+ # @esi_version legacy
179
+ # @esi_version v1
180
+ # @esi_version v2
181
+ #
182
+ # @param params [Hash] Additional query string parameters
183
+ # @param headers [Hash] Additional headers
184
+ #
185
+ # @raise [ESI::Errors::BadRequestError] Bad request
186
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
187
+ # @raise [ESI::Errors::InternalServerError] Internal server error
188
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
189
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
190
+ #
191
+ # @see https://esi.evetech.net/ui/#/Alliance/get_alliances
192
+ def get_alliances_raw(headers: {}, params: {})
193
+ get("/alliances/", headers: headers, params: params)
101
194
  end
102
195
  end
103
196
  end
@@ -30,11 +30,40 @@ module ESI
30
30
  #
31
31
  # @see https://esi.evetech.net/ui/#/Assets/get_characters_character_id_assets
32
32
  def get_character_assets(character_id:, headers: {}, params: {})
33
- responses = get("/characters/#{character_id}/assets/", headers: headers, params: params)
33
+ responses = get_character_assets_raw(character_id: character_id, headers: headers, params: params)
34
34
  responses.map(&:json).reduce([], :concat)
35
35
  end
36
36
  alias get_characters_character_id_assets get_character_assets
37
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
+
38
67
  # Return a list of the corporation assets.
39
68
  #
40
69
  # This endpoint is cached for up to 3600 seconds.
@@ -60,11 +89,39 @@ module ESI
60
89
  #
61
90
  # @see https://esi.evetech.net/ui/#/Assets/get_corporations_corporation_id_assets
62
91
  def get_corporation_assets(corporation_id:, headers: {}, params: {})
63
- responses = get("/corporations/#{corporation_id}/assets/", headers: headers, params: params)
92
+ responses = get_corporation_assets_raw(corporation_id: corporation_id, headers: headers, params: params)
64
93
  responses.map(&:json).reduce([], :concat)
65
94
  end
66
95
  alias get_corporations_corporation_id_assets get_corporation_assets
67
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
+
68
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).
69
126
  #
70
127
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -89,10 +146,37 @@ module ESI
89
146
  #
90
147
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
91
148
  def post_character_asset_locations(character_id:, item_ids:, headers: {}, params: {})
92
- post("/characters/#{character_id}/assets/locations/", headers: headers, params: params, payload: item_ids).json
149
+ post_character_asset_locations_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
93
150
  end
94
151
  alias post_characters_character_id_assets_locations post_character_asset_locations
95
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
+
96
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.
97
181
  #
98
182
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -118,10 +202,38 @@ module ESI
118
202
  #
119
203
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
120
204
  def post_character_asset_names(character_id:, item_ids:, headers: {}, params: {})
121
- post("/characters/#{character_id}/assets/names/", headers: headers, params: params, payload: item_ids).json
205
+ post_character_asset_names_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
122
206
  end
123
207
  alias post_characters_character_id_assets_names post_character_asset_names
124
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
+
125
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).
126
238
  #
127
239
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -147,10 +259,38 @@ module ESI
147
259
  #
148
260
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
149
261
  def post_corporation_asset_locations(corporation_id:, item_ids:, headers: {}, params: {})
150
- post("/corporations/#{corporation_id}/assets/locations/", headers: headers, params: params, payload: item_ids).json
262
+ post_corporation_asset_locations_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
151
263
  end
152
264
  alias post_corporations_corporation_id_assets_locations post_corporation_asset_locations
153
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
+
154
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.
155
295
  #
156
296
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -177,9 +317,38 @@ module ESI
177
317
  #
178
318
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
179
319
  def post_corporation_asset_names(corporation_id:, item_ids:, headers: {}, params: {})
180
- post("/corporations/#{corporation_id}/assets/names/", headers: headers, params: params, payload: item_ids).json
320
+ post_corporation_asset_names_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
181
321
  end
182
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
183
352
  end
184
353
  end
185
354
  end
@@ -29,11 +29,39 @@ module ESI
29
29
  #
30
30
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks_folders
31
31
  def get_character_bookmark_folders(character_id:, headers: {}, params: {})
32
- responses = get("/characters/#{character_id}/bookmarks/folders/", headers: headers, params: params)
32
+ responses = get_character_bookmark_folders_raw(character_id: character_id, headers: headers, params: params)
33
33
  responses.map(&:json).reduce([], :concat)
34
34
  end
35
35
  alias get_characters_character_id_bookmarks_folders get_character_bookmark_folders
36
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
+
37
65
  # A list of your character's personal bookmarks.
38
66
  #
39
67
  # This endpoint is cached for up to 3600 seconds.
@@ -59,11 +87,39 @@ module ESI
59
87
  #
60
88
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_characters_character_id_bookmarks
61
89
  def get_character_bookmarks(character_id:, headers: {}, params: {})
62
- responses = get("/characters/#{character_id}/bookmarks/", headers: headers, params: params)
90
+ responses = get_character_bookmarks_raw(character_id: character_id, headers: headers, params: params)
63
91
  responses.map(&:json).reduce([], :concat)
64
92
  end
65
93
  alias get_characters_character_id_bookmarks get_character_bookmarks
66
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
+
67
123
  # A list of your corporation's bookmark folders.
68
124
  #
69
125
  # This endpoint is cached for up to 3600 seconds.
@@ -90,11 +146,40 @@ module ESI
90
146
  #
91
147
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks_folders
92
148
  def get_corporation_bookmark_folders(corporation_id:, headers: {}, params: {})
93
- responses = get("/corporations/#{corporation_id}/bookmarks/folders/", headers: headers, params: params)
149
+ responses = get_corporation_bookmark_folders_raw(corporation_id: corporation_id, headers: headers, params: params)
94
150
  responses.map(&:json).reduce([], :concat)
95
151
  end
96
152
  alias get_corporations_corporation_id_bookmarks_folders get_corporation_bookmark_folders
97
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
+
98
183
  # A list of your corporation's bookmarks.
99
184
  #
100
185
  # This endpoint is cached for up to 3600 seconds.
@@ -121,10 +206,39 @@ module ESI
121
206
  #
122
207
  # @see https://esi.evetech.net/ui/#/Bookmarks/get_corporations_corporation_id_bookmarks
123
208
  def get_corporation_bookmarks(corporation_id:, headers: {}, params: {})
124
- responses = get("/corporations/#{corporation_id}/bookmarks/", headers: headers, params: params)
209
+ responses = get_corporation_bookmarks_raw(corporation_id: corporation_id, headers: headers, params: params)
125
210
  responses.map(&:json).reduce([], :concat)
126
211
  end
127
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
128
242
  end
129
243
  end
130
244
  end