@zeniai/client-epic-state 4.20.3-betaSS12 → 4.20.3-betaSS14

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 (431) hide show
  1. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +19 -0
  2. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +2 -0
  3. package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +2 -0
  4. package/lib/commonStateTypes/animations.d.ts +1 -1
  5. package/lib/commonStateTypes/animations.js +4 -0
  6. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.d.ts +13 -0
  7. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +9 -0
  8. package/lib/commonStateTypes/common.d.ts +1 -1
  9. package/lib/commonStateTypes/projectView/projectViewParentID.d.ts +5 -0
  10. package/lib/commonStateTypes/projectView/projectViewParentID.js +2 -0
  11. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  12. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  13. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  14. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  15. package/lib/entity/account/accountPayload.d.ts +2 -0
  16. package/lib/entity/account/accountReducer.d.ts +5 -2
  17. package/lib/entity/account/accountReducer.js +13 -5
  18. package/lib/entity/account/accountSelector.d.ts +7 -0
  19. package/lib/entity/account/accountSelector.js +4 -2
  20. package/lib/entity/account/accountState.d.ts +3 -1
  21. package/lib/entity/account/accountState.js +4 -1
  22. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -0
  23. package/lib/entity/account/subAccountSelector.d.ts +2 -0
  24. package/lib/entity/account/subAccountSelector.js +2 -0
  25. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -0
  26. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  27. package/lib/entity/accountRecon/accountReconPayload.d.ts +1 -1
  28. package/lib/entity/accountRecon/accountReconPayload.js +4 -2
  29. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.d.ts +52 -0
  30. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +70 -0
  31. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.d.ts +10 -0
  32. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +51 -0
  33. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.d.ts +48 -0
  34. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +66 -0
  35. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.d.ts +52 -0
  36. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.js +37 -0
  37. package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -2
  38. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
  39. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  40. package/lib/entity/class/classReducer.d.ts +4 -4
  41. package/lib/entity/class/classState.d.ts +1 -1
  42. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  43. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  44. package/lib/entity/forecast/forecastState.d.ts +1 -1
  45. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +38 -0
  46. package/lib/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  47. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +4 -1
  48. package/lib/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  49. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +37 -0
  50. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
  51. package/lib/entity/project/projectPayload.d.ts +13 -0
  52. package/lib/entity/project/projectPayload.js +30 -0
  53. package/lib/entity/project/projectReducer.d.ts +10 -0
  54. package/lib/entity/project/projectReducer.js +31 -0
  55. package/lib/entity/project/projectSelector.d.ts +5 -0
  56. package/lib/entity/project/projectSelector.js +12 -0
  57. package/lib/entity/project/projectState.d.ts +13 -0
  58. package/lib/entity/project/projectState.js +2 -0
  59. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  60. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  61. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  62. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +13 -0
  63. package/lib/entity/sectionProjectView/sectionProjectView.js +6 -0
  64. package/lib/entity/sectionProjectView/sectionProjectViewEpic.d.ts +6 -0
  65. package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +56 -0
  66. package/lib/entity/sectionProjectView/sectionProjectViewHelper.d.ts +11 -0
  67. package/lib/entity/sectionProjectView/sectionProjectViewHelper.js +15 -0
  68. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +15 -0
  69. package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +64 -0
  70. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +11 -0
  71. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +57 -0
  72. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.d.ts +16 -0
  73. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +2 -0
  74. package/lib/entity/sectionProjectView/sectionProjectViewState.d.ts +4 -0
  75. package/lib/entity/sectionProjectView/sectionProjectViewState.js +2 -0
  76. package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
  77. package/lib/entity/snackbar/snackbarTypes.js +10 -0
  78. package/lib/entity/tenant/clearAllEpic.d.ts +8 -2
  79. package/lib/entity/tenant/clearAllEpic.js +12 -0
  80. package/lib/entity/tenant/tenantPayload.d.ts +2 -0
  81. package/lib/entity/tenant/tenantReducer.d.ts +5 -2
  82. package/lib/entity/tenant/tenantReducer.js +10 -2
  83. package/lib/entity/tenant/tenantSelector.d.ts +2 -0
  84. package/lib/entity/tenant/tenantSelector.js +17 -1
  85. package/lib/entity/tenant/tenantState.d.ts +2 -0
  86. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +4 -1
  87. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  88. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +11 -0
  89. package/lib/entity/transaction/payloadTypes/transactionPayload.js +114 -1
  90. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +1 -0
  91. package/lib/entity/transaction/stateTypes/transaction.d.ts +11 -0
  92. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
  93. package/lib/entity/userRole/userRoleType.d.ts +2 -2
  94. package/lib/epic.d.ts +22 -2
  95. package/lib/epic.js +22 -2
  96. package/lib/esm/common/aiCfo/aiCfoSuggestedQuestionsPageContext.js +1 -0
  97. package/lib/esm/commonStateTypes/animations.js +4 -0
  98. package/lib/esm/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +5 -0
  99. package/lib/esm/commonStateTypes/projectView/projectViewParentID.js +1 -0
  100. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +1 -0
  101. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  102. package/lib/esm/entity/account/accountReducer.js +12 -4
  103. package/lib/esm/entity/account/accountSelector.js +4 -2
  104. package/lib/esm/entity/account/accountState.js +4 -1
  105. package/lib/esm/entity/account/subAccountSelector.js +2 -0
  106. package/lib/esm/entity/accountRecon/accountReconPayload.js +4 -2
  107. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +64 -0
  108. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +47 -0
  109. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +62 -0
  110. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerState.js +31 -0
  111. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +78 -0
  112. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +5 -1
  113. package/lib/esm/entity/project/projectPayload.js +26 -0
  114. package/lib/esm/entity/project/projectReducer.js +27 -0
  115. package/lib/esm/entity/project/projectSelector.js +8 -0
  116. package/lib/esm/entity/project/projectState.js +1 -0
  117. package/lib/esm/entity/sectionProjectView/sectionProjectView.js +3 -0
  118. package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +52 -0
  119. package/lib/esm/entity/sectionProjectView/sectionProjectViewHelper.js +11 -0
  120. package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +60 -0
  121. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +50 -0
  122. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +1 -0
  123. package/lib/esm/entity/sectionProjectView/sectionProjectViewState.js +1 -0
  124. package/lib/esm/entity/snackbar/snackbarTypes.js +10 -0
  125. package/lib/esm/entity/tenant/clearAllEpic.js +12 -0
  126. package/lib/esm/entity/tenant/tenantReducer.js +9 -1
  127. package/lib/esm/entity/tenant/tenantSelector.js +14 -0
  128. package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +1 -0
  129. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +114 -1
  130. package/lib/esm/epic.js +22 -2
  131. package/lib/esm/index.js +32 -19
  132. package/lib/esm/reducer.js +20 -2
  133. package/lib/esm/view/aiAccountantView/aiAccountantViewPayload.js +2 -0
  134. package/lib/esm/view/aiAccountantView/aiAccountantViewReducer.js +152 -0
  135. package/lib/esm/view/aiAccountantView/aiAccountantViewSelector.js +77 -0
  136. package/lib/esm/view/aiAccountantView/aiAccountantViewState.js +11 -0
  137. package/lib/esm/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +46 -0
  138. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +27 -0
  139. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +47 -0
  140. package/lib/esm/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +76 -0
  141. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +82 -1
  142. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +8 -2
  143. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +29 -0
  144. package/lib/esm/view/classList/fetchClassListEpic.js +9 -2
  145. package/lib/esm/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  146. package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  147. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +19 -1
  148. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  149. package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +17 -0
  150. package/lib/esm/view/companyView/companyViewReducer.js +26 -1
  151. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +61 -0
  152. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  153. package/lib/esm/view/creditAgentView/creditAgentViewReducer.js +74 -76
  154. package/lib/esm/view/creditAgentView/creditAgentViewSelector.js +0 -1
  155. package/lib/esm/view/creditAgentView/creditAgentViewState.js +1 -28
  156. package/lib/esm/view/creditAgentView/epics/downloadCreditReportEpic.js +20 -17
  157. package/lib/esm/view/creditAgentView/epics/fetchCardProfilesEpic.js +5 -5
  158. package/lib/esm/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +8 -8
  159. package/lib/esm/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +7 -7
  160. package/lib/esm/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +8 -3
  161. package/lib/esm/view/creditAgentView/epics/updateCardProfileEpic.js +5 -11
  162. package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +63 -0
  163. package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  164. package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +65 -0
  165. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  166. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +33 -0
  167. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +3 -3
  168. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +6 -4
  169. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +20 -5
  170. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +12 -0
  171. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +98 -0
  172. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  173. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +21 -5
  174. package/lib/esm/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  175. package/lib/esm/view/expenseAutomationView/helpers/bulkUploadTiming.js +16 -0
  176. package/lib/esm/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +13 -0
  177. package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  178. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  179. package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +9 -0
  180. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +21 -1
  181. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +29 -6
  182. package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +167 -3
  183. package/lib/esm/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +1 -2
  184. package/lib/esm/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  185. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  186. package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  187. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  188. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +15 -5
  189. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +24 -1
  190. package/lib/esm/view/financeStatement/financeStatementSelector.js +12 -1
  191. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  192. package/lib/esm/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +47 -0
  193. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +30 -0
  194. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +1 -0
  195. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +113 -0
  196. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +65 -0
  197. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +1 -0
  198. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewState.js +1 -0
  199. package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  200. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +26 -0
  201. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +199 -0
  202. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +52 -0
  203. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesState.js +1 -0
  204. package/lib/esm/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +100 -0
  205. package/lib/esm/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +48 -0
  206. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +36 -0
  207. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +45 -0
  208. package/lib/esm/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +50 -0
  209. package/lib/esm/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +69 -0
  210. package/lib/esm/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +5 -5
  211. package/lib/esm/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  212. package/lib/esm/view/spendManagement/billPay/billList/billListState.js +1 -0
  213. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  214. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  215. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  216. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  217. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  218. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  219. package/lib/esm/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +7 -4
  220. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  221. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  222. package/lib/esm/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  223. package/lib/esm/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  224. package/lib/esm/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +10 -3
  225. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  226. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  227. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  228. package/lib/esm/view/transactionDetail/transactionDetailSelector.js +9 -2
  229. package/lib/esm/view/twoFactorAuthentication/resendOtpEpic.js +16 -2
  230. package/lib/index.d.ts +51 -28
  231. package/lib/index.js +117 -49
  232. package/lib/reducer.d.ts +20 -2
  233. package/lib/reducer.js +20 -2
  234. package/lib/view/aiAccountantView/aiAccountantViewPayload.d.ts +33 -0
  235. package/lib/view/aiAccountantView/aiAccountantViewPayload.js +8 -0
  236. package/lib/view/aiAccountantView/aiAccountantViewReducer.d.ts +29 -0
  237. package/lib/view/aiAccountantView/aiAccountantViewReducer.js +156 -0
  238. package/lib/view/aiAccountantView/aiAccountantViewSelector.d.ts +16 -0
  239. package/lib/view/aiAccountantView/aiAccountantViewSelector.js +83 -0
  240. package/lib/view/aiAccountantView/aiAccountantViewState.d.ts +26 -0
  241. package/lib/view/aiAccountantView/aiAccountantViewState.js +13 -0
  242. package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.d.ts +33 -0
  243. package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +50 -0
  244. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.d.ts +23 -0
  245. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +31 -0
  246. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.d.ts +33 -0
  247. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +51 -0
  248. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.d.ts +28 -0
  249. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +80 -0
  250. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +7 -0
  251. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +15 -1
  252. package/lib/view/aiCfoView/aiCfoViewReducer.js +83 -2
  253. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +4 -1
  254. package/lib/view/aiCfoView/aiCfoViewSelector.js +9 -2
  255. package/lib/view/aiCfoView/aiCfoViewState.d.ts +15 -1
  256. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +8 -0
  257. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +33 -0
  258. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  259. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  260. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -1
  261. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -1
  262. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  263. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  264. package/lib/view/classList/fetchClassListEpic.d.ts +1 -1
  265. package/lib/view/classList/fetchClassListEpic.js +8 -1
  266. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -0
  267. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +18 -5
  268. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +1 -0
  269. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +6 -2
  270. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  271. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +20 -2
  272. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +4 -1
  273. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -1
  274. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +9 -1
  275. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.d.ts +7 -0
  276. package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +21 -0
  277. package/lib/view/companyView/companyViewReducer.d.ts +6 -1
  278. package/lib/view/companyView/companyViewReducer.js +28 -2
  279. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.d.ts +10 -0
  280. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +65 -0
  281. package/lib/view/companyView/types/cockpitTypes.d.ts +6 -5
  282. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +1 -0
  283. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +4 -0
  284. package/lib/view/creditAgentView/creditAgentViewPayload.d.ts +0 -36
  285. package/lib/view/creditAgentView/creditAgentViewReducer.d.ts +20 -9
  286. package/lib/view/creditAgentView/creditAgentViewReducer.js +77 -79
  287. package/lib/view/creditAgentView/creditAgentViewSelector.d.ts +0 -1
  288. package/lib/view/creditAgentView/creditAgentViewSelector.js +1 -2
  289. package/lib/view/creditAgentView/creditAgentViewState.d.ts +5 -46
  290. package/lib/view/creditAgentView/creditAgentViewState.js +0 -29
  291. package/lib/view/creditAgentView/epics/downloadCreditReportEpic.d.ts +20 -5
  292. package/lib/view/creditAgentView/epics/downloadCreditReportEpic.js +21 -16
  293. package/lib/view/creditAgentView/epics/fetchCardProfilesEpic.d.ts +4 -4
  294. package/lib/view/creditAgentView/epics/fetchCardProfilesEpic.js +4 -4
  295. package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.d.ts +6 -6
  296. package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +5 -5
  297. package/lib/view/creditAgentView/epics/fetchCreditAgentMacroEpic.d.ts +5 -5
  298. package/lib/view/creditAgentView/epics/fetchCreditAgentMacroEpic.js +5 -5
  299. package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.js +8 -3
  300. package/lib/view/creditAgentView/epics/updateCardProfileEpic.d.ts +5 -5
  301. package/lib/view/creditAgentView/epics/updateCardProfileEpic.js +4 -10
  302. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  303. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +9 -0
  304. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +67 -0
  305. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +4 -9
  306. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +10 -0
  307. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +69 -0
  308. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +2 -2
  309. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.d.ts +13 -0
  310. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadMatchResultToastEpic.js +37 -0
  311. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +2 -2
  312. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +5 -3
  313. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +20 -5
  314. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.d.ts +10 -0
  315. package/lib/view/expenseAutomationView/epics/missingReceipts/refetchCompletedTransactionsOnBulkUploadSortEpic.js +16 -0
  316. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.d.ts +18 -0
  317. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +102 -0
  318. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +7 -13
  319. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +2 -2
  320. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +20 -4
  321. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -1
  322. package/lib/view/expenseAutomationView/helpers/bulkUploadTiming.d.ts +16 -0
  323. package/lib/view/expenseAutomationView/helpers/bulkUploadTiming.js +19 -0
  324. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.d.ts +7 -0
  325. package/lib/view/expenseAutomationView/helpers/rollingCalendarDateRangeInclusive.js +16 -0
  326. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  327. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +2 -2
  328. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  329. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +1 -1
  330. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +5 -0
  331. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +10 -0
  332. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +45 -0
  333. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  334. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +22 -2
  335. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +18 -2
  336. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +30 -7
  337. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +18 -4
  338. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +168 -4
  339. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +2 -0
  340. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +2 -0
  341. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +7 -2
  342. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -2
  343. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +10 -2
  344. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +63 -6
  345. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +14 -4
  346. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +136 -9
  347. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +13 -3
  348. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +8 -0
  349. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +27 -0
  350. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +5 -1
  351. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +14 -0
  352. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  353. package/lib/view/financeStatement/financeStatementSelector.d.ts +2 -0
  354. package/lib/view/financeStatement/financeStatementSelector.js +12 -1
  355. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  356. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +3 -0
  357. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.d.ts +9 -0
  358. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +51 -0
  359. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.d.ts +6 -0
  360. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +34 -0
  361. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +33 -0
  362. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +2 -0
  363. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +33 -0
  364. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +117 -0
  365. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.d.ts +9 -0
  366. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +69 -0
  367. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +19 -0
  368. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +2 -0
  369. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.d.ts +22 -0
  370. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.js +2 -0
  371. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  372. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +2 -1
  373. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  374. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  375. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  376. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  377. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.d.ts +75 -0
  378. package/lib/view/spendManagement/autotransferRules/autoTransferRulesPayload.js +30 -0
  379. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.d.ts +50 -0
  380. package/lib/view/spendManagement/autotransferRules/autoTransferRulesReducer.js +206 -0
  381. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +24 -0
  382. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +61 -0
  383. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +38 -0
  384. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.js +2 -0
  385. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.d.ts +12 -0
  386. package/lib/view/spendManagement/autotransferRules/epics/createAutoTransferRuleEpic.js +106 -0
  387. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.d.ts +8 -0
  388. package/lib/view/spendManagement/autotransferRules/epics/deleteAutoTransferRuleEpic.js +52 -0
  389. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.d.ts +7 -0
  390. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferReviewDetailEpic.js +40 -0
  391. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.d.ts +7 -0
  392. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRuleHistory.js +52 -0
  393. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.d.ts +10 -0
  394. package/lib/view/spendManagement/autotransferRules/epics/fetchAutoTransferRulesEpic.js +54 -0
  395. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.d.ts +8 -0
  396. package/lib/view/spendManagement/autotransferRules/epics/updateAutoTransferRuleEpic.js +73 -0
  397. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +5 -5
  398. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  399. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -0
  400. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
  401. package/lib/view/spendManagement/billPay/billList/billListState.js +1 -0
  402. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +7 -3
  403. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  404. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +7 -2
  405. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +13 -6
  406. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +4 -4
  407. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  408. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +1 -0
  409. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +2 -0
  410. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +6 -3
  411. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  412. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.d.ts +1 -0
  413. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +12 -0
  414. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
  415. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +1 -0
  416. package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +2 -2
  417. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +2 -1
  418. package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +2 -1
  419. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +9 -1
  420. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +10 -3
  421. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  422. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -2
  423. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  424. package/lib/view/topEx/topExSelector.d.ts +1 -1
  425. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  426. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +16 -14
  427. package/lib/view/transactionDetail/transactionDetailSelector.d.ts +1 -0
  428. package/lib/view/transactionDetail/transactionDetailSelector.js +9 -2
  429. package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +1 -1
  430. package/lib/view/twoFactorAuthentication/resendOtpEpic.js +15 -1
  431. package/package.json +1 -1
