@zeniai/client-epic-state 4.7.74 → 4.7.76

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 (155) hide show
  1. package/lib/commonStateTypes/workingDayHelper.d.ts +9 -5
  2. package/lib/commonStateTypes/workingDayHelper.js +36 -12
  3. package/lib/entity/account/accountPayload.d.ts +1 -1
  4. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -0
  5. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +2 -2
  6. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +3 -0
  7. package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +34 -0
  8. package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +44 -0
  9. package/lib/entity/billPay/recurringBills/recurringBillsReducer.d.ts +6 -0
  10. package/lib/entity/billPay/recurringBills/recurringBillsReducer.js +40 -0
  11. package/lib/entity/billPay/recurringBills/recurringBillsState.d.ts +33 -0
  12. package/lib/entity/billPay/recurringBills/recurringBillsState.js +14 -0
  13. package/lib/entity/chargeCard/chargeCard.d.ts +3 -2
  14. package/lib/entity/chargeCard/chargeCardPayload.d.ts +4 -14
  15. package/lib/entity/chargeCard/chargeCardPayload.js +1 -0
  16. package/lib/entity/depositAccount/depositAccountPayload.d.ts +2 -5
  17. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +1 -0
  18. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +1 -0
  19. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +1 -0
  20. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +1 -0
  21. package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -1
  22. package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +2 -0
  23. package/lib/entity/paymentAccount/paymentAccountSelector.js +14 -1
  24. package/lib/entity/paymentAccount/paymentAccountState.d.ts +1 -0
  25. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  26. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  27. package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
  28. package/lib/entity/tenant/clearAllEpic.js +6 -0
  29. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +2 -2
  30. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
  31. package/lib/entity/transaction/stateTypes/attachment.js +5 -5
  32. package/lib/epic.d.ts +9 -10
  33. package/lib/epic.js +9 -10
  34. package/lib/index.d.ts +26 -14
  35. package/lib/index.js +37 -22
  36. package/lib/reducer.d.ts +9 -0
  37. package/lib/reducer.js +9 -0
  38. package/lib/view/accountList/accountListReducer.js +2 -1
  39. package/lib/view/accountList/accountListState.d.ts +1 -1
  40. package/lib/view/accountList/fetchAccountListEpic.js +16 -7
  41. package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +1 -0
  42. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.d.ts +2 -2
  43. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.js +2 -2
  44. package/lib/view/commonVendorView/vendorView/vendorViewReducer.d.ts +4 -9
  45. package/lib/view/commonVendorView/vendorView/vendorViewReducer.js +41 -70
  46. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +2 -2
  47. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -9
  48. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +70 -102
  49. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  50. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  51. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  52. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  53. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  54. package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +22 -0
  55. package/lib/view/settingsView/epic/fetchBankAccountsListEpic.js +30 -0
  56. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -0
  57. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +14 -0
  58. package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +43 -0
  59. package/lib/view/settingsView/epic/fetchMyProfileEpic.js +50 -0
  60. package/lib/view/settingsView/epic/fetchMyProfileViewEpic.d.ts +7 -0
  61. package/lib/view/settingsView/epic/fetchMyProfileViewEpic.js +17 -0
  62. package/lib/view/settingsView/settingsViewPayload.d.ts +8 -0
  63. package/lib/view/settingsView/settingsViewReducer.d.ts +13 -0
  64. package/lib/view/settingsView/settingsViewReducer.js +71 -0
  65. package/lib/view/settingsView/settingsViewSelector.d.ts +14 -0
  66. package/lib/view/settingsView/settingsViewSelector.js +119 -0
  67. package/lib/view/settingsView/settingsViewState.d.ts +12 -0
  68. package/lib/view/settingsView/settingsViewState.js +2 -0
  69. package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +29 -0
  70. package/lib/view/settingsView/types/settingsViewSelectorTypes.js +2 -0
  71. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +3 -0
  72. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +5 -0
  73. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +13 -2
  74. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.d.ts +2 -1
  75. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +19 -8
  76. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.d.ts +2 -1
  77. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +14 -4
  78. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -1
  79. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +5 -2
  80. package/lib/view/spendManagement/billPay/billList/billListPayload.d.ts +2 -0
  81. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -0
  82. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -2
  83. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.d.ts +2 -1
  84. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +3 -1
  85. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +4 -0
  86. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +31 -9
  87. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +4 -0
  88. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +17 -0
  89. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +10 -2
  90. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +59 -14
  91. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +28 -0
  92. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +1 -0
  93. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
  94. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +13 -2
  95. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +3 -2
  96. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +11 -24
  97. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +100 -14
  98. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +2 -1
  99. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +4 -1
  100. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState.d.ts +2 -2
  101. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -0
  102. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +4 -0
  103. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +7 -0
  104. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +25 -2
  105. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +3 -0
  106. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +6 -1
  107. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.d.ts +11 -0
  108. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.js +60 -0
  109. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -0
  110. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +1 -0
  111. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +9 -5
  112. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -9
  113. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +72 -104
  114. package/lib/view/spendManagement/helpers.d.ts +11 -1
  115. package/lib/view/spendManagement/helpers.js +134 -1
  116. package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.d.ts +1 -0
  117. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +1 -0
  118. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -0
  119. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +3 -1
  120. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -0
  121. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +2 -1
  122. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +1 -0
  123. package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +10 -0
  124. package/lib/view/twoFactorAuthentication/resendOtpEpic.js +90 -0
  125. package/lib/view/twoFactorAuthentication/sendOtpEpic.d.ts +10 -0
  126. package/lib/view/twoFactorAuthentication/sendOtpEpic.js +93 -0
  127. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.d.ts +16 -0
  128. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.js +2 -0
  129. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +19 -0
  130. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.js +11 -0
  131. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.d.ts +21 -0
  132. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +101 -0
  133. package/lib/view/twoFactorAuthentication/verifyOtpEpic.d.ts +10 -0
  134. package/lib/view/twoFactorAuthentication/verifyOtpEpic.js +90 -0
  135. package/package.json +5 -4
  136. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewResendOtpEpic.d.ts +0 -7
  137. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewResendOtpEpic.js +0 -24
  138. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewSendOtpEpic.d.ts +0 -7
  139. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewSendOtpEpic.js +0 -26
  140. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewVerifyOtpEpic.d.ts +0 -7
  141. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewVerifyOtpEpic.js +0 -28
  142. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/resendOnboardingOfficerOtpEpic.d.ts +0 -7
  143. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/resendOnboardingOfficerOtpEpic.js +0 -24
  144. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/sendOnboardingOfficerOtpEpic.d.ts +0 -7
  145. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/sendOnboardingOfficerOtpEpic.js +0 -27
  146. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/verifyOnboardingOfficerOtpEpic.d.ts +0 -7
  147. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/verifyOnboardingOfficerOtpEpic.js +0 -30
  148. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/resendOtpEpic.d.ts +0 -7
  149. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/resendOtpEpic.js +0 -23
  150. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/sendOtpEpic.d.ts +0 -7
  151. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/sendOtpEpic.js +0 -26
  152. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/verifyOtpEpic.d.ts +0 -7
  153. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/verifyOtpEpic.js +0 -27
  154. package/lib/view/spendManagement/commonSetup/types/twoFactorAuthentication.d.ts +0 -10
  155. /package/lib/view/{spendManagement/commonSetup/types/twoFactorAuthentication.js → settingsView/settingsViewPayload.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.waitForVendorRecommendationAndUpdatedRecommendationByLineId = exports.updateRecommendationsInVendorDetailLocalData = exports.fetchAndUpdateVendorRecommendations = exports.clearVendorView = exports.verifyUserSuccess = exports.verifyUser = exports.verifyOtpFailure = exports.verifyOtpSuccess = exports.verifyOtp = exports.resendOtp = exports.sendOtpFailure = exports.sendOtpSuccess = exports.sendOtp = exports.fetchUserDetailsFailure = exports.fetchUserDetailsSuccess = exports.fetchUserDetails = exports.fetchVendorDetailPageView = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.saveVendorSuccessOrFailure = exports.saveVendor = exports.updateCountryCurrencyInVendorView = exports.removePaymentInstrumentsInVendorView = exports.updatePaymentInstrumentsInVendorView = exports.removeBankAccountsInVendorView = exports.updateBankAccountsInVendorView = exports.updateVendorSaveStatus = exports.updateVendorFetchStatus = exports.fetchVendor = exports.fetchVendorDetails = exports.initialState = exports.initialVendorDetailLocalData = void 0;
4
+ exports.waitForVendorRecommendationAndUpdatedRecommendationByLineId = exports.updateRecommendationsInVendorDetailLocalData = exports.fetchAndUpdateVendorRecommendations = exports.clearVendorView = exports.verifyUserFailure = exports.verifyUserSuccess = exports.verifyUser = exports.verifyOtpVendorViewFailure = exports.verifyOtpVendorViewSuccess = exports.verifyOtpVendorView = exports.resendOtpVendorView = exports.sendOtpVendorViewFailure = exports.sendOtpVendorViewSuccess = exports.sendOtpVendorView = exports.fetchUserDetailsFailure = exports.fetchUserDetailsSuccess = exports.fetchUserDetails = exports.fetchVendorDetailPageView = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.saveVendorSuccessOrFailure = exports.saveVendor = exports.updateCountryCurrencyInVendorView = exports.removePaymentInstrumentsInVendorView = exports.updatePaymentInstrumentsInVendorView = exports.removeBankAccountsInVendorView = exports.updateBankAccountsInVendorView = exports.updateVendorSaveStatus = exports.updateVendorFetchStatus = exports.fetchVendor = exports.fetchVendorDetails = exports.initialState = exports.initialVendorDetailLocalData = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  exports.initialVendorDetailLocalData = {
7
7
  contacts: [],
@@ -416,84 +416,49 @@ const vendorView = (0, toolkit_1.createSlice)({
416
416
  };
417
417
  },
418
418
  },
419
- sendOtp: {
420
- reducer(draft, action) {
421
- draft.loggedInUserVerification.sendOtpStatus = {
422
- fetchState: 'In-Progress',
423
- error: undefined,
424
- };
425
- draft.loggedInUserVerification.phone = action.payload.phoneNumber;
426
- },
427
- prepare(phoneNumber) {
428
- return { payload: { phoneNumber } };
429
- },
419
+ sendOtpVendorView(draft, action) {
420
+ draft.loggedInUserVerification.sendOtpStatus = {
421
+ fetchState: 'In-Progress',
422
+ error: undefined,
423
+ };
424
+ draft.loggedInUserVerification.phone = action.payload.phoneNumber;
430
425
  },
431
- resendOtp: {
432
- reducer(draft) {
433
- draft.loggedInUserVerification.sendOtpStatus = {
434
- fetchState: 'In-Progress',
435
- error: undefined,
436
- };
437
- },
438
- prepare(otpChallenge) {
439
- return { payload: { otpChallenge } };
440
- },
426
+ resendOtpVendorView(draft) {
427
+ draft.loggedInUserVerification.sendOtpStatus = {
428
+ fetchState: 'In-Progress',
429
+ error: undefined,
430
+ };
441
431
  },
442
- sendOtpSuccess: {
443
- reducer(draft, action) {
444
- draft.loggedInUserVerification.sendOtpStatus = {
445
- fetchState: 'Completed',
446
- error: undefined,
447
- };
448
- draft.loggedInUserVerification.otpChallenge =
449
- action.payload.otpChallenge;
450
- },
451
- prepare(otpChallenge) {
452
- return { payload: { otpChallenge } };
453
- },
432
+ sendOtpVendorViewSuccess(draft, action) {
433
+ draft.loggedInUserVerification.sendOtpStatus = {
434
+ fetchState: 'Completed',
435
+ error: undefined,
436
+ };
437
+ draft.loggedInUserVerification.otpChallenge = action.payload.otpChallenge;
454
438
  },
455
- sendOtpFailure: {
456
- reducer(draft, action) {
457
- draft.loggedInUserVerification.sendOtpStatus = {
458
- fetchState: 'Error',
459
- error: action.payload,
460
- };
461
- },
462
- prepare(error) {
463
- return {
464
- payload: error,
465
- };
466
- },
439
+ sendOtpVendorViewFailure(draft, action) {
440
+ draft.loggedInUserVerification.sendOtpStatus = {
441
+ fetchState: 'Error',
442
+ error: action.payload,
443
+ };
467
444
  },
468
- verifyOtp: {
469
- reducer(draft) {
470
- draft.loggedInUserVerification.otpVerificationStatus = {
471
- fetchState: 'In-Progress',
472
- error: undefined,
473
- };
474
- },
475
- prepare(otpCode, otpChallenge) {
476
- return { payload: { otpCode, otpChallenge } };
477
- },
445
+ verifyOtpVendorView(draft) {
446
+ draft.loggedInUserVerification.otpVerificationStatus = {
447
+ fetchState: 'In-Progress',
448
+ error: undefined,
449
+ };
478
450
  },
479
- verifyOtpSuccess(draft) {
451
+ verifyOtpVendorViewSuccess(draft) {
480
452
  draft.loggedInUserVerification.otpVerificationStatus = {
481
453
  fetchState: 'Completed',
482
454
  error: undefined,
483
455
  };
484
456
  },
485
- verifyOtpFailure: {
486
- reducer(draft, action) {
487
- draft.loggedInUserVerification.otpVerificationStatus = {
488
- fetchState: 'Error',
489
- error: action.payload,
490
- };
491
- },
492
- prepare(error) {
493
- return {
494
- payload: error,
495
- };
496
- },
457
+ verifyOtpVendorViewFailure(draft, action) {
458
+ draft.loggedInUserVerification.otpVerificationStatus = {
459
+ fetchState: 'Error',
460
+ error: action.payload,
461
+ };
497
462
  },
498
463
  verifyUser: {
499
464
  reducer(draft) {
@@ -513,10 +478,16 @@ const vendorView = (0, toolkit_1.createSlice)({
513
478
  };
514
479
  draft.loggedInUserVerification.initiateVerification = false;
515
480
  },
481
+ verifyUserFailure(draft, action) {
482
+ draft.loggedInUserVerification.userVerificationStatus = {
483
+ fetchState: 'Error',
484
+ error: action.payload,
485
+ };
486
+ },
516
487
  clearVendorView(draft) {
517
488
  Object.assign(draft, exports.initialState);
518
489
  },
519
490
  },
520
491
  });
521
- _a = vendorView.actions, exports.fetchVendorDetails = _a.fetchVendorDetails, exports.fetchVendor = _a.fetchVendor, exports.updateVendorFetchStatus = _a.updateVendorFetchStatus, exports.updateVendorSaveStatus = _a.updateVendorSaveStatus, exports.updateBankAccountsInVendorView = _a.updateBankAccountsInVendorView, exports.removeBankAccountsInVendorView = _a.removeBankAccountsInVendorView, exports.updatePaymentInstrumentsInVendorView = _a.updatePaymentInstrumentsInVendorView, exports.removePaymentInstrumentsInVendorView = _a.removePaymentInstrumentsInVendorView, exports.updateCountryCurrencyInVendorView = _a.updateCountryCurrencyInVendorView, exports.saveVendor = _a.saveVendor, exports.saveVendorSuccessOrFailure = _a.saveVendorSuccessOrFailure, exports.updateSelectedVendorForCreateFlow = _a.updateSelectedVendorForCreateFlow, exports.initializeVendorAddress = _a.initializeVendorAddress, exports.updateVendorDetailLocalData = _a.updateVendorDetailLocalData, exports.resetVendorDetailLocalData = _a.resetVendorDetailLocalData, exports.updateContactsInVendorDetailLocalData = _a.updateContactsInVendorDetailLocalData, exports.fetchVendorDetailPageView = _a.fetchVendorDetailPageView, exports.fetchUserDetails = _a.fetchUserDetails, exports.fetchUserDetailsSuccess = _a.fetchUserDetailsSuccess, exports.fetchUserDetailsFailure = _a.fetchUserDetailsFailure, exports.sendOtp = _a.sendOtp, exports.sendOtpSuccess = _a.sendOtpSuccess, exports.sendOtpFailure = _a.sendOtpFailure, exports.resendOtp = _a.resendOtp, exports.verifyOtp = _a.verifyOtp, exports.verifyOtpSuccess = _a.verifyOtpSuccess, exports.verifyOtpFailure = _a.verifyOtpFailure, exports.verifyUser = _a.verifyUser, exports.verifyUserSuccess = _a.verifyUserSuccess, exports.clearVendorView = _a.clearVendorView, exports.fetchAndUpdateVendorRecommendations = _a.fetchAndUpdateVendorRecommendations, exports.updateRecommendationsInVendorDetailLocalData = _a.updateRecommendationsInVendorDetailLocalData, exports.waitForVendorRecommendationAndUpdatedRecommendationByLineId = _a.waitForVendorRecommendationAndUpdatedRecommendationByLineId;
492
+ _a = vendorView.actions, exports.fetchVendorDetails = _a.fetchVendorDetails, exports.fetchVendor = _a.fetchVendor, exports.updateVendorFetchStatus = _a.updateVendorFetchStatus, exports.updateVendorSaveStatus = _a.updateVendorSaveStatus, exports.updateBankAccountsInVendorView = _a.updateBankAccountsInVendorView, exports.removeBankAccountsInVendorView = _a.removeBankAccountsInVendorView, exports.updatePaymentInstrumentsInVendorView = _a.updatePaymentInstrumentsInVendorView, exports.removePaymentInstrumentsInVendorView = _a.removePaymentInstrumentsInVendorView, exports.updateCountryCurrencyInVendorView = _a.updateCountryCurrencyInVendorView, exports.saveVendor = _a.saveVendor, exports.saveVendorSuccessOrFailure = _a.saveVendorSuccessOrFailure, exports.updateSelectedVendorForCreateFlow = _a.updateSelectedVendorForCreateFlow, exports.initializeVendorAddress = _a.initializeVendorAddress, exports.updateVendorDetailLocalData = _a.updateVendorDetailLocalData, exports.resetVendorDetailLocalData = _a.resetVendorDetailLocalData, exports.updateContactsInVendorDetailLocalData = _a.updateContactsInVendorDetailLocalData, exports.fetchVendorDetailPageView = _a.fetchVendorDetailPageView, exports.fetchUserDetails = _a.fetchUserDetails, exports.fetchUserDetailsSuccess = _a.fetchUserDetailsSuccess, exports.fetchUserDetailsFailure = _a.fetchUserDetailsFailure, exports.sendOtpVendorView = _a.sendOtpVendorView, exports.sendOtpVendorViewSuccess = _a.sendOtpVendorViewSuccess, exports.sendOtpVendorViewFailure = _a.sendOtpVendorViewFailure, exports.resendOtpVendorView = _a.resendOtpVendorView, exports.verifyOtpVendorView = _a.verifyOtpVendorView, exports.verifyOtpVendorViewSuccess = _a.verifyOtpVendorViewSuccess, exports.verifyOtpVendorViewFailure = _a.verifyOtpVendorViewFailure, exports.verifyUser = _a.verifyUser, exports.verifyUserSuccess = _a.verifyUserSuccess, exports.verifyUserFailure = _a.verifyUserFailure, exports.clearVendorView = _a.clearVendorView, exports.fetchAndUpdateVendorRecommendations = _a.fetchAndUpdateVendorRecommendations, exports.updateRecommendationsInVendorDetailLocalData = _a.updateRecommendationsInVendorDetailLocalData, exports.waitForVendorRecommendationAndUpdatedRecommendationByLineId = _a.waitForVendorRecommendationAndUpdatedRecommendationByLineId;
522
493
  exports.default = vendorView.reducer;
@@ -22,7 +22,7 @@ const recommendationSelector_1 = require("../../recommendation/recommendationSel
22
22
  const getVendorView = (state, vendorIdFromUrl) => {
23
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
24
24
  const { accountListState, accountState, addressViewState, bankAccountState, classListState, billPayConfigState, classState, vendorTypeListState, vendorState, vendorViewState, addressState, userState, paymentInstrumentState, } = state;
25
- const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
25
+ const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
26
26
  const classList = (0, classListSelector_1.getClassList)(classState, classListState);
27
27
  const vendorTypeList = vendorTypeListState.vendorTypes;
28
28
  const ownerList = (0, userSelector_1.getUsersByUserIds)(state.userState, state.ownerListState.ownerIds);
@@ -112,7 +112,7 @@ const getVendorView = (state, vendorIdFromUrl) => {
112
112
  (configDetails.method.includes('international') === true &&
113
113
  configDetails.isEnabled === true));
114
114
  }, false);
115
- const accountsHeirarchyList = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, 'accountList');
115
+ const accountsHeirarchyList = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, 'billPayAccountList');
116
116
  const classHeirarchyList = (0, classListSelector_1.getNestedClassListHeirarchy)(classListState);
117
117
  const loggedInUserVerification = Object.assign(Object.assign({}, vendorViewState.loggedInUserVerification), { phone: (_1 = vendorViewState.loggedInUserVerification.phone) !== null && _1 !== void 0 ? _1 : (_3 = (0, userSelector_1.getUserByUserId)(userState, (_2 = vendorViewState.loggedInUserVerification.userId) !== null && _2 !== void 0 ? _2 : '')) === null || _3 === void 0 ? void 0 : _3.phone });
118
118
  return Object.assign(Object.assign({}, bankAccount), { bankAccountCreationState: {
@@ -70,15 +70,8 @@ export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").Act
70
70
  }, string>, saveOnboardingCustomerViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<import("../../spendManagement/commonSetup/setupViewState").SetupViewLocalData>, string>, saveOnboardingCompnayOfficerPhoneInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
71
71
  officerType: CompanyOfficerType;
72
72
  phone: string | number;
73
- }, string>, updateOnboardingCustomerViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<OnboardingCustomerViewUIState>, string>, sendOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[phoneNumber: string], {
74
- phoneNumber: string;
75
- }, string, never, never>, sendOnboardingOfficerOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpChallenge: string], {
73
+ }, string>, updateOnboardingCustomerViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<OnboardingCustomerViewUIState>, string>, sendOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendOnboardingOfficerOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
76
74
  otpChallenge: string;
77
- }, string, never, never>, sendOnboardingOfficerOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, string, never, never>, resendOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpChallenge: string], {
78
- otpChallenge: string;
79
- }, string, never, never>, verifyOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpCode: string, otpChallenge: string], {
80
- otpCode: string;
81
- otpChallenge: string;
82
- }, string, never, never>, verifyOnboardingOfficerOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOnboardingOfficerOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, string, never, never>, clearOnboardingCustomerViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
75
+ }, string>, sendOnboardingOfficerOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOnboardingOfficerOtp: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOnboardingOfficerOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, verifyOnboardingOfficerOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, clearOnboardingCustomerViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
83
76
  declare const _default: import("@reduxjs/toolkit").Reducer<OnboardingCustomerViewState, import("@reduxjs/toolkit").AnyAction>;
84
77
  export default _default;
@@ -457,100 +457,74 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
457
457
  const updatedUiState = action.payload;
458
458
  draft.uiState = Object.assign(Object.assign({}, draft.uiState), updatedUiState);
459
459
  },
