text area
This commit is contained in:
@@ -71,14 +71,8 @@ export interface CreateRuleBookRequest {
|
||||
'name': string;
|
||||
'usedForAcquisitions': boolean;
|
||||
'ledgerRefs': Array<string>;
|
||||
'rules': { [key: string]: RuleResponse; };
|
||||
'script': string;
|
||||
}
|
||||
export interface IskRuleClauseResponse extends RuleClauseResponse {
|
||||
'fromLedgerRef': string;
|
||||
'toLedgerRef': string;
|
||||
}
|
||||
|
||||
|
||||
export interface IskTransferResponse extends TransferResponse {
|
||||
'fromLedgerId': string;
|
||||
'toLedgerId': string;
|
||||
@@ -88,22 +82,6 @@ export interface ItemBalanceResponse {
|
||||
'typeId': number;
|
||||
'quantity': number;
|
||||
}
|
||||
export interface ItemExchangeRuleClauseResponse extends RuleClauseResponse {
|
||||
'rate': ItemExchangeRuleClauseResponseRateEnum;
|
||||
'fromLedgerRef': string;
|
||||
'toLedgerRef': string;
|
||||
}
|
||||
|
||||
export const ItemExchangeRuleClauseResponseRateEnum = {
|
||||
None: 'NONE',
|
||||
Value: 'VALUE',
|
||||
JitaBuy: 'JITA_BUY',
|
||||
JitaSell: 'JITA_SELL',
|
||||
EveEstimate: 'EVE_ESTIMATE',
|
||||
} as const;
|
||||
|
||||
export type ItemExchangeRuleClauseResponseRateEnum = typeof ItemExchangeRuleClauseResponseRateEnum[keyof typeof ItemExchangeRuleClauseResponseRateEnum];
|
||||
|
||||
export interface ItemTransferResponse extends TransferResponse {
|
||||
'fromLedgerId': string;
|
||||
'toLedgerId': string;
|
||||
@@ -125,15 +103,7 @@ export interface RuleBookResponse {
|
||||
'name': string;
|
||||
'usedForAcquisitions': boolean;
|
||||
'ledgerRefs': Array<string>;
|
||||
'rules': { [key: string]: RuleResponse; };
|
||||
}
|
||||
/**
|
||||
* @type RuleClauseResponse
|
||||
*/
|
||||
export type RuleClauseResponse = { type: 'ISK' } & IskRuleClauseResponse | { type: 'ITEM_EXCHANGE' } & ItemExchangeRuleClauseResponse;
|
||||
|
||||
export interface RuleResponse {
|
||||
'clauses': Array<RuleClauseResponse>;
|
||||
'script': string;
|
||||
}
|
||||
export interface SetCharacterRuleBookRequest {
|
||||
'ruleBookId': string;
|
||||
@@ -162,7 +132,7 @@ export interface UpdateRuleBookRequest {
|
||||
'name': string;
|
||||
'usedForAcquisitions': boolean;
|
||||
'ledgerRefs': Array<string>;
|
||||
'rules': { [key: string]: RuleResponse; };
|
||||
'script': string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user