@zeniai/client-epic-state 4.15.84 → 4.15.85

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 (129) hide show
  1. package/lib/commonStateTypes/animations.d.ts +1 -1
  2. package/lib/commonStateTypes/animations.js +1 -1
  3. package/lib/entity/chargeCard/chargeCard.d.ts +26 -8
  4. package/lib/entity/chargeCard/chargeCard.js +25 -6
  5. package/lib/entity/chargeCard/chargeCardPayload.d.ts +41 -5
  6. package/lib/entity/chargeCard/chargeCardPayload.js +20 -8
  7. package/lib/entity/company/companyPayload.d.ts +12 -1
  8. package/lib/entity/company/companyPayload.js +14 -0
  9. package/lib/entity/company/companyStateTypes.d.ts +11 -0
  10. package/lib/entity/connectedAccount/connectedAccount.d.ts +19 -0
  11. package/lib/entity/connectedAccount/connectedAccount.js +10 -0
  12. package/lib/entity/connectedAccount/connectedAccountPayload.d.ts +11 -0
  13. package/lib/entity/connectedAccount/connectedAccountPayload.js +15 -0
  14. package/lib/entity/connectedAccount/connectedAccountReducer.d.ts +6 -0
  15. package/lib/entity/connectedAccount/connectedAccountReducer.js +27 -0
  16. package/lib/entity/connectedAccount/connectedAccountSelector.d.ts +4 -0
  17. package/lib/entity/connectedAccount/connectedAccountSelector.js +17 -0
  18. package/lib/entity/depositAccount/depositAccount.d.ts +20 -2
  19. package/lib/entity/depositAccount/depositAccountPayload.d.ts +22 -1
  20. package/lib/entity/depositAccount/depositAccountPayload.js +39 -1
  21. package/lib/entity/depositAccount/depositAccountReducer.d.ts +2 -2
  22. package/lib/entity/depositAccount/depositAccountReducer.js +8 -2
  23. package/lib/entity/depositAccount/depositAccountSelector.d.ts +3 -1
  24. package/lib/entity/depositAccount/depositAccountSelector.js +10 -0
  25. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  26. package/lib/entity/snackbar/snackbarTypes.js +2 -0
  27. package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
  28. package/lib/entity/tenant/clearAllEpic.js +2 -0
  29. package/lib/entity/tenant/tenantSelector.d.ts +5 -1
  30. package/lib/entity/tenant/tenantSelector.js +6 -0
  31. package/lib/epic.d.ts +5 -1
  32. package/lib/epic.js +5 -1
  33. package/lib/index.d.ts +11 -11
  34. package/lib/index.js +21 -13
  35. package/lib/reducer.d.ts +3 -0
  36. package/lib/reducer.js +3 -0
  37. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +8 -0
  38. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +16 -0
  39. package/lib/view/addressView/addressViewState.d.ts +1 -1
  40. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +1 -1
  41. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +1 -1
  42. package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +4 -3
  43. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +5 -3
  44. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.js +4 -2
  45. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +8 -3
  46. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState.d.ts +4 -2
  47. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +12 -0
  48. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +26 -0
  49. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +2 -0
  50. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +43 -4
  51. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +104 -9
  52. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +15 -0
  53. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +70 -16
  54. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.d.ts +2 -1
  55. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +12 -3
  56. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic.js +2 -1
  57. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchDepositAccountLimitEpic.d.ts +8 -0
  58. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchDepositAccountLimitEpic.js +41 -0
  59. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardLimitEpic.js +2 -2
  60. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateDebitCardPinAttemptEpic.d.ts +11 -0
  61. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateDebitCardPinAttemptEpic.js +42 -0
  62. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +11 -1
  63. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +20 -1
  64. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +16 -1
  65. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +5 -3
  66. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +30 -4
  67. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +5 -2
  68. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +24 -13
  69. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts +2 -2
  70. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +16 -2
  71. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchDebitCardSummaryEpic.d.ts +7 -0
  72. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchDebitCardSummaryEpic.js +23 -0
  73. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.d.ts +2 -1
  74. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.js +4 -2
  75. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.d.ts +2 -1
  76. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +2 -0
  77. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/acceptChargeCardTermsEpic.js +19 -2
  78. package/lib/view/spendManagement/chargeCards/issueChargeCard/depositAccountWithLimitPayload.d.ts +6 -0
  79. package/lib/view/spendManagement/chargeCards/issueChargeCard/depositAccountWithLimitPayload.js +2 -0
  80. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchDepositAccountListForCardsEpic.d.ts +8 -0
  81. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchDepositAccountListForCardsEpic.js +31 -0
  82. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +2 -2
  83. package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +15 -3
  84. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
  85. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +65 -25
  86. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +11 -3
  87. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +45 -11
  88. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +6 -3
  89. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +33 -18
  90. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +41 -8
  91. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -21
  92. package/lib/view/spendManagement/commonSetup/epic/setup/enableSetupEpic.js +9 -0
  93. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +8 -3
  94. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +4 -4
  95. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -1
  96. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +3 -1
  97. package/lib/view/spendManagement/commonSetup/setupViewState.js +13 -1
  98. package/lib/view/spendManagement/helpers.d.ts +3 -0
  99. package/lib/view/spendManagement/helpers.js +13 -1
  100. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic.js +2 -1
  101. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js +2 -1
  102. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.js +2 -1
  103. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +2 -1
  104. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +2 -1
  105. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
  106. package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector.js +1 -1
  107. package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.d.ts +1 -1
  108. package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.js +3 -3
  109. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +1 -1
  110. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +1 -1
  111. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -1
  112. package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +3 -2
  113. package/lib/view/twoFactorAuthentication/resendOtpEpic.js +44 -19
  114. package/lib/view/twoFactorAuthentication/sendOtpEpic.d.ts +2 -1
  115. package/lib/view/twoFactorAuthentication/sendOtpEpic.js +45 -18
  116. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.d.ts +17 -5
  117. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.js +33 -0
  118. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +7 -7
  119. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.js +6 -6
  120. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.d.ts +22 -6
  121. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +176 -60
  122. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationSelector.d.ts +5 -3
  123. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationSelector.js +13 -2
  124. package/lib/view/twoFactorAuthentication/verifyOtpEpic.d.ts +5 -2
  125. package/lib/view/twoFactorAuthentication/verifyOtpEpic.js +46 -5
  126. package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +2 -2
  127. package/lib/view/userListView/fetchUserListByTypeEpic.js +4 -3
  128. package/lib/view/userListView/userListViewPayload.d.ts +11 -0
  129. package/package.json +1 -1
