@zeniai/client-epic-state 5.1.61 → 5.1.62-betaRD2

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 (132) hide show
  1. package/lib/coreEpics.js +3 -2
  2. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  3. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +2 -0
  4. package/lib/entity/jeSchedules/jeSchedulesPayload.js +2 -0
  5. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +4 -0
  6. package/lib/entity/jeSchedules/jeSchedulesSelector.js +11 -1
  7. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +2 -0
  8. package/lib/entity/notificationRegistry/notificationRegistryPayload.d.ts +18 -0
  9. package/lib/entity/notificationRegistry/notificationRegistryPayload.js +28 -0
  10. package/lib/entity/notificationRegistry/notificationRegistryReducer.d.ts +10 -0
  11. package/lib/entity/notificationRegistry/notificationRegistryReducer.js +50 -0
  12. package/lib/entity/notificationRegistry/notificationRegistrySelector.d.ts +2 -0
  13. package/lib/entity/notificationRegistry/notificationRegistrySelector.js +10 -0
  14. package/lib/entity/notificationRegistry/notificationRegistryState.d.ts +32 -0
  15. package/lib/entity/notificationRegistry/notificationRegistryState.js +10 -0
  16. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  17. package/lib/entity/snackbar/snackbarTypes.js +3 -0
  18. package/lib/entity/tenant/clearAllEpic.d.ts +3 -1
  19. package/lib/entity/tenant/clearAllEpic.js +4 -0
  20. package/lib/entity/tenant/tenantReducer.d.ts +4 -1
  21. package/lib/entity/tenant/tenantReducer.js +8 -2
  22. package/lib/entity/tenant/tenantSelector.d.ts +1 -0
  23. package/lib/entity/tenant/tenantSelector.js +4 -0
  24. package/lib/entity/transaction/scheduleTransactionHelper.d.ts +15 -0
  25. package/lib/entity/transaction/scheduleTransactionHelper.js +43 -0
  26. package/lib/epic.d.ts +9 -1
  27. package/lib/epic.js +9 -1
  28. package/lib/esm/coreEpics.js +3 -2
  29. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +2 -0
  30. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +11 -1
  31. package/lib/esm/entity/notificationRegistry/notificationRegistryPayload.js +24 -0
  32. package/lib/esm/entity/notificationRegistry/notificationRegistryReducer.js +46 -0
  33. package/lib/esm/entity/notificationRegistry/notificationRegistrySelector.js +6 -0
  34. package/lib/esm/entity/notificationRegistry/notificationRegistryState.js +5 -0
  35. package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
  36. package/lib/esm/entity/tenant/clearAllEpic.js +4 -0
  37. package/lib/esm/entity/tenant/tenantReducer.js +7 -1
  38. package/lib/esm/entity/tenant/tenantSelector.js +3 -0
  39. package/lib/esm/entity/transaction/scheduleTransactionHelper.js +39 -0
  40. package/lib/esm/epic.js +9 -1
  41. package/lib/esm/index.js +14 -6
  42. package/lib/esm/reducer.js +6 -0
  43. package/lib/esm/view/companyView/companyViewReducer.js +68 -1
  44. package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +2 -1
  45. package/lib/esm/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.js +56 -0
  46. package/lib/esm/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.js +37 -0
  47. package/lib/esm/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.js +73 -0
  48. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +2 -1
  49. package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -1
  50. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +5 -0
  51. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +15 -2
  52. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +21 -0
  53. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +110 -0
  54. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +44 -0
  55. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +22 -0
  56. package/lib/esm/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +152 -0
  57. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +126 -6
  58. package/lib/esm/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +1 -0
  59. package/lib/esm/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +71 -0
  60. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +78 -11
  61. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +3 -6
  62. package/lib/esm/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.js +116 -0
  63. package/lib/esm/view/notificationPreferencesView/notificationPreferencesEndpoint.js +5 -0
  64. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewPayload.js +36 -0
  65. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewReducer.js +222 -0
  66. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewSelector.js +25 -0
  67. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewState.js +4 -0
  68. package/lib/esm/view/settingsView/epic/fetchNotificationSettingsEpic.js +34 -2
  69. package/lib/esm/view/settingsView/epic/saveNotificationSettingsEpic.js +2 -1
  70. package/lib/esm/view/settingsView/settingsViewHelpers.js +3 -2
  71. package/lib/index.d.ts +17 -8
  72. package/lib/index.js +85 -47
  73. package/lib/reducer.d.ts +6 -0
  74. package/lib/reducer.js +6 -0
  75. package/lib/view/common/recurringViewHelper.d.ts +2 -2
  76. package/lib/view/companyView/companyViewReducer.d.ts +9 -1
  77. package/lib/view/companyView/companyViewReducer.js +70 -3
  78. package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +2 -1
  79. package/lib/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.d.ts +10 -0
  80. package/lib/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.js +60 -0
  81. package/lib/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.d.ts +11 -0
  82. package/lib/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.js +41 -0
  83. package/lib/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.d.ts +13 -0
  84. package/lib/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.js +77 -0
  85. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +2 -1
  86. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -1
  87. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +2 -0
  88. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +5 -0
  89. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +14 -1
  90. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.d.ts +8 -0
  91. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/initializeNewScheduleEpic.js +25 -0
  92. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.d.ts +45 -0
  93. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/saveNewScheduleEpic.js +114 -0
  94. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.d.ts +8 -0
  95. package/lib/view/expenseAutomationView/epics/jeSchedule/newSchedule/searchTransactionsForNewScheduleEpic.js +48 -0
  96. package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.d.ts +6 -0
  97. package/lib/view/expenseAutomationView/epics/jeSchedule/switchJESchedulesTabEpic.js +26 -0
  98. package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.d.ts +43 -0
  99. package/lib/view/expenseAutomationView/helpers/newScheduleLocalDataHelper.js +158 -0
  100. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  101. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +1 -0
  102. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +36 -8
  103. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +128 -7
  104. package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.d.ts +25 -0
  105. package/lib/view/expenseAutomationView/selectorTypes/jeNewScheduleViewSelectorTypes.js +2 -0
  106. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +29 -4
  107. package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.d.ts +10 -0
  108. package/lib/view/expenseAutomationView/selectors/jeNewScheduleViewSelector.js +76 -0
  109. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +1 -0
  110. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +80 -11
  111. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +53 -6
  112. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +5 -8
  113. package/lib/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.d.ts +40 -0
  114. package/lib/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.js +120 -0
  115. package/lib/view/notificationPreferencesView/notificationPreferencesEndpoint.d.ts +2 -0
  116. package/lib/view/notificationPreferencesView/notificationPreferencesEndpoint.js +9 -0
  117. package/lib/view/notificationPreferencesView/notificationPreferencesViewPayload.d.ts +7 -0
  118. package/lib/view/notificationPreferencesView/notificationPreferencesViewPayload.js +41 -0
  119. package/lib/view/notificationPreferencesView/notificationPreferencesViewReducer.d.ts +30 -0
  120. package/lib/view/notificationPreferencesView/notificationPreferencesViewReducer.js +226 -0
  121. package/lib/view/notificationPreferencesView/notificationPreferencesViewSelector.d.ts +7 -0
  122. package/lib/view/notificationPreferencesView/notificationPreferencesViewSelector.js +32 -0
  123. package/lib/view/notificationPreferencesView/notificationPreferencesViewState.d.ts +14 -0
  124. package/lib/view/notificationPreferencesView/notificationPreferencesViewState.js +8 -0
  125. package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.d.ts +9 -1
  126. package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.js +34 -2
  127. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.js +2 -1
  128. package/lib/view/settingsView/settingsViewHelpers.d.ts +1 -1
  129. package/lib/view/settingsView/settingsViewHelpers.js +3 -2
  130. package/lib/view/settingsView/settingsViewPayload.d.ts +4 -0
  131. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,45 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { updateJESchedules, updateJESchedulesDetails } from '../../../../../entity/jeSchedules/jeSchedulesReducer';
