@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
@@ -1,2 +1,2 @@
1
- export declare const toAnimationsFileName: (v: string) => "Success" | "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
1
+ export declare const toAnimationsFileName: (v: string) => "AiAgent" | "AiIconEntry" | "AiIconExit" | "AiIconLoop" | "AiStar" | "AiStarIcon" | "AiStarPlain" | "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "AutoTransfer" | "CloseCard" | "Confetti" | "ConfettiSuccess" | "DashboardChristmasSnow" | "DashboardNewYearShow" | "DashboardSidebarBottomChristmas" | "DashboardSidebarBottomHalloween" | "DashboardSidebarBottomNewYear" | "DashboardSidebarBottomThanksgiving" | "DashboardSidebarTopChristmas" | "DashboardSidebarTopHalloween" | "DashboardSidebarTopNewYear" | "DashboardSidebarTopThanksgiving" | "EarnYield" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "Liquidity" | "LockCard" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "Protection" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Secure" | "Success" | "UnlockCard" | "VeryHappy" | "ZeniAssist";
2
2
  export type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
@@ -5,5 +5,3 @@ export type COABalanceType = 'default' | 'default_with_percent' | 'default_with_
5
5
  export declare const toCOABalanceType: (v: string) => COABalanceType;
6
6
  export declare const toCOABalanceTypeStrict: (v: string) => COABalanceType | undefined;
7
7
  export declare const isCalculatedBalanceType: (id: string) => id is CalculatedBalance;
8
- /** Removes compare-mode balance types (horizontal P&L-by-class does not use them). */
9
- export declare function stripCompareAdditionalBalanceTypes(balances: readonly COABalanceType[]): COABalanceType[];
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isCalculatedBalanceType = exports.toCOABalanceTypeStrict = exports.toCOABalanceType = void 0;
4
- exports.stripCompareAdditionalBalanceTypes = stripCompareAdditionalBalanceTypes;
5
4
  const stringToUnion_1 = require("../stringToUnion");
