@zeniai/client-epic-state 4.17.46 → 4.17.47

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 (130) hide show
  1. package/lib/commonStateTypes/animations.d.ts +1 -1
  2. package/lib/commonStateTypes/animations.js +0 -1
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  5. package/lib/entity/account/accountState.d.ts +1 -1
  6. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  7. package/lib/entity/class/classReducer.d.ts +4 -4
  8. package/lib/entity/class/classState.d.ts +1 -1
  9. package/lib/entity/company/companyPayload.d.ts +2 -27
  10. package/lib/entity/company/companyPayload.js +2 -38
  11. package/lib/entity/company/companyStateTypes.d.ts +0 -22
  12. package/lib/entity/company/companyStateTypes.js +1 -13
  13. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  14. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +0 -1
  15. package/lib/entity/file/fileState.d.ts +2 -2
  16. package/lib/entity/file/fileState.js +0 -1
  17. package/lib/entity/forecast/forecastState.d.ts +1 -1
  18. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  19. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  20. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  21. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  22. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  23. package/lib/entity/tenant/clearAllEpic.d.ts +1 -5
  24. package/lib/entity/tenant/clearAllEpic.js +0 -8
  25. package/lib/entity/tenant/tenantPayload.d.ts +0 -3
  26. package/lib/entity/tenant/tenantReducer.js +0 -1
  27. package/lib/entity/tenant/tenantSelector.d.ts +1 -5
  28. package/lib/entity/tenant/tenantSelector.js +0 -6
  29. package/lib/entity/tenant/tenantState.d.ts +0 -1
  30. package/lib/entity/userRole/userRolePayload.d.ts +0 -6
  31. package/lib/entity/userRole/userRolePayload.js +0 -6
  32. package/lib/entity/userRole/userRoleReducer.js +0 -3
  33. package/lib/entity/userRole/userRoleState.d.ts +0 -1
  34. package/lib/entity/userRole/userRoleType.d.ts +2 -5
  35. package/lib/entity/userRole/userRoleType.js +5 -44
  36. package/lib/epic.d.ts +1 -11
  37. package/lib/epic.js +1 -11
  38. package/lib/index.d.ts +9 -23
  39. package/lib/index.js +33 -64
  40. package/lib/reducer.d.ts +0 -12
  41. package/lib/reducer.js +0 -12
  42. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +0 -21
  43. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +0 -43
  44. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  45. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  46. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  47. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  48. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  49. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  50. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  51. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  52. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  53. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +0 -1
  54. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +0 -7
  55. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +0 -5
  56. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -2
  57. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +0 -1
  58. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +0 -1
  59. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  60. package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
  61. package/lib/view/settingsView/settingsViewSelector.js +2 -9
  62. package/lib/view/spendManagement/commonHistoryView/commonHistoryReducer.d.ts +2 -2
  63. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -6
  64. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +1 -3
  65. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +6 -6
  66. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -15
  67. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -1
  68. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -10
  69. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -3
  70. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -1
  71. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +0 -6
  72. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
  73. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +0 -1
  74. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  75. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.d.ts +2 -2
  76. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  77. package/lib/view/topEx/topExSelector.d.ts +1 -1
  78. package/package.json +1 -1
  79. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.d.ts +0 -9
  80. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +0 -69
  81. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.d.ts +0 -7
  82. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.js +0 -31
  83. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.d.ts +0 -7
  84. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.js +0 -40
  85. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.d.ts +0 -60
  86. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.js +0 -18
  87. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +0 -31
  88. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +0 -152
  89. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.d.ts +0 -14
  90. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.js +0 -46
  91. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.d.ts +0 -42
  92. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.js +0 -31
  93. package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.d.ts +0 -11
  94. package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.js +0 -44
  95. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.d.ts +0 -7
  96. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.js +0 -21
  97. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.d.ts +0 -7
  98. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.js +0 -28
  99. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.d.ts +0 -20
  100. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.js +0 -83
  101. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.d.ts +0 -7
  102. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.js +0 -30
  103. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.d.ts +0 -53
  104. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.js +0 -2
  105. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +0 -19
  106. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +0 -264
  107. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.d.ts +0 -24
  108. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.js +0 -35
  109. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -47
  110. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.js +0 -2
  111. package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.d.ts +0 -7
  112. package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.js +0 -42
  113. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.d.ts +0 -10
  114. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.js +0 -11
  115. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.d.ts +0 -10
  116. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.js +0 -2
  117. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.d.ts +0 -15
  118. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +0 -57
  119. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.d.ts +0 -7
  120. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.js +0 -18
  121. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.d.ts +0 -9
  122. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.js +0 -92
  123. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.d.ts +0 -36
  124. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.js +0 -15
  125. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.d.ts +0 -10
  126. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +0 -45
  127. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.d.ts +0 -17
  128. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.js +0 -55
  129. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.d.ts +0 -17
  130. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.js +0 -2
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCashBalance: (state: RootState) => {
3
- reportId: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
3
+ reportId: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
18
+ reportId: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
15
+ reportId: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -1,12 +1,12 @@
1
1
  import { DashboardState } from './dashboardState';
2
2
  export declare const initialState: DashboardState;
3
- export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
6
  tenantId: string;
7
7
  fetchFullReport: any;
8
8
  cacheOverride: any;
9
- excludeResources: ("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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[];
9
+ excludeResources: ("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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation")[];
10
10
  }, "dashboard/fetchDashboard", never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"dashboard/clearDashboard">;
11
11
  declare const _default: import("redux").Reducer<DashboardState>;
12
12
  export default _default;
@@ -17,7 +17,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
17
17
  thisPeriod: TimeframeTick;
18
18
  coaBalances: COABalance[];
19
19
  maxNumOfPeriodsToHighlight: number;
20
- }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
+ }, "financeStatement/updateFinanceStatementThisPeriod">, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, "financeStatement/updateCOABalancesRange">, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", "financeStatement/updateSelectedReportId">, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
21
  firstMonthOfFY: Month;
