@zeniai/client-epic-state 5.1.8-betaSS1 → 5.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +1 -1
- package/lib/commonStateTypes/amount.d.ts +0 -1
- package/lib/commonStateTypes/amount.js +1 -9
- package/lib/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +0 -1
- package/lib/commonStateTypes/workingDayHelper.d.ts +0 -9
- package/lib/commonStateTypes/workingDayHelper.js +1 -28
- package/lib/entity/aiCfo/aiCfoPayload.d.ts +5 -63
- package/lib/entity/aiCfo/aiCfoReducer.d.ts +2 -23
- package/lib/entity/aiCfo/aiCfoReducer.js +9 -249
- package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -4
- package/lib/entity/aiCfo/aiCfoSelector.js +1 -19
- package/lib/entity/aiCfo/aiCfoState.d.ts +4 -97
- package/lib/entity/aiCfo/aiCfoState.js +1 -20
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +5 -34
- package/lib/entity/approvalRule/approvalRulePayload.js +10 -149
- package/lib/entity/approvalRule/approvalRuleSelector.d.ts +1 -25
- package/lib/entity/approvalRule/approvalRuleSelector.js +0 -40
- package/lib/entity/approvalRule/approvalRuleState.d.ts +7 -59
- package/lib/entity/company/companyPayload.d.ts +0 -4
- package/lib/entity/company/companyPayload.js +0 -6
- package/lib/entity/company/companyStateTypes.d.ts +0 -7
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -19
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +0 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.js +0 -9
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -5
- package/lib/entity/task/taskPayload.d.ts +1 -3
- package/lib/entity/task/taskPayload.js +0 -2
- package/lib/entity/task/taskState.d.ts +0 -2
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -8
- package/lib/entity/tenant/clearAllEpic.js +0 -12
- package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/epic/saveConnectorCredentialsEpic.d.ts +3 -3
- package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +1 -1
- package/lib/entity/tenant/tenantPayload.d.ts +2 -3
- package/lib/entity/tenant/tenantReducer.d.ts +30 -44
- package/lib/entity/tenant/tenantReducer.js +29 -130
- package/lib/entity/tenant/tenantSelector.d.ts +1 -0
- package/lib/entity/tenant/tenantSelector.js +5 -1
- package/lib/entity/tenant/tenantState.d.ts +2 -3
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +2 -4
- package/lib/epic.d.ts +4 -32
- package/lib/epic.js +4 -33
- package/lib/esm/commonStateTypes/amount.js +0 -7
- package/lib/esm/commonStateTypes/animations.js +0 -1
- package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +9 -249
- package/lib/esm/entity/aiCfo/aiCfoSelector.js +1 -17
- package/lib/esm/entity/aiCfo/aiCfoState.js +0 -17
- package/lib/esm/entity/approvalRule/approvalRulePayload.js +10 -149
- package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
- package/lib/esm/entity/company/companyPayload.js +0 -6
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -19
- package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -8
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -5
- package/lib/esm/entity/task/taskPayload.js +0 -2
- package/lib/esm/entity/tenant/clearAllEpic.js +0 -12
- package/lib/esm/entity/tenant/tenantReducer.js +27 -128
- package/lib/esm/entity/tenant/tenantSelector.js +3 -0
- package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +2 -4
- package/lib/esm/epic.js +4 -33
- package/lib/esm/index.js +29 -70
- package/lib/esm/reducer.js +0 -18
- package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -6
- package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
- package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +1 -2
- package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +11 -39
- package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +4 -14
- package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
- package/lib/esm/view/companyView/companyViewReducer.js +10 -11
- package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +5 -5
- package/lib/esm/view/companyView/epic/companyPassport/{updateCapitalizationAccountThresholdEpic.js → updateCapitalizationThresholdEpic.js} +19 -38
- package/lib/esm/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -3
- package/lib/esm/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +3 -4
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +13 -12
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +3 -19
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +9 -19
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscategorizedEpic.js +2 -13
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +2 -6
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -2
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +2 -6
- package/lib/esm/view/expenseAutomationView/expenseAutomationViewReducer.js +3 -20
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +8 -48
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +5 -6
- package/lib/esm/view/fileView/epic/deleteFileEpic.js +2 -2
- package/lib/esm/view/fileView/epic/deleteFileListEpic.js +2 -2
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +17 -29
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +51 -223
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -36
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +6 -45
- package/lib/esm/view/settingsView/settingsViewHelpers.js +4 -3
- package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +2 -22
- package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +12 -109
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +7 -11
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +4 -13
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +16 -144
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
- package/lib/esm/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -25
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +4 -42
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -35
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +52 -106
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
- package/lib/esm/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +7 -11
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +4 -13
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +11 -80
- package/lib/index.d.ts +36 -86
- package/lib/index.js +35 -268
- package/lib/reducer.d.ts +0 -18
- package/lib/reducer.js +0 -18
- package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +2 -11
- package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -6
- package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
- package/lib/view/aiCfoView/epics/createSessionEpic.js +1 -2
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +1 -8
- package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
- package/lib/view/companyTaskManagerView/companyTaskManagerViewPayload.d.ts +11 -19
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +5 -11
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +12 -40
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +0 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -13
- package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +3 -11
- package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.d.ts +3 -1
- package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
- package/lib/view/companyView/companyViewReducer.d.ts +7 -8
- package/lib/view/companyView/companyViewReducer.js +11 -12
- package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +5 -5
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationThresholdEpic.d.ts +10 -0
- package/lib/view/companyView/epic/companyPassport/{updateCapitalizationAccountThresholdEpic.js → updateCapitalizationThresholdEpic.js} +19 -38
- package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -3
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +3 -4
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +14 -13
- package/lib/view/expenseAutomationView/epics/transactionCategorization/backgroundRefetchReviewTabEpic.js +3 -19
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +9 -19
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscategorizedEpic.js +2 -13
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +2 -6
- package/lib/view/expenseAutomationView/epics/transactionCategorization/triggerReviewTabRefetchEpic.js +2 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +2 -6
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -6
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +3 -20
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +20 -9
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +9 -18
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +8 -48
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +4 -5
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +5 -6
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -3
- package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
- package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +2 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +15 -27
- package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +5 -44
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +52 -225
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -6
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -39
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +8 -53
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +7 -47
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/settingsViewHelpers.js +3 -2
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +1 -8
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -21
- package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +0 -22
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -7
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +3 -14
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +13 -110
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewState.d.ts +0 -16
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +6 -10
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +3 -12
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -59
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +17 -146
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +5 -31
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -8
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -27
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +1 -1
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +2 -12
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +5 -43
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +1 -42
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -5
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -28
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -107
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -7
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -19
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +6 -10
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +3 -12
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +3 -14
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +12 -81
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState.d.ts +0 -12
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
- package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +4 -6
- package/lib/entity/approvalRule/approvalRuleConflict.d.ts +0 -56
- package/lib/entity/approvalRule/approvalRuleConflict.js +0 -77
- package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
- package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
- package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
- package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
- package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
- package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
- package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
- package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
- package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
- package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
- package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
- package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
- package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -59
- package/lib/esm/entity/approvalRule/approvalRuleConflict.js +0 -74
- package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
- package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
- package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
- package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
- package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
- package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
- package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
- package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
- package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -55
- package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
- package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
- package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -40
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -29
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -54
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -29
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -78
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -49
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -32
- package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -32
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -54
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -92
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -212
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -10
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -23
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -36
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -27
- package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -28
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -52
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -22
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -36
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -39
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -34
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -71
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -21
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -38
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -289
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -109
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -44
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -111
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -25
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -363
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -36
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -19
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -6
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -119
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -154
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -22
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -49
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -140
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -20
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -100
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -96
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -59
- package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -24
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -34
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -57
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -35
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -62
- package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -44
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -58
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -77
- package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -14
- package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -221
- package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -41
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
- package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.d.ts +0 -10
- package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -42
- package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.d.ts +0 -6
- package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -20
- package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +0 -10
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
- package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -44
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +0 -8
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -33
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
- package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.d.ts +0 -23
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -58
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.d.ts +0 -47
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -34
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.d.ts +0 -23
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -82
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.d.ts +0 -40
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -53
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.d.ts +0 -37
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -53
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.d.ts +0 -14
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -36
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -36
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +0 -56
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -60
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.d.ts +0 -22
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -96
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.d.ts +0 -59
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -217
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.d.ts +0 -122
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -13
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -27
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.d.ts +0 -9
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -40
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.d.ts +0 -7
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -31
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.d.ts +0 -15
- package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -32
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -56
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -28
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -40
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -43
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -38
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -75
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +0 -15
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -27
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -42
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -294
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -113
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -48
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -115
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -29
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +0 -14
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -369
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +0 -6
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -40
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -26
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +0 -116
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -10
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +0 -33
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -126
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +0 -52
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -158
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -31
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -53
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +0 -10
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -144
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -24
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -104
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +0 -22
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -100
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -63
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +0 -3
- package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -28
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +0 -34
- package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -38
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -61
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -39
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +0 -11
- package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -66
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +0 -3
- package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -48
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -28
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -62
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -9
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -81
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -24
- package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -17
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -29
- package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -229
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -154
- package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -46
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.d.ts +0 -14
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -65
package/lib/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';
|
|
@@ -157,11 +156,6 @@ import { InternationalWireVerificationState } from './view/spendManagement/billP
|
|
|
157
156
|
import { MagicLinkViewState } from './view/spendManagement/billPay/magicLinkView/magicLinkViewState';
|
|
158
157
|
import { PreviousBillsState } from './view/spendManagement/billPay/previousBills/previousBillsState';
|
|
159
158
|
import { WiseRedirectState } from './view/spendManagement/billPay/wiseRedirectView/wiseRedirectState';
|
|
160
|
-
import { AutoSweepFlowState } from './view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState';
|
|
161
|
-
import { CashManagementOverviewState } from './view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState';
|
|
162
|
-
import { CardPolicyDetailState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState';
|
|
163
|
-
import { CardPolicyListState } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState';
|
|
164
|
-
import { CreateCardPolicyState } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState';
|
|
165
159
|
import { CardUserOnboardingState } from './view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState';
|
|
166
160
|
import { CashbackDetailState } from './view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState';
|
|
167
161
|
import { ChargeCardConfigState } from './view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState';
|
|
@@ -241,7 +235,6 @@ type EntitiesState = {
|
|
|
241
235
|
bankAccountState: BankAccountState;
|
|
242
236
|
billTransactionState: BillTransactionState;
|
|
243
237
|
cardPaymentState: CardPaymentState;
|
|
244
|
-
cardPolicyState: CardPolicyState;
|
|
245
238
|
chargeCardRepaymentState: ChargeCardRepaymentState;
|
|
246
239
|
chargeCardState: ChargeCardState;
|
|
247
240
|
chargeCardTransactionState: ChargeCardTransactionState;
|
|
@@ -312,7 +305,6 @@ type ViewsState = {
|
|
|
312
305
|
arAgingState: ArAgingState;
|
|
313
306
|
auditReportViewState: AuditReportViewState;
|
|
314
307
|
authenticationViewState: AuthenticationViewState;
|
|
315
|
-
autoSweepFlowState: AutoSweepFlowState;
|
|
316
308
|
autotransferRulesState: AutoTransferRulesState;
|
|
317
309
|
balanceSheetState: BalanceSheetState;
|
|
318
310
|
bankAccountViewState: BankAccountViewState;
|
|
@@ -327,14 +319,11 @@ type ViewsState = {
|
|
|
327
319
|
cannedResponsesState: CannedResponsesViewState;
|
|
328
320
|
cardBalanceState: CardBalanceState;
|
|
329
321
|
cardPaymentViewState: CardPaymentViewState;
|
|
330
|
-
cardPolicyDetailState: CardPolicyDetailState;
|
|
331
|
-
cardPolicyListState: CardPolicyListState;
|
|
332
322
|
cardUserOnboardingState: CardUserOnboardingState;
|
|
333
323
|
cashbackDetailState: CashbackDetailState;
|
|
334
324
|
cashBalanceState: CashBalanceState;
|
|
335
325
|
cashFlowState: CashFlowState;
|
|
336
326
|
cashInCashOutState: CashInCashOutState;
|
|
337
|
-
cashManagementOverviewState: CashManagementOverviewState;
|
|
338
327
|
cashPositionState: CashPositionState;
|
|
339
328
|
chargeCardConfigState: ChargeCardConfigState;
|
|
340
329
|
chargeCardDetailState: ChargeCardDetailState;
|
|
@@ -353,7 +342,6 @@ type ViewsState = {
|
|
|
353
342
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
354
343
|
companyViewState: CompanyViewState;
|
|
355
344
|
countryListState: CountryListState;
|
|
356
|
-
createCardPolicyState: CreateCardPolicyState;
|
|
357
345
|
createTransferEntryState: CreateTransferEntryState;
|
|
358
346
|
creditAgentEntityState: CreditAgentEntityState;
|
|
359
347
|
creditAgentViewState: CreditAgentViewState;
|
|
@@ -480,7 +468,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
480
468
|
arAgingState: ArAgingState;
|
|
481
469
|
auditReportViewState: AuditReportViewState;
|
|
482
470
|
authenticationViewState: AuthenticationViewState;
|
|
483
|
-
autoSweepFlowState: AutoSweepFlowState;
|
|
484
471
|
autotransferRulesState: AutoTransferRulesState;
|
|
485
472
|
balanceSheetState: BalanceSheetState;
|
|
486
473
|
bankAccountViewState: BankAccountViewState;
|
|
@@ -493,14 +480,11 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
493
480
|
billsBulkActionViewState: BillsBulkActionViewState;
|
|
494
481
|
cardBalanceState: CardBalanceState;
|
|
495
482
|
cardPaymentViewState: CardPaymentViewState;
|
|
496
|
-
cardPolicyDetailState: CardPolicyDetailState;
|
|
497
|
-
cardPolicyListState: CardPolicyListState;
|
|
498
483
|
cardUserOnboardingState: CardUserOnboardingState;
|
|
499
484
|
cashbackDetailState: CashbackDetailState;
|
|
500
485
|
cashBalanceState: CashBalanceState;
|
|
501
486
|
cashFlowState: CashFlowState;
|
|
502
487
|
cashInCashOutState: CashInCashOutState;
|
|
503
|
-
cashManagementOverviewState: CashManagementOverviewState;
|
|
504
488
|
cashPositionState: CashPositionState;
|
|
505
489
|
chargeCardConfigState: ChargeCardConfigState;
|
|
506
490
|
chargeCardDetailState: ChargeCardDetailState;
|
|
@@ -519,7 +503,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
519
503
|
companyTaskManagerViewState: CompanyTaskManagerViewState;
|
|
520
504
|
companyViewState: CompanyViewState;
|
|
521
505
|
countryListState: CountryListState;
|
|
522
|
-
createCardPolicyState: CreateCardPolicyState;
|
|
523
506
|
creditAgentEntityState: CreditAgentEntityState;
|
|
524
507
|
creditAgentViewState: CreditAgentViewState;
|
|
525
508
|
dashboardState: DashboardState;
|
|
@@ -644,7 +627,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
644
627
|
billPayConfigState: BillPayConfigState;
|
|
645
628
|
billTransactionState: BillTransactionState;
|
|
646
629
|
cardPaymentState: CardPaymentState;
|
|
647
|
-
cardPolicyState: CardPolicyState;
|
|
648
630
|
chargeCardState: ChargeCardState;
|
|
649
631
|
chargeCardRepaymentState: ChargeCardRepaymentState;
|
|
650
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"));
|
|
@@ -198,11 +197,6 @@ const internationalWireVerificationReducer_1 = __importStar(require("./view/spen
|
|
|
198
197
|
const magicLinkViewReducer_1 = __importStar(require("./view/spendManagement/billPay/magicLinkView/magicLinkViewReducer"));
|
|
199
198
|
const previousBillsReducer_1 = __importStar(require("./view/spendManagement/billPay/previousBills/previousBillsReducer"));
|
|
200
199
|
const wiseRedirectReducer_1 = __importStar(require("./view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer"));
|
|
201
|
-
const autoSweepFlowReducer_1 = __importStar(require("./view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer"));
|
|
202
|
-
const cashManagementOverviewReducer_1 = __importStar(require("./view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer"));
|
|
203
|
-
const cardPolicyDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer"));
|
|
204
|
-
const cardPolicyListReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer"));
|
|
205
|
-
const createCardPolicyReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer"));
|
|
206
200
|
const cardUserOnboardingReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer"));
|
|
207
201
|
const cashbackDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer"));
|
|
208
202
|
const chargeCardConfigReducer_1 = __importStar(require("./view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer"));
|
|
@@ -283,7 +277,6 @@ const initialEntitiesState = {
|
|
|
283
277
|
bankAccountState: bankAccountReducer_1.initialState,
|
|
284
278
|
billTransactionState: billTransactionReducer_1.initialState,
|
|
285
279
|
cardPaymentState: cardPaymentReducer_1.initialState,
|
|
286
|
-
cardPolicyState: cardPolicyReducer_1.initialState,
|
|
287
280
|
chargeCardState: chargeCardReducer_1.initialState,
|
|
288
281
|
chargeCardRepaymentState: chargeCardRepaymentReducer_1.initialState,
|
|
289
282
|
chargeCardTransactionState: chargeCardTransactionReducer_1.initialState,
|
|
@@ -355,7 +348,6 @@ const initialViewsState = {
|
|
|
355
348
|
arAgingState: arAgingReducer_1.initialState,
|
|
356
349
|
auditReportViewState: auditReportViewReducer_1.initialState,
|
|
357
350
|
authenticationViewState: authenticationViewReducer_1.initialState,
|
|
358
|
-
autoSweepFlowState: autoSweepFlowReducer_1.initialState,
|
|
359
351
|
autotransferRulesState: autoTransferRulesReducer_1.initialState,
|
|
360
352
|
balanceSheetState: balanceSheetReducer_1.initialState,
|
|
361
353
|
bankAccountViewState: bankAccountViewReducer_1.initialState,
|
|
@@ -369,14 +361,11 @@ const initialViewsState = {
|
|
|
369
361
|
billsBulkActionViewState: billsBulkActionViewReducer_1.initialState,
|
|
370
362
|
cardBalanceState: cardBalanceReducer_1.initialState,
|
|
371
363
|
cardPaymentViewState: cardPaymentViewReducer_1.initialState,
|
|
372
|
-
cardPolicyDetailState: cardPolicyDetailReducer_1.initialState,
|
|
373
|
-
cardPolicyListState: cardPolicyListReducer_1.initialState,
|
|
374
364
|
cardUserOnboardingState: cardUserOnboardingReducer_1.initialState,
|
|
375
365
|
cashbackDetailState: cashbackDetailReducer_1.initialState,
|
|
376
366
|
cashBalanceState: cashBalanceReducer_1.initialState,
|
|
377
367
|
cashFlowState: cashFlowReducer_1.initialState,
|
|
378
368
|
cashInCashOutState: cashInCashOutReducer_1.initialState,
|
|
379
|
-
cashManagementOverviewState: cashManagementOverviewReducer_1.initialState,
|
|
380
369
|
cashPositionState: cashPositionReducer_1.initialState,
|
|
381
370
|
chargeCardConfigState: chargeCardConfigReducer_1.initialState,
|
|
382
371
|
chargeCardDetailState: chargeCardDetailReducer_1.initialState,
|
|
@@ -395,7 +384,6 @@ const initialViewsState = {
|
|
|
395
384
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.initialState,
|
|
396
385
|
companyViewState: companyViewReducer_1.initialState,
|
|
397
386
|
countryListState: countryListReducer_1.initialState,
|
|
398
|
-
createCardPolicyState: createCardPolicyReducer_1.initialState,
|
|
399
387
|
creditAgentEntityState: creditAgentReducer_1.initialCreditAgentEntityState,
|
|
400
388
|
creditAgentViewState: creditAgentViewReducer_1.initialState,
|
|
401
389
|
dashboardLayoutState: dashboardLayoutReducer_1.initialState,
|
|
@@ -526,7 +514,6 @@ const entityReducers = {
|
|
|
526
514
|
billPayConfigState: billPayConfigReducer_1.default,
|
|
527
515
|
billTransactionState: billTransactionReducer_1.default,
|
|
528
516
|
cardPaymentState: cardPaymentReducer_1.default,
|
|
529
|
-
cardPolicyState: cardPolicyReducer_1.default,
|
|
530
517
|
chargeCardState: chargeCardReducer_1.default,
|
|
531
518
|
chargeCardRepaymentState: chargeCardRepaymentReducer_1.default,
|
|
532
519
|
chargeCardTransactionState: chargeCardTransactionReducer_1.default,
|
|
@@ -598,7 +585,6 @@ const viewReducers = {
|
|
|
598
585
|
arAgingState: arAgingReducer_1.default,
|
|
599
586
|
auditReportViewState: auditReportViewReducer_1.default,
|
|
600
587
|
authenticationViewState: authenticationViewReducer_1.default,
|
|
601
|
-
autoSweepFlowState: autoSweepFlowReducer_1.default,
|
|
602
588
|
autotransferRulesState: autoTransferRulesReducer_1.default,
|
|
603
589
|
balanceSheetState: balanceSheetReducer_1.default,
|
|
604
590
|
bankAccountViewState: bankAccountViewReducer_1.default,
|
|
@@ -611,14 +597,11 @@ const viewReducers = {
|
|
|
611
597
|
billsBulkActionViewState: billsBulkActionViewReducer_1.default,
|
|
612
598
|
cardBalanceState: cardBalanceReducer_1.default,
|
|
613
599
|
cardPaymentViewState: cardPaymentViewReducer_1.default,
|
|
614
|
-
cardPolicyDetailState: cardPolicyDetailReducer_1.default,
|
|
615
|
-
cardPolicyListState: cardPolicyListReducer_1.default,
|
|
616
600
|
cardUserOnboardingState: cardUserOnboardingReducer_1.default,
|
|
617
601
|
cashbackDetailState: cashbackDetailReducer_1.default,
|
|
618
602
|
cashBalanceState: cashBalanceReducer_1.default,
|
|
619
603
|
cashFlowState: cashFlowReducer_1.default,
|
|
620
604
|
cashInCashOutState: cashInCashOutReducer_1.default,
|
|
621
|
-
cashManagementOverviewState: cashManagementOverviewReducer_1.default,
|
|
622
605
|
cashPositionState: cashPositionReducer_1.default,
|
|
623
606
|
chargeCardConfigState: chargeCardConfigReducer_1.default,
|
|
624
607
|
chargeCardDetailState: chargeCardDetailReducer_1.default,
|
|
@@ -637,7 +620,6 @@ const viewReducers = {
|
|
|
637
620
|
companyTaskManagerViewState: companyTaskManagerViewReducer_1.default,
|
|
638
621
|
companyViewState: companyViewReducer_1.default,
|
|
639
622
|
countryListState: countryListReducer_1.default,
|
|
640
|
-
createCardPolicyState: createCardPolicyReducer_1.default,
|
|
641
623
|
creditAgentEntityState: creditAgentReducer_1.default,
|
|
642
624
|
creditAgentViewState: creditAgentViewReducer_1.default,
|
|
643
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,25 +1,19 @@
|
|
|
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
|
-
sortKey: "status" | "name" | "
|
|
10
|
+
sortKey: "status" | "name" | "tags" | "createdBy" | "dueDate" | "priority" | "assignee" | "taskName";
|
|
13
11
|
sortOrder: "ascending" | "descending";
|
|
14
12
|
keepExistingListItems: any;
|
|
15
13
|
}, "companyTaskManagerView/fetchCompanyTaskManagerView", never, never>, updateCompanyTaskManagerViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
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>;
|