@zeniai/client-epic-state 4.15.34 → 4.15.36

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 (191) hide show
  1. package/lib/commonPayloadTypes/recommendationPayload.d.ts +1 -0
  2. package/lib/commonStateTypes/timePeriod.d.ts +1 -1
  3. package/lib/commonStateTypes/timePeriod.js +2 -2
  4. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
  5. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  6. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
  7. package/lib/configureStore.js +2 -1
  8. package/lib/entity/account/accountState.d.ts +1 -1
  9. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  10. package/lib/entity/accountRecon/accountReconPayload.d.ts +70 -0
  11. package/lib/entity/accountRecon/accountReconPayload.js +125 -0
  12. package/lib/entity/accountRecon/accountReconReducer.d.ts +16 -0
  13. package/lib/entity/accountRecon/accountReconReducer.js +71 -0
  14. package/lib/entity/accountRecon/accountReconSelector.d.ts +28 -0
  15. package/lib/entity/accountRecon/accountReconSelector.js +44 -0
  16. package/lib/entity/accountRecon/accountReconState.d.ts +70 -0
  17. package/lib/entity/accountRecon/accountReconState.js +28 -0
  18. package/lib/entity/class/classReducer.d.ts +4 -4
  19. package/lib/entity/class/classState.d.ts +1 -1
  20. package/lib/entity/company/companyReducer.js +0 -1
  21. package/lib/entity/customer/customerPayload.d.ts +1 -1
  22. package/lib/entity/customer/customerPayload.js +16 -6
  23. package/lib/entity/forecast/forecastState.d.ts +1 -1
  24. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  25. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  26. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  27. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  28. package/lib/entity/snackbar/snackbarTypes.js +4 -0
  29. package/lib/entity/task/taskState.d.ts +1 -1
  30. package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
  31. package/lib/entity/tenant/clearAllEpic.js +4 -0
  32. package/lib/entity/tenant/tenantReducer.js +0 -1
  33. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  34. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +1 -2
  35. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +35 -0
  36. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +53 -0
  37. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
  38. package/lib/entity/transaction/payloadTypes/transactionPayload.js +9 -6
  39. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +9 -1
  40. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +23 -2
  41. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +32 -0
  42. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +10 -0
  43. package/lib/entity/transaction/stateTypes/transaction.d.ts +3 -1
  44. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  45. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  46. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +5 -0
  47. package/lib/entity/transaction/stateTypes/vendorTransaction.js +5 -1
  48. package/lib/entity/transaction/toSupportedTransaction.js +6 -1
  49. package/lib/entity/transaction/transactionReducer.d.ts +17 -0
  50. package/lib/entity/transaction/transactionReducer.js +47 -2
  51. package/lib/entity/transaction/transactionSelector.d.ts +2 -0
  52. package/lib/entity/transaction/transactionSelector.js +5 -0
  53. package/lib/entity/transaction/transactionState.d.ts +6 -4
  54. package/lib/entity/vendorExpense/vendorExpenseReducer.js +0 -1
  55. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  56. package/lib/epic.d.ts +6 -1
  57. package/lib/epic.js +6 -1
  58. package/lib/index.d.ts +22 -13
  59. package/lib/index.js +56 -27
  60. package/lib/init.d.ts +2 -1
  61. package/lib/init.js +9 -2
  62. package/lib/reducer.d.ts +7 -1
  63. package/lib/reducer.js +6 -0
  64. package/lib/view/accountList/accountListReducer.js +1 -3
  65. package/lib/view/accountMappingView/accountMappingReducer.js +0 -1
  66. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +1 -2
  67. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  68. package/lib/view/balanceSheet/balanceSheetReducer.js +1 -6
  69. package/lib/view/bankAccountView/bankAccountViewReducer.js +0 -1
  70. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  71. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  72. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  73. package/lib/view/cashFlow/cashFlowReducer.js +1 -4
  74. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  75. package/lib/view/cashPosition/cashPositionReducer.js +0 -1
  76. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  77. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +1 -3
  78. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  79. package/lib/view/companyView/companyViewReducer.js +1 -10
  80. package/lib/view/dashboard/dashboardEpic.js +0 -2
  81. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  82. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +15 -0
  83. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +118 -0
  84. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +10 -0
  85. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +49 -0
  86. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +14 -0
  87. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +169 -0
  88. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +9 -0
  89. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +154 -0
  90. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +6 -0
  91. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +110 -0
  92. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
  93. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +24 -10
  94. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
  95. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +14 -0
  96. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +32 -5
  97. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  98. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +1 -5
  99. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +17 -2
  100. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  101. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  102. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +7 -0
  103. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +18 -0
  104. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +111 -35
  105. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  106. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +84 -10
  107. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +28 -0
  108. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +51 -0
  109. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +66 -0
  110. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +384 -0
  111. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +12 -1
  112. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +66 -7
  113. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +2 -0
  114. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  115. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +51 -0
  116. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +7 -0
  117. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +5 -0
  118. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +250 -0
  119. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +103 -0
  120. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +38 -0
  121. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +10 -0
  122. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  123. package/lib/view/financeStatement/financeStatementReducer.js +1 -4
  124. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  125. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +3 -10
  126. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +1 -6
  127. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +0 -1
  128. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +0 -3
  129. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  130. package/lib/view/opEx/opExReducer.js +4 -14
  131. package/lib/view/opExByVendor/opExByVendorReducer.js +1 -3
  132. package/lib/view/opExClassesView/opExClassesViewReducer.js +1 -6
  133. package/lib/view/people/fetchPeopleEpic.js +1 -3
  134. package/lib/view/people/invitePeopleEpic.js +1 -3
  135. package/lib/view/people/inviteZeniPeopleEpic.js +1 -3
  136. package/lib/view/people/peopleReducer.js +0 -1
  137. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  138. package/lib/view/profitAndLoss/profitAndLossReducer.js +1 -6
  139. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +1 -6
  140. package/lib/view/recommendation/recommendationReducer.js +1 -4
  141. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  142. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +1 -3
  143. package/lib/view/revenue/revenueReducer.js +3 -10
  144. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +1 -6
  145. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  146. package/lib/view/settingsView/settingsViewReducer.js +0 -1
  147. package/lib/view/spendManagement/billPay/billList/billListReducer.js +0 -1
  148. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +5 -1
  149. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +0 -6
  150. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +4 -3
  151. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +1 -3
  152. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +2 -1
  153. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +11 -3
  154. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +2 -1
  155. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +3 -1
  156. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  157. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +2 -6
  158. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +1 -3
  159. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +0 -1
  160. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
  161. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
  162. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
  163. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +5 -4
  164. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
  165. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +14 -0
  166. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +78 -1
  167. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +3 -1
  168. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +2 -1
  169. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +2 -1
  170. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +9 -0
  171. package/lib/view/subscriptionView/subscriptionViewReducer.js +0 -1
  172. package/lib/view/subscriptionView/types/subscriptionTypes.js +0 -1
  173. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +1 -3
  174. package/lib/view/tasksCard/fetchTasksCardEpic.js +1 -2
  175. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  176. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  177. package/lib/view/topEx/topExSelector.d.ts +1 -1
  178. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +45 -15
  179. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -4
  180. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +69 -13
  181. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +11 -2
  182. package/lib/view/transactionDetail/transactionDetailReducer.js +51 -21
  183. package/lib/view/transactionDetail/transactionDetailState.d.ts +1 -0
  184. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +8 -0
  185. package/lib/view/transactionList/transactionListByEntitySelector.js +0 -2
  186. package/lib/view/transactionList/transactionListReducer.js +4 -6
  187. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +0 -1
  188. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +1 -3
  189. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  190. package/lib/zeniAPI.d.ts +1 -0
  191. package/package.json +9 -3
