Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 9x 9x 9x 9x 9x | import { FilterObjectTypes } from "types/utils.types";
import { TransactionDateType } from "./types";
import { TableType } from "@shared/GiveFilter/types";
export enum QUERYOBJECTKEYS_MANAGE_MONEY {
transactionDate = "transactionDate",
createdAt = "createdAt",
transaction_status = "txnDisplayStatus",
inflow_amount = "inFlow",
outflow_amount = "outFlow",
payment_method = "paymentMethod",
}
export const defaultValuesManageMoney = {
[QUERYOBJECTKEYS_MANAGE_MONEY.transactionDate]: {
dateName: "createdAt",
endDate: undefined,
label: undefined,
startDate: undefined,
val: undefined,
} as TransactionDateType,
[QUERYOBJECTKEYS_MANAGE_MONEY.transaction_status]:
[] as Array<FilterObjectTypes>,
[QUERYOBJECTKEYS_MANAGE_MONEY.createdAt]: "",
[QUERYOBJECTKEYS_MANAGE_MONEY.payment_method]: {} as FilterObjectTypes,
[QUERYOBJECTKEYS_MANAGE_MONEY.inflow_amount]: {} as FilterObjectTypes,
[QUERYOBJECTKEYS_MANAGE_MONEY.outflow_amount]: {} as FilterObjectTypes,
};
export type DefaultValuesTypeManageMoney = typeof defaultValuesManageMoney;
//TODO add typpe and value for providerProcessing
type TObj = DefaultValuesTypeManageMoney | Record<string, never>;
export const getDefaultFilterObj = (tableType: TableType): TObj => {
const defaultObj: Record<TableType, TObj> = {
manageMoney: defaultValuesManageMoney,
providerProcessing: {},
};
return defaultObj[tableType] || {};
};
export const MANAGE_MONEY_BANNER_TITLE = "Manage Money";
export const TRANSACTION_BANNER_TITTLE = "Transactions";
export const TRANSFER_BANNER_TITTLE = "Transfers";
|