@zeniai/client-epic-state 4.13.15 → 4.13.17

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 (319) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +7 -0
  2. package/lib/commonStateTypes/common.d.ts +2 -0
  3. package/lib/commonStateTypes/common.js +5 -1
  4. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +1 -0
  5. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -1
  6. package/lib/commonStateTypes/timePeriod.d.ts +16 -0
  7. package/lib/commonStateTypes/timePeriod.js +31 -1
  8. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  9. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  11. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
  12. package/lib/entity/account/accountState.d.ts +1 -1
  13. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  14. package/lib/entity/chargeCard/chargeCard.d.ts +16 -2
  15. package/lib/entity/chargeCard/chargeCard.js +18 -1
  16. package/lib/entity/chargeCard/chargeCardPayload.d.ts +14 -5
  17. package/lib/entity/chargeCard/chargeCardPayload.js +24 -7
  18. package/lib/entity/class/classReducer.d.ts +4 -4
  19. package/lib/entity/class/classState.d.ts +1 -1
  20. package/lib/entity/company/companyPayload.d.ts +4 -0
  21. package/lib/entity/company/companyPayload.js +6 -3
  22. package/lib/entity/company/companyReducer.d.ts +4 -1
  23. package/lib/entity/company/companyReducer.js +6 -2
  24. package/lib/entity/company/companyStateTypes.d.ts +5 -1
  25. package/lib/entity/file/fileState.d.ts +3 -3
  26. package/lib/entity/file/fileState.js +2 -0
  27. package/lib/entity/forecast/forecastState.d.ts +1 -1
  28. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
  29. package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -1
  30. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  31. package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +3 -1
  32. package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
  33. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +3 -1
  34. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -0
  35. package/lib/entity/jeSchedules/jeSchedulesTypes.js +12 -1
  36. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +32 -0
  37. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +60 -0
  38. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +12 -0
  39. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +25 -0
  40. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +7 -0
  41. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +36 -0
  42. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +38 -0
  43. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +10 -0
  44. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  45. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  46. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  47. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  48. package/lib/entity/snackbar/snackbarTypes.js +5 -0
  49. package/lib/entity/tenant/clearAllEpic.d.ts +12 -2
  50. package/lib/entity/tenant/clearAllEpic.js +20 -0
  51. package/lib/entity/tenant/epic/fetchActiveTenantEpic.d.ts +2 -1
  52. package/lib/entity/tenant/epic/fetchActiveTenantEpic.js +9 -1
  53. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +7 -1
  54. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +34 -2
  55. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  56. package/lib/entity/tenant/tenantReducer.js +3 -0
  57. package/lib/entity/tenant/tenantState.d.ts +1 -0
  58. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  59. package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
  60. package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
  61. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  62. package/lib/entity/transaction/transactionSelector.d.ts +1 -0
  63. package/lib/entity/transaction/transactionSelector.js +7 -1
  64. package/lib/entity/user/userPayload.d.ts +1 -0
  65. package/lib/entity/user/userReducer.js +9 -8
  66. package/lib/entity/user/userState.d.ts +1 -0
  67. package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
  68. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +35 -1
  69. package/lib/entity/vendor/vendorPayload.js +3 -2
  70. package/lib/entity/vendor/vendorState.d.ts +3 -3
  71. package/lib/entity/vendor/vendorType.d.ts +0 -2
  72. package/lib/entity/vendor/vendorType.js +1 -4
  73. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  74. package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -0
  75. package/lib/epic.d.ts +20 -2
  76. package/lib/epic.js +20 -2
  77. package/lib/index.d.ts +65 -21
  78. package/lib/index.js +104 -28
  79. package/lib/reducer.d.ts +31 -1
  80. package/lib/reducer.js +31 -1
  81. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +7 -1
  82. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +7 -1
  83. package/lib/view/addressView/addressViewState.d.ts +1 -1
  84. package/lib/view/addressView/toAddressViewLocalData.d.ts +2 -0
  85. package/lib/view/addressView/toAddressViewLocalData.js +9 -3
  86. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  87. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  88. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  89. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  90. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  91. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  92. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  93. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  94. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  95. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  96. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  97. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  98. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +10 -5
  99. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +10 -7
  100. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
  101. package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
  102. package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +5 -3
  103. package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
  104. package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
  105. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +1 -6
  106. package/lib/view/companyView/selectorHelpers/getCompanyView.js +4 -0
  107. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  108. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +2 -0
  109. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +7 -1
  110. package/lib/view/companyView/types/companyView.d.ts +1 -0
  111. package/lib/view/countryList/countryListReducer.d.ts +17 -0
  112. package/lib/view/countryList/countryListReducer.js +58 -0
  113. package/lib/view/countryList/countryListSelector.d.ts +7 -0
  114. package/lib/view/countryList/countryListSelector.js +13 -0
  115. package/lib/view/countryList/countryListState.d.ts +12 -0
  116. package/lib/view/countryList/countryListState.js +2 -0
  117. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +6 -0
  118. package/lib/view/countryList/epics/fetchCountryListEpic.js +19 -0
  119. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +7 -0
  120. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +38 -0
  121. package/lib/view/countryList/payloads/countryListPayload.d.ts +6 -0
  122. package/lib/view/countryList/payloads/countryListPayload.js +10 -0
  123. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +11 -0
  124. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +2 -0
  125. package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
  126. package/lib/view/dashboard/dashboardEpic.js +22 -2
  127. package/lib/view/dashboard/dashboardReducer.d.ts +3 -2
  128. package/lib/view/dashboard/dashboardReducer.js +2 -1
  129. package/lib/view/dashboard/dashboardSelector.d.ts +2 -0
  130. package/lib/view/dashboard/dashboardSelector.js +10 -2
  131. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +10 -0
  132. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +73 -0
  133. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +11 -0
  134. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +55 -0
  135. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +11 -0
  136. package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +72 -0
  137. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +12 -0
  138. package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +77 -0
  139. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +7 -0
  140. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +22 -0
  141. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +8 -0
  142. package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +59 -0
  143. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +8 -0
  144. package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +78 -0
  145. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +6 -0
  146. package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +28 -0
  147. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +9 -0
  148. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +78 -0
  149. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +8 -0
  150. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +58 -0
  151. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +10 -0
  152. package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +12 -0
  153. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +3 -0
  154. package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +2 -0
  155. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +17 -0
  156. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +66 -0
  157. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +3 -0
  158. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +100 -0
  159. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +11 -0
  160. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +14 -0
  161. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +7 -0
  162. package/lib/view/expenseAutomationView/helpers/helpers.js +67 -0
  163. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +76 -0
  164. package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +9 -0
  165. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +36 -0
  166. package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -0
  167. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +16 -0
  168. package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +2 -0
  169. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +47 -0
  170. package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +241 -0
  171. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +53 -0
  172. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +245 -0
  173. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +31 -0
  174. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +130 -0
  175. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -0
  176. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -0
  177. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +34 -0
  178. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +44 -0
  179. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +32 -0
  180. package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +2 -0
  181. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +28 -0
  182. package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +2 -0
  183. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +11 -0
  184. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +2 -0
  185. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +3 -0
  186. package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +89 -0
  187. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +7 -0
  188. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +95 -0
  189. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +3 -0
  190. package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +61 -0
  191. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +54 -0
  192. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +5 -0
  193. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +31 -0
  194. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +2 -0
  195. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +20 -0
  196. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +13 -0
  197. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +28 -0
  198. package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -0
  199. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  200. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  201. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +8 -0
  202. package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +58 -0
  203. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +3 -0
  204. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +2 -0
  205. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +16 -0
  206. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +36 -0
  207. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +10 -0
  208. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +27 -0
  209. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +5 -0
  210. package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +2 -0
  211. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +8 -1
  212. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +3 -1
  213. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +5 -4
  214. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +2 -0
  215. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +6 -3
  216. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  217. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  218. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  219. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  220. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  221. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  222. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  223. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  224. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +3 -2
  225. package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
  226. package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
  227. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +19 -5
  228. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -3
  229. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +39 -57
  230. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +13 -8
  231. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +19 -12
  232. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +1 -0
  233. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +4 -3
  234. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +2 -0
  235. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +1 -1
  236. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  237. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  238. package/lib/view/settingsView/epic/updateMyProfileEpic.js +6 -4
  239. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -4
  240. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -0
  241. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
  242. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
  243. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +2 -1
  244. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +7 -0
  245. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +36 -0
  246. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +6 -0
  247. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +42 -0
  248. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +9 -0
  249. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +67 -0
  250. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +26 -0
  251. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +22 -0
  252. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +22 -0
  253. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +89 -0
  254. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +15 -0
  255. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +30 -0
  256. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +20 -0
  257. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +2 -0
  258. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +3 -1
  259. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +6 -2
  260. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +2 -3
  261. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
  262. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +1 -3
  263. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +1 -2
  264. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +1 -21
  265. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +1 -3
  266. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -0
  267. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +4 -0
  268. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +8 -1
  269. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +25 -2
  270. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +1 -0
  271. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +8 -4
  272. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -1
  273. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +11 -0
  274. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +42 -0
  275. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -14
  276. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +2 -13
  277. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +3 -6
  278. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -17
  279. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +8 -2
  280. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +55 -15
  281. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +9 -0
  282. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +44 -0
  283. package/lib/view/spendManagement/chargeCards/{chargeCardList → issueChargeCard}/issueChargeCardEpic.d.ts +3 -2
  284. package/lib/view/spendManagement/chargeCards/{chargeCardList → issueChargeCard}/issueChargeCardEpic.js +35 -18
  285. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +15 -0
  286. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +65 -0
  287. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +22 -0
  288. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +77 -0
  289. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +28 -0
  290. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +23 -0
  291. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  292. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +31 -6
  293. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  294. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +5 -2
  295. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -1
  296. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +6 -2
  297. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -0
  298. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +4 -0
  299. package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
  300. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  301. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  302. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  303. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  304. package/lib/view/topEx/topExSelector.d.ts +1 -1
  305. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
  306. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  307. package/lib/view/userListView/fetchUserListByTypeEpic.js +4 -1
  308. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +1 -1
  309. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +1 -1
  310. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
  311. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +34 -3
  312. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +1 -1
  313. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +2 -2
  314. package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +2 -5
  315. package/package.json +2 -2
  316. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  317. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -1
  318. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  319. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -1