@@ -8,31 +8,23 @@ const vendorViewReducer_1 = require("../commonVendorView/vendorView/vendorViewRe
8
8
  const onboardingCustomerViewReducer_1 = require("../onboardingView/customerView/onboardingCustomerViewReducer");
9
9
  const settingsViewReducer_1 = require("../settingsView/settingsViewReducer");
10
10
  const cardUserOnboardingReducer_1 = require("../spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer");
11
+ const chargeCardDetailReducer_1 = require("../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer");
11
12
  const setupViewReducer_1 = require("../spendManagement/commonSetup/setupViewReducer");
12
13
  const twoFactorAuthenticationReducer_1 = require("./twoFactorAuthenticationReducer");
13
14
  const sendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(twoFactorAuthenticationReducer_1.sendOtp.match), (0, operators_1.mergeMap)((action) => {
14
- var _a;
15
15
  const sendOtpActions = [];
16
- const { phoneNumber, twoFASource } = action.payload;
17
- const tenantState = state$.value.tenantState;
18
- const companyState = state$.value.companyState;
19
- const { currentTenantId } = tenantState;
20
- const companyId = currentTenantId != null
21
- ? (_a = tenantState.tenantsById[currentTenantId]) === null || _a === void 0 ? void 0 : _a.companyId
22
- : undefined;
23
- const isCardsEnabled = companyId != null
24
- ? companyState.companiesById[companyId].companyChargeCardInfo
25
- .isChargeCardEnabled
26
- : false;
16
+ const { phoneNumber, twoFASource, entityId } = action.payload;
27
17
  const queryPayload = {
28
18
  channel_type: 'phone',
29
19
  channel_info: {
30
20
  phone_number: phoneNumber,
31
21
  },
32
- is_for_charge_cards: twoFASource === 'ChargeCard' ||
33
- twoFASource === 'CardUserOnboarding' ||
34
- (twoFASource === 'MyProfile' && isCardsEnabled),
35
22
  };
23
+ if (twoFASource === 'ChargeCardHolder' && entityId != null) {
24
+ const chargeCardProviderId = state$.value.chargeCardState.chargeCardByID[entityId].cardProviderID;
25
+ queryPayload.provider_card_id = chargeCardProviderId;
26
+ queryPayload.is_for_charge_cards = true;
27
+ }
36
28
  switch (twoFASource) {
37
29
  case 'SpendManagementSetup':
38
30
  sendOtpActions.push((0, setupViewReducer_1.sendOtpSpendManagementSetUp)());
@@ -49,13 +41,22 @@ const sendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1
49
41
  case 'CardUserOnboarding':
50
42
  sendOtpActions.push((0, cardUserOnboardingReducer_1.sendOtpCardUserOnboarding)());
51
43
  break;
44
+ case 'ChargeCardHolder':
45
+ if (entityId != null) {
46
+ sendOtpActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolder)({ phone: phoneNumber, chargeCardId: entityId }));
47
+ }
48
+ break;
52
49
  }
53
50
  const setOtp$ = zeniAPI
54
51
  .postAndGetJSON(`${zeniAPI.apiEndPoints.authMicroServiceBaseUrl}/1.0/otp/send`, queryPayload)
55
52
  .pipe((0, operators_1.mergeMap)((response) => {
56
53
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
57
54
  const updateActions = [
58
- (0, twoFactorAuthenticationReducer_1.sendOtpSuccess)({ otpChallenge: response.data.otp_challenge }),
55
+ (0, twoFactorAuthenticationReducer_1.sendOtpSuccess)({
56
+ otpChallenge: response.data.otp_challenge,
57
+ twoFASource,
58
+ entityId,
59
+ }),
59
60
  ];
60
61
  switch (twoFASource) {
61
62
  case 'SpendManagementSetup':
@@ -83,12 +84,20 @@ const sendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1
83
84
  otpChallenge: response.data.otp_challenge,
84
85
  }));
85
86
  break;
87
+ case 'ChargeCardHolder':
88
+ if (entityId != null) {
89
+ updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderSuccess)({
90
+ otpChallenge: response.data.otp_challenge,
91
+ chargeCardId: entityId,
92
+ }));
93
+ }
94
+ break;
86
95
  }
