@zeniai/client-epic-state 4.17.47 → 4.17.48

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 (132) hide show
  1. package/lib/commonStateTypes/animations.d.ts +1 -1
  2. package/lib/commonStateTypes/animations.js +1 -0
  3. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  4. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
  5. package/lib/entity/account/accountState.d.ts +1 -1
  6. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  7. package/lib/entity/accountRecon/accountReconState.d.ts +1 -1
  8. package/lib/entity/accountRecon/accountReconState.js +1 -0
  9. package/lib/entity/class/classReducer.d.ts +4 -4
  10. package/lib/entity/class/classState.d.ts +1 -1
  11. package/lib/entity/company/companyPayload.d.ts +27 -2
  12. package/lib/entity/company/companyPayload.js +38 -2
  13. package/lib/entity/company/companyStateTypes.d.ts +22 -0
  14. package/lib/entity/company/companyStateTypes.js +13 -1
  15. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  16. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -0
  17. package/lib/entity/file/fileState.d.ts +2 -2
  18. package/lib/entity/file/fileState.js +1 -0
  19. package/lib/entity/forecast/forecastState.d.ts +1 -1
  20. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  21. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  22. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  23. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  24. package/lib/entity/snackbar/snackbarTypes.js +4 -0
  25. package/lib/entity/tenant/clearAllEpic.d.ts +5 -1
  26. package/lib/entity/tenant/clearAllEpic.js +8 -0
  27. package/lib/entity/tenant/tenantPayload.d.ts +3 -0
  28. package/lib/entity/tenant/tenantReducer.js +1 -0
  29. package/lib/entity/tenant/tenantSelector.d.ts +5 -1
  30. package/lib/entity/tenant/tenantSelector.js +6 -0
  31. package/lib/entity/tenant/tenantState.d.ts +1 -0
  32. package/lib/entity/userRole/userRolePayload.d.ts +6 -0
  33. package/lib/entity/userRole/userRolePayload.js +6 -0
  34. package/lib/entity/userRole/userRoleReducer.js +3 -0
  35. package/lib/entity/userRole/userRoleState.d.ts +1 -0
  36. package/lib/entity/userRole/userRoleType.d.ts +5 -2
  37. package/lib/entity/userRole/userRoleType.js +44 -5
  38. package/lib/epic.d.ts +11 -1
  39. package/lib/epic.js +11 -1
  40. package/lib/index.d.ts +23 -9
  41. package/lib/index.js +64 -33
  42. package/lib/reducer.d.ts +12 -0
  43. package/lib/reducer.js +12 -0
  44. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +21 -0
  45. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +43 -0
  46. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  47. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  48. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  49. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  50. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  51. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  52. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  53. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  54. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  55. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -0
  56. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +7 -0
  57. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +5 -0
  58. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -2
  59. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +1 -0
  60. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -0
  61. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  62. package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
  63. package/lib/view/settingsView/settingsViewSelector.js +9 -2
  64. package/lib/view/spendManagement/commonHistoryView/commonHistoryReducer.d.ts +2 -2
  65. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -1
  66. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +3 -1
  67. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +6 -6
  68. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +15 -2
  69. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -0
  70. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +10 -2
  71. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +3 -1
  72. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +1 -0
  73. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +6 -0
  74. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
  75. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -0
  76. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  77. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.d.ts +2 -2
  78. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.d.ts +9 -0
  79. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +69 -0
  80. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.d.ts +7 -0
  81. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.js +31 -0
  82. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.d.ts +7 -0
  83. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.js +40 -0
  84. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.d.ts +60 -0
  85. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.js +18 -0
  86. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +31 -0
  87. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +152 -0
  88. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.d.ts +14 -0
  89. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.js +46 -0
  90. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.d.ts +42 -0
  91. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.js +31 -0
  92. package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.d.ts +11 -0
  93. package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.js +44 -0
  94. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.d.ts +7 -0
  95. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.js +21 -0
  96. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.d.ts +7 -0
  97. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.js +28 -0
  98. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.d.ts +20 -0
  99. package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.js +83 -0
  100. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.d.ts +7 -0
  101. package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.js +30 -0
  102. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.d.ts +53 -0
  103. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.js +2 -0
  104. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +19 -0
  105. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +264 -0
  106. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.d.ts +24 -0
  107. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.js +35 -0
  108. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +47 -0
  109. package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.js +2 -0
  110. package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.d.ts +7 -0
  111. package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.js +42 -0
  112. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.d.ts +10 -0
  113. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.js +11 -0
  114. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.d.ts +10 -0
  115. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.js +2 -0
  116. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.d.ts +15 -0
  117. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +57 -0
  118. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.d.ts +7 -0
  119. package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.js +18 -0
  120. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.d.ts +9 -0
  121. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.js +92 -0
  122. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.d.ts +36 -0
  123. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.js +15 -0
  124. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.d.ts +10 -0
  125. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +45 -0
  126. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.d.ts +17 -0
  127. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.js +55 -0
  128. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.d.ts +17 -0
  129. package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.js +2 -0
  130. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  131. package/lib/view/topEx/topExSelector.d.ts +1 -1
  132. package/package.json +1 -1
