@zeniai/client-epic-state 5.0.92-betaNB2 → 5.0.93-beta0ND
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/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +1 -0
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/entity/accountRecon/accountReconPayload.d.ts +1 -20
- package/lib/entity/accountRecon/accountReconPayload.js +1 -23
- package/lib/entity/accountRecon/accountReconSelector.d.ts +1 -6
- package/lib/entity/accountRecon/accountReconSelector.js +0 -5
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -19
- package/lib/entity/aiCfo/aiCfoPayload.d.ts +63 -5
- package/lib/entity/aiCfo/aiCfoReducer.d.ts +23 -2
- package/lib/entity/aiCfo/aiCfoReducer.js +249 -9
- package/lib/entity/aiCfo/aiCfoSelector.d.ts +4 -1
- package/lib/entity/aiCfo/aiCfoSelector.js +19 -1
- package/lib/entity/aiCfo/aiCfoState.d.ts +97 -4
- package/lib/entity/aiCfo/aiCfoState.js +18 -1
- package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +277 -0
- package/lib/entity/cardPolicy/cardPolicyPayload.js +143 -0
- package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +19 -0
- package/lib/entity/cardPolicy/cardPolicyReducer.js +175 -0
- package/lib/entity/cardPolicy/cardPolicySelector.d.ts +32 -0
- package/lib/entity/cardPolicy/cardPolicySelector.js +99 -0
- package/lib/entity/cardPolicy/cardPolicyState.d.ts +205 -0
- package/lib/entity/cardPolicy/cardPolicyState.js +14 -0
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +18 -0
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +68 -0
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +26 -0
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +47 -0
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +25 -0
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +39 -0
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +24 -0
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +105 -0
- package/lib/entity/company/companyPayload.d.ts +4 -0
- package/lib/entity/company/companyPayload.js +4 -0
- package/lib/entity/company/companyStateTypes.d.ts +4 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -7
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -9
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -8
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +1 -0
- package/lib/entity/paymentAccount/paymentAccountSelector.js +4 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +6 -2
- package/lib/entity/tenant/clearAllEpic.js +8 -0
- package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +21 -0
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +54 -0
- 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 +1 -0
- package/lib/entity/tenant/tenantReducer.d.ts +38 -25
- package/lib/entity/tenant/tenantReducer.js +65 -5
- package/lib/entity/tenant/tenantState.d.ts +1 -0
- package/lib/epic.d.ts +19 -3
- package/lib/epic.js +20 -3
- package/lib/esm/commonStateTypes/animations.js +1 -0
- package/lib/esm/entity/accountRecon/accountReconPayload.js +1 -23
- package/lib/esm/entity/accountRecon/accountReconSelector.js +0 -5
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +249 -9
- package/lib/esm/entity/aiCfo/aiCfoSelector.js +17 -1
- package/lib/esm/entity/aiCfo/aiCfoState.js +15 -0
- package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +130 -0
- package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +171 -0
- package/lib/esm/entity/cardPolicy/cardPolicySelector.js +75 -0
- package/lib/esm/entity/cardPolicy/cardPolicyState.js +9 -0
- package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +64 -0
- package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +43 -0
- package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +35 -0
- package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +101 -0
- package/lib/esm/entity/company/companyPayload.js +4 -0
- package/lib/esm/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -9
- package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +3 -0
- package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/esm/entity/tenant/clearAllEpic.js +8 -0
- package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +50 -0
- package/lib/esm/entity/tenant/tenantReducer.js +63 -3
- package/lib/esm/epic.js +20 -3
- package/lib/esm/index.js +48 -15
- package/lib/esm/reducer.js +12 -0
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +6 -3
- package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +5 -2
- package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +2 -1
- package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +12 -2
- package/lib/esm/view/expenseAutomationView/payload/reconciliationPayload.js +0 -73
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +4 -98
- package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -20
- package/lib/esm/view/expenseAutomationView/types/reconciliationViewState.js +0 -20
- package/lib/esm/view/fileView/epic/deleteFileEpic.js +2 -2
- package/lib/esm/view/fileView/epic/deleteFileListEpic.js +2 -2
- package/lib/esm/view/fileView/epic/updateFileNameEpic.js +2 -2
- package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +42 -0
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +29 -0
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +40 -0
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +217 -50
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +7 -1
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +12 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +52 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +22 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +1 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +36 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +39 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +34 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +58 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +21 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +1 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +38 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +289 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +109 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +44 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +111 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +25 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +363 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +36 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +19 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +6 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +119 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +154 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +22 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +1 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +39 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +140 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +20 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +100 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +96 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +59 -0
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +24 -0
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +25 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +1 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +34 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +57 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +35 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +42 -4
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +35 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +62 -0
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +44 -0
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +58 -0
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +67 -0
- package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +14 -0
- package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +205 -0
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +105 -52
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +6 -1
- package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +28 -0
- package/lib/index.d.ts +57 -19
- package/lib/index.js +217 -37
- package/lib/reducer.d.ts +12 -0
- package/lib/reducer.js +12 -0
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +11 -2
- package/lib/view/aiCfoView/aiCfoViewReducer.js +6 -3
- package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +5 -2
- package/lib/view/aiCfoView/epics/createSessionEpic.js +2 -1
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +8 -1
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +12 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +1 -83
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -75
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +3 -35
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +5 -99
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +1 -5
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -20
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -129
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -21
- package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
- package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
- package/lib/view/fileView/epic/updateFileNameEpic.js +1 -1
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +7 -0
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +46 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +8 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +33 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +9 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +44 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +41 -4
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +219 -51
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +5 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +11 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +40 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +13 -1
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +14 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +56 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +15 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +28 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +2 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +40 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +43 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +38 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +15 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +62 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +15 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +27 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +2 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +42 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +294 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +113 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +9 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +48 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +115 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +13 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +29 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +14 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +369 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +6 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +40 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +26 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +116 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +10 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +33 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +126 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +52 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +158 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +31 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +12 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +2 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +43 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +10 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +144 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +24 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +104 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +22 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +100 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +63 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +3 -0
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +28 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +14 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +27 -1
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +34 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +2 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +38 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +12 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +61 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +9 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +39 -0
- 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 +12 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +43 -5
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +42 -1
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +5 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +66 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +3 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +48 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +28 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +62 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +30 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +71 -0
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +33 -0
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +17 -0
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +24 -0
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +213 -0
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +28 -2
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +106 -53
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +7 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +6 -1
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +19 -0
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +142 -0
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +32 -0
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/package.json +1 -1
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/parseStatementEpic.js +0 -34
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/updateStatementInfoEpic.js +0 -42
- package/lib/view/expenseAutomationView/epics/accountRecon/parseStatementEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/parseStatementEpic.js +0 -38
- package/lib/view/expenseAutomationView/epics/accountRecon/updateStatementInfoEpic.d.ts +0 -19
- package/lib/view/expenseAutomationView/epics/accountRecon/updateStatementInfoEpic.js +0 -46
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.updateNodeCollapseState = exports.updateStatementUploadChosen = exports.
|
|
4
|
+
exports.updateNodeCollapseState = exports.updateStatementUploadChosen = exports.uploadAccountStatementFailure = exports.uploadAccountStatementSuccess = exports.uploadAccountStatement = exports.includeAccountInReconciliationFailure = exports.includeAccountInReconciliationSuccess = exports.includeAccountInReconciliation = exports.excludeAccountFromReconciliationFailure = exports.excludeAccountFromReconciliationSuccess = exports.excludeAccountFromReconciliation = exports.deleteAccountStatementFailure = exports.deleteAccountStatementSuccess = exports.deleteAccountStatement = exports.updateAccountReconciliationLocalData = exports.updateReconListScrollPosition = exports.updateSaveReconciliationReviewFetchStatus = exports.saveReconciliationReview = exports.updateReviewTabLocalData = exports.initializeReconciliationReviewTabLocalData = exports.updateReviewTabSortState = exports.updateSelectedDrawerAccountId = exports.clearExpenseAutomationReconciliationView = exports.initialiseLocalDataForSelectedAccountId = exports.updateBalancesLocalData = exports.updateSelectedTab = exports.saveReconciliationDetailSuccess = exports.updateReconcileTabListScrollState = exports.updateReconcileTabListSortState = exports.updateReconcileTabLocalData = exports.setStatementParseInProgress = exports.setConnectionInProgressForAccount = exports.updateSelectedAccountId = exports.saveReconciliationDetailFailure = exports.saveReconciliationDetail = exports.fetchReconciliationSuccess = exports.fetchReconciliationFailure = exports.fetchReconciliation = exports.initialState = exports.initialActionFetchState = exports.initialReconciliationTabsState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
7
|
const accountState_1 = require("../../../entity/account/accountState");
|
|
8
8
|
const accountReconState_1 = require("../../../entity/accountRecon/accountReconState");
|
|
9
|
-
const reconciliationViewState_1 = require("../types/reconciliationViewState");
|
|
10
9
|
// Initial state
|
|
11
10
|
exports.initialReconciliationTabsState = {
|
|
12
11
|
balances: {
|
|
@@ -72,7 +71,6 @@ exports.initialState = {
|
|
|
72
71
|
refreshStatus: { fetchState: 'Not-Started', error: undefined },
|
|
73
72
|
actionFetchState: exports.initialActionFetchState,
|
|
74
73
|
selectedAccountId: undefined,
|
|
75
|
-
statementProcessingFailed: false,
|
|
76
74
|
statementUploadChosen: false,
|
|
77
75
|
reconListUIState: {
|
|
78
76
|
nodeCollapseState: {},
|
|
@@ -81,7 +79,6 @@ exports.initialState = {
|
|
|
81
79
|
},
|
|
82
80
|
},
|
|
83
81
|
excludedAccountIDs: [],
|
|
84
|
-
summary: undefined,
|
|
85
82
|
};
|
|
86
83
|
// Create slice with reducers
|
|
87
84
|
const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
@@ -150,7 +147,7 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
150
147
|
fetchReconciliationSuccess: {
|
|
151
148
|
reducer(draft, action) {
|
|
152
149
|
if (action.payload.accountId == null) {
|
|
153
|
-
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground, action.payload.reconciliation.excluded_accounts ?? []
|
|
150
|
+
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground, action.payload.reconciliation.excluded_accounts ?? []);
|
|
154
151
|
}
|
|
155
152
|
else if (action.payload.reconciliation.reconciliation.length > 0 &&
|
|
156
153
|
action.payload.reconciliation.accounts.length > 0) {
|
|
@@ -294,10 +291,6 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
294
291
|
updateSelectedDrawerAccountId: (draft, action) => {
|
|
295
292
|
draft.selectedDrawerAccountId = action.payload.selectedDrawerAccountId;
|
|
296
293
|
},
|
|
297
|
-
updateStatementProcessingFailed: (draft, action) => {
|
|
298
|
-
draft.statementProcessingFailed =
|
|
299
|
-
action.payload.statementProcessingFailed;
|
|
300
|
-
},
|
|
301
294
|
initialiseLocalDataForSelectedAccountId: () => { },
|
|
302
295
|
updateSelectedTab: (draft, action) => {
|
|
303
296
|
const { selectedTab } = action.payload;
|
|
@@ -389,16 +382,10 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
389
382
|
},
|
|
390
383
|
uploadAccountStatement: (draft, action) => {
|
|
391
384
|
const { accountId, selectedPeriod } = action.payload;
|
|
392
|
-
|
|
393
|
-
accountRecon.statementUploadStatus = {
|
|
385
|
+
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementUploadStatus = {
|
|
394
386
|
fetchState: 'In-Progress',
|
|
395
387
|
error: undefined,
|
|
396
388
|
};
|
|
397
|
-
accountRecon.parsedStatementData = undefined;
|
|
398
|
-
accountRecon.statementParseStatus = {
|
|
399
|
-
fetchState: 'Not-Started',
|
|
400
|
-
error: undefined,
|
|
401
|
-
};
|
|
402
389
|
},
|
|
403
390
|
uploadAccountStatementSuccess: (draft, action) => {
|
|
404
391
|
const { accountId, selectedPeriod } = action.payload;
|
|
@@ -436,78 +423,6 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
436
423
|
error: action.payload.error,
|
|
437
424
|
};
|
|
438
425
|
},
|
|
439
|
-
parseStatement: (draft, action) => {
|
|
440
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
441
|
-
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
442
|
-
accountRecon.parsedStatementData = undefined;
|
|
443
|
-
accountRecon.statementParseStatus = {
|
|
444
|
-
fetchState: 'In-Progress',
|
|
445
|
-
error: undefined,
|
|
446
|
-
};
|
|
447
|
-
},
|
|
448
|
-
parseStatementSuccess: (draft, action) => {
|
|
449
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
450
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementParseStatus = {
|
|
451
|
-
fetchState: 'Completed',
|
|
452
|
-
error: undefined,
|
|
453
|
-
};
|
|
454
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementParseInProgress = false;
|
|
455
|
-
},
|
|
456
|
-
parseStatementFailure: (draft, action) => {
|
|
457
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
458
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementParseStatus = {
|
|
459
|
-
fetchState: 'Error',
|
|
460
|
-
error: action.payload.error,
|
|
461
|
-
};
|
|
462
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementParseInProgress = false;
|
|
463
|
-
},
|
|
464
|
-
updateParsedStatementData: (draft, action) => {
|
|
465
|
-
const { accountId, selectedPeriod, parsedStatementData } = action.payload;
|
|
466
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].parsedStatementData =
|
|
467
|
-
parsedStatementData;
|
|
468
|
-
},
|
|
469
|
-
updateStatementUpdateLocalData: (draft, action) => {
|
|
470
|
-
const { accountId, selectedPeriod, statementUpdateLocalData } = action.payload;
|
|
471
|
-
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
472
|
-
if (accountRecon.localData == null) {
|
|
473
|
-
accountRecon.localData = {
|
|
474
|
-
statementUpdateLocalData,
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
accountRecon.localData.statementUpdateLocalData =
|
|
479
|
-
statementUpdateLocalData;
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
submitStatementUpdate: (draft, action) => {
|
|
483
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
484
|
-
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].statementUpdateStatus = {
|
|
485
|
-
fetchState: 'In-Progress',
|
|
486
|
-
error: undefined,
|
|
487
|
-
};
|
|
488
|
-
},
|
|
489
|
-
submitStatementUpdateSuccess: (draft, action) => {
|
|
490
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
491
|
-
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
492
|
-
accountRecon.statementUpdateStatus = {
|
|
493
|
-
fetchState: 'Completed',
|
|
494
|
-
error: undefined,
|
|
495
|
-
};
|
|
496
|
-
if (accountRecon.localData != null) {
|
|
497
|
-
accountRecon.localData.statementUpdateLocalData = undefined;
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
submitStatementUpdateFailure: (draft, action) => {
|
|
501
|
-
const { accountId, selectedPeriod } = action.payload;
|
|
502
|
-
const accountRecon = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
503
|
-
accountRecon.statementUpdateStatus = {
|
|
504
|
-
fetchState: 'Error',
|
|
505
|
-
error: action.payload.error,
|
|
506
|
-
};
|
|
507
|
-
if (accountRecon.localData != null) {
|
|
508
|
-
accountRecon.localData.statementUpdateLocalData = undefined;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
426
|
updateAccountReconciliationLocalData: (draft, action) => {
|
|
512
427
|
const { accountId, selectedPeriod, localData } = action.payload;
|
|
513
428
|
const oldLocalData = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId].localData;
|
|
@@ -613,10 +528,10 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
613
528
|
},
|
|
614
529
|
});
|
|
615
530
|
// Export actions
|
|
616
|
-
_a = expenseAutomationReconciliationView.actions, exports.fetchReconciliation = _a.fetchReconciliation, exports.fetchReconciliationFailure = _a.fetchReconciliationFailure, exports.fetchReconciliationSuccess = _a.fetchReconciliationSuccess, exports.saveReconciliationDetail = _a.saveReconciliationDetail, exports.saveReconciliationDetailFailure = _a.saveReconciliationDetailFailure, exports.updateSelectedAccountId = _a.updateSelectedAccountId, exports.setConnectionInProgressForAccount = _a.setConnectionInProgressForAccount, exports.setStatementParseInProgress = _a.setStatementParseInProgress, exports.updateReconcileTabLocalData = _a.updateReconcileTabLocalData, exports.updateReconcileTabListSortState = _a.updateReconcileTabListSortState, exports.updateReconcileTabListScrollState = _a.updateReconcileTabListScrollState, exports.saveReconciliationDetailSuccess = _a.saveReconciliationDetailSuccess, exports.updateSelectedTab = _a.updateSelectedTab, exports.updateBalancesLocalData = _a.updateBalancesLocalData, exports.initialiseLocalDataForSelectedAccountId = _a.initialiseLocalDataForSelectedAccountId, exports.clearExpenseAutomationReconciliationView = _a.clearExpenseAutomationReconciliationView, exports.updateSelectedDrawerAccountId = _a.updateSelectedDrawerAccountId, exports.
|
|
531
|
+
_a = expenseAutomationReconciliationView.actions, exports.fetchReconciliation = _a.fetchReconciliation, exports.fetchReconciliationFailure = _a.fetchReconciliationFailure, exports.fetchReconciliationSuccess = _a.fetchReconciliationSuccess, exports.saveReconciliationDetail = _a.saveReconciliationDetail, exports.saveReconciliationDetailFailure = _a.saveReconciliationDetailFailure, exports.updateSelectedAccountId = _a.updateSelectedAccountId, exports.setConnectionInProgressForAccount = _a.setConnectionInProgressForAccount, exports.setStatementParseInProgress = _a.setStatementParseInProgress, exports.updateReconcileTabLocalData = _a.updateReconcileTabLocalData, exports.updateReconcileTabListSortState = _a.updateReconcileTabListSortState, exports.updateReconcileTabListScrollState = _a.updateReconcileTabListScrollState, exports.saveReconciliationDetailSuccess = _a.saveReconciliationDetailSuccess, exports.updateSelectedTab = _a.updateSelectedTab, exports.updateBalancesLocalData = _a.updateBalancesLocalData, exports.initialiseLocalDataForSelectedAccountId = _a.initialiseLocalDataForSelectedAccountId, exports.clearExpenseAutomationReconciliationView = _a.clearExpenseAutomationReconciliationView, exports.updateSelectedDrawerAccountId = _a.updateSelectedDrawerAccountId, exports.updateReviewTabSortState = _a.updateReviewTabSortState, exports.initializeReconciliationReviewTabLocalData = _a.initializeReconciliationReviewTabLocalData, exports.updateReviewTabLocalData = _a.updateReviewTabLocalData, exports.saveReconciliationReview = _a.saveReconciliationReview, exports.updateSaveReconciliationReviewFetchStatus = _a.updateSaveReconciliationReviewFetchStatus, exports.updateReconListScrollPosition = _a.updateReconListScrollPosition, exports.updateAccountReconciliationLocalData = _a.updateAccountReconciliationLocalData, exports.deleteAccountStatement = _a.deleteAccountStatement, exports.deleteAccountStatementSuccess = _a.deleteAccountStatementSuccess, exports.deleteAccountStatementFailure = _a.deleteAccountStatementFailure, exports.excludeAccountFromReconciliation = _a.excludeAccountFromReconciliation, exports.excludeAccountFromReconciliationSuccess = _a.excludeAccountFromReconciliationSuccess, exports.excludeAccountFromReconciliationFailure = _a.excludeAccountFromReconciliationFailure, exports.includeAccountInReconciliation = _a.includeAccountInReconciliation, exports.includeAccountInReconciliationSuccess = _a.includeAccountInReconciliationSuccess, exports.includeAccountInReconciliationFailure = _a.includeAccountInReconciliationFailure, exports.uploadAccountStatement = _a.uploadAccountStatement, exports.uploadAccountStatementSuccess = _a.uploadAccountStatementSuccess, exports.uploadAccountStatementFailure = _a.uploadAccountStatementFailure, exports.updateStatementUploadChosen = _a.updateStatementUploadChosen, exports.updateNodeCollapseState = _a.updateNodeCollapseState;
|
|
617
532
|
// Export reducer
|
|
618
533
|
exports.default = expenseAutomationReconciliationView.reducer;
|
|
619
|
-
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground, excludedAccounts
|
|
534
|
+
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground, excludedAccounts) {
|
|
620
535
|
draft.excludedAccountIDs = excludedAccounts.map((ea) => ea.account_id);
|
|
621
536
|
draft.excludedAccountExclusionInfo = {};
|
|
622
537
|
excludedAccounts.forEach((ea) => {
|
|
@@ -645,7 +560,6 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
645
560
|
: undefined,
|
|
646
561
|
};
|
|
647
562
|
});
|
|
648
|
-
const oldReconciliationByAccountID = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]?.reconciliationByAccountID ?? {};
|
|
649
563
|
draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = {
|
|
650
564
|
accountIDs: [],
|
|
651
565
|
reconciliationByAccountID: {},
|
|
@@ -669,7 +583,6 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
669
583
|
paymentAccountId: account?.payment_account_id ?? undefined,
|
|
670
584
|
};
|
|
671
585
|
}
|
|
672
|
-
const oldRecord = oldReconciliationByAccountID[reconciliation.account_id];
|
|
673
586
|
accountReconciliationRecords.reconciliationByAccountID[reconciliation.account_id] = {
|
|
674
587
|
accountId: reconciliation.account_id,
|
|
675
588
|
reconciliationId: reconciliation.reconciliation_id ?? undefined,
|
|
@@ -679,17 +592,14 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
679
592
|
statementUploadStatus: { fetchState: 'Not-Started', error: undefined },
|
|
680
593
|
statementUpdateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
681
594
|
statementParseInProgress: reconciliation.bank_status.code === 'parsing',
|
|
682
|
-
statementParseStatus: { fetchState: 'Not-Started', error: undefined },
|
|
683
595
|
localData: {
|
|
684
596
|
accountSource: account?.reconciliation_source != null
|
|
685
597
|
? (0, accountState_1.toReconciliationAccountSource)(account.reconciliation_source)
|
|
686
598
|
: undefined,
|
|
687
|
-
...oldRecord?.localData,
|
|
688
599
|
},
|
|
689
600
|
accountDetectionReason: account?.detection_info != null && account.detection_reason != null
|
|
690
601
|
? account.detection_reason
|
|
691
602
|
: undefined,
|
|
692
|
-
parsedStatementData: oldRecord?.parsedStatementData,
|
|
693
603
|
};
|
|
694
604
|
accountReconciliationRecords.accountIDs.push(reconciliation.account_id);
|
|
695
605
|
});
|
|
@@ -703,9 +613,6 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
703
613
|
draft.fetchState = 'Completed';
|
|
704
614
|
draft.error = undefined;
|
|
705
615
|
}
|
|
706
|
-
if (summary !== undefined) {
|
|
707
|
-
draft.summary = (0, reconciliationViewState_1.toReconciliationViewSummary)(summary);
|
|
708
|
-
}
|
|
709
616
|
}
|
|
710
617
|
function updateReconciliationByAccountID(draft, accounts, selectedPeriod, accountId, reconciliationData, refreshViewInBackground) {
|
|
711
618
|
const oldRecord = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
@@ -773,7 +680,6 @@ const updateReconciliationByAccountIDOnIncludeAccount = (draft, accountId, recon
|
|
|
773
680
|
statementUploadStatus: { fetchState: 'Not-Started', error: undefined },
|
|
774
681
|
statementUpdateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
775
682
|
statementParseInProgress: reconciliation.bank_status.code === 'parsing',
|
|
776
|
-
statementParseStatus: { fetchState: 'Not-Started', error: undefined },
|
|
777
683
|
localData: {},
|
|
778
684
|
accountDetectionReason: undefined,
|
|
779
685
|
};
|
|
@@ -9,7 +9,7 @@ import { BankStatusCodeType } from '../../../entity/accountRecon/accountReconSta
|
|
|
9
9
|
import { ClassBase } from '../../../entity/class/classState';
|
|
10
10
|
import { Vendor } from '../../../entity/vendor/vendorState';
|
|
11
11
|
import { PlaidConnectionDetails } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
12
|
-
import { AccountReconciliationLocalData, ActionFetchStates,
|
|
12
|
+
import { AccountReconciliationLocalData, ActionFetchStates, ReconListUIState, ReconciliationTabsState, ReconciliationViewTabType } from '../types/reconciliationViewState';
|
|
13
13
|
export declare const ALL_ACCOUNT_RECON_SECTION_IDS: readonly ["assets", "liabilities"];
|
|
14
14
|
export declare const toAccountReconSectionID: (v: string) => "assets" | "liabilities";
|
|
15
15
|
export type AccountReconSectionID = ReturnType<typeof toAccountReconSectionID>;
|
|
@@ -37,12 +37,10 @@ export interface ExpenseAutomationReconciliationViewSelector {
|
|
|
37
37
|
refreshStatus: FetchStateAndError;
|
|
38
38
|
reviewTabSelectedVendorByTransactionId: Record<ID, Vendor>;
|
|
39
39
|
selectedTab: ReconciliationViewTabType;
|
|
40
|
-
statementProcessingFailed: boolean;
|
|
41
40
|
statementUploadChosen: boolean;
|
|
42
41
|
selectedAccountId?: ID;
|
|
43
42
|
selectedDrawerAccountId?: ID;
|
|
44
43
|
selectedReconAccount?: AccountReconciliationByAccount;
|
|
45
|
-
summary?: ReconciliationViewSummary;
|
|
46
44
|
}
|
|
47
45
|
export interface AccountReconciliationBySection {
|
|
48
46
|
accountIDs: ID[];
|
|
@@ -61,11 +59,9 @@ export interface AccountReconciliationByAccount {
|
|
|
61
59
|
refreshStatus: FetchStateAndError;
|
|
62
60
|
statementDeleteStatus: FetchStateAndError;
|
|
63
61
|
statementParseInProgress: boolean;
|
|
64
|
-
statementParseStatus: FetchStateAndError;
|
|
65
62
|
statementUpdateStatus: FetchStateAndError;
|
|
66
63
|
statementUploadStatus: FetchStateAndError;
|
|
67
64
|
transactionFetchState: FetchStateAndError;
|
|
68
65
|
accountDetectionReason?: string;
|
|
69
|
-
parsedStatementData?: ParsedStatementData;
|
|
70
66
|
paymentAccountId?: ID;
|
|
71
67
|
}
|
|
@@ -49,17 +49,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
49
49
|
error: undefined,
|
|
50
50
|
})
|
|
51
51
|
: { fetchState: 'Not-Started', error: undefined };
|
|
52
|
-
const monthEndChecksForPeriod = selectedPeriod != null
|
|
53
|
-
? monthEndCloseChecksState.monthEndCloseChecksByTenantId[currentTenant.tenantId]?.[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]
|
|
54
|
-
: undefined;
|
|
55
|
-
const reconCheckTimeSaved = monthEndChecksForPeriod?.monthEndCloseCheckList.find((check) => check.title === 'Reconciliation')?.progressJson?.timeSavedPercentage;
|
|
56
|
-
const summaryWithTimeSaved = reconciliationViewState.summary != null
|
|
57
|
-
? {
|
|
58
|
-
...reconciliationViewState.summary,
|
|
59
|
-
timeSavedPercentage: reconCheckTimeSaved ??
|
|
60
|
-
reconciliationViewState.summary.timeSavedPercentage,
|
|
61
|
-
}
|
|
62
|
-
: undefined;
|
|
63
52
|
if (accountReconForMonthYearPeriod == null) {
|
|
64
53
|
return {
|
|
65
54
|
bankAccounts: [],
|
|
@@ -83,7 +72,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
83
72
|
selectedTab: reconciliationViewState.selectedTab,
|
|
84
73
|
monthYearPeriod: selectedPeriod,
|
|
85
74
|
selectedAccountId: reconciliationViewState.selectedAccountId,
|
|
86
|
-
statementProcessingFailed: reconciliationViewState.statementProcessingFailed,
|
|
87
75
|
statementUploadChosen: reconciliationViewState.statementUploadChosen,
|
|
88
76
|
accountReconciliationsByAccountID: {},
|
|
89
77
|
reconciliationTabsState: reconciliationViewReducer_1.initialReconciliationTabsState,
|
|
@@ -133,7 +121,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
133
121
|
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
134
122
|
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
135
123
|
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
136
|
-
summary: summaryWithTimeSaved,
|
|
137
124
|
};
|
|
138
125
|
}
|
|
139
126
|
const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
|
|
@@ -258,8 +245,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
258
245
|
.refreshStatus,
|
|
259
246
|
statementDeleteStatus: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
260
247
|
.statementDeleteStatus,
|
|
261
|
-
statementParseStatus: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
262
|
-
.statementParseStatus,
|
|
263
248
|
statementUpdateStatus: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
264
249
|
.statementUpdateStatus,
|
|
265
250
|
statementUploadStatus: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
@@ -268,8 +253,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
268
253
|
.localData,
|
|
269
254
|
statementParseInProgress: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
270
255
|
.statementParseInProgress,
|
|
271
|
-
parsedStatementData: accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
272
|
-
.parsedStatementData,
|
|
273
256
|
transactionFetchState: (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
274
257
|
accountReconForMonthYearPeriod.reconciliationByAccountID[accountID]
|
|
275
258
|
.transactionFetchState,
|
|
@@ -338,7 +321,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
338
321
|
statementUpdateStatus: { fetchState: 'Not-Started' },
|
|
339
322
|
statementUploadStatus: { fetchState: 'Not-Started' },
|
|
340
323
|
statementDeleteStatus: { fetchState: 'Not-Started' },
|
|
341
|
-
statementParseStatus: { fetchState: 'Not-Started' },
|
|
342
324
|
localData: {},
|
|
343
325
|
connectionInProgress: false,
|
|
344
326
|
statementParseInProgress: false,
|
|
@@ -427,7 +409,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
427
409
|
refreshStatus: reconciliationViewState.refreshStatus,
|
|
428
410
|
selectedTab: reconciliationViewState.selectedTab,
|
|
429
411
|
selectedDrawerAccountId: reconciliationViewState.selectedDrawerAccountId,
|
|
430
|
-
statementProcessingFailed: reconciliationViewState.statementProcessingFailed,
|
|
431
412
|
statementUploadChosen: reconciliationViewState.statementUploadChosen,
|
|
432
413
|
monthYearPeriod: selectedPeriod,
|
|
433
414
|
accountReconciliationBySectionID,
|
|
@@ -448,7 +429,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
448
429
|
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
449
430
|
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
450
431
|
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
451
|
-
summary: summaryWithTimeSaved,
|
|
452
432
|
};
|
|
453
433
|
});
|
|
454
434
|
const isAccountReconReport = (reportId) => {
|
|
@@ -7,88 +7,6 @@ import { BankStatusCodeType } from '../../../entity/accountRecon/accountReconSta
|
|
|
7
7
|
import { CustomerBase } from '../../../entity/customer/customerState';
|
|
8
8
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
9
9
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
10
|
-
import { ReconciliationSummaryPayload } from '../payload/reconciliationPayload';
|
|
11
|
-
export interface BoundingBox {
|
|
12
|
-
bottom: number;
|
|
13
|
-
left: number;
|
|
14
|
-
right: number;
|
|
15
|
-
top: number;
|
|
16
|
-
}
|
|
17
|
-
export interface Citation {
|
|
18
|
-
boundingBoxes: BoundingBox[];
|
|
19
|
-
page: number;
|
|
20
|
-
referenceText: string;
|
|
21
|
-
}
|
|
22
|
-
export interface StatementTransaction {
|
|
23
|
-
amount: number;
|
|
24
|
-
citations: Citation[];
|
|
25
|
-
isUserAdded: boolean;
|
|
26
|
-
isUserEdited: boolean;
|
|
27
|
-
statementTransactionId: string;
|
|
28
|
-
transactionDate: string;
|
|
29
|
-
transactionDirection: 'debit' | 'credit';
|
|
30
|
-
transactionMemo: string;
|
|
31
|
-
}
|
|
32
|
-
export interface StatementMeta {
|
|
33
|
-
closingBalance: number;
|
|
34
|
-
openingBalance: number;
|
|
35
|
-
statementDataStatus: {
|
|
36
|
-
code: string;
|
|
37
|
-
label: string;
|
|
38
|
-
};
|
|
39
|
-
statementEndDate: string;
|
|
40
|
-
statementStartDate: string;
|
|
41
|
-
statementStatus: {
|
|
42
|
-
code: string;
|
|
43
|
-
label: string;
|
|
44
|
-
};
|
|
45
|
-
statementUploadId: string;
|
|
46
|
-
totalDeposits: number;
|
|
47
|
-
totalPayments: number;
|
|
48
|
-
}
|
|
49
|
-
export interface AccountInfo {
|
|
50
|
-
accountId: string;
|
|
51
|
-
accountName: string;
|
|
52
|
-
accountType: string;
|
|
53
|
-
currencyCode: string;
|
|
54
|
-
last4Digits: string | null;
|
|
55
|
-
}
|
|
56
|
-
export interface FileInfo {
|
|
57
|
-
fileId: string;
|
|
58
|
-
fileName: string;
|
|
59
|
-
signedUrl: string;
|
|
60
|
-
}
|
|
61
|
-
export interface StatementUpload {
|
|
62
|
-
account: AccountInfo;
|
|
63
|
-
file: FileInfo;
|
|
64
|
-
statementMeta: StatementMeta;
|
|
65
|
-
statementTransactions: StatementTransaction[];
|
|
66
|
-
}
|
|
67
|
-
export interface ParsedStatementData {
|
|
68
|
-
statementUpload: StatementUpload;
|
|
69
|
-
}
|
|
70
|
-
export interface ReconciliationSummaryAccounts {
|
|
71
|
-
done: number;
|
|
72
|
-
failed: number;
|
|
73
|
-
inProgress: number;
|
|
74
|
-
total: number;
|
|
75
|
-
}
|
|
76
|
-
export interface ReconciliationSummaryAutoMatched {
|
|
77
|
-
matchedTxns: number;
|
|
78
|
-
totalTxns: number;
|
|
79
|
-
}
|
|
80
|
-
export interface ReconciliationSummaryNeedsReview {
|
|
81
|
-
accountCount: number;
|
|
82
|
-
txnCount: number;
|
|
83
|
-
}
|
|
84
|
-
export interface ReconciliationViewSummary {
|
|
85
|
-
accounts: ReconciliationSummaryAccounts;
|
|
86
|
-
accountsToConnectCount: number;
|
|
87
|
-
autoMatched: ReconciliationSummaryAutoMatched;
|
|
88
|
-
needsReview: ReconciliationSummaryNeedsReview;
|
|
89
|
-
timeSavedPercentage: number;
|
|
90
|
-
}
|
|
91
|
-
export declare function toReconciliationViewSummary(payload: ReconciliationSummaryPayload): ReconciliationViewSummary;
|
|
92
10
|
export declare const RECONCILE_ACTIONS: readonly ["reconcile", "save_reconcile_for_later", "exclude"];
|
|
93
11
|
export declare const toReconcileActions: (v: string) => "reconcile" | "save_reconcile_for_later" | "exclude";
|
|
94
12
|
export type ReconcileActionType = ReturnType<typeof toReconcileActions>;
|
|
@@ -102,7 +20,7 @@ export interface SaveReconciliationDetailFailurePayload {
|
|
|
102
20
|
error: ZeniAPIStatus;
|
|
103
21
|
fetchStateByAction: SaveReconcileDetailActionPayload;
|
|
104
22
|
}
|
|
105
|
-
export declare const toReconciliationTabsType: (v: string) => "
|
|
23
|
+
export declare const toReconciliationTabsType: (v: string) => "review" | "reconcile";
|
|
106
24
|
export declare type ReconciliationViewTabType = ReturnType<typeof toReconciliationTabsType>;
|
|
107
25
|
declare const toReconReconcileSortKeysType: (v: string) => "date" | "amount" | "type" | "account" | "memo" | "clearedDate" | "payee" | "transactionDirection" | "recommended";
|
|
108
26
|
export declare type ReconReconcileSortKey = ReturnType<typeof toReconReconcileSortKeysType>;
|
|
@@ -189,11 +107,9 @@ export interface ReconciliationViewState extends FetchStateAndError {
|
|
|
189
107
|
reconTabsState: ReconciliationTabsState;
|
|
190
108
|
refreshStatus: FetchStateAndError;
|
|
191
109
|
selectedTab: ReconciliationViewTabType;
|
|
192
|
-
statementProcessingFailed: boolean;
|
|
193
110
|
statementUploadChosen: boolean;
|
|
194
111
|
selectedAccountId?: ID;
|
|
195
112
|
selectedDrawerAccountId?: ID;
|
|
196
|
-
summary?: ReconciliationViewSummary;
|
|
197
113
|
}
|
|
198
114
|
export interface BankConnectionStatus {
|
|
199
115
|
connectionInProgress: boolean;
|
|
@@ -204,50 +120,8 @@ export interface AccountReconciliationRecords {
|
|
|
204
120
|
accountIDs: ID[];
|
|
205
121
|
reconciliationByAccountID: Record<ID, AccountReconciliationDataWithTransactionFetchState>;
|
|
206
122
|
}
|
|
207
|
-
export interface StatementTransactionForUpdate {
|
|
208
|
-
amount: number;
|
|
209
|
-
transactionDate: string;
|
|
210
|
-
transactionDirection: 'debit' | 'credit';
|
|
211
|
-
transactionMemo: string;
|
|
212
|
-
statementTransactionId?: string;
|
|
213
|
-
}
|
|
214
|
-
export interface StatementTransactionsUpdate {
|
|
215
|
-
added: StatementTransactionForUpdate[];
|
|
216
|
-
deletedIds: string[];
|
|
217
|
-
updated: StatementTransactionForUpdate[];
|
|
218
|
-
}
|
|
219
|
-
export interface StatementUpdateLocalData {
|
|
220
|
-
statementMeta: StatementMeta;
|
|
221
|
-
statementTransactions: StatementTransactionsUpdate;
|
|
222
|
-
}
|
|
223
|
-
export interface StatementUpdateLocalDataPayload {
|
|
224
|
-
statement_meta: {
|
|
225
|
-
opening_balance: number;
|
|
226
|
-
statement_end_date: string;
|
|
227
|
-
statement_start_date: string;
|
|
228
|
-
total_deposits: number;
|
|
229
|
-
total_payments: number;
|
|
230
|
-
};
|
|
231
|
-
statement_transactions: {
|
|
232
|
-
added: Array<{
|
|
233
|
-
amount: number;
|
|
234
|
-
transaction_date: string;
|
|
235
|
-
transaction_direction: 'debit' | 'credit';
|
|
236
|
-
transaction_memo: string;
|
|
237
|
-
}>;
|
|
238
|
-
deleted_ids: string[];
|
|
239
|
-
updated: Array<{
|
|
240
|
-
amount: number;
|
|
241
|
-
statement_transaction_id: string;
|
|
242
|
-
transaction_date: string;
|
|
243
|
-
transaction_direction: 'debit' | 'credit';
|
|
244
|
-
transaction_memo: string;
|
|
245
|
-
}>;
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
123
|
export interface AccountReconciliationLocalData {
|
|
249
124
|
accountSource?: ReconciliationAccountSourceType;
|
|
250
|
-
statementUpdateLocalData?: StatementUpdateLocalData;
|
|
251
125
|
}
|
|
252
126
|
export interface AccountReconciliationDataWithTransactionFetchState {
|
|
253
127
|
accountId: ID;
|
|
@@ -255,12 +129,10 @@ export interface AccountReconciliationDataWithTransactionFetchState {
|
|
|
255
129
|
refreshStatus: FetchStateAndError;
|
|
256
130
|
statementDeleteStatus: FetchStateAndError;
|
|
257
131
|
statementParseInProgress: boolean;
|
|
258
|
-
statementParseStatus: FetchStateAndError;
|
|
259
132
|
statementUpdateStatus: FetchStateAndError;
|
|
260
133
|
statementUploadStatus: FetchStateAndError;
|
|
261
134
|
transactionFetchState: FetchStateAndError;
|
|
262
135
|
accountDetectionReason?: string;
|
|
263
|
-
parsedStatementData?: ParsedStatementData;
|
|
264
136
|
reconciliationId?: ID;
|
|
265
137
|
}
|
|
266
138
|
export {};
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toReconciliationTabsType = exports.toReconcileActions = exports.RECONCILE_ACTIONS = void 0;
|
|
4
|
-
exports.toReconciliationViewSummary = toReconciliationViewSummary;
|
|
5
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
6
|
-
function toReconciliationViewSummary(payload) {
|
|
7
|
-
return {
|
|
8
|
-
accounts: {
|
|
9
|
-
done: payload.accounts.done,
|
|
10
|
-
failed: payload.accounts.failed,
|
|
11
|
-
inProgress: payload.accounts.in_progress,
|
|
12
|
-
total: payload.accounts.total,
|
|
13
|
-
},
|
|
14
|
-
accountsToConnectCount: payload.accounts_to_connect_count,
|
|
15
|
-
autoMatched: {
|
|
16
|
-
matchedTxns: payload.auto_matched.matched_txns,
|
|
17
|
-
totalTxns: payload.auto_matched.total_txns,
|
|
18
|
-
},
|
|
19
|
-
needsReview: {
|
|
20
|
-
accountCount: payload.needs_review.account_count,
|
|
21
|
-
txnCount: payload.needs_review.txn_count,
|
|
22
|
-
},
|
|
23
|
-
timeSavedPercentage: payload.time_saved_percentage,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
5
|
exports.RECONCILE_ACTIONS = [
|
|
27
6
|
'reconcile',
|
|
28
7
|
'save_reconcile_for_later',
|
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const fileReducer_1 = require("../../../entity/file/fileReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../responsePayload");
|
|
8
8
|
const fileViewReducer_1 = require("../fileViewReducer");
|
|
9
|
-
const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.deleteFile.match), (0, operators_1.
|
|
9
|
+
const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.deleteFile.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
/**
|
|
11
11
|
* tenantId is required for deleting onboarding files.
|
|
12
12
|
*/
|
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const fileReducer_1 = require("../../../entity/file/fileReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../responsePayload");
|
|
8
8
|
const fileViewReducer_1 = require("../fileViewReducer");
|
|
9
|
-
const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.deleteFileList.match), (0, operators_1.
|
|
9
|
+
const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.deleteFileList.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
const { fileIds } = action.payload;
|
|
11
11
|
return zeniAPI
|
|
12
12
|
.deleteAndGetJSON(`${zeniAPI.apiEndPoints.fileMicroServiceBaseUrl}/1.0/files?query=${encodeURIComponent(JSON.stringify({ file_ids: fileIds }))}`)
|
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const fileReducer_1 = require("../../../entity/file/fileReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../responsePayload");
|
|
8
8
|
const fileViewReducer_1 = require("../fileViewReducer");
|
|
9
|
-
const updateFileNameEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.updateFileName.match), (0, operators_1.
|
|
9
|
+
const updateFileNameEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(fileViewReducer_1.updateFileName.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
/**
|
|
11
11
|
* tenantId is required for updating onboarding file names.
|
|
12
12
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
5
|
+
import { fetchAiAgentsActivationStatus, fetchAiAgentsActivationStatusFailure, fetchAiAgentsActivationStatusSuccess } from '../../onboardingCustomerViewReducer';
|
|
6
|
+
export type ActionType = ReturnType<typeof fetchAiAgentsActivationStatus> | ReturnType<typeof fetchAiAgentsActivationStatusSuccess> | ReturnType<typeof fetchAiAgentsActivationStatusFailure>;
|
|
7
|
+
export declare const fetchAiAgentsActivationStatusEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAiAgentsActivationStatusEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../../../responsePayload");
|
|
7
|
+
const onboardingCustomerViewReducer_1 = require("../../onboardingCustomerViewReducer");
|
|
8
|
+
const toPhaseStatus = (raw) => {
|
|
9
|
+
if (raw === 'idle' ||
|
|
10
|
+
raw === 'starting' ||
|
|
11
|
+
raw === 'building' ||
|
|
12
|
+
raw === 'ready') {
|
|
13
|
+
return raw;
|
|
14
|
+
}
|
|
15
|
+
return 'idle';
|
|
16
|
+
};
|
|
17
|
+
const toPhase = (row) => ({
|
|
18
|
+
key: row.key,
|
|
19
|
+
status: toPhaseStatus(row.status),
|
|
20
|
+
startedAt: row.started_at,
|
|
21
|
+
completedAt: row.completed_at,
|
|
22
|
+
});
|
|
23
|
+
const toCounts = (payload) => ({
|
|
24
|
+
customerCount: payload?.customer_count ?? 0,
|
|
25
|
+
glAccountCount: payload?.gl_account_count ?? 0,
|
|
26
|
+
targetTransactionCount: payload?.target_transaction_count ?? 0,
|
|
27
|
+
transactionCount: payload?.transaction_count ?? 0,
|
|
28
|
+
vendorCount: payload?.vendor_count ?? 0,
|
|
29
|
+
});
|
|
30
|
+
const fetchAiAgentsActivationStatusEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(onboardingCustomerViewReducer_1.fetchAiAgentsActivationStatus.match), (0, operators_1.mergeMap)(() => {
|
|
31
|
+
const url = `${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/ai-agents-activation/status`;
|
|
32
|
+
return zeniAPI
|
|
33
|
+
.getJSON(url)
|
|
34
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
35
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
36
|
+
const phases = (response.data.phases ?? []).map(toPhase);
|
|
37
|
+
return (0, rxjs_1.of)((0, onboardingCustomerViewReducer_1.fetchAiAgentsActivationStatusSuccess)({
|
|
38
|
+
phases,
|
|
39
|
+
counts: toCounts(response.data.counts),
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
return (0, rxjs_1.of)((0, onboardingCustomerViewReducer_1.fetchAiAgentsActivationStatusFailure)(response.status));
|
|
43
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, onboardingCustomerViewReducer_1.fetchAiAgentsActivationStatusFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'fetchAiAgentsActivationStatus errored out ' +
|
|
44
|
+
JSON.stringify(error))))));
|
|
45
|
+
}));
|
|
46
|
+
exports.fetchAiAgentsActivationStatusEpic = fetchAiAgentsActivationStatusEpic;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { updateCompanies } from '../../../../../entity/company/companyReducer';
|
|
4
|
+
import { RootState } from '../../../../../reducer';
|
|
5
|
+
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
6
|
+
import { acknowledgeOnboardingAiActivationViewed, acknowledgeOnboardingAiActivationViewedFailure, acknowledgeOnboardingAiActivationViewedSuccess } from '../../onboardingCustomerViewReducer';
|
|
7
|
+
export type ActionType = ReturnType<typeof acknowledgeOnboardingAiActivationViewed> | ReturnType<typeof updateCompanies> | ReturnType<typeof acknowledgeOnboardingAiActivationViewedSuccess> | ReturnType<typeof acknowledgeOnboardingAiActivationViewedFailure>;
|
|
8
|
+
export declare const acknowledgeOnboardingAiActivationViewedEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|