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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +21 -3
- data/lib/esi/client/alliance.rb +97 -4
- data/lib/esi/client/assets.rb +175 -6
- data/lib/esi/client/bookmarks.rb +118 -4
- data/lib/esi/client/calendar.rb +132 -5
- data/lib/esi/client/character.rb +383 -14
- data/lib/esi/client/clones.rb +61 -2
- data/lib/esi/client/contacts.rb +271 -12
- data/lib/esi/client/contracts.rb +266 -9
- data/lib/esi/client/corporation.rb +730 -136
- data/lib/esi/client/dogma.rb +111 -5
- data/lib/esi/client/faction_warfare.rb +192 -8
- data/lib/esi/client/fittings.rb +86 -3
- data/lib/esi/client/fleets.rb +427 -14
- data/lib/esi/client/incursions.rb +23 -1
- data/lib/esi/client/industry.rb +231 -9
- data/lib/esi/client/insurance.rb +23 -1
- data/lib/esi/client/killmails.rb +86 -3
- data/lib/esi/client/location.rb +92 -3
- data/lib/esi/client/loyalty.rb +53 -2
- data/lib/esi/client/mail.rb +239 -8
- data/lib/esi/client/market.rb +294 -12
- data/lib/esi/client/opportunities.rb +116 -5
- data/lib/esi/client/planetary_interaction.rb +114 -4
- data/lib/esi/client/routes.rb +29 -1
- data/lib/esi/client/search.rb +60 -3
- data/lib/esi/client/skills.rb +89 -3
- data/lib/esi/client/sovereignty.rb +69 -3
- data/lib/esi/client/status.rb +24 -1
- data/lib/esi/client/universe.rb +795 -176
- data/lib/esi/client/user_interface.rb +143 -5
- data/lib/esi/client/wallet.rb +183 -8
- data/lib/esi/client/wars.rb +74 -3
- data/lib/esi/version.rb +1 -1
- metadata +2 -2
data/lib/esi/client/mail.rb
CHANGED
@@ -29,10 +29,38 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Mail/delete_characters_character_id_mail_mail_id
|
31
31
|
def delete_character_mail(character_id:, mail_id:, headers: {}, params: {})
|
32
|
-
|
32
|
+
delete_character_mail_raw(character_id: character_id, mail_id: mail_id, headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias delete_characters_character_id_mail_mail_id delete_character_mail
|
35
35
|
|
36
|
+
# Delete a mail.
|
37
|
+
#
|
38
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
39
|
+
#
|
40
|
+
# @esi_scope esi-mail.organize_mail.v1
|
41
|
+
#
|
42
|
+
# @esi_version dev
|
43
|
+
# @esi_version legacy
|
44
|
+
# @esi_version v1
|
45
|
+
#
|
46
|
+
# @param character_id [Integer] An EVE character ID
|
47
|
+
# @param mail_id [Integer] An EVE mail 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/#/Mail/delete_characters_character_id_mail_mail_id
|
60
|
+
def delete_character_mail_raw(character_id:, mail_id:, headers: {}, params: {})
|
61
|
+
delete("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params)
|
62
|
+
end
|
63
|
+
|
36
64
|
# Delete a mail label.
|
37
65
|
#
|
38
66
|
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
@@ -59,10 +87,39 @@ module ESI
|
|
59
87
|
#
|
60
88
|
# @see https://esi.evetech.net/ui/#/Mail/delete_characters_character_id_mail_labels_label_id
|
61
89
|
def delete_character_mail_label(character_id:, label_id:, headers: {}, params: {})
|
62
|
-
|
90
|
+
delete_character_mail_label_raw(character_id: character_id, label_id: label_id, headers: headers, params: params).json
|
63
91
|
end
|
64
92
|
alias delete_characters_character_id_mail_labels_label_id delete_character_mail_label
|
65
93
|
|
94
|
+
# Delete a mail label.
|
95
|
+
#
|
96
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
97
|
+
#
|
98
|
+
# @esi_scope esi-mail.organize_mail.v1
|
99
|
+
#
|
100
|
+
# @esi_version dev
|
101
|
+
# @esi_version legacy
|
102
|
+
# @esi_version v1
|
103
|
+
#
|
104
|
+
# @param character_id [Integer] An EVE character ID
|
105
|
+
# @param label_id [Integer] An EVE label id
|
106
|
+
# @param params [Hash] Additional query string parameters
|
107
|
+
# @param headers [Hash] Additional headers
|
108
|
+
#
|
109
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
110
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
111
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
112
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
113
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Default labels cannot be deleted
|
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/#/Mail/delete_characters_character_id_mail_labels_label_id
|
119
|
+
def delete_character_mail_label_raw(character_id:, label_id:, headers: {}, params: {})
|
120
|
+
delete("/characters/#{character_id}/mail/labels/#{label_id}/", headers: headers, params: params)
|
121
|
+
end
|
122
|
+
|
66
123
|
# Return the contents of an EVE mail.
|
67
124
|
#
|
68
125
|
# This endpoint is cached for up to 30 seconds.
|
@@ -91,10 +148,41 @@ module ESI
|
|
91
148
|
#
|
92
149
|
# @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_mail_id
|
93
150
|
def get_character_mail(character_id:, mail_id:, headers: {}, params: {})
|
94
|
-
|
151
|
+
get_character_mail_raw(character_id: character_id, mail_id: mail_id, headers: headers, params: params).json
|
95
152
|
end
|
96
153
|
alias get_characters_character_id_mail_mail_id get_character_mail
|
97
154
|
|
155
|
+
# Return the contents of an EVE mail.
|
156
|
+
#
|
157
|
+
# This endpoint is cached for up to 30 seconds.
|
158
|
+
#
|
159
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
160
|
+
#
|
161
|
+
# @esi_scope esi-mail.read_mail.v1
|
162
|
+
#
|
163
|
+
# @esi_version dev
|
164
|
+
# @esi_version legacy
|
165
|
+
# @esi_version v1
|
166
|
+
#
|
167
|
+
# @param character_id [Integer] An EVE character ID
|
168
|
+
# @param mail_id [Integer] An EVE mail ID
|
169
|
+
# @param params [Hash] Additional query string parameters
|
170
|
+
# @param headers [Hash] Additional headers
|
171
|
+
#
|
172
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
173
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
174
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
175
|
+
# @raise [ESI::Errors::NotFoundError] Mail not found
|
176
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
177
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
178
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
179
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
180
|
+
#
|
181
|
+
# @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_mail_id
|
182
|
+
def get_character_mail_raw(character_id:, mail_id:, headers: {}, params: {})
|
183
|
+
get("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params)
|
184
|
+
end
|
185
|
+
|
98
186
|
# Return a list of the users mail labels, unread counts for each label and a total unread count.
|
99
187
|
#
|
100
188
|
# This endpoint is cached for up to 30 seconds.
|
@@ -120,10 +208,38 @@ module ESI
|
|
120
208
|
#
|
121
209
|
# @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_labels
|
122
210
|
def get_character_mail_labels(character_id:, headers: {}, params: {})
|
123
|
-
|
211
|
+
get_character_mail_labels_raw(character_id: character_id, headers: headers, params: params).json
|
124
212
|
end
|
125
213
|
alias get_characters_character_id_mail_labels get_character_mail_labels
|
126
214
|
|
215
|
+
# Return a list of the users mail labels, unread counts for each label and a total unread count.
|
216
|
+
#
|
217
|
+
# This endpoint is cached for up to 30 seconds.
|
218
|
+
#
|
219
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
220
|
+
#
|
221
|
+
# @esi_scope esi-mail.read_mail.v1
|
222
|
+
#
|
223
|
+
# @esi_version dev
|
224
|
+
# @esi_version v3
|
225
|
+
#
|
226
|
+
# @param character_id [Integer] An EVE character 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/#/Mail/get_characters_character_id_mail_labels
|
239
|
+
def get_character_mail_labels_raw(character_id:, headers: {}, params: {})
|
240
|
+
get("/characters/#{character_id}/mail/labels/", headers: headers, params: params)
|
241
|
+
end
|
242
|
+
|
127
243
|
# Return all mailing lists that the character is subscribed to.
|
128
244
|
#
|
129
245
|
# This endpoint is cached for up to 120 seconds.
|
@@ -150,10 +266,39 @@ module ESI
|
|
150
266
|
#
|
151
267
|
# @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_lists
|
152
268
|
def get_character_mail_lists(character_id:, headers: {}, params: {})
|
153
|
-
|
269
|
+
get_character_mail_lists_raw(character_id: character_id, headers: headers, params: params).json
|
154
270
|
end
|
155
271
|
alias get_characters_character_id_mail_lists get_character_mail_lists
|
156
272
|
|
273
|
+
# Return all mailing lists that the character is subscribed to.
|
274
|
+
#
|
275
|
+
# This endpoint is cached for up to 120 seconds.
|
276
|
+
#
|
277
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
278
|
+
#
|
279
|
+
# @esi_scope esi-mail.read_mail.v1
|
280
|
+
#
|
281
|
+
# @esi_version dev
|
282
|
+
# @esi_version legacy
|
283
|
+
# @esi_version v1
|
284
|
+
#
|
285
|
+
# @param character_id [Integer] An EVE character ID
|
286
|
+
# @param params [Hash] Additional query string parameters
|
287
|
+
# @param headers [Hash] Additional headers
|
288
|
+
#
|
289
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
290
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
291
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
292
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
293
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
294
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
295
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
296
|
+
#
|
297
|
+
# @see https://esi.evetech.net/ui/#/Mail/get_characters_character_id_mail_lists
|
298
|
+
def get_character_mail_lists_raw(character_id:, headers: {}, params: {})
|
299
|
+
get("/characters/#{character_id}/mail/lists/", headers: headers, params: params)
|
300
|
+
end
|
301
|
+
|
157
302
|
# Create and send a new mail.
|
158
303
|
#
|
159
304
|
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
@@ -180,10 +325,39 @@ module ESI
|
|
180
325
|
#
|
181
326
|
# @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail
|
182
327
|
def post_character_mail(character_id:, mail:, headers: {}, params: {})
|
183
|
-
|
328
|
+
post_character_mail_raw(character_id: character_id, mail: mail, headers: headers, params: params).json
|
184
329
|
end
|
185
330
|
alias post_characters_character_id_mail post_character_mail
|
186
331
|
|
332
|
+
# Create and send a new mail.
|
333
|
+
#
|
334
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
335
|
+
#
|
336
|
+
# @esi_scope esi-mail.send_mail.v1
|
337
|
+
#
|
338
|
+
# @esi_version dev
|
339
|
+
# @esi_version legacy
|
340
|
+
# @esi_version v1
|
341
|
+
#
|
342
|
+
# @param character_id [Integer] An EVE character ID
|
343
|
+
# @param mail [Hash] The mail to send
|
344
|
+
# @param params [Hash] Additional query string parameters
|
345
|
+
# @param headers [Hash] Additional headers
|
346
|
+
#
|
347
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
348
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
349
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
350
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
351
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
352
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
353
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
354
|
+
# @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server. Most of the time this means you have hit an EVE server rate limit
|
355
|
+
#
|
356
|
+
# @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail
|
357
|
+
def post_character_mail_raw(character_id:, mail:, headers: {}, params: {})
|
358
|
+
post("/characters/#{character_id}/mail/", headers: headers, params: params, payload: mail)
|
359
|
+
end
|
360
|
+
|
187
361
|
# Create a mail label.
|
188
362
|
#
|
189
363
|
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
@@ -209,10 +383,38 @@ module ESI
|
|
209
383
|
#
|
210
384
|
# @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail_labels
|
211
385
|
def post_character_mail_labels(character_id:, label:, headers: {}, params: {})
|
212
|
-
|
386
|
+
post_character_mail_labels_raw(character_id: character_id, label: label, headers: headers, params: params).json
|
213
387
|
end
|
214
388
|
alias post_characters_character_id_mail_labels post_character_mail_labels
|
215
389
|
|
390
|
+
# Create a mail label.
|
391
|
+
#
|
392
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
393
|
+
#
|
394
|
+
# @esi_scope esi-mail.organize_mail.v1
|
395
|
+
#
|
396
|
+
# @esi_version dev
|
397
|
+
# @esi_version legacy
|
398
|
+
# @esi_version v2
|
399
|
+
#
|
400
|
+
# @param character_id [Integer] An EVE character ID
|
401
|
+
# @param label [Hash] Label to create
|
402
|
+
# @param params [Hash] Additional query string parameters
|
403
|
+
# @param headers [Hash] Additional headers
|
404
|
+
#
|
405
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
406
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
407
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
408
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
409
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
410
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
411
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
412
|
+
#
|
413
|
+
# @see https://esi.evetech.net/ui/#/Mail/post_characters_character_id_mail_labels
|
414
|
+
def post_character_mail_labels_raw(character_id:, label:, headers: {}, params: {})
|
415
|
+
post("/characters/#{character_id}/mail/labels/", headers: headers, params: params, payload: label)
|
416
|
+
end
|
417
|
+
|
216
418
|
# Update metadata about a mail.
|
217
419
|
#
|
218
420
|
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
@@ -239,9 +441,38 @@ module ESI
|
|
239
441
|
#
|
240
442
|
# @see https://esi.evetech.net/ui/#/Mail/put_characters_character_id_mail_mail_id
|
241
443
|
def put_character_mail(character_id:, mail_id:, contents:, headers: {}, params: {})
|
242
|
-
|
444
|
+
put_character_mail_raw(character_id: character_id, mail_id: mail_id, contents: contents, headers: headers, params: params).json
|
243
445
|
end
|
244
446
|
alias put_characters_character_id_mail_mail_id put_character_mail
|
447
|
+
|
448
|
+
# Update metadata about a mail.
|
449
|
+
#
|
450
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
451
|
+
#
|
452
|
+
# @esi_scope esi-mail.organize_mail.v1
|
453
|
+
#
|
454
|
+
# @esi_version dev
|
455
|
+
# @esi_version legacy
|
456
|
+
# @esi_version v1
|
457
|
+
#
|
458
|
+
# @param character_id [Integer] An EVE character ID
|
459
|
+
# @param mail_id [Integer] An EVE mail ID
|
460
|
+
# @param contents [Hash] Data used to update the mail
|
461
|
+
# @param params [Hash] Additional query string parameters
|
462
|
+
# @param headers [Hash] Additional headers
|
463
|
+
#
|
464
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
465
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
466
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
467
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
468
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
469
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
470
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
471
|
+
#
|
472
|
+
# @see https://esi.evetech.net/ui/#/Mail/put_characters_character_id_mail_mail_id
|
473
|
+
def put_character_mail_raw(character_id:, mail_id:, contents:, headers: {}, params: {})
|
474
|
+
put("/characters/#{character_id}/mail/#{mail_id}/", headers: headers, params: params, payload: contents)
|
475
|
+
end
|
245
476
|
end
|
246
477
|
end
|
247
478
|
end
|