@zeniai/client-epic-state 4.15.31 → 4.15.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/lib/commonStateTypes/timePeriod.d.ts +1 -1
  2. package/lib/commonStateTypes/timePeriod.js +2 -2
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  5. package/lib/configureStore.js +1 -2
  6. package/lib/entity/account/accountState.d.ts +1 -1
  7. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  8. package/lib/entity/class/classReducer.d.ts +4 -4
  9. package/lib/entity/class/classState.d.ts +1 -1
  10. package/lib/entity/customer/customerPayload.d.ts +1 -1
  11. package/lib/entity/customer/customerPayload.js +6 -16
  12. package/lib/entity/forecast/forecastState.d.ts +1 -1
  13. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  14. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  15. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  16. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  17. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  18. package/lib/entity/task/taskState.d.ts +1 -1
  19. package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
  20. package/lib/entity/tenant/clearAllEpic.js +0 -4
  21. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  22. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  23. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  24. package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -7
  25. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  26. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -23
  27. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  28. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  29. package/lib/entity/transaction/stateTypes/transactionType.js +0 -1
  30. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  31. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  32. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  33. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  34. package/lib/entity/transaction/transactionReducer.js +2 -47
  35. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  36. package/lib/entity/transaction/transactionSelector.js +0 -5
  37. package/lib/entity/transaction/transactionState.d.ts +4 -6
  38. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  39. package/lib/epic.d.ts +1 -6
  40. package/lib/epic.js +1 -6
  41. package/lib/index.d.ts +7 -16
  42. package/lib/index.js +27 -52
  43. package/lib/init.d.ts +1 -2
  44. package/lib/init.js +2 -9
  45. package/lib/reducer.d.ts +1 -7
  46. package/lib/reducer.js +0 -6
  47. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  48. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  49. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  50. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  51. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  52. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  53. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  54. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  55. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  56. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  57. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  58. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  59. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +4 -20
  60. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  61. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  62. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  63. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  64. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +30 -81
  65. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  66. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -54
  67. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -2
  68. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +4 -5
  69. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  70. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  71. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -8
  72. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  73. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  74. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  75. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  76. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -5
  77. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  78. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +1 -2
  79. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  80. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +1 -2
  81. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  82. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  83. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
  84. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
  85. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
  86. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +4 -5
  87. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
  88. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -14
  89. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -78
  90. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
  91. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -2
  92. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
  93. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -9
  94. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  95. package/lib/view/topEx/topExSelector.d.ts +1 -1
  96. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +4 -13
  97. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +3 -16
  98. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +5 -22
  99. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  100. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -6
  101. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  102. package/lib/zeniAPI.d.ts +0 -1
  103. package/package.json +1 -2
  104. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  105. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  106. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  107. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  108. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  109. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  110. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  111. package/lib/entity/accountRecon/accountReconState.js +0 -28
  112. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  113. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  114. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  115. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  116. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  117. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  118. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  119. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  120. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  121. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  122. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  123. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  124. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  125. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  126. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  127. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  128. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  129. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  130. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  131. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  132. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
  133. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  134. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  135. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -250
  136. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  137. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -38
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation";
6
+ export declare const toForecastType: (v: string) => "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
7
7
  export interface Forecast {
8
8
  id: ID;
9
9
  type: ForecastType;
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
10
10
  nestedAccountIds: NestedAccountIDHierarchy[];
11
11
  accountGroupKeys: AccountGroupKey[];
12
12
  }