460
- sendOnboardingOfficerOtp: {
461
- reducer(draft) {
462
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
463
- var _a;
464
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
465
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
466
- draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
467
- fetchState: 'In-Progress',
468
- error: undefined,
469
- };
470
- draft.companyOfficerUpdateStatus[officerType].localData =
471
- Object.assign({}, draft.companyOfficerUpdateStatus[officerType].localData, {
472
- isPhoneVerified: false,
473
- });
474
- }
475
- });
476
- },
477
- prepare(phoneNumber) {
478
- return { payload: { phoneNumber } };
479
- },
460
+ sendOnboardingOfficerOtp(draft) {
461
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
462
+ var _a;
463
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
464
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
465
+ draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
466
+ fetchState: 'In-Progress',
467
+ error: undefined,
468
+ };
469
+ draft.companyOfficerUpdateStatus[officerType].localData =
470
+ Object.assign({}, draft.companyOfficerUpdateStatus[officerType].localData, {
471
+ isPhoneVerified: false,
472
+ });
473
+ }
474
+ });
480
475
  },
481
- resendOnboardingOfficerOtp: {
482
- reducer(draft) {
483
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
484
- var _a;
485
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
486
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
487
- draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
488
- fetchState: 'In-Progress',
489
- error: undefined,
490
- };
491
- }
492
- });
493
- },
494
- prepare(otpChallenge) {
495
- return { payload: { otpChallenge } };
496
- },
476
+ resendOnboardingOfficerOtp(draft) {
477
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
478
+ var _a;
479
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
480
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
481
+ draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
482
+ fetchState: 'In-Progress',
483
+ error: undefined,
484
+ };
485
+ }
486
+ });
497
487
  },
