@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
@@ -20,12 +20,22 @@ export interface ChargeCard {
20
20
  cardCreaterUserId: ID;
21
21
  status: CardStatus;
22
22
  billingAddressId: ID;
23
+ cardActivationAttemptHistory: CardActivationAttemptHistory[];
23
24
  mailingAddressId?: ID;
24
25
  cardColorCode?: string;
25
26
  createTime?: ZeniDate;
26
27
  updateTime?: ZeniDate;
27
28
  inviteUpdateTime?: ZeniDate;
29
+ shippingAddressId?: ID;
30
+ shippingAddressType?: ShippingAddressType;
28
31
  }
32
+ export interface CardActivationAttemptHistory {
33
+ user_id: ID;
34
+ timestamp: ZeniDate;
35
+ status_code: CardActivationEventCodeType;
36
+ }
37
+ export declare const toCardActivationEventCodeType: (v: string) => "failed" | "success";
38
+ export declare type CardActivationEventCodeType = ReturnType<typeof toCardActivationEventCodeType>;
29
39
  export interface ChargeCardState {
30
40
  chargeCardByID: Record<ID, ChargeCard>;
31
41
  }
@@ -40,16 +50,20 @@ interface CardStatus {
40
50
  name: string;
41
51
  }
42
52
  export declare const toCardStatusCodeType: (v: string) => "frozen" | "active" | "inactive" | "pending" | "stolen" | "lost" | "closed_by_customer" | "suspected_fraud" | "request_on_hold";
43
- declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
53
+ export declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
44
54
  export interface ValidThru {
45
55
  month: number;
46
56
  year: number;
47
57
  }
48
58
  declare const toCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card";
49
- declare type CardCodeType = ReturnType<typeof toCardCodeType>;
59
+ export declare type CardCodeType = ReturnType<typeof toCardCodeType>;
60
+ export declare const toShippingAddressType: (v: string) => "company_address" | "card_holder_personal_address" | "custom_address";
61
+ export declare type ShippingAddressType = ReturnType<typeof toShippingAddressType>;
50
62
  interface CardType {
51
63
  code: CardCodeType;
52
64
  name: string;
53
65
  }
54
66
  export declare const toCardType: (payload: CardTypePayload) => CardType;
67
+ export declare const toCardAddressType: (v: string) => "company_address" | "custom_address" | "personal_address";
68
+ export declare type CardAddressType = ReturnType<typeof toCardAddressType>;
55
69
  export {};
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCardType = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeType = void 0;
3
+ exports.toCardAddressType = exports.toCardType = exports.toShippingAddressType = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeType = exports.toCardActivationEventCodeType = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
+ const ALL_CARD_ACTIVATION_EVENT_CODE = ['failed', 'success'];
6
+ const toCardActivationEventCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CARD_ACTIVATION_EVENT_CODE);
7
+ exports.toCardActivationEventCodeType = toCardActivationEventCodeType;
5
8
  const ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE = [
6
9
  'monthly',
7
10
  'daily',
@@ -29,8 +32,22 @@ const CARD_TYPE_CODE = [
29
32
  'business_virtual_credit_card',
30
33
  ];
31
34
  const toCardCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, CARD_TYPE_CODE);
35
+ const SHIPPING_ADDRESS_TYPE = [
36
+ 'card_holder_personal_address',
37
+ 'company_address',
38
+ 'custom_address',
39
+ ];
40
+ const toShippingAddressType = (v) => (0, stringToUnion_1.stringToUnion)(v, SHIPPING_ADDRESS_TYPE);
41
+ exports.toShippingAddressType = toShippingAddressType;
32
42
  const toCardType = (payload) => ({
33
43
  code: toCardCodeType(payload.code),
34
44
  name: payload.name,
35
45
  });
36
46
  exports.toCardType = toCardType;