87
96
  return (0, rxjs_1.from)(updateActions);
88
97
  }
89
98
  else {
90
99
  const updateActions = [
91
- (0, twoFactorAuthenticationReducer_1.sendOtpFailure)(response.status),
100
+ (0, twoFactorAuthenticationReducer_1.sendOtpFailure)({ error: response.status, twoFASource, entityId }),
92
101
  ];
93
102
  switch (twoFASource) {
94
103
  case 'SpendManagementSetup':
@@ -106,12 +115,22 @@ const sendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1
106
115
  case 'CardUserOnboarding':
107
116
  updateActions.push((0, cardUserOnboardingReducer_1.sendOtpCardUserOnboardingFailure)(response.status));
108
117
  break;
118
+ case 'ChargeCardHolder':
119
+ if (entityId != null) {
120
+ updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderFailure)({
121
+ error: response.status,
122
+ chargeCardId: entityId,
123
+ }));
124
+ }
125
+ break;
109
126
  }
110
127
  return (0, rxjs_1.from)(updateActions);
111
128
  }
112
129
  }), (0, operators_1.catchError)((error) => {
113
130
  const zeniAPIStatus = (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Send otp api errored out' + JSON.stringify(error));
114
- const updateActions = [(0, twoFactorAuthenticationReducer_1.sendOtpFailure)(zeniAPIStatus)];
131
+ const updateActions = [
132
+ (0, twoFactorAuthenticationReducer_1.sendOtpFailure)({ error: zeniAPIStatus, twoFASource, entityId }),
133
+ ];
115
134
  switch (twoFASource) {
116
135
  case 'SpendManagementSetup':
117
136
  updateActions.push((0, setupViewReducer_1.sendOtpFailureSpendManagementSetUp)(zeniAPIStatus));
@@ -128,6 +147,14 @@ const sendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1
128
147
  case 'CardUserOnboarding':
129
148
  updateActions.push((0, cardUserOnboardingReducer_1.sendOtpCardUserOnboardingFailure)(zeniAPIStatus));
130
149
  break;
150
+ case 'ChargeCardHolder':
151
+ if (entityId != null) {
152
+ updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderFailure)({
153
+ error: zeniAPIStatus,
154
+ chargeCardId: entityId,
155
+ }));
156
+ }
157
+ break;
131
158
  }
132
159
  return (0, rxjs_1.from)(updateActions);
133
160
  }));
@@ -1,16 +1,28 @@
1
- import { FetchStateAndError } from '../../commonStateTypes/common';
1
+ import { FetchStateAndError, ID } from '../../commonStateTypes/common';
2
2
  import { ZeniDate } from '../../zeniDayJS';