6
5
  const ALL_COA_BALANCE_FIELDS = [
7
6
  'default',
@@ -34,8 +33,3 @@ const toCOABalanceTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v
34
33
  exports.toCOABalanceTypeStrict = toCOABalanceTypeStrict;
35
34
  const isCalculatedBalanceType = (id) => ALL_CALCULATED_BALANCES.find((sectionId) => id === sectionId) != null;
36
35
  exports.isCalculatedBalanceType = isCalculatedBalanceType;
37
- /** Removes compare-mode balance types (horizontal P&L-by-class does not use them). */
38
- function stripCompareAdditionalBalanceTypes(balances) {
39
- return balances.filter((balanceType) => balanceType !== 'this_period_vs_last_period' &&
40
- balanceType !== 'this_period_vs_last_period_percent');
41
- }
@@ -1,4 +1 @@
1
- import { Currency } from './amount';
2
1
  export declare const isUsdCurrency: (currencyCode: string) => currencyCode is "USD";
3
- /** Default home-currency fallback when tenant/report currency is unset. */
4
- export declare const defaultCustomerCurrency: Currency;
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultCustomerCurrency = exports.isUsdCurrency = void 0;
3
+ exports.isUsdCurrency = void 0;
4
4
  const isUsdCurrency = (currencyCode) => {
5
5
  return currencyCode === 'USD';
6
6
  };
7
7
  exports.isUsdCurrency = isUsdCurrency;
8
- /** Default home-currency fallback when tenant/report currency is unset. */
9
- exports.defaultCustomerCurrency = {
10
- currencyCode: 'USD',
11
- currencySymbol: '$',
12
- };
@@ -11,15 +11,6 @@ export declare const isAllFetchCompleted: (fetchStateList: FetchStateAndError[])
11
11
  * @return single fetchStateWithError
12
12
  */
13
13
  export declare function reduceFetchState(fetchStateList: FetchStateAndError[]): FetchStateAndError;
14
- /**
15
- * Combine multiple independent fetches (e.g. month / quarter / year for one report).
16
- * In-Progress if any fetch is in progress; Completed only when all complete; Error if
17
- * any failed once nothing is still in progress.
18
- *
19
- * Differs from {@link reduceFetchState} (requires all In-Progress for that state) and
20
- * from {@link reduceAllFetchState} (Error only when every fetch failed).
21
- */
22
- export declare function reduceFetchStateParallelTimeframes(fetchStateList: FetchStateAndError[]): FetchStateAndError;
23
14
  /**
24
15
  * Reduces list of fetch state to boolean
25
16
  * @param fetchStateList list of fetch states
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reduceAnyCompletedFetchState = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.isAnyFetchCompleted = exports.isAnyFetchInProgress = exports.isAllFetchCompleted = void 0;
4
4
  exports.reduceFetchState = reduceFetchState;
5
- exports.reduceFetchStateParallelTimeframes = reduceFetchStateParallelTimeframes;
6
5
  /**
7
6
  * Reduces list of fetch state to boolean
8
7
  * @param fetchStateList list of fetch states
@@ -56,31 +55,6 @@ function reduceFetchState(fetchStateList) {
56
55
  error,
57
56
  };
58
57
  }
59
- /**
60
- * Combine multiple independent fetches (e.g. month / quarter / year for one report).
61
- * In-Progress if any fetch is in progress; Completed only when all complete; Error if
62
- * any failed once nothing is still in progress.
63
- *
64
- * Differs from {@link reduceFetchState} (requires all In-Progress for that state) and
65
- * from {@link reduceAllFetchState} (Error only when every fetch failed).
66
- */
67
- function reduceFetchStateParallelTimeframes(fetchStateList) {
68
- const isAnyProgress = fetchStateList.some((s) => s.fetchState === 'In-Progress');
69
- const isAllCompleted = fetchStateList.every((s) => s.fetchState === 'Completed');
70
- const isAnyError = fetchStateList.some((s) => s.fetchState === 'Error');
71
- const error = reduceError(fetchStateList);
72
- let fetchState = 'Not-Started';
73
- if (isAnyProgress) {
74
- fetchState = 'In-Progress';
75
- }
76
- else if (isAllCompleted) {
77
- fetchState = 'Completed';
78
- }
79
- else if (isAnyError) {
80
- fetchState = 'Error';
81
- }
82
- return { fetchState, error };
83
- }
84
58
  /**
85
59
  * Reduces list of fetch state to boolean
86
60
  * @param fetchStateList list of fetch states
@@ -16,8 +16,6 @@ export interface AccountBasePayload {
16
16
  is_deleted?: boolean | null;
17
17
  last_4_digits?: string | null;
18
18
  logo?: URLPayload;
19
- payment_type?: string | null;
20
- payment_type_name?: string | null;
21
19
  qbo_id?: string;
22
20
  reconciliation_source?: string | null;
23
21
  tax_1099_config?: Tax1099ConfigPayload | null;
@@ -13,8 +13,6 @@ const mapAccountBasePayloadToAccountBase = (payload) => ({
13
13
  accountDescription: payload.account_description ?? '',
14
14
  last4Digits: payload.last_4_digits ?? undefined,
15
15
  logo: payload.logo == null ? undefined : (0, urlPayload_1.toURL)(payload.logo),
16
- paymentType: payload.payment_type ?? undefined,
17
- paymentTypeName: payload.payment_type_name ?? undefined,
18
16
  qboId: payload.qbo_id ?? undefined,
19
17
  coaId: payload.coa_id ?? undefined,
20
18
  labels: toAccountLabelArray(payload.labels ?? []),
@@ -43,8 +43,6 @@ export interface AccountBase {
43
43
  isPreFilled?: boolean;
44
44
  last4Digits?: string;
45
45
  logo?: ZeniUrl;
46
- paymentType?: string;
47
- paymentTypeName?: string;
48
46
  qboId?: ID;
49
47
  reconciliationSource?: ReconciliationAccountSourceType;
50
48
  tax1099Config?: Tax1099Config;
@@ -1,5 +1,6 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
- import { AiCfoQuestionWithAnswer, AiCfoState, ChatSession } from './aiCfoState';
2
+ import { AiCfoQuestionWithAnswer, AiCfoState } from './aiCfoState';
3
+ import { ChatSession } from './aiCfoState';
3
4
  export declare function getAllQuestionAnswersForChatSession(state: AiCfoState, chatSessionId: ID): AiCfoQuestionWithAnswer[];
4
5
  export declare function getQuestionAnswerByIdForChatSession(state: AiCfoState, chatSessionId: ID, questionAnswerId: ID): AiCfoQuestionWithAnswer | undefined;
5
6
  export declare function getAllQuestionsForChatSession(state: AiCfoState, chatSessionId: ID): string[];
@@ -7,6 +7,8 @@ import { VendorTransaction } from '../../transaction/stateTypes/vendorTransactio
7
7
  export interface BillTransaction extends VendorTransaction {
8
8
  billPayInfo: BillPayInfo;
9
9
  candidateVendorName: string;
10
+ classId: ID;
11
+ className: string;
10
12
  createdBy: ID;
11
13
  deletionInfo: DeletionInfo;
12
14
  entityApprovalId: ID;
@@ -19,8 +21,6 @@ export interface BillTransaction extends VendorTransaction {
19
21
  updateTime: ZeniDate;
20
22
  bookCloseDate?: ZeniDate;
21
23
  bulkProcessingDetail?: BulkProcessingDetail;
22
- classId?: ID;
23
- className?: string;
24
24
  lastUpdatedByUserId?: ID;
25
25
  recurringBillConfigId?: ID;
26
26
  recurringBillInstance?: number;
@@ -1,3 +1,4 @@
1
+ import { Currency } from '../../commonStateTypes/amount';
1
2
  import { ID } from '../../commonStateTypes/common';
2
3
  import { ZeniDate } from '../../zeniDayJS';
3
4
  import { ZeniUrl as Url } from '../../zeniUrl';
@@ -46,3 +47,4 @@ export interface Customer extends CustomerBase {
46
47
  export interface CustomerState {
47
48
  byCustomerId: Record<ID, Customer>;
48
49
  }
50
+ export declare const defaultCustomerCurrency: Currency;
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultCustomerCurrency = void 0;
4
+ exports.defaultCustomerCurrency = {
5
+ currencyCode: 'USD',
6
+ currencySymbol: '$',
7
+ };
@@ -40,7 +40,7 @@ export interface DepositSubAccountType {
40
40
  code: DepositSubAccountTypeCodeType;
41
41
  name: string;
42
42
  }
43
- export declare const toDepositSubAccounTypeCodeType: (v: string) => "Zinc" | "Bronze" | "Gold" | "Silver" | "Platinum" | "Checking";
43
+ export declare const toDepositSubAccounTypeCodeType: (v: string) => "checking" | "savings";
44
44
  type DepositSubAccountTypeCodeType = ReturnType<typeof toDepositSubAccounTypeCodeType>;
45
45
  export declare const toDepositAccountStatusType: (v: string) => "Open" | "Frozen" | "Closed";
46
46
  export type DepositAccountStatus = ReturnType<typeof toDepositAccountStatusType>;
@@ -2,14 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toDepositAccountStatusType = exports.toDepositSubAccounTypeCodeType = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- const ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE = [
6
- 'Zinc',
7
- 'Bronze',
8
- 'Gold',
9
- 'Silver',
10
- 'Platinum',
11
- 'Checking',
12
- ];
5
+ const ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE = ['checking', 'savings'];
13
6
  const toDepositSubAccounTypeCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_DEPOSIT_SUB_ACCOUNT_TYPE_CODE);
14
7
  exports.toDepositSubAccounTypeCodeType = toDepositSubAccounTypeCodeType;
15
8
  const ALL_DEPOSIT_ACCOUNT_STATUS_TYPE = ['Closed', 'Open', 'Frozen'];
@@ -13,41 +13,6 @@ export interface JEScheduleOtherAttributesPayload {
13
13
  asset_id?: string | null;
14
14
  starting_balance?: number | null;
15
15
  }
16
- export interface JEScheduleAISummaryFieldPayload {
17
- confidence: number;
18
- reasoning: string;
19
- predicted_value?: number | string;
20
- }
21
- export interface JEScheduleAISummariesPayload {
22
- credit_account?: JEScheduleAISummaryFieldPayload;
23
- credit_accounting_class?: JEScheduleAISummaryFieldPayload;
24
- debit_account?: JEScheduleAISummaryFieldPayload;
25
- debit_accounting_class?: JEScheduleAISummaryFieldPayload;
26
- period?: JEScheduleAISummaryFieldPayload;
27
- posting_date?: JEScheduleAISummaryFieldPayload;
28
- schedule_type?: JEScheduleAISummaryFieldPayload;
29
- }
30
- export interface JEScheduleRecommendationsPayload {
31
- credit_account_confidence?: number;
32
- credit_class_confidence?: number;
33
- debit_account_confidence?: number;
34
- debit_class_confidence?: number;
35
- end_date?: string | null;
36
- je_credit_account_id?: string | null;
37
- je_credit_accounting_class_id?: string | null;
38
- je_debit_account_id?: string | null;
39
- je_debit_accounting_class_id?: string | null;
40
- je_schedule_type?: string | null;
41
- je_schedule_type_confidence?: number;
42
- period?: number | null;
43
- period_confidence?: number;
44
- posting_date?: string | null;
45
- posting_date_confidence?: number;
46
- similar_transactions?: unknown[];
47
- start_date?: string | null;
48
- starting_month?: string | null;
49
- starting_month_confidence?: number;
50
- }
51
16
  export interface JEScheduledTransactionPayload {
52
17
  balance: number | null;
53
18
  base_transaction: ScheduleTransactionPayload;
@@ -70,10 +35,7 @@ export interface JEScheduledTransactionPayload {
70
35
  status: StatusCodeWithLabelPayload;
71
36
  updated_by: UserPayload;
72
37
  vendor: VendorPayload;
73
- ai_summaries?: JEScheduleAISummariesPayload;
74
- created_by?: UserPayload;
75
38
  end_date?: string | null;
76
- recommendations?: JEScheduleRecommendationsPayload;
77
39
  updated_at?: string | null;
78
40
  }
79
41
  export interface JEAccruedScheduledTransactionPayload extends Omit<JEScheduledTransactionPayload, 'base_transaction' | 'je_schedule_id' | 'je_schedule_type'> {
@@ -146,81 +146,6 @@ function toJEScheduleOtherAttributes(payload) {
146
146
  assetId: payload.asset_id ?? undefined,
147
147
  };
148
148
  }
149
- function toJEScheduleAISummaries(payload) {
150
- if (payload == null) {
151
- return undefined;
152
- }
153
- const result = {};
154
- if (payload.debit_account != null) {
155
- result.debitAccount = {
156
- confidence: payload.debit_account.confidence,
157
- reasoning: payload.debit_account.reasoning,
158
- };
159
- }
160
- if (payload.credit_account != null) {
161
- result.creditAccount = {
162
- confidence: payload.credit_account.confidence,
163
- reasoning: payload.credit_account.reasoning,
164
- };
165
- }
166
- if (payload.debit_accounting_class != null) {
167
- result.debitClass = {
168
- confidence: payload.debit_accounting_class.confidence,
169
- reasoning: payload.debit_accounting_class.reasoning,
170
- };
171
- }
172
- if (payload.credit_accounting_class != null) {
173
- result.creditClass = {
174
- confidence: payload.credit_accounting_class.confidence,
175
- reasoning: payload.credit_accounting_class.reasoning,
176
- };
177
- }
178
- if (payload.period != null) {
179
- result.period = {
180
- confidence: payload.period.confidence,
181
- reasoning: payload.period.reasoning,
182
- };
183
- }
184
- if (payload.posting_date != null) {
185
- result.postingDate = {
186
- confidence: payload.posting_date.confidence,
187
- reasoning: payload.posting_date.reasoning,
188
- };
189
- }
190
- if (payload.schedule_type != null) {
191
- result.scheduleType = {
192
- confidence: payload.schedule_type.confidence,
193
- reasoning: payload.schedule_type.reasoning,
194
- };
195
- }
196
- return Object.keys(result).length > 0 ? result : undefined;
197
- }
198
- function toJEScheduleRecommendations(payload) {
199
- if (payload == null) {
200
- return undefined;
201
- }
202
- return {
203
- creditAccountConfidence: payload.credit_account_confidence,
204
- creditClassConfidence: payload.credit_class_confidence,
205
- debitAccountConfidence: payload.debit_account_confidence,
206
- debitClassConfidence: payload.debit_class_confidence,
207
- endDate: payload.end_date ?? undefined,
208
- jeCreditAccountId: payload.je_credit_account_id ?? undefined,
209
- jeCreditAccountingClassId: payload.je_credit_accounting_class_id ?? undefined,
210
- jeDebitAccountId: payload.je_debit_account_id ?? undefined,
211
- jeDebitAccountingClassId: payload.je_debit_accounting_class_id ?? undefined,
212
- jeScheduleType: payload.je_schedule_type ?? undefined,
213
- jeScheduleTypeConfidence: payload.je_schedule_type_confidence,
214
- period: payload.period ?? undefined,
215
- periodConfidence: payload.period_confidence,
216
- postingDate: payload.posting_date ?? undefined,
217
- postingDateConfidence: payload.posting_date_confidence,
218
- similarTransactions: payload.similar_transactions,
219
- startDate: payload.start_date ?? undefined,
220
- startingMonth: payload.starting_month ?? undefined,
221
- startingMonthConfidence: payload.starting_month_confidence,
222
- };
223
- }
224
149
  function toJEScheduledTransaction(payload) {
225
150
  return {
226
151
  jeScheduleId: payload.je_schedule_id ?? undefined,
@@ -265,9 +190,6 @@ function toJEScheduledTransaction(payload) {
265
190
  ? toJEScheduleOtherAttributes(payload.other_attributes)
266
191
  : {},
267
192
  scheduledJournalEntry: [],
268
- aiSummaries: toJEScheduleAISummaries(payload.ai_summaries),
269
- createdByUserID: payload.created_by?.user_id ?? undefined,
270
- recommendations: toJEScheduleRecommendations(payload.recommendations),
271
193
  };
272
194
  }
273
195
  function toJEAccruedScheduledTransaction(payload) {
@@ -9,7 +9,7 @@ import { ScheduleTransaction } from '../transaction/stateTypes/scheduleTransacti
9
9
  import { TransactionID } from '../transaction/stateTypes/transaction';
10
10
  import { User } from '../user/userState';
11
11
  import { Vendor } from '../vendor/vendorState';
12
- import { JEScheduleAISummaries, JEScheduleOtherAttributes, JEScheduleRecommendations, ScheduleJournalStatusCode, ScheduleStatus } from './jeSchedulesState';
12
+ import { JEScheduleOtherAttributes, ScheduleJournalStatusCode, ScheduleStatus } from './jeSchedulesState';
13
13
  import { JEScheduleKey, JEScheduleTransactionKey, JournalEntryErrorCodeType, ScheduleTypes } from './jeSchedulesTypes';
14
14
  export interface ScheduledJournalEntry {
15
15
  error: JournalEntryErrorCodeType[];
@@ -59,16 +59,13 @@ export interface JEScheduledTransaction {
59
59
  scheduledJournalEntry: ScheduledJournalEntry[];
60
60
  status: ScheduleStatus;
61
61
  vendor: Vendor;
62
- aiSummaries?: JEScheduleAISummaries;
63
62
  balanceAsOfToday?: Amount;
64
- createdByUser?: User;
65
63
  dayOfPostingDate?: ScheduleDaysOfMonth;
66
64
  endDate?: ZeniDate;
67
65
  jeScheduleId?: ID;
68
66
  jeScheduleType?: ScheduleTypes;
69
67
  lastDayOfMonth?: boolean;
70
68
  period?: number;
71
- recommendations?: JEScheduleRecommendations;
72
69
  startDate?: ZeniDate;
73
70
  updatedAt?: ZeniDate;
74
71
  updatedByUser?: User;
@@ -77,13 +77,12 @@ exports.getJEAccruedScheduleByJEScheduleKey = getJEAccruedScheduleByJEScheduleKe
77
77
  const getJEScheduledTransactionByJEScheduleTransactionKey = (jeScheduleTransactionKey, state) => {
78
78
  const { jeSchedulesState, vendorState, accountState, userState, classState, transactionState, } = state;
79
79
  const jeScheduleTransactionState = (0, get_1.default)(jeSchedulesState.schedulesByTransactionKey, jeScheduleTransactionKey);
80
- const { period, updatedByUserID: updatedBy, createdByUserID: createdBy, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, otherAttributes, jeScheduleType, aiSummaries, recommendations, } = jeScheduleTransactionState;
80
+ const { period, updatedByUserID: updatedBy, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, otherAttributes, jeScheduleType, } = jeScheduleTransactionState;
81
81
  const vendorDetails = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
82
82
  if (vendorDetails == null) {
83
83
  throw new Error(`Vendor with ${vendorId} doesn't exist`);
84
84
  }
85
85
  const userDetails = updatedBy != null ? (0, userSelector_1.getUserByUserId)(userState, updatedBy) : undefined;
86
- const createdByUserDetails = createdBy != null ? (0, userSelector_1.getUserByUserId)(userState, createdBy) : undefined;
87
86
  const baseTransactionObject = (0, transactionSelector_1.getScheduleTransactionById)(transactionState, baseTransaction);
88
87
  if (baseTransactionObject == null) {
89
88
  throw Error('Base Schedule transaction cannot be null');
@@ -135,9 +134,6 @@ const getJEScheduledTransactionByJEScheduleTransactionKey = (jeScheduleTransacti
135
134
  account: accountDebit,
136
135
  },
137
136
  scheduledJournalEntry,
138
- aiSummaries,
139
- createdByUser: createdByUserDetails,
140
- recommendations,
141
137
  };
142
138
  };
143
139
  exports.getJEScheduledTransactionByJEScheduleTransactionKey = getJEScheduledTransactionByJEScheduleTransactionKey;
@@ -12,40 +12,6 @@ export interface ScheduleJournalStatusCode {
12
12
  code: ScheduleJournalEntryStatusCodeType;
13
13
  label: string;
14
14
  }
15
- export interface JEScheduleFieldRecommendation {
16
- confidence: number;
17
- reasoning: string;
18
- }
19
- export interface JEScheduleAISummaries {
20
- creditAccount?: JEScheduleFieldRecommendation;
21
- creditClass?: JEScheduleFieldRecommendation;
22
- debitAccount?: JEScheduleFieldRecommendation;
23
- debitClass?: JEScheduleFieldRecommendation;
24
- period?: JEScheduleFieldRecommendation;
25
- postingDate?: JEScheduleFieldRecommendation;
26
- scheduleType?: JEScheduleFieldRecommendation;
27
- }
28
- export interface JEScheduleRecommendations {
29
- creditAccountConfidence?: number;
30
- creditClassConfidence?: number;
31
- debitAccountConfidence?: number;
32
- debitClassConfidence?: number;
33
- endDate?: string;
34
- jeCreditAccountId?: string;
35
- jeCreditAccountingClassId?: string;
36
- jeDebitAccountId?: string;
37
- jeDebitAccountingClassId?: string;
38
- jeScheduleType?: string;
39
- jeScheduleTypeConfidence?: number;
40
- period?: number;
41
- periodConfidence?: number;
42
- postingDate?: string;
43
- postingDateConfidence?: number;
44
- similarTransactions?: unknown[];
45
- startDate?: string;
46
- startingMonth?: string;
47
- startingMonthConfidence?: number;
48
- }
49
15
  export interface JEScheduleOtherAttributes {
50
16
  assetId?: string;
51
17
  startingBalance?: Amount;
@@ -90,16 +56,13 @@ export interface JEScheduledTransactionState {
90
56
  scheduledJournalEntry: ScheduledJournalEntryState[];
91
57
  status: ScheduleStatus;
92
58
  vendorId: ID;
93
- aiSummaries?: JEScheduleAISummaries;
94
59
  balanceAsOfToday?: number;
95
- createdByUserID?: ID;
96
60
  dayOfPostingDate?: ScheduleDaysOfMonth;
97
61
  endDate?: ZeniDate;
98
62
  jeScheduleId?: ID;
99
63
  jeScheduleType?: ScheduleTypes;
100
64
  lastDayOfMonth?: boolean;
101
65
  period?: number;
102
- recommendations?: JEScheduleRecommendations;
103
66
  startDate?: ZeniDate;
104
67
  updatedAt?: ZeniDate;
105
68
  updatedByUserID?: ID;
@@ -3,7 +3,6 @@ import { SegregatedReimbursementLineWithRecommendation } from '../../view/spendM
3
3
  import { AccountBasePayload } from '../account/accountPayload';
4
4
  import { BillAccountPayload, BillPaymentMethodPayload, BillPaymentStatusPayload, BillStagePayload, BillStatusPayload, BulkOperationDetailPayload, DeletionInfoPayload } from '../billPay/billTransaction/billTransactionPayload';
5
5
  import { ClassBasePayload } from '../class/classPayload';
6
- import { CustomerBasePayload } from '../customer/customerPayload';
7
6
  import { MerchantBasePayload } from '../merchant/merchantPayload';
8
7
  import { AttachmentPayload } from '../transaction/payloadTypes/attachmentPayload';
9
8
  import { LineDetail, Reimbursement, ReimbursementTypeCode } from './reimbursementState';
@@ -69,7 +68,6 @@ interface ReimbursementTypePayload {
69
68
  export interface LineDetailPayload {
70
69
  class: ClassBasePayload;
71
70
  account?: AccountBasePayload;
72
- customer?: CustomerBasePayload;
73
71
  }
74
72
  interface ReimbursementInfoPayload {
75
73
  actual_deposit_date: string | null;
@@ -8,7 +8,6 @@ const zeniDayJS_1 = require("../../zeniDayJS");
8
8
  const accountPayload_1 = require("../account/accountPayload");
9
9
  const billTransactionPayload_1 = require("../billPay/billTransaction/billTransactionPayload");
10
10
  const classPayload_1 = require("../class/classPayload");
11
- const customerPayload_1 = require("../customer/customerPayload");
12
11
  const merchantPayload_1 = require("../merchant/merchantPayload");
13
12
  const attachmentPayload_1 = require("../transaction/payloadTypes/attachmentPayload");
14
13
  const ALL_REIMBURSEMENT_TRANSACTION_TYPE = ['reimbursement'];
@@ -172,9 +171,6 @@ const toLineDetailPayload = (lineDetail) => ({
172
171
  account: lineDetail.account != null
173
172
  ? (0, accountPayload_1.toAccountPayload)(lineDetail.account)
174
173
  : undefined,
175
- customer: lineDetail.customer != null
176
- ? (0, customerPayload_1.toCustomerBasePayload)(undefined, lineDetail.customer)
177
- : undefined,
178
174
  });
179
175
  exports.toLineDetailPayload = toLineDetailPayload;
180
176
  const toLineDetail = (payload) => ({
@@ -184,9 +180,6 @@ const toLineDetail = (payload) => ({
184
180
  account: payload.account?.account_id != null
185
181
  ? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload.account)
186
182
  : undefined,
187
- customer: payload.customer?.customer_id != null
188
- ? (0, customerPayload_1.toCustomerBase)(payload.customer, false)
189
- : undefined,
190
183
  });
191
184
  const toDistanceMilage = (payload) => ({
192
185
  unit: payload.unit,
@@ -6,7 +6,6 @@ import { ZeniUrl as Url } from '../../zeniUrl';
6
6
  import { AccountBase } from '../account/accountState';
7
7
  import { BillPaymentStatus, BillStage, BillStatus, BulkProcessingDetail, DeletionInfo } from '../billPay/billTransaction/billTransactionState';
8
8
  import { ClassBase } from '../class/classState';
9
- import { CustomerBase } from '../customer/customerState';
10
9
  import { MerchantBase } from '../merchant/merchant';
11
10
  import { Attachment } from '../transaction/stateTypes/attachment';
12
11
  import { ReimbursementTransactionType } from './reimbursementPayload';
@@ -59,7 +58,6 @@ export interface DistanceMilage {
59
58
  export interface LineDetail {
60
59
  account?: AccountBase;
61
60
  class?: ClassBase;
62
- customer?: CustomerBase;
63
61
  }
64
62
  export interface ReimbursementInfo {
65
63
  billPaymentMethodType: RemiPaymentMethod;
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipt_match" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "success" | "failed";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -152,7 +152,6 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
152
152
  'missing_receipts_attachment',
153
153
  'flux_analysis_unreviewed',
154
154
  'flux_analysis_reviewed',
155
- 'receipt_match',
156
155
  'receipts_upload',
157
156
  'billing_address_view',
158
157
  'express_pay_submit',
@@ -21,7 +21,6 @@ export interface TaskPayload {
21
21
  type: AllowedValueWithCodePayload;
22
22
  update_time: string | null;
23
23
  company_id?: string;
24
- group_assignees?: string[];
25
24
  sync_token?: string | null;
26
25
  task_group_ids?: string[] | null;
27
26
  }
@@ -42,6 +42,5 @@ const mapTaskPayloadToTask = (payload) => ({
42
42
  timeSpent: payload.time_spent != null
43
43
  ? (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(payload.time_spent)
44
44
  : (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(0),
45
- groupAssignees: payload.group_assignees ?? [],
46
45
  });
47
46
  exports.mapTaskPayloadToTask = mapTaskPayloadToTask;
@@ -7,7 +7,6 @@ export interface Task {
7
7
  createTime: ZeniDate;
8
8
  description: string;
9
9
  fileIds: string[];
10
- groupAssignees: ID[];
11
10
  id: ID;
12
11
  isArchived: boolean;
13
12
  isDeleted: boolean;
@@ -33,7 +33,6 @@ interface TenantPayload {
33
33
  invite_create_time: string;
34
34
  inviter_email: string;
35
35
  inviter_id: ID;
36
- is_accounting_classes_enabled: boolean;
37
36
  is_admin: boolean;
38
37
  is_ap_analyst: boolean;
39
38
  is_banker: boolean;
@@ -561,7 +561,6 @@ function mapTenantsPayloadToState(tenantsPayload, userTenantPayload) {
561
561
  function mapTenantPayloadToTenant(payload, userTenantPayload) {
562
562
  const tenant = {
563
563
  accountingClassIDs: payload.accounting_class_ids,
564
- isAccountingClassesEnabled: payload.is_accounting_classes_enabled ?? true,
565
564
  bookCloseDate: payload.book_close_date != null
566
565
  ? (0, zeniDayJS_1.date)(payload.book_close_date)
567
566
  : undefined,
@@ -85,7 +85,6 @@ export declare const getCurrentTenantExternalConnections: (tenantState: TenantSt
85
85
  export declare const toTenantCoreDetailsView: (tenantsBaseView: TenantBaseView[]) => TenantCoreDetailsView[];
86
86
  export declare const isTenantBankingOnly: (isDebitCardFlagEnabled: boolean, tenant: Tenant | undefined) => boolean;
87
87
  export declare const isTenantCardsOnly: (tenant: Tenant | undefined) => boolean;
88
- export declare const getIsAccountingClassesEnabled: (state: RootState) => boolean;
89
88
  export declare const isTenantBookkeepingEnabled: (tenant: Tenant | undefined) => boolean;
90
89
  export declare const isOtherProductsEnabledForTenant: (tenant: Tenant | undefined) => boolean;
91
90
  export declare const isTenantTreasuryEnabled: (tenant: Tenant | undefined) => boolean;