3
+ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
4
+ import { RootState } from '../../../../../reducer';
5
+ import { ZeniAPI } from '../../../../../zeniAPI';
6
+ import { resetNewScheduleLocalData, saveNewSchedule, saveNewScheduleFailure, saveNewScheduleSuccess } from '../../../reducers/jeSchedulesViewReducer';
7
+ export type ActionType = ReturnType<typeof saveNewSchedule> | ReturnType<typeof saveNewScheduleSuccess> | ReturnType<typeof saveNewScheduleFailure> | ReturnType<typeof updateJESchedules> | ReturnType<typeof updateJESchedulesDetails> | ReturnType<typeof resetNewScheduleLocalData> | ReturnType<typeof openSnackbar>;
8
+ export declare const saveNewScheduleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
9
+ payload: {
10
+ messageSection: import("../../../../..").SnackbarMessageSections;
11
+ messageText: import("../../../../..").SnackbarMessageSectionTexts;
12
+ type: import("../../../../..").SnackbarMessageType;
13
+ showStatusIcon?: boolean;
14
+ variables?: {
15
+ variableName: string;
16
+ variableValue: string;
17
+ }[];
18
+ };
19
+ type: "snackbar/openSnackbar";
20
+ } | {
21
+ payload: {
22
+ jeSchedulesTransactionsPayload: import("../../../../../entity/jeSchedules/jeSchedulesPayload").JEScheduledTransactionPayload[];
23
+ };
24
+ type: "jeSchedules/updateJESchedules";
25
+ } | {
26
+ payload: {
27
+ jeSchedulesPayload: import("../../../../../entity/jeSchedules/jeSchedulesPayload").JEScheduledTransactionPayload[];
28
+ scheduledJEntriesPayload: import("../../../../../entity/jeSchedules/jeSchedulesPayload").ScheduledJournalEntryPayload[] | undefined;
29
+ updateType: import("../../../../..").UpdateType;
30
+ };
31
+ type: "jeSchedules/updateJESchedulesDetails";
32
+ } | {
33
+ payload: {
34
+ scheduleType: "prepaid_expenses" | "fixed_assets";
35
+ };
36
+ type: "expenseAutomationJESchedulesView/resetNewScheduleLocalData";
37
+ } | {
38
+ payload: undefined;
39
+ type: "expenseAutomationJESchedulesView/saveNewScheduleSuccess";
40
+ } | {
41
+ payload: {
42
+ status: import("../../../../../responsePayload").ZeniAPIStatus;
43
+ };
44
+ type: "expenseAutomationJESchedulesView/saveNewScheduleFailure";
45
+ }>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.saveNewScheduleEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const jeSchedulesReducer_1 = require("../../../../../entity/jeSchedules/jeSchedulesReducer");
7
+ const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
8
+ const transactionSelector_1 = require("../../../../../entity/transaction/transactionSelector");
9
+ const responsePayload_1 = require("../../../../../responsePayload");
10
+ const newScheduleLocalDataHelper_1 = require("../../../helpers/newScheduleLocalDataHelper");
11
+ const jeSchedulesViewReducer_1 = require("../../../reducers/jeSchedulesViewReducer");
12
+ const FAILURE_REASON_MESSAGES = {
13
+ multi_line_not_supported: 'This transaction has multiple lines and cannot be scheduled yet.',
14
+ missing_third_party_id: 'This transaction is missing a QuickBooks reference and cannot be scheduled.',
15
+ missing_vendor: 'Select a vendor before saving this schedule.',
16
+ };
17
+ const saveNewScheduleEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.saveNewSchedule.match), (0, operators_1.mergeMap)((action) => {
18
+ const { scheduleType } = action.payload;
19
+ const state = state$.value;
20
+ const localData = state.expenseAutomationJESchedulesViewState.newSchedule
21
+ .newScheduleState[scheduleType];
22
+ const transactionId = localData.selectedBaseTransactionId?.id;
23
+ const transaction = transactionId != null
24
+ ? (0, transactionSelector_1.getSupportedTransactionById)(state.transactionState, transactionId)
25
+ : undefined;
26
+ if (transaction == null) {
27
+ return (0, rxjs_1.from)([
28
+ (0, jeSchedulesViewReducer_1.saveNewScheduleFailure)({
29
+ status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'No base transaction selected for this schedule.'),
30
+ }),
31
+ (0, snackbarReducer_1.openSnackbar)({
32
+ messageSection: 'create_schedule',
33
+ messageText: 'failed',
34
+ type: 'error',
35
+ variables: [
36
+ {
37
+ variableName: '_api-error_',
38
+ variableValue: 'No base transaction selected.',
39
+ },
40
+ ],
41
+ }),
42
+ ]);
43
+ }
44
+ const result = (0, newScheduleLocalDataHelper_1.prepareNewSchedulePayload)(transaction, localData, scheduleType);
45
+ if (!result.ok) {
46
+ const message = FAILURE_REASON_MESSAGES[result.reason];
47
+ return (0, rxjs_1.from)([
48
+ (0, jeSchedulesViewReducer_1.saveNewScheduleFailure)({
49
+ status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', message),
50
+ }),
51
+ (0, snackbarReducer_1.openSnackbar)({
52
+ messageSection: 'create_schedule',
53
+ messageText: 'failed',
54
+ type: 'error',
55
+ variables: [{ variableName: '_api-error_', variableValue: message }],
56
+ }),
57
+ ]);
58
+ }
59
+ const vendorName = localData.selectedVendor?.name ?? transaction.vendorName ?? '';
60
+ const queryParam = {
61
+ je_schedule_type: scheduleType,
62
+ };
63
+ const payload = { ...result.payload };
64
+ return zeniAPI
65
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules?query=${encodeURIComponent(JSON.stringify(queryParam))}`, payload)
66
+ .pipe((0, operators_1.mergeMap)((response) => {
67
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
68
+ return (0, rxjs_1.from)([
69
+ (0, jeSchedulesReducer_1.updateJESchedules)(response.data.je_schedules),
70
+ (0, jeSchedulesReducer_1.updateJESchedulesDetails)(response.data.je_schedules, response.data.scheduled_journal_entries),
71
+ (0, jeSchedulesViewReducer_1.resetNewScheduleLocalData)({ scheduleType }),
72
+ (0, jeSchedulesViewReducer_1.saveNewScheduleSuccess)(),
73
+ (0, snackbarReducer_1.openSnackbar)({
74
+ messageSection: 'create_schedule',
75
+ messageText: 'success',
76
+ type: 'success',
77
+ variables: [
78
+ { variableName: '_vendor_name_', variableValue: vendorName },
79
+ ],
80
+ }),
81
+ ]);
82
+ }
83
+ return (0, rxjs_1.from)([
84
+ (0, jeSchedulesViewReducer_1.saveNewScheduleFailure)({ status: response.status }),
85
+ (0, snackbarReducer_1.openSnackbar)({
86
+ messageSection: 'create_schedule',
87
+ messageText: 'failed',
88
+ type: 'error',
89
+ variables: [
90
+ {
91
+ variableName: '_api-error_',
92
+ variableValue: response.status.message,
93
+ },
94
+ ],
95
+ }),
96
+ ]);
97
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.from)([
98
+ (0, snackbarReducer_1.openSnackbar)({
99
+ messageSection: 'create_schedule',
100
+ messageText: 'failed',
101
+ type: 'error',
102
+ variables: [
103
+ {
104
+ variableName: '_api-error_',
105
+ variableValue: JSON.stringify(error),
106
+ },
107
+ ],
108
+ }),
109
+ (0, jeSchedulesViewReducer_1.saveNewScheduleFailure)({
110
+ status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', `Save New Schedule REST API call errored out ${JSON.stringify(error)}`),
111
+ }),
112
+ ])));
113
+ }));
114
+ exports.saveNewScheduleEpic = saveNewScheduleEpic;
@@ -0,0 +1,8 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateTransactions } from '../../../../../entity/transaction/transactionReducer';
4
+ import { RootState } from '../../../../../reducer';
5
+ import { ZeniAPI } from '../../../../../zeniAPI';
6
+ import { searchTransactionsForNewSchedule, searchTransactionsForNewScheduleFailure, searchTransactionsForNewScheduleSuccess } from '../../../reducers/jeSchedulesViewReducer';
7
+ export type ActionType = ReturnType<typeof searchTransactionsForNewSchedule> | ReturnType<typeof searchTransactionsForNewScheduleSuccess> | ReturnType<typeof searchTransactionsForNewScheduleFailure> | ReturnType<typeof updateTransactions>;
8
+ export declare const searchTransactionsForNewScheduleEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchTransactionsForNewScheduleEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const transactionReducer_1 = require("../../../../../entity/transaction/transactionReducer");
7
+ const responsePayload_1 = require("../../../../../responsePayload");
8
+ const jeSchedulesViewReducer_1 = require("../../../reducers/jeSchedulesViewReducer");
9
+ const jeSchedulesViewState_1 = require("../../../types/jeSchedulesViewState");
10
+ /** Dropdown-sized result set — no pagination for Base Transaction search. */
11
+ const NEW_SCHEDULE_SEARCH_PAGE_SIZE = 10;
12
+ const searchTransactionsForNewScheduleEpic = (actions$, _state$, zeniAPI) => {
13
+ const searchActions$ = actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.searchTransactionsForNewSchedule.match));
14
+ /** No API for empty or 1-char queries; immediate merge so switchMap cancels any in-flight HTTP. */
15
+ const newSearchTooShortOrClear$ = searchActions$.pipe((0, operators_1.filter)((action) => action.payload.query.trim().length < jeSchedulesViewState_1.MIN_NEW_SCHEDULE_SEARCH_LENGTH));
16
+ const newSearchDebounced$ = searchActions$.pipe((0, operators_1.filter)((action) => action.payload.query.trim().length >= jeSchedulesViewState_1.MIN_NEW_SCHEDULE_SEARCH_LENGTH), (0, operators_1.debounceTime)(300));
17
+ return (0, rxjs_1.merge)(newSearchTooShortOrClear$, newSearchDebounced$).pipe((0, operators_1.switchMap)((action) => {
18
+ const query = action.payload.query.trim();
19
+ if (query.length < jeSchedulesViewState_1.MIN_NEW_SCHEDULE_SEARCH_LENGTH) {
20
+ return rxjs_1.EMPTY;
21
+ }
22
+ const queryParam = {
23
+ page_size: NEW_SCHEDULE_SEARCH_PAGE_SIZE,
24
+ search_text: query,
25
+ };
26
+ return zeniAPI
27
+ .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/schedules/base_transaction_search?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
28
+ .pipe((0, operators_1.mergeMap)((response) => {
29
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
30
+ const { transactions } = response.data;
31
+ const actionsOut = [
32
+ (0, transactionReducer_1.updateTransactions)(transactions, (value) => value.transaction_id, 'merge'),
33
+ (0, jeSchedulesViewReducer_1.searchTransactionsForNewScheduleSuccess)({
34
+ searchResults: transactions.map((transaction) => transaction.transaction_id),
35
+ }),
36
+ ];
37
+ return (0, rxjs_1.from)(actionsOut);
38
+ }
39
+ return (0, rxjs_1.of)((0, jeSchedulesViewReducer_1.searchTransactionsForNewScheduleFailure)({
40
+ status: response.status,
41
+ }));
42
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, jeSchedulesViewReducer_1.searchTransactionsForNewScheduleFailure)({
43
+ status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Search transactions for new schedule errored: ' +
44
+ JSON.stringify(error)),
45
+ }))));
46
+ }));
47
+ };
48
+ exports.searchTransactionsForNewScheduleEpic = searchTransactionsForNewScheduleEpic;
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../../reducer';
4
+ import { fetchJeSchedulesPage, updateJESchedulesUIState } from '../../reducers/jeSchedulesViewReducer';
5
+ export type ActionType = ReturnType<typeof fetchJeSchedulesPage> | ReturnType<typeof updateJESchedulesUIState>;
6
+ export declare const switchJESchedulesTabEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.switchJESchedulesTabEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
7
+ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
8
+ const jeSchedulesViewReducer_1 = require("../../reducers/jeSchedulesViewReducer");
9
+ const switchJESchedulesTabEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(jeSchedulesViewReducer_1.updateJESchedulesUIState.match), (0, operators_1.filter)((action) => action.payload.selectedPageTab != null), (0, operators_1.mergeMap)(() => {
10
+ const state = state$.value;
11
+ const { fetchState, refreshStatus } = state.expenseAutomationJESchedulesViewState;
12
+ if (fetchState === 'In-Progress' ||
13
+ refreshStatus.fetchState === 'In-Progress') {
14
+ return rxjs_1.EMPTY;
15
+ }
16
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
17
+ const selectedPeriod = state.expenseAutomationViewState.selectedPeriodByTenantId[currentTenant.tenantId];
18
+ const period = (0, timePeriod_1.convertToPeriod)(selectedPeriod);
19
+ const timePeriodStart = (0, timePeriod_1.toAbsoluteDay)(period.start);
20
+ const timePeriodEnd = (0, timePeriod_1.toAbsoluteDay)(period.end);
21
+ if (timePeriodStart == null || timePeriodEnd == null) {
22
+ return rxjs_1.EMPTY;
23
+ }
24
+ return (0, rxjs_1.of)((0, jeSchedulesViewReducer_1.fetchJeSchedulesPage)({ start: timePeriodStart, end: timePeriodEnd }, true));
25
+ }));
26
+ exports.switchJESchedulesTabEpic = switchJESchedulesTabEpic;
@@ -0,0 +1,43 @@
1
+ import { Amount } from '../../../commonStateTypes/amount';
2
+ import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
3
+ import { SupportedTransaction } from '../../../entity/transaction/transactionState';
4
+ import { JESchedulePayload, SaveJESchedulePayload } from '../../scheduleView/scheduleDetailView/scheduleDetailPayload';
5
+ import { NewJeDetailLocalData, NewScheduleLocalData, NewScheduleLocalDataFixedAssets } from '../types/jeSchedulesViewState';
6
+ /**
7
+ * Computes the month-by-month JE schedule breakdown for a brand-new schedule
8
+ * (no linked transaction yet) — replicates createNewSchedulesHelper's math
9
+ * (scheduleDetailLocalDataHelper.ts) exactly: lump-sum total split evenly
10
+ * across months with the rounding remainder absorbed by the last month, and a
11
+ * running balance that decrements each month and is forced to exactly 0 on
12
+ * the last row.
13
+ */
14
+ export declare const computeNewScheduleJeDetails: (localData: NewScheduleLocalData | NewScheduleLocalDataFixedAssets, totalAmount: Amount, vendorName: string) => NewJeDetailLocalData[];
15
+ /**
16
+ * Whether a Base Transaction search result can be selected for a new
17
+ * schedule this round — restricted to single-line transactions since the
18
+ * search/list endpoint's `lines` may not reflect the transaction's full line
19
+ * set, and there is no line-picker UI yet.
20
+ */
21
+ export declare const isSupportedTransactionSelectableForNewSchedule: (transaction: SupportedTransaction) => boolean;
22
+ export interface NewSchedulePayload {
23
+ je_schedules: JESchedulePayload[];
24
+ scheduled_journal_entries: SaveJESchedulePayload[];
25
+ }
26
+ export type PrepareNewSchedulePayloadFailureReason = 'missing_third_party_id' | 'missing_vendor' | 'multi_line_not_supported';
27
+ export type PrepareNewSchedulePayloadResult = {
28
+ ok: true;
29
+ payload: NewSchedulePayload;
30
+ } | {
31
+ ok: false;
32
+ reason: PrepareNewSchedulePayloadFailureReason;
33
+ };
34
+ /**
35
+ * Builds a savable schedule payload directly from a Base Transaction search
36
+ * result and the New Schedule form's local data — bypassing the legacy
37
+ * getJEScheduledTransactionByJEScheduleTransactionKey selector entirely,
38
+ * since that selector throws unless the entity has already round-tripped
39
+ * through a real GET /1.0/schedules/:id. A brand-new schedule has no such
40
+ * history, so this reads only from data already in hand (the selected
41
+ * transaction/line plus what the user filled into the form).
42
+ */
43
+ export declare const prepareNewSchedulePayload: (transaction: SupportedTransaction, localData: NewScheduleLocalData | NewScheduleLocalDataFixedAssets, scheduleType: ScheduleTypes) => PrepareNewSchedulePayloadResult;
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareNewSchedulePayload = exports.isSupportedTransactionSelectableForNewSchedule = exports.computeNewScheduleJeDetails = void 0;
4
+ const amount_1 = require("../../../commonStateTypes/amount");
5
+ const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
6
+ const formatZeniDateFY_2 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
7
+ const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
8
+ const scheduleTransactionHelper_1 = require("../../../entity/transaction/scheduleTransactionHelper");
9
+ const scheduleDetailLocalDataHelper_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper");
10
+ const scheduleDetailPayload_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailPayload");
11
+ const getNewScheduleMemo = (vendorName, schedulePostingDate, currentPeriod, totalPeriod, assetId) => {
12
+ const addAsset = assetId != null && assetId !== '' ? ` - ${assetId}` : '';
13
+ return `${vendorName} - ${schedulePostingDate.format(formatZeniDateFY_2.MONTH_YEAR_FORMAT)} (${currentPeriod} of ${totalPeriod})${addAsset}`;
14
+ };
15
+ /**
16
+ * Computes the month-by-month JE schedule breakdown for a brand-new schedule
17
+ * (no linked transaction yet) — replicates createNewSchedulesHelper's math
18
+ * (scheduleDetailLocalDataHelper.ts) exactly: lump-sum total split evenly
19
+ * across months with the rounding remainder absorbed by the last month, and a
20
+ * running balance that decrements each month and is forced to exactly 0 on
21
+ * the last row.
22
+ */
23
+ const computeNewScheduleJeDetails = (localData, totalAmount, vendorName) => {
24
+ const period = localData.selectedMonths;
25
+ const startingMonth = localData.selectedDate;
26
+ if (startingMonth == null || period == null) {
27
+ return [];
28
+ }
29
+ const assetId = 'assetId' in localData ? localData.assetId : undefined;
30
+ const averageAmount = Math.abs(Math.round((totalAmount.amount / period) * 100) / 100);
31
+ const lastMonthAmount = Math.abs(Math.round((Math.abs(totalAmount.amount) - averageAmount * (period - 1)) * 100) / 100);
32
+ let runningBalance = Math.abs(totalAmount.amount);
33
+ const negativeNumbers = totalAmount.amount < 0 || runningBalance < 0;
34
+ const newJeDetails = [];
35
+ for (let index = 0; index < period; index++) {
36
+ if (runningBalance > averageAmount) {
37
+ runningBalance = Math.round((runningBalance - averageAmount) * 100) / 100;
38
+ }
39
+ else {
40
+ runningBalance = 0;
41
+ }
42
+ const amount = index === period - 1 ? lastMonthAmount : averageAmount;
43
+ runningBalance = index === period - 1 ? 0 : runningBalance;
44
+ const schedulePostingDate = startingMonth.add(index, 'month');
45
+ const { postingDate, postingStatus } = (0, scheduleDetailLocalDataHelper_1.getPostingDateAndStatusForIndex)(schedulePostingDate.month(), schedulePostingDate.year(), localData.lastDayOfMonth === true
46
+ ? undefined
47
+ : localData.selectedDayOfMonth);
48
+ newJeDetails.push({
49
+ postingDate,
50
+ amount: (0, amount_1.toAmount)(negativeNumbers ? -amount : amount, totalAmount.currencyCode, totalAmount.currencySymbol),
51
+ runningBalance: (0, amount_1.toAmount)(negativeNumbers ? -runningBalance : runningBalance, totalAmount.currencyCode, totalAmount.currencySymbol),
52
+ postingStatus,
53
+ memo: getNewScheduleMemo(vendorName, schedulePostingDate, index + 1, period, assetId),
54
+ jeLink: { type: 'unknown' },
55
+ });
56
+ }
57
+ return newJeDetails;
58
+ };
59
+ exports.computeNewScheduleJeDetails = computeNewScheduleJeDetails;
60
+ /**
61
+ * Whether a Base Transaction search result can be selected for a new
62
+ * schedule this round — restricted to single-line transactions since the
63
+ * search/list endpoint's `lines` may not reflect the transaction's full line
64
+ * set, and there is no line-picker UI yet.
65
+ */
66
+ const isSupportedTransactionSelectableForNewSchedule = (transaction) => transaction.totalLinesCount === 1 && transaction.lines?.length === 1;
67
+ exports.isSupportedTransactionSelectableForNewSchedule = isSupportedTransactionSelectableForNewSchedule;
68
+ const mapNewJeDetailsToScheduledJournalEntryPayload = (jeScheduleDetails) => jeScheduleDetails.map((journalEntry) => ({
69
+ status: {
70
+ code: journalEntry.postingStatus,
71
+ label: journalEntry.postingStatus,
72
+ },
73
+ transaction_memo: journalEntry.memo,
74
+ third_party_id: journalEntry.jeLink.thirdPartyTransactionId ?? null,
75
+ expected_post_date: journalEntry.postingDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
76
+ amount: journalEntry.amount.amount,
77
+ balance: journalEntry.runningBalance.amount,
78
+ // Brand-new schedule — there is no prior scheduled-journal-entry history
79
+ // to cross-reference (unlike the legacy edit flow's equivalent mapper).
80
+ scheduled_journal_entry_id: null,
81
+ actual_post_date: null,
82
+ is_platform_generated: null,
83
+ je_schedule_id: null,
84
+ update_time: null,
85
+ create_time: null,
86
+ }));
87
+ /**
88
+ * Builds a savable schedule payload directly from a Base Transaction search
89
+ * result and the New Schedule form's local data — bypassing the legacy
90
+ * getJEScheduledTransactionByJEScheduleTransactionKey selector entirely,
91
+ * since that selector throws unless the entity has already round-tripped
92
+ * through a real GET /1.0/schedules/:id. A brand-new schedule has no such
93
+ * history, so this reads only from data already in hand (the selected
94
+ * transaction/line plus what the user filled into the form).
95
+ */
96
+ const prepareNewSchedulePayload = (transaction, localData, scheduleType) => {
97
+ const [firstLine] = transaction.lines ?? [];
98
+ if (!(0, exports.isSupportedTransactionSelectableForNewSchedule)(transaction) ||
99
+ firstLine == null) {
100
+ return { ok: false, reason: 'multi_line_not_supported' };
101
+ }
102
+ const scheduleTransaction = (0, scheduleTransactionHelper_1.mapSupportedTransactionLineToScheduleTransaction)(transaction, firstLine.id);
103
+ if (scheduleTransaction == null) {
104
+ return { ok: false, reason: 'missing_third_party_id' };
105
+ }
106
+ const vendorId = localData.selectedVendor?.id ?? transaction.vendorId ?? '';
107
+ const vendorName = localData.selectedVendor?.name ?? transaction.vendorName ?? '';
108
+ if (vendorId === '' || vendorName === '') {
109
+ return { ok: false, reason: 'missing_vendor' };
110
+ }
111
+ const vendor = {
112
+ vendor_id: vendorId,
113
+ vendor_name: vendorName,
114
+ };
115
+ const jeScheduleDetails = (0, exports.computeNewScheduleJeDetails)(localData, scheduleTransaction.amount, vendorName);
116
+ const postingDate = localData.selectedDayOfMonth ??
117
+ (localData.lastDayOfMonth === true ? timePeriod_1.LAST_SCHEDULE_DAY_OF_MONTH : null);
118
+ const firstJEScheduleDate = jeScheduleDetails.length > 0
119
+ ? jeScheduleDetails[0].postingDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)
120
+ : null;
121
+ const lastJEScheduleDate = jeScheduleDetails.length > 0
122
+ ? jeScheduleDetails[jeScheduleDetails.length - 1].postingDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)
123
+ : null;
124
+ const isFixedAssets = scheduleType === 'fixed_assets';
125
+ const assetId = 'assetId' in localData ? localData.assetId : undefined;
126
+ const selectedAccumulatedDepreciationCategory = 'selectedAccumulatedDepreciationCategory' in localData
127
+ ? localData.selectedAccumulatedDepreciationCategory
128
+ : undefined;
129
+ const status = { code: 'new', label: 'New' };
130
+ const jeSchedulePayload = {
131
+ status,
132
+ vendor,
133
+ currency_code: scheduleTransaction.currency.currencyCode,
134
+ currency_symbol: scheduleTransaction.currency.currencySymbol,
135
+ period: localData.selectedMonths ?? null,
136
+ je_schedule_type: scheduleType,
137
+ posting_date: postingDate,
138
+ balance: scheduleTransaction.amount.amount,
139
+ start_date: firstJEScheduleDate,
140
+ end_date: lastJEScheduleDate,
141
+ je_credit_accounting_class_id: scheduleTransaction.classBase?.classId ?? null,
142
+ je_credit_account_id: isFixedAssets
143
+ ? (selectedAccumulatedDepreciationCategory ?? null)
144
+ : scheduleTransaction.account.accountId,
145
+ je_debit_account_id: localData.selectedAccount ?? null,
146
+ je_debit_accounting_class_id: localData.selectedClass ?? null,
147
+ other_attributes: assetId != null ? { asset_id: assetId } : {},
148
+ base_transaction: (0, scheduleDetailPayload_1.mapScheduleTransactionToBaseScheduleTransactionPayload)(scheduleTransaction),
149
+ };
150
+ return {
151
+ ok: true,
152
+ payload: {
153
+ je_schedules: [jeSchedulePayload],
154
+ scheduled_journal_entries: mapNewJeDetailsToScheduledJournalEntryPayload(jeScheduleDetails),
155
+ },
156
+ };
157
+ };
158
+ exports.prepareNewSchedulePayload = prepareNewSchedulePayload;
@@ -39,7 +39,7 @@ export declare const getLineItemsByTransactionsIdsFromResponse: (transactions: S
39
39
  export declare const getLineItemsByTransactionIdsFromLocalData: (transactionLocalData: TransactionReviewLocalDataSelectorView[], selectedTab: TransactionsTab) => Record<ID, string[]>;
40
40
  export declare const mergeTabSpecificLineItems: (currentTabSpecificLineItems: TabSpecificLineItems, selectedTab: TransactionsTab, newLineItems: TabSpecificLineItems) => TabSpecificLineItems;
41
41
  export declare const getSnackbarMessageForTransactionReview: (updatedCount: number, failedCount: number, categorizedCount: number) => {
42
- 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_approval_reorder" | "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_approval_reorder" | "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" | "card_policy_created" | "card_policy_updated" | "card_policy_deleted" | "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" | "snooze_task" | "unsnooze_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" | "receipt_match" | "receipts_upload" | "receipts_bulk_match" | "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" | "auto_transfer_rule_create" | "auto_transfer_rule_update" | "auto_transfer_rule_delete" | "auto_transfer_rule_pause" | "auto_transfer_rule_resume" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "create_transfer_entry" | "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" | "accounting_classes_enabled_update" | "capitalization_threshold_update" | "account_excluded_from_reconciliation" | "account_included_in_reconciliation" | "statement_parsing_in_progress" | "statement_parsing_complete" | "ai_accountant_trigger_job" | "oauth_consent_approve" | "oauth_consent_invalid_request" | "credit_agent_update_profile" | "credit_agent_save_macro" | "credit_agent_schedule_cron" | "create_sub_task" | "qbo_connection_already_linked" | "qbo_connection_failed";
42
+ 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_approval_reorder" | "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_approval_reorder" | "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" | "card_policy_created" | "card_policy_updated" | "card_policy_deleted" | "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" | "snooze_task" | "unsnooze_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" | "receipt_match" | "receipts_upload" | "receipts_bulk_match" | "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" | "auto_transfer_rule_create" | "auto_transfer_rule_update" | "auto_transfer_rule_delete" | "auto_transfer_rule_pause" | "auto_transfer_rule_resume" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "create_transfer_entry" | "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" | "accounting_classes_enabled_update" | "accounting_projects_enabled_update" | "accounting_projects_qbo_not_enabled" | "capitalization_threshold_update" | "account_excluded_from_reconciliation" | "account_included_in_reconciliation" | "statement_parsing_in_progress" | "statement_parsing_complete" | "ai_accountant_trigger_job" | "oauth_consent_approve" | "oauth_consent_invalid_request" | "credit_agent_update_profile" | "credit_agent_save_macro" | "credit_agent_schedule_cron" | "create_sub_task" | "qbo_connection_already_linked" | "qbo_connection_failed" | "accounting_projects_qbo_reconnect_failed";
43
43
  messageText: "notification" | "failed" | "success";
44
44
  type: "error" | "success" | "info";
45
45
  variables: {
@@ -8,6 +8,7 @@ import { JEScheduleLocalData } from '../types/jeSchedulesViewState';
8
8
  export interface ExpenseAutomationJESchedulesQueryPayload {
9
9
  end_date: string;
10
10
  start_date: string;
11
+ close_period_start_date?: string;
11
12
  }
12
13
  interface ExpenseAutomationJESchedulesPayload {
13
14
  failed_je_postings: {
@@ -2,13 +2,16 @@ import { ID } from '../../../commonStateTypes/common';
2
2
  import { MonthYearPeriod, TimePeriod } from '../../../commonStateTypes/timePeriod';
3
3
  import { AccountMetadataPayload } from '../../../entity/account/accountPayload';
4
4
  import { JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
5
- import { JEScheduleTransactionKey } from '../../../entity/jeSchedules/jeSchedulesTypes';
5
+ import { JEScheduleTransactionKey, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
6
6
  import { ZeniAPIStatus } from '../../../responsePayload';
7
7
  import { AccountTypeRecommendationPayload } from '../../accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload';
8
- import { AccountSettingsLocalData, AccountSettingsState, JEScheduleLocalData, JESchedulesViewState, JESchedulesViewUIState } from '../types/jeSchedulesViewState';
8
+ import { AccountSettingsLocalData, AccountSettingsState, JEScheduleLocalData, JESchedulesViewState, JESchedulesViewUIState, NewScheduleLocalData, NewScheduleLocalDataFixedAssets, SearchTransactionsState } 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;
10
13
  export declare const initialState: JESchedulesViewState;
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], {
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], {
12
15
  period: TimePeriod;
13
16
  refreshViewInBackground: any;
14
17
  }, "expenseAutomationJESchedulesView/fetchJeSchedules", never, never>, fetchJeSchedulesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -32,7 +35,11 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
32
35
  jeScheduleTransactionKey: `${string}_bill_${string}` | `${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_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}`;
33
36
  }, "expenseAutomationJESchedulesView/ignoreRecommendedJeScheduleSuccess", never, never>, initializeAccountSettingsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/initializeAccountSettingsView">, initializeJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeSchedules: JEScheduledTransactionPayload[]], {
34
37
  jeScheduleTransactionKeys: (`${string}_bill_${string}` | `${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_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}`)[];
35
- }, "expenseAutomationJESchedulesView/initializeJeScheduleLocalData", never, never>, removeFailedJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedJeScheduleKey: `${string}_bill_${string}` | `${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_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], {
38
+ }, "expenseAutomationJESchedulesView/initializeJeScheduleLocalData", never, never>, initializeNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
39
+ scheduleType: "fixed_assets" | "prepaid_expenses";
40
+ }], {
41
+ scheduleType: "prepaid_expenses" | "fixed_assets";
42
+ }, "expenseAutomationJESchedulesView/initializeNewSchedule", never, never>, removeFailedJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedJeScheduleKey: `${string}_bill_${string}` | `${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_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], {
36
43
  failedJeScheduleKey: `${string}_bill_${string}` | `${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_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}`;
37
44
  selectedPeriod: MonthYearPeriod;
38
45
  }, "expenseAutomationJESchedulesView/removeFailedJeScheduleTransactionKey", never, never>, removeJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -40,7 +47,11 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
40
47
  }, "expenseAutomationJESchedulesView/removeJeScheduleLocalDataById">, removeJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKey: `${string}_bill_${string}` | `${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_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], {
41
48
  jeScheduleKey: `${string}_bill_${string}` | `${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_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
49
  selectedPeriod: MonthYearPeriod;
43
- }, "expenseAutomationJESchedulesView/removeJeScheduleTransactionKey", never, never>, retryJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
50
+ }, "expenseAutomationJESchedulesView/removeJeScheduleTransactionKey", never, never>, resetNewScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
51
+ scheduleType: "fixed_assets" | "prepaid_expenses";
52
+ }], {
53
+ scheduleType: "prepaid_expenses" | "fixed_assets";
54
+ }, "expenseAutomationJESchedulesView/resetNewScheduleLocalData", never, never>, retryJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
44
55
  jeScheduleTransactionKey: JEScheduleTransactionKey;
45
56
  scheduledJournalEntryID: ID;
46
57
  }, "expenseAutomationJESchedulesView/retryJeSchedule">, retryJeScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -52,17 +63,34 @@ export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/too
52
63
  status: ZeniAPIStatus;
53
64
  }, "expenseAutomationJESchedulesView/saveAccountSettingsFailure">, saveAccountSettingsLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
54
65
  data: Partial<AccountSettingsLocalData>;
55
- }, "expenseAutomationJESchedulesView/saveAccountSettingsLocalData">, saveAccountSettingsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveAccountSettingsSuccess">, updateAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
66
+ }, "expenseAutomationJESchedulesView/saveAccountSettingsLocalData">, saveAccountSettingsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveAccountSettingsSuccess">, saveNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
67
+ scheduleType: "fixed_assets" | "prepaid_expenses";
68
+ }], {
69
+ scheduleType: "prepaid_expenses" | "fixed_assets";
70
+ }, "expenseAutomationJESchedulesView/saveNewSchedule", never, never>, saveNewScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
71
+ status: ZeniAPIStatus;
72
+ }, "expenseAutomationJESchedulesView/saveNewScheduleFailure">, saveNewScheduleSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/saveNewScheduleSuccess">, searchTransactionsForNewSchedule: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
73
+ query: string;
74
+ }], {
75
+ query: string;
76
+ }, "expenseAutomationJESchedulesView/searchTransactionsForNewSchedule", never, never>, searchTransactionsForNewScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
77
+ status: ZeniAPIStatus;
78
+ }, "expenseAutomationJESchedulesView/searchTransactionsForNewScheduleFailure">, searchTransactionsForNewScheduleSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
79
+ searchResults: ID[];
80
+ }, "expenseAutomationJESchedulesView/searchTransactionsForNewScheduleSuccess">, toggleJECreatedGroupCollapsed: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/toggleJECreatedGroupCollapsed">, toggleJEPendingGroupCollapsed: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"expenseAutomationJESchedulesView/toggleJEPendingGroupCollapsed">, updateAccountSettingsListForAccountTypes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
56
81
  accountPayload: AccountMetadataPayload[];
57
82
  }, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypes">, updateAccountSettingsListForAccountTypesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
58
83
  status: ZeniAPIStatus;
59
- }, "expenseAutomationJESchedulesView/updateAccountSettingsListForAccountTypesFailure">, updateJESchedulesUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<JESchedulesViewUIState>, "expenseAutomationJESchedulesView/updateJESchedulesUIState">, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
84
+ }, "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<{
60
85
  localData: Partial<JEScheduleLocalData>;
61
86
  scheduledJournalEntryID: ID;
62
87
  }, "expenseAutomationJESchedulesView/updateJeScheduleLocalDataById">, updateJeScheduleTransactionKeys: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKeys: (`${string}_bill_${string}` | `${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_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], {
63
88
  jeScheduleKeys: (`${string}_bill_${string}` | `${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_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}`)[];
64
89
  selectedPeriod: MonthYearPeriod;
65
- }, "expenseAutomationJESchedulesView/updateJeScheduleTransactionKeys", never, never>, updateRecommendationForAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<AccountTypeRecommendationPayload, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettings">, updateRecommendationForAccountSettingsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
90
+ }, "expenseAutomationJESchedulesView/updateJeScheduleTransactionKeys", never, never>, updateNewScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
91
+ localData: Partial<NewScheduleLocalDataFixedAssets>;
92
+ scheduleType: "fixed_assets" | "prepaid_expenses";
93
+ }, "expenseAutomationJESchedulesView/updateNewScheduleLocalData">, updateRecommendationForAccountSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<AccountTypeRecommendationPayload, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettings">, updateRecommendationForAccountSettingsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
66
94
  status: ZeniAPIStatus;
67
95
  }, "expenseAutomationJESchedulesView/updateRecommendationForAccountSettingsFailure">;
68
96
  declare const _default: import("redux").Reducer<JESchedulesViewState>;