@zeniai/client-epic-state 4.7.98 → 4.8.0

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 (149) hide show
  1. package/lib/commonPayloadTypes/statusPayload.d.ts +4 -0
  2. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +3 -0
  3. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +4 -1
  4. package/lib/commonStateTypes/timePeriod.d.ts +9 -2
  5. package/lib/commonStateTypes/timePeriod.js +12 -1
  6. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +1 -1
  7. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
  8. package/lib/entity/account/accountPayload.d.ts +1 -1
  9. package/lib/entity/account/accountSelector.d.ts +3 -3
  10. package/lib/entity/account/accountState.d.ts +4 -4
  11. package/lib/entity/account/accountState.js +1 -0
  12. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
  13. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
  14. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  15. package/lib/entity/class/classReducer.d.ts +4 -4
  16. package/lib/entity/class/classState.d.ts +2 -2
  17. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  18. package/lib/entity/forecast/forecastState.d.ts +1 -1
  19. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +55 -0
  20. package/lib/entity/jeSchedules/jeSchedulesPayload.js +142 -0
  21. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +11 -0
  22. package/lib/entity/jeSchedules/jeSchedulesReducer.js +91 -0
  23. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +58 -0
  24. package/lib/entity/jeSchedules/jeSchedulesSelector.js +74 -0
  25. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +61 -0
  26. package/lib/entity/jeSchedules/jeSchedulesState.js +2 -0
  27. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +10 -0
  28. package/lib/entity/jeSchedules/jeSchedulesTypes.js +25 -0
  29. package/lib/entity/jeSchedules/updateJESchedulesEpic.d.ts +10 -0
  30. package/lib/entity/jeSchedules/updateJESchedulesEpic.js +65 -0
  31. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  32. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  33. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  34. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  35. package/lib/entity/snackbar/snackbarTypes.js +2 -0
  36. package/lib/entity/tenant/clearAllEpic.d.ts +3 -1
  37. package/lib/entity/tenant/clearAllEpic.js +4 -0
  38. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +12 -0
  39. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +37 -0
  40. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +3 -3
  41. package/lib/entity/transaction/payloadTypes/transactionPayload.js +1 -1
  42. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +11 -0
  43. package/lib/entity/transaction/stateTypes/scheduleTransaction.js +2 -0
  44. package/lib/entity/transaction/stateTypes/transaction.d.ts +10 -7
  45. package/lib/entity/transaction/stateTypes/transactionType.d.ts +4 -0
  46. package/lib/entity/transaction/stateTypes/transactionType.js +11 -3
  47. package/lib/entity/transaction/transactionReducer.d.ts +7 -0
  48. package/lib/entity/transaction/transactionReducer.js +39 -3
  49. package/lib/entity/transaction/transactionSelector.d.ts +6 -0
  50. package/lib/entity/transaction/transactionSelector.js +19 -0
  51. package/lib/entity/transaction/transactionState.d.ts +3 -0
  52. package/lib/epic.d.ts +77 -67
  53. package/lib/epic.js +11 -1
  54. package/lib/index.d.ts +19 -6
  55. package/lib/index.js +58 -17
  56. package/lib/reducer.d.ts +9 -0
  57. package/lib/reducer.js +9 -0
  58. package/lib/view/accountList/accountListReducer.js +2 -0
  59. package/lib/view/accountList/accountListSelector.d.ts +16 -1
  60. package/lib/view/accountList/accountListSelector.js +33 -4
  61. package/lib/view/accountList/accountListState.d.ts +1 -1
  62. package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +1 -1
  63. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  64. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -2
  65. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -2
  66. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  67. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  68. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  69. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  70. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  71. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  72. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  73. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  74. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  75. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  76. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  77. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +2 -2
  78. package/lib/view/reviewCompanyView/reviewCompanyViewState.js +1 -0
  79. package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.d.ts +6 -0
  80. package/lib/view/scheduleView/scheduleDetailView/epics/createNewSchedulesEpic.js +28 -0
  81. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.d.ts +8 -0
  82. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +51 -0
  83. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.d.ts +7 -0
  84. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +16 -0
  85. package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.d.ts +6 -0
  86. package/lib/view/scheduleView/scheduleDetailView/epics/initializeScheduleDetailLocalDataEpic.js +32 -0
  87. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.d.ts +11 -0
  88. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +102 -0
  89. package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.d.ts +6 -0
  90. package/lib/view/scheduleView/scheduleDetailView/epics/updateAmountsInScheduleDetailEpic.js +29 -0
  91. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +18 -0
  92. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +185 -0
  93. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +58 -0
  94. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +118 -0
  95. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +50 -0
  96. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +237 -0
  97. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +21 -0
  98. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +67 -0
  99. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +47 -0
  100. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.js +5 -0
  101. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +3 -0
  102. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +14 -0
  103. package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.d.ts +8 -0
  104. package/lib/view/scheduleView/scheduleListView/epics/fetchDownloadSchedulesEpic.js +52 -0
  105. package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.d.ts +27 -0
  106. package/lib/view/scheduleView/scheduleListView/epics/fetchScheduleListEpic.js +75 -0
  107. package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.d.ts +19 -0
  108. package/lib/view/scheduleView/scheduleListView/epics/fetchSchedulesAccountEpic.js +37 -0
  109. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +70 -0
  110. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +187 -0
  111. package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +7 -0
  112. package/lib/view/scheduleView/scheduleListView/scheduleListPayload.js +2 -0
  113. package/lib/view/scheduleView/scheduleListView/scheduleListReducer.d.ts +55 -0
  114. package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +228 -0
  115. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.d.ts +38 -0
  116. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +193 -0
  117. package/lib/view/scheduleView/scheduleListView/scheduleListState.d.ts +29 -0
  118. package/lib/view/scheduleView/scheduleListView/scheduleListState.js +2 -0
  119. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +22 -0
  120. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +39 -0
  121. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +2 -1
  122. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +10 -1
  123. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +6 -0
  124. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +13 -1
  125. package/lib/view/spendManagement/helpers.d.ts +2 -0
  126. package/lib/view/spendManagement/helpers.js +12 -1
  127. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer.js +1 -1
  128. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +2 -2
  129. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -2
  130. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +3 -2
  131. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  132. package/lib/view/topEx/topExSelector.d.ts +1 -1
  133. package/lib/view/transactionDetail/epics/initializeTransactionDetailLocalDataEpic.js +2 -5
  134. package/lib/view/transactionDetail/epics/saveTransactionDetailEpic.js +2 -1
  135. package/lib/view/transactionDetail/epics/transactionDetailEpic.js +3 -2
  136. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +2 -1
  137. package/lib/view/transactionDetail/transactionDetailSelector.js +3 -2
  138. package/lib/view/transactionDetail/transactionDetailState.d.ts +1 -1
  139. package/lib/view/transactionDetail/transactionDetailState.js +3 -16
  140. package/lib/view/transactionList/transactionListByAccountSelector.js +2 -1
  141. package/lib/view/transactionList/transactionListByCategoryTypeSelector.js +2 -1
  142. package/lib/view/transactionList/transactionListByClassSelector.js +2 -1
  143. package/lib/view/transactionList/transactionListByEntitySelector.js +2 -1
  144. package/lib/view/vendorList/vendorListSelector.d.ts +3 -0
  145. package/lib/view/vendorList/vendorListSelector.js +11 -1
  146. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +2 -2
  147. package/lib/zeniDayJS.d.ts +1 -0
  148. package/lib/zeniDayJS.js +7 -1
  149. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import { JESchedulesState } from './jeSchedulesState';
