@zeniai/client-epic-state 4.13.11 → 4.13.12

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 (346) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +0 -7
  2. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  3. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +1 -0
  4. package/lib/commonStateTypes/common.d.ts +0 -2
  5. package/lib/commonStateTypes/common.js +1 -5
  6. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -1
  7. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +1 -2
  8. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  9. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +1 -0
  10. package/lib/commonStateTypes/timePeriod.d.ts +0 -16
  11. package/lib/commonStateTypes/timePeriod.js +1 -31
  12. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +0 -1
  13. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +1 -3
  14. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  15. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -2
  16. package/lib/entity/account/accountPayload.d.ts +1 -1
  17. package/lib/entity/account/accountState.d.ts +1 -1
  18. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  19. package/lib/entity/chargeCard/chargeCard.d.ts +2 -16
  20. package/lib/entity/chargeCard/chargeCard.js +1 -18
  21. package/lib/entity/chargeCard/chargeCardPayload.d.ts +5 -14
  22. package/lib/entity/chargeCard/chargeCardPayload.js +7 -24
  23. package/lib/entity/class/classReducer.d.ts +4 -4
  24. package/lib/entity/class/classState.d.ts +1 -1
  25. package/lib/entity/company/companyPayload.d.ts +0 -4
  26. package/lib/entity/company/companyPayload.js +3 -6
  27. package/lib/entity/company/companyReducer.d.ts +1 -4
  28. package/lib/entity/company/companyReducer.js +2 -6
  29. package/lib/entity/company/companyStateTypes.d.ts +1 -5
  30. package/lib/entity/file/fileState.d.ts +3 -3
  31. package/lib/entity/file/fileState.js +0 -2
  32. package/lib/entity/forecast/forecastState.d.ts +1 -1
  33. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
  34. package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -7
  35. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  36. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -3
  37. package/lib/entity/jeSchedules/jeSchedulesSelector.js +1 -2
  38. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -3
  39. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +0 -2
  40. package/lib/entity/jeSchedules/jeSchedulesTypes.js +1 -12
  41. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  42. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  43. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  44. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  45. package/lib/entity/snackbar/snackbarTypes.js +0 -3
  46. package/lib/entity/tenant/clearAllEpic.d.ts +2 -14
  47. package/lib/entity/tenant/clearAllEpic.js +0 -24
  48. package/lib/entity/tenant/epic/fetchActiveTenantEpic.d.ts +1 -2
  49. package/lib/entity/tenant/epic/fetchActiveTenantEpic.js +1 -9
  50. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +1 -7
  51. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +2 -34
  52. package/lib/entity/tenant/tenantPayload.d.ts +0 -1
  53. package/lib/entity/tenant/tenantReducer.js +0 -3
  54. package/lib/entity/tenant/tenantState.d.ts +0 -1
  55. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  56. package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
  57. package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
  58. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  59. package/lib/entity/transaction/transactionSelector.d.ts +0 -1
  60. package/lib/entity/transaction/transactionSelector.js +1 -7
  61. package/lib/entity/user/userPayload.d.ts +0 -1
  62. package/lib/entity/user/userReducer.js +8 -9
  63. package/lib/entity/user/userState.d.ts +0 -1
  64. package/lib/entity/vendor/__mocks__/vendorMock.js +2 -0
  65. package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +0 -2
  66. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +4 -107
  67. package/lib/entity/vendor/vendorPayload.d.ts +1 -6
  68. package/lib/entity/vendor/vendorPayload.js +5 -6
  69. package/lib/entity/vendor/vendorState.d.ts +3 -10
  70. package/lib/entity/vendor/vendorType.d.ts +2 -2
  71. package/lib/entity/vendor/vendorType.js +4 -4
  72. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  73. package/lib/entity/vendorExpense/vendorExpenseSelector.js +0 -1
  74. package/lib/epic.d.ts +2 -19
  75. package/lib/epic.js +2 -19
  76. package/lib/index.d.ts +21 -65
  77. package/lib/index.js +28 -102
  78. package/lib/reducer.d.ts +1 -34
  79. package/lib/reducer.js +1 -34
  80. package/lib/view/accountMappingView/accountMappingPayload.js +32 -75
  81. package/lib/view/accountMappingView/accountMappingReducer.js +10 -36
  82. package/lib/view/accountMappingView/accountMappingState.d.ts +1 -1
  83. package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +0 -5
  84. package/lib/view/accountMappingView/accountMappingViewSelector.js +1 -11
  85. package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +1 -2
  86. package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +0 -2
  87. package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +1 -6
  88. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
  89. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
  90. package/lib/view/addressView/addressViewState.d.ts +1 -1
  91. package/lib/view/addressView/toAddressViewLocalData.d.ts +0 -2
  92. package/lib/view/addressView/toAddressViewLocalData.js +3 -9
  93. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  94. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  95. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  96. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  97. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  98. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  99. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  100. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  101. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  102. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  103. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  104. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  105. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +5 -10
  106. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +7 -10
  107. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
  108. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
  109. package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +3 -5
  110. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
  111. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
  112. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
  113. package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
  114. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  115. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
  116. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
  117. package/lib/view/companyView/types/companyView.d.ts +0 -1
  118. package/lib/view/dashboard/dashboardEpic.d.ts +1 -2
  119. package/lib/view/dashboard/dashboardEpic.js +2 -22
  120. package/lib/view/dashboard/dashboardReducer.d.ts +2 -3
  121. package/lib/view/dashboard/dashboardReducer.js +1 -2
  122. package/lib/view/dashboard/dashboardSelector.d.ts +0 -2
  123. package/lib/view/dashboard/dashboardSelector.js +2 -10
  124. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  125. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  126. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
  127. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
  128. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
  129. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
  130. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
  131. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  132. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  133. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  134. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  135. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  136. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  137. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  138. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  139. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -3
  140. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
  141. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
  142. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +5 -19
  143. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +3 -8
  144. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +57 -39
  145. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +8 -13
  146. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +12 -19
  147. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +0 -1
  148. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +3 -4
  149. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +0 -2
  150. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  151. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  152. package/lib/view/settingsView/epic/updateMyProfileEpic.js +4 -6
  153. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
  154. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  155. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
  156. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
  157. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
  158. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +1 -3
  159. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +2 -6
  160. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +3 -2
  161. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
  162. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +3 -1
  163. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +2 -1
  164. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +21 -1
  165. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +3 -1
  166. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -1
  167. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +0 -4
  168. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +1 -8
  169. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -25
  170. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +0 -1
  171. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +4 -8
  172. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +1 -2
  173. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +14 -1
  174. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +13 -2
  175. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +6 -3
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +17 -2
  177. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +2 -8
  178. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +15 -55
  179. package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.d.ts +2 -3
  180. package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.js +18 -35
  181. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  182. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
  183. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  184. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
  185. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
  186. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
  187. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  188. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
  189. package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
  190. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  191. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  192. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  193. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  194. package/lib/view/topEx/topExSelector.d.ts +1 -1
  195. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
  196. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  197. package/lib/view/userListView/fetchUserListByTypeEpic.js +1 -4
  198. package/lib/view/vendorFiling1099/__mock__/json/vendorFiling1099ListSuccess.json +1 -4
  199. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +3 -12
  200. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +4 -2
  201. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +1 -4
  202. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +2 -2
  203. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +7 -7
  204. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +10 -21
  205. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  206. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.js +0 -1
  207. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
  208. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +3 -34
  209. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +1 -1
  210. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +2 -2
  211. package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +5 -2
  212. package/package.json +1 -1
  213. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -32
  214. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -60
  215. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +0 -12
  216. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +0 -25
  217. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +0 -7
  218. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +0 -36
  219. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +0 -38
  220. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +0 -10
  221. package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.d.ts +0 -11
  222. package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.js +0 -4607
  223. package/lib/view/countryList/countryListReducer.d.ts +0 -17
  224. package/lib/view/countryList/countryListReducer.js +0 -58
  225. package/lib/view/countryList/countryListSelector.d.ts +0 -7
  226. package/lib/view/countryList/countryListSelector.js +0 -13
  227. package/lib/view/countryList/countryListState.d.ts +0 -12
  228. package/lib/view/countryList/countryListState.js +0 -2
  229. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
  230. package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
  231. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
  232. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
  233. package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
  234. package/lib/view/countryList/payloads/countryListPayload.js +0 -10
  235. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
  236. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
  237. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +0 -10
  238. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +0 -72
  239. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +0 -11
  240. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -53
  241. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +0 -11
  242. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +0 -66
  243. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +0 -7
  244. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +0 -39
  245. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +0 -7
  246. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -22
  247. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +0 -8
  248. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +0 -59
  249. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +0 -8
  250. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +0 -78
  251. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +0 -6
  252. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +0 -28
  253. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +0 -9
  254. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +0 -78
  255. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +0 -8
  256. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +0 -58
  257. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +0 -10
  258. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +0 -12
  259. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +0 -3
  260. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +0 -2
  261. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +0 -17
  262. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +0 -66
  263. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +0 -3
  264. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -97
  265. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -11
  266. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +0 -14
  267. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -7
  268. package/lib/view/expenseAutomationView/helpers/helpers.js +0 -67
  269. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +0 -76
  270. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +0 -9
  271. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -36
  272. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +0 -58
  273. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -16
  274. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -2
  275. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +0 -34
  276. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +0 -205
  277. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +0 -53
  278. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +0 -245
  279. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +0 -31
  280. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +0 -130
  281. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +0 -5
  282. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +0 -45
  283. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -34
  284. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +0 -44
  285. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +0 -32
  286. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +0 -2
  287. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -28
  288. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +0 -2
  289. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +0 -11
  290. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +0 -2
  291. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +0 -3
  292. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +0 -55
  293. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +0 -7
  294. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +0 -95
  295. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +0 -3
  296. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -61
  297. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +0 -53
  298. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +0 -5
  299. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -31
  300. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -2
  301. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -20
  302. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -13
  303. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -28
  304. package/lib/view/expenseAutomationView/types/transactionsViewState.js +0 -15
  305. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +0 -8
  306. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +0 -58
  307. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +0 -3
  308. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +0 -2
  309. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +0 -16
  310. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +0 -36
  311. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +0 -10
  312. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +0 -27
  313. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +0 -5
  314. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +0 -2
  315. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
  316. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
  317. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
  318. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -42
  319. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
  320. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
  321. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
  322. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
  323. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
  324. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
  325. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
  326. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
  327. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
  328. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
  329. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +0 -11
  330. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +0 -42
  331. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +0 -9
  332. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +0 -44
  333. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +0 -15
  334. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +0 -65
  335. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -22
  336. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -76
  337. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -28
  338. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -23
  339. package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.d.ts +0 -7
  340. package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.js +0 -23
  341. package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.d.ts +0 -15
  342. package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.js +0 -2
  343. package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.d.ts +0 -7
  344. package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +0 -52
  345. package/lib/view/vendor1099TypeList/vendor1099TypeListState.d.ts +0 -9
  346. package/lib/view/vendor1099TypeList/vendor1099TypeListState.js +0 -2
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
9
9
  type: string;
