@zeniai/client-epic-state 4.19.67 → 4.19.68

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 (75) hide show
  1. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  2. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  3. package/lib/entity/account/accountState.d.ts +1 -1
  4. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  5. package/lib/entity/class/classReducer.d.ts +4 -4
  6. package/lib/entity/class/classState.d.ts +1 -1
  7. package/lib/entity/company/companyPayload.d.ts +0 -12
  8. package/lib/entity/company/companyPayload.js +0 -20
  9. package/lib/entity/company/companyStateTypes.d.ts +0 -12
  10. package/lib/entity/forecast/forecastState.d.ts +1 -1
  11. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  12. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  13. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  14. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  15. package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionPayload.js +2 -2
  16. package/lib/esm/entity/company/companyPayload.js +0 -20
  17. package/lib/esm/index.js +5 -5
  18. package/lib/esm/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -3
  19. package/lib/esm/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -12
  20. package/lib/esm/view/companyView/types/companyPassportViewPayload.js +12 -55
  21. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  22. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  23. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +4 -22
  24. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +1 -2
  25. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  26. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  27. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  28. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  29. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  30. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -66
  31. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -15
  32. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -14
  33. package/lib/esm/view/spendManagement/commonSetup/setupViewState.js +2 -2
  34. package/lib/index.d.ts +5 -5
  35. package/lib/index.js +13 -13
  36. package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
  37. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  38. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  39. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  40. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  41. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  42. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  43. package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -3
  44. package/lib/view/companyView/types/companyPassport/companyDetailsLocalData.d.ts +0 -12
  45. package/lib/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -12
  46. package/lib/view/companyView/types/companyPassportViewPayload.d.ts +1 -1
  47. package/lib/view/companyView/types/companyPassportViewPayload.js +12 -55
  48. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  49. package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  50. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +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/customerView/onboardingCustomerViewSelector.d.ts +0 -1
  54. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -22
  55. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  56. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  57. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +1 -2
  58. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  59. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  60. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  61. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  62. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.d.ts +1 -1
  63. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  64. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -66
  65. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -15
  66. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +4 -4
  67. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -13
  68. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -14
  69. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -14
  70. package/lib/view/spendManagement/commonSetup/setupViewState.js +1 -1
  71. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -13
  72. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
  73. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  74. package/lib/view/topEx/topExSelector.d.ts +1 -1
  75. package/package.json +1 -1
@@ -27,23 +27,12 @@ export interface CompanyInfo {
27
27
  bookCloseDate?: ZeniDate;
28
28
  companyDescription?: string;
29
29
  companyLegalName?: string;
30
- companySourceOfFunds?: string;
31
- companySourceOfFundsDescription?: string;
32
30
  companyUrl?: ZeniUrl;
33
- countriesOfOperations?: string[];
34
31
  meetingUrl?: ZeniUrl;
35
32
  phone?: string;
36
- purposeOfAccount?: string;
37
- purposeOfAccountDescription?: string;
38
- regulatedStatus?: string;
39
- regulatedStatusDescription?: string;
40
33
  sourceOfFunds?: string;
41
34
  syncToken?: string;
42
35
  tenantId?: ID;
43
- transactionVolume?: string;
44
- transactionVolumeDescription?: string;
45
- usNexus?: string;
46
- usNexusTypes?: string[];
47
36
  }
