@zeniai/client-epic-state 4.19.82-beta0ND → 4.19.83

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 (68) hide show
  1. package/lib/entity/account/accountPayload.d.ts +0 -2
  2. package/lib/entity/account/accountPayload.js +0 -2
  3. package/lib/entity/account/accountState.d.ts +0 -2
  4. package/lib/entity/company/companyPayload.d.ts +0 -13
  5. package/lib/entity/company/companyPayload.js +0 -21
  6. package/lib/entity/company/companyStateTypes.d.ts +0 -13
  7. package/lib/epic.d.ts +1 -3
  8. package/lib/epic.js +1 -3
  9. package/lib/esm/entity/account/accountPayload.js +0 -2
  10. package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionPayload.js +2 -2
  11. package/lib/esm/entity/company/companyPayload.js +0 -21
  12. package/lib/esm/epic.js +1 -3
  13. package/lib/esm/index.js +7 -9
  14. package/lib/esm/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
  15. package/lib/esm/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
  16. package/lib/esm/view/companyView/types/companyPassportViewPayload.js +12 -55
  17. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  18. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  19. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -20
  20. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
  21. package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  22. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +4 -22
  23. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  24. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  25. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  26. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  27. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  28. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
  29. package/lib/esm/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
  30. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
  31. package/lib/esm/view/spendManagement/commonSetup/types/businessVerification.js +1 -148
  32. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
  33. package/lib/index.d.ts +7 -10
  34. package/lib/index.js +44 -54
  35. package/lib/view/companyView/epic/companyPassport/updateCompanyDetailsEpic.js +0 -6
  36. package/lib/view/companyView/types/companyPassport/companyDetailsLocalData.d.ts +0 -13
  37. package/lib/view/companyView/types/companyPassport/companyPassportLocalData.js +0 -13
  38. package/lib/view/companyView/types/companyPassportViewPayload.d.ts +1 -1
  39. package/lib/view/companyView/types/companyPassportViewPayload.js +12 -55
  40. package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +3 -2
  41. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  42. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
  43. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -21
  44. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
  45. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
  46. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
  47. package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  48. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -1
  49. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -22
  50. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector.js +2 -2
  51. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector.js +2 -2
  52. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector.js +1 -4
  53. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/fetchChargeCardRepaymentDetailEpic.js +1 -2
  54. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.d.ts +1 -1
  55. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/initiateChargeCardRepaymentEpic.js +1 -1
  56. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -67
  57. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -16
  58. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -14
  59. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -15
  60. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -14
  61. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -43
  62. package/lib/view/spendManagement/commonSetup/types/businessVerification.js +0 -150
  63. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
  64. package/package.json +1 -1
  65. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -22
  66. package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
  67. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
  68. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -26