@@ -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" | "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" | "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";
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" | "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" | "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";
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" | "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" | "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";
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" | "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" | "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], {
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" | "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" | "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")[];
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" | "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" | "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<{
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" | "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" | "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], {
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" | "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" | "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;
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,6 +57,7 @@ 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;
60
61
  language_code?: string;
61
62
  currency_code?: string;
62
63
  country_code?: string;
@@ -17,6 +17,7 @@ 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,
20
21
  is_other_products_enabled: false,
21
22
  is_payroll_enabled: false,
22
23
  is_cfo_enabled: false,
@@ -47,11 +48,13 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
47
48
  onboardingCustomerPayload.is_payroll_enabled = false;
48
49
  onboardingCustomerPayload.is_cfo_enabled = false;
49
50
  onboardingCustomerPayload.is_tax_enabled = false;
51
+ const isTreasury = selectedProducts.includes('zeni_treasury');
50
52
  if (isBookkeeping) {
51
53
  onboardingCustomerPayload.is_book_keeping_enabled = true;
52
54
  onboardingCustomerPayload.is_banking_enabled = true;
53
55
  onboardingCustomerPayload.is_spend_management_enabled = true;
54
56
  onboardingCustomerPayload.is_card_enabled = true;
57
+ onboardingCustomerPayload.is_treasury_enabled = true;
55
58
  }
56
59
  else if (isChecking && isCards) {
57
60
  // for checking and cards
@@ -59,6 +62,7 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
59
62
  onboardingCustomerPayload.is_banking_enabled = true;
60
63
  onboardingCustomerPayload.is_spend_management_enabled = false;
61
64
  onboardingCustomerPayload.is_card_enabled = true;
65
+ onboardingCustomerPayload.is_treasury_enabled = isTreasury;
62
66
  }
63
67
  else if (isCards) {
64
68
  // for cards only
@@ -66,6 +70,7 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
66
70
  onboardingCustomerPayload.is_banking_enabled = false;
67
71
  onboardingCustomerPayload.is_spend_management_enabled = false;
68
72
  onboardingCustomerPayload.is_card_enabled = true;
73
+ onboardingCustomerPayload.is_treasury_enabled = false;
69
74
  }
70
75
  else if (isChecking) {
71
76
  // for checking only
@@ -73,6 +78,7 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
73
78
  onboardingCustomerPayload.is_banking_enabled = true;
74
79
  onboardingCustomerPayload.is_spend_management_enabled = false;
75
80
  onboardingCustomerPayload.is_card_enabled = false;
81
+ onboardingCustomerPayload.is_treasury_enabled = isTreasury;
76
82
  }
77
83
  else {
78
84
  // Nothing selected: disable all core flags
@@ -80,6 +86,7 @@ const toOnboardingCustomerPayload = (onboardingCustomer, sendInvite, company, te
80
86
  onboardingCustomerPayload.is_banking_enabled = false;
81
87
  onboardingCustomerPayload.is_spend_management_enabled = false;
82
88
  onboardingCustomerPayload.is_card_enabled = false;
89
+ onboardingCustomerPayload.is_treasury_enabled = false;
83
90
  }
84
91
  }
85
92
  }
@@ -231,6 +231,11 @@ 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
+ },
234
239
  {
235
240
  code: 'zeni_cards',
236
241
  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) => "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;
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;
10
10
  export type ProductType = ReturnType<typeof toProductType>;