@@ -9,34 +9,38 @@ export declare const initialAuditSummaryData: AuditSummaryData;
9
9
  export declare const initialCompanyMonthEndReportTemplatesData: CompanyMonthReportTemplates;
10
10
  export declare const initialSendMonthEndReportStatus: FetchStateAndError;
11
11
  export declare const initialImproveUsingZeniGPTStatus: FetchStateAndError;
12
- export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
12
+ export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string, tenantId?: string | undefined], {
13
13
  text: string;
14
14
  companyId: string;
15
+ tenantId: string | undefined;
15
16
  }, string, never, never>, updateImproveUsingZeniGPTSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[text: string, companyId: string], {
16
17
  text: string;
17
18
  companyId: string;
18
19
  }, string, never, never>, updateImproveUsingZeniGPTFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[status: ZeniAPIStatus<Record<string, unknown>>, companyId: string], {
19
20
  status: ZeniAPIStatus<Record<string, unknown>>;
20
21
  companyId: string;
21
- }, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string], {
22
+ }, string, never, never>, fetchCompanyMonthEndReportView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any, companyId: string, tenantId?: string | undefined], {
22
23
  cacheOverride: any;
23
24
  companyId: string;
25
+ tenantId: string | undefined;
24
26
  }, string, never, never>, updateCompanyMonthEndReportViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, data: CompanyMonthEndReportViewPayload], {
25
27
  companyId: string;
26
28
  data: CompanyMonthEndReportViewPayload;
27
29
  }, string, never, never>, updateCompanyMonthEndReportViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, error: ZeniAPIStatus<Record<string, unknown>>], {
28
30
  error: ZeniAPIStatus<Record<string, unknown>>;
29
31
  companyId: string;
30
- }, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined], {
32
+ }, string, never, never>, sendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fileId?: string | undefined, tenantId?: string | undefined], {
31
33
  companyId: string;
32
34
  fileId: string | undefined;
33
- }, string, never, never>, saveCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[recipientEmailList: any, companyId: string, subject: string, isPreview: boolean, fileId?: string | undefined, zeniRequestsHtml?: string | undefined], {
35
+ tenantId: string | undefined;
36
+ }, string, never, never>, saveCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[recipientEmailList: any, companyId: string, subject: string, isPreview: boolean, fileId?: string | undefined, zeniRequestsHtml?: string | undefined, tenantId?: string | undefined], {
34
37
  recipientEmailList: any;
35
38
  companyId: string;
36
39
  subject: string;
37
40
  isPreview: boolean;
38
41
  fileId: string | undefined;
39
42
  zeniRequestsHtml: string | undefined;
43
+ tenantId: string | undefined;
40
44
  }, string, never, never>, updateStatusForSendCompanyMonthEndReport: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, status: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