22
22
  isCompareModeOn: boolean;
23
23
  additionalBalances: COABalanceType[];
@@ -3,9 +3,9 @@ import { ZeniAPIStatus } from '../../responsePayload';
3
3
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
4
4
  import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
5
5
  export declare const initialState: GlobalMerchantViewState;
6
- export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined], {
6
+ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined], {
7
7
  merchantId: string | undefined;
8
- context: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined;
8
+ context: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | undefined;
9
9
  }, "globalMerchantView/createGlobalMerchant", never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
10
  merchantId: ID;
11
11
  }, "globalMerchantView/createGlobalMerchantSuccess">, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -57,7 +57,6 @@ export interface OnboardingCustomerPayload extends Partial<OnboardingEmailGroupP
57
57
  is_payroll_enabled: boolean;
58
58
  is_cfo_enabled: boolean;
59
59
  is_tax_enabled: boolean;
60
- is_treasury_enabled: boolean;
61
60
  language_code?: string;
62
61
  currency_code?: string;
63
62
  country_code?: string;
@@ -17,7 +17,6 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
17
17
  is_banking_enabled: false,
18
18
  is_card_enabled: false,
19
19
  is_spend_management_enabled: false,
20
- is_treasury_enabled: false,
21
20
  is_other_products_enabled: false,
22
21
  is_payroll_enabled: false,
23
22
  is_cfo_enabled: false,
@@ -48,13 +47,11 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
48
47
  onboardingCustomerPayload.is_payroll_enabled = false;
49
48
  onboardingCustomerPayload.is_cfo_enabled = false;
50
49
  onboardingCustomerPayload.is_tax_enabled = false;
51
- const isTreasury = selectedProducts.includes('zeni_treasury');
52
50
  if (isBookkeeping) {
53
51
  onboardingCustomerPayload.is_book_keeping_enabled = true;
54
52
  onboardingCustomerPayload.is_banking_enabled = true;
55
53
  onboardingCustomerPayload.is_spend_management_enabled = true;
56
54
  onboardingCustomerPayload.is_card_enabled = true;
57
- onboardingCustomerPayload.is_treasury_enabled = true;
58
55
  }
59
56
  else if (isChecking && isCards) {
60
57
  // for checking and cards
@@ -62,7 +59,6 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
62
59
  onboardingCustomerPayload.is_banking_enabled = true;
63
60
  onboardingCustomerPayload.is_spend_management_enabled = false;
64
61
  onboardingCustomerPayload.is_card_enabled = true;
65
- onboardingCustomerPayload.is_treasury_enabled = isTreasury;
66
62
  }
