@tap-payments/auth-jsconnect 2.8.58-development → 2.8.59-beta
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 +0 -1
- package/build/@types/form.d.ts +0 -1
- package/build/@types/redux.d.ts +0 -1
- package/build/api/entity.d.ts +2 -2
- package/build/api/entity.js +4 -12
- package/build/api/index.d.ts +2 -2
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +2 -0
- package/build/constants/app.d.ts +2 -0
- package/build/constants/app.js +2 -0
- package/build/features/app/bank/bankStore.d.ts +18 -13
- package/build/features/app/bank/bankStore.js +165 -184
- package/build/features/app/board/boardStore.js +30 -52
- package/build/features/app/brand/brandStore.d.ts +33 -16
- package/build/features/app/brand/brandStore.js +242 -239
- package/build/features/app/business/businessStore.d.ts +5 -0
- package/build/features/app/business/businessStore.js +87 -76
- package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -15
- package/build/features/app/connectExpress/connectExpressStore.js +52 -110
- package/build/features/app/entity/entityStore.d.ts +36 -20
- package/build/features/app/entity/entityStore.js +246 -196
- package/build/features/app/individual/individualStore.d.ts +38 -22
- package/build/features/app/individual/individualStore.js +266 -263
- package/build/features/app/password/passwordStore.d.ts +23 -40
- package/build/features/app/password/passwordStore.js +233 -226
- package/build/features/app/tax/taxStore.d.ts +7 -13
- package/build/features/app/tax/taxStore.js +147 -168
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +1 -13
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +26 -4
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -7
- package/build/features/bank/Bank.d.ts +0 -1
- package/build/features/bank/Bank.js +4 -7
- package/build/features/bank/screens/BankDetails/BankDetails.js +5 -18
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/bank/screens/Verify/Verify.js +5 -5
- package/build/features/board/Board.js +4 -8
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -3
- package/build/features/brand/Brand.d.ts +0 -1
- package/build/features/brand/Brand.js +4 -7
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +35 -8
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +12 -49
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -6
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +18 -5
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +7 -2
- package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +5 -23
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +7 -23
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/brand/screens/Verify/Verify.js +1 -1
- package/build/features/business/Business.js +4 -9
- package/build/features/business/screens/Activities/Activities.js +3 -12
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -10
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +26 -4
- package/build/features/business/screens/CivilID/CivilID.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +36 -9
- package/build/features/business/screens/Customers/Customers.js +3 -12
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -6
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +18 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +2 -10
- package/build/features/business/screens/OTP/OTP.js +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -13
- package/build/features/business/screens/Verify/Verify.js +3 -13
- package/build/features/connect/Connect.js +2 -3
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +2 -9
- package/build/features/connect/screens/CivilID/CivilID.js +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -3
- package/build/features/connect/screens/Individual/Individual.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +3 -3
- package/build/features/connect/screens/Merchant/Merchant.js +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +8 -11
- package/build/features/connect/screens/NID/NID.js +1 -1
- package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
- package/build/features/connectExpress/ConnectExpress.js +1 -2
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +2 -5
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +1 -6
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +0 -3
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +0 -10
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -7
- package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +26 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +7 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +24 -14
- package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -9
- package/build/features/connectExpress/screens/NID/NID.js +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +7 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/entity/Entity.d.ts +0 -1
- package/build/features/entity/Entity.js +4 -7
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +4 -8
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +4 -8
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -34
- package/build/features/entity/screens/EntityName/EntityName.js +15 -32
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +35 -8
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/entity/screens/Verify/Verify.js +1 -1
- package/build/features/featuresScreens.js +7 -67
- package/build/features/individual/Individual.d.ts +0 -1
- package/build/features/individual/Individual.js +4 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +14 -54
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +2 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +26 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +2 -3
- package/build/features/individual/screens/IndividualList/Email.js +2 -3
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
- package/build/features/individual/screens/IndividualList/IndividualList.js +5 -18
- package/build/features/individual/screens/IndividualList/UserList.js +9 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +26 -4
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -76
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/individual/screens/Verify/Verify.js +1 -1
- package/build/features/password/Password.d.ts +0 -1
- package/build/features/password/Password.js +28 -75
- package/build/features/password/screens/CreatePassword/CreatePassword.js +4 -8
- package/build/features/password/screens/OTP/OTP.js +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/password/screens/Verify/Verify.js +5 -5
- package/build/features/shared/Address/CountryList.d.ts +23 -7
- package/build/features/shared/Address/InputSelect.d.ts +23 -7
- package/build/features/shared/Button/FlowsButtons.js +3 -13
- package/build/features/shared/Containers/FeatureContainer.d.ts +0 -1
- package/build/features/shared/Containers/FeatureContainer.js +3 -3
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -5
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
- package/build/features/shared/UploadFile/FileUpload.d.ts +7 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +7 -2
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +7 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +7 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +7 -2
- package/build/features/signIn/SignIn.js +3 -12
- package/build/features/tax/Tax.d.ts +0 -1
- package/build/features/tax/Tax.js +4 -7
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -7
- package/build/features/tax/screens/Verify/Verify.js +5 -5
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/index.js +0 -1
- package/build/hooks/useVerifyToken.d.ts +2 -5
- package/build/hooks/useVerifyToken.js +5 -10
- package/build/utils/common.js +4 -4
- package/build/utils/locale.js +1 -2
- package/build/utils/string.d.ts +2 -5
- package/build/utils/string.js +5 -34
- package/package.json +2 -2
- package/build/features/bank/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/bank/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/bank/screens/OperatorError/index.d.ts +0 -3
- package/build/features/bank/screens/OperatorError/index.js +0 -2
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/board/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/board/screens/OperatorError/index.d.ts +0 -3
- package/build/features/board/screens/OperatorError/index.js +0 -2
- package/build/features/brand/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/brand/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/brand/screens/OperatorError/index.d.ts +0 -3
- package/build/features/brand/screens/OperatorError/index.js +0 -2
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/business/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/business/screens/OperatorError/index.d.ts +0 -3
- package/build/features/business/screens/OperatorError/index.js +0 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +0 -9
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +0 -90
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/connectExpress/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/connectExpress/screens/OperatorError/index.d.ts +0 -3
- package/build/features/connectExpress/screens/OperatorError/index.js +0 -2
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -5
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +0 -34
- package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/connectExpress/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/entity/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/entity/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/entity/screens/OperatorError/index.d.ts +0 -3
- package/build/features/entity/screens/OperatorError/index.js +0 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +0 -14
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +0 -76
- package/build/features/individual/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/individual/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/individual/screens/OperatorError/index.d.ts +0 -3
- package/build/features/individual/screens/OperatorError/index.js +0 -2
- package/build/features/password/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/password/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/password/screens/OperatorError/index.d.ts +0 -3
- package/build/features/password/screens/OperatorError/index.js +0 -2
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +0 -4
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +0 -10
- package/build/features/password/screens/PrepareDataLoading/index.d.ts +0 -2
- package/build/features/password/screens/PrepareDataLoading/index.js +0 -2
- package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/signIn/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/signIn/screens/OperatorError/index.d.ts +0 -3
- package/build/features/signIn/screens/OperatorError/index.js +0 -2
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +0 -5
- package/build/features/tax/screens/OperatorError/OperatorError.js +0 -9
- package/build/features/tax/screens/OperatorError/index.d.ts +0 -3
- package/build/features/tax/screens/OperatorError/index.js +0 -2
- package/build/hooks/useFormDirtyCheck.d.ts +0 -10
- package/build/hooks/useFormDirtyCheck.js +0 -66
|
@@ -49,14 +49,14 @@ var _a;
|
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import API from '../../../api';
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
|
|
53
53
|
import { BOARD_STEP_STEPS } from '../../../constants';
|
|
54
54
|
import { retrieveIndividualData, sleep } from '../../../utils';
|
|
55
55
|
export var createVerifyTokenBy = createAsyncThunk('board/createVerifyTokenByBoardId', function (boardId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var settings, isModeContent, payload, data,
|
|
57
|
-
var
|
|
58
|
-
return __generator(this, function (
|
|
59
|
-
switch (
|
|
56
|
+
var settings, isModeContent, payload, data, step_name;
|
|
57
|
+
var _a, _b;
|
|
58
|
+
return __generator(this, function (_c) {
|
|
59
|
+
switch (_c.label) {
|
|
60
60
|
case 0:
|
|
61
61
|
settings = thunkApi.getState().settings;
|
|
62
62
|
isModeContent = settings.data.appConfig.mode === 'content';
|
|
@@ -67,26 +67,18 @@ export var createVerifyTokenBy = createAsyncThunk('board/createVerifyTokenByBoar
|
|
|
67
67
|
}));
|
|
68
68
|
return [4, API.leadService.createVerifyTokenByBoardId(payload)];
|
|
69
69
|
case 1:
|
|
70
|
-
data =
|
|
71
|
-
_a = data || {}, country_code = _a.country_code, config = _a.config;
|
|
72
|
-
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
73
|
-
if (country_code)
|
|
74
|
-
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
75
|
-
if (publicKey)
|
|
76
|
-
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
70
|
+
data = _c.sent();
|
|
77
71
|
step_name = data.step_name;
|
|
78
72
|
if (step_name == BOARD_STEP_STEPS.PHONE_AUTH) {
|
|
79
73
|
sleep(0).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('BOARD_VERIFY_STEP')); });
|
|
80
74
|
return [2, __assign({}, data)];
|
|
81
75
|
}
|
|
82
|
-
return [4, thunkApi.dispatch(retrieveBoardDetails({ boardId: data.id, boardInfoId: data.board_info_id }))
|
|
76
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails({ boardId: data.id, boardInfoId: data.board_info_id }))];
|
|
83
77
|
case 2:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
thunkApi.dispatch(handleSetCountryByIso2(boardData.entity.country));
|
|
87
|
-
(_d = (_c = settings.data.appConfig).onFlowCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, { boardId: data.id, boardInfoId: data.board_info_id });
|
|
78
|
+
_c.sent();
|
|
79
|
+
(_b = (_a = settings.data.appConfig).onFlowCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, { boardId: data.id, boardInfoId: data.board_info_id });
|
|
88
80
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('BOARD_SUCCESS_FLOWS_BUTTONS_STEP')); });
|
|
89
|
-
return [2, __assign(
|
|
81
|
+
return [2, __assign({}, data)];
|
|
90
82
|
}
|
|
91
83
|
});
|
|
92
84
|
}); });
|
|
@@ -106,38 +98,30 @@ export var resendOTP = createAsyncThunk('board/resendOTP', function (params, thu
|
|
|
106
98
|
});
|
|
107
99
|
}); });
|
|
108
100
|
export var verifyBoardLeadOTP = createAsyncThunk('board/verifyBoardLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
109
|
-
var _a, board, settings, responseBody, payload, data
|
|
110
|
-
var _c, _d, _e, _f
|
|
111
|
-
return __generator(this, function (
|
|
112
|
-
switch (
|
|
101
|
+
var _a, board, settings, responseBody, payload, data;
|
|
102
|
+
var _b, _c, _d, _e, _f;
|
|
103
|
+
return __generator(this, function (_g) {
|
|
104
|
+
switch (_g.label) {
|
|
113
105
|
case 0:
|
|
114
106
|
_a = thunkApi.getState(), board = _a.board, settings = _a.settings;
|
|
115
107
|
responseBody = board.data.verify.responseBody;
|
|
116
108
|
payload = {
|
|
117
109
|
data: params.otp,
|
|
118
|
-
service_name: (
|
|
110
|
+
service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
|
|
119
111
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
120
112
|
step_name: BOARD_STEP_STEPS.PHONE_AUTH,
|
|
121
113
|
encryption_contract: ['data']
|
|
122
114
|
};
|
|
123
115
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
124
116
|
case 1:
|
|
125
|
-
data = (
|
|
126
|
-
_b = data || {}, country_code = _b.country_code, config = _b.config;
|
|
127
|
-
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
128
|
-
if (country_code)
|
|
129
|
-
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
130
|
-
if (publicKey)
|
|
131
|
-
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
117
|
+
data = (_g.sent()).data;
|
|
132
118
|
if (data.errors)
|
|
133
119
|
throw new Error(data.errors[0].description);
|
|
134
|
-
return [4, thunkApi.dispatch(retrieveBoardDetails({ boardId: data.id, boardInfoId: data.board_info_id }))
|
|
120
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails({ boardId: data.id, boardInfoId: data.board_info_id }))];
|
|
135
121
|
case 2:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, { otp: params.otp });
|
|
140
|
-
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { boardId: responseBody === null || responseBody === void 0 ? void 0 : responseBody.id, boardInfoId: responseBody === null || responseBody === void 0 ? void 0 : responseBody.board_info_id });
|
|
122
|
+
_g.sent();
|
|
123
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
|
|
124
|
+
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { boardId: responseBody === null || responseBody === void 0 ? void 0 : responseBody.id, boardInfoId: responseBody === null || responseBody === void 0 ? void 0 : responseBody.board_info_id });
|
|
141
125
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BOARD_SUCCESS_FLOWS_BUTTONS_STEP')); });
|
|
142
126
|
return [2, { data: data, formData: params }];
|
|
143
127
|
}
|
|
@@ -146,33 +130,27 @@ export var verifyBoardLeadOTP = createAsyncThunk('board/verifyBoardLeadOTP', fun
|
|
|
146
130
|
export var retrieveBoardDetails = createAsyncThunk('board/retrieveBoardDetails', function (_a) {
|
|
147
131
|
var boardId = _a.boardId, boardInfoId = _a.boardInfoId;
|
|
148
132
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
149
|
-
var boardInfoData, _b, boardInfoStatusData,
|
|
150
|
-
var _e, _f
|
|
151
|
-
return __generator(this, function (
|
|
152
|
-
switch (
|
|
133
|
+
var boardInfoData, _b, boardInfoStatusData, boardData, _c, id, type, serviceCallBack, _d, boardRes, individualRes;
|
|
134
|
+
var _e, _f;
|
|
135
|
+
return __generator(this, function (_g) {
|
|
136
|
+
switch (_g.label) {
|
|
153
137
|
case 0: return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
|
|
154
138
|
case 1:
|
|
155
|
-
boardInfoData =
|
|
139
|
+
boardInfoData = _g.sent();
|
|
156
140
|
return [4, Promise.all([
|
|
157
141
|
API.boardService.retrieveBoardInfoStatus(boardId),
|
|
158
142
|
API.boardService.retrieveBoardDetails(boardId)
|
|
159
143
|
])];
|
|
160
144
|
case 2:
|
|
161
|
-
_b =
|
|
145
|
+
_b = _g.sent(), boardInfoStatusData = _b[0], boardData = _b[1];
|
|
162
146
|
_c = ((_e = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _e === void 0 ? void 0 : _e.recipient) || {}, id = _c.id, type = _c.type;
|
|
163
|
-
individualData = data === null || data === void 0 ? void 0 : data.user;
|
|
164
|
-
boardData = data;
|
|
165
|
-
if (!(((_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.id) !== id)) return [3, 4];
|
|
166
147
|
serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
|
|
167
148
|
return [4, retrieveIndividualData(type, boardData, serviceCallBack)];
|
|
168
149
|
case 3:
|
|
169
|
-
_d =
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
case 4: return [2, {
|
|
174
|
-
data: __assign(__assign({}, boardData), { user: individualData, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: individualData === null || individualData === void 0 ? void 0 : individualData.names, business: boardData === null || boardData === void 0 ? void 0 : boardData.business, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, contact: individualData === null || individualData === void 0 ? void 0 : individualData.contact, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [], recipient: (_g = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _g === void 0 ? void 0 : _g.recipient, board_status: boardData === null || boardData === void 0 ? void 0 : boardData.status })
|
|
175
|
-
}];
|
|
150
|
+
_d = _g.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
151
|
+
return [2, {
|
|
152
|
+
data: __assign(__assign({}, boardRes), { user: individualRes, brand: boardRes === null || boardRes === void 0 ? void 0 : boardRes.brand, bank_account: boardRes === null || boardRes === void 0 ? void 0 : boardRes.bank_account, entity: boardRes === null || boardRes === void 0 ? void 0 : boardRes.entity, merchant: boardRes === null || boardRes === void 0 ? void 0 : boardRes.merchant, name: individualRes === null || individualRes === void 0 ? void 0 : individualRes.names, business: boardRes === null || boardRes === void 0 ? void 0 : boardRes.business, individuals: boardRes === null || boardRes === void 0 ? void 0 : boardRes.individuals, contact: individualRes === null || individualRes === void 0 ? void 0 : individualRes.contact, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [], recipient: (_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient, board_status: boardData === null || boardData === void 0 ? void 0 : boardData.status })
|
|
153
|
+
}];
|
|
176
154
|
}
|
|
177
155
|
});
|
|
178
156
|
});
|
|
@@ -7,10 +7,21 @@ interface VerifyLeadTokenProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
9
|
data: any;
|
|
10
|
-
|
|
10
|
+
individualData: any;
|
|
11
|
+
boardResponse: {
|
|
12
|
+
user: any;
|
|
13
|
+
brand: any;
|
|
14
|
+
entity: any;
|
|
15
|
+
bank_account: any;
|
|
16
|
+
merchant: any;
|
|
17
|
+
name: any;
|
|
18
|
+
contact: any;
|
|
19
|
+
individuals: any;
|
|
20
|
+
business: any;
|
|
21
|
+
notification: any;
|
|
22
|
+
};
|
|
11
23
|
salesChannels: any;
|
|
12
24
|
token: string;
|
|
13
|
-
entityInfoId: any;
|
|
14
25
|
}, VerifyLeadTokenProps, {
|
|
15
26
|
state?: unknown;
|
|
16
27
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
@@ -35,9 +46,20 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
35
46
|
}>;
|
|
36
47
|
export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
37
48
|
data: any;
|
|
38
|
-
|
|
49
|
+
individualData: any;
|
|
50
|
+
boardResponse: {
|
|
51
|
+
user: any;
|
|
52
|
+
brand: any;
|
|
53
|
+
entity: any;
|
|
54
|
+
bank_account: any;
|
|
55
|
+
merchant: any;
|
|
56
|
+
name: any;
|
|
57
|
+
contact: any;
|
|
58
|
+
individuals: any;
|
|
59
|
+
business: any;
|
|
60
|
+
notification: any;
|
|
61
|
+
};
|
|
39
62
|
salesChannels: any;
|
|
40
|
-
entityInfoId: any;
|
|
41
63
|
formData: OTPFormValues;
|
|
42
64
|
}, OTPFormValues, {
|
|
43
65
|
state?: unknown;
|
|
@@ -75,12 +97,9 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
75
97
|
fulfilledMeta?: unknown;
|
|
76
98
|
rejectedMeta?: unknown;
|
|
77
99
|
}>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
individualType: string;
|
|
82
|
-
};
|
|
83
|
-
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
|
|
100
|
+
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
101
|
+
data: any;
|
|
102
|
+
}, string, {
|
|
84
103
|
state?: unknown;
|
|
85
104
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
86
105
|
extra?: unknown;
|
|
@@ -128,8 +147,8 @@ export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
128
147
|
}>;
|
|
129
148
|
export declare const updateSegmentBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
130
149
|
data: any;
|
|
131
|
-
entityData: any;
|
|
132
150
|
formData: BrandSegmentFormValues;
|
|
151
|
+
currencyData: any;
|
|
133
152
|
}, AsyncThunkParams<BrandSegmentFormValues>, {
|
|
134
153
|
state?: unknown;
|
|
135
154
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
@@ -181,11 +200,8 @@ export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
181
200
|
rejectedMeta?: unknown;
|
|
182
201
|
}>;
|
|
183
202
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
} | {
|
|
187
|
-
data: any;
|
|
188
|
-
flows: any;
|
|
203
|
+
response: any;
|
|
204
|
+
formData: void;
|
|
189
205
|
} | undefined, void, {
|
|
190
206
|
state?: unknown;
|
|
191
207
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
@@ -216,6 +232,7 @@ export interface BrandData {
|
|
|
216
232
|
brandSegmentData: BrandSegmentFormValues & ResponseData;
|
|
217
233
|
brandActivities: BrandActivitiesFormValues & ResponseData;
|
|
218
234
|
flowName: FlowsTypes;
|
|
235
|
+
currency: string;
|
|
219
236
|
}
|
|
220
237
|
export interface BrandState extends SharedState<BrandData> {
|
|
221
238
|
customLoading?: boolean;
|