@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
@@ -18,7 +18,7 @@ export declare const saveNotificationSettingsEpic: (actions$: ActionsObservable<
18
18
  type: string;
19
19
  } | {
20
20
  payload: {
21
- 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";
21
+ 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";
22
22
  messageText: "failed" | "success" | "notification";
23
23
  type: import("../../..").SnackbarMessageType;
24
24
  showStatusIcon?: boolean | undefined;
@@ -19,7 +19,6 @@ const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/
19
19
  const userSelector_1 = require("../../../entity/user/userSelector");
20
20
  const addressViewSelector_1 = require("../../addressView/addressViewSelector");
21
21
  const addressSelector_1 = require("../../../entity/address/addressSelector");
22
- const toAddressViewLocalData_1 = require("../../addressView/toAddressViewLocalData");
23
22
  const updateMyProfileEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.updateMyProfile.match), (0, operators_1.switchMap)((action) => {
24
23
  var _a;
25
24
  const userId = (_a = state$.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId;
@@ -80,9 +79,8 @@ const toMyProfileUpdatePayload = (payload, user, userAddress) => {
80
79
  returnValue = Object.assign(Object.assign({}, returnValue), { phone, phone_verification: { otp_challenge: otpChallenge } });
81
80
  }
82
81
  return origin === 'CardUserOnboarding'
83
- ? Object.assign(Object.assign({}, returnValue), { is_card_issue_fulfilment_request: phone != null && otpChallenge != null && birthday != null, address:
84
- //if user address is there pass it otherwise send undefined, platform will default it to company address
85
- userAddress != null
86
- ? (0, addressViewPayload_1.toAddressUpdatableInfoPayload)((0, toAddressViewLocalData_1.getAddressUpdatableInfoFromAddress)(userAddress))
87
- : undefined }) : returnValue;
82
+ ? Object.assign(Object.assign({}, returnValue), { is_card_issue_fulfilment_request: phone != null &&
83
+ otpChallenge != null &&
84
+ birthday != null &&
85
+ address != null }) : returnValue;
88
86
  };
@@ -2,7 +2,6 @@ import { Amount, Currency } from '../../../../commonStateTypes/amount';
2
2
  import { FetchedState, ID } from '../../../../commonStateTypes/common';
3
3
  import { AccountBase } from '../../../../entity/account/accountState';
4
4
  import { ClassBase } from '../../../../entity/class/classState';
5
- import { Country } from '../../../countryList/countryListState';
6
5
  export declare const getBillPayConfigKey: (method: string, subMethod: string) => string;
7
6
  declare type BillPayConfigKey = ReturnType<typeof getBillPayConfigKey>;
8
7
  export declare const getBillPayConfigMethodKey: (method: BillPaymentConfigCodeType, subMethod: BillPaymentSubConfigCodeKeyType, accType?: "depositAccount" | "paymentAccount" | undefined, internationalMethod?: "usdToLocalCurrency" | "usdToUsd" | undefined, internationalSubMethod?: "swiftOur" | "swiftSha" | undefined) => string;
@@ -28,6 +27,10 @@ export interface VendorCurrency extends Currency {
28
27
  currencyName: string;
29
28
  countryCode: string;
30
29
  }
30
+ export interface Country {
31
+ countryCode: string;
32
+ countryName: string;
33
+ }
31
34
  export interface BillPayConfig {
32
35
  minPeriod: ConfigPeriod;
33
36
  maxPeriod: ConfigPeriod;
@@ -26,7 +26,6 @@ import { AccountBase, RecommendedAccountBase } from '../../../../entity/account/
26
26
  import { ClassBase, RecommendedClassBase } from '../../../../entity/class/classState';
27
27
  import { RecurringBillState } from '../../../../entity/billPay/recurringBills/recurringBillsState';
28
28
  import { FundingAccount } from '../../commonSetup/setupViewSelector';
29
- import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
30
29
  export declare type PaymentToOption = {
31
30
  id: ID;
32
31
  type: PaymentModeType;
@@ -108,7 +107,6 @@ export interface EditBillDetailSelectorView extends SelectorView {
108
107
  recurringConfig?: RecurringBillConfigLocalData;
109
108
  recurringBillInstances?: RecurringBillInstance[];
110
109
  isBillMarkedForRetry?: boolean;
111
- internationalWireOnboardingStatus?: AllowedValueWithCode;
112
110
  }
113
111
  export interface EditBillInitialDetails {
114
112
  vendor?: Vendor;
@@ -315,8 +315,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
315
315
  const classHierarchyList = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
316
316
  const duplicateBills = (0, billPayReviewSelector_1.getDuplicateBills)(state, billId);
317
317
  const isProcessing = (0, helpers_1.isBulkProcessing)((_1 = transaction === null || transaction === void 0 ? void 0 : transaction.bulkProcessingDetail) === null || _1 === void 0 ? void 0 : _1.type);
318
- const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId !== null && companyId !== void 0 ? companyId : '', []);
319
- const internationalWireOnboardingStatus = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo.internationalWireOnboardingStatus;
320
318
  return {
321
319
  showVendorGptRecommendationText,
322
320
  recommendedVendor,
@@ -366,7 +364,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
366
364
  recurringConfig,
367
365
  isProcessing,
368
366
  isBillMarkedForRetry,
369
- internationalWireOnboardingStatus,
370
367
  };
371
368
  };
372
369
  exports.getEditBillDetail = getEditBillDetail;
@@ -34,7 +34,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
34
34
  const state = state$.value;
35
35
  const showSkipAutofill = state.editBillDetailViewState.newBillState.showSkipAutofill;
36
36
  if (!showSkipAutofill) {
37
- const file = (0, attachmentPayload_1.mapFileToAttachment)(invoiceProcessingPayload.files[0]);
37
+ const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
38
38
  return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
39
39
  billDetailLocalData: Object.assign(Object.assign({}, editBillViewState_1.initialBillDetail.billDetailLocalData), { file: file }),
40
40
  }), (0, editBillViewReducer_1.updateAddBillAutoFields)(editBillViewState_1.initialBillDetail.addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
@@ -98,7 +98,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
98
98
  }
99
99
  }
100
100
  }
101
- const file = (0, attachmentPayload_1.mapFileToAttachment)(invoiceProcessingPayload.files[0]);
101
+ const file = (0, attachmentPayload_1.mapFiletoAttachment)(invoiceProcessingPayload.files[0]);
102
102
  const finalBill = Object.assign(Object.assign({}, (0, exports.toBillDetailLocalData)(state, showVendorGptRecommendationText, invoiceProcessingPayload.bills[0], finalVendor, recommendedVendorId)), { file: file });
103
103
  const addBillAutoFields = (0, exports.getAutoFieldsData)(finalBill, isVendorWithNewCurrency, vendorNameFromInvoice, currencyInInvoice, vendorCurrency);
104
104
  if (finalVendor != null) {
@@ -1,7 +1,6 @@
1
1
  import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
2
2
  import { RootState } from '../../../../reducer';
3
- import { Country } from '../../../countryList/countryListState';
4
- import { VendorCurrency } from '../billPayConfig/billPayConfigState';
3
+ import { Country, VendorCurrency } from '../billPayConfig/billPayConfigState';
5
4
  import { CreateInternationalWireDetails, DynamicFormField, SupportedAccountType } from './internationalWire';
6
5
  export interface InternationalWireSelectorView extends SelectorView {
7
6
  dynamicForm: DynamicFormField[];
@@ -8,8 +8,6 @@ export declare const initializeCardUserOnboardingLocalData: import("@reduxjs/too
8
8
  localData: CardUserOnboardingLocalData;
9
9
  }, string>, sendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
10
  otpChallenge: string;
11
- }, string>, sendOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveCardOnboardingUserDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, startActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, completeActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewCompleteAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setCurrentDisplayedCardId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
- cardId: ID;
13
- }, string>, clearCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
11
+ }, string>, sendOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOtpCardUserOnboardingFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveCardOnboardingUserDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, startActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, completeActivationWait: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setFirstViewCompleteAfterActivation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearCardUserOnboarding: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
14
12
  declare const _default: import("@reduxjs/toolkit").Reducer<CardUserOnboardingState, import("@reduxjs/toolkit").AnyAction>;