67
63
  else if (isCards) {
68
64
  // for cards only
@@ -70,7 +66,6 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
70
66
  onboardingCustomerPayload.is_banking_enabled = false;
71
67
  onboardingCustomerPayload.is_spend_management_enabled = false;
72
68
  onboardingCustomerPayload.is_card_enabled = true;
73
- onboardingCustomerPayload.is_treasury_enabled = false;
74
69
  }
75
70
  else if (isChecking) {
76
71
  // for checking only
@@ -78,7 +73,6 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
78
73
  onboardingCustomerPayload.is_banking_enabled = true;
79
74
  onboardingCustomerPayload.is_spend_management_enabled = false;
80
75
  onboardingCustomerPayload.is_card_enabled = false;
81
- onboardingCustomerPayload.is_treasury_enabled = isTreasury;
82
76
  }
83
77
  else {
84
78
  // Nothing selected: disable all core flags
@@ -86,7 +80,6 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
86
80
  onboardingCustomerPayload.is_banking_enabled = false;
87
81
  onboardingCustomerPayload.is_spend_management_enabled = false;
88
82
  onboardingCustomerPayload.is_card_enabled = false;
89
- onboardingCustomerPayload.is_treasury_enabled = false;
90
83
  }
91
84
  }
92
85
  }
@@ -231,11 +231,6 @@ const allProductsList = [
231
231
  name: 'Zeni Checking',
232
232
  group: 'banking',
233
233
  },
