@zeniai/client-epic-state 5.1.85-betaRD3 → 5.1.86-beta2UT

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.
Files changed (75) hide show
  1. package/lib/entity/aiCfo/aiCfoState.d.ts +2 -2
  2. package/lib/entity/jeSchedules/jeScheduleHelper.d.ts +0 -2
  3. package/lib/entity/jeSchedules/jeScheduleHelper.js +0 -7
  4. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -34
  5. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -68
  6. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -4
  7. package/lib/entity/jeSchedules/jeSchedulesReducer.js +2 -24
  8. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +2 -10
  9. package/lib/entity/jeSchedules/jeSchedulesSelector.js +3 -28
  10. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -41
  11. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -12
  12. package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -40
  13. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  14. package/lib/entity/tenant/tenantReducer.js +1 -0
  15. package/lib/entity/tenant/tenantSelector.d.ts +1 -0
  16. package/lib/entity/tenant/tenantSelector.js +12 -0
  17. package/lib/entity/tenant/tenantState.d.ts +1 -0
  18. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +0 -2
  19. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +0 -2
  20. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +0 -2
  21. package/lib/epic.d.ts +1 -5
  22. package/lib/epic.js +1 -5
  23. package/lib/esm/entity/jeSchedules/jeScheduleHelper.js +0 -6
  24. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +1 -68
  25. package/lib/esm/entity/jeSchedules/jeSchedulesReducer.js +2 -24
  26. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +2 -26
  27. package/lib/esm/entity/jeSchedules/jeSchedulesTypes.js +0 -34
  28. package/lib/esm/entity/tenant/tenantReducer.js +1 -0
  29. package/lib/esm/entity/tenant/tenantSelector.js +11 -0
  30. package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +0 -2
  31. package/lib/esm/epic.js +1 -5
  32. package/lib/esm/index.js +6 -12
  33. package/lib/esm/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -6
  34. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +3 -34
  35. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +28 -163
  36. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +22 -260
  37. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +6 -5
  38. package/lib/index.d.ts +12 -16
  39. package/lib/index.js +50 -76
  40. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +3 -6
  41. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +2 -2
  42. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +1 -32
  43. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +1 -8
  44. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +10 -45
  45. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +28 -164
  46. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +1 -1
  47. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +2 -2
  48. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +8 -34
  49. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +1 -10
  50. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +21 -266
  51. package/lib/view/expenseAutomationView/types/completedSubTab.d.ts +1 -1
  52. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +8 -59
  53. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +8 -8
  54. package/package.json +1 -1
  55. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +0 -21
  56. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +0 -110
  57. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +0 -73
  58. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +0 -22
  59. package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +0 -140
  60. package/lib/esm/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +0 -1
  61. package/lib/esm/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +0 -70
  62. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.d.ts +0 -8
  63. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +0 -25
  64. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +0 -45
  65. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +0 -114
  66. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.d.ts +0 -8
  67. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +0 -77
  68. package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.d.ts +0 -6
  69. package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +0 -26
  70. package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.d.ts +0 -36
  71. package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +0 -145
  72. package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.d.ts +0 -25
  73. package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +0 -2
  74. package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.d.ts +0 -10
  75. package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +0 -75
@@ -11,7 +11,6 @@ const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer"
11
11
  const missingReceiptsViewReducer_1 = require("../../reducers/missingReceiptsViewReducer");
12
12
  const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
13
13
  const transactionsViewReducer_1 = require("../../reducers/transactionsViewReducer");