3
- export interface TwoFactorAuthenticationState {
3
+ export interface TwoFactorAuthentication {
4
4
  sendOtpStatus: FetchStateAndError;
5
5
  otpVerificationStatus: FetchStateAndError;
6
- customerToken?: CustomerToken;
6
+ token?: Token;
7
7
  phone?: string;
8
8
  otpChallenge?: string;
9
9
  }
10
- export type TwoFASourceView = 'BillPayVendor' | 'ChargeCard' | 'SpendManagementSetup' | 'CardUserOnboarding' | 'MyProfile' | 'CustomerOnboarding';
11
- export interface CustomerToken {
10
+ export type TwoFactorAuthenticationWithoutToken = Omit<TwoFactorAuthentication, 'token'>;
11
+ export declare const defaultTwoFactorAuthenticationState: TwoFactorAuthentication;
12
+ export interface TwoFactorAuthenticationState {
13
+ common: TwoFactorAuthentication;
14
+ chargeCardHolder: Record<ID, TwoFactorAuthentication>;
15
+ cardUserOnboarding: TwoFactorAuthenticationWithoutToken;
16
+ }
17
+ export declare const COMMON_TWO_FA_SOURCE: readonly ["BillPayVendor", "SpendManagementSetup", "MyProfile", "CustomerOnboarding"];
18
+ export declare const toCommonTwoFASource: (v: string) => "MyProfile" | "BillPayVendor" | "SpendManagementSetup" | "CustomerOnboarding";
19
+ export type CommonTwoFASource = ReturnType<typeof toCommonTwoFASource>;
20
+ export type TwoFASourceView = CommonTwoFASource | 'ChargeCardHolder' | 'CardUserOnboarding';
21
+ export interface Token {
12
22
  provider: string;
13
23
  token: string;
14
24
  expiry: ZeniDate;
15
25
  message: string;
16
26
  }
27
+ export declare const initialTwoFactorAuthenticationWithoutToken: TwoFactorAuthenticationWithoutToken;
28
+ export declare const initialTwoFactorAuthentication: TwoFactorAuthentication;
@@ -1,2 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initialTwoFactorAuthentication = exports.initialTwoFactorAuthenticationWithoutToken = exports.toCommonTwoFASource = exports.COMMON_TWO_FA_SOURCE = exports.defaultTwoFactorAuthenticationState = void 0;
4
+ const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
+ exports.defaultTwoFactorAuthenticationState = {
6
+ sendOtpStatus: {
7
+ fetchState: 'Not-Started',
8
+ error: undefined,
9
+ },
10
+ otpVerificationStatus: {
11
+ fetchState: 'Not-Started',
12
+ error: undefined,
13
+ },
14
+ };
15
+ exports.COMMON_TWO_FA_SOURCE = [
16
+ 'BillPayVendor',
17
+ 'SpendManagementSetup',
18
+ 'MyProfile',
19
+ 'CustomerOnboarding',
20
+ ];
21
+ const toCommonTwoFASource = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.COMMON_TWO_FA_SOURCE);
22
+ exports.toCommonTwoFASource = toCommonTwoFASource;
23
+ exports.initialTwoFactorAuthenticationWithoutToken = {
24
+ sendOtpStatus: {
25
+ fetchState: 'Not-Started',
26
+ error: undefined,
27
+ },
28
+ otpVerificationStatus: {
29
+ fetchState: 'Not-Started',
30
+ error: undefined,
31
+ },
32
+ phone: undefined,
33
+ otpChallenge: undefined,
34
+ };
35
+ exports.initialTwoFactorAuthentication = Object.assign(Object.assign({}, exports.initialTwoFactorAuthenticationWithoutToken), { token: undefined });
@@ -1,5 +1,5 @@
1
1
  import { ZeniAPIResponse } from '../../responsePayload';
2
- import { CustomerToken } from './twoFactorAuthentication';
2
+ import { Token } from './twoFactorAuthentication';
3
3
  interface SendOtpPayload {
4
4
  otp_challenge: string;
5
5
  }
@@ -7,14 +7,14 @@ export type SendOtpResponse = ZeniAPIResponse<SendOtpPayload>;
7
7
  interface VerifyOtpPayload {
8
8
  is_verified: boolean;
9
9
  message: string;
10
- customer_token_info?: CustomerTokenPayload;
10
+ token_info?: TokenPayload;
11
11
  }
12
- export interface CustomerTokenPayload {
13
- customer_token_provider: string;
14
- customer_token: string;
15
- customer_token_expiration_time: string;
12
+ export interface TokenPayload {
13
+ token_provider: string;
14
+ token: string;
15
+ token_expiration_time: string;
16
16
  message: string;
17
17
  }
18
18
  export type VerifyOtpResponse = ZeniAPIResponse<VerifyOtpPayload>;
19
- export declare const toCustomerToken: (payload: CustomerTokenPayload) => CustomerToken;
19
+ export declare const toToken: (payload: TokenPayload) => Token;
20
20
  export {};
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCustomerToken = void 0;
3
+ exports.toToken = void 0;
4
4
  const zeniDayJS_1 = require("../../zeniDayJS");
5
- const toCustomerToken = (payload) => ({
6
- provider: payload.customer_token_provider,
7
- token: payload.customer_token,
8
- expiry: (0, zeniDayJS_1.date)(payload.customer_token_expiration_time),
5
+ const toToken = (payload) => ({
6
+ provider: payload.token_provider,
7
+ token: payload.token,
8
+ expiry: (0, zeniDayJS_1.date)(payload.token_expiration_time),
9
9
  message: payload.message,
10
10
  });
11
- exports.toCustomerToken = toCustomerToken;
11
+ exports.toToken = toToken;
@@ -1,21 +1,37 @@
1
+ import { ID } from '../../commonStateTypes/common';
1
2
  import { ZeniAPIStatus } from '../../responsePayload';
2
3
  import { TwoFASourceView, TwoFactorAuthenticationState } from './twoFactorAuthentication';
3
- import { CustomerTokenPayload } from './twoFactorAuthenticationPayload';
4
+ import { TokenPayload } from './twoFactorAuthenticationPayload';
4
5
  export declare const initialState: TwoFactorAuthenticationState;
5
- export declare const sendOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[phoneNumber: string, twoFASource: TwoFASourceView], {
6
+ export declare const sendOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[phoneNumber: string, twoFASource: TwoFASourceView, entityId?: string | undefined], {
6
7
  phoneNumber: string;
7
8
  twoFASource: TwoFASourceView;
8
- }, "twoFactorAuthentication/sendOtp", never, never>, resendOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpChallenge: string, twoFASource: TwoFASourceView], {
9
+ entityId: string | undefined;
10
+ }, "twoFactorAuthentication/sendOtp", never, never>, resendOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpChallenge: string, twoFASource: TwoFASourceView, entityId?: string | undefined], {
9
11
  otpChallenge: string;
10
12
  twoFASource: TwoFASourceView;
13
+ entityId: string | undefined;
11
14
  }, "twoFactorAuthentication/resendOtp", never, never>, sendOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
12
15
  otpChallenge: string;
13
- }, "twoFactorAuthentication/sendOtpSuccess">, sendOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "twoFactorAuthentication/sendOtpFailure">, verifyOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpCode: string, otpChallenge: string, twoFASource: TwoFASourceView], {
16
+ twoFASource: TwoFASourceView;
17
+ entityId?: ID;
18
+ }, "twoFactorAuthentication/sendOtpSuccess">, sendOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
+ error: ZeniAPIStatus;
20
+ twoFASource: TwoFASourceView;
21
+ entityId?: ID;
22
+ }, "twoFactorAuthentication/sendOtpFailure">, verifyOtp: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[otpCode: string, otpChallenge: string, twoFASource: TwoFASourceView, entityId?: string | undefined], {
14
23
  otpCode: string;
15
24
  otpChallenge: string;
16
25
  twoFASource: TwoFASourceView;
26
+ entityId: string | undefined;
17
27
  }, "twoFactorAuthentication/verifyOtp", never, never>, verifyOtpSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