47
+ const ADDRESS_TYPE = [
48
+ 'personal_address',
49
+ 'company_address',
50
+ 'custom_address',
51
+ ];
52
+ const toCardAddressType = (v) => (0, stringToUnion_1.stringToUnion)(v, ADDRESS_TYPE);
53
+ exports.toCardAddressType = toCardAddressType;
@@ -16,18 +16,27 @@ export interface ChargeCardPayload {
16
16
  currency_code: string;
17
17
  currency_symbol: string;
18
18
  credit_limit_frequency: AllowedValueWithCode;
19
- card_provider: string;
20
- provider_card_id: string;
21
- provider_card_type: string;
22
- last_4_digits: string;
23
- expiration_date: string;
24
19
  holder_user_id: string;
25
20
  status: AllowedValueWithCode;
26
21
  created_by_user_id: string;
22
+ card_provider: string | null;
23
+ provider_card_id: string | null;
24
+ provider_card_type: string | null;
25
+ last_4_digits: string | null;
26
+ expiration_date: string | null;
27
27
  mailing_address_id: string | null;
28
+ shipping_address_id?: string | null;
29
+ shipping_address_type?: string | null;
28
30
  card_color_code?: string | null;
29
31
  create_time: string | null;
30
32
  update_time: string | null;
31
33
  invite_update_time?: string | null;
34
+ card_activation_attempt_history?: CardActivationAttemptHistoryPayload[];
35
+ }
36
+ interface CardActivationAttemptHistoryPayload {
37
+ user_id: string;
38
+ timestamp: string;
39
+ status_code: string;
32
40
  }
33
41
  export declare const mapChargeCardPayloadToChargeCard: (payload: ChargeCardPayload) => ChargeCard;
42
+ export {};
@@ -6,7 +6,7 @@ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
6
6
  const zeniDayJS_1 = require("../../zeniDayJS");
7
7
  const chargeCard_1 = require("./chargeCard");
8
8
  const mapChargeCardPayloadToChargeCard = (payload) => {
9
- var _a, _b;
9
+ var _a, _b, _c, _d, _e, _f, _g;
10
10
  return ({
11
11
  id: payload.card_id,
12
12
  type: (0, chargeCard_1.toCardType)(payload.card_type),
@@ -19,20 +19,24 @@ const mapChargeCardPayloadToChargeCard = (payload) => {
19
19
  code: (0, chargeCard_1.toCreditLimitFrequencyCodeType)(payload.credit_limit_frequency.code),
20
20
  name: payload.credit_limit_frequency.name,
21
21
  },
22
- cardProvider: payload.card_provider,
23
- cardProviderID: payload.provider_card_id,
24
- accountLast4: payload.last_4_digits,
22
+ cardProvider: (_a = payload.card_provider) !== null && _a !== void 0 ? _a : '',
23
+ cardProviderID: (_b = payload.provider_card_id) !== null && _b !== void 0 ? _b : '',
24
+ accountLast4: (_c = payload.last_4_digits) !== null && _c !== void 0 ? _c : '',
25
25
  validThru: toValidThru(payload.expiration_date),
26
26
  cardHolderUserId: payload.holder_user_id,
27
27
  cardCreaterUserId: payload.created_by_user_id,
28
- cardProviderType: payload.provider_card_type,
28
+ cardProviderType: (_d = payload.provider_card_type) !== null && _d !== void 0 ? _d : '',
29
29
  status: {
30
30
  code: (0, chargeCard_1.toCardStatusCodeType)(payload.status.code),
31
31
  name: payload.status.name,
32
32
  },
33
33
  billingAddressId: payload.billing_address_id,
34
- mailingAddressId: (_a = payload.mailing_address_id) !== null && _a !== void 0 ? _a : undefined,
35
- cardColorCode: (_b = payload.card_color_code) !== null && _b !== void 0 ? _b : undefined,
34
+ mailingAddressId: (_e = payload.mailing_address_id) !== null && _e !== void 0 ? _e : undefined,
35
+ shippingAddressId: (_f = payload.shipping_address_id) !== null && _f !== void 0 ? _f : undefined,
36
+ shippingAddressType: payload.shipping_address_id != null
37
+ ? (0, chargeCard_1.toShippingAddressType)(payload.shipping_address_id)
38
+ : undefined,
39
+ cardColorCode: (_g = payload.card_color_code) !== null && _g !== void 0 ? _g : undefined,
36
40
  createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined,
37
41
  updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
38
42
  inviteUpdateTime: payload.invite_update_time != null
@@ -40,9 +44,22 @@ const mapChargeCardPayloadToChargeCard = (payload) => {
40
44
  : payload.create_time != null
41
45
  ? (0, zeniDayJS_1.date)(payload.create_time)
42
46
  : undefined,
47
+ cardActivationAttemptHistory: toCardActivationAttemptHistory(payload.card_activation_attempt_history),
43
48
  });
44
49
  };
45
50
  exports.mapChargeCardPayloadToChargeCard = mapChargeCardPayloadToChargeCard;
51
+ const toCardActivationAttemptHistory = (cardActivationAttemptHistoryPayload) => {
52
+ if (cardActivationAttemptHistoryPayload != null) {
53
+ return cardActivationAttemptHistoryPayload.map((cardActivationAttemptPayload) => ({
54
+ user_id: cardActivationAttemptPayload.user_id,
55
+ timestamp: (0, zeniDayJS_1.date)(cardActivationAttemptPayload.timestamp),
56
+ status_code: (0, chargeCard_1.toCardActivationEventCodeType)(cardActivationAttemptPayload.status_code),
57
+ }));
58
+ }
59
+ else {
60
+ return [];
61
+ }
62
+ };
46
63
  const toValidThru = (expirationDate) => {
47
64
  if (expirationDate == null) {
48
65
  // Handle the case where expirationDate is null or undefined
@@ -5,15 +5,15 @@ import { UpdateType } from '../../commonStateTypes/common';
5
5
  import { ClassMetadataWithBalancesPayloadV2 } from '../../commonPayloadTypes/classesView/reportByClassPayloadV2';
6
6
  import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
7
7
  export declare const initialState: ClassState;
8
- export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], string, never, {
9
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
8
+ export declare const updateClasses: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense", payload: ClassBasePayload[], classesViewParentId?: ClassesViewParentID | undefined, updateType?: UpdateType | undefined], ClassBasePayload[], string, never, {
9
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
10
10
  classesViewParentId: ClassesViewParentID | undefined;
11
11
  updateType: UpdateType;
12
- }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
12
+ }>, updateClassesWithBalancesV2: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense", timeframe: "month" | "year" | "quarter", sectionId: string, classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[], currencyPayload: CurrencyPayload], {
13
13
  classMetadataWithBalancesPayloads: ClassMetadataWithBalancesPayloadV2[];
14
14
  currencyPayload: CurrencyPayload;
15
15
  }, string, never, {
16
- reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
16
+ reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
17
17
  sectionId: string;
18
18
  timeframe: "month" | "year" | "quarter";
19
19
  }>, clearAllClasses: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
