@zeniai/client-epic-state 5.0.95-betaML1 → 5.0.96
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/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 -18
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -7
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -3
- 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 -6
- package/lib/entity/tenant/clearAllEpic.js +0 -8
- package/lib/epic.d.ts +3 -18
- package/lib/epic.js +3 -18
- 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 -15
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -7
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -3
- package/lib/esm/entity/task/taskPayload.js +0 -2
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -8
- package/lib/esm/epic.js +3 -18
- package/lib/esm/index.js +12 -42
- package/lib/esm/reducer.js +0 -12
- 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/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +0 -15
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +5 -63
- package/lib/esm/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.js +3 -12
- package/lib/esm/view/recommendation/recommendationReducer.js +1 -18
- 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/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.js +0 -7
- package/lib/esm/view/transactionDetail/transactionDetailReducer.js +3 -44
- package/lib/index.d.ts +14 -49
- package/lib/index.js +22 -194
- package/lib/reducer.d.ts +0 -12
- package/lib/reducer.js +0 -12
- 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 +4 -10
- 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/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +0 -15
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +5 -63
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.d.ts +2 -2
- package/lib/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.js +1 -10
- package/lib/view/recommendation/recommendationReducer.d.ts +1 -3
- package/lib/view/recommendation/recommendationReducer.js +2 -19
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- 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/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/lib/view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.d.ts +1 -2
- package/lib/view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.js +0 -7
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailReducer.js +3 -44
- package/package.json +1 -1
- package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
- package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
- package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
- package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
- package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
- package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
- package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
- package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
- package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
- package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
- package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
- package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
- package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
- package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
- package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
- package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
- package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
- package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
- package/lib/esm/view/recommendation/recommendationStaleResponseHelper.js +0 -26
- 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 -58
- 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 -39
- 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/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/recommendation/recommendationStaleResponseHelper.d.ts +0 -7
- package/lib/view/recommendation/recommendationStaleResponseHelper.js +0 -30
- 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 -62
- 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 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -43
- 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
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { deriveAiCardRowsFromTeams } from './deriveAiCardRowsFromTeams';
|
|
2
|
-
// Re-derives step-2 `cardRows` only when step-1 team selection changed.
|
|
3
|
-
// Step-2-only edits must skip the re-derive: `deriveAiCardRowsFromTeams` keys
|
|
4
|
-
// off `cardRow.id`, and a dropdown swap has just mutated it — re-running would
|
|
5
|
-
// revert the edit to the source team's id/label.
|
|
6
|
-
export const applyAiCardCreationFormDraftUpdate = ({ next, prev, context, }) => {
|
|
7
|
-
if (context == null || context.mode === 'create') {
|
|
8
|
-
return next;
|
|
9
|
-
}
|
|
10
|
-
if (!haveCheckedTeamRowsChanged(prev?.teamRows, next.teamRows)) {
|
|
11
|
-
return next;
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
teamRows: next.teamRows,
|
|
15
|
-
cardRows: deriveAiCardRowsFromTeams({
|
|
16
|
-
teamRows: next.teamRows,
|
|
17
|
-
prevCardRows: next.cardRows,
|
|
18
|
-
allUsers: context.allUsers,
|
|
19
|
-
suggestedOwnerUserIdByTeamId: context.suggestedOwnerUserIdByTeamId,
|
|
20
|
-
}),
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
const haveCheckedTeamRowsChanged = (prevTeamRows, nextTeamRows) => {
|
|
24
|
-
const prevCheckedIds = (prevTeamRows ?? [])
|
|
25
|
-
.filter((row) => row.isChecked)
|
|
26
|
-
.map((row) => row.id);
|
|
27
|
-
const nextCheckedIds = nextTeamRows
|
|
28
|
-
.filter((row) => row.isChecked)
|
|
29
|
-
.map((row) => row.id);
|
|
30
|
-
if (prevCheckedIds.length !== nextCheckedIds.length) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
return prevCheckedIds.some((id, idx) => id !== nextCheckedIds[idx]);
|
|
34
|
-
};
|
package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { deriveAiCardRowsFromTeams } from './deriveAiCardRowsFromTeams';
|
|
2
|
-
// Branches on `initialData.mode`:
|
|
3
|
-
// - review: step-1 teams start checked; step-2 `cardRows` pre-derived so the
|
|
4
|
-
// happy path (no toggle) lands on a populated table.
|
|
5
|
-
// - create: seed `cardRows` from AI's suggested cards; `teamRows` stays empty.
|
|
6
|
-
export const buildAiCardCreationFormDraftSeed = ({ initialData, allUsers, }) => {
|
|
7
|
-
const context = {
|
|
8
|
-
allUsers,
|
|
9
|
-
mode: initialData.mode,
|
|
10
|
-
suggestedOwnerUserIdByTeamId: initialData.suggestedOwnerUserIdByTeamId,
|
|
11
|
-
};
|
|
12
|
-
if (initialData.mode === 'create') {
|
|
13
|
-
return {
|
|
14
|
-
context,
|
|
15
|
-
draft: {
|
|
16
|
-
teamRows: [],
|
|
17
|
-
cardRows: initialData.cardRows.map((seed) => buildCardRowFromSeed(seed, allUsers)),
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const teamRows = initialData.teamRows.map((row) => ({
|
|
22
|
-
cardKind: row.cardKind,
|
|
23
|
-
id: row.id,
|
|
24
|
-
isChecked: true,
|
|
25
|
-
label: row.label,
|
|
26
|
-
value: row.avgMonthlySpend,
|
|
27
|
-
rightLabel: row.recommendedLimit,
|
|
28
|
-
rightSubLabel: row.recommendedLimitCadence,
|
|
29
|
-
}));
|
|
30
|
-
return {
|
|
31
|
-
context,
|
|
32
|
-
draft: {
|
|
33
|
-
teamRows,
|
|
34
|
-
cardRows: deriveAiCardRowsFromTeams({
|
|
35
|
-
teamRows,
|
|
36
|
-
prevCardRows: [],
|
|
37
|
-
allUsers,
|
|
38
|
-
suggestedOwnerUserIdByTeamId: initialData.suggestedOwnerUserIdByTeamId,
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
const buildCardRowFromSeed = (seed, allUsers) => {
|
|
44
|
-
const selectedUser = seed.suggestedOwnerUserId != null
|
|
45
|
-
? allUsers.find((user) => user.userId === seed.suggestedOwnerUserId)
|
|
46
|
-
: undefined;
|
|
47
|
-
return {
|
|
48
|
-
cardKind: seed.cardKind,
|
|
49
|
-
id: seed.id,
|
|
50
|
-
label: seed.label,
|
|
51
|
-
owner: {
|
|
52
|
-
allUsers,
|
|
53
|
-
selectedUser,
|
|
54
|
-
},
|
|
55
|
-
recommendedLimit: seed.recommendedLimit,
|
|
56
|
-
};
|
|
57
|
-
};
|
package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// One row per checked team in source order. Existing rows are preserved
|
|
2
|
-
// verbatim so step-2 user edits survive upstream re-derives; new teams seed
|
|
3
|
-
// owner from the suggestion map and `recommendedLimit` by parsing `rightLabel`.
|
|
4
|
-
export const deriveAiCardRowsFromTeams = ({ teamRows, prevCardRows = [], allUsers, suggestedOwnerUserIdByTeamId, }) => {
|
|
5
|
-
const prevById = new Map(prevCardRows.map((row) => [row.id, row]));
|
|
6
|
-
const userById = new Map(allUsers.map((user) => [user.userId, user]));
|
|
7
|
-
return teamRows
|
|
8
|
-
.filter((row) => row.isChecked)
|
|
9
|
-
.map((teamRow) => {
|
|
10
|
-
const previous = prevById.get(teamRow.id);
|
|
11
|
-
if (previous != null) {
|
|
12
|
-
return previous;
|
|
13
|
-
}
|
|
14
|
-
const suggestedUserId = suggestedOwnerUserIdByTeamId[teamRow.id];
|
|
15
|
-
const selectedUser = suggestedUserId != null ? userById.get(suggestedUserId) : undefined;
|
|
16
|
-
return {
|
|
17
|
-
cardKind: teamRow.cardKind,
|
|
18
|
-
id: teamRow.id,
|
|
19
|
-
label: teamRow.label,
|
|
20
|
-
owner: {
|
|
21
|
-
allUsers,
|
|
22
|
-
selectedUser,
|
|
23
|
-
},
|
|
24
|
-
recommendedLimit: parseLimitToFloat(teamRow.rightLabel),
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
const parseLimitToFloat = (raw) => {
|
|
29
|
-
const cleaned = raw.replace(/[^0-9.-]/g, '');
|
|
30
|
-
if (cleaned.length === 0) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
const parsed = Number(cleaned);
|
|
34
|
-
return Number.isFinite(parsed) ? parsed : undefined;
|
|
35
|
-
};
|
package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { EMPTY, concat, of } from 'rxjs';
|
|
2
|
-
import { distinctUntilChanged, filter, map, mergeMap, take, } from 'rxjs/operators';
|
|
3
|
-
import { upsertAnswerPayload, upsertOrAddQuestionAnswerPayload, } from '../../../../entity/aiCfo/aiCfoReducer';
|
|
4
|
-
import { getQuestionAnswerByIdForChatSession } from '../../../../entity/aiCfo/aiCfoSelector';
|
|
5
|
-
import { fetchUserListByType } from '../../../userListView/userListViewReducer';
|
|
6
|
-
import { getUserList } from '../../../userListView/userListViewSelector';
|
|
7
|
-
import { clearAiCardCreationFormDraft, issueChargeCardSuccessOrFailure, seedAiCardCreationFormDraft, } from './issueChargeCardReducer';
|
|
8
|
-
const readAllUsersAsUserArray = (state) => getUserList(state.userState, state.userRoleState, state.userListViewState, 'cardHolderCandidate')
|
|
9
|
-
.users.map((person) => person.user)
|
|
10
|
-
.filter((user) => user != null);
|
|
11
|
-
const readCardsCreationPayload = (state, chatSessionId, questionAnswerId) => {
|
|
12
|
-
const qa = getQuestionAnswerByIdForChatSession(state.aiCfoState, chatSessionId, questionAnswerId);
|
|
13
|
-
const visualization = qa?.responses.answer?.content.visualization;
|
|
14
|
-
if (visualization?.type !== 'interactive_form') {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
const data = visualization.data;
|
|
18
|
-
if (!('formType' in data) || data.formType !== 'cards_creation') {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
return data.payload;
|
|
22
|
-
};
|
|
23
|
-
// Pusher may target "latest QA"; REST always carries the id. Either way,
|
|
24
|
-
// resolve to the QA the reducer just wrote so we can read it off state.
|
|
25
|
-
const resolveQuestionAnswerId = (state, action) => {
|
|
26
|
-
if (action.payload.questionAnswerId != null) {
|
|
27
|
-
return action.payload.questionAnswerId;
|
|
28
|
-
}
|
|
29
|
-
const session = state.aiCfoState.aiCfoByChatSessionId[action.payload.chatSessionId];
|
|
30
|
-
return session?.questionAnswers.slice(-1)[0]?.questionAnswerId;
|
|
31
|
-
};
|
|
32
|
-
const isSeedTrigger = (action) => upsertAnswerPayload.match(action) ||
|
|
33
|
-
upsertOrAddQuestionAnswerPayload.match(action);
|
|
34
|
-
export const seedAiCardCreationFormDraftEpic = (actions$, state$) => actions$.pipe(mergeMap((action) => {
|
|
35
|
-
if (issueChargeCardSuccessOrFailure.match(action) &&
|
|
36
|
-
action.payload.fetchState === 'Completed') {
|
|
37
|
-
return of(clearAiCardCreationFormDraft());
|
|
38
|
-
}
|
|
39
|
-
if (!isSeedTrigger(action)) {
|
|
40
|
-
return EMPTY;
|
|
41
|
-
}
|
|
42
|
-
const state = state$.value;
|
|
43
|
-
const questionAnswerId = resolveQuestionAnswerId(state, action);
|
|
44
|
-
if (questionAnswerId == null) {
|
|
45
|
-
return EMPTY;
|
|
46
|
-
}
|
|
47
|
-
const payload = readCardsCreationPayload(state, action.payload.chatSessionId, questionAnswerId);
|
|
48
|
-
if (payload == null) {
|
|
49
|
-
return EMPTY;
|
|
50
|
-
}
|
|
51
|
-
const allUsersNow = readAllUsersAsUserArray(state);
|
|
52
|
-
if (allUsersNow.length > 0) {
|
|
53
|
-
return of(seedAiCardCreationFormDraft(allUsersNow, payload));
|
|
54
|
-
}
|
|
55
|
-
const seedWhenUsersLoaded$ = state$.pipe(map(readAllUsersAsUserArray), distinctUntilChanged((prev, next) => prev.length === next.length &&
|
|
56
|
-
prev.every((user, idx) => user === next[idx])), filter((users) => users.length > 0), take(1), map((users) => seedAiCardCreationFormDraft(users, payload)));
|
|
57
|
-
const userListFetchState = state.userListViewState.userListByType.cardHolderCandidate.fetchState;
|
|
58
|
-
if (userListFetchState === 'In-Progress') {
|
|
59
|
-
return seedWhenUsersLoaded$;
|
|
60
|
-
}
|
|
61
|
-
return concat(of(fetchUserListByType('cardHolderCandidate', false)), seedWhenUsersLoaded$);
|
|
62
|
-
}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// V1: AI CFO only issues monthly business_virtual_credit_cards. Form has no
|
|
2
|
-
// frequency field; the unused physicalCard/debitCard slots are filled with
|
|
3
|
-
// empty defaults the epic ignores.
|
|
4
|
-
const DEFAULT_FREQUENCY = 'monthly';
|
|
5
|
-
const DEFAULT_CURRENCY_CODE = 'USD';
|
|
6
|
-
const DEFAULT_CURRENCY_SYMBOL = '$';
|
|
7
|
-
const mapCardRow = (row) => {
|
|
8
|
-
const ownerUserId = row.owner.selectedUser?.userId;
|
|
9
|
-
return {
|
|
10
|
-
lineId: row.id,
|
|
11
|
-
chargeCardType: 'credit_card',
|
|
12
|
-
creditCard: {
|
|
13
|
-
cardType: 'business_virtual_credit_card',
|
|
14
|
-
virtualCard: {
|
|
15
|
-
cardName: row.label,
|
|
16
|
-
frequency: DEFAULT_FREQUENCY,
|
|
17
|
-
userIds: ownerUserId != null ? [ownerUserId] : [],
|
|
18
|
-
amount: {
|
|
19
|
-
amount: row.recommendedLimit ?? 0,
|
|
20
|
-
currencyCode: DEFAULT_CURRENCY_CODE,
|
|
21
|
-
currencySymbol: DEFAULT_CURRENCY_SYMBOL,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
physicalCard: {
|
|
25
|
-
cardName: '',
|
|
26
|
-
frequency: DEFAULT_FREQUENCY,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
debitCard: {
|
|
30
|
-
cardType: 'business_virtual_debit_card',
|
|
31
|
-
virtualCard: {
|
|
32
|
-
cardName: '',
|
|
33
|
-
frequency: DEFAULT_FREQUENCY,
|
|
34
|
-
userIds: [],
|
|
35
|
-
},
|
|
36
|
-
physicalCard: {
|
|
37
|
-
cardName: '',
|
|
38
|
-
frequency: DEFAULT_FREQUENCY,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
// Returns [] when `cardRows` is empty so callers can short-circuit submission.
|
|
44
|
-
export const toIssueChargeCardLocalDataFromDraft = (draft) => draft.cardRows.map(mapCardRow);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { updateCompanies } from '../../../entity/company/companyReducer';
|
|
4
|
-
import { updateAllUsers } from '../../../entity/user/userReducer';
|
|
5
|
-
import { updateAllUserGroups } from '../../../entity/userGroups/userGroupsReducer';
|
|
6
|
-
import { RootState } from '../../../reducer';
|
|
7
|
-
import { ZeniAPI } from '../../../zeniAPI';
|
|
8
|
-
import { fetchCockpitContext, updateCockpitContextOnFailure, updateCockpitContextOnSuccess } from '../companyTaskManagerViewReducer';
|
|
9
|
-
export type ActionType = ReturnType<typeof fetchCockpitContext> | ReturnType<typeof updateCockpitContextOnSuccess> | ReturnType<typeof updateCockpitContextOnFailure> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateAllUserGroups>;
|
|
10
|
-
export declare const fetchCockpitContextEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchCockpitContextEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const companyReducer_1 = require("../../../entity/company/companyReducer");
|
|
7
|
-
const userReducer_1 = require("../../../entity/user/userReducer");
|
|
8
|
-
const userGroupsReducer_1 = require("../../../entity/userGroups/userGroupsReducer");
|
|
9
|
-
const responsePayload_1 = require("../../../responsePayload");
|
|
10
|
-
const companyTaskManagerViewReducer_1 = require("../companyTaskManagerViewReducer");
|
|
11
|
-
const fetchCockpitContextEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyTaskManagerViewReducer_1.fetchCockpitContext.match), (0, operators_1.switchMap)(() => zeniAPI
|
|
12
|
-
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels/cockpit-context`)
|
|
13
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
|
-
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
15
|
-
const companies = response.data?.companies ?? [];
|
|
16
|
-
const users = response.data?.users ?? [];
|
|
17
|
-
const userGroups = response.data?.user_groups ?? [];
|
|
18
|
-
const companyIds = companies.map((company) => company.company_id);
|
|
19
|
-
const userIds = users.map((user) => user.user_id);
|
|
20
|
-
const userGroupIds = userGroups.map((userGroup) => userGroup.id);
|
|
21
|
-
const actions = [
|
|
22
|
-
(0, companyReducer_1.updateCompanies)({
|
|
23
|
-
payload: response.data.companies,
|
|
24
|
-
schema: {},
|
|
25
|
-
}),
|
|
26
|
-
(0, userReducer_1.updateAllUsers)({ users: response.data.users }),
|
|
27
|
-
(0, userGroupsReducer_1.updateAllUserGroups)({
|
|
28
|
-
userGroups: response.data.user_groups,
|
|
29
|
-
}),
|
|
30
|
-
(0, companyTaskManagerViewReducer_1.updateCockpitContextOnSuccess)({
|
|
31
|
-
companyIds,
|
|
32
|
-
userIds,
|
|
33
|
-
userGroupIds,
|
|
34
|
-
}),
|
|
35
|
-
];
|
|
36
|
-
return (0, rxjs_1.from)(actions);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return (0, rxjs_1.of)((0, companyTaskManagerViewReducer_1.updateCockpitContextOnFailure)(response.status));
|
|
40
|
-
}
|
|
41
|
-
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, companyTaskManagerViewReducer_1.updateCockpitContextOnFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Cockpit context fetch errored out' + JSON.stringify(error))))))));
|
|
42
|
-
exports.fetchCockpitContextEpic = fetchCockpitContextEpic;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { RootState } from '../../../reducer';
|
|
4
|
-
import { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewFilters } from '../companyTaskManagerViewReducer';
|
|
5
|
-
export type ActionType = ReturnType<typeof updateCompanyTaskManagerViewFilters> | ReturnType<typeof fetchCompanyTaskManagerView>;
|
|
6
|
-
export declare const updateCompanyTaskManagerViewFiltersEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCompanyTaskManagerViewFiltersEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const companyTaskManagerViewReducer_1 = require("../companyTaskManagerViewReducer");
|
|
7
|
-
const updateCompanyTaskManagerViewFiltersEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(companyTaskManagerViewReducer_1.updateCompanyTaskManagerViewFilters.match), (0, operators_1.switchMap)((action) => {
|
|
8
|
-
const filters = action.payload.filters;
|
|
9
|
-
const allCategoriesValid = filters?.categories == null
|
|
10
|
-
? true
|
|
11
|
-
: filters?.categories?.every((category) => category.field != null &&
|
|
12
|
-
category.values != null &&
|
|
13
|
-
category.values.length > 0);
|
|
14
|
-
if (!allCategoriesValid) {
|
|
15
|
-
return rxjs_1.EMPTY;
|
|
16
|
-
}
|
|
17
|
-
const { uiState } = state$.value.companyTaskManagerViewState;
|
|
18
|
-
return (0, rxjs_1.of)((0, companyTaskManagerViewReducer_1.fetchCompanyTaskManagerView)(0, uiState.sortKey, uiState.sortOrder, false, uiState.filterText, filters));
|
|
19
|
-
}));
|
|
20
|
-
exports.updateCompanyTaskManagerViewFiltersEpic = updateCompanyTaskManagerViewFiltersEpic;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { Entity } from '../../entity/genericEntity/entity';
|
|
3
|
-
export declare const getLineIdsWhereEntityStillMatches: (args: {
|
|
4
|
-
lineIds: ID[];
|
|
5
|
-
payloadEntity: Entity;
|
|
6
|
-
getCurrentEntityForLine: (lineId: ID) => Entity | undefined;
|
|
7
|
-
}) => ID[];
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLineIdsWhereEntityStillMatches = void 0;
|
|
4
|
-
// Two entities refer to the same real-world thing iff they share both
|
|
5
|
-
// type and id. We deliberately compare on these fields only — qboId /
|
|
6
|
-
// zeniId can lag during entity-create flows where the persisted id
|
|
7
|
-
// hasn't been roundtripped yet, while `id` is the local-source-of-truth
|
|
8
|
-
// the line carries.
|
|
9
|
-
const entitiesMatch = (a, b) => a != null && b != null && a.type === b.type && a.id === b.id;
|
|
10
|
-
// Filters `lineIds` down to those whose currently selected entity (as
|
|
11
|
-
// reported by the caller) still matches the payload entity at the
|
|
12
|
-
// moment the success reducer fires. Used by the two
|
|
13
|
-
// `setEntityRecommendationForLineIds…` reducers as a defensive guard
|
|
14
|
-
// against stale responses landing after the user (or a background
|
|
15
|
-
// refresh) has changed or wiped their selection.
|
|
16
|
-
//
|
|
17
|
-
// Each flow decides separately where the "current entity" lives,
|
|
18
|
-
// because the rules diverge:
|
|
19
|
-
// - Detail flow: vendor + customer transactions read from page-level
|
|
20
|
-
// `selectedEntity`; JE / deposit reads per-line `lineEntity`.
|
|
21
|
-
// - List flow: ONLY vendor reads from page-level `selectedEntity`;
|
|
22
|
-
// customer, JE, deposit all read per-line `selectedEntityLine`.
|
|
23
|
-
// Pushing the lookup into the caller keeps this helper a pure
|
|
24
|
-
// comparator and avoids the helper having to know which flow / page-
|
|
25
|
-
// level rule applies.
|
|
26
|
-
const getLineIdsWhereEntityStillMatches = (args) => {
|
|
27
|
-
const { lineIds, payloadEntity, getCurrentEntityForLine } = args;
|
|
28
|
-
return lineIds.filter((lineId) => entitiesMatch(payloadEntity, getCurrentEntityForLine(lineId)));
|
|
29
|
-
};
|
|
30
|
-
exports.getLineIdsWhereEntityStillMatches = getLineIdsWhereEntityStillMatches;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FetchState } from '../../../../../commonStateTypes/common';
|
|
2
|
-
import { CreateCardPolicyTemplateRequest } from '../../../../../entity/cardPolicy/cardPolicyPayload';
|
|
3
|
-
import { ZeniAPIStatus } from '../../../../../responsePayload';
|
|
4
|
-
import { CardPolicyDetailState } from './cardPolicyDetailState';
|
|
5
|
-
export declare const initialState: CardPolicyDetailState;
|
|
6
|
-
export declare const fetchCardPolicyDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[templateId: string], string, "cardPolicyDetail/fetchCardPolicyDetail", never, never>, updateCardPolicyDetailFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
7
|
-
fetchState: FetchState;
|
|
8
|
-
error?: ZeniAPIStatus;
|
|
9
|
-
}, "cardPolicyDetail/updateCardPolicyDetailFetchStatus">, updateCardPolicyFormDraft: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreateCardPolicyTemplateRequest, "cardPolicyDetail/updateCardPolicyFormDraft">, updateCardPolicy: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[templateId: string], string, "cardPolicyDetail/updateCardPolicy", never, never>, updateCardPolicyFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
-
fetchState: FetchState;
|
|
11
|
-
error?: ZeniAPIStatus;
|
|
12
|
-
}, "cardPolicyDetail/updateCardPolicyFetchStatus">, clearCardPolicyDetail: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cardPolicyDetail/clearCardPolicyDetail">;
|
|
13
|
-
declare const _default: import("redux").Reducer<CardPolicyDetailState>;
|
|
14
|
-
export default _default;
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearCardPolicyDetail = exports.updateCardPolicyFetchStatus = exports.updateCardPolicy = exports.updateCardPolicyFormDraft = exports.updateCardPolicyDetailFetchStatus = exports.fetchCardPolicyDetail = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
exports.initialState = {
|
|
7
|
-
detailTemplateId: undefined,
|
|
8
|
-
detailFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
9
|
-
updateFetchState: { fetchState: 'Not-Started', error: undefined },
|
|
10
|
-
formDraft: undefined,
|
|
11
|
-
};
|
|
12
|
-
const cardPolicyDetail = (0, toolkit_1.createSlice)({
|
|
13
|
-
name: 'cardPolicyDetail',
|
|
14
|
-
initialState: exports.initialState,
|
|
15
|
-
reducers: {
|
|
16
|
-
fetchCardPolicyDetail: {
|
|
17
|
-
reducer(draft, action) {
|
|
18
|
-
draft.detailTemplateId = action.payload;
|
|
19
|
-
draft.detailFetchState.fetchState = 'In-Progress';
|
|
20
|
-
draft.detailFetchState.error = undefined;
|
|
21
|
-
// Prevent a stale draft from a previous template leaking into the new edit session.
|
|
22
|
-
draft.formDraft = undefined;
|
|
23
|
-
},
|
|
24
|
-
prepare(templateId) {
|
|
25
|
-
return { payload: templateId };
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
updateCardPolicyDetailFetchStatus(draft, action) {
|
|
29
|
-
draft.detailFetchState.fetchState = action.payload.fetchState;
|
|
30
|
-
draft.detailFetchState.error = action.payload.error;
|
|
31
|
-
},
|
|
32
|
-
updateCardPolicyFormDraft(draft, action) {
|
|
33
|
-
draft.formDraft = action.payload;
|
|
34
|
-
},
|
|
35
|
-
updateCardPolicy: {
|
|
36
|
-
reducer(draft,
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
38
|
-
_action) {
|
|
39
|
-
draft.updateFetchState.fetchState = 'In-Progress';
|
|
40
|
-
draft.updateFetchState.error = undefined;
|
|
41
|
-
},
|
|
42
|
-
prepare(templateId) {
|
|
43
|
-
return { payload: templateId };
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
updateCardPolicyFetchStatus(draft, action) {
|
|
47
|
-
draft.updateFetchState.fetchState = action.payload.fetchState;
|
|
48
|
-
draft.updateFetchState.error = action.payload.error;
|
|
49
|
-
},
|
|
50
|
-
clearCardPolicyDetail(draft) {
|
|
51
|
-
Object.assign(draft, exports.initialState);
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
_a = cardPolicyDetail.actions, exports.fetchCardPolicyDetail = _a.fetchCardPolicyDetail, exports.updateCardPolicyDetailFetchStatus = _a.updateCardPolicyDetailFetchStatus, exports.updateCardPolicyFormDraft = _a.updateCardPolicyFormDraft, exports.updateCardPolicy = _a.updateCardPolicy, exports.updateCardPolicyFetchStatus = _a.updateCardPolicyFetchStatus, exports.clearCardPolicyDetail = _a.clearCardPolicyDetail;
|
|
56
|
-
exports.default = cardPolicyDetail.reducer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FetchStateAndError, ID } from '../../../../../commonStateTypes/common';
|
|
2
|
-
import { CreateCardPolicyTemplateRequest } from '../../../../../entity/cardPolicy/cardPolicyPayload';
|
|
3
|
-
import { CardPolicyTemplate } from '../../../../../entity/cardPolicy/cardPolicyState';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
export interface CardPolicyDetailSelectorView {
|
|
6
|
-
detailFetchState: FetchStateAndError;
|
|
7
|
-
updateFetchState: FetchStateAndError;
|
|
8
|
-
formDraft?: CreateCardPolicyTemplateRequest;
|
|
9
|
-
template?: CardPolicyTemplate;
|
|
10
|
-
templateId?: ID;
|
|
11
|
-
}
|
|
12
|
-
export declare function getCardPolicyDetailView(state: RootState): CardPolicyDetailSelectorView;
|
|
13
|
-
export declare function getCardPolicyFormDraft(state: RootState): CreateCardPolicyTemplateRequest | undefined;
|
|
14
|
-
export declare function getCardPolicyDetailFetchState(state: RootState): FetchStateAndError;
|
|
15
|
-
export declare function getUpdateCardPolicyFetchState(state: RootState): FetchStateAndError;
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCardPolicyDetailView = getCardPolicyDetailView;
|
|
4
|
-
exports.getCardPolicyFormDraft = getCardPolicyFormDraft;
|
|
5
|
-
exports.getCardPolicyDetailFetchState = getCardPolicyDetailFetchState;
|
|
6
|
-
exports.getUpdateCardPolicyFetchState = getUpdateCardPolicyFetchState;
|
|
7
|
-
const cardPolicySelector_1 = require("../../../../../entity/cardPolicy/cardPolicySelector");
|
|
8
|
-
function getCardPolicyDetailView(state) {
|
|
9
|
-
const { cardPolicyDetailState, cardPolicyState } = state;
|
|
10
|
-
return {
|
|
11
|
-
templateId: cardPolicyDetailState.detailTemplateId,
|
|
12
|
-
template: cardPolicyDetailState.detailTemplateId != null
|
|
13
|
-
? (0, cardPolicySelector_1.getCardPolicyTemplateById)(cardPolicyState, cardPolicyDetailState.detailTemplateId)
|
|
14
|
-
: undefined,
|
|
15
|
-
formDraft: cardPolicyDetailState.formDraft,
|
|
16
|
-
detailFetchState: cardPolicyDetailState.detailFetchState,
|
|
17
|
-
updateFetchState: cardPolicyDetailState.updateFetchState,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function getCardPolicyFormDraft(state) {
|
|
21
|
-
return state.cardPolicyDetailState.formDraft;
|
|
22
|
-
}
|
|
23
|
-
function getCardPolicyDetailFetchState(state) {
|
|
24
|
-
return state.cardPolicyDetailState.detailFetchState;
|
|
25
|
-
}
|
|
26
|
-
function getUpdateCardPolicyFetchState(state) {
|
|
27
|
-
return state.cardPolicyDetailState.updateFetchState;
|
|
28
|
-
}
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FetchStateAndError, ID } from '../../../../../commonStateTypes/common';
|
|
2
|
-
import { CreateCardPolicyTemplateRequest } from '../../../../../entity/cardPolicy/cardPolicyPayload';
|
|
3
|
-
export interface CardPolicyDetailState {
|
|
4
|
-
detailFetchState: FetchStateAndError;
|
|
5
|
-
updateFetchState: FetchStateAndError;
|
|
6
|
-
detailTemplateId?: ID;
|
|
7
|
-
formDraft?: CreateCardPolicyTemplateRequest;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { updateCreatedCardPolicyTemplate } from '../../../../../entity/cardPolicy/cardPolicyReducer';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
6
|
-
import { fetchCardPolicyDetail, updateCardPolicyDetailFetchStatus, updateCardPolicyFormDraft } from './cardPolicyDetailReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof fetchCardPolicyDetail> | ReturnType<typeof updateCreatedCardPolicyTemplate> | ReturnType<typeof updateCardPolicyFormDraft> | ReturnType<typeof updateCardPolicyDetailFetchStatus>;
|
|
8
|
-
export declare const fetchCardPolicyDetailEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchCardPolicyDetailEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const cardPolicyPayload_1 = require("../../../../../entity/cardPolicy/cardPolicyPayload");
|
|
7
|
-
const cardPolicyReducer_1 = require("../../../../../entity/cardPolicy/cardPolicyReducer");
|
|
8
|
-
const responsePayload_1 = require("../../../../../responsePayload");
|
|
9
|
-
const cardPolicyDetailReducer_1 = require("./cardPolicyDetailReducer");
|
|
10
|
-
const fetchCardPolicyDetailEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(cardPolicyDetailReducer_1.fetchCardPolicyDetail.match),
|
|
11
|
-
// `exhaustMap` drops React 18 StrictMode's duplicate mount dispatch instead of
|
|
12
|
-
// emitting a second `/policy-templates/{id}` call.
|
|
13
|
-
(0, operators_1.exhaustMap)((action) => {
|
|
14
|
-
const templateId = action.payload;
|
|
15
|
-
return zeniAPI
|
|
16
|
-
.getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/policy-templates/${templateId}`)
|
|
17
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
|
-
if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
|
|
19
|
-
const { template } = response.data;
|
|
20
|
-
const formDraft = (0, cardPolicyPayload_1.toCardPolicyEditFormDraft)((0, cardPolicyPayload_1.toCardPolicyTemplate)(template));
|
|
21
|
-
const actions = [
|
|
22
|
-
(0, cardPolicyReducer_1.updateCreatedCardPolicyTemplate)(template),
|
|
23
|
-
(0, cardPolicyDetailReducer_1.updateCardPolicyFormDraft)(formDraft),
|
|
24
|
-
(0, cardPolicyDetailReducer_1.updateCardPolicyDetailFetchStatus)({ fetchState: 'Completed' }),
|
|
25
|
-
];
|
|
26
|
-
return (0, rxjs_1.from)(actions);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return (0, rxjs_1.of)((0, cardPolicyDetailReducer_1.updateCardPolicyDetailFetchStatus)({
|
|
30
|
-
fetchState: 'Error',
|
|
31
|
-
error: response.status,
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, cardPolicyDetailReducer_1.updateCardPolicyDetailFetchStatus)({
|
|
35
|
-
fetchState: 'Error',
|
|
36
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch card-policy detail REST API call errored out' +
|
|
37
|
-
JSON.stringify(error)),
|
|
38
|
-
}))));
|
|
39
|
-
}));
|
|
40
|
-
exports.fetchCardPolicyDetailEpic = fetchCardPolicyDetailEpic;
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { updateCreatedCardPolicyTemplate } from '../../../../../entity/cardPolicy/cardPolicyReducer';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
6
|
-
import { updateCardPolicy, updateCardPolicyFetchStatus } from './cardPolicyDetailReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof updateCardPolicy> | ReturnType<typeof updateCreatedCardPolicyTemplate> | ReturnType<typeof updateCardPolicyFetchStatus>;
|
|
8
|
-
export declare const updateCardPolicyEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCardPolicyEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const cardPolicyPayload_1 = require("../../../../../entity/cardPolicy/cardPolicyPayload");
|
|
7
|
-
const cardPolicyReducer_1 = require("../../../../../entity/cardPolicy/cardPolicyReducer");
|
|
8
|
-
const responsePayload_1 = require("../../../../../responsePayload");
|
|
9
|
-
const cardPolicyDetailReducer_1 = require("./cardPolicyDetailReducer");
|
|
10
|
-
const updateCardPolicyEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(cardPolicyDetailReducer_1.updateCardPolicy.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
-
const templateId = action.payload;
|
|
12
|
-
const formDraft = state$.value.cardPolicyDetailState.formDraft;
|
|
13
|
-
if (formDraft == null) {
|
|
14
|
-
return (0, rxjs_1.of)((0, cardPolicyDetailReducer_1.updateCardPolicyFetchStatus)({
|
|
15
|
-
fetchState: 'Error',
|
|
16
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Missing form draft', `Cannot update card-policy ${templateId} — no formDraft is loaded.`),
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
const body = (0, cardPolicyPayload_1.toUpdateCardPolicyTemplateRequestBody)(formDraft);
|
|
20
|
-
return zeniAPI
|
|
21
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/policy-templates/${templateId}`, body)
|
|
22
|
-
.pipe((0, operators_1.mergeMap)((response) => {
|
|
23
|
-
if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
|
|
24
|
-
const { template } = response.data;
|
|
25
|
-
const actions = [
|
|
26
|
-
(0, cardPolicyReducer_1.updateCreatedCardPolicyTemplate)(template),
|
|
27
|
-
(0, cardPolicyDetailReducer_1.updateCardPolicyFetchStatus)({ fetchState: 'Completed' }),
|
|
28
|
-
];
|
|
29
|
-
return (0, rxjs_1.from)(actions);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return (0, rxjs_1.of)((0, cardPolicyDetailReducer_1.updateCardPolicyFetchStatus)({
|
|
33
|
-
fetchState: 'Error',
|
|
34
|
-
error: response.status,
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, cardPolicyDetailReducer_1.updateCardPolicyFetchStatus)({
|
|
38
|
-
fetchState: 'Error',
|
|
39
|
-
error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Update card-policy REST API call errored out' +
|
|
40
|
-
JSON.stringify(error)),
|
|
41
|
-
}))));
|
|
42
|
-
}));
|
|
43
|
-
exports.updateCardPolicyEpic = updateCardPolicyEpic;
|
package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { removeCardPolicyTemplate } from '../../../../../entity/cardPolicy/cardPolicyReducer';
|
|
4
|
-
import { RootState } from '../../../../../reducer';
|
|
5
|
-
import { ZeniAPI } from '../../../../../zeniAPI';
|
|
6
|
-
import { archiveCardPolicy, updateArchiveCardPolicyFetchStatus } from './cardPolicyListReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof archiveCardPolicy> | ReturnType<typeof removeCardPolicyTemplate> | ReturnType<typeof updateArchiveCardPolicyFetchStatus>;
|
|
8
|
-
export declare const archiveCardPolicyEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|