Class: Wing

Wing

An api adapter over the end points handling a specific wing in a character's fleet via functions in the fleets ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.


new Wing(fleet, wingId)

Create a new Wing adaptor owned by the given fleet corresponding to the given wingId.

Parameters:
Name Type Description
fleet Fleet

The owning fleet

wingId Number

The wing id of this instance

Members


squads :Squads

Get the Squads end point for this particular wing.

Type:

Methods


del()

Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty.

This makes an HTTP DELETE request to /fleets/{fleet_id}/wings/{wing_id}/. The route version is v1.

On success, this resolves to an empty object.

This function must be used with an SSO token that has the following scopes:

  • esi-fleets.write_fleet.v1
Returns:

A Promise that resolves to an empty object.

Type
Promise.<Object>

rename(name)

Rename a fleet wing.

This makes an HTTP PUT request to /fleets/{fleet_id}/wings/{wing_id}/. The route version is v1.

The route parameter, naming, is built implicitly by the function. The function argument name maps to the name property of the naming route parameter. The string length of name can be at most 10.

On success, this resolves to an empty object.

This function must be used with an SSO token that has the following scopes:

  • esi-fleets.write_fleet.v1
Parameters:
Name Type Description
name String

Name string.

Returns:

A Promise that resolves to an empty object.

Type
Promise.<Object>