@@ -16,6 +16,7 @@ const companySelector_1 = require("../../../../entity/company/companySelector");
16
16
  const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
17
17
  const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
18
18
  const paymentInstrumentSelector_1 = require("../../../../entity/paymentInstrument/paymentInstrumentSelector");
19
+ const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
19
20
  const userSelector_1 = require("../../../../entity/user/userSelector");
20
21
  const vendorSelector_1 = require("../../../../entity/vendor/vendorSelector");
21
22
  const zeniDayJS_1 = require("../../../../zeniDayJS");
@@ -181,12 +182,15 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
181
182
  isCancelled = sourceBillDetail.billDetailLocalData.isCancelled;
182
183
  billStage = billPayInfo?.stage.code ?? 'draft';
183
184
  if (billViewState != null) {
184
- fetchState = (0, reduceFetchState_1.reduceFetchState)([
185
+ const fetchStateList = [
185
186
  sourceBillDetail.fetchStatus,
186
187
  accountListState.byReportId.billPayAccountList,
187
- classListState,
188
188
  billPaySetupApproverViewState,
189
- ]).fetchState;
189
+ ];
190
+ if ((0, tenantSelector_1.getIsAccountingClassesEnabled)(state)) {
191
+ fetchStateList.push(classListState);
192
+ }
193
+ fetchState = (0, reduceFetchState_1.reduceFetchState)(fetchStateList).fetchState;
190
194
  deleteStatus = billViewState.deleteStatus;
191
195
  billActivities = (0, billDetailViewSelector_1.getBillActivities)(state, billId, billPayInfo?.stage.code);
192
196
  }
