@zeniai/client-epic-state 4.12.97 → 4.12.99

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 (186) hide show
  1. package/lib/commonStateTypes/common.d.ts +2 -0
  2. package/lib/commonStateTypes/common.js +5 -1
  3. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +1 -0
  4. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -1
  5. package/lib/commonStateTypes/timePeriod.d.ts +16 -0
  6. package/lib/commonStateTypes/timePeriod.js +31 -1
  7. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  8. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  9. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  11. package/lib/entity/account/accountState.d.ts +1 -1
  12. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  13. package/lib/entity/class/classReducer.d.ts +4 -4
  14. package/lib/entity/class/classState.d.ts +1 -1
  15. package/lib/entity/company/companyStateTypes.d.ts +1 -1
  16. package/lib/entity/forecast/forecastState.d.ts +1 -1
  17. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
  18. package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -1
  19. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  20. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +3 -1
  21. package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
  22. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +3 -1
  23. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -0
  24. package/lib/entity/jeSchedules/jeSchedulesTypes.js +12 -1
  25. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +32 -0
  26. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +53 -0
  27. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +12 -0
  28. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +25 -0
  29. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +7 -0
  30. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +36 -0
  31. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +38 -0
  32. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +10 -0
  33. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  34. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  35. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  36. package/lib/entity/tenant/clearAllEpic.d.ts +9 -2
  37. package/lib/entity/tenant/clearAllEpic.js +14 -0
  38. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +4 -1
  39. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +32 -2
  40. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  41. package/lib/entity/tenant/tenantReducer.js +3 -0
  42. package/lib/entity/tenant/tenantState.d.ts +1 -0
  43. package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
  44. package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
  45. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  46. package/lib/entity/transaction/transactionSelector.d.ts +1 -0
  47. package/lib/entity/transaction/transactionSelector.js +7 -1
  48. package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
  49. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +35 -1
  50. package/lib/entity/vendor/vendorPayload.js +3 -2
  51. package/lib/entity/vendor/vendorState.d.ts +3 -3
  52. package/lib/entity/vendor/vendorType.d.ts +0 -2
  53. package/lib/entity/vendor/vendorType.js +1 -4
  54. package/lib/epic.d.ts +10 -1
  55. package/lib/epic.js +10 -1
  56. package/lib/index.d.ts +40 -8
  57. package/lib/index.js +74 -25
  58. package/lib/reducer.d.ts +22 -1
  59. package/lib/reducer.js +22 -1
  60. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  61. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  62. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  63. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  64. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  65. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  66. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +10 -5
  67. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +10 -7
  68. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
  69. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
  70. package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +5 -3
  71. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
  72. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
  73. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  74. package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
  75. package/lib/view/dashboard/dashboardEpic.js +22 -2
  76. package/lib/view/dashboard/dashboardReducer.d.ts +3 -2
  77. package/lib/view/dashboard/dashboardReducer.js +2 -1
  78. package/lib/view/dashboard/dashboardSelector.d.ts +2 -0
  79. package/lib/view/dashboard/dashboardSelector.js +10 -2
  80. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +10 -0
  81. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +72 -0
  82. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +11 -0
  83. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +53 -0
  84. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +11 -0
  85. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +66 -0
  86. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +7 -0
  87. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +39 -0
  88. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +7 -0
  89. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +22 -0
  90. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +8 -0
  91. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +59 -0
  92. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +7 -0
  93. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +44 -0
  94. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +6 -0
  95. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +28 -0
  96. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +8 -0
  97. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +44 -0
  98. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +8 -0
  99. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +58 -0
  100. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +10 -0
  101. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +12 -0
  102. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +3 -0
  103. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +2 -0
  104. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +17 -0
  105. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +66 -0
  106. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +3 -0
  107. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +97 -0
  108. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +11 -0
  109. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +14 -0
  110. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +7 -0
  111. package/lib/view/expenseAutomationView/helpers/helpers.js +67 -0
  112. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +76 -0
  113. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +9 -0
  114. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +36 -0
  115. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -0
  116. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +16 -0
  117. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +2 -0
  118. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +34 -0
  119. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +205 -0
  120. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +53 -0
  121. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +245 -0
  122. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +31 -0
  123. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +130 -0
  124. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -0
  125. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -0
  126. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +35 -0
  127. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +47 -0
  128. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +32 -0
  129. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +2 -0
  130. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +28 -0
  131. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +2 -0
  132. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +11 -0
  133. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +2 -0
  134. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +3 -0
  135. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +55 -0
  136. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +7 -0
  137. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +95 -0
  138. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +3 -0
  139. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +61 -0
  140. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +53 -0
  141. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +5 -0
  142. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +31 -0
  143. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +2 -0
  144. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +20 -0
  145. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +13 -0
  146. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +28 -0
  147. package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -0
  148. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  149. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  150. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +8 -0
  151. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +58 -0
  152. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +3 -0
  153. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +2 -0
  154. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +16 -0
  155. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +36 -0
  156. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +10 -0
  157. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +27 -0
  158. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +5 -0
  159. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +2 -0
  160. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  161. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  162. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  163. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +3 -2
  164. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
  165. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
  166. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +19 -5
  167. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -3
  168. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +39 -57
  169. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +13 -8
  170. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +19 -12
  171. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +1 -0
  172. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +4 -3
  173. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +2 -0
  174. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  175. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  177. package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
  178. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  179. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  180. package/lib/view/topEx/topExSelector.d.ts +1 -1
  181. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
  182. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  183. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
  184. package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +2 -5
  185. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +3 -1
  186. package/package.json +1 -1
