Private
_clientThe underlying AxiosInstance that makes the requests. This isn't ever directly called by the users.
Private
_rateWrapper for the underlying axios instance which handles rate-limiting. (2 requests per 1 second)
Private
_tokenThe token to use when making requests to protected routes
This is the token you get after registering an agent via the RegisterAgent funciton
Object which holds the endpoints pertaining to agents
Fetches the currently validated user's Agent information
Endpoints pertaining to contracts
Accepts a Contract given by its contract ID
The ID of the contract to accept
Delivers a Contractby its contract ID, as well as delivering the goods defined in the contract.
The ID of the contract to deliver
Object containing information about the ship which contains the deliverable goods, the id of the good and the amount in units
{
shipSymbol: "string",
tradeSymbol: "string",
units: 123
}
Fetches a Contract by a given contract ID
The ID of the contract to fetch
Fulfills a Contract given by its contract ID
The ID of the contract to fulfill
Endpoints pertaining to user's fleet
Endpoints pertaining to User's ship
Fetches a ship cargo by it's symbol
The symbol of the ship cargo to fetch
Gets a ship's cooldown information
The symbol of the ship to retreive cooldown information for
Creates a chart for a given ship
The symbol of the ship which will create the chart
Sends a ship to start surveying
The symbol of the ship which will begin a survey
Sends a ship to the dock
The symbol of the ship to dock
Sends a ship to extract resources from a surveyed location
The symbol of the ship which will start extracting
Object containing survey information
{
survey: {Survey}
}
Fetches a ship by it's symbol
The symbol of the ship to fetch
Gets a ship's navigation data
The symbol of the ship to fetch navigation data for
Commands a ship to jettison a given cargo
The symbol of the ship to jettison cargo from
Object containing information which cargo to jettison and the amount
{
symbol: "string",
units: 123
}
Commands a ship to perform a jump
The symbol of the ship to command a jump on
Object containing information about the system to jump to
{
systemSymbol: "string"
}
Command a ship to navigate to a given waypoint
The symbol of the ship to navigate
Object containing information about the waypoint to navigate to
{
waypointSymbol: "string"
}
Commands a ship to perform a contract negotiation
The symbol of the ship to perform a contract negotiation with
Commands a ship to go to orbit
The symbol of the ship to send to orbit
Perform patching on a ship's navigation module
The symbol of the ship to perform the patch on
Object containing information about the flightmode
{
flightMode: "string"
}
Confirms purchasing a new ship
Object containing information about which ship to purchase
{
shipType: "string",
waypointSymbol: "string",
}
Purchase cargo and store it on a given ship
The symbol of the ship that should store the cargo
Object containing information about the cargo to buy
{
symbol: "string",
units: 123
}
Sends a produce to be refined
Object containing information about which produce to refine
{
produce: "string",
}
Command a ship to start refueling
The symbol of the ship that should refuel
Commands a ship to perform a scan of ships
The symbol of the ship to perform the scan
Commands a ship to perform a scan of systems
The symbol of the ship to perform the scan
Commands a ship to perform a scan of waypoints
The symbol of the ship to perform the scan
Sell a given cargo and amount from a given ship
The symbol of the ship to sell cargo from
Object containing information about the cargo to sell
{
symbol: "string",
units: 123
}
Transfers cargo between two ships
The symbol of the ship that cargo should be transferred from
Object containing information about the ship receiving the cargo
{
tradeSymbol: "string",
units: 123,
shipSymbol: "string"
}
Warps a ship to a given waypoint
The symbol of the ship to perform a warp with
Object containing information about the warp
{
waypointSymbol: "string"
}
Fetches multiple Ships, split by amount per page and page number
The limit of returned items per page, between 1 and 20 inclusive
The page number to fetch, relative to given limits in the limit parameter
Fetches multiple Contracts, split by amount per page and page number
The limit of returned items per page, between 1 and 20 inclusive
The page number to fetch, relative to given limits in the limit parameter
Fetches multiple Factions, split by amount per page and page number
The limit of returned items per page, between 1 and 20 inclusive
The page number to fetch, relative to given limits in the limit parameter
Fetches multiple Systems, split by amount per page and page number
The limit of returned items per page, between 1 and 20 inclusive
The page number to fetch, relative to given limits in the limit parameter
Fetches multiple Waypoints, split by amount per page and page number
The symbol of the system to fetch waypoints from
The limit of returned items per page, between 1 and 20 inclusive
The page number to fetch, relative to given limits in the limit parameter
Client class which proxies requests via an AxiosInstance