48
37
  export interface CompanyLocaleInfo {
49
38
  companyIncCountryCode: string;
@@ -61,7 +50,6 @@ export interface CompanyIncInfo {
61
50
  companyIncState?: string;
62
51
  companyIncStateCode?: string;
63
52
  companyIncType?: string;
64
- companySubIndustry?: string;
65
53
  }
66
54
  export interface CompanyTaxInfo {
67
55
  taxesFiledYears: number[];
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "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" | "other_connection" | "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" | "zeni_credit_promo_card" | "treasury_promo_card";
6
+ export declare const toForecastType: (v: string) => "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" | "zeni_credit_promo_card" | "treasury_promo_card";
7
7
  export interface Forecast {
8
8
  createTime: ZeniDate;
9
9
  forecastPeriod: TimeframeTick;
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
10
10
  sectionId: ID;
11
11
  balancesByPeriod?: COABalanceGroupedByPeriod;
12
12
  }
13
- export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-other_connection+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}`;
14
14
  export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
@@ -8,5 +8,5 @@ export interface SectionClassesView {
8
8
  sectionId: ID;
9
9
  balancesByPeriod?: COABalanceGroupedByPeriod;
10
10
  }
11
- export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card`;
12
12
  export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
4
4
  import { ClassMetadataPayload } from '../class/classPayload';
5
5
  import { SectionClassesViewStateV2 } from './sectionClassesViewState';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "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" | "other_connection" | "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" | "zeni_credit_promo_card" | "treasury_promo_card", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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" | "zeni_credit_promo_card" | "treasury_promo_card", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- 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" | "other_connection" | "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" | "zeni_credit_promo_card" | "treasury_promo_card";
9
+ 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" | "zeni_credit_promo_card" | "treasury_promo_card";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];
@@ -39,7 +39,6 @@ export const ALL_REPORT_IDS = [
39
39
  'zeni_accounts_promo_card',
40
40
  'zeni_treasury',
41
41
  'charge_cards',
42
- 'other_connection',
43
42
  'reimbursement_promo_card',
44
43
  'onboarding',
45
44
  'operating_expenses_by_vendor',
@@ -1,8 +1,8 @@
1
1
  import { toURL } from '../../commonPayloadTypes/urlPayload';
2
2
  import { toAmount } from '../../commonStateTypes/amount';
3
- import { dateLocal, dateNow } from '../../zeniDayJS';
3
+ import { dateNow, dateLocal } from '../../zeniDayJS';
4
4
  import { toZeniUrl } from '../../zeniUrl';
5
- import { toContentType } from '../transaction/stateTypes/attachment';
5
+ import { toContentType, } from '../transaction/stateTypes/attachment';
6
6
  import { toTransactionCategory } from '../transaction/stateTypes/transactionType';
7
7
  import { toCardTransactionStatusCode, toCardTransactionTypeCode, } from './chargeCardTransaction';
8
8
  const EXTENSION_TO_CONTENT_TYPE = {
@@ -33,25 +33,6 @@ const toCompanyInfo = (payload, companyIdTenantIdMapping, companyInStore) => {
33
33
  phone: payload.phone ?? undefined,
34
34
  firstMonthOfFY: getMonthFromMonthName(payload.first_month_of_fiscal_year) ?? 1,
35
35
  sourceOfFunds: payload.source_of_funds ?? undefined,
36
- companySourceOfFunds: payload.company_source_of_funds ?? undefined,
37
- companySourceOfFundsDescription: payload.company_source_of_funds_desc ?? undefined,
38
- countriesOfOperations: payload.company_countries_of_operations ?? undefined,
39
- transactionVolume: payload.company_transaction_vol_expectations ?? undefined,
40
- transactionVolumeDescription: payload.company_transaction_vol_expectations_desc ?? undefined,
41
- purposeOfAccount: payload.company_purpose_of_account ?? undefined,
42
- purposeOfAccountDescription: payload.company_purpose_of_account_desc ?? undefined,
43
- regulatedStatus: payload.company_regulated_states == null
44
- ? undefined
45
- : payload.company_regulated_states
46
- ? 'yes'
47
- : 'no',
48
- regulatedStatusDescription: payload.company_regulated_states_desc ?? undefined,
49
- usNexus: payload.company_us_nexus == null
50
- ? undefined
51
- : payload.company_us_nexus
52
- ? 'yes'
53
- : 'no',
54
- usNexusTypes: payload.company_us_nexus_desc ?? undefined,
55
36
  };
56
37
  };
57
38
  const toCompanyLocaleInfo = (payload) => ({
@@ -72,7 +53,6 @@ const toCompanyIncInfo = (payload) => ({
72
53
  companyIncStateCode: payload.company_inc_state_code ?? undefined,
73
54
  companyIncCountryCode: payload.company_inc_country_code ?? undefined,
74
55
  fileIds: payload.file_ids ?? [],
75
- companySubIndustry: payload.company_industry_sub_type ?? undefined,
76
56
  });
77
57
  const toCompanyTaxInfo = (payload) => ({
78
58
  taxesFiledDate: payload.taxes_filed_date != null
package/lib/esm/index.js CHANGED
@@ -284,13 +284,13 @@ import { getChargeCardCVVActivateView, getChargeCardControlDetailView, getCharge
284
284
  import { toChargeCardSortKeyType, } from './view/spendManagement/chargeCards/chargeCardList/chargeCardList';
285
285
  import { closeChargeCards, fetchChargeCardList, fetchChargeCardListPage, fetchCreditAccount, fetchCreditAccountRepayment, fetchDebitCardSummary, lockChargeCards, resendCardInvite, revokeCardInvite, revokeChargeCardsInvite, unlockChargeCards, updateBulkActionCardIds, updateSearchText as updateChargeCardListSearchText, updateChargeCardListUIState, updateChargeCardsSpendLimit, updateRowActionCardId, } from './view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer';
286
286
  import { anyCardOnHold, getChargeCardBulkActionView, getChargeCardListView, getChargeCardRecurringExpensesByCardIds, getChargeCardRowActionView, getCreditAccountDetails, getDebitCardList, getDebitCardSummary, getDepositAccountListWithDebitCardIssued, getMyPendingActivationChargeCardListView, getMyRequestOnHoldChargeCardListWithShippingAddress, } from './view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector';
287
- import { PAYMENT_HISTORY_FILTER_CATEGORIES, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
288
- import { getChargeCardPaymentHistoryDownloadReport, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
289
- import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
290
- import { fetchChargeCardPaymentHistory, fetchChargeCardPaymentPage, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
291
- import { getChargeCardPaymentHistoryView, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
292
287
  import { clearChargeCardRepaymentDetail, fetchChargeCardRepaymentDetail, initiateChargeCardRepayment, updateChargeCardRepaymentLocalStore, } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer';
293
288
  import { getChargeCardRepaymentDetail, } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector';
289
+ import { getChargeCardPaymentHistoryDownloadReport, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
290
+ import { fetchChargeCardPaymentPage, fetchChargeCardPaymentHistory, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
291
+ import { getChargeCardPaymentHistoryView, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
292
+ import { PAYMENT_HISTORY_FILTER_CATEGORIES, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
293
+ import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
294
294
  import { acceptChargeCardTerms, enableChargeCardAutoPay, expressInterestInChargeCard, fetchChargeCardSetupView, } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
295
295
  import { getChargeCardBusinessVerificationDetails, getChargeCardSetupViewDetails, } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector';
296
296
  import { fetchChargeCardStatementList } from './view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementListReducer';
@@ -12,9 +12,6 @@ export const updateCompanyDetailsEpic = (actions$, state$, zeniAPI) => actions$.
12
12
  ...toCompanyIncInfoUpdatableInfoPayload(companyDetails.incInfo),
13
13
  ...toCompanyTaxInfoUpdatableInfoPayload(companyDetails.taxDetails),
14
14
  ...toCompanyFileInfoPayload(companyDetails.incInfo, companyDetails.taxDetails),
15
- ...(companyDetails.companyInfo.companySubIndustry != null && {
16
- company_industry_sub_type: companyDetails.companyInfo.companySubIndustry,
17
- }),
18
15
  };
19
16
  const { newAddressState } = state$.value.addressViewState;
20
17
  const addressToCreate = newAddressState?.company_address?.addressToCreate;
@@ -10,21 +10,9 @@ export function toCompanyPassportLocalData(companyView, companyFiles) {
10
10
  website: companyInfo.companyUrl,
11
11
  meetingLink: companyInfo.meetingUrl,
12
12
  industry: companyQuestionaire.companyIndustry,
13
- companySubIndustry: incInfo.companySubIndustry,
14
13
  businessModel: companyQuestionaire.companyBusinessModel ?? '',
15
14
  phone: companyInfo.phone ?? '',
16
15
  firstMonthOfFY: companyInfo.firstMonthOfFY,
17
- companySourceOfFunds: companyInfo.companySourceOfFunds,
18
- companySourceOfFundsDescription: companyInfo.companySourceOfFundsDescription,
19
- countriesOfOperations: companyInfo.countriesOfOperations,
20
- transactionVolume: companyInfo.transactionVolume,
21
- transactionVolumeDescription: companyInfo.transactionVolumeDescription,
22
- purposeOfAccount: companyInfo.purposeOfAccount,
23
- purposeOfAccountDescription: companyInfo.purposeOfAccountDescription,
24
- regulatedStatus: companyInfo.regulatedStatus,
25
- regulatedStatusDescription: companyInfo.regulatedStatusDescription,
26
- usNexus: companyInfo.usNexus,
27
- usNexusTypes: companyInfo.usNexusTypes,
28
16
  },
29
17
  incInfo: {
30
18
  typeOfInc: incInfo.companyIncType ?? '',
@@ -1,59 +1,16 @@
1
- /** Maps US nexus display label to API key (for company_us_nexus_desc) */
2
- const US_NEXUS_LABEL_TO_KEY = {
3
- Employees: 'employees',
4
- Customers: 'customers',
5
- 'Physical office or facility': 'physical_office',
6
- 'Banking relationships': 'banking_relationships',
1
+ export const toCompanyUpdatableInfoPayload = (info) => {
2
+ const payload = {
3
+ name: info.companyName,
4
+ company_legal_name: info.legalName,
5
+ phone: info.phone,
6
+ company_industry: info.industry,
7
+ company_business_model: info.businessModel,
8
+ company_url: info.website != null ? info.website.toString() : null,
9
+ meeting_url: info.meetingLink != null ? info.meetingLink.toString() : null,
10
+ is_new_company_industry_verified: true,
11
+ };
12
+ return payload;
7
13
  };
8
- function toUsNexusTypeKey(value) {
9
- const key = US_NEXUS_LABEL_TO_KEY[value];
10
- return key ?? value;
11
- }
12
- export const toCompanyUpdatableInfoPayload = (info) => ({
13
- name: info.companyName,
14
- company_legal_name: info.legalName,
15
- phone: info.phone,
16
- company_industry: info.industry,
17
- company_business_model: info.businessModel,
18
- company_url: info.website != null ? info.website.toString() : null,
19
- meeting_url: info.meetingLink != null ? info.meetingLink.toString() : null,
20
- is_new_company_industry_verified: true,
21
- ...(info.companySourceOfFunds != null && {
22
- company_source_of_funds: info.companySourceOfFunds,
23
- }),
24
- ...(info.companySourceOfFundsDescription != null && {
25
- company_source_of_funds_desc: info.companySourceOfFundsDescription,
26
- }),
27
- ...(info.countriesOfOperations != null &&
28
- info.countriesOfOperations.length > 0 && {
29
- company_countries_of_operations: info.countriesOfOperations,
30
- }),
31
- ...(info.transactionVolume != null && {
32
- company_transaction_vol_expectations: info.transactionVolume,
33
- }),
34
- ...(info.transactionVolumeDescription != null && {
35
- company_transaction_vol_expectations_desc: info.transactionVolumeDescription,
36
- }),
37
- ...(info.purposeOfAccount != null && {
38
- company_purpose_of_account: info.purposeOfAccount,
39
- }),
40
- ...(info.purposeOfAccountDescription != null && {
41
- company_purpose_of_account_desc: info.purposeOfAccountDescription,
42
- }),
43
- ...(info.regulatedStatus != null && {
44
- company_regulated_states: info.regulatedStatus === 'yes',
45
- }),
46
- ...(info.regulatedStatusDescription != null && {
47
- company_regulated_states_desc: info.regulatedStatusDescription,
48
- }),
49
- ...(info.usNexus != null && {
50
- company_us_nexus: info.usNexus === 'yes',
51
- }),
52
- ...(info.usNexusTypes != null &&
53
- info.usNexusTypes.length > 0 && {
54
- company_us_nexus_desc: info.usNexusTypes.map(toUsNexusTypeKey),
55
- }),
56
- });
57
14
  export const toCompanyIncInfoUpdatableInfoPayload = (info) => {
58
15
  const payload = {
59
16
  company_inc_type: info.typeOfInc,
@@ -4,14 +4,15 @@ import { convertToPeriod, toAbsoluteDay, } from '../../../../commonStateTypes/ti
4
4
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
5
5
  import { backgroundRefetchReviewTab, syncTransactionCategorizationFromDetailSave, } from '../../reducers/transactionsViewReducer';
6
6
  export const triggerReviewTabRefetchEpic = (actions$, state$) => actions$.pipe(filter(syncTransactionCategorizationFromDetailSave.match), mergeMap((action) => {
7
- const { pendingReviewLineIds, transactionId, isUncategorizedExpenseCategoryEnabled, } = action.payload;
7
+ const { pendingReviewLineIds, transactionId, isUncategorizedExpenseCategoryEnabled } = action.payload;
8
8
  if (pendingReviewLineIds.length === 0) {
9
9
  return EMPTY;
10
10
  }
11
11
  const state = state$.value;
12
12
  // Only trigger when the transaction was auto-only (not in review tab after reducer ran)
13
13
  const reviewLocalData = state.expenseAutomationTransactionsViewState
14
- .transactionCategorizationView.review.transactionReviewLocalDataById[transactionId.id];
14
+ .transactionCategorizationView.review
15
+ .transactionReviewLocalDataById[transactionId.id];
15
16
  if (reviewLocalData != null) {
16
17
  return EMPTY;
17
18
  }
@@ -41,8 +41,8 @@ export const filterAutoTabLineItems = (tabView, transactionId, updatedTransactio
41
41
  if (localData == null) {
42
42
  return;
43
43
  }
44
- const currentAutoLineIds = localData.transactionReviewLocalData.tabSpecificLineItems.autoCategorized ??
45
- [];
44
+ const currentAutoLineIds = localData.transactionReviewLocalData.tabSpecificLineItems
45
+ .autoCategorized ?? [];
46
46
  const linesById = new Map(updatedTransaction.lines?.map((l) => [l.id, l]));
47
47
  const retainedLineIds = currentAutoLineIds.filter((lineId) => {
48
48
  const line = linesById.get(lineId);
@@ -218,17 +218,17 @@ export const onboardingStepsData = (isValidConnection, productSettings, accounti
218
218
  requiredStepsData: requiredStepsData.map((step) => toOnboardingStepType(step)),
219
219
  };
220
220
  };
221
- export function isCompanyDetailsSavePending(fileState, company, primaryContact, companyDetailsLocalData) {
221
+ function isCompanyDetailsSavePending(fileState, company, primaryContact, companyDetailsLocalData) {
222
222
  if (company == null || companyDetailsLocalData == null) {
223
223
  return false;
224
224
  }
225
225
  const { companyInfo, incInfo, taxInfo, questionaire } = company.company.company;
226
- const { companyDescription, companyLegalName, companyUrl, phone, companySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, } = companyInfo;
227
- const { fileIds, companyIncDate: incDate, companyIncState, companyIncType, companySubIndustry, } = incInfo;
226
+ const { companyDescription, companyLegalName, companyUrl, phone } = companyInfo;
227
+ const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
228
228
  const { companyIndustry } = questionaire;
229
229
  const { taxId } = taxInfo;
230
230
  const companyFileIds = getFilesByFileIds(fileState, fileIds).map((file) => file.fileId);
231
- const { companyDescription: companyDescriptionLocalData, companyIndustry: companyIndustryLocalData, companyLegalName: companyLegalNameLocalData, taxIdOrEIN: taxIdLocalData, incDate: incDateLocalData, phone: companyPhoneLocalData, website: companyUrlLocalData, companyFiles: companyFilesLocalData, stateOfIncorporation: stateOfIncorporationLocalData, typeOfIncorporation: companyIncTypeLocalData, companySourceOfFunds: companySourceOfFundsLocalData, companySourceOfFundsDescription: companySourceOfFundsDescriptionLocalData, countriesOfOperations: countriesOfOperationsLocalData, companySubIndustry: companySubIndustryLocalData, transactionVolume: transactionVolumeLocalData, transactionVolumeDescription: transactionVolumeDescriptionLocalData, purposeOfAccount: purposeOfAccountLocalData, purposeOfAccountDescription: purposeOfAccountDescriptionLocalData, regulatedStatus: regulatedStatusLocalData, regulatedStatusDescription: regulatedStatusDescriptionLocalData, usNexus: usNexusLocalData, usNexusTypes: usNexusTypesLocalData, primaryContactLocalData, } = companyDetailsLocalData;
231
+ const { companyDescription: companyDescriptionLocalData, companyIndustry: companyIndustryLocalData, companyLegalName: companyLegalNameLocalData, taxIdOrEIN: taxIdLocalData, incDate: incDateLocalData, phone: companyPhoneLocalData, website: companyUrlLocalData, companyFiles: companyFilesLocalData, typeOfIncorporation: companyIncTypeLocalData, primaryContactLocalData, } = companyDetailsLocalData;
232
232
  const fileIdsLocalData = companyFilesLocalData.map((file) => file.fileId);
233
233
  if (primaryContact != null) {
234
234
  const { firstName, lastName, email } = primaryContact;
@@ -238,10 +238,6 @@ export function isCompanyDetailsSavePending(fileState, company, primaryContact,
238
238
  return true;
239
239
  }
240
240
  }
241
- const countriesOfOperationsMatch = JSON.stringify(countriesOfOperations ?? []) ===
242
- JSON.stringify(countriesOfOperationsLocalData ?? []);
243
- const usNexusTypesMatch = JSON.stringify(usNexusTypes ?? []) ===
244
- JSON.stringify(usNexusTypesLocalData ?? []);
245
241
  return (companyDescription != companyDescriptionLocalData ||
246
242
  companyIndustry != companyIndustryLocalData ||
247
243
  companyLegalName != companyLegalNameLocalData ||
@@ -249,21 +245,7 @@ export function isCompanyDetailsSavePending(fileState, company, primaryContact,
249
245
  incDate?.toString() != incDateLocalData?.toString() ||
250
246
  phone != companyPhoneLocalData ||
251
247
  companyUrl?.toString() != companyUrlLocalData?.toString() ||
252
- companyIncState != stateOfIncorporationLocalData ||
253
- companySourceOfFunds != companySourceOfFundsLocalData ||
254
- companySourceOfFundsDescription !=
255
- companySourceOfFundsDescriptionLocalData ||
256
- !countriesOfOperationsMatch ||
257
248
  companyIncType != companyIncTypeLocalData ||
258
- transactionVolume != transactionVolumeLocalData ||
259
- transactionVolumeDescription != transactionVolumeDescriptionLocalData ||
260
- purposeOfAccount != purposeOfAccountLocalData ||
261
- purposeOfAccountDescription != purposeOfAccountDescriptionLocalData ||
262
- regulatedStatus != regulatedStatusLocalData ||
263
- regulatedStatusDescription != regulatedStatusDescriptionLocalData ||
264
- usNexus != usNexusLocalData ||
265
- !usNexusTypesMatch ||
266
- companySubIndustry != companySubIndustryLocalData ||
267
249
  !(fileIdsLocalData.length === companyFileIds.length &&
268
250
  companyFileIds.every((fileId) => fileIdsLocalData.includes(fileId))));
269
251
  }
@@ -155,8 +155,7 @@ const billPaySetupApproverView = createSlice({
155
155
  reducer(draft, action) {
156
156
  const { approvalRuleIds } = action.payload;
157
157
  if (draft.billPaySetupApproverViewUpdateData != null) {
158
- if (draft.billPaySetupApproverViewUpdateData.type ===
159
- 'approval_update' &&
158
+ if (draft.billPaySetupApproverViewUpdateData.type === 'approval_update' &&
160
159
  draft.billPaySetupApproverViewUpdateData.data
161
160
  ?.isApplicableOnPendingApprovalEntity === true) {
162
161
  draft.listeningToPusherEvent = true;
@@ -2,8 +2,8 @@ import { getChargeCardRepaymentByIds } from '../../../../entity/chargeCardRepaym
2
2
  import { getUsersByUserIds } from '../../../../entity/user/userSelector';
3
3
  import { applyPaymentHistoryFiltersSearchAndSort } from './chargeCardPaymentHistoryHelpers';
4
4
  export const getChargeCardPaymentHistoryDownloadReport = (state) => {
5
- const { chargeCardPaymentHistoryState, chargeCardRepaymentState, userState } = state;
6
- const { filters, repaymentHistoryIds, searchText, uiState, fetchState, error } = chargeCardPaymentHistoryState;
5
+ const { chargeCardPaymentHistoryState, chargeCardRepaymentState, userState, } = state;
6
+ const { filters, repaymentHistoryIds, searchText, uiState, fetchState, error, } = chargeCardPaymentHistoryState;
7
7
  const repaymentHistory = getChargeCardRepaymentByIds(chargeCardRepaymentState, repaymentHistoryIds);
8
8
  const repaymentHistoryUserIds = Array.from(new Set(repaymentHistory.map((r) => r.paidById)));
9
9
  const repaymentHistoryUsers = getUsersByUserIds(userState, repaymentHistoryUserIds);
@@ -1,9 +1,9 @@
1
1
  import { reduceAllFetchState } from '../../../../commonStateTypes/reduceFetchState';
2
2
  import { getChargeCardRepaymentByIds } from '../../../../entity/chargeCardRepayment/chargeCardRepaymentSelector';
3
- import { getDepositAccountByDepositAccountId } from '../../../../entity/depositAccount/depositAccountSelector';
4
- import { getPaymentAccountByPaymentAccountId } from '../../../../entity/paymentAccount/paymentAccountSelector';
5
3
  import { getUsersByUserIds } from '../../../../entity/user/userSelector';
6
4
  import { getAllFundingAccounts, mapDepositAccToFundingAccount, mapPaymentAccToFundingAccount, } from '../../commonSetup/setupViewSelector';
5
+ import { getDepositAccountByDepositAccountId } from '../../../../entity/depositAccount/depositAccountSelector';
6
+ import { getPaymentAccountByPaymentAccountId } from '../../../../entity/paymentAccount/paymentAccountSelector';
7
7
  import { getAllDepositAccounts } from '../../zeniAccounts/depositAccountList/depositAccountListSelector';
8
8
  import { getAllPaymentAccounts } from '../../zeniAccounts/paymentAccountList/paymentAccountListSelector';
9
9
  import { applyPaymentHistoryFiltersSearchAndSort } from './chargeCardPaymentHistoryHelpers';
@@ -15,10 +15,7 @@ export const getChargeCardRepaymentDetail = (state) => {
15
15
  else {
16
16
  const depositFundingFromLimit = Object.values(depositAccountState.depositAccountLimitForChargeCardByID ?? {}).map(mapDepositAccountWithLimitToFundingAccount);
17
17
  const paymentFundingAccounts = getAllFundingAccounts([], paymentAccountsView.paymentAccounts, paymentAccountListState.paymentAccountBalanceFetchStatus);
18
- transferFromAccounts = [
19
- ...depositFundingFromLimit,
20
- ...paymentFundingAccounts,
21
- ];
18
+ transferFromAccounts = [...depositFundingFromLimit, ...paymentFundingAccounts];
22
19
  }
23
20
  }
24
21
  const reducedFetchState = reduceAnyCompletedFetchState([
@@ -7,8 +7,7 @@ export const fetchChargeCardRepaymentDetailEpic = (actions$, state$) => actions$
7
7
  const fetchChargeCardRepaymentDetailActions = [];
8
8
  const state = state$.value;
9
9
  const depositAccounts = state.depositAccountListState;
10
- const willFetchDeposit = depositAccounts.fetchState !== 'In-Progress' &&
11
- depositAccounts.fetchState !== 'Completed';
10
+ const willFetchDeposit = depositAccounts.fetchState !== 'In-Progress' && depositAccounts.fetchState !== 'Completed';
12
11
  if (willFetchDeposit) {
13
12
  fetchChargeCardRepaymentDetailActions.push(fetchDepositAccountList());
14
13
  }
@@ -9,8 +9,8 @@ import { getAllFundingAccounts } from '../../commonSetup/setupViewSelector';
9
9
  import { accountTypeSubConfigCodeToAccType } from '../../helpers';
10
10
  import { getAllDepositAccounts } from '../../zeniAccounts/depositAccountList/depositAccountListSelector';
11
11
  import { getAllPaymentAccounts } from '../../zeniAccounts/paymentAccountList/paymentAccountListSelector';
12
- import { updateCreditAccountRepaymentAmountAndDate } from '../chargeCardList/chargeCardListReducer';
13
12
  import { addRepaymentToChargeCardPaymentHistory } from '../chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
13
+ import { updateCreditAccountRepaymentAmountAndDate } from '../chargeCardList/chargeCardListReducer';
14
14
  import { initiateChargeCardRepayment, updateChargeCardRepaymentStatus, } from './chargeCardRepaymentDetailReducer';
15
15
  export const initiateChargeCardRepaymentEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(initiateChargeCardRepayment.match), switchMap((action) => {
16
16
  const state = state$.value;
@@ -115,28 +115,8 @@ export const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI)
115
115
  return from([]);
116
116
  }
117
117
  }));
118
- /** US Nexus API keys. Form may submit these or display labels; we send keys to API. */
119
- const US_NEXUS_KEYS = new Set([
120
- 'employees',
121
- 'customers',
122
- 'physical_office',
123
- 'banking_relationships',
124
- ]);
125
- /** Maps display label → API key for US nexus types (English labels from strings). */
126
- const US_NEXUS_LABEL_TO_KEY = {
127
- Employees: 'employees',
128
- Customers: 'customers',
129
- 'Physical office or facility': 'physical_office',
130
- 'Banking relationships': 'banking_relationships',
131
- };
132
- function toUsNexusTypeKey(value) {
133
- if (US_NEXUS_KEYS.has(value)) {
134
- return value;
135
- }
136
- return US_NEXUS_LABEL_TO_KEY[value] ?? value;
137
- }
138
118
  export const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData, registeredAddressData, setupViewType) => {
139
- const { companyDescription, companyLegalName, companyIndustry, companySubIndustry, countriesOfOperations, companySourceOfFunds, companySourceOfFundsDescription, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, stateOfIncorporation, sourceOfFunds, } = companyLocalData;
119
+ const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, sourceOfFunds, } = companyLocalData;
140
120
  const company = {
141
121
  is_ready_for_verification: sendForVerification,
142
122
  file_ids: fileIds,
@@ -187,52 +167,9 @@ export const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendF
187
167
  if (typeOfIncorporation != null) {
188
168
  company['company_inc_type'] = typeOfIncorporation;
189
169
  }
190
- if (stateOfIncorporation != null) {
191
- company['company_inc_state'] = stateOfIncorporation;
192
- }
193
170
  if (companyIndustry != null) {
194
171
  company['company_industry'] = companyIndustry;
195
172
  }
196
- Object.assign(company, {
197
- ...(companySubIndustry != null && {
198
- company_industry_sub_type: companySubIndustry,
199
- }),
200
- ...(countriesOfOperations != null &&
201
- countriesOfOperations.length > 0 && {
202
- company_countries_of_operations: countriesOfOperations,
203
- }),
204
- ...(companySourceOfFunds != null && {
205
- company_source_of_funds: companySourceOfFunds,
206
- }),
207
- ...(companySourceOfFundsDescription != null && {
208
- company_source_of_funds_desc: companySourceOfFundsDescription,
209
- }),
210
- ...(transactionVolume != null && {
211
- company_transaction_vol_expectations: transactionVolume,
212
- }),
213
- ...(transactionVolumeDescription != null && {
214
- company_transaction_vol_expectations_desc: transactionVolumeDescription,
215
- }),
216
- ...(purposeOfAccount != null && {
217
- company_purpose_of_account: purposeOfAccount,
218
- }),
219
- ...(purposeOfAccountDescription != null && {
220
- company_purpose_of_account_desc: purposeOfAccountDescription,
221
- }),
222
- ...(regulatedStatus != null && {
223
- company_regulated_states: regulatedStatus === 'yes',
224
- }),
225
- ...(regulatedStatusDescription != null && {
226
- company_regulated_states_desc: regulatedStatusDescription,
227
- }),
228
- ...(usNexus != null && {
229
- company_us_nexus: usNexus === 'yes',
230
- }),
231
- ...(usNexusTypes != null &&
232
- usNexusTypes.length > 0 && {
233
- company_us_nexus_desc: usNexusTypes.map(toUsNexusTypeKey),
234
- }),
235
- });
236
173
  if (setupViewType === 'zeni_treasury' && sourceOfFunds != null) {
237
174
  company['source_of_funds'] = sourceOfFunds;
238
175
  }
@@ -321,8 +258,6 @@ const getBusinessVerificationForFeature = (setupViewType) => {
321
258
  return 'bill_pay';
322
259
  case 'zeni_treasury':
323
260
  return 'treasury_accounts';
324
- case 'other_connection':
325
- return 'other_connection';
326
261
  //whenever a new setup view type is added, add the corresponding feature here
327
262
  case 'billing':
328
263
  console.warn(`Invalid type for setup view`);
@@ -43,9 +43,9 @@ export const updateSetupViewLocalStoreDataEpic = (actions$, state$) => actions$.
43
43
  */
44
44
  export function toSetupViewLocalData(company, users, userRoles, primaryContact) {
45
45
  const { companyInfo, incInfo, taxInfo, questionaire, companyBillPayInfo } = company;
46
- const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, companySourceOfFunds: incCompanySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, usNexus, usNexusTypes, } = companyInfo;
46
+ const { companyId, companyDescription, companyLegalName, companyUrl, phone, syncToken, sourceOfFunds, } = companyInfo;
47
47
  const { usersSelectedForVerification: usersSelected } = companyBillPayInfo;
48
- const { fileIds, companyIncDate: incDate, companyIncType, companyIncState, companySubIndustry, } = incInfo;
48
+ const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
49
49
  const { companyIndustry } = questionaire;
50
50
  const { taxId } = taxInfo;
51
51
  const companyDetails = {
@@ -53,10 +53,6 @@ export function toSetupViewLocalData(company, users, userRoles, primaryContact)
53
53
  companyDescription,
54
54
  companyIndustry,
55
55
  companyLegalName,
56
- companySubIndustry,
57
- companySourceOfFunds: incCompanySourceOfFunds,
58
- companySourceOfFundsDescription,
59
- countriesOfOperations,
60
56
  taxIdOrEIN: taxId,
61
57
  incDate,
62
58
  phone,
@@ -65,15 +61,6 @@ export function toSetupViewLocalData(company, users, userRoles, primaryContact)
65
61
  syncToken,
66
62
  typeOfIncorporation: companyIncType,
67
63
  sourceOfFunds,
68
- stateOfIncorporation: companyIncState,
69
- transactionVolume,
70
- transactionVolumeDescription,
71
- purposeOfAccount,
72
- purposeOfAccountDescription,
73
- regulatedStatus,
74
- regulatedStatusDescription,
75
- usNexus,
76
- usNexusTypes,
77
64
  };
78
65
  let primaryContactDetails = undefined;
79
66
  if (primaryContact != null) {