11
11
  export interface OnboardingCustomer {
12
12
  company: CompanyWithSchema;
@@ -17,6 +17,7 @@ const ALL_PRODUCTS = [
17
17
  'zeni_bill_pay',
18
18
  'zeni_reimbursements',
19
19
  'zeni_cards',
20
+ 'zeni_treasury',
20
21
  'other',
21
22
  'zeni_payroll',
22
23
  'zeni_cfo',
@@ -279,6 +279,7 @@ const getProductSettingsString = (productSettings) => {
279
279
  const productKeyMap = {
280
280
  isBookkeepingEnabled: 'bookkeeping',
281
281
  isBankingEnabled: 'banking',
282
+ isTreasuryEnabled: 'treasury',
282
283
  isSpendManagementEnabled: 'spend_management',
283
284
  isOtherProductsEnabled: 'other_products',
284
285
  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" | "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" | "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";
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): BankConnectionsSetupView;
6
+ export declare function getBankConnectionsSetupViewDetails(state: RootState, companyId: ID, isBillPayEnabled: boolean, isRemiEnabled: boolean, isAccountEnabled: boolean, isCardEnabled: boolean, isTreasuryEnabled: 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) {
43
- var _a, _b, _c, _d, _e, _f, _g, _h;
42
+ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled, isRemiEnabled, isAccountEnabled, isCardEnabled, isTreasuryEnabled) {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
44
44
  const { accountState, settingsViewState, paymentAccountState, depositAccountState, depositAccountListState, paymentAccountListState, } = state;
45
45
  const { bankConnection } = settingsViewState;
46
46
  const { paymentAccountIds } = paymentAccountListState;
@@ -81,6 +81,9 @@ 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
+ }
84
87
  if (isRemiEnabled) {
85
88
  primaryAccountsProductWise.push(Object.assign({ productType: 'reimbursement' }, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'reimbursement', 'reimbursement_setup')));
86
89
  }
@@ -89,6 +92,7 @@ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled,
89
92
  const remiPrimaryAccount = (_f = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyReimbursementInfo.primaryFundingAccount) === null || _f === void 0 ? void 0 : _f.accountId;
90
93
  const accountsPrimaryAccount = (_g = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyZeniAccountInfo.primaryFundingAccount) === null || _g === void 0 ? void 0 : _g.accountId; //companyZeniAccountInfo
91
94
  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
92
96
  const primaryAccounts = [];
93
97
  if (billPayPrimaryAccount != null && isBillPayEnabled) {
94
98
  primaryAccounts.push(billPayPrimaryAccount);
@@ -102,6 +106,9 @@ function getBankConnectionsSetupViewDetails(state, companyId, isBillPayEnabled,
102
106
  if (chargeCardsPrimaryAccount != null && isCardEnabled) {
103
107
  primaryAccounts.push(chargeCardsPrimaryAccount);
104
108
  }
109
+ if (treasuryPrimaryAccount != null && isTreasuryEnabled) {
110
+ primaryAccounts.push(treasuryPrimaryAccount);
111
+ }
105
112
  const nonPrimaryPaymentAccounts = paymentAccounts.filter((paymentAcc) => !primaryAccounts.includes(paymentAcc.paymentAccountId));
106
113
  return {
107
114
  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" | "charge_cards", cacheOverride?: any], {
7
+ export declare const fetchEntityHistory: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[entityId: string, entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "charge_cards", cacheOverride?: any], {
8
8
  entityId: string;
9
- entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
9
+ entityType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "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, } = companyLocalData;
115
+ const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, sourceOfFunds, } = companyLocalData;
116
116
  const company = {
117
117
  is_ready_for_verification: sendForVerification,
118
118
  file_ids: fileIds,
@@ -166,6 +166,9 @@ 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
+ }
169
172
  company['is_new_company_industry_verified'] = true;
170
173
  return company;
171
174
  };
@@ -253,6 +256,8 @@ const getBusinessVerificationForFeature = (setupViewType) => {
253
256
  return 'deposit_accounts';
254
257
  case 'bill_pay':
255
258
  return 'bill_pay';
259
+ case 'zeni_treasury':
260
+ return 'treasury_accounts';
256
261
  //whenever a new setup view type is added, add the corresponding feature here
257
262
  case 'billing':
258
263
  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, } = companyInfo;
55
+ const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, } = companyInfo;
56
56
  const { usersSelectedForVerification: usersSelected } = companyBillPayInfo;
57
57
  const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
58
58
  const { companyIndustry } = questionaire;
@@ -69,6 +69,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
69
69
  fileIds,
70
70
  syncToken,
71
71
  typeOfIncorporation: companyIncType,
72
+ sourceOfFunds,
72
73
  };
73
74
  let primaryContactDetails = undefined;
74
75
  if (primaryContact != null) {
@@ -112,6 +113,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
112
113
  titleAtCompany: userRole === null || userRole === void 0 ? void 0 : userRole.titleAtCompany,
113
114
  ownershipInCompany: userRole === null || userRole === void 0 ? void 0 : userRole.ownershipInCompany,
114
115
  userVerificationStatus: userRole === null || userRole === void 0 ? void 0 : userRole.userVerificationStatus,
116
+ treasuryUserVerificationStatus: userRole === null || userRole === void 0 ? void 0 : userRole.treasuryUserVerificationStatus,
115
117
  additionalDocumentTypesRequestedForVerification: (_b = userRole === null || userRole === void 0 ? void 0 : userRole.additionalDocumentTypesRequestedForVerification) !== null && _b !== void 0 ? _b : [],
116
118
  additionalSubmittedDocumentsForVerificationFileIds: (_c = userRole === null || userRole === void 0 ? void 0 : userRole.additionalSubmittedDocumentsForVerificationFileIds) !== null && _c !== void 0 ? _c : [],
117
119
  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 { SetupViewLocalData, SetupViewState } from './setupViewState';
5
+ import { CompanyDetailsLocalData, 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" | "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" | "zeni_treasury" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards"], {
8
8
  companyId: string;
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], {
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], {
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" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
13
+ setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "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">, sendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/sendOtp">, resendOtpSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/resendOtp">, sendOtpSuccessSpendManagementSetUp: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
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<{
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,8 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  var _a;
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
5
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
+ const uniq_1 = __importDefault(require("lodash/uniq"));
6
10
  const initialFetchStatus = {
7
11
  fetchState: 'Not-Started',
8
12
  error: undefined,
@@ -166,6 +170,15 @@ const setupView = (0, toolkit_1.createSlice)({
166
170
  action.payload.fileIds;
167
171
  }
168
172
  },
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
+ },
169
182
  saveCompnayOfficerPhoneInLocalStore(draft, action) {
170
183
  draft.companyOfficerUpdateStatus[action.payload.officerType].localData =
171
184
  Object.assign({}, draft.companyOfficerUpdateStatus[action.payload.officerType]
@@ -287,5 +300,5 @@ const setupView = (0, toolkit_1.createSlice)({
287
300
  },
288
301
  },
289
302
  });
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;
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;
291
304
  exports.default = setupView.reducer;
@@ -77,6 +77,7 @@ export interface CompanyDetails {
77
77
  incDate?: ZeniDate;
78
78
  syncToken?: string;
79
79
  typeOfIncorporation?: string;
80
+ sourceOfFunds?: string;
80
81
  }
81
82
  interface CompanyAndOfficerLocalData {
82
83
  companyOfficerLocalData: Record<CompanyOfficerType, CompanyOfficersDetails | undefined>;
@@ -23,7 +23,9 @@ 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' ? [] : depositAccounts, // only external acct can be made primary for accounts setup
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
27
29
  paymentAccounts, paymentAccountBalanceFetchStatus, false);
28
30
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
29
31
  const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
@@ -59,6 +61,7 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
59
61
  };
60
62
  }
61
63
  function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
64
+ var _a;
62
65
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
63
66
  if (companyView == null) {
64
67
  return undefined;
@@ -81,6 +84,10 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
81
84
  primaryFundingAccount =
82
85
  companyView.company.company.companyZeniAccountInfo.primaryFundingAccount;
83
86
  }
87
+ else if (setupViewType === 'zeni_treasury') {
88
+ primaryFundingAccount =
89
+ (_a = companyView.company.company.companyTreasuryInfo) === null || _a === void 0 ? void 0 : _a.primaryFundingAccount;
90
+ }
84
91
  return primaryFundingAccount;
85
92
  }
86
93
  function getBusinessVerificationDetails(state, companyId) {
@@ -110,7 +117,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
110
117
  if (companyDetails.localData != null) {
111
118
  const deleteFileStatusById = {};
112
119
  const updateFileStatusById = {};
113
- const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, } = companyDetails.localData;
120
+ const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, } = companyDetails.localData;
114
121
  fileIds.forEach((fileId) => {
115
122
  deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
116
123
  });
@@ -136,6 +143,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
136
143
  registeredAddressStatus: registeredCompanyAddress,
137
144
  primaryContactLocalData,
138
145
  typeOfIncorporation,
146
+ sourceOfFunds,
139
147
  };
140
148
  }
141
149
  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" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
7
+ declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "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,6 +23,7 @@ export interface CompanyDetailsLocalData {
23
23
  taxIdOrEIN?: string;
24
24
  syncToken?: string;
25
25
  typeOfIncorporation?: string;
26
+ sourceOfFunds?: string;
26
27
  }
27
28
  export interface PrimaryContactLocalData {
28
29
  userId: ID | undefined;
@@ -54,6 +55,7 @@ export interface CompanyOfficerLocalData {
54
55
  ownershipInCompany?: number;
55
56
  documentTypeSelectedForVerification?: AllowedDocumentType;
56
57
  userVerificationStatus?: AllowedValueWithCode;
58
+ treasuryUserVerificationStatus?: AllowedValueWithCode;
57
59
  }
58
60
  export interface SetupViewLocalData {
59
61
  companyDetails: CompanyDetailsLocalData;
@@ -62,6 +62,7 @@ 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;
65
66
  subscription_billing_address?: AddressUpdatableInfoPayload;
66
67
  }
67
68
  export interface BusinessVerificationDataPayload {
@@ -63,6 +63,12 @@ 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
+ }
66
72
  default: {
67
73
  return {
68
74
  deposit_accounts_primary_funding_account_id: accountId,