234
- {
235
- code: 'zeni_treasury',
236
- name: 'Zeni Treasury',
237
- group: 'banking',
238
- },
239
234
  {
240
235
  code: 'zeni_cards',
241
236
  name: 'Zeni Cards',
@@ -5,8 +5,8 @@ import { Tenant } from '../../../../entity/tenant/tenantState';
5
5
  import { CompanyDetailsLocalData, PrimaryContactLocalData } from '../../../spendManagement/commonSetup/setupViewState';
6
6
  declare const toProductGroupType: (v: string) => "other" | "bookkeeping" | "banking" | "spend_management" | "cards";
7
7
  export type ProductGroupType = ReturnType<typeof toProductGroupType>;
8
- export declare const toProductType: (v: string) => "zeni_treasury" | "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax";
9
- export declare const toProductTypeStrict: (v: string) => "zeni_treasury" | "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax" | undefined;
8
+ export declare const toProductType: (v: string) => "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax";
9
+ export declare const toProductTypeStrict: (v: string) => "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | "zeni_payroll" | "zeni_cfo" | "zeni_tax" | undefined;
10
10
  export type ProductType = ReturnType<typeof toProductType>;
11
11
  export interface OnboardingCustomer {
12
12
  company: CompanyWithSchema;
@@ -17,7 +17,6 @@ const ALL_PRODUCTS = [
17
17
  'zeni_bill_pay',
18
18
  'zeni_reimbursements',
19
19
  'zeni_cards',
20
- 'zeni_treasury',
21
20
  'other',
22
21
  'zeni_payroll',
23
22
  'zeni_cfo',
@@ -279,7 +279,6 @@ const getProductSettingsString = (productSettings) => {
279
279
  const productKeyMap = {
280
280
  isBookkeepingEnabled: 'bookkeeping',
281
281
  isBankingEnabled: 'banking',
282
- isTreasuryEnabled: 'treasury',
283
282
  isSpendManagementEnabled: 'spend_management',
284
283
  isOtherProductsEnabled: 'other_products',
285
284
  isCardsEnabled: 'cards',
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getReimbursementCardReport: (state: RootState) => {
3
- reportId: "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" | "zeni_treasury" | "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
3
+ reportId: "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" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -3,7 +3,7 @@ import { RootState } from '../../reducer';
3
3
  import { NotificationSettings } from './settingsViewState';
4
4
  import { BankConnectionsSetupView, BillingView, IntegrationsView, MyBankConnectionsView, MyProfileSelectorView, NotificationSettingsSelectorView } from './types/settingsViewSelectorTypes';
5
5
  export declare function getApprovalRuleViewDetails(state: RootState): FetchStateAndError;
6
- export declare function getBankConnectionsSetupViewDetails(state: RootState, companyId: ID, isBillPayEnabled: boolean, isRemiEnabled: boolean, isAccountEnabled: boolean, isCardEnabled: boolean, isTreasuryEnabled: boolean): BankConnectionsSetupView;
6
+ export declare function getBankConnectionsSetupViewDetails(state: RootState, companyId: ID, isBillPayEnabled: boolean, isRemiEnabled: boolean, isAccountEnabled: boolean, isCardEnabled: boolean): BankConnectionsSetupView;
7
7
  export declare function getBillingAccountsViewDetails(state: RootState, companyId: ID): BillingView;
8
8
  export declare function getMyBankConnectionsDetails(state: RootState, userId: ID): MyBankConnectionsView;
9
9
  export declare function getIntegrationsView(state: RootState, companyId: ID): IntegrationsView;
@@ -39,8 +39,8 @@ function getApprovalRuleViewDetails(state) {
39
39
  fetchState: fetchState.fetchState,
40
40
  };
41
41
  }
42
- function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled, isRemiEnabled, isAccountEnabled, isCardEnabled, isTreasuryEnabled) {
43
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
+ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled, isRemiEnabled, isAccountEnabled, isCardEnabled) {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h;
44
44
  const { accountState, settingsViewState, paymentAccountState, depositAccountState, depositAccountListState, paymentAccountListState, } = state;
45
45
  const { bankConnection } = settingsViewState;
46
46
  const { paymentAccountIds } = paymentAccountListState;
@@ -81,9 +81,6 @@ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled,
81
81
  if (isAccountEnabled) {
82
82
  primaryAccountsProductWise.push(Object.assign({ productType: 'zeni_accounts' }, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'zeni_accounts', 'account_setup')));
83
83
  }
84
- if (isTreasuryEnabled) {
85
- primaryAccountsProductWise.push(Object.assign({ productType: 'zeni_treasury' }, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'zeni_treasury', 'treasury_setup')));
86
- }
87
84
  if (isRemiEnabled) {
88
85
  primaryAccountsProductWise.push(Object.assign({ productType: 'reimbursement' }, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'reimbursement', 'reimbursement_setup')));
89
86
  }
@@ -92,7 +89,6 @@ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled,
92
89
  const remiPrimaryAccount = (_f = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyReimbursementInfo.primaryFundingAccount) === null || _f === void 0 ? void 0 : _f.accountId;
93
90
  const accountsPrimaryAccount = (_g = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyZeniAccountInfo.primaryFundingAccount) === null || _g === void 0 ? void 0 : _g.accountId; //companyZeniAccountInfo
94
91
  const chargeCardsPrimaryAccount = (_h = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyChargeCardInfo.primaryFundingAccount) === null || _h === void 0 ? void 0 : _h.accountId; //companyChargeCardInfo
95
- const treasuryPrimaryAccount = (_k = (_j = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyTreasuryInfo) === null || _j === void 0 ? void 0 : _j.primaryFundingAccount) === null || _k === void 0 ? void 0 : _k.accountId; //companyTreasuryInfo
96
92
  const primaryAccounts = [];
97
93
  if (billPayPrimaryAccount != null && isBillPayEnabled) {
98
94
  primaryAccounts.push(billPayPrimaryAccount);
@@ -106,9 +102,6 @@ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled,
106
102
  if (chargeCardsPrimaryAccount != null && isCardEnabled) {
107
103
  primaryAccounts.push(chargeCardsPrimaryAccount);
108
104
  }
109
- if (treasuryPrimaryAccount != null && isTreasuryEnabled) {
110
- primaryAccounts.push(treasuryPrimaryAccount);
111
- }
112
105
  const nonPrimaryPaymentAccounts = paymentAccounts.filter((paymentAcc) => !primaryAccounts.includes(paymentAcc.paymentAccountId));
113
106
  return {
114
107
  primaryConnection: primaryAccountsProductWise,
@@ -4,9 +4,9 @@ import { ZeniAPIStatus } from '../../../responsePayload';
4
4
  import { CommonHistoryState } from './commonHistory';
5
5
  import { HistoricEventPayload } from './commonHistoryPayload';
6
6
  export declare const initialState: CommonHistoryState;
7
- export declare const fetchEntityHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[entityId: string, entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards", cacheOverride?: any], {
7
+ export declare const fetchEntityHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[entityId: string, entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", cacheOverride?: any], {
8
8
  entityId: string;
9
- entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards";
9
+ entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
10
10
  cacheOverride: any;
11
11
  }, "commonHistory/fetchEntityHistory", never, never>, updateCommonHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
12
  entityId: ID;
@@ -112,7 +112,7 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
112
112
  }));
113
113
  exports.updateBusinessVerificationDetailsEpic = updateBusinessVerificationDetailsEpic;
114
114
  const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData, registeredAddressData) => {
115
- const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, sourceOfFunds, } = companyLocalData;
115
+ const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, } = companyLocalData;
116
116
  const company = {
117
117
  is_ready_for_verification: sendForVerification,
118
118
  file_ids: fileIds,
@@ -166,9 +166,6 @@ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerif
166
166
  if (companyIndustry != null) {
167
167
  company['company_industry'] = companyIndustry;
168
168
  }
169
- if (sourceOfFunds != null) {
170
- company['source_of_funds'] = sourceOfFunds;
171
- }
172
169
  company['is_new_company_industry_verified'] = true;
173
170
  return company;
174
171
  };
