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