- customerTokenPayload: CustomerTokenPayload | undefined;
19
- }, "twoFactorAuthentication/verifyOtpSuccess">, verifyOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "twoFactorAuthentication/verifyOtpFailure">, clearTwoFactorAuthentication: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"twoFactorAuthentication/clearTwoFactorAuthentication">;
28
+ twoFASource: TwoFASourceView;
29
+ tokenPayload: TokenPayload | undefined;
30
+ entityId?: ID;
31
+ }, "twoFactorAuthentication/verifyOtpSuccess">, verifyOtpFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
32
+ error: ZeniAPIStatus;
33
+ twoFASource: TwoFASourceView;
34
+ entityId?: ID;
35
+ }, "twoFactorAuthentication/verifyOtpFailure">, clearTwoFactorAuthentication: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"twoFactorAuthentication/clearTwoFactorAuthentication">;
20
36
  declare const _default: import("redux").Reducer<TwoFactorAuthenticationState>;
21
37
  export default _default;
@@ -3,19 +3,12 @@ var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.clearTwoFactorAuthentication = exports.verifyOtpFailure = exports.verifyOtpSuccess = exports.verifyOtp = exports.sendOtpFailure = exports.sendOtpSuccess = exports.resendOtp = exports.sendOtp = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
+ const twoFactorAuthentication_1 = require("./twoFactorAuthentication");
6
7
  const twoFactorAuthenticationPayload_1 = require("./twoFactorAuthenticationPayload");
7
8
  exports.initialState = {
8
- sendOtpStatus: {
9
- fetchState: 'Not-Started',
10
- error: undefined,
11
- },
12
- otpVerificationStatus: {
13
- fetchState: 'Not-Started',
14
- error: undefined,
15
- },
16
- customerToken: undefined,
17
- phone: undefined,
18
- otpChallenge: undefined,
9
+ common: twoFactorAuthentication_1.initialTwoFactorAuthentication,
10
+ chargeCardHolder: {},
11
+ cardUserOnboarding: twoFactorAuthentication_1.initialTwoFactorAuthenticationWithoutToken,
19
12
  };