@@ -200,11 +204,14 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
200
204
  }
201
205
  }
202
206
  else {
203
- fetchState = (0, reduceFetchState_1.reduceFetchState)([
207
+ const newBillFetchStateList = [
204
208
  accountListState.byReportId.billPayAccountList,
205
- classListState,
206
209
  billPaySetupApproverViewState,
207
- ]).fetchState;
210
+ ];
211
+ if ((0, tenantSelector_1.getIsAccountingClassesEnabled)(state)) {
212
+ newBillFetchStateList.push(classListState);
213
+ }
214
+ fetchState = (0, reduceFetchState_1.reduceFetchState)(newBillFetchStateList).fetchState;
208
215
  }
209
216
  if (sourceBillDetail != null && fetchState == 'Completed') {
210
217
  const updatedRecord = sourceBillDetail.billDetailLocalData;
@@ -52,12 +52,12 @@ export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").Actio
52
52
  chargeCardId: ID;
53
53
  fetchState: FetchState;
54
54
  error?: ZeniAPIStatus;
55
- }, "chargeCardDetail/updatePhysicalChargeCardAttemptSuccessOrFailure">, updatePhysicalChargeCardAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "success" | "failed"], {
55
+ }, "chargeCardDetail/updatePhysicalChargeCardAttemptSuccessOrFailure">, updatePhysicalChargeCardAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "failed" | "success"], {
56
56
  chargeCardId: string;
57
- statusCode: "success" | "failed";
58
- }, "chargeCardDetail/updatePhysicalChargeCardAttempt", never, never>, updateDebitCardPinAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "success" | "failed"], {
57
+ statusCode: "failed" | "success";
58
+ }, "chargeCardDetail/updatePhysicalChargeCardAttempt", never, never>, updateDebitCardPinAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "failed" | "success"], {
59
59
  chargeCardId: string;
60
- statusCode: "success" | "failed";
60
+ statusCode: "failed" | "success";
61
61
  }, "chargeCardDetail/updateDebitCardPinAttempt", never, never>, updateDebitCardPinAttemptSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
