@zeniai/client-epic-state 4.15.43 → 4.15.44

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 (235) hide show
  1. package/README.md +19 -1
  2. package/lib/commonPayloadTypes/recommendationPayload.d.ts +1 -0
  3. package/lib/commonStateTypes/common.d.ts +1 -1
  4. package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
  5. package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
  6. package/lib/commonStateTypes/timePeriod.d.ts +7 -7
  7. package/lib/commonStateTypes/timePeriod.js +2 -2
  8. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
  9. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  11. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
  12. package/lib/configureStore.js +2 -1
  13. package/lib/entity/account/accountSelector.d.ts +3 -3
  14. package/lib/entity/account/accountState.d.ts +1 -1
  15. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
  16. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
  17. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  18. package/lib/entity/accountRecon/accountReconPayload.d.ts +70 -0
  19. package/lib/entity/accountRecon/accountReconPayload.js +125 -0
  20. package/lib/entity/accountRecon/accountReconReducer.d.ts +16 -0
  21. package/lib/entity/accountRecon/accountReconReducer.js +71 -0
  22. package/lib/entity/accountRecon/accountReconSelector.d.ts +28 -0
  23. package/lib/entity/accountRecon/accountReconSelector.js +44 -0
  24. package/lib/entity/accountRecon/accountReconState.d.ts +70 -0
  25. package/lib/entity/accountRecon/accountReconState.js +28 -0
  26. package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
  27. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
  28. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  29. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  30. package/lib/entity/class/classReducer.d.ts +4 -4
  31. package/lib/entity/class/classState.d.ts +1 -1
  32. package/lib/entity/company/companyReducer.js +0 -1
  33. package/lib/entity/customer/customerPayload.d.ts +1 -1
  34. package/lib/entity/customer/customerPayload.js +16 -6
  35. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  36. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  37. package/lib/entity/file/fileState.d.ts +3 -3
  38. package/lib/entity/forecast/forecastState.d.ts +1 -1
  39. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  40. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
  41. package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
  42. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  43. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  44. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  45. package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
  46. package/lib/entity/snackbar/snackbarTypes.js +4 -0
  47. package/lib/entity/task/taskState.d.ts +3 -3
  48. package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
  49. package/lib/entity/tenant/clearAllEpic.js +4 -0
  50. package/lib/entity/tenant/tenantReducer.d.ts +2 -2
  51. package/lib/entity/tenant/tenantReducer.js +0 -1
  52. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  53. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +1 -2
  54. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
  55. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
  56. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
  57. package/lib/entity/transaction/payloadTypes/transactionPayload.js +9 -6
  58. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +9 -1
  59. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +24 -2
  60. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
  61. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +32 -0
  62. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +10 -0
  63. package/lib/entity/transaction/stateTypes/transaction.d.ts +3 -1
  64. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  65. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  66. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +5 -0
  67. package/lib/entity/transaction/stateTypes/vendorTransaction.js +5 -1
  68. package/lib/entity/transaction/toSupportedTransaction.js +6 -1
  69. package/lib/entity/transaction/transactionReducer.d.ts +17 -0
  70. package/lib/entity/transaction/transactionReducer.js +47 -2
  71. package/lib/entity/transaction/transactionSelector.d.ts +2 -0
  72. package/lib/entity/transaction/transactionSelector.js +5 -0
  73. package/lib/entity/transaction/transactionState.d.ts +6 -4
  74. package/lib/entity/vendorExpense/vendorExpenseReducer.js +0 -1
  75. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  76. package/lib/epic.d.ts +6 -1
  77. package/lib/epic.js +6 -1
  78. package/lib/index.d.ts +20 -12
  79. package/lib/index.js +56 -27
  80. package/lib/init.d.ts +2 -1
  81. package/lib/init.js +9 -2
  82. package/lib/reducer.d.ts +7 -1
  83. package/lib/reducer.js +6 -0
  84. package/lib/view/accountList/accountListReducer.js +1 -3
  85. package/lib/view/accountMappingView/accountMappingReducer.js +0 -1
  86. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +1 -2
  87. package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
  88. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  89. package/lib/view/balanceSheet/balanceSheetReducer.js +1 -6
  90. package/lib/view/bankAccountView/bankAccountViewReducer.js +0 -1
  91. package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
  92. package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
  93. package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
  94. package/lib/view/cashFlow/cashFlowReducer.js +1 -4
  95. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
  96. package/lib/view/cashPosition/cashPositionReducer.js +0 -1
  97. package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
  98. package/lib/view/common/reportsHelpers.d.ts +1 -1
  99. package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +7 -0
  100. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +1 -3
  101. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  102. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  103. package/lib/view/companyView/companyViewReducer.d.ts +1 -1
  104. package/lib/view/companyView/companyViewReducer.js +1 -10
  105. package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
  106. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
  107. package/lib/view/dashboard/dashboardEpic.js +0 -2
  108. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  109. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +15 -0
  110. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +118 -0
  111. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +10 -0
  112. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +49 -0
  113. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +14 -0
  114. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +169 -0
  115. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +9 -0
  116. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +154 -0
  117. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +6 -0
  118. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +110 -0
  119. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
  120. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +24 -10
  121. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
  122. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +14 -0
  123. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +30 -7
  124. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  125. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +1 -5
  126. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +17 -2
  127. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  128. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  129. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +7 -0
  130. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +18 -0
  131. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +98 -42
  132. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  133. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +86 -10
  134. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +28 -0
  135. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +51 -0
  136. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
  137. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +66 -0
  138. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +384 -0
  139. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +12 -1
  140. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +66 -7
  141. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +2 -0
  142. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  143. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +51 -0
  144. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +7 -0
  145. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +5 -2
  146. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +5 -0
  147. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +254 -0
  148. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
  149. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
  150. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +103 -0
  151. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +37 -0
  152. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +12 -2
  153. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  154. package/lib/view/financeStatement/financeStatementReducer.js +1 -4
  155. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
  156. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +3 -10
  157. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +1 -6
  158. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +0 -1
  159. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
  160. package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
  161. package/lib/view/notificationView/notificationViewState.d.ts +2 -2
  162. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +0 -3
  163. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
  164. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  165. package/lib/view/opEx/opExReducer.js +4 -14
  166. package/lib/view/opExByVendor/opExByVendorReducer.js +1 -3
  167. package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
  168. package/lib/view/opExClassesView/opExClassesViewReducer.js +1 -6
  169. package/lib/view/people/fetchPeopleEpic.js +1 -3
  170. package/lib/view/people/invitePeopleEpic.js +1 -3
  171. package/lib/view/people/inviteZeniPeopleEpic.js +1 -3
  172. package/lib/view/people/peopleReducer.js +0 -1
  173. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  174. package/lib/view/profitAndLoss/profitAndLossReducer.js +1 -6
  175. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +1 -6
  176. package/lib/view/recommendation/recommendationReducer.js +1 -4
  177. package/lib/view/referralView/referralState.d.ts +1 -1
  178. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
  179. package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
  180. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +1 -3
  181. package/lib/view/revenue/revenueReducer.js +3 -10
  182. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +1 -6
  183. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  184. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
  185. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
  186. package/lib/view/settingsView/settingsViewReducer.js +0 -1
  187. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  188. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  189. package/lib/view/spendManagement/billPay/billList/billListReducer.js +0 -1
  190. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
  191. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
  192. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +0 -6
  193. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
  194. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +4 -3
  195. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +1 -3
  196. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
  197. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  198. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
  199. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
  200. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +11 -3
  201. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +11 -10
  202. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +3 -1
  203. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  204. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +2 -6
  205. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +1 -3
  206. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  207. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +0 -1
  208. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
  209. package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
  210. package/lib/view/subscriptionView/subscriptionViewReducer.js +0 -1
  211. package/lib/view/subscriptionView/types/subscriptionTypes.js +0 -1
  212. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +1 -3
  213. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  214. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
  215. package/lib/view/tasksCard/fetchTasksCardEpic.js +1 -2
  216. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  217. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  218. package/lib/view/topEx/topExSelector.d.ts +3 -3
  219. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +30 -52
  220. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -4
  221. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +66 -13
  222. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +13 -4
  223. package/lib/view/transactionDetail/transactionDetailReducer.js +51 -21
  224. package/lib/view/transactionDetail/transactionDetailState.d.ts +3 -2
  225. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +8 -0
  226. package/lib/view/transactionList/transactionListByEntitySelector.js +0 -2
  227. package/lib/view/transactionList/transactionListReducer.js +4 -6
  228. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +0 -1
  229. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +1 -3
  230. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  231. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
  232. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  233. package/lib/zeniAPI.d.ts +1 -0
  234. package/lib/zeniUrl.d.ts +1 -1
  235. package/package.json +13 -12
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.addTransactionToReconcileList = exports.clearAllAccountRecon = exports.excludeReconReviewTransaction = exports.updateAccountRecon = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const accountReconPayload_1 = require("./accountReconPayload");
7
+ const accountReconState_1 = require("./accountReconState");
8
+ exports.initialState = {
9
+ accountReconByAccountReconKey: {},
10
+ };
11
+ const accountRecon = (0, toolkit_1.createSlice)({
12
+ name: 'accountRecon',
13
+ initialState: exports.initialState,
14
+ reducers: {
15
+ updateAccountRecon: {
16
+ prepare(selectedPeriod, accountReconDataPayload) {
17
+ return {
18
+ payload: {
19
+ selectedPeriod,
20
+ accountReconDataPayload,
21
+ },
22
+ };
23
+ },
24
+ reducer(draft, action) {
25
+ doUpdateAccountRecon(draft, action.payload.selectedPeriod, action.payload.accountReconDataPayload);
26
+ },
27
+ },
28
+ excludeReconReviewTransaction: {
29
+ prepare(accountReconKey, excludedTransactionId) {
30
+ return {
31
+ payload: {
32
+ accountReconKey,
33
+ excludedTransactionId,
34
+ },
35
+ };
36
+ },
37
+ reducer(draft, action) {
38
+ const { accountReconKey, excludedTransactionId } = action.payload;
39
+ draft.accountReconByAccountReconKey[accountReconKey] = Object.assign(Object.assign({}, draft.accountReconByAccountReconKey[accountReconKey]), { transactionsToReview: draft.accountReconByAccountReconKey[accountReconKey].transactionsToReview.filter((txn) => txn.transactionId !== excludedTransactionId) });
40
+ },
41
+ },
42
+ addTransactionToReconcileList: {
43
+ prepare(accountReconKey, transactionId) {
44
+ return {
45
+ payload: {
46
+ accountReconKey,
47
+ transactionId,
48
+ },
49
+ };
50
+ },
51
+ reducer(draft, action) {
52
+ const { accountReconKey, transactionId } = action.payload;
53
+ draft.accountReconByAccountReconKey[accountReconKey] = Object.assign(Object.assign({}, draft.accountReconByAccountReconKey[accountReconKey]), { transactionsToReconcile: [
54
+ ...draft.accountReconByAccountReconKey[accountReconKey]
55
+ .transactionsToReconcile,
56
+ transactionId,
57
+ ] });
58
+ },
59
+ },
60
+ clearAllAccountRecon(draft) {
61
+ Object.assign(draft, exports.initialState);
62
+ },
63
+ },
64
+ });
65
+ _a = accountRecon.actions, exports.updateAccountRecon = _a.updateAccountRecon, exports.excludeReconReviewTransaction = _a.excludeReconReviewTransaction, exports.clearAllAccountRecon = _a.clearAllAccountRecon, exports.addTransactionToReconcileList = _a.addTransactionToReconcileList;
66
+ exports.default = accountRecon.reducer;
67
+ const doUpdateAccountRecon = (draft, selectedPeriod, accountReconDataPayload) => {
68
+ accountReconDataPayload.forEach((accountReconData) => {
69
+ draft.accountReconByAccountReconKey[(0, accountReconState_1.toAccountReconKey)(accountReconData.account_id, selectedPeriod)] = (0, accountReconPayload_1.toAccountReconciliationData)(accountReconData);
70
+ });
71
+ };
@@ -0,0 +1,28 @@
1
+ import { Amount, Currency } from '../../commonStateTypes/amount';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
4
+ import { RootState } from '../../reducer';
5
+ import { ZeniDate } from '../../zeniDayJS';
6
+ import { AccountBase } from '../account/accountState';
7
+ import { MatchedTransaction } from '../transaction/stateTypes/reconciliationTransaction';
8
+ import { User } from '../user/userState';
9
+ import { ReconciliationStatusCodeType, TransactionsToReview } from './accountReconState';
10
+ export interface AccountReconciliationEntity {
11
+ account: AccountBase;
12
+ transactionsToReview: TransactionsToReview[];
13
+ transactionsToReconcile: MatchedTransaction[];
14
+ currency: Currency;
15
+ reconciliationId?: ID;
16
+ user?: User;
17
+ balance?: Amount;
18
+ clearedBalance?: Amount;
19
+ initialClearedBalance?: Amount;
20
+ variance?: Amount;
21
+ variancePercentage?: number;
22
+ reconciliationStatus?: {
23
+ code: ReconciliationStatusCodeType;
24
+ label: string;
25
+ };
26
+ accountUpdatedAt?: ZeniDate;
27
+ }
28
+ export declare const getAccountReconByAccountIdAndSelectedPeriod: (state: RootState, accountId: ID, selectedPeriod: MonthYearPeriod) => AccountReconciliationEntity | undefined;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAccountReconByAccountIdAndSelectedPeriod = void 0;
4
+ const toolkit_1 = require("@reduxjs/toolkit");
5
+ const accountSelector_1 = require("../account/accountSelector");
6
+ const transactionSelector_1 = require("../transaction/transactionSelector");
7
+ const userSelector_1 = require("../user/userSelector");
8
+ const accountReconState_1 = require("./accountReconState");
9
+ exports.getAccountReconByAccountIdAndSelectedPeriod = (0, toolkit_1.createSelector)((state) => state.accountState, (state) => state.userState, (state) => state.transactionState, (state) => state.accountReconState, (_state, accountId) => accountId, (_state, _accountId, selectedPeriod) => selectedPeriod, (accountState, userState, transactionState, accountReconState, accountId, selectedPeriod) => {
10
+ const accountReconKey = (0, accountReconState_1.toAccountReconKey)(accountId, selectedPeriod);
11
+ const accountRecon = accountReconState.accountReconByAccountReconKey[accountReconKey];
12
+ if (accountRecon == null) {
13
+ return undefined;
14
+ }
15
+ const account = (0, accountSelector_1.getAccountBase)(accountState, accountRecon.accountId, 'account_reconciliation');
16
+ if (!account) {
17
+ throw new Error(`Account not found for: ${accountRecon.accountId}`);
18
+ }
19
+ const user = accountRecon.userId != null
20
+ ? (0, userSelector_1.getUserByUserId)(userState, accountRecon.userId)
21
+ : undefined;
22
+ const transactionsToReconcile = accountRecon.transactionsToReconcile.map((transactionId) => {
23
+ const matchedTransaction = (0, transactionSelector_1.getMatchedTransactionById)(transactionState, transactionId);
24
+ if (!matchedTransaction) {
25
+ throw new Error(`Transaction not found for: ${transactionId}`);
26
+ }
27
+ return matchedTransaction;
28
+ });
29
+ return {
30
+ account,
31
+ currency: accountRecon.currency,
32
+ balance: accountRecon.bankBalance,
33
+ variance: accountRecon.variance,
34
+ clearedBalance: accountRecon.clearedBalance,
35
+ initialClearedBalance: accountRecon.initialClearedBalance,
36
+ reconciliationId: accountRecon.reconciliationId,
37
+ user,
38
+ transactionsToReview: accountRecon.transactionsToReview,
39
+ transactionsToReconcile,
40
+ reconciliationStatus: accountRecon.reconciliationStatus,
41
+ variancePercentage: accountRecon.variancePercentage,
42
+ accountUpdatedAt: accountRecon.accountUpdatedAt,
43
+ };
44
+ });
@@ -0,0 +1,70 @@
1
+ import { Amount, Currency } from '../../commonStateTypes/amount';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
4
+ import { ZeniDate } from '../../zeniDayJS';
5
+ import { MerchantType, TransactionDirectionType } from '../transaction/stateTypes/reconciliationTransaction';
6
+ import { TransactionType } from '../transaction/stateTypes/transactionType';
7
+ export declare const toRecommendedActionCodeType: (v: string) => "record_expense" | "record_deposit" | "record_transfer" | "record_bill_payment" | "record_cc_payment" | "record_cc_credit";
8
+ export type RecommendedActionCodeType = ReturnType<typeof toRecommendedActionCodeType>;
9
+ export declare const toReconciliationStatusCodeType: (v: string) => "failed" | "completed" | "pending" | "in_progress";
10
+ export type ReconciliationStatusCodeType = ReturnType<typeof toReconciliationStatusCodeType>;
11
+ export declare const toBankStatusCodeType: (v: string) => "connected" | "not_connected" | "reconnect";
12
+ export type BankStatusCodeType = ReturnType<typeof toBankStatusCodeType>;
13
+ export declare const toAccountReconKey: (accountId: ID, selectedPeriod: MonthYearPeriod) => string;
14
+ export type AccountReconKey = ReturnType<typeof toAccountReconKey>;
15
+ export interface AccountReconState {
16
+ accountReconByAccountReconKey: Record<AccountReconKey, AccountReconciliationData>;
17
+ }
18
+ export interface AccountReconciliationData {
19
+ accountId: ID;
20
+ startDate: ZeniDate;
21
+ endDate: ZeniDate;
22
+ transactionsToReview: TransactionsToReview[];
23
+ transactionsToReconcile: ID[];
24
+ currency: Currency;
25
+ reconciliationId?: ID;
26
+ variance?: Amount;
27
+ variancePercentage?: number;
28
+ bankBalance?: Amount;
29
+ clearedBalance?: Amount;
30
+ initialClearedBalance?: Amount;
31
+ userId?: ID;
32
+ reconciliationStatus?: {
33
+ code: ReconciliationStatusCodeType;
34
+ label: string;
35
+ };
36
+ accountUpdatedAt?: ZeniDate;
37
+ }
38
+ export interface TransactionsToReview {
39
+ transactionId: ID;
40
+ amount: Amount;
41
+ status: string;
42
+ transactionDate: ZeniDate;
43
+ memo: string;
44
+ transactionDirection: TransactionDirectionType;
45
+ recommendedAction: RecommendedAction;
46
+ merchantId?: ID;
47
+ merchantName?: string;
48
+ merchantType?: MerchantType;
49
+ }
50
+ export interface RecommendedAction {
51
+ action: RecommendedActionCodeType;
52
+ reason: string;
53
+ recommendedTransactions: RecommendedReviewTransaction[];
54
+ }
55
+ export interface RecommendedReviewTransaction {
56
+ confidenceScore: number;
57
+ recommendedReasons: string[];
58
+ date: ZeniDate;
59
+ memo: string;
60
+ amount: Amount;
61
+ transactionId?: ID;
62
+ bookTransactionId?: ID;
63
+ transactionType?: TransactionType;
64
+ typeName?: string;
65
+ accountId?: ID;
66
+ merchantId?: ID;
67
+ merchantName?: string;
68
+ merchantType?: MerchantType;
69
+ classId?: ID;
70
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toAccountReconKey = exports.toBankStatusCodeType = exports.toReconciliationStatusCodeType = exports.toRecommendedActionCodeType = void 0;
4
+ const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
+ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
6
+ const RECOMMENDED_ACTION_CODE = [
7
+ 'record_expense', // Categorize
8
+ 'record_deposit', // Categorize // Income - no match
9
+ 'record_transfer', // Categorize
10
+ 'record_bill_payment', // Match
11
+ 'record_cc_payment', // Categorize
12
+ 'record_cc_credit', // Categorize
13
+ ];
14
+ const toRecommendedActionCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, RECOMMENDED_ACTION_CODE);
15
+ exports.toRecommendedActionCodeType = toRecommendedActionCodeType;
16
+ const RECONCILIATION_STATUS_CODE = [
17
+ 'pending',
18
+ 'in_progress',
19
+ 'completed',
20
+ 'failed',
21
+ ];
22
+ const toReconciliationStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, RECONCILIATION_STATUS_CODE);
23
+ exports.toReconciliationStatusCodeType = toReconciliationStatusCodeType;
24
+ const BANK_STATUS_CODE = ['connected', 'not_connected', 'reconnect'];
25
+ const toBankStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BANK_STATUS_CODE);
26
+ exports.toBankStatusCodeType = toBankStatusCodeType;
27
+ const toAccountReconKey = (accountId, selectedPeriod) => `${accountId}-${(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)}`;
28
+ exports.toAccountReconKey = toAccountReconKey;
@@ -5,11 +5,11 @@ import { EntityType } from '../entityApprovalStatus/entityApprovalStatusState';
5
5
  import { User } from '../user/userState';