2
+ import { JEScheduledTransactionPayload, ScheduledJournalEntryPayload } from './jeSchedulesPayload';
3
+ export declare const initialState: JESchedulesState;
4
+ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeSchedulesTransactionsPayload: JEScheduledTransactionPayload[]], {
5
+ jeSchedulesTransactionsPayload: JEScheduledTransactionPayload[];
6
+ }, string, never, never>, updateJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeSchedulesPayload: JEScheduledTransactionPayload[], scheduledJEntriesPayload?: ScheduledJournalEntryPayload[] | undefined], {
7
+ jeSchedulesPayload: JEScheduledTransactionPayload[];
8
+ scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
9
+ }, string, never, never>, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
10
+ declare const _default: import("@reduxjs/toolkit").Reducer<JESchedulesState, import("@reduxjs/toolkit").AnyAction>;
11
+ export default _default;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var _a;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.clearAllJEScheduleTransactions = exports.updateJESchedulesDetails = exports.updateJESchedules = exports.initialState = void 0;
8
+ const toolkit_1 = require("@reduxjs/toolkit");
9
+ const assignWith_1 = __importDefault(require("lodash/assignWith"));
10
+ const jeSchedulesPayload_1 = require("./jeSchedulesPayload");
11
+ exports.initialState = {
12
+ schedulesByTransactionKey: {},
13
+ };
14
+ const jeSchedules = (0, toolkit_1.createSlice)({
15
+ name: 'jeSchedules',
16
+ initialState: exports.initialState,
17
+ reducers: {
18
+ updateJESchedules: {
19
+ prepare(jeSchedulesTransactionsPayload) {
20
+ return {
21
+ payload: {
22
+ jeSchedulesTransactionsPayload,
23
+ },
24
+ };
25
+ },
26
+ reducer(draft, action) {
27
+ action.payload.jeSchedulesTransactionsPayload.forEach((schedule) => {
28
+ doUpdateJEScheduledTransaction(draft.schedulesByTransactionKey, (0, jeSchedulesPayload_1.getTransactionDetailKeyPayload)(schedule.base_transaction), schedule, 'merge');
29
+ });
30
+ },
31
+ },
32
+ updateJESchedulesDetails: {
33
+ prepare(jeSchedulesPayload, scheduledJEntriesPayload) {
34
+ return {
35
+ payload: {
36
+ jeSchedulesPayload,
37
+ scheduledJEntriesPayload,
38
+ },
39
+ };
40
+ },
41
+ reducer(draft, action) {
42
+ const jeSchedulesPayload = action.payload.jeSchedulesPayload;
43
+ if (jeSchedulesPayload.length > 0) {
44
+ jeSchedulesPayload.forEach((jeSchedulePayload) => {
45
+ var _a;
46
+ const transactionKey = jeSchedulePayload.base_transaction;
47
+ doUpdateScheduledDetailTransaction(draft.schedulesByTransactionKey, (0, jeSchedulesPayload_1.getTransactionDetailKeyPayload)(transactionKey), jeSchedulePayload, (_a = action.payload.scheduledJEntriesPayload) !== null && _a !== void 0 ? _a : [], 'merge');
48
+ });
49
+ }
50
+ },
51
+ },
52
+ clearAllJEScheduleTransactions(draft) {
53
+ draft.schedulesByTransactionKey = {};
54
+ },
55
+ },
56
+ });
57
+ _a = jeSchedules.actions, exports.updateJESchedules = _a.updateJESchedules, exports.updateJESchedulesDetails = _a.updateJESchedulesDetails, exports.clearAllJEScheduleTransactions = _a.clearAllJEScheduleTransactions;
58
+ exports.default = jeSchedules.reducer;
59
+ /**
60
+ * Helper functions
61
+ */
62
+ function doUpdateJEScheduledTransaction(draft, id, payload, updateType) {
63
+ const jeTransaction = (0, jeSchedulesPayload_1.toJEScheduledTransaction)(payload);
64
+ const existingTransaction = draft[id];
65
+ if (existingTransaction != null && updateType === 'merge') {
66
+ (0, assignWith_1.default)(draft[id], jeTransaction, (objValue, srcValue) => srcValue !== null && srcValue !== void 0 ? srcValue : objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
67
+ }
68
+ else {
69
+ draft[id] = jeTransaction;
70
+ }
71
+ }
72
+ /**
73
+ * Helper functions
74
+ */
75
+ function doUpdateScheduledDetailTransaction(draft, id, jeSchedulePayload, scheduleJournalEntries, updateType) {
76
+ const jeTransaction = (0, jeSchedulesPayload_1.toJEScheduledTransaction)(jeSchedulePayload);
77
+ const { currencyCode, currencySymbol } = jeTransaction;
78
+ const scheduledJournalEntriesPayload = scheduleJournalEntries.filter((journalEntries) => journalEntries.je_schedule_id === jeTransaction.jeScheduleId);
79
+ let scheduledJournalEntries = [];
80
+ if (scheduledJournalEntriesPayload != null &&
81
+ scheduledJournalEntriesPayload.length > 0) {
82
+ scheduledJournalEntries = scheduledJournalEntriesPayload.map((scheduleJePayload) => (0, jeSchedulesPayload_1.toScheduledJournalEntryState)(scheduleJePayload, currencyCode, currencySymbol));
83
+ }
84
+ const existingTransaction = draft[id];
85
+ if (existingTransaction != null && updateType === 'merge') {
86
+ (0, assignWith_1.default)(draft[id], Object.assign(Object.assign({}, jeTransaction), { scheduledJournalEntry: scheduledJournalEntries }), (objValue, srcValue) => srcValue !== null && srcValue !== void 0 ? srcValue : objValue); // IMPORTANT: replace the value only when source has valid value. Otherwise keep the existing value!
87
+ }
88
+ else {
89
+ draft[id] = Object.assign(Object.assign({}, jeTransaction), { scheduledJournalEntry: scheduledJournalEntries });
90
+ }
91
+ }
@@ -0,0 +1,58 @@
1
+ import { Amount } from '../../commonStateTypes/amount';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { ZeniDate } from '../../zeniDayJS';
4
+ import { AccountBase } from '../account/accountState';
5
+ import { Class } from '../class/classState';
6
+ import { Vendor } from '../vendor/vendorState';
7
+ import { ScheduleJournalStatusCode, ScheduleStatus } from './jeSchedulesState';
8
+ import { ScheduleTransaction } from '../transaction/stateTypes/scheduleTransaction';
9
+ import { User } from '../user/userState';
10
+ import { RootState } from '../../reducer';
11
+ import { JEScheduleKey } from './jeSchedulesTypes';
12
+ import { TransactionID } from '../transaction/stateTypes/transaction';
13
+ import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
14
+ export interface ScheduledJournalEntry {
15
+ scheduledJournalEntryID: ID;
16
+ status: ScheduleJournalStatusCode;
17
+ memo: string;
18
+ expectedPostDate: ZeniDate;
19
+ thirdPartyID?: ID;
20
+ transactionID?: ID;
21
+ recommendedTransactionID?: TransactionID;
22
+ actualPostDate?: ZeniDate;
23
+ amount?: Amount;
24
+ runningBalance?: Amount;
25
+ jeScheduleId?: ID;
26
+ isPlatformGenerated?: boolean;
27
+ createTime?: ZeniDate;
28
+ updateTime?: ZeniDate;
29
+ currencyCode?: string;
30
+ currencySymbol?: string;
31
+ }
32
+ export interface JEScheduledTransaction {
33
+ status: ScheduleStatus;
34
+ vendor: Vendor;
35
+ baseTransaction: ScheduleTransaction;
36
+ jeScheduleTransactionKey: JEScheduleKey;
37
+ currencyCode: string;
38
+ currencySymbol: string;
39
+ jeCredit: {
40
+ accountingClass?: Class;
41
+ account?: AccountBase;
42
+ };
43
+ jeDebit: {
44
+ accountingClass?: Class;
45
+ account?: AccountBase;
46
+ };
47
+ dayOfPostingDate?: ScheduleDaysOfMonth;
48
+ lastDayOfMonth?: boolean;
49
+ jeScheduleId?: ID;
50
+ startDate?: ZeniDate;
51
+ period?: number;
52
+ updatedByUser?: User;
53
+ updatedAt?: ZeniDate;
54
+ balanceAsOfToday?: Amount;
55
+ endDate?: ZeniDate;
56
+ scheduledJournalEntry: ScheduledJournalEntry[];
57
+ }
58
+ export declare const getJEScheduledTransactionByJEScheduleKey: (jeScheduleKey: JEScheduleKey, state: RootState) => JEScheduledTransaction;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getJEScheduledTransactionByJEScheduleKey = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const amount_1 = require("../../commonStateTypes/amount");
9
+ const vendorSelector_1 = require("../vendor/vendorSelector");
10
+ const accountSelector_1 = require("../account/accountSelector");
11
+ const userSelector_1 = require("../user/userSelector");
12
+ const classSelector_1 = require("../class/classSelector");
13
+ const transactionSelector_1 = require("../transaction/transactionSelector");
14
+ const getJEScheduledTransactionByJEScheduleKey = (jeScheduleKey, state) => {
15
+ const { jeSchedulesState, vendorState, accountState, userState, classState, transactionState, } = state;
16
+ const jeScheduleTransactionState = (0, get_1.default)(jeSchedulesState.schedulesByTransactionKey, jeScheduleKey);
17
+ const { period, updatedByUserID: updatedBy, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, } = jeScheduleTransactionState;
18
+ const vendorDetails = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
19
+ if (vendorDetails == null) {
20
+ throw new Error(`Vendor with ${vendorId} doesn't exist`);
21
+ }
22
+ const userDetails = updatedBy != null ? (0, userSelector_1.getUserByUserId)(userState, updatedBy) : undefined;
23
+ const baseTransactionObject = (0, transactionSelector_1.getScheduleTransactionById)(transactionState, baseTransaction);
24
+ if (baseTransactionObject == null) {
25
+ throw Error('Base Schedule transaction cannot be null');
26
+ }
27
+ const accountCredit = jeCredit.accountId != null
28
+ ? (0, accountSelector_1.getAccountBase)(accountState, jeCredit.accountId, 'account_list')
29
+ : undefined;
30
+ const classCredit = jeCredit.accountingClassId != null
31
+ ? (0, classSelector_1.getClassById)(classState, {
32
+ classId: jeCredit.accountingClassId,
33
+ reportId: 'class_list',
34
+ })
35
+ : undefined;
36
+ const accountDebit = jeDebit.accountId != null
37
+ ? (0, accountSelector_1.getAccountBase)(accountState, jeDebit.accountId, 'account_list')
38
+ : undefined;
39
+ const classDebit = jeDebit.accountingClassId != null
40
+ ? (0, classSelector_1.getClassById)(classState, {
41
+ classId: jeDebit.accountingClassId,
42
+ reportId: 'class_list',
43
+ })
44
+ : undefined;
45
+ return {
46
+ jeScheduleId,
47
+ jeScheduleTransactionKey: jeScheduleKey,
48
+ vendor: vendorDetails,
49
+ updatedByUser: userDetails,
50
+ updatedAt: updatedAt,
51
+ period,
52
+ balanceAsOfToday: balanceAsOfToday != null
53
+ ? (0, amount_1.toAmount)(balanceAsOfToday, currencyCode, currencySymbol)
54
+ : undefined,
55
+ baseTransaction: baseTransactionObject,
56
+ startDate,
57
+ endDate,
58
+ currencyCode,
59
+ currencySymbol,
60
+ lastDayOfMonth,
61
+ dayOfPostingDate: postingDate,
62
+ status,
63
+ jeCredit: {
64
+ accountingClass: classCredit,
65
+ account: accountCredit,
66
+ },
67
+ jeDebit: {
68
+ accountingClass: classDebit,
69
+ account: accountDebit,
70
+ },
71
+ scheduledJournalEntry,
72
+ };
73
+ };
74
+ exports.getJEScheduledTransactionByJEScheduleKey = getJEScheduledTransactionByJEScheduleKey;
@@ -0,0 +1,61 @@
1
+ import { Amount } from '../../commonStateTypes/amount';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
4
+ import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
5
+ import { ZeniDate } from '../../zeniDayJS';
6
+ import { TransactionID } from '../transaction/stateTypes/transaction';
7
+ import { ScheduleStatusCodeType, JEScheduleKey, ScheduleJournalEntryStatusCodeType } from './jeSchedulesTypes';
8
+ export interface ScheduleStatus {
9
+ code: ScheduleStatusCodeType;
10
+ label: string;
11
+ }
12
+ export interface ScheduleJournalStatusCode {
13
+ code: ScheduleJournalEntryStatusCodeType;
14
+ label: string;
15
+ }
16
+ export interface ScheduledJournalEntryState {
17
+ scheduledJournalEntryID: ID;
18
+ status: ScheduleJournalStatusCode;
19
+ memo: string;
20
+ expectedPostDate: ZeniDate;
21
+ thirdPartyID?: ID;
22
+ transactionID?: ID;
23
+ recommendedTransactionID?: TransactionID;
24
+ actualPostDate?: ZeniDate;
25
+ amount?: Amount;
26
+ runningBalance?: Amount;
27
+ jeScheduleId?: ID;
28
+ isPlatformGenerated?: boolean;
29
+ createTime?: ZeniDate;
30
+ updateTime?: ZeniDate;
31
+ currencyCode?: string;
32
+ currencySymbol?: string;
33
+ }
34
+ export interface JEScheduledTransactionState {
35
+ jeScheduleId?: ID;
36
+ status: ScheduleStatus;
37
+ vendorId: ID;
38
+ baseTransaction: TransactionDetailKey;
39
+ jeCredit: {
40
+ accountingClassId?: ID;
41
+ accountId?: ID;
42
+ };
43
+ jeDebit: {
44
+ accountingClassId?: ID;
45
+ accountId?: ID;
46
+ };
47
+ currencyCode: string;
48
+ currencySymbol: string;
49
+ dayOfPostingDate?: ScheduleDaysOfMonth;
50
+ lastDayOfMonth?: boolean;
51
+ updatedByUserID?: ID;
52
+ updatedAt?: ZeniDate;
53
+ startDate?: ZeniDate;
54
+ period?: number;
55
+ endDate?: ZeniDate;
56
+ balanceAsOfToday?: number;
57
+ scheduledJournalEntry: ScheduledJournalEntryState[];
58
+ }
59
+ export interface JESchedulesState {
60
+ schedulesByTransactionKey: Record<JEScheduleKey, JEScheduledTransactionState>;
61
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { getTransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
2
+ export declare type JEScheduleKey = ReturnType<typeof getTransactionDetailKey>;
3
+ export declare const ALL_SCHEDULES_TYPES: readonly ["prepaid_expenses", "fixed_assets", "accured_expenses", "deferred_revenue"];
4
+ export declare const toScheduleTypesType: (v: string) => "prepaid_expenses" | "fixed_assets" | "accured_expenses" | "deferred_revenue";
5
+ export declare type SchedulesTypes = ReturnType<typeof toScheduleTypesType>;
6
+ export declare const toScheduleTypesTypeStrict: (v?: string | undefined) => "prepaid_expenses" | "fixed_assets" | "accured_expenses" | "deferred_revenue" | undefined;
7
+ export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "canceled" | "pending" | "unknown" | "posted";
8
+ export declare type ScheduleJournalEntryStatusCodeType = ReturnType<typeof toScheduleJournalEntryStatusCodeType>;
9
+ export declare const toScheduleStatusCodeType: (v: string) => "new" | "completed" | "ongoing";
10
+ export declare type ScheduleStatusCodeType = ReturnType<typeof toScheduleStatusCodeType>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toScheduleStatusCodeType = exports.toScheduleJournalEntryStatusCodeType = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.ALL_SCHEDULES_TYPES = void 0;
4
+ const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
+ exports.ALL_SCHEDULES_TYPES = [
6
+ 'prepaid_expenses',
7
+ 'fixed_assets',
8
+ 'accured_expenses',
9
+ 'deferred_revenue',
10
+ ];
11
+ const toScheduleTypesType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_SCHEDULES_TYPES);
12
+ exports.toScheduleTypesType = toScheduleTypesType;
13
+ const toScheduleTypesTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_SCHEDULES_TYPES);
14
+ exports.toScheduleTypesTypeStrict = toScheduleTypesTypeStrict;
15
+ const SCHEDULE_JOURNAL_ENTRY_STATUS_CODE = [
16
+ 'pending',
17
+ 'posted',
18
+ 'unknown',
19
+ 'canceled',
20
+ ];
21
+ const toScheduleJournalEntryStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, SCHEDULE_JOURNAL_ENTRY_STATUS_CODE);
22
+ exports.toScheduleJournalEntryStatusCodeType = toScheduleJournalEntryStatusCodeType;
23
+ const SCHEDULE_STATUS_CODE = ['new', 'ongoing', 'completed'];
24
+ const toScheduleStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, SCHEDULE_STATUS_CODE);
25
+ exports.toScheduleStatusCodeType = toScheduleStatusCodeType;
@@ -0,0 +1,10 @@
1
+ import { ActionsObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateJESchedules } from './jeSchedulesReducer';
4
+ import { updateAllUsers } from '../user/userReducer';
5
+ import { updateVendors } from '../vendor/vendorReducer';
6
+ import { updateScheduleTransactions } from '../transaction/transactionReducer';
7
+ import { updateAccounts } from '../account/accountReducer';
8
+ import { updateClasses } from '../class/classReducer';
9
+ export declare type ActionType = ReturnType<typeof updateJESchedules> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateVendors> | ReturnType<typeof updateClasses> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateScheduleTransactions>;
10
+ export declare const updateJESchedulesEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateJESchedulesEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const jeSchedulesReducer_1 = require("./jeSchedulesReducer");
7
+ const userReducer_1 = require("../user/userReducer");
8
+ const vendorReducer_1 = require("../vendor/vendorReducer");
9
+ const transactionReducer_1 = require("../transaction/transactionReducer");
10
+ const accountReducer_1 = require("../account/accountReducer");
11
+ const classReducer_1 = require("../class/classReducer");
12
+ const jeSchedulesPayload_1 = require("./jeSchedulesPayload");
13
+ const transactionType_1 = require("../transaction/stateTypes/transactionType");
14
+ const updateJESchedulesEpic = (actions$) => actions$.pipe((0, operators_1.filter)(jeSchedulesReducer_1.updateJESchedules.match), (0, operators_1.mergeMap)((action) => {
15
+ const actions = [];
16
+ if (action.payload.jeSchedulesTransactionsPayload.length > 0) {
17
+ const vendorPayload = [];
18
+ const userPayload = [];
19
+ const accountsPayload = [];
20
+ const classPayload = [];
21
+ const jeTransactionPerCurrency = {};
22
+ action.payload.jeSchedulesTransactionsPayload.forEach((jeSchedulePayload) => {
23
+ const { currency_code } = jeSchedulePayload;
24
+ const jeTransactions = jeTransactionPerCurrency[currency_code];
25
+ if (jeTransactions != null) {
26
+ jeTransactionPerCurrency[currency_code] = {
27
+ currency: jeTransactions.currency,
28
+ transactions: [
29
+ ...jeTransactions.transactions,
30
+ jeSchedulePayload.base_transaction,
31
+ ],
32
+ };
33
+ }
34
+ else {
35
+ jeTransactionPerCurrency[currency_code] = {
36
+ currency: {
37
+ currency_code: jeSchedulePayload.currency_code,
38
+ currency_symbol: jeSchedulePayload.currency_symbol,
39
+ },
40
+ transactions: [jeSchedulePayload.base_transaction],
41
+ };
42
+ }
43
+ vendorPayload.push(jeSchedulePayload.vendor);
44
+ userPayload.push(jeSchedulePayload.updated_by);
45
+ transactionType_1.ALL_TRANSACTION_CATEGORY.forEach((types) => {
46
+ const account = (0, jeSchedulesPayload_1.toJEAccountPayload)(jeSchedulePayload, types);
47
+ if (account != null) {
48
+ accountsPayload.push(account);
49
+ }
50
+ const classBase = (0, jeSchedulesPayload_1.toJEClassPayload)(jeSchedulePayload, types);
51
+ if (classBase != null) {
52
+ classPayload.push(classBase);
53
+ }
54
+ });
55
+ });
56
+ actions.push((0, accountReducer_1.updateAccounts)(accountsPayload, 'account_list'), (0, classReducer_1.updateClasses)('class_list', classPayload), (0, vendorReducer_1.updateVendors)(vendorPayload));
57
+ Object.keys(jeTransactionPerCurrency).forEach((currencyCode) => {
58
+ const jeTransactions = jeTransactionPerCurrency[currencyCode];
59
+ actions.push((0, transactionReducer_1.updateScheduleTransactions)(jeTransactions.transactions, jeTransactions.currency.currency_code, jeTransactions.currency.currency_symbol));
60
+ });
61
+ actions.push((0, userReducer_1.updateAllUsers)({ users: userPayload, updateType: 'merge' }));
62
+ }
63
+ return (0, rxjs_1.from)(actions);
64
+ }));
65
+ exports.updateJESchedulesEpic = updateJESchedulesEpic;
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
10
10
  nestedAccountIds: NestedAccountIDHierarchy[];
