@zeniai/client-epic-state 5.0.100 → 5.1.0-betaSS1
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.
- package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +1 -1
- package/lib/commonStateTypes/amount.d.ts +0 -1
- package/lib/commonStateTypes/amount.js +1 -9
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -2
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -9
- package/lib/commonStateTypes/workingDayHelper.js +1 -28
- package/lib/entity/account/accountSelector.d.ts +0 -9
- package/lib/entity/account/accountSelector.js +1 -14
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/aiCfo/aiCfoPayload.d.ts +5 -64
- package/lib/entity/aiCfo/aiCfoReducer.d.ts +2 -23
- package/lib/entity/aiCfo/aiCfoReducer.js +10 -252
- package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -4
- package/lib/entity/aiCfo/aiCfoSelector.js +1 -19
- package/lib/entity/aiCfo/aiCfoState.d.ts +4 -98
- package/lib/entity/aiCfo/aiCfoState.js +1 -20
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +5 -34
- package/lib/entity/approvalRule/approvalRulePayload.js +10 -145
- package/lib/entity/approvalRule/approvalRuleSelector.d.ts +1 -25
- package/lib/entity/approvalRule/approvalRuleSelector.js +0 -40
- package/lib/entity/approvalRule/approvalRuleState.d.ts +7 -59
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -7
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/sectionProjectView/sectionProjectView.d.ts +1 -1
- package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -7
- package/lib/entity/task/taskPayload.d.ts +1 -3
- package/lib/entity/task/taskPayload.js +0 -2
- package/lib/entity/task/taskState.d.ts +0 -2
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -9
- package/lib/entity/tenant/clearAllEpic.js +0 -14
- package/lib/entity/tenant/tenantPayload.d.ts +0 -21
- package/lib/entity/tenant/tenantReducer.d.ts +5 -14
- package/lib/entity/tenant/tenantReducer.js +8 -132
- package/lib/entity/tenant/tenantState.d.ts +1 -24
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -4
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +10 -18
- package/lib/entity/transaction/stateTypes/transaction.d.ts +0 -3
- package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -2
- package/lib/entity/transaction/stateTypes/transactionLine.js +1 -2
- package/lib/epic.d.ts +2 -31
- package/lib/epic.js +2 -31
- package/lib/esm/commonStateTypes/amount.js +0 -7
- package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +0 -2
- package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
- package/lib/esm/entity/account/accountSelector.js +0 -11
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +10 -252
- package/lib/esm/entity/aiCfo/aiCfoSelector.js +1 -17
- package/lib/esm/entity/aiCfo/aiCfoState.js +0 -17
- package/lib/esm/entity/approvalRule/approvalRulePayload.js +10 -145
- package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -7
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -7
- package/lib/esm/entity/task/taskPayload.js +0 -2
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -14
- package/lib/esm/entity/tenant/tenantReducer.js +7 -130
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +10 -18
- package/lib/esm/entity/transaction/stateTypes/transactionLine.js +0 -1
- package/lib/esm/epic.js +2 -31
- package/lib/esm/index.js +28 -68
- package/lib/esm/reducer.js +0 -21
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -6
- package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
- package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +1 -2
- package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +11 -39
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +4 -14
- package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
- package/lib/esm/view/companyView/companyViewReducer.js +1 -46
- package/lib/esm/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +0 -4
- package/lib/esm/view/dashboard/dashboardReducer.js +1 -11
- package/lib/esm/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -3
- package/lib/esm/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +4 -3
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +1 -12
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +8 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +8 -8
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscategorizedEpic.js +13 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +6 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +6 -2
- package/lib/esm/view/expenseAutomationView/expenseAutomationViewReducer.js +20 -3
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +44 -20
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +6 -13
- package/lib/esm/view/expenseAutomationView/transactionFilterHelpers.js +18 -106
- package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +2 -22
- package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +12 -109
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +7 -11
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +4 -13
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +16 -140
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
- package/lib/esm/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -25
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +4 -42
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -35
- package/lib/esm/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +7 -11
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +4 -13
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +11 -80
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +1 -1
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +1 -45
- package/lib/esm/view/transactionDetail/transactionDetailSelector.js +1 -6
- package/lib/index.d.ts +34 -84
- package/lib/index.js +37 -261
- package/lib/reducer.d.ts +0 -21
- package/lib/reducer.js +0 -21
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +2 -11
- package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -6
- package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
- package/lib/view/aiCfoView/epics/createSessionEpic.js +1 -2
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +1 -8
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/companyTaskManagerView/companyTaskManagerViewPayload.d.ts +11 -19
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +5 -11
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +12 -40
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +0 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -13
- package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +3 -11
- package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.d.ts +3 -1
- package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
- package/lib/view/companyView/companyViewReducer.d.ts +1 -12
- package/lib/view/companyView/companyViewReducer.js +3 -48
- package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
- package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +0 -1
- package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +0 -4
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/dashboard/dashboardReducer.js +1 -11
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -3
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +4 -3
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +2 -13
- package/lib/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +8 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +8 -8
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscategorizedEpic.js +13 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +6 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +6 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +6 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +20 -3
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +9 -20
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +19 -12
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -21
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +6 -8
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +0 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +7 -15
- package/lib/view/expenseAutomationView/transactionFilterHelpers.js +18 -106
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +1 -8
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -21
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +0 -22
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -7
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +3 -14
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +13 -110
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewState.d.ts +0 -16
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +6 -10
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +3 -12
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -59
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +17 -142
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +5 -31
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -8
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -27
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +1 -1
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +2 -12
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +5 -43
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +1 -42
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -5
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +6 -10
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +3 -12
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +3 -14
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +12 -81
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState.d.ts +0 -12
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +1 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +2 -46
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -2
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +1 -6
- package/lib/view/transactionDetail/transactionDetailSelector.js +1 -6
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +34 -63
- package/lib/entity/approvalRule/approvalRuleConflict.d.ts +0 -56
- package/lib/entity/approvalRule/approvalRuleConflict.js +0 -77
- package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
- package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
- package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
- package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
- package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
- package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
- package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
- package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
- package/lib/esm/entity/approvalRule/approvalRuleConflict.js +0 -74
- package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
- package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
- package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
- package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
- package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
- package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
- package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
- package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
- package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
- package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
- package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +0 -25
- package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +0 -98
- package/lib/esm/view/createTransferEntry/createTransferEntryReducer.js +0 -82
- package/lib/esm/view/createTransferEntry/createTransferEntrySelector.js +0 -64
- package/lib/esm/view/createTransferEntry/createTransferEntryState.js +0 -17
- package/lib/esm/view/createTransferEntry/epics/createTransferEntryEpic.js +0 -136
- package/lib/esm/view/createTransferEntry/epics/fetchTransferAccountsEpic.js +0 -36
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -54
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -29
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -78
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -47
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -34
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -32
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -54
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -92
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -225
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -10
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -23
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -36
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -27
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -28
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -52
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -22
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -36
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -39
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -34
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -71
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -21
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -38
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -289
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -109
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -44
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -111
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -25
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -363
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -36
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -19
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -6
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -119
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -154
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -22
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -49
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -140
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -20
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -100
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -96
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -59
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -24
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -34
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -57
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -35
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -62
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -44
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -18
- package/lib/esm/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -18
- package/lib/esm/view/transactionDetail/journalEntryLinesViewModel.js +0 -149
- package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.d.ts +0 -10
- package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -42
- package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.d.ts +0 -6
- package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -20
- package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.d.ts +0 -9
- package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +0 -29
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +0 -10
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +0 -102
- package/lib/view/createTransferEntry/createTransferEntryReducer.d.ts +0 -32
- package/lib/view/createTransferEntry/createTransferEntryReducer.js +0 -86
- package/lib/view/createTransferEntry/createTransferEntrySelector.d.ts +0 -39
- package/lib/view/createTransferEntry/createTransferEntrySelector.js +0 -69
- package/lib/view/createTransferEntry/createTransferEntryState.d.ts +0 -30
- package/lib/view/createTransferEntry/createTransferEntryState.js +0 -20
- package/lib/view/createTransferEntry/epics/createTransferEntryEpic.d.ts +0 -11
- package/lib/view/createTransferEntry/epics/createTransferEntryEpic.js +0 -140
- package/lib/view/createTransferEntry/epics/fetchTransferAccountsEpic.d.ts +0 -14
- package/lib/view/createTransferEntry/epics/fetchTransferAccountsEpic.js +0 -40
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.d.ts +0 -23
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -58
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.d.ts +0 -47
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -34
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.d.ts +0 -23
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -82
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.d.ts +0 -40
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -51
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.d.ts +0 -37
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -53
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.d.ts +0 -14
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -38
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -36
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +0 -56
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -60
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.d.ts +0 -22
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -96
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.d.ts +0 -59
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -230
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.d.ts +0 -122
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -13
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -27
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.d.ts +0 -9
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -40
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -31
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.d.ts +0 -15
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -32
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -56
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -28
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -40
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -43
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -38
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -75
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -27
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -42
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -294
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -113
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -48
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -115
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -29
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -369
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +0 -6
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -40
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -26
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +0 -116
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -10
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +0 -33
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -126
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +0 -52
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -158
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -31
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -53
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +0 -10
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -144
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -24
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -104
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +0 -22
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -100
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -63
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +0 -3
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -28
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +0 -34
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -38
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -61
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -39
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -66
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +0 -3
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -48
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.d.ts +0 -14
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -65
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoIntroClosedByOutsideClickEpic.js +0 -22
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryPromoRemindMeLaterClickedEpic.js +0 -22
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +0 -102
- package/lib/view/transactionDetail/journalEntryLinesViewModel.js +0 -160
|
@@ -18,20 +18,37 @@ const expenseAutomationView = createSlice({
|
|
|
18
18
|
reducer() {
|
|
19
19
|
//do nothing
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* `statuses` / `countOnlyStatuses` carry the Statsig-resolved values
|
|
23
|
+
* for the currently selected transaction-categorization tab. The
|
|
24
|
+
* host (`ExpenseAutomationScreen`) resolves them via
|
|
25
|
+
* `useDynamicConfig` + `resolveTransactionCategorizationStatuses`
|
|
26
|
+
* and passes them in so the downstream bootstrap fetch hits the
|
|
27
|
+
* listing API with the correct status filter. Optional only as a
|
|
28
|
+
* defensive type concession for non-categorization callers (the
|
|
29
|
+
* action is also used to bootstrap the missing-receipts / reconciliation
|
|
30
|
+
* / month-end views, which don't consume these args).
|
|
31
|
+
*/
|
|
32
|
+
prepare(cacheOverride = false, refreshViewInBackground = false, isUncategorizedExpenseCategoryEnabled = false, statuses, countOnlyStatuses) {
|
|
22
33
|
return {
|
|
23
34
|
payload: {
|
|
24
35
|
cacheOverride,
|
|
25
36
|
refreshViewInBackground,
|
|
26
37
|
isUncategorizedExpenseCategoryEnabled,
|
|
38
|
+
statuses,
|
|
39
|
+
countOnlyStatuses,
|
|
27
40
|
},
|
|
28
41
|
};
|
|
29
42
|
},
|
|
30
43
|
},
|
|
31
44
|
refreshExpenseAutomationCurrentTab: {
|
|
32
|
-
prepare(isUncategorizedExpenseCategoryEnabled) {
|
|
45
|
+
prepare(isUncategorizedExpenseCategoryEnabled, statuses, countOnlyStatuses) {
|
|
33
46
|
return {
|
|
34
|
-
payload: {
|
|
47
|
+
payload: {
|
|
48
|
+
isUncategorizedExpenseCategoryEnabled,
|
|
49
|
+
statuses,
|
|
50
|
+
countOnlyStatuses,
|
|
51
|
+
},
|
|
35
52
|
};
|
|
36
53
|
},
|
|
37
54
|
reducer() {
|
|
@@ -5,7 +5,6 @@ import { toMonthYearPeriodId, } from '../../../commonStateTypes/timePeriod';
|
|
|
5
5
|
import { isVendorTransaction } from '../../../entity/transaction/stateTypes/vendorTransaction';
|
|
6
6
|
import { filterAutoTabLineItems, mergeTabSpecificLineItems, removeTransactionFromTabView, setEntityRecommendationForLineIdInLocalData, shouldAutoSelectAndAdd, toSetAllLineItemsToCategoryClass, toTransactionDetailLocalData, } from '../helpers/transactionCategorizationLocalDataHelper';
|
|
7
7
|
import { DEFAULT_COMPLETED_SUB_TAB, } from '../types/completedSubTab';
|
|
8
|
-
import { TRANSACTIONS_TABS, } from '../types/transactionsViewState';
|
|
9
8
|
export const initialTransactionTabViewState = {
|
|
10
9
|
saveStatus: {
|
|
11
10
|
fetchState: 'Not-Started',
|
|
@@ -121,7 +120,7 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
121
120
|
reducers: {
|
|
122
121
|
fetchTransactionCategorizationView: {
|
|
123
122
|
prepare(selectedTab, period, cacheOverride = false, keepExistingListItems = false, searchString, // when this is defined the output should go to search result IDs
|
|
124
|
-
pageToken, refreshViewInBackground = false, resetListItems = false, isUncategorizedExpenseCategoryEnabled) {
|
|
123
|
+
pageToken, refreshViewInBackground = false, resetListItems = false, isUncategorizedExpenseCategoryEnabled, statuses, countOnlyStatuses) {
|
|
125
124
|
return {
|
|
126
125
|
payload: {
|
|
127
126
|
selectedTab,
|
|
@@ -133,6 +132,8 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
133
132
|
refreshViewInBackground,
|
|
134
133
|
resetListItems,
|
|
135
134
|
isUncategorizedExpenseCategoryEnabled,
|
|
135
|
+
statuses,
|
|
136
|
+
countOnlyStatuses,
|
|
136
137
|
},
|
|
137
138
|
};
|
|
138
139
|
},
|
|
@@ -181,7 +182,7 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
181
182
|
}
|
|
182
183
|
},
|
|
183
184
|
prepare(selectedTab, period, cacheOverride = false, keepExistingListItems = false, searchString, // when this is defined the output should go to search result IDs
|
|
184
|
-
pageToken, refreshViewInBackground = false, resetListItems, isUncategorizedExpenseCategoryEnabled) {
|
|
185
|
+
pageToken, refreshViewInBackground = false, resetListItems, isUncategorizedExpenseCategoryEnabled, statuses, countOnlyStatuses) {
|
|
185
186
|
return {
|
|
186
187
|
payload: {
|
|
187
188
|
selectedTab,
|
|
@@ -193,6 +194,8 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
193
194
|
refreshViewInBackground,
|
|
194
195
|
resetListItems,
|
|
195
196
|
isUncategorizedExpenseCategoryEnabled,
|
|
197
|
+
statuses,
|
|
198
|
+
countOnlyStatuses,
|
|
196
199
|
},
|
|
197
200
|
};
|
|
198
201
|
},
|
|
@@ -311,13 +314,25 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
311
314
|
draft.transactionCategorizationView[selectedTab].filters = filters;
|
|
312
315
|
},
|
|
313
316
|
saveTransactionCategorization: {
|
|
314
|
-
|
|
317
|
+
/**
|
|
318
|
+
* `reviewStatuses` carries the Statsig-resolved Review-tab statuses
|
|
319
|
+
* forwarded by `ExpenseAutomationScreen`.
|
|
320
|
+
* `saveTransactionCategorizationEpic` threads them downstream into
|
|
321
|
+
* `updateTransactionCategorization` -> `markTransactionAsNotMiscategorized`
|
|
322
|
+
* so the conditional background Review-tab refetch in
|
|
323
|
+
* `markTransactionAsNotMiscategorizedEpic` can request the correct
|
|
324
|
+
* status set without reading Statsig from epic-land. Optional during
|
|
325
|
+
* the deprecation window so un-migrated callers continue to work via
|
|
326
|
+
* slice fallback.
|
|
327
|
+
*/
|
|
328
|
+
prepare(selectedTab, transactionIds, cotTrackingByTransactionId, isUncategorizedExpenseCategoryEnabled, reviewStatuses) {
|
|
315
329
|
return {
|
|
316
330
|
payload: {
|
|
317
331
|
selectedTab,
|
|
318
332
|
transactionIds,
|
|
319
333
|
cotTrackingByTransactionId,
|
|
320
334
|
isUncategorizedExpenseCategoryEnabled,
|
|
335
|
+
reviewStatuses,
|
|
321
336
|
},
|
|
322
337
|
};
|
|
323
338
|
},
|
|
@@ -391,9 +406,16 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
391
406
|
fetchState: 'In-Progress',
|
|
392
407
|
};
|
|
393
408
|
},
|
|
394
|
-
|
|
409
|
+
/**
|
|
410
|
+
* `reviewStatuses` carries the Statsig-resolved Review-tab statuses
|
|
411
|
+
* forwarded from `saveTransactionCategorization`.
|
|
412
|
+
* `updateTransactionCategorizationEpic` threads them downstream into
|
|
413
|
+
* `markTransactionAsNotMiscategorized`.
|
|
414
|
+
*/
|
|
415
|
+
prepare(selectedTab, transactionIds, transactionSaveUpdates, cotTrackingByTransactionId, isUncategorizedExpenseCategoryEnabled, reviewStatuses) {
|
|
395
416
|
return {
|
|
396
417
|
payload: {
|
|
418
|
+
reviewStatuses,
|
|
397
419
|
selectedTab,
|
|
398
420
|
transactionIds,
|
|
399
421
|
transactionSaveUpdates,
|
|
@@ -858,12 +880,20 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
858
880
|
error: undefined,
|
|
859
881
|
};
|
|
860
882
|
},
|
|
861
|
-
|
|
883
|
+
/**
|
|
884
|
+
* `reviewStatuses` carries the Statsig-resolved Review-tab statuses
|
|
885
|
+
* forwarded from the EA-screen save chain.
|
|
886
|
+
* `markTransactionAsNotMiscategorizedEpic` reads this payload value
|
|
887
|
+
* when dispatching the conditional background Review-tab refetch via
|
|
888
|
+
* `fetchTransactionCategorizationView`.
|
|
889
|
+
*/
|
|
890
|
+
prepare(selectedTab, transactionsInReview, isUncategorizedExpenseCategoryEnabled, reviewStatuses) {
|
|
862
891
|
return {
|
|
863
892
|
payload: {
|
|
864
893
|
selectedTab,
|
|
865
894
|
transactionsInReview,
|
|
866
895
|
isUncategorizedExpenseCategoryEnabled,
|
|
896
|
+
reviewStatuses,
|
|
867
897
|
},
|
|
868
898
|
};
|
|
869
899
|
},
|
|
@@ -925,6 +955,9 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
925
955
|
},
|
|
926
956
|
updateParentTotalCountForTab(draft, action) {
|
|
927
957
|
const { selectedTab, selectedPeriod, parentTotalCount } = action.payload;
|
|
958
|
+
if (parentTotalCount == null) {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
928
961
|
draft.parentTotalCountByTab[selectedTab][toMonthYearPeriodId(selectedPeriod)] = parentTotalCount;
|
|
929
962
|
},
|
|
930
963
|
updateSelectedCheckboxTransactionIds(draft, action) {
|
|
@@ -973,7 +1006,7 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
973
1006
|
},
|
|
974
1007
|
},
|
|
975
1008
|
syncTransactionCategorizationFromDetailSave: {
|
|
976
|
-
prepare(transactionId, updatedTransaction, pendingReviewLineIds, uncategorizedIncomeExpense, isUncategorizedExpenseCategoryEnabled) {
|
|
1009
|
+
prepare(transactionId, updatedTransaction, pendingReviewLineIds, uncategorizedIncomeExpense, isUncategorizedExpenseCategoryEnabled, reviewStatuses) {
|
|
977
1010
|
return {
|
|
978
1011
|
payload: {
|
|
979
1012
|
transactionId,
|
|
@@ -981,6 +1014,7 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
981
1014
|
pendingReviewLineIds,
|
|
982
1015
|
uncategorizedIncomeExpense,
|
|
983
1016
|
isUncategorizedExpenseCategoryEnabled,
|
|
1017
|
+
reviewStatuses,
|
|
984
1018
|
},
|
|
985
1019
|
};
|
|
986
1020
|
},
|
|
@@ -1026,11 +1060,12 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
1026
1060
|
},
|
|
1027
1061
|
},
|
|
1028
1062
|
backgroundRefetchReviewTab: {
|
|
1029
|
-
prepare(period, isUncategorizedExpenseCategoryEnabled) {
|
|
1063
|
+
prepare(period, isUncategorizedExpenseCategoryEnabled, reviewStatuses) {
|
|
1030
1064
|
return {
|
|
1031
1065
|
payload: {
|
|
1032
1066
|
period,
|
|
1033
1067
|
isUncategorizedExpenseCategoryEnabled,
|
|
1068
|
+
reviewStatuses,
|
|
1034
1069
|
},
|
|
1035
1070
|
};
|
|
1036
1071
|
},
|
|
@@ -1041,18 +1076,7 @@ const expenseAutomationTransactionsView = createSlice({
|
|
|
1041
1076
|
};
|
|
1042
1077
|
},
|
|
1043
1078
|
},
|
|
1044
|
-
removeTransactionFromAllTabs: {
|
|
1045
|
-
prepare(transactionId) {
|
|
1046
|
-
return { payload: { transactionId } };
|
|
1047
|
-
},
|
|
1048
|
-
reducer(draft, action) {
|
|
1049
|
-
const { transactionId } = action.payload;
|
|
1050
|
-
for (const tab of TRANSACTIONS_TABS) {
|
|
1051
|
-
removeTransactionFromTabView(draft.transactionCategorizationView[tab], transactionId);
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
},
|
|
1055
1079
|
},
|
|
1056
1080
|
});
|
|
1057
|
-
export const { fetchTransactionCategorization, updateTransactionCategorizationUIState, updateTransactionFilters, initializeTransactionCategorizationViewLocalData, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateStatusForTransactionNotMiscategorizedUpdateForCategorization, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, setAllItemsToCategoryClassInLocalDataForCategorization, updateTotalCountForTransactionCategorization, updateParentTotalCountForTab, fetchTransactionCategorizationSuccess, resetOtherTabsFetchState, fetchTransactionCategorizationView, updateSelectedCheckboxTransactionIds, clearExpenseAutomationTransactionsViewPerTabView, clearExpenseAutomationTransactionsView, setEntityRecommendationForLineIdsForCategorization, markCategoryClassRecommendationsInProgressForCategorization, markCategoryClassRecommendationsCompletedForCategorization, markCategoryClassRecommendationsFailureForCategorization, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab,
|
|
1081
|
+
export const { fetchTransactionCategorization, updateTransactionCategorizationUIState, updateTransactionFilters, initializeTransactionCategorizationViewLocalData, saveTransactionCategorizationLocalData, fetchTransactionCategorizationFailure, saveTransactionCategorization, updateTransactionCategorization, updateCurrentSelectedTransactionCategorizationTab, updateTransactionCategorizationCompletedSubTab, updateTransactionCategorizationSaveStatus, markTransactionAsNotMiscategorized, updateStatusForTransactionNotMiscategorizedUpdateForCategorization, updateSelectedVendorForTransaction, updateSelectedCustomerForTransaction, setAllItemsToCategoryClassInLocalDataForCategorization, updateTotalCountForTransactionCategorization, updateParentTotalCountForTab, fetchTransactionCategorizationSuccess, resetOtherTabsFetchState, fetchTransactionCategorizationView, updateSelectedCheckboxTransactionIds, clearExpenseAutomationTransactionsViewPerTabView, clearExpenseAutomationTransactionsView, setEntityRecommendationForLineIdsForCategorization, markCategoryClassRecommendationsInProgressForCategorization, markCategoryClassRecommendationsCompletedForCategorization, markCategoryClassRecommendationsFailureForCategorization, updateSelectedTransactionId, syncTransactionCategorizationFromDetailSave, backgroundRefetchReviewTab, updateTransactionCategorizationUploadReceiptState, uploadTransactionCategorizationReceiptSuccess, } = expenseAutomationTransactionsView.actions;
|
|
1058
1082
|
export default expenseAutomationTransactionsView.reducer;
|
|
@@ -8,7 +8,6 @@ import { getSupportedTransactionsByIds } from '../../../entity/transaction/trans
|
|
|
8
8
|
import { applyTransactionFilters, } from '../transactionFilterHelpers';
|
|
9
9
|
import { getAccountList, getNestedAccountListHierarchy, getUncategorizedAccounts, } from '../../accountList/accountListSelector';
|
|
10
10
|
import { getClassList, getNestedClassListHierarchy, } from '../../classList/classListSelector';
|
|
11
|
-
import { getResolvedTransferAccounts } from '../../createTransferEntry/createTransferEntrySelector';
|
|
12
11
|
import { getProjectList } from '../../projectList/projectListSelector';
|
|
13
12
|
import { getAllSteps } from '../selectorTypes/expenseAutomationViewSelectorTypes';
|
|
14
13
|
// Walks the tab's transactionReviewLocalDataById map and returns
|
|
@@ -82,11 +81,8 @@ export const toTransactionView = (transaction, transactionLocalData) => {
|
|
|
82
81
|
transactionLocalData,
|
|
83
82
|
};
|
|
84
83
|
};
|
|
85
|
-
// Re-exported here for back-compat. New code should import from
|
|
86
|
-
// `view/createTransferEntry/createTransferEntrySelector`.
|
|
87
|
-
export { getLastTransferEntryReplacement } from '../../createTransferEntry/createTransferEntrySelector';
|
|
88
84
|
export function getExpenseAutomationTransactionView(state) {
|
|
89
|
-
const { accountState, classState, classListState, accountListState,
|
|
85
|
+
const { accountState, classState, classListState, accountListState, expenseAutomationTransactionsViewState, expenseAutomationViewState, projectState, projectListState, transactionState, monthEndCloseChecksState, monthEndCloseChecksViewState, } = state;
|
|
90
86
|
const { selectedTransactionCategorizationCompletedSubTab, selectedTransactionCategorizationTab, } = expenseAutomationTransactionsViewState;
|
|
91
87
|
const { uiState, refreshStatus, saveStatus, markAsNotMiscategorizedStatus, transactionIdsBySelectedPeriod, transactionReviewLocalDataById, selectedCheckBoxTransactionIds, transactionIdsWithUnsavedData, uploadReceiptStatusById, selectedTransactionId, selectedTransactionLineId, filters, } = expenseAutomationTransactionsViewState.transactionCategorizationView[selectedTransactionCategorizationTab];
|
|
92
88
|
const uncategorizedIncomeExpense = getUncategorizedAccounts(accountState, accountListState, 'accountList');
|
|
@@ -186,10 +182,11 @@ export function getExpenseAutomationTransactionView(state) {
|
|
|
186
182
|
review: monthYearPeriodId != null ? totalCountByReview[monthYearPeriodId] : 0,
|
|
187
183
|
autoCategorized: monthYearPeriodId != null ? totalCountByAutoCat[monthYearPeriodId] : 0,
|
|
188
184
|
};
|
|
189
|
-
// Parent-tab badge counts. Sourced from
|
|
190
|
-
//
|
|
191
|
-
//
|
|
192
|
-
//
|
|
185
|
+
// Parent-tab badge counts. Sourced from the listing response's optional
|
|
186
|
+
// `count_only_total` (only emitted when the request supplied
|
|
187
|
+
// `count_only_statuses`) and used exclusively by the navbar / tab strip
|
|
188
|
+
// badges. Independent of which Completed sub-tab is active so the badge
|
|
189
|
+
// stays stable across sub-tab switches.
|
|
193
190
|
const parentTotalCountByTab = expenseAutomationTransactionsViewState.parentTotalCountByTab;
|
|
194
191
|
const parentTabTotalCountByTab = {
|
|
195
192
|
review: monthYearPeriodId != null
|
|
@@ -218,7 +215,6 @@ export function getExpenseAutomationTransactionView(state) {
|
|
|
218
215
|
: [];
|
|
219
216
|
const transactionCompletionStatus = allSteps.find((step) => step.step === 'transaction_categorization')?.completionStatus;
|
|
220
217
|
const completionStatus = transactionCompletionStatus ?? 'incomplete';
|
|
221
|
-
const { transferAccountsList, creditCardTransferAccountsList } = getResolvedTransferAccounts(state);
|
|
222
218
|
const inFlightCategoryClassRecommendationsByTransactionId = getCategorizationInFlightRecommendationsByTransactionId(state);
|
|
223
219
|
const hasInFlightCategoryClassRecommendations = getCategorizationHasInFlightRecommendations(state);
|
|
224
220
|
return {
|
|
@@ -243,7 +239,6 @@ export function getExpenseAutomationTransactionView(state) {
|
|
|
243
239
|
refreshStatus,
|
|
244
240
|
saveStatus,
|
|
245
241
|
markAsNotMiscategorizedStatus,
|
|
246
|
-
createTransferEntryStatus: createTransferEntryState.createTransferEntryStatus,
|
|
247
242
|
completionStatus,
|
|
248
243
|
totalCountByTab,
|
|
249
244
|
parentTabTotalCountByTab,
|
|
@@ -251,8 +246,6 @@ export function getExpenseAutomationTransactionView(state) {
|
|
|
251
246
|
uploadReceiptStatusById,
|
|
252
247
|
selectedTransactionId,
|
|
253
248
|
selectedTransactionLineId,
|
|
254
|
-
creditCardTransferAccountsList,
|
|
255
|
-
transferAccounts: transferAccountsList,
|
|
256
249
|
selectedTransactionCategorizationCompletedSubTab,
|
|
257
250
|
};
|
|
258
251
|
}
|
|
@@ -28,87 +28,28 @@ export const TRANSACTION_FILTER_CATEGORIES = [
|
|
|
28
28
|
{ value: 'class', type: 'dropdown' },
|
|
29
29
|
{ value: 'amount', type: 'numberRange' },
|
|
30
30
|
];
|
|
31
|
-
/**
|
|
32
|
-
* Per-line amounts for a transaction, preserving the canonical source
|
|
33
|
-
* precedence:
|
|
34
|
-
*
|
|
35
|
-
* 1. `transactionLocalData.transactionReviewLocalData.lineItemById` —
|
|
36
|
-
* the locally-edited line items the user sees in the grid. Reflects
|
|
37
|
-
* unsaved edits so the filter matches what the user actually has on
|
|
38
|
-
* screen, not the pre-edit server state.
|
|
39
|
-
* 2. `transaction.transaction.lines` — persisted lines from the
|
|
40
|
-
* transaction payload.
|
|
41
|
-
* 3. `[transaction.amount.amount]` — single-element fallback for
|
|
42
|
-
* transactions that don't have a `lines` array at all (treat the
|
|
43
|
-
* transaction-level amount as a one-line transaction).
|
|
44
|
-
*
|
|
45
|
-
* Returned as an array so the amount filter in `transactionMatchesCategory`
|
|
46
|
-
* can OR-combine per-line `matchAmount` results: a transaction is included
|
|
47
|
-
* if ANY of its lines satisfies the operator, and the full row (with all
|
|
48
|
-
* lines, matching or not) renders downstream. Before the per-line change
|
|
49
|
-
* this helper's predecessor in `getCategoryValueForTransaction` summed
|
|
50
|
-
* these values into a single aggregate and compared the sum.
|
|
51
|
-
*
|
|
52
|
-
* **Missing amounts.** Lines (or transactions) whose amount field is
|
|
53
|
-
* `null` / `undefined` / `NaN` are *dropped* from the returned array
|
|
54
|
-
* rather than coerced to `0`. Coercing to `0` would silently make a
|
|
55
|
-
* row with no amount data match operators like `less_than 100`, even
|
|
56
|
-
* though we genuinely don't know what the amount is — a semantic
|
|
57
|
-
* regression flagged in PR review. By filtering instead, the empty-array
|
|
58
|
-
* case bubbles up to `transactionMatchesCategory`, which falls back to
|
|
59
|
-
* the same "absent value: only `not_equal` matches" contract used by
|
|
60
|
-
* non-amount fields.
|
|
61
|
-
*
|
|
62
|
-
* The defensive `?.` chains stay in place so a partial payload (state
|
|
63
|
-
* init, Pusher mid-sync, partially-resolved server response) doesn't
|
|
64
|
-
* throw; the difference is `?? 0` → filter-out.
|
|
65
|
-
*/
|
|
66
|
-
const getLineAmountsForTransaction = (transaction) => {
|
|
67
|
-
const localData = transaction?.transactionLocalData?.transactionReviewLocalData;
|
|
68
|
-
if (localData?.lineItemById != null) {
|
|
69
|
-
const lineItems = Object.values(localData.lineItemById);
|
|
70
|
-
if (lineItems.length > 0) {
|
|
71
|
-
return lineItems
|
|
72
|
-
.map((lineItem) => lineItem?.amount?.amount)
|
|
73
|
-
.filter(isFiniteNumber);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (transaction?.transaction?.lines != null &&
|
|
77
|
-
transaction.transaction.lines.length > 0) {
|
|
78
|
-
return transaction.transaction.lines
|
|
79
|
-
.map((line) => line?.amount?.amount)
|
|
80
|
-
.filter(isFiniteNumber);
|
|
81
|
-
}
|
|
82
|
-
const txAmount = transaction?.amount?.amount;
|
|
83
|
-
return isFiniteNumber(txAmount) ? [txAmount] : [];
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Type guard that survives an `Array<number | undefined>.filter(...)` and
|
|
87
|
-
* narrows the result to `number[]`. Also rejects `NaN` so downstream
|
|
88
|
-
* `matchAmount` never sees a value that fails every operator silently
|
|
89
|
-
* (because every comparison with `NaN` is false, `NaN < 100`, `NaN > 100`,
|
|
90
|
-
* `NaN === N` all yield `false` — the row would silently slip through
|
|
91
|
-
* `not_equal` but fail every other operator, which is exactly the
|
|
92
|
-
* absent-value contract we want to apply explicitly via an empty array
|
|
93
|
-
* instead).
|
|
94
|
-
*/
|
|
95
|
-
const isFiniteNumber = (value) => typeof value === 'number' && Number.isFinite(value);
|
|
96
31
|
/**
|
|
97
32
|
* Resolve the comparable value for a transaction against a given filter field.
|
|
98
33
|
* Returns undefined when the transaction doesn't carry the field — callers
|
|
99
34
|
* decide whether absence counts as a match (for 'not_equal' it does).
|
|
100
|
-
*
|
|
101
|
-
* NOTE: the `'amount'` field is NOT handled here. Amount matching is
|
|
102
|
-
* per-line (see `getLineAmountsForTransaction` + the early-return in
|
|
103
|
-
* `transactionMatchesCategory`) and would otherwise need to return a
|
|
104
|
-
* non-scalar value that doesn't fit this helper's contract.
|
|
105
35
|
*/
|
|
106
36
|
const getCategoryValueForTransaction = (key, transaction) => {
|
|
107
37
|
switch (key) {
|
|
108
38
|
case 'amount': {
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
|
|
39
|
+
// Prefer transactionLocalData line items (sum). Fall back to lines on
|
|
40
|
+
// the transaction itself. Final fallback: transaction-level amount.
|
|
41
|
+
const localDataForAmount = transaction.transactionLocalData?.transactionReviewLocalData;
|
|
42
|
+
if (localDataForAmount?.lineItemById) {
|
|
43
|
+
const lineItems = Object.values(localDataForAmount.lineItemById);
|
|
44
|
+
if (lineItems.length > 0) {
|
|
45
|
+
return lineItems.reduce((sum, lineItem) => sum + (lineItem.amount?.amount ?? 0), 0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (transaction.transaction.lines &&
|
|
49
|
+
transaction.transaction.lines.length > 0) {
|
|
50
|
+
return transaction.transaction.lines.reduce((sum, line) => sum + (line.amount?.amount ?? 0), 0);
|
|
51
|
+
}
|
|
52
|
+
return transaction.amount.amount;
|
|
112
53
|
}
|
|
113
54
|
case 'payee': {
|
|
114
55
|
if (isNonEmptyString(transaction.vendorName)) {
|
|
@@ -246,37 +187,6 @@ const matchAmount = (amount, category) => {
|
|
|
246
187
|
return op === 'not_equal' ? !matched : matched;
|
|
247
188
|
};
|
|
248
189
|
const transactionMatchesCategory = (transaction, category) => {
|
|
249
|
-
if (category.field === 'amount') {
|
|
250
|
-
// Per-line matching: the transaction is included if ANY of its lines
|
|
251
|
-
// satisfies the operator. This is what the user expects when a
|
|
252
|
-
// multi-line transaction contains lines at different amounts — they
|
|
253
|
-
// want the row to surface if even one line falls in the filter's
|
|
254
|
-
// range. The full row (with non-matching lines too) renders
|
|
255
|
-
// downstream; this matcher only decides row inclusion. Same
|
|
256
|
-
// operator + sign semantics as the aggregate version, just applied
|
|
257
|
-
// per line.
|
|
258
|
-
//
|
|
259
|
-
// `not_equal` deserves a sanity-check: `matchAmount` already inverts
|
|
260
|
-
// internally for that operator, so for a line whose amount is NOT
|
|
261
|
-
// in the filter's `values`, matchAmount returns true; for a line
|
|
262
|
-
// whose amount IS in the values, it returns false. `.some()` over
|
|
263
|
-
// lines therefore means "the transaction has at least one line that
|
|
264
|
-
// is not equal to any of the filter values" — which is the right
|
|
265
|
-
// match-any-line interpretation of `not_equal` (a transaction
|
|
266
|
-
// matches if it has a line that satisfies the negation).
|
|
267
|
-
const lineAmounts = getLineAmountsForTransaction(transaction);
|
|
268
|
-
if (lineAmounts.length === 0) {
|
|
269
|
-
// No valid (finite) amount data on the transaction or its lines —
|
|
270
|
-
// apply the same absent-value contract the generic branch below
|
|
271
|
-
// uses for non-amount fields: only `not_equal` matches a missing
|
|
272
|
-
// value, every other operator excludes it. Coercing missing
|
|
273
|
-
// amounts to `0` upstream (the previous behavior) would have made
|
|
274
|
-
// such rows silently match `less_than 100`, `in_between [0, 50]`,
|
|
275
|
-
// etc., which the PR review correctly flagged as a regression.
|
|
276
|
-
return category.matchingOperator === 'not_equal';
|
|
277
|
-
}
|
|
278
|
-
return lineAmounts.some((lineAmount) => matchAmount(lineAmount, category));
|
|
279
|
-
}
|
|
280
190
|
const value = getCategoryValueForTransaction(category.field, transaction);
|
|
281
191
|
if (value == null) {
|
|
282
192
|
// Absent-value semantics — pinning these down explicitly so the
|
|
@@ -296,10 +206,12 @@ const transactionMatchesCategory = (transaction, category) => {
|
|
|
296
206
|
// are filtered out.
|
|
297
207
|
//
|
|
298
208
|
// Only the `not_equal` branch returns `true` here; everything else
|
|
299
|
-
// falls through to the `false` below.
|
|
300
|
-
// because it short-circuits to the per-line path above.
|
|
209
|
+
// falls through to the `false` below.
|
|
301
210
|
return category.matchingOperator === 'not_equal';
|
|
302
211
|
}
|
|
212
|
+
if (category.field === 'amount') {
|
|
213
|
+
return matchAmount(Number(value), category);
|
|
214
|
+
}
|
|
303
215
|
const valueStr = value.toString();
|
|
304
216
|
const valueInList = category.values.some((v) => v.toString() === valueStr);
|
|
305
217
|
return category.matchingOperator === 'not_equal' ? !valueInList : valueInList;
|
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import { reduceAllFetchState } from '../../../commonStateTypes/reduceFetchState';
|
|
3
|
-
import {
|
|
4
|
-
import { getAllFundingAccounts, mapDepositAccToFundingAccount, } from '../commonSetup/setupViewSelector';
|
|
3
|
+
import { getAllFundingAccounts, } from '../commonSetup/setupViewSelector';
|
|
5
4
|
import { getAllDepositAccounts } from '../zeniAccounts/depositAccountList/depositAccountListSelector';
|
|
6
5
|
import { getAllPaymentAccounts } from '../zeniAccounts/paymentAccountList/paymentAccountListSelector';
|
|
7
|
-
const buildCashManagementRule = (autoSweepFlowState, depositAccountState, treasuryDetailState) => {
|
|
8
|
-
const { settingsId, bufferAmount, frequency, memo, primaryFundingAccountId, nextTransferDate } = autoSweepFlowState;
|
|
9
|
-
if (settingsId == null || primaryFundingAccountId == null) {
|
|
10
|
-
return undefined;
|
|
11
|
-
}
|
|
12
|
-
const depositAccount = getDepositAccountByDepositAccountId(depositAccountState, primaryFundingAccountId);
|
|
13
|
-
return {
|
|
14
|
-
bufferAmount,
|
|
15
|
-
frequency,
|
|
16
|
-
memo,
|
|
17
|
-
settingsId,
|
|
18
|
-
primaryFundingAccount: depositAccount != null
|
|
19
|
-
? mapDepositAccToFundingAccount(depositAccount)
|
|
20
|
-
: undefined,
|
|
21
|
-
treasurySummary: treasuryDetailState.accountSummary,
|
|
22
|
-
nextTransferDate,
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
6
|
export const getAutoTransferRules = (state) => {
|
|
26
|
-
const { autotransferRulesState,
|
|
7
|
+
const { autotransferRulesState, depositAccountState, paymentAccountState, depositAccountListState, paymentAccountListState, treasuryDetailState, } = state;
|
|
27
8
|
const { rules, error, historyByRuleId, ruleUpdateLocalData, ruleUpdateStatusById, ruleDeleteStatusById, createRuleFetchState, autoTransferReviewDetail, } = autotransferRulesState;
|
|
28
9
|
const depositAccountsView = getAllDepositAccounts(depositAccountState, depositAccountListState);
|
|
29
10
|
const paymentAccountsView = getAllPaymentAccounts(paymentAccountState, paymentAccountListState);
|
|
@@ -58,7 +39,6 @@ export const getAutoTransferRules = (state) => {
|
|
|
58
39
|
transferMoneyParties,
|
|
59
40
|
transferMoneyPartiesFetchState,
|
|
60
41
|
createRuleFetchState,
|
|
61
|
-
cashManagementRule: buildCashManagementRule(autoSweepFlowState, depositAccountState, treasuryDetailState),
|
|
62
42
|
fetchState,
|
|
63
43
|
error,
|
|
64
44
|
version: 0,
|
|
@@ -52,12 +52,6 @@ export const getReviewPageBillDetail = (state, billId) => {
|
|
|
52
52
|
let recurringConfig;
|
|
53
53
|
let billPayInfo;
|
|
54
54
|
let isBillMarkedForRetry = false;
|
|
55
|
-
// Bill-level accounting class id. Approval Rules 3.0 'department'
|
|
56
|
-
// criteria match against this. Sourced from BillTransaction so
|
|
57
|
-
// any selector that needs it (e.g. creator-as-approver lookup)
|
|
58
|
-
// can read it off the view rather than reaching into
|
|
59
|
-
// 'state.billTransactionState' itself.
|
|
60
|
-
let classId;
|
|
61
55
|
const zeniAssistRetryStatus = billId != null
|
|
62
56
|
? billDetailViewState.billDetailById[key].zeniAssist.retryStatus
|
|
63
57
|
: undefined;
|
|
@@ -68,13 +62,6 @@ export const getReviewPageBillDetail = (state, billId) => {
|
|
|
68
62
|
transaction?.billPayInfo.isCollectToAccountInfoFromVendorContact ?? false;
|
|
69
63
|
isRecurring = transaction?.isRecurring ?? false;
|
|
70
64
|
billPayInfo = transaction?.billPayInfo;
|
|
71
|
-
// Normalise empty-string to undefined so downstream readers
|
|
72
|
-
// treat "no class" uniformly regardless of whether the wire
|
|
73
|
-
// used '' or omitted the field.
|
|
74
|
-
classId =
|
|
75
|
-
transaction?.classId != null && transaction.classId !== ''
|
|
76
|
-
? transaction.classId
|
|
77
|
-
: undefined;
|
|
78
65
|
if (isRecurring &&
|
|
79
66
|
transaction?.recurringBillConfigId != null &&
|
|
80
67
|
transaction.recurringBillInstance != null) {
|
|
@@ -191,6 +178,5 @@ export const getReviewPageBillDetail = (state, billId) => {
|
|
|
191
178
|
zeniAssistRetryStatus,
|
|
192
179
|
billPayInfo,
|
|
193
180
|
outsideZeniPaymentInfo,
|
|
194
|
-
classId,
|
|
195
181
|
};
|
|
196
182
|
};
|