@@ -256,8 +253,6 @@ const getBusinessVerificationForFeature = (setupViewType) => {
256
253
  return 'deposit_accounts';
257
254
  case 'bill_pay':
258
255
  return 'bill_pay';
259
- case 'zeni_treasury':
260
- return 'treasury_accounts';
261
256
  //whenever a new setup view type is added, add the corresponding feature here
262
257
  case 'billing':
263
258
  console.warn(`Invalid type for setup view`);
@@ -52,7 +52,7 @@ exports.updateSetupViewLocalStoreDataEpic = updateSetupViewLocalStoreDataEpic;
52
52
  */
53
53
  function toSetupViewLocalData(company, users, userRoles, primaryContact) {
54
54
  const { companyInfo, incInfo, taxInfo, questionaire, companyBillPayInfo } = company;
55
- const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, } = companyInfo;
55
+ const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, } = companyInfo;
56
56
  const { usersSelectedForVerification: usersSelected } = companyBillPayInfo;
57
57
  const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
58
58
  const { companyIndustry } = questionaire;
@@ -69,7 +69,6 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
69
69
  fileIds,
70
70
  syncToken,
71
71
  typeOfIncorporation: companyIncType,
72
- sourceOfFunds,
73
72
  };
74
73
  let primaryContactDetails = undefined;
75
74
  if (primaryContact != null) {
@@ -113,7 +112,6 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
113
112
  titleAtCompany: userRole === null || userRole === void 0 ? void 0 : userRole.titleAtCompany,
114
113
  ownershipInCompany: userRole === null || userRole === void 0 ? void 0 : userRole.ownershipInCompany,
115
114
  userVerificationStatus: userRole === null || userRole === void 0 ? void 0 : userRole.userVerificationStatus,
116
- treasuryUserVerificationStatus: userRole === null || userRole === void 0 ? void 0 : userRole.treasuryUserVerificationStatus,
117
115
  additionalDocumentTypesRequestedForVerification: (_b = userRole === null || userRole === void 0 ? void 0 : userRole.additionalDocumentTypesRequestedForVerification) !== null && _b !== void 0 ? _b : [],
118
116
  additionalSubmittedDocumentsForVerificationFileIds: (_c = userRole === null || userRole === void 0 ? void 0 : userRole.additionalSubmittedDocumentsForVerificationFileIds) !== null && _c !== void 0 ? _c : [],
119
117
  areAdditionalDocumentsRequestedForVerification: (_d = userRole === null || userRole === void 0 ? void 0 : userRole.areAdditionalDocumentsRequestedForVerification) !== null && _d !== void 0 ? _d : false,
@@ -2,15 +2,15 @@ import { ID } from '../../../commonStateTypes/common';
2
2
  import { ZeniAPIStatus } from '../../../responsePayload';
3
3
  import { ZeniDate } from '../../../zeniDayJS';
4
4
  import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
5
- import { CompanyDetailsLocalData, SetupViewLocalData, SetupViewState } from './setupViewState';
5
+ import { SetupViewLocalData, SetupViewState } from './setupViewState';
6
6
  export declare const initialState: SetupViewState;
7
- export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards"], {
7
+ export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards"], {
8
8
  companyId: string;
9
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
10
- }, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
9
+ setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
10
+ }, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
11
11
  companyId: string;
12
12
  officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
13
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
13
+ setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
14
14
  sendForVerification: any;
15
15
  fromBillListScreen: any;
16
16
  isSubmittingAdditionalDocuments: any;
@@ -24,7 +24,7 @@ export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPr
24
24
  }, "setupView/saveCompnayOfficerPhoneInLocalStore">, saveCompnayOfficerAdditionalDocumentsInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
25
25
  officerType: CompanyOfficerType;
26
26
  fileIds: ID[];