14
- const jeSchedulesViewState_1 = require("../../types/jeSchedulesViewState");
15
14
  const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expenseAutomationViewReducer_1.fetchAllExpenseAutomationTabs.match), (0, operators_1.switchMap)((action) => {
16
15
  const { cacheOverride, refreshViewInBackground } = action.payload;
17
16
  const state = state$.value;
@@ -63,16 +62,14 @@ const fetchAllExpenseAutomationTabsEpic = (actions$, state$) => actions$.pipe((0
63
62
  state.expenseAutomationFluxAnalysisViewState.groupsBySelectedPeriod[monthYearPeriodId] == null)) {
64
63
  fetchActions.push((0, fluxAnalysisViewReducer_1.fetchFluxAnalysisView)(selectedPeriod, cacheOverride, refreshViewInBackground, null));
65
64
  }
66
- // The two JE tabs cache separately, so only the tab actually being shown decides whether a
67
- // fetch is still needed.
68
- const jeSchedulesPeriodTabKey = (0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(state.expenseAutomationJESchedulesViewState.uiState.selectedPageTab, monthYearPeriodId);
69
65
  if (state.expenseAutomationJESchedulesViewState.fetchState !==
70
66
  'In-Progress' &&
71
67
  (!state.expenseAutomationJESchedulesViewState.hasValidState() ||
72
68
  state.expenseAutomationJESchedulesViewState
73
- .jeScheduleTransactionKeysByPeriodAndTab[jeSchedulesPeriodTabKey] == null ||
69
+ .jeScheduleTransactionKeysByPeriod[monthYearPeriodId] == null ||
74
70
  state.expenseAutomationJESchedulesViewState
75
- .failedJeScheduleTransactionKeysByPeriodAndTab[jeSchedulesPeriodTabKey] == null)) {
71
+ .failedJeScheduleTransactionKeysByPeriod[monthYearPeriodId] ==
72
+ null)) {
76
73
  fetchActions.push((0, jeSchedulesViewReducer_1.fetchJeSchedulesPage)({ start: timePeriodStart, end: timePeriodEnd }, cacheOverride));
77
74
  }
78
75
  if (state.expenseAutomationReconciliationViewState.fetchState !==
@@ -1,8 +1,8 @@
1
1
  import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
- import { updateAccruedJESchedules, updateAccruedJESchedulesDetails, updateJEOneTimeAccruals, updateJESchedules, updateJESchedulesDetails } from '../../../../entity/jeSchedules/jeSchedulesReducer';
3
+ import { updateJESchedules, updateJESchedulesDetails } from '../../../../entity/jeSchedules/jeSchedulesReducer';
4
4
  import { RootState } from '../../../../reducer';
5
5
  import { ZeniAPI } from '../../../../zeniAPI';
6
6
  import { fetchJeSchedules, fetchJeSchedulesFailure, fetchJeSchedulesSuccess, initializeJeScheduleLocalData } from '../../reducers/jeSchedulesViewReducer';
7
- export type ActionType = ReturnType<typeof fetchJeSchedules> | ReturnType<typeof fetchJeSchedulesFailure> | ReturnType<typeof fetchJeSchedulesSuccess> | ReturnType<typeof initializeJeScheduleLocalData> | ReturnType<typeof updateAccruedJESchedules> | ReturnType<typeof updateAccruedJESchedulesDetails> | ReturnType<typeof updateJEOneTimeAccruals> | ReturnType<typeof updateJESchedules> | ReturnType<typeof updateJESchedulesDetails>;
7
+ export type ActionType = ReturnType<typeof fetchJeSchedules> | ReturnType<typeof fetchJeSchedulesFailure> | ReturnType<typeof fetchJeSchedulesSuccess> | ReturnType<typeof initializeJeScheduleLocalData> | ReturnType<typeof updateJESchedules> | ReturnType<typeof updateJESchedulesDetails>;
8
8
  export declare const fetchJeSchedulesEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fetchJeSchedulesEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
- const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
7
6
  const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
8
7
  const jeSchedulesReducer_1 = require("../../../../entity/jeSchedules/jeSchedulesReducer");
9
8
  const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
10
9
  const responsePayload_1 = require("../../../../responsePayload");
11
- const zeniDayJS_1 = require("../../../../zeniDayJS");
12
10
  const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer");
13
11
  const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.fetchJeSchedules.match), (0, operators_1.mergeMap)((action) => {
14
12
  const state = state$.value;
@@ -16,54 +14,27 @@ const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
16
14
  const { period, refreshViewInBackground } = action.payload;
17
15
  const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
18
16
  const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
19
- const { selectedPageTab } = state.expenseAutomationJESchedulesViewState.uiState;
20
- const isClosePeriodTab = selectedPageTab === 'schedules';
21
- const existingEndDate = (0, timePeriod_1.toAbsoluteDay)((0, zeniDayJS_1.date)((0, timePeriod_1.toString)(period.start))
22
- .subtract(1, 'month')
23
- .endOf('month')
24
- .format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT));
25
17
  const queryParam = {
26
18
  start_date: (0, timePeriod_1.toString)(period.start),
27
- end_date: isClosePeriodTab || existingEndDate == null
28
- ? (0, timePeriod_1.toString)(period.end)
29
- : (0, timePeriod_1.toString)(existingEndDate),
30
- include_accrued: true,
31
- ...(isClosePeriodTab
32
- ? { close_period_start_date: (0, timePeriod_1.toString)(period.start) }
33
- : {}),
19
+ end_date: (0, timePeriod_1.toString)(period.end),
34
20
  };
35
21
  return zeniAPI
36
22
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/expenses_automation/je_schedules?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
37
23
  .pipe((0, operators_1.mergeMap)((response) => {
38
24
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
39
25
  const updateActions = [];
40
- const accruedJeSchedules = response.data.accrued_je_schedules?.je_schedules ?? [];
41
- const oneTimeAccruals = response.data.one_time_accruals ?? [];
42
26
  updateActions.push((0, jeSchedulesReducer_1.updateJESchedules)([
43
27
  ...response.data.je_schedules,
44
28
  ...response.data.failed_je_postings.je_schedules,
45
29
  ]), (0, jeSchedulesReducer_1.updateJESchedulesDetails)([...response.data.failed_je_postings.je_schedules], response.data.failed_je_postings.scheduled_journal_entries), (0, jeSchedulesViewReducer_1.initializeJeScheduleLocalData)([
46
30
  ...response.data.failed_je_postings.je_schedules,
47
31
  ]));
48
- if (accruedJeSchedules.length > 0) {
49
- updateActions.push((0, jeSchedulesReducer_1.updateAccruedJESchedules)(accruedJeSchedules), (0, jeSchedulesReducer_1.updateAccruedJESchedulesDetails)(accruedJeSchedules, response.data.accrued_je_schedules
50
- ?.scheduled_journal_entries));
51
- }
52
- if (oneTimeAccruals.length > 0) {
53
- // Single action, unlike the accrued pair above: this one writes the entity
54
- // directly because an accrual denormalizes its vendor, accounts and classes, so
55
- // there is no fan-out fetch to trigger.
56
- updateActions.push((0, jeSchedulesReducer_1.updateJEOneTimeAccruals)(oneTimeAccruals));
57
- }
58
32
  updateActions.push((0, jeSchedulesViewReducer_1.fetchJeSchedulesSuccess)({
59
33
  jeSchedules: [...response.data.je_schedules],
60
34
  failedJeSchedules: [
61
35
  ...response.data.failed_je_postings.je_schedules,
62
36
  ],
63
- accruedJeSchedules: accruedJeSchedules,
64
- oneTimeAccruals: oneTimeAccruals,
65
37
  selectedPeriod: selectedPeriod,
66
- selectedPageTab: selectedPageTab,
67
38
  refreshViewInBackground: refreshViewInBackground,
68
39
  }));
69
40
  return (0, rxjs_1.from)(updateActions);
@@ -72,14 +43,12 @@ const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
72
43
  return (0, rxjs_1.of)((0, jeSchedulesViewReducer_1.fetchJeSchedulesFailure)({
73
44
  status: response.status,
74
45
  selectedPeriod,
75
- selectedPageTab,
76
46
  }));
77
47
  }
78
48
  }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, jeSchedulesViewReducer_1.fetchJeSchedulesFailure)({
79
49
  status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'fetch JE schedules REST API call errored out' +
80
50
  JSON.stringify(error)),
81
51
  selectedPeriod,
82
- selectedPageTab,
83
52
  }))));
84
53
  }));
85
54
  exports.fetchJeSchedulesEpic = fetchJeSchedulesEpic;
