Class: Type

Type

An api adapter for dealing with a single item type, currently only supporting fetching simple information.


new Type(agent, typeId)

Create a new Type for the given agent provider and specific typeId.

Parameters:
Name Type Description
agent ESIAgent

The agent used to generate web requests

typeId Number

The type id that is used for all requests

Methods


info()

Get information on a type. This route expires daily at 11:05.

This makes an HTTP GET request to /universe/types/{type_id}/. The route version is v2.

On success, this resolves to information about a type. An example result is:

{
  "capacity": 0,
  "description": "The Rifter is a...",
  "dogma_attributes": [
    {
      "attribute_id": 0,
      "value": 0
    }
  ],
  "dogma_effects": [
    {
      "effect_id": 0,
      "is_default": false
    }
  ],
  "graphic_id": 0,
  "group_id": 25,
  "icon_id": 0,
  "mass": 0,
  "name": "Rifter",
  "portion_size": 0,
  "published": true,
  "radius": 0,
  "type_id": 587,
  "volume": 0
}
Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>