package/lib/esm/index.js CHANGED
@@ -165,7 +165,7 @@ import { clearExpenseAutomationFluxAnalysisView, fetchFluxAnalysisView, reviewFl
165
165
  import { clearJeScheduleLocalData as clearExpenseAutomationJEScheduleLocalData, clearExpenseAutomationJESchedulesView, fetchJeSchedulesPage as fetchExpenseAutomationJESchedulesPage, ignoreRecommendedJeSchedule as ignoreExpenseAutomationJESchedule, initializeAccountSettingsView as initializeJeAccountSettingsView, initializeJeScheduleLocalData, removeJeScheduleTransactionKey, retryJeSchedule as retryExpenseAutomationJESchedule, saveAccountSettings as saveJeAccountSettings, saveAccountSettingsLocalData as saveJeAccountSettingsLocalData, updateJeScheduleLocalDataById, updateJeScheduleTransactionKeys, } from './view/expenseAutomationView/reducers/jeSchedulesViewReducer';
166
166
  import { fetchMissingReceipts as fetchExpenseAutomationMissingReceipts, markMissingReceiptAsDone as markExpenseAutomationMissingReceiptAsDone, updateMissingReceiptUploadState as updateExpenseAutomationMissingReceiptUploadState, updateMissingReceiptsUIState as updateExpenseAutomationMissingReceiptsUIState, uploadMissingReceiptSuccess as uploadExpenseAutomationMissingReceiptSuccess, } from './view/expenseAutomationView/reducers/missingReceiptsViewReducer';
167
167
  import { deleteAccountStatement, fetchReconciliation as fetchReconciliationView, saveReconciliationDetail as saveExpenseAutomationReconciliationDetail, saveReconciliationReview as saveExpenseAutomationReconciliationReview, setConnectionInProgressForAccount as setConnectionInProgressForAccountReconciliation, setStatementParseInProgress, updateAccountReconciliationLocalData as updateExpenseAutomationAccountReconciliationLocalData, updateSelectedAccountId as updateExpenseAutomationAccountReconciliationSelectedAccountId, updateSelectedTab as updateExpenseAutomationAccountReconciliationSelectedTab, updateReconListScrollPosition as updateExpenseAutomationReconListScrollPosition, updateReviewTabSortState as updateExpenseAutomationReconReviewTabListSortState, updateReviewTabLocalData as updateExpenseAutomationReconReviewTabLocalData, updateReconcileTabListScrollState as updateExpenseAutomationReconcileTabListScrollState, updateReconcileTabListSortState as updateExpenseAutomationReconcileTabListSortState, updateReconcileTabLocalData as updateExpenseAutomationReconcileTabLocalData, updateSelectedDrawerAccountId as updateExpenseAutomationSelectedDrawerAccountId, updateStatementUploadChosen, uploadAccountStatement, } from './view/expenseAutomationView/reducers/reconciliationViewReducer';
168
- import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markTransactionAsNotMiscategorized, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, } from './view/expenseAutomationView/reducers/transactionsViewReducer';
168
+ import { backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, fetchTransactionCategorization, fetchTransactionCategorizationFailure, fetchTransactionCategorizationView, initializeTransactionCategorizationViewLocalData, markTransactionAsNotMiscategorized, saveTransactionCategorization, saveTransactionCategorizationLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, setEntityRecommendationForLineIdsForCategorization, syncTransactionCategorizationFromDetailSave, updateCurrentSelectedTransactionCategorizationTab, updateSelectedCheckboxTransactionIds, updateSelectedCustomerForTransaction, updateSelectedTransactionId, updateSelectedVendorForTransaction, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, updateTransactionCategorizationUIState, } from './view/expenseAutomationView/reducers/transactionsViewReducer';
169
169
  import { getExpenseAutomationFluxAnalysisView } from './view/expenseAutomationView/selectors/fluxAnalysisViewSelector';
170
170
  import { getExpenseAutomationReconciliationView, isAccountReconReport, } from './view/expenseAutomationView/selectors/reconciliationViewSelector';
171
171
  import { getExpenseAutomationTransactionView } from './view/expenseAutomationView/selectors/transactionCategorizationSelector';
