@zeniai/client-epic-state 4.12.98 → 4.12.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +7 -0
  2. package/lib/commonStateTypes/common.d.ts +2 -0
  3. package/lib/commonStateTypes/common.js +5 -1
  4. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +1 -0
  5. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -1
  6. package/lib/commonStateTypes/timePeriod.d.ts +16 -0
  7. package/lib/commonStateTypes/timePeriod.js +31 -1
  8. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  9. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  11. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  12. package/lib/entity/account/accountState.d.ts +1 -1
  13. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  14. package/lib/entity/class/classReducer.d.ts +4 -4
  15. package/lib/entity/class/classState.d.ts +1 -1
  16. package/lib/entity/company/companyPayload.d.ts +4 -0
  17. package/lib/entity/company/companyPayload.js +6 -3
  18. package/lib/entity/company/companyReducer.d.ts +4 -1
  19. package/lib/entity/company/companyReducer.js +6 -2
  20. package/lib/entity/company/companyStateTypes.d.ts +5 -1
  21. package/lib/entity/file/fileState.d.ts +3 -3
  22. package/lib/entity/file/fileState.js +2 -0
  23. package/lib/entity/forecast/forecastState.d.ts +1 -1
  24. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
  25. package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -1
  26. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  27. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +3 -1
  28. package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
  29. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +3 -1
  30. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -0
  31. package/lib/entity/jeSchedules/jeSchedulesTypes.js +12 -1
  32. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +32 -0
  33. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +53 -0
  34. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +12 -0
  35. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +25 -0
  36. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +7 -0
  37. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +36 -0
  38. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +38 -0
  39. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +10 -0
  40. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  41. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  42. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  43. package/lib/entity/tenant/clearAllEpic.d.ts +11 -2
  44. package/lib/entity/tenant/clearAllEpic.js +18 -0
  45. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +4 -1
  46. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +32 -2
  47. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  48. package/lib/entity/tenant/tenantReducer.js +3 -0
  49. package/lib/entity/tenant/tenantState.d.ts +1 -0
  50. package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
  51. package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
  52. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  53. package/lib/entity/transaction/transactionSelector.d.ts +1 -0
  54. package/lib/entity/transaction/transactionSelector.js +7 -1
  55. package/lib/entity/user/userPayload.d.ts +1 -0
  56. package/lib/entity/user/userReducer.js +9 -8
  57. package/lib/entity/user/userState.d.ts +1 -0
  58. package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
  59. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +35 -1
  60. package/lib/entity/vendor/vendorPayload.js +3 -2
  61. package/lib/entity/vendor/vendorState.d.ts +3 -3
  62. package/lib/entity/vendor/vendorType.d.ts +0 -2
  63. package/lib/entity/vendor/vendorType.js +1 -4
  64. package/lib/epic.d.ts +15 -1
  65. package/lib/epic.js +15 -1
  66. package/lib/index.d.ts +52 -13
  67. package/lib/index.js +83 -25
  68. package/lib/reducer.d.ts +28 -1
  69. package/lib/reducer.js +28 -1
  70. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +7 -1
  71. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +7 -1
  72. package/lib/view/addressView/addressViewState.d.ts +1 -1
  73. package/lib/view/addressView/toAddressViewLocalData.js +5 -0
  74. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  75. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  76. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  77. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  78. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  79. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  80. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  81. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +10 -5
  82. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +10 -7
  83. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
  84. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
  85. package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +5 -3
  86. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
  87. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
  88. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +1 -6
  89. package/lib/view/companyView/selectorHelpers/getCompanyView.js +4 -0
  90. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  91. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +2 -0
  92. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +7 -1
  93. package/lib/view/companyView/types/companyView.d.ts +1 -0
  94. package/lib/view/countryList/countryListReducer.d.ts +17 -0
  95. package/lib/view/countryList/countryListReducer.js +58 -0
  96. package/lib/view/countryList/countryListSelector.d.ts +7 -0
  97. package/lib/view/countryList/countryListSelector.js +13 -0
  98. package/lib/view/countryList/countryListState.d.ts +12 -0
  99. package/lib/view/countryList/countryListState.js +2 -0
  100. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +6 -0
  101. package/lib/view/countryList/epics/fetchCountryListEpic.js +19 -0
  102. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +7 -0
  103. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +38 -0
  104. package/lib/view/countryList/payloads/countryListPayload.d.ts +6 -0
  105. package/lib/view/countryList/payloads/countryListPayload.js +10 -0
  106. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +11 -0
  107. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +2 -0
  108. package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
  109. package/lib/view/dashboard/dashboardEpic.js +22 -2
  110. package/lib/view/dashboard/dashboardReducer.d.ts +3 -2
  111. package/lib/view/dashboard/dashboardReducer.js +2 -1
  112. package/lib/view/dashboard/dashboardSelector.d.ts +2 -0
  113. package/lib/view/dashboard/dashboardSelector.js +10 -2
  114. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +10 -0
  115. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +72 -0
  116. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +11 -0
  117. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +53 -0
  118. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +11 -0
  119. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +66 -0
  120. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +7 -0
  121. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +39 -0
  122. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +7 -0
  123. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +22 -0
  124. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +8 -0
  125. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +59 -0
  126. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +7 -0
  127. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +44 -0
  128. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +6 -0
  129. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +28 -0
  130. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +8 -0
  131. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +44 -0
  132. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +8 -0
  133. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +58 -0
  134. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +10 -0
  135. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +12 -0
  136. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +3 -0
  137. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +2 -0
  138. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +17 -0
  139. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +66 -0
  140. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +3 -0
  141. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +97 -0
  142. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +11 -0
  143. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +14 -0
  144. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +7 -0
  145. package/lib/view/expenseAutomationView/helpers/helpers.js +67 -0
  146. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +76 -0
  147. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +9 -0
  148. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +36 -0
  149. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -0
  150. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +16 -0
  151. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +2 -0
  152. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +34 -0
  153. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +205 -0
  154. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +53 -0
  155. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +245 -0
  156. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +31 -0
  157. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +130 -0
  158. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -0
  159. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -0
  160. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +35 -0
  161. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +47 -0
  162. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +32 -0
  163. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +2 -0
  164. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +28 -0
  165. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +2 -0
  166. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +11 -0
  167. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +2 -0
  168. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +3 -0
  169. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +55 -0
  170. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +7 -0
  171. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +95 -0
  172. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +3 -0
  173. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +61 -0
  174. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +53 -0
  175. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +5 -0
  176. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +31 -0
  177. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +2 -0
  178. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +20 -0
  179. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +13 -0
  180. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +28 -0
  181. package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -0
  182. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  183. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  184. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +8 -0
  185. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +58 -0
  186. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +3 -0
  187. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +2 -0
  188. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +16 -0
  189. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +36 -0
  190. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +10 -0
  191. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +27 -0
  192. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +5 -0
  193. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +2 -0
  194. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +8 -1
  195. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +3 -1
  196. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +5 -4
  197. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +2 -0
  198. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +6 -3
  199. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  200. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  201. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  202. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +3 -2
  203. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
  204. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
  205. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +19 -5
  206. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -3
  207. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +39 -57
  208. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +13 -8
  209. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +19 -12
  210. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +1 -0
  211. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +4 -3
  212. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +2 -0
  213. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  214. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -4
  215. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -0
  216. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
  217. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
  218. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +2 -1
  219. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +7 -0
  220. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +36 -0
  221. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +6 -0
  222. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +40 -0
  223. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +9 -0
  224. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +67 -0
  225. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +26 -0
  226. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +22 -0
  227. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +22 -0
  228. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +89 -0
  229. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +15 -0
  230. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +30 -0
  231. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +20 -0
  232. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +2 -0
  233. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  234. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  235. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +31 -6
  236. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  237. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +5 -2
  238. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -1
  239. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +6 -2
  240. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -0
  241. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +4 -0
  242. package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
  243. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  244. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  245. package/lib/view/topEx/topExSelector.d.ts +1 -1
  246. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
  247. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  248. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
  249. package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +2 -5
  250. package/package.json +1 -1
  251. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  252. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -1
  253. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  254. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -1