11
11
  accountGroupKeys: AccountGroupKey[];
12
12
  }
13
- export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}`;
14
14
  export declare type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
@@ -8,5 +8,5 @@ export interface SectionClassesView {
8
8
  nestedClassesIds: NestedClassIDHierarchy[];
9
9
  balancesByPeriod?: COABalanceGroupedByPeriod;
10
10
  }
11
- export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses`;
12
12
  export declare type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { SectionClassesViewStateV2 } from './sectionClassesViewState';
4
4
  import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
5
5
  import { SectionByClassCOABalanceGroupedPayloadV2 } from '../../commonPayloadTypes/classesView/reportByClassPayloadV2';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review";
9
+ reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "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" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "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" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card";
2
2
  export declare type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success";
4
4
  export declare type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -80,6 +80,8 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
80
80
  'save_vendor_sent_for_review',
81
81
  'charge_card_setup',
82
82
  'charge_card_accept_term',
83
+ 'create_schedule',
84
+ 'save_schedule',
83
85
  'save_task_detail',
84
86
  'delete_task',
85
87
  'archive_task',
@@ -135,6 +135,8 @@ import { clearChargeCardList } from '../../view/spendManagement/chargeCards/char
135
135
  import { clearChargeCardDetail } from '../../view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
136
136
  import { clearChargeCardSetupView } from '../../view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