15
13
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.clearCardUserOnboarding = exports.setCurrentDisplayedCardId = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeActivationWait = exports.startActivationWait = exports.saveCardOnboardingUserDetails = exports.verifyOtpCardUserOnboardingFailure = exports.verifyOtpCardUserOnboardingSuccess = exports.verifyOtpCardUserOnboarding = exports.resendOtpCardUserOnboarding = exports.sendOtpCardUserOnboardingFailure = exports.sendOtpCardUserOnboardingSuccess = exports.sendOtpCardUserOnboarding = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.initialState = void 0;
4
+ exports.clearCardUserOnboarding = exports.setFirstViewCompleteAfterActivation = exports.setFirstViewAfterActivation = exports.completeActivationWait = exports.startActivationWait = exports.saveCardOnboardingUserDetails = exports.verifyOtpCardUserOnboardingFailure = exports.verifyOtpCardUserOnboardingSuccess = exports.verifyOtpCardUserOnboarding = exports.resendOtpCardUserOnboarding = exports.sendOtpCardUserOnboardingFailure = exports.sendOtpCardUserOnboardingSuccess = exports.sendOtpCardUserOnboarding = exports.updateCardUserOnboardingLocalData = exports.initializeCardUserOnboardingLocalData = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  exports.initialState = {
7
7
  cardUserOnboardingLocalData: undefined,
@@ -68,10 +68,6 @@ const cardUserOnboarding = (0, toolkit_1.createSlice)({
68
68
  draft.verifyOtpStatus.fetchState = 'Error';
69
69
  draft.verifyOtpStatus.error = action.payload;
70
70
  },
71
- setCurrentDisplayedCardId(draft, action) {
72
- const { cardId } = action.payload;
73
- draft.currentDisplayedCardId = cardId;
74
- },
75
71
  saveCardOnboardingUserDetails(
76
72
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
77
73
  _draft) {
@@ -94,5 +90,5 @@ const cardUserOnboarding = (0, toolkit_1.createSlice)({
94
90
  },
95
91
  },
96
92
  });
97
- _a = cardUserOnboarding.actions, exports.initializeCardUserOnboardingLocalData = _a.initializeCardUserOnboardingLocalData, exports.updateCardUserOnboardingLocalData = _a.updateCardUserOnboardingLocalData, exports.sendOtpCardUserOnboarding = _a.sendOtpCardUserOnboarding, exports.sendOtpCardUserOnboardingSuccess = _a.sendOtpCardUserOnboardingSuccess, exports.sendOtpCardUserOnboardingFailure = _a.sendOtpCardUserOnboardingFailure, exports.resendOtpCardUserOnboarding = _a.resendOtpCardUserOnboarding, exports.verifyOtpCardUserOnboarding = _a.verifyOtpCardUserOnboarding, exports.verifyOtpCardUserOnboardingSuccess = _a.verifyOtpCardUserOnboardingSuccess, exports.verifyOtpCardUserOnboardingFailure = _a.verifyOtpCardUserOnboardingFailure, exports.saveCardOnboardingUserDetails = _a.saveCardOnboardingUserDetails, exports.startActivationWait = _a.startActivationWait, exports.completeActivationWait = _a.completeActivationWait, exports.setFirstViewAfterActivation = _a.setFirstViewAfterActivation, exports.setFirstViewCompleteAfterActivation = _a.setFirstViewCompleteAfterActivation, exports.setCurrentDisplayedCardId = _a.setCurrentDisplayedCardId, exports.clearCardUserOnboarding = _a.clearCardUserOnboarding;
93
+ _a = cardUserOnboarding.actions, exports.initializeCardUserOnboardingLocalData = _a.initializeCardUserOnboardingLocalData, exports.updateCardUserOnboardingLocalData = _a.updateCardUserOnboardingLocalData, exports.sendOtpCardUserOnboarding = _a.sendOtpCardUserOnboarding, exports.sendOtpCardUserOnboardingSuccess = _a.sendOtpCardUserOnboardingSuccess, exports.sendOtpCardUserOnboardingFailure = _a.sendOtpCardUserOnboardingFailure, exports.resendOtpCardUserOnboarding = _a.resendOtpCardUserOnboarding, exports.verifyOtpCardUserOnboarding = _a.verifyOtpCardUserOnboarding, exports.verifyOtpCardUserOnboardingSuccess = _a.verifyOtpCardUserOnboardingSuccess, exports.verifyOtpCardUserOnboardingFailure = _a.verifyOtpCardUserOnboardingFailure, exports.saveCardOnboardingUserDetails = _a.saveCardOnboardingUserDetails, exports.startActivationWait = _a.startActivationWait, exports.completeActivationWait = _a.completeActivationWait, exports.setFirstViewAfterActivation = _a.setFirstViewAfterActivation, exports.setFirstViewCompleteAfterActivation = _a.setFirstViewCompleteAfterActivation, exports.clearCardUserOnboarding = _a.clearCardUserOnboarding;
98
94
  exports.default = cardUserOnboarding.reducer;
@@ -1,7 +1,8 @@
1
1
  import { View } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
2
2
  import { RootState } from '../../../../reducer';
3
3
  import { CardUserOnboardingLocalData } from './cardUserOnboardingState';
4
- import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
4
+ import { FetchStateAndError } from '../../../../commonStateTypes/common';
5
+ import { NewAddressData } from '../../../addressView/addressViewState';
5
6
  import { TwoFactorAuthenticationView } from '../../../twoFactorAuthentication/twoFactorAuthenticationSelector';
6
7
  export interface CardUserOnboardingView extends View {
7
8
  cardUserOnboardingLocalData?: CardUserOnboardingLocalData;
@@ -12,6 +13,6 @@ export interface CardUserOnboardingView extends View {
12
13
  updateStatus: FetchStateAndError;
13
14
  sendOtpStatus: FetchStateAndError;
14
15
  verifyOtpStatus: FetchStateAndError;
15
- currentDisplayedCardId?: ID;
16
+ addressData?: NewAddressData;
16
17
  }
17
18
  export declare const getCardUserOnboardingView: (state: RootState) => CardUserOnboardingView;
@@ -5,8 +5,8 @@ const toolkit_1 = require("@reduxjs/toolkit");
5
5
  const twoFactorAuthenticationSelector_1 = require("../../../twoFactorAuthentication/twoFactorAuthenticationSelector");
6
6
  const reduceFetchState_1 = require("../../../../commonStateTypes/reduceFetchState");
7
7
  const userSelector_1 = require("../../../../entity/user/userSelector");
8
- exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => state, (state) => state.cardUserOnboardingState, (state) => state.settingsViewState, (state) => state.tenantState, (state) => state.userState, (state, cardUserOnboardingState, settingsViewState, tenantState, userState) => {
9
- var _a;
8
+ exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => state, (state) => state.addressViewState, (state) => state.cardUserOnboardingState, (state) => state.settingsViewState, (state) => state.tenantState, (state) => state.userState, (state, addressViewState, cardUserOnboardingState, settingsViewState, tenantState, userState) => {
9
+ var _a, _b;
10
10
  const twoFAView = (0, twoFactorAuthenticationSelector_1.getTwoFactorAuthenticationView)(state);
11
11
  const updateStatus = (0, reduceFetchState_1.reduceAllFetchState)([
12
12
  settingsViewState.profile.updateStatus,
@@ -22,6 +22,7 @@ exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => sta
22
22
  const isDOBPresent = (user === null || user === void 0 ? void 0 : user.birthday) != null;
23
23
  return {
24
24
  cardUserOnboardingLocalData: cardUserOnboardingState.cardUserOnboardingLocalData,
25
+ addressData: (_b = addressViewState.newAddressState) === null || _b === void 0 ? void 0 : _b['user_address'],
25
26
  onboardingProgressStatus: updateStatus,
26
27
  updateStatus: settingsViewState.profile.updateStatus,
27
28
  sendOtpStatus: cardUserOnboardingState.sendOtpStatus,
@@ -29,6 +30,5 @@ exports.getCardUserOnboardingView = (0, toolkit_1.createSelector)((state) => sta
29
30
  twoFAView,
30
31
  isDOBPresent,
31
32
  firstViewAfterActivation: cardUserOnboardingState.firstViewAfterActivation,
32
- currentDisplayedCardId: cardUserOnboardingState.currentDisplayedCardId,
33
33
  };
34
34
  });
@@ -2,6 +2,9 @@ import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
2
2
  import { ZeniDate } from '../../../../zeniDayJS';
3
3
  export interface CardUserOnboardingLocalData {
4
4
  userId: ID;
5
+ firstName: string;
6
+ lastName: string;
7
+ email: string;
5
8
  phone?: string;
6
9
  isPhoneVerified?: boolean;
7
10
  otpChallenge?: string;
@@ -14,5 +17,4 @@ export interface CardUserOnboardingState {
14
17
  verifyOtpStatus: FetchStateAndError;
15
18
  activationWaitStatus: FetchStateAndError;
16
19
  firstViewAfterActivation: boolean;
17
- currentDisplayedCardId?: ID;
18
20
  }
@@ -1,6 +1,7 @@
1
1
  import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RootState } from '../../../../../reducer';
4
+ import { newAddressInLocalStore, resetNewAddressDataInLocalStore } from '../../../../addressView/addressViewReducer';
4
5
  import { initializeCardUserOnboardingLocalData, updateCardUserOnboardingLocalData } from '../cardUserOnboardingReducer';
5
- export declare type ActionType = ReturnType<typeof initializeCardUserOnboardingLocalData> | ReturnType<typeof updateCardUserOnboardingLocalData>;
6
+ export declare type ActionType = ReturnType<typeof initializeCardUserOnboardingLocalData> | ReturnType<typeof updateCardUserOnboardingLocalData> | ReturnType<typeof newAddressInLocalStore> | ReturnType<typeof resetNewAddressDataInLocalStore>;
6
7
  export declare const initializeCardUserOnboardingLocalDataEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -3,16 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initializeCardUserOnboardingLocalDataEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
+ const addressSelector_1 = require("../../../../../entity/address/addressSelector");
7
+ const addressViewReducer_1 = require("../../../../addressView/addressViewReducer");
6
8
  const cardUserOnboardingReducer_1 = require("../cardUserOnboardingReducer");
7
9
  const userRoleSelector_1 = require("../../../../../entity/userRole/userRoleSelector");
8
10
  const userSelector_1 = require("../../../../../entity/user/userSelector");
11
+ const chargeCardSelector_1 = require("../../../../../entity/chargeCard/chargeCardSelector");
9
12
  const initializeCardUserOnboardingLocalDataEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(cardUserOnboardingReducer_1.initializeCardUserOnboardingLocalData.match), (0, operators_1.mergeMap)((action) => {
10
13
  const { userId } = action.payload;
14
+ const actions = [
15
+ (0, addressViewReducer_1.resetNewAddressDataInLocalStore)('user_address'),
16
+ ];
11
17
  const userState = state$.value.userState;
12
18
  const userRoleState = state$.value.userRoleState;
13
19
  const user = (0, userSelector_1.getUserByUserId)(userState, userId);
14
20
  const userRole = (0, userRoleSelector_1.getUserRoleByUserId)(userRoleState, userId);
15
- const actions = [];
21
+ const userCards = (0, chargeCardSelector_1.getChargeCardsByHolderUserId)(state$.value.chargeCardState, userId);
22
+ const userAddress = (userRole === null || userRole === void 0 ? void 0 : userRole.addressId) != null
23
+ ? (0, addressSelector_1.getAddressByAddressId)(state$.value.addressState, userRole.addressId)
24
+ : userCards.length > 0
25
+ ? (0, addressSelector_1.getAddressByAddressId)(state$.value.addressState, userCards[0].billingAddressId)
26
+ : undefined;
27
+ if (userAddress != null) {
28
+ actions.push((0, addressViewReducer_1.newAddressInLocalStore)({
29
+ addressType: 'user_address',
30
+ addressToCreate: userAddress,
31
+ }));
32
+ }
16
33
  if (user != null && userRole != null) {
17
34
  const dateOfBirth = user.birthday;
18
35
  const phoneNumber = user.phone;
@@ -20,6 +37,9 @@ const initializeCardUserOnboardingLocalDataEpic = (actions$, state$) => actions$
20
37
  const syncToken = user === null || user === void 0 ? void 0 : user.syncToken;
21
38
  const cardUserOnboardingLocalData = {
22
39
  userId,
40
+ firstName: user.firstName,
41
+ lastName: user.lastName,
42
+ email: user.email,
23
43
  dateOfBirth,
24
44
  phone: phoneNumber,
25
45
  isPhoneVerified,
@@ -6,9 +6,11 @@ const operators_1 = require("rxjs/operators");
6
6
  const cardUserOnboardingReducer_1 = require("../cardUserOnboardingReducer");
7
7
  const settingsViewReducer_1 = require("../../../../settingsView/settingsViewReducer");
8
8
  const saveCardOnboardingUserDetailsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(cardUserOnboardingReducer_1.saveCardOnboardingUserDetails.match), (0, operators_1.mergeMap)(() => {
9
+ var _a;
9
10
  const localData = state$.value.cardUserOnboardingState.cardUserOnboardingLocalData;
11
+ const address = (_a = state$.value.addressViewState.newAddressState) === null || _a === void 0 ? void 0 : _a.user_address.addressToCreate;
10
12
  return (0, rxjs_1.from)([
11
- (0, settingsViewReducer_1.updateMyProfile)('CardUserOnboarding', localData === null || localData === void 0 ? void 0 : localData.phone, localData === null || localData === void 0 ? void 0 : localData.otpChallenge, localData === null || localData === void 0 ? void 0 : localData.dateOfBirth),
13
+ (0, settingsViewReducer_1.updateMyProfile)('CardUserOnboarding', localData === null || localData === void 0 ? void 0 : localData.phone, localData === null || localData === void 0 ? void 0 : localData.otpChallenge, localData === null || localData === void 0 ? void 0 : localData.dateOfBirth, address),
12
14
  ]);
13
15
  }));
14
16
  exports.saveCardOnboardingUserDetailsEpic = saveCardOnboardingUserDetailsEpic;
@@ -9,7 +9,6 @@ interface ChargeCardDetail extends FetchedState {
9
9
  id: ID;
10
10
  transactionList: ChargeCardDetailTransactionList;
11
11
  updateStatus: FetchStateAndError;
12
- updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
13
12
  }
14
13
  export declare const toChargeCardTransactionSortKeyType: (v: string) => "type" | "amount" | "merchant" | "paymentDate" | "receipts";
15
14
  export declare type ChargeCardTransactionSortKey = ReturnType<typeof toChargeCardTransactionSortKeyType>;
@@ -44,8 +44,4 @@ exports.emptyChargeCardDetail = {
44
44
  fetchState: 'Not-Started',
45
45
  error: undefined,
46
46
  },
47
- updatePhysicalChargeCardAttemptFetchState: {
48
- fetchState: 'Not-Started',
49
- error: undefined,
50
- },
51
47
  };
@@ -42,14 +42,7 @@ export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").Actio
42
42
  cardId: ID;
43
43
  transactionId: ID;
44
44
  status: ZeniAPIStatus;
45
- }, string>, updatePhysicalChargeCardAttemptSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
46
- chargeCardId: ID;
47
- fetchState: FetchState;
48
- error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
49
- }, string>, updatePhysicalChargeCardAttempt: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, statusCode: "failed" | "success"], {
50
- chargeCardId: string;
51
- statusCode: "failed" | "success";
52
- }, string, never, never>, updateChargeCardTransactionReceiptsShowTickFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
45
+ }, string>, updateChargeCardTransactionReceiptsShowTickFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
53
46
  transactionId: ID;
54
47
  chargeCardId: ID;
55
48
  shouldShowTick: boolean;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.clearChargeCardDetail = exports.updateChargeCardDetailUpdateStatus = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updatePhysicalChargeCardAttempt = exports.updatePhysicalChargeCardAttemptSuccessOrFailure = exports.updateChargeCardTransactionAttachmentsFailure = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.updateChargeCardTransactionList = exports.updateChargeCardDetailUIState = exports.fetchChargeCardTransactionList = exports.updateChargeCardDetailFetchState = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.initialState = void 0;
4
+ exports.clearChargeCardDetail = exports.updateChargeCardDetailUpdateStatus = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateChargeCardTransactionAttachmentsFailure = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.updateChargeCardTransactionList = exports.updateChargeCardDetailUIState = exports.fetchChargeCardTransactionList = exports.updateChargeCardDetailFetchState = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const sortOrderPayload_1 = require("../../../../commonPayloadTypes/sortOrderPayload");
7
7
  const attachmentPayload_1 = require("../../../../entity/transaction/payloadTypes/attachmentPayload");
@@ -94,29 +94,6 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
94
94
  const existingCardDetail = draft.detailById[chargeCardId];
95
95
  draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { transactionList: Object.assign(Object.assign({}, existingCardDetail.transactionList), { fetchState: 'Error', error }) });
96
96
  },
97
- updatePhysicalChargeCardAttempt: {
98
- reducer(draft, action) {
99
- const { chargeCardId } = action.payload;
100
- const existingCardDetail = draft.detailById[chargeCardId];
101
- draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
102
- fetchState: 'In-Progress',
103
- error: undefined,
104
- } });
105
- },
106
- prepare(chargeCardId, statusCode) {
107
- return {
108
- payload: { chargeCardId, statusCode },
109
- };
110
- },
111
- },
112
- updatePhysicalChargeCardAttemptSuccessOrFailure(draft, action) {
113
- const { chargeCardId, fetchState, error } = action.payload;
114
- const existingCardDetail = draft.detailById[chargeCardId];
115
- draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
116
- fetchState,
117
- error,
118
- } });
119
- },
120
97
  updateChargeCardDetail: {
121
98
  reducer(draft, action) {
122
99
  const { chargeCardId } = action.payload;
@@ -204,5 +181,5 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
204
181
  },
205
182
  },