62
62
  chargeCardId: ID;
63
63
  fetchState: FetchState;
@@ -61,7 +61,7 @@ export declare const initialCreditAcc: CreditAccount;
61
61
  export declare const initialDebitCardSummaries: DebitCardSummaries;
62
62
  export declare const initialResendRevokeCardInvite: ResendRevokeCardInvite;
63
63
  export declare const initialCreditAccountRepayment: CreditAccountRepayment;
64
- export declare const toChargeCardSortKeyType: (v: string) => "status" | "owner" | "cardName" | "limit" | "department" | "cardType" | "utilisation";
64
+ export declare const toChargeCardSortKeyType: (v: string) => "status" | "accountType" | "owner" | "cardName" | "limit" | "department" | "cardType" | "utilisation";
65
65
  export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
66
66
  export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
67
67
  export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
@@ -78,6 +78,7 @@ const ALL_CHARGE_CARD_SORT_KEYS = [
78
78
  'cardName',
79
79
  'department',
80
80
  'cardType',
81
+ 'accountType',
81
82
  'status',
82
83
  'utilisation',
83
84
  'limit',
@@ -233,6 +233,8 @@ const getCardsBySortKey = (card, sortKey) => {
233
233
  return card.cardName.toLowerCase();
234
234
  case 'cardType':
235
235
  return card.type.code;
236
+ case 'accountType':
237
+ return card.type.code.includes('credit') ? 'credit' : 'debit';
236
238
  case 'status':
237
239
  return card.status.code;
238
240
  case 'utilisation':
@@ -69,13 +69,16 @@ const getEditRemiDetail = (state, reimbursementId) => {
69
69
  paymentTo: reimbursementInfo?.toAccount.billAccountId,
70
70
  };
71
71
  if (sourceRemiDetail != null) {
72
- fetchState = (0, reduceFetchState_1.reduceFetchState)([
72
+ const fetchStateList = [
73
73
  sourceRemiDetail.fetchStatus,
74
74
  accountListState.byReportId.reimbursementAccountList,
75
- classListState,
76
75
  merchantListState,
77
76
  reimbursementConfigState,
78
- ]).fetchState;
77
+ ];
78
+ if ((0, tenantSelector_1.getIsAccountingClassesEnabled)(state)) {
79
+ fetchStateList.push(classListState);
80
+ }
81
+ fetchState = (0, reduceFetchState_1.reduceFetchState)(fetchStateList).fetchState;
79
82
  remiStage = reimbursementInfo?.stage.code ?? 'draft';
80
83
  createdBy = (0, userSelector_1.getUserByUserId)(userState, reimbursement?.createdBy ?? '');
81
84
  createTime = reimbursement?.createTime;
@@ -27,7 +27,7 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
27
27
  }, "remiList/updateRemiListFailure", never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
28
  period: TimePeriod;
29
29
  uiState: Partial<RemiListUIState>;
30
- }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"rejected" | "failed" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"failed" | "cancelled" | "rejected" | "ach" | "wire" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
31
31
  filters: ReimbursementFilters;
32
32
  }, "remiList/updateFilterResult">, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
33
33
  uiState: Partial<RemiListDownloadUIState>;
@@ -42,6 +42,7 @@ export interface ReimbursementView extends Reimbursement {
42
42
  approvers: Approvers;
43
43
  submittedBy: User | undefined;
44
44
  bulkSelectInfo?: RemiBulkSelectInfo;
45
+ createdByUser?: User;
45
46
  }
46
47
  export declare const getRemiList: (state: RootState, currentTimePeriod: TimePeriod, isBulkActionFeatureEnabled: boolean) => RemiListReport;
47
48
  export declare const getApproversOrRejectors: (reimbursement: Reimbursement, entityApprovalStatusState: EntityApprovalStatusState, userState: UserState) => Approvers;