137
137
  import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
138
+ import { clearScheduleDetailView } from '../../view/scheduleView/scheduleDetailView/scheduleDetailReducer';
139
+ import { clearScheduleList } from '../../view/scheduleView/scheduleListView/scheduleListReducer';
138
140
  import { clearAuthenticationView } from '../../view/authenticationView/authenticationViewReducer';
139
141
  import { clearTwoFactorAuthentication } from '../../view/twoFactorAuthentication/twoFactorAuthenticationReducer';
140
142
  import { clearTaskDetail } from '../../view/taskManager/taskDetailView/taskDetailReducer';
@@ -143,7 +145,7 @@ import { clearAllTasks } from '../task/taskReducer';
143
145
  import { clearAllTaskSummary } from '../taskSummary/taskSummaryReducer';
144
146
  import { clearCompanyHealthMetricView } from '../../view/companyHealthMetricView/companyHealthMetricViewReducer';
145
147
  import { clearCompanyHealthMetric } from '../companyHealthMetric/companyHealthMetricReducer';
146
- declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountSetupView>;
148
+ declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountSetupView>;
147
149
  declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
148
150
  export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
149
151
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
@@ -141,6 +141,8 @@ const chargeCardListReducer_1 = require("../../view/spendManagement/chargeCards/
141
141
  const chargeCardDetailReducer_1 = require("../../view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer");
142
142
  const chargeCardSetUpViewReducer_1 = require("../../view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer");
143
143
  const zeniAccountsConfigReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer");
144
+ const scheduleDetailReducer_1 = require("../../view/scheduleView/scheduleDetailView/scheduleDetailReducer");
145
+ const scheduleListReducer_1 = require("../../view/scheduleView/scheduleListView/scheduleListReducer");
144
146
  const authenticationViewReducer_1 = require("../../view/authenticationView/authenticationViewReducer");
145
147
  const twoFactorAuthenticationReducer_1 = require("../../view/twoFactorAuthentication/twoFactorAuthenticationReducer");
146
148
  const taskDetailReducer_1 = require("../../view/taskManager/taskDetailView/taskDetailReducer");
@@ -228,6 +230,8 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
228
230
  (0, revenueReducer_1.clearRevenue)(),
229
231
  (0, revenueClassesViewReducer_1.clearRevenueClassesView)(),
230
232
  (0, reviewCompanyViewReducer_1.clearReviewCompany)(),
233
+ (0, scheduleDetailReducer_1.clearScheduleDetailView)(),
234
+ (0, scheduleListReducer_1.clearScheduleList)(),
231
235
  (0, settingsViewReducer_1.clearSettingsView)(),
232
236
  (0, setupViewReducer_1.clearSetupView)(),
233
237
  (0, subscriptionViewReducer_1.clearSubscriptionView)(),
@@ -0,0 +1,12 @@
1
+ import { AccountBasePayload } from '../../account/accountPayload';
2
+ import { ClassBasePayload } from '../../class/classPayload';
3
+ import { ScheduleTransaction } from '../stateTypes/scheduleTransaction';
4
+ import { TransactionIDPayload } from './transactionIDPayload';
5
+ export interface ScheduleTransactionPayload extends TransactionIDPayload, Omit<AccountBasePayload, 'qbo_id'>, Omit<ClassBasePayload, 'qbo_id'> {
6
+ third_party_transaction_id: string;
7
+ transaction_date: string;
8
+ total_amount: number;
9
+ transaction_memo: string;
10
+ transaction_type_name: string;
11
+ }
12
+ export declare const toScheduleTransaction: (payload: ScheduleTransactionPayload, currency_code: string, currency_symbol: string) => ScheduleTransaction;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toScheduleTransaction = void 0;
4
+ const amount_1 = require("../../../commonStateTypes/amount");
5
+ const zeniDayJS_1 = require("../../../zeniDayJS");
6
+ const transactionType_1 = require("../stateTypes/transactionType");
7
+ const toScheduleTransaction = (payload, currency_code, currency_symbol) => {
8
+ var _a, _b;
9
+ return {
10
+ id: payload.transaction_id,
11
+ type: (0, transactionType_1.toTransactionType)(payload.transaction_type),
12
+ typeOfTransaction: 'schedule',
13
+ date: (0, zeniDayJS_1.date)(payload.transaction_date),
14
+ amount: (0, amount_1.toAmount)(payload.total_amount, currency_code, currency_symbol),
15
+ thirdPartyTransactionId: payload.third_party_transaction_id,
16
+ memo: payload.transaction_memo,
17
+ typeName: payload.transaction_type_name,
18
+ account: {
19
+ accountId: payload.account_id,
20
+ accountName: payload.account_name,
21
+ accountDescription: (_a = payload.account_description) !== null && _a !== void 0 ? _a : '',
22
+ labels: [],
23
+ },
24
+ classBase: payload.accounting_class_id != null
25
+ ? {
26
+ classId: payload.accounting_class_id,
27
+ className: payload.accounting_class_name,
28
+ fullyQualifiedAccountingClassName: (_b = payload.fully_qualified_accounting_class_name) !== null && _b !== void 0 ? _b : '',
29
+ }
30
+ : undefined,
31
+ currency: {
32
+ currencyCode: currency_code,
33
+ currencySymbol: currency_symbol,
34
+ },
35
+ };
36
+ };
37
+ exports.toScheduleTransaction = toScheduleTransaction;