206
183
  });
207
- _a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.updatePhysicalChargeCardAttemptSuccessOrFailure = _a.updatePhysicalChargeCardAttemptSuccessOrFailure, exports.updatePhysicalChargeCardAttempt = _a.updatePhysicalChargeCardAttempt, exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = _a.updateChargeCardTransactionReceiptsShowTickFetchStatus, exports.updateChargeCardTransactionAttachmentsInCardDetail = _a.updateChargeCardTransactionAttachmentsInCardDetail, exports.updateChargeCardTransactionListFailure = _a.updateChargeCardTransactionListFailure, exports.updateChargeCardDetail = _a.updateChargeCardDetail, exports.updateChargeCardDetailUpdateStatus = _a.updateChargeCardDetailUpdateStatus, exports.clearChargeCardDetail = _a.clearChargeCardDetail;
184
+ _a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = _a.updateChargeCardTransactionReceiptsShowTickFetchStatus, exports.updateChargeCardTransactionAttachmentsInCardDetail = _a.updateChargeCardTransactionAttachmentsInCardDetail, exports.updateChargeCardTransactionListFailure = _a.updateChargeCardTransactionListFailure, exports.updateChargeCardDetail = _a.updateChargeCardDetail, exports.updateChargeCardDetailUpdateStatus = _a.updateChargeCardDetailUpdateStatus, exports.clearChargeCardDetail = _a.clearChargeCardDetail;
208
185
  exports.default = chargeCardDetail.reducer;