20
13
  const twoFactorAuthentication = (0, toolkit_1.createSlice)({
21
14
  name: 'twoFactorAuthentication',
@@ -23,74 +16,197 @@ const twoFactorAuthentication = (0, toolkit_1.createSlice)({
23
16
  reducers: {
24
17
  sendOtp: {
25
18
  reducer(draft, action) {
26
- draft.phone = action.payload.phoneNumber;
27
- draft.sendOtpStatus = {
28
- fetchState: 'In-Progress',
29
- error: undefined,
30
- };
31
- draft.otpVerificationStatus = {
32
- fetchState: 'Not-Started',
33
- error: undefined,
34
- };
19
+ const { phoneNumber, twoFASource, entityId } = action.payload;
20
+ if (twoFASource === 'CardUserOnboarding') {
21
+ draft.cardUserOnboarding.phone = phoneNumber;
22
+ draft.cardUserOnboarding.sendOtpStatus = {
23
+ fetchState: 'In-Progress',
24
+ error: undefined,
25
+ };
26
+ draft.cardUserOnboarding.otpVerificationStatus = {
27
+ fetchState: 'Not-Started',
28
+ error: undefined,
29
+ };
30
+ }
31
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
32
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { phone: phoneNumber, sendOtpStatus: {
33
+ fetchState: 'In-Progress',
34
+ error: undefined,
35
+ }, otpVerificationStatus: {
36
+ fetchState: 'Not-Started',
37
+ error: undefined,
38
+ } });
39
+ }
40
+ else {
41
+ draft.common.phone = phoneNumber;
42
+ draft.common.sendOtpStatus = {
43
+ fetchState: 'In-Progress',
44
+ error: undefined,
45
+ };
46
+ draft.common.otpVerificationStatus = {
47
+ fetchState: 'Not-Started',
48
+ error: undefined,
49
+ };
50
+ }
35
51
  },
36
- prepare(phoneNumber, twoFASource) {
37
- return { payload: { phoneNumber, twoFASource } };
52
+ prepare(phoneNumber, twoFASource, entityId) {
53
+ return { payload: { phoneNumber, twoFASource, entityId } };
38
54
  },
39
55
  },
40
56
  resendOtp: {
41
- reducer(draft) {
42
- draft.sendOtpStatus = {
43
- fetchState: 'In-Progress',
44
- error: undefined,
45
- };
46
- draft.otpVerificationStatus = {
47
- fetchState: 'Not-Started',
48
- error: undefined,
49
- };
57
+ reducer(draft, action) {
58
+ const { twoFASource, entityId } = action.payload;
59
+ if (twoFASource === 'CardUserOnboarding') {
60
+ draft.cardUserOnboarding.sendOtpStatus = {
61
+ fetchState: 'In-Progress',
62
+ error: undefined,
63
+ };
64
+ draft.cardUserOnboarding.otpVerificationStatus = {
65
+ fetchState: 'Not-Started',
66
+ error: undefined,
67
+ };
68
+ }
69
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
70
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { sendOtpStatus: {
71
+ fetchState: 'In-Progress',
72
+ error: undefined,
73
+ }, otpVerificationStatus: {
74
+ fetchState: 'Not-Started',
75
+ error: undefined,
76
+ } });
77
+ }
78
+ else {
79
+ draft.common.sendOtpStatus = {
80
+ fetchState: 'In-Progress',
81
+ error: undefined,
82
+ };
83
+ draft.common.otpVerificationStatus = {
84
+ fetchState: 'Not-Started',
85
+ error: undefined,
86
+ };
87
+ }
50
88
  },
51
- prepare(otpChallenge, twoFASource) {
52
- return { payload: { otpChallenge, twoFASource } };
89
+ prepare(otpChallenge, twoFASource, entityId) {
90
+ return { payload: { otpChallenge, twoFASource, entityId } };
53
91
  },
54
92
  },
55
93
  sendOtpSuccess(draft, action) {
56
- draft.otpChallenge = action.payload.otpChallenge;
57
- draft.sendOtpStatus = {
58
- fetchState: 'Completed',
59
- error: undefined,
60
- };
94
+ const { otpChallenge, twoFASource, entityId } = action.payload;
95
+ if (twoFASource === 'CardUserOnboarding') {
96
+ draft.cardUserOnboarding.otpChallenge = otpChallenge;
97
+ draft.cardUserOnboarding.sendOtpStatus = {
98
+ fetchState: 'Completed',
99
+ error: undefined,
100
+ };
101
+ }
102
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
103
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { otpChallenge: otpChallenge, sendOtpStatus: {
104
+ fetchState: 'Completed',
105
+ error: undefined,
106
+ } });
107
+ }
108
+ else {
109
+ draft.common.otpChallenge = otpChallenge;
110
+ draft.common.sendOtpStatus = {
111
+ fetchState: 'Completed',
112
+ error: undefined,
113
+ };
114
+ }
61
115
  },
62
116
  sendOtpFailure(draft, action) {
63
- draft.sendOtpStatus = {
64
- fetchState: 'Error',
65
- error: action.payload,
66
- };
117
+ const { error, twoFASource, entityId } = action.payload;
118
+ if (twoFASource === 'CardUserOnboarding') {
119
+ draft.cardUserOnboarding.sendOtpStatus = {
120
+ fetchState: 'Error',
121
+ error,
122
+ };
123
+ }
124
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
125
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { sendOtpStatus: {
126
+ fetchState: 'Error',
127
+ error,
128
+ } });
129
+ }
130
+ else {
131
+ draft.common.sendOtpStatus = {
132
+ fetchState: 'Error',
133
+ error,
134
+ };
135
+ }
67
136
  },