@@ -1,4 +1,4 @@
1
- import { JEAccruedScheduledTransactionPayload, JEOneTimeAccrualPayload, JEScheduledTransactionPayload, ScheduledJournalEntryPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
1
+ import { JEScheduledTransactionPayload, ScheduledJournalEntryPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
2
2
  import { JEScheduledTransaction } from '../../../entity/jeSchedules/jeSchedulesSelector';
3
3
  import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
4
4
  import { RootState } from '../../../reducer';
@@ -7,9 +7,7 @@ import { JESchedulePayload, SaveJESchedulePayload } from '../../scheduleView/sch
7
7
  import { JEScheduleLocalData } from '../types/jeSchedulesViewState';
8
8
  export interface ExpenseAutomationJESchedulesQueryPayload {
9
9
  end_date: string;
10
- include_accrued: boolean;
11
10
  start_date: string;
12
- close_period_start_date?: string;
13
11
  }
14
12
  interface ExpenseAutomationJESchedulesPayload {
15
13
  failed_je_postings: {
@@ -17,11 +15,6 @@ interface ExpenseAutomationJESchedulesPayload {
17
15
  scheduled_journal_entries: ScheduledJournalEntryPayload[];
18
16
  };
19
17
  je_schedules: JEScheduledTransactionPayload[];
20
- accrued_je_schedules?: {
21
- je_schedules: JEAccruedScheduledTransactionPayload[];
22
- scheduled_journal_entries?: ScheduledJournalEntryPayload[];
23
- };
24
- one_time_accruals?: JEOneTimeAccrualPayload[];
25
18
  }
26
19
  export type ExpenseAutomationJESchedulesResponse = ZeniAPIResponse<ExpenseAutomationJESchedulesPayload>;
27
20
  export interface IgnoreDraftJESchedulePayload {
@@ -1,33 +1,26 @@
1
1
  import { ID } from '../../../commonStateTypes/common';
2
2
  import { MonthYearPeriod, TimePeriod } from '../../../commonStateTypes/timePeriod';
3
3
  import { AccountMetadataPayload } from '../../../entity/account/accountPayload';
4
- import { JEAccruedScheduledTransactionPayload, JEOneTimeAccrualPayload, JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
5
- import { JEScheduleTransactionKey, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
4
+ import { JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
5
+ import { JEScheduleTransactionKey } from '../../../entity/jeSchedules/jeSchedulesTypes';
6
6
  import { ZeniAPIStatus } from '../../../responsePayload';
7
7
  import { AccountTypeRecommendationPayload } from '../../accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload';
8
- import { AccountSettingsLocalData, AccountSettingsState, JEPageTab, JEScheduleLocalData, JESchedulesViewState, JESchedulesViewUIState, NewScheduleLocalData, NewScheduleLocalDataFixedAssets, SearchTransactionsState } from '../types/jeSchedulesViewState';
8
+ import { AccountSettingsLocalData, AccountSettingsState, JEScheduleLocalData, JESchedulesViewState, JESchedulesViewUIState } from '../types/jeSchedulesViewState';
9
9
  export declare const accountSettingsInitialState: AccountSettingsState;
10
- export declare const getBaseNewScheduleLocalData: (scheduleType: ScheduleTypes) => NewScheduleLocalData;
11
- export declare const newScheduleInitialState: JESchedulesViewState['newSchedule']['newScheduleState'];
12
- export declare const searchTransactionsInitialState: SearchTransactionsState;
13
10
  export declare const initialState: JESchedulesViewState;
14
- export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearExpenseAutomationJESchedulesView">, clearJeAccountSettingsLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeAccountSettingsLocalData">, clearJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeScheduleLocalData">, clearSearchTransactionsForNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearSearchTransactionsForNewSchedule">, fetchAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/fetchAccountSettingsListForAccountTypes">, fetchJeSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
11
+ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearExpenseAutomationJESchedulesView">, clearJeAccountSettingsLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeAccountSettingsLocalData">, clearJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/clearJeScheduleLocalData">, fetchAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/fetchAccountSettingsListForAccountTypes">, fetchJeSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
15
12
  period: TimePeriod;
16
13
  refreshViewInBackground: any;
17
14
  }, "expenseAutomationJESchedulesView/fetchJeSchedules", never, never>, fetchJeSchedulesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
- selectedPageTab: JEPageTab;
19
15
  selectedPeriod: MonthYearPeriod;
20
16
  status: ZeniAPIStatus;
21
17
  }, "expenseAutomationJESchedulesView/fetchJeSchedulesFailure">, fetchJeSchedulesPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
22
18
  period: TimePeriod;
23
19
  refreshViewInBackground: any;
24
20
  }, "expenseAutomationJESchedulesView/fetchJeSchedulesPage", never, never>, fetchJeSchedulesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
25
- accruedJeSchedules: JEAccruedScheduledTransactionPayload[];
26
21
  failedJeSchedules: JEScheduledTransactionPayload[];
27
22
  jeSchedules: JEScheduledTransactionPayload[];
28
- oneTimeAccruals: JEOneTimeAccrualPayload[];
29
23
  refreshViewInBackground: boolean;
30
- selectedPageTab: JEPageTab;
31
24
  selectedPeriod: MonthYearPeriod;
32
25
  }, "expenseAutomationJESchedulesView/fetchJeSchedulesSuccess">, fetchRecommendationForAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/fetchRecommendationForAccountSettings">, ignoreRecommendedJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`, scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue"], {
33
26
  jeScheduleTransactionKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`;
@@ -39,11 +32,7 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
39
32
  jeScheduleTransactionKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`;
40
33
  }, "expenseAutomationJESchedulesView/ignoreRecommendedJeScheduleSuccess", never, never>, initializeAccountSettingsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/initializeAccountSettingsView">, initializeJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeSchedules: JEScheduledTransactionPayload[]], {
41
34
  jeScheduleTransactionKeys: (`${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`)[];
42
- }, "expenseAutomationJESchedulesView/initializeJeScheduleLocalData", never, never>, initializeNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
43
- scheduleType: "fixed_assets" | "prepaid_expenses";
44
- }], {
45
- scheduleType: "prepaid_expenses" | "fixed_assets";
46
- }, "expenseAutomationJESchedulesView/initializeNewSchedule", never, never>, removeFailedJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedJeScheduleKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`, selectedPeriod: MonthYearPeriod], {
35
+ }, "expenseAutomationJESchedulesView/initializeJeScheduleLocalData", never, never>, removeFailedJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedJeScheduleKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`, selectedPeriod: MonthYearPeriod], {
47
36
  failedJeScheduleKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`;
48
37
  selectedPeriod: MonthYearPeriod;
49
38
  }, "expenseAutomationJESchedulesView/removeFailedJeScheduleTransactionKey", never, never>, removeJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -51,11 +40,7 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
51
40
  }, "expenseAutomationJESchedulesView/removeJeScheduleLocalDataById">, removeJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`, selectedPeriod: MonthYearPeriod], {
52
41
  jeScheduleKey: `${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`;
53
42
  selectedPeriod: MonthYearPeriod;
54
- }, "expenseAutomationJESchedulesView/removeJeScheduleTransactionKey", never, never>, resetNewScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
55
- scheduleType: "fixed_assets" | "prepaid_expenses";
56
- }], {
57
- scheduleType: "prepaid_expenses" | "fixed_assets";
58
- }, "expenseAutomationJESchedulesView/resetNewScheduleLocalData", never, never>, retryJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
43
+ }, "expenseAutomationJESchedulesView/removeJeScheduleTransactionKey", never, never>, retryJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
59
44
  jeScheduleTransactionKey: JEScheduleTransactionKey;