10
10
  } | {
11
11
  payload: {
12
- messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "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_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" | "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" | "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_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "issue_charge_card" | "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";
12
+ messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "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_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" | "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" | "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_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "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";
13
13
  messageText: "failed" | "success" | "notification";
14
14
  type: import("../../..").SnackbarMessageType;
15
15
  showStatusIcon?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import { RootState } from '../../reducer';
2
2
  export declare const getTasksCardReport: (state: RootState) => {
3
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "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";
3
+ reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
4
4
  reportTitle: string;
5
5
  version: string | number | undefined;
6
6
  status: import("../..").Status | undefined;
@@ -5,7 +5,7 @@ import { AccountState } from '../../entity/account/accountState';
5
5
  import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
6
6
  import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
7
7
  export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number | undefined) => {
8
- 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";
8
+ 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";
9
9
  reportTitle: string;
10
10
  version: string | number | undefined;
11
11
  status: import("../..").Status | undefined;
@@ -8,8 +8,8 @@ const transactionReducer_1 = require("../../../entity/transaction/transactionRed
8
8
  const transactionDetailState_1 = require("../transactionDetailState");
9
9
  const transactionIDPayload_1 = require("../../../entity/transaction/payloadTypes/transactionIDPayload");
10
10
  const uploadMissingReceiptSuccessEpic = (actions$) => actions$.pipe((0, operators_1.filter)(transactionDetailReducer_1.uploadMissingReceiptSuccess.match), (0, operators_1.switchMap)((action) => {
11
- const transactionId = (0, transactionIDPayload_1.toTransactionID)(action.payload.payload);
12
- const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(transactionId);
11
+ const transcationId = (0, transactionIDPayload_1.toTransactionID)(action.payload.payload);
12
+ const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(transcationId);
13
13
  return (0, rxjs_1.of)((0, transactionReducer_1.updateTransaction)(transactionDetailKeyForResponse, action.payload.payload));
14
14
  }));
15
15
  exports.uploadMissingReceiptSuccessEpic = uploadMissingReceiptSuccessEpic;
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
8
8
  import { VendorBase } from '../../entity/vendor/vendorState';
9
9
  import { EntityRecommendationKey } from '../recommendation/recommendationState';
10
10
  import { TransactionDetailLocalData } from './transactionDetailTypes';
11
- export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${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`;
11
+ export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${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`;
12
12
  export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
13
- export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${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`;
13
+ export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${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`;
14
14
  export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
15
15
  export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
16
16
  /**
@@ -46,10 +46,7 @@ const getQueryParam = (userType, isZeniTenant) => {
46
46
  case 'manager':
47
47
  return { is_manager_candidate: true };
48
48
  case 'cardHolderCandidate':
49
- return {
50
- is_card_holder_candidate: true,
51
- is_include_active_cards_count: true,
52
- };
49
+ return { is_card_holder_candidate: true };
53
50
  case 'taskManagerCandidate':
54
51
  return { is_task_manager_candidate: true };
55
52
  case 'cardAdmin':
@@ -77,10 +77,7 @@
77
77
  "value": "550258131"
78
78
  },
79
79
  "vendor_1099_status": "incomplete",
80
- "is_type_int": true,
81
- "is_type_misc": false,
82
- "is_type_nec": false,
83
- "vendor_1099_ytd_total_nec": -2287.0,
80
+ "vendor_1099_ytd_total": -2287.0,
84
81
  "w9_documents": []
85
82
  }
86
83
  ],
@@ -4,13 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.rootStateWithVendorFiling1099List = exports.vendorFiling1099ListFailureState = exports.vendorFiling1099ListSuccessState = exports.vendorFiling1099ListInProgressInitialState = exports.vendorFiling1099ListInProgressState = exports.vendorFiling1099ListFailureResponse = exports.vendorFiling1099ListSuccessResponse = exports.vendorFiling1099ListSelectorMock = void 0;
7
- const zeniDayJS_1 = require("../../../zeniDayJS");
8
7
  const vendorFiling1099ListSuccess_json_1 = __importDefault(require("./json/vendorFiling1099ListSuccess.json"));
9
8
  const apiFailure_json_1 = __importDefault(require("../../../__testHelpers__/apiFailure.json"));
10
9
  const vendorFiling1099ListReducer_1 = require("../vendorFiling1099List/vendorFiling1099ListReducer");
11
10
  const vendorStateMocks_1 = require("../../../entity/vendor/__mocks__/vendorStateMocks");
12
11
  const reducer_1 = require("../../../reducer");
13
- const accountMappingSelectorMock_1 = require("../../accountMappingView/__mocks__/accountMappingSelectorMock");
12
+ const zeniDayJS_1 = require("../../../zeniDayJS");
14
13
  var vendorFiling1099ListSelectorMock_1 = require("./vendorFiling1099ListSelectorMock");
15
14
  Object.defineProperty(exports, "vendorFiling1099ListSelectorMock", { enumerable: true, get: function () { return vendorFiling1099ListSelectorMock_1.vendorFiling1099ListSelectorMock; } });
16
15
  exports.vendorFiling1099ListSuccessResponse = vendorFiling1099ListSuccess_json_1.default;
@@ -149,7 +148,7 @@ exports.vendorFiling1099ListFailureState = {
149
148
  exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialRootState, {
150
149
  vendorState: {
151
150
  vendorByID: {
152
- 'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock8,
151
+ 'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
153
152
  },
154
153
  },
155
154
  vendorFiling1099ListState: {
@@ -184,7 +183,7 @@ exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialR
184
183
  },
185
184
  },
186
185
  },
187
- vendor1099TypeListState: {
186
+ vendorTypeListState: {
188
187
  fetchState: 'Completed',
189
188
  error: undefined,
190
189
  vendorTypes: [
@@ -197,13 +196,5 @@ exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialR
197
196
  name: 'Individual / Sole-Proprietor or Single-Member LLC',
198
197
  },
199
198
  ],
200
- expenseTypes: [],
201
- expense1099Types: [],
202
- boxTypes: {
203
- int: [],
204
- misc: [],
205
- nec: [],
206
- },
207
199
  },
208
- accountMappingState: accountMappingSelectorMock_1.accountMappingState,
209
200
  });
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.vendorFiling1099ListSelectorMock = void 0;
4
4
  const vendorStateMocks_1 = require("../../../entity/vendor/__mocks__/vendorStateMocks");
5
5
  exports.vendorFiling1099ListSelectorMock = {
6
- fetchState: 'Completed',
6
+ fetchState: 'Not-Started',
7
7
  error: undefined,
8
8
  version: 0,
9
- vendors: [Object.assign({}, vendorStateMocks_1.vendorStateMock8)],
9
+ vendors: [
10
+ Object.assign({}, vendorStateMocks_1.vendorStateMock1),
11
+ ],
10
12
  lastRefreshSuccessTime: undefined,
11
13
  uiState: {
12
14
  sortKey: 'total',
@@ -78,10 +78,7 @@ export declare const vendorFiling1099UploadDetailsSuccessResponse: {
78
78
  value: string;
79
79
  };
80
80
  vendor_1099_status: string;
81
- is_type_int: boolean;
82
- is_type_misc: boolean;
83
- is_type_nec: boolean;
84
- vendor_1099_ytd_total_nec: number;
81
+ vendor_1099_ytd_total: number;
85
82
  w9_documents: never[];
86
83
  }[];
87
84
  version: string;
@@ -2,7 +2,7 @@ import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RootState } from '../../../reducer';
4
4
  import { fetchVendorsFiling1099List } from './vendorFiling1099ListReducer';
5
- import { fetchVendor1099TypeList } from '../../vendor1099TypeList/vendor1099TypeListReducer';
5
+ import { fetchVendorTypeList } from '../../vendorTypeList/vendorTypeListReducer';
6
6
  import { initializeAccountMappingView } from '../../accountMappingView/accountMappingReducer';
7
- export declare type ActionType = ReturnType<typeof fetchVendorsFiling1099List> | ReturnType<typeof fetchVendor1099TypeList> | ReturnType<typeof initializeAccountMappingView>;
7
+ export declare type ActionType = ReturnType<typeof fetchVendorsFiling1099List> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof initializeAccountMappingView>;
8
8
  export declare const fetchVendorsFiling1099AllEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -4,23 +4,23 @@ exports.fetchVendorsFiling1099AllEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const vendorFiling1099ListReducer_1 = require("./vendorFiling1099ListReducer");
7
- const vendor1099TypeListReducer_1 = require("../../vendor1099TypeList/vendor1099TypeListReducer");
7
+ const vendorTypeListReducer_1 = require("../../vendorTypeList/vendorTypeListReducer");
8
8
  const accountMappingReducer_1 = require("../../accountMappingView/accountMappingReducer");
9
9
  const fetchVendorsFiling1099AllEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorsFiling1099All.match), (0, operators_1.switchMap)((action) => {
10
10
  const state = state$.value;
11
11
  const vendorActions = [];
12
12
  if (action.payload.cacheOverride === true) {
13
- if (state.vendor1099TypeListState.hasValidState() === false &&
14
- state.vendor1099TypeListState.fetchState !== 'In-Progress') {
15
- vendorActions.push((0, vendor1099TypeListReducer_1.fetchVendor1099TypeList)());
13
+ if (state.vendorTypeListState.hasValidState() === false &&
14
+ state.vendorTypeListState.fetchState !== 'In-Progress') {
15
+ vendorActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
16
16
  }
17
17
  vendorActions.push((0, accountMappingReducer_1.initializeAccountMappingView)());
18
18
  vendorActions.push((0, vendorFiling1099ListReducer_1.fetchVendorsFiling1099List)());
19
19
  }
20
20
  else {
21
- if (state.vendor1099TypeListState.hasValidState() === false &&
22
- state.vendor1099TypeListState.fetchState !== 'In-Progress') {
23
- vendorActions.push((0, vendor1099TypeListReducer_1.fetchVendor1099TypeList)());
21
+ if (state.vendorTypeListState.hasValidState() === false &&
22
+ state.vendorTypeListState.fetchState !== 'In-Progress') {
23
+ vendorActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
24
24
  }
25
25
  vendorActions.push((0, accountMappingReducer_1.initializeAccountMappingView)());
26
26
  vendorActions.push((0, vendorFiling1099ListReducer_1.fetchVendorsFiling1099List)());
@@ -9,7 +9,7 @@ const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
9
  const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
10
10
  const getVendorFiling1099List = (state) => {
11
11
  var _a;
12
- const { vendorFiling1099ListState, vendorState, vendor1099TypeListState, accountMappingState, } = state;
12
+ const { vendorFiling1099ListState, vendorState, vendorTypeListState, accountMappingState, } = state;
13
13
  const targetIds = vendorFiling1099ListState.vendorIds;
14
14
  const allFetchStates = [
15
15
  accountMappingState.accountListFetchState,
@@ -19,33 +19,24 @@ const getVendorFiling1099List = (state) => {
19
19
  error: vendorFiling1099ListState.error,
20
20
  },
21
21
  {
22
- fetchState: vendor1099TypeListState.fetchState,
23
- error: vendor1099TypeListState.error,
22
+ fetchState: vendorTypeListState.fetchState,
23
+ error: vendorTypeListState.error,
24
24
  },
25
25
  ];
26
26
  const fetchStatus = (0, reduceFetchState_1.reduceAllFetchState)(allFetchStates);
27
+ const vendorTypeList = vendorTypeListState.vendorTypes;
27
28
  const loweredSearchText = vendorFiling1099ListState.uiState.searchString
28
29
  .trim()
29
30
  .toLowerCase();
30
- const vendors = (0, vendorSelector_1.getVendorsByVendorIds)(vendorState, targetIds);
31
- let vendorFiling1099ViewList = vendors.flatMap((vendor) => {
32
- const vendorRows = [];
33
- if (vendor.isINTType === true) {
34
- vendorRows.push(Object.assign(Object.assign({}, vendor), { filing1099Type: 'int', filing1099Total: vendor.filing1099INTTotal }));
35
- }
36
- if (vendor.isMISCType === true) {
37
- vendorRows.push(Object.assign(Object.assign({}, vendor), { filing1099Type: 'misc', filing1099Total: vendor.filing1099MISCTotal }));
38
- }
39
- if (vendor.isNECType === true) {
40
- vendorRows.push(Object.assign(Object.assign({}, vendor), { filing1099Type: 'nec', filing1099Total: vendor.filing1099NECTotal }));
41
- }
42
- return vendorRows;
31
+ let vendors = (0, vendorSelector_1.getVendorsByVendorIds)(vendorState, targetIds);
32
+ vendors = vendors.filter((vendor) => { var _a; return (_a = vendor.legalName) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(loweredSearchText); });
33
+ vendors = (0, exports.sortedVendorFiling1099View)(vendors, vendorFiling1099ListState.uiState.sortKey, vendorFiling1099ListState.uiState.sortOrder);
34
+ const vendorFiling1099ViewList = vendors.map((vendor) => {
35
+ return Object.assign({}, vendor);
43
36
  });
44
- vendorFiling1099ViewList = vendorFiling1099ViewList.filter((vendor) => { var _a; return (_a = vendor.legalName) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(loweredSearchText); });
45
- vendorFiling1099ViewList = (0, exports.sortedVendorFiling1099View)(vendorFiling1099ViewList, vendorFiling1099ListState.uiState.sortKey, vendorFiling1099ListState.uiState.sortOrder);
46
37
  return {
47
38
  vendors: vendorFiling1099ViewList,
48
- vendorTypeList: vendor1099TypeListState.vendorTypes,
39
+ vendorTypeList: vendorTypeList,
49
40
  isVendor1099Populated: (_a = vendorFiling1099ListState.isVendor1099Populated) !== null && _a !== void 0 ? _a : true,
50
41
  uiState: vendorFiling1099ListState.uiState,
51
42
  vendorFiling1099DownloadData: vendorFiling1099ListState.vendorFiling1099DownloadData,
@@ -65,8 +56,6 @@ const sortedVendorFiling1099View = (vendorFiling1099List, sortKey, sortOrder) =>
65
56
  return vendor.vendorType;
66
57
  case 'w9':
67
58
  return vendor.filing1099W9Files;
68
- case 'filing1099type':
69
- return vendor.filing1099Type;
70
59
  case 'status':
71
60
  return vendor.filing1099Status;
72
61
  default:
@@ -20,7 +20,7 @@ export interface VendorFiling1099ListQuery {
20
20
  sortOrder: SortOrder;
21
21
  sortKey: VendorFiling1099ListViewSortKey;
22
22
  }
23
- declare const toVendorFiling1099ListViewSortKey: (v: string) => "total" | "status" | "w9" | "legal_name" | "tax_classification" | "filing1099type";
23
+ declare const toVendorFiling1099ListViewSortKey: (v: string) => "total" | "status" | "w9" | "legal_name" | "tax_classification";
24
24
  export declare type VendorFiling1099ListViewSortKey = ReturnType<typeof toVendorFiling1099ListViewSortKey>;
25
25
  export declare type Type1099Download = 'nec' | 'misc' | 'int';
26
26
  export {};
@@ -5,7 +5,6 @@ const VENDOR_FILING_1099_LIST_VIEW_SORT_KEYS = [
5
5
  'legal_name',
6
6
  'tax_classification',
7
7
  'w9',
8
- 'filing1099type',
9
8
  'status',
10
9
  'total',
11
10
  ];
@@ -2,7 +2,7 @@ import { GlobalMerchantBase } from '../../../../entity/globalMerchant/globalMerc
2
2
  import { ID } from '../../../../commonStateTypes/common';
3
3
  import { RecommendedNonExistingGlobalMerchant } from '../../vendorFirstReviewView/vendorFirstReviewViewState';
4
4
  import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload } from '../payload/commonTypes';
5
- export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "reviewed" | "under_review" | "merge_in_qbo" | "review_rejected" | undefined;
5
+ export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "under_review" | "merge_in_qbo" | "reviewed" | "review_rejected" | undefined;
6
6
  declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
7
7
  export declare type ReviewStatus = {
8
8
  code: VendorFirstReviewViewStatusesKey;
@@ -24,7 +24,7 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
24
24
  const { vendorId, markAsEmployee, markAsLocalContractor } = action.payload;
25
25
  const currentVendorLocalData = vendorFirstReviewViewState.vendorFirstReviewViewLocalDataById[vendorId]
26
26
  .vendorFirstReviewViewLocalData;
27
- const currentVendor = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
27
+ const currentVendor = (0, vendorSelector_1.getVendorByVendorId)(state$.value.vendorState, vendorId);
28
28
  const { vendorName, selectedGlobalMerchant, recommendations, nonExistingRecommendations, } = getSaveVendorFirstReviewViewPayloadDetails(currentVendorLocalData, globalMerchantState, vendorState);
29
29
  const payload = Object.assign({}, prepareSaveVendorFirstReviewViewPayload(vendorName, recommendations, nonExistingRecommendations, markAsEmployee, markAsLocalContractor, currentVendor === null || currentVendor === void 0 ? void 0 : currentVendor.qboId, selectedGlobalMerchant));
30
30
  const queryParam = {
@@ -104,7 +104,7 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
104
104
  actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
105
105
  vendorId: action.payload.vendorId,
106
106
  vendorNameSentForReview: vendorName,
107
- isVendorMergeError: true,
107
+ isQBOMergeError: true,
108
108
  }));
109
109
  }
110
110
  else if (response.status.details != null) {
@@ -122,44 +122,13 @@ const saveVendorFirstReviewViewEpic = (actions$, state$, zeniAPI) => actions$.pi
122
122
  actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
123
123
  vendorId: action.payload.vendorId,
124
124
  vendorNameSentForReview: vendorName,
125
- isVendorMergeError: false,
125
+ isQBOMergeError: false,
126
126
  oldRecommendation,
127
127
  newRecommendation,
128
128
  }));
129
129
  }
130
130
  return (0, rxjs_1.from)(actions);
131
131
  }
132
- else if (response.status.code === 400 &&
133
- response.status.message.includes('There is already a vendor using that entity name.')) {
134
- const actions = [];
135
- actions.push((0, vendorFirstReviewViewReducer_1.updateSavedVendorFirstReviewViewLocalData)({
136
- vendorId,
137
- vendors: response.data && response.data.vendors
138
- ? response.data.vendors
139
- : [],
140
- }));
141
- actions.push((0, vendorFirstReviewViewReducer_1.saveVendorFirstReviewViewSuccessOrFailure)('Error', action.payload.vendorId, markAsEmployee, markAsLocalContractor, response.status));
142
- actions.push((0, vendorReducer_1.updateVendors)((0, fetchVendorFirstReviewViewEpic_1.mapVendorsPayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
143
- ? response.data.vendors
144
- : [])), (0, userReducer_1.updateAllUsers)({
145
- users: (0, fetchVendorFirstReviewViewEpic_1.mapUsersPayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
146
- ? response.data.vendors
147
- : []),
148
- updateType: 'merge',
149
- }), (0, globalMerchantReducer_1.updateGlobalMerchantsBase)({
150
- globalMerchants: (0, fetchVendorFirstReviewViewEpic_1.mapGlobalMerchantsBasePayloadFromVendorFirstReviewViewResponse)(response.data && response.data.vendors
151
- ? response.data.vendors
152
- : []),
153
- }));
154
- if (response.status.details == null) {
155
- actions.push((0, vendorFirstReviewViewReducer_1.updateRecentlySavedErroredVendorData)({
156
- vendorId: action.payload.vendorId,
157
- vendorNameSentForReview: vendorName,
158
- isVendorMergeError: true,
159
- }));
160
- }
161
- return (0, rxjs_1.from)(actions);
162
- }
163
132
  else {
164
133
  return (0, rxjs_1.of)((0, vendorFirstReviewViewReducer_1.saveVendorFirstReviewViewSuccessOrFailure)('Error', action.payload.vendorId, markAsEmployee, markAsLocalContractor, response.status), (0, snackbarReducer_1.openSnackbar)({
165
134
  messageSection: 'save_vendor_sent_for_review',
@@ -43,7 +43,7 @@ export declare const fetchVendorFirstReviewAttachments: import("@reduxjs/toolkit
43
43
  }, string>, updateRecentlySavedErroredVendorData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
44
44
  vendorId: ID;
45
45
  vendorNameSentForReview: string;
46
- isVendorMergeError: boolean;
46
+ isQBOMergeError: boolean;
47
47
  oldRecommendation?: RecommendedNonExistingGlobalMerchant | undefined;
48
48
  newRecommendation?: RecommendedNonExistingGlobalMerchant | undefined;
49
49
  }, string>, clearRecentlySavedErroredVendorData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, saveVendorFirstReviewViewSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, vendorId: string, markAsEmployee: boolean, markAsLocalContractor: boolean, error?: ZeniAPIStatus<Record<string, unknown>> | undefined, reviewStatus?: ReviewStatusPayload | undefined], {
@@ -166,8 +166,8 @@ const vendorFirstReviewView = (0, toolkit_1.createSlice)({
166
166
  };
167
167
  },
168
168
  updateRecentlySavedErroredVendorData(draft, action) {
169
- const { isVendorMergeError, vendorId, oldRecommendation, newRecommendation, vendorNameSentForReview, } = action.payload;
170
- if (isVendorMergeError) {
169
+ const { isQBOMergeError, vendorId, oldRecommendation, newRecommendation, vendorNameSentForReview, } = action.payload;
170
+ if (isQBOMergeError) {
171
171
  draft.recentlySavedErroredVendorData = {
172
172
  vendorId,
173
173
  vendorNameSentForReview,
@@ -1,5 +1,4 @@
1
1
  import { FetchedState, ID } from '../../commonStateTypes/common';
2
- import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
3
2
  export interface ZeniAccStatementListState {
4
3
  byDepositId: Record<ID, StatementState>;
5
4
  }
@@ -8,7 +7,11 @@ interface StatementState extends FetchedState {
8
7
  }
9
8
  export interface Statement {
10
9
  id: ID;
11
- title: MonthYearPeriod;
10
+ title: StatementTitle;
11
+ }
12
+ interface StatementTitle {
13
+ month: number;
14
+ year: number;
12
15
  }
13
16
  export declare const initialStatements: StatementState;
14
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.13.11",
3
+ "version": "4.13.12",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,32 +0,0 @@
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 {};
@@ -1,60 +0,0 @@
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
- const historicMonthYears = historicMonthYearPayload.map((monthYearString) => {
31
- const parsedDate = (0, zeniDayJS_1.date)(monthYearString, formatZeniDateFY_1.MM_YYYY_FORMAT);
32
- return {
33
- month: (0, timePeriod_1.toMonth)(parsedDate.month() + 1),
34
- year: parsedDate.year(),
35
- };
36
- });
37
- historicMonthYears.sort((a, b) => {
38
- if (a.year !== b.year) {
39
- return a.year - b.year; // Sort by year first
40
- }
41
- return a.month - b.month; // Then sort by month
42
- });
43
- return historicMonthYears;
44
- };
45
- const toMonthEndCloseChecksInfo = (payload, period) => ({
46
- id: (0, timePeriod_1.toMonthYearPeriodId)(period),
47
- insights: toMonthEndInsights(payload.insights),
48
- monthEndCloseCheckList: payload.month_close_checks.map((monthCloseCheck) => toMonthEndCloseCheck(monthCloseCheck)),
49
- auditSummary: {
50
- auditScorePercentage: payload.audit_summary.audit_score_percentage,
51
- auditReportLastGeneratedDate: payload.audit_summary.audit_report_last_generated_date != null
52
- ? (0, zeniDayJS_1.date)(payload.audit_summary.audit_report_last_generated_date)
53
- : null,
54
- },
55
- zeniBookCloseDate: (0, zeniDayJS_1.date)(payload.zeni_book_close_date),
56
- historicMonthYear: payload.history_month_and_year_flag != null
57
- ? toMonthYearPeriods(payload.history_month_and_year_flag)
58
- : [],
59
- });
60
- exports.toMonthEndCloseChecksInfo = toMonthEndCloseChecksInfo;
@@ -1,12 +0,0 @@
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;
@@ -1,25 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;