Skip to content

Commit

Permalink
March 25 ESI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GESI Bot authored and GESI Bot committed Mar 25, 2019
1 parent 0e2d0d2 commit b725770
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 120 deletions.
188 changes: 94 additions & 94 deletions src/script/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,59 +838,6 @@ const ENDPOINTS = {
"summary": "Jump activation and fatigue information",
"version": "v1"
},
"characters_character_fittings": {
"description": "Return fittings of a character",
"headers": [
{
"name": "description"
},
{
"name": "fitting_id"
},
{
"name": "items",
"sub_headers": [
"flag",
"quantity",
"type_id"
]
},
{
"name": "name"
},
{
"name": "ship_type_id"
}
],
"method": "GET",
"path": "/{version}/characters/{character_id}/fittings/",
"parameters": [
{
"description": "Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.",
"in": "parameters",
"name": "name",
"type": "string",
"required": false
},
{
"description": "Boolean if column headings should be listed or not. Default: true",
"in": "parameters",
"name": "opt_headers",
"type": "boolean",
"required": false
},
{
"description": "Which ESI version to use for the request. Default: Current ESI latest stable version.",
"in": "path",
"name": "version",
"type": "string",
"required": false
}
],
"scope": "esi-fittings.read_fittings.v1",
"summary": "A list of fittings",
"version": "v1"
},
"characters_character_fleet": {
"description": "Return the fleet ID the character is in, if any.",
"headers": [
Expand Down Expand Up @@ -7440,6 +7387,59 @@ const ENDPOINTS = {
"summary": "A list of contacts",
"version": "v2"
},
"characters_character_fittings": {
"description": "Return fittings of a character",
"headers": [
{
"name": "description"
},
{
"name": "fitting_id"
},
{
"name": "items",
"sub_headers": [
"flag",
"quantity",
"type_id"
]
},
{
"name": "name"
},
{
"name": "ship_type_id"
}
],
"method": "GET",
"path": "/{version}/characters/{character_id}/fittings/",
"parameters": [
{
"description": "Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.",
"in": "parameters",
"name": "name",
"type": "string",
"required": false
},
{
"description": "Boolean if column headings should be listed or not. Default: true",
"in": "parameters",
"name": "opt_headers",
"type": "boolean",
"required": false
},
{
"description": "Which ESI version to use for the request. Default: Current ESI latest stable version.",
"in": "path",
"name": "version",
"type": "string",
"required": false
}
],
"scope": "esi-fittings.read_fittings.v1",
"summary": "A list of fittings",
"version": "v2"
},
"characters_character_online": {
"description": "Checks if the character is currently online",
"headers": [
Expand Down Expand Up @@ -8807,47 +8807,6 @@ const ENDPOINTS = {
"summary": "A list of factions",
"version": "v2"
},
"universe_names": {
"description": "Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types",
"headers": [
{
"name": "category"
},
{
"name": "id"
},
{
"name": "name"
}
],
"method": "POST",
"path": "/{version}/universe/names/",
"parameters": [
{
"description": "The ids to resolve",
"in": "body",
"name": "ids",
"type": "number[]",
"required": true
},
{
"description": "Boolean if column headings should be listed or not. Default: true",
"in": "parameters",
"name": "opt_headers",
"type": "boolean",
"required": false
},
{
"description": "Which ESI version to use for the request. Default: Current ESI latest stable version.",
"in": "path",
"name": "version",
"type": "string",
"required": false
}
],
"summary": "List of id/name associations for a set of ID's. All ID's must resolve to a name, or nothing will be returned",
"version": "v2"
},
"universe_stations_station": {
"description": "Get information on a station",
"headers": [
Expand Down Expand Up @@ -9795,6 +9754,47 @@ const ENDPOINTS = {
"summary": "List of corporation structures' information",
"version": "v3"
},
"universe_names": {
"description": "Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types, Factions",
"headers": [
{
"name": "category"
},
{
"name": "id"
},
{
"name": "name"
}
],
"method": "POST",
"path": "/{version}/universe/names/",
"parameters": [
{
"description": "The ids to resolve",
"in": "body",
"name": "ids",
"type": "number[]",
"required": true
},
{
"description": "Boolean if column headings should be listed or not. Default: true",
"in": "parameters",
"name": "opt_headers",
"type": "boolean",
"required": false
},
{
"description": "Which ESI version to use for the request. Default: Current ESI latest stable version.",
"in": "path",
"name": "version",
"type": "string",
"required": false
}
],
"summary": "List of id/name associations for a set of IDs. All IDs must resolve to a name, or nothing will be returned",
"version": "v3"
},
"universe_types_type": {
"description": "Get information on a type",
"headers": [
Expand Down
50 changes: 25 additions & 25 deletions src/script/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,6 @@ function characters_character_fatigue(name: string, opt_headers: boolean, versio
return parseData_('characters_character_fatigue',{name:name,opt_headers:opt_headers,version:version})
}

/**
* Return fittings of a character
* @param {string} name Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.
* @param {boolean} opt_headers Boolean if column headings should be listed or not. Default: true
* @param {string} version Which ESI version to use for the request. Default: Current ESI latest stable version.
* @return A list of fittings
* @customfunction
*/
function characters_character_fittings(name: string, opt_headers: boolean, version: string): any[][] {
return parseData_('characters_character_fittings',{name:name,opt_headers:opt_headers,version:version})
}

/**
* Return the fleet ID the character is in, if any.
* @param {string} name Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.
Expand Down Expand Up @@ -1781,6 +1769,18 @@ function characters_character_contacts(name: string, page: number, opt_headers:
return parseData_('characters_character_contacts',{name:name,page:page,opt_headers:opt_headers,version:version})
}

/**
* Return fittings of a character
* @param {string} name Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.
* @param {boolean} opt_headers Boolean if column headings should be listed or not. Default: true
* @param {string} version Which ESI version to use for the request. Default: Current ESI latest stable version.
* @return A list of fittings
* @customfunction
*/
function characters_character_fittings(name: string, opt_headers: boolean, version: string): any[][] {
return parseData_('characters_character_fittings',{name:name,opt_headers:opt_headers,version:version})
}

/**
* Checks if the character is currently online
* @param {string} name Name of the character used for auth. If none is given, defaults to MAIN_CHARACTER.
Expand Down Expand Up @@ -1986,19 +1986,6 @@ function universe_factions(language: string, opt_headers: boolean, version: stri
return parseData_('universe_factions',{language:language,opt_headers:opt_headers,version:version})
}

/**
* Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types
* @param {number[]} ids (Required) The ids to resolve
* @param {boolean} opt_headers Boolean if column headings should be listed or not. Default: true
* @param {string} version Which ESI version to use for the request. Default: Current ESI latest stable version.
* @return List of id/name associations for a set of ID's. All ID's must resolve to a name, or nothing will be returned
* @customfunction
*/
function universe_names(ids: number[], opt_headers: boolean, version: string): any[][] {
if(!ids) throw buildError_({body: 'ids is required', code: 400, method: 'universe_names'});
return parseData_('universe_names',{ids:ids,opt_headers:opt_headers,version:version})
}

/**
* Get information on a station
* @param {number} station_id (Required) station_id integer
Expand Down Expand Up @@ -2185,6 +2172,19 @@ function corporations_corporation_structures(language: string, name: string, pag
return parseData_('corporations_corporation_structures',{language:language,name:name,page:page,opt_headers:opt_headers,version:version})
}

/**
* Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types, Factions
* @param {number[]} ids (Required) The ids to resolve
* @param {boolean} opt_headers Boolean if column headings should be listed or not. Default: true
* @param {string} version Which ESI version to use for the request. Default: Current ESI latest stable version.
* @return List of id/name associations for a set of IDs. All IDs must resolve to a name, or nothing will be returned
* @customfunction
*/
function universe_names(ids: number[], opt_headers: boolean, version: string): any[][] {
if(!ids) throw buildError_({body: 'ids is required', code: 400, method: 'universe_names'});
return parseData_('universe_names',{ids:ids,opt_headers:opt_headers,version:version})
}

/**
* Get information on a type
* @param {number} type_id (Required) An Eve item type ID
Expand Down
2 changes: 1 addition & 1 deletion src/version.cr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c6f45d2a3e277865a6
c6f45d2a3e277865a6a252328135ea554c255b3266f3f2055a4279d7

0 comments on commit b725770

Please sign in to comment.