27
- }, "setupView/saveCompnayOfficerAdditionalDocumentsInLocalStore">, saveTreasuryAdditionalDocumentsInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<CompanyDetailsLocalData>, "setupView/saveTreasuryAdditionalDocumentsInLocalStore">, sendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/sendOtp">, resendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/resendOtp">, sendOtpSuccessSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
27
+ }, "setupView/saveCompnayOfficerAdditionalDocumentsInLocalStore">, sendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/sendOtp">, resendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/resendOtp">, sendOtpSuccessSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
28
  otpChallenge: string;
29
29
  }, "setupView/sendOtpSuccess">, sendOtpFailureSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "setupView/sendOtpFailure">, verifyOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/verifyOtp">, verifyOtpSuccessSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/verifyOtpSuccess">, verifyOtpFailureSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "setupView/verifyOtpFailure">, saveIndustryAndIncDateInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
30
  industry: string;
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  var _a;
6
3
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.clearSetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.verifyOtpFailureSpendManagementSetUp = exports.verifyOtpSuccessSpendManagementSetUp = exports.verifyOtpSpendManagementSetUp = exports.sendOtpFailureSpendManagementSetUp = exports.sendOtpSuccessSpendManagementSetUp = exports.resendOtpSpendManagementSetUp = exports.sendOtpSpendManagementSetUp = exports.saveTreasuryAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.updateBusinessVerificationDetailsFailure = exports.updateBusinessVerificationDetailsSuccess = exports.updateBusinessVerificationDetails = exports.enableSetupFailure = exports.enableSetupSuccess = exports.enableSetup = exports.initialState = void 0;
4
+ exports.clearSetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.verifyOtpFailureSpendManagementSetUp = exports.verifyOtpSuccessSpendManagementSetUp = exports.verifyOtpSpendManagementSetUp = exports.sendOtpFailureSpendManagementSetUp = exports.sendOtpSuccessSpendManagementSetUp = exports.resendOtpSpendManagementSetUp = exports.sendOtpSpendManagementSetUp = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.updateBusinessVerificationDetailsFailure = exports.updateBusinessVerificationDetailsSuccess = exports.updateBusinessVerificationDetails = exports.enableSetupFailure = exports.enableSetupSuccess = exports.enableSetup = exports.initialState = void 0;
8
5
  const toolkit_1 = require("@reduxjs/toolkit");