@@ -51,6 +51,7 @@ const getRemiList = (state, currentTimePeriod, isBulkActionFeatureEnabled) => {
51
51
  return {
52
52
  ...reimbursement,
53
53
  submittedBy: (0, userSelector_1.getUserByUserId)(userState, reimbursement.reimburseeUserId),
54
+ createdByUser: (0, userSelector_1.getUserByUserId)(userState, reimbursement.createdBy),
54
55
  approvers: approvers,
55
56
  };
56
57
  });
@@ -423,6 +424,14 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
423
424
  reimbursementsWithNoSortKeyValue.push(reimbursement);
424
425
  }
425
426
  break;
427
+ case 'createdBy':
428
+ if (reimbursement.createdByUser != null) {
429
+ reimbursementsWithSortKeyValue.push(reimbursement);
430
+ }
431
+ else {
432
+ reimbursementsWithNoSortKeyValue.push(reimbursement);
433
+ }
434
+ break;
426
435
  }
427
436
  });
428
437
  const getColumnWiseSortOrder = (sortOrder) => {
@@ -430,6 +439,7 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
430
439
  case 'reportName':
431
440
  case 'type':
432
441
  case 'status':
442
+ case 'createdBy':
433
443
  return sortOrder === 'ascending' ? 'asc' : 'desc';
434
444
  default:
435
445
  return sortOrder === 'ascending' ? 'desc' : 'asc';
@@ -449,6 +459,8 @@ const getRemiListOnSort = (sortKey, sortOrder, currentTab, reimbursements) => {
449
459
  return getStatusPerTab(reimbursement);
450
460
  case 'amount':
451
461
  return reimbursement.amount.amount ?? 0;
462
+ case 'createdBy':
463
+ return `${reimbursement.createdByUser?.firstName ?? ''} ${reimbursement.createdByUser?.lastName ?? ''}`.toLowerCase();
452
464
  }
453
465
  }, getColumnWiseSortOrder(sortOrder));