68
137
  verifyOtp: {
69
- reducer(draft) {
70
- draft.otpVerificationStatus = {
71
- fetchState: 'In-Progress',
72
- error: undefined,
73
- };
138
+ reducer(draft, action) {
139
+ const { twoFASource, entityId } = action.payload;
140
+ if (twoFASource === 'CardUserOnboarding') {
141
+ draft.cardUserOnboarding.otpVerificationStatus = {
142
+ fetchState: 'In-Progress',
143
+ error: undefined,
144
+ };
145
+ }
146
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
147
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { otpVerificationStatus: {
148
+ fetchState: 'In-Progress',
149
+ error: undefined,
150
+ } });
151
+ }
152
+ else {
153
+ draft.common.otpVerificationStatus = {
154
+ fetchState: 'In-Progress',
155
+ error: undefined,
156
+ };
157
+ }
74
158
  },
75
- prepare(otpCode, otpChallenge, twoFASource) {
76
- return { payload: { otpCode, otpChallenge, twoFASource } };
159
+ prepare(otpCode, otpChallenge, twoFASource, entityId) {
160
+ return { payload: { otpCode, otpChallenge, twoFASource, entityId } };
77
161
  },
78
162
  },
79
163
  verifyOtpSuccess(draft, action) {
80
- const { customerTokenPayload } = action.payload;
81
- if (customerTokenPayload != null) {
82
- draft.customerToken = (0, twoFactorAuthenticationPayload_1.toCustomerToken)(customerTokenPayload);
164
+ const { twoFASource, tokenPayload, entityId } = action.payload;
165
+ if (twoFASource === 'CardUserOnboarding') {
166
+ draft.cardUserOnboarding.otpVerificationStatus = {
167
+ fetchState: 'Completed',
168
+ error: undefined,
169
+ };
170
+ }
171
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
172
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { otpVerificationStatus: {
173
+ fetchState: 'Completed',
174
+ error: undefined,
175
+ } });
176
+ if (tokenPayload != null) {
177
+ draft.chargeCardHolder[entityId].token = (0, twoFactorAuthenticationPayload_1.toToken)(tokenPayload);
178
+ }
179
+ }
180
+ else {
181
+ draft.common.otpVerificationStatus = {
182
+ fetchState: 'Completed',
183
+ error: undefined,
184
+ };
185
+ if (tokenPayload != null) {
186
+ draft.common.token = (0, twoFactorAuthenticationPayload_1.toToken)(tokenPayload);
187
+ }
83
188
  }
84
- draft.otpVerificationStatus = {
85
- fetchState: 'Completed',
86
- error: undefined,
87
- };
88
189
  },
89
190
  verifyOtpFailure(draft, action) {
90
- draft.otpVerificationStatus = {
91
- fetchState: 'Error',
92
- error: action.payload,
93
- };
191
+ const { error, twoFASource, entityId } = action.payload;
192
+ if (twoFASource === 'CardUserOnboarding') {
193
+ draft.cardUserOnboarding.otpVerificationStatus = {
194
+ fetchState: 'Error',
195
+ error,
196
+ };
197
+ }
198
+ else if (twoFASource === 'ChargeCardHolder' && entityId != null) {
199
+ draft.chargeCardHolder[entityId] = Object.assign(Object.assign({}, draft.chargeCardHolder[entityId]), { otpVerificationStatus: {
200
+ fetchState: 'Error',
201
+ error,
202
+ } });
203
+ }
204
+ else {
205
+ draft.common.otpVerificationStatus = {
206
+ fetchState: 'Error',
207
+ error,
208
+ };
209
+ }
94
210
  },