60
45
  scheduledJournalEntryID: ID;
61
46
  }, "expenseAutomationJESchedulesView/retryJeSchedule">, retryJeScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -67,37 +52,17 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
67
52
  status: ZeniAPIStatus;
68
53
  }, "expenseAutomationJESchedulesView/saveAccountSettingsFailure">, saveAccountSettingsLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
69
54
  data: Partial<AccountSettingsLocalData>;
70
- }, "expenseAutomationJESchedulesView/saveAccountSettingsLocalData">, saveAccountSettingsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveAccountSettingsSuccess">, saveNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
71
- scheduleType: "fixed_assets" | "prepaid_expenses";
72
- }], {
73
- scheduleType: "prepaid_expenses" | "fixed_assets";
74
- }, "expenseAutomationJESchedulesView/saveNewSchedule", never, never>, saveNewScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
75
- status: ZeniAPIStatus;
76
- }, "expenseAutomationJESchedulesView/saveNewScheduleFailure">, saveNewScheduleSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveNewScheduleSuccess">, searchTransactionsForNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
77
- query: string;
78
- scheduleType: "fixed_assets" | "prepaid_expenses";
79
- }], {
80
- query: string;
81
- scheduleType: "prepaid_expenses" | "fixed_assets";
82
- }, "expenseAutomationJESchedulesView/searchTransactionsForNewSchedule", never, never>, searchTransactionsForNewScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
83
- status: ZeniAPIStatus;
84
- }, "expenseAutomationJESchedulesView/searchTransactionsForNewScheduleFailure">, searchTransactionsForNewScheduleSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
85
- searchResults: JEScheduleTransactionKey[];
86
- }, "expenseAutomationJESchedulesView/searchTransactionsForNewScheduleSuccess">, toggleJECreatedGroupCollapsed: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/toggleJECreatedGroupCollapsed">, toggleJEPendingGroupCollapsed: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/toggleJEPendingGroupCollapsed">, updateAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
55
+ }, "expenseAutomationJESchedulesView/saveAccountSettingsLocalData">, saveAccountSettingsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveAccountSettingsSuccess">, updateAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
87
56
  accountPayload: AccountMetadataPayload[];
88
57
  }, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypes">, updateAccountSettingsListForAccountTypesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
89
58
  status: ZeniAPIStatus;
90
- }, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypesFailure">, updateJESchedulesUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<JESchedulesViewUIState>, "expenseAutomationJESchedulesView/updateJESchedulesUIState">, updateJEScheduleTypeFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<"prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue" | null, "expenseAutomationJESchedulesView/updateJEScheduleTypeFilter">, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
59
+ }, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypesFailure">, updateJESchedulesUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<JESchedulesViewUIState>, "expenseAutomationJESchedulesView/updateJESchedulesUIState">, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
91
60
  localData: Partial<JEScheduleLocalData>;
92
61
  scheduledJournalEntryID: ID;
93
- }, "expenseAutomationJESchedulesView/updateJeScheduleLocalDataById">, updateJeScheduleTransactionKeys: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKeys: (`${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`)[], selectedPeriod: MonthYearPeriod, selectedPageTab: "schedules" | "existing_schedules"], {
62
+ }, "expenseAutomationJESchedulesView/updateJeScheduleLocalDataById">, updateJeScheduleTransactionKeys: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKeys: (`${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`)[], selectedPeriod: MonthYearPeriod], {
94
63
  jeScheduleKeys: (`${string}_expense_${string}` | `${string}_check_${string}` | `${string}_refund_${string}` | `${string}_invoice_${string}` | `${string}_payment_${string}` | `${string}_credit_memo_${string}` | `${string}_sales_receipt_${string}` | `${string}_delayed_credit_${string}` | `${string}_delayed_charge_${string}` | `${string}_bill_${string}` | `${string}_bill_payment_${string}` | `${string}_bill_payment_check_${string}` | `${string}_bill_payment_credit_card_${string}` | `${string}_vendor_credit_${string}` | `${string}_credit_card_credit_${string}` | `${string}_transfer_${string}` | `${string}_credit_card_payment_${string}` | `${string}_deposit_${string}` | `${string}_journal_entry_${string}`)[];
95
64
  selectedPeriod: MonthYearPeriod;
96
- selectedPageTab: "schedules" | "existing_schedules";
97
- }, "expenseAutomationJESchedulesView/updateJeScheduleTransactionKeys", never, never>, updateNewScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
98
- localData: Partial<NewScheduleLocalDataFixedAssets>;
99
- scheduleType: "fixed_assets" | "prepaid_expenses";
100
- }, "expenseAutomationJESchedulesView/updateNewScheduleLocalData">, updateRecommendationForAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<AccountTypeRecommendationPayload, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettings">, updateRecommendationForAccountSettingsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
65
+ }, "expenseAutomationJESchedulesView/updateJeScheduleTransactionKeys", never, never>, updateRecommendationForAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<AccountTypeRecommendationPayload, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettings">, updateRecommendationForAccountSettingsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
101
66
  status: ZeniAPIStatus;