454
466
  return [
@@ -33,12 +33,12 @@ export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "sched
33
33
  export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
34
34
  export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
35
35
  export type RemiTabType = ReturnType<typeof toRemiTabType>;
36
- export declare const toRemiSubTabType: (v: string) => "rejected" | "failed" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
- export declare const toRemiSubTabTypeStrict: (v: string) => "rejected" | "failed" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
36
+ export declare const toRemiSubTabType: (v: string) => "failed" | "cancelled" | "rejected" | "ach" | "wire" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
+ export declare const toRemiSubTabTypeStrict: (v: string) => "failed" | "cancelled" | "rejected" | "ach" | "wire" | "deleted" | "overdue" | "all" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
38
38
  export type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
39
- export declare const toRemiSubTabUnderScoreType: (v: string) => "rejected" | "failed" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "all" | "awaiting_approval" | "awaiting_my_approval" | "my_drafts" | "awaiting_all_approval";
39
+ export declare const toRemiSubTabUnderScoreType: (v: string) => "failed" | "cancelled" | "rejected" | "ach" | "wire" | "deleted" | "overdue" | "all" | "awaiting_approval" | "awaiting_my_approval" | "my_drafts" | "awaiting_all_approval";
40
40
  export type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
41
- declare const toReimbursementSortKeyType: (v: string) => "amount" | "status" | "type" | "submittedOn" | "reportName";
41
+ declare const toReimbursementSortKeyType: (v: string) => "amount" | "status" | "type" | "createdBy" | "submittedOn" | "reportName";
42
42
  export type ReimbursementViewSortKey = ReturnType<typeof toReimbursementSortKeyType>;
43
43
  export interface ReimbursementFilters {
44
44
  categories: ReimbursementFilterCategory[];
@@ -64,6 +64,7 @@ exports.toRemiSubTabUnderScoreType = toRemiSubTabUnderScoreType;
64
64
  const ALL_REIMBURSEMENT_SORT_KEYS = [
65
65
  'reportName',
66
66
  'submittedOn',
67
+ 'createdBy',
67
68
  'type',
68
69
  'status',
69
70
  'amount',
@@ -9,7 +9,7 @@ const treasuryStatementListReducer_1 = require("../../treasuryStatementList/trea
9
9
  const treasuryTaxLetterListReducer_1 = require("../../treasuryTaxLetterList/treasuryTaxLetterListReducer");
10
10
  const treasuryDetailReducer_1 = require("../treasuryDetailReducer");
11
11
  const fetchTreasuryDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(treasuryDetailReducer_1.fetchTreasuryOverviewDetail.match), (0, operators_1.switchMap)((action) => {
12
- const { cacheOverride } = action.payload;
12
+ const { cacheOverride, fetchOnlySummary } = action.payload;
13
13
  const state = state$.value;
14
14
  const treasuryActions = [];
15
15
  if (cacheOverride === true) {
@@ -20,7 +20,7 @@ const fetchTreasuryDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
20
20
  treasuryActions.push((0, treasuryDetailReducer_1.fetchTreasuryHistory)());
21
21
  treasuryActions.push((0, treasuryDetailReducer_1.fetchTreasuryTransactionList)(true));
22
22
  }
23
- else {
23
+ else if (fetchOnlySummary !== true) {
24
24
  // Check treasury statement list state
25
25
  const treasuryStatementListState = state.treasuryStatementListState;
26
26
  if (treasuryStatementListState.hasValidState() === false &&
@@ -4,8 +4,9 @@ import { TreasuryTransferMoneyResponsePayload } from '../treasuryTransferMoney/t
4
4
  import { FetchTreasuryAccountHistoryResponse, FetchTreasuryDetailResponse, TreasuryTransactionPayload } from './treasuryDetailPayload';
5
5
  import { TreasuryDetailState, TreasuryListUIState } from './treasuryDetailState';
6
6
  export declare const initialState: TreasuryDetailState;
7
- export declare const fetchTreasuryOverviewDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean], {
7
+ export declare const fetchTreasuryOverviewDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean, fetchOnlySummary?: boolean | undefined], {
8
8
  cacheOverride: boolean;
9
+ fetchOnlySummary: boolean | undefined;
9
10
  }, "treasuryDetail/fetchTreasuryOverviewDetail", never, never>, fetchTreasuryHistory: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"treasuryDetail/fetchTreasuryHistory">, fetchTreasuryHistorySuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
11
  data: FetchTreasuryAccountHistoryResponse;
11
12
  }, "treasuryDetail/fetchTreasuryHistorySuccess">, fetchTreasuryHistoryFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -34,10 +34,11 @@ const treasuryDetail = (0, toolkit_1.createSlice)({
34
34
  reducer(draft) {
35
35
  draft.fetchState = 'In-Progress';
36
36
  },
37
- prepare(cacheOverride) {
37
+ prepare(cacheOverride, fetchOnlySummary) {
38
38
  return {
39
39
  payload: {
40
40
  cacheOverride,
41
+ fetchOnlySummary,
41
42
  },
42
43
  };
43
44
  },
@@ -1,13 +1,21 @@
1
1
  import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
2
+ import { DepositAccount } from '../../../../entity/depositAccount/depositAccount';
2
3
  import { PaymentAccount } from '../../../../entity/paymentAccount/paymentAccountState';
3
4
  import { RootState } from '../../../../reducer';
5
+ import { AutoTransferRule } from '../../autotransferRules/autoTransferRulesState';
4
6
  import { PlaidConnectionDetails } from '../../plaidAccount/plaidAccountViewState';
5
7
  import { DepositAccountListSelectorView } from '../depositAccountList/depositAccountListSelector';
6
8
  import { PaymentAccountListSelectorView } from '../paymentAccountList/paymentAccountListSelector';
7
9
  import { ZeniAccountsConfigSelectorView } from '../zeniAccountsConfig/zeniAccountsConfigSelector';
8
10
  import { NewCheckingAccount, ZeniAccountSummaryWithBalance } from './zeniAccountListState';
11
+ export interface DepositAccountWithAutoTransferRules extends DepositAccount {
12
+ autoTransferRules?: AutoTransferRule[];
13
+ }
14
+ export interface ZeniDepositAccountListSelectorView extends Omit<DepositAccountListSelectorView, 'depositAccounts'> {
15
+ depositAccounts: DepositAccountWithAutoTransferRules[];
16
+ }
9
17
  export interface ZeniAccountListSelectorView extends SelectorView {
10
- depositAccountsSelectorView: DepositAccountListSelectorView;
18
+ depositAccountsSelectorView: ZeniDepositAccountListSelectorView;
11
19
  externalAccountsSelectorView: PaymentAccountListSelectorView;
12
20
  newCheckingAccount: NewCheckingAccount;
13
21
  plaidConnectionDetails: PlaidConnectionDetails;
@@ -7,9 +7,16 @@ const depositAccountListSelector_1 = require("../depositAccountList/depositAccou
7
7
  const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccountListSelector");
8
8
  const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
9
9
  const getZeniAccountList = (state) => {
10
- const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
10
+ const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, autotransferRulesState, } = state;
11
11
  const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
12
- const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState);
12
+ const baseDepositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState);
13
+ const depositAccountsSelectorView = {
14
+ ...baseDepositAccountsSelectorView,
15
+ depositAccounts: baseDepositAccountsSelectorView.depositAccounts.map((depositAccount) => ({
16
+ ...depositAccount,
17
+ autoTransferRules: autotransferRulesState.rules.filter((rule) => !rule.isDeleted && rule.sourceBankAccountId === depositAccount.id),
18
+ })),
19
+ };
13
20
  const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
14
21
  const { paymentAccountIds } = paymentAccountListState;
15
22
  const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
@@ -45,7 +52,7 @@ const getZeniAccountList = (state) => {
45
52
  plaidConnectionDetails,
46
53
  externalAccountsSelectorView,
47
54
  newCheckingAccount: zeniAccountListState.newCheckingAccount,
48
- fetchState: depositAccountsSelectorView.fetchState,
55
+ fetchState: baseDepositAccountsSelectorView.fetchState,
49
56
  };
50
57
  };
51
58
  exports.getZeniAccountList = getZeniAccountList;
@@ -1,4 +1,4 @@
1
- export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "avg2MonthExpenses" | "companyName" | "monthlyRecurringRevenue" | "notes" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus";
1
+ export declare const toSubscriptionSortKeyType: (v: string) => "status" | "companyName" | "controller" | "plans" | "planLowerLimit" | "planHigherLimit" | "avg2MonthExpenses" | "addons" | "upgradeStatus" | "monthlyRecurringRevenue" | "notes";
2
2
  export type SubscriptionViewSortKey = ReturnType<typeof toSubscriptionSortKeyType>;
3
3
  export declare const SUBSCRIPTION_STATUS_CODES: string[];
4
4
  declare const toSubscriptionStatusCodeType: (v: string) => string;
@@ -98,11 +98,11 @@ exports.allTaskStatus = [
98
98
  },
99
99
  {
100
100
  code: 'done',
101
- name: 'Done',
101
+ name: 'In Review',
102
102
  },
103
103
  {
104
104
  code: 'resolved',
105
- name: 'Resolved',
105
+ name: 'Complete',
106
106
  },
107
107
  ];
108
108
  exports.allTaskPriority = [
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getTasksCardReport: (state: RootState) => {
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" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card";
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" | "profit_and_loss_by_projects" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -4,7 +4,7 @@ import { RootState } from '../../reducer';
4
4
  import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
5
5
  import { TopExState } from './topExState';
6
6
  export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number) => {
7
- 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" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card";
7
+ 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" | "profit_and_loss_by_projects" | "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" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation";
8
8
  reportTitle: string;
9
9
  version: string | number | undefined;
10
10
  status: import("../..").Status | undefined;
@@ -78,8 +78,8 @@ const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLoc
78
78
  lineItem.account?.qboId !== accountLine.account.qboId &&
79
79
  Boolean(lineItem.account?.qboId);
80
80
  hasClassChanged =
81
- Boolean(lineItem.class?.qboId) &&
82
- lineItem.class?.qboId !== accountLine.class.qboId;
81
+ (lineItem.class?.qboId != null || accountLine.class?.qboId != null) &&
82
+ lineItem.class?.qboId !== accountLine.class?.qboId;
83
83
  const recommendedAccountBase = (0, exports.toRecommendedAccountBase)(lineItem.amount.amount, lineItem.account);
84
84
  const recommendedClassBase = (0, exports.toRecommendedClassBase)(lineItem.amount.amount, lineItem.class);
85
85
  const latestRecommendedCategory = lineItem.recommendedAccount;
@@ -144,13 +144,13 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
144
144
  record.isRetainedCategorySelected = false;
145
145
  }
146
146
  if (Boolean(recommendedClass?.qboId) &&
147
- recommendedClass?.qboId !== accountLine.class.qboId) {
147
+ recommendedClass?.qboId !== accountLine.class?.qboId) {
148
148
  record.isRecommendedClassSelected = false;
149
149
  record.recommendedClass = recommendedClass;
150
150
  record.isClassUpdateSelected = false;
151
151
  }
152
152
  if (accountLine.isClassMiscategorized &&
153
- Boolean(accountLine.class.qboId) &&
153
+ Boolean(accountLine.class?.qboId) &&
154
154
  Boolean(isVendorOrCustomerPresent)) {
155
155
  record.retainedClass = accountLine.class;
156
156
  record.isRetainedClassSelected = false;
@@ -342,14 +342,14 @@ const toUpdateLineItemsOriginalCategoryClass = (transaction, transactionDetailLo
342
342
  }
343
343
  };
344
344
  const updateClass = () => {
345
- if (recommendedClass?.qboId !== accountLine.class.qboId &&
345
+ if (recommendedClass?.qboId !== accountLine.class?.qboId &&
346
346
  Boolean(recommendedClass?.qboId)) {
347
347
  record.class = accountLine.class;
348
348
  record.isRecommendedClassSelected = false;
349
349
  record.recommendedClass = recommendedClass;
350
350
  record.isClassUpdateSelected = false;
351
351
  if (accountLine.isClassMiscategorized &&
352
- Boolean(accountLine.class.qboId) &&
352
+ Boolean(accountLine.class?.qboId) &&
353
353
  Boolean(isVendorOrCustomerPresent)) {
354
354
  record.retainedClass = accountLine.class;
355
355
  record.isRetainedClassSelected = false;
@@ -362,7 +362,7 @@ const toUpdateLineItemsOriginalCategoryClass = (transaction, transactionDetailLo
362
362
  record.recommendedClass = recommendedClass;
363
363
  record.isClassUpdateSelected = false;
364
364
  if (accountLine.isClassMiscategorized &&
365
- Boolean(accountLine.class.qboId) &&
365
+ Boolean(accountLine.class?.qboId) &&
366
366
  Boolean(isVendorOrCustomerPresent)) {
367
367
  record.retainedClass = recommendedClass;
368
368
  record.isRetainedClassSelected = false;
@@ -659,13 +659,13 @@ const setEntityRecommendationForLineIdInLocalData = (transaction, transactionDet
659
659
  record.isRetainedCategorySelected = false;
660
660
  }
661
661
  }
662
- if (recommendedClass?.qboId !== accountLine.class.qboId &&
662
+ if (recommendedClass?.qboId !== accountLine.class?.qboId &&
663
663
  Boolean(recommendedClass?.qboId)) {
664
664
  record.isRecommendedClassSelected = false;
665
665
  record.recommendedClass = recommendedClass;
666
666
  record.isClassUpdateSelected = false;
667
667
  if (accountLine.isClassMiscategorized &&
668
- Boolean(accountLine.class.qboId)) {
668
+ Boolean(accountLine.class?.qboId)) {
669
669
  record.retainedClass = accountLine.class;
670
670
  record.isRetainedClassSelected = false;
671
671
  }
@@ -673,12 +673,12 @@ const setEntityRecommendationForLineIdInLocalData = (transaction, transactionDet
673
673
  else {
674
674
  record.isRecommendedClassSelected = false;
675
675
  record.recommendedClass = recommendedClass;
676
- if (recommendedClass?.qboId === accountLine.class.qboId) {
676
+ if (recommendedClass?.qboId === accountLine.class?.qboId) {
677
677
  record.recommendedClass = undefined;
678
678
  }
679
679
  record.isClassUpdateSelected = false;
680
680
  if (accountLine.isClassMiscategorized &&
681
- Boolean(accountLine.class.qboId)) {
681
+ Boolean(accountLine.class?.qboId)) {
682
682
  record.retainedClass = recommendedClass;
683
683
  record.isRetainedClassSelected = false;
684
684
  }
@@ -694,7 +694,7 @@ const setEntityRecommendationForLineIdInLocalData = (transaction, transactionDet
694
694
  Boolean(recommendedAccount?.qboId) !== false) {
695
695
  record.account = recommendedAccount;
696
696
  }
697
- if (Boolean(record.class.qboId) === false &&
697
+ if (Boolean(record.class?.qboId) === false &&
698
698
  Boolean(recommendedClass?.qboId) !== false) {
699
699
  record.class = recommendedClass;
700
700
  }
@@ -817,7 +817,9 @@ const getChangedLineItemCountFromLocalData = (transaction, transactionLocalData)
817
817
  accountLineLocal.account?.qboId !== accountLine.account.qboId &&
818
818
  accountLineLocal.account?.accountId !== accountLine.account.accountId;
819
819
  hasClassChanged =
820
- accountLineLocal.class?.qboId !== accountLine.class.qboId;
820
+ (accountLineLocal.class?.qboId != null ||
821
+ accountLine.class?.qboId != null) &&
822
+ accountLineLocal.class?.qboId !== accountLine.class?.qboId;
821
823
  }
822
824
  hasDescriptionChanged =
823
825
  transactionLocalData.lineItemById[lineId] != null
@@ -957,10 +959,10 @@ const toUpdateLineItemsToOriginalVendor = (transaction, transactionDetailLocalDa
957
959
  record.isRecommendedClassSelected = false;
958
960
  record.recommendedClass = recommendedClass;
959
961
  record.isClassUpdateSelected = false;
960
- if (recommendedClass?.qboId !== accountLine.class.qboId &&
962
+ if (recommendedClass?.qboId !== accountLine.class?.qboId &&
961
963
  Boolean(recommendedClass?.qboId)) {
962
964
  if (accountLine.isClassMiscategorized &&
963
- Boolean(accountLine.class.qboId) &&
965
+ Boolean(accountLine.class?.qboId) &&
964
966
  Boolean(isVendorOrCustomerPresent)) {
965
967
  record.retainedClass = accountLine.class;
966
968
  record.isRetainedClassSelected = false;
@@ -973,7 +975,7 @@ const toUpdateLineItemsToOriginalVendor = (transaction, transactionDetailLocalDa
973
975
  record.recommendedClass = recommendedClass;
974
976
  record.isClassUpdateSelected = false;
975
977
  if (accountLine.isClassMiscategorized &&
976
- Boolean(accountLine.class.qboId) &&
978
+ Boolean(accountLine.class?.qboId) &&
977
979
  Boolean(isVendorOrCustomerPresent)) {
978
980
  record.retainedClass = recommendedClass;
979
981
  record.isRetainedClassSelected = false;
@@ -17,6 +17,7 @@ export interface TransactionDetailReport extends SelectorView {
17
17
  classHierarchyList: NestedClassHierarchyForReport[];
18
18
  classList: ClassListSelectorView;
19
19
  deleteStatusByAttachmentName: Record<string, FetchStateAndError>;
20
+ isAccountingClassesEnabled: boolean;
20
21
  linkedTransactions: SupportedTransactionWithCOT[];
21
22
  transactionDetailLocalData: TransactionDetailLocalData;
22
23
  transactionDetailUpdateStatus: FetchStateAndError;
@@ -7,6 +7,7 @@ exports.getInitialUpdatablePeriodsForTransactionRecommendations = exports.getTra
7
7
  exports.getTransactionDetailForTransaction = getTransactionDetailForTransaction;
8
8
  const get_1 = __importDefault(require("lodash/get"));
9
9
  const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
10
+ const tenantSelector_1 = require("../../entity/tenant/tenantSelector");
10
11
  const transactionType_1 = require("../../entity/transaction/stateTypes/transactionType");
11
12
  const transactionHelper_1 = require("../../entity/transaction/transactionHelper");
12
13
  const transactionSelector_1 = require("../../entity/transaction/transactionSelector");
@@ -58,9 +59,14 @@ const getTransactionDetail = (state, transactionId, fetchLinkedTransactions = tr
58
59
  }
59
60
  }
60
61
  const accountsList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
61
- const classList = (0, classListSelector_1.getClassList)(classState, classListState);
62
+ const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
63
+ const classList = isAccountingClassesEnabled
64
+ ? (0, classListSelector_1.getClassList)(classState, classListState)
65
+ : { classes: [], nestedClassHierarchy: [], fetchState: 'Completed', error: undefined, version: 0 };
62
66
  const accountsHierarchyList = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, 'accountList');
63
- const classHierarchyList = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
67
+ const classHierarchyList = isAccountingClassesEnabled
68
+ ? (0, classListSelector_1.getNestedClassListHierarchy)(classListState)
69
+ : [];
64
70
  const transactionDetailAnyUpdateStatus = reduceUpdateFetchStates(transactionDetail);
65
71
  const vendors = (0, vendorSelector_1.getVendorsByVendorIds)(vendorState, vendorListState.vendorIds);
66
72
  return {
@@ -78,6 +84,7 @@ const getTransactionDetail = (state, transactionId, fetchLinkedTransactions = tr
78
84
  classHierarchyList,
79
85
  accountsHierarchyList,
80
86
  classList: classList,
87
+ isAccountingClassesEnabled,
81
88
  isUpdateNotAllowed: transactionDetail?.isUpdateNotAllowed,
82
89
  transactionDetailLocalData: transactionDetail?.transactionDetailLocalData ??
83
90
  transactionDetailState_1.initialSupportedTransactionDetail.transactionDetailLocalData,
@@ -10,4 +10,4 @@ import { resendOtpCardHolder, sendOtpCardHolderFailure, sendOtpCardHolderSuccess
10
10
  import { resendOtpSpendManagementSetUp, sendOtpFailureSpendManagementSetUp, sendOtpSuccessSpendManagementSetUp } from '../spendManagement/commonSetup/setupViewReducer';
11
11
  import { resendOtp, sendOtpFailure, sendOtpSuccess } from './twoFactorAuthenticationReducer';
12
12
  export type ActionType = ReturnType<typeof resendOtp> | ReturnType<typeof sendOtpSuccess> | ReturnType<typeof sendOtpFailure> | ReturnType<typeof resendOtpSpendManagementSetUp> | ReturnType<typeof sendOtpSuccessSpendManagementSetUp> | ReturnType<typeof sendOtpFailureSpendManagementSetUp> | ReturnType<typeof resendOtpVendorView> | ReturnType<typeof sendOtpVendorViewSuccess> | ReturnType<typeof sendOtpVendorViewFailure> | ReturnType<typeof resendOnboardingOfficerOtp> | ReturnType<typeof sendOnboardingOfficerOtpSuccess> | ReturnType<typeof sendOnboardingOfficerOtpFailure> | ReturnType<typeof resendOtpCardUserOnboarding> | ReturnType<typeof sendOtpCardUserOnboardingSuccess> | ReturnType<typeof sendOtpCardUserOnboardingFailure> | ReturnType<typeof resendOtpMyProfile> | ReturnType<typeof resendOtpCardHolder> | ReturnType<typeof sendOtpCardHolderSuccess> | ReturnType<typeof sendOtpCardHolderFailure> | ReturnType<typeof sendOtpMyProfileFailure> | ReturnType<typeof sendOtpMyProfileSuccess>;
13
- export declare const resendOtpEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
13
+ export declare const resendOtpEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -11,11 +11,20 @@ const cardUserOnboardingReducer_1 = require("../spendManagement/chargeCards/card
11
11
  const chargeCardDetailReducer_1 = require("../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer");
12
12
  const setupViewReducer_1 = require("../spendManagement/commonSetup/setupViewReducer");
13
13
  const twoFactorAuthenticationReducer_1 = require("./twoFactorAuthenticationReducer");
14
- const resendOtpEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(twoFactorAuthenticationReducer_1.resendOtp.match), (0, operators_1.mergeMap)((action) => {
14
+ const resendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(twoFactorAuthenticationReducer_1.resendOtp.match), (0, operators_1.mergeMap)((action) => {
15
15
  const resendOtpActions = [];
16
16
  const { otpChallenge, twoFASource, entityId } = action.payload;
17
+ const chargeCard = twoFASource === 'ChargeCardHolder' && entityId != null
18
+ ? state$.value.chargeCardState.chargeCardByID[entityId]
19
+ : null;
17
20
  const payload = {
18
21
  otp_challenge: otpChallenge,
22
+ ...(chargeCard != null
23
+ ? {
24
+ provider_card_id: chargeCard.cardProviderID,
25
+ is_for_charge_cards: true,
26
+ }
27
+ : {}),
19
28
  };
20
29
  switch (twoFASource) {
21
30
  case 'SpendManagementSetup':
@@ -33,6 +42,11 @@ const resendOtpEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operator
33
42
  case 'CardUserOnboarding':
34
43
  resendOtpActions.push((0, cardUserOnboardingReducer_1.resendOtpCardUserOnboarding)());
35
44
  break;
45
+ case 'ChargeCardHolder':
46
+ if (entityId != null) {
47
+ resendOtpActions.push((0, chargeCardDetailReducer_1.resendOtpCardHolder)({ chargeCardId: entityId }));
48
+ }
49
+ break;
36
50
  }
37
51
  const resendOtp$ = zeniAPI
38
52
  .putAndGetJSON(`${zeniAPI.apiEndPoints.authMicroServiceBaseUrl}/1.0/otp/resend`, payload)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.20.3-betaSS12",
3
+ "version": "4.20.3-betaSS14",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",