@zeniai/client-epic-state 4.13.10 → 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 (344) 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/fetchAllTenantsEpic.d.ts +1 -4
  49. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +2 -33
  50. package/lib/entity/tenant/tenantPayload.d.ts +0 -1
  51. package/lib/entity/tenant/tenantReducer.js +0 -3
  52. package/lib/entity/tenant/tenantState.d.ts +0 -1
  53. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  54. package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
  55. package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
  56. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  57. package/lib/entity/transaction/transactionSelector.d.ts +0 -1
  58. package/lib/entity/transaction/transactionSelector.js +1 -7
  59. package/lib/entity/user/userPayload.d.ts +0 -1
  60. package/lib/entity/user/userReducer.js +8 -9
  61. package/lib/entity/user/userState.d.ts +0 -1
  62. package/lib/entity/vendor/__mocks__/vendorMock.js +2 -0
  63. package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +0 -2
  64. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +4 -107
  65. package/lib/entity/vendor/vendorPayload.d.ts +1 -6
  66. package/lib/entity/vendor/vendorPayload.js +5 -6
  67. package/lib/entity/vendor/vendorState.d.ts +3 -10
  68. package/lib/entity/vendor/vendorType.d.ts +2 -2
  69. package/lib/entity/vendor/vendorType.js +4 -4
  70. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  71. package/lib/entity/vendorExpense/vendorExpenseSelector.js +0 -1
  72. package/lib/epic.d.ts +2 -19
  73. package/lib/epic.js +2 -19
  74. package/lib/index.d.ts +21 -65
  75. package/lib/index.js +28 -102
  76. package/lib/reducer.d.ts +1 -34
  77. package/lib/reducer.js +1 -34
  78. package/lib/view/accountMappingView/accountMappingPayload.js +32 -75
  79. package/lib/view/accountMappingView/accountMappingReducer.js +10 -36
  80. package/lib/view/accountMappingView/accountMappingState.d.ts +1 -1
  81. package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +0 -5
  82. package/lib/view/accountMappingView/accountMappingViewSelector.js +1 -11
  83. package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +1 -2
  84. package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +0 -2
  85. package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +1 -6
  86. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
  87. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
  88. package/lib/view/addressView/addressViewState.d.ts +1 -1
  89. package/lib/view/addressView/toAddressViewLocalData.d.ts +0 -2
  90. package/lib/view/addressView/toAddressViewLocalData.js +3 -9
  91. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  92. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  93. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  94. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  95. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  96. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  97. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  98. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  99. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  100. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  101. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  102. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  103. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +5 -10
  104. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +7 -10
  105. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
  106. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
  107. package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +3 -5
  108. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
  109. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
  110. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
  111. package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
  112. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  113. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
  114. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
  115. package/lib/view/companyView/types/companyView.d.ts +0 -1
  116. package/lib/view/dashboard/dashboardEpic.d.ts +1 -2
  117. package/lib/view/dashboard/dashboardEpic.js +2 -22
  118. package/lib/view/dashboard/dashboardReducer.d.ts +2 -3
  119. package/lib/view/dashboard/dashboardReducer.js +1 -2
  120. package/lib/view/dashboard/dashboardSelector.d.ts +0 -2
  121. package/lib/view/dashboard/dashboardSelector.js +2 -10
  122. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  123. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  124. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
  125. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
  126. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
  127. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
  128. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
  129. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  130. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  131. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  132. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  133. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  134. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  135. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  136. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  137. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +2 -3
  138. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
  139. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
  140. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +5 -19
  141. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +3 -8
  142. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +57 -39
  143. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +8 -13
  144. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +12 -19
  145. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +0 -1
  146. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +3 -4
  147. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +0 -2
  148. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  149. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  150. package/lib/view/settingsView/epic/updateMyProfileEpic.js +4 -6
  151. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
  152. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  153. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
  154. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
  155. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
  156. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +1 -3
  157. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +2 -6
  158. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +3 -2
  159. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
  160. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +3 -1
  161. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +2 -1
  162. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +21 -1
  163. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +3 -1
  164. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +0 -1
  165. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +0 -4
  166. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +1 -8
  167. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +2 -25
  168. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +0 -1
  169. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +4 -8
  170. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +1 -2
  171. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +14 -1
  172. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +13 -2
  173. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +6 -3
  174. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +17 -2
  175. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +2 -8
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +15 -55
  177. package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.d.ts +2 -3
  178. package/lib/view/spendManagement/chargeCards/{issueChargeCard → chargeCardList}/issueChargeCardEpic.js +18 -35
  179. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  180. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
  181. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  182. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
  183. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
  184. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
  185. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  186. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
  187. package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
  188. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  189. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  190. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  191. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  192. package/lib/view/topEx/topExSelector.d.ts +1 -1
  193. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
  194. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  195. package/lib/view/userListView/fetchUserListByTypeEpic.js +1 -4
  196. package/lib/view/vendorFiling1099/__mock__/json/vendorFiling1099ListSuccess.json +1 -4
  197. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +3 -12
  198. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +4 -2
  199. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +1 -4
  200. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +2 -2
  201. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +7 -7
  202. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +10 -21
  203. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  204. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.js +0 -1
  205. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
  206. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +3 -34
  207. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +1 -1
  208. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +2 -2
  209. package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +5 -2
  210. package/package.json +1 -1
  211. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -32
  212. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -60
  213. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +0 -12
  214. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +0 -25
  215. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +0 -7
  216. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +0 -36
  217. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +0 -38
  218. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +0 -10
  219. package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.d.ts +0 -11
  220. package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.js +0 -4607
  221. package/lib/view/countryList/countryListReducer.d.ts +0 -17
  222. package/lib/view/countryList/countryListReducer.js +0 -58
  223. package/lib/view/countryList/countryListSelector.d.ts +0 -7
  224. package/lib/view/countryList/countryListSelector.js +0 -13
  225. package/lib/view/countryList/countryListState.d.ts +0 -12
  226. package/lib/view/countryList/countryListState.js +0 -2
  227. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
  228. package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
  229. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
  230. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
  231. package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
  232. package/lib/view/countryList/payloads/countryListPayload.js +0 -10
  233. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
  234. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
  235. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +0 -10
  236. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +0 -72
  237. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +0 -11
  238. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -53
  239. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +0 -11
  240. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +0 -66
  241. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +0 -7
  242. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +0 -39
  243. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +0 -7
  244. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +0 -22
  245. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +0 -8
  246. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +0 -59
  247. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +0 -8
  248. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +0 -78
  249. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +0 -6
  250. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +0 -28
  251. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +0 -9
  252. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +0 -78
  253. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +0 -8
  254. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +0 -58
  255. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +0 -10
  256. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +0 -12
  257. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +0 -3
  258. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +0 -2
  259. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +0 -17
  260. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +0 -66
  261. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +0 -3
  262. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +0 -97
  263. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -11
  264. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +0 -14
  265. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -7
  266. package/lib/view/expenseAutomationView/helpers/helpers.js +0 -67
  267. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +0 -76
  268. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +0 -9
  269. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +0 -36
  270. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +0 -58
  271. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -16
  272. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -2
  273. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +0 -34
  274. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +0 -205
  275. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +0 -53
  276. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +0 -245
  277. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +0 -31
  278. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +0 -130
  279. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +0 -5
  280. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +0 -45
  281. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -34
  282. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +0 -44
  283. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +0 -32
  284. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +0 -2
  285. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +0 -28
  286. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +0 -2
  287. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +0 -11
  288. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +0 -2
  289. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +0 -3
  290. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +0 -55
  291. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +0 -7
  292. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +0 -95
  293. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +0 -3
  294. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -61
  295. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +0 -53
  296. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +0 -5
  297. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -31
  298. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -2
  299. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -20
  300. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -13
  301. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -28
  302. package/lib/view/expenseAutomationView/types/transactionsViewState.js +0 -15
  303. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +0 -8
  304. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +0 -58
  305. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +0 -3
  306. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +0 -2
  307. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +0 -16
  308. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +0 -36
  309. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +0 -10
  310. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +0 -27
  311. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +0 -5
  312. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +0 -2
  313. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
  314. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
  315. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
  316. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -42
  317. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
  318. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
  319. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
  320. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
  321. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
  322. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
  323. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
  324. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
  325. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
  326. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
  327. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +0 -11
  328. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +0 -42
  329. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +0 -9
  330. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +0 -44
  331. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +0 -15
  332. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +0 -65
  333. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -22
  334. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -76
  335. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -28
  336. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -23
  337. package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.d.ts +0 -7
  338. package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.js +0 -23
  339. package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.d.ts +0 -15
  340. package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.js +0 -2
  341. package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.d.ts +0 -7
  342. package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +0 -52
  343. package/lib/view/vendor1099TypeList/vendor1099TypeListState.d.ts +0 -9
  344. package/lib/view/vendor1099TypeList/vendor1099TypeListState.js +0 -2