@@ -5,15 +5,15 @@ import { UpdateType } from '../../commonStateTypes/common';
5
5
  import { ClassMetadataWithBalancesPayloadV2 } from '../../commonPayloadTypes/classesView/reportByClassPayloadV2';
6
6
  import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
7
7
  export declare const initialState: ClassState;
8
- export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], string, never, {
9
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
8
+ export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], string, never, {
9
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
10
10
  classesViewParentId: ClassesViewParentID | undefined;
11
11
  updateType: UpdateType;
12
- }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
12
+ }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
13
13
  classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[];
14
14
  currencyPayload: CurrencyPayload;
15
15
  }, string, never, {
16
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
16
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
17
17
  sectionId: string;
18
18
  timeframe: "month" | "year" | "quarter";
19
19
  }>, clearAllClasses: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
@@ -25,7 +25,7 @@ export interface Class extends ClassBase {
25
25
  balancesByPeriod?: COABalanceGroupedByPeriod;
26
26
  nestedAccountIds?: NestedAccountIDHierarchy[];
27
27
  }
28
- export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing`;
28
+ export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense`;
29
29
  export declare type ClassKey = ReturnType<typeof getClassKey>;
30
30
  export interface ClassState {
31
31
  classesByKey: Record<ClassKey, Class>;
@@ -2,6 +2,7 @@ import { AllowedValueWithCode, AllowedValueWithID } from '../../commonStateTypes
2
2
  import { ID } from '../../commonStateTypes/common';
3
3
  import { Company, ParentSubsidiaryInfo, OnboardingInfo } from './companyStateTypes';
4
4
  import { CustomerRatingCodeType, TeamRatingCodeType } from '../customerSatisfaction/customerSatisfactionState';
5
+ import { LabelValueCodesPayload } from '../../commonPayloadTypes/commonPayload';
5
6
  export declare const defaultParentSubsidiaryObject: ParentSubsidiaryInfo;
6
7
  export interface CompanyInfoPayload {
7
8
  book_close_date: string | null;
@@ -94,6 +95,8 @@ interface CompanyBillPayInfoDataPayload {
94
95
  account_id: string | null;
95
96
  account_type: string | null;
96
97
  };
98
+ international_wire_onboarding_status: AllowedValueWithCode;
99
+ international_wire_onboarding_details: Record<string, LabelValueCodesPayload>;
97
100
  }
98
101
  export interface UserReimbursementInfoDataPayload {
99
102
  reimbursement_tos_acceptance_user_agent: string | null;
@@ -213,6 +216,7 @@ export interface CompanyManagementInfoPayload {
213
216
  note_last_update_time: string | null;
214
217
  note: string | null;
215
218
  company_address_id: string | null;
219
+ registered_address_id: string | null;
216
220
  primary_contact_user_id: string | null;
217
221
  company_officer_user_ids: string[];
218
222
  company_contact_user_id?: string | null;
@@ -150,6 +150,8 @@ const toCompanyBillPayInfo = (payload) => {
150
150
  accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
151
151
  }
152
152
  : undefined,
153
+ internationalWireOnboardingStatus: (0, exports.toAllowedValueWithCode)(payload.international_wire_onboarding_status),
154
+ internationalWireOnboardingDetails: payload.international_wire_onboarding_details,
153
155
  });
154
156
  };
