Refactor import and workflow services plus adapter seams
This commit is contained in:
@@ -1 +1,11 @@
|
||||
from . import service_gateway
|
||||
from . import (
|
||||
accounts_gateway,
|
||||
assets_gateway,
|
||||
categorization_gateway,
|
||||
imports_gateway,
|
||||
overview_gateway,
|
||||
reconciliation_gateway,
|
||||
service_gateway,
|
||||
transactions_gateway,
|
||||
transfers_gateway,
|
||||
)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
list_ledger_accounts,
|
||||
update_ledger_account,
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
close_asset_snapshot,
|
||||
create_manual_asset,
|
||||
deactivate_manual_asset,
|
||||
list_manual_assets,
|
||||
preview_asset_snapshot_close,
|
||||
update_manual_asset,
|
||||
)
|
||||
@@ -0,0 +1,20 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
apply_categorization_rules,
|
||||
apply_category_rule,
|
||||
apply_uncategorized_group_recommendation,
|
||||
apply_uncategorized_recommendation,
|
||||
create_category_rule,
|
||||
create_ledger_category,
|
||||
delete_ledger_category,
|
||||
get_uncategorized_merchant_summary,
|
||||
get_uncategorized_workbench,
|
||||
list_category_rules,
|
||||
list_ledger_categories,
|
||||
list_uncategorized_transactions,
|
||||
preview_categorization,
|
||||
preview_category_rule_matches,
|
||||
seed_default_category_rules,
|
||||
seed_default_ledger_categories,
|
||||
)
|
||||
@@ -0,0 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
import_toss_bank_pdf,
|
||||
import_toss_securities_pdf,
|
||||
list_ledger_import_batches,
|
||||
preview_toss_bank_pdf_import,
|
||||
preview_toss_securities_pdf_import,
|
||||
rollback_ledger_import_batch,
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
get_asset_liquidity_report,
|
||||
get_balance_reconciliation_report,
|
||||
get_budget_vs_actual_report,
|
||||
get_monthly_cashflow_report,
|
||||
health_check,
|
||||
list_cross_transfer_review_queue,
|
||||
list_ledger_backups,
|
||||
list_ledger_import_batches,
|
||||
list_uncategorized_transactions,
|
||||
)
|
||||
@@ -0,0 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import get_balance_reconciliation_report
|
||||
@@ -1,44 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
apply_categorization_rules,
|
||||
apply_uncategorized_group_recommendation,
|
||||
apply_uncategorized_recommendation,
|
||||
close_asset_snapshot,
|
||||
create_category_rule,
|
||||
create_ledger_category,
|
||||
create_manual_asset,
|
||||
deactivate_manual_asset,
|
||||
delete_ledger_category,
|
||||
find_cancel_original_candidates,
|
||||
find_self_transfer_candidates,
|
||||
get_asset_liquidity_report,
|
||||
get_balance_reconciliation_report,
|
||||
get_budget_vs_actual_report,
|
||||
get_monthly_cashflow_report,
|
||||
health_check,
|
||||
import_toss_bank_pdf,
|
||||
import_toss_securities_pdf,
|
||||
link_cancel_to_original,
|
||||
link_self_transfer_pair,
|
||||
list_category_rules,
|
||||
list_cross_transfer_review_queue,
|
||||
list_ledger_accounts,
|
||||
list_ledger_backups,
|
||||
list_ledger_categories,
|
||||
list_ledger_import_batches,
|
||||
list_manual_assets,
|
||||
list_uncategorized_transactions,
|
||||
preview_asset_snapshot_close,
|
||||
preview_categorization,
|
||||
preview_cross_account_transfers,
|
||||
preview_toss_bank_pdf_import,
|
||||
preview_toss_securities_pdf_import,
|
||||
rollback_ledger_import_batch,
|
||||
run_cross_account_transfer_match,
|
||||
seed_default_category_rules,
|
||||
seed_default_ledger_categories,
|
||||
update_ledger_account,
|
||||
update_ledger_transaction,
|
||||
update_manual_asset,
|
||||
)
|
||||
from .accounts_gateway import *
|
||||
from .assets_gateway import *
|
||||
from .categorization_gateway import *
|
||||
from .imports_gateway import *
|
||||
from .overview_gateway import *
|
||||
from .reconciliation_gateway import *
|
||||
from .transactions_gateway import *
|
||||
from .transfers_gateway import *
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import update_ledger_transaction
|
||||
@@ -0,0 +1,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from ...service import (
|
||||
find_cancel_original_candidates,
|
||||
find_self_transfer_candidates,
|
||||
link_cancel_to_original,
|
||||
link_self_transfer_pair,
|
||||
list_cross_transfer_review_queue,
|
||||
preview_cross_account_transfers,
|
||||
run_cross_account_transfer_match,
|
||||
)
|
||||
Reference in New Issue
Block a user