mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 22:11:37 +01:00
chore: cleanup interfaces
This commit is contained in:
parent
396b61c4a0
commit
ac2349c60c
2 changed files with 22 additions and 21 deletions
|
@ -5,3 +5,24 @@ export interface InOutProps {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -10,27 +10,7 @@ import { differenceInHours, differenceInCalendarDays } from 'date-fns';
|
|||
import { groupBy } from 'underscore';
|
||||
import { reduceInOutArray } from '../report/Helpers';
|
||||
import { InOutType } from '../../../schemaTypes/query/flow/InOut';
|
||||
|
||||
interface PaymentProps {
|
||||
created_at: string;
|
||||
is_confirmed: boolean;
|
||||
tokens: number;
|
||||
}
|
||||
|
||||
interface PaymentsProps {
|
||||
payments: PaymentProps[];
|
||||
}
|
||||
|
||||
interface InvoiceProps {
|
||||
created_at: string;
|
||||
is_confirmed: boolean;
|
||||
received: number;
|
||||
}
|
||||
|
||||
interface InvoicesProps {
|
||||
invoices: InvoiceProps[];
|
||||
next: string;
|
||||
}
|
||||
import { InvoicesProps, PaymentsProps } from './getInOut.interface';
|
||||
|
||||
export const getInOut = {
|
||||
type: InOutType,
|
||||
|
|
Loading…
Add table
Reference in a new issue