498
- sendOnboardingOfficerOtpSuccess: {
499
- reducer(draft, action) {
500
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
501
- var _a;
502
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
503
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
504
- draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
505
- fetchState: 'Completed',
506
- error: undefined,
507
- };
508
- draft.companyOfficerUpdateStatus[officerType].localData =
509
- Object.assign({}, draft.companyOfficerUpdateStatus[officerType].localData, {
510
- otpChallenge: action.payload.otpChallenge,
511
- });
512
- }
513
- });
514
- },
515
- prepare(otpChallenge) {
516
- return { payload: { otpChallenge } };
517
- },
488
+ sendOnboardingOfficerOtpSuccess(draft, action) {
489
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
490
+ var _a;
491
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
492
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
493
+ draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
494
+ fetchState: 'Completed',
495
+ error: undefined,
496
+ };
497
+ draft.companyOfficerUpdateStatus[officerType].localData =
498
+ Object.assign({}, draft.companyOfficerUpdateStatus[officerType].localData, {
499
+ otpChallenge: action.payload.otpChallenge,
500
+ });
501
+ }
502
+ });
518
503
  },
519
- sendOnboardingOfficerOtpFailure: {
520
- reducer(draft, action) {
521
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
522
- var _a;
523
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
524
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
525
- draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
526
- fetchState: 'Error',
527
- error: action.payload,
528
- };
529
- }
530
- });
531
- },
532
- prepare(error) {
533
- return {
534
- payload: error,
535
- };
536
- },
504
+ sendOnboardingOfficerOtpFailure(draft, action) {
505
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
506
+ var _a;
507
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
508
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
509
+ draft.companyOfficerUpdateStatus[officerType].sendOtpStatus = {
510
+ fetchState: 'Error',
511
+ error: action.payload,
512
+ };
513
+ }
514
+ });
537
515
  },
