esi-sdk 2.0.0 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/{cicd.yml → build.yml} +5 -3
  3. data/CHANGELOG.md +18 -0
  4. data/Gemfile +0 -2
  5. data/Gemfile.lock +2 -5
  6. data/README.md +5 -1
  7. data/Rakefile +21 -4
  8. data/lib/esi/client/alliance.rb +97 -4
  9. data/lib/esi/client/assets.rb +175 -8
  10. data/lib/esi/client/bookmarks.rb +118 -8
  11. data/lib/esi/client/calendar.rb +132 -5
  12. data/lib/esi/client/character.rb +383 -15
  13. data/lib/esi/client/clones.rb +61 -2
  14. data/lib/esi/client/contacts.rb +271 -15
  15. data/lib/esi/client/contracts.rb +266 -15
  16. data/lib/esi/client/corporation.rb +724 -139
  17. data/lib/esi/client/dogma.rb +111 -5
  18. data/lib/esi/client/faction_warfare.rb +192 -8
  19. data/lib/esi/client/fittings.rb +86 -3
  20. data/lib/esi/client/fleets.rb +427 -14
  21. data/lib/esi/client/incursions.rb +23 -1
  22. data/lib/esi/client/industry.rb +231 -14
  23. data/lib/esi/client/insurance.rb +23 -1
  24. data/lib/esi/client/killmails.rb +86 -5
  25. data/lib/esi/client/location.rb +92 -3
  26. data/lib/esi/client/loyalty.rb +53 -2
  27. data/lib/esi/client/mail.rb +239 -8
  28. data/lib/esi/client/market.rb +294 -18
  29. data/lib/esi/client/opportunities.rb +116 -5
  30. data/lib/esi/client/planetary_interaction.rb +114 -5
  31. data/lib/esi/client/routes.rb +29 -1
  32. data/lib/esi/client/search.rb +60 -3
  33. data/lib/esi/client/skills.rb +89 -3
  34. data/lib/esi/client/sovereignty.rb +69 -3
  35. data/lib/esi/client/status.rb +24 -1
  36. data/lib/esi/client/universe.rb +785 -168
  37. data/lib/esi/client/user_interface.rb +143 -5
  38. data/lib/esi/client/wallet.rb +183 -10
  39. data/lib/esi/client/wars.rb +74 -4
  40. data/lib/esi/client.rb +42 -33
  41. data/lib/esi/version.rb +1 -1
  42. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b65c246beb4ff8ae1f851071d58394a3bdc9c879277d33ee2267c8ba57586b9c
4
- data.tar.gz: be6ce8a4242acb9a51ae39b38397861c8b1ff22fc4ae6f9f2a6dad941627de2a
3
+ metadata.gz: 1f855ed4e984d89d9cc257a8fc6f3d0be138f60c5d89c691f19bd439ac7d7e37
4
+ data.tar.gz: aaf3df11c827c8ec8d0459e4c5f787ee1740c63fd394a4239333b59db37590b2
5
5
  SHA512:
6
- metadata.gz: f49d61698e073ea71c5f950eb251fdb4278aeac68e1c0dd2c07455bcb55af9e177f9057f0c13c6f0d55b51e4a4f688db2882d882ec9fead74c6c33c0c32dd218
7
- data.tar.gz: 1b2fb34cf860ee60518fc38059c230f53adcf739a1f3dae9ea0527e095b6db2c6997b4659de46808e712b85bfb83a3dcc81539d0e3fa2ab3c2be98aaac451117
6
+ metadata.gz: 4c8f39261ab146f8e82df2fd6f4285a2f1c9c99e8288ca78d9f4de8d362ca04ac24e8c8e036c439f99a94216fb2c0e3893bc32899fa1a7dbcafcece5377bc758
7
+ data.tar.gz: dbfe5a04225bbc14b947bf017668dd97333ffdf838c09c9b185f0510459c7f5a77bbeb9b0d499831e1e9f4d621cf8697e83553a86ab7231eb7895ebd94ce2d9a
@@ -1,4 +1,4 @@
1
- name: Ruby
1
+ name: Build
2
2
 
3
3
  on:
4
4
  pull_request:
@@ -128,10 +128,12 @@ jobs:
128
128
  bundle install --jobs 4 --retry 3