41
45
  companyId: string;
42
46
  status: FetchState;
@@ -71,8 +75,9 @@ export declare const fetchImproveUsingZeniGPT: import("@reduxjs/toolkit").Action
71
75
  companyId: ID;
72
76
  reportSentDate: ZeniDate;
73
77
  data: CompanyMonthEndHistoricReportPayload;
74
- }, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
78
+ }, string>, fetchCompanyMonthEndReportTemplates: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, tenantId?: string | undefined], {
75
79
  companyId: string;
80
+ tenantId: string | undefined;
76
81
  }, string, never, never>, updateCompanyMonthEndReportTemplatesOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
77
82
  error: ZeniAPIStatus;
78
83
  companyId: ID;
@@ -48,8 +48,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
48
48
  initialState: exports.initialState,
49
49
  reducers: {
50
50
  fetchCompanyMonthEndReportView: {
51
- prepare(cacheOverride = true, companyId) {
52
- return { payload: { cacheOverride, companyId } };
51
+ prepare(cacheOverride = true, companyId, tenantId) {
52
+ return { payload: { cacheOverride, companyId, tenantId } };
53
53
  },
54
54
  reducer(draft, action) {
55
55
  const companyId = action.payload.companyId;
@@ -90,7 +90,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
90
90
  },
91
91
  },
92
92
  saveCompanyMonthEndReport: {
93
- prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml) {
93
+ prepare(recipientEmailList, companyId, subject, isPreview, fileId, zeniRequestsHtml, tenantId) {
94
94
  return {
95
95
  payload: {
96
96
  recipientEmailList,
@@ -99,6 +99,7 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
99
99
  isPreview,
100
100
  fileId,
101
101
  zeniRequestsHtml,
102
+ tenantId,
102
103
  },
103
104
  };
104
105
  },
@@ -143,8 +144,8 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
143
144
  },
144
145
  },
145
146
  sendCompanyMonthEndReport: {
146
- prepare(companyId, fileId) {
147
- return { payload: { companyId, fileId } };
147
+ prepare(companyId, fileId, tenantId) {
148
+ return { payload: { companyId, fileId, tenantId } };
148
149
  },
149
150
  reducer(draft, action) {
150
151
  const { companyId } = action.payload;
@@ -165,11 +166,12 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
165
166
  },
166
167
  },
167
168
  fetchImproveUsingZeniGPT: {
168
- prepare(text, companyId) {
169
+ prepare(text, companyId, tenantId) {
169
170
  return {
170
171
  payload: {
171
172
  text,
172
173
  companyId,
174
+ tenantId,
173
175
  },
174
176
  };
175
177
  },
@@ -278,10 +280,11 @@ const companyMonthEndReportView = (0, toolkit_1.createSlice)({
278
280
  };
279
281
  },
280
282
  fetchCompanyMonthEndReportTemplates: {
281
- prepare(companyId) {
283
+ prepare(companyId, tenantId) {
282
284
  return {
283
285
  payload: {
284
286
  companyId,
287
+ tenantId,
285
288
  },
286
289
  };
287
290
  },
@@ -6,16 +6,16 @@ const operators_1 = require("rxjs/operators");
6
6
  const responsePayload_1 = require("../../../responsePayload");
7
7
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
8
8
  const fetchCompanyMonthEndReportTemplatesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportTemplates.match), (0, operators_1.switchMap)((action) => {
9
- const { companyId } = action.payload;
9
+ const { companyId, tenantId } = action.payload;
10
10
  const state = state$.value;
11
- const tenantId = state.companyState.companiesById[companyId].companyInfo.tenantId;
11
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
12
12
  const queryParam = {
13
13
  email_templates: true,
14
14
  };
15
- if (tenantId != null) {
15
+ if (zeniTenantId != null) {
16
16
  return zeniAPI
17
17
  .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(queryParam))}`, {
18
- 'zeni-tenant-id': tenantId,
18
+ 'zeni-tenant-id': zeniTenantId,
19
19
  })
20
20
  .pipe((0, operators_1.mergeMap)((response) => {
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
@@ -7,15 +7,15 @@ const responsePayload_1 = require("../../../responsePayload");
7
7
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
8
8
  const fileReducer_1 = require("../../../entity/file/fileReducer");
9
9
  const fetchCompanyMonthEndReportViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchCompanyMonthEndReportView.match), (0, operators_1.switchMap)((action) => {
10
- const { cacheOverride, companyId } = action.payload;
10
+ const { cacheOverride, companyId, tenantId } = action.payload;
11
11
  const state = state$.value;
12
12
  const fetchState = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].fetchState;
13
- const tenantId = state.companyState.companiesById[companyId].companyInfo.tenantId;
14
- if (tenantId != null &&
13
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : state.companyState.companiesById[companyId].companyInfo.tenantId;
14
+ if (zeniTenantId != null &&
15
15
  (cacheOverride === true || fetchState !== 'Completed')) {
16
16
  return zeniAPI
17
17
  .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, {
18
- 'zeni-tenant-id': tenantId,
18
+ 'zeni-tenant-id': zeniTenantId,
19
19
  })
20
20
  .pipe((0, operators_1.mergeMap)((response) => {
21
21
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
@@ -6,14 +6,16 @@ const operators_1 = require("rxjs/operators");
6
6
  const companyMonthEndReportViewReducer_1 = require("../companyMonthEndReportViewReducer");
7
7
  const responsePayload_1 = require("../../../responsePayload");
8
8
  const improveUsingZeniGPTEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.fetchImproveUsingZeniGPT.match), (0, operators_1.switchMap)((action) => {
9
- const { companyId } = action.payload;
9
+ const { companyId, tenantId } = action.payload;
10
10
  const state = state$.value;
11
11
  const company = state.companyState.companiesById[companyId];
12
- const tenantId = company.companyInfo.tenantId;
12
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
13
13
  return zeniAPI
14
14
  .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/ai-text-assist/emails/month-end`, {
15
15
  text: action.payload.text,
16
- }, Object.assign({}, (Boolean(tenantId) === true && { 'zeni-tenant-id': tenantId })))
16
+ }, Object.assign({}, (Boolean(zeniTenantId) === true && {
17
+ 'zeni-tenant-id': zeniTenantId,
18
+ })))
17
19
  .pipe((0, operators_1.mergeMap)((response) => {
18
20
  var _a;
19
21
  if (((_a = response.data) === null || _a === void 0 ? void 0 : _a.text) != null) {
@@ -11,11 +11,11 @@ const companyReducer_1 = require("../../../entity/company/companyReducer");
11
11
  const fileSelector_1 = require("../../../entity/file/fileSelector");
12
12
  const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
13
13
  const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.saveCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
14
- const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, } = action.payload;
14
+ const { companyId, recipientEmailList, subject, isPreview, fileId, zeniRequestsHtml, tenantId, } = action.payload;
15
15
  const state = state$.value;
16
16
  const company = state.companyState.companiesById[companyId];
17
17
  const companyName = state.companyState.companiesById[companyId].companyInfo.name;
18
- const tenantId = company.companyInfo.tenantId;
18
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
19
19
  const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
20
20
  const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
21
21
  const filePayload = [];
@@ -41,7 +41,7 @@ const saveCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
41
41
  const query = { is_preview: isPreview };
42
42
  return zeniAPI
43
43
  .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end?query=${encodeURIComponent(JSON.stringify(query))}`, payload, {
44
- 'zeni-tenant-id': tenantId,
44
+ 'zeni-tenant-id': zeniTenantId,
45
45
  })
46
46
  .pipe((0, operators_1.mergeMap)((response) => {
47
47
  if ((0, responsePayload_1.isSuccessStatus)(response) && response.data != null) {
@@ -12,14 +12,14 @@ const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
12
12
  const fileSelector_1 = require("../../../entity/file/fileSelector");
13
13
  const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
14
14
  const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(companyMonthEndReportViewReducer_1.sendCompanyMonthEndReport.match), (0, operators_1.mergeMap)((action) => {
15
- const { companyId, fileId } = action.payload;
15
+ const { companyId, fileId, tenantId } = action.payload;
16
16
  const state = state$.value;
17
17
  const recipientEmailList = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.recipientEmailList;
18
18
  const subject = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.subject;
19
19
  const zeniRequestsHtml = state.companyMonthEndReportViewState.monthEndReportDataByCompanyId[companyId].companyMonthEndReportData.zeniRequestsHtml;
20
20
  const company = state.companyState.companiesById[companyId];
21
21
  const companyName = state.companyState.companiesById[companyId].companyInfo.name;
22
- const tenantId = company.companyInfo.tenantId;
22
+ const zeniTenantId = tenantId !== null && tenantId !== void 0 ? tenantId : company.companyInfo.tenantId;
23
23
  const lastReportSentBusinessDay = (0, zeniDayJS_1.getBusinessDayOfDate)((0, zeniDayJS_1.dateNow)());
24
24
  const lastReportSentDate = (0, zeniDayJS_1.dateNow)();
25
25
  const filePayload = [];
@@ -44,7 +44,7 @@ const sendCompanyMonthEndReportEpic = (actions$, state$, zeniAPI) => actions$.pi
44
44
  };
45
45
  return zeniAPI
46
46
  .postAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}/emails/month-end`, payload, {
47
- 'zeni-tenant-id': tenantId,
47
+ 'zeni-tenant-id': zeniTenantId,
48
48
  })
49
49
  .pipe((0, operators_1.mergeMap)((response) => {
50
50
  if ((0, responsePayload_1.isSuccessStatus)(response)) {
@@ -25,12 +25,7 @@ const updateCompanyPassportLocalStoreDataEpic = (actions$, state$) => actions$.p
25
25
  const companyFiles = (0, fileSelector_1.getFilesByFileIds)(fileState, fileIds);
26
26
  const companyLocalData = (0, companyPassportLocalData_1.toCompanyPassportLocalData)(companyView, companyFiles);
27
27
  fetchActions.push((0, companyViewReducer_1.companyPassportClearDataInLocalStore)(), (0, companyViewReducer_1.companyPassportSaveDataInLocalStore)(companyLocalData));
28
- const officerAddressTypes = companyUsersLocalData_1.ALL_OFFICERS.map((all) => `officer_${all}_address`);
29
- const companyPassportAddressTypes = [
30
- 'company_address',
31
- ...officerAddressTypes,
32
- ];
33
- fetchActions.push((0, addressViewReducer_1.resetNewAddressDataInLocalStoreForAddressTypes)(companyPassportAddressTypes));
28
+ fetchActions.push((0, addressViewReducer_1.resetNewAddressDataInLocalStoreForAddressTypes)(companyUsersLocalData_1.AllCompanyPassportAddressTypes));
34
29
  const addresses = (0, toAddressViewLocalData_1.toAddressViewLocalData)(companyView);
35
30
  if (addresses != null) {
36
31
  Object.keys(addresses).forEach((addressType) => {
@@ -60,6 +60,9 @@ function getCompanyView(state, companyId, subscriptionIdsOfCompany, mergePending
60
60
  const companyAddress = updatedManagegmentInfo.companyAddressId != null
61
61
  ? (0, addressSelector_1.getAddressByAddressId)(state.addressState, updatedManagegmentInfo.companyAddressId)
62
62
  : undefined;
63
+ const registeredAddress = updatedManagegmentInfo.registeredAddressId != null
64
+ ? (0, addressSelector_1.getAddressByAddressId)(state.addressState, updatedManagegmentInfo.registeredAddressId)
65
+ : undefined;
63
66
  const primaryContact = updatedManagegmentInfo.primaryContactUserId != null
64
67
  ? (0, userAndRole_1.getUserAndUserRole)(state.userState, state.userRoleState, state.addressState, updatedManagegmentInfo.primaryContactUserId)
65
68
  : undefined;
@@ -170,6 +173,7 @@ function getCompanyView(state, companyId, subscriptionIdsOfCompany, mergePending
170
173
  return {
171
174
  company,
172
175
  companyAddress,
176
+ registeredAddress,
173
177
  primaryContact,
174
178
  companyOfficers,
175
179
  companyContact,
@@ -4,9 +4,9 @@ import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscripti
4
4
  import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
5
5
  import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
6
6
  export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
7
- export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
7
+ export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "notes" | "plans" | "customerSuccessManager" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
8
8
  export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "notes" | "bankAccountLinked" | "qboLinked" | "identityVerified" | "businessVerified" | "groupCreated" | "customerCreated" | "enroller" | "invite";
9
- export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSuccessManager" | "netPromoterScore" | "customerSatisfactionScore" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
9
+ export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "companyName" | "monthlyRecurringRevenue" | "customerSatisfactionScore" | "netPromoterScore" | "customerSuccessManager" | "lastReportSent" | "externalProductServiceExposure" | "finOpsEngagementFrequency" | "companyEngagementMetricsUpdatedAt" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate";
10
10
  export declare const toTaskManagerSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "taskName" | "assignee" | "tags" | "createdBy";
11
11
  export declare type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
12
12
  export declare type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
@@ -1,4 +1,5 @@
1
1
  import { ID } from '../../../../commonStateTypes/common';
2
+ import { AddressType } from '../../../addressView/addressViewState';
2
3
  export interface PrimaryContactLocalData {
3
4
  userId: ID | undefined;
4
5
  firstName: string;
@@ -9,6 +10,7 @@ export declare const ALL_OFFICERS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
9
10
  declare const toOfficerType: (n: number) => 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
10
11
  export declare type OfficerType = ReturnType<typeof toOfficerType>;
11
12
  export declare type CompanyOfficerType = `Officer_${OfficerType}`;
13
+ export declare const AllCompanyPassportAddressTypes: AddressType[];
12
14
  export interface CompanyOfficerLocalData {
13
15
  officerType: CompanyOfficerType;
14
16
  userId: ID | undefined;
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALL_OFFICERS = void 0;
3
+ exports.AllCompanyPassportAddressTypes = exports.ALL_OFFICERS = void 0;
4
4
  const numberToUnion_1 = require("../../../../commonStateTypes/numberToUnion");
5
5
  exports.ALL_OFFICERS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
6
6
  const toOfficerType = (n) => (0, numberToUnion_1.numberToUnion)(n, exports.ALL_OFFICERS);
7
+ const officerAddressTypes = exports.ALL_OFFICERS.map((all) => `officer_${all}_address`);
8
+ exports.AllCompanyPassportAddressTypes = [
9
+ 'company_address',
10
+ 'company_registered_address',
11
+ ...officerAddressTypes,
12
+ ];
@@ -12,6 +12,7 @@ export interface PrimarySubscription {
12
12
  export interface CompanyView {
13
13
  company: CompanyWithSchema;
14
14
  companyAddress?: Address;
15
+ registeredAddress?: Address;
15
16
  primaryContact?: UserAndRole;
16
17
  companyOfficers: UserAndRole[];
17
18
  companyContact?: UserAndRole;
@@ -0,0 +1,17 @@
1
+ import { CountryList, CountryListKeyType, CountryListState } from './countryListState';
2
+ import { CountryListPayload } from './payloads/countryListPayload';
3
+ import { ZeniAPIStatus } from '../../responsePayload';
4
+ export declare const initialCountryList: CountryList;
5
+ export declare const initialState: CountryListState;
6
+ export declare const fetchCountryList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[countryListKey: "nationalityCountryList", cacheOverride?: any], {
7
+ countryListKey: "nationalityCountryList";
8
+ cacheOverride: any;
9
+ }, string, never, never>, fetchNationalityCountryList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateCountryList: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
10
+ countryListKey: CountryListKeyType;
11
+ countryListPayload: CountryListPayload[];
12
+ }, string>, updateCountryListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
+ countryListKey: CountryListKeyType;
14
+ status: ZeniAPIStatus;
15
+ }, string>, clearCountryList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
16
+ declare const _default: import("@reduxjs/toolkit").Reducer<CountryListState, import("@reduxjs/toolkit").AnyAction>;
17
+ export default _default;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearCountryList = exports.updateCountryListFailure = exports.updateCountryList = exports.fetchNationalityCountryList = exports.fetchCountryList = exports.initialState = exports.initialCountryList = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const countryListPayload_1 = require("./payloads/countryListPayload");
7
+ exports.initialCountryList = {
8
+ fetchState: 'Not-Started',
9
+ error: undefined,
10
+ countries: [],
11
+ hasValidState() {
12
+ return this.fetchState == 'Completed';
13
+ },
14
+ };
15
+ exports.initialState = {
16
+ byCountryListCode: {
17
+ nationalityCountryList: exports.initialCountryList,
18
+ },
19
+ };
20
+ const countryList = (0, toolkit_1.createSlice)({
21
+ name: 'countryList',
22
+ initialState: exports.initialState,
23
+ reducers: {
24
+ fetchCountryList: {
25
+ reducer(draft, action) {
26
+ if (action.payload.cacheOverride ||
27
+ draft.byCountryListCode[action.payload.countryListKey].fetchState !==
28
+ 'Completed') {
29
+ draft.byCountryListCode[action.payload.countryListKey] = Object.assign(Object.assign({}, exports.initialCountryList), { fetchState: 'In-Progress', error: undefined });
30
+ }
31
+ },
32
+ prepare(countryListKey, cacheOverride = false) {
33
+ return {
34
+ payload: {
35
+ countryListKey,
36
+ cacheOverride,
37
+ },
38
+ };
39
+ },
40
+ },
41
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
42
+ fetchNationalityCountryList(_draft) {
43
+ // do nothing
44
+ },
45
+ updateCountryList(draft, action) {
46
+ const countryList = action.payload.countryListPayload.map((nCountry) => (0, countryListPayload_1.toCountry)(nCountry));
47
+ draft.byCountryListCode[action.payload.countryListKey] = Object.assign(Object.assign({}, exports.initialCountryList), { fetchState: 'Completed', error: undefined, countries: countryList });
48
+ },
49
+ updateCountryListFailure(draft, action) {
50
+ draft.byCountryListCode[action.payload.countryListKey] = Object.assign(Object.assign({}, exports.initialCountryList), { fetchState: 'Error', error: action.payload.status });
51
+ },
52
+ clearCountryList(draft) {
53
+ Object.assign(draft, exports.initialState);
54
+ },
55
+ },
56
+ });
57
+ _a = countryList.actions, exports.fetchCountryList = _a.fetchCountryList, exports.fetchNationalityCountryList = _a.fetchNationalityCountryList, exports.updateCountryList = _a.updateCountryList, exports.updateCountryListFailure = _a.updateCountryListFailure, exports.clearCountryList = _a.clearCountryList;
58
+ exports.default = countryList.reducer;
@@ -0,0 +1,7 @@
1
+ import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
2
+ import { CountryListKeyType, CountryListState, Country } from './countryListState';
3
+ export interface CountryListSelectorView extends SelectorView {
4
+ countries: Country[];
5
+ countryListKey: CountryListKeyType;
6
+ }
7
+ export declare const getCountryList: (countryListState: CountryListState, countryListKey: CountryListKeyType) => CountryListSelectorView;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCountryList = void 0;
4
+ const getCountryList = (countryListState, countryListKey) => {
5
+ return {
6
+ countries: countryListState.byCountryListCode[countryListKey].countries,
7
+ fetchState: countryListState.byCountryListCode[countryListKey].fetchState,
8
+ error: countryListState.byCountryListCode[countryListKey].error,
9
+ countryListKey: countryListKey,
10
+ version: 1,
11
+ };
12
+ };
13
+ exports.getCountryList = getCountryList;
@@ -0,0 +1,12 @@
1
+ import { FetchedState } from '../../commonStateTypes/common';
2
+ export declare type CountryListKeyType = 'nationalityCountryList';
3
+ export interface Country {
4
+ countryCode: string;
5
+ countryName: string;
6
+ }
7
+ export interface CountryList extends FetchedState {
8
+ countries: Country[];
9
+ }
10
+ export interface CountryListState {
11
+ byCountryListCode: Record<CountryListKeyType, CountryList>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { RootState } from '../../../reducer';
4
+ import { fetchCountryList, fetchNationalityCountryList } from '../countryListReducer';
5
+ export declare type ActionType = ReturnType<typeof fetchCountryList> | ReturnType<typeof fetchNationalityCountryList>;
6
+ export declare const fetchCountryListEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchCountryListEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const countryListReducer_1 = require("../countryListReducer");
7
+ const fetchCountryListEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(countryListReducer_1.fetchCountryList.match), (0, operators_1.mergeMap)((action) => {
8
+ const actions = [];
9
+ const draft = state$.value.countryListState;
10
+ if (action.payload.cacheOverride === true ||
11
+ draft.byCountryListCode[action.payload.countryListKey].fetchState !==
12
+ 'Completed') {
13
+ if (action.payload.countryListKey === 'nationalityCountryList') {
14
+ actions.push((0, countryListReducer_1.fetchNationalityCountryList)());
15
+ }
16
+ }
17
+ return (0, rxjs_1.from)(actions);
18
+ }));
19
+ exports.fetchCountryListEpic = fetchCountryListEpic;
@@ -0,0 +1,7 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { ZeniAPI } from '../../../zeniAPI';
4
+ import { RootState } from '../../../reducer';
5
+ import { fetchNationalityCountryList, updateCountryList, updateCountryListFailure } from '../countryListReducer';
6
+ export declare type ActionType = ReturnType<typeof fetchNationalityCountryList> | ReturnType<typeof updateCountryList> | ReturnType<typeof updateCountryListFailure>;
7
+ export declare const fetchNationalityCountryListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchNationalityCountryListEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const countryListReducer_1 = require("../countryListReducer");
8
+ const fetchNationalityCountryListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(countryListReducer_1.fetchNationalityCountryList.match), (0, operators_1.switchMap)(() => {
9
+ const queryValue = {
10
+ region: 'US',
11
+ legal_type: 'BUSINESS',
12
+ onboarding_fields: ['nationality'],
13
+ };
14
+ return zeniAPI
15
+ .getJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/international-wire/onboarding-fields?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
16
+ .pipe((0, operators_1.mergeMap)((response) => {
17
+ var _a, _b;
18
+ if ((0, responsePayload_1.isSuccessResponse)(response)) {
19
+ return (0, rxjs_1.of)((0, countryListReducer_1.updateCountryList)({
20
+ countryListKey: 'nationalityCountryList',
21
+ countryListPayload: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.labels.nationality.field_values) !== null && _b !== void 0 ? _b : [],
22
+ }));
23
+ }
24
+ else {
25
+ return (0, rxjs_1.of)((0, countryListReducer_1.updateCountryListFailure)({
26
+ countryListKey: 'nationalityCountryList',
27
+ status: response.status,
28
+ }));
29
+ }
30
+ }), (0, operators_1.catchError)((error) => {
31
+ return (0, rxjs_1.of)((0, countryListReducer_1.updateCountryListFailure)({
32
+ countryListKey: 'nationalityCountryList',
33
+ status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch Nationality Country List REST API call errored out' +
34
+ JSON.stringify(error)),
35
+ }));
36
+ }));
37
+ }));
38
+ exports.fetchNationalityCountryListEpic = fetchNationalityCountryListEpic;
@@ -0,0 +1,6 @@
1
+ import { Country } from '../countryListState';
2
+ export interface CountryListPayload {
3
+ code: string;
4
+ description: string;
5
+ }
6
+ export declare function toCountry(payload: CountryListPayload): Country;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toCountry = void 0;
4
+ function toCountry(payload) {
5
+ return {
6
+ countryCode: payload.code,
7
+ countryName: payload.description,
8
+ };
9
+ }
10
+ exports.toCountry = toCountry;
@@ -0,0 +1,11 @@
1
+ import { ZeniAPIResponse } from '../../../responsePayload';
2
+ import { CountryListPayload } from './countryListPayload';
3
+ export interface NationalityCountryPayload {
4
+ labels: {
5
+ nationality: {
6
+ field_hint_text: string;
7
+ field_values: CountryListPayload[];
8
+ };
9
+ };
10
+ }
11
+ export declare type NationalityCountryPayloadResponse = ZeniAPIResponse<NationalityCountryPayload>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,5 +20,6 @@ import { fetchApAging } from '../apAgingView/apAgingReport/apAgingReducer';
20
20
  import { fetchArAging } from '../arAgingView/arAgingReport/arAgingReducer';
21
21
  import { fetchZeniAccountsPromoCard } from '../zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
22
22
  import { fetchRewardsPlan } from '../referralView/referralReducer';
23
- export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard> | ReturnType<typeof fetchRewardsPlan>;
23
+ import { fetchMonthEndCloseChecks } from '../monthEndCloseChecksView/monthEndCloseChecksViewReducer';
24
+ export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard> | ReturnType<typeof fetchRewardsPlan> | ReturnType<typeof fetchMonthEndCloseChecks>;
24
25
  export declare const fetchDashboardEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;