@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
|
@@ -1,67 +1,28 @@
|
|
|
1
1
|
import { stringToUnion } from '../../../commonStateTypes/stringToUnion';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// sub-step under the old `qbo_connection` no longer exists.
|
|
6
|
-
export const ZENI_USER_REQUIRED_ONBOARDING_STEPS = ['setup_billing'];
|
|
2
|
+
export const ZENI_USER_REQUIRED_ONBOARDING_STEPS = [
|
|
3
|
+
'link_payment_account',
|
|
4
|
+
];
|
|
7
5
|
export const CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO = [
|
|
8
|
-
'
|
|
6
|
+
'qbo_connection',
|
|
9
7
|
];
|
|
10
8
|
export const REQUIRED_ONBOARDING_STEPS = [
|
|
11
9
|
...ZENI_USER_REQUIRED_ONBOARDING_STEPS,
|
|
12
10
|
...CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO,
|
|
13
11
|
];
|
|
14
12
|
export const ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT = [
|
|
15
|
-
'
|
|
13
|
+
'company_officer',
|
|
14
|
+
'company_details',
|
|
16
15
|
];
|
|
17
16
|
export const ALL_ZENI_USER_ONBOARDING_STEPS = [
|
|
18
17
|
...ZENI_USER_REQUIRED_ONBOARDING_STEPS,
|
|
19
18
|
...ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
|
|
20
19
|
];
|
|
21
|
-
// Zeni-team-connects-QBO bookkeeping tenants: skip the `connect_ledger` step
|
|
22
|
-
// (Zeni already did it) but keep `connect_data_source` so the customer can
|
|
23
|
-
// still wire up non-QBO integrations (Plaid, Stripe, HubSpot, email, etc.).
|
|
24
|
-
export const ALL_ZENI_USER_BOOKKEEPING_ONBOARDING_STEPS = [
|
|
25
|
-
...ZENI_USER_REQUIRED_ONBOARDING_STEPS,
|
|
26
|
-
'connect_data_source',
|
|
27
|
-
...ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
|
|
28
|
-
];
|
|
29
20
|
export const ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO = [
|
|
30
21
|
...CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO,
|
|
31
|
-
'connect_data_source',
|
|
32
22
|
...ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
|
|
33
23
|
];
|
|
34
24
|
export const ALL_ONBOARDING_STEPS = [
|
|
35
25
|
...REQUIRED_ONBOARDING_STEPS,
|
|
36
|
-
'connect_data_source',
|
|
37
26
|
...ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
|
|
38
27
|
];
|
|
39
28
|
export const toOnboardingStepType = (v) => stringToUnion(v, ALL_ONBOARDING_STEPS);
|
|
40
|
-
// Per-step sub-state. Lives in Redux so the save epic can tell, for example,
|
|
41
|
-
// an officer-form save from a company-details save while both share
|
|
42
|
-
// currentStep = 'verification'.
|
|
43
|
-
// - 'default' generic landing sub-state.
|
|
44
|
-
// - 'ai-activating' connect_ledger interstitial during AI activation.
|
|
45
|
-
// - 'unlock-stack' verification landing — VerifyUnlockFinancialStackPage.
|
|
46
|
-
// - 'company_officer' verification → officer form.
|
|
47
|
-
// - 'company_details' verification → company details form.
|
|
48
|
-
export const ALL_ONBOARDING_SUB_STEPS = [
|
|
49
|
-
'default',
|
|
50
|
-
'ai-activating',
|
|
51
|
-
'unlock-stack',
|
|
52
|
-
'company_officer',
|
|
53
|
-
'company_details',
|
|
54
|
-
];
|
|
55
|
-
export const toOnboardingSubStepType = (v) => stringToUnion(v, ALL_ONBOARDING_SUB_STEPS);
|
|
56
|
-
export const emptyAiAgentsActivationCounts = {
|
|
57
|
-
customerCount: 0,
|
|
58
|
-
glAccountCount: 0,
|
|
59
|
-
targetTransactionCount: 0,
|
|
60
|
-
transactionCount: 0,
|
|
61
|
-
vendorCount: 0,
|
|
62
|
-
};
|
|
63
|
-
export const emptyAiAgentsActivationSubview = {
|
|
64
|
-
counts: emptyAiAgentsActivationCounts,
|
|
65
|
-
fetchStatus: { fetchState: 'Not-Started', error: undefined },
|
|
66
|
-
phases: [],
|
|
67
|
-
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { filterChargeCardRolesWhenProductDisabled } from '../../entity/company/cardsVisibilityHelpers';
|
|
4
|
+
import { getCurrentTenant } from '../../entity/tenant/tenantSelector';
|
|
3
5
|
import { getUserByUserId } from '../../entity/user/userSelector';
|
|
4
6
|
import { getUserRoleByUserId } from '../../entity/userRole/userRoleSelector';
|
|
5
7
|
import { initializeEditPerson, peopleSaveDataInLocalStore, } from './peopleReducer';
|
|
@@ -18,11 +20,13 @@ export const initializeEditPersonEpic = (actions$, state$) => actions$.pipe(filt
|
|
|
18
20
|
};
|
|
19
21
|
const email = person.user?.email;
|
|
20
22
|
const { userRoles, managerUserId: managerId, accountingClassIDs, } = person.userRole;
|
|
23
|
+
const currentTenant = getCurrentTenant(state$.value);
|
|
24
|
+
const rolesForLocalStore = filterChargeCardRolesWhenProductDisabled(userRoles, currentTenant.company);
|
|
21
25
|
fetchActions.push(peopleSaveDataInLocalStore({
|
|
22
26
|
peopleLocalData: [
|
|
23
27
|
{
|
|
24
28
|
email: email != null ? [email] : [],
|
|
25
|
-
role:
|
|
29
|
+
role: rolesForLocalStore,
|
|
26
30
|
managerId,
|
|
27
31
|
departmentId: accountingClassIDs[0],
|
|
28
32
|
},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { of } from 'rxjs';
|
|
2
2
|
import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
|
|
3
|
+
import { filterChargeCardRolesWhenProductDisabled } from '../../entity/company/cardsVisibilityHelpers';
|
|
3
4
|
import { openSnackbar } from '../../entity/snackbar/snackbarReducer';
|
|
5
|
+
import { getCurrentTenant } from '../../entity/tenant/tenantSelector';
|
|
4
6
|
import { updateAllUsers } from '../../entity/user/userReducer';
|
|
5
7
|
import { updateUserRoles } from '../../entity/userRole/userRoleReducer';
|
|
6
8
|
import { createZeniAPIStatus, isSuccessResponse } from '../../responsePayload';
|
|
@@ -8,7 +10,8 @@ import { updateManagersListOnRoleChange, } from './helpers/updateManagersListOnR
|
|
|
8
10
|
import { invitePeople, invitePeopleFailure, invitePeopleSuccess, } from './peopleReducer';
|
|
9
11
|
export const invitePeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(invitePeople.match), switchMap(() => {
|
|
10
12
|
const peopleLocalData = state$.value.peopleState.personDetails.localData;
|
|
11
|
-
const
|
|
13
|
+
const currentTenant = getCurrentTenant(state$.value);
|
|
14
|
+
const invitePayload = toInvitePayloadFromLocalData(peopleLocalData, currentTenant.company);
|
|
12
15
|
return zeniAPI
|
|
13
16
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/invites`, invitePayload)
|
|
14
17
|
.pipe(mergeMap((response) => {
|
|
@@ -31,11 +34,11 @@ export const invitePeopleEpic = (actions$, state$, zeniAPI) => actions$.pipe(fil
|
|
|
31
34
|
}
|
|
32
35
|
}), catchError((error) => of(invitePeopleFailure(createZeniAPIStatus('Unexpected error', 'User Roles REST API call errored out' + JSON.stringify(error))))));
|
|
33
36
|
}));
|
|
34
|
-
const toInvitePayloadFromLocalData = (peopleLocalData) => {
|
|
37
|
+
const toInvitePayloadFromLocalData = (peopleLocalData, company) => {
|
|
35
38
|
const invitedPeople = peopleLocalData
|
|
36
39
|
.map((local) => {
|
|
37
40
|
const rolesPayload = {};
|
|
38
|
-
local.role.forEach((role) => {
|
|
41
|
+
filterChargeCardRolesWhenProductDisabled(local.role, company).forEach((role) => {
|
|
39
42
|
rolesPayload[`is_${role}`] = true;
|
|
40
43
|
});
|
|
41
44
|
return local.email.map((mail) => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { from, of } from 'rxjs';
|
|
2
2
|
import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
3
|
+
import { filterChargeCardRolesWhenProductDisabled } from '../../entity/company/cardsVisibilityHelpers';
|
|
3
4
|
import { openSnackbar } from '../../entity/snackbar/snackbarReducer';
|
|
5
|
+
import { getCurrentTenant } from '../../entity/tenant/tenantSelector';
|
|
4
6
|
import { updateUserRoles } from '../../entity/userRole/userRoleReducer';
|
|
5
7
|
import { hasZeniRoleOrCompanyOfficerAccess } from '../../entity/userRole/userRoleType';
|
|
6
8
|
import { createZeniAPIStatus, isSuccessResponse } from '../../responsePayload';
|
|
@@ -10,7 +12,8 @@ export const peopleSaveUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pip
|
|
|
10
12
|
const { localData, person } = state$.value.peopleState.personDetails;
|
|
11
13
|
const { userRole } = person;
|
|
12
14
|
const { isZeniTenant } = action.payload;
|
|
13
|
-
const
|
|
15
|
+
const currentTenant = getCurrentTenant(state$.value);
|
|
16
|
+
const updatesPayload = toPersonUpdatableInfoPayload(localData[0], isZeniTenant, person, currentTenant.company);
|
|
14
17
|
return zeniAPI
|
|
15
18
|
.putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/user-roles/${userRole.userRoleId}`, updatesPayload)
|
|
16
19
|
.pipe(mergeMap((response) => {
|
|
@@ -37,7 +40,7 @@ export const peopleSaveUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pip
|
|
|
37
40
|
}
|
|
38
41
|
}), catchError((error) => of(peopleSaveUpdatesFailure(createZeniAPIStatus('Unexpected error', 'User Roles save updates errored out' + JSON.stringify(error))))));
|
|
39
42
|
}));
|
|
40
|
-
const toPersonUpdatableInfoPayload = (info, isZeniTenant, person) => {
|
|
43
|
+
const toPersonUpdatableInfoPayload = (info, isZeniTenant, person, company) => {
|
|
41
44
|
const payload = {};
|
|
42
45
|
const { accountingClassIDs, managerUserId, userRoles } = person.userRole;
|
|
43
46
|
if (info.departmentId != null &&
|
|
@@ -52,6 +55,7 @@ const toPersonUpdatableInfoPayload = (info, isZeniTenant, person) => {
|
|
|
52
55
|
info.managerId !== 'no_manager' ? info.managerId : null;
|
|
53
56
|
}
|
|
54
57
|
if (info.role != null) {
|
|
58
|
+
const rolesForUpdate = filterChargeCardRolesWhenProductDisabled(info.role, company);
|
|
55
59
|
/**
|
|
56
60
|
* Mark previously selected roles as false and new roles true
|
|
57
61
|
*/
|
|
@@ -62,7 +66,7 @@ const toPersonUpdatableInfoPayload = (info, isZeniTenant, person) => {
|
|
|
62
66
|
}
|
|
63
67
|
rolesPayload[`is_${role}`] = false;
|
|
64
68
|
});
|
|
65
|
-
|
|
69
|
+
rolesForUpdate.forEach((role) => {
|
|
66
70
|
rolesPayload[`is_${role}`] = true;
|
|
67
71
|
});
|
|
68
72
|
Object.assign(payload, rolesPayload);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isCardsProductEnabledOnCompany } from '../../entity/company/cardsVisibilityHelpers';
|
|
1
2
|
import { isTenantAccountingServicesEnabled, isTenantBankingOnly, isTenantCardsOnly, } from '../../entity/tenant/tenantSelector';
|
|
2
3
|
import { hasAnyAdminLevelAccess, hasBillPayAccessible, hasBookKeepingAdminLevelAccess, hasBookKeepingUserLevelAccess, hasChargeCardAccessible, hasFullOrAdminLevelAccess, hasInvestorBankerLevelAccess, hasReimbursementAccess, hasReimbursementAccessible, hasSuperAdminLevelAccess, hasZeniAccountsAccessible, isZeniSignedInUser, } from '../../entity/userRole/userRoleType';
|
|
3
4
|
import { isVendorsTabVisible } from '../vendorList/vendorListSelector';
|
|
@@ -57,7 +58,8 @@ export const isBankConnectionsTabVisible = (currentTenant, userRoleMap) => {
|
|
|
57
58
|
return (hasBillPayAccessible(currentTenant, userRoleMap) ||
|
|
58
59
|
hasReimbursementAccessible(currentTenant, userRoleMap) ||
|
|
59
60
|
hasZeniAccountsAccessible(currentTenant, userRoleMap) ||
|
|
60
|
-
hasChargeCardAccessible(currentTenant, userRoleMap)
|
|
61
|
+
(hasChargeCardAccessible(currentTenant, userRoleMap) &&
|
|
62
|
+
isCardsProductEnabledOnCompany(currentTenant.company)));
|
|
61
63
|
}
|
|
62
64
|
else {
|
|
63
65
|
return false;
|
|
@@ -71,7 +73,8 @@ export const isBusinessVerificationTabVisible = (currentTenant, userRoleMap) =>
|
|
|
71
73
|
return (hasBillPayAccessible(currentTenant, userRoleMap) ||
|
|
72
74
|
hasReimbursementAccessible(currentTenant, userRoleMap) ||
|
|
73
75
|
hasZeniAccountsAccessible(currentTenant, userRoleMap) ||
|
|
74
|
-
hasChargeCardAccessible(currentTenant, userRoleMap)
|
|
76
|
+
(hasChargeCardAccessible(currentTenant, userRoleMap) &&
|
|
77
|
+
isCardsProductEnabledOnCompany(currentTenant.company)));
|
|
75
78
|
}
|
|
76
79
|
else {
|
|
77
80
|
return false;
|
|
@@ -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
|
};
|
|
@@ -13,7 +13,6 @@ export const initialState = {
|
|
|
13
13
|
newApprovalRuleId: undefined,
|
|
14
14
|
approvalRulesDeleteStatusById: {},
|
|
15
15
|
billPaySetupApproverViewUpdateData: undefined,
|
|
16
|
-
reorderStatus: { fetchState: 'Not-Started', error: undefined },
|
|
17
16
|
hasValidState() {
|
|
18
17
|
return this.fetchState === 'Completed';
|
|
19
18
|
},
|
|
@@ -27,13 +26,8 @@ const billPaySetupApproverView = createSlice({
|
|
|
27
26
|
draft.fetchState = 'In-Progress';
|
|
28
27
|
draft.error = undefined;
|
|
29
28
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// vs v2 endpoint in the fetch epic. Required (no default) so a
|
|
33
|
-
// missing screen-connector wire surfaces at compile time rather
|
|
34
|
-
// than silently falling back to v1 on a v3 tenant.
|
|
35
|
-
prepare(cacheOverride = false, includeUserRoles = true, useV3) {
|
|
36
|
-
return { payload: { cacheOverride, includeUserRoles, useV3 } };
|
|
29
|
+
prepare(cacheOverride = false, includeUserRoles = true) {
|
|
30
|
+
return { payload: { cacheOverride, includeUserRoles } };
|
|
37
31
|
},
|
|
38
32
|
},
|
|
39
33
|
fetchBillPaySetupApproverViewSuccess: {
|
|
@@ -118,12 +112,8 @@ const billPaySetupApproverView = createSlice({
|
|
|
118
112
|
error: undefined,
|
|
119
113
|
};
|
|
120
114
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// can pick the v1 vs v2 endpoint. Required (no default) so a
|
|
124
|
-
// missing connector wire surfaces at compile time.
|
|
125
|
-
prepare(approvalRuleId, useV3) {
|
|
126
|
-
return { payload: { approvalRuleId, useV3 } };
|
|
115
|
+
prepare(approvalRuleId) {
|
|
116
|
+
return { payload: { approvalRuleId } };
|
|
127
117
|
},
|
|
128
118
|
},
|
|
129
119
|
deleteBillPayApprovalRuleSuccess: {
|
|
@@ -155,100 +145,13 @@ const billPaySetupApproverView = createSlice({
|
|
|
155
145
|
};
|
|
156
146
|
},
|
|
157
147
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* priorities from the response) or recovers (failure — refetches
|
|
166
|
-
* the view so we don't strand a stale local order).
|
|
167
|
-
*/
|
|
168
|
-
reorderBillPayApprovalRules: {
|
|
169
|
-
reducer(draft, action) {
|
|
170
|
-
const { approvalRuleIds } = action.payload;
|
|
171
|
-
const wasReorderInFlight = draft.reorderStatus.fetchState === 'In-Progress';
|
|
172
|
-
draft.reorderStatus = { fetchState: 'In-Progress', error: undefined };
|
|
173
|
-
// Stash the pre-reorder order so 'Failure' can restore it
|
|
174
|
-
// synchronously. The epic's refetch on failure remains as a
|
|
175
|
-
// safety net (covers cases where the server's truth has
|
|
176
|
-
// drifted from the local snapshot), but the snappy UX path
|
|
177
|
-
// is the in-memory rollback.
|
|
178
|
-
//
|
|
179
|
-
// Only capture a fresh snapshot when no reorder is already in
|
|
180
|
-
// flight. If a second drag fires before the first PUT lands,
|
|
181
|
-
// the existing snapshot already holds the last server-backed
|
|
182
|
-
// order; overwriting it with the first reorder's optimistic
|
|
183
|
-
// result would mean a Failure rolls back to an uncommitted
|
|
184
|
-
// intermediate order instead of the last good list.
|
|
185
|
-
if (!wasReorderInFlight) {
|
|
186
|
-
draft.reorderRollbackIds = draft.approvalRuleIds;
|
|
187
|
-
}
|
|
188
|
-
// Optimistic: render new order immediately. On failure, the
|
|
189
|
-
// reducer restores 'reorderRollbackIds' and the epic refetch
|
|
190
|
-
// reconciles any drift.
|
|
191
|
-
draft.approvalRuleIds = approvalRuleIds;
|
|
192
|
-
},
|
|
193
|
-
// Approval Rules 3.0 — `useV3` required so a missing wire
|
|
194
|
-
// surfaces at compile time. The reorder epic always hits the
|
|
195
|
-
// v2 endpoint (v1 has no reorder route), but the payload still
|
|
196
|
-
// carries the flag for the failure-path refetch which needs it.
|
|
197
|
-
prepare(approvalRuleIds, useV3) {
|
|
198
|
-
return { payload: { approvalRuleIds, useV3 } };
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
reorderBillPayApprovalRulesSuccess: {
|
|
202
|
-
reducer(draft, action) {
|
|
203
|
-
const { approvalRuleIds } = action.payload;
|
|
204
|
-
draft.reorderStatus = { fetchState: 'Completed', error: undefined };
|
|
205
|
-
// The API response is authoritative — overwrite with the
|
|
206
|
-
// server's reported order in case it normalised anything.
|
|
207
|
-
draft.approvalRuleIds = approvalRuleIds;
|
|
208
|
-
// Reorder succeeded — discard the snapshot so the next
|
|
209
|
-
// reorder starts from this committed order.
|
|
210
|
-
draft.reorderRollbackIds = undefined;
|
|
211
|
-
},
|
|
212
|
-
prepare(approvalRuleIds) {
|
|
213
|
-
return { payload: { approvalRuleIds } };
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
reorderBillPayApprovalRulesFailure: {
|
|
217
|
-
reducer(draft, action) {
|
|
218
|
-
const { status } = action.payload;
|
|
219
|
-
draft.reorderStatus = { fetchState: 'Error', error: status };
|
|
220
|
-
// Restore the snapshot taken on the trigger reducer before
|
|
221
|
-
// the optimistic mutation. The epic still fires a refetch
|
|
222
|
-
// alongside the failure action for cross-tab drift recovery,
|
|
223
|
-
// but locally the user sees their last good order instantly.
|
|
224
|
-
if (draft.reorderRollbackIds != null) {
|
|
225
|
-
draft.approvalRuleIds = draft.reorderRollbackIds;
|
|
226
|
-
draft.reorderRollbackIds = undefined;
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
prepare(status) {
|
|
230
|
-
return { payload: { status } };
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
saveBillPaySetupApproverViewUpdates: {
|
|
234
|
-
// Approval Rules 3.0 — `useV3` is sourced from the
|
|
235
|
-
// `approval_rule_v3_config` dynamic config in the screen
|
|
236
|
-
// connector. The reducer doesn't read it (the field only
|
|
237
|
-
// matters in the save epic), but it must be declared so the
|
|
238
|
-
// action's payload type is correctly inferred for downstream
|
|
239
|
-
// consumers.
|
|
240
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
241
|
-
reducer(draft, _action) {
|
|
242
|
-
if (draft.billPaySetupApproverViewUpdateData != null) {
|
|
243
|
-
draft.billPaySetupApproverViewUpdateData.updateStatus = {
|
|
244
|
-
fetchState: 'In-Progress',
|
|
245
|
-
error: undefined,
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
prepare(useV3) {
|
|
250
|
-
return { payload: { useV3 } };
|
|
251
|
-
},
|
|
148
|
+
saveBillPaySetupApproverViewUpdates(draft) {
|
|
149
|
+
if (draft.billPaySetupApproverViewUpdateData != null) {
|
|
150
|
+
draft.billPaySetupApproverViewUpdateData.updateStatus = {
|
|
151
|
+
fetchState: 'In-Progress',
|
|
152
|
+
error: undefined,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
252
155
|
},
|
|
253
156
|
saveBillPaySetupApproverViewUpdatesSuccess: {
|
|
254
157
|
reducer(draft, action) {
|
|
@@ -337,5 +240,5 @@ const billPaySetupApproverView = createSlice({
|
|
|
337
240
|
},
|
|
338
241
|
},
|
|
339
242
|
});
|
|
340
|
-
export const { fetchBillPaySetupApproverView, fetchBillPaySetupApproverViewSuccess, fetchBillPaySetupApproverViewFailure, fetchBillPayApproversDetails, fetchBillPayApproversList, fetchBillPayApproversListSuccess, fetchBillPayApproversListFailure, deleteBillPayApprovalRule, deleteBillPayApprovalRuleSuccess, deleteBillPayApprovalRuleFailure,
|
|
243
|
+
export const { fetchBillPaySetupApproverView, fetchBillPaySetupApproverViewSuccess, fetchBillPaySetupApproverViewFailure, fetchBillPayApproversDetails, fetchBillPayApproversList, fetchBillPayApproversListSuccess, fetchBillPayApproversListFailure, deleteBillPayApprovalRule, deleteBillPayApprovalRuleSuccess, deleteBillPayApprovalRuleFailure, saveBillPaySetupApproverViewUpdates, saveBillPaySetupApproverViewUpdatesSuccess, saveBillPaySetupApproverViewUpdatesFailure, initializeBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverViewUpdateData, setListeningToPusherEvent, clearBillPaySetupApproverView, } = billPaySetupApproverView.actions;
|
|
341
244
|
export default billPaySetupApproverView.reducer;
|
|
@@ -6,17 +6,9 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { deleteBillPayApprovalRule, deleteBillPayApprovalRuleFailure, deleteBillPayApprovalRuleSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
8
|
export const deleteBillPayApprovalRuleEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteBillPayApprovalRule.match), switchMap((action) => {
|
|
9
|
-
const { approvalRuleId
|
|
10
|
-
// Approval Rules 3.0 — flag-gated endpoint selection.
|
|
11
|
-
// Explicit `=== true` keeps `strict-boolean-expressions` happy
|
|
12
|
-
// when RTK's payload type widens to `any` in some configs.
|
|
13
|
-
const endpoint = useV3 === true
|
|
14
|
-
? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
15
|
-
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
9
|
+
const { approvalRuleId } = action.payload;
|
|
16
10
|
return zeniAPI
|
|
17
|
-
.deleteAndGetJSON(
|
|
18
|
-
approval_rule_id: approvalRuleId,
|
|
19
|
-
})
|
|
11
|
+
.deleteAndGetJSON(`${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`, { approval_rule_id: approvalRuleId })
|
|
20
12
|
.pipe(mergeMap((response) => {
|
|
21
13
|
if (isSuccessResponse(response) && response.data != null) {
|
|
22
14
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
@@ -6,7 +6,7 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { fetchBillPaySetupApproverView, fetchBillPaySetupApproverViewFailure, fetchBillPaySetupApproverViewSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
8
|
export const fetchBillPaySetupApproverViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchBillPaySetupApproverView.match), switchMap((action) => {
|
|
9
|
-
const { cacheOverride
|
|
9
|
+
const { cacheOverride } = action.payload;
|
|
10
10
|
const { billPaySetupApproverViewState, approvalRuleState } = state$.value;
|
|
11
11
|
const approvalRules = getApprovalRulesByIds(approvalRuleState, billPaySetupApproverViewState.approvalRuleIds);
|
|
12
12
|
if (cacheOverride === true ||
|
|
@@ -14,13 +14,9 @@ export const fetchBillPaySetupApproverViewEpic = (actions$, state$, zeniAPI) =>
|
|
|
14
14
|
billPaySetupApproverViewState.approvalRuleIds.length ||
|
|
15
15
|
(billPaySetupApproverViewState.hasValidState() === false &&
|
|
16
16
|
billPaySetupApproverViewState.fetchState !== 'In-Progress')) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const endpoint = useV3 === true
|
|
21
|
-
? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
22
|
-
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
23
|
-
return zeniAPI.getJSON(endpoint).pipe(mergeMap((response) => {
|
|
17
|
+
return zeniAPI
|
|
18
|
+
.getJSON(`${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`)
|
|
19
|
+
.pipe(mergeMap((response) => {
|
|
24
20
|
if (isSuccessResponse(response) && response.data != null) {
|
|
25
21
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
26
22
|
const actions = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
-
import {
|
|
3
|
+
import { getApprovalRuleById } from '../../../../../entity/approvalRule/approvalRuleSelector';
|
|
4
4
|
import { clearBillPaySetupApproverViewUpdateData, initializeBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdateData, } from '../billPaySetupApproverViewReducer';
|
|
5
5
|
export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => actions$.pipe(filter(initializeBillPaySetupApproverViewUpdateData.match), mergeMap((action) => {
|
|
6
6
|
const { approvalRuleId } = action.payload;
|
|
@@ -8,20 +8,16 @@ export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state
|
|
|
8
8
|
if (approvalRuleId != null) {
|
|
9
9
|
const approvalRule = getApprovalRuleById(state$.value.approvalRuleState, approvalRuleId);
|
|
10
10
|
if (approvalRule != null) {
|
|
11
|
+
const criteria = approvalRule.criteria[0];
|
|
12
|
+
const range = criteria?.range;
|
|
11
13
|
const billPaySetupApproverViewUpdateData = {
|
|
12
14
|
approvalRuleId,
|
|
13
15
|
steps: approvalRule.steps,
|
|
14
16
|
criteria: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
rangeType: criteria?.rangeType,
|
|
18
|
+
rangeEntity: criteria?.rangeEntity,
|
|
19
|
+
range,
|
|
18
20
|
},
|
|
19
|
-
// Approval Rules 3.0 — seed rule-level fields so the form can
|
|
20
|
-
// round-trip them on edit. Each may be undefined on legacy rules.
|
|
21
|
-
name: approvalRule.name,
|
|
22
|
-
description: approvalRule.description,
|
|
23
|
-
separationOfDuties: approvalRule.separationOfDuties,
|
|
24
|
-
isFallback: approvalRule.isFallback,
|
|
25
21
|
};
|
|
26
22
|
fetchActions.push(clearBillPaySetupApproverViewUpdateData(), saveBillPaySetupApproverViewUpdateData(billPaySetupApproverViewUpdateData));
|
|
27
23
|
}
|
|
@@ -29,7 +25,7 @@ export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state
|
|
|
29
25
|
else {
|
|
30
26
|
const billPaySetupApproverViewCreateData = {
|
|
31
27
|
steps: [],
|
|
32
|
-
criteria:
|
|
28
|
+
criteria: undefined,
|
|
33
29
|
};
|
|
34
30
|
fetchActions.push(clearBillPaySetupApproverViewUpdateData(), saveBillPaySetupApproverViewUpdateData(billPaySetupApproverViewCreateData));
|
|
35
31
|
}
|
|
@@ -5,24 +5,15 @@ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
|
5
5
|
import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { saveBillPaySetupApproverViewUpdates, saveBillPaySetupApproverViewUpdatesFailure, saveBillPaySetupApproverViewUpdatesSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
|
-
import { toApprovalChangableInfoPayload
|
|
9
|
-
export const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveBillPaySetupApproverViewUpdates.match), switchMap((
|
|
8
|
+
import { toApprovalChangableInfoPayload } from '../types/commonPayload';
|
|
9
|
+
export const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveBillPaySetupApproverViewUpdates.match), switchMap(() => {
|
|
10
10
|
const { billPaySetupApproverViewState } = state$.value;
|
|
11
11
|
const billPaySetupApproverViewUpdateData = billPaySetupApproverViewState.billPaySetupApproverViewUpdateData;
|
|
12
12
|
if (billPaySetupApproverViewUpdateData != null &&
|
|
13
13
|
billPaySetupApproverViewUpdateData.data != null) {
|
|
14
|
-
|
|
15
|
-
// the `approval_rule_v3_config` dynamic config. `useV3` arrives
|
|
16
|
-
// on the action payload from the screen connector.
|
|
17
|
-
const { useV3 } = action.payload;
|
|
18
|
-
const payload = useV3
|
|
19
|
-
? toApprovalChangableInfoPayload(billPaySetupApproverViewUpdateData.data)
|
|
20
|
-
: toApprovalChangableInfoPayloadV1(billPaySetupApproverViewUpdateData.data);
|
|
21
|
-
const endpoint = useV3
|
|
22
|
-
? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
23
|
-
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
14
|
+
const payload = toApprovalChangableInfoPayload(billPaySetupApproverViewUpdateData.data);
|
|
24
15
|
return zeniAPI
|
|
25
|
-
.postAndGetJSON(
|
|
16
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`, payload)
|
|
26
17
|
.pipe(mergeMap((response) => {
|
|
27
18
|
if (isSuccessResponse(response) && response.data != null) {
|
|
28
19
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|