package/lib/reducer.js CHANGED
@@ -30,6 +30,13 @@ exports.initialRootState = void 0;
30
30
  const redux_1 = require("redux");
31
31
  const tenantReducer_1 = __importStar(require("./entity/tenant/tenantReducer"));
32
32
  const accountReducer_1 = __importStar(require("./entity/account/accountReducer"));
33
+ const monthEndCloseChecksReducer_1 = __importStar(require("./entity/monthEndCloseChecks/monthEndCloseChecksReducer"));
34
+ const monthEndCloseChecksViewReducer_1 = __importStar(require("./view/monthEndCloseChecksView/monthEndCloseChecksViewReducer"));
35
+ const expenseAutomationViewReducer_1 = __importStar(require("./view/expenseAutomationView/expenseAutomationViewReducer"));
36
+ const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
37
+ const missingReceiptsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer"));
38
+ const jeSchedulesViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/jeSchedulesViewReducer"));
39
+ const fluxAnalysisViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/fluxAnalysisViewReducer"));
33
40
  const customerIncomeTrendReducer_1 = __importStar(require("./entity/customerIncome/customerIncomeTrendReducer"));
34
41
  const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
35
42
  const entityReducer_1 = __importStar(require("./entity/genericEntity/entityReducer"));
@@ -238,6 +245,7 @@ const initialEntitiesState = {
238
245
  insightState: insightReducer_1.initialState,
239
246
  jeSchedulesState: jeSchedulesReducer_1.initialState,
240
247
  merchantState: merchantReducer_1.initialState,
248
+ monthEndCloseChecksState: monthEndCloseChecksReducer_1.initialState,
241
249
  notificationState: notificationReducer_1.initialState,
242
250
  onboardingCustomerState: onboardingCustomerReducer_1.initialState,
243
251
  paymentAccountState: paymentAccountReducer_1.initialState,
@@ -317,6 +325,11 @@ const initialViewsState = {
317
325
  editRemiDetailViewState: editRemiViewReducer_1.initialState,
318
326
  entityAutoCompleteState: entityAutoCompleteReducer_1.initialState,
319
327
  entityRecommendationState: recommendationReducer_1.initialState,
328
+ expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.initialState,
329
+ expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.initialState,
330
+ expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.initialState,
331
+ expenseAutomationTransactionsViewState: transactionsViewReducer_1.initialState,
332
+ expenseAutomationViewState: expenseAutomationViewReducer_1.initialState,
320
333
  fileViewState: fileViewState_1.initialFileViewState,
321
334
  financeStatementState: financeStatementReducer_1.initialFinanceStatementState,
322
335
  forecastListState: forecastListReducer_1.initialState,
@@ -327,6 +340,7 @@ const initialViewsState = {
327
340
  internationalWireVerificationState: internationalWireVerificationReducer_1.initialState,
328
341
  magicLinkViewState: magicLinkViewReducer_1.initialState,
329
342
  merchantListState: merchantListReducer_1.initialState,
343
+ monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.initialState,
330
344
  netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.initialState,
331
345
  netBurnOrIncomeState: netBurnOrIncomeReducer_1.initialState,
332
346
  netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.initialState,
@@ -426,8 +440,8 @@ const entityReducers = {
426
440
  insightState: insightReducer_1.default,
427
441
  jeSchedulesState: jeSchedulesReducer_1.default,
428
442
  merchantState: merchantReducer_1.default,
443
+ monthEndCloseChecksState: monthEndCloseChecksReducer_1.default,
429
444
  notificationState: notificationReducer_1.default,
430
- toastNotificationState: toastNotificationReducer_1.default,
431
445
  onboardingCustomerState: onboardingCustomerReducer_1.default,
432
446
  paymentAccountState: paymentAccountReducer_1.default,
433
447
  paymentInstrumentState: paymentInstrumentReducer_1.default,
@@ -448,6 +462,7 @@ const entityReducers = {
448
462
  taskState: taskReducer_1.default,
449
463
  taskSummaryState: taskSummaryReducer_1.default,
450
464
  tenantState: tenantReducer_1.default,
465
+ toastNotificationState: toastNotificationReducer_1.default,
451
466
  transactionState: transactionReducer_1.default,
452
467
  userRoleState: userRoleReducer_1.default,
453
468
  userState: userReducer_1.default,
@@ -504,6 +519,11 @@ const viewReducers = {
504
519
  editRemiDetailViewState: editRemiViewReducer_1.default,
505
520
  entityAutoCompleteState: entityAutoCompleteReducer_1.default,
506
521
  entityRecommendationState: recommendationReducer_1.default,
522
+ expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.default,
523
+ expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.default,
524
+ expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.default,
525
+ expenseAutomationTransactionsViewState: transactionsViewReducer_1.default,
526
+ expenseAutomationViewState: expenseAutomationViewReducer_1.default,
507
527
  fileViewState: fileViewReducer_1.default,
508
528
  financeStatementState: financeStatementReducer_1.default,
509
529
  forecastListState: forecastListReducer_1.default,
@@ -514,6 +534,7 @@ const viewReducers = {
514
534
  internationalWireVerificationState: internationalWireVerificationReducer_1.default,
515
535
  magicLinkViewState: magicLinkViewReducer_1.default,
516
536
  merchantListState: merchantListReducer_1.default,
537
+ monthEndCloseChecksViewState: monthEndCloseChecksViewReducer_1.default,
517
538
  netBurnOrIncomeClassesViewState: netBurnOrIncomeClassesViewReducer_1.default,
518
539
  netBurnOrIncomeState: netBurnOrIncomeReducer_1.default,
519
540
  netBurnOrIncomeStoryCardState: netBurnOrIncomeStoryCardReducer_1.default,
@@ -5,9 +5,9 @@ import { ZeniDate } from '../../zeniDayJS';
5
5
  import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
6
6
  export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
7
7
  export declare type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
8
- declare const toAuditRuleEntityIdType: (v: string) => "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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" | "uncategorized-expense" | "uncategorized-income";
8
+ declare const toAuditRuleEntityIdType: (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" | "uncategorized-expense" | "uncategorized-income";
9
9
  export declare type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
10
- export declare const toAuditRuleTypeIdType: (v: string) => "accounting" | "business";
10
+ export declare const toAuditRuleTypeIdType: (v: string) => "business" | "accounting";
11
11
  declare type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
12
12
  export declare const AUDIT_REPORT_ACTION_TYPES: readonly ["generate", "view"];
13
13
  export declare const toAuditReportActionType: (v: string) => "view" | "generate";
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getBillPayCardReport: (state: RootState) => {
3
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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";
3
+ 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";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  fetchState: import("../..").FetchState;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="url-parse" />
2
2
  import { RootState } from '../../reducer';
3
3
  export declare const getCardBalance: (state: RootState) => {
4
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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";
4
+ 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";
5
5
  reportTitle: string;
6
6
  version: string | number | undefined;
7
7
  status: import("../..").Status | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="url-parse" />
2
2
  import { RootState } from '../../reducer';
3
3
  export declare const getCashBalance: (state: RootState) => {
4
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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";
4
+ 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";
5
5
  reportTitle: string;
6
6
  version: string | number | undefined;
7
7
  status: import("../..").Status | undefined;
@@ -15,7 +15,7 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
15
15
  firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
16
16
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
17
17
  availableNumberOfPeriods: number | undefined;
18
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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";
18
+ 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";
19
19
  reportTitle: string;
20
20
  version: string | number | undefined;
21
21
  status: import("../..").Status | undefined;
@@ -12,7 +12,7 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
12
12
  firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
13
13
  dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
14
14
  availableNumberOfPeriods: number | undefined;
15
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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";
15
+ 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";
16
16
  reportTitle: string;
17
17
  version: string | number | undefined;
18
18
  status: import("../..").Status | undefined;
@@ -9,34 +9,38 @@ export declare const initialAuditSummaryData: AuditSummaryData;
9
9
  export declare const initialCompanyMonthEndReportTemplatesData: CompanyMonthReportTemplates;
10
10
  export declare const initialSendMonthEndReportStatus: FetchStateAndError;
11
11
  export declare const initialImproveUsingZeniGPTStatus: FetchStateAndError;
12
- export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
12
+ export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string, tenantId?: string | undefined], {
13
13
  text: string;
14
14
  companyId: string;
15
+ tenantId: string | undefined;
15
16
  }, string, never, never>, updateImproveUsingZeniGPTSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
16
17
  text: string;
17
18
  companyId: string;
18
19
  }, string, never, never>, updateImproveUsingZeniGPTFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[status: ZeniAPIStatus<Record<string, unknown>>, companyId: string], {
19
20
  status: ZeniAPIStatus<Record<string, unknown>>;
20
21
  companyId: string;
21
- }, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string], {
22
+ }, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string, tenantId?: string | undefined], {
22
23
  cacheOverride: any;
23
24
  companyId: string;
25
+ tenantId: string | undefined;
24
26
  }, string, never, never>, updateCompanyMonthEndReportViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, data: CompanyMonthEndReportViewPayload], {
25
27
  companyId: string;
26
28
  data: CompanyMonthEndReportViewPayload;
27
29
  }, string, never, never>, updateCompanyMonthEndReportViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, error: ZeniAPIStatus<Record<string, unknown>>], {
28
30
  error: ZeniAPIStatus<Record<string, unknown>>;
29
31
  companyId: string;
30
- }, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined], {
32
+ }, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined, tenantId?: string | undefined], {
31
33
  companyId: string;
32
34
  fileId: string | undefined;
33
- }, string, never, never>, saveCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[recipientEmailList: any, companyId: string, subject: string, isPreview: boolean, fileId?: string | undefined, zeniRequestsHtml?: string | undefined], {
35
+ tenantId: string | undefined;
36
+ }, string, never, never>, saveCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[recipientEmailList: any, companyId: string, subject: string, isPreview: boolean, fileId?: string | undefined, zeniRequestsHtml?: string | undefined, tenantId?: string | undefined], {
34
37
  recipientEmailList: any;
35
38
  companyId: string;
36
39
  subject: string;
37
40
  isPreview: boolean;
38
41
  fileId: string | undefined;
39
42
  zeniRequestsHtml: string | undefined;
43
+ tenantId: string | undefined;
40
44
  }, string, never, never>, updateStatusForSendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, status: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
41
45
  companyId: string;
42
46
  status: FetchState;
@@ -71,8 +75,9 @@ export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").Action
71
75
  companyId: ID;
72
76
  reportSentDate: ZeniDate;
73
77
  data: CompanyMonthEndHistoricReportPayload;
74
- }, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
78
+ }, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, tenantId?: string | undefined], {
75
79
  companyId: string;
80
+ tenantId: string | undefined;
76
81
  }, string, never, never>, updateCompanyMonthEndReportTemplatesOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
