@zeniai/client-epic-state 4.19.99-betaVR3 → 4.19.100

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 (262) hide show
  1. package/lib/commonStateTypes/animations.d.ts +1 -1
  2. package/lib/commonStateTypes/coaBalance/coaBalanceType.d.ts +0 -2
  3. package/lib/commonStateTypes/coaBalance/coaBalanceType.js +0 -6
  4. package/lib/commonStateTypes/currencyHelper.d.ts +0 -3
  5. package/lib/commonStateTypes/currencyHelper.js +1 -6
  6. package/lib/commonStateTypes/reduceFetchState.d.ts +0 -9
  7. package/lib/commonStateTypes/reduceFetchState.js +0 -26
  8. package/lib/entity/account/accountPayload.d.ts +0 -2
  9. package/lib/entity/account/accountPayload.js +0 -2
  10. package/lib/entity/account/accountState.d.ts +0 -2
  11. package/lib/entity/aiCfo/aiCfoSelector.d.ts +2 -1
  12. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  13. package/lib/entity/customer/customerState.d.ts +2 -0
  14. package/lib/entity/customer/customerState.js +5 -0
  15. package/lib/entity/depositAccount/depositAccount.d.ts +1 -1
  16. package/lib/entity/depositAccount/depositAccount.js +1 -8
  17. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -38
  18. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -78
  19. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -4
  20. package/lib/entity/jeSchedules/jeSchedulesSelector.js +1 -5
  21. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -37
  22. package/lib/entity/reimbursement/reimbursementPayload.d.ts +0 -2
  23. package/lib/entity/reimbursement/reimbursementPayload.js +0 -7
  24. package/lib/entity/reimbursement/reimbursementState.d.ts +0 -2
  25. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  26. package/lib/entity/snackbar/snackbarTypes.js +0 -1
  27. package/lib/entity/task/taskPayload.d.ts +0 -1
  28. package/lib/entity/task/taskPayload.js +0 -1
  29. package/lib/entity/task/taskState.d.ts +0 -1
  30. package/lib/entity/tenant/tenantPayload.d.ts +0 -1
  31. package/lib/entity/tenant/tenantReducer.js +0 -1
  32. package/lib/entity/tenant/tenantSelector.d.ts +0 -1
  33. package/lib/entity/tenant/tenantSelector.js +1 -9
  34. package/lib/entity/tenant/tenantState.d.ts +0 -1
  35. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.d.ts +1 -4
  36. package/lib/entity/transaction/payloadTypes/scheduleTransactionPayload.js +0 -1
  37. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -3
  38. package/lib/entity/transaction/payloadTypes/transactionPayload.js +1 -17
  39. package/lib/entity/transaction/stateTypes/scheduleTransaction.d.ts +0 -1
  40. package/lib/entity/transaction/stateTypes/transaction.d.ts +0 -5
  41. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
  42. package/lib/epic.d.ts +1 -13
  43. package/lib/epic.js +1 -13
  44. package/lib/esm/commonStateTypes/coaBalance/coaBalanceType.js +0 -5
  45. package/lib/esm/commonStateTypes/currencyHelper.js +0 -5
  46. package/lib/esm/commonStateTypes/reduceFetchState.js +0 -25
  47. package/lib/esm/entity/account/accountPayload.js +0 -2
  48. package/lib/esm/entity/customer/customerState.js +4 -1
  49. package/lib/esm/entity/depositAccount/depositAccount.js +1 -8
  50. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -78
  51. package/lib/esm/entity/jeSchedules/jeSchedulesSelector.js +1 -5
  52. package/lib/esm/entity/reimbursement/reimbursementPayload.js +0 -7
  53. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -1
  54. package/lib/esm/entity/task/taskPayload.js +0 -1
  55. package/lib/esm/entity/tenant/tenantReducer.js +0 -1
  56. package/lib/esm/entity/tenant/tenantSelector.js +0 -7
  57. package/lib/esm/entity/transaction/payloadTypes/scheduleTransactionPayload.js +0 -1
  58. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +1 -17
  59. package/lib/esm/epic.js +1 -13
  60. package/lib/esm/index.js +16 -25
  61. package/lib/esm/reducer.js +0 -6
  62. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +1 -82
  63. package/lib/esm/view/aiCfoView/aiCfoViewSelector.js +2 -8
  64. package/lib/esm/view/arAgingView/arAgingReport/arAgingReducer.js +1 -1
  65. package/lib/esm/view/arAgingView/arAgingReport/arAgingSelector.js +1 -1
  66. package/lib/esm/view/classList/fetchClassListEpic.js +2 -9
  67. package/lib/esm/view/commonVendorView/vendorView/vendorViewSelector.js +5 -18
  68. package/lib/esm/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +2 -6
  69. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
  70. package/lib/esm/view/expenseAutomationView/expenseAutomationViewSelector.js +1 -0
  71. package/lib/esm/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  72. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  73. package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +1 -189
  74. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -17
  75. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -433
  76. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -23
  77. package/lib/esm/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +2 -10
  78. package/lib/esm/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +6 -63
  79. package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +5 -256
  80. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +9 -22
  81. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +7 -14
  82. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +1 -18
  83. package/lib/esm/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -44
  84. package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  85. package/lib/esm/view/financeStatement/financeStatementReducer.js +8 -11
  86. package/lib/esm/view/financeStatement/financeStatementSelector.js +9 -24
  87. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +1 -6
  88. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesViewSelector.js +29 -2
  89. package/lib/esm/view/profitAndLossClassesView/profitAndLossForTimeframeClassesViewEpic.js +5 -7
  90. package/lib/esm/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.js +7 -9
  91. package/lib/esm/view/spendManagement/billPay/billList/billListSelector.js +0 -10
  92. package/lib/esm/view/spendManagement/billPay/billList/billListState.js +0 -1
  93. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -7
  94. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  95. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +2 -7
  96. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -13
  97. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +0 -1
  98. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -2
  99. package/lib/esm/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +4 -7
  100. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListSelector.js +0 -12
  101. package/lib/esm/view/spendManagement/reimbursement/remiListView/remiListState.js +0 -1
  102. package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +3 -3
  103. package/lib/esm/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
  104. package/lib/esm/view/taskManager/taskListView/taskListSelector.js +1 -3
  105. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  106. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +14 -16
  107. package/lib/esm/view/twoFactorAuthentication/resendOtpEpic.js +16 -2
  108. package/lib/esm/view/userListView/fetchUserListByTypeEpic.js +0 -11
  109. package/lib/esm/zeniAPI.js +2 -0
  110. package/lib/index.d.ts +21 -31
  111. package/lib/index.js +34 -102
  112. package/lib/reducer.d.ts +0 -6
  113. package/lib/reducer.js +0 -6
  114. package/lib/view/aiCfoView/aiCfoViewPayload.d.ts +0 -7
  115. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +1 -15
  116. package/lib/view/aiCfoView/aiCfoViewReducer.js +2 -83
  117. package/lib/view/aiCfoView/aiCfoViewSelector.d.ts +1 -4
  118. package/lib/view/aiCfoView/aiCfoViewSelector.js +2 -9
  119. package/lib/view/aiCfoView/aiCfoViewState.d.ts +1 -18
  120. package/lib/view/arAgingView/arAgingReport/arAgingReducer.js +2 -2
  121. package/lib/view/arAgingView/arAgingReport/arAgingSelector.js +5 -5
  122. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  123. package/lib/view/classList/fetchClassListEpic.d.ts +1 -1
  124. package/lib/view/classList/fetchClassListEpic.js +1 -8
  125. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +0 -1
  126. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +5 -18
  127. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
  128. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +2 -6
  129. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
  130. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +1 -0
  131. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +2 -2
  132. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  133. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -2
  134. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -118
  135. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -201
  136. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  137. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +2 -18
  138. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +3 -76
  139. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -434
  140. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
  141. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -24
  142. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -2
  143. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +1 -69
  144. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
  145. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +2 -10
  146. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +6 -63
  147. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +1 -1
  148. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +4 -255
  149. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +9 -22
  150. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +6 -13
  151. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -5
  152. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -20
  153. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -142
  154. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +1 -54
  155. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
  156. package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
  157. package/lib/view/financeStatement/financeStatementReducer.js +8 -11
  158. package/lib/view/financeStatement/financeStatementSelector.d.ts +0 -2
  159. package/lib/view/financeStatement/financeStatementSelector.js +9 -24
  160. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.d.ts +2 -4
  161. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +2 -7
  162. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelector.js +29 -2
  163. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewState.d.ts +0 -4
  164. package/lib/view/profitAndLossClassesView/profitAndLossForTimeframeClassesViewEpic.js +5 -7
  165. package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.js +6 -8
  166. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  167. package/lib/view/spendManagement/billPay/billList/billListSelector.js +0 -10
  168. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  169. package/lib/view/spendManagement/billPay/billList/billListState.js +0 -1
  170. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -7
  171. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewSelector.js +5 -5
  172. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPayApproversDetailsEpic.js +2 -7
  173. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -13
  174. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  175. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +0 -1
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -2
  177. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +3 -6
  178. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.d.ts +0 -1
  179. package/lib/view/spendManagement/reimbursement/remiListView/remiListSelector.js +0 -12
  180. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
  181. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +0 -1
  182. package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +3 -3
  183. package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.d.ts +0 -1
  184. package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
  185. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +0 -2
  186. package/lib/view/taskManager/taskListView/taskListSelector.js +1 -3
  187. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +2 -2
  188. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +14 -16
  189. package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +1 -1
  190. package/lib/view/twoFactorAuthentication/resendOtpEpic.js +15 -1
  191. package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +1 -3
  192. package/lib/view/userListView/fetchUserListByTypeEpic.js +0 -11
  193. package/lib/view/userListView/userListViewPayload.d.ts +0 -2
  194. package/lib/zeniAPI.js +2 -0
  195. package/package.json +2 -2
  196. package/lib/entity/userGroups/userGroupsPayload.d.ts +0 -7
  197. package/lib/entity/userGroups/userGroupsPayload.js +0 -10
  198. package/lib/entity/userGroups/userGroupsReducer.d.ts +0 -8
  199. package/lib/entity/userGroups/userGroupsReducer.js +0 -29
  200. package/lib/entity/userGroups/userGroupsSelector.d.ts +0 -4
  201. package/lib/entity/userGroups/userGroupsSelector.js +0 -12
  202. package/lib/entity/userGroups/userGroupsState.d.ts +0 -9
  203. package/lib/entity/userGroups/userGroupsState.js +0 -2
  204. package/lib/esm/entity/userGroups/userGroupsPayload.js +0 -7
  205. package/lib/esm/entity/userGroups/userGroupsReducer.js +0 -25
  206. package/lib/esm/entity/userGroups/userGroupsSelector.js +0 -8
  207. package/lib/esm/entity/userGroups/userGroupsState.js +0 -1
  208. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +0 -29
  209. package/lib/esm/view/expenseAutomationView/bulkUploadTiming.js +0 -10
  210. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -29
  211. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -49
  212. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -40
  213. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -47
  214. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -61
  215. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -33
  216. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -56
  217. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -77
  218. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -80
  219. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -24
  220. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +0 -317
  221. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelectorTypes.js +0 -9
  222. package/lib/esm/view/profitAndLossClassesView/profitAndLossHorizontalEnrichment.js +0 -282
  223. package/lib/esm/view/userGroupListView/userGroupListViewReducer.js +0 -65
  224. package/lib/esm/view/userGroupListView/userGroupListViewSelector.js +0 -16
  225. package/lib/esm/view/userGroupListView/userGroupListViewState.js +0 -1
  226. package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
  227. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +0 -8
  228. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +0 -33
  229. package/lib/view/expenseAutomationView/bulkUploadTiming.d.ts +0 -10
  230. package/lib/view/expenseAutomationView/bulkUploadTiming.js +0 -13
  231. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.d.ts +0 -18
  232. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -33
  233. package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.d.ts +0 -7
  234. package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -53
  235. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.d.ts +0 -8
  236. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -44
  237. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.d.ts +0 -7
  238. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -51
  239. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.d.ts +0 -8
  240. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -65
  241. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.d.ts +0 -8
  242. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -37
  243. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.d.ts +0 -9
  244. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -61
  245. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.d.ts +0 -14
  246. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -81
  247. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +0 -25
  248. package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -86
  249. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
  250. package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -28
  251. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.d.ts +0 -13
  252. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +0 -321
  253. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelectorTypes.d.ts +0 -111
  254. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelectorTypes.js +0 -13
  255. package/lib/view/profitAndLossClassesView/profitAndLossHorizontalEnrichment.d.ts +0 -6
  256. package/lib/view/profitAndLossClassesView/profitAndLossHorizontalEnrichment.js +0 -285
  257. package/lib/view/userGroupListView/userGroupListViewReducer.d.ts +0 -23
  258. package/lib/view/userGroupListView/userGroupListViewReducer.js +0 -69
  259. package/lib/view/userGroupListView/userGroupListViewSelector.d.ts +0 -7
  260. package/lib/view/userGroupListView/userGroupListViewSelector.js +0 -20
  261. package/lib/view/userGroupListView/userGroupListViewState.d.ts +0 -8
  262. package/lib/view/userGroupListView/userGroupListViewState.js +0 -2