129
129
 
130
130
  - name: Run tests
131
+ uses: paambaati/codeclimate-action@v3.0.0
131
132
  env:
133
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
132
134
  USER_AGENT: "ESI SDK Tests/1.0; (+https://github.com/bokoboshahni/esi-sdk-ruby)"
133
- run: |
134
- bundle exec rake spec
135
+ with:
136
+ coverageCommand: bundle exec rake spec
135
137
 
136
138
  release:
137
139
  name: Release
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # ESI SDK Changelog
2
2
 
3
+ ## [2.1.3](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.2...v2.1.3) (2021-12-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * ensure array for paginated responses ([55010e1](https://github.com/bokoboshahni/esi-sdk-ruby/commit/55010e18029e19b652d8c03eb90000fba186be98))
9
+
10
+ ## [2.1.2](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.1...v2.1.2) (2021-10-09)
11
+
12
+ ## [2.1.1](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.0...v2.1.1) (2021-10-09)
13
+
14
+ # [2.1.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.0.0...v2.1.0) (2021-10-09)
15
+
16
+
17
+ ### Features
18
+
19
+ * add methods to return raw responses ([93dc308](https://github.com/bokoboshahni/esi-sdk-ruby/commit/93dc3082cf06b0b4e42e17e3de77c9e05e3345b5))
20
+
3
21
  # [2.0.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v1.2.0...v2.0.0) (2021-10-08)
4
22
 
5
23
 
data/Gemfile CHANGED
@@ -15,8 +15,6 @@ gem "rubocop-performance", "~> 1.11"
15
15
  gem "rubocop-rake", "~> 0.6"
16
16
  gem "rubocop-rspec", "~> 2.4"
17
17
  gem "simplecov", "~> 0.21"
18
- gem "simplecov_json_formatter", "~> 0.1", require: false
19
- gem "vcr", "~> 6.0"
20
18
  gem "webmock", "~> 3.13"
21
19
  gem "yard", "~> 0.9"
22
20
 
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.3)
5
5
  httpx (~> 0.18)
6
6
  retriable (~> 3.1)
7
7
 
@@ -25,7 +25,7 @@ GEM
25
25
  docile (1.4.0)
26
26
  hashdiff (1.0.1)
27
27
  http-2-next (0.5.0)
28
- httpx (0.18.0)
28
+ httpx (0.18.1)
29
29
  http-2-next (>= 0.4.1)
30
30
  i18n (1.8.10)
31
31
  concurrent-ruby (~> 1.0)
@@ -85,7 +85,6 @@ GEM
85
85
  tzinfo (2.0.4)
86
86
  concurrent-ruby (~> 1.0)
87
87
  unicode-display_width (2.1.0)
88
- vcr (6.0.0)
89
88
  webmock (3.14.0)
90
89
  addressable (>= 2.8.0)
91
90
  crack (>= 0.3.2)
@@ -110,8 +109,6 @@ DEPENDENCIES
110
109
  rubocop-rake (~> 0.6)
111
110
  rubocop-rspec (~> 2.4)
112
111
  simplecov (~> 0.21)
113
- simplecov_json_formatter (~> 0.1)
114
- vcr (~> 6.0)
115
112
  webmock (~> 3.13)
116
113
  yard (~> 0.9)
117
114
 
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- ![Build images](https://github.com/bokoboshahni/esi-sdk-ruby/workflows/CICD/badge.svg)
1
+ [![Build](https://github.com/bokoboshahni/esi-sdk-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/bokoboshahni/esi-sdk-ruby/actions/workflows/build.yml)
2
+ [![Gem Version](https://badge.fury.io/rb/esi-sdk.svg)](https://badge.fury.io/rb/esi-sdk)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/cec445478e041ffb9c2b/maintainability)](https://codeclimate.com/github/bokoboshahni/esi-sdk-ruby/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/cec445478e041ffb9c2b/test_coverage)](https://codeclimate.com/github/bokoboshahni/esi-sdk-ruby/test_coverage)
5
+ [![Discord](https://img.shields.io/discord/782291682778546226)](https://discord.gg/beqVqV7ths)
2
6
 
3
7
  # EVE Swagger Interface (ESI) SDK
4
8
 
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,29 @@ task :generate do
237
244
  #{description}
238
245
  def #{method_name}#{signature}
239
246
  #{params_merge}
240
- responses = #{http_call}
241
- responses.map(&:json).reduce([], :concat)
247
+ concat_responses(#{method_name}_raw#{raw_call})
242
248
  end
243
249
  #{alias_methods}
250
+
251
+ #{description}
252
+ def #{method_name}_raw#{signature}
253
+ #{params_merge}
254
+ #{http_call}
255
+ end
244
256
  METHOD_DEFINITION
245
257
  else
246
258
  a << <<~METHOD_DEFINITION
247
259
  #{description}
248
260
  def #{method_name}#{signature}
249
- #{params_merge}
250
- #{http_call}.json
261
+ #{method_name}_raw#{raw_call}.json
251
262
  end
252
263
  #{alias_methods}
264
+
265
+ #{description}
266
+ def #{method_name}_raw#{signature}
267
+ #{params_merge}
268
+ #{http_call}
269
+ end
253
270
  METHOD_DEFINITION
254
271
  end
255
272
  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,39 @@ 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)
34
- responses.map(&:json).reduce([], :concat)
33
+ concat_responses(get_character_assets_raw(character_id: character_id, headers: headers, params: params))
35
34
  end
36
35
  alias get_characters_character_id_assets get_character_assets
37
36
 
37
+ # Return a list of the characters assets.
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-assets.read_assets.v1
44
+ #
45
+ # @esi_version dev
46
+ # @esi_version v5
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::NotFoundError] Requested page does not exist
56
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
57
+ # @raise [ESI::Errors::InternalServerError] Internal server error
58
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
59
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
60
+ #
61
+ # @see https://esi.evetech.net/ui/#/Assets/get_characters_character_id_assets
62
+ def get_character_assets_raw(character_id:, headers: {}, params: {})
63
+ get("/characters/#{character_id}/assets/", headers: headers, params: params)
64
+ end
65
+
38
66
  # Return a list of the corporation assets.
39
67
  #
40
68
  # This endpoint is cached for up to 3600 seconds.
@@ -60,11 +88,38 @@ module ESI
60
88
  #
61
89
  # @see https://esi.evetech.net/ui/#/Assets/get_corporations_corporation_id_assets
62
90
  def get_corporation_assets(corporation_id:, headers: {}, params: {})
63
- responses = get("/corporations/#{corporation_id}/assets/", headers: headers, params: params)
64
- responses.map(&:json).reduce([], :concat)
91
+ concat_responses(get_corporation_assets_raw(corporation_id: corporation_id, headers: headers, params: params))
65
92
  end
66
93
  alias get_corporations_corporation_id_assets get_corporation_assets
67
94
 
95
+ # Return a list of the corporation assets.
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-assets.read_corporation_assets.v1
102
+ #
103
+ # @esi_version dev
104
+ # @esi_version v5
105
+ #
106
+ # @param corporation_id [Integer] An EVE corporation 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/#/Assets/get_corporations_corporation_id_assets
119
+ def get_corporation_assets_raw(corporation_id:, headers: {}, params: {})
120
+ get("/corporations/#{corporation_id}/assets/", headers: headers, params: params)
121
+ end
122
+
68
123
  # 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
124
  #
70
125
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -89,10 +144,37 @@ module ESI
89
144
  #
90
145
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
91
146
  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
147
+ post_character_asset_locations_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
93
148
  end
94
149
  alias post_characters_character_id_assets_locations post_character_asset_locations
95
150
 
151
+ # 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).
152
+ #
153
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
154
+ #
155
+ # @esi_scope esi-assets.read_assets.v1
156
+ #
157
+ # @esi_version dev
158
+ # @esi_version v2
159
+ #
160
+ # @param character_id [Integer] An EVE character ID
161
+ # @param item_ids [Array] A list of item ids
162
+ # @param params [Hash] Additional query string parameters
163
+ # @param headers [Hash] Additional headers
164
+ #
165
+ # @raise [ESI::Errors::BadRequestError] Bad request
166
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
167
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
168
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
169
+ # @raise [ESI::Errors::InternalServerError] Internal server error
170
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
171
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
172
+ #
173
+ # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
174
+ def post_character_asset_locations_raw(character_id:, item_ids:, headers: {}, params: {})
175
+ post("/characters/#{character_id}/assets/locations/", headers: headers, params: params, payload: item_ids)
176
+ end
177
+
96
178
  # 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
179
  #
98
180
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -118,10 +200,38 @@ module ESI
118
200
  #
119
201
  # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
120
202
  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
203
+ post_character_asset_names_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params).json
122
204
  end
123
205
  alias post_characters_character_id_assets_names post_character_asset_names
124
206
 
207
+ # 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.
208
+ #
209
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
210
+ #
211
+ # @esi_scope esi-assets.read_assets.v1
212
+ #
213
+ # @esi_version dev
214
+ # @esi_version legacy
215
+ # @esi_version v1
216
+ #
217
+ # @param character_id [Integer] An EVE character ID
218
+ # @param item_ids [Array] A list of item ids
219
+ # @param params [Hash] Additional query string parameters
220
+ # @param headers [Hash] Additional headers
221
+ #
222
+ # @raise [ESI::Errors::BadRequestError] Bad request
223
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
224
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
225
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
226
+ # @raise [ESI::Errors::InternalServerError] Internal server error
227
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
228
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
229
+ #
230
+ # @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
231
+ def post_character_asset_names_raw(character_id:, item_ids:, headers: {}, params: {})
232
+ post("/characters/#{character_id}/assets/names/", headers: headers, params: params, payload: item_ids)
233
+ end
234
+
125
235
  # 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
236
  #
127
237
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -147,10 +257,38 @@ module ESI
147
257
  #
148
258
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
149
259
  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
260
+ post_corporation_asset_locations_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
151
261
  end
152
262
  alias post_corporations_corporation_id_assets_locations post_corporation_asset_locations
153
263
 
264
+ # 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).
265
+ #
266
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
267
+ #
268
+ # @esi_scope esi-assets.read_corporation_assets.v1
269
+ #
270
+ # @esi_version dev
271
+ # @esi_version v2
272
+ #
273
+ # @param corporation_id [Integer] An EVE corporation ID
274
+ # @param item_ids [Array] A list of item ids
275
+ # @param params [Hash] Additional query string parameters
276
+ # @param headers [Hash] Additional headers
277
+ #
278
+ # @raise [ESI::Errors::BadRequestError] Bad request
279
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
280
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
281
+ # @raise [ESI::Errors::NotFoundError] Invalid IDs
282
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
283
+ # @raise [ESI::Errors::InternalServerError] Internal server error
284
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
285
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
286
+ #
287
+ # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
288
+ def post_corporation_asset_locations_raw(corporation_id:, item_ids:, headers: {}, params: {})
289
+ post("/corporations/#{corporation_id}/assets/locations/", headers: headers, params: params, payload: item_ids)
290
+ end
291
+
154
292
  # 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
293
  #
156
294
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -177,9 +315,38 @@ module ESI
177
315
  #
178
316
  # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
179
317
  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
318
+ post_corporation_asset_names_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params).json
181
319
  end
182
320
  alias post_corporations_corporation_id_assets_names post_corporation_asset_names
321
+
322
+ # 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.
323
+ #
324
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
325
+ #
326
+ # @esi_scope esi-assets.read_corporation_assets.v1
327
+ #
328
+ # @esi_version dev
329
+ # @esi_version legacy
330
+ # @esi_version v1
331
+ #
332
+ # @param corporation_id [Integer] An EVE corporation ID
333
+ # @param item_ids [Array] A list of item ids
334
+ # @param params [Hash] Additional query string parameters
335
+ # @param headers [Hash] Additional headers
336
+ #
337
+ # @raise [ESI::Errors::BadRequestError] Bad request
338
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
339
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
340
+ # @raise [ESI::Errors::NotFoundError] Invalid IDs
341
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
342
+ # @raise [ESI::Errors::InternalServerError] Internal server error
343
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
344
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
345
+ #
346
+ # @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
347
+ def post_corporation_asset_names_raw(corporation_id:, item_ids:, headers: {}, params: {})
348
+ post("/corporations/#{corporation_id}/assets/names/", headers: headers, params: params, payload: item_ids)
349
+ end
183
350
  end
184
351
  end
185
352
  end