@tap-payments/auth-jsconnect 2.0.53-test → 2.0.55-test
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.
- package/build/@types/app.d.ts +24 -10
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -2
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.d.ts +31 -8
- package/build/api/data.js +36 -15
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -10
- package/build/app/rootReducer.js +10 -10
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +5 -5
- package/build/app/store.d.ts +1 -1
- package/build/components/AnimationFlow/AnimationFlow.js +1 -1
- package/build/components/AnimationFlow/Dialog.js +3 -3
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.js +6 -6
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +2 -2
- package/build/constants/api.js +5 -5
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/features/app/auth/authStore.d.ts +2 -2
- package/build/features/app/auth/authStore.js +2 -2
- package/build/features/app/bank/bankStore.d.ts +2 -2
- package/build/features/app/bank/bankStore.js +4 -4
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +42 -36
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +6 -6
- package/build/features/app/entity/entityStore.d.ts +2 -2
- package/build/features/app/entity/entityStore.js +5 -5
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +2 -2
- package/build/features/app/otp/otpStore.js +4 -4
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +4 -4
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +1 -1
- package/build/features/auth/Auth.js +10 -10
- package/build/features/auth/screens/OTP/OTP.js +8 -8
- package/build/features/auth/screens/OTP/OTPInput.js +3 -3
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +10 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +7 -7
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.js +5 -5
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +10 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +1 -1
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/CivilID/CivilID.js +8 -8
- package/build/features/connect/screens/CivilID/IDNumber.js +7 -7
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +10 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +9 -9
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.js +7 -7
- package/build/features/connect/screens/Merchant/SocialMedia.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +10 -10
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +8 -8
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +3 -3
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +1 -1
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +10 -10
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +1 -1
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +9 -9
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +7 -7
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +4 -4
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +5 -5
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +5 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +1 -1
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +7 -7
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/entity/screens/Success/Success.js +3 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/entity/screens/Verify/OTPInput.js +4 -4
- package/build/features/entity/screens/Verify/Verify.js +9 -9
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +49 -49
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +1 -1
- package/build/features/otp/OTP.js +9 -9
- package/build/features/otp/screens/OTPVerify/OTPInput.js +4 -4
- package/build/features/otp/screens/OTPVerify/Verify.js +5 -5
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +10 -10
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.js +2 -2
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.js +2 -2
- package/build/features/shared/Dialog/DialogContainer.js +2 -2
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.js +10 -10
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +10 -10
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +10 -10
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +4 -4
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +1 -1
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.js +1 -1
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +10 -10
- package/build/index.js +10 -10
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +1 -1
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +4 -4
- package/package.json +129 -129
- package/build/api/index.d.ts +0 -87
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
|
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
var _a;
|
|
38
38
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
-
import { handleOpen } from '
|
|
40
|
-
import API from '
|
|
39
|
+
import { handleOpen } from '@src/app/settings';
|
|
40
|
+
import API from '@api';
|
|
41
41
|
export var retrieveLead = createAsyncThunk('retrieveLeadAuthKit', function (leadId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
42
|
var data;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
data: any;
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep } from '
|
|
53
|
-
import { BANK_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
|
|
53
|
+
import { BANK_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '@constants';
|
|
54
54
|
export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var payload, data, boardInfoData, board_id, board_info_id, info, hasBankCompleted;
|
|
56
56
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, SalesChannel } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, SalesChannel } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
leadData: any;
|
|
@@ -57,11 +57,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import moment from 'moment';
|
|
60
|
-
import API from '
|
|
61
|
-
import { BusinessType, FlowsTypes } from '
|
|
62
|
-
import { BUSINESS_FLOW_SUCCESS, BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '
|
|
63
|
-
import { convertNumbers2English, getEighteenYearsAgo, hasKey } from '
|
|
64
|
-
import { handleNextScreenStep } from '
|
|
60
|
+
import API from '@api';
|
|
61
|
+
import { BusinessType, FlowsTypes } from '@types';
|
|
62
|
+
import { BUSINESS_FLOW_SUCCESS, BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '@constants';
|
|
63
|
+
import { convertNumbers2English, getEighteenYearsAgo, hasKey } from '@utils';
|
|
64
|
+
import { handleNextScreenStep } from '@app/settings';
|
|
65
65
|
export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
66
|
var payload, data, leadResponse, brandInfo, boardResponse, board_id, board_info_id, steps, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted;
|
|
67
67
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -192,7 +192,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
192
192
|
case 1:
|
|
193
193
|
data = (_k.sent()).data;
|
|
194
194
|
brandInfo = undefined;
|
|
195
|
-
if (!!data.errors) return [3,
|
|
195
|
+
if (!!data.errors) return [3, 14];
|
|
196
196
|
thunkApi.dispatch(updateStepName(stepName));
|
|
197
197
|
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
|
|
198
198
|
case 2:
|
|
@@ -205,45 +205,47 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
205
205
|
hasBusinessCustomersCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS);
|
|
206
206
|
if (!isNID) return [3, 3];
|
|
207
207
|
thunkApi.dispatch(handleNextScreenStep());
|
|
208
|
-
return [3,
|
|
208
|
+
return [3, 14];
|
|
209
209
|
case 3:
|
|
210
210
|
if (!hasBusinessCompleted) return [3, 5];
|
|
211
211
|
return [4, thunkApi.dispatch(retrieveBoardDetails(verifyResponse === null || verifyResponse === void 0 ? void 0 : verifyResponse.board_id))];
|
|
212
212
|
case 4:
|
|
213
213
|
_k.sent();
|
|
214
214
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
215
|
-
return [3,
|
|
215
|
+
return [3, 14];
|
|
216
216
|
case 5:
|
|
217
217
|
if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 6];
|
|
218
218
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
|
|
219
|
-
return [3,
|
|
219
|
+
return [3, 14];
|
|
220
220
|
case 6:
|
|
221
221
|
if (!hasBusinessCustomersCompleted) return [3, 7];
|
|
222
222
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP'));
|
|
223
|
-
return [3,
|
|
223
|
+
return [3, 14];
|
|
224
224
|
case 7:
|
|
225
|
-
if (!hasBusinessCRActivitiesCompleted) return [3,
|
|
225
|
+
if (!hasBusinessCRActivitiesCompleted) return [3, 10];
|
|
226
226
|
thunkApi.dispatch(retrieveChannels());
|
|
227
|
-
thunkApi.dispatch(retrieveDataList());
|
|
227
|
+
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
228
|
+
case 8:
|
|
229
|
+
_k.sent();
|
|
228
230
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP'));
|
|
229
231
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
230
|
-
case 8:
|
|
231
|
-
brandInfo = _k.sent();
|
|
232
|
-
return [3, 13];
|
|
233
232
|
case 9:
|
|
234
|
-
|
|
235
|
-
return [
|
|
233
|
+
brandInfo = _k.sent();
|
|
234
|
+
return [3, 14];
|
|
236
235
|
case 10:
|
|
236
|
+
if (!hasBusinessCRInfoCompleted) return [3, 13];
|
|
237
|
+
return [4, thunkApi.dispatch(retrieveChannels())];
|
|
238
|
+
case 11:
|
|
237
239
|
_k.sent();
|
|
238
240
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
239
|
-
case
|
|
241
|
+
case 12:
|
|
240
242
|
brandInfo = _k.sent();
|
|
241
243
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP'));
|
|
242
|
-
return [3,
|
|
243
|
-
case
|
|
244
|
+
return [3, 14];
|
|
245
|
+
case 13:
|
|
244
246
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
|
|
245
|
-
_k.label =
|
|
246
|
-
case
|
|
247
|
+
_k.label = 14;
|
|
248
|
+
case 14: return [2, { data: data, formData: __assign(__assign({}, params), { isNID: isNID }), brandInfo: brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.brand }];
|
|
247
249
|
}
|
|
248
250
|
});
|
|
249
251
|
}); });
|
|
@@ -419,17 +421,21 @@ export var updateActivitiesInfo = createAsyncThunk('updateActivitiesInfo', funct
|
|
|
419
421
|
}
|
|
420
422
|
});
|
|
421
423
|
}); });
|
|
422
|
-
export var retrieveDataList = createAsyncThunk('
|
|
423
|
-
var _a, customerBases, expectedSales, expectedCustomerSales;
|
|
424
|
+
export var retrieveDataList = createAsyncThunk('businessRetrieveDataList', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
425
|
+
var dataBody, _a, customerBases, expectedSales, expectedCustomerSales;
|
|
424
426
|
return __generator(this, function (_b) {
|
|
425
427
|
switch (_b.label) {
|
|
426
|
-
case 0:
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
case 0:
|
|
429
|
+
dataBody = {
|
|
430
|
+
page: 0
|
|
431
|
+
};
|
|
432
|
+
return [4, Promise.all([
|
|
433
|
+
API.dataService.getCustomerBases(dataBody),
|
|
434
|
+
API.dataService.getExpectedSales(dataBody),
|
|
435
|
+
API.dataService.getExpectedCustomerSales(dataBody)
|
|
436
|
+
])];
|
|
431
437
|
case 1:
|
|
432
|
-
_a = _b.sent(), customerBases = _a[0]
|
|
438
|
+
_a = _b.sent(), customerBases = _a[0], expectedSales = _a[1], expectedCustomerSales = _a[2];
|
|
433
439
|
return [2, {
|
|
434
440
|
customerBases: customerBases,
|
|
435
441
|
expectedSales: expectedSales,
|
|
@@ -454,7 +460,7 @@ export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', functio
|
|
|
454
460
|
requestBody = {
|
|
455
461
|
brand: {
|
|
456
462
|
customers_base: customerBase,
|
|
457
|
-
customers_served_monthly:
|
|
463
|
+
customers_served_monthly: (_d = params.expectedCustomer) === null || _d === void 0 ? void 0 : _d.id,
|
|
458
464
|
monthly_sales_range: ((_e = params.expectedSale) === null || _e === void 0 ? void 0 : _e.id) || '',
|
|
459
465
|
agree_refund: params.refundPolicy,
|
|
460
466
|
agree_chargeback: params.transactionPolicy
|
|
@@ -931,15 +937,15 @@ export var businessSlice = createSlice({
|
|
|
931
937
|
state.error = null;
|
|
932
938
|
})
|
|
933
939
|
.addCase(retrieveDataList.fulfilled, function (state, action) {
|
|
934
|
-
var _a, _b;
|
|
940
|
+
var _a, _b, _c, _d, _e;
|
|
935
941
|
state.loading = false;
|
|
936
942
|
state.error = null;
|
|
937
943
|
var payload = action.payload;
|
|
938
|
-
var customerBases = payload.customerBases || [];
|
|
944
|
+
var customerBases = ((_a = payload.customerBases) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
939
945
|
var customerBase = customerBases === null || customerBases === void 0 ? void 0 : customerBases[1];
|
|
940
|
-
var expectedSales = payload.expectedSales || [];
|
|
941
|
-
var expectedSale = (
|
|
942
|
-
var expectedCustomerSales = payload.expectedCustomerSales || [];
|
|
946
|
+
var expectedSales = ((_b = payload.expectedSales) === null || _b === void 0 ? void 0 : _b.list) || [];
|
|
947
|
+
var expectedSale = (_d = (_c = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales[0]) === null || _c === void 0 ? void 0 : _c.sub) === null || _d === void 0 ? void 0 : _d[4];
|
|
948
|
+
var expectedCustomerSales = ((_e = payload.expectedCustomerSales) === null || _e === void 0 ? void 0 : _e.list) || [];
|
|
943
949
|
var expectedCustomerSale = expectedCustomerSales === null || expectedCustomerSales === void 0 ? void 0 : expectedCustomerSales[3];
|
|
944
950
|
state.data.activitiesData.responseBody = __assign(__assign({}, state.data.activitiesData.responseBody), { customerBases: customerBases, expectedSales: expectedSales, expectedCustomerSales: expectedCustomerSales });
|
|
945
951
|
if (!!customerBase)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ResponseData, MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '
|
|
1
|
+
import { RootState } from '@app/store';
|
|
2
|
+
import { ResponseData, MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, BrandFormValues, FlowsTypes } from '@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
response: any;
|
|
@@ -56,12 +56,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { handleNextScreenStep } from '
|
|
60
|
-
import { FlowsTypes } from '
|
|
61
|
-
import API from '
|
|
62
|
-
import { CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, OTHER_BRAND, TWITTER_URL } from '
|
|
63
|
-
import { defaultCountry } from '
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo } from '
|
|
59
|
+
import { handleNextScreenStep } from '@app/settings';
|
|
60
|
+
import { FlowsTypes } from '@types';
|
|
61
|
+
import API from '@api';
|
|
62
|
+
import { CONNECT_STEP_NAMES, IDENTIFICATION_TYPE, INSTAGRAM_URL, OTHER_BRAND, TWITTER_URL } from '@constants';
|
|
63
|
+
import { defaultCountry } from '@constants';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, getEighteenYearsAgo } from '@utils';
|
|
65
65
|
export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
66
|
var settings, requestBody, data;
|
|
67
67
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { EntityFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { EntityFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: {
|
|
@@ -47,12 +47,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep } from '
|
|
53
|
-
import { ENTITY_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
|
|
53
|
+
import { ENTITY_STEP_NAMES, BUSINESS_FLOW_SUCCESS } from '@constants';
|
|
54
54
|
import moment from 'moment';
|
|
55
|
-
import { convertNumbers2English } from '
|
|
55
|
+
import { convertNumbers2English } from '@utils';
|
|
56
56
|
export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
57
|
var payload, data, boardInfoData, board_id, board_info_id, info, hasEntityCompleted;
|
|
58
58
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { CountryCode, FlowsTypes, IndividualExtraFormValues, OTPFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: {
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep } from '
|
|
53
|
-
import { BUSINESS_FLOW_SUCCESS, INDIVIDUAl_STEP_NAMES } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
|
|
53
|
+
import { BUSINESS_FLOW_SUCCESS, INDIVIDUAl_STEP_NAMES } from '@constants';
|
|
54
54
|
export var verifyLeadToken = createAsyncThunk('individualVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var payload, settings, data, boardData, countryCode, boardInfoData, countries, board_id, board_info_id, entity, info, hasIndividualCompleted;
|
|
56
56
|
var _a, _b, _c;
|
|
@@ -132,16 +132,24 @@ export var resendOTP = createAsyncThunk('resendOTPIndividual', function (params,
|
|
|
132
132
|
});
|
|
133
133
|
}); });
|
|
134
134
|
export var retrieveDataList = createAsyncThunk('individualRetrieveDataList', function (countryCode) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
var _a, sourceIncome, monthlyIncome, occupation;
|
|
135
|
+
var monthlyIncomeBody, dataBody, _a, sourceIncome, monthlyIncome, occupation;
|
|
136
136
|
return __generator(this, function (_b) {
|
|
137
137
|
switch (_b.label) {
|
|
138
|
-
case 0:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
case 0:
|
|
139
|
+
monthlyIncomeBody = {
|
|
140
|
+
page: 0,
|
|
141
|
+
country_code: [countryCode]
|
|
142
|
+
};
|
|
143
|
+
dataBody = {
|
|
144
|
+
page: 0
|
|
145
|
+
};
|
|
146
|
+
return [4, Promise.all([
|
|
147
|
+
API.dataService.getSourceOfIncome(dataBody),
|
|
148
|
+
API.dataService.getMonthlyIncome(monthlyIncomeBody),
|
|
149
|
+
API.dataService.getOccupation(dataBody)
|
|
150
|
+
])];
|
|
143
151
|
case 1:
|
|
144
|
-
_a = _b.sent(), sourceIncome = _a[0]
|
|
152
|
+
_a = _b.sent(), sourceIncome = _a[0], monthlyIncome = _a[1], occupation = _a[2];
|
|
145
153
|
return [2, {
|
|
146
154
|
sourceIncome: sourceIncome,
|
|
147
155
|
monthlyIncome: monthlyIncome,
|
|
@@ -313,10 +321,10 @@ export var individualSlice = createSlice({
|
|
|
313
321
|
var _c = boardResponse || {}, countries = _c.countries, countryCode = _c.countryCode, brand = _c.brand;
|
|
314
322
|
var _d = brand || {}, source_income = _d.source_income, actual_income = _d.actual_income, occupation = _d.occupation, is_relative_PEP = _d.is_relative_PEP, is_influencer = _d.is_influencer;
|
|
315
323
|
var _e = state.data.individualData.responseBody || {}, sourceIncomeList = _e.sourceIncomeList, monthlyIncomeList = _e.monthlyIncomeList, occupationList = _e.occupationList;
|
|
316
|
-
var selectedSourceIncome = (sourceIncomeList === null || sourceIncomeList === void 0 ? void 0 : sourceIncomeList.find(function (source) { var _a, _b; return ((_a = source === null || source === void 0 ? void 0 : source.
|
|
324
|
+
var selectedSourceIncome = (sourceIncomeList === null || sourceIncomeList === void 0 ? void 0 : sourceIncomeList.find(function (source) { var _a, _b, _c; return ((_b = (_a = source === null || source === void 0 ? void 0 : source.range) === null || _a === void 0 ? void 0 : _a.en) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === ((_c = source_income === null || source_income === void 0 ? void 0 : source_income[0]) === null || _c === void 0 ? void 0 : _c.toLocaleLowerCase()); })) || (sourceIncomeList === null || sourceIncomeList === void 0 ? void 0 : sourceIncomeList[0]);
|
|
317
325
|
if (!!selectedSourceIncome)
|
|
318
326
|
state.data.individualData.sourceIncome = selectedSourceIncome;
|
|
319
|
-
var selectedMonthlyIncome = (monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.find(function (income) { var _a; return ((_a = income === null || income === void 0 ? void 0 : income.
|
|
327
|
+
var selectedMonthlyIncome = (monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList.find(function (income) { var _a; return ((_a = income === null || income === void 0 ? void 0 : income.name.en) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) === (actual_income === null || actual_income === void 0 ? void 0 : actual_income.toLocaleLowerCase()); })) || (monthlyIncomeList === null || monthlyIncomeList === void 0 ? void 0 : monthlyIncomeList[2]);
|
|
320
328
|
if (!!selectedMonthlyIncome)
|
|
321
329
|
state.data.individualData.monthlyIncome = selectedMonthlyIncome;
|
|
322
330
|
var code = (data === null || data === void 0 ? void 0 : data.employer_country) || countryCode;
|
|
@@ -324,7 +332,7 @@ export var individualSlice = createSlice({
|
|
|
324
332
|
var employerLocation = (countries || []).find(function (country) { return country.iso2 === code; });
|
|
325
333
|
state.data.individualData.employerLocation = employerLocation;
|
|
326
334
|
}
|
|
327
|
-
var selectedOccupation = (occupationList === null || occupationList === void 0 ? void 0 : occupationList.find(function (o) { var _a; return ((_a = o === null || o === void 0 ? void 0 : o.
|
|
335
|
+
var selectedOccupation = (occupationList === null || occupationList === void 0 ? void 0 : occupationList.find(function (o) { var _a, _b; return ((_b = (_a = o === null || o === void 0 ? void 0 : o.range) === null || _a === void 0 ? void 0 : _a.en) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) === (occupation === null || occupation === void 0 ? void 0 : occupation.toLocaleLowerCase()); })) || (occupationList === null || occupationList === void 0 ? void 0 : occupationList[0]);
|
|
328
336
|
if (!!selectedOccupation)
|
|
329
337
|
state.data.individualData.occupation = selectedOccupation;
|
|
330
338
|
state.data.individualData.isPEP = is_relative_PEP;
|
|
@@ -382,7 +390,7 @@ export var individualSlice = createSlice({
|
|
|
382
390
|
state.error = null;
|
|
383
391
|
var _a = action.payload, sourceIncome = _a.sourceIncome, monthlyIncome = _a.monthlyIncome, occupation = _a.occupation;
|
|
384
392
|
var data = state.data.individualData.responseBody;
|
|
385
|
-
state.data.individualData.responseBody = __assign(__assign({}, data), { sourceIncomeList: sourceIncome || [], monthlyIncomeList: monthlyIncome || [], occupationList: occupation || [] });
|
|
393
|
+
state.data.individualData.responseBody = __assign(__assign({}, data), { sourceIncomeList: (sourceIncome === null || sourceIncome === void 0 ? void 0 : sourceIncome.list) || [], monthlyIncomeList: (monthlyIncome === null || monthlyIncome === void 0 ? void 0 : monthlyIncome.list) || [], occupationList: (occupation === null || occupation === void 0 ? void 0 : occupation.list) || [] });
|
|
386
394
|
})
|
|
387
395
|
.addCase(retrieveDataList.rejected, function (state, action) {
|
|
388
396
|
state.loading = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
}, void, {}>;
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleNextScreenStep } from '
|
|
53
|
-
import { OTP_STEP_NAMES } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleNextScreenStep } from '@app/settings';
|
|
53
|
+
import { OTP_STEP_NAMES } from '@constants';
|
|
54
54
|
export var resendOTP = createAsyncThunk('otpResendOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var otp, payload, data;
|
|
56
56
|
return __generator(this, function (_a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: {
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep } from '
|
|
53
|
-
import { BUSINESS_FLOW_SUCCESS, PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep } from '@app/settings';
|
|
53
|
+
import { BUSINESS_FLOW_SUCCESS, PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '@constants';
|
|
54
54
|
export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var payload, data, boardInfoData, board_id, board_info_id, info, hasPasswordCompleted;
|
|
56
56
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormValues, PasswordFormValues } from '@types';
|
|
3
3
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
formData: MobileFormValues;
|
|
@@ -47,10 +47,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { defaultCountry, SignIn_STEP_NAMES } from '
|
|
52
|
-
import { handleNextScreenStep, handleOpen } from '
|
|
53
|
-
import { getAxiosHeaders } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { defaultCountry, SignIn_STEP_NAMES } from '@constants';
|
|
52
|
+
import { handleNextScreenStep, handleOpen } from '@app/settings';
|
|
53
|
+
import { getAxiosHeaders } from '@api';
|
|
54
54
|
var redirection = function (type) {
|
|
55
55
|
if (type === 1)
|
|
56
56
|
return handleNextScreenStep('SIGIN_PASSWORD_STEP');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '
|
|
1
|
+
import { RootState } from '@store';
|
|
2
|
+
import { FlowsTypes, OTPFormValues, ResponseData, SharedState, TaxFormValues } from '@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
boardResponse: any;
|
|
@@ -47,11 +47,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { FlowsTypes } from '
|
|
52
|
-
import { hasKey } from '
|
|
53
|
-
import { handleNextScreenStep, handleCurrentActiveScreen } from '
|
|
54
|
-
import { BUSINESS_FLOW_SUCCESS, TAX_STEP_NAMES } from '
|
|
50
|
+
import API from '@api';
|
|
51
|
+
import { FlowsTypes } from '@types';
|
|
52
|
+
import { hasKey } from '@utils';
|
|
53
|
+
import { handleNextScreenStep, handleCurrentActiveScreen } from '@app/settings';
|
|
54
|
+
import { BUSINESS_FLOW_SUCCESS, TAX_STEP_NAMES } from '@constants';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
56
|
var payload, data, boardData, boardInfoData, info, hasTaxCompleted;
|
|
57
57
|
var _a, _b;
|
|
@@ -22,16 +22,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
24
|
import { memo, useEffect } from 'react';
|
|
25
|
-
import { FeatureContainer } from '
|
|
26
|
-
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '
|
|
27
|
-
import { settingsSelector, handleOpen } from '
|
|
28
|
-
import AnimationFlow from '
|
|
29
|
-
import { store } from '
|
|
30
|
-
import { authSelector, retrieveLead, storeLeadId, storePostUrl } from '
|
|
31
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
32
|
-
import Collapse from '
|
|
33
|
-
import { reactElement, removeElement } from '
|
|
34
|
-
import { AUTH_SCREENS_NAVIGATION, DIALOG_ID } from '
|
|
25
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
26
|
+
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '@hooks';
|
|
27
|
+
import { settingsSelector, handleOpen } from '@app/settings';
|
|
28
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
29
|
+
import { store } from '@app/store';
|
|
30
|
+
import { authSelector, retrieveLead, storeLeadId, storePostUrl } from '@features/app/auth/authStore';
|
|
31
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
32
|
+
import Collapse from '@components/Collapse';
|
|
33
|
+
import { reactElement, removeElement } from '@utils';
|
|
34
|
+
import { AUTH_SCREENS_NAVIGATION, DIALOG_ID } from '@constants';
|
|
35
35
|
import { authFeatureScreens } from '../featuresScreens';
|
|
36
36
|
import Background from '../shared/Background';
|
|
37
37
|
var Auth = memo(function (_a) {
|
|
@@ -14,16 +14,16 @@ import Box from '@mui/material/Box/Box';
|
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
|
-
import Text from '
|
|
18
|
-
import { clearError, authSelector, resetOTPScreen, verifyAuthOTP } from '
|
|
19
|
-
import Button from '
|
|
20
|
-
import { ScreenContainer } from '
|
|
21
|
-
import { useAppDispatch, useAppSelector } from '
|
|
22
|
-
import { useLanguage } from '
|
|
17
|
+
import Text from '@components/Text';
|
|
18
|
+
import { clearError, authSelector, resetOTPScreen, verifyAuthOTP } from '@features/app/auth/authStore';
|
|
19
|
+
import Button from '@features/shared/Button';
|
|
20
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
21
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
22
|
+
import { useLanguage } from '@hooks';
|
|
23
23
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
24
24
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
25
|
-
import Form from '
|
|
26
|
-
import { maskPhone } from '
|
|
25
|
+
import Form from '@components/Form';
|
|
26
|
+
import { maskPhone } from '@utils';
|
|
27
27
|
import { OTPValidation } from './validation';
|
|
28
28
|
import OTPInput from './OTPInput';
|
|
29
29
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
|
@@ -15,9 +15,9 @@ import { useController, useFormContext } from 'react-hook-form';
|
|
|
15
15
|
import { useTranslation } from 'react-i18next';
|
|
16
16
|
import Box from '@mui/material/Box/Box';
|
|
17
17
|
import { styled } from '@mui/material/styles';
|
|
18
|
-
import OTPField from '
|
|
19
|
-
import { DEFAULT_TIMER_VALUE } from '
|
|
20
|
-
import { useAppDispatch } from '
|
|
18
|
+
import OTPField from '@features/shared/OTP';
|
|
19
|
+
import { DEFAULT_TIMER_VALUE } from '@constants';
|
|
20
|
+
import { useAppDispatch } from '@hooks';
|
|
21
21
|
var BoxStyled = styled(Box)(function (_a) {
|
|
22
22
|
var theme = _a.theme;
|
|
23
23
|
return ({
|
|
@@ -11,18 +11,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo, useEffect } from 'react';
|
|
14
|
-
import { useAppTheme, useAppDispatch, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener } from '
|
|
15
|
-
import { handleLanguage, settingsSelector } from '
|
|
16
|
-
import AnimationFlow from '
|
|
17
|
-
import { store } from '
|
|
18
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import { getParameterByName, reactElement, removeElement } from '
|
|
21
|
-
import { FeatureContainer } from '
|
|
22
|
-
import { BANK_SCREENS_NAVIGATION, DIALOG_ID } from '
|
|
14
|
+
import { useAppTheme, useAppDispatch, useAppSelector, useErrorListener, useAppConfig, useStepStartedListener } from '@hooks';
|
|
15
|
+
import { handleLanguage, settingsSelector } from '@app/settings';
|
|
16
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
17
|
+
import { store } from '@app/store';
|
|
18
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import { getParameterByName, reactElement, removeElement } from '@utils';
|
|
21
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
22
|
+
import { BANK_SCREENS_NAVIGATION, DIALOG_ID } from '@constants';
|
|
23
23
|
import { bankFeatureScreens } from '../featuresScreens';
|
|
24
24
|
import CustomFooter from '../shared/Footer';
|
|
25
|
-
import { bankSelector, verifyLeadToken } from '
|
|
25
|
+
import { bankSelector, verifyLeadToken } from '@features/app/bank/bankStore';
|
|
26
26
|
import Background from '../shared/Background';
|
|
27
27
|
var Bank = memo(function (props) {
|
|
28
28
|
var theme = useAppTheme().theme;
|
|
@@ -11,21 +11,21 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { ScreenContainer } from '
|
|
14
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
15
15
|
import Beneficiary from './Beneficiary';
|
|
16
16
|
import IBAN from './IBAN';
|
|
17
17
|
import BankName from './BankName';
|
|
18
|
-
import Button from '
|
|
19
|
-
import { useAppDispatch, useAppSelector } from '
|
|
18
|
+
import Button from '@features/shared/Button';
|
|
19
|
+
import { useAppDispatch, useAppSelector } from '@hooks';
|
|
20
20
|
import { BankValidation } from './validation';
|
|
21
21
|
import { useTranslation } from 'react-i18next';
|
|
22
22
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
23
23
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
24
|
-
import { useLanguage } from '
|
|
24
|
+
import { useLanguage } from '@hooks';
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
|
-
import { bankSelector, clearError, createBankAccount } from '
|
|
27
|
-
import Form from '
|
|
28
|
-
import { handleCurrentActiveScreen } from '
|
|
26
|
+
import { bankSelector, clearError, createBankAccount } from '@features/app/bank/bankStore';
|
|
27
|
+
import Form from '@components/Form';
|
|
28
|
+
import { handleCurrentActiveScreen } from '@app/settings';
|
|
29
29
|
import ConfirmPolicy from './ConfirmPolicy';
|
|
30
30
|
import BankStatement from './BankStatement';
|
|
31
31
|
var FormStyled = styled(Form)(function () { return ({
|