102
67
  }, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettingsFailure">;
103
68
  declare const _default: import("redux").Reducer<JESchedulesViewState>;
@@ -1,21 +1,14 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateRecommendationForAccountSettingsFailure = exports.updateRecommendationForAccountSettings = exports.updateNewScheduleLocalData = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateJEScheduleTypeFilter = exports.updateJESchedulesUIState = exports.updateAccountSettingsListForAccountTypesFailure = exports.updateAccountSettingsListForAccountTypes = exports.toggleJEPendingGroupCollapsed = exports.toggleJECreatedGroupCollapsed = exports.searchTransactionsForNewScheduleSuccess = exports.searchTransactionsForNewScheduleFailure = exports.searchTransactionsForNewSchedule = exports.saveNewScheduleSuccess = exports.saveNewScheduleFailure = exports.saveNewSchedule = exports.saveAccountSettingsSuccess = exports.saveAccountSettingsLocalData = exports.saveAccountSettingsFailure = exports.saveAccountSettings = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.resetNewScheduleLocalData = exports.removeJeScheduleTransactionKey = exports.removeJeScheduleLocalDataById = exports.removeFailedJeScheduleTransactionKey = exports.initializeNewSchedule = exports.initializeJeScheduleLocalData = exports.initializeAccountSettingsView = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchRecommendationForAccountSettings = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.fetchAccountSettingsListForAccountTypes = exports.clearSearchTransactionsForNewSchedule = exports.clearJeScheduleLocalData = exports.clearJeAccountSettingsLocalData = exports.clearExpenseAutomationJESchedulesView = exports.initialState = exports.searchTransactionsInitialState = exports.newScheduleInitialState = exports.getBaseNewScheduleLocalData = exports.accountSettingsInitialState = void 0;
4
+ exports.updateRecommendationForAccountSettingsFailure = exports.updateRecommendationForAccountSettings = exports.updateJeScheduleTransactionKeys = exports.updateJeScheduleLocalDataById = exports.updateJESchedulesUIState = exports.updateAccountSettingsListForAccountTypesFailure = exports.updateAccountSettingsListForAccountTypes = exports.saveAccountSettingsSuccess = exports.saveAccountSettingsLocalData = exports.saveAccountSettingsFailure = exports.saveAccountSettings = exports.retryJeScheduleSuccess = exports.retryJeScheduleFailure = exports.retryJeSchedule = exports.removeJeScheduleTransactionKey = exports.removeJeScheduleLocalDataById = exports.removeFailedJeScheduleTransactionKey = exports.initializeJeScheduleLocalData = exports.initializeAccountSettingsView = exports.ignoreRecommendedJeScheduleSuccess = exports.ignoreRecommendedJeScheduleFailure = exports.ignoreRecommendedJeSchedule = exports.fetchRecommendationForAccountSettings = exports.fetchJeSchedulesSuccess = exports.fetchJeSchedulesPage = exports.fetchJeSchedulesFailure = exports.fetchJeSchedules = exports.fetchAccountSettingsListForAccountTypes = exports.clearJeScheduleLocalData = exports.clearJeAccountSettingsLocalData = exports.clearExpenseAutomationJESchedulesView = exports.initialState = exports.accountSettingsInitialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const getNestedAccountIDHierarchyForReport_1 = require("../../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
7
7
  const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
8
8
  const accountPayload_1 = require("../../../entity/account/accountPayload");
9
- const jeScheduleHelper_1 = require("../../../entity/jeSchedules/jeScheduleHelper");
10
9
  const jeSchedulesPayload_1 = require("../../../entity/jeSchedules/jeSchedulesPayload");
11
10
  const rootActions_1 = require("../../../rootActions");
12
11
  const accountTypeRecommendationPayload_1 = require("../../accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload");
13
- const jeSchedulesViewState_1 = require("../types/jeSchedulesViewState");
14
- function removeKeyFromEveryTabSlot(keysByPeriodAndTab, keyToRemove) {
15
- for (const periodTabKey of Object.keys(keysByPeriodAndTab)) {
16
- keysByPeriodAndTab[periodTabKey] = keysByPeriodAndTab[periodTabKey].filter((jeScheduleKey) => jeScheduleKey !== keyToRemove);
17
- }
18
- }
19
12
  exports.accountSettingsInitialState = {
20
13
  localData: {
21
14
  selectedPrepaidExpensesAccountIds: [],
@@ -47,35 +40,16 @@ exports.accountSettingsInitialState = {
47
40
  accruedExpensesNestedAccountListHierarchy: [],
48
41
  accruedExpensesRecommendations: [],
49
42
  };
50
- const getBaseNewScheduleLocalData = (scheduleType) => ({
51
- scheduleType,
52
- jeScheduleDetails: [],
53
- });
54
- exports.getBaseNewScheduleLocalData = getBaseNewScheduleLocalData;
55
- exports.newScheduleInitialState = {
56
- fixed_assets: (0, exports.getBaseNewScheduleLocalData)('fixed_assets'),
57
- prepaid_expenses: (0, exports.getBaseNewScheduleLocalData)('prepaid_expenses'),
58
- };
59
- exports.searchTransactionsInitialState = {
60
- searchResults: [],
61
- fetchState: 'Not-Started',
62
- error: undefined,
63
- };
64
43
  exports.initialState = {
65
- jeScheduleTransactionKeysByPeriodAndTab: {},
66
- jeScheduleAccruedKeysByPeriodAndTab: {},
67
- jeScheduleOneTimeAccrualKeysByPeriodAndTab: {},
68
- failedJeScheduleTransactionKeysByPeriodAndTab: {},
44
+ jeScheduleTransactionKeysByPeriod: {},
45
+ failedJeScheduleTransactionKeysByPeriod: {},
69
46
  postStatusById: {},
70
47
  ignoreStatusById: {},
71
48
  jeScheduleLocalDataById: {},
72
49
  uiState: {
73
- createdGroupCollapsed: false,
74
- pendingGroupCollapsed: false,
75
- scrollPosition: { scrollTop: 0, scrollLeft: undefined },
76
50
  searchString: '',
77
- selectedJETypeFilter: null,
78
- selectedPageTab: 'schedules',
51
+ scrollPosition: { scrollTop: 0, scrollLeft: undefined },
52
+ selectedMainTab: 'pending_review',
79
53
  sortKey: 'transactionDate',
80
54
  sortOrder: 'descending',
81
55
  totalCount: 0,
@@ -86,13 +60,6 @@ exports.initialState = {
86
60
  error: undefined,
87
61
  },
88
62
  accountSettings: exports.accountSettingsInitialState,
89
- newSchedule: {
90
- newScheduleState: exports.newScheduleInitialState,
91
- saveStatus: { fetchState: 'Not-Started', error: undefined },
92
- searchTransactions: exports.searchTransactionsInitialState,
93
- fetchState: 'Not-Started',
94
- error: undefined,
95
- },
96
63
  fetchState: 'Not-Started',
97
64
  error: undefined,
98
65
  hasValidState() {
@@ -137,12 +104,9 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
137
104
  },
138
105
  },
139
106
  fetchJeSchedulesSuccess(draft, action) {
140
- const { jeSchedules, selectedPeriod, selectedPageTab, failedJeSchedules, accruedJeSchedules, oneTimeAccruals, refreshViewInBackground, } = action.payload;
141
- const periodTabKey = (0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod));
107
+ const { jeSchedules, selectedPeriod, failedJeSchedules, refreshViewInBackground, } = action.payload;
142
108
  const jeScheduleTransactionKeys = jeSchedules.map((schedules) => (0, jeSchedulesPayload_1.getJEScheduleTransactionDetailKeyPayload)(schedules.base_transaction));
143
109
  const failedJeScheduleTransactionKeys = failedJeSchedules.map((schedules) => (0, jeSchedulesPayload_1.getJEScheduleTransactionDetailKeyPayload)(schedules.base_transaction));
144
- const jeScheduleAccruedKeys = accruedJeSchedules.map((schedule) => (0, jeSchedulesPayload_1.getJEScheduleKey)(schedule));
145
- const jeScheduleOneTimeAccrualKeys = oneTimeAccruals.map((accrual) => (0, jeScheduleHelper_1.generateJEOneTimeAccrualKey)(accrual._id));
146
110
  if (refreshViewInBackground === true &&
147
111
  draft.refreshStatus.fetchState === 'In-Progress') {
148
112
  draft.refreshStatus = { fetchState: 'Completed', error: undefined };
@@ -151,28 +115,19 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
151
115
  draft.fetchState = 'Completed';
152
116
  draft.error = undefined;
153
117
  }
154
- draft.jeScheduleTransactionKeysByPeriodAndTab[periodTabKey] =
155
- jeScheduleTransactionKeys;
156
- draft.jeScheduleAccruedKeysByPeriodAndTab[periodTabKey] =
157
- jeScheduleAccruedKeys;
158
- draft.jeScheduleOneTimeAccrualKeysByPeriodAndTab[periodTabKey] =
159
- jeScheduleOneTimeAccrualKeys;
160
- draft.failedJeScheduleTransactionKeysByPeriodAndTab[periodTabKey] =
161
- failedJeScheduleTransactionKeys;
118
+ draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = jeScheduleTransactionKeys;
119
+ draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = failedJeScheduleTransactionKeys;
162
120
  },
163
121
  fetchJeSchedulesFailure(draft, action) {
164
- const { status, selectedPeriod, selectedPageTab } = action.payload;
165
- const periodTabKey = (0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod));
122
+ const { status, selectedPeriod } = action.payload;
166
123
  if (draft.refreshStatus.fetchState === 'In-Progress') {
167
124
  draft.refreshStatus = { fetchState: 'Error', error: status };
168
125
  }
169
126
  else {
170
127
  draft.fetchState = 'Error';
171
128
  draft.error = status;
172
- draft.jeScheduleTransactionKeysByPeriodAndTab[periodTabKey] = [];
173
- draft.jeScheduleAccruedKeysByPeriodAndTab[periodTabKey] = [];
174
- draft.jeScheduleOneTimeAccrualKeysByPeriodAndTab[periodTabKey] = [];
175
129
  }
130
+ draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = [];
176
131
  },
177
132
  retryJeSchedule(draft, action) {
178
133
  const { scheduledJournalEntryID } = action.payload;
@@ -260,18 +215,17 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
260
215
  };
261
216
  },
262
217
  updateJeScheduleTransactionKeys: {
263
- prepare(jeScheduleKeys, selectedPeriod, selectedPageTab) {
218
+ prepare(jeScheduleKeys, selectedPeriod) {
264
219
  return {
265
220
  payload: {
266
221
  jeScheduleKeys: jeScheduleKeys,
267
222
  selectedPeriod: selectedPeriod,
268
- selectedPageTab: selectedPageTab,
269
223
  },
270
224
  };
271
225
  },
272
226
  reducer(draft, action) {
273
- const { selectedPeriod, selectedPageTab, jeScheduleKeys } = action.payload;
274
- draft.jeScheduleTransactionKeysByPeriodAndTab[(0, jeSchedulesViewState_1.getJESchedulePeriodTabKey)(selectedPageTab, (0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod))] = jeScheduleKeys;
227
+ const { selectedPeriod, jeScheduleKeys } = action.payload;
228
+ draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = jeScheduleKeys;
275
229
  },
276
230
  },
277
231
  removeJeScheduleTransactionKey: {
@@ -284,10 +238,12 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
284
238
  };
285
239
  },
286
240
  reducer(draft, action) {
287
- const { jeScheduleKey } = action.payload;
288
- // Dropped from every tab's slot, not just the visible one: once a schedule is ignored or
289
- // resolved it must not reappear when the user switches tabs and hits a cached list.
290
- removeKeyFromEveryTabSlot(draft.jeScheduleTransactionKeysByPeriodAndTab, jeScheduleKey);
241
+ const { selectedPeriod, jeScheduleKey } = action.payload;
242
+ const prevData = [
243
+ ...(draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] ?? []),
244
+ ];
245
+ const filteredKeys = prevData.filter((jeKey) => jeKey !== jeScheduleKey);
246
+ draft.jeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = filteredKeys;
291
247
  },