13
- export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}`;
14
14
  export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
@@ -8,5 +8,5 @@ export interface SectionClassesView {
8
8
  nestedClassesIds: NestedClassIDHierarchy[];
9
9
  balancesByPeriod?: COABalanceGroupedByPeriod;
10
10
  }
11
- export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
12
12
  export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
4
4
  import { ClassMetadataPayload } from '../class/classPayload';
5
5
  import { SectionClassesViewStateV2 } from './sectionClassesViewState';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "account_reconciliation";
9
+ reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_creation";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -146,10 +146,6 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
146
146
  'receipts_upload',
147
147
  'billing_address_view',
148
148
  'express_pay_submit',
149
- 'exclude_transaction',
150
- 'reconcile',
151
- 'save_reconcile_for_later',
152
- 'recon_transaction_creation',
153
149
  ];
154
150
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
155
151
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -41,7 +41,7 @@ export declare const toPriorityCodeType: (v: string) => "normal" | "high" | "low
41
41
  export declare const toPriorityCodeTypeStrict: (v?: string) => "normal" | "high" | "low" | "medium" | "urgent" | undefined;
42
42
  export type PriorityCodeType = ReturnType<typeof toPriorityCodeType>;
43
43
  export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"];
44
- export declare const toTaskStatusCodeType: (v: string) => "done" | "resolved" | "in_progress" | "todo" | "on_hold";
44
+ export declare const toTaskStatusCodeType: (v: string) => "done" | "resolved" | "todo" | "in_progress" | "on_hold";
45
45
  export type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
46
46
  export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
47
47
  export type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
@@ -37,7 +37,6 @@ import { clearExpenseAutomationView } from '../../view/expenseAutomationView/exp
37
37
  import { clearExpenseAutomationFluxAnalysisView } from '../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
38
38
  import { clearExpenseAutomationJESchedulesView } from '../../view/expenseAutomationView/reducers/jeSchedulesViewReducer';
39
39
  import { clearExpenseAutomationMissingReceiptsView } from '../../view/expenseAutomationView/reducers/missingReceiptsViewReducer';
40
- import { clearExpenseAutomationReconciliationView } from '../../view/expenseAutomationView/reducers/reconciliationViewReducer';
41
40
  import { clearExpenseAutomationTransactionsView } from '../../view/expenseAutomationView/reducers/transactionsViewReducer';
42
41
  import { clearFileViewList } from '../../view/fileView/fileViewReducer';
43
42
  import { clearFinanceStatement } from '../../view/financeStatement/financeStatementReducer';
@@ -138,7 +137,6 @@ import { clearZeniAccStatementList } from '../../view/zeniAccStatementList/zeniA
138
137
  import { clearZeniAccountsPromoCard } from '../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
139
138
  import { clearAllAccounts } from '../account/accountReducer';
140
139
  import { clearAllAccountGroups } from '../accountGroup/accountGroupReducer';
141
- import { clearAllAccountRecon } from '../accountRecon/accountReconReducer';
142
140
  import { clearAllAddresses } from '../address/addressReducer';
143
141
  import { clearAllBankAccounts } from '../bankAccount/bankAccountReducer';
144
142
  import { clearAllBillTransactions } from '../billPay/billTransaction/billTransactionReducer';
@@ -185,8 +183,8 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
185
183
  import { clearAllVendors } from '../vendor/vendorReducer';
186
184
  import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
187
185
  import { clearAll } from './tenantReducer';
188
- type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
189
- type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
186
+ type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
187
+ type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
190
188
  export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
191
189
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
192
190
  export {};
@@ -41,7 +41,6 @@ const expenseAutomationViewReducer_1 = require("../../view/expenseAutomationView
41
41
  const fluxAnalysisViewReducer_1 = require("../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer");
42
42
  const jeSchedulesViewReducer_1 = require("../../view/expenseAutomationView/reducers/jeSchedulesViewReducer");
43
43
  const missingReceiptsViewReducer_1 = require("../../view/expenseAutomationView/reducers/missingReceiptsViewReducer");
44
- const reconciliationViewReducer_1 = require("../../view/expenseAutomationView/reducers/reconciliationViewReducer");
45
44
  const transactionsViewReducer_1 = require("../../view/expenseAutomationView/reducers/transactionsViewReducer");
46
45
  const fileViewReducer_1 = require("../../view/fileView/fileViewReducer");
47
46
  const financeStatementReducer_1 = require("../../view/financeStatement/financeStatementReducer");
@@ -142,7 +141,6 @@ const zeniAccStatementListReducer_1 = require("../../view/zeniAccStatementList/z
142
141
  const zeniAccountsPromoCardReducer_1 = require("../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer");
143
142
  const accountReducer_1 = require("../account/accountReducer");
144
143
  const accountGroupReducer_1 = require("../accountGroup/accountGroupReducer");
145
- const accountReconReducer_1 = require("../accountRecon/accountReconReducer");
146
144
  const addressReducer_1 = require("../address/addressReducer");
147
145
  const bankAccountReducer_1 = require("../bankAccount/bankAccountReducer");
148
146
  const billTransactionReducer_1 = require("../billPay/billTransaction/billTransactionReducer");
@@ -245,7 +243,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
245
243
  (0, fluxAnalysisViewReducer_1.clearExpenseAutomationFluxAnalysisView)(),
246
244
  (0, jeSchedulesViewReducer_1.clearExpenseAutomationJESchedulesView)(),
247
245
  (0, missingReceiptsViewReducer_1.clearExpenseAutomationMissingReceiptsView)(),
248
- (0, reconciliationViewReducer_1.clearExpenseAutomationReconciliationView)(),
249
246
  (0, transactionsViewReducer_1.clearExpenseAutomationTransactionsView)(),
250
247
  (0, expenseAutomationViewReducer_1.clearExpenseAutomationView)(),
251
248
  (0, expressPayReducer_1.clearExpressPayView)(),
@@ -328,7 +325,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
328
325
  // Note: Please maintain strict alphabetical order
329
326
  const clearEntityActions = [
330
327
  (0, accountGroupReducer_1.clearAllAccountGroups)(),
331
- (0, accountReconReducer_1.clearAllAccountRecon)(),
332
328
  (0, accountingSummaryReducer_1.clearAllAccountingSummary)(),
333
329
  (0, accountReducer_1.clearAllAccounts)(),
334
330
  (0, jeSchedulesReducer_1.clearAllAccruedJESchedules)(),
@@ -1,7 +1,7 @@
1
1
  import { CustomerBasePayload } from '../../customer/customerPayload';
2
2
  import { CustomerTransaction } from '../stateTypes/customerTransaction';
3
3
  import { TransactionPayload } from './transactionPayload';
4
- export interface CustomerTransactionPayload extends Omit<TransactionPayload, 'customer_id' | 'customer_name'>, CustomerBasePayload {
4
+ export interface CustomerTransactionPayload extends TransactionPayload, CustomerBasePayload {
5
5
  document_id: string;
6
6
  payment_type?: string;
7
7
  payment_type_name?: string;
@@ -17,6 +17,7 @@ const toCustomerTransaction = (payload) => {
17
17
  exports.toCustomerTransaction = toCustomerTransaction;
18
18
  const toCustomerTransactionPayload = (transaction) => {
19
19
  const payload = (0, transactionPayload_1.toTransactionPayload)(transaction);
20
- return Object.assign(Object.assign({}, payload), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer));
20
+ return transaction.customer != null
21
+ ? Object.assign(Object.assign({}, payload), { customer_id: transaction.customer.id, customer_name: transaction.customer.name }) : payload;
21
22
  };
22
23
  exports.toCustomerTransactionPayload = toCustomerTransactionPayload;
@@ -32,8 +32,6 @@ export interface TransactionPayload extends TransactionIDPayload, AccountBasePay
32
32
  company_inc_date: string | null;
33
33
  vendor_id?: string | null;
34
34
  vendor_name?: string | null;
35
- customer_id?: string | null;
36
- customer_name?: string | null;
37
35
  recipient_total_amount?: number;
38
36
  recipient_currency_code?: string;
39
37
  recipient_currency_symbol?: string;
@@ -38,16 +38,12 @@ const toTransaction = (payload) => {
38
38
  var _a, _b, _c, _d, _e, _f, _g, _h;
39
39
  const amount = (0, exports.getTransactionPayloadAmount)(payload);
40
40
  const recipientAmount = getTransactionPayloadRecipientAmount(payload);
41
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
41
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
42
42
  ? (0, zeniDayJS_1.date)(payload.transaction_update_time)
43
- : undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id !== null && payload.vendor_id !== ''
43
+ : undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id != null && payload.vendor_id != ''
44
44
  ? { vendorId: payload.vendor_id }
45
- : {})), (payload.vendor_name !== null && payload.vendor_name !== ''
45
+ : {})), (payload.vendor_name != null && payload.vendor_name != ''
46
46
  ? { vendorName: payload.vendor_name }
47
- : {})), (payload.customer_id !== null && payload.customer_id !== ''
48
- ? { customerId: payload.customer_id }
49
- : {})), (payload.customer_name !== null && payload.customer_name !== ''
50
- ? { customerName: payload.customer_name }
51
47
  : {})), { linkedTransactions: (_b = payload.linked_transactions) === null || _b === void 0 ? void 0 : _b.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)), lines: (_c = payload === null || payload === void 0 ? void 0 : payload.lines) === null || _c === void 0 ? void 0 : _c.map((linePayload) => (0, transactionLinePayload_1.toLine)(linePayload, amount, recipientAmount)), account: payloadHasAccountInfo(payload)
52
48
  ? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload)
53
49
  : undefined, syncToken: (_d = payload.sync_token) === null || _d === void 0 ? void 0 : _d.toString(), paymentType: (_e = payload.payment_type) !== null && _e !== void 0 ? _e : undefined, paymentTypeName: (_f = payload.payment_type_name) !== null && _f !== void 0 ? _f : undefined, isUpdatingTransaction: (_g = payload === null || payload === void 0 ? void 0 : payload.is_updating_transaction) !== null && _g !== void 0 ? _g : false, bookCloseDate: (payload === null || payload === void 0 ? void 0 : payload.book_close_date) != null
@@ -1,7 +1,6 @@
1
- import { CustomerBase } from '../../customer/customerState';
2
1
  import { VendorBasePayload } from '../../vendor/vendorPayload';
3
2
  import { VendorBase } from '../../vendor/vendorState';
4
- import { VendorTransaction, VendorTransactionWithCustomer } from '../stateTypes/vendorTransaction';
3
+ import { VendorTransaction } from '../stateTypes/vendorTransaction';
5
4
  import { TransactionPayload } from './transactionPayload';
6
5
  export interface VendorTransactionPayload extends VendorBasePayload, Omit<TransactionPayload, 'vendor_id' | 'vendor_name'> {
7
6
  document_id: string;
@@ -11,13 +10,6 @@ export interface VendorTransactionPayload extends VendorBasePayload, Omit<Transa
11
10
  balance?: number;
12
11
  due_date?: string;
13
12
  }
14
- export interface VendorTransactionWithCustomerPayload extends VendorTransactionPayload {
15
- customer_id: string;
16
- customer_name: string;
17
- }
18
13
  export declare const isVendorTransactionPayload: (payload: TransactionPayload) => boolean;
19
14
  export declare const toVendorTransaction: (payload: VendorTransactionPayload) => VendorTransaction;
20
15
  export declare const toVendorTransactionPayload: (transaction: VendorTransaction, vendorUpdates?: VendorBase) => Partial<VendorTransactionPayload>;
21
- export declare const isVendorTransactionWithCustomerPayload: (payload: TransactionPayload) => boolean;
22
- export declare const toVendorTransactionWithCustomer: (payload: VendorTransactionWithCustomerPayload) => VendorTransactionWithCustomer;
23
- export declare const toVendorTransactionWithCustomerPayload: (transaction: VendorTransactionWithCustomer, vendorUpdates?: VendorBase, customerUpdates?: CustomerBase) => Partial<VendorTransactionWithCustomerPayload>;
@@ -1,25 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toVendorTransactionWithCustomerPayload = exports.toVendorTransactionWithCustomer = exports.isVendorTransactionWithCustomerPayload = exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
3
+ exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
4
4
  const amount_1 = require("../../../commonStateTypes/amount");
5
5
  const zeniDayJS_1 = require("../../../zeniDayJS");
6
- const customerPayload_1 = require("../../customer/customerPayload");
7
6
  const vendorPayload_1 = require("../../vendor/vendorPayload");
8
7
  const paymentType_1 = require("../stateTypes/paymentType");
9
8
  const transactionType_1 = require("../stateTypes/transactionType");
10
9
  const transactionPayload_1 = require("./transactionPayload");
11
10
  const isVendorTransactionPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null;
12
11
  exports.isVendorTransactionPayload = isVendorTransactionPayload;
13
- function buildVendorTransactionBase(payload) {
12
+ const toVendorTransaction = (payload) => {
14
13
  const transaction = (0, transactionPayload_1.toTransaction)(payload);
15
14
  return Object.assign(Object.assign({}, transaction), { documentId: payload.document_id, vendor: payload.vendor_id != null
16
15
  ? (0, vendorPayload_1.mapVendorBasePayloadToVendorBase)(payload)
17
16
  : undefined, paymentType: (0, paymentType_1.toPaymentTypeStrict)(payload.payment_type), paymentTypeName: payload.payment_type_name, paymentMethodName: payload.payment_method_name, balance: payload.balance != null
18
17
  ? (0, amount_1.toAmountWC)(payload.balance, transaction.amount)
19
18
  : undefined, dueDate: payload.due_date != null ? (0, zeniDayJS_1.date)(payload.due_date) : undefined });
20
- }
21
- const toVendorTransaction = (payload) => {
22
- return buildVendorTransactionBase(payload);
23
19
  };
24
20
  exports.toVendorTransaction = toVendorTransaction;
25
21
  const toVendorTransactionPayload = (transaction, vendorUpdates) => {
@@ -27,20 +23,3 @@ const toVendorTransactionPayload = (transaction, vendorUpdates) => {
27
23
  return Object.assign(Object.assign({}, payload), (0, vendorPayload_1.toVendorBasePayload)(transaction.vendor, vendorUpdates));
28
24
  };
29
25
  exports.toVendorTransactionPayload = toVendorTransactionPayload;
30
- /*
31
- This is used to check if the transaction is a vendor transaction with a customer
32
- */
33
- const isVendorTransactionWithCustomerPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null &&
34
- Boolean(payload.customer_id) === true &&
35
- Boolean(payload.customer_name) === true;
36
- exports.isVendorTransactionWithCustomerPayload = isVendorTransactionWithCustomerPayload;
37
- const toVendorTransactionWithCustomer = (payload) => {
38
- return Object.assign(Object.assign({}, buildVendorTransactionBase(payload)), { customer: Boolean(payload.customer_id) === true
39
- ? (0, customerPayload_1.toCustomerBase)(payload, false)
40
- : undefined });
41
- };
42
- exports.toVendorTransactionWithCustomer = toVendorTransactionWithCustomer;
43
- const toVendorTransactionWithCustomerPayload = (transaction, vendorUpdates, customerUpdates) => {
44
- return Object.assign(Object.assign({}, (0, exports.toVendorTransactionPayload)(transaction, vendorUpdates)), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer, customerUpdates));
45
- };
46
- exports.toVendorTransactionWithCustomerPayload = toVendorTransactionWithCustomerPayload;
@@ -16,9 +16,9 @@ export interface BaseTransaction extends TransactionID {
16
16
  date: ZeniDate;
17
17
  amount: Amount;
18
18
  memo: string;
19
- typeOfTransaction: TypeOfTransactionType;
20
19
  typeName?: string;
21
20
  account?: AccountBase;
21
+ typeOfTransaction: TypeOfTransactionType;
22
22
  }
23
23
  export interface Transaction extends BaseTransaction {
24
24
  description: string;
@@ -39,6 +39,4 @@ export interface Transaction extends BaseTransaction {
39
39
  isRecommendedTransaction?: boolean;
40
40
  vendorId?: ID;
41
41
  vendorName?: string;
42
- customerId?: ID;
43
- customerName?: string;
44
42
  }
@@ -1,4 +1,4 @@
1
- export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized" | "matched";
1
+ export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized";
2
2
  export type TypeOfTransactionType = ReturnType<typeof toTypeOfTransaction>;
3
3
  declare const toCustomerTransactionType: (v: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund";
4
4
  export declare const toCustomerTransactionTypeStrict: (v?: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund" | undefined;
@@ -6,7 +6,6 @@ const ALL_TYPES_OF_TRANSACTIONS = [
6
6
  'schedule',
7
7
  'supported', // supported is like a superset at this point
8
8
  'uncategorized',
9
- 'matched', // used for reconcile transactions
10
9
  ];
11
10
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
12
11
  const toTypeOfTransaction = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TYPES_OF_TRANSACTIONS);
@@ -1,6 +1,5 @@
1
1
  import { Amount } from '../../../commonStateTypes/amount';
2
2
  import { ZeniDate } from '../../../zeniDayJS';
3
- import { CustomerBase } from '../../customer/customerState';
4
3
  import { VendorBase } from '../../vendor/vendorState';
5
4
  import { PaymentType } from './paymentType';
6
5
  import { Transaction } from './transaction';
@@ -12,8 +11,4 @@ export interface VendorTransaction extends Transaction {
12
11
  balance?: Amount;
13
12
  dueDate?: ZeniDate;
14
13
  }
15
- export interface VendorTransactionWithCustomer extends VendorTransaction {
16
- customer?: CustomerBase;
17
- }
18
14
  export declare const isVendorTransaction: (transaction: Transaction) => boolean;
19
- export declare const isVendorTransactionWithCustomer: (transaction: Transaction) => boolean;
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVendorTransactionWithCustomer = exports.isVendorTransaction = void 0;
3
+ exports.isVendorTransaction = void 0;
4
4
  const transactionType_1 = require("./transactionType");
5
5
  const isVendorTransaction = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null;
6
6
  exports.isVendorTransaction = isVendorTransaction;
7
- const isVendorTransactionWithCustomer = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null &&
8
- Boolean(transaction.customerId) === true &&
9
- Boolean(transaction.customerName) === true;
10
- exports.isVendorTransactionWithCustomer = isVendorTransactionWithCustomer;
@@ -10,12 +10,7 @@ function toSupportedTransaction(payload) {
10
10
  return (0, customerTransactionPayload_1.toCustomerTransaction)(payload);
11
11
  }
12
12
  else if ((0, vendorTransactionPayload_1.isVendorTransactionPayload)(payload)) {
13
- if ((0, vendorTransactionPayload_1.isVendorTransactionWithCustomerPayload)(payload)) {
14
- return (0, vendorTransactionPayload_1.toVendorTransactionWithCustomer)(payload);
15
- }
16
- else {
17
- return (0, vendorTransactionPayload_1.toVendorTransaction)(payload);
18
- }
13
+ return (0, vendorTransactionPayload_1.toVendorTransaction)(payload);
19
14
  }
20
15
  else if ((0, otherTransactionPayload_1.isTransferTransactionPayload)(payload)) {
21
16
  return (0, otherTransactionPayload_1.toTransferTransaction)(payload);
@@ -1,7 +1,5 @@
1
- import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
2
1
  import { ID, UpdateType } from '../../commonStateTypes/common';
3
2
  import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
4
- import { MatchedTransactionPayload } from './payloadTypes/reconciliationTransactionPayloads';
5
3
  import { ScheduleTransactionPayload } from './payloadTypes/scheduleTransactionPayload';
6
4
  import { SupportedTransactionPayload, TransactionState } from './transactionState';
7
5
  export declare const initialState: TransactionState;
@@ -21,21 +19,6 @@ export declare const updateTransactions: import("@reduxjs/toolkit").ActionCreato
21
19
  currencySymbol: string;
22
20
  }, "transaction/updateScheduleTransactions", never, {
23
21
  updateType: UpdateType;
24
- }>, updateReconcileTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionsPayload: MatchedTransactionPayload[], currencyPayload: CurrencyPayload, updateType?: UpdateType | undefined], {
25
- transactionsPayload: MatchedTransactionPayload[];
26
- currencyPayload: CurrencyPayload;
27
- }, "transaction/updateReconcileTransactions", never, {
28
- updateType: UpdateType;
29
- }>, updateMultipleReconcileTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionsPayload: {
30
- allReconciledTransactions: MatchedTransactionPayload[];
31
- currencyPayload: CurrencyPayload;
32
- }[], updateType?: UpdateType | undefined], {
33
- transactionsPayload: {
34
- allReconciledTransactions: MatchedTransactionPayload[];
35
- currencyPayload: CurrencyPayload;
36
- }[];
37
- }, "transaction/updateMultipleReconcileTransactions", never, {
38
- updateType: UpdateType;
39
22
  }>, removeTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "transaction/removeTransaction">, removeTransactionCategorization: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
40
23
  transactionIds: ID[];
41
24
  }, "transaction/removeTransactionCategorization">, removeTransactionAttachment: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -4,18 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.clearAllTransactions = exports.updateTransactionIsMiscategorized = exports.removeTransactionAttachment = exports.removeTransactionCategorization = exports.removeTransaction = exports.updateMultipleReconcileTransactions = exports.updateReconcileTransactions = exports.updateScheduleTransactions = exports.updateTransaction = exports.updateTransactions = exports.initialState = void 0;
7
+ exports.clearAllTransactions = exports.updateTransactionIsMiscategorized = exports.removeTransactionAttachment = exports.removeTransactionCategorization = exports.removeTransaction = exports.updateScheduleTransactions = exports.updateTransaction = exports.updateTransactions = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const assignWith_1 = __importDefault(require("lodash/assignWith"));
10
10
  const transactionDetailState_1 = require("../../view/transactionDetail/transactionDetailState");
11
- const reconciliationTransactionPayloads_1 = require("./payloadTypes/reconciliationTransactionPayloads");
12
11
  const scheduleTransactionPayload_1 = require("./payloadTypes/scheduleTransactionPayload");
13
12
  const transactionType_1 = require("./stateTypes/transactionType");
14
13
  const toSupportedTransaction_1 = __importDefault(require("./toSupportedTransaction"));
15
14
  exports.initialState = {
16
15
  transactionById: {},
17
16
  scheduleTransactionById: {},
18
- reconcileTransactionById: {},
19
17
  };
20
18
  const transaction = (0, toolkit_1.createSlice)({
21
19
  name: 'transaction',
@@ -89,46 +87,13 @@ const transaction = (0, toolkit_1.createSlice)({
89
87
  };
90
88
  },
91
89
  },
92
- updateMultipleReconcileTransactions: {
93
- reducer(draft, action) {
94
- action.payload.transactionsPayload.forEach((value) => {
95
- value.allReconciledTransactions.forEach((reconciledTransaction) => {
96
- doUpdateReconcileTransaction(draft.reconcileTransactionById, reconciledTransaction.transaction_id, reconciledTransaction, value.currencyPayload, action.meta.updateType);
97
- });
98
- });
99
- },
100
- prepare(transactionsPayload, updateType = 'merge') {
101
- return {
102
- payload: {
103
- transactionsPayload,
104
- },
105
- meta: { updateType },
106
- };
107
- },
108
- },
109
- updateReconcileTransactions: {
110
- reducer(draft, action) {
111
- action.payload.transactionsPayload.forEach((value) => {
112
- doUpdateReconcileTransaction(draft.reconcileTransactionById, value.transaction_id, value, action.payload.currencyPayload, action.meta.updateType);
113
- });
114
- },
115
- prepare(transactionsPayload, currencyPayload, updateType = 'merge') {
116
- return {
117
- payload: {
118
- transactionsPayload,
119
- currencyPayload,
120
- },
121
- meta: { updateType },
122
- };
123
- },
124
- },
125
90
  clearAllTransactions(draft) {
126
91
  draft.transactionById = {};
127
92
  draft.scheduleTransactionById = {};
128
93
  },
129
94
  },
130
95
  });
131
- _a = transaction.actions, exports.updateTransactions = _a.updateTransactions, exports.updateTransaction = _a.updateTransaction, exports.updateScheduleTransactions = _a.updateScheduleTransactions, exports.updateReconcileTransactions = _a.updateReconcileTransactions, exports.updateMultipleReconcileTransactions = _a.updateMultipleReconcileTransactions, exports.removeTransaction = _a.removeTransaction, exports.removeTransactionCategorization = _a.removeTransactionCategorization, exports.removeTransactionAttachment = _a.removeTransactionAttachment, exports.updateTransactionIsMiscategorized = _a.updateTransactionIsMiscategorized, exports.clearAllTransactions = _a.clearAllTransactions;
96
+ _a = transaction.actions, exports.updateTransactions = _a.updateTransactions, exports.updateTransaction = _a.updateTransaction, exports.updateScheduleTransactions = _a.updateScheduleTransactions, exports.removeTransaction = _a.removeTransaction, exports.removeTransactionCategorization = _a.removeTransactionCategorization, exports.removeTransactionAttachment = _a.removeTransactionAttachment, exports.updateTransactionIsMiscategorized = _a.updateTransactionIsMiscategorized, exports.clearAllTransactions = _a.clearAllTransactions;
132
97
  exports.default = transaction.reducer;
133
98
  /**
134
99
  * Helper functions
@@ -165,13 +130,3 @@ function doUpdateScheduleTransaction(draft, id, payload, currencyCode, currencyS
165
130
  draft[id] = transaction;
166
131
  }
167
132
  }
168
- function doUpdateReconcileTransaction(draft, id, payload, currencyPayload, updateType) {
169
- const transaction = (0, reconciliationTransactionPayloads_1.toMatchedTransaction)(payload, currencyPayload);
170
- const existingTransaction = draft[id];
171
- if (existingTransaction != null && updateType === 'merge') {
172
- (0, assignWith_1.default)(draft[id], transaction, (objValue, srcValue) => srcValue !== null && srcValue !== void 0 ? srcValue : objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
173
- }
174
- else {
175
- draft[id] = transaction;
176
- }
177
- }
@@ -1,9 +1,7 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
2
  import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
3
- import { MatchedTransaction } from './stateTypes/reconciliationTransaction';
4
3
  import { ScheduleTransaction } from './stateTypes/scheduleTransaction';
5
4
  import { SupportedTransaction, TransactionState } from './transactionState';
6
5
  export declare function getScheduleTransactionById(transactionState: TransactionState, transactionId: TransactionDetailKey): ScheduleTransaction | undefined;
7
6
  export declare function getSupportedTransactionById(transactionState: TransactionState, transactionId: ID): SupportedTransaction | undefined;
8
7
  export declare function getSupportedTransactionsByIds(transactionState: TransactionState, transactionIds: ID[]): SupportedTransaction[];
9
- export declare function getMatchedTransactionById(transactionState: TransactionState, transactionId: ID): MatchedTransaction | undefined;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getScheduleTransactionById = getScheduleTransactionById;
4
4
  exports.getSupportedTransactionById = getSupportedTransactionById;
5
5
  exports.getSupportedTransactionsByIds = getSupportedTransactionsByIds;
6
- exports.getMatchedTransactionById = getMatchedTransactionById;
7
6
  function getScheduleTransactionById(transactionState, transactionId) {
8
7
  const transaction = transactionState.scheduleTransactionById[transactionId];
9
8
  return transaction;
@@ -23,7 +22,3 @@ function getSupportedTransactionsByIds(transactionState, transactionIds) {
23
22
  function isSupportedTransaction(transaction) {
24
23
  return (transaction.typeOfTransaction === 'supported');
25
24
  }
26
- function getMatchedTransactionById(transactionState, transactionId) {
27
- const transaction = transactionState.reconcileTransactionById[transactionId];
28
- return transaction;
29
- }