6
6
  export declare const toApprovalActionType: (v: string) => "require_approval" | "send_notification";
7
7
  export type ApprovalActionType = ReturnType<typeof toApprovalActionType>;
8
- export declare const toActorApprovalType: (v: string) => "rejected" | "approved";
8
+ export declare const toActorApprovalType: (v: string) => "approved" | "rejected";
9
9
  export type ActorApprovalType = ReturnType<typeof toActorApprovalType>;
10
10
  export declare const toStepOperatorType: (v: string) => "and" | "or" | "is";
11
11
  export type StepOperatorType = ReturnType<typeof toStepOperatorType>;
12
- export declare const toActorType: (v: string) => "role" | "user" | "attribute";
12
+ export declare const toActorType: (v: string) => "user" | "attribute" | "role";
13
13
  export type ActorType = ReturnType<typeof toActorType>;
14
14
  declare const toAttributeType: (v: string) => "manager" | "vendor_owner" | "manager_of_manager";
15
15
  export type AttributeType = ReturnType<typeof toAttributeType>;
@@ -111,11 +111,11 @@ export interface BulkProcessingDetail {
111
111
  }
112
112
  declare const toBillStageCodeType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
113
113
  export type BillStageCodeType = ReturnType<typeof toBillStageCodeType>;
114
- declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "cancelled" | "paid" | "returned" | "processing" | "posted" | "pending_vendor_action" | "awaiting_to_be_marked_as_paid" | "mark_as_paid";
114
+ declare const toBillPaymentStatusCodeType: (v: string) => "paid" | "failed" | "returned" | "processing" | "posted" | "cancelled" | "pending_vendor_action" | "awaiting_to_be_marked_as_paid" | "mark_as_paid";
115
115
  export type BillPaymentStatusCodeType = ReturnType<typeof toBillPaymentStatusCodeType>;