package/lib/reducer.d.ts CHANGED
@@ -57,7 +57,6 @@ import { ToastNotificationState } from './entity/toastNotification/toastNotifica
57
57
  import { TransactionState } from './entity/transaction/transactionState';
58
58
  import { TransactionActivityLogState } from './entity/transactionActivityLog/transactionActivityLogState';
59
59
  import { UserState } from './entity/user/userState';
60
- import { UserGroupsState } from './entity/userGroups/userGroupsState';
61
60
  import { UserRoleState } from './entity/userRole/userRoleState';
62
61
  import { VendorState } from './entity/vendor/vendorState';
63
62
  import { VendorExpenseState } from './entity/vendorExpense/vendorExpenseState';
@@ -197,7 +196,6 @@ import { TrendState } from './view/trend/trendState';
197
196
  import { TrendWithTransactionsState } from './view/trendWithTransactions/trendWithTransactionsState';
198
197
  import { TwoFactorAuthenticationState } from './view/twoFactorAuthentication/twoFactorAuthentication';
199
198
  import { UserFinancialAccountState } from './view/userFinancialAccount/userFinancialAccountState';
200
- import { UserGroupListViewState } from './view/userGroupListView/userGroupListViewState';
201
199
  import { UserListViewState } from './view/userListView/userListViewState';
202
200
  import { UserRoleConfigState } from './view/userRoleConfigView/userRoleConfigState';
203
201
  import { Vendor1099TypeListState } from './view/vendor1099TypeList/vendor1099TypeListState';