@@ -1,76 +0,0 @@
1
- import { AgingBalancePayload } from '../../../commonPayloadTypes/agingReportPayloadTypes';
2
- import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
3
- import { AccountBasePayload } from '../../../entity/account/accountPayload';
4
- import { ClassBasePayload } from '../../../entity/class/classPayload';
5
- import { UserPayload } from '../../../entity/user/userPayload';
6
- import { VendorPayload } from '../../../entity/vendor/vendorPayload';
7
- import { ZeniAPIResponse } from '../../../responsePayload';
8
- declare const toFluxAnalysisQuerySortKey: (v: string) => "accounting_class_name" | "vendor_name" | "account_name";
9
- export declare type FluxAnalysisQuerySortKey = ReturnType<typeof toFluxAnalysisQuerySortKey>;
10
- export declare type FluxAnalysisActionQueryType = 'mark_as_reviewed' | 'mark_as_un_reviewed';
11
- interface PageMetadataPayload {
12
- next_page_token: string;
13
- }
14
- export interface FluxAnalysisQueryPayload {
15
- month_and_year: string;
16
- sort_order: string;
17
- sort_by: string;
18
- }
19
- export interface ReviewFluxAnalysisQueryPayload {
20
- action: string;
21
- flux_analysis_entity_ids: string[];
22
- }
23
- export interface MonthBalancePayload extends AgingBalancePayload {
24
- end_date: string;
25
- id: string;
26
- label: string;
27
- start_date: string;
28
- }
29
- export interface FluxAnalysisEntitiesPayload {
30
- operating_expenses?: FluxAnalysisOperatingExpensePayload[];
31
- }
32
- export interface FluxAnalysisOperatingExpensePayload {
33
- flux_analysis_entity_id: string;
34
- vendor_id: string;
35
- account_id: string | undefined;
36
- accounting_class_id: string | undefined;
37
- month_1: MonthBalancePayload;
38
- month_2: MonthBalancePayload;
39
- variance_amount: number;
40
- variance_percentage: number;
41
- anomaly_reason: string;
42
- status: string;
43
- reviewed_by_user_id: string | null;
44
- reviewed_at: string | null;
45
- updated_at: string | null;
46
- is_reviewed: boolean | null;
47
- }
48
- export interface FluxAnalysisReportPayload {
49
- vendors?: VendorPayload[];
50
- accounts?: AccountBasePayload[];
51
- accounting_class?: ClassBasePayload[];
52
- users?: UserPayload[];
53
- flux_analysis_entities?: FluxAnalysisEntitiesPayload;
54
- page_metadata?: PageMetadataPayload;
55
- currency: CurrencyPayload;
56
- }
57
- export interface FluxAnalysisResponsePayload {
58
- query: {
59
- month_and_year: string;
60
- page_token: string;
61
- sort_by: string;
62
- sort_order: string;
63
- };
64
- report: FluxAnalysisReportPayload;
65
- }
66
- export interface ReviewFluxAnalysisResponsePayload {
67
- query: {
68
- action: string;
69
- month_and_year: string;
70
- operating_expense_ids: string[];
71
- };
72
- operating_expense_ids: string[];
73
- }
74
- export declare type FluxAnalysisViewResponse = ZeniAPIResponse<FluxAnalysisResponsePayload>;
75
- export declare type ReviewFluxAnalysisViewResponse = ZeniAPIResponse<ReviewFluxAnalysisResponsePayload>;
76
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
4
- const FLUX_ANALYSIS_SORT_KEYS_QUERY = [
5
- 'accounting_class_name',
6
- 'account_name',
7
- 'vendor_name',
8
- ];
9
- const toFluxAnalysisQuerySortKey = (v) => (0, stringToUnion_1.stringToUnion)(v, FLUX_ANALYSIS_SORT_KEYS_QUERY);
@@ -1,36 +0,0 @@
1
- import { RootState } from '../../../reducer';
2
- import { JEScheduledTransactionPayload, ScheduledJournalEntryPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
3
- import { JEScheduledTransaction } from '../../../entity/jeSchedules/jeSchedulesSelector';
4
- import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
5
- import { ZeniAPIResponse } from '../../../responsePayload';
6
- import { JESchedulePayload, SaveJESchedulePayload } from '../../scheduleView/scheduleDetailView/scheduleDetailPayload';
7
- import { JEScheduleLocalData } from '../types/jeSchedulesViewState';
8
- export interface ExpenseAutomationJESchedulesQueryPayload {
9
- start_date: string;
10
- end_date: string;
11
- }
12
- interface ExpenseAutomationJESchedulesPayload {
13
- draft_je_schedules: JEScheduledTransactionPayload[];
14
- failed_je_postings: {
15
- je_schedules: JEScheduledTransactionPayload[];
16
- scheduled_journal_entries: ScheduledJournalEntryPayload[];
17
- };
18
- }
19
- export declare type ExpenseAutomationJESchedulesResponse = ZeniAPIResponse<ExpenseAutomationJESchedulesPayload>;
20
- export interface IgnoreDraftJESchedulePayload {
21
- je_schedules: JEScheduledTransactionPayload[];
22
- scheduled_journal_entries: SaveJESchedulePayload[];
23
- }
24
- export declare const prepareIgnoreSchedulePayload: (scheduleType: ScheduleTypes, jeScheduleTransaction: JEScheduledTransaction, state: RootState) => {
25
- scheduled_journal_entries: never[];
26
- je_schedules: JESchedulePayload[];
27
- };
28
- export declare const preparePayloadForRetryPosting: (jeSchedule: JEScheduleLocalData) => {
29
- updated_debit_class_id?: string | undefined;
30
- updated_credit_category_id?: string | undefined;
31
- updated_debit_category_id?: string | undefined;
32
- updated_vendor_id?: string | undefined;
33
- scheduled_journal_entry_id: string;
34
- je_schedule_id: string;
35
- };
36
- export {};
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.preparePayloadForRetryPosting = exports.prepareIgnoreSchedulePayload = void 0;
4
- const scheduleDetailPayload_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailPayload");
5
- const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
6
- const prepareIgnoreSchedulePayload = (scheduleType, jeScheduleTransaction, state) => {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
8
- const { vendorState } = state;
9
- const { vendor, currencyCode, currencySymbol, baseTransaction, status, balanceAsOfToday, period, startDate, endDate, jeCredit, jeDebit, } = jeScheduleTransaction;
10
- const vendorID = vendor.id;
11
- const vendorDetails = vendorState.vendorByID[vendorID];
12
- const jeSchedulePayload = {
13
- status: status,
14
- vendor: (0, scheduleDetailPayload_1.mapVendorToVendorPayload)(vendorDetails),
15
- currency_code: currencyCode,
16
- currency_symbol: currencySymbol,
17
- period: period !== null && period !== void 0 ? period : null,
18
- je_schedule_type: scheduleType,
19
- posting_date: null,
20
- balance: getBalanceAmountAsOfToday(baseTransaction, balanceAsOfToday),
21
- start_date: (_a = startDate === null || startDate === void 0 ? void 0 : startDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _a !== void 0 ? _a : null,
22
- end_date: (_b = endDate === null || endDate === void 0 ? void 0 : endDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _b !== void 0 ? _b : null,
23
- je_credit_accounting_class_id: (_d = (_c = jeCredit === null || jeCredit === void 0 ? void 0 : jeCredit.accountingClass) === null || _c === void 0 ? void 0 : _c.classId) !== null && _d !== void 0 ? _d : null,
24
- je_credit_account_id: (_f = (_e = jeCredit === null || jeCredit === void 0 ? void 0 : jeCredit.account) === null || _e === void 0 ? void 0 : _e.accountId) !== null && _f !== void 0 ? _f : null,
25
- je_debit_accounting_class_id: (_h = (_g = jeDebit === null || jeDebit === void 0 ? void 0 : jeDebit.accountingClass) === null || _g === void 0 ? void 0 : _g.classId) !== null && _h !== void 0 ? _h : null,
26
- je_debit_account_id: (_k = (_j = jeDebit === null || jeDebit === void 0 ? void 0 : jeDebit.account) === null || _j === void 0 ? void 0 : _j.accountId) !== null && _k !== void 0 ? _k : null,
27
- other_attributes: {},
28
- base_transaction: (0, scheduleDetailPayload_1.mapScheduleTransactionToBaseScheduleTransactionPayload)(baseTransaction),
29
- is_reviewed: true,
30
- };
31
- return {
32
- scheduled_journal_entries: [],
33
- je_schedules: [jeSchedulePayload],
34
- };
35
- };
36
- exports.prepareIgnoreSchedulePayload = prepareIgnoreSchedulePayload;
37
- const getBalanceAmountAsOfToday = (baseTransaction, balanceAsOfToday) => {
38
- if (balanceAsOfToday != null) {
39
- return balanceAsOfToday.amount;
40
- }
41
- return baseTransaction.amount.amount;
42
- };
43
- const preparePayloadForRetryPosting = (jeSchedule) => {
44
- var _a;
45
- return Object.assign(Object.assign(Object.assign(Object.assign({ scheduled_journal_entry_id: jeSchedule.scheduledJournalEntryID, je_schedule_id: jeSchedule.jeScheduleID }, (((_a = jeSchedule.updatedVendor) === null || _a === void 0 ? void 0 : _a.id) != null &&
46
- jeSchedule.updatedVendor.id !== ''
47
- ? { updated_vendor_id: jeSchedule.updatedVendor.id }
48
- : {})), (jeSchedule.updatedCategoryId != null
49
- ? { updated_debit_category_id: jeSchedule.updatedCategoryId }
50
- : {})), (jeSchedule.updatedAccumulatedDepreciationCategoryID != null
51
- ? {
52
- updated_credit_category_id: jeSchedule.updatedAccumulatedDepreciationCategoryID,
53
- }
54
- : {})), (jeSchedule.updatedClassId != null
55
- ? { updated_debit_class_id: jeSchedule.updatedClassId }
56
- : {}));
57
- };
58
- exports.preparePayloadForRetryPosting = preparePayloadForRetryPosting;
@@ -1,16 +0,0 @@
1
- import { TransactionPayload } from '../../../entity/transaction/payloadTypes/transactionPayload';
2
- import { ZeniAPIResponse } from '../../../responsePayload';
3
- export interface MissingReceiptsQueryPayload {
4
- start_date: string;
5
- end_date: string;
6
- sort_by: string;
7
- sort_order: string;
8
- total_amount_min: number;
9
- is_attachment_missing_only: boolean;
10
- }
11
- interface MissingReceiptsPayload {
12
- transactions: TransactionPayload[];
13
- query: MissingReceiptsQueryPayload;
14
- }
15
- export declare type MissingReceiptsResponse = ZeniAPIResponse<MissingReceiptsPayload>;
16
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,34 +0,0 @@
1
- import { FluxAnalysisActionType, FluxAnalysisOperatingExpense, FluxAnalysisViewState } from '../types/fluxAnalysisViewState';
2
- import { MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
3
- import { ZeniAPIStatus } from '../../../responsePayload';
4
- import { FluxAnalysisOperatingExpensePayload } from '../payload/fluxAnalysisPayload';
5
- import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
6
- import { CurrencyPayload } from '../../../commonPayloadTypes/v2/viewAndReportPayloadv2';
7
- export declare const initialState: FluxAnalysisViewState;
8
- export declare const toFluxAnalysisiOperatingExpensesById: (operatingExpenses: FluxAnalysisOperatingExpensePayload[], currency: CurrencyPayload) => Record<ID, FluxAnalysisOperatingExpense>;
9
- export declare const toFluxAnalysisOperatingEexpenses: (operatingExpensesPayload: FluxAnalysisOperatingExpensePayload[], currency: CurrencyPayload) => FluxAnalysisOperatingExpense[];
10
- export declare const toFluxAnalysisOperatingEexpense: (operatingExpensePayload: FluxAnalysisOperatingExpensePayload, currency: CurrencyPayload) => FluxAnalysisOperatingExpense;
11
- export declare const toReviewStatusById: (operatingExpenses: FluxAnalysisOperatingExpensePayload[]) => Record<ID, FetchStateAndError>;
12
- export declare const fetchFluxAnalysisView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[monthAndYear: MonthYearPeriod, refreshViewInBackground: boolean], {
13
- monthAndYear: MonthYearPeriod;
14
- refreshViewInBackground: boolean;
15
- }, string, never, never>, fetchFluxAnalysisViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
16
- expensesPayload: FluxAnalysisOperatingExpensePayload[];
17
- currency: CurrencyPayload;
18
- }, string>, fetchFluxAnalysisViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
- status: ZeniAPIStatus;
20
- }, string>, clearExpenseAutomationFluxAnalysisView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateOperatingExpensesIdsForReview: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
- operatingExpenseIds: ID[];
22
- }, string>, markFullFluxAnalysisViewForReview: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
23
- isSelected: boolean;
24
- }, string>, reviewFluxAnalysisView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[actionType: FluxAnalysisActionType, operatingExpenseIds: string[]], {
25
- actionType: FluxAnalysisActionType;
26
- operatingExpenseIds: string[];
27
- }, string, never, never>, reviewFluxAnalysisViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
- operatingExpenseIds: ID[];
29
- }, string>, reviewFluxAnalysisViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
- operatingExpenseIds: ID[];
31
- status: ZeniAPIStatus;
32
- }, string>;
33
- declare const _default: import("@reduxjs/toolkit").Reducer<FluxAnalysisViewState, import("@reduxjs/toolkit").AnyAction>;
34
- export default _default;
@@ -1,205 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.reviewFluxAnalysisViewFailure = exports.reviewFluxAnalysisViewSuccess = exports.reviewFluxAnalysisView = exports.markFullFluxAnalysisViewForReview = exports.updateOperatingExpensesIdsForReview = exports.clearExpenseAutomationFluxAnalysisView = exports.fetchFluxAnalysisViewFailure = exports.fetchFluxAnalysisViewSuccess = exports.fetchFluxAnalysisView = exports.toReviewStatusById = exports.toFluxAnalysisOperatingEexpense = exports.toFluxAnalysisOperatingEexpenses = exports.toFluxAnalysisiOperatingExpensesById = exports.initialState = void 0;
5
- const toolkit_1 = require("@reduxjs/toolkit");
6
- const helpers_1 = require("../helpers/helpers");
7
- exports.initialState = {
8
- reviewStatusById: {},
9
- operatingExpenseById: {},
10
- fluxAnalysisEntities: { operatingExpenses: [] },
11
- uiState: {
12
- scrollPosition: { scrollTop: 0, scrollLeft: undefined },
13
- pageToken: null,
14
- totalCount: 0,
15
- limit: 10,
16
- sortKey: 'vendors',
17
- searchString: '',
18
- sortOrder: 'ascending',
19
- },
20
- refreshStatus: {
21
- fetchState: 'Not-Started',
22
- error: undefined,
23
- },
24
- fetchState: 'Not-Started',
25
- bulkReviewStatus: {
26
- fetchState: 'Not-Started',
27
- error: undefined,
28
- },
29
- error: undefined,
30
- fluxAnalysisReportGenerated: false,
31
- reviewOperatingExpensesIds: [],
32
- isAllRowsSelected: false,
33
- hasValidState() {
34
- return this.fetchState == 'Completed';
35
- },
36
- };
37
- const expenseAutomationFluxAnalysisView = (0, toolkit_1.createSlice)({
38
- name: 'expenseAutomationFluxAnalysisView',
39
- initialState: exports.initialState,
40
- reducers: {
41
- fetchFluxAnalysisView: {
42
- reducer(draft, action) {
43
- const { refreshViewInBackground } = action.payload;
44
- if (refreshViewInBackground) {
45
- draft.refreshStatus = { fetchState: 'In-Progress', error: undefined };
46
- }
47
- else {
48
- draft.fetchState = 'In-Progress';
49
- draft.error = undefined;
50
- }
51
- },
52
- prepare(monthAndYear, refreshViewInBackground) {
53
- return {
54
- payload: {
55
- monthAndYear,
56
- refreshViewInBackground,
57
- },
58
- };
59
- },
60
- },
61
- fetchFluxAnalysisViewSuccess(draft, action) {
62
- const { expensesPayload, currency } = action.payload;
63
- if (draft.fetchState === 'In-Progress') {
64
- draft.fetchState = 'Completed';
65
- draft.error = undefined;
66
- }
67
- else {
68
- draft.refreshStatus = { fetchState: 'Completed', error: undefined };
69
- }
70
- draft.reviewStatusById = (0, exports.toReviewStatusById)(expensesPayload);
71
- draft.operatingExpenseById = (0, exports.toFluxAnalysisiOperatingExpensesById)(expensesPayload, currency);
72
- draft.fluxAnalysisEntities = {
73
- operatingExpenses: (0, exports.toFluxAnalysisOperatingEexpenses)(expensesPayload, currency),
74
- };
75
- },
76
- fetchFluxAnalysisViewFailure(draft, action) {
77
- const { status } = action.payload;
78
- if (draft.fetchState === 'In-Progress') {
79
- draft.fetchState = 'Error';
80
- draft.error = status;
81
- }
82
- else {
83
- draft.refreshStatus = { fetchState: 'Error', error: status };
84
- }
85
- },
86
- updateOperatingExpensesIdsForReview(draft, action) {
87
- const { operatingExpenseIds } = action.payload;
88
- if (draft.reviewOperatingExpensesIds.length == 0) {
89
- draft.reviewOperatingExpensesIds = operatingExpenseIds;
90
- }
91
- else {
92
- draft.reviewOperatingExpensesIds =
93
- draft.reviewOperatingExpensesIds.concat(operatingExpenseIds);
94
- }
95
- },
96
- markFullFluxAnalysisViewForReview(draft, action) {
97
- const { isSelected } = action.payload;
98
- const allRowIds = Object.keys(draft.operatingExpenseById);
99
- draft.reviewOperatingExpensesIds = allRowIds;
100
- draft.isAllRowsSelected = isSelected;
101
- },
102
- reviewFluxAnalysisView: {
103
- reducer(draft, action) {
104
- const { operatingExpenseIds } = action.payload;
105
- operatingExpenseIds.forEach((id) => {
106
- draft.reviewStatusById[id] = {
107
- fetchState: 'In-Progress',
108
- };
109
- });
110
- if (operatingExpenseIds.length > 1) {
111
- draft.bulkReviewStatus = {
112
- fetchState: 'In-Progress',
113
- };
114
- }
115
- },
116
- prepare(actionType, operatingExpenseIds) {
117
- return {
118
- payload: { actionType, operatingExpenseIds },
119
- };
120
- },
121
- },
122
- reviewFluxAnalysisViewSuccess(draft, action) {
123
- const { operatingExpenseIds } = action.payload;
124
- operatingExpenseIds.forEach((id) => {
125
- delete draft.operatingExpenseById[id];
126
- draft.reviewStatusById[id] = {
127
- fetchState: 'Completed',
128
- };
129
- });
130
- if (operatingExpenseIds.length > 1) {
131
- draft.bulkReviewStatus = {
132
- fetchState: 'Completed',
133
- };
134
- }
135
- },
136
- reviewFluxAnalysisViewFailure(draft, action) {
137
- const { operatingExpenseIds, status } = action.payload;
138
- operatingExpenseIds.forEach((id) => {
139
- if (draft.reviewStatusById[id].fetchState === 'In-Progress') {
140
- draft.reviewStatusById[id].fetchState = 'Error';
141
- draft.reviewStatusById[id].error = status;
142
- }
143
- });
144
- if (operatingExpenseIds.length > 1) {
145
- draft.bulkReviewStatus = {
146
- fetchState: 'Error',
147
- error: status,
148
- };
149
- }
150
- },
151
- clearExpenseAutomationFluxAnalysisView(draft) {
152
- Object.assign(draft, exports.initialState);
153
- },
154
- },
155
- });
156
- const toFluxAnalysisiOperatingExpensesById = (operatingExpenses, currency) => {
157
- const balancesByVendorKey = {};
158
- operatingExpenses.forEach((operatingExpense) => {
159
- const vendorFluxKey = operatingExpense.flux_analysis_entity_id;
160
- balancesByVendorKey[vendorFluxKey] = (0, exports.toFluxAnalysisOperatingEexpense)(operatingExpense, currency);
161
- });
162
- return balancesByVendorKey;
163
- };
164
- exports.toFluxAnalysisiOperatingExpensesById = toFluxAnalysisiOperatingExpensesById;
165
- const toFluxAnalysisOperatingEexpenses = (operatingExpensesPayload, currency) => {
166
- const operatingExpenses = [];
167
- operatingExpensesPayload.forEach((operatingExpensePayload) => {
168
- operatingExpenses.push((0, exports.toFluxAnalysisOperatingEexpense)(operatingExpensePayload, currency));
169
- });
170
- return operatingExpenses;
171
- };
172
- exports.toFluxAnalysisOperatingEexpenses = toFluxAnalysisOperatingEexpenses;
173
- const toFluxAnalysisOperatingEexpense = (operatingExpensePayload, currency) => {
174
- var _a;
175
- return {
176
- operatingExpenseId: operatingExpensePayload.flux_analysis_entity_id,
177
- vendorId: operatingExpensePayload.vendor_id,
178
- accountId: operatingExpensePayload.account_id,
179
- classId: operatingExpensePayload.accounting_class_id,
180
- userId: (_a = operatingExpensePayload.reviewed_by_user_id) !== null && _a !== void 0 ? _a : undefined,
181
- varianceAmount: operatingExpensePayload.variance_amount,
182
- variancePercentage: operatingExpensePayload.variance_percentage,
183
- currency: {
184
- currencyCode: currency.currency_code,
185
- currencySymbol: currency.currency_symbol,
186
- },
187
- anomalyReason: operatingExpensePayload.anomaly_reason,
188
- status: (0, helpers_1.toVendorFluxAnalysisStatusFromPayload)(operatingExpensePayload.status),
189
- balancesByMonth: (0, helpers_1.toBalancesByMonthFromPayload)(operatingExpensePayload.month_1, operatingExpensePayload.month_2, currency),
190
- };
191
- };
192
- exports.toFluxAnalysisOperatingEexpense = toFluxAnalysisOperatingEexpense;
193
- const toReviewStatusById = (operatingExpenses) => {
194
- const reviewStatusById = {};
195
- operatingExpenses.forEach((operatingExpense) => {
196
- reviewStatusById[operatingExpense.flux_analysis_entity_id] = {
197
- fetchState: 'Not-Started',
198
- error: undefined,
199
- };
200
- });
201
- return reviewStatusById;
202
- };
203
- exports.toReviewStatusById = toReviewStatusById;
204
- _a = expenseAutomationFluxAnalysisView.actions, exports.fetchFluxAnalysisView = _a.fetchFluxAnalysisView, exports.fetchFluxAnalysisViewSuccess = _a.fetchFluxAnalysisViewSuccess, exports.fetchFluxAnalysisViewFailure = _a.fetchFluxAnalysisViewFailure, exports.clearExpenseAutomationFluxAnalysisView = _a.clearExpenseAutomationFluxAnalysisView, exports.updateOperatingExpensesIdsForReview = _a.updateOperatingExpensesIdsForReview, exports.markFullFluxAnalysisViewForReview = _a.markFullFluxAnalysisViewForReview, exports.reviewFluxAnalysisView = _a.reviewFluxAnalysisView, exports.reviewFluxAnalysisViewSuccess = _a.reviewFluxAnalysisViewSuccess, exports.reviewFluxAnalysisViewFailure = _a.reviewFluxAnalysisViewFailure;
205
- exports.default = expenseAutomationFluxAnalysisView.reducer;
@@ -1,53 +0,0 @@
1
- import { ID } from '../../../commonStateTypes/common';
2
- import { JEScheduleLocalData, JESchedulesViewState } from '../types/jeSchedulesViewState';
3
- import { TimePeriod, MonthYearPeriod } from '../../../commonStateTypes/timePeriod';
4
- import { JEScheduleTransactionKey } from '../../../entity/jeSchedules/jeSchedulesTypes';
5
- import { ZeniAPIStatus } from '../../../responsePayload';
6
- import { JEScheduledTransactionPayload } from '../../../entity/jeSchedules/jeSchedulesPayload';
7
- export declare const initialState: JESchedulesViewState;
8
- export declare const clearExpenseAutomationJESchedulesView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, fetchJeSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
9
- period: TimePeriod;
10
- refreshViewInBackground: any;
11
- }, string, never, never>, fetchJeSchedulesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
- selectedPeriod: MonthYearPeriod;
13
- status: ZeniAPIStatus;
14
- }, string>, fetchJeSchedulesSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
15
- jeSchedules: JEScheduledTransactionPayload[];
16
- failedJeSchedules: JEScheduledTransactionPayload[];
17
- selectedPeriod: MonthYearPeriod;
18
- }, string>, fetchJeSchedulesPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, refreshViewInBackground?: any], {
19
- period: TimePeriod;
20
- refreshViewInBackground: any;
21
- }, string, never, never>, ignoreRecommendedJeSchedule: 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`, scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue"], {
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
- scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
24
- }, string, never, never>, ignoreRecommendedJeScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
25
- jeScheduleTransactionKey: JEScheduleTransactionKey;
26
- status: ZeniAPIStatus;
27
- }, string>, ignoreRecommendedJeScheduleSuccess: 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`], {
28
- 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`;
29
- }, string, never, never>, initializeJeScheduleLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeSchedules: JEScheduledTransactionPayload[]], {
30
- jeScheduleTransactionKeys: (`${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`)[];
31
- }, string, never, never>, removeJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKey: `${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`, selectedPeriod: MonthYearPeriod], {
32
- jeScheduleKey: `${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`;
33
- selectedPeriod: MonthYearPeriod;
34
- }, string, never, never>, removeFailedJeScheduleTransactionKey: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[failedJeScheduleKey: `${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`, selectedPeriod: MonthYearPeriod], {
35
- failedJeScheduleKey: `${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`;
36
- selectedPeriod: MonthYearPeriod;
37
- }, string, never, never>, retryJeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
38
- scheduledJournalEntryID: ID;
39
- jeScheduleTransactionKey: JEScheduleTransactionKey;
40
- }, string>, retryJeScheduleFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
41
- scheduledJournalEntryID: ID;
42
- status: ZeniAPIStatus;
43
- }, string>, retryJeScheduleSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
44
- scheduledJournalEntryID: ID;
45
- }, string>, updateJeScheduleLocalDataById: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
46
- scheduledJournalEntryID: ID;
47
- localData: Partial<JEScheduleLocalData>;
48
- }, string>, updateJeScheduleTransactionKeys: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleKeys: (`${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`)[], selectedPeriod: MonthYearPeriod], {
49
- jeScheduleKeys: (`${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`)[];
50
- selectedPeriod: MonthYearPeriod;
51
- }, string, never, never>;
52
- declare const _default: import("@reduxjs/toolkit").Reducer<JESchedulesViewState, import("@reduxjs/toolkit").AnyAction>;
53
- export default _default;