thunderhub/server/schema/widgets/resolvers/interface.ts
Anthony Potdevin f80492b80a
refactor: ♻️ server structure (#52)
* refactor: ♻️ change schema

* chore: 🔧 small changes

* chore: 🔧 cleanup

* chore: 🔧 cleanup types

* chore: 🔧 change to absolute imports

Co-authored-by: apotdevin <apotdevincab@gmail.com>
2020-06-01 08:36:33 +02:00

71 lines
1.1 KiB
TypeScript

export interface ForwardProps {
created_at: string;
fee: number;
fee_mtokens: string;
incoming_channel: string;
mtokens: string;
outgoing_channel: string;
tokens: number;
}
export interface ForwardCompleteProps {
forwards: ForwardProps[];
next: string;
}
export interface ListProps {
[key: string]: ForwardProps[];
}
export interface ReduceObjectProps {
fee: number;
tokens: number;
}
export interface FinalProps {
fee: number;
tokens: number;
amount: number;
}
export interface FinalList {
[key: string]: FinalProps;
}
export interface CountProps {
[key: string]: number;
}
export interface ChannelCounts {
name: string;
count: number;
}
export interface InOutProps {
tokens: number;
}
export interface InOutListProps {
[key: string]: InOutProps[];
}
export interface PaymentProps {
created_at: string;
is_confirmed: boolean;
tokens: number;
}
export interface PaymentsProps {
payments: PaymentProps[];
}
export interface InvoiceProps {
created_at: string;
is_confirmed: boolean;
received: number;
}
export interface InvoicesProps {
invoices: InvoiceProps[];
next: string;
}