@@ -25,7 +25,7 @@ export interface Class extends ClassBase {
25
25
  balancesByPeriod?: COABalanceGroupedByPeriod;
26
26
  nestedAccountIds?: NestedAccountIDHierarchy[];
27
27
  }
28
- export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing`;
28
+ export declare function getClassKey(reportId: ReportID, classId: ID, parentId?: ClassesViewParentID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense`;
29
29
  export declare type ClassKey = ReturnType<typeof getClassKey>;
30
30
  export interface ClassState {
31
31
  classesByKey: Record<ClassKey, Class>;
@@ -2,6 +2,7 @@ import { AllowedValueWithCode, AllowedValueWithID } from '../../commonStateTypes
2
2
  import { ID } from '../../commonStateTypes/common';
3
3
  import { Company, ParentSubsidiaryInfo, OnboardingInfo } from './companyStateTypes';
4
4
  import { CustomerRatingCodeType, TeamRatingCodeType } from '../customerSatisfaction/customerSatisfactionState';
5
+ import { LabelValueCodesPayload } from '../../commonPayloadTypes/commonPayload';
5
6
  export declare const defaultParentSubsidiaryObject: ParentSubsidiaryInfo;
6
7
  export interface CompanyInfoPayload {
7
8
  book_close_date: string | null;
@@ -94,6 +95,8 @@ interface CompanyBillPayInfoDataPayload {
94
95
  account_id: string | null;
95
96
  account_type: string | null;
96
97
  };
98
+ international_wire_onboarding_status: AllowedValueWithCode;
99
+ international_wire_onboarding_details: Record<string, LabelValueCodesPayload>;
97
100
  }
98
101
  export interface UserReimbursementInfoDataPayload {
99
102
  reimbursement_tos_acceptance_user_agent: string | null;
@@ -213,6 +216,7 @@ export interface CompanyManagementInfoPayload {
213
216
  note_last_update_time: string | null;
214
217
  note: string | null;
215
218
  company_address_id: string | null;
219
+ registered_address_id: string | null;
216
220
  primary_contact_user_id: string | null;
217
221
  company_officer_user_ids: string[];
218
222
  company_contact_user_id?: string | null;
@@ -150,6 +150,8 @@ const toCompanyBillPayInfo = (payload) => {
150
150
  accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
151
151
  }
152
152
  : undefined,
153
+ internationalWireOnboardingStatus: (0, exports.toAllowedValueWithCode)(payload.international_wire_onboarding_status),
154
+ internationalWireOnboardingDetails: payload.international_wire_onboarding_details,
153
155
  });
154
156
  };
