@zeniai/client-epic-state 5.1.13-betaAY0 → 5.1.14
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/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +0 -1
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -9
- package/lib/commonStateTypes/workingDayHelper.js +1 -28
- package/lib/entity/aiCfo/aiCfoPayload.d.ts +5 -63
- package/lib/entity/aiCfo/aiCfoReducer.d.ts +2 -23
- package/lib/entity/aiCfo/aiCfoReducer.js +9 -249
- 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 -97
- package/lib/entity/aiCfo/aiCfoState.js +1 -20
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +5 -34
- package/lib/entity/approvalRule/approvalRulePayload.js +10 -149
- 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/company/cardsVisibilityHelpers.d.ts +4 -0
- package/lib/entity/company/cardsVisibilityHelpers.js +14 -0
- package/lib/entity/company/companyPayload.d.ts +0 -4
- package/lib/entity/company/companyPayload.js +0 -6
- package/lib/entity/company/companyStateTypes.d.ts +0 -7
- package/lib/entity/customer/customerPayload.d.ts +0 -6
- package/lib/entity/customer/customerPayload.js +9 -30
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -19
- 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/paymentAccount/paymentAccountSelector.d.ts +0 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.js +0 -9
- package/lib/entity/reimbursement/reimbursementPayload.js +1 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -5
- 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 -8
- package/lib/entity/tenant/clearAllEpic.js +0 -12
- package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveConnectorCredentialsEpic.d.ts +3 -3
- package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/tenantPayload.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.d.ts +25 -38
- package/lib/entity/tenant/tenantReducer.js +10 -70
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +1 -1
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +2 -14
- package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +1 -4
- package/lib/epic.d.ts +3 -31
- package/lib/epic.js +3 -32
- package/lib/esm/commonStateTypes/amount.js +0 -7
- package/lib/esm/commonStateTypes/animations.js +0 -1
- package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +9 -249
- 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 -149
- package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
- package/lib/esm/entity/company/cardsVisibilityHelpers.js +9 -0
- package/lib/esm/entity/company/companyPayload.js +0 -6
- package/lib/esm/entity/customer/customerPayload.js +8 -28
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -19
- package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -8
- package/lib/esm/entity/reimbursement/reimbursementPayload.js +2 -3
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -5
- package/lib/esm/entity/task/taskPayload.js +0 -2
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -12
- package/lib/esm/entity/tenant/tenantReducer.js +8 -68
- package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +2 -14
- package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +2 -5
- package/lib/esm/epic.js +3 -32
- package/lib/esm/index.js +27 -67
- package/lib/esm/reducer.js +0 -18
- 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/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +3 -3
- package/lib/esm/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/esm/view/dashboard/dashboardSelector.js +8 -43
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
- package/lib/esm/view/fileView/epic/deleteFileEpic.js +2 -2
- package/lib/esm/view/fileView/epic/deleteFileListEpic.js +2 -2
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +17 -29
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +51 -223
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -36
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +6 -45
- package/lib/esm/view/people/initializeEditPersonEpic.js +5 -1
- package/lib/esm/view/people/invitePeopleEpic.js +6 -3
- package/lib/esm/view/people/peopleSaveUpdatesEpic.js +7 -3
- package/lib/esm/view/settingsView/settingsViewHelpers.js +5 -2
- 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 -144
- 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/commonSetup/setupViewReducer.js +52 -106
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
- 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/transactionDetail/epics/saveTransactionHelper.js +0 -1
- package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
- package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
- package/lib/index.d.ts +33 -82
- package/lib/index.js +32 -261
- package/lib/reducer.d.ts +0 -18
- package/lib/reducer.js +0 -18
- 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/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/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +1 -1
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -2
- package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
- package/lib/view/dashboard/dashboardSelector.js +8 -43
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
- package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
- package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +2 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +15 -27
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +5 -44
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +52 -225
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -6
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -39
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +8 -53
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +7 -47
- package/lib/view/people/initializeEditPersonEpic.js +5 -1
- package/lib/view/people/invitePeopleEpic.js +6 -3
- package/lib/view/people/peopleSaveUpdatesEpic.js +7 -3
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/settingsViewHelpers.js +5 -2
- 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 -146
- 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/commonSetup/setupViewReducer.d.ts +2 -28
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -107
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -7
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -19
- 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/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
- package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +34 -65
- 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/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -59
- 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/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -55
- package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
- package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
- package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -40
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -29
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
- 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 -49
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -32
- 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 -212
- 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/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -58
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -77
- package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -14
- package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -221
- package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -41
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
- 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/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -44
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +0 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -33
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
- 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 -53
- 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 -36
- 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 -217
- 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/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -28
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -62
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -9
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -81
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -24
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -17
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -29
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -229
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -154
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -46
- 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/esm/reducer.js
CHANGED
|
@@ -11,7 +11,6 @@ import billTransaction, { initialState as initialBillTransactionState, } from '.
|
|
|
11
11
|
import contact, { initialState as initialContactState, } from './entity/billPay/contact/contactReducer';
|
|
12
12
|
import recurringBill, { initialState as initialRecurringBillState, } from './entity/billPay/recurringBills/recurringBillsReducer';
|
|
13
13
|
import cardPayment, { initialState as initialCardPaymentState, } from './entity/cardPayment/cardPaymentReducer';
|
|
14
|
-
import cardPolicy, { initialState as initialCardPolicyState, } from './entity/cardPolicy/cardPolicyReducer';
|
|
15
14
|
import chargeCard, { initialState as initialChargeCardState, } from './entity/chargeCard/chargeCardReducer';
|
|
16
15
|
import chargeCardRepayment, { initialState as initialChargeCardRepaymentState, } from './entity/chargeCardRepayment/chargeCardRepaymentReducer';
|
|
17
16
|
import chargeCardTransaction, { initialState as initialChargeCardTransactionState, } from './entity/chargeCardTransaction/chargeCardTransactionReducer';
|
|
@@ -159,11 +158,6 @@ import internationalWireVerification, { initialState as initialInternationalWire
|
|
|
159
158
|
import magicLinkView, { initialState as initialMagicLinkViewState, } from './view/spendManagement/billPay/magicLinkView/magicLinkViewReducer';
|
|
160
159
|
import previousBills, { initialState as initialPreviousBillsState, } from './view/spendManagement/billPay/previousBills/previousBillsReducer';
|
|
161
160
|
import wiseRedirect, { initialState as initialWiseRedirectState, } from './view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer';
|
|
162
|
-
import autoSweepFlow, { initialState as initialAutoSweepFlowState, } from './view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
|
|
163
|
-
import cashManagementOverview, { initialState as initialCashManagementOverviewState, } from './view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
|
|
164
|
-
import cardPolicyDetail, { initialState as initialCardPolicyDetailState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
|
|
165
|
-
import cardPolicyList, { initialState as initialCardPolicyListState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
|
|
166
|
-
import createCardPolicy, { initialState as initialCreateCardPolicyState, } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
|
|
167
161
|
import cardUserOnboarding, { initialState as initialCardUserOnboardingState, } from './view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
|
|
168
162
|
import cashbackDetail, { initialState as initialCashbackDetailState, } from './view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer';
|
|
169
163
|
import chargeCardConfig, { initialState as initialChargeCardConfigState, } from './view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer';
|
|
@@ -244,7 +238,6 @@ const initialEntitiesState = {
|
|
|
244
238
|
bankAccountState: initialBankAccountState,
|
|
245
239
|
billTransactionState: initialBillTransactionState,
|
|
246
240
|
cardPaymentState: initialCardPaymentState,
|
|
247
|
-
cardPolicyState: initialCardPolicyState,
|
|
248
241
|
chargeCardState: initialChargeCardState,
|
|
249
242
|
chargeCardRepaymentState: initialChargeCardRepaymentState,
|
|
250
243
|
chargeCardTransactionState: initialChargeCardTransactionState,
|
|
@@ -316,7 +309,6 @@ const initialViewsState = {
|
|
|
316
309
|
arAgingState: initialArAgingState,
|
|
317
310
|
auditReportViewState: initialAuditReportViewState,
|
|
318
311
|
authenticationViewState: initialAuthenticationViewState,
|
|
319
|
-
autoSweepFlowState: initialAutoSweepFlowState,
|
|
320
312
|
autotransferRulesState: initialAutotransferRulesState,
|
|
321
313
|
balanceSheetState: initialBalanceSheetState,
|
|
322
314
|
bankAccountViewState: initialBankAccountView,
|
|
@@ -330,14 +322,11 @@ const initialViewsState = {
|
|
|
330
322
|
billsBulkActionViewState: initialBillsBulkActionViewState,
|
|
331
323
|
cardBalanceState: initialCardBalanceState,
|
|
332
324
|
cardPaymentViewState: initialCardPaymentViewState,
|
|
333
|
-
cardPolicyDetailState: initialCardPolicyDetailState,
|
|
334
|
-
cardPolicyListState: initialCardPolicyListState,
|
|
335
325
|
cardUserOnboardingState: initialCardUserOnboardingState,
|
|
336
326
|
cashbackDetailState: initialCashbackDetailState,
|
|
337
327
|
cashBalanceState: initialCashBalanceState,
|
|
338
328
|
cashFlowState: initialCashFlowState,
|
|
339
329
|
cashInCashOutState: initialCashInCashOutState,
|
|
340
|
-
cashManagementOverviewState: initialCashManagementOverviewState,
|
|
341
330
|
cashPositionState: initialCashPositionState,
|
|
342
331
|
chargeCardConfigState: initialChargeCardConfigState,
|
|
343
332
|
chargeCardDetailState: initialChargeCardDetailState,
|
|
@@ -356,7 +345,6 @@ const initialViewsState = {
|
|
|
356
345
|
companyTaskManagerViewState: initialCompanyTaskManagerViewState,
|
|
357
346
|
companyViewState: initialCompanyViewState,
|
|
358
347
|
countryListState: initialCountryListState,
|
|
359
|
-
createCardPolicyState: initialCreateCardPolicyState,
|
|
360
348
|
creditAgentEntityState: initialCreditAgentEntityState,
|
|
361
349
|
creditAgentViewState: initialCreditAgentViewState,
|
|
362
350
|
dashboardLayoutState: initialDashboardLayoutState,
|
|
@@ -487,7 +475,6 @@ const entityReducers = {
|
|
|
487
475
|
billPayConfigState: billPayConfig,
|
|
488
476
|
billTransactionState: billTransaction,
|
|
489
477
|
cardPaymentState: cardPayment,
|
|
490
|
-
cardPolicyState: cardPolicy,
|
|
491
478
|
chargeCardState: chargeCard,
|
|
492
479
|
chargeCardRepaymentState: chargeCardRepayment,
|
|
493
480
|
chargeCardTransactionState: chargeCardTransaction,
|
|
@@ -559,7 +546,6 @@ const viewReducers = {
|
|
|
559
546
|
arAgingState: arAging,
|
|
560
547
|
auditReportViewState: auditReportView,
|
|
561
548
|
authenticationViewState: authentication,
|
|
562
|
-
autoSweepFlowState: autoSweepFlow,
|
|
563
549
|
autotransferRulesState: autotransferRules,
|
|
564
550
|
balanceSheetState: balanceSheet,
|
|
565
551
|
bankAccountViewState: bankAccountView,
|
|
@@ -572,14 +558,11 @@ const viewReducers = {
|
|
|
572
558
|
billsBulkActionViewState: billsBulkActionView,
|
|
573
559
|
cardBalanceState: cardBalance,
|
|
574
560
|
cardPaymentViewState: cardPaymentView,
|
|
575
|
-
cardPolicyDetailState: cardPolicyDetail,
|
|
576
|
-
cardPolicyListState: cardPolicyList,
|
|
577
561
|
cardUserOnboardingState: cardUserOnboarding,
|
|
578
562
|
cashbackDetailState: cashbackDetail,
|
|
579
563
|
cashBalanceState: cashBalance,
|
|
580
564
|
cashFlowState: cashFlow,
|
|
581
565
|
cashInCashOutState: cashInCashOut,
|
|
582
|
-
cashManagementOverviewState: cashManagementOverview,
|
|
583
566
|
cashPositionState: cashPosition,
|
|
584
567
|
chargeCardConfigState: chargeCardConfig,
|
|
585
568
|
chargeCardDetailState: chargeCardDetail,
|
|
@@ -598,7 +581,6 @@ const viewReducers = {
|
|
|
598
581
|
companyTaskManagerViewState: companyTaskManagerView,
|
|
599
582
|
companyViewState: companyView,
|
|
600
583
|
countryListState: countryList,
|
|
601
|
-
createCardPolicyState: createCardPolicy,
|
|
602
584
|
creditAgentEntityState: creditAgentEntity,
|
|
603
585
|
creditAgentViewState: creditAgentView,
|
|
604
586
|
dashboardState: dashboard,
|
|
@@ -188,10 +188,8 @@ const aiCfoView = createSlice({
|
|
|
188
188
|
draft.createSessionState.fetchState = 'In-Progress';
|
|
189
189
|
draft.createSessionState.error = undefined;
|
|
190
190
|
},
|
|
191
|
-
prepare(agentId, userId, contextRefId, contextType
|
|
192
|
-
return {
|
|
193
|
-
payload: { agentId, contextRefId, contextType, pageContext, userId },
|
|
194
|
-
};
|
|
191
|
+
prepare(agentId, userId, contextRefId, contextType) {
|
|
192
|
+
return { payload: { agentId, contextRefId, contextType, userId } };
|
|
195
193
|
},
|
|
196
194
|
},
|
|
197
195
|
createSessionSuccess(draft, action) {
|
|
@@ -222,7 +220,7 @@ const aiCfoView = createSlice({
|
|
|
222
220
|
draft.createSessionAndSubmitState.fetchState = 'In-Progress';
|
|
223
221
|
draft.createSessionAndSubmitState.error = undefined;
|
|
224
222
|
},
|
|
225
|
-
prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files
|
|
223
|
+
prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files) {
|
|
226
224
|
return {
|
|
227
225
|
payload: {
|
|
228
226
|
agentId,
|
|
@@ -232,7 +230,6 @@ const aiCfoView = createSlice({
|
|
|
232
230
|
createdAt,
|
|
233
231
|
question,
|
|
234
232
|
files,
|
|
235
|
-
pageContext,
|
|
236
233
|
},
|
|
237
234
|
};
|
|
238
235
|
},
|
|
@@ -66,11 +66,8 @@ function waitForChannelSubscription(pusherInstance, channelName, timeoutMs = 500
|
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
export const createSessionAndSubmitEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(createSessionAndSubmit.match), switchMap((action) => {
|
|
69
|
-
const { agentId, userId, questionAnswerId, questionId, createdAt, question, files,
|
|
70
|
-
const payload = {
|
|
71
|
-
agent_id: agentId,
|
|
72
|
-
...(pageContext != null && { page_context: pageContext }),
|
|
73
|
-
};
|
|
69
|
+
const { agentId, userId, questionAnswerId, questionId, createdAt, question, files, } = action.payload;
|
|
70
|
+
const payload = { agent_id: agentId };
|
|
74
71
|
return zeniAPI
|
|
75
72
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
|
|
76
73
|
.pipe(mergeMap((response) => {
|
|
@@ -5,12 +5,11 @@ import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload
|
|
|
5
5
|
import { date as zeniDate } from '../../../zeniDayJS';
|
|
6
6
|
import { createSession, createSessionFailure, createSessionSuccess, } from '../aiCfoViewReducer';
|
|
7
7
|
export const createSessionEpic = (actions$, _, zeniAPI) => actions$.pipe(filter(createSession.match), switchMap((action) => {
|
|
8
|
-
const { agentId, contextRefId, contextType,
|
|
8
|
+
const { agentId, contextRefId, contextType, userId } = action.payload;
|
|
9
9
|
const payload = {
|
|
10
10
|
agent_id: agentId,
|
|
11
11
|
...(contextRefId != null && { context_ref_id: contextRefId }),
|
|
12
12
|
...(contextType != null && { context_type: contextType }),
|
|
13
|
-
...(pageContext != null && { page_context: pageContext }),
|
|
14
13
|
};
|
|
15
14
|
return zeniAPI
|
|
16
15
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
|
|
@@ -2,23 +2,13 @@ import { of } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
3
|
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
4
4
|
import { fetchSuggestedQuestions, fetchSuggestedQuestionsFailure, fetchSuggestedQuestionsSuccess, } from '../aiCfoViewReducer';
|
|
5
|
-
/**
|
|
6
|
-
* GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=...
|
|
7
|
-
*
|
|
8
|
-
* Appends `&no_card_created=true` when the action payload sets
|
|
9
|
-
* `noCardCreated: true` (AI Card Creation flow on the cards list — the tenant
|
|
10
|
-
* has not yet created any card). Any other value omits the flag entirely so
|
|
11
|
-
* the existing call sites continue to issue the unchanged request.
|
|
12
|
-
*/
|
|
5
|
+
/** GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=... */
|
|
13
6
|
export const fetchSuggestedQuestionsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchSuggestedQuestions.match),
|
|
14
7
|
// mergeMap (not switchMap): each page_context is keyed separately in Redux; switchMap
|
|
15
8
|
// would cancel in-flight HTTP for context A when B is requested, leaving A stuck In-Progress.
|
|
16
9
|
mergeMap((action) => {
|
|
17
|
-
const { pageContext
|
|
10
|
+
const { pageContext } = action.payload;
|
|
18
11
|
const query = new URLSearchParams({ page_context: pageContext });
|
|
19
|
-
if (noCardCreated === true) {
|
|
20
|
-
query.set('no_card_created', 'true');
|
|
21
|
-
}
|
|
22
12
|
const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?${query.toString()}`;
|
|
23
13
|
return zeniAPI.getJSON(url).pipe(mergeMap((response) => {
|
|
24
14
|
if (isSuccessResponse(response) && response.data != null) {
|
|
@@ -3,8 +3,7 @@ export const initialUIState = {
|
|
|
3
3
|
filterText: '',
|
|
4
4
|
sortKey: 'dueDate',
|
|
5
5
|
sortOrder: 'descending',
|
|
6
|
-
|
|
7
|
-
filters: {},
|
|
6
|
+
pageToken: null,
|
|
8
7
|
};
|
|
9
8
|
const initialMetrics = {
|
|
10
9
|
closed: 0,
|
|
@@ -19,13 +18,6 @@ export const initialState = {
|
|
|
19
18
|
metrics: initialMetrics,
|
|
20
19
|
metricsFetchState: 'Not-Started',
|
|
21
20
|
uiState: initialUIState,
|
|
22
|
-
cockpitContext: {
|
|
23
|
-
fetchState: 'Not-Started',
|
|
24
|
-
error: undefined,
|
|
25
|
-
companyIds: [],
|
|
26
|
-
userIds: [],
|
|
27
|
-
userGroupIds: [],
|
|
28
|
-
},
|
|
29
21
|
hasValidState() {
|
|
30
22
|
return this.fetchState == 'Completed';
|
|
31
23
|
},
|
|
@@ -36,11 +28,10 @@ const companyTaskManagerView = createSlice({
|
|
|
36
28
|
initialState,
|
|
37
29
|
reducers: {
|
|
38
30
|
fetchCompanyTaskManagerView: {
|
|
39
|
-
prepare(
|
|
31
|
+
prepare(pageToken, sortKey, sortOrder, keepExistingListItems = true, searchString) {
|
|
40
32
|
return {
|
|
41
33
|
payload: {
|
|
42
|
-
|
|
43
|
-
filters,
|
|
34
|
+
pageToken,
|
|
44
35
|
searchString,
|
|
45
36
|
sortKey,
|
|
46
37
|
sortOrder,
|
|
@@ -49,10 +40,10 @@ const companyTaskManagerView = createSlice({
|
|
|
49
40
|
};
|
|
50
41
|
},
|
|
51
42
|
reducer(draft, action) {
|
|
52
|
-
const {
|
|
43
|
+
const { pageToken, searchString, sortKey, sortOrder, keepExistingListItems, } = action.payload;
|
|
53
44
|
draft.uiState.sortKey = sortKey;
|
|
54
45
|
draft.uiState.sortOrder = sortOrder;
|
|
55
|
-
draft.uiState.
|
|
46
|
+
draft.uiState.pageToken = pageToken;
|
|
56
47
|
if (keepExistingListItems === false) {
|
|
57
48
|
draft.taskIds = [];
|
|
58
49
|
}
|
|
@@ -65,14 +56,15 @@ const companyTaskManagerView = createSlice({
|
|
|
65
56
|
},
|
|
66
57
|
updateCompanyTaskManagerViewOnSuccess(draft, action) {
|
|
67
58
|
const { data } = action.payload;
|
|
68
|
-
const tasks = data
|
|
59
|
+
const { tasks, query, total_count } = data;
|
|
69
60
|
draft.fetchState = 'Completed';
|
|
70
61
|
draft.error = undefined;
|
|
71
62
|
draft.taskIds = [...draft.taskIds, ...tasks.map((task) => task.task_id)];
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
// consider total count only when fetching for first time
|
|
64
|
+
if (draft.uiState.filterText === '' && draft.uiState.pageToken == null) {
|
|
65
|
+
draft.totalTaskCount = total_count;
|
|
74
66
|
}
|
|
75
|
-
draft.uiState.
|
|
67
|
+
draft.uiState.pageToken = query.page_token;
|
|
76
68
|
},
|
|
77
69
|
updateCompanyTaskManagerViewOnFailure: {
|
|
78
70
|
reducer(draft, action) {
|
|
@@ -93,30 +85,10 @@ const companyTaskManagerView = createSlice({
|
|
|
93
85
|
updateTaskManagerMetricsOnFailure(draft) {
|
|
94
86
|
draft.metricsFetchState = 'Error';
|
|
95
87
|
},
|
|
96
|
-
updateCompanyTaskManagerViewFilters(draft, action) {
|
|
97
|
-
if (action.payload.filters != null) {
|
|
98
|
-
draft.uiState.filters = action.payload.filters;
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
fetchCockpitContext(draft) {
|
|
102
|
-
draft.cockpitContext.fetchState = 'In-Progress';
|
|
103
|
-
draft.cockpitContext.error = undefined;
|
|
104
|
-
},
|
|
105
|
-
updateCockpitContextOnSuccess(draft, action) {
|
|
106
|
-
draft.cockpitContext.fetchState = 'Completed';
|
|
107
|
-
draft.cockpitContext.error = undefined;
|
|
108
|
-
draft.cockpitContext.companyIds = action.payload.companyIds;
|
|
109
|
-
draft.cockpitContext.userIds = action.payload.userIds;
|
|
110
|
-
draft.cockpitContext.userGroupIds = action.payload.userGroupIds;
|
|
111
|
-
},
|
|
112
|
-
updateCockpitContextOnFailure(draft, action) {
|
|
113
|
-
draft.cockpitContext.fetchState = 'Error';
|
|
114
|
-
draft.cockpitContext.error = action.payload;
|
|
115
|
-
},
|
|
116
88
|
clearCompanyTaskManagerView(draft) {
|
|
117
89
|
Object.assign(draft, initialState);
|
|
118
90
|
},
|
|
119
91
|
},
|
|
120
92
|
});
|
|
121
|
-
export const { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnSuccess, updateCompanyTaskManagerViewOnFailure, fetchTaskManagerMetrics, updateTaskManagerMetrics, updateTaskManagerMetricsOnFailure, clearCompanyTaskManagerView,
|
|
93
|
+
export const { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnSuccess, updateCompanyTaskManagerViewOnFailure, fetchTaskManagerMetrics, updateTaskManagerMetrics, updateTaskManagerMetricsOnFailure, clearCompanyTaskManagerView, } = companyTaskManagerView.actions;
|
|
122
94
|
export default companyTaskManagerView.reducer;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
3
|
-
import { getCompanyByCompanyId, getCompanyByCompanyIds, } from '../../entity/company/companySelector';
|
|
2
|
+
import { getCompanyByCompanyId } from '../../entity/company/companySelector';
|
|
4
3
|
import { getTagsByIds } from '../../entity/tag/tagSelector';
|
|
5
4
|
import { getTaskById } from '../../entity/task/taskSelector';
|
|
6
5
|
import { getUserByUserId, getUsersByUserIds, } from '../../entity/user/userSelector';
|
|
7
6
|
export const getCompanyTaskManagerView = createSelector((state) => state.companyTaskManagerViewState, (state) => state.companyState, (state) => state.userState, (state) => state.taskState, (state) => state.tagState, (companyTaskManagerViewState, companyState, userState, taskState, tagState) => {
|
|
8
|
-
const { taskIds, uiState, totalTaskCount, metrics, metricsFetchState } = companyTaskManagerViewState;
|
|
7
|
+
const { taskIds, uiState, fetchState, error, totalTaskCount, metrics, metricsFetchState, } = companyTaskManagerViewState;
|
|
9
8
|
const tasksList = [];
|
|
10
9
|
taskIds.forEach((taskId) => {
|
|
11
10
|
const task = getTaskById(taskState, taskId);
|
|
@@ -27,22 +26,13 @@ export const getCompanyTaskManagerView = createSelector((state) => state.company
|
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
|
-
const allCompanyIds = companyTaskManagerViewState.cockpitContext.companyIds;
|
|
31
|
-
const companies = getCompanyByCompanyIds(companyState, allCompanyIds).map((c) => c.company);
|
|
32
|
-
const users = getUsersByUserIds(userState, companyTaskManagerViewState.cockpitContext.userIds);
|
|
33
|
-
const fetchStateAndError = reduceAnyFetchState([
|
|
34
|
-
companyTaskManagerViewState,
|
|
35
|
-
companyTaskManagerViewState.cockpitContext,
|
|
36
|
-
]);
|
|
37
29
|
return {
|
|
38
|
-
companies,
|
|
39
30
|
metrics,
|
|
40
31
|
metricsFetchState,
|
|
41
32
|
tasksList,
|
|
42
33
|
uiState,
|
|
43
|
-
fetchState
|
|
44
|
-
error
|
|
34
|
+
fetchState,
|
|
35
|
+
error,
|
|
45
36
|
totalTaskCount,
|
|
46
|
-
users,
|
|
47
37
|
};
|
|
48
38
|
});
|
|
@@ -1,35 +1,51 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { getSortOrder } from '../../../commonPayloadTypes/sortOrderPayload';
|
|
4
|
+
import { updateCompanies } from '../../../entity/company/companyReducer';
|
|
4
5
|
import { updateTags } from '../../../entity/tag/tagReducer';
|
|
5
6
|
import { updateTasks } from '../../../entity/task/taskReducer';
|
|
7
|
+
import { updateAllUsers } from '../../../entity/user/userReducer';
|
|
6
8
|
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
7
9
|
import { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnFailure, updateCompanyTaskManagerViewOnSuccess, } from '../companyTaskManagerViewReducer';
|
|
8
|
-
const
|
|
10
|
+
const toSortKeyPayload = (sortKey) => {
|
|
11
|
+
switch (sortKey) {
|
|
12
|
+
case 'taskName':
|
|
13
|
+
return 'name';
|
|
14
|
+
case 'dueDate':
|
|
15
|
+
return 'due_date';
|
|
16
|
+
case 'createdBy':
|
|
17
|
+
return 'created_by';
|
|
18
|
+
case 'name':
|
|
19
|
+
return 'company_name';
|
|
20
|
+
default:
|
|
21
|
+
return sortKey;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
9
24
|
export const fetchCompanyTaskManagerViewEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchCompanyTaskManagerView.match), switchMap((action) => {
|
|
10
|
-
const {
|
|
25
|
+
const { pageToken, sortKey, sortOrder, searchString } = action.payload;
|
|
11
26
|
const queryValue = {
|
|
12
|
-
|
|
13
|
-
from: fromOffset,
|
|
14
|
-
global_search: searchString ?? '',
|
|
27
|
+
page_token: pageToken,
|
|
15
28
|
sort_by: toSortKeyPayload(sortKey),
|
|
16
29
|
sort_order: getSortOrder(sortOrder),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
? { filter_by: toFilterByPayload(filters) }
|
|
20
|
-
: {}),
|
|
30
|
+
search_text: searchString ?? '',
|
|
31
|
+
view: 'cockpit_task_manager_view',
|
|
21
32
|
};
|
|
22
33
|
return zeniAPI
|
|
23
|
-
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels/tasks
|
|
34
|
+
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels/tasks?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
|
|
24
35
|
.pipe(mergeMap((response) => {
|
|
25
36
|
if (isSuccessResponse(response) && response.data != null) {
|
|
26
|
-
const tasksList = response.data.
|
|
37
|
+
const tasksList = response.data.tasks;
|
|
27
38
|
const actions = [
|
|
28
39
|
updateCompanyTaskManagerViewOnSuccess({
|
|
29
40
|
data: response.data,
|
|
30
41
|
}),
|
|
31
42
|
updateTasks(tasksList),
|
|
32
|
-
|
|
43
|
+
updateCompanies({
|
|
44
|
+
payload: response.data.companies,
|
|
45
|
+
schema: {},
|
|
46
|
+
}),
|
|
47
|
+
updateTags(tasksList.map((task) => task.tags).flat()),
|
|
48
|
+
updateAllUsers({ users: response.data.users }),
|
|
33
49
|
];
|
|
34
50
|
return from(actions);
|
|
35
51
|
}
|
|
@@ -46,28 +62,3 @@ export const fetchCompanyTaskManagerViewEpic = (actions$, _state$, zeniAPI) => a
|
|
|
46
62
|
return from(actions);
|
|
47
63
|
}));
|
|
48
64
|
}));
|
|
49
|
-
const toSortKeyPayload = (sortKey) => {
|
|
50
|
-
switch (sortKey) {
|
|
51
|
-
case 'taskName':
|
|
52
|
-
return 'name';
|
|
53
|
-
case 'dueDate':
|
|
54
|
-
return 'due_date';
|
|
55
|
-
case 'createdBy':
|
|
56
|
-
return 'created_by';
|
|
57
|
-
case 'name':
|
|
58
|
-
return 'company_name';
|
|
59
|
-
default:
|
|
60
|
-
return sortKey;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const toFilterByPayload = (filters) => {
|
|
64
|
-
if (filters.categories == null) {
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
return filters.categories.map((category) => ({
|
|
68
|
-
field: category.field ?? '',
|
|
69
|
-
operator: category.matchingOperator === 'equal' ? 'is' : 'is_not',
|
|
70
|
-
values: category.values.map((v) => String(v)),
|
|
71
|
-
join: category.valuesCombinationOperator === 'ALL' ? 'and' : 'or',
|
|
72
|
-
}));
|
|
73
|
-
};
|
package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js
CHANGED
|
@@ -2,7 +2,7 @@ import { from } from 'rxjs';
|
|
|
2
2
|
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { updateCompanies } from '../../../../entity/company/companyReducer';
|
|
4
4
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
5
|
-
import {
|
|
5
|
+
import { updateTenantCapitalizationOnboardingDismissed, updateTenantCapitalizationAccountOverride, } from '../../../../entity/tenant/tenantReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
|
|
7
7
|
import { updateCapitalizationAccountThreshold, updateCapitalizationAccountThresholdFailure, updateCapitalizationAccountThresholdSuccess, } from '../../companyViewReducer';
|
|
8
8
|
export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(updateCapitalizationAccountThreshold.match), switchMap((action) => {
|
|
@@ -50,9 +50,9 @@ export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniA
|
|
|
50
50
|
accountId,
|
|
51
51
|
threshold,
|
|
52
52
|
allOverrides: allOverrides !== undefined
|
|
53
|
-
? Object.keys(finalOverrides).length > 0
|
|
53
|
+
? (Object.keys(finalOverrides).length > 0
|
|
54
54
|
? finalOverrides
|
|
55
|
-
: null
|
|
55
|
+
: null)
|
|
56
56
|
: undefined,
|
|
57
57
|
}));
|
|
58
58
|
if (dismissOnboardingForAccount === true) {
|
|
@@ -21,7 +21,7 @@ export const fetchAllCockpitViewsEpic = (actions$, state$) => actions$.pipe(filt
|
|
|
21
21
|
fetchReviewCompanyView(),
|
|
22
22
|
fetchCompanyHealthMetricView(),
|
|
23
23
|
fetchCompanyMetaData(),
|
|
24
|
-
fetchCompanyTaskManagerView(
|
|
24
|
+
fetchCompanyTaskManagerView(null, 'dueDate', 'descending', false),
|
|
25
25
|
fetchCompanyHealthMetricConfig(),
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
@@ -74,7 +74,7 @@ export const fetchAllCockpitViewsEpic = (actions$, state$) => actions$.pipe(filt
|
|
|
74
74
|
}
|
|
75
75
|
if (state.companyTaskManagerViewState.fetchState !== 'In-Progress' &&
|
|
76
76
|
state.companyTaskManagerViewState.hasValidState() === false) {
|
|
77
|
-
fetchActions.push(fetchCompanyTaskManagerView(
|
|
77
|
+
fetchActions.push(fetchCompanyTaskManagerView(null, 'dueDate', 'descending', false));
|
|
78
78
|
}
|
|
79
79
|
return from(fetchActions);
|
|
80
80
|
}
|
|
@@ -57,20 +57,13 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
|
|
|
57
57
|
const hasTasksCardAccess = tenants.currentTenant?.excludedResources?.resources?.find((resource) => resource.resource === '/reports/task_card') == null;
|
|
58
58
|
let cardsCopy = [...cards];
|
|
59
59
|
const cardsToRemove = new Set();
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
let isZeniPromoCardOn4thPosition = true;
|
|
63
|
-
const isChargeCardEnabled = chargeCardInfo?.isChargeCardEnabled ?? false;
|
|
60
|
+
// Credit-only express-interest promo; always omitted while cards are company-product-gated. Reintroduce only with an explicit show rule.
|
|
61
|
+
cardsToRemove.add('zeni_promo_card');
|
|
64
62
|
if (cardBalance != null &&
|
|
65
63
|
cardBalance.fetchState === 'Completed' &&
|
|
66
64
|
(cardBalance.accountsInOrder.length === 0 ||
|
|
67
65
|
cardBalance.status?.code !== 200)) {
|
|
68
66
|
cardsToRemove.add('card_balance');
|
|
69
|
-
isZeniPromoCardOn4thPosition = false;
|
|
70
|
-
}
|
|
71
|
-
if (isChargeCardEnabled || creditAccountLimit === -1) {
|
|
72
|
-
cardsToRemove.add('zeni_promo_card');
|
|
73
|
-
isZeniPromoCardOn4thPosition = false;
|
|
74
67
|
}
|
|
75
68
|
if (hasTopExAccess === false) {
|
|
76
69
|
cardsToRemove.add('top_expenses');
|
|
@@ -160,57 +153,29 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
|
|
|
160
153
|
cardsToRemove.add('bill_pay_card');
|
|
161
154
|
cardsToRemove.add('reimbursement_card');
|
|
162
155
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (isZeniPromoCardOn4thPosition) {
|
|
156
|
+
const showZeniAccountsPromoCard = zeniAccountsPromoCard.isShowDepositAccountsPromo === true;
|
|
157
|
+
if (showZeniAccountsPromoCard) {
|
|
166
158
|
cardsToRemove.add('bill_pay_promo_card');
|
|
167
159
|
cardsToRemove.add('reimbursement_promo_card');
|
|
168
|
-
cardsToRemove.add('zeni_accounts_promo_card');
|
|
169
160
|
}
|
|
170
161
|
else {
|
|
171
|
-
|
|
172
|
-
if (showZeniAccountsPromoCard) {
|
|
173
|
-
cardsToRemove.add('bill_pay_promo_card');
|
|
174
|
-
cardsToRemove.add('reimbursement_promo_card');
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
cardsToRemove.add('zeni_accounts_promo_card');
|
|
178
|
-
}
|
|
162
|
+
cardsToRemove.add('zeni_accounts_promo_card');
|
|
179
163
|
}
|
|
180
164
|
// remove treasury promo card if its already enabled
|
|
181
165
|
const isTreasuryTOSAccepted = tenants.currentTenant.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;
|
|
182
166
|
if (isTreasuryTOSAccepted === true || isTreasuryFeatureEnabled === false) {
|
|
183
167
|
cardsToRemove.add('treasury_promo_card');
|
|
184
168
|
}
|
|
185
|
-
// More than one promo card can't be shown
|
|
186
|
-
// There is an exception when number of card accounts connected to QBO is zero, in that case we replace card_balance tile in 2nd position with zeni_promo_card,
|
|
187
|
-
// so 3rd position tile could be any other promo card based on priority order.
|
|
169
|
+
// More than one promo card can't be shown on the dashboard (priority: Treasury > Accounts > Bill > Remi).
|
|
188
170
|
const PROMO_CARD_PRIORITY_ORDER = [
|
|
189
171
|
'treasury_promo_card',
|
|
190
|
-
'zeni_promo_card',
|
|
191
172
|
'zeni_accounts_promo_card',
|
|
192
173
|
'bill_pay_promo_card',
|
|
193
174
|
'reimbursement_promo_card',
|
|
194
175
|
];
|
|
195
|
-
const
|
|
196
|
-
const promoCardsTobeRetained = promoCards.filter((c) => !cardsToRemove.has(c));
|
|
176
|
+
const promoCardsTobeRetained = PROMO_CARD_PRIORITY_ORDER.filter((c) => !cardsToRemove.has(c));
|
|
197
177
|
if (promoCardsTobeRetained.length > 1) {
|
|
198
|
-
const cardsToKeep = new Set();
|
|
199
|
-
if (cardsToRemove.has('card_balance') &&
|
|
200
|
-
promoCardsTobeRetained.includes('zeni_promo_card')) {
|
|
201
|
-
// zeni_promo_card is the primary promo card when card_balance is removed
|
|
202
|
-
cardsToKeep.add('zeni_promo_card');
|
|
203
|
-
// Also keep the highest priority non-zeni promo card as the 2nd
|
|
204
|
-
const secondCard = promoCardsTobeRetained.find((card) => card !== 'zeni_promo_card');
|
|
205
|
-
if (secondCard != null) {
|
|
206
|
-
cardsToKeep.add(secondCard);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
// Keep only the highest priority promo card
|
|
211
|
-
cardsToKeep.add(promoCardsTobeRetained[0]);
|
|
212
|
-
}
|
|
213
|
-
// Remove all other promo cards not in cardsToKeep
|
|
178
|
+
const cardsToKeep = new Set([promoCardsTobeRetained[0]]);
|
|
214
179
|
promoCardsTobeRetained.forEach((card) => {
|
|
215
180
|
if (!cardsToKeep.has(card)) {
|
|
216
181
|
cardsToRemove.add(card);
|
|
@@ -5,12 +5,12 @@ import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
|
5
5
|
import { getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, } from '../../../entity/tenant/tenantSelector';
|
|
6
6
|
import { getTransactionWithCOT } from '../../../entity/transaction/transactionHelper';
|
|
7
7
|
import { getSupportedTransactionsByIds } from '../../../entity/transaction/transactionSelector';
|
|
8
|
+
import { applyTransactionFilters, } from '../transactionFilterHelpers';
|
|
8
9
|
import { getAccountList, getNestedAccountListHierarchy, getUncategorizedAccounts, } from '../../accountList/accountListSelector';
|
|
9
10
|
import { getClassList, getNestedClassListHierarchy, } from '../../classList/classListSelector';
|
|
10
11
|
import { getResolvedTransferAccounts } from '../../createTransferEntry/createTransferEntrySelector';
|
|
11
12
|
import { getProjectList } from '../../projectList/projectListSelector';
|
|
12
13
|
import { getAllSteps } from '../selectorTypes/expenseAutomationViewSelectorTypes';
|
|
13
|
-
import { applyTransactionFilters, } from '../transactionFilterHelpers';
|
|
14
14
|
// Walks the tab's transactionReviewLocalDataById map and returns
|
|
15
15
|
// `{ [transactionId]: true }` for every transaction that has at least
|
|
16
16
|
// one line whose targeted-fetch is In-Progress. Pulled out as a plain
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
|
-
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { removeFiles } from '../../../entity/file/fileReducer';
|
|
4
4
|
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
5
5
|
import { deleteFile, deleteFileFailure, deleteFileSuccess, } from '../fileViewReducer';
|
|
6
|
-
export const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFile.match),
|
|
6
|
+
export const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFile.match), switchMap((action) => {
|
|
7
7
|
/**
|
|
8
8
|
* tenantId is required for deleting onboarding files.
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
|
-
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
2
|
+
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
3
|
import { removeFiles } from '../../../entity/file/fileReducer';
|
|
4
4
|
import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
|
|
5
5
|
import { deleteFileList, deleteFileListFailure, deleteFileListSuccess, } from '../fileViewReducer';
|
|
6
|
-
export const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFileList.match),
|
|
6
|
+
export const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFileList.match), switchMap((action) => {
|
|
7
7
|
const { fileIds } = action.payload;
|
|
8
8
|
return zeniAPI
|
|
9
9
|
.deleteAndGetJSON(`${zeniAPI.apiEndPoints.fileMicroServiceBaseUrl}/1.0/files?query=${encodeURIComponent(JSON.stringify({ file_ids: fileIds }))}`)
|