77
82
  error: ZeniAPIStatus;
78
83
  companyId: ID;
@@ -48,8 +48,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
48
48
  initialState: exports.initialState,
49
49
  reducers: {
50
50
  fetchCompanyMonthEndReportView: {
51
- prepare(cacheOverride = true, companyId) {
52
- return { payload: { cacheOverride, companyId } };
51
+ prepare(cacheOverride = true, companyId, tenantId) {
52
+ return { payload: { cacheOverride, companyId, tenantId } };
53
53
  },
54
54
  reducer(draft, action) {
55
55
  const companyId = action.payload.companyId;
@@ -90,7 +90,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
90
90
  },
91
91
  },
92
92
  saveCompanyMonthEndReport: {
93
- prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml) {
93
+ prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml, tenantId) {
94
94
  return {
95
95
  payload: {
96
96
  recipientEmailList,
@@ -99,6 +99,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
99
99
  isPreview,
100
100
  fileId,
101
101
  zeniRequestsHtml,
102
+ tenantId,
102
103
  },
103
104
  };
104
105
  },
@@ -143,8 +144,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
143
144
  },
144
145
  },
145
146
  sendCompanyMonthEndReport: {
146
- prepare(companyId, fileId) {
147
- return { payload: { companyId, fileId } };
147
+ prepare(companyId, fileId, tenantId) {
148
+ return { payload: { companyId, fileId, tenantId } };
148
149
  },
149
150
  reducer(draft, action) {
150
151
  const { companyId } = action.payload;
@@ -165,11 +166,12 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
165
166
  },
166
167
  },
167
168
  fetchImproveUsingZeniGPT: {
168
- prepare(text, companyId) {
169
+ prepare(text, companyId, tenantId) {
169
170
  return {
170
171
  payload: {
171
172
  text,
172
173
  companyId,
174
+ tenantId,
173
175
  },
174
176
  };
175
177
  },
@@ -278,10 +280,11 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
278
280
  };
279
281
  },
280
282
  fetchCompanyMonthEndReportTemplates: {
281
- prepare(companyId) {
283
+ prepare(companyId, tenantId) {
282
284
  return {
283
285
  payload: {
284
286
  companyId,
287
+ tenantId,
285
288
  },
286
289
  };
287
290
  },
@@ -6,16 +6,16 @@ const operators_1 = require("rxjs/operators");
6
6
  const responsePayload_1 = require("../../../responsePayload");
7
7
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
8
8
  const fetchCompanyMonthEndReportTemplatesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportTemplates.match), (0, operators_1.switchMap)((action) => {
9
- const { companyId } = action.payload;
9
+ const { companyId, tenantId } = action.payload;
10
10
  const state = state$.value;
11
- const tenantId = state.companyState.companiesById[companyId].companyInfo.tenantId;
11
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
12
12
  const queryParam = {
13
13
  email_templates: true,
14
14
  };
15
- if (tenantId != null) {
15
+ if (zeniTenantId != null) {
16
16
  return zeniAPI
17
17
  .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(queryParam))}`, {
18
- 'zeni-tenant-id': tenantId,
18
+ 'zeni-tenant-id': zeniTenantId,
19
19
  })
20
20
  .pipe((0, operators_1.mergeMap)((response) => {
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
@@ -7,15 +7,15 @@ const responsePayload_1 = require("../../../responsePayload");
7
7
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
8
8
  const fileReducer_1 = require("../../../entity/file/fileReducer");
9
9
  const fetchCompanyMonthEndReportViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportView.match), (0, operators_1.switchMap)((action) => {
10
- const { cacheOverride, companyId } = action.payload;
10
+ const { cacheOverride, companyId, tenantId } = action.payload;
11
11
  const state = state$.value;
12
12
  const fetchState = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].fetchState;
13
- const tenantId = state.companyState.companiesById[companyId].companyInfo.tenantId;
14
- if (tenantId != null &&
13
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
14
+ if (zeniTenantId != null &&
15
15
  (cacheOverride === true || fetchState !== 'Completed')) {
16
16
  return zeniAPI
17
17
  .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, {
18
- 'zeni-tenant-id': tenantId,
18
+ 'zeni-tenant-id': zeniTenantId,
19
19
  })
20
20
  .pipe((0, operators_1.mergeMap)((response) => {
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
@@ -6,14 +6,16 @@ const operators_1 = require("rxjs/operators");
6
6
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
7
7
  const responsePayload_1 = require("../../../responsePayload");
8
8
  const improveUsingZeniGPTEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchImproveUsingZeniGPT.match), (0, operators_1.switchMap)((action) => {
9
- const { companyId } = action.payload;
9
+ const { companyId, tenantId } = action.payload;
10
10
  const state = state$.value;
11
11
  const company = state.companyState.companiesById[companyId];
12
- const tenantId = company.companyInfo.tenantId;
12
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
13
13
  return zeniAPI
14
14
  .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/ai-text-assist/emails/month-end`, {
15
15
  text: action.payload.text,
16
- }, Object.assign({}, (Boolean(tenantId) === true && { 'zeni-tenant-id': tenantId })))
16
+ }, Object.assign({}, (Boolean(zeniTenantId) === true && {
17
+ 'zeni-tenant-id': zeniTenantId,
18
+ })))
17
19
  .pipe((0, operators_1.mergeMap)((response) => {
18
20
  var _a;
19
21
  if (((_a = response.data) === null || _a === void 0 ? void 0 : _a.text) != null) {
@@ -11,11 +11,11 @@ const companyReducer_1 = require("../../../entity/company/companyReducer");
11
11
  const fileSelector_1 = require("../../../entity/file/fileSelector");
12
12
  const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
13
13
  const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.saveCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
14
- const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, } = action.payload;
14
+ const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, tenantId, } = action.payload;
15
15
  const state = state$.value;
16
16
  const company = state.companyState.companiesById[companyId];
17
17
  const companyName = state.companyState.companiesById[companyId].companyInfo.name;
18
- const tenantId = company.companyInfo.tenantId;
18
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
19
19
  const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
20
20
  const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
21
21
  const filePayload = [];
@@ -41,7 +41,7 @@ const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
41
41
  const query = { is_preview: isPreview };
42
42
  return zeniAPI
43
43
  .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(query))}`, payload, {
44
- 'zeni-tenant-id': tenantId,
44
+ 'zeni-tenant-id': zeniTenantId,
45
45
  })
46
46
  .pipe((0, operators_1.mergeMap)((response) => {
47
47
  if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
@@ -12,14 +12,14 @@ const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
12
12
  const fileSelector_1 = require("../../../entity/file/fileSelector");
13
13
  const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
14
14
  const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.sendCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
15
- const { companyId, fileId } = action.payload;
15
+ const { companyId, fileId, tenantId } = action.payload;
16
16
  const state = state$.value;
17
17
  const recipientEmailList = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.recipientEmailList;
18
18
  const subject = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.subject;
19
19
  const zeniRequestsHtml = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.zeniRequestsHtml;
20
20
  const company = state.companyState.companiesById[companyId];
21
21
  const companyName = state.companyState.companiesById[companyId].companyInfo.name;
22
- const tenantId = company.companyInfo.tenantId;
22
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
23
23
  const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
24
24
  const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
25
25
  const filePayload = [];
@@ -44,7 +44,7 @@ const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
44
44
  };
45
45
  return zeniAPI
46
46
  .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, payload, {
47
- 'zeni-tenant-id': tenantId,
47
+ 'zeni-tenant-id': zeniTenantId,
48
48
  })
49
49
  .pipe((0, operators_1.mergeMap)((response) => {
50
50
  if ((0, responsePayload_1.isSuccessStatus)(response)) {
@@ -4,9 +4,9 @@ import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscripti
4
4
  import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
5
5
  import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
6
6
  export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
7
- export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
7
+ export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "notes" | "plans" | "customerSuccessManager" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
8
8
  export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "bankAccountLinked" | "qboLinked" | "identityVerified" | "businessVerified" | "groupCreated" | "customerCreated" | "enroller" | "invite";
9
- export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSuccessManager" | "netPromoterScore" | "customerSatisfactionScore" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
9
+ export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSatisfactionScore" | "netPromoterScore" | "customerSuccessManager" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
10
10
  export declare const toTaskManagerSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "taskName" | "assignee" | "tags" | "createdBy";
11
11
  export declare type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
12
12
  export declare type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
@@ -20,5 +20,6 @@ import { fetchApAging } from '../apAgingView/apAgingReport/apAgingReducer';
20
20
  import { fetchArAging } from '../arAgingView/arAgingReport/arAgingReducer';
21
21
  import { fetchZeniAccountsPromoCard } from '../zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
22
22
  import { fetchRewardsPlan } from '../referralView/referralReducer';
23
- export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard> | ReturnType<typeof fetchRewardsPlan>;
23
+ import { fetchMonthEndCloseChecks } from '../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
24
+ export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard> | ReturnType<typeof fetchRewardsPlan> | ReturnType<typeof fetchMonthEndCloseChecks>;
24
25
  export declare const fetchDashboardEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
@@ -28,10 +28,14 @@ const apAgingReducer_1 = require("../apAgingView/apAgingReport/apAgingReducer");
28
28
  const arAgingReducer_1 = require("../arAgingView/arAgingReport/arAgingReducer");
29
29
  const zeniAccountsPromoCardReducer_1 = require("../zeniAccountsPromoCard/zeniAccountsPromoCardReducer");
30
30
  const referralReducer_1 = require("../referralView/referralReducer");
31
+ const monthEndCloseChecksViewReducer_1 = require("../monthEndCloseChecksView/monthEndCloseChecksViewReducer");
32
+ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
33
+ const fetchAllTenantsEpic_1 = require("../../entity/tenant/epic/fetchAllTenantsEpic");
31
34
  const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(dashboardReducer_1.fetchDashboard.match), (0, operators_1.switchMap)((action) => {
32
- var _a, _b, _c, _d;
33
- const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, } = action.payload;
35
+ var _a, _b, _c, _d, _e, _f, _g, _h;
36
+ const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, tenantId, } = action.payload;
34
37
  const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
38
+ const zeniBookCloseDate = currentTenant.zeniBookCloseDate;
35
39
  const isReimbursementFeatureEnabled = (_a = currentTenant.company) === null || _a === void 0 ? void 0 : _a.featuresActivationInfo.isReimbursementFeatureEnabled;
36
40
  const isAdmin = Boolean(currentTenant === null || currentTenant === void 0 ? void 0 : currentTenant.userRole) === true
37
41
  ? (0, userRoleType_1.hasAdminLevelAccess)(currentTenant.userRole)
@@ -39,6 +43,7 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
39
43
  const isInvestorBanker = (0, userRoleType_1.hasInvestorBankerLevelAccess)(currentTenant.userRole);
40
44
  const arAgingDate = state$.value.arAgingState.uiState.selectedDate;
41
45
  const apAgingDate = state$.value.apAgingState.uiState.selectedDate;
46
+ const monthEndChecksPeriod = (0, fetchAllTenantsEpic_1.getMonthYearPeriodFromBookCloseDate)(zeniBookCloseDate);
42
47
  if (cacheOverride === true) {
43
48
  const actions = [
44
49
  (0, tenantReducer_1.fetchAllTenants)(userId),
@@ -73,6 +78,12 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
73
78
  if (excludeResources.includes('rewards_card') === false) {
74
79
  actions.push((0, referralReducer_1.fetchRewardsPlan)(true));
75
80
  }
81
+ if (excludeResources.includes('expense_automation_card') === false) {
82
+ actions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
83
+ tenantId,
84
+ period: monthEndChecksPeriod,
85
+ }));
86
+ }
76
87
  return (0, rxjs_1.from)(actions);
77
88
  }
78
89
  else {
@@ -170,6 +181,15 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
170
181
  excludeResources.includes('rewards_card') === false) {
171
182
  fetchActions.push((0, referralReducer_1.fetchRewardsPlan)(true));
172
183
  }
184
+ const monthEndChecksId = (0, timePeriod_1.toMonthYearPeriodId)(monthEndChecksPeriod);
185
+ if (((_f = (_e = state.monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]) === null || _e === void 0 ? void 0 : _e[monthEndChecksId]) === null || _f === void 0 ? void 0 : _f.fetchState) !== 'In-Progress' &&
186
+ ((_h = (_g = state.monthEndCloseChecksViewState.monthEndCloseChecksViewByTenantId[currentTenant.tenantId]) === null || _g === void 0 ? void 0 : _g[monthEndChecksId]) === null || _h === void 0 ? void 0 : _h.fetchState) !== 'Completed' &&
187
+ excludeResources.includes('expense_automation_card') === false) {
188
+ fetchActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
189
+ tenantId,
190
+ period: monthEndChecksPeriod,
191
+ }));
192
+ }
173
193
  return (0, rxjs_1.from)(fetchActions);
174
194
  }
175
195
  }));
@@ -1,11 +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, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, tenantId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
+ tenantId: string;
6
7
  fetchFullReport: any;
7
8
  cacheOverride: any;
8
- excludeResources: ("cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "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")[];
9
+ excludeResources: ("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")[];
9
10
  }, string, never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
10
11
  declare const _default: import("@reduxjs/toolkit").Reducer<DashboardState, import("@reduxjs/toolkit").AnyAction>;
11
12
  export default _default;
@@ -15,11 +15,12 @@ const dashboard = (0, toolkit_1.createSlice)({
15
15
  reducer(draft) {
16
16
  draft.lastFetchRequestTime = (0, zeniDayJS_1.dateNow)();
17
17
  },
18
- prepare(userId, companyId, fetchFullReport = false, cacheOverride = false, excludeResources = []) {
18
+ prepare(userId, companyId, tenantId, fetchFullReport = false, cacheOverride = false, excludeResources = []) {
19
19
  return {
20
20
  payload: {
21
21
  userId,
22
22
  companyId,
23
+ tenantId,
23
24
  fetchFullReport,
24
25
  cacheOverride,
25
26
  excludeResources,
@@ -18,6 +18,7 @@ import { ApAgingReport } from '../apAgingView/apAgingReport/apAgingSelector';
18
18
  import { ArAgingReport } from '../arAgingView/arAgingReport/arAgingSelector';
19
19
  import { ZeniAccountsPromoCardReport } from '../zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
20
20
  import { RewardsPlanCardReport } from '../referralView/referralSelector';
21
+ import { MonthEndCloseChecksView } from '../monthEndCloseChecksView/monthEndCloseChecksViewSelector';
21
22
  export interface DashboardReport extends SelectorReport {
22
23
  tenantsOrdered: TenantsOrdered;
23
24
  currentTenant?: Tenant;
@@ -38,5 +39,6 @@ export interface DashboardReport extends SelectorReport {
38
39
  arAgingReport: ArAgingReport;
39
40
  zeniAccountsPromoCard: ZeniAccountsPromoCardReport;
40
41
  rewardsPlanCard: RewardsPlanCardReport;
42
+ monthEndCloseChecksView: MonthEndCloseChecksView;
41
43
  }
42
44
  export declare const getDashboard: (state: RootState, additionalExcludedReports: ReportID[]) => DashboardReport;
@@ -24,6 +24,7 @@ const apAgingSelector_1 = require("../apAgingView/apAgingReport/apAgingSelector"
24
24
  const arAgingSelector_1 = require("../arAgingView/arAgingReport/arAgingSelector");
25
25
  const zeniAccountsPromoCardSelector_1 = require("../zeniAccountsPromoCard/zeniAccountsPromoCardSelector");
26
26
  const referralSelector_1 = require("../referralView/referralSelector");
27
+ const monthEndCloseChecksViewSelector_1 = require("../monthEndCloseChecksView/monthEndCloseChecksViewSelector");
27
28
  const getNetBurnOrIncomeForLast4Periods = (state) => {
28
29
  return (0, netBurnOrIncomeSelector_1.getNetBurnOrIncomeReport)(state.accountState, state.accountGroupState, state.sectionAccountsViewState, state.netBurnOrIncomeState, state.forecastState, state.forecastListState, (0, coaBalancesFilter_1.newBalancesFilter)(state.netBurnOrIncomeState.netBurnOrIncome.firstMonthOfFY, state.netBurnOrIncomeState.uiState.timeframe, 4, undefined, 'ascending_date', state.netBurnOrIncomeState.uiState.selectedAdditionalBalances));
29
30
  };
@@ -40,7 +41,10 @@ const tenantSelector = (0, toolkit_1.createSelector)(tenantSelector_1.getTenants
40
41
  tenantsOrdered,
41
42
  currentTenant,
42
43
  }));
43
- exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalanceSelector_1.getCardBalance, cashBalanceSelector_1.getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, topExSelector_1.getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, insightsCardSelector_1.getInsights, companyPassportViewSelector_1.getCompanyPassportView, tasksCardSelector_1.getTasksCardReport, billPayCardSelector_1.getBillPayCardReport, reimbursementCardSelector_1.getReimbursementCardReport, apAgingSelector, arAgingSelector, zeniAccountsPromoCardSelector_1.getZeniAccountsPromoCard, referralSelector_1.getRewardsPlanCard, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (tenants, cardBalance, cashBalance, opEx, revenue, topEx, netBurnOrIncome, netBurnOrIncomeStoryCard, cashPosition, cashInCashOut, insightsView, companyPassportView, tasksCard, billPayCard, reimbursementCard, apAgingReport, arAgingReport, zeniAccountsPromoCard, rewardsPlanCard, tenantState, additionalExcludedReports) => {
44
+ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalanceSelector_1.getCardBalance, cashBalanceSelector_1.getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, topExSelector_1.getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, insightsCardSelector_1.getInsights, companyPassportViewSelector_1.getCompanyPassportView, tasksCardSelector_1.getTasksCardReport, billPayCardSelector_1.getBillPayCardReport, reimbursementCardSelector_1.getReimbursementCardReport, apAgingSelector, arAgingSelector, zeniAccountsPromoCardSelector_1.getZeniAccountsPromoCard, referralSelector_1.getRewardsPlanCard, (state) => {
45
+ const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
46
+ return (0, monthEndCloseChecksViewSelector_1.getMonthEndCloseChecksViewByTenantId)(state, currentTenant.tenantId);
47
+ }, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (tenants, cardBalance, cashBalance, opEx, revenue, topEx, netBurnOrIncome, netBurnOrIncomeStoryCard, cashPosition, cashInCashOut, insightsView, companyPassportView, tasksCard, billPayCard, reimbursementCard, apAgingReport, arAgingReport, zeniAccountsPromoCard, rewardsPlanCard, monthEndCloseChecksView, tenantState, additionalExcludedReports) => {
44
48
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
45
49
  const isReimbursementFeatureEnabled = (_a = tenants.currentTenant.company) === null || _a === void 0 ? void 0 : _a.featuresActivationInfo.isReimbursementFeatureEnabled;
46
50
  const isAdmin = Boolean((_b = tenants.currentTenant) === null || _b === void 0 ? void 0 : _b.userRole) === true
@@ -63,6 +67,9 @@ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalance
63
67
  insightsView,
64
68
  Object.assign(Object.assign({}, companyPassportView), { reportId: 'company_details', reportTitle: 'Company Details' }),
65
69
  ];
70
+ if (additionalExcludedReports.includes('expense_automation_card') === false) {
71
+ reportsInOrder.push(monthEndCloseChecksView);
72
+ }
66
73
  if (additionalExcludedReports.includes('accounts_payable_aging') === false) {
67
74
  reportsInOrder.push(apAgingReport);
68
75
  }
@@ -106,5 +113,6 @@ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalance
106
113
  apAgingReport,
107
114
  arAgingReport,
108
115
  zeniAccountsPromoCard,
109
- rewardsPlanCard });
116
+ rewardsPlanCard,
117
+ monthEndCloseChecksView });
110
118
  });