@@ -41,9 +41,7 @@ const accountList = (0, toolkit_1.createSlice)({
41
41
  initialState: exports.initialState,
42
42
  reducers: {
43
43
  fetchAccountList: {
44
- reducer(draft,
45
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
46
- action) {
44
+ reducer(draft, action) {
47
45
  const existingData = draft.byReportId[action.payload.accountListKey];
48
46
  draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, existingData), { fetchState: 'In-Progress', error: undefined });
49
47
  },
@@ -71,7 +71,6 @@ const accountMapping = (0, toolkit_1.createSlice)({
71
71
  name: 'accountMapping',
72
72
  initialState: exports.initialState,
73
73
  reducers: {
74
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
75
74
  initializeAccountMappingView(draft) {
76
75
  draft.data = exports.initialState.data;
77
76
  },
@@ -29,8 +29,7 @@ const apAgingDetail = (0, toolkit_1.createSlice)({
29
29
  const entityKey = (0, agingReportStateTypes_1.getAgingDetailReportEntityKey)(vendorId, reportDate);
30
30
  draft.apAgingDetailByVendorId[entityKey] = Object.assign(Object.assign({}, draft.apAgingDetailByVendorId[entityKey]), { fetchState: 'In-Progress', error: undefined, invoices: [] });
31
31
  },
32
- prepare(vendorId, reportDate, cacheOverride = false // eslint-disable-line @typescript-eslint/no-inferrable-types,
33
- ) {
32
+ prepare(vendorId, reportDate, cacheOverride = false) {
34
33
  return {
35
34
  payload: {
36
35
  cacheOverride,
@@ -5,7 +5,7 @@ import { ZeniDate } from '../../zeniDayJS';
5
5
  import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
6
6
  export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "reports" | "transactions";
7
7
  export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
8
- declare const toAuditRuleEntityIdType: (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" | "uncategorized-expense" | "uncategorized-income";
8
+ declare const toAuditRuleEntityIdType: (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" | "account_reconciliation" | "uncategorized-expense" | "uncategorized-income";
9
9
  export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
10
10
  export declare const toAuditRuleTypeIdType: (v: string) => "accounting" | "business";
11
11
  type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
@@ -36,7 +36,6 @@ const balanceSheet = (0, toolkit_1.createSlice)({
36
36
  initialState: exports.initialState,
37
37
  reducers: {
38
38
  fetchBalanceSheet: {
39
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
40
39
  prepare(cacheOverride = false) {
41
40
  return { payload: { cacheOverride } };
42
41
  },
@@ -49,11 +48,7 @@ const balanceSheet = (0, toolkit_1.createSlice)({
49
48
  },
50
49
  },
51
50
  fetchBalanceSheetForTimeframe: {
52
- prepare(timeframe,
53
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
54
- fetchFullReport = true,
55
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
56
- cacheOverride = false) {
51
+ prepare(timeframe, fetchFullReport = true, cacheOverride = false) {
57
52
  return {
58
53
  payload: { timeframe, fetchFullReport, cacheOverride },
59
54
  };
@@ -45,7 +45,6 @@ const bankAccountView = (0, toolkit_1.createSlice)({
45
45
  },
46
46
  },
47
47
  createInternationalBankAccount: {
48
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
48
  reducer(draft) {
50
49
  draft.createInternationalBankAccountDetails.createStatus.fetchState =
51
50
  'In-Progress';
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getBillPayCardReport: (state: RootState) => {
3
- 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";
3
+ 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" | "account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCardBalance: (state: RootState) => {
3
- 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";
3
+ 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" | "account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getCashBalance: (state: RootState) => {
3
- 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";
3
+ 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" | "account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -37,7 +37,6 @@ const cashFlow = (0, toolkit_1.createSlice)({
37
37
  initialState: exports.initialState,
38
38
  reducers: {
39
39
  fetchCashFlow: {
40
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
41
40
  prepare(fetchFullReport = false, cacheOverride = true) {
42
41
  return { payload: { fetchFullReport, cacheOverride } };
43
42
  },
@@ -47,9 +46,7 @@ const cashFlow = (0, toolkit_1.createSlice)({
47
46
  },
48
47
  },
49
48
  fetchCashFlowForTimeframe: {
50
- prepare(timeframe,
51
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
52
- fetchFullReport = true) {
49
+ prepare(timeframe, fetchFullReport = true) {
53
50
  return {
54
51
  payload: { timeframe, fetchFullReport },
55
52
  };
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- 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";
18
+ 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" | "account_reconciliation";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -48,7 +48,6 @@ const cashPosition = (0, toolkit_1.createSlice)({
48
48
  initialState: exports.initialState,
49
49
  reducers: {
50
50
  fetchCashPosition: {
51
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
52
51
  prepare(fetchFullReport = false) {
53
52
  return { payload: { fetchFullReport } };
54
53
  },
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- 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";
15
+ 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" | "account_reconciliation";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -45,9 +45,7 @@ const fetchAndUpdateVendorRecommendationsEpic = (actions$, state$) => actions$.p
45
45
  }));
46
46
  exports.fetchAndUpdateVendorRecommendationsEpic = fetchAndUpdateVendorRecommendationsEpic;
47
47
  // just updates the local state with new data
48
- const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$,
49
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
50
- state$) => actions$.pipe((0, operators_1.filter)(vendorViewReducer_1.waitForVendorRecommendationAndUpdatedRecommendationByLineId.match
48
+ const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(vendorViewReducer_1.waitForVendorRecommendationAndUpdatedRecommendationByLineId.match
51
49
  // Wait For vendor recommendation and updated recommendation by line id
52
50
  ), (0, operators_1.switchMap)((action) => {
53
51
  const { vendorName } = action.payload;
@@ -36,8 +36,8 @@ export declare const fetchVendorsTabVendorDetails: import("@reduxjs/toolkit").Ac
36
36
  }, "vendorsTabVendorView/fetchVendorsTabVendorDetailPageView", never, never>, updateVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
37
37
  timePeriod: TimePeriod;
38
38
  numberOfQuartersFetched: number;
39
- }, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year"], {
40
- vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
39
+ }, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "variance" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year"], {
40
+ vendorSpendTrendfilterTabValue: "last_month" | "variance" | "last_30_days" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
41
41
  }, "vendorsTabVendorView/updateVendorSpendTrendFilterTabValue", never, never>, resetVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetVendorsTabVendorAllTransactionsTabData">, updateContactsInVendorTabDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
42
42
  vendorId: ID;
43
43
  localData?: Partial<VendorsTabVendorDetailLocalData>;
@@ -49,7 +49,6 @@ const companyView = (0, toolkit_1.createSlice)({
49
49
  reducer() {
50
50
  // Do nothing.
51
51
  },
52
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
53
52
  prepare(cacheOverride = false) {
54
53
  return { payload: { cacheOverride } };
55
54
  },
@@ -58,7 +57,6 @@ const companyView = (0, toolkit_1.createSlice)({
58
57
  reducer() {
59
58
  // Do nothing.
60
59
  },
61
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
62
60
  prepare(cacheOverride = false) {
63
61
  return { payload: { cacheOverride } };
64
62
  },
@@ -67,9 +65,7 @@ const companyView = (0, toolkit_1.createSlice)({
67
65
  reducer() {
68
66
  // Do nothing.
69
67
  },
70
- prepare(
71
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
72
- cacheOverride = false, fetchFullResponse, companyId) {
68
+ prepare(cacheOverride = false, fetchFullResponse, companyId) {
73
69
  return { payload: { cacheOverride, fetchFullResponse, companyId } };
74
70
  },
75
71
  },
@@ -77,7 +73,6 @@ const companyView = (0, toolkit_1.createSlice)({
77
73
  reducer() {
78
74
  // Do nothing.
79
75
  },
80
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
81
76
  prepare(cacheOverride = false, fetchFullResponse) {
82
77
  return { payload: { cacheOverride, fetchFullResponse } };
83
78
  },
@@ -86,13 +81,11 @@ const companyView = (0, toolkit_1.createSlice)({
86
81
  reducer() {
87
82
  // Do nothing.
88
83
  },
89
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
90
84
  prepare(cacheOverride = false, fetchFullResponse) {
91
85
  return { payload: { cacheOverride, fetchFullResponse } };
92
86
  },
93
87
  },
94
88
  fetchCompanyManagementView: {
95
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
96
89
  prepare(fetchFullResponse = false, companyParentId) {
97
90
  return { payload: { fetchFullResponse, companyParentId } };
98
91
  },
@@ -105,7 +98,6 @@ const companyView = (0, toolkit_1.createSlice)({
105
98
  },
106
99
  },
107
100
  fetchParentSubsidiaryManagementView: {
108
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
109
101
  prepare(fetchFullResponse = false, companyParentId) {
110
102
  return { payload: { fetchFullResponse, companyParentId } };
111
103
  },
@@ -469,7 +461,6 @@ const companyView = (0, toolkit_1.createSlice)({
469
461
  },
470
462
  },
471
463
  fetchCompanyPortfolioView: {
472
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
473
464
  prepare(fetchFullResponse = false) {
474
465
  return { payload: { fetchFullResponse } };
475
466
  },
@@ -109,7 +109,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
109
109
  opExState.fetchState !== 'Completed') {
110
110
  fetchActions.push((0, opExReducer_1.fetchOpEx)(fetchFullReport));
111
111
  }
112
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
113
112
  if (revenueState.fetchState !== 'In-Progress' &&
114
113
  revenueState.fetchState !== 'Completed') {
115
114
  fetchActions.push((0, revenueReducer_1.fetchRevenue)(fetchFullReport));
@@ -169,7 +168,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
169
168
  fetchActions.push((0, billPayCardReducer_1.fetchBillPayCard)());
170
169
  }
171
170
  if (state.reimbursementCardState.fetchState !== 'In-Progress' &&
172
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
173
171
  !state.reimbursementCardState.hasValidState() &&
174
172
  isReimbursementFeatureEnabled === true &&
175
173
  isAdmin) {
@@ -1,12 +1,12 @@
1
1
  import { DashboardState } from './dashboardState';
2
2
  export declare const initialState: DashboardState;
3
- export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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" | "account_reconciliation")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
6
  tenantId: string;
7
7
  fetchFullReport: any;
8
8
  cacheOverride: any;
9
- excludeResources: ("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
+ excludeResources: ("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" | "account_reconciliation")[];
10
10
  }, "dashboard/fetchDashboard", never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"dashboard/clearDashboard">;
11
11
  declare const _default: import("redux").Reducer<DashboardState>;
12
12
  export default _default;
@@ -0,0 +1,15 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { ID } from '../../../../commonStateTypes/common';
4
+ import { updateAccounts } from '../../../../entity/account/accountReducer';
5
+ import { TransactionsToReviewPayload } from '../../../../entity/accountRecon/accountReconPayload';
6
+ import { updateAccountRecon } from '../../../../entity/accountRecon/accountReconReducer';
7
+ import { updateMultipleReconcileTransactions } from '../../../../entity/transaction/transactionReducer';
8
+ import { updateAllUsers } from '../../../../entity/user/userReducer';
9
+ import { RootState } from '../../../../reducer';
10
+ import { ZeniAPI } from '../../../../zeniAPI';
11
+ import { fetchReconciliation, fetchReconciliationFailure, fetchReconciliationSuccess, initialiseLocalDataForSelectedAccountId, initializeReconciliationReviewTabLocalData, updateReconcileTabLocalData } from '../../reducers/reconciliationViewReducer';
12
+ import { ReconciliationReviewTabLocalData } from '../../types/reconciliationViewState';
13
+ export type ActionType = ReturnType<typeof fetchReconciliation> | ReturnType<typeof fetchReconciliationFailure> | ReturnType<typeof fetchReconciliationSuccess> | ReturnType<typeof initialiseLocalDataForSelectedAccountId> | ReturnType<typeof initializeReconciliationReviewTabLocalData> | ReturnType<typeof updateAccountRecon> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateMultipleReconcileTransactions> | ReturnType<typeof updateReconcileTabLocalData>;
14
+ export declare const fetchReconciliationViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
15
+ export declare const prepareReviewTabLocalData: (transactionsToReview: TransactionsToReviewPayload[]) => Record<ID, ReconciliationReviewTabLocalData>;
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareReviewTabLocalData = exports.fetchReconciliationViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const timePeriod_1 = require("../../../../commonStateTypes/timePeriod");
7
+ const accountReducer_1 = require("../../../../entity/account/accountReducer");
8
+ const accountReconReducer_1 = require("../../../../entity/accountRecon/accountReconReducer");
9
+ const accountReconSelector_1 = require("../../../../entity/accountRecon/accountReconSelector");
10
+ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
11
+ const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
12
+ const userReducer_1 = require("../../../../entity/user/userReducer");
13
+ const responsePayload_1 = require("../../../../responsePayload");
14
+ const reconciliationHelpers_1 = require("../../helpers/reconciliationHelpers");
15
+ const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
16
+ const saveReconciliationDetailEpic_1 = require("./saveReconciliationDetailEpic");
17
+ const fetchReconciliationViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(reconciliationViewReducer_1.fetchReconciliation.match), (0, operators_1.mergeMap)((action) => {
18
+ const { accountId, cacheOverride, refreshViewInBackground } = action.payload;
19
+ const state = state$.value;
20
+ const { expenseAutomationViewState: { selectedPeriodByTenantId }, expenseAutomationReconciliationViewState: { accountReconciliationRecordsBySelectedPeriod: accountReconciliationRecords, }, } = state;
21
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
22
+ const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
23
+ let reconciliationData = undefined;
24
+ let reconciliationId = undefined;
25
+ if (accountId != null) {
26
+ reconciliationData = (0, accountReconSelector_1.getAccountReconByAccountIdAndSelectedPeriod)(state, accountId, selectedPeriod);
27
+ reconciliationId = reconciliationData === null || reconciliationData === void 0 ? void 0 : reconciliationData.reconciliationId;
28
+ }
29
+ let fetchState;
30
+ if (accountId != null) {
31
+ fetchState =
32
+ accountReconciliationRecords[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)]
33
+ .reconciliationByAccountID[accountId].transactionFetchState
34
+ .fetchState;
35
+ }
36
+ else {
37
+ fetchState = state.expenseAutomationReconciliationViewState.fetchState;
38
+ }
39
+ if (cacheOverride === true || fetchState !== 'Completed') {
40
+ const { start, end } = (0, timePeriod_1.convertToPeriod)(selectedPeriod, true);
41
+ const queryParam = {
42
+ start_date: start.toString(),
43
+ end_date: end.toString(),
44
+ };
45
+ if (accountId != null) {
46
+ queryParam.account_id = accountId;
47
+ }
48
+ const apiUrl = reconciliationId != null
49
+ ? `${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation/${reconciliationId}`
50
+ : `${zeniAPI.apiEndPoints.reconciliationMicroServiceBaseUrl}/1.0/reconciliation?query=${encodeURIComponent(JSON.stringify(queryParam))}`;
51
+ return zeniAPI.getJSON(apiUrl).pipe((0, operators_1.mergeMap)((response) => {
52
+ var _a, _b, _c, _d;
53
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
54
+ const updateActions = [];
55
+ updateActions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, 'account_reconciliation'));
56
+ updateActions.push((0, userReducer_1.updateAllUsers)({
57
+ users: (_a = response.data.users) !== null && _a !== void 0 ? _a : [],
58
+ updateType: 'merge',
59
+ }));
60
+ const allTransactionsPerRecon = (0, reconciliationHelpers_1.getAllReviewTransactionsFromReconcilePayload)(response.data.reconciliation);
61
+ updateActions.push((0, transactionReducer_1.updateMultipleReconcileTransactions)(allTransactionsPerRecon, 'merge'));
62
+ updateActions.push((0, accountReconReducer_1.updateAccountRecon)(selectedPeriod, response.data.reconciliation));
63
+ const reviewTabLocalData = (0, exports.prepareReviewTabLocalData)((_d = (_c = (_b = response.data.reconciliation[0]) === null || _b === void 0 ? void 0 : _b.transactions) === null || _c === void 0 ? void 0 : _c.review) !== null && _d !== void 0 ? _d : []);
64
+ if (accountId != null) {
65
+ const selectedTransactionIds = (0, saveReconciliationDetailEpic_1.getTransactionIdFromCheckedMatchedTransactionPayload)(response.data.reconciliation[0].transactions.reconcile);
66
+ updateActions.push((0, reconciliationViewReducer_1.updateReconcileTabLocalData)({
67
+ selectedTransactionIds: selectedTransactionIds,
68
+ }));
69
+ updateActions.push((0, reconciliationViewReducer_1.initializeReconciliationReviewTabLocalData)(reviewTabLocalData));
70
+ }
71
+ updateActions.push((0, reconciliationViewReducer_1.fetchReconciliationSuccess)(selectedPeriod, response.data, refreshViewInBackground, accountId));
72
+ return (0, rxjs_1.from)(updateActions);
73
+ }
74
+ else {
75
+ return (0, rxjs_1.of)((0, reconciliationViewReducer_1.fetchReconciliationFailure)({
76
+ error: response.status,
77
+ selectedPeriod,
78
+ refreshViewInBackground,
79
+ accountId: accountId,
80
+ }));
81
+ }
82
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, reconciliationViewReducer_1.fetchReconciliationFailure)({
83
+ error: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', `fetch reconciliation view REST API call errored out ${JSON.stringify(error)}`),
84
+ refreshViewInBackground,
85
+ selectedPeriod,
86
+ accountId: accountId,
87
+ }))));
88
+ }
89
+ else {
90
+ const updateActions = [];
91
+ if (accountId != null) {
92
+ updateActions.push((0, reconciliationViewReducer_1.initialiseLocalDataForSelectedAccountId)());
93
+ }
94
+ return (0, rxjs_1.from)(updateActions);
95
+ }
96
+ }));
97
+ exports.fetchReconciliationViewEpic = fetchReconciliationViewEpic;
98
+ const prepareReviewTabLocalData = (transactionsToReview) => {
99
+ return transactionsToReview.reduce((prev, currentTransaction) => {
100
+ var _a, _b, _c, _d, _e, _f;
101
+ const localData = {
102
+ memo: currentTransaction.transaction_memo,
103
+ categoryId: (_b = (_a = currentTransaction.recommended_action.recommended_transactions[0]) === null || _a === void 0 ? void 0 : _a.account_id) !== null && _b !== void 0 ? _b : undefined,
104
+ classId: (_d = (_c = currentTransaction.recommended_action.recommended_transactions[0]) === null || _c === void 0 ? void 0 : _c.class_id) !== null && _d !== void 0 ? _d : undefined,
105
+ vendor: ((_e = currentTransaction.recommended_action.recommended_transactions[0]) === null || _e === void 0 ? void 0 : _e.merchant_id) != null &&
106
+ ((_f = currentTransaction.recommended_action.recommended_transactions[0]) === null || _f === void 0 ? void 0 : _f.merchant_name) != null
107
+ ? {
108
+ id: currentTransaction.recommended_action
109
+ .recommended_transactions[0].merchant_id,
110
+ name: currentTransaction.recommended_action
111
+ .recommended_transactions[0].merchant_name,
112
+ }
113
+ : undefined,
114
+ };
115
+ return Object.assign(Object.assign({}, prev), { [currentTransaction.transaction_id]: localData });
116
+ }, {});
117
+ };
118
+ exports.prepareReviewTabLocalData = prepareReviewTabLocalData;
@@ -0,0 +1,10 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { ID } from '../../../../commonStateTypes/common';
4
+ import { TransactionsToReview } from '../../../../entity/accountRecon/accountReconState';
5
+ import { RootState } from '../../../../reducer';
6
+ import { initialiseLocalDataForSelectedAccountId, initializeReconciliationReviewTabLocalData, updateReconcileTabLocalData } from '../../reducers/reconciliationViewReducer';
7
+ import { ReconciliationReviewTabLocalData } from '../../types/reconciliationViewState';
8
+ export type ActionType = ReturnType<typeof initialiseLocalDataForSelectedAccountId> | ReturnType<typeof initializeReconciliationReviewTabLocalData> | ReturnType<typeof updateReconcileTabLocalData>;
9
+ export declare const initialiseDataForSelectedAccountIdEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
10
+ export declare const prepareReviewTabLocalData: (transactionsToReview: TransactionsToReview[]) => Record<ID, ReconciliationReviewTabLocalData>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareReviewTabLocalData = exports.initialiseDataForSelectedAccountIdEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const accountReconSelector_1 = require("../../../../entity/accountRecon/accountReconSelector");
7
+ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
8
+ const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
9
+ const initialiseDataForSelectedAccountIdEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(reconciliationViewReducer_1.initialiseLocalDataForSelectedAccountId.match), (0, operators_1.mergeMap)(() => {
10
+ var _a, _b, _c;
11
+ const state = state$.value;
12
+ const { expenseAutomationViewState: { selectedPeriodByTenantId }, expenseAutomationReconciliationViewState: { selectedAccountId }, } = state;
13
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
14
+ const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
15
+ const actions = [];
16
+ if (selectedAccountId != null) {
17
+ const reconEntity = (0, accountReconSelector_1.getAccountReconByAccountIdAndSelectedPeriod)(state, selectedAccountId, selectedPeriod);
18
+ const checkedTransactions = (_a = reconEntity === null || reconEntity === void 0 ? void 0 : reconEntity.transactionsToReconcile) === null || _a === void 0 ? void 0 : _a.filter((transaction) => transaction.isTransactionChecked);
19
+ const selectedTransactionIds = (_b = checkedTransactions === null || checkedTransactions === void 0 ? void 0 : checkedTransactions.map((transaction) => transaction.id)) !== null && _b !== void 0 ? _b : [];
20
+ actions.push((0, reconciliationViewReducer_1.updateReconcileTabLocalData)({
21
+ selectedTransactionIds: selectedTransactionIds,
22
+ }));
23
+ const reviewTabLocalData = (0, exports.prepareReviewTabLocalData)((_c = reconEntity === null || reconEntity === void 0 ? void 0 : reconEntity.transactionsToReview) !== null && _c !== void 0 ? _c : []);
24
+ actions.push((0, reconciliationViewReducer_1.initializeReconciliationReviewTabLocalData)(reviewTabLocalData));
25
+ }
26
+ return (0, rxjs_1.from)(actions);
27
+ }));
28
+ exports.initialiseDataForSelectedAccountIdEpic = initialiseDataForSelectedAccountIdEpic;
29
+ const prepareReviewTabLocalData = (transactionsToReview) => {
30
+ return transactionsToReview.reduce((prev, currentTransaction) => {
31
+ var _a, _b, _c, _d, _e, _f;
32
+ const localData = {
33
+ memo: currentTransaction.memo,
34
+ categoryId: (_b = (_a = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _a === void 0 ? void 0 : _a.accountId) !== null && _b !== void 0 ? _b : undefined,
35
+ classId: (_d = (_c = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _c === void 0 ? void 0 : _c.classId) !== null && _d !== void 0 ? _d : undefined,
36
+ vendor: ((_e = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _e === void 0 ? void 0 : _e.merchantId) != null &&
37
+ ((_f = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _f === void 0 ? void 0 : _f.merchantName) != null
38
+ ? {
39
+ id: currentTransaction.recommendedAction
40
+ .recommendedTransactions[0].merchantId,
41
+ name: currentTransaction.recommendedAction
42
+ .recommendedTransactions[0].merchantName,
43
+ }
44
+ : undefined,
45
+ };
46
+ return Object.assign(Object.assign({}, prev), { [currentTransaction.transactionId]: localData });
47
+ }, {});
48
+ };
49
+ exports.prepareReviewTabLocalData = prepareReviewTabLocalData;
@@ -0,0 +1,14 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { ID } from '../../../../commonStateTypes/common';
3
+ import { excludeReconReviewTransaction, updateAccountRecon } from '../../../../entity/accountRecon/accountReconReducer';
4
+ import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
5
+ import { MatchedTransactionPayload } from '../../../../entity/transaction/payloadTypes/reconciliationTransactionPayloads';
6
+ import { updateMultipleReconcileTransactions } from '../../../../entity/transaction/transactionReducer';
7
+ import { RootState } from '../../../../reducer';
8
+ import { ZeniAPI } from '../../../../zeniAPI';
9
+ import { saveReconciliationDetail, saveReconciliationDetailFailure, saveReconciliationDetailSuccess, updateBalancesLocalData, updateReconcileTabLocalData } from '../../reducers/reconciliationViewReducer';
10
+ import { ReconcileActionType } from '../../types/reconciliationViewState';
11
+ export type ActionType = ReturnType<typeof excludeReconReviewTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveReconciliationDetail> | ReturnType<typeof saveReconciliationDetailFailure> | ReturnType<typeof saveReconciliationDetailSuccess> | ReturnType<typeof updateAccountRecon> | ReturnType<typeof updateBalancesLocalData> | ReturnType<typeof updateMultipleReconcileTransactions> | ReturnType<typeof updateReconcileTabLocalData>;
12
+ export declare const saveReconciliationDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
13
+ export declare function createMessageForAction(action: ReconcileActionType): "Excluding Transaction" | "Reconciling" | "Saving for Later";
14
+ export declare function getTransactionIdFromCheckedMatchedTransactionPayload(transactions: MatchedTransactionPayload[]): ID[];