116
- declare const toBillPaymentRefundStatusCodeType: (v: string) => "failed" | "completed" | "cancelled" | "returned" | "processing";
116
+ declare const toBillPaymentRefundStatusCodeType: (v: string) => "failed" | "returned" | "processing" | "cancelled" | "completed";
117
117
  export type BillPaymentRefundStatusCodeType = ReturnType<typeof toBillPaymentRefundStatusCodeType>;
118
- declare const toBillStatusCodeType: (v: string) => "rejected" | "approved" | "pending_approval" | "initiated";
118
+ declare const toBillStatusCodeType: (v: string) => "approved" | "rejected" | "pending_approval" | "initiated";
119
119
  export type BillStatusCodeType = ReturnType<typeof toBillStatusCodeType>;
120
120
  declare const toBillStatusSummaryCodeType: (v: string) => "rejected" | "approval_in_progress";
121
121
  export type BillStatusSummaryCodeType = ReturnType<typeof toBillStatusSummaryCodeType>;
@@ -131,6 +131,6 @@ export declare const toDeletionSourceType: (v: string) => "zeni_dashboard" | "qb
131
131
  export type DeletionSourceType = ReturnType<typeof toDeletionSourceType>;
132
132
  export declare const toBulkProcessingStateType: (v: string) => "error" | "processing" | "processing_queued" | "processed";