538
- verifyOnboardingOfficerOtp: {
539
- reducer(draft) {
540
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
541
- var _a;
542
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
543
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
544
- draft.companyOfficerUpdateStatus[officerType].otpverificationStatus = {
516
+ verifyOnboardingOfficerOtp(draft) {
517
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
518
+ var _a;
519
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
520
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
521
+ draft.companyOfficerUpdateStatus[officerType].otpverificationStatus =
522
+ {
545
523
  fetchState: 'In-Progress',
546
524
  error: undefined,
547
525
  };
548
- }
549
- });
550
- },
551
- prepare(otpCode, otpChallenge) {
552
- return { payload: { otpCode, otpChallenge } };
553
- },
526
+ }
527
+ });
554
528
  },
555
529
  verifyOnboardingOfficerOtpSuccess(draft) {
556
530
  Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
@@ -569,24 +543,18 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
569
543
  }
570
544
  });
571
545
  },
572
- verifyOnboardingOfficerOtpFailure: {
573
- reducer(draft, action) {
574
- Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
575
- var _a;
576
- if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
577
- ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
578
- draft.companyOfficerUpdateStatus[officerType].otpverificationStatus = {
546
+ verifyOnboardingOfficerOtpFailure(draft, action) {
547
+ Object.keys(draft.companyOfficerUpdateStatus).forEach((officerType) => {
548
+ var _a;
549
+ if (draft.companyOfficerUpdateStatus[officerType].localData != null &&
550
+ ((_a = draft.companyOfficerUpdateStatus[officerType].localData) === null || _a === void 0 ? void 0 : _a.isSelectedForVerification) === true) {
551
+ draft.companyOfficerUpdateStatus[officerType].otpverificationStatus =
552
+ {
579
553
  fetchState: 'Error',
580
554
  error: action.payload,
581
555
  };
582
- }
583
- });
584
- },
585
- prepare(error) {
586
- return {
587
- payload: error,
588
- };
589
- },
556
+ }
557
+ });
590
558
  },