@@ -285,13 +285,13 @@ import { getChargeCardCVVActivateView, getChargeCardControlDetailView, getCharge
285
285
  import { toChargeCardSortKeyType, } from './view/spendManagement/chargeCards/chargeCardList/chargeCardList';
286
286
  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';
287
287
  import { anyCardOnHold, getChargeCardBulkActionView, getChargeCardListView, getChargeCardRecurringExpensesByCardIds, getChargeCardRowActionView, getCreditAccountDetails, getDebitCardList, getDebitCardSummary, getDepositAccountListWithDebitCardIssued, getMyPendingActivationChargeCardListView, getMyRequestOnHoldChargeCardListWithShippingAddress, } from './view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector';
288
- import { PAYMENT_HISTORY_FILTER_CATEGORIES, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
289
- import { getChargeCardPaymentHistoryDownloadReport, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
290
- import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
291
- import { fetchChargeCardPaymentHistory, fetchChargeCardPaymentPage, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
292
- import { getChargeCardPaymentHistoryView, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
293
288
  import { clearChargeCardRepaymentDetail, fetchChargeCardRepaymentDetail, initiateChargeCardRepayment, updateChargeCardRepaymentLocalStore, } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer';
294
289
  import { getChargeCardRepaymentDetail, } from './view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailSelector';
290
+ import { getChargeCardPaymentHistoryDownloadReport, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryDownloadSelector';
291
+ import { fetchChargeCardPaymentPage, fetchChargeCardPaymentHistory, updatePaymentHistoryDownloadUIState, updatePaymentHistoryFilters, updatePaymentHistorySearchText, updatePaymentHistoryUIState, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer';
292
+ import { getChargeCardPaymentHistoryView, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistorySelector';
293
+ import { PAYMENT_HISTORY_FILTER_CATEGORIES, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory';
294
+ import { getPaymentHistorySourceAccountName, getPaymentStatusDisplayText, } from './view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryHelpers';
295
295
  import { acceptChargeCardTerms, enableChargeCardAutoPay, expressInterestInChargeCard, fetchChargeCardSetupView, } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
296
296
  import { getChargeCardBusinessVerificationDetails, getChargeCardSetupViewDetails, } from './view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector';
297
297
  import { fetchChargeCardStatementList } from './view/spendManagement/chargeCards/chargeCardStatementList/chargeCardStatementListReducer';
@@ -300,7 +300,6 @@ import { fetchDepositAccountListForCards, fetchIssueCardPage, issueChargeCards,
300
300
  import { getIssueChargeCardView, } from './view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector';
301
301
  import { clearSetupViewDataInLocalStore, enableSetup, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveIndustryAndIncDateInLocalStore, saveSetupViewDataInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, updateBusinessVerificationDetails, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, } from './view/spendManagement/commonSetup/setupViewReducer';
302
302
  import { getBusinessVerificationDetails, getCommonSetupViewDetails, } from './view/spendManagement/commonSetup/setupViewSelector';
303
- import { COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES, COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY, COMPANY_PURPOSE_OF_ACCOUNT_CODES, COMPANY_SOURCE_OF_FUNDS_CODES, COMPANY_TRANSACTION_VOLUME_CODES, COMPANY_US_NEXUS_TYPE_CODES, getCompanyOnboardingSubIndustryCodesForIndustry, } from './view/spendManagement/commonSetup/types/businessVerification';
304
303
  import { checkIfLowBalance, getActualPaymentDate, getBillListUniqueType, getBulkOperationSuffix, getRemiListUniqueType, getSelectedCompanyOfficer, getSpendManagementEffectiveListPeriod, isAwaitingMarkAsPaid, isBulkProcessing, isPaymentMethodOutsideZeni, isVerifiedPaymentAccountProviderStatusCode, isVerifiedStatusCode, showBillPayPromoPage, showReimbursementPromoPage, toAccountsPromoConfig, toSameDayAchDisablementConfig, } from './view/spendManagement/helpers';
305
304
  import { establishPlaidConnection, getPaymentAccounts, getPlaidLinkToken, updateMappedCashAccount, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, updatePrimaryFundingAccount, } from './view/spendManagement/plaidAccount/plaidAccountViewReducer';
306
305
  import { getPlaidAccountDetails } from './view/spendManagement/plaidAccount/plaidAccountViewSelector';
@@ -415,7 +414,7 @@ export { newBalancesFilterClassesView };
415
414
  export { toCOABalanceTypeStrict, toCOABalanceType as toCOABlanaceType, isCalculatedBalanceType, };
416
415
  export { stringToUnion, stringToUnionStrict };
417
416
  export { fetchMonthEndCloseChecks, fetchMonthClosePerformanceTrend, getMonthEndCloseChecksViewByTenantId, ALL_MONTH_END_CLOSE_CHECKS_FREQUENCY, };
418
- export { getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, fetchExpenseAutomationMissingReceipts, fetchFluxAnalysisView, clearExpenseAutomationFluxAnalysisView, updateOperatingExpensesIdsForReview as updateFluxOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview as updateFluxAnalysisSelectedSectionIdsForReview, reviewFluxAnalysisView, updateExpenseAutomationMissingReceiptUploadState, updateExpenseAutomationMissingReceiptsUIState, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, getExpenseAutomationFluxAnalysisView, updateCurrentSelectedView, updateCurrentSelectedPeriod, getExpenseAutomationTransactionView, updateFluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, getExpenseAutomationReconciliationView, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, getAccountReconByAccountIdAndSelectedPeriod, toReconciliationTabsType, isAccountReconReport, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, toReconciliationAccountSource, deleteAccountStatement, uploadAccountStatement, updateStatementUploadChosen, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, };
417
+ export { getExpenseAutomationView, toExpenseAutomationMissingReceiptsSortKey, toExpenseAutomationTransactionsTabKey, toExpenseAutomationViewType, uploadExpenseAutomationMissingReceiptSuccess, markExpenseAutomationMissingReceiptAsDone, fetchAllExpenseAutomationTabs, refreshExpenseAutomationCurrentTab, updateCurrentSelectedTransactionCategorizationTab, fetchExpenseAutomationMissingReceipts, fetchFluxAnalysisView, clearExpenseAutomationFluxAnalysisView, updateOperatingExpensesIdsForReview as updateFluxOperatingExpensesIdsForReview, updateSelectedSectionIdsForReview as updateFluxAnalysisSelectedSectionIdsForReview, reviewFluxAnalysisView, updateExpenseAutomationMissingReceiptUploadState, updateExpenseAutomationMissingReceiptsUIState, getExpenseAutomationFluxAnalysisView, updateCurrentSelectedView, updateCurrentSelectedPeriod, getExpenseAutomationTransactionView, updateFluxAnalysisViewUIState, updateFluxAnalysisViewPageMetaData, MAX_SELECTION_LIMIT, checkIfAllLineItemsAreCategoryClassFilled, getLineItemsByTransactionIdsFromLocalData, isAnyItemWithUncategorizedExpenseAccount, saveExpenseAutomationReconciliationDetail, updateExpenseAutomationReconcileTabListScrollState, updateExpenseAutomationReconReviewTabListSortState, updateExpenseAutomationReconcileTabListSortState, updateExpenseAutomationReconcileTabLocalData, updateExpenseAutomationAccountReconciliationSelectedTab, updateExpenseAutomationAccountReconciliationSelectedAccountId, getExpenseAutomationReconciliationView, fetchReconciliationView, uploadAccountStatementIntoDocumentAI, updateExpenseAutomationReconListScrollPosition, setConnectionInProgressForAccountReconciliation, getAccountReconByAccountIdAndSelectedPeriod, toReconciliationTabsType, isAccountReconReport, updateExpenseAutomationReconReviewTabLocalData, updateExpenseAutomationSelectedDrawerAccountId, saveExpenseAutomationReconciliationReview, updateExpenseAutomationAccountReconciliationLocalData, toReconciliationAccountSource, deleteAccountStatement, uploadAccountStatement, updateStatementUploadChosen, isReviewTransactionBankTransferType, isReviewTransactionBillPaymentType, isReviewTransactionCreditCardPaymentType, isReviewTransactionDepositType, isReviewTransactionExpenseType, isReviewTransactionCreditCardCreditType, setStatementParseInProgress, };
419
418
  export { fetchTransactionCategorization, fetchTransactionCategorizationView, updateTransactionCategorizationUIState, updateSelectedCheckboxTransactionIds, setEntityRecommendationForLineIdsForCategorization, initializeTransactionCategorizationViewLocalData, setAllItemsToCategoryClassInLocalDataForCategorization, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, clearExpenseAutomationTransactionsView, toTransactionsSortKey, };
420
419
  export { TOP_EX_TIME_PERIODS };
421
420
  export { toTimeframeTick, mapTimePeriodtoTimeframeTick, toTimePeriod, toAbsoluteDay, toMonthYearPeriodId, convertToPeriod, };
@@ -505,7 +504,6 @@ export { ALL_COCKPIT_TABS_FILE_TYPES, ALL_COCKPIT_TABS_IDS, toCockpitTabsIDStric
505
504
  export { isAllowedValueWithCode, isAllowedValueWithID, };
506
505
  export { fetchCompanyPassportView, getCompanyPassportView, getCompanyPassportLocalStoreData, isCompanyPassportDataToBeSaved, companyPassportSaveDataInLocalStore, saveIndustryAndIncDateInCompanyPassportLocalStore, deleteCompanyOfficerInLocalStore, companyPassportClearDataInLocalStore, updateCompanyPassportLocalStoreData, saveCompanyPassportDetails, clearCompanyView, };
507
506
  export { toCompanyPassportLocalData, };
508
- export { COMPANY_ONBOARDING_INDUSTRY_TYPE_CODES, COMPANY_ONBOARDING_SUB_INDUSTRY_CODES_BY_INDUSTRY, COMPANY_PURPOSE_OF_ACCOUNT_CODES, COMPANY_SOURCE_OF_FUNDS_CODES, COMPANY_TRANSACTION_VOLUME_CODES, COMPANY_US_NEXUS_TYPE_CODES, getCompanyOnboardingSubIndustryCodesForIndustry, };
509
507
  export { getUncategorizedAccounts, getNestedAccountListHierarchy, };
510
508
  export { getBankAccount };
511
509
  // TODO - remove alias and replace types across all repos
@@ -12,12 +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.companyIndustryType != null && {
16
- company_industry_type: companyDetails.companyInfo.companyIndustryType,
17
- }),
18
- ...(companyDetails.companyInfo.companySubIndustry != null && {
19
- company_industry_sub_type: companyDetails.companyInfo.companySubIndustry,
20
- }),
21
15
  };
22
16
  const { newAddressState } = state$.value.addressViewState;
23
17
  const addressToCreate = newAddressState?.company_address?.addressToCreate;
@@ -10,22 +10,9 @@ export function toCompanyPassportLocalData(companyView, companyFiles) {
10
10
  website: companyInfo.companyUrl,
11
11
  meetingLink: companyInfo.meetingUrl,
12
12
  industry: companyQuestionaire.companyIndustry,
13
- companyIndustryType: incInfo.companyIndustryType,
14
- companySubIndustry: incInfo.companySubIndustry,
15
13
  businessModel: companyQuestionaire.companyBusinessModel ?? '',
16
14
  phone: companyInfo.phone ?? '',
17
15
  firstMonthOfFY: companyInfo.firstMonthOfFY,
18
- companySourceOfFunds: companyInfo.companySourceOfFunds,
19
- companySourceOfFundsDescription: companyInfo.companySourceOfFundsDescription,
20
- countriesOfOperations: companyInfo.countriesOfOperations,
21
- transactionVolume: companyInfo.transactionVolume,
22
- transactionVolumeDescription: companyInfo.transactionVolumeDescription,
23
- purposeOfAccount: companyInfo.purposeOfAccount,
24
- purposeOfAccountDescription: companyInfo.purposeOfAccountDescription,
25
- regulatedStatus: companyInfo.regulatedStatus,
26
- regulatedStatusDescription: companyInfo.regulatedStatusDescription,
27
- usNexus: companyInfo.usNexus,
28
- usNexusTypes: companyInfo.usNexusTypes,
29
16
  },
30
17
  incInfo: {
31
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);
@@ -36,7 +36,6 @@ export const initialTransactionTabViewState = {
36
36
  transactionIdsBySelectedPeriod: {},
37
37
  selectedCheckBoxTransactionIds: [],
38
38
  transactionIdsWithUnsavedData: [],
39
- uploadReceiptStatusById: {},
40
39
  selectedTransactionId: undefined,
41
40
  selectedTransactionLineId: undefined,
42
41
  };
@@ -700,24 +699,6 @@ const expenseAutomationTransactionsView = createSlice({
700
699
  clearExpenseAutomationTransactionsView(draft) {
701
700
  Object.assign(draft, initialState);
702
701
  },
703
- updateTransactionCategorizationUploadReceiptState: {
704
- reducer(draft, action) {
705
- const { transactionId, fetchStatus, selectedTab } = action.payload;
706
- draft.transactionCategorizationView[selectedTab].uploadReceiptStatusById[transactionId] = fetchStatus;
707
- },
708
- prepare(selectedTab, transactionId, fetchStatus) {
709
- return { payload: { selectedTab, transactionId, fetchStatus } };
710
- },
711
- },
712
- uploadTransactionCategorizationReceiptSuccess: {
713
- reducer(draft, action) {
714
- const { transactionPayload, selectedTab } = action.payload;
715
- draft.transactionCategorizationView[selectedTab].uploadReceiptStatusById[transactionPayload.transaction_id] = { fetchState: 'Completed', error: undefined };
716
- },
717
- prepare(selectedTab, transactionPayload, updateType = 'merge') {
718
- return { payload: { selectedTab, transactionPayload, updateType } };
719
- },
720
- },
721
702
  syncTransactionCategorizationFromDetailSave: {
722
703
  prepare(transactionId, updatedTransaction, pendingReviewLineIds, uncategorizedIncomeExpense, isUncategorizedExpenseCategoryEnabled) {
723
704
  return {
@@ -789,5 +770,5 @@ const expenseAutomationTransactionsView = createSlice({
789
770
  },
790
771
  },
791
772
  });
792
- export const { fetchTransactionCategorization, updateTransactionCategorizationUIState, initializeTransactionCategorizationViewLocalData, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateStatusForTransactionNotMiscategorizedUpdateForCategorization, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, setAllItemsToCategoryClassInLocalDataForCategorization, updateTotalCountForTransactionCategorization, fetchTransactionCategorizationSuccess, resetOtherTabsFetchState, fetchTransactionCategorizationView, updateSelectedCheckboxTransactionIds, clearExpenseAutomationTransactionsViewPerTabView, clearExpenseAutomationTransactionsView, setEntityRecommendationForLineIdsForCategorization, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, } = expenseAutomationTransactionsView.actions;
773
+ export const { fetchTransactionCategorization, updateTransactionCategorizationUIState, initializeTransactionCategorizationViewLocalData, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateStatusForTransactionNotMiscategorizedUpdateForCategorization, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, setAllItemsToCategoryClassInLocalDataForCategorization, updateTotalCountForTransactionCategorization, fetchTransactionCategorizationSuccess, resetOtherTabsFetchState, fetchTransactionCategorizationView, updateSelectedCheckboxTransactionIds, clearExpenseAutomationTransactionsViewPerTabView, clearExpenseAutomationTransactionsView, setEntityRecommendationForLineIdsForCategorization, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, } = expenseAutomationTransactionsView.actions;
793
774
  export default expenseAutomationTransactionsView.reducer;
@@ -10,7 +10,7 @@ import { getAllSteps } from '../selectorTypes/expenseAutomationViewSelectorTypes
10
10
  export function getExpenseAutomationTransactionView(state) {
11
11
  const { accountState, classState, classListState, accountListState, expenseAutomationTransactionsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, } = state;
12
12
  const { selectedTransactionCategorizationTab } = expenseAutomationTransactionsViewState;
13
- const { uiState, refreshStatus, saveStatus, markAsNotMiscategorizedStatus, transactionIdsBySelectedPeriod, transactionReviewLocalDataById, selectedCheckBoxTransactionIds, transactionIdsWithUnsavedData, uploadReceiptStatusById, selectedTransactionId, selectedTransactionLineId, } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab];
13
+ const { uiState, refreshStatus, saveStatus, markAsNotMiscategorizedStatus, transactionIdsBySelectedPeriod, transactionReviewLocalDataById, selectedCheckBoxTransactionIds, transactionIdsWithUnsavedData, selectedTransactionId, selectedTransactionLineId, } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab];
14
14
  const uncategorizedIncomeExpense = getUncategorizedAccounts(accountState, accountListState, 'accountList');
15
15
  const accountList = getAccountList(accountState, accountListState, 'accountList');
16
16
  const classList = getClassList(classState, classListState);
@@ -94,7 +94,6 @@ export function getExpenseAutomationTransactionView(state) {
94
94
  completionStatus,
95
95
  totalCountByTab,
96
96
  fetchStateByTransactionTabs: fetchStateByTab,
97
- uploadReceiptStatusById,
98
97
  selectedTransactionId,
99
98
  selectedTransactionLineId,
100
99
  };
@@ -4,11 +4,10 @@ const TRANSACTIONS_SORT_KEYS = [
4
4
  'vendor',
5
5
  'amount',
6
6
  'transaction_type',
7
- 'payment_account',
8
7
  'date',
9
8
  'category',
10
9
  'class',
11
- 'memo_and_receipt',
10
+ 'memo',
12
11
  ];
13
12
  export const toTransactionsSortKey = (v) => stringToUnion(v, TRANSACTIONS_SORT_KEYS);
14
13
  export const TRANSACTIONS_TABS = ['review', 'autoCategorized'];
@@ -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
  }
@@ -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, companyIndustryType, 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,55 +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
- ...(companyIndustryType != null && {
198
- company_industry_type: companyIndustryType,
199
- }),
200
- ...(companySubIndustry != null && {
201
- company_industry_sub_type: companySubIndustry,
202
- }),
203
- ...(countriesOfOperations != null &&
204
- countriesOfOperations.length > 0 && {
205
- company_countries_of_operations: countriesOfOperations,
206
- }),
207
- ...(companySourceOfFunds != null && {
208
- company_source_of_funds: companySourceOfFunds,
209
- }),
210
- ...(companySourceOfFundsDescription != null && {
211
- company_source_of_funds_desc: companySourceOfFundsDescription,
212
- }),
213
- ...(transactionVolume != null && {
214
- company_transaction_vol_expectations: transactionVolume,
215
- }),
216
- ...(transactionVolumeDescription != null && {
217
- company_transaction_vol_expectations_desc: transactionVolumeDescription,
218
- }),
219
- ...(purposeOfAccount != null && {
220
- company_purpose_of_account: purposeOfAccount,
221
- }),
222
- ...(purposeOfAccountDescription != null && {
223
- company_purpose_of_account_desc: purposeOfAccountDescription,
224
- }),
225
- ...(regulatedStatus != null && {
226
- company_regulated_states: regulatedStatus === 'yes',
227
- }),
228
- ...(regulatedStatusDescription != null && {
229
- company_regulated_states_desc: regulatedStatusDescription,
230
- }),
231
- ...(usNexus != null && {
232
- company_us_nexus: usNexus === 'yes',
233
- }),
234
- ...(usNexusTypes != null &&
235
- usNexusTypes.length > 0 && {
236
- company_us_nexus_desc: usNexusTypes.map(toUsNexusTypeKey),
237
- }),
238
- });
239
173
  if (setupViewType === 'zeni_treasury' && sourceOfFunds != null) {
240
174
  company['source_of_funds'] = sourceOfFunds;
241
175
  }
@@ -43,21 +43,16 @@ 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, companyIndustryType, } = incInfo;
48
+ const { fileIds, companyIncDate: incDate, companyIncType } = incInfo;
49
49
  const { companyIndustry } = questionaire;
50
50
  const { taxId } = taxInfo;
51
51
  const companyDetails = {
52
52
  companyId,
53
53
  companyDescription,
54
54
  companyIndustry,
55
- companyIndustryType,
56
55
  companyLegalName,
57
- companySubIndustry,
58
- companySourceOfFunds: incCompanySourceOfFunds,
59
- companySourceOfFundsDescription,
60
- countriesOfOperations,
61
56
  taxIdOrEIN: taxId,
62
57
  incDate,
63
58
  phone,
@@ -66,15 +61,6 @@ export function toSetupViewLocalData(company, users, userRoles, primaryContact)
66
61
  syncToken,
67
62
  typeOfIncorporation: companyIncType,
68
63
  sourceOfFunds,
69
- stateOfIncorporation: companyIncState,
70
- transactionVolume,
71
- transactionVolumeDescription,
72
- purposeOfAccount,
73
- purposeOfAccountDescription,
74
- regulatedStatus,
75
- regulatedStatusDescription,
76
- usNexus,
77
- usNexusTypes,
78
64
  };
79
65
  let primaryContactDetails = undefined;
80
66
  if (primaryContact != null) {
@@ -109,7 +109,7 @@ export const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentit
109
109
  if (companyDetails.localData != null) {
110
110
  const deleteFileStatusById = {};
111
111
  const updateFileStatusById = {};
112
- const { syncToken, companyDescription, companyLegalName, website, companyIndustry, companyIndustryType, companySubIndustry, companySourceOfFunds, companySourceOfFundsDescription, countriesOfOperations, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, transactionVolume, transactionVolumeDescription, purposeOfAccount, purposeOfAccountDescription, regulatedStatus, regulatedStatusDescription, stateOfIncorporation, usNexus, usNexusTypes, } = companyDetails.localData;
112
+ const { syncToken, companyDescription, companyLegalName, website, companyIndustry, phone, taxIdOrEIN, incDate, fileIds, typeOfIncorporation, sourceOfFunds, } = companyDetails.localData;
113
113
  fileIds.forEach((fileId) => {
114
114
  deleteFileStatusById[fileId] = getFileDeleteStatusById(state, fileId);
115
115
  });
@@ -123,11 +123,6 @@ export const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentit
123
123
  companyDescription,
124
124
  companyLegalName,
125
125
  companyIndustry,
126
- companyIndustryType,
127
- companySubIndustry,
128
- companySourceOfFunds,
129
- companySourceOfFundsDescription,
130
- countriesOfOperations,
131
126
  website,
132
127
  phone,
133
128
  taxIdOrEIN,
@@ -141,15 +136,6 @@ export const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentit
141
136
  primaryContactLocalData,
142
137
  typeOfIncorporation,
143
138
  sourceOfFunds,
144
- transactionVolume,
145
- transactionVolumeDescription,
146
- purposeOfAccount,
147
- purposeOfAccountDescription,
148
- regulatedStatus,
149
- regulatedStatusDescription,
150
- stateOfIncorporation,
151
- usNexus,
152
- usNexusTypes,
153
139
  };
154
140
  }
155
141
  const companyOfficerLocalData = {