133
133
  export type BulkProcessingStateType = ReturnType<typeof toBulkProcessingStateType>;
134
- export declare const toOutsideZeniPaymentModeType: (v: string) => "other" | "check" | "ach" | "cash" | "ach_same_day" | "us_domestic_wire" | "international_wire";
134
+ export declare const toOutsideZeniPaymentModeType: (v: string) => "check" | "ach" | "cash" | "ach_same_day" | "us_domestic_wire" | "international_wire" | "other";
135
135
  export type OutsideZeniPaymentModeType = ReturnType<typeof toOutsideZeniPaymentModeType>;
136
136
  export {};
@@ -54,7 +54,7 @@ interface CardStatus {
54
54
  code: CardStatusCodeType;
55
55
  name: string;
56
56
  }
57
- export declare const toCardStatusCodeType: (v: string) => "frozen" | "active" | "inactive" | "pending" | "lost" | "stolen" | "closed_by_customer" | "suspected_fraud" | "request_on_hold";
57
+ export declare const toCardStatusCodeType: (v: string) => "pending" | "active" | "inactive" | "stolen" | "lost" | "frozen" | "closed_by_customer" | "suspected_fraud" | "request_on_hold";
58
58
  export type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
59
59
  export interface ValidThru {
60
60
  month: number;
@@ -37,6 +37,6 @@ export interface ChargeCardTransactionState {
37
37
  }
38
38
  export declare const toCardTransactionTypeCode: (v: string) => "purchase";
39
39
  export type ChargeCardTransactionTypeCode = ReturnType<typeof toCardTransactionTypeCode>;
40
- export declare const toCardTransactionStatusCode: (v: string) => "canceled" | "paid" | "authorized" | "declined";
40
+ export declare const toCardTransactionStatusCode: (v: string) => "paid" | "canceled" | "authorized" | "declined";
41
41
  export type ChargeCardTransactionStatusCode = ReturnType<typeof toCardTransactionStatusCode>;
42
42
  export {};
@@ -5,15 +5,15 @@ import { UpdateType } from '../../commonStateTypes/common';
5
5
  import { ClassBasePayload } from './classPayload';
6
6
  import { ClassBase, ClassState } from './classState';
7
7
  export declare const initialState: ClassState;
8
- export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], "class/updateClasses", never, {
9
- reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
8
+ export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], "class/updateClasses", never, {
9
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
10
10
  classesViewParentId: ClassesViewParentID | undefined;
11
11
  updateType: UpdateType;
12
- }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
12
+ }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
13
13
  classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[];