292
248
  },
293
249
  removeFailedJeScheduleTransactionKey: {
@@ -300,8 +256,12 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
300
256
  };
301
257
  },
302
258
  reducer(draft, action) {
303
- const { failedJeScheduleKey } = action.payload;
304
- removeKeyFromEveryTabSlot(draft.failedJeScheduleTransactionKeysByPeriodAndTab, failedJeScheduleKey);
259
+ const { selectedPeriod, failedJeScheduleKey } = action.payload;
260
+ const prevData = [
261
+ ...(draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] ?? []),
262
+ ];
263
+ const filteredKeys = prevData.filter((jeKey) => jeKey !== failedJeScheduleKey);
264
+ draft.failedJeScheduleTransactionKeysByPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)] = filteredKeys;
305
265
  },
306
266
  },
307
267
  initializeJeScheduleLocalData: {
@@ -413,91 +373,6 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
413
373
  clearJeAccountSettingsLocalData(draft) {
414
374
  draft.accountSettings.localData = exports.accountSettingsInitialState.localData;
415
375
  },
416
- initializeNewSchedule: {
417
- prepare({ scheduleType, }) {
418
- return { payload: { scheduleType } };
419
- },
420
- reducer() {
421
- // Purely an epic-trigger action — the epic fans out the account/class
422
- // list fetches plus resetNewScheduleLocalData.
423
- },
424
- },
425
- resetNewScheduleLocalData: {
426
- prepare({ scheduleType, }) {
427
- return { payload: { scheduleType } };
428
- },
429
- reducer(draft, action) {
430
- const { scheduleType } = action.payload;
431
- draft.newSchedule.newScheduleState[scheduleType] =
432
- (0, exports.getBaseNewScheduleLocalData)(scheduleType);
433
- },
434
- },
435
- updateNewScheduleLocalData(draft, action) {
436
- const { scheduleType, localData } = action.payload;
437
- draft.newSchedule.newScheduleState[scheduleType] = {
438
- ...draft.newSchedule.newScheduleState[scheduleType],
439
- ...localData,
440
- };
441
- },
442
- searchTransactionsForNewSchedule: {
443
- prepare({ query, scheduleType, }) {
444
- return { payload: { query, scheduleType } };
445
- },
446
- reducer(draft, action) {
447
- const trimmed = action.payload.query.trim();
448
- // Cleared or too-short query: no API (see epic) — reset immediately.
449
- if (trimmed.length < jeSchedulesViewState_1.MIN_NEW_SCHEDULE_SEARCH_LENGTH) {
450
- draft.newSchedule.searchTransactions = exports.searchTransactionsInitialState;
451
- return;
452
- }
453
- draft.newSchedule.searchTransactions = {
454
- ...draft.newSchedule.searchTransactions,
455
- searchString: action.payload.query,
456
- fetchState: 'In-Progress',
457
- };
458
- },
459
- },
460
- searchTransactionsForNewScheduleSuccess(draft, action) {
461
- draft.newSchedule.searchTransactions = {
462
- ...draft.newSchedule.searchTransactions,
463
- searchResults: action.payload.searchResults,
464
- fetchState: 'Completed',
465
- error: undefined,
466
- };
467
- },
468
- searchTransactionsForNewScheduleFailure(draft, action) {
469
- draft.newSchedule.searchTransactions = {
470
- ...draft.newSchedule.searchTransactions,
471
- fetchState: 'Error',
472
- error: action.payload.status,
473
- };
474
- },
475
- clearSearchTransactionsForNewSchedule(draft) {
476
- draft.newSchedule.searchTransactions = exports.searchTransactionsInitialState;
477
- },
478
- saveNewSchedule: {
479
- prepare({ scheduleType, }) {
480
- return { payload: { scheduleType } };
481
- },
482
- reducer(draft) {
483
- draft.newSchedule.saveStatus = {
484
- fetchState: 'In-Progress',
485
- error: undefined,
486
- };
487
- },
488
- },
489
- saveNewScheduleSuccess(draft) {
490
- draft.newSchedule.saveStatus = {
491
- fetchState: 'Completed',
492
- error: undefined,
493
- };
494
- },
495
- saveNewScheduleFailure(draft, action) {
496
- draft.newSchedule.saveStatus = {
497
- fetchState: 'Error',
498
- error: action.payload.status,
499
- };
500
- },
501
376
  updateJESchedulesUIState(draft, action) {
502
377
  if (action.payload.sortKey != null) {
503
378
  draft.uiState.sortKey = action.payload.sortKey;
@@ -511,21 +386,10 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
511
386
  if (action.payload.scrollPosition != null) {
512
387
  draft.uiState.scrollPosition = action.payload.scrollPosition;
513
388
  }
514
- if (action.payload.selectedPageTab != null) {
515
- draft.uiState.selectedPageTab = action.payload.selectedPageTab;
389
+ if (action.payload.selectedMainTab != null) {
390
+ draft.uiState.selectedMainTab = action.payload.selectedMainTab;
516
391
  }
517
392
  },
518
- updateJEScheduleTypeFilter(draft, action) {
519
- draft.uiState.selectedJETypeFilter = action.payload;
520
- },
521
- toggleJEPendingGroupCollapsed(draft) {
522
- draft.uiState.pendingGroupCollapsed =
523
- !draft.uiState.pendingGroupCollapsed;
524
- },
525
- toggleJECreatedGroupCollapsed(draft) {
526
- draft.uiState.createdGroupCollapsed =
527
- !draft.uiState.createdGroupCollapsed;
528
- },
529
393
  clearExpenseAutomationJESchedulesView(draft) {
530
394
  Object.assign(draft, exports.initialState);
531
395
  },
@@ -536,7 +400,7 @@ const expenseAutomationJESchedulesView = (0, toolkit_1.createSlice)({
536
400
  });
537
401
  },
538
402
  });