@@ -269,7 +267,6 @@ type EntitiesState = {
269
267
  toastNotificationState: ToastNotificationState;
270
268
  transactionActivityLogState: TransactionActivityLogState;
271
269
  transactionState: TransactionState;
272
- userGroupsState: UserGroupsState;
273
270
  userRoleState: UserRoleState;
274
271
  userState: UserState;
275
272
  vendorExpenseState: VendorExpenseState;
@@ -407,7 +404,6 @@ type ViewsState = {
407
404
  trendWithTransactionsState: TrendWithTransactionsState;
408
405
  twoFactorAuthenticationState: TwoFactorAuthenticationState;
409
406
  userFinancialAccountState: UserFinancialAccountState;
410
- userGroupListViewState: UserGroupListViewState;
411
407
  userListViewState: UserListViewState;
412
408
  userRoleConfigState: UserRoleConfigState;
413
409
  vendor1099TypeListState: Vendor1099TypeListState;
@@ -560,7 +556,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
560
556
  trendWithTransactionsState: TrendWithTransactionsState;
561
557
  twoFactorAuthenticationState: TwoFactorAuthenticationState;
562
558
  userFinancialAccountState: UserFinancialAccountState;
563
- userGroupListViewState: UserGroupListViewState;
564
559
  userListViewState: UserListViewState;
565
560
  userRoleConfigState: UserRoleConfigState;
566
561
  vendorFirstReviewViewState: VendorFirstReviewViewState;
@@ -636,7 +631,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
636
631
  toastNotificationState: ToastNotificationState;
637
632
  transactionActivityLogState: TransactionActivityLogState;
638
633
  transactionState: TransactionState;
639
- userGroupsState: UserGroupsState;
640
634
  userRoleState: UserRoleState;
641
635
  userState: UserState;
642
636
  vendorExpenseState: VendorExpenseState;
package/lib/reducer.js CHANGED
@@ -97,7 +97,6 @@ const toastNotificationReducer_1 = __importStar(require("./entity/toastNotificat
97
97
  const transactionReducer_1 = __importStar(require("./entity/transaction/transactionReducer"));
98
98
  const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
99
99
  const userReducer_1 = __importStar(require("./entity/user/userReducer"));
100
- const userGroupsReducer_1 = __importStar(require("./entity/userGroups/userGroupsReducer"));
101
100
  const userRoleReducer_1 = __importStar(require("./entity/userRole/userRoleReducer"));
102
101
  const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
103
102
  const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
@@ -238,7 +237,6 @@ const trendReducer_1 = __importStar(require("./view/trend/trendReducer"));
238
237
  const trendWithTransactionsReducer_1 = __importStar(require("./view/trendWithTransactions/trendWithTransactionsReducer"));
239
238
  const twoFactorAuthenticationReducer_1 = __importStar(require("./view/twoFactorAuthentication/twoFactorAuthenticationReducer"));
240
239
  const userFinancialAccountReducer_1 = __importStar(require("./view/userFinancialAccount/userFinancialAccountReducer"));
241
- const userGroupListViewReducer_1 = __importStar(require("./view/userGroupListView/userGroupListViewReducer"));
242
240
  const userListViewReducer_1 = __importStar(require("./view/userListView/userListViewReducer"));
243
241
  const userRoleConfigReducer_1 = __importStar(require("./view/userRoleConfigView/userRoleConfigReducer"));
244
242
  const vendor1099TypeListReducer_1 = __importStar(require("./view/vendor1099TypeList/vendor1099TypeListReducer"));
@@ -311,7 +309,6 @@ const initialEntitiesState = {
311
309
  toastNotificationState: toastNotificationReducer_1.initialState,
312
310
  transactionActivityLogState: transactionActivityLogReducer_1.initialState,
313
311
  transactionState: transactionReducer_1.initialState,
314
- userGroupsState: userGroupsReducer_1.initialState,
315
312
  userRoleState: userRoleReducer_1.initialState,
316
313
  userState: userReducer_1.initialState,
317
314
  vendorExpenseState: vendorExpenseReducer_1.initialState,
@@ -450,7 +447,6 @@ const initialViewsState = {
450
447
  trendWithTransactionsState: trendWithTransactionsReducer_1.initialTrendWithTransactionsState,
451
448
  twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.initialState,
452
449
  userFinancialAccountState: userFinancialAccountReducer_1.initialState,
453
- userGroupListViewState: userGroupListViewReducer_1.initialState,
454
450
  userListViewState: userListViewReducer_1.initialState,
455
451
  userRoleConfigState: userRoleConfigReducer_1.initialState,
456
452
  vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.initialState,
@@ -535,7 +531,6 @@ const entityReducers = {
535
531
  toastNotificationState: toastNotificationReducer_1.default,
536
532
  transactionActivityLogState: transactionActivityLogReducer_1.default,
537
533
  transactionState: transactionReducer_1.default,
538
- userGroupsState: userGroupsReducer_1.default,
539
534
  userRoleState: userRoleReducer_1.default,
540
535
  userState: userReducer_1.default,
541
536
  vendorExpenseState: vendorExpenseReducer_1.default,
@@ -674,7 +669,6 @@ const viewReducers = {
674
669
  trendWithTransactionsState: trendWithTransactionsReducer_1.default,
675
670
  twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.default,
676
671
  userFinancialAccountState: userFinancialAccountReducer_1.default,
677
- userGroupListViewState: userGroupListViewReducer_1.default,
678
672
  userListViewState: userListViewReducer_1.default,
679
673
  userRoleConfigState: userRoleConfigReducer_1.default,
680
674
  vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.default,
@@ -1,7 +1,6 @@
1
1
  import { AiCfoAnswerPayload, ChatSessionPayload } from '../../entity/aiCfo/aiCfoPayload';
2
2
  import { UserRolePayload } from '../../entity/userRole/userRolePayload';
3
3
  import { ZeniAPIResponse } from '../../responsePayload';
4
- import { AiCfoSuggestedQuestionsPageContext } from './aiCfoViewState';
5
4
  export type ContextStatus = 'NONE' | 'NOT_FOUND' | 'PERMISSION_DENIED' | 'SUCCESS';
6
5
  export interface CreateSessionResponseData {
7
6
  chat_session_id: string;
@@ -24,10 +23,4 @@ interface AcceptMasterTOSPayload {
24
23
  user_roles: UserRolePayload[];
25
24
  }
26
25
  export type AcceptMasterTOSResponse = ZeniAPIResponse<AcceptMasterTOSPayload>;
27
- export interface SuggestedQuestionsDataPayload {
28
- generated_at: string;
29
- page_context: AiCfoSuggestedQuestionsPageContext;
30
- suggested_questions: string[];
31
- }
32
- export type FetchSuggestedQuestionsResponse = ZeniAPIResponse<SuggestedQuestionsDataPayload>;
33
26
  export {};
@@ -4,7 +4,6 @@ import { ChatSessionPayload } from '../../entity/aiCfo/aiCfoPayload';
4
4
  import { AiCfoAnswerResponseType } from '../../entity/aiCfo/aiCfoState';
5
5
  import { ZeniAPIStatus } from '../../responsePayload';
6
6
  import { ContextStatus } from './aiCfoViewPayload';
7
- import { AiCfoSuggestedQuestionsPageContext } from './aiCfoViewState';
8
7
  import { AiCfoViewState } from './aiCfoViewState';
9
8
  export declare const initialAiCfoViewState: AiCfoViewState;
10
9
  export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[sessionId: string, questionAnswerId: string, userId: string, questionId: string, createdAt: import("dayjs").Dayjs, question: string, files?: File[] | undefined], {
@@ -90,19 +89,6 @@ export declare const submitQuestion: import("@reduxjs/toolkit").ActionCreatorWit
90
89
  }, "aiCfoView/clearDeleteChatSessionStatus">, clearAiCfoView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoView">, updateCotCollapsedState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
91
90
  isCollapsed: boolean;
92
91
  questionAnswerId: ID;
93
- }, "aiCfoView/updateCotCollapsedState">, fetchSuggestedQuestions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
94
- pageContext: AiCfoSuggestedQuestionsPageContext;
95
- }, "aiCfoView/fetchSuggestedQuestions">, fetchSuggestedQuestionsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
96
- generatedAt: string;
97
- pageContext: AiCfoSuggestedQuestionsPageContext;
98
- suggestedQuestions: string[];
99
- }, "aiCfoView/fetchSuggestedQuestionsSuccess">, fetchSuggestedQuestionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
100
- error: ZeniAPIStatus;
101
- pageContext: AiCfoSuggestedQuestionsPageContext;
102
- }, "aiCfoView/fetchSuggestedQuestionsFailure">, applyAiCfoSidePanelHostPageTransition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
103
- newAiCfoSidePanelHostPageKey: string;
104
- /** When omitted or null, clears the active session (empty / suggested questions). */
105
- nextCurrentChatSessionId?: ID | null;
106
- }, "aiCfoView/applyAiCfoSidePanelHostPageTransition">, clearAiCfoSidePanelHostPageContext: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"aiCfoView/clearAiCfoSidePanelHostPageContext">;
92
+ }, "aiCfoView/updateCotCollapsedState">;
107
93
  declare const _default: import("redux").Reducer<AiCfoViewState>;
108
94
  export default _default;
@@ -1,23 +1,8 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.clearAiCfoSidePanelHostPageContext = exports.applyAiCfoSidePanelHostPageTransition = exports.fetchSuggestedQuestionsFailure = exports.fetchSuggestedQuestionsSuccess = exports.fetchSuggestedQuestions = exports.updateCotCollapsedState = exports.clearAiCfoView = exports.clearDeleteChatSessionStatus = exports.deleteChatSessionFailure = exports.deleteChatSessionSuccess = exports.deleteChatSession = exports.acceptMasterTOSFailure = exports.acceptMasterTOSSuccess = exports.acceptMasterTOS = exports.stopSubmitQuestionFailure = exports.stopSubmitQuestionSuccess = exports.stopSubmitQuestion = exports.stopSubmitFailure = exports.stopSubmitSuccess = exports.stopSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.fetchChatHistoryFailure = exports.fetchChatHistorySuccess = exports.fetchChatHistory = exports.fetchChatSessionsForUserFailure = exports.fetchChatSessionsForUserSuccess = exports.fetchChatSessionsForUser = exports.createSessionAndSubmitFailure = exports.createSessionAndSubmitSuccess = exports.initializeNewSessionState = exports.createSessionAndSubmit = exports.createSessionFailure = exports.createSessionSuccess = exports.createSession = exports.setSession = exports.clearInput = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.updateResponseState = exports.submitQuestionFailure = exports.submitQuestionSuccess = exports.submitQuestion = exports.initialAiCfoViewState = void 0;
4
+ exports.updateCotCollapsedState = exports.clearAiCfoView = exports.clearDeleteChatSessionStatus = exports.deleteChatSessionFailure = exports.deleteChatSessionSuccess = exports.deleteChatSession = exports.acceptMasterTOSFailure = exports.acceptMasterTOSSuccess = exports.acceptMasterTOS = exports.stopSubmitQuestionFailure = exports.stopSubmitQuestionSuccess = exports.stopSubmitQuestion = exports.stopSubmitFailure = exports.stopSubmitSuccess = exports.stopSubmit = exports.clearLastContextMessage = exports.clearCurrentSessionId = exports.fetchChatHistoryFailure = exports.fetchChatHistorySuccess = exports.fetchChatHistory = exports.fetchChatSessionsForUserFailure = exports.fetchChatSessionsForUserSuccess = exports.fetchChatSessionsForUser = exports.createSessionAndSubmitFailure = exports.createSessionAndSubmitSuccess = exports.initializeNewSessionState = exports.createSessionAndSubmit = exports.createSessionFailure = exports.createSessionSuccess = exports.createSession = exports.setSession = exports.clearInput = exports.updateCurrentInput = exports.updateAiCfoViewScrollPosition = exports.updateResponseState = exports.submitQuestionFailure = exports.submitQuestionSuccess = exports.submitQuestion = exports.initialAiCfoViewState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
- function removeSessionIdFromPageKeyMap(draft, sessionId) {
7
- const map = draft.uiState.chatSessionIdByPageKey;
8
- for (const key of Object.keys(map)) {
9
- if (map[key] === sessionId) {
10
- delete map[key];
11
- }
12
- }
13
- }
14
- function mirrorCurrentSessionToPageKeyMapIfActive(draft) {
15
- const key = draft.uiState.aiCfoSidePanelHostPageKey;
16
- const sessionId = draft.uiState.currentChatSessionId;
17
- if (key != null && sessionId != null) {
18
- draft.uiState.chatSessionIdByPageKey[key] = sessionId;
19
- }
20
- }
21
6
  exports.initialAiCfoViewState = {
22
7
  fetchState: 'Not-Started',
23
8
  error: undefined,
@@ -25,8 +10,6 @@ exports.initialAiCfoViewState = {
25
10
  currentInput: '',
26
11
  scrollPositionByChatSessionId: {},
27
12
  currentChatSessionId: undefined,
28
- aiCfoSidePanelHostPageKey: undefined,
29
- chatSessionIdByPageKey: {},
30
13
  agentId: undefined,
31
14
  chatHistoryNextPageToken: {},
32
15
  chatSessionsNextPageToken: { nextPageToken: null, hasMore: false },
@@ -50,7 +33,6 @@ exports.initialAiCfoViewState = {
50
33
  fetchChatSessionHistoryByChatSessionId: {},
51
34
  responseStateByChatSessionId: {},
52
35
  stopSubmitStateByChatSessionId: {},
53
- suggestedQuestionsByPageContext: {},
54
36
  };
55
37
  const aiCfoView = (0, toolkit_1.createSlice)({
56
38
  name: 'aiCfoView',
@@ -184,7 +166,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
184
166
  setSession(draft, action) {
185
167
  draft.uiState.currentChatSessionId = action.payload.sessionId;
186
168
  draft.uiState.agentId = action.payload.agentId;
187
- mirrorCurrentSessionToPageKeyMapIfActive(draft);
188
169
  },
189
170
  createSession: {
190
171
  reducer(draft, action) {
@@ -208,7 +189,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
208
189
  nextPageToken: null,
209
190
  hasMore: false,
210
191
  };
211
- mirrorCurrentSessionToPageKeyMapIfActive(draft);
212
192
  },
213
193
  createSessionFailure(draft, action) {
214
194
  draft.createSessionState.fetchState = 'Error';
@@ -246,7 +226,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
246
226
  nextPageToken: null,
247
227
  hasMore: false,
248
228
  };
249
- mirrorCurrentSessionToPageKeyMapIfActive(draft);
250
229
  },
251
230
  createSessionAndSubmitSuccess(draft) {
252
231
  // Note: currentChatSessionId, agentId, and chatHistoryNextPageToken are set by initializeNewSessionState
@@ -363,7 +342,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
363
342
  draft.uiState.currentChatSessionId = undefined;
364
343
  draft.uiState.agentId = undefined;
365
344
  }
366
- removeSessionIdFromPageKeyMap(draft, chatSessionId);
367
345
  delete draft.uiState.chatHistoryNextPageToken[chatSessionId];
368
346
  delete draft.uiState.scrollPositionByChatSessionId[chatSessionId];
369
347
  delete draft.fetchChatSessionHistoryByChatSessionId[chatSessionId];
@@ -386,65 +364,6 @@ const aiCfoView = (0, toolkit_1.createSlice)({
386
364
  },
387
365
  clearCurrentSessionId(draft) {
388
366
  draft.uiState.currentChatSessionId = undefined;
389
- const key = draft.uiState.aiCfoSidePanelHostPageKey;
390
- if (key != null) {
391
- delete draft.uiState.chatSessionIdByPageKey[key];
392
- }
393
- },
394
- applyAiCfoSidePanelHostPageTransition(draft, action) {
395
- const { newAiCfoSidePanelHostPageKey, nextCurrentChatSessionId } = action.payload;
396
- const prevKey = draft.uiState.aiCfoSidePanelHostPageKey;
397
- const curId = draft.uiState.currentChatSessionId;
398
- if (prevKey != null &&
399
- prevKey !== newAiCfoSidePanelHostPageKey &&
400
- curId != null) {
401
- draft.uiState.chatSessionIdByPageKey[prevKey] = curId;
402
- }
403
- draft.uiState.aiCfoSidePanelHostPageKey = newAiCfoSidePanelHostPageKey;
404
- draft.uiState.currentChatSessionId =
405
- nextCurrentChatSessionId != null ? nextCurrentChatSessionId : undefined;
406
- draft.uiState.currentInput = '';
407
- mirrorCurrentSessionToPageKeyMapIfActive(draft);
408
- },
409
- clearAiCfoSidePanelHostPageContext(draft) {
410
- const key = draft.uiState.aiCfoSidePanelHostPageKey;
411
- const curId = draft.uiState.currentChatSessionId;
412
- if (key != null && curId != null) {
413
- draft.uiState.chatSessionIdByPageKey[key] = curId;
414
- }
415
- draft.uiState.aiCfoSidePanelHostPageKey = undefined;
416
- },
417
- fetchSuggestedQuestions(draft, action) {
418
- const { pageContext } = action.payload;
419
- const prev = draft.suggestedQuestionsByPageContext[pageContext];
420
- draft.suggestedQuestionsByPageContext[pageContext] = {
421
- fetchState: 'In-Progress',
422
- pageContext,
423
- suggestedQuestions: prev?.suggestedQuestions ?? [],
424
- generatedAt: prev?.generatedAt,
425
- error: undefined,
426
- };
427
- },
428
- fetchSuggestedQuestionsSuccess(draft, action) {
429
- const { pageContext, generatedAt, suggestedQuestions } = action.payload;
430
- draft.suggestedQuestionsByPageContext[pageContext] = {
431
- fetchState: 'Completed',
432
- pageContext,
433
- generatedAt,
434
- suggestedQuestions,
435
- error: undefined,
436
- };
437
- },
438
- fetchSuggestedQuestionsFailure(draft, action) {
439
- const { pageContext, error } = action.payload;
440
- const prev = draft.suggestedQuestionsByPageContext[pageContext];
441
- draft.suggestedQuestionsByPageContext[pageContext] = {
442
- fetchState: 'Error',
443
- pageContext,
444
- suggestedQuestions: prev?.suggestedQuestions ?? [],
445
- generatedAt: prev?.generatedAt,
446
- error,
447
- };
448
367
  },
449
368
  clearAiCfoView(draft) {
450
369
  Object.assign(draft, exports.initialAiCfoViewState);
@@ -456,5 +375,5 @@ const aiCfoView = (0, toolkit_1.createSlice)({
456
375
  },
457
376
  },
458
377
  });
459
- _a = aiCfoView.actions, exports.submitQuestion = _a.submitQuestion, exports.submitQuestionSuccess = _a.submitQuestionSuccess, exports.submitQuestionFailure = _a.submitQuestionFailure, exports.updateResponseState = _a.updateResponseState, exports.updateAiCfoViewScrollPosition = _a.updateAiCfoViewScrollPosition, exports.updateCurrentInput = _a.updateCurrentInput, exports.clearInput = _a.clearInput, exports.setSession = _a.setSession, exports.createSession = _a.createSession, exports.createSessionSuccess = _a.createSessionSuccess, exports.createSessionFailure = _a.createSessionFailure, exports.createSessionAndSubmit = _a.createSessionAndSubmit, exports.initializeNewSessionState = _a.initializeNewSessionState, exports.createSessionAndSubmitSuccess = _a.createSessionAndSubmitSuccess, exports.createSessionAndSubmitFailure = _a.createSessionAndSubmitFailure, exports.fetchChatSessionsForUser = _a.fetchChatSessionsForUser, exports.fetchChatSessionsForUserSuccess = _a.fetchChatSessionsForUserSuccess, exports.fetchChatSessionsForUserFailure = _a.fetchChatSessionsForUserFailure, exports.fetchChatHistory = _a.fetchChatHistory, exports.fetchChatHistorySuccess = _a.fetchChatHistorySuccess, exports.fetchChatHistoryFailure = _a.fetchChatHistoryFailure, exports.clearCurrentSessionId = _a.clearCurrentSessionId, exports.clearLastContextMessage = _a.clearLastContextMessage, exports.stopSubmit = _a.stopSubmit, exports.stopSubmitSuccess = _a.stopSubmitSuccess, exports.stopSubmitFailure = _a.stopSubmitFailure, exports.stopSubmitQuestion = _a.stopSubmitQuestion, exports.stopSubmitQuestionSuccess = _a.stopSubmitQuestionSuccess, exports.stopSubmitQuestionFailure = _a.stopSubmitQuestionFailure, exports.acceptMasterTOS = _a.acceptMasterTOS, exports.acceptMasterTOSSuccess = _a.acceptMasterTOSSuccess, exports.acceptMasterTOSFailure = _a.acceptMasterTOSFailure, exports.deleteChatSession = _a.deleteChatSession, exports.deleteChatSessionSuccess = _a.deleteChatSessionSuccess, exports.deleteChatSessionFailure = _a.deleteChatSessionFailure, exports.clearDeleteChatSessionStatus = _a.clearDeleteChatSessionStatus, exports.clearAiCfoView = _a.clearAiCfoView, exports.updateCotCollapsedState = _a.updateCotCollapsedState, exports.fetchSuggestedQuestions = _a.fetchSuggestedQuestions, exports.fetchSuggestedQuestionsSuccess = _a.fetchSuggestedQuestionsSuccess, exports.fetchSuggestedQuestionsFailure = _a.fetchSuggestedQuestionsFailure, exports.applyAiCfoSidePanelHostPageTransition = _a.applyAiCfoSidePanelHostPageTransition, exports.clearAiCfoSidePanelHostPageContext = _a.clearAiCfoSidePanelHostPageContext;
378
+ _a = aiCfoView.actions, exports.submitQuestion = _a.submitQuestion, exports.submitQuestionSuccess = _a.submitQuestionSuccess, exports.submitQuestionFailure = _a.submitQuestionFailure, exports.updateResponseState = _a.updateResponseState, exports.updateAiCfoViewScrollPosition = _a.updateAiCfoViewScrollPosition, exports.updateCurrentInput = _a.updateCurrentInput, exports.clearInput = _a.clearInput, exports.setSession = _a.setSession, exports.createSession = _a.createSession, exports.createSessionSuccess = _a.createSessionSuccess, exports.createSessionFailure = _a.createSessionFailure, exports.createSessionAndSubmit = _a.createSessionAndSubmit, exports.initializeNewSessionState = _a.initializeNewSessionState, exports.createSessionAndSubmitSuccess = _a.createSessionAndSubmitSuccess, exports.createSessionAndSubmitFailure = _a.createSessionAndSubmitFailure, exports.fetchChatSessionsForUser = _a.fetchChatSessionsForUser, exports.fetchChatSessionsForUserSuccess = _a.fetchChatSessionsForUserSuccess, exports.fetchChatSessionsForUserFailure = _a.fetchChatSessionsForUserFailure, exports.fetchChatHistory = _a.fetchChatHistory, exports.fetchChatHistorySuccess = _a.fetchChatHistorySuccess, exports.fetchChatHistoryFailure = _a.fetchChatHistoryFailure, exports.clearCurrentSessionId = _a.clearCurrentSessionId, exports.clearLastContextMessage = _a.clearLastContextMessage, exports.stopSubmit = _a.stopSubmit, exports.stopSubmitSuccess = _a.stopSubmitSuccess, exports.stopSubmitFailure = _a.stopSubmitFailure, exports.stopSubmitQuestion = _a.stopSubmitQuestion, exports.stopSubmitQuestionSuccess = _a.stopSubmitQuestionSuccess, exports.stopSubmitQuestionFailure = _a.stopSubmitQuestionFailure, exports.acceptMasterTOS = _a.acceptMasterTOS, exports.acceptMasterTOSSuccess = _a.acceptMasterTOSSuccess, exports.acceptMasterTOSFailure = _a.acceptMasterTOSFailure, exports.deleteChatSession = _a.deleteChatSession, exports.deleteChatSessionSuccess = _a.deleteChatSessionSuccess, exports.deleteChatSessionFailure = _a.deleteChatSessionFailure, exports.clearDeleteChatSessionStatus = _a.clearDeleteChatSessionStatus, exports.clearAiCfoView = _a.clearAiCfoView, exports.updateCotCollapsedState = _a.updateCotCollapsedState;
460
379
  exports.default = aiCfoView.reducer;
@@ -3,8 +3,7 @@ import { FetchStateAndError } from '../../commonStateTypes/common';
3
3
  import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { AiCfoSelectorView } from '../../entity/aiCfo/aiCfoSelector';
5
5
  import { RootState } from '../../reducer';
6
- import { AiCfoSuggestedQuestionsPageContext } from './aiCfoViewState';
7
- import { AiCfoViewUIState, SuggestedQuestionsForPageContext } from './aiCfoViewState';
6
+ import { AiCfoViewUIState } from './aiCfoViewState';
8
7
  export interface AiCfoViewSelector extends SelectorView, AiCfoSelectorView {
9
8
  createSessionAndSubmitState: FetchStateAndError;
10
9
  createSessionState: FetchStateAndError;
@@ -18,8 +17,6 @@ export interface AiCfoViewSelector extends SelectorView, AiCfoSelectorView {
18
17
  thought: FetchStateAndError;
19
18
  }>;
20
19
  stopSubmitStateByChatSessionId: Record<ID, FetchStateAndError>;
21
- suggestedQuestionsByPageContext: Partial<Record<AiCfoSuggestedQuestionsPageContext, SuggestedQuestionsForPageContext>>;
22
20
  uiState: AiCfoViewUIState;
23
21
  }
24
22
  export declare const getAiCfoView: (state: RootState) => AiCfoViewSelector;
25
- export declare function getSuggestedQuestionsForPageContext(state: RootState, pageContext: AiCfoSuggestedQuestionsPageContext): SuggestedQuestionsForPageContext | undefined;
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAiCfoView = void 0;
4
- exports.getSuggestedQuestionsForPageContext = getSuggestedQuestionsForPageContext;
5
- const aiCfoReducer_1 = require("../../entity/aiCfo/aiCfoReducer");
6
4
  const aiCfoSelector_1 = require("../../entity/aiCfo/aiCfoSelector");
7
- const aiCfoViewReducer_1 = require("./aiCfoViewReducer");
8
5
  const getAiCfoView = (state) => {
9
- const { fetchState, error, uiState, createSessionState, createSessionAndSubmitState, deleteChatSessionStateByChatSessionId, stopSubmitStateByChatSessionId, responseStateByChatSessionId, fetchChatSessionHistoryByChatSessionId, masterTOSAcceptanceState, suggestedQuestionsByPageContext, } = state.aiCfoViewState ?? aiCfoViewReducer_1.initialAiCfoViewState;
6
+ const { fetchState, error, uiState, createSessionState, createSessionAndSubmitState, deleteChatSessionStateByChatSessionId, stopSubmitStateByChatSessionId, responseStateByChatSessionId, fetchChatSessionHistoryByChatSessionId, masterTOSAcceptanceState, } = state.aiCfoViewState;
10
7
  return {
11
8
  fetchState,
12
9
  error,
@@ -18,12 +15,8 @@ const getAiCfoView = (state) => {
18
15
  uiState,
19
16
  fetchChatSessionHistoryByChatSessionId,
20
17
  masterTOSAcceptanceState,
21
- suggestedQuestionsByPageContext,
22
- ...(0, aiCfoSelector_1.getAiCfoSelectorView)(state.aiCfoState ?? aiCfoReducer_1.initialAiCfoState),
18
+ ...(0, aiCfoSelector_1.getAiCfoSelectorView)(state.aiCfoState),
23
19
  version: 1,
24
20
  };
25
21
  };
26
22
  exports.getAiCfoView = getAiCfoView;
27
- function getSuggestedQuestionsForPageContext(state, pageContext) {
28
- return state.aiCfoViewState?.suggestedQuestionsByPageContext?.[pageContext];
29
- }
@@ -9,8 +9,6 @@ export interface AiCfoViewUIState {
9
9
  chatHistoryNextPageToken: {
10
10
  [chatSessionId: ID]: PageTokenState;
11
11
  };
12
- /** Last focused chat session id per side-panel host page key (e.g. `dashboard`, `reports:profit_loss`). */
13
- chatSessionIdByPageKey: Partial<Record<string, ID>>;
14
12
  chatSessionsFirstPageFetched: boolean;
15
13
  chatSessionsNextPageToken: PageTokenState;
16
14
  cotCollapsedByQuestionAnswerId: {
@@ -22,24 +20,11 @@ export interface AiCfoViewUIState {
22
20
  scrollTop: number;
23
21
  };
24
22
  };
25
- agentId?: ID; /**
26
- * When set, the side panel on host routes (e.g. dashboard/reports) is scoped to this **page key**;
27
- * session ids are mirrored into {@link chatSessionIdByPageKey}. Full `/ai-cfo/...` should clear this.
28
- */
29
- aiCfoSidePanelHostPageKey?: string;
23
+ agentId?: ID;
30
24
  currentChatSessionId?: ID;
31
25
  lastContextMessage?: string;
32
26
  lastContextStatus?: ContextStatus;
33
27
  }
34
- /**
35
- * Supported `page_context` values for GET .../suggested-questions and related UI state.
36
- */
37
- export type AiCfoSuggestedQuestionsPageContext = 'balance_sheet' | 'profit_loss' | 'vendors' | 'transactions' | 'cash_flow' | 'accounts_receivable' | 'accounts_payable' | 'transaction_details' | 'dashboard' | 'cash_balance' | 'card_balance' | 'command_centre' | 'je_schedules' | 'reconciliation' | 'flux_analysis' | 'receipts' | 'mei' | 'task_checklist' | 'performance' | 'bills_list' | 'bills_details' | 'reimbursement_list' | 'reimbursement_details' | 'vendors_summary' | 'opex_by_vendor' | 'prepaid_expenses' | 'fixed_assets' | 'form_1099' | 'accrued_expenses' | 'forecast' | 'checking' | 'checking_details' | 'treasury' | 'cards' | 'cards_detail' | 'people' | 'rewards' | 'notifications';
38
- export interface SuggestedQuestionsForPageContext extends FetchStateAndError {
39
- pageContext: AiCfoSuggestedQuestionsPageContext;
40
- suggestedQuestions: string[];
41
- generatedAt?: string;
42
- }
43
28
  export interface AiCfoViewState extends FetchStateAndError {
44
29
  allChatSessionIds: ID[];
45
30
  createSessionAndSubmitState: FetchStateAndError;
@@ -54,7 +39,5 @@ export interface AiCfoViewState extends FetchStateAndError {
54
39
  thought: FetchStateAndError;
55
40
  }>;
56
41
  stopSubmitStateByChatSessionId: Record<ID, FetchStateAndError>;
57
- /** Keyed by `page_context` query value (e.g. balance_sheet). */
58
- suggestedQuestionsByPageContext: Partial<Record<AiCfoSuggestedQuestionsPageContext, SuggestedQuestionsForPageContext>>;
59
42
  uiState: AiCfoViewUIState;
60
43
  }
@@ -5,9 +5,9 @@ exports.clearArAging = exports.updateArAgingNodeCollapseState = exports.updateAr
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const viewAndReportPayloadv2_1 = require("../../../commonPayloadTypes/v2/viewAndReportPayloadv2");
7
7
  const agingBalance_1 = require("../../../commonStateTypes/agingBalance/agingBalance");
8
- const currencyHelper_1 = require("../../../commonStateTypes/currencyHelper");
9
8
  const getNestedCustomerHierarchy_1 = require("../../../commonStateTypes/customerView/getNestedCustomerHierarchy");
10
9
  const customerPayload_1 = require("../../../entity/customer/customerPayload");
10
+ const customerState_1 = require("../../../entity/customer/customerState");
11
11
  const zeniDayJS_1 = require("../../../zeniDayJS");
12
12
  const arAgingPayload_1 = require("./arAgingPayload");
13
13
  exports.inititalUIState = {
@@ -30,7 +30,7 @@ exports.initialState = {
30
30
  agingPeriods: [],
31
31
  bookCloseDate: undefined,
32
32
  dataAvailable: undefined,
33
- currency: currencyHelper_1.defaultCustomerCurrency,
33
+ currency: customerState_1.defaultCustomerCurrency,
34
34
  };
35
35
  exports.initialStateAgingBalances = {
36
36
  arAgingBalancesByCustomerId: {},
@@ -7,8 +7,8 @@ exports.getArAgingReport = void 0;
7
7
  const toolkit_1 = require("@reduxjs/toolkit");
8
8
  const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
9
  const agingBalance_1 = require("../../../commonStateTypes/agingBalance/agingBalance");
10
- const currencyHelper_1 = require("../../../commonStateTypes/currencyHelper");
11
10
  const customerSelector_1 = require("../../../entity/customer/customerSelector");
11
+ const customerState_1 = require("../../../entity/customer/customerState");
12
12
  exports.getArAgingReport = (0, toolkit_1.createSelector)((state) => state.arAgingState, (state) => state.customerState, (arAgingState, customerState) => {
13
13
  const { reportId, reportTitle, fetchState, uiState, firstMonthOfFY, agingPeriods, } = arAgingState;
14
14
  const { searchString, sortOrder, sortKey, selectedDate } = uiState;
@@ -87,13 +87,13 @@ const getCustomerAgingReport = (customerState, nestedCustomer, arAgingBalancesBy
87
87
  children: getNestedAgingBalancesByCustomer(customerState, arAgingBalancesByCustomerId, nestedCustomer.children, searchString, sortKey, sortOrder),
88
88
  total: {
89
89
  amount: customerTotal,
90
- currencyCode: currencyCode ?? currencyHelper_1.defaultCustomerCurrency.currencyCode,
91
- currencySymbol: currencySymbol ?? currencyHelper_1.defaultCustomerCurrency.currencySymbol,
90
+ currencyCode: currencyCode ?? customerState_1.defaultCustomerCurrency.currencyCode,
91
+ currencySymbol: currencySymbol ?? customerState_1.defaultCustomerCurrency.currencySymbol,
92
92
  },
93
93
  totalWithChildren: {
94
94
  amount: customerTotalWithChildren,
95
- currencyCode: currencyCode ?? currencyHelper_1.defaultCustomerCurrency.currencyCode,
96
- currencySymbol: currencySymbol ?? currencyHelper_1.defaultCustomerCurrency.currencySymbol,
95
+ currencyCode: currencyCode ?? customerState_1.defaultCustomerCurrency.currencyCode,
96
+ currencySymbol: currencySymbol ?? customerState_1.defaultCustomerCurrency.currencySymbol,
97
97
  },
98
98
  };
99
99
  };
@@ -3,7 +3,7 @@ import { Status } from '../../commonStateTypes/status';
3
3
  import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
6
- export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
6
+ export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "reports" | "transactions";
7
7
  export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
8
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" | "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" | "uncategorized-expense" | "uncategorized-income";
9
9
  export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
@@ -5,4 +5,4 @@ import { RootState } from '../../reducer';
5
5
  import { ZeniAPI } from '../../zeniAPI';
6
6
  import { fetchClassList, updateClassList, updateClassListFailure } from './classListReducer';
7
7
  export type ActionType = ReturnType<typeof fetchClassList> | ReturnType<typeof updateClasses> | ReturnType<typeof updateClassList> | ReturnType<typeof updateClassListFailure>;
8
- export declare const fetchClassListEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
8
+ export declare const fetchClassListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -4,16 +4,9 @@ exports.fetchClassListEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const classReducer_1 = require("../../entity/class/classReducer");
7
- const tenantSelector_1 = require("../../entity/tenant/tenantSelector");
8
7
  const responsePayload_1 = require("../../responsePayload");
9
8
  const classListReducer_1 = require("./classListReducer");
10
- const fetchClassListEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(classListReducer_1.fetchClassList.match), (0, operators_1.withLatestFrom)(state$), (0, operators_1.switchMap)(([action, state]) => {
11
- if (!(0, tenantSelector_1.getIsAccountingClassesEnabled)(state)) {
12
- return (0, rxjs_1.of)((0, classListReducer_1.updateClassList)({
13
- status: (0, responsePayload_1.createZeniAPIStatus)('Success', ''),
14
- data: { accounting_classes: [] },
15
- }));
16
- }
9
+ const fetchClassListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(classListReducer_1.fetchClassList.match), (0, operators_1.switchMap)((action) => {
17
10
  const { isIncludeDeleted } = action.payload;
18
11
  const queryParams = isIncludeDeleted === true
19
12
  ? `?query=${encodeURIComponent(JSON.stringify({ is_include_deleted: true }))}`
@@ -57,7 +57,6 @@ export interface VendorViewSelectorView extends BankAccountSelectorView, Selecto
57
57
  deleteFileStatusById: Record<ID, FetchStateAndError | undefined>;
58
58
  hasInternationalWireTransfer: boolean;
59
59
  hasWireTransfer: boolean;
60
- isAccountingClassesEnabled: boolean;
61
60
  loggedInUserVerification: UserVerificationState;
62
61
  ownerList: User[];
63
62
  updateFileStatusById: Record<ID, FetchStateAndError | undefined>;
@@ -9,7 +9,6 @@ const contactSelector_1 = require("../../../entity/billPay/contact/contactSelect
9
9
  const classSelector_1 = require("../../../entity/class/classSelector");
10
10
  const fileSelector_1 = require("../../../entity/file/fileSelector");
11
11
  const paymentInstrumentSelector_1 = require("../../../entity/paymentInstrument/paymentInstrumentSelector");
12
- const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
13
12
  const userSelector_1 = require("../../../entity/user/userSelector");
14
13
  const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
15
14
  const accountListSelector_1 = require("../../accountList/accountListSelector");
@@ -64,17 +63,13 @@ const getVendorView = (state, vendorIdFromUrl) => {
64
63
  ?.vendorDetailLocalData,
65
64
  supportedCountries: billPayConfigState.vendor.supportedCountries,
66
65
  };
67
- const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
68
- const editFetchStateList = [
66
+ fetchState = (0, reduceFetchState_1.reduceFetchState)([
69
67
  accountList,
68
+ classList,
70
69
  vendorTypeListState,
71
70
  vendorViewState.editVendorStateById[vendorIdFromUrl]?.fetchStatus ??
72
71
  vendorViewReducer_1.initialState.newVendorState.fetchStatus,
73
- ];
74
- if (isAccountingClassesEnabled) {
75
- editFetchStateList.push(classList);
76
- }
77
- fetchState = (0, reduceFetchState_1.reduceFetchState)(editFetchStateList);
72
+ ]);
78
73
  }
79
74
  else {
80
75
  const basicVendorDetails = getBasicVendorDetailsForNewVendor(state, vendorViewState.newVendorState);
@@ -103,17 +98,11 @@ const getVendorView = (state, vendorIdFromUrl) => {
103
98
  if (tentativeName != null) {
104
99
  entityRecommendations = (0, recommendationSelector_1.getRecommendationsForEntity)(state, tentativeName, 'vendor');
105
100
  }
106
- const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
107
101
  const fetchStateList = [
108
102
  { fetchState: accountList.fetchState, error: accountList.error },
103
+ { fetchState: classList.fetchState, error: classList.error },
109
104
  vendorTypeListState,
110
105
  ];
111
- if (isAccountingClassesEnabled) {
112
- fetchStateList.push({
113
- fetchState: classList.fetchState,
114
- error: classList.error,
115
- });
116
- }
117
106
  if (entityRecommendations != null &&
118
107
  entityRecommendations.recommendations != null &&
119
108
  entityRecommendations.recommendations.length > 0) {
@@ -158,7 +147,6 @@ const getVendorView = (state, vendorIdFromUrl) => {
158
147
  fetchState: fetchState.fetchState,
159
148
  hasWireTransfer,
160
149
  hasInternationalWireTransfer,
161
- isAccountingClassesEnabled: (0, tenantSelector_1.getIsAccountingClassesEnabled)(state),
162
150
  deleteFileStatusById,
163
151
  updateFileStatusById,
164
152
  loggedInUserVerification,
@@ -235,10 +223,9 @@ const getBasicVendorDetailsForNewVendor = (state, newVendor) => {
235
223
  };
236
224
  const getVendorDetailPageView = (state, vendorId, entity) => {
237
225
  const trendWithTransactions = (0, trendWithTransactionsSelector_1.getTrendWithTransactions)(state, entity, 'EntityDetail');
238
- const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
239
226
  const reducedFetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
240
227
  state.accountListState.byReportId.accountList,
241
- ...(isAccountingClassesEnabled ? [state.classListState] : []),
228
+ state.classListState,
242
229
  state.vendorTypeListState,
243
230
  state.ownerListState,
244
231
  state.vendorViewState.editVendorStateById[vendorId]?.fetchStatus ?? {
@@ -50,7 +50,6 @@ export interface VendorsTabVendorViewSelectorView extends SelectorView {
50
50
  accountsHierarchyList: NestedAccountHierarchyForReport[];
51
51
  classHierarchyList: NestedClassHierarchyForReport[];
52
52
  classList: ClassListSelectorView;
53
- isAccountingClassesEnabled: boolean;
54
53
  ownerList: User[];
55
54
  vendorTypeList: VendorType[];
56
55
  vendorView?: VendorsTabVendorDetails;
@@ -9,7 +9,6 @@ const accountSelector_1 = require("../../../entity/account/accountSelector");
9
9
  const addressSelector_1 = require("../../../entity/address/addressSelector");
10
10
  const contactSelector_1 = require("../../../entity/billPay/contact/contactSelector");
11
11
  const classSelector_1 = require("../../../entity/class/classSelector");
12
- const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
13
12
  const userSelector_1 = require("../../../entity/user/userSelector");
14
13
  const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
15
14
  const zeniDayJS_1 = require("../../../zeniDayJS");
@@ -25,7 +24,6 @@ const toVendorDetailTabsType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_
25
24
  exports.toVendorDetailTabsType = toVendorDetailTabsType;
26
25
  const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
27
26
  const { accountListState, accountState, classListState, classState, vendorState, userState, vendorsTabVendorViewState, vendorTypeListState, addressState, addressViewState, contactState, } = state;
28
- const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
29
27
  const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
30
28
  const classList = (0, classListSelector_1.getClassList)(classState, classListState);
31
29
  const ownerList = (0, userSelector_1.getUsersByUserIds)(state.userState, state.ownerListState.ownerIds);
@@ -57,7 +55,7 @@ const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
57
55
  }
58
56
  fetchState = (0, reduceFetchState_1.reduceFetchState)([
59
57
  accountList,
60
- ...(isAccountingClassesEnabled ? [classList] : []),
58
+ classList,
61
59
  vendorTypeListState,
62
60
  vendorsTabVendorViewState.vendorStateById[vendorIdFromUrl]?.fetchStatus ?? {
63
61
  fetchState: 'Not-Started',
@@ -68,7 +66,6 @@ const getVendorsTabVendorView = (state, vendorIdFromUrl) => {
68
66
  return {
69
67
  accountList: accountList,
70
68
  classList: classList,
71
- isAccountingClassesEnabled,
72
69
  vendorTypeList: vendorTypeList,
73
70
  accountsHierarchyList,
74
71
  classHierarchyList,
@@ -110,10 +107,9 @@ const getVendorsTabDetailPageView = (state, vendorId, entity) => {
110
107
  ? (0, transactionListByEntitySelector_1.getTransactionListByEntityForSinglePeriod)(state, entity, state.vendorsTabVendorViewState.allTransactionsTabData
111
108
  .numberOfQuartersFetched)
112
109
  : undefined;
113
- const isAccountingClassesEnabled = (0, tenantSelector_1.getIsAccountingClassesEnabled)(state);
114
110
  const reducedFetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
115
111
  state.accountListState.byReportId.accountList,
116
- ...(isAccountingClassesEnabled ? [state.classListState] : []),
112
+ state.classListState,
117
113
  state.ownerListState,
118
114
  state.vendorTypeListState,
119
115
  state.vendorsTabVendorViewState.vendorStateById[vendorId]?.fetchStatus ?? {
@@ -15,13 +15,11 @@ const uploadMissingReceiptSuccessEpic = (actions$, state$) => actions$.pipe((0,
15
15
  updateActions.push((0, transactionReducer_1.updateTransaction)(transactionPayload.transaction_id, transactionPayload, updateType));
16
16
  if (currentTenant != null) {
17
17
  const monthEndChecksPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
18
- if (monthEndChecksPeriod != null) {
19
- updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
20
- tenantId: currentTenant.tenantId,
21
- period: monthEndChecksPeriod,
22
- refreshViewInBackground: true,
23
- }));
24
- }
18
+ updateActions.push((0, monthEndCloseChecksViewReducer_1.fetchMonthEndCloseChecks)({
19
+ tenantId: currentTenant.tenantId,
20
+ period: monthEndChecksPeriod,
21
+ refreshViewInBackground: true,
22
+ }));
25
23
  }
26
24
  return (0, rxjs_1.from)(updateActions);
27
25
  }));