95
211
  clearTwoFactorAuthentication(draft) {
96
212
  Object.assign(draft, exports.initialState);
@@ -1,12 +1,14 @@
1
- import { FetchStateAndError } from '../../commonStateTypes/common';
1
+ import { FetchStateAndError, ID } from '../../commonStateTypes/common';
2
2
  import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
3
3
  import { RootState } from '../../reducer';
4
- import { CustomerToken } from './twoFactorAuthentication';
4
+ import { Token, TwoFactorAuthentication, TwoFactorAuthenticationWithoutToken } from './twoFactorAuthentication';
5
5
  export interface TwoFactorAuthenticationView extends View {
6
6
  sendOtpStatus: FetchStateAndError;
7
7
  otpVerificationStatus: FetchStateAndError;
8
- customerToken?: CustomerToken;
8
+ token?: Token;
9
9
  phone?: string;
10
10
  otpChallenge?: string;
11
11
  }
12
12
  export declare const getTwoFactorAuthenticationView: (state: RootState) => TwoFactorAuthenticationView;
13
+ export declare const getTwoFactorAuthenticationViewForChargeCardHolder: (state: RootState, entityId: ID) => TwoFactorAuthentication;
14
+ export declare const getTwoFactorAuthenticationViewForCardUserOnboarding: (state: RootState) => TwoFactorAuthenticationWithoutToken | undefined;
@@ -1,7 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTwoFactorAuthenticationView = void 0;
3
+ exports.getTwoFactorAuthenticationViewForCardUserOnboarding = exports.getTwoFactorAuthenticationViewForChargeCardHolder = exports.getTwoFactorAuthenticationView = void 0;
4
4
  const toolkit_1 = require("@reduxjs/toolkit");
5
+ const twoFactorAuthentication_1 = require("./twoFactorAuthentication");
5
6
  exports.getTwoFactorAuthenticationView = (0, toolkit_1.createSelector)((state) => state.twoFactorAuthenticationState, (twoFAState) => {
6
- return Object.assign({}, twoFAState);
7
+ return Object.assign({}, twoFAState.common);
8
+ });
9
+ exports.getTwoFactorAuthenticationViewForChargeCardHolder = (0, toolkit_1.createSelector)((state) => state.twoFactorAuthenticationState, (_state, entityId) => entityId, (twoFAState, entityId) => {
10
+ const twoFA = twoFAState.chargeCardHolder[entityId];
11
+ if (twoFA != null) {
12
+ return twoFA;
13
+ }
14
+ return twoFactorAuthentication_1.initialTwoFactorAuthentication;
15
+ });
16
+ exports.getTwoFactorAuthenticationViewForCardUserOnboarding = (0, toolkit_1.createSelector)((state) => state.twoFactorAuthenticationState, (twoFAState) => {
17
+ return twoFAState.cardUserOnboarding;
7
18
  });
@@ -6,7 +6,10 @@ import { verifyOtpVendorView, verifyOtpVendorViewFailure, verifyOtpVendorViewSuc
6
6
  import { verifyOnboardingOfficerOtp, verifyOnboardingOfficerOtpFailure, verifyOnboardingOfficerOtpSuccess } from '../onboardingView/customerView/onboardingCustomerViewReducer';
7
7
  import { verifyOtpMyProfile, verifyOtpMyProfileFailure, verifyOtpMyProfileSuccess } from '../settingsView/settingsViewReducer';
8
8
  import { verifyOtpCardUserOnboarding, verifyOtpCardUserOnboardingFailure, verifyOtpCardUserOnboardingSuccess } from '../spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
9
+ import { verifyOtpCardHolderFailure } from '../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
10
+ import { verifyOtpCardHolderSuccess } from '../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
11
+ import { verifyOtpCardHolder } from '../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
9
12
  import { verifyOtpFailureSpendManagementSetUp, verifyOtpSpendManagementSetUp, verifyOtpSuccessSpendManagementSetUp } from '../spendManagement/commonSetup/setupViewReducer';
10
13
  import { verifyOtp, verifyOtpFailure, verifyOtpSuccess } from './twoFactorAuthenticationReducer';
11
- export type ActionType = ReturnType<typeof verifyOtp> | ReturnType<typeof verifyOtpSuccess> | ReturnType<typeof verifyOtpFailure> | ReturnType<typeof verifyOtpSpendManagementSetUp> | ReturnType<typeof verifyOtpSuccessSpendManagementSetUp> | ReturnType<typeof verifyOtpFailureSpendManagementSetUp> | ReturnType<typeof verifyOtpVendorView> | ReturnType<typeof verifyOtpVendorViewSuccess> | ReturnType<typeof verifyOtpVendorViewFailure> | ReturnType<typeof verifyOnboardingOfficerOtp> | ReturnType<typeof verifyOnboardingOfficerOtpSuccess> | ReturnType<typeof verifyOnboardingOfficerOtpFailure> | ReturnType<typeof verifyOtpCardUserOnboarding> | ReturnType<typeof verifyOtpCardUserOnboardingSuccess> | ReturnType<typeof verifyOtpCardUserOnboardingFailure> | ReturnType<typeof verifyOtpMyProfile> | ReturnType<typeof verifyOtpMyProfileFailure> | ReturnType<typeof verifyOtpMyProfileSuccess>;
12
- export declare const verifyOtpEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
14
+ export type ActionType = ReturnType<typeof verifyOtp> | ReturnType<typeof verifyOtpSuccess> | ReturnType<typeof verifyOtpFailure> | ReturnType<typeof verifyOtpSpendManagementSetUp> | ReturnType<typeof verifyOtpSuccessSpendManagementSetUp> | ReturnType<typeof verifyOtpFailureSpendManagementSetUp> | ReturnType<typeof verifyOtpVendorView> | ReturnType<typeof verifyOtpVendorViewSuccess> | ReturnType<typeof verifyOtpVendorViewFailure> | ReturnType<typeof verifyOnboardingOfficerOtp> | ReturnType<typeof verifyOnboardingOfficerOtpSuccess> | ReturnType<typeof verifyOnboardingOfficerOtpFailure> | ReturnType<typeof verifyOtpCardUserOnboarding> | ReturnType<typeof verifyOtpCardUserOnboardingSuccess> | ReturnType<typeof verifyOtpCardUserOnboardingFailure> | ReturnType<typeof verifyOtpMyProfile> | ReturnType<typeof verifyOtpMyProfileFailure> | ReturnType<typeof verifyOtpMyProfileSuccess> | ReturnType<typeof verifyOtpCardHolder> | ReturnType<typeof verifyOtpCardHolderSuccess> | ReturnType<typeof verifyOtpCardHolderFailure>;
15
+ export declare const verifyOtpEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;