591
559
  clearOnboardingCustomerViewDataInLocalStore(draft) {
592
560
  draft.companyOfficerUpdateStatus =
@@ -26,7 +26,7 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
26
26
  type: string;
27
27
  } | {
28
28
  payload: {
29
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
29
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
30
30
  messageText: "failed" | "success";
31
31
  type: import("../..").SnackbarMessageType;
32
32
  showStatusIcon?: boolean | undefined;
@@ -18,7 +18,7 @@ export declare const deletePersonEpic: (actions$: ActionsObservable<ActionType>,
18
18
  type: string;
19
19
  } | {
20
20
  payload: {
21
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
21
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
22
22
  messageText: "failed" | "success";
23
23
  type: import("../..").SnackbarMessageType;
24
24
  showStatusIcon?: boolean | undefined;
@@ -35,7 +35,7 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
35
35
  type: string;
36
36
  } | {
37
37
  payload: {
38
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
38
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
39
39
  messageText: "failed" | "success";
40
40
  type: import("../..").SnackbarMessageType;
41
41
  showStatusIcon?: boolean | undefined;
@@ -32,7 +32,7 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
32
32
  type: string;
33
33
  } | {
34
34
  payload: {
35
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
35
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
36
36
  messageText: "failed" | "success";
37
37
  type: import("../..").SnackbarMessageType;
38
38
  showStatusIcon?: boolean | undefined;
@@ -13,7 +13,7 @@ export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>,
13
13
  type: string;
14
14
  } | {
15
15
  payload: {
16
- messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
16
+ messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
17
17
  messageText: "failed" | "success";
18
18
  type: import("../..").SnackbarMessageType;
19
19
  showStatusIcon?: boolean | undefined;
@@ -0,0 +1,22 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { fetchBankAccountsList, updateBankConnectionOnSuccess, updateBankConnectionOnFailure } from '../settingsViewReducer';
3
+ import { ZeniAPI } from '../../../zeniAPI';
4
+ import { RootState } from '../../../reducer';
5
+ import { updateAccounts } from '../../../entity/account/accountReducer';
6
+ export declare type ActionType = ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof updateBankConnectionOnSuccess> | ReturnType<typeof updateBankConnectionOnFailure> | ReturnType<typeof updateAccounts>;
7
+ export declare const fetchBankAccountsListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
8
+ payload: undefined;
9
+ type: string;
10
+ } | {
11
+ payload: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
12
+ type: string;
13
+ } | {
14
+ payload: {
15
+ bankAccountIds: string[];
16
+ };
17
+ type: string;
18
+ } | import("@reduxjs/toolkit").PayloadAction<import("../../../entity/account/accountPayload").AccountPayload[], string, {
19
+ reportId: import("../../..").ReportIDPlusForecastID;
20
+ classesViewParentId: import("../../../commonStateTypes/classesView/nestedClassID").ClassesViewParentID | undefined;
21
+ updateType: import("../../..").UpdateType;
22
+ }, never>>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchBankAccountsListEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const settingsViewReducer_1 = require("../settingsViewReducer");
7
+ const responsePayload_1 = require("../../../responsePayload");
8
+ const accountReducer_1 = require("../../../entity/account/accountReducer");
9
+ const fetchBankAccountsListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchBankAccountsList.match), (0, operators_1.switchMap)(() => {
10
+ const queryValue = {
11
+ is_full: true,
12
+ is_exclude_account_payable_accounts: true,
13
+ is_exclude_account_receivable_accounts: true,
14
+ account_types: ['bank'],
15
+ };
16
+ const URL = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accounts?query=${encodeURIComponent(JSON.stringify(queryValue))}`;
17
+ return zeniAPI.getJSON(URL).pipe((0, operators_1.mergeMap)((response) => {
18
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
19
+ const bankAccountIds = response.data.accounts.map((account) => account.account_id);
20
+ const updateActions = [];
21
+ updateActions.push((0, settingsViewReducer_1.updateBankConnectionOnSuccess)({ bankAccountIds }), (0, accountReducer_1.updateAccounts)(response.data.accounts, 'bill_pay'));
22
+ return (0, rxjs_1.of)(...updateActions);
23
+ }
24
+ else {
25
+ return (0, rxjs_1.of)((0, settingsViewReducer_1.updateBankConnectionOnFailure)(response.status));
26
+ }
27
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, settingsViewReducer_1.updateBankConnectionOnFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Fetch Bank Accounts REST API call errored out' +
28
+ JSON.stringify(error))))));
29
+ }));
30
+ exports.fetchBankAccountsListEpic = fetchBankAccountsListEpic;
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { fetchBankConnectionsView, fetchBankAccountsList } from '../settingsViewReducer';
4
+ import { getPaymentAccounts } from '../../spendManagement/commonSetup/setupViewReducer';
5
+ export declare type ActionType = ReturnType<typeof fetchBankConnectionsView> | ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof getPaymentAccounts>;
6
+ export declare const fetchBankConnectionsViewEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchBankConnectionsViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const settingsViewReducer_1 = require("../settingsViewReducer");
7
+ const setupViewReducer_1 = require("../../spendManagement/commonSetup/setupViewReducer");
8
+ const fetchBankConnectionsViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchBankConnectionsView.match), (0, operators_1.switchMap)(() => {
9
+ return (0, rxjs_1.from)([
10
+ (0, settingsViewReducer_1.fetchBankAccountsList)(),
11
+ (0, setupViewReducer_1.getPaymentAccounts)('bill_pay', false),
12
+ ]);
13
+ }));
14
+ exports.fetchBankConnectionsViewEpic = fetchBankConnectionsViewEpic;