539
- _a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.clearSearchTransactionsForNewSchedule = _a.clearSearchTransactionsForNewSchedule, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.initializeNewSchedule = _a.initializeNewSchedule, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.resetNewScheduleLocalData = _a.resetNewScheduleLocalData, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.saveNewSchedule = _a.saveNewSchedule, exports.saveNewScheduleFailure = _a.saveNewScheduleFailure, exports.saveNewScheduleSuccess = _a.saveNewScheduleSuccess, exports.searchTransactionsForNewSchedule = _a.searchTransactionsForNewSchedule, exports.searchTransactionsForNewScheduleFailure = _a.searchTransactionsForNewScheduleFailure, exports.searchTransactionsForNewScheduleSuccess = _a.searchTransactionsForNewScheduleSuccess, exports.toggleJECreatedGroupCollapsed = _a.toggleJECreatedGroupCollapsed, exports.toggleJEPendingGroupCollapsed = _a.toggleJEPendingGroupCollapsed, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJESchedulesUIState = _a.updateJESchedulesUIState, exports.updateJEScheduleTypeFilter = _a.updateJEScheduleTypeFilter, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateNewScheduleLocalData = _a.updateNewScheduleLocalData, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
403
+ _a = expenseAutomationJESchedulesView.actions, exports.clearExpenseAutomationJESchedulesView = _a.clearExpenseAutomationJESchedulesView, exports.clearJeAccountSettingsLocalData = _a.clearJeAccountSettingsLocalData, exports.clearJeScheduleLocalData = _a.clearJeScheduleLocalData, exports.fetchAccountSettingsListForAccountTypes = _a.fetchAccountSettingsListForAccountTypes, exports.fetchJeSchedules = _a.fetchJeSchedules, exports.fetchJeSchedulesFailure = _a.fetchJeSchedulesFailure, exports.fetchJeSchedulesPage = _a.fetchJeSchedulesPage, exports.fetchJeSchedulesSuccess = _a.fetchJeSchedulesSuccess, exports.fetchRecommendationForAccountSettings = _a.fetchRecommendationForAccountSettings, exports.ignoreRecommendedJeSchedule = _a.ignoreRecommendedJeSchedule, exports.ignoreRecommendedJeScheduleFailure = _a.ignoreRecommendedJeScheduleFailure, exports.ignoreRecommendedJeScheduleSuccess = _a.ignoreRecommendedJeScheduleSuccess, exports.initializeAccountSettingsView = _a.initializeAccountSettingsView, exports.initializeJeScheduleLocalData = _a.initializeJeScheduleLocalData, exports.removeFailedJeScheduleTransactionKey = _a.removeFailedJeScheduleTransactionKey, exports.removeJeScheduleLocalDataById = _a.removeJeScheduleLocalDataById, exports.removeJeScheduleTransactionKey = _a.removeJeScheduleTransactionKey, exports.retryJeSchedule = _a.retryJeSchedule, exports.retryJeScheduleFailure = _a.retryJeScheduleFailure, exports.retryJeScheduleSuccess = _a.retryJeScheduleSuccess, exports.saveAccountSettings = _a.saveAccountSettings, exports.saveAccountSettingsFailure = _a.saveAccountSettingsFailure, exports.saveAccountSettingsLocalData = _a.saveAccountSettingsLocalData, exports.saveAccountSettingsSuccess = _a.saveAccountSettingsSuccess, exports.updateAccountSettingsListForAccountTypes = _a.updateAccountSettingsListForAccountTypes, exports.updateAccountSettingsListForAccountTypesFailure = _a.updateAccountSettingsListForAccountTypesFailure, exports.updateJESchedulesUIState = _a.updateJESchedulesUIState, exports.updateJeScheduleLocalDataById = _a.updateJeScheduleLocalDataById, exports.updateJeScheduleTransactionKeys = _a.updateJeScheduleTransactionKeys, exports.updateRecommendationForAccountSettings = _a.updateRecommendationForAccountSettings, exports.updateRecommendationForAccountSettingsFailure = _a.updateRecommendationForAccountSettingsFailure;
540
404
  exports.default = expenseAutomationJESchedulesView.reducer;
