feat(#15): Regen api
This commit is contained in:
+307
-13
@@ -368,6 +368,35 @@ export interface MarketHistoryResponse {
|
||||
*/
|
||||
'volume': number;
|
||||
}
|
||||
/**
|
||||
* A market location (NPC station) with its containing solar system and region.
|
||||
*/
|
||||
export interface MarketLocationResponse {
|
||||
/**
|
||||
* EVE market location id (station id).
|
||||
*/
|
||||
'id': number;
|
||||
/**
|
||||
* Location name.
|
||||
*/
|
||||
'name': string;
|
||||
/**
|
||||
* Id of the solar system the location is in.
|
||||
*/
|
||||
'systemId': number;
|
||||
/**
|
||||
* Name of the solar system the location is in.
|
||||
*/
|
||||
'systemName': string;
|
||||
/**
|
||||
* Id of the region the location is in.
|
||||
*/
|
||||
'regionId': number;
|
||||
/**
|
||||
* Name of the region the location is in.
|
||||
*/
|
||||
'regionName': string;
|
||||
}
|
||||
/**
|
||||
* An open market order placed by one of the authenticated user\'s characters.
|
||||
*/
|
||||
@@ -2051,12 +2080,13 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @summary Return the current order book (highest buy, lowest sell, order count) for each requested market type, priced at the given market location (Jita by default)
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices: async (types: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
currentPrices: async (types: Array<number>, locationId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'types' is not null or undefined
|
||||
assertParamExists('currentPrices', 'types', types)
|
||||
const localVarPath = `/market/prices`;
|
||||
@@ -2075,6 +2105,10 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
localVarQueryParameter['types'] = types;
|
||||
}
|
||||
|
||||
if (locationId !== undefined) {
|
||||
localVarQueryParameter['locationId'] = locationId;
|
||||
}
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -2283,7 +2317,7 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
parseStacks: async (body: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
assertParamExists('parseStacks', 'body', body)
|
||||
const localVarPath = `/market/types/parse`;
|
||||
const localVarPath = `/market/types/paste`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
@@ -2308,6 +2342,46 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Parse a pasted EVE inventory block (item name + quantity, tab/newline separated) and return the current valuation of each stack at the given market location (Jita by default)
|
||||
* @param {string} body
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
pastePrices: async (body: string, locationId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
assertParamExists('pastePrices', 'body', body)
|
||||
const localVarPath = `/market/prices/paste`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (locationId !== undefined) {
|
||||
localVarQueryParameter['locationId'] = locationId;
|
||||
}
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'text/plain';
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Scan every tracked market type, returning volume-weighted price quartiles and the recent price trend for each
|
||||
@@ -2455,13 +2529,14 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @summary Return the current order book (highest buy, lowest sell, order count) for each requested market type, priced at the given market location (Jita by default)
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketPriceResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.currentPrices(types, options);
|
||||
async currentPrices(types: Array<number>, locationId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketPriceResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.currentPrices(types, locationId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.currentPrices']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
@@ -2546,6 +2621,20 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.parseStacks']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Parse a pasted EVE inventory block (item name + quantity, tab/newline separated) and return the current valuation of each stack at the given market location (Jita by default)
|
||||
* @param {string} body
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async pastePrices(body: string, locationId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketTypeStackAppraisalResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.pastePrices(body, locationId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.pastePrices']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Scan every tracked market type, returning volume-weighted price quartiles and the recent price trend for each
|
||||
@@ -2602,13 +2691,14 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @summary Return the current order book (highest buy, lowest sell, order count) for each requested market type, priced at the given market location (Jita by default)
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketPriceResponse>> {
|
||||
return localVarFp.currentPrices(types, options).then((request) => request(axios, basePath));
|
||||
currentPrices(types: Array<number>, locationId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketPriceResponse>> {
|
||||
return localVarFp.currentPrices(types, locationId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
@@ -2672,6 +2762,17 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
parseStacks(body: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketTypeStackResponse>> {
|
||||
return localVarFp.parseStacks(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Parse a pasted EVE inventory block (item name + quantity, tab/newline separated) and return the current valuation of each stack at the given market location (Jita by default)
|
||||
* @param {string} body
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
pastePrices(body: string, locationId?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketTypeStackAppraisalResponse>> {
|
||||
return localVarFp.pastePrices(body, locationId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Scan every tracked market type, returning volume-weighted price quartiles and the recent price trend for each
|
||||
@@ -2717,13 +2818,14 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
export class MarketApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @summary Return the current order book (highest buy, lowest sell, order count) for each requested market type, priced at the given market location (Jita by default)
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public currentPrices(types: Array<number>, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).currentPrices(types, options).then((request) => request(this.axios, this.basePath));
|
||||
public currentPrices(types: Array<number>, locationId?: number, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).currentPrices(types, locationId, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2794,6 +2896,18 @@ export class MarketApi extends BaseAPI {
|
||||
return MarketApiFp(this.configuration).parseStacks(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Parse a pasted EVE inventory block (item name + quantity, tab/newline separated) and return the current valuation of each stack at the given market location (Jita by default)
|
||||
* @param {string} body
|
||||
* @param {number} [locationId] Station or structure id of the market to price against; defaults to Jita when omitted
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public pastePrices(body: string, locationId?: number, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).pastePrices(body, locationId, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Scan every tracked market type, returning volume-weighted price quartiles and the recent price trend for each
|
||||
@@ -2984,7 +3098,7 @@ export const ReprocessingApiAxiosParamCreator = function (configuration?: Config
|
||||
assertParamExists('reprocessRawItems', 'characterId', characterId)
|
||||
// verify required parameter 'body' is not null or undefined
|
||||
assertParamExists('reprocessRawItems', 'body', body)
|
||||
const localVarPath = `/reprocessing/raw`;
|
||||
const localVarPath = `/reprocessing/paste`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
@@ -3480,3 +3594,183 @@ export class TransactionApi extends BaseAPI {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* UniverseApi - axios parameter creator
|
||||
*/
|
||||
export const UniverseApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Resolve a market location id to its name and containing solar system and region
|
||||
* @param {number} id Market location id (station id) to resolve, e.g. 60003760
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
resolveLocation: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'id' is not null or undefined
|
||||
assertParamExists('resolveLocation', 'id', id)
|
||||
const localVarPath = `/locations/{id}`
|
||||
.replace('{id}', encodeURIComponent(String(id)));
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Search NPC market locations (stations) whose name contains the given text, case-insensitively
|
||||
* @param {string} name Text to match against the location name, e.g. name=jita
|
||||
* @param {number} [limit] Maximum number of results to return, defaults to 50
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
searchLocations: async (name: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'name' is not null or undefined
|
||||
assertParamExists('searchLocations', 'name', name)
|
||||
const localVarPath = `/locations/search`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name;
|
||||
}
|
||||
|
||||
if (limit !== undefined) {
|
||||
localVarQueryParameter['limit'] = limit;
|
||||
}
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* UniverseApi - functional programming interface
|
||||
*/
|
||||
export const UniverseApiFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = UniverseApiAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Resolve a market location id to its name and containing solar system and region
|
||||
* @param {number} id Market location id (station id) to resolve, e.g. 60003760
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async resolveLocation(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarketLocationResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.resolveLocation(id, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['UniverseApi.resolveLocation']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Search NPC market locations (stations) whose name contains the given text, case-insensitively
|
||||
* @param {string} name Text to match against the location name, e.g. name=jita
|
||||
* @param {number} [limit] Maximum number of results to return, defaults to 50
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async searchLocations(name: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketLocationResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.searchLocations(name, limit, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['UniverseApi.searchLocations']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* UniverseApi - factory interface
|
||||
*/
|
||||
export const UniverseApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = UniverseApiFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Resolve a market location id to its name and containing solar system and region
|
||||
* @param {number} id Market location id (station id) to resolve, e.g. 60003760
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
resolveLocation(id: number, options?: RawAxiosRequestConfig): AxiosPromise<MarketLocationResponse> {
|
||||
return localVarFp.resolveLocation(id, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Search NPC market locations (stations) whose name contains the given text, case-insensitively
|
||||
* @param {string} name Text to match against the location name, e.g. name=jita
|
||||
* @param {number} [limit] Maximum number of results to return, defaults to 50
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
searchLocations(name: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketLocationResponse>> {
|
||||
return localVarFp.searchLocations(name, limit, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* UniverseApi - object-oriented interface
|
||||
*/
|
||||
export class UniverseApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Resolve a market location id to its name and containing solar system and region
|
||||
* @param {number} id Market location id (station id) to resolve, e.g. 60003760
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public resolveLocation(id: number, options?: RawAxiosRequestConfig) {
|
||||
return UniverseApiFp(this.configuration).resolveLocation(id, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Search NPC market locations (stations) whose name contains the given text, case-insensitively
|
||||
* @param {string} name Text to match against the location name, e.g. name=jita
|
||||
* @param {number} [limit] Maximum number of results to return, defaults to 50
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public searchLocations(name: string, limit?: number, options?: RawAxiosRequestConfig) {
|
||||
return UniverseApiFp(this.configuration).searchLocations(name, limit, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user