9
- const uniq_1 = __importDefault(require("lodash/uniq"));
10
6
  const initialFetchStatus = {
11
7
  fetchState: 'Not-Started',
12
8
  error: undefined,
@@ -170,15 +166,6 @@ const setupView = (0, toolkit_1.createSlice)({
170
166
  action.payload.fileIds;
171
167
  }
172
168
  },
173
- saveTreasuryAdditionalDocumentsInLocalStore(draft, action) {
174
- const { fileIds, sourceOfFunds } = action.payload;
175
- if (draft.companyDetails.localData != null) {
176
- draft.companyDetails.localData = Object.assign(Object.assign({}, draft.companyDetails.localData), { fileIds: (0, uniq_1.default)([
177
- ...draft.companyDetails.localData.fileIds,
178
- ...(fileIds !== null && fileIds !== void 0 ? fileIds : []),
179
- ]), sourceOfFunds: sourceOfFunds !== null && sourceOfFunds !== void 0 ? sourceOfFunds : '' });
180
- }
181
- },
182
169
  saveCompnayOfficerPhoneInLocalStore(draft, action) {
183
170
  draft.companyOfficerUpdateStatus[action.payload.officerType].localData =
184
171
  Object.assign({}, draft.companyOfficerUpdateStatus[action.payload.officerType]
@@ -300,5 +287,5 @@ const setupView = (0, toolkit_1.createSlice)({
300
287
  },
301
288
  },
302
289
  });
303
- _a = setupView.actions, exports.enableSetup = _a.enableSetup, exports.enableSetupSuccess = _a.enableSetupSuccess, exports.enableSetupFailure = _a.enableSetupFailure, exports.updateBusinessVerificationDetails = _a.updateBusinessVerificationDetails, exports.updateBusinessVerificationDetailsSuccess = _a.updateBusinessVerificationDetailsSuccess, exports.updateBusinessVerificationDetailsFailure = _a.updateBusinessVerificationDetailsFailure, exports.updateSelectedCompanyOfficer = _a.updateSelectedCompanyOfficer, exports.updateSetupViewLocalStoreData = _a.updateSetupViewLocalStoreData, exports.saveSetupViewDataInLocalStore = _a.saveSetupViewDataInLocalStore, exports.saveCompnayOfficerPhoneInLocalStore = _a.saveCompnayOfficerPhoneInLocalStore, exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = _a.saveCompnayOfficerAdditionalDocumentsInLocalStore, exports.saveTreasuryAdditionalDocumentsInLocalStore = _a.saveTreasuryAdditionalDocumentsInLocalStore, exports.sendOtpSpendManagementSetUp = _a.sendOtp, exports.resendOtpSpendManagementSetUp = _a.resendOtp, exports.sendOtpSuccessSpendManagementSetUp = _a.sendOtpSuccess, exports.sendOtpFailureSpendManagementSetUp = _a.sendOtpFailure, exports.verifyOtpSpendManagementSetUp = _a.verifyOtp, exports.verifyOtpSuccessSpendManagementSetUp = _a.verifyOtpSuccess, exports.verifyOtpFailureSpendManagementSetUp = _a.verifyOtpFailure, exports.saveIndustryAndIncDateInLocalStore = _a.saveIndustryAndIncDateInLocalStore, exports.clearSetupViewDataInLocalStore = _a.clearSetupViewDataInLocalStore, exports.clearSetupView = _a.clearSetupView;
290
+ _a = setupView.actions, exports.enableSetup = _a.enableSetup, exports.enableSetupSuccess = _a.enableSetupSuccess, exports.enableSetupFailure = _a.enableSetupFailure, exports.updateBusinessVerificationDetails = _a.updateBusinessVerificationDetails, exports.updateBusinessVerificationDetailsSuccess = _a.updateBusinessVerificationDetailsSuccess, exports.updateBusinessVerificationDetailsFailure = _a.updateBusinessVerificationDetailsFailure, exports.updateSelectedCompanyOfficer = _a.updateSelectedCompanyOfficer, exports.updateSetupViewLocalStoreData = _a.updateSetupViewLocalStoreData, exports.saveSetupViewDataInLocalStore = _a.saveSetupViewDataInLocalStore, exports.saveCompnayOfficerPhoneInLocalStore = _a.saveCompnayOfficerPhoneInLocalStore, exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = _a.saveCompnayOfficerAdditionalDocumentsInLocalStore, exports.sendOtpSpendManagementSetUp = _a.sendOtp, exports.resendOtpSpendManagementSetUp = _a.resendOtp, exports.sendOtpSuccessSpendManagementSetUp = _a.sendOtpSuccess, exports.sendOtpFailureSpendManagementSetUp = _a.sendOtpFailure, exports.verifyOtpSpendManagementSetUp = _a.verifyOtp, exports.verifyOtpSuccessSpendManagementSetUp = _a.verifyOtpSuccess, exports.verifyOtpFailureSpendManagementSetUp = _a.verifyOtpFailure, exports.saveIndustryAndIncDateInLocalStore = _a.saveIndustryAndIncDateInLocalStore, exports.clearSetupViewDataInLocalStore = _a.clearSetupViewDataInLocalStore, exports.clearSetupView = _a.clearSetupView;
304
291
  exports.default = setupView.reducer;
@@ -77,7 +77,6 @@ export interface CompanyDetails {
77
77
  incDate?: ZeniDate;
78
78
  syncToken?: string;
79
79
  typeOfIncorporation?: string;
80
- sourceOfFunds?: string;
81
80
  }
82
81
  interface CompanyAndOfficerLocalData {
83
82
  companyOfficerLocalData: Record<CompanyOfficerType, CompanyOfficersDetails | undefined>;
@@ -23,9 +23,7 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
23
23
  const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType))).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
24
24
  const paymentAccounts = (_b = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, paymentAccountIds).filter((account) => account != null)) !== null && _b !== void 0 ? _b : [];
25
25
  const depositAccounts = (_c = (0, depositAccountSelector_1.getDepositAccountsByDepositAccountIds)(depositAccountState, depositAccountIds).filter((account) => account != null)) !== null && _c !== void 0 ? _c : [];
26
- const allFundingAccounts = (0, exports.getAllFundingAccounts)(setupViewType === 'zeni_accounts' || setupViewType === 'zeni_treasury'
27
- ? []
28
- : depositAccounts, // only external acct can be made primary for accounts setup
26
+ const allFundingAccounts = (0, exports.getAllFundingAccounts)(setupViewType === 'zeni_accounts' ? [] : depositAccounts, // only external acct can be made primary for accounts setup
29
27
  paymentAccounts, paymentAccountBalanceFetchStatus, false);
30
28
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
31
29
  const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
@@ -61,7 +59,6 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
61
59
  };