541
405
  const doUpdateRecommendationForAccountSettings = (draft, payload) => {
542
406
  const { prepaidExpensesRecommendations, fixedAssetsRecommendations, accruedExpensesRecommendations, } = (0, accountTypeRecommendationPayload_1.mapAccountTypeRecommendationPayloadToAccountRecommendationByType)(payload);
@@ -97,7 +97,7 @@ export declare const fetchMissingReceipts: import("@reduxjs/toolkit").ActionCrea
97
97
  transactionId: ID;
98
98
  }, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchSuccess">, confirmBulkUploadMatchFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
99
99
  error: ZeniAPIStatus;
100
- }, "expenseAutomationMissingReceiptsView/confirmBulkUploadMatchFailure">, setBulkUploadResultsTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"completed" | "unmatched", "expenseAutomationMissingReceiptsView/setBulkUploadResultsTab">, setBulkUploadCompletedSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"manual" | "all" | "ai_accountant", "expenseAutomationMissingReceiptsView/setBulkUploadCompletedSubTab">, setBulkUploadSortConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
100
+ }, "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<{
101
101
  sortKey: BulkUploadSortKey | undefined;
102
102
  sortOrder: SortOrder | undefined;
103
103
  }, "expenseAutomationMissingReceiptsView/setBulkUploadSortConfig">, clearBulkUpload: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationMissingReceiptsView/clearBulkUpload">, searchTransactionsForManualMatch: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[query: string, pageToken?: string | null | undefined], {