@zeniai/client-epic-state 4.19.97-betaRR0 → 4.19.97
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/entity/account/accountPayload.d.ts +0 -2
- package/lib/entity/account/accountPayload.js +0 -2
- package/lib/entity/account/accountState.d.ts +0 -2
- package/lib/entity/depositAccount/depositAccount.d.ts +1 -1
- package/lib/entity/depositAccount/depositAccount.js +1 -8
- package/lib/entity/reimbursement/reimbursementPayload.d.ts +0 -2
- package/lib/entity/reimbursement/reimbursementPayload.js +0 -7
- package/lib/entity/reimbursement/reimbursementState.d.ts +0 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/entity/task/taskPayload.d.ts +0 -1
- package/lib/entity/task/taskPayload.js +0 -1
- package/lib/entity/task/taskState.d.ts +0 -1
- package/lib/epic.d.ts +1 -17
- package/lib/epic.js +1 -17
- package/lib/esm/entity/account/accountPayload.js +0 -2
- package/lib/esm/entity/depositAccount/depositAccount.js +1 -8
- package/lib/esm/entity/reimbursement/reimbursementPayload.js +0 -7
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/esm/entity/task/taskPayload.js +0 -1
- package/lib/esm/epic.js +1 -17
- package/lib/esm/index.js +5 -14
- package/lib/esm/reducer.js +0 -9
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +3 -8
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
- package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +1 -189
- package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -433
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -23
- package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +1 -244
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/esm/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -44
- package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +1 -14
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/lib/esm/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/esm/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/esm/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/esm/zeniAPI.js +2 -0
- package/lib/index.d.ts +6 -14
- package/lib/index.js +32 -95
- package/lib/reducer.d.ts +0 -9
- package/lib/reducer.js +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +3 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -118
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -201
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +3 -76
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -434
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -24
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +1 -69
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -243
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -142
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +1 -54
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -4
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -15
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.d.ts +0 -1
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +0 -2
- package/lib/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/view/userListView/userListViewPayload.d.ts +0 -2
- package/lib/zeniAPI.js +2 -0
- package/package.json +2 -2
- package/lib/entity/userGroups/userGroupsPayload.d.ts +0 -7
- package/lib/entity/userGroups/userGroupsPayload.js +0 -10
- package/lib/entity/userGroups/userGroupsReducer.d.ts +0 -8
- package/lib/entity/userGroups/userGroupsReducer.js +0 -29
- package/lib/entity/userGroups/userGroupsSelector.d.ts +0 -4
- package/lib/entity/userGroups/userGroupsSelector.js +0 -12
- package/lib/entity/userGroups/userGroupsState.d.ts +0 -9
- package/lib/entity/userGroups/userGroupsState.js +0 -2
- package/lib/esm/entity/userGroups/userGroupsPayload.js +0 -7
- package/lib/esm/entity/userGroups/userGroupsReducer.js +0 -25
- package/lib/esm/entity/userGroups/userGroupsSelector.js +0 -8
- package/lib/esm/entity/userGroups/userGroupsState.js +0 -1
- package/lib/esm/view/expenseAutomationView/bulkUploadTiming.js +0 -10
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -29
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -49
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -40
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -47
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -61
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -33
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -56
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -77
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -79
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -24
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.js +0 -58
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.js +0 -103
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.js +0 -63
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.js +0 -5
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.js +0 -62
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.js +0 -4
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.js +0 -4
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.js +0 -10
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.js +0 -36
- package/lib/esm/view/userGroupListView/userGroupListViewReducer.js +0 -65
- package/lib/esm/view/userGroupListView/userGroupListViewSelector.js +0 -16
- package/lib/esm/view/userGroupListView/userGroupListViewState.js +0 -1
- package/lib/view/expenseAutomationView/bulkUploadTiming.d.ts +0 -10
- package/lib/view/expenseAutomationView/bulkUploadTiming.js +0 -13
- package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.d.ts +0 -18
- package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -33
- package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -53
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -44
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -51
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -65
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -37
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -61
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -81
- package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +0 -25
- package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -85
- package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -28
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.js +0 -62
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.d.ts +0 -34
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.js +0 -107
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.d.ts +0 -16
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.js +0 -67
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.d.ts +0 -63
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.d.ts +0 -20
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.js +0 -66
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.js +0 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.js +0 -40
- package/lib/view/userGroupListView/userGroupListViewReducer.d.ts +0 -23
- package/lib/view/userGroupListView/userGroupListViewReducer.js +0 -69
- package/lib/view/userGroupListView/userGroupListViewSelector.d.ts +0 -7
- package/lib/view/userGroupListView/userGroupListViewSelector.js +0 -20
- package/lib/view/userGroupListView/userGroupListViewState.d.ts +0 -8
- package/lib/view/userGroupListView/userGroupListViewState.js +0 -2
package/lib/reducer.js
CHANGED
|
@@ -97,7 +97,6 @@ const toastNotificationReducer_1 = __importStar(require("./entity/toastNotificat
|
|
|
97
97
|
const transactionReducer_1 = __importStar(require("./entity/transaction/transactionReducer"));
|
|
98
98
|
const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
|
|
99
99
|
const userReducer_1 = __importStar(require("./entity/user/userReducer"));
|
|
100
|
-
const userGroupsReducer_1 = __importStar(require("./entity/userGroups/userGroupsReducer"));
|
|
101
100
|
const userRoleReducer_1 = __importStar(require("./entity/userRole/userRoleReducer"));
|
|
102
101
|
const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
|
|
103
102
|
const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
|
|
@@ -187,7 +186,6 @@ const magicLinkViewReducer_1 = __importStar(require("./view/spendManagement/bill
|
|
|
187
186
|
const previousBillsReducer_1 = __importStar(require("./view/spendManagement/billPay/previousBills/previousBillsReducer"));
|
|
188
187
|
const wiseRedirectReducer_1 = __importStar(require("./view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer"));
|
|
189
188
|
const cardUserOnboardingReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer"));
|
|
190
|
-
const cardsOnboardingReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer"));
|
|
191
189
|
const cashbackDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer"));
|
|
192
190
|
const chargeCardConfigReducer_1 = __importStar(require("./view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer"));
|
|
193
191
|
const chargeCardDetailReducer_1 = __importStar(require("./view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer"));
|
|
@@ -239,7 +237,6 @@ const trendReducer_1 = __importStar(require("./view/trend/trendReducer"));
|
|
|
239
237
|
const trendWithTransactionsReducer_1 = __importStar(require("./view/trendWithTransactions/trendWithTransactionsReducer"));
|
|
240
238
|
const twoFactorAuthenticationReducer_1 = __importStar(require("./view/twoFactorAuthentication/twoFactorAuthenticationReducer"));
|
|
241
239
|
const userFinancialAccountReducer_1 = __importStar(require("./view/userFinancialAccount/userFinancialAccountReducer"));
|
|
242
|
-
const userGroupListViewReducer_1 = __importStar(require("./view/userGroupListView/userGroupListViewReducer"));
|
|
243
240
|
const userListViewReducer_1 = __importStar(require("./view/userListView/userListViewReducer"));
|
|
244
241
|
const userRoleConfigReducer_1 = __importStar(require("./view/userRoleConfigView/userRoleConfigReducer"));
|
|
245
242
|
const vendor1099TypeListReducer_1 = __importStar(require("./view/vendor1099TypeList/vendor1099TypeListReducer"));
|
|
@@ -312,7 +309,6 @@ const initialEntitiesState = {
|
|
|
312
309
|
toastNotificationState: toastNotificationReducer_1.initialState,
|
|
313
310
|
transactionActivityLogState: transactionActivityLogReducer_1.initialState,
|
|
314
311
|
transactionState: transactionReducer_1.initialState,
|
|
315
|
-
userGroupsState: userGroupsReducer_1.initialState,
|
|
316
312
|
userRoleState: userRoleReducer_1.initialState,
|
|
317
313
|
userState: userReducer_1.initialState,
|
|
318
314
|
vendorExpenseState: vendorExpenseReducer_1.initialState,
|
|
@@ -344,7 +340,6 @@ const initialViewsState = {
|
|
|
344
340
|
billsBulkActionViewState: billsBulkActionViewReducer_1.initialState,
|
|
345
341
|
cardBalanceState: cardBalanceReducer_1.initialState,
|
|
346
342
|
cardPaymentViewState: cardPaymentViewReducer_1.initialState,
|
|
347
|
-
cardsOnboardingState: cardsOnboardingReducer_1.initialState,
|
|
348
343
|
cardUserOnboardingState: cardUserOnboardingReducer_1.initialState,
|
|
349
344
|
cashbackDetailState: cashbackDetailReducer_1.initialState,
|
|
350
345
|
cashBalanceState: cashBalanceReducer_1.initialState,
|
|
@@ -452,7 +447,6 @@ const initialViewsState = {
|
|
|
452
447
|
trendWithTransactionsState: trendWithTransactionsReducer_1.initialTrendWithTransactionsState,
|
|
453
448
|
twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.initialState,
|
|
454
449
|
userFinancialAccountState: userFinancialAccountReducer_1.initialState,
|
|
455
|
-
userGroupListViewState: userGroupListViewReducer_1.initialState,
|
|
456
450
|
userListViewState: userListViewReducer_1.initialState,
|
|
457
451
|
userRoleConfigState: userRoleConfigReducer_1.initialState,
|
|
458
452
|
vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.initialState,
|
|
@@ -537,7 +531,6 @@ const entityReducers = {
|
|
|
537
531
|
toastNotificationState: toastNotificationReducer_1.default,
|
|
538
532
|
transactionActivityLogState: transactionActivityLogReducer_1.default,
|
|
539
533
|
transactionState: transactionReducer_1.default,
|
|
540
|
-
userGroupsState: userGroupsReducer_1.default,
|
|
541
534
|
userRoleState: userRoleReducer_1.default,
|
|
542
535
|
userState: userReducer_1.default,
|
|
543
536
|
vendorExpenseState: vendorExpenseReducer_1.default,
|
|
@@ -568,7 +561,6 @@ const viewReducers = {
|
|
|
568
561
|
billsBulkActionViewState: billsBulkActionViewReducer_1.default,
|
|
569
562
|
cardBalanceState: cardBalanceReducer_1.default,
|
|
570
563
|
cardPaymentViewState: cardPaymentViewReducer_1.default,
|
|
571
|
-
cardsOnboardingState: cardsOnboardingReducer_1.default,
|
|
572
564
|
cardUserOnboardingState: cardUserOnboardingReducer_1.default,
|
|
573
565
|
cashbackDetailState: cashbackDetailReducer_1.default,
|
|
574
566
|
cashBalanceState: cashBalanceReducer_1.default,
|
|
@@ -677,7 +669,6 @@ const viewReducers = {
|
|
|
677
669
|
trendWithTransactionsState: trendWithTransactionsReducer_1.default,
|
|
678
670
|
twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.default,
|
|
679
671
|
userFinancialAccountState: userFinancialAccountReducer_1.default,
|
|
680
|
-
userGroupListViewState: userGroupListViewReducer_1.default,
|
|
681
672
|
userListViewState: userListViewReducer_1.default,
|
|
682
673
|
userRoleConfigState: userRoleConfigReducer_1.default,
|
|
683
674
|
vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.default,
|
|
@@ -7,7 +7,6 @@ const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpe
|
|
|
7
7
|
const accountReconReducer_1 = require("../../../../entity/accountRecon/accountReconReducer");
|
|
8
8
|
const accountReconSelector_1 = require("../../../../entity/accountRecon/accountReconSelector");
|
|
9
9
|
const accountReconState_1 = require("../../../../entity/accountRecon/accountReconState");
|
|
10
|
-
const entitySelector_1 = require("../../../../entity/genericEntity/entitySelector");
|
|
11
10
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
12
11
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
13
12
|
const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
|
|
@@ -16,7 +15,6 @@ const responsePayload_1 = require("../../../../responsePayload");
|
|
|
16
15
|
const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
|
|
17
16
|
const saveReconciliationReviewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(reconciliationViewReducer_1.saveReconciliationReview.match), (0, operators_1.mergeMap)((action) => {
|
|
18
17
|
const state = state$.value;
|
|
19
|
-
const entityState = state.entityState;
|
|
20
18
|
const { transactionId } = action.payload;
|
|
21
19
|
const localData = state.expenseAutomationReconciliationViewState.reconTabsState.review
|
|
22
20
|
.localData[transactionId];
|
|
@@ -64,7 +62,7 @@ const saveReconciliationReviewEpic = (actions$, state$, zeniAPI) => actions$.pip
|
|
|
64
62
|
payload = getPayloadForCCPayment(updatedTransaction, localData, reconciliationData?.account.accountType);
|
|
65
63
|
break;
|
|
66
64
|
case 'record_deposit':
|
|
67
|
-
payload = getPayloadForDeposit(updatedTransaction, localData
|
|
65
|
+
payload = getPayloadForDeposit(updatedTransaction, localData);
|
|
68
66
|
break;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
@@ -165,10 +163,7 @@ function getPayloadForExpenseRecord(updatedTransaction, localData) {
|
|
|
165
163
|
currency_code: updatedTransaction.amount.currencyCode,
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
function getPayloadForDeposit(updatedTransaction, localData
|
|
169
|
-
const customerZeniId = localData.customer?.id != null
|
|
170
|
-
? (0, entitySelector_1.getEntityByEntityIDs)(entityState, [localData.customer?.id])[0]?.zeniId
|
|
171
|
-
: undefined;
|
|
166
|
+
function getPayloadForDeposit(updatedTransaction, localData) {
|
|
172
167
|
return {
|
|
173
168
|
amount: updatedTransaction.amount.amount,
|
|
174
169
|
transaction_memo: updatedTransaction.memo,
|
|
@@ -176,7 +171,7 @@ function getPayloadForDeposit(updatedTransaction, localData, entityState) {
|
|
|
176
171
|
transaction_date: updatedTransaction.transactionDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
|
|
177
172
|
transaction_direction: updatedTransaction.transactionDirection,
|
|
178
173
|
transaction_id: updatedTransaction.transactionId,
|
|
179
|
-
customer_id:
|
|
174
|
+
customer_id: localData.customer?.id,
|
|
180
175
|
customer_name: localData.customer?.name,
|
|
181
176
|
account_id: localData.categoryId,
|
|
182
177
|
accounting_class_id: localData.classId,
|
package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js
CHANGED
|
@@ -15,13 +15,11 @@ const uploadMissingReceiptSuccessEpic = (actions$, state$) => actions$.pipe((0,
|
|
|
15
15
|
updateActions.push((0, transactionReducer_1.updateTransaction)(transactionPayload.transaction_id, transactionPayload, updateType));
|
|
16
16
|
if (currentTenant != null) {
|
|
17
17
|
const monthEndChecksPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
18
|
+
updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
|
|
19
|
+
tenantId: currentTenant.tenantId,
|
|
20
|
+
period: monthEndChecksPeriod,
|
|
21
|
+
refreshViewInBackground: true,
|
|
22
|
+
}));
|
|
25
23
|
}
|
|
26
24
|
return (0, rxjs_1.from)(updateActions);
|
|
27
25
|
}));
|
package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare const getLineItemsByTransactionsIdsFromResponse: (transactions: S
|
|
|
37
37
|
export declare const getLineItemsByTransactionIdsFromLocalData: (transactionLocalData: TransactionReviewLocalDataSelectorView[], selectedTab: TransactionsTab) => Record<ID, string[]>;
|
|
38
38
|
export declare const mergeTabSpecificLineItems: (currentTabSpecificLineItems: TabSpecificLineItems, selectedTab: TransactionsTab, newLineItems: TabSpecificLineItems) => TabSpecificLineItems;
|
|
39
39
|
export declare const getSnackbarMessageForTransactionReview: (updatedCount: number, failedCount: number, categorizedCount: number) => {
|
|
40
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "
|
|
40
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed";
|
|
41
41
|
messageText: "notification" | "success" | "failed";
|
|
42
42
|
type: "error" | "success" | "info";
|
|
43
43
|
variables: {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { URLPayload } from '../../../commonPayloadTypes/urlPayload';
|
|
2
|
-
import type { MonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
3
1
|
import { TransactionPayload } from '../../../entity/transaction/payloadTypes/transactionPayload';
|
|
4
|
-
import { SupportedTransactionPayload } from '../../../entity/transaction/transactionState';
|
|
5
2
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
6
|
-
import { type BatchDetails, type BatchFile, type BatchFileStatus, type BatchListItem, type BatchStatus, type BatchSummary, type ManualSearchResult } from '../types/missingReceiptsViewState';
|
|
7
3
|
export interface MissingReceiptsQueryPayload {
|
|
8
4
|
end_date: string;
|
|
9
5
|
is_attachment_missing_only: boolean;
|
|
@@ -17,118 +13,4 @@ interface MissingReceiptsPayload {
|
|
|
17
13
|
transactions: TransactionPayload[];
|
|
18
14
|
}
|
|
19
15
|
export type MissingReceiptsResponse = ZeniAPIResponse<MissingReceiptsPayload>;
|
|
20
|
-
export interface BatchListQueryPayload {
|
|
21
|
-
end_date: string;
|
|
22
|
-
sort_order: string;
|
|
23
|
-
start_date: string;
|
|
24
|
-
}
|
|
25
|
-
export interface BulkUploadResponsePayload {
|
|
26
|
-
batch_id: string;
|
|
27
|
-
status: string;
|
|
28
|
-
total_files: number;
|
|
29
|
-
}
|
|
30
|
-
export type BulkUploadResponse = ZeniAPIResponse<BulkUploadResponsePayload>;
|
|
31
|
-
export interface BatchListResponsePayload {
|
|
32
|
-
batches: BatchListItemPayload[];
|
|
33
|
-
}
|
|
34
|
-
export interface BatchListItemPayload {
|
|
35
|
-
batch_id: string;
|
|
36
|
-
created_at: string;
|
|
37
|
-
failed_count: number;
|
|
38
|
-
matched_count: number;
|
|
39
|
-
no_match_count: number;
|
|
40
|
-
possible_matches_count: number;
|
|
41
|
-
status: string;
|
|
42
|
-
total_files: number;
|
|
43
|
-
}
|
|
44
|
-
export type BatchListResponse = ZeniAPIResponse<BatchListResponsePayload>;
|
|
45
|
-
export interface MatchedTransactionPayload {
|
|
46
|
-
amount: number;
|
|
47
|
-
currency_code: string;
|
|
48
|
-
transaction_date: string | null;
|
|
49
|
-
transaction_id: string;
|
|
50
|
-
vendor_name: string;
|
|
51
|
-
transaction_type?: string;
|
|
52
|
-
vendor_logo?: URLPayload | null;
|
|
53
|
-
}
|
|
54
|
-
export interface MatchCandidatePayload extends MatchedTransactionPayload {
|
|
55
|
-
match_score: number;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Wire payload for a batch file row. `status` may use legacy aliases (`matched`, `un_matched`,
|
|
59
|
-
* `possible_match`, `possible_matches`, etc.) until the backend is fully migrated; canonical
|
|
60
|
-
* values are applied in {@link parseBatchFileStatus} via {@link toBatchFile}.
|
|
61
|
-
*/
|
|
62
|
-
export interface BatchFilePayload {
|
|
63
|
-
attachment_id: string;
|
|
64
|
-
file_id: string;
|
|
65
|
-
file_preview_url: string | null;
|
|
66
|
-
filename: string;
|
|
67
|
-
status: string;
|
|
68
|
-
candidates?: MatchCandidatePayload[];
|
|
69
|
-
match_source?: string;
|
|
70
|
-
matched_transaction?: MatchedTransactionPayload;
|
|
71
|
-
}
|
|
72
|
-
export interface BatchDetailsResponsePayload {
|
|
73
|
-
batch_id: string;
|
|
74
|
-
created_at: string;
|
|
75
|
-
files: BatchFilePayload[];
|
|
76
|
-
status: string;
|
|
77
|
-
summary: {
|
|
78
|
-
failed: number;
|
|
79
|
-
matched: number;
|
|
80
|
-
no_match: number;
|
|
81
|
-
possible_matches: number;
|
|
82
|
-
total: number;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export type BatchDetailsResponse = ZeniAPIResponse<BatchDetailsResponsePayload>;
|
|
86
|
-
/**
|
|
87
|
-
* Maps batch-details API `files[].status` strings to canonical {@link BatchFileStatus}.
|
|
88
|
-
* Legacy aliases are supported during rollout; unknown strings map to `failed` so Redux never
|
|
89
|
-
* holds untyped status values.
|
|
90
|
-
*/
|
|
91
|
-
export declare function parseBatchFileStatus(raw: string): BatchFileStatus;
|
|
92
|
-
export declare function toBatchFile(payload: BatchFilePayload, filesEndPoint?: string): BatchFile;
|
|
93
|
-
export declare function extractTransactionPayloadsFromBatchFiles(files: BatchFilePayload[]): SupportedTransactionPayload[];
|
|
94
|
-
export declare function toBatchSummary(payload: BatchDetailsResponsePayload['summary']): BatchSummary;
|
|
95
|
-
export declare function toBatchDetails(payload: BatchDetailsResponsePayload, filesEndPoint?: string): BatchDetails;
|
|
96
|
-
/** Batch list `status` is a string from the API — compare case-insensitively. */
|
|
97
|
-
export declare function isBatchListStatusCompleted(status: string): boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Subset of the get-all-batches (`/batches?query=...`) list that is eligible for
|
|
100
|
-
* `GET /batches/:batchId` details fetches. The stored list may include pending, failed, or other
|
|
101
|
-
* statuses for UI; only `completed` rows should trigger batch-details requests.
|
|
102
|
-
*/
|
|
103
|
-
export declare function filterBatchListItemsForBatchDetailsFetch(batches: BatchListItem[]): BatchListItem[];
|
|
104
|
-
/**
|
|
105
|
-
* Batch details API response `status` field — only completed payloads should be stored from
|
|
106
|
-
* multi-batch fetch paths (list can be briefly stale vs. live processing state).
|
|
107
|
-
*/
|
|
108
|
-
export declare function isBatchDetailsApiStatusCompleted(status: string): boolean;
|
|
109
|
-
export declare function findBatchListItemForBatchId(batchListByPeriod: Record<MonthYearPeriodId, BatchListItem[]>, batchId: string): BatchListItem | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* Whether it is appropriate to call `GET .../batches/:id` for details.
|
|
112
|
-
* Skips when live batch status or batch list row indicates the batch is not completed yet.
|
|
113
|
-
* When status is unknown in both sources, allows the request (e.g. dispatch before list refresh).
|
|
114
|
-
*/
|
|
115
|
-
export declare function shouldFetchBatchDetailsForBatchId(batchStatusById: Record<string, BatchStatus>, batchListByPeriod: Record<MonthYearPeriodId, BatchListItem[]>, batchId: string): boolean;
|
|
116
|
-
export declare function toBatchListItem(payload: BatchListItemPayload): BatchListItem;
|
|
117
|
-
/** Maps expense-automation transaction rows to manual-search list rows (Unmatched tab). */
|
|
118
|
-
export declare function supportedTransactionPayloadToManualSearchResult(payload: SupportedTransactionPayload): ManualSearchResult;
|
|
119
|
-
export interface CompletedTransactionsQueryPayload {
|
|
120
|
-
end_date?: string;
|
|
121
|
-
match_type?: string;
|
|
122
|
-
page_size?: number;
|
|
123
|
-
page_token?: string | null;
|
|
124
|
-
sort_by?: string;
|
|
125
|
-
sort_order?: string;
|
|
126
|
-
start_date?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface CompletedTransactionsResponsePayload {
|
|
129
|
-
next_page_token: string | null;
|
|
130
|
-
total_count: number;
|
|
131
|
-
transactions: SupportedTransactionPayload[];
|
|
132
|
-
}
|
|
133
|
-
export type CompletedTransactionsResponse = ZeniAPIResponse<CompletedTransactionsResponsePayload>;
|
|
134
16
|
export {};
|
|
@@ -1,203 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseBatchFileStatus = parseBatchFileStatus;
|
|
4
|
-
exports.toBatchFile = toBatchFile;
|
|
5
|
-
exports.extractTransactionPayloadsFromBatchFiles = extractTransactionPayloadsFromBatchFiles;
|
|
6
|
-
exports.toBatchSummary = toBatchSummary;
|
|
7
|
-
exports.toBatchDetails = toBatchDetails;
|
|
8
|
-
exports.isBatchListStatusCompleted = isBatchListStatusCompleted;
|
|
9
|
-
exports.filterBatchListItemsForBatchDetailsFetch = filterBatchListItemsForBatchDetailsFetch;
|
|
10
|
-
exports.isBatchDetailsApiStatusCompleted = isBatchDetailsApiStatusCompleted;
|
|
11
|
-
exports.findBatchListItemForBatchId = findBatchListItemForBatchId;
|
|
12
|
-
exports.shouldFetchBatchDetailsForBatchId = shouldFetchBatchDetailsForBatchId;
|
|
13
|
-
exports.toBatchListItem = toBatchListItem;
|
|
14
|
-
exports.supportedTransactionPayloadToManualSearchResult = supportedTransactionPayloadToManualSearchResult;
|
|
15
|
-
const urlPayload_1 = require("../../../commonPayloadTypes/urlPayload");
|
|
16
|
-
const amount_1 = require("../../../commonStateTypes/amount");
|
|
17
|
-
const transactionPayload_1 = require("../../../entity/transaction/payloadTypes/transactionPayload");
|
|
18
|
-
const missingReceiptsViewState_1 = require("../types/missingReceiptsViewState");
|
|
19
|
-
// -- Converter functions --
|
|
20
|
-
/**
|
|
21
|
-
* Maps batch-details API `files[].status` strings to canonical {@link BatchFileStatus}.
|
|
22
|
-
* Legacy aliases are supported during rollout; unknown strings map to `failed` so Redux never
|
|
23
|
-
* holds untyped status values.
|
|
24
|
-
*/
|
|
25
|
-
function parseBatchFileStatus(raw) {
|
|
26
|
-
const normalizedStatus = raw.trim().toLowerCase().replace(/-/g, '_');
|
|
27
|
-
switch (normalizedStatus) {
|
|
28
|
-
case 'exact_match':
|
|
29
|
-
case 'matched':
|
|
30
|
-
return 'exact_match';
|
|
31
|
-
case 'possible_matches':
|
|
32
|
-
case 'possible_match':
|
|
33
|
-
case 'possiblematch':
|
|
34
|
-
case 'un_matched':
|
|
35
|
-
case 'unmatched':
|
|
36
|
-
return 'possible_matches';
|
|
37
|
-
case 'no_match':
|
|
38
|
-
case 'nomatch':
|
|
39
|
-
return 'no_match';
|
|
40
|
-
case 'failed':
|
|
41
|
-
return 'failed';
|
|
42
|
-
default:
|
|
43
|
-
return 'failed';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function toBatchFile(payload, filesEndPoint) {
|
|
47
|
-
return {
|
|
48
|
-
attachmentId: payload.attachment_id,
|
|
49
|
-
candidates: payload.candidates?.map((candidate) => ({
|
|
50
|
-
transactionId: candidate.transaction_id,
|
|
51
|
-
matchScore: candidate.match_score,
|
|
52
|
-
})),
|
|
53
|
-
fileDownloadUrl: payload.file_id != null && filesEndPoint != null
|
|
54
|
-
? `${filesEndPoint}/1.0/files/${payload.file_id}?query=${encodeURIComponent(JSON.stringify({ download_file: true }))}`
|
|
55
|
-
: null,
|
|
56
|
-
fileId: payload.file_id,
|
|
57
|
-
filePreviewUrl: payload.file_preview_url,
|
|
58
|
-
filename: payload.filename,
|
|
59
|
-
matchSource: payload.match_source != null
|
|
60
|
-
? (0, missingReceiptsViewState_1.toMatchSource)(payload.match_source)
|
|
61
|
-
: undefined,
|
|
62
|
-
matchedTransactionId: payload.matched_transaction?.transaction_id,
|
|
63
|
-
status: (0, missingReceiptsViewState_1.toBatchFileStatus)(payload.status),
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function extractTransactionPayloadsFromBatchFiles(files) {
|
|
67
|
-
const seen = new Set();
|
|
68
|
-
const payloads = [];
|
|
69
|
-
for (const file of files) {
|
|
70
|
-
if (file.matched_transaction != null) {
|
|
71
|
-
const id = file.matched_transaction.transaction_id;
|
|
72
|
-
if (!seen.has(id)) {
|
|
73
|
-
seen.add(id);
|
|
74
|
-
payloads.push(matchedTransactionPayloadToSupportedTransactionPayload(file.matched_transaction));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (file.candidates != null) {
|
|
78
|
-
for (const candidate of file.candidates) {
|
|
79
|
-
const id = candidate.transaction_id;
|
|
80
|
-
if (!seen.has(id)) {
|
|
81
|
-
seen.add(id);
|
|
82
|
-
payloads.push(matchedTransactionPayloadToSupportedTransactionPayload(candidate));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return payloads;
|
|
88
|
-
}
|
|
89
|
-
function matchedTransactionPayloadToSupportedTransactionPayload(payload) {
|
|
90
|
-
return {
|
|
91
|
-
transaction_id: payload.transaction_id,
|
|
92
|
-
transaction_type: payload.transaction_type ?? 'expense',
|
|
93
|
-
transaction_date: payload.transaction_date ?? '',
|
|
94
|
-
currency_code: payload.currency_code,
|
|
95
|
-
total_amount: payload.amount,
|
|
96
|
-
vendor_name: payload.vendor_name,
|
|
97
|
-
logo: payload.vendor_logo == null ? undefined : (0, urlPayload_1.toURL)(payload.vendor_logo),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function toBatchSummary(payload) {
|
|
101
|
-
return {
|
|
102
|
-
failed: payload.failed,
|
|
103
|
-
matched: payload.matched,
|
|
104
|
-
noMatch: payload.no_match,
|
|
105
|
-
possibleMatches: payload.possible_matches,
|
|
106
|
-
total: payload.total,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function toBatchDetails(payload, filesEndPoint) {
|
|
110
|
-
return {
|
|
111
|
-
batchId: payload.batch_id,
|
|
112
|
-
createdAt: payload.created_at,
|
|
113
|
-
files: payload.files.map((file) => toBatchFile(file, filesEndPoint)),
|
|
114
|
-
status: (0, missingReceiptsViewState_1.toBatchStatusValue)(payload.status),
|
|
115
|
-
summary: toBatchSummary(payload.summary),
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
/** Batch list `status` is a string from the API — compare case-insensitively. */
|
|
119
|
-
function isBatchListStatusCompleted(status) {
|
|
120
|
-
return status.toLowerCase() === 'completed';
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Subset of the get-all-batches (`/batches?query=...`) list that is eligible for
|
|
124
|
-
* `GET /batches/:batchId` details fetches. The stored list may include pending, failed, or other
|
|
125
|
-
* statuses for UI; only `completed` rows should trigger batch-details requests.
|
|
126
|
-
*/
|
|
127
|
-
function filterBatchListItemsForBatchDetailsFetch(batches) {
|
|
128
|
-
return batches.filter((batch) => isBatchListStatusCompleted(batch.status));
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Batch details API response `status` field — only completed payloads should be stored from
|
|
132
|
-
* multi-batch fetch paths (list can be briefly stale vs. live processing state).
|
|
133
|
-
*/
|
|
134
|
-
function isBatchDetailsApiStatusCompleted(status) {
|
|
135
|
-
return status.toLowerCase() === 'completed';
|
|
136
|
-
}
|
|
137
|
-
function findBatchListItemForBatchId(batchListByPeriod, batchId) {
|
|
138
|
-
for (const list of Object.values(batchListByPeriod)) {
|
|
139
|
-
const found = list.find((batch) => batch.batchId === batchId);
|
|
140
|
-
if (found != null) {
|
|
141
|
-
return found;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return undefined;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Whether it is appropriate to call `GET .../batches/:id` for details.
|
|
148
|
-
* Skips when live batch status or batch list row indicates the batch is not completed yet.
|
|
149
|
-
* When status is unknown in both sources, allows the request (e.g. dispatch before list refresh).
|
|
150
|
-
*/
|
|
151
|
-
function shouldFetchBatchDetailsForBatchId(batchStatusById, batchListByPeriod, batchId) {
|
|
152
|
-
const live = batchStatusById[batchId]?.status;
|
|
153
|
-
if (live === 'completed') {
|
|
154
|
-
return true;
|
|
155
|
-
}
|
|
156
|
-
if (live === 'pending' || live === 'processing') {
|
|
157
|
-
return false;
|
|
158
|
-
}
|
|
159
|
-
const listItem = findBatchListItemForBatchId(batchListByPeriod, batchId);
|
|
160
|
-
if (listItem != null && !isBatchListStatusCompleted(listItem.status)) {
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
function toBatchListItem(payload) {
|
|
166
|
-
return {
|
|
167
|
-
batchId: payload.batch_id,
|
|
168
|
-
createdAt: payload.created_at,
|
|
169
|
-
failedCount: payload.failed_count,
|
|
170
|
-
matchedCount: payload.matched_count,
|
|
171
|
-
noMatchCount: payload.no_match_count,
|
|
172
|
-
possibleMatchesCount: payload.possible_matches_count,
|
|
173
|
-
status: payload.status,
|
|
174
|
-
totalFiles: payload.total_files,
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Amount shown in the Unmatched tab manual-search list: **first line only** when `lines` exist.
|
|
179
|
-
* Falls back to transaction-level totals via {@link getTransactionPayloadAmount} when there is
|
|
180
|
-
* no line or no line amount (same currency fields as the rest of the transaction payload).
|
|
181
|
-
*/
|
|
182
|
-
function getManualSearchListAmountFromPayload(payload) {
|
|
183
|
-
const lineAmount = payload.lines?.[0]?.amount;
|
|
184
|
-
if (lineAmount != null) {
|
|
185
|
-
return (0, amount_1.toAmount)(lineAmount, payload.currency_code, payload.currency_symbol);
|
|
186
|
-
}
|
|
187
|
-
return (0, transactionPayload_1.getTransactionPayloadAmount)(payload);
|
|
188
|
-
}
|
|
189
|
-
/** Maps expense-automation transaction rows to manual-search list rows (Unmatched tab). */
|
|
190
|
-
function supportedTransactionPayloadToManualSearchResult(payload) {
|
|
191
|
-
const amountPayload = getManualSearchListAmountFromPayload(payload);
|
|
192
|
-
return {
|
|
193
|
-
amount: amountPayload.amount,
|
|
194
|
-
currencyCode: amountPayload.currencyCode,
|
|
195
|
-
entityId: payload.vendor_id ?? payload.customer_id ?? '',
|
|
196
|
-
memo: payload.transaction_memo ?? '',
|
|
197
|
-
transactionDate: payload.transaction_date,
|
|
198
|
-
transactionId: payload.transaction_id,
|
|
199
|
-
transactionType: payload.transaction_type,
|
|
200
|
-
vendorName: payload.vendor_name ?? '',
|
|
201
|
-
vendorLogo: (0, urlPayload_1.toURL)(payload.logo)?.href,
|
|
202
|
-
};
|
|
203
|
-
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
|
-
import { FetchStateAndError,
|
|
3
|
-
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
2
|
+
import { FetchStateAndError, UpdateType } from '../../../commonStateTypes/common';
|
|
4
3
|
import { MonthYearPeriod, TimePeriod } from '../../../commonStateTypes/timePeriod';
|
|
5
|
-
import type { MonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
|
|
6
4
|
import { TransactionPayload } from '../../../entity/transaction/payloadTypes/transactionPayload';
|
|
7
5
|
import { SupportedTransactionPayload } from '../../../entity/transaction/transactionState';
|
|
8
6
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
9
|
-
import {
|
|
10
|
-
export declare const getCompletedTransactionsCacheKey: (periodId: MonthYearPeriodId, sortKey: BulkUploadSortKey, sortOrder: SortOrder, subTab: CompletedSubTab) => string;
|
|
11
|
-
export declare const initialBulkUploadState: BulkUploadState;
|
|
7
|
+
import { MissingReceiptsViewState, MissingReceiptsViewUIState } from '../types/missingReceiptsViewState';
|
|
12
8
|
export declare const initialState: MissingReceiptsViewState;
|
|
13
|
-
/** Epic trigger only; batch-details fetch is handled in epics. */
|
|
14
|
-
export declare const fetchBulkUploadBatchDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/fetchBulkUploadBatchDetails">;
|
|
15
9
|
export declare const fetchMissingReceipts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, minimumTransactionAmount: Amount, cacheOverride?: any, refreshViewInBackground?: any], {
|
|
16
10
|
period: TimePeriod;
|
|
17
11
|
minimumTransactionAmount: Amount;
|
|
@@ -32,73 +26,6 @@ export declare const fetchMissingReceipts: import("@reduxjs/toolkit").ActionCrea
|
|
|
32
26
|
}, "expenseAutomationMissingReceiptsView/updateMissingReceiptUploadState", never, never>, updateMissingReceiptsUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<MissingReceiptsViewUIState>, "expenseAutomationMissingReceiptsView/updateMissingReceiptsUIState">, markMissingReceiptAsDone: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[transactionPayload: SupportedTransactionPayload, selectedPeriod: MonthYearPeriod], {
|
|
33
27
|
transactionPayload: SupportedTransactionPayload;
|
|
34
28
|
selectedPeriod: MonthYearPeriod;
|
|
35
|
-
}, "expenseAutomationMissingReceiptsView/markMissingReceiptAsDone", never, never>, clearExpenseAutomationMissingReceiptsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearExpenseAutomationMissingReceiptsView"
|
|
36
|
-
files: File[];
|
|
37
|
-
}, "expenseAutomationMissingReceiptsView/bulkUploadReceipts", never, never>, updateBulkUploadProgress: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "expenseAutomationMissingReceiptsView/updateBulkUploadProgress">, bulkUploadReceiptsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
38
|
-
batchId: ID;
|
|
39
|
-
}, "expenseAutomationMissingReceiptsView/bulkUploadReceiptsSuccess">, bulkUploadReceiptsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
|
-
error: ZeniAPIStatus;
|
|
41
|
-
}, "expenseAutomationMissingReceiptsView/bulkUploadReceiptsFailure">, bulkUploadAutomatchingTimedOut: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[batchId: string], {
|
|
42
|
-
batchId: string;
|
|
43
|
-
}, "expenseAutomationMissingReceiptsView/bulkUploadAutomatchingTimedOut", never, never>, pusherBatchStatusUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<BatchStatus, "expenseAutomationMissingReceiptsView/pusherBatchStatusUpdate">, requestMissingReceiptsTabNavigation: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
|
-
tab: BulkUploadResultsTab;
|
|
45
|
-
}, "expenseAutomationMissingReceiptsView/requestMissingReceiptsTabNavigation">, clearMissingReceiptsTabNavigation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearMissingReceiptsTabNavigation">, fetchBulkUploadBatchDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BatchDetails, "expenseAutomationMissingReceiptsView/fetchBulkUploadBatchDetailsSuccess">, fetchBulkUploadBatchDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: {
|
|
46
|
-
error: ZeniAPIStatus;
|
|
47
|
-
}], {
|
|
48
|
-
error: ZeniAPIStatus;
|
|
49
|
-
}, "expenseAutomationMissingReceiptsView/fetchBulkUploadBatchDetailsFailure", never, never>, storeBatchDetails: import("@reduxjs/toolkit").ActionCreatorWithPayload<BatchDetails, "expenseAutomationMissingReceiptsView/storeBatchDetails">, batchDetailFetchFailed: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
50
|
-
batchId: ID;
|
|
51
|
-
}, "expenseAutomationMissingReceiptsView/batchDetailFetchFailed">, setInitialBatchDetailsLoading: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/setInitialBatchDetailsLoading">, fetchMoreBatchDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/fetchMoreBatchDetails">, fetchMoreBatchDetailsComplete: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/fetchMoreBatchDetailsComplete">, fetchMoreBatchDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
52
|
-
error: ZeniAPIStatus;
|
|
53
|
-
}, "expenseAutomationMissingReceiptsView/fetchMoreBatchDetailsFailure">, fetchBulkUploadBatches: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[input?: {
|
|
54
|
-
cacheOverride?: boolean;
|
|
55
|
-
invalidateBatchDetailsCache?: boolean;
|
|
56
|
-
} | undefined], {
|
|
57
|
-
cacheOverride: boolean;
|
|
58
|
-
invalidateBatchDetailsCache: boolean;
|
|
59
|
-
}, "expenseAutomationMissingReceiptsView/fetchBulkUploadBatches", never, never>, fetchBulkUploadBatchesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
60
|
-
batchList: BatchListItem[];
|
|
61
|
-
selectedPeriod: MonthYearPeriod;
|
|
62
|
-
}, "expenseAutomationMissingReceiptsView/fetchBulkUploadBatchesSuccess">, fetchBulkUploadBatchesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
63
|
-
error: ZeniAPIStatus;
|
|
64
|
-
selectedPeriod: MonthYearPeriod;
|
|
65
|
-
}, "expenseAutomationMissingReceiptsView/fetchBulkUploadBatchesFailure">, confirmBulkUploadMatch: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[batchId: string, attachmentId: string, transactionId: string, transactionType: string, fileName: string], {
|
|
66
|
-
batchId: string;
|
|
67
|
-
attachmentId: string;
|
|
68
|
-
transactionId: string;
|
|
69
|
-
transactionType: string;
|
|
70
|
-
fileName: string;
|
|
71
|
-
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatch", never, never>, confirmBulkUploadMatchSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
72
|
-
attachmentId: ID;
|
|
73
|
-
batchId: ID;
|
|
74
|
-
transactionId: ID;
|
|
75
|
-
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchSuccess">, confirmBulkUploadMatchFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
76
|
-
error: ZeniAPIStatus;
|
|
77
|
-
}, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchFailure">, setBulkUploadResultsTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "unmatched", "expenseAutomationMissingReceiptsView/setBulkUploadResultsTab">, setBulkUploadCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "manual" | "ai_accountant", "expenseAutomationMissingReceiptsView/setBulkUploadCompletedSubTab">, setBulkUploadSortConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
78
|
-
sortKey: BulkUploadSortKey;
|
|
79
|
-
sortOrder: SortOrder;
|
|
80
|
-
}, "expenseAutomationMissingReceiptsView/setBulkUploadSortConfig">, clearBulkUpload: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearBulkUpload">, searchTransactionsForManualMatch: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: string, pageToken?: string | null | undefined], {
|
|
81
|
-
query: string;
|
|
82
|
-
pageToken: string | undefined;
|
|
83
|
-
}, "expenseAutomationMissingReceiptsView/searchTransactionsForManualMatch", never, never>, searchTransactionsForManualMatchSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
84
|
-
append: boolean;
|
|
85
|
-
nextPageToken: string | null;
|
|
86
|
-
results: ManualSearchResult[];
|
|
87
|
-
totalCount: number;
|
|
88
|
-
}, "expenseAutomationMissingReceiptsView/searchTransactionsForManualMatchSuccess">, searchTransactionsForManualMatchFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
89
|
-
error: ZeniAPIStatus;
|
|
90
|
-
}, "expenseAutomationMissingReceiptsView/searchTransactionsForManualMatchFailure">, clearManualSearchResults: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearManualSearchResults">, acknowledgeBulkUploadConfirmMatchComplete: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/acknowledgeBulkUploadConfirmMatchComplete">, fetchCompletedTransactions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken?: string | undefined, cacheOverride?: boolean | undefined], {
|
|
91
|
-
pageToken: string | undefined;
|
|
92
|
-
cacheOverride: boolean | undefined;
|
|
93
|
-
}, "expenseAutomationMissingReceiptsView/fetchCompletedTransactions", never, never>, fetchCompletedTransactionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
94
|
-
isInitialLoad: boolean;
|
|
95
|
-
nextPageToken: string | null;
|
|
96
|
-
selectedPeriod: MonthYearPeriod;
|
|
97
|
-
totalCount: number;
|
|
98
|
-
transactionIds: ID[];
|
|
99
|
-
}, "expenseAutomationMissingReceiptsView/fetchCompletedTransactionsSuccess">, fetchCompletedTransactionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
100
|
-
error: ZeniAPIStatus;
|
|
101
|
-
selectedPeriod: MonthYearPeriod;
|
|
102
|
-
}, "expenseAutomationMissingReceiptsView/fetchCompletedTransactionsFailure">;
|
|
29
|
+
}, "expenseAutomationMissingReceiptsView/markMissingReceiptAsDone", never, never>, clearExpenseAutomationMissingReceiptsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearExpenseAutomationMissingReceiptsView">;
|
|
103
30
|
declare const _default: import("redux").Reducer<MissingReceiptsViewState>;
|
|
104
31
|
export default _default;
|