62
60
  }
63
61
  function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
64
- var _a;
65
62
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
66
63
  if (companyView == null) {
67
64
  return undefined;
@@ -84,10 +81,6 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
84
81
  primaryFundingAccount =
85
82
  companyView.company.company.companyZeniAccountInfo.primaryFundingAccount;
86
83
  }
87
- else if (setupViewType === 'zeni_treasury') {
88
- primaryFundingAccount =
89
- (_a = companyView.company.company.companyTreasuryInfo) === null || _a === void 0 ? void 0 : _a.primaryFundingAccount;
90
- }
91
84
  return primaryFundingAccount;
92
85
  }
93
86
  function getBusinessVerificationDetails(state, companyId) {
@@ -117,7 +110,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
117
110
  if (companyDetails.localData != null) {
118
111
  const deleteFileStatusById = {};
119
112
  const updateFileStatusById = {};
120
- const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, } = companyDetails.localData;
113
+ const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, } = companyDetails.localData;
121
114
  fileIds.forEach((fileId) => {
122
115
  deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
123
116
  });
@@ -143,7 +136,6 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
143
136
  registeredAddressStatus: registeredCompanyAddress,
144
137
  primaryContactLocalData,
145
138
  typeOfIncorporation,
146
- sourceOfFunds,
147
139
  };
148
140
  }
149
141
  const companyOfficerLocalData = {
@@ -4,7 +4,7 @@ import { AllowedDocumentType } from '../../../entity/file/fileState';
4
4
  import { ZeniDate } from '../../../zeniDayJS';
5
5
  import ZeniUrl from '../../../zeniUrl';
6
6
  import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
7
- declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
7
+ declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
8
8
  export type SetupViewType = ReturnType<typeof toSetupViewType>;
9
9
  export declare const toChargeCardSetupViewType: (v: string) => "charge_cards" | "debit_cards" | "charge_cards__debit_cards";
10
10
  export type ChargeCardSetupViewType = ReturnType<typeof toChargeCardSetupViewType>;
@@ -23,7 +23,6 @@ export interface CompanyDetailsLocalData {
23
23
  taxIdOrEIN?: string;
24
24
  syncToken?: string;
25
25
  typeOfIncorporation?: string;
26
- sourceOfFunds?: string;
27
26
  }
28
27
  export interface PrimaryContactLocalData {
29
28
  userId: ID | undefined;
@@ -55,7 +54,6 @@ export interface CompanyOfficerLocalData {
55
54
  ownershipInCompany?: number;
56
55
  documentTypeSelectedForVerification?: AllowedDocumentType;
57
56
  userVerificationStatus?: AllowedValueWithCode;
58
- treasuryUserVerificationStatus?: AllowedValueWithCode;
59
57
  }
60
58
  export interface SetupViewLocalData {
61
59
  companyDetails: CompanyDetailsLocalData;
@@ -62,7 +62,6 @@ export interface CompanyDetailsVerificationPayload {
62
62
  company_inc_type: string;
63
63
  company_inc_date: string | null;
64
64
  is_new_company_industry_verified: boolean;
65
- source_of_funds: string;
66
65
  subscription_billing_address?: AddressUpdatableInfoPayload;
67
66
  }
68
67
  export interface BusinessVerificationDataPayload {
@@ -63,12 +63,6 @@ function toPayload(plaidAccountKeyType, accountId, accountType) {
63
63
  charge_cards_primary_funding_account_type: (0, helpers_1.accountTypeSubConfigCodeToAccType)((0, billPayConfigState_1.toAccountTypeSubConfigCodeKeyType)(accountType)),
64
64
  };
65
65
  }
66
- case 'treasury_setup': {
67
- return {
68
- treasury_accounts_primary_funding_account_id: accountId,
69
- treasury_accounts_primary_funding_account_type: (0, helpers_1.accountTypeSubConfigCodeToAccType)((0, billPayConfigState_1.toAccountTypeSubConfigCodeKeyType)(accountType)),
70
- };
71
- }
72
66
  default: {
73
67
  return {
74
68
  deposit_accounts_primary_funding_account_id: accountId,