cleanup
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
import {
|
import {
|
||||||
BalanceResponse,
|
BalanceResponse,
|
||||||
CombinedLedgerResponse,
|
CombinedLedgerResponse,
|
||||||
CombinedLedgerResponseTypeEnum,
|
|
||||||
CreateCombinedLedgerRequest,
|
CreateCombinedLedgerRequest,
|
||||||
CreateMainLedgerRequest,
|
CreateMainLedgerRequest,
|
||||||
LedgerResponseTypeEnum,
|
LedgerResponse,
|
||||||
MainLedgerResponse,
|
MainLedgerResponse,
|
||||||
MainLedgerResponseTypeEnum,
|
|
||||||
TransactionResponse,
|
TransactionResponse,
|
||||||
UpdateCombinedLedgerRequest,
|
UpdateCombinedLedgerRequest,
|
||||||
UpdateMainLedgerRequest
|
UpdateMainLedgerRequest
|
||||||
@@ -16,11 +14,14 @@ import {computed, ref, triggerRef} from "vue";
|
|||||||
import {ledgerApi, transactionApi} from "@/mammon";
|
import {ledgerApi, transactionApi} from "@/mammon";
|
||||||
import {useRouteParams} from "@vueuse/router";
|
import {useRouteParams} from "@vueuse/router";
|
||||||
|
|
||||||
export const LedgerTypes = LedgerResponseTypeEnum;
|
export const LedgerTypes = {
|
||||||
|
Main: 'MAIN',
|
||||||
|
Combined: 'COMBINED',
|
||||||
|
};
|
||||||
|
|
||||||
export type LedgerType = LedgerResponseTypeEnum;
|
export type LedgerType = LedgerResponse['type'];
|
||||||
export type MainLedger = MainLedgerResponse & {type: MainLedgerResponseTypeEnum}
|
export type MainLedger = MainLedgerResponse
|
||||||
export type CombinedLedger = CombinedLedgerResponse & {type: CombinedLedgerResponseTypeEnum}
|
export type CombinedLedger = CombinedLedgerResponse
|
||||||
export type Ledger = MainLedger | CombinedLedger;
|
export type Ledger = MainLedger | CombinedLedger;
|
||||||
|
|
||||||
export const systemLedgerRef = 'system';
|
export const systemLedgerRef = 'system';
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import {Transfer, TransferTypes} from "@/transaction/transaction.ts";
|
import {TransferTypes} from "@/transaction/transaction.ts";
|
||||||
import {LedgerLabel, systemLedger, useLedgersStore} from "@/ledger";
|
import {LedgerLabel, systemLedger, useLedgersStore} from "@/ledger";
|
||||||
import {getMarketType, IskLabel, MarketTypeLabel} from "@/market";
|
import {getMarketType, IskLabel, MarketTypeLabel} from "@/market";
|
||||||
import {computedAsync} from "@vueuse/core";
|
import {computedAsync} from "@vueuse/core";
|
||||||
|
import {TransferResponse} from "@/generated/mammon";
|
||||||
|
|
||||||
type TransferWithValue = Transfer & { marketTypeId: number; };
|
type TransferWithValue = TransferResponse & { marketTypeId: number; };
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
transfers?: Transfer[]
|
transfers?: TransferResponse[]
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<Props>();
|
const props = defineProps<Props>();
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import {TransactionResponseTransfersInner, TransferResponseTypeEnum} from "@/generated/mammon";
|
import {TransferResponse} from "@/generated/mammon";
|
||||||
|
|
||||||
export const TransferTypes = TransferResponseTypeEnum;
|
export const TransferTypes = {
|
||||||
export type TransferType = TransferResponseTypeEnum;
|
Isk: 'ISK',
|
||||||
export type Transfer = TransactionResponseTransfersInner;
|
Item: 'ITEM',
|
||||||
|
} as const;
|
||||||
|
export type TransferType = TransferResponse['type'];
|
||||||
|
|||||||
Reference in New Issue
Block a user