@zeniai/client-epic-state 5.0.95 → 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 +10 -40
- 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/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/index.d.ts +12 -47
- package/lib/index.js +22 -193
- 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/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -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/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/journalEntryLinesViewModel.d.ts +1 -1
- 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/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/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
package/lib/reducer.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { BillTransactionState } from './entity/billPay/billTransaction/billTrans
|
|
|
10
10
|
import { ContactState } from './entity/billPay/contact/contact';
|
|
11
11
|
import { RecurringBillState } from './entity/billPay/recurringBills/recurringBillsState';
|
|
12
12
|
import { CardPaymentState } from './entity/cardPayment/cardPaymentState';
|
|
13
|
-
import { CardPolicyState } from './entity/cardPolicy/cardPolicyState';
|
|
14
13
|
import { ChargeCardState } from './entity/chargeCard/chargeCard';
|
|
15
14
|
import { ChargeCardRepaymentState } from './entity/chargeCardRepayment/chargeCardRepayment';
|
|
16
15
|
import { ChargeCardTransactionState } from './entity/chargeCardTransaction/chargeCardTransaction';
|
|
@@ -84,9 +83,6 @@ import { BankAccountViewState } from './view/bankAccountView/bankAccountViewStat
|
|
|
84
83
|
import { BillPayCardState } from './view/billPayCard/billPayCardState';
|
|
85
84
|
import { CardBalanceState } from './view/cardBalance/cardBalanceState';
|
|
86
85
|
import { CardPaymentViewState } from './view/cardPayment/cardPaymentViewState';
|
|
87
|
-
import { CardPolicyDetailState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState';
|
|
88
|
-
import { CardPolicyListState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState';
|
|
89
|
-
import { CreateCardPolicyState } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState';
|
|
90
86
|
import { CashBalanceState } from './view/cashBalance/cashBalanceState';
|
|
91
87
|
import { CashFlowState } from './view/cashFlow/cashFlowState';
|
|
92
88
|
import { CashInCashOutState } from './view/cashInCashOut/cashInCashOutState';
|
|
@@ -239,7 +235,6 @@ type EntitiesState = {
|
|
|
239
235
|
bankAccountState: BankAccountState;
|
|
240
236
|
billTransactionState: BillTransactionState;
|
|
241
237
|
cardPaymentState: CardPaymentState;
|
|
242
|
-
cardPolicyState: CardPolicyState;
|
|
243
238
|
chargeCardRepaymentState: ChargeCardRepaymentState;
|
|
244
239
|
chargeCardState: ChargeCardState;
|
|
245
240
|
chargeCardTransactionState: ChargeCardTransactionState;
|
|
@@ -324,8 +319,6 @@ type ViewsState = {
|
|
|
324
319
|
cannedResponsesState: CannedResponsesViewState;
|
|
325
320
|
cardBalanceState: CardBalanceState;
|
|
326
321
|
cardPaymentViewState: CardPaymentViewState;
|
|
327
|
-
cardPolicyDetailState: CardPolicyDetailState;
|
|
328
|
-
cardPolicyListState: CardPolicyListState;
|
|
329
322
|
cardUserOnboardingState: CardUserOnboardingState;
|
|
330
323
|
cashbackDetailState: CashbackDetailState;
|
|
331
324
|
cashBalanceState: CashBalanceState;
|
|
@@ -349,7 +342,6 @@ type ViewsState = {
|
|
|
349
342
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
350
343
|
companyViewState: CompanyViewState;
|
|
351
344
|
countryListState: CountryListState;
|
|
352
|
-
createCardPolicyState: CreateCardPolicyState;
|
|
353
345
|
createTransferEntryState: CreateTransferEntryState;
|
|
354
346
|
creditAgentEntityState: CreditAgentEntityState;
|
|
355
347
|
creditAgentViewState: CreditAgentViewState;
|
|
@@ -488,8 +480,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
488
480
|
billsBulkActionViewState: BillsBulkActionViewState;
|
|
489
481
|
cardBalanceState: CardBalanceState;
|
|
490
482
|
cardPaymentViewState: CardPaymentViewState;
|
|
491
|
-
cardPolicyDetailState: CardPolicyDetailState;
|
|
492
|
-
cardPolicyListState: CardPolicyListState;
|
|
493
483
|
cardUserOnboardingState: CardUserOnboardingState;
|
|
494
484
|
cashbackDetailState: CashbackDetailState;
|
|
495
485
|
cashBalanceState: CashBalanceState;
|
|
@@ -513,7 +503,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
513
503
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
514
504
|
companyViewState: CompanyViewState;
|
|
515
505
|
countryListState: CountryListState;
|
|
516
|
-
createCardPolicyState: CreateCardPolicyState;
|
|
517
506
|
creditAgentEntityState: CreditAgentEntityState;
|
|
518
507
|
creditAgentViewState: CreditAgentViewState;
|
|
519
508
|
dashboardState: DashboardState;
|
|
@@ -638,7 +627,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
638
627
|
billPayConfigState: BillPayConfigState;
|
|
639
628
|
billTransactionState: BillTransactionState;
|
|
640
629
|
cardPaymentState: CardPaymentState;
|
|
641
|
-
cardPolicyState: CardPolicyState;
|
|
642
630
|
chargeCardState: ChargeCardState;
|
|
643
631
|
chargeCardRepaymentState: ChargeCardRepaymentState;
|
|
644
632
|
chargeCardTransactionState: ChargeCardTransactionState;
|
package/lib/reducer.js
CHANGED
|
@@ -50,7 +50,6 @@ const billTransactionReducer_1 = __importStar(require("./entity/billPay/billTran
|
|
|
50
50
|
const contactReducer_1 = __importStar(require("./entity/billPay/contact/contactReducer"));
|
|
51
51
|
const recurringBillsReducer_1 = __importStar(require("./entity/billPay/recurringBills/recurringBillsReducer"));
|
|
52
52
|
const cardPaymentReducer_1 = __importStar(require("./entity/cardPayment/cardPaymentReducer"));
|
|
53
|
-
const cardPolicyReducer_1 = __importStar(require("./entity/cardPolicy/cardPolicyReducer"));
|
|
54
53
|
const chargeCardReducer_1 = __importStar(require("./entity/chargeCard/chargeCardReducer"));
|
|
55
54
|
const chargeCardRepaymentReducer_1 = __importStar(require("./entity/chargeCardRepayment/chargeCardRepaymentReducer"));
|
|
56
55
|
const chargeCardTransactionReducer_1 = __importStar(require("./entity/chargeCardTransaction/chargeCardTransactionReducer"));
|
|
@@ -124,9 +123,6 @@ const bankAccountViewReducer_1 = __importStar(require("./view/bankAccountView/ba
|
|
|
124
123
|
const billPayCardReducer_1 = __importStar(require("./view/billPayCard/billPayCardReducer"));
|
|
125
124
|
const cardBalanceReducer_1 = __importStar(require("./view/cardBalance/cardBalanceReducer"));
|
|
126
125
|
const cardPaymentViewReducer_1 = __importStar(require("./view/cardPayment/cardPaymentViewReducer"));
|
|
127
|
-
const cardPolicyDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer"));
|
|
128
|
-
const cardPolicyListReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer"));
|
|
129
|
-
const createCardPolicyReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer"));
|
|
130
126
|
const cashBalanceReducer_1 = __importStar(require("./view/cashBalance/cashBalanceReducer"));
|
|
131
127
|
const cashFlowReducer_1 = __importStar(require("./view/cashFlow/cashFlowReducer"));
|
|
132
128
|
const cashInCashOutReducer_1 = __importStar(require("./view/cashInCashOut/cashInCashOutReducer"));
|
|
@@ -281,7 +277,6 @@ const initialEntitiesState = {
|
|
|
281
277
|
bankAccountState: bankAccountReducer_1.initialState,
|
|
282
278
|
billTransactionState: billTransactionReducer_1.initialState,
|
|
283
279
|
cardPaymentState: cardPaymentReducer_1.initialState,
|
|
284
|
-
cardPolicyState: cardPolicyReducer_1.initialState,
|
|
285
280
|
chargeCardState: chargeCardReducer_1.initialState,
|
|
286
281
|
chargeCardRepaymentState: chargeCardRepaymentReducer_1.initialState,
|
|
287
282
|
chargeCardTransactionState: chargeCardTransactionReducer_1.initialState,
|
|
@@ -366,8 +361,6 @@ const initialViewsState = {
|
|
|
366
361
|
billsBulkActionViewState: billsBulkActionViewReducer_1.initialState,
|
|
367
362
|
cardBalanceState: cardBalanceReducer_1.initialState,
|
|
368
363
|
cardPaymentViewState: cardPaymentViewReducer_1.initialState,
|
|
369
|
-
cardPolicyDetailState: cardPolicyDetailReducer_1.initialState,
|
|
370
|
-
cardPolicyListState: cardPolicyListReducer_1.initialState,
|
|
371
364
|
cardUserOnboardingState: cardUserOnboardingReducer_1.initialState,
|
|
372
365
|
cashbackDetailState: cashbackDetailReducer_1.initialState,
|
|
373
366
|
cashBalanceState: cashBalanceReducer_1.initialState,
|
|
@@ -391,7 +384,6 @@ const initialViewsState = {
|
|
|
391
384
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.initialState,
|
|
392
385
|
companyViewState: companyViewReducer_1.initialState,
|
|
393
386
|
countryListState: countryListReducer_1.initialState,
|
|
394
|
-
createCardPolicyState: createCardPolicyReducer_1.initialState,
|
|
395
387
|
creditAgentEntityState: creditAgentReducer_1.initialCreditAgentEntityState,
|
|
396
388
|
creditAgentViewState: creditAgentViewReducer_1.initialState,
|
|
397
389
|
dashboardLayoutState: dashboardLayoutReducer_1.initialState,
|
|
@@ -522,7 +514,6 @@ const entityReducers = {
|
|
|
522
514
|
billPayConfigState: billPayConfigReducer_1.default,
|
|
523
515
|
billTransactionState: billTransactionReducer_1.default,
|
|
524
516
|
cardPaymentState: cardPaymentReducer_1.default,
|
|
525
|
-
cardPolicyState: cardPolicyReducer_1.default,
|
|
526
517
|
chargeCardState: chargeCardReducer_1.default,
|
|
527
518
|
chargeCardRepaymentState: chargeCardRepaymentReducer_1.default,
|
|
528
519
|
chargeCardTransactionState: chargeCardTransactionReducer_1.default,
|
|
@@ -606,8 +597,6 @@ const viewReducers = {
|
|
|
606
597
|
billsBulkActionViewState: billsBulkActionViewReducer_1.default,
|
|
607
598
|
cardBalanceState: cardBalanceReducer_1.default,
|
|
608
599
|
cardPaymentViewState: cardPaymentViewReducer_1.default,
|
|
609
|
-
cardPolicyDetailState: cardPolicyDetailReducer_1.default,
|
|
610
|
-
cardPolicyListState: cardPolicyListReducer_1.default,
|
|
611
600
|
cardUserOnboardingState: cardUserOnboardingReducer_1.default,
|
|
612
601
|
cashbackDetailState: cashbackDetailReducer_1.default,
|
|
613
602
|
cashBalanceState: cashBalanceReducer_1.default,
|
|
@@ -631,7 +620,6 @@ const viewReducers = {
|
|
|
631
620
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.default,
|
|
632
621
|
companyViewState: companyViewReducer_1.default,
|
|
633
622
|
countryListState: countryListReducer_1.default,
|
|
634
|
-
createCardPolicyState: createCardPolicyReducer_1.default,
|
|
635
623
|
creditAgentEntityState: creditAgentReducer_1.default,
|
|
636
624
|
creditAgentViewState: creditAgentViewReducer_1.default,
|
|
637
625
|
dashboardState: dashboardReducer_1.default,
|
|
@@ -25,18 +25,17 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
|
|
|
25
25
|
}, "aiCfoView/updateResponseState">, updateAiCfoViewScrollPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "aiCfoView/updateAiCfoViewScrollPosition">, updateCurrentInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "aiCfoView/updateCurrentInput">, clearInput: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearInput">, setSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
26
26
|
agentId: string;
|
|
27
27
|
sessionId: string;
|
|
28
|
-
}, "aiCfoView/setSession">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, contextRefId?: string | undefined, contextType?: string | undefined
|
|
28
|
+
}, "aiCfoView/setSession">, createSession: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, contextRefId?: string | undefined, contextType?: string | undefined], {
|
|
29
29
|
agentId: string;
|
|
30
30
|
contextRefId: string | undefined;
|
|
31
31
|
contextType: string | undefined;
|
|
32
|
-
pageContext: string | undefined;
|
|
33
32
|
userId: string;
|
|
34
33
|
}, "aiCfoView/createSession", never, never>, createSessionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
34
|
agentId: string;
|
|
36
35
|
sessionId: ID;
|
|
37
36
|
contextMessage?: string;
|
|
38
37
|
contextStatus?: ContextStatus;
|
|
39
|
-
}, "aiCfoView/createSessionSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionFailure">, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined
|
|
38
|
+
}, "aiCfoView/createSessionSuccess">, createSessionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "aiCfoView/createSessionFailure">, createSessionAndSubmit: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[agentId: string, userId: string, questionAnswerId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined], {
|
|
40
39
|
agentId: string;
|
|
41
40
|
userId: string;
|
|
42
41
|
questionAnswerId: string;
|
|
@@ -44,7 +43,6 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
|
|
|
44
43
|
createdAt: import("dayjs").Dayjs;
|
|
45
44
|
question: string;
|
|
46
45
|
files: File[] | undefined;
|
|
47
|
-
pageContext: string | undefined;
|
|
48
46
|
}, "aiCfoView/createSessionAndSubmit", never, never>, initializeNewSessionState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
47
|
agentId: string;
|
|
50
48
|
sessionId: ID;
|
|
@@ -94,13 +92,6 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
|
|
|
94
92
|
questionAnswerId: ID;
|
|
95
93
|
}, "aiCfoView/updateCotCollapsedState">, fetchSuggestedQuestions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
96
94
|
pageContext: AiCfoSuggestedQuestionsPageContext;
|
|
97
|
-
/**
|
|
98
|
-
* AI Card Creation flow: when true, the epic appends `&no_card_created=true`
|
|
99
|
-
* so the backend tailors prompts for a tenant that has not yet created a
|
|
100
|
-
* card. The bucket key is unchanged (`pageContext`); see
|
|
101
|
-
* `useFetchSuggestedQuestionsWhenReady` for the refetch-on-flag-flip rule.
|
|
102
|
-
*/
|
|
103
|
-
noCardCreated?: boolean;
|
|
104
95
|
}, "aiCfoView/fetchSuggestedQuestions">, fetchSuggestedQuestionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
105
96
|
generatedAt: string;
|
|
106
97
|
pageContext: AiCfoSuggestedQuestionsPageContext;
|
|
@@ -192,10 +192,8 @@ const aiCfoView = (0, toolkit_1.createSlice)({
|
|
|
192
192
|
draft.createSessionState.fetchState = 'In-Progress';
|
|
193
193
|
draft.createSessionState.error = undefined;
|
|
194
194
|
},
|
|
195
|
-
prepare(agentId, userId, contextRefId, contextType
|
|
196
|
-
return {
|
|
197
|
-
payload: { agentId, contextRefId, contextType, pageContext, userId },
|
|
198
|
-
};
|
|
195
|
+
prepare(agentId, userId, contextRefId, contextType) {
|
|
196
|
+
return { payload: { agentId, contextRefId, contextType, userId } };
|
|
199
197
|
},
|
|
200
198
|
},
|
|
201
199
|
createSessionSuccess(draft, action) {
|
|
@@ -226,7 +224,7 @@ const aiCfoView = (0, toolkit_1.createSlice)({
|
|
|
226
224
|
draft.createSessionAndSubmitState.fetchState = 'In-Progress';
|
|
227
225
|
draft.createSessionAndSubmitState.error = undefined;
|
|
228
226
|
},
|
|
229
|
-
prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files
|
|
227
|
+
prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files) {
|
|
230
228
|
return {
|
|
231
229
|
payload: {
|
|
232
230
|
agentId,
|
|
@@ -236,7 +234,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
|
|
|
236
234
|
createdAt,
|
|
237
235
|
question,
|
|
238
236
|
files,
|
|
239
|
-
pageContext,
|
|
240
237
|
},
|
|
241
238
|
};
|
|
242
239
|
},
|
|
@@ -69,11 +69,8 @@ function waitForChannelSubscription(pusherInstance, channelName, timeoutMs = 500
|
|
|
69
69
|
}));
|
|
70
70
|
}
|
|
71
71
|
const createSessionAndSubmitEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(aiCfoViewReducer_1.createSessionAndSubmit.match), (0, operators_1.switchMap)((action) => {
|
|
72
|
-
const { agentId, userId, questionAnswerId, questionId, createdAt, question, files,
|
|
73
|
-
const payload = {
|
|
74
|
-
agent_id: agentId,
|
|
75
|
-
...(pageContext != null && { page_context: pageContext }),
|
|
76
|
-
};
|
|
72
|
+
const { agentId, userId, questionAnswerId, questionId, createdAt, question, files, } = action.payload;
|
|
73
|
+
const payload = { agent_id: agentId };
|
|
77
74
|
return zeniAPI
|
|
78
75
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
|
|
79
76
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
@@ -8,12 +8,11 @@ const responsePayload_1 = require("../../../responsePayload");
|
|
|
8
8
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
9
9
|
const aiCfoViewReducer_1 = require("../aiCfoViewReducer");
|
|
10
10
|
const createSessionEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(aiCfoViewReducer_1.createSession.match), (0, operators_1.switchMap)((action) => {
|
|
11
|
-
const { agentId, contextRefId, contextType,
|
|
11
|
+
const { agentId, contextRefId, contextType, userId } = action.payload;
|
|
12
12
|
const payload = {
|
|
13
13
|
agent_id: agentId,
|
|
14
14
|
...(contextRefId != null && { context_ref_id: contextRefId }),
|
|
15
15
|
...(contextType != null && { context_type: contextType }),
|
|
16
|
-
...(pageContext != null && { page_context: pageContext }),
|
|
17
16
|
};
|
|
18
17
|
return zeniAPI
|
|
19
18
|
.postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
|
|
@@ -4,12 +4,5 @@ import { RootState } from '../../../reducer';
|
|
|
4
4
|
import { ZeniAPI } from '../../../zeniAPI';
|
|
5
5
|
import { fetchSuggestedQuestions, fetchSuggestedQuestionsFailure, fetchSuggestedQuestionsSuccess } from '../aiCfoViewReducer';
|
|
6
6
|
export type ActionType = ReturnType<typeof fetchSuggestedQuestions> | ReturnType<typeof fetchSuggestedQuestionsSuccess> | ReturnType<typeof fetchSuggestedQuestionsFailure>;
|
|
7
|
-
/**
|
|
8
|
-
* GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=...
|
|
9
|
-
*
|
|
10
|
-
* Appends `&no_card_created=true` when the action payload sets
|
|
11
|
-
* `noCardCreated: true` (AI Card Creation flow on the cards list — the tenant
|
|
12
|
-
* has not yet created any card). Any other value omits the flag entirely so
|
|
13
|
-
* the existing call sites continue to issue the unchanged request.
|
|
14
|
-
*/
|
|
7
|
+
/** GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=... */
|
|
15
8
|
export declare const fetchSuggestedQuestionsEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -5,23 +5,13 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const responsePayload_1 = require("../../../responsePayload");
|
|
7
7
|
const aiCfoViewReducer_1 = require("../aiCfoViewReducer");
|
|
8
|
-
/**
|
|
9
|
-
* GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=...
|
|
10
|
-
*
|
|
11
|
-
* Appends `&no_card_created=true` when the action payload sets
|
|
12
|
-
* `noCardCreated: true` (AI Card Creation flow on the cards list — the tenant
|
|
13
|
-
* has not yet created any card). Any other value omits the flag entirely so
|
|
14
|
-
* the existing call sites continue to issue the unchanged request.
|
|
15
|
-
*/
|
|
8
|
+
/** GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=... */
|
|
16
9
|
const fetchSuggestedQuestionsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(aiCfoViewReducer_1.fetchSuggestedQuestions.match),
|
|
17
10
|
// mergeMap (not switchMap): each page_context is keyed separately in Redux; switchMap
|
|
18
11
|
// would cancel in-flight HTTP for context A when B is requested, leaving A stuck In-Progress.
|
|
19
12
|
(0, operators_1.mergeMap)((action) => {
|
|
20
|
-
const { pageContext
|
|
13
|
+
const { pageContext } = action.payload;
|
|
21
14
|
const query = new URLSearchParams({ page_context: pageContext });
|
|
22
|
-
if (noCardCreated === true) {
|
|
23
|
-
query.set('no_card_created', 'true');
|
|
24
|
-
}
|
|
25
15
|
const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?${query.toString()}`;
|
|
26
16
|
return zeniAPI.getJSON(url).pipe((0, operators_1.mergeMap)((response) => {
|
|
27
17
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
import { CompanyPayload } from '../../entity/company/companyPayload';
|
|
2
2
|
import { TaskPayload } from '../../entity/task/taskPayload';
|
|
3
3
|
import { UserPayload } from '../../entity/user/userPayload';
|
|
4
|
-
import { UserGroupPayload } from '../../entity/userGroups/userGroupsPayload';
|
|
5
4
|
import { ZeniAPIResponse } from '../../responsePayload';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
key: string;
|
|
9
|
-
tasks: TaskPayload[];
|
|
10
|
-
}
|
|
11
|
-
export interface CompanyTaskManagerViewPayload {
|
|
12
|
-
aggregations: {
|
|
13
|
-
group_by_company_name: {
|
|
14
|
-
buckets: TasksAggBucket[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
count: number;
|
|
18
|
-
from: number;
|
|
5
|
+
interface QueryPayload {
|
|
6
|
+
entity_type: string;
|
|
19
7
|
limit: number;
|
|
20
|
-
|
|
8
|
+
page_token: string | null;
|
|
9
|
+
search_text: string;
|
|
10
|
+
sort_by: string;
|
|
11
|
+
sort_order: string;
|
|
21
12
|
}
|
|
22
|
-
export
|
|
23
|
-
interface CockpitContextDataPayload {
|
|
13
|
+
export interface CompanyTaskManagerViewPayload {
|
|
24
14
|
companies: CompanyPayload[];
|
|
25
|
-
|
|
15
|
+
query: QueryPayload;
|
|
16
|
+
tasks: TaskPayload[];
|
|
17
|
+
total_count: number;
|
|
26
18
|
users: UserPayload[];
|
|
27
19
|
}
|
|
28
|
-
export type
|
|
20
|
+
export type CompanyTaskManagerViewResponse = ZeniAPIResponse<CompanyTaskManagerViewPayload>;
|
|
29
21
|
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
2
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
3
|
-
import { CockpitFilters } from '../companyView/types/cockpitTypes';
|
|
4
3
|
import { CompanyTaskManagerViewPayload } from './companyTaskManagerViewPayload';
|
|
5
4
|
import { CompanyTaskManagerViewState, CompanyTaskManagerViewUIState, TaskManagerMetrics } from './companyTaskManagerViewState';
|
|
6
5
|
export declare const initialUIState: CompanyTaskManagerViewUIState;
|
|
7
6
|
export declare const initialState: CompanyTaskManagerViewState;
|
|
8
|
-
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[
|
|
9
|
-
|
|
10
|
-
filters: CockpitFilters | undefined;
|
|
7
|
+
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
|
|
8
|
+
pageToken: PageToken;
|
|
11
9
|
searchString: string | undefined;
|
|
12
10
|
sortKey: "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName";
|
|
13
11
|
sortOrder: "ascending" | "descending";
|
|
@@ -16,10 +14,6 @@ export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").Act
|
|
|
16
14
|
data: CompanyTaskManagerViewPayload;
|
|
17
15
|
}, "companyTaskManagerView/updateCompanyTaskManagerViewOnSuccess">, updateCompanyTaskManagerViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
18
16
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
19
|
-
}, "companyTaskManagerView/updateCompanyTaskManagerViewOnFailure", never, never>, fetchTaskManagerMetrics: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/fetchTaskManagerMetrics">, updateTaskManagerMetrics: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskManagerMetrics, "companyTaskManagerView/updateTaskManagerMetrics">, updateTaskManagerMetricsOnFailure: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/updateTaskManagerMetricsOnFailure">, clearCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/clearCompanyTaskManagerView"
|
|
20
|
-
companyIds: ID[];
|
|
21
|
-
userGroupIds: ID[];
|
|
22
|
-
userIds: ID[];
|
|
23
|
-
}, "companyTaskManagerView/updateCockpitContextOnSuccess">, updateCockpitContextOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyTaskManagerView/updateCockpitContextOnFailure">;
|
|
17
|
+
}, "companyTaskManagerView/updateCompanyTaskManagerViewOnFailure", never, never>, fetchTaskManagerMetrics: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/fetchTaskManagerMetrics">, updateTaskManagerMetrics: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskManagerMetrics, "companyTaskManagerView/updateTaskManagerMetrics">, updateTaskManagerMetricsOnFailure: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/updateTaskManagerMetricsOnFailure">, clearCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyTaskManagerView/clearCompanyTaskManagerView">;
|
|
24
18
|
declare const _default: import("redux").Reducer<CompanyTaskManagerViewState>;
|
|
25
19
|
export default _default;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.clearCompanyTaskManagerView = exports.updateTaskManagerMetricsOnFailure = exports.updateTaskManagerMetrics = exports.fetchTaskManagerMetrics = exports.updateCompanyTaskManagerViewOnFailure = exports.updateCompanyTaskManagerViewOnSuccess = exports.fetchCompanyTaskManagerView = exports.initialState = exports.initialUIState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
exports.initialUIState = {
|
|
7
7
|
filterText: '',
|
|
8
8
|
sortKey: 'dueDate',
|
|
9
9
|
sortOrder: 'descending',
|
|
10
|
-
|
|
11
|
-
filters: {},
|
|
10
|
+
pageToken: null,
|
|
12
11
|
};
|
|
13
12
|
const initialMetrics = {
|
|
14
13
|
closed: 0,
|
|
@@ -23,13 +22,6 @@ exports.initialState = {
|
|
|
23
22
|
metrics: initialMetrics,
|
|
24
23
|
metricsFetchState: 'Not-Started',
|
|
25
24
|
uiState: exports.initialUIState,
|
|
26
|
-
cockpitContext: {
|
|
27
|
-
fetchState: 'Not-Started',
|
|
28
|
-
error: undefined,
|
|
29
|
-
companyIds: [],
|
|
30
|
-
userIds: [],
|
|
31
|
-
userGroupIds: [],
|
|
32
|
-
},
|
|
33
25
|
hasValidState() {
|
|
34
26
|
return this.fetchState == 'Completed';
|
|
35
27
|
},
|
|
@@ -40,11 +32,10 @@ const companyTaskManagerView = (0, toolkit_1.createSlice)({
|
|
|
40
32
|
initialState: exports.initialState,
|
|
41
33
|
reducers: {
|
|
42
34
|
fetchCompanyTaskManagerView: {
|
|
43
|
-
prepare(
|
|
35
|
+
prepare(pageToken, sortKey, sortOrder, keepExistingListItems = true, searchString) {
|
|
44
36
|
return {
|
|
45
37
|
payload: {
|
|
46
|
-
|
|
47
|
-
filters,
|
|
38
|
+
pageToken,
|
|
48
39
|
searchString,
|
|
49
40
|
sortKey,
|
|
50
41
|
sortOrder,
|
|
@@ -53,10 +44,10 @@ const companyTaskManagerView = (0, toolkit_1.createSlice)({
|
|
|
53
44
|
};
|
|
54
45
|
},
|
|
55
46
|
reducer(draft, action) {
|
|
56
|
-
const {
|
|
47
|
+
const { pageToken, searchString, sortKey, sortOrder, keepExistingListItems, } = action.payload;
|
|
57
48
|
draft.uiState.sortKey = sortKey;
|
|
58
49
|
draft.uiState.sortOrder = sortOrder;
|
|
59
|
-
draft.uiState.
|
|
50
|
+
draft.uiState.pageToken = pageToken;
|
|
60
51
|
if (keepExistingListItems === false) {
|
|
61
52
|
draft.taskIds = [];
|
|
62
53
|
}
|
|
@@ -69,14 +60,15 @@ const companyTaskManagerView = (0, toolkit_1.createSlice)({
|
|
|
69
60
|
},
|
|
70
61
|
updateCompanyTaskManagerViewOnSuccess(draft, action) {
|
|
71
62
|
const { data } = action.payload;
|
|
72
|
-
const tasks = data
|
|
63
|
+
const { tasks, query, total_count } = data;
|
|
73
64
|
draft.fetchState = 'Completed';
|
|
74
65
|
draft.error = undefined;
|
|
75
66
|
draft.taskIds = [...draft.taskIds, ...tasks.map((task) => task.task_id)];
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
// consider total count only when fetching for first time
|
|
68
|
+
if (draft.uiState.filterText === '' && draft.uiState.pageToken == null) {
|
|
69
|
+
draft.totalTaskCount = total_count;
|
|
78
70
|
}
|
|
79
|
-
draft.uiState.
|
|
71
|
+
draft.uiState.pageToken = query.page_token;
|
|
80
72
|
},
|
|
81
73
|
updateCompanyTaskManagerViewOnFailure: {
|
|
82
74
|
reducer(draft, action) {
|
|
@@ -97,30 +89,10 @@ const companyTaskManagerView = (0, toolkit_1.createSlice)({
|
|
|
97
89
|
updateTaskManagerMetricsOnFailure(draft) {
|
|
98
90
|
draft.metricsFetchState = 'Error';
|
|
99
91
|
},
|
|
100
|
-
updateCompanyTaskManagerViewFilters(draft, action) {
|
|
101
|
-
if (action.payload.filters != null) {
|
|
102
|
-
draft.uiState.filters = action.payload.filters;
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
fetchCockpitContext(draft) {
|
|
106
|
-
draft.cockpitContext.fetchState = 'In-Progress';
|
|
107
|
-
draft.cockpitContext.error = undefined;
|
|
108
|
-
},
|
|
109
|
-
updateCockpitContextOnSuccess(draft, action) {
|
|
110
|
-
draft.cockpitContext.fetchState = 'Completed';
|
|
111
|
-
draft.cockpitContext.error = undefined;
|
|
112
|
-
draft.cockpitContext.companyIds = action.payload.companyIds;
|
|
113
|
-
draft.cockpitContext.userIds = action.payload.userIds;
|
|
114
|
-
draft.cockpitContext.userGroupIds = action.payload.userGroupIds;
|
|
115
|
-
},
|
|
116
|
-
updateCockpitContextOnFailure(draft, action) {
|
|
117
|
-
draft.cockpitContext.fetchState = 'Error';
|
|
118
|
-
draft.cockpitContext.error = action.payload;
|
|
119
|
-
},
|
|
120
92
|
clearCompanyTaskManagerView(draft) {
|
|
121
93
|
Object.assign(draft, exports.initialState);
|
|
122
94
|
},
|
|
123
95
|
},
|
|
124
96
|
});
|
|
125
|
-
_a = companyTaskManagerView.actions, exports.fetchCompanyTaskManagerView = _a.fetchCompanyTaskManagerView, exports.updateCompanyTaskManagerViewOnSuccess = _a.updateCompanyTaskManagerViewOnSuccess, exports.updateCompanyTaskManagerViewOnFailure = _a.updateCompanyTaskManagerViewOnFailure, exports.fetchTaskManagerMetrics = _a.fetchTaskManagerMetrics, exports.updateTaskManagerMetrics = _a.updateTaskManagerMetrics, exports.updateTaskManagerMetricsOnFailure = _a.updateTaskManagerMetricsOnFailure, exports.clearCompanyTaskManagerView = _a.clearCompanyTaskManagerView
|
|
97
|
+
_a = companyTaskManagerView.actions, exports.fetchCompanyTaskManagerView = _a.fetchCompanyTaskManagerView, exports.updateCompanyTaskManagerViewOnSuccess = _a.updateCompanyTaskManagerViewOnSuccess, exports.updateCompanyTaskManagerViewOnFailure = _a.updateCompanyTaskManagerViewOnFailure, exports.fetchTaskManagerMetrics = _a.fetchTaskManagerMetrics, exports.updateTaskManagerMetrics = _a.updateTaskManagerMetrics, exports.updateTaskManagerMetricsOnFailure = _a.updateTaskManagerMetricsOnFailure, exports.clearCompanyTaskManagerView = _a.clearCompanyTaskManagerView;
|
|
126
98
|
exports.default = companyTaskManagerView.reducer;
|
|
@@ -14,12 +14,10 @@ export interface TaskWithCompanyDetail {
|
|
|
14
14
|
task: Task;
|
|
15
15
|
}
|
|
16
16
|
export interface CompanyTaskManagerSelectorView extends SelectorView {
|
|
17
|
-
companies: Company[];
|
|
18
17
|
metrics: TaskManagerMetrics;
|
|
19
18
|
metricsFetchState: FetchState;
|
|
20
19
|
tasksList: TaskWithCompanyDetail[];
|
|
21
20
|
totalTaskCount: number;
|
|
22
21
|
uiState: CompanyTaskManagerViewUIState;
|
|
23
|
-
users: User[];
|
|
24
22
|
}
|
|
25
23
|
export declare const getCompanyTaskManagerView: (state: RootState) => CompanyTaskManagerSelectorView;
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCompanyTaskManagerView = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
6
5
|
const companySelector_1 = require("../../entity/company/companySelector");
|
|
7
6
|
const tagSelector_1 = require("../../entity/tag/tagSelector");
|
|
8
7
|
const taskSelector_1 = require("../../entity/task/taskSelector");
|
|
9
8
|
const userSelector_1 = require("../../entity/user/userSelector");
|
|
10
9
|
exports.getCompanyTaskManagerView = (0, toolkit_1.createSelector)((state) => state.companyTaskManagerViewState, (state) => state.companyState, (state) => state.userState, (state) => state.taskState, (state) => state.tagState, (companyTaskManagerViewState, companyState, userState, taskState, tagState) => {
|
|
11
|
-
const { taskIds, uiState, totalTaskCount, metrics, metricsFetchState } = companyTaskManagerViewState;
|
|
10
|
+
const { taskIds, uiState, fetchState, error, totalTaskCount, metrics, metricsFetchState, } = companyTaskManagerViewState;
|
|
12
11
|
const tasksList = [];
|
|
13
12
|
taskIds.forEach((taskId) => {
|
|
14
13
|
const task = (0, taskSelector_1.getTaskById)(taskState, taskId);
|
|
@@ -30,22 +29,13 @@ exports.getCompanyTaskManagerView = (0, toolkit_1.createSelector)((state) => sta
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
|
-
const allCompanyIds = companyTaskManagerViewState.cockpitContext.companyIds;
|
|
34
|
-
const companies = (0, companySelector_1.getCompanyByCompanyIds)(companyState, allCompanyIds).map((c) => c.company);
|
|
35
|
-
const users = (0, userSelector_1.getUsersByUserIds)(userState, companyTaskManagerViewState.cockpitContext.userIds);
|
|
36
|
-
const fetchStateAndError = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
37
|
-
companyTaskManagerViewState,
|
|
38
|
-
companyTaskManagerViewState.cockpitContext,
|
|
39
|
-
]);
|
|
40
32
|
return {
|
|
41
|
-
companies,
|
|
42
33
|
metrics,
|
|
43
34
|
metricsFetchState,
|
|
44
35
|
tasksList,
|
|
45
36
|
uiState,
|
|
46
|
-
fetchState
|
|
47
|
-
error
|
|
37
|
+
fetchState,
|
|
38
|
+
error,
|
|
48
39
|
totalTaskCount,
|
|
49
|
-
users,
|
|
50
40
|
};
|
|
51
41
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchState, FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
+
import { TaskManagerViewSortKey } from '../companyView/types/cockpitTypes';
|
|
5
5
|
export interface TaskManagerMetrics {
|
|
6
6
|
closed: number;
|
|
7
7
|
open: number;
|
|
@@ -9,20 +9,12 @@ export interface TaskManagerMetrics {
|
|
|
9
9
|
total: number;
|
|
10
10
|
}
|
|
11
11
|
export interface CompanyTaskManagerViewUIState {
|
|
12
|
-
filters: CockpitFilters;
|
|
13
12
|
filterText: string;
|
|
14
|
-
|
|
13
|
+
pageToken: PageToken;
|
|
15
14
|
sortKey: TaskManagerViewSortKey;
|
|
16
15
|
sortOrder: SortOrder;
|
|
17
16
|
}
|
|
18
17
|
export interface CompanyTaskManagerViewState extends FetchedState {
|
|
19
|
-
cockpitContext: {
|
|
20
|
-
companyIds: ID[];
|
|
21
|
-
fetchState: FetchState;
|
|
22
|
-
userGroupIds: ID[];
|
|
23
|
-
userIds: ID[];
|
|
24
|
-
error?: ZeniAPIStatus;
|
|
25
|
-
};
|
|
26
18
|
metrics: TaskManagerMetrics;
|
|
27
19
|
metricsFetchState: FetchState;
|
|
28
20
|
taskIds: ID[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { updateCompanies } from '../../../entity/company/companyReducer';
|
|
3
4
|
import { updateTags } from '../../../entity/tag/tagReducer';
|
|
4
5
|
import { updateTasks } from '../../../entity/task/taskReducer';
|
|
6
|
+
import { updateAllUsers } from '../../../entity/user/userReducer';
|
|
5
7
|
import { RootState } from '../../../reducer';
|
|
6
8
|
import { ZeniAPI } from '../../../zeniAPI';
|
|
7
9
|
import { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnFailure, updateCompanyTaskManagerViewOnSuccess } from '../companyTaskManagerViewReducer';
|
|
8
|
-
export type ActionType = ReturnType<typeof fetchCompanyTaskManagerView> | ReturnType<typeof updateCompanyTaskManagerViewOnSuccess> | ReturnType<typeof updateTasks> | ReturnType<typeof updateTags> | ReturnType<typeof updateCompanyTaskManagerViewOnFailure>;
|
|
10
|
+
export type ActionType = ReturnType<typeof fetchCompanyTaskManagerView> | ReturnType<typeof updateCompanyTaskManagerViewOnSuccess> | ReturnType<typeof updateTasks> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateTags> | ReturnType<typeof updateCompanyTaskManagerViewOnFailure>;
|
|
9
11
|
export declare const fetchCompanyTaskManagerViewEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|