@@ -18,7 +18,6 @@ export interface ChargeCardDetailSelectorView extends SelectorView {
18
18
  twoFAView: TwoFactorAuthenticationView;
19
19
  loggedInUserPhone: string;
20
20
  updateFetchState: FetchStateAndError;
21
- updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
22
21
  chargeCard?: ChargeCardWithUser;
23
22
  }
24
23
  export declare const getChargeCardDetailView: (state: RootState, chargeCardId: ID) => ChargeCardDetailSelectorView;
@@ -15,7 +15,7 @@ const userRoleSelector_1 = require("../../../../entity/userRole/userRoleSelector
15
15
  const chargeCardDetail_1 = require("./chargeCardDetail");
16
16
  const twoFactorAuthenticationSelector_1 = require("../../../twoFactorAuthentication/twoFactorAuthenticationSelector");
17
17
  const getChargeCardDetailView = (state, chargeCardId) => {
18
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19
19
  const { tenantState, addressState, chargeCardDetailState, chargeCardState, classState, userState, userRoleState, chargeCardConfigState, chargeCardTransactionState, } = state;
20
20
  const twoFactorAuthenticationView = (0, twoFactorAuthenticationSelector_1.getTwoFactorAuthenticationView)(state);
21
21
  const loggedInUserId = (_b = (_a = tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
@@ -79,17 +79,13 @@ const getChargeCardDetailView = (state, chargeCardId) => {
79
79
  fetchState: 'Not-Started',
80
80
  error: undefined,
81
81
  },
82
- updatePhysicalChargeCardAttemptFetchState: (_g = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.updatePhysicalChargeCardAttemptFetchState) !== null && _g !== void 0 ? _g : {
83
- fetchState: 'Not-Started',
84
- error: undefined,
85
- },
86
82
  chargeCard: chargeCardWithUser,
87
83
  error: reducedFetchState.error,
88
84
  chargeCardConfig: chargeCardConfigState,
89
85
  transactions,
90
- uploadReceiptsFetchStateByTransactionId: (_h = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsFetchStateByTransactionId) !== null && _h !== void 0 ? _h : {},
91
- uploadReceiptsShowTickByTransactionId: (_j = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsShowTickByTransactionId) !== null && _j !== void 0 ? _j : {},
92
- isViewReceiptClickedImmediatelyAfterUploadTransactionId: (_k = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.isViewReceiptClickedImmediatelyAfterUploadTransactionId) !== null && _k !== void 0 ? _k : {},
86
+ uploadReceiptsFetchStateByTransactionId: (_g = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsFetchStateByTransactionId) !== null && _g !== void 0 ? _g : {},
87
+ uploadReceiptsShowTickByTransactionId: (_h = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.uploadReceiptsShowTickByTransactionId) !== null && _h !== void 0 ? _h : {},
88
+ isViewReceiptClickedImmediatelyAfterUploadTransactionId: (_j = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.transactionList.isViewReceiptClickedImmediatelyAfterUploadTransactionId) !== null && _j !== void 0 ? _j : {},
93
89
  uiState,
94
90
  transactionListFetchState,
95
91
  twoFAView: twoFactorAuthenticationView,
@@ -26,8 +26,7 @@ const fetchChargeCardDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((
26
26
  fetchState: 'In-Progress',
27
27
  }));
28
28
  const getChargeCardDetail$ = zeniAPI
29
- .getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}?query={
30
- "is_include_card_activation_events":true}`)
29
+ .getJSON(`${zeniAPI.apiEndPoints.cardMicroServiceBaseUrl}/1.0/cards/${chargeCardId}`)
31
30
  .pipe((0, operators_1.mergeMap)((response) => {
32
31
  if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
33
32
  return (0, rxjs_1.of)((0, chargeCardReducer_1.updateChargeCard)(response.data.card), (0, userReducer_1.updateAllUsers)({ users: response.data.users }), (0, userRoleReducer_1.updateUserRoles)(response.data.user_roles), (0, addressReducer_1.updateAddresses)(response.data.addresses), (0, chargeCardDetailReducer_1.updateChargeCardDetailFetchState)({
@@ -1,10 +1,12 @@
1
1
  import { Amount } from '../../../../commonStateTypes/amount';
2
2
  import { FetchedState, FetchStateAndError, ID } from '../../../../commonStateTypes/common';
3
+ import { CreditLimitFrequencyCodeType } from '../../../../entity/chargeCard/chargeCard';
3
4
  import { SpendManagementUIState } from '../../billPay/billList/billListState';
4
5
  export interface ChargeCardListState extends FetchedState {
5
6
  cardIds: ID[];
6
7
  uiState: ChargeCardListUIState;
7
8
  creditAccount: CreditAccount;
9
+ issueChargeCard: IssueChargeCard;
8
10
  searchText: string;
9
11
  unAssignedCredits?: Amount;
10
12
  resendCardInvite: ResendRevokeCardInvite;
@@ -17,6 +19,16 @@ export interface ResendRevokeCardInvite {
17
19
  export interface ChargeCardListUIState extends SpendManagementUIState {
18
20
  sortKey: ChargeCardViewSortKey;
19
21
  }
22
+ export interface IssueChargeCard {
23
+ localData: ChargeCardLocalData;
24
+ saveStatus: FetchStateAndError;
25
+ }
26
+ export interface ChargeCardLocalData {
27
+ userIds: ID[];
28
+ cardName: string;
29
+ amount?: Amount;
30
+ frequency: CreditLimitFrequencyCodeType;
31
+ }
20
32
  export interface CreditAccount extends FetchStateAndError {
21
33
  id: ID;
22
34
  status: CreditAccountStatusType;
@@ -27,8 +39,9 @@ export interface CreditAccount extends FetchStateAndError {
27
39
  cashback?: Amount;
28
40
  }
29
41
  export declare const initialCreditAcc: CreditAccount;
42
+ export declare const initialIssueChargeCard: IssueChargeCard;
30
43
  export declare const initialResendRevokeCardInvite: ResendRevokeCardInvite;
31
- export declare const toChargeCardSortKeyType: (v: string) => "status" | "owner" | "limit" | "department" | "cardName" | "utilisation";
44
+ export declare const toChargeCardSortKeyType: (v: string) => "owner" | "department" | "cardName" | "utilisation" | "limit";
32
45
  export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
33
46
  export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
34
47
  export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCreditAccountStatusType = exports.toCashbackSortKeyType = exports.ALL_CASHBACK_SORT_KEYS = exports.toChargeCardSortKeyType = exports.initialResendRevokeCardInvite = exports.initialCreditAcc = void 0;
3
+ exports.toCreditAccountStatusType = exports.toCashbackSortKeyType = exports.ALL_CASHBACK_SORT_KEYS = exports.toChargeCardSortKeyType = exports.initialResendRevokeCardInvite = exports.initialIssueChargeCard = exports.initialCreditAcc = void 0;
4
4
  const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
5
5
  exports.initialCreditAcc = {
6
6
  fetchState: 'Not-Started',
@@ -33,6 +33,18 @@ exports.initialCreditAcc = {
33
33
  currencySymbol: '$',
34
34
  },
35
35
  };
36
+ exports.initialIssueChargeCard = {
37
+ localData: {
38
+ userIds: [],
39
+ cardName: '',
40
+ amount: undefined,
41
+ frequency: 'monthly',
42
+ },
43
+ saveStatus: {
44
+ fetchState: 'Not-Started',
45
+ error: undefined,
46
+ },
47
+ };
36
48
  exports.initialResendRevokeCardInvite = {
37
49
  cardId: undefined,
38
50
  saveStatus: {
@@ -44,7 +56,6 @@ const ALL_CHARGE_CARD_SORT_KEYS = [
44
56
  'owner',
45
57
  'cardName',
46
58
  'department',
47
- 'status',
48
59
  'utilisation',
49
60
  'limit',
50
61
  ];
@@ -1,7 +1,7 @@
1
1
  import { ZeniAPIStatus } from '../../../../responsePayload';
2
2
  import { ChargeCardListPayload, CreditAccountPayload } from './chargeCardListPayload';
3
- import { ChargeCardListState, ChargeCardListUIState } from './chargeCardList';
4
- import { ID } from '../../../../commonStateTypes/common';
3
+ import { ChargeCardListState, ChargeCardListUIState, ChargeCardLocalData } from './chargeCardList';
4
+ import { FetchState, ID } from '../../../../commonStateTypes/common';
5
5
  export declare const initialState: ChargeCardListState;
6
6
  export declare const fetchChargeCardListPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[doFetchCreditAccountsAndCashback: boolean, cacheOverride?: any], {
7
7
  doFetchCreditAccountsAndCashback: boolean;
@@ -9,7 +9,10 @@ export declare const fetchChargeCardListPage: import("@reduxjs/toolkit").ActionC
9
9
  }, string, never, never>, fetchCreditAccount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateCreditAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<CreditAccountPayload[], string>, updateCreditAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, fetchChargeCardList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateChargeCardList: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
10
  chargeCardListPayload: ChargeCardListPayload;
11
11
  keepExistingListItems?: boolean | undefined;
12
- }, string>, updateChargeCardListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, updateSearchText: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, updateChargeCardListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
+ }, string>, updateChargeCardListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, issueChargeCard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateChargeCardLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<ChargeCardLocalData, string>, issueChargeCardSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
+ fetchState: FetchState;
14
+ error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
15
+ }, string>, resetIssueChargeCardForm: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateSearchText: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, updateChargeCardListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
16
  uiState: Partial<ChargeCardListUIState>;
14
17
  }, string>, clearChargeCardList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resendCardInvite: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cardId: string], {
15
18
  cardId: string;