diff --git a/src/schemas/query/flow/getInOut.interface.ts b/src/schemas/query/flow/getInOut.interface.ts index b4fff28b..2f1a3045 100644 --- a/src/schemas/query/flow/getInOut.interface.ts +++ b/src/schemas/query/flow/getInOut.interface.ts @@ -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; +} diff --git a/src/schemas/query/flow/getInOut.ts b/src/schemas/query/flow/getInOut.ts index cfa8ad38..106d6923 100644 --- a/src/schemas/query/flow/getInOut.ts +++ b/src/schemas/query/flow/getInOut.ts @@ -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,