14
14
  currencyPayload: CurrencyPayload;
15
15
  }, "class/updateClassesWithBalancesV2", never, {
16
- reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
16
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
17
17
  sectionId: string;
18
18
  timeframe: "month" | "year" | "quarter";
19
19
  }>, clearAllClasses: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"class/clearAllClasses">;
@@ -25,7 +25,7 @@ export interface Class extends ClassBase {
25
25
  balancesByPeriod?: COABalanceGroupedByPeriod;
26
26
  nestedAccountIds?: NestedAccountIDHierarchy[];
27
27
  }
28
- export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
28
+ export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
29
29
  export type ClassKey = ReturnType<typeof getClassKey>;
30
30
  export interface ClassState {
31
31
  classesByKey: Record<ClassKey, Class>;
@@ -185,7 +185,6 @@ const company = (0, toolkit_1.createSlice)({
185
185
  draft.companiesById[companyId].companyBillPayInfo.internationalWireOnboardingStatus = status;
186
186
  },
187
187
  clearAllCompanies: {
188
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
189
188
  prepare(keepCompanyState) {
190
189
  return { payload: { keepCompanyState } };
191
190
  },
@@ -7,7 +7,7 @@ export interface CustomerBasePayload {
7
7
  logo?: URLPayload;
8
8
  }
9
9
  export declare const toCustomerBase: (payload: CustomerBasePayload, parseOutParentName: boolean) => CustomerBase;
10
- export declare const toCustomerBasePayload: (customer: CustomerBase | undefined) => CustomerBasePayload;
10
+ export declare const toCustomerBasePayload: (customer: CustomerBase | undefined, customerUpdates?: CustomerBase) => CustomerBasePayload;
11
11
  export interface CustomerPayload extends CustomerBasePayload {
12
12
  currency_symbol: string | null;
13
13
  currency_code: string | null;
@@ -12,13 +12,23 @@ const toCustomerBase = (payload, parseOutParentName) => ({
12
12
  logo: payload.logo != null ? (0, urlPayload_1.toURL)(payload.logo) : undefined,
13
13
  });
14
14
  exports.toCustomerBase = toCustomerBase;
15
- const toCustomerBasePayload = (customer) => {
15
+ const toCustomerBasePayload = (customer, customerUpdates) => {
16
16
  var _a, _b;
17
- return ({
18
- customer_id: (_a = (customer && customer.id)) !== null && _a !== void 0 ? _a : '',
19
- customer_name: (_b = (customer && customer.name)) !== null && _b !== void 0 ? _b : '',
20
- qbo_id: customer === null || customer === void 0 ? void 0 : customer.qboId,
21
- });
17
+ if (customerUpdates != null && customerUpdates.id != null) {
18
+ return {
19
+ customer_id: (_a = customerUpdates === null || customerUpdates === void 0 ? void 0 : customerUpdates.id) !== null && _a !== void 0 ? _a : '',
20
+ customer_name: (_b = customerUpdates === null || customerUpdates === void 0 ? void 0 : customerUpdates.name) !== null && _b !== void 0 ? _b : '',
21
+ qbo_id: customerUpdates === null || customerUpdates === void 0 ? void 0 : customerUpdates.qboId,
22
+ };
23
+ }
24
+ else {
25
+ // Customer field is read-only in v1. Will require customerUpdates when made editable
26
+ return {
27
+ customer_id: customer != null ? customer.id : '',
28
+ customer_name: customer != null ? customer.name : '',
29
+ qbo_id: customer != null ? customer.qboId : '',
30
+ };
31
+ }
22
32
  };
23
33
  exports.toCustomerBasePayload = toCustomerBasePayload;
24
34
  const toCustomer = (payload, parseOutParentName = false) => {
@@ -28,6 +28,6 @@ export interface DepositAccountTransactionState {
28
28
  }
29
29
  export declare const toDepositAccountTransactionType: (v: string) => "wire" | "purchase" | "originated_ach" | "ach_originating" | "received_ach" | "returned_ach" | "dishonored_ach" | "book" | "atm" | "fee" | "reversal" | "card_transaction" | "batch_release" | "dispute" | "adjustment" | "interest" | "check_deposit" | "returned_check_deposit" | "payment_canceled";
30
30
  type DepositAccountTransactionType = ReturnType<typeof toDepositAccountTransactionType>;
31
- export declare const toDepositTransactionStatusCode: (v: string) => "failed" | "canceled" | "pending" | "rejected" | "pending_review" | "returned" | "clearing" | "sent" | undefined;
31
+ export declare const toDepositTransactionStatusCode: (v: string) => "rejected" | "pending_review" | "failed" | "returned" | "pending" | "canceled" | "clearing" | "sent" | undefined;
32
32
  export type DepositTransactionStatusCode = ReturnType<typeof toDepositTransactionStatusCode>;
33
33
  export {};
@@ -4,10 +4,10 @@ import { ApprovalActionType, StepOperatorType } from '../approvalRule/approvalRu
4
4
  export declare const ALL_ENTITY_TYPES: readonly ["bill_pay", "reimbursement", "zeni_accounts", "charge_cards"];
5
5
  export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
6
6
  export type EntityType = ReturnType<typeof toEntityType>;
7
- declare const toEntityApprovalStatusCode: (v: string) => "pending" | "rejected" | "approved";
7
+ declare const toEntityApprovalStatusCode: (v: string) => "approved" | "rejected" | "pending";
8
8
  type EntityApprovalStatusCode = ReturnType<typeof toEntityApprovalStatusCode>;
9
9
  export declare const toEntityApprovalStatusCodeStrict: (v: string | null) => EntityApprovalStatusCode | undefined;
10
- export declare const toActivityStatus: (v: string) => "pending" | "rejected" | "approved" | "notified";
10
+ export declare const toActivityStatus: (v: string) => "approved" | "rejected" | "pending" | "notified";
11
11
  export type ActivityStatus = ReturnType<typeof toActivityStatus>;
12
12
  export interface Actor {
13
13
  type: string;
@@ -43,8 +43,8 @@ export interface AttachmentFile {
43
43
  fileName: string;
44
44
  }
45
45
  export type FileSizeUnit = 'bytes';
46
- declare const toSupportedFileType: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain";
47
- export declare const toSupportedFileTypeStrict: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain" | undefined;
46
+ declare const toSupportedFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain";
47
+ export declare const toSupportedFileTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain" | undefined;
48
48
  export type SupportedFileType = ReturnType<typeof toSupportedFileType>;
49
49
  declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt";
50
50
  export type SupportedFileFormatType = ReturnType<typeof toSupportedFileFormatType>;
@@ -52,7 +52,7 @@ export declare const SUPPORTED_ATTACHMENT_FILE_TYPES: readonly ["application/pdf
52
52
  export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
53
53
  export type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
54
54
  export declare const SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES: readonly ["application/x-excel", "application/pdf", "image/jpeg", "image/jpg", "image/png", "text/csv", "image/tiff", "image/tif", "image/gif", "text/xml", "application/xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/msword"];
55
- export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/xml" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "application/msword";
55
+ export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "text/xml" | "application/xml" | "application/msword";
56
56
  export type SupportedTransactionLineAttachmentFileType = ReturnType<typeof toSupportedTransactionLineAttachmentFileType>;
57
57
  export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
58
58
  type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
6
+ export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
7
7
  export interface Forecast {
8
8
  id: ID;
9
9
  type: ForecastType;
@@ -18,8 +18,8 @@ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreator
18
18
  jeSchedulesPayload: JEAccruedScheduledTransactionPayload[];
19
19
  scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
20
20
  updateType: UpdateType;
21
- }, "jeSchedules/updateAccruedJESchedulesDetails", never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
- jeScheduleTransactionKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
21
+ }, "jeSchedules/updateAccruedJESchedulesDetails", never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
+ jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
23
23
  }, "jeSchedules/deleteJESchedulesDetails", never, never>, deleteAccruedJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[JEScheduleKey: `${string}_${string}`], {
24
24
  JEScheduleKey: `${string}_${string}`;
25
25
  }, "jeSchedules/deleteAccruedJESchedulesDetails", never, never>, clearAllAccruedJESchedules: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"jeSchedules/clearAllAccruedJESchedules">, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"jeSchedules/clearAllJEScheduleTransactions">;
@@ -6,9 +6,9 @@ export declare const ALL_SCHEDULES_TYPES: readonly ["prepaid_expenses", "fixed_a
6
6
  export declare const toScheduleTypesType: (v: string) => "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
7
7
  export type ScheduleTypes = ReturnType<typeof toScheduleTypesType>;
8
8
  export declare const toScheduleTypesTypeStrict: (v?: string) => "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue" | undefined;
9
- export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "unknown" | "canceled" | "pending" | "posted" | "recorded";
9
+ export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "posted" | "pending" | "unknown" | "canceled" | "recorded";
10
10
  export type ScheduleJournalEntryStatusCodeType = ReturnType<typeof toScheduleJournalEntryStatusCodeType>;
11
- export declare const toScheduleStatusCodeType: (v: string) => "new" | "completed" | "draft" | "ongoing" | "marked_as_completed";
11
+ export declare const toScheduleStatusCodeType: (v: string) => "draft" | "completed" | "new" | "ongoing" | "marked_as_completed";
12
12
  export type ScheduleStatusCodeType = ReturnType<typeof toScheduleStatusCodeType>;
13
13
  export declare const toJournalEntryErrorCodeType: (v: string) => "vendor_deleted" | "debit_category_deleted" | "credit_category_deleted" | "qbo_error" | "qbo_authorization_error" | "qbo_invalid_company_status_error" | "qbo_book_close_date_error";
14
14
  export type JournalEntryErrorCodeType = ReturnType<typeof toJournalEntryErrorCodeType>;
@@ -3,8 +3,8 @@ export declare const toNotificationGroup: (v: string) => "task_manager";
3
3
  export type NotificationGroup = ReturnType<typeof toNotificationGroup>;
4
4
  export declare const toNotificationStatus: (v: string) => "read" | "unread";
5
5
  export type NotificationStatus = ReturnType<typeof toNotificationStatus>;
6
- export declare const toNotificationMode: (v: string) => "email" | "dashboard";
7
- export declare const toNotificationModeStrict: (v: string) => "email" | "dashboard" | undefined;
6
+ export declare const toNotificationMode: (v: string) => "dashboard" | "email";
7
+ export declare const toNotificationModeStrict: (v: string) => "dashboard" | "email" | undefined;
8
8
  export type NotificationMode = ReturnType<typeof toNotificationMode>;
9
9
  export declare const toNotificationActivityType: (v: string) => "task_assigned" | "task_status_updated" | "task_activities" | "task_created" | "task_deleted" | "task_archived" | "task_due" | "task_overdue";
10
10
  export type NotificationActivityType = ReturnType<typeof toNotificationActivityType>;
@@ -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}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${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}-zeni_accounts_promo_card+${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}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${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}-zeni_accounts_promo_card+${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}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}`;
14
14
  export 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}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${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}-zeni_accounts_promo_card` | `${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}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
12
12
  export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
4
4
  import { ClassMetadataPayload } from '../class/classPayload';
5
5
  import { SectionClassesViewStateV2 } from './sectionClassesViewState';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", 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" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
9
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "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" | "zeni_accounts_promo_card" | "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" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];