155
157
  const toCompanyReimbursementInfo = (payload) => {
@@ -292,7 +294,7 @@ const toCompanyOnboardingInfo = (payload) => ({
292
294
  isOnboardingCompleted: payload.is_onboarding_completed,
293
295
  });
294
296
  const toCompanyManagementInfo = (payload) => {
295
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
297
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
296
298
  return ({
297
299
  statusCode: (_b = (_a = payload.status) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : undefined,
298
300
  companyGroupId: (_d = (_c = payload.company_group) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : undefined,
@@ -309,9 +311,10 @@ const toCompanyManagementInfo = (payload) => {
309
311
  : undefined,
310
312
  note: (_h = payload.note) !== null && _h !== void 0 ? _h : undefined,
311
313
  companyAddressId: (_j = payload.company_address_id) !== null && _j !== void 0 ? _j : undefined,
312
- primaryContactUserId: (_k = payload.primary_contact_user_id) !== null && _k !== void 0 ? _k : undefined,
314
+ registeredAddressId: (_k = payload.registered_address_id) !== null && _k !== void 0 ? _k : undefined,
315
+ primaryContactUserId: (_l = payload.primary_contact_user_id) !== null && _l !== void 0 ? _l : undefined,
313
316
  companyOfficerUserIds: payload.company_officer_user_ids,
314
- companyContactUserId: (_l = payload.company_contact_user_id) !== null && _l !== void 0 ? _l : undefined,
317
+ companyContactUserId: (_m = payload.company_contact_user_id) !== null && _m !== void 0 ? _m : undefined,
315
318
  controllerUserIds: payload.controller_user_ids,
316
319
  taxLeadUserIds: payload.tax_lead_user_ids,
317
320
  reviewerUserIds: payload.reviewer_user_ids,
@@ -2,7 +2,7 @@ import { ID } from '../../commonStateTypes/common';
2
2
  import { CompanyPayload, CompanySchemaPayload, OnboardingInfoPayload } from './companyPayload';
3
3
  import { CompanyState } from './companyState';
4
4
  import { OnboardingInviteStatusPayload } from '../../view/onboardingView/cockpitView/onboardingCockpitViewPayload';
5
- import { SpendManagementEntityType } from '../..';
5
+ import { AllowedValueWithCode, SpendManagementEntityType } from '../..';
6
6
  import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
7
7
  export declare const initialState: CompanyState;
8
8
  export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -39,6 +39,9 @@ export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWi
39
39
  primaryFundingAccountId: ID;
40
40
  accountType: AccountTypeSubConfigCodeKeyType;
41
41
  productType: SpendManagementEntityType;
42
+ }, string>, updateInternationalWireOnboardingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
43
+ companyId: ID;
44
+ status: AllowedValueWithCode;
42
45
  }, string>;
43
46
  declare const _default: import("@reduxjs/toolkit").Reducer<CompanyState, import("@reduxjs/toolkit").AnyAction>;
44
47
  export default _default;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.updateCompanyPrimaryAccount = exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
7
+ exports.updateInternationalWireOnboardingStatus = exports.updateCompanyPrimaryAccount = exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const isEqual_1 = __importDefault(require("lodash/isEqual"));
10
10
  const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
@@ -180,6 +180,10 @@ const company = (0, toolkit_1.createSlice)({
180
180
  accountType: accountType,
181
181
  };
182
182
  },
183
+ updateInternationalWireOnboardingStatus(draft, action) {
184
+ const { companyId, status } = action.payload;
185
+ draft.companiesById[companyId].companyBillPayInfo.internationalWireOnboardingStatus = status;
186
+ },
183
187
  clearAllCompanies: {
184
188
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
185
189
  prepare(keepCompanyState) {
@@ -193,5 +197,5 @@ const company = (0, toolkit_1.createSlice)({
193
197
  },
194
198
  },
195
199
  });
196
- _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess, exports.updateCompanyPrimaryAccount = _a.updateCompanyPrimaryAccount;
200
+ _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess, exports.updateCompanyPrimaryAccount = _a.updateCompanyPrimaryAccount, exports.updateInternationalWireOnboardingStatus = _a.updateInternationalWireOnboardingStatus;
197
201
  exports.default = company.reducer;
@@ -9,7 +9,8 @@ import { CustomerSatisfactionInfo } from '../customerSatisfaction/customerSatisf
9
9
  import { MileageDenomination } from '../../view/spendManagement/reimbursement/remiSetupView/remiSetupViewState';
10
10
  import { OnboardingStepErrorDetails } from './companyPayload';
11
11
  import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
12
- export declare const toOnboardingIdentityVerificationStatus: (v: string) => "Error" | "Not Initiated" | "Complete" | "Incomplete" | "Pending Review";
12
+ import { LabelValueCodesPayload } from '../../commonPayloadTypes/commonPayload';
13
+ export declare const toOnboardingIdentityVerificationStatus: (v: string) => "Error" | "Pending Review" | "Not Initiated" | "Complete" | "Incomplete";
13
14
  export declare type OnboardingIdentityVerficationStatus = NonNullable<ReturnType<typeof toOnboardingIdentityVerificationStatus>>;
14
15
  export declare const ALL_ACCOUNTING_CONNECTION_CREATION_MODES: readonly ["zeni_user", "customer"];
15
16
  declare const toAccountingConnectionCreationMode: (v: string) => "customer" | "zeni_user";
@@ -95,6 +96,7 @@ export interface CompanyManagementInfo {
95
96
  note?: string;
96
97
  receiverEmails: string[];
97
98
  companyAddressId?: ID;
99
+ registeredAddressId?: ID;
98
100
  primaryContactUserId?: ID;
99
101
  companyOfficerUserIds: ID[];
100
102
  companyContactUserId?: ID;
@@ -167,6 +169,8 @@ export interface CompanyBillPayInfo {
167
169
  accountId: ID;
168
170
  accountType: AccountTypeSubConfigCodeKeyType;
169
171
  };
172
+ internationalWireOnboardingStatus?: AllowedValueWithCode;
173
+ internationalWireOnboardingDetails: Record<string, LabelValueCodesPayload>;
170
174
  }
171
175
  export interface UserReimbursementInfo {
172
176
  isReimbursementTOSAccepted: boolean;
@@ -53,10 +53,10 @@ export declare const toSupportedAttachmentFileType: (v: string) => "application/
53
53
  export declare type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
54
54
  export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
55
55
  declare type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
56
- export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9";
57
- export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | undefined;
56
+ export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing";
57
+ export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" | undefined;
58
58
  export declare type AllowedDocumentType = ReturnType<typeof toAllowedDocumentType>;
59
- declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "others";
59
+ declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "international_wire_business_verification" | "others";
60
60
  export declare type AllowedPurposeIdType = ReturnType<typeof toAllowedPurposeIdType>;
61
61
  declare const toAllowedDocumentSideType: (v: string) => "front" | "back";
62
62
  export declare type AllowedDocumentSideType = ReturnType<typeof toAllowedDocumentSideType>;
@@ -66,6 +66,7 @@ const ALLOWED_DOCUMENT_TYPES = [
66
66
  'tax_ein',
67
67
  'w4',
68
68
  'w9',
69
+ 'certificate_of_good_standing',
69
70
  ];
70
71
  const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_TYPES);
71
72
  exports.toAllowedDocumentType = toAllowedDocumentType;
@@ -77,6 +78,7 @@ const ALLOWED_PURPOSE_IDS = [
77
78
  'personal_identity_others',
78
79
  'business_verification_others',
79
80
  'bill_pay',
81
+ 'international_wire_business_verification',
80
82
  'others',
81
83
  ];
82
84
  const toAllowedPurposeIdType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_PURPOSE_IDS);
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export declare type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing";
6
+ export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense";
7
7
  export interface Forecast {
8
8
  id: ID;
9
9
  type: ForecastType;
@@ -63,6 +63,7 @@ export interface ScheduledJournalEntryPayload {
63
63
  amount?: number | null;
64
64
  balance?: number | null;
65
65
  is_platform_generated?: boolean | null;
66
+ errors?: string[] | null;
66
67
  update_time: string | null;
67
68
  create_time: string | null;
68
69
  }
@@ -40,7 +40,9 @@ function toScheduledJournalEntryState(payload, currency_code, currency_symbol) {
40
40
  ? (0, amount_1.toAmount)(payload.amount, currency_code, currency_symbol)
41
41
  : (0, amount_1.toAmount)(0, currency_code, currency_symbol), runningBalance: payload.balance != null
42
42
  ? (0, amount_1.toAmount)(payload.balance, currency_code, currency_symbol)
43
- : (0, amount_1.toAmount)(0, currency_code, currency_symbol), scheduledJournalEntryID: (_d = payload.scheduled_journal_entry_id) !== null && _d !== void 0 ? _d : '', jeScheduleId: (_e = payload.je_schedule_id) !== null && _e !== void 0 ? _e : '', isPlatformGenerated: (_f = payload.is_platform_generated) !== null && _f !== void 0 ? _f : undefined, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined, updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined, syncToken: payload.update_time != null ? payload.update_time : undefined, currencyCode: currency_code, currencySymbol: currency_symbol });
43
+ : (0, amount_1.toAmount)(0, currency_code, currency_symbol), scheduledJournalEntryID: (_d = payload.scheduled_journal_entry_id) !== null && _d !== void 0 ? _d : '', jeScheduleId: (_e = payload.je_schedule_id) !== null && _e !== void 0 ? _e : '', isPlatformGenerated: (_f = payload.is_platform_generated) !== null && _f !== void 0 ? _f : undefined, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined, updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined, syncToken: payload.update_time != null ? payload.update_time : undefined, currencyCode: currency_code, currencySymbol: currency_symbol, error: payload.errors != null && payload.errors.length > 0
44
+ ? payload.errors.map((error) => (0, jeSchedulesTypes_1.toJournalEntryErrorCodeType)(error))
45
+ : [] });
44
46
  }
45
47
  exports.toScheduledJournalEntryState = toScheduledJournalEntryState;
46
48
  function toJEAccountPayload(payload, type) {
@@ -126,6 +128,9 @@ function toJEScheduledTransaction(payload) {
126
128
  var _a, _b, _c, _d, _e, _f;
127
129
  return {
128
130
  jeScheduleId: (_a = payload.je_schedule_id) !== null && _a !== void 0 ? _a : undefined,
131
+ jeScheduleType: payload.je_schedule_type != null
132
+ ? (0, jeSchedulesTypes_1.toScheduleTypesTypeStrict)(payload.je_schedule_type)
133
+ : undefined,
129
134
  status: {
130
135
  code: (0, jeSchedulesTypes_1.toScheduleStatusCodeType)(payload.status.code),
131
136
  label: payload.status.label,
@@ -215,6 +220,7 @@ function toJEAccruedScheduledTransaction(payload) {
215
220
  : undefined,
216
221
  scheduledJournalEntry: [],
217
222
  createTime: (0, zeniDayJS_1.date)(payload.create_time),
223
+ jeScheduleType: (0, jeSchedulesTypes_1.toScheduleTypesTypeStrict)(payload.je_schedule_type),
218
224
  };
219
225
  }
220
226
  exports.toJEAccruedScheduledTransaction = toJEAccruedScheduledTransaction;
@@ -18,8 +18,8 @@ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreator
18
18
  jeSchedulesPayload: JEAccruedScheduledTransactionPayload[];
19
19
  scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
20
20
  updateType: UpdateType;
21
- }, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
- jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
21
+ }, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
+ jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
23
23
  }, string, never, never>, deleteAccruedJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[JEScheduleKey: `${string}_${string}`], {
24
24
  JEScheduleKey: `${string}_${string}`;
25
25
  }, string, never, never>, clearAllAccruedJESchedules: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
@@ -8,7 +8,7 @@ import { JEScheduleOtherAttributes, ScheduleJournalStatusCode, ScheduleStatus }
8
8
  import { ScheduleTransaction } from '../transaction/stateTypes/scheduleTransaction';
9
9
  import { User } from '../user/userState';
10
10
  import { RootState } from '../../reducer';
11
- import { JEScheduleKey, JEScheduleTransactionKey } from './jeSchedulesTypes';
11
+ import { JEScheduleKey, JEScheduleTransactionKey, JournalEntryErrorCodeType, ScheduleTypes } from './jeSchedulesTypes';
12
12
  import { TransactionID } from '../transaction/stateTypes/transaction';
13
13
  import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
14
14
  export interface ScheduledJournalEntry {
@@ -32,6 +32,7 @@ export interface ScheduledJournalEntry {
32
32
  updateTime?: ZeniDate;
33
33
  currencyCode?: string;
34
34
  currencySymbol?: string;
35
+ error: JournalEntryErrorCodeType[];
35
36
  }
36
37
  export interface JEAccruedSchedule extends Omit<JEScheduledTransaction, 'baseTransaction' | 'jeScheduleId' | 'jeScheduleTransactionKey'> {
37
38
  jeAccruedScheduleKey: JEScheduleKey;
@@ -59,6 +60,7 @@ export interface JEScheduledTransaction {
59
60
  otherAttributes: JEScheduleOtherAttributes;
60
61
  dayOfPostingDate?: ScheduleDaysOfMonth;
61
62
  lastDayOfMonth?: boolean;
63
+ jeScheduleType?: ScheduleTypes;
62
64
  jeScheduleId?: ID;
63
65
  startDate?: ZeniDate;
64
66
  period?: number;
@@ -77,7 +77,7 @@ exports.getJEAccruedScheduleByJEScheduleKey = getJEAccruedScheduleByJEScheduleKe
77
77
  const getJEScheduledTransactionByJEScheduleTransactionKey = (jeScheduleTransactionKey, state) => {
78
78
  const { jeSchedulesState, vendorState, accountState, userState, classState, transactionState, } = state;
79
79
  const jeScheduleTransactionState = (0, get_1.default)(jeSchedulesState.schedulesByTransactionKey, jeScheduleTransactionKey);
80
- const { period, updatedByUserID: updatedBy, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, otherAttributes, } = jeScheduleTransactionState;
80
+ const { period, updatedByUserID: updatedBy, vendorId, jeCredit, jeDebit, currencyCode, currencySymbol, balanceAsOfToday, baseTransaction, startDate, endDate, status, updatedAt, jeScheduleId, scheduledJournalEntry, dayOfPostingDate: postingDate, lastDayOfMonth, otherAttributes, jeScheduleType, } = jeScheduleTransactionState;
81
81
  const vendorDetails = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
82
82
  if (vendorDetails == null) {
83
83
  throw new Error(`Vendor with ${vendorId} doesn't exist`);
@@ -107,6 +107,7 @@ const getJEScheduledTransactionByJEScheduleTransactionKey = (jeScheduleTransacti
107
107
  : undefined;
108
108
  return {
109
109
  jeScheduleId,
110
+ jeScheduleType,
110
111
  jeScheduleTransactionKey: jeScheduleTransactionKey,
111
112
  vendor: vendorDetails,
112
113
  updatedByUser: userDetails,
@@ -4,7 +4,7 @@ import { ScheduleDaysOfMonth } from '../../commonStateTypes/timePeriod';
4
4
  import { TransactionDetailKey } from '../../view/transactionDetail/transactionDetailState';
5
5
  import { ZeniDate } from '../../zeniDayJS';
6
6
  import { TransactionID } from '../transaction/stateTypes/transaction';
7
- import { ScheduleStatusCodeType, JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, JEScheduleKey } from './jeSchedulesTypes';
7
+ import { ScheduleStatusCodeType, JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, JEScheduleKey, ScheduleTypes, JournalEntryErrorCodeType } from './jeSchedulesTypes';
8
8
  export interface ScheduleStatus {
9
9
  code: ScheduleStatusCodeType;
10
10
  label: string;
@@ -39,9 +39,11 @@ export interface ScheduledJournalEntryState {
39
39
  syncToken?: string;
40
40
  currencyCode?: string;
41
41
  currencySymbol?: string;
42
+ error: JournalEntryErrorCodeType[];
42
43
  }
43
44
  export interface JEScheduledTransactionState {
44
45
  jeScheduleId?: ID;
46
+ jeScheduleType?: ScheduleTypes;
45
47
  status: ScheduleStatus;
46
48
  vendorId: ID;
47
49
  baseTransaction: TransactionDetailKey;
@@ -10,3 +10,5 @@ export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "cance
10
10
  export declare type ScheduleJournalEntryStatusCodeType = ReturnType<typeof toScheduleJournalEntryStatusCodeType>;
11
11
  export declare const toScheduleStatusCodeType: (v: string) => "new" | "completed" | "draft" | "ongoing" | "marked_as_completed";
12
12
  export declare type ScheduleStatusCodeType = ReturnType<typeof toScheduleStatusCodeType>;
13
+ export declare const toJournalEntryErrorCodeType: (v: string) => "vendor_deleted" | "debit_category_deleted" | "credit_category_deleted" | "qbo_error" | "qbo_authorization_error" | "qbo_invalid_company_status_error" | "qbo_book_close_date_error";
14
+ export declare type JournalEntryErrorCodeType = ReturnType<typeof toJournalEntryErrorCodeType>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toScheduleStatusCodeType = exports.toScheduleJournalEntryStatusCodeType = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.ALL_SCHEDULES_TYPES = void 0;
3
+ exports.toJournalEntryErrorCodeType = exports.toScheduleStatusCodeType = exports.toScheduleJournalEntryStatusCodeType = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.ALL_SCHEDULES_TYPES = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_SCHEDULES_TYPES = [
6
6
  'prepaid_expenses',
@@ -30,3 +30,14 @@ const SCHEDULE_STATUS_CODE = [
30
30
  ];
31
31
  const toScheduleStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, SCHEDULE_STATUS_CODE);
32
32
  exports.toScheduleStatusCodeType = toScheduleStatusCodeType;
33
+ const JOURNAL_ENTRY_ERROR_CODE = [
34
+ 'vendor_deleted',
35
+ 'debit_category_deleted',
36
+ 'credit_category_deleted',
37
+ 'qbo_error',
38
+ 'qbo_authorization_error',
39
+ 'qbo_invalid_company_status_error',
40
+ 'qbo_book_close_date_error',
41
+ ];
42
+ const toJournalEntryErrorCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, JOURNAL_ENTRY_ERROR_CODE);
43
+ exports.toJournalEntryErrorCodeType = toJournalEntryErrorCodeType;
@@ -0,0 +1,32 @@
1
+ import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
2
+ import { MonthEndCloseChecksInfo } from './monthEndCloseChecksState';
3
+ interface MonthCloseChecksPayload {
4
+ month_close_check_type: string;
5
+ month_close_check_title: string;
6
+ month_close_check_description: string;
7
+ progress_percentage: number;
8
+ action_frequency: string;
9
+ sequence: number;
10
+ }
11
+ interface MonthEndInsightsPayload {
12
+ zeni_ai_saved_amount: number;
13
+ zeni_ai_saved_hours: number;
14
+ count_account_auto_reconciled: number;
15
+ count_transactions_auto_categorised: number;
16
+ zeni_ai_efficiency_percentage: number;
17
+ count_review_efficiency_increase: number;
18
+ count_unique_vendors_in_flux_analysis: number;
19
+ }
20
+ interface MonthEndAuditSummaryPayload {
21
+ audit_score_percentage: number;
22
+ audit_report_last_generated_date: string;
23
+ }
24
+ export interface MonthEndCloseChecksPayload {
25
+ insights: MonthEndInsightsPayload;
26
+ audit_summary: MonthEndAuditSummaryPayload;
27
+ month_close_checks: MonthCloseChecksPayload[];
28
+ zeni_book_close_date: string;
29
+ history_month_and_year_flag: string[];
30
+ }
31
+ export declare const toMonthEndCloseChecksInfo: (payload: MonthEndCloseChecksPayload, period: MonthYearPeriod) => MonthEndCloseChecksInfo;
32
+ export {};