155
157
  const toCompanyReimbursementInfo = (payload) => {
@@ -292,7 +294,7 @@ const toCompanyOnboardingInfo = (payload) => ({
292
294
  isOnboardingCompleted: payload.is_onboarding_completed,
293
295
  });
294
296
  const toCompanyManagementInfo = (payload) => {
295
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
297
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
296
298
  return ({
297
299
  statusCode: (_b = (_a = payload.status) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : undefined,
298
300
  companyGroupId: (_d = (_c = payload.company_group) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : undefined,
@@ -309,9 +311,10 @@ const toCompanyManagementInfo = (payload) => {
309
311
  : undefined,
310
312
  note: (_h = payload.note) !== null && _h !== void 0 ? _h : undefined,
311
313
  companyAddressId: (_j = payload.company_address_id) !== null && _j !== void 0 ? _j : undefined,
312
- primaryContactUserId: (_k = payload.primary_contact_user_id) !== null && _k !== void 0 ? _k : undefined,
314
+ registeredAddressId: (_k = payload.registered_address_id) !== null && _k !== void 0 ? _k : undefined,
315
+ primaryContactUserId: (_l = payload.primary_contact_user_id) !== null && _l !== void 0 ? _l : undefined,
313
316
  companyOfficerUserIds: payload.company_officer_user_ids,
314
- companyContactUserId: (_l = payload.company_contact_user_id) !== null && _l !== void 0 ? _l : undefined,
317
+ companyContactUserId: (_m = payload.company_contact_user_id) !== null && _m !== void 0 ? _m : undefined,
315
318
  controllerUserIds: payload.controller_user_ids,
316
319
  taxLeadUserIds: payload.tax_lead_user_ids,
317
320
  reviewerUserIds: payload.reviewer_user_ids,
@@ -2,7 +2,7 @@ import { ID } from '../../commonStateTypes/common';
2
2
  import { CompanyPayload, CompanySchemaPayload, OnboardingInfoPayload } from './companyPayload';
3
3
  import { CompanyState } from './companyState';
4
4
  import { OnboardingInviteStatusPayload } from '../../view/onboardingView/cockpitView/onboardingCockpitViewPayload';
5
- import { SpendManagementEntityType } from '../..';
5
+ import { AllowedValueWithCode, SpendManagementEntityType } from '../..';
6
6
  import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
7
7
  export declare const initialState: CompanyState;
8
8
  export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -39,6 +39,9 @@ export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWi
39
39
  primaryFundingAccountId: ID;
40
40
  accountType: AccountTypeSubConfigCodeKeyType;
41
41
  productType: SpendManagementEntityType;
42
+ }, string>, updateInternationalWireOnboardingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
43
+ companyId: ID;
44
+ status: AllowedValueWithCode;
42
45
  }, string>;
43
46
  declare const _default: import("@reduxjs/toolkit").Reducer<CompanyState, import("@reduxjs/toolkit").AnyAction>;
44
47
  export default _default;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.updateCompanyPrimaryAccount = exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
7
+ exports.updateInternationalWireOnboardingStatus = exports.updateCompanyPrimaryAccount = exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const isEqual_1 = __importDefault(require("lodash/isEqual"));
10
10
  const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
@@ -180,6 +180,10 @@ const company = (0, toolkit_1.createSlice)({
180
180
  accountType: accountType,
181
181
  };
182
182
  },
183
+ updateInternationalWireOnboardingStatus(draft, action) {
184
+ const { companyId, status } = action.payload;
185
+ draft.companiesById[companyId].companyBillPayInfo.internationalWireOnboardingStatus = status;
186
+ },
183
187
  clearAllCompanies: {
184
188
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
185
189
  prepare(keepCompanyState) {
@@ -193,5 +197,5 @@ const company = (0, toolkit_1.createSlice)({
193
197
  },
194
198
  },
195
199
  });
196
- _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess, exports.updateCompanyPrimaryAccount = _a.updateCompanyPrimaryAccount;
200
+ _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess, exports.updateCompanyPrimaryAccount = _a.updateCompanyPrimaryAccount, exports.updateInternationalWireOnboardingStatus = _a.updateInternationalWireOnboardingStatus;
197
201
  exports.default = company.reducer;
@@ -9,7 +9,8 @@ import { CustomerSatisfactionInfo } from '../customerSatisfaction/customerSatisf
9
9
  import { MileageDenomination } from '../../view/spendManagement/reimbursement/remiSetupView/remiSetupViewState';
10
10
  import { OnboardingStepErrorDetails } from './companyPayload';
11
11
  import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
12
- export declare const toOnboardingIdentityVerificationStatus: (v: string) => "Error" | "Not Initiated" | "Complete" | "Incomplete" | "Pending Review";
12
+ import { LabelValueCodesPayload } from '../../commonPayloadTypes/commonPayload';
13
+ export declare const toOnboardingIdentityVerificationStatus: (v: string) => "Error" | "Pending Review" | "Not Initiated" | "Complete" | "Incomplete";
13
14
  export declare type OnboardingIdentityVerficationStatus = NonNullable<ReturnType<typeof toOnboardingIdentityVerificationStatus>>;
14
15
  export declare const ALL_ACCOUNTING_CONNECTION_CREATION_MODES: readonly ["zeni_user", "customer"];
15
16
  declare const toAccountingConnectionCreationMode: (v: string) => "customer" | "zeni_user";
@@ -95,6 +96,7 @@ export interface CompanyManagementInfo {
95
96
  note?: string;
96
97
  receiverEmails: string[];
97
98
  companyAddressId?: ID;
99
+ registeredAddressId?: ID;
98
100
  primaryContactUserId?: ID;
99
101
  companyOfficerUserIds: ID[];
100
102
  companyContactUserId?: ID;
@@ -167,6 +169,8 @@ export interface CompanyBillPayInfo {
167
169
  accountId: ID;
168
170
  accountType: AccountTypeSubConfigCodeKeyType;
169
171
  };
172
+ internationalWireOnboardingStatus?: AllowedValueWithCode;
173
+ internationalWireOnboardingDetails: Record<string, LabelValueCodesPayload>;
170
174
  }
171
175
  export interface UserReimbursementInfo {
172
176
  isReimbursementTOSAccepted: boolean;
@@ -53,10 +53,10 @@ export declare const toSupportedAttachmentFileType: (v: string) => "application/
53
53
  export declare type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
54
54
  export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
55
55
  declare type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
56
- export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9";
57
- export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | undefined;
56
+ export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing";
57
+ export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" | undefined;
58
58
  export declare type AllowedDocumentType = ReturnType<typeof toAllowedDocumentType>;
59
- declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "others";
59
+ declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "international_wire_business_verification" | "others";
60
60
  export declare type AllowedPurposeIdType = ReturnType<typeof toAllowedPurposeIdType>;
61
61
  declare const toAllowedDocumentSideType: (v: string) => "front" | "back";
62
62
  export declare type AllowedDocumentSideType = ReturnType<typeof toAllowedDocumentSideType>;
@@ -66,6 +66,7 @@ const ALLOWED_DOCUMENT_TYPES = [
66
66
  'tax_ein',
67
67
  'w4',
68
68
  'w9',
69
+ 'certificate_of_good_standing',
69
70
  ];
70
71
  const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_TYPES);
71
72
  exports.toAllowedDocumentType = toAllowedDocumentType;
@@ -77,6 +78,7 @@ const ALLOWED_PURPOSE_IDS = [
77
78
  'personal_identity_others',
78
79
  'business_verification_others',
79
80
  'bill_pay',
81
+ 'international_wire_business_verification',
80
82
  'others',
81
83
  ];
82
84
  const toAllowedPurposeIdType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_PURPOSE_IDS);
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export declare type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
6
+ export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
7
7
  export interface Forecast {
8
8
  id: ID;
9
9
  type: ForecastType;
@@ -63,6 +63,7 @@ export interface ScheduledJournalEntryPayload {
63
63
  amount?: number | null;
64
64
  balance?: number | null;
65
65
  is_platform_generated?: boolean | null;
66
+ errors?: string[] | null;
66
67
  update_time: string | null;
67
68
  create_time: string | null;
68
69
  }
@@ -40,7 +40,9 @@ function toScheduledJournalEntryState(payload, currency_code, currency_symbol) {
40
40
  ? (0, amount_1.toAmount)(payload.amount, currency_code, currency_symbol)
41
41
  : (0, amount_1.toAmount)(0, currency_code, currency_symbol), runningBalance: payload.balance != null
42
42
  ? (0, amount_1.toAmount)(payload.balance, currency_code, currency_symbol)
43
- : (0, amount_1.toAmount)(0, currency_code, currency_symbol), scheduledJournalEntryID: (_d = payload.scheduled_journal_entry_id) !== null && _d !== void 0 ? _d : '', jeScheduleId: (_e = payload.je_schedule_id) !== null && _e !== void 0 ? _e : '', isPlatformGenerated: (_f = payload.is_platform_generated) !== null && _f !== void 0 ? _f : undefined, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined, updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined, syncToken: payload.update_time != null ? payload.update_time : undefined, currencyCode: currency_code, currencySymbol: currency_symbol });
43
+ : (0, amount_1.toAmount)(0, currency_code, currency_symbol), scheduledJournalEntryID: (_d = payload.scheduled_journal_entry_id) !== null && _d !== void 0 ? _d : '', jeScheduleId: (_e = payload.je_schedule_id) !== null && _e !== void 0 ? _e : '', isPlatformGenerated: (_f = payload.is_platform_generated) !== null && _f !== void 0 ? _f : undefined, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined, updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined, syncToken: payload.update_time != null ? payload.update_time : undefined, currencyCode: currency_code, currencySymbol: currency_symbol, error: payload.errors != null && payload.errors.length > 0
44
+ ? payload.errors.map((error) => (0, jeSchedulesTypes_1.toJournalEntryErrorCodeType)(error))
45
+ : [] });
44
46
  }
45
47
  exports.toScheduledJournalEntryState = toScheduledJournalEntryState;
46
48
  function toJEAccountPayload(payload, type) {
@@ -126,6 +128,9 @@ function toJEScheduledTransaction(payload) {
126
128
  var _a, _b, _c, _d, _e, _f;
127
129
  return {
128
130
  jeScheduleId: (_a = payload.je_schedule_id) !== null && _a !== void 0 ? _a : undefined,
131
+ jeScheduleType: payload.je_schedule_type != null
132
+ ? (0, jeSchedulesTypes_1.toScheduleTypesTypeStrict)(payload.je_schedule_type)
133
+ : undefined,
129
134
  status: {
130
135
  code: (0, jeSchedulesTypes_1.toScheduleStatusCodeType)(payload.status.code),
131
136
  label: payload.status.label,
@@ -215,6 +220,7 @@ function toJEAccruedScheduledTransaction(payload) {
215
220
  : undefined,
216
221
  scheduledJournalEntry: [],
217
222
  createTime: (0, zeniDayJS_1.date)(payload.create_time),
223
+ jeScheduleType: (0, jeSchedulesTypes_1.toScheduleTypesTypeStrict)(payload.je_schedule_type),
218
224
  };
219
225
  }
220
226
  exports.toJEAccruedScheduledTransaction = toJEAccruedScheduledTransaction;
@@ -18,8 +18,8 @@ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreator
18
18
  jeSchedulesPayload: JEAccruedScheduledTransactionPayload[];
19
19
  scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
20
20
  updateType: UpdateType;
21
- }, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
- jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
21
+ }, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
+ jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
23
23
  }, string, never, never>, deleteAccruedJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[JEScheduleKey: `${string}_${string}`], {
24
24
  JEScheduleKey: `${string}_${string}`;
25
25
  }, string, never, never>, clearAllAccruedJESchedules: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
@@ -8,7 +8,7 @@ import { JEScheduleOtherAttributes, ScheduleJournalStatusCode, ScheduleStatus }
8
8
  import { ScheduleTransaction } from '../transaction/stateTypes/scheduleTransaction';
9
9
  import { User } from '../user/userState';
10
10
  import { RootState } from '../../reducer';
11
- import { JEScheduleKey, JEScheduleTransactionKey } from './jeSchedulesTypes';
11
+ import { JEScheduleKey, JEScheduleTransactionKey, JournalEntryErrorCodeType, ScheduleTypes } from './jeSchedulesTypes';
12
12
  import { TransactionID } from '../transaction/stateTypes/transaction';
13
13
  import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
14
14
  export interface ScheduledJournalEntry {
@@ -32,6 +32,7 @@ export interface ScheduledJournalEntry {
32
32
  updateTime?: ZeniDate;
33
33
  currencyCode?: string;
34
34
  currencySymbol?: string;
35
+ error: JournalEntryErrorCodeType[];
35
36
  }
36
37
  export interface JEAccruedSchedule extends Omit<JEScheduledTransaction, 'baseTransaction' | 'jeScheduleId' | 'jeScheduleTransactionKey'> {
37
38
  jeAccruedScheduleKey: JEScheduleKey;
@@ -59,6 +60,7 @@ export interface JEScheduledTransaction {
59
60
  otherAttributes: JEScheduleOtherAttributes;
60
61
  dayOfPostingDate?: ScheduleDaysOfMonth;
61
62
  lastDayOfMonth?: boolean;
63
+ jeScheduleType?: ScheduleTypes;
62
64
  jeScheduleId?: ID;
63
65
  startDate?: ZeniDate;
64
66
  period?: number;
@@ -77,7 +77,7 @@ 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, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, otherAttributes, } = 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`);
@@ -107,6 +107,7 @@ const getJEScheduledTransactionByJEScheduleTransactionKey = (jeScheduleTransacti
107
107
  : undefined;
108
108
  return {
109
109
  jeScheduleId,
110
+ jeScheduleType,
110
111
  jeScheduleTransactionKey: jeScheduleTransactionKey,
111
112
  vendor: vendorDetails,
112
113
  updatedByUser: userDetails,
@@ -4,7 +4,7 @@ import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
4
4
  import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
5
5
  import { ZeniDate } from '../../zeniDayJS';
6
6
  import { TransactionID } from '../transaction/stateTypes/transaction';
7
- import { ScheduleStatusCodeType, JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, JEScheduleKey } from './jeSchedulesTypes';
7
+ import { ScheduleStatusCodeType, JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, JEScheduleKey, ScheduleTypes, JournalEntryErrorCodeType } from './jeSchedulesTypes';
8
8
  export interface ScheduleStatus {
9
9
  code: ScheduleStatusCodeType;
10
10
  label: string;
@@ -39,9 +39,11 @@ export interface ScheduledJournalEntryState {
39
39
  syncToken?: string;
40
40
  currencyCode?: string;
41
41
  currencySymbol?: string;
42
+ error: JournalEntryErrorCodeType[];
42
43
  }
43
44
  export interface JEScheduledTransactionState {
44
45
  jeScheduleId?: ID;
46
+ jeScheduleType?: ScheduleTypes;
45
47
  status: ScheduleStatus;
46
48
  vendorId: ID;
47
49
  baseTransaction: TransactionDetailKey;
@@ -10,3 +10,5 @@ export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "cance
10
10
  export declare type ScheduleJournalEntryStatusCodeType = ReturnType<typeof toScheduleJournalEntryStatusCodeType>;
11
11
  export declare const toScheduleStatusCodeType: (v: string) => "new" | "completed" | "draft" | "ongoing" | "marked_as_completed";
12
12
  export declare type ScheduleStatusCodeType = ReturnType<typeof toScheduleStatusCodeType>;
13
+ export declare const toJournalEntryErrorCodeType: (v: string) => "vendor_deleted" | "debit_category_deleted" | "credit_category_deleted" | "qbo_error" | "qbo_authorization_error" | "qbo_invalid_company_status_error" | "qbo_book_close_date_error";
14
+ export declare type JournalEntryErrorCodeType = ReturnType<typeof toJournalEntryErrorCodeType>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toScheduleStatusCodeType = exports.toScheduleJournalEntryStatusCodeType = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.ALL_SCHEDULES_TYPES = void 0;
3
+ exports.toJournalEntryErrorCodeType = exports.toScheduleStatusCodeType = exports.toScheduleJournalEntryStatusCodeType = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.ALL_SCHEDULES_TYPES = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_SCHEDULES_TYPES = [
6
6
  'prepaid_expenses',
@@ -30,3 +30,14 @@ const SCHEDULE_STATUS_CODE = [
30
30
  ];
31
31
  const toScheduleStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, SCHEDULE_STATUS_CODE);
32
32
  exports.toScheduleStatusCodeType = toScheduleStatusCodeType;
33
+ const JOURNAL_ENTRY_ERROR_CODE = [
34
+ 'vendor_deleted',
35
+ 'debit_category_deleted',
36
+ 'credit_category_deleted',
37
+ 'qbo_error',
38
+ 'qbo_authorization_error',
39
+ 'qbo_invalid_company_status_error',
40
+ 'qbo_book_close_date_error',
41
+ ];
42
+ const toJournalEntryErrorCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, JOURNAL_ENTRY_ERROR_CODE);
43
+ exports.toJournalEntryErrorCodeType = toJournalEntryErrorCodeType;
@@ -0,0 +1,32 @@
1
+ import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
2
+ import { MonthEndCloseChecksInfo } from './monthEndCloseChecksState';
3
+ interface MonthCloseChecksPayload {
4
+ month_close_check_type: string;
5
+ month_close_check_title: string;
6
+ month_close_check_description: string;
7
+ progress_percentage: number;
8
+ action_frequency: string;
9
+ sequence: number;
10
+ }
11
+ interface MonthEndInsightsPayload {
12
+ zeni_ai_saved_amount: number;
13
+ zeni_ai_saved_hours: number;
14
+ count_account_auto_reconciled: number;
15
+ count_transactions_auto_categorised: number;
16
+ zeni_ai_efficiency_percentage: number;
17
+ count_review_efficiency_increase: number;
18
+ count_unique_vendors_in_flux_analysis: number;
19
+ }
20
+ interface MonthEndAuditSummaryPayload {
21
+ audit_score_percentage: number;
22
+ audit_report_last_generated_date: string;
23
+ }
24
+ export interface MonthEndCloseChecksPayload {
25
+ insights: MonthEndInsightsPayload;
26
+ audit_summary: MonthEndAuditSummaryPayload;
27
+ month_close_checks: MonthCloseChecksPayload[];
28
+ zeni_book_close_date: string;
29
+ history_month_and_year_flag: string[];
30
+ }
31
+ export declare const toMonthEndCloseChecksInfo: (payload: MonthEndCloseChecksPayload, period: MonthYearPeriod) => MonthEndCloseChecksInfo;
32
+ export {};
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMonthEndCloseChecksInfo = void 0;
4
+ const formatZeniDateFY_1 = require("../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
5
+ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
6
+ const expenseAutomationViewState_1 = require("../../view/expenseAutomationView/expenseAutomationViewState");
7
+ const zeniDayJS_1 = require("../../zeniDayJS");
8
+ const monthEndCloseChecksState_1 = require("./monthEndCloseChecksState");
9
+ const toMonthEndCloseCheck = (monthCloseCheck) => {
10
+ return {
11
+ id: (0, expenseAutomationViewState_1.toExpenseAutomationViewType)(monthCloseCheck.month_close_check_type),
12
+ description: monthCloseCheck.month_close_check_description,
13
+ title: monthCloseCheck.month_close_check_title,
14
+ frequency: (0, monthEndCloseChecksState_1.toMonthEndCloseCheckFrequency)(monthCloseCheck.action_frequency),
15
+ progress: monthCloseCheck.progress_percentage,
16
+ sequence: monthCloseCheck.sequence,
17
+ };
18
+ };
19
+ const toMonthEndInsights = (monthEndStatisticsPayload) => {
20
+ return {
21
+ transactionsAutoCategorized: monthEndStatisticsPayload.count_transactions_auto_categorised,
22
+ vendorsWithFluctuations: monthEndStatisticsPayload.count_unique_vendors_in_flux_analysis,
23
+ efficiency: monthEndStatisticsPayload.count_review_efficiency_increase,
24
+ efficiencyPercentage: monthEndStatisticsPayload.zeni_ai_efficiency_percentage,
25
+ savedAmount: monthEndStatisticsPayload.zeni_ai_saved_amount,
26
+ savedHours: monthEndStatisticsPayload.zeni_ai_saved_hours,
27
+ };
28
+ };
29
+ const toMonthYearPeriods = (historicMonthYearPayload) => {
30
+ return historicMonthYearPayload.map((monthYearString) => {
31
+ const parsedDate = (0, zeniDayJS_1.date)(monthYearString, formatZeniDateFY_1.MM_YYYY_FORMAT);
32
+ return {
33
+ month: parsedDate.month() + 1,
34
+ year: parsedDate.year(),
35
+ };
36
+ });
37
+ };
38
+ const toMonthEndCloseChecksInfo = (payload, period) => ({
39
+ id: (0, timePeriod_1.toMonthYearPeriodId)(period),
40
+ insights: toMonthEndInsights(payload.insights),
41
+ monthEndCloseCheckList: payload.month_close_checks.map((monthCloseCheck) => toMonthEndCloseCheck(monthCloseCheck)),
42
+ auditSummary: {
43
+ auditScorePercentage: payload.audit_summary.audit_score_percentage,
44
+ auditReportLastGeneratedDate: payload.audit_summary.audit_report_last_generated_date != null
45
+ ? (0, zeniDayJS_1.date)(payload.audit_summary.audit_report_last_generated_date)
46
+ : null,
47
+ },
48
+ zeniBookCloseDate: (0, zeniDayJS_1.date)(payload.zeni_book_close_date),
49
+ historicMonthYear: payload.history_month_and_year_flag != null
50
+ ? toMonthYearPeriods(payload.history_month_and_year_flag)
51
+ : [],
52
+ });
53
+ exports.toMonthEndCloseChecksInfo = toMonthEndCloseChecksInfo;
@@ -0,0 +1,12 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { MonthEndCloseChecksState } from './monthEndCloseChecksState';
3
+ import { MonthEndCloseChecksPayload } from './monthEndCloseChecksPayload';
4
+ import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
5
+ export declare const initialState: MonthEndCloseChecksState;
6
+ export declare const updateMonthEndCloseChecks: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
7
+ monthEndCloseChecksPayload: MonthEndCloseChecksPayload;
8
+ tenantId: ID;
9
+ period: MonthYearPeriod;
10
+ }, string>, clearAllMonthEndCloseChecks: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
11
+ declare const _default: import("@reduxjs/toolkit").Reducer<MonthEndCloseChecksState, import("@reduxjs/toolkit").AnyAction>;
12
+ export default _default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllMonthEndCloseChecks = exports.updateMonthEndCloseChecks = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const monthEndCloseChecksPayload_1 = require("./monthEndCloseChecksPayload");
7
+ exports.initialState = {
8
+ monthEndCloseChecksByTenantId: {},
9
+ };
10
+ const monthEndCloseChecks = (0, toolkit_1.createSlice)({
11
+ name: 'monthEndCloseChecks',
12
+ initialState: exports.initialState,
13
+ reducers: {
14
+ updateMonthEndCloseChecks(draft, action) {
15
+ const { monthEndCloseChecksPayload, tenantId, period } = action.payload;
16
+ const monthEndCloseChecks = (0, monthEndCloseChecksPayload_1.toMonthEndCloseChecksInfo)(monthEndCloseChecksPayload, period);
17
+ draft.monthEndCloseChecksByTenantId[tenantId] = Object.assign(Object.assign({}, draft.monthEndCloseChecksByTenantId[tenantId]), { [monthEndCloseChecks.id]: monthEndCloseChecks });
18
+ },
19
+ clearAllMonthEndCloseChecks(draft) {
20
+ draft.monthEndCloseChecksByTenantId = {};
21
+ },
22
+ },
23
+ });
24
+ _a = monthEndCloseChecks.actions, exports.updateMonthEndCloseChecks = _a.updateMonthEndCloseChecks, exports.clearAllMonthEndCloseChecks = _a.clearAllMonthEndCloseChecks;
25
+ exports.default = monthEndCloseChecks.reducer;
@@ -0,0 +1,7 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { MonthEndCloseChecksInfo, MonthEndCloseChecksState } from './monthEndCloseChecksState';
3
+ import { MonthYearPeriod, MonthYearPeriodId } from '../../commonStateTypes/timePeriod';
4
+ export declare function getAllMonthEndCloseChecksForATenant(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID): MonthEndCloseChecksInfo[];
5
+ export declare function getMonthEndCloseChecksForATenantForSelectedPeriod(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID, monthYearPeriod: MonthYearPeriod): MonthEndCloseChecksInfo | undefined;
6
+ export declare function getMonthEndCloseChecksByTenantIds(monthEndCloseChecksState: MonthEndCloseChecksState, tenantIds: ID[], monthEndCloseChecksId: MonthYearPeriodId): MonthEndCloseChecksInfo[];
7
+ export declare function getMonthEndCloseChecksByTenantId(monthEndCloseChecksState: MonthEndCloseChecksState, tenantId: ID, monthEndCloseChecksId: MonthYearPeriodId): MonthEndCloseChecksInfo | undefined;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getMonthEndCloseChecksByTenantId = exports.getMonthEndCloseChecksByTenantIds = exports.getMonthEndCloseChecksForATenantForSelectedPeriod = exports.getAllMonthEndCloseChecksForATenant = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
9
+ function getAllMonthEndCloseChecksForATenant(monthEndCloseChecksState, tenantId) {
10
+ const allMonthEndCloseChecksForATenant = (0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined);
11
+ if (allMonthEndCloseChecksForATenant != null) {
12
+ return Object.values(allMonthEndCloseChecksForATenant);
13
+ }
14
+ return [];
15
+ }
16
+ exports.getAllMonthEndCloseChecksForATenant = getAllMonthEndCloseChecksForATenant;
17
+ function getMonthEndCloseChecksForATenantForSelectedPeriod(monthEndCloseChecksState, tenantId, monthYearPeriod) {
18
+ const monthYearPeriodId = (0, timePeriod_1.toMonthYearPeriodId)(monthYearPeriod);
19
+ const allMonthEndCloseChecksForATenant = (0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined);
20
+ if (allMonthEndCloseChecksForATenant != null) {
21
+ return allMonthEndCloseChecksForATenant[monthYearPeriodId];
22
+ }
23
+ return undefined;
24
+ }
25
+ exports.getMonthEndCloseChecksForATenantForSelectedPeriod = getMonthEndCloseChecksForATenantForSelectedPeriod;
26
+ function getMonthEndCloseChecksByTenantIds(monthEndCloseChecksState, tenantIds, monthEndCloseChecksId) {
27
+ const monthEndCloseChecks = tenantIds
28
+ .map((tenantId) => getMonthEndCloseChecksByTenantId(monthEndCloseChecksState, tenantId, monthEndCloseChecksId))
29
+ .filter((value) => value != null);
30
+ return monthEndCloseChecks;
31
+ }
32
+ exports.getMonthEndCloseChecksByTenantIds = getMonthEndCloseChecksByTenantIds;
33
+ function getMonthEndCloseChecksByTenantId(monthEndCloseChecksState, tenantId, monthEndCloseChecksId) {
34
+ return (0, get_1.default)((0, get_1.default)(monthEndCloseChecksState.monthEndCloseChecksByTenantId, tenantId, undefined), monthEndCloseChecksId, undefined);
35
+ }
36
+ exports.getMonthEndCloseChecksByTenantId = getMonthEndCloseChecksByTenantId;