export const defaultColumnCountByTableWidth = {
    1520: 10,
    1394: 9,
    1239: 8,
    1112: 7,
    984: 6,
};
export const cashTransactionSignByTransactionType = {
    AssetSale: 1,
    PrincipalDraw: 1,
    AssetPurchase: -1,
    PrincipalReturn: -1,
    FeesIncome: 1,
    FeesPayment: -1,
    InterestIncome: 1,
    InterestPayment: -1,
};
export const assetTransactionSignByTransactionType = {
    AssetSale: -1,
    AssetPurchase: 1,
};
export function getStateKeyForTableName(tableName) {
    const stateKeysByTableName = {
        ASSET: "portfolio",
        TRANSACTION: "transactions",
        ACCOUNT: "accounts",
        FIXED_INCOME_TYPE: "fixedIncomeTypes",
        SERVICE_PROVIDER_FEE_TYPE: "serviceProviderFeeTypes",
        SPV: "spvs",
    };
    return stateKeysByTableName[tableName];
}
export function getTableNameFor(action) {
    const parts = action.type.split("_");
    const entity = parts.slice(1).join("_");
    return entity;
}
export function getActionOperationType(action) {
    const operation = action.type.split("_")[0];
    return operation;
}
//# sourceMappingURL=table.js.map