cleanup and fix
This commit is contained in:
+28
-220
@@ -19,7 +19,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The rule book
|
||||
@@ -29,13 +29,6 @@ paths:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
"404":
|
||||
description: No rule book with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
put:
|
||||
tags:
|
||||
- rule-book
|
||||
@@ -48,7 +41,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the rule book
|
||||
content:
|
||||
@@ -68,13 +61,6 @@ paths:
|
||||
Returned when:
|
||||
- the request is invalid (e.g. blank name)
|
||||
- the rule book is the default rule book, which cannot be modified
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
delete:
|
||||
tags:
|
||||
- rule-book
|
||||
@@ -87,29 +73,15 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"204":
|
||||
description: The rule book was deleted
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"400":
|
||||
description: |-
|
||||
Returned when:
|
||||
- the rule book is associated to a character
|
||||
- the rule book is the default rule book, which cannot be deleted
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/main/{ledgerId}:
|
||||
put:
|
||||
tags:
|
||||
@@ -123,7 +95,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the main ledger
|
||||
content:
|
||||
@@ -143,22 +115,8 @@ paths:
|
||||
Returned when:
|
||||
- the ledger is not a main ledger
|
||||
- the request is invalid
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/combined/{ledgerId}:
|
||||
put:
|
||||
tags:
|
||||
@@ -172,7 +130,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the combined ledger
|
||||
content:
|
||||
@@ -192,22 +150,8 @@ paths:
|
||||
Returned when:
|
||||
- the ledger is not a combined ledger
|
||||
- the request is invalid
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/characters/{characterId}/rule-book:
|
||||
get:
|
||||
tags:
|
||||
@@ -220,8 +164,8 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: The rule book assignment of the character
|
||||
@@ -231,22 +175,8 @@ paths:
|
||||
$ref: "#/components/schemas/CharacterRuleBookResponse"
|
||||
"400":
|
||||
description: Invalid character id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No rule book assigned to this character
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
put:
|
||||
tags:
|
||||
- character-rule-book
|
||||
@@ -258,8 +188,8 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
requestBody:
|
||||
description: Rule book and ledger bindings to assign
|
||||
content:
|
||||
@@ -281,13 +211,6 @@ paths:
|
||||
- a bound ledger does not exist
|
||||
- a bound ledger is not a main or system ledger
|
||||
- a required ledger binding is missing
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/rule-books:
|
||||
get:
|
||||
tags:
|
||||
@@ -323,26 +246,14 @@ paths:
|
||||
description: URL of the created rule book
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
"400":
|
||||
description: Invalid request (e.g. blank name)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/process-activities:
|
||||
post:
|
||||
tags:
|
||||
@@ -373,26 +284,14 @@ paths:
|
||||
description: URL of the created main ledger
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/MainLedgerResponse"
|
||||
"400":
|
||||
description: Invalid request (e.g. blank name)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/combined:
|
||||
post:
|
||||
tags:
|
||||
@@ -414,13 +313,8 @@ paths:
|
||||
description: URL of the created combined ledger
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
@@ -428,13 +322,6 @@ paths:
|
||||
"400":
|
||||
description: "Invalid request (e.g. blank name, a member ledger missing\
|
||||
\ or already contained)"
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/activity/fetch:
|
||||
post:
|
||||
tags:
|
||||
@@ -456,20 +343,13 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: New activities fetched and stored
|
||||
"400":
|
||||
description: No character with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/rule-books/script-definitions:
|
||||
get:
|
||||
tags:
|
||||
@@ -495,8 +375,8 @@ paths:
|
||||
description: The market type id to scan
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
- name: days
|
||||
in: query
|
||||
description: Number of most recent days of history to analyse
|
||||
@@ -535,13 +415,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketScanResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/{marketTypeId}/history:
|
||||
get:
|
||||
tags:
|
||||
@@ -554,8 +427,8 @@ paths:
|
||||
description: Id of the market type
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
- name: days
|
||||
in: query
|
||||
description: Optional number of most recent days to return; omit for the full
|
||||
@@ -564,7 +437,6 @@ paths:
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: ""
|
||||
minimum: 1
|
||||
responses:
|
||||
"200":
|
||||
@@ -577,13 +449,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketHistoryResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/scan:
|
||||
get:
|
||||
tags:
|
||||
@@ -632,13 +497,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketScanResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/prices:
|
||||
get:
|
||||
tags:
|
||||
@@ -652,8 +510,10 @@ paths:
|
||||
description: "Market type ids to price, e.g. types=34,35"
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: "The order book for each requested type, one entry per type"
|
||||
@@ -668,13 +528,6 @@ paths:
|
||||
Returned when:
|
||||
- the types parameter is missing
|
||||
- a types value is not a numeric id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers:
|
||||
get:
|
||||
tags:
|
||||
@@ -703,7 +556,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The ledger
|
||||
@@ -713,22 +566,8 @@ paths:
|
||||
$ref: "#/components/schemas/LedgerResponse"
|
||||
"400":
|
||||
description: The ledger cannot be exposed (system ledger)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/{ledgerId}/transactions:
|
||||
get:
|
||||
tags:
|
||||
@@ -742,7 +581,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: All transactions in the ledger
|
||||
@@ -754,13 +593,6 @@ paths:
|
||||
$ref: "#/components/schemas/TransactionResponse"
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/{ledgerId}/balance:
|
||||
get:
|
||||
tags:
|
||||
@@ -774,7 +606,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The balance of the ledger
|
||||
@@ -784,13 +616,6 @@ paths:
|
||||
$ref: "#/components/schemas/BalanceResponse"
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/characters:
|
||||
get:
|
||||
tags:
|
||||
@@ -847,14 +672,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -874,14 +694,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -1009,14 +824,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -1125,7 +935,6 @@ components:
|
||||
- orderCount
|
||||
- sell
|
||||
LedgerResponse:
|
||||
default: null
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping:
|
||||
@@ -1203,7 +1012,6 @@ components:
|
||||
- transactionId
|
||||
- transfers
|
||||
TransferResponse:
|
||||
default: null
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping:
|
||||
|
||||
+51
-53
@@ -296,11 +296,11 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
||||
/**
|
||||
*
|
||||
* @summary Fetch new activities for a character from the EVE API
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchNewActivitiesForCharacter: async (characterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
fetchNewActivitiesForCharacter: async (characterId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'characterId' is not null or undefined
|
||||
assertParamExists('fetchNewActivitiesForCharacter', 'characterId', characterId)
|
||||
const localVarPath = `/activity/fetch/{characterId}`
|
||||
@@ -316,7 +316,6 @@ export const ActivityApiAxiosParamCreator = function (configuration?: Configurat
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
@@ -351,11 +350,11 @@ export const ActivityApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch new activities for a character from the EVE API
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async fetchNewActivitiesForCharacter(characterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
async fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchNewActivitiesForCharacter(characterId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['ActivityApi.fetchNewActivitiesForCharacter']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -382,11 +381,11 @@ export const ActivityApiFactory = function (configuration?: Configuration, baseP
|
||||
/**
|
||||
*
|
||||
* @summary Fetch new activities for a character from the EVE API
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
fetchNewActivitiesForCharacter(characterId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.fetchNewActivitiesForCharacter(characterId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -409,11 +408,11 @@ export class ActivityApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Fetch new activities for a character from the EVE API
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public fetchNewActivitiesForCharacter(characterId: string, options?: RawAxiosRequestConfig) {
|
||||
public fetchNewActivitiesForCharacter(characterId: number, options?: RawAxiosRequestConfig) {
|
||||
return ActivityApiFp(this.configuration).fetchNewActivitiesForCharacter(characterId, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
@@ -552,11 +551,11 @@ export const CharacterRuleBookApiAxiosParamCreator = function (configuration?: C
|
||||
/**
|
||||
*
|
||||
* @summary Find the rule book assigned to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
findCharacterRuleBookByCharacterId: async (characterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
findCharacterRuleBookByCharacterId: async (characterId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'characterId' is not null or undefined
|
||||
assertParamExists('findCharacterRuleBookByCharacterId', 'characterId', characterId)
|
||||
const localVarPath = `/characters/{characterId}/rule-book`
|
||||
@@ -586,12 +585,12 @@ export const CharacterRuleBookApiAxiosParamCreator = function (configuration?: C
|
||||
/**
|
||||
*
|
||||
* @summary Assign a rule book to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {SetCharacterRuleBookRequest} setCharacterRuleBookRequest Rule book and ledger bindings to assign
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
setCharacterRuleBookForCharacter: async (characterId: string, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
setCharacterRuleBookForCharacter: async (characterId: number, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'characterId' is not null or undefined
|
||||
assertParamExists('setCharacterRuleBookForCharacter', 'characterId', characterId)
|
||||
// verify required parameter 'setCharacterRuleBookRequest' is not null or undefined
|
||||
@@ -646,11 +645,11 @@ export const CharacterRuleBookApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Find the rule book assigned to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async findCharacterRuleBookByCharacterId(characterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CharacterRuleBookResponse>> {
|
||||
async findCharacterRuleBookByCharacterId(characterId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CharacterRuleBookResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.findCharacterRuleBookByCharacterId(characterId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CharacterRuleBookApi.findCharacterRuleBookByCharacterId']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -659,12 +658,12 @@ export const CharacterRuleBookApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Assign a rule book to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {SetCharacterRuleBookRequest} setCharacterRuleBookRequest Rule book and ledger bindings to assign
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async setCharacterRuleBookForCharacter(characterId: string, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CharacterRuleBookResponse>> {
|
||||
async setCharacterRuleBookForCharacter(characterId: number, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CharacterRuleBookResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.setCharacterRuleBookForCharacter(characterId, setCharacterRuleBookRequest, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['CharacterRuleBookApi.setCharacterRuleBookForCharacter']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -691,22 +690,22 @@ export const CharacterRuleBookApiFactory = function (configuration?: Configurati
|
||||
/**
|
||||
*
|
||||
* @summary Find the rule book assigned to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
findCharacterRuleBookByCharacterId(characterId: string, options?: RawAxiosRequestConfig): AxiosPromise<CharacterRuleBookResponse> {
|
||||
findCharacterRuleBookByCharacterId(characterId: number, options?: RawAxiosRequestConfig): AxiosPromise<CharacterRuleBookResponse> {
|
||||
return localVarFp.findCharacterRuleBookByCharacterId(characterId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Assign a rule book to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {SetCharacterRuleBookRequest} setCharacterRuleBookRequest Rule book and ledger bindings to assign
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
setCharacterRuleBookForCharacter(characterId: string, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig): AxiosPromise<CharacterRuleBookResponse> {
|
||||
setCharacterRuleBookForCharacter(characterId: number, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig): AxiosPromise<CharacterRuleBookResponse> {
|
||||
return localVarFp.setCharacterRuleBookForCharacter(characterId, setCharacterRuleBookRequest, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -729,23 +728,23 @@ export class CharacterRuleBookApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Find the rule book assigned to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public findCharacterRuleBookByCharacterId(characterId: string, options?: RawAxiosRequestConfig) {
|
||||
public findCharacterRuleBookByCharacterId(characterId: number, options?: RawAxiosRequestConfig) {
|
||||
return CharacterRuleBookApiFp(this.configuration).findCharacterRuleBookByCharacterId(characterId, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Assign a rule book to a character
|
||||
* @param {string} characterId Id of the character
|
||||
* @param {number} characterId Id of the character
|
||||
* @param {SetCharacterRuleBookRequest} setCharacterRuleBookRequest Rule book and ledger bindings to assign
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public setCharacterRuleBookForCharacter(characterId: string, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig) {
|
||||
public setCharacterRuleBookForCharacter(characterId: number, setCharacterRuleBookRequest: SetCharacterRuleBookRequest, options?: RawAxiosRequestConfig) {
|
||||
return CharacterRuleBookApiFp(this.configuration).setCharacterRuleBookForCharacter(characterId, setCharacterRuleBookRequest, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
@@ -1280,11 +1279,11 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {string} types Market type ids to price, e.g. types=34,35
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices: async (types: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
currentPrices: async (types: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'types' is not null or undefined
|
||||
assertParamExists('currentPrices', 'types', types)
|
||||
const localVarPath = `/market/prices`;
|
||||
@@ -1299,7 +1298,7 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (types !== undefined) {
|
||||
if (types) {
|
||||
localVarQueryParameter['types'] = types;
|
||||
}
|
||||
|
||||
@@ -1317,12 +1316,12 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
* @param {string} marketTypeId Id of the market type
|
||||
* @param {number} marketTypeId Id of the market type
|
||||
* @param {number} [days] Optional number of most recent days to return; omit for the full history
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
findHistory: async (marketTypeId: string, days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
findHistory: async (marketTypeId: number, days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'marketTypeId' is not null or undefined
|
||||
assertParamExists('findHistory', 'marketTypeId', marketTypeId)
|
||||
const localVarPath = `/market/{marketTypeId}/history`
|
||||
@@ -1401,14 +1400,14 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
/**
|
||||
*
|
||||
* @summary Scan a single market type, returning its volume-weighted price quartiles
|
||||
* @param {string} marketTypeId The market type id to scan
|
||||
* @param {number} marketTypeId The market type id to scan
|
||||
* @param {number} [days] Number of most recent days of history to analyse
|
||||
* @param {number} [brokerFee] Broker fee as a fraction (e.g. 0.015 for 1.5%), paid on both buy and sell orders
|
||||
* @param {number} [salesTax] Sales tax as a fraction (e.g. 0.036 for 3.6%), paid on sell orders
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
scanMarketType: async (marketTypeId: string, days?: number, brokerFee?: number, salesTax?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
scanMarketType: async (marketTypeId: number, days?: number, brokerFee?: number, salesTax?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'marketTypeId' is not null or undefined
|
||||
assertParamExists('scanMarketType', 'marketTypeId', marketTypeId)
|
||||
const localVarPath = `/market/{marketTypeId}/scan`
|
||||
@@ -1459,11 +1458,11 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {string} types Market type ids to price, e.g. types=34,35
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async currentPrices(types: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketPriceResponse>>> {
|
||||
async currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketPriceResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.currentPrices(types, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.currentPrices']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -1472,12 +1471,12 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
* @param {string} marketTypeId Id of the market type
|
||||
* @param {number} marketTypeId Id of the market type
|
||||
* @param {number} [days] Optional number of most recent days to return; omit for the full history
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async findHistory(marketTypeId: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketHistoryResponse>>> {
|
||||
async findHistory(marketTypeId: number, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketHistoryResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.findHistory(marketTypeId, days, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.findHistory']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -1501,14 +1500,14 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary Scan a single market type, returning its volume-weighted price quartiles
|
||||
* @param {string} marketTypeId The market type id to scan
|
||||
* @param {number} marketTypeId The market type id to scan
|
||||
* @param {number} [days] Number of most recent days of history to analyse
|
||||
* @param {number} [brokerFee] Broker fee as a fraction (e.g. 0.015 for 1.5%), paid on both buy and sell orders
|
||||
* @param {number} [salesTax] Sales tax as a fraction (e.g. 0.036 for 3.6%), paid on sell orders
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async scanMarketType(marketTypeId: string, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarketScanResponse>> {
|
||||
async scanMarketType(marketTypeId: number, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarketScanResponse>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.scanMarketType(marketTypeId, days, brokerFee, salesTax, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.scanMarketType']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -1526,22 +1525,22 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {string} types Market type ids to price, e.g. types=34,35
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices(types: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketPriceResponse>> {
|
||||
currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketPriceResponse>> {
|
||||
return localVarFp.currentPrices(types, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
* @param {string} marketTypeId Id of the market type
|
||||
* @param {number} marketTypeId Id of the market type
|
||||
* @param {number} [days] Optional number of most recent days to return; omit for the full history
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
findHistory(marketTypeId: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketHistoryResponse>> {
|
||||
findHistory(marketTypeId: number, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketHistoryResponse>> {
|
||||
return localVarFp.findHistory(marketTypeId, days, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@@ -1559,14 +1558,14 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
/**
|
||||
*
|
||||
* @summary Scan a single market type, returning its volume-weighted price quartiles
|
||||
* @param {string} marketTypeId The market type id to scan
|
||||
* @param {number} marketTypeId The market type id to scan
|
||||
* @param {number} [days] Number of most recent days of history to analyse
|
||||
* @param {number} [brokerFee] Broker fee as a fraction (e.g. 0.015 for 1.5%), paid on both buy and sell orders
|
||||
* @param {number} [salesTax] Sales tax as a fraction (e.g. 0.036 for 3.6%), paid on sell orders
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
scanMarketType(marketTypeId: string, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig): AxiosPromise<MarketScanResponse> {
|
||||
scanMarketType(marketTypeId: number, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig): AxiosPromise<MarketScanResponse> {
|
||||
return localVarFp.scanMarketType(marketTypeId, days, brokerFee, salesTax, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
@@ -1579,23 +1578,23 @@ export class MarketApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {string} types Market type ids to price, e.g. types=34,35
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public currentPrices(types: string, options?: RawAxiosRequestConfig) {
|
||||
public currentPrices(types: Array<number>, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).currentPrices(types, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
* @param {string} marketTypeId Id of the market type
|
||||
* @param {number} marketTypeId Id of the market type
|
||||
* @param {number} [days] Optional number of most recent days to return; omit for the full history
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public findHistory(marketTypeId: string, days?: number, options?: RawAxiosRequestConfig) {
|
||||
public findHistory(marketTypeId: number, days?: number, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).findHistory(marketTypeId, days, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -1615,14 +1614,14 @@ export class MarketApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Scan a single market type, returning its volume-weighted price quartiles
|
||||
* @param {string} marketTypeId The market type id to scan
|
||||
* @param {number} marketTypeId The market type id to scan
|
||||
* @param {number} [days] Number of most recent days of history to analyse
|
||||
* @param {number} [brokerFee] Broker fee as a fraction (e.g. 0.015 for 1.5%), paid on both buy and sell orders
|
||||
* @param {number} [salesTax] Sales tax as a fraction (e.g. 0.036 for 3.6%), paid on sell orders
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public scanMarketType(marketTypeId: string, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig) {
|
||||
public scanMarketType(marketTypeId: number, days?: number, brokerFee?: number, salesTax?: number, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).scanMarketType(marketTypeId, days, brokerFee, salesTax, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
@@ -1785,7 +1784,6 @@ export const RuleBookApiAxiosParamCreator = function (configuration?: Configurat
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
@@ -1958,7 +1956,7 @@ export const RuleBookApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async deleteRuleBook(ruleBookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
||||
async deleteRuleBook(ruleBookId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRuleBook(ruleBookId, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['RuleBookApi.deleteRuleBook']?.[localVarOperationServerIndex]?.url;
|
||||
@@ -2041,7 +2039,7 @@ export const RuleBookApiFactory = function (configuration?: Configuration, baseP
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
deleteRuleBook(ruleBookId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
||||
deleteRuleBook(ruleBookId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||
return localVarFp.deleteRuleBook(ruleBookId, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -28,7 +28,7 @@ const result = computedAsync(async () => {
|
||||
}
|
||||
|
||||
const { data } = await marketApi.scanMarketType(
|
||||
String(item.value.id),
|
||||
item.value.id,
|
||||
days.value,
|
||||
marketTaxStore.brokerFee / 100,
|
||||
marketTaxStore.scc / 100
|
||||
|
||||
Reference in New Issue
Block a user