@tap-payments/auth-jsconnect 2.0.15 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/@types/app.d.ts +5 -0
  2. package/build/api/board.d.ts +1 -0
  3. package/build/api/board.js +8 -1
  4. package/build/api/index.d.ts +1 -1
  5. package/build/api/lead.d.ts +0 -1
  6. package/build/api/lead.js +0 -5
  7. package/build/features/app/bank/bankStore.d.ts +4 -2
  8. package/build/features/app/bank/bankStore.js +55 -70
  9. package/build/features/app/business/businessStore.d.ts +2 -1
  10. package/build/features/app/business/businessStore.js +61 -63
  11. package/build/features/app/connect/connectStore.js +1 -0
  12. package/build/features/app/individual/individualStore.d.ts +14 -3
  13. package/build/features/app/individual/individualStore.js +81 -81
  14. package/build/features/app/password/passwordStore.d.ts +7 -5
  15. package/build/features/app/password/passwordStore.js +68 -96
  16. package/build/features/app/tax/taxStore.d.ts +0 -1
  17. package/build/features/app/tax/taxStore.js +38 -49
  18. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  19. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  20. package/build/features/connect/screens/ThankYou/ThankYou.js +0 -6
  21. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  22. package/build/features/password/Password.js +2 -1
  23. package/build/features/password/screens/Success/Success.js +2 -2
  24. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -2
  25. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -4
  26. package/build/features/tax/screens/Verify/Verify.js +1 -1
  27. package/build/utils/string.d.ts +1 -1
  28. package/build/utils/string.js +2 -2
  29. package/package.json +1 -1
@@ -189,4 +189,9 @@ export declare enum FlowsTypes {
189
189
  PASSWORD = "password",
190
190
  TAX = "tax"
191
191
  }
192
+ export declare type FlowInfo = {
193
+ name: string;
194
+ status: string;
195
+ url: string;
196
+ };
192
197
  export {};
@@ -21,5 +21,6 @@ declare const boardService: {
21
21
  updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
22
22
  retrieveBoardInfo: ({ id, infoId }: RetrieveBoardInfoBody) => Promise<any>;
23
23
  updateBoardInfo: ({ id, infoId, ...data }: UpdateBoardInfoBody) => Promise<any>;
24
+ retrieveBoardDetails: (id: string) => Promise<any>;
24
25
  };
25
26
  export { boardService };
@@ -24,6 +24,12 @@ var retrieveBoard = function (id) {
24
24
  url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id)
25
25
  });
26
26
  };
27
+ var retrieveBoardDetails = function (id) {
28
+ return httpClient({
29
+ method: 'get',
30
+ url: "".concat(ENDPOINT_PATHS.BOARD, "/").concat(id, "/details")
31
+ });
32
+ };
27
33
  var updateBoard = function (_a) {
28
34
  var id = _a.id, data = __rest(_a, ["id"]);
29
35
  return httpClient({
@@ -44,6 +50,7 @@ var boardService = {
44
50
  retrieveBoard: retrieveBoard,
45
51
  updateBoard: updateBoard,
46
52
  retrieveBoardInfo: retrieveBoardInfo,
47
- updateBoardInfo: updateBoardInfo
53
+ updateBoardInfo: updateBoardInfo,
54
+ retrieveBoardDetails: retrieveBoardDetails
48
55
  };
49
56
  export { boardService };
@@ -28,7 +28,6 @@ declare const API: {
28
28
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
29
29
  verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
30
30
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
31
- updateLeadIdentity: ({ id, ...data }: LeadIdentityUpdateBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
32
31
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
33
32
  };
34
33
  entityService: {
@@ -68,6 +67,7 @@ declare const API: {
68
67
  updateBoard: ({ id, ...data }: UpdateBoardBody) => Promise<any>;
69
68
  retrieveBoardInfo: ({ id, infoId }: import("./board").RetrieveBoardInfoBody) => Promise<any>;
70
69
  updateBoardInfo: ({ id, infoId, ...data }: import("./board").UpdateBoardInfoBody) => Promise<any>;
70
+ retrieveBoardDetails: (id: string) => Promise<any>;
71
71
  };
72
72
  userService: {
73
73
  retrieveUserInfo: (userId: string) => Promise<any>;
@@ -88,7 +88,6 @@ declare const leadService: {
88
88
  retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
89
89
  verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
90
90
  verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
91
- updateLeadIdentity: ({ id, ...data }: LeadIdentityUpdateBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
92
91
  retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
93
92
  };
94
93
  export { leadService };
package/build/api/lead.js CHANGED
@@ -31,10 +31,6 @@ var verifyLeadToken = function (data, config) {
31
31
  var verifyLeadOTP = function (data, config) {
32
32
  return instance.put("".concat(ENDPOINT_PATHS.TOKEN_VERIFY), data, config);
33
33
  };
34
- var updateLeadIdentity = function (_a, config) {
35
- var id = _a.id, data = __rest(_a, ["id"]);
36
- return instance.put("".concat(ENDPOINT_PATHS.LEAD, "/").concat(id, "/identity"), data, config);
37
- };
38
34
  var retrieveEntityList = function (leadId) {
39
35
  return instance.get("".concat(ENDPOINT_PATHS.RETRIEVE_ENTITY_LIST, "/").concat(leadId));
40
36
  };
@@ -44,7 +40,6 @@ var leadService = {
44
40
  retrieveLead: retrieveLead,
45
41
  verifyLeadToken: verifyLeadToken,
46
42
  verifyLeadOTP: verifyLeadOTP,
47
- updateLeadIdentity: updateLeadIdentity,
48
43
  retrieveEntityList: retrieveEntityList
49
44
  };
50
45
  export { leadService };
@@ -3,7 +3,9 @@ import { BankFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState }
3
3
  import { CancelToken } from 'axios';
4
4
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  data: any;
6
- boardResponse: any;
6
+ boardResponse: {
7
+ flows: any;
8
+ };
7
9
  token: string;
8
10
  }, string, {}>;
9
11
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
@@ -13,7 +15,7 @@ export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
13
15
  data: any;
14
16
  formData: OTPFormValues;
15
17
  }, OTPFormValues, {}>;
16
- export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
18
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
17
19
  data: any;
18
20
  }, string, {}>;
19
21
  export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
@@ -49,11 +49,10 @@ var _a;
49
49
  import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
50
50
  import API from '../../../api';
51
51
  import { FlowsTypes } from '../../../@types';
52
- import { hasKey } from '../../../utils';
53
52
  import { handleCurrentActiveScreen, handleNextScreenStep } from '../../../app/settings';
54
53
  import { BANK_STEP_NAMES } from '../../../constants';
55
54
  export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
56
- var payload, data, boardData, userData, boardInfoData, board_id, board_info_id, steps, entity, business, hasCompleted;
55
+ var payload, data, boardInfoData, board_id, board_info_id, info, hasBankCompleted;
57
56
  var _a;
58
57
  return __generator(this, function (_b) {
59
58
  switch (_b.label) {
@@ -66,39 +65,30 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (t
66
65
  case 1:
67
66
  data = (_b.sent()).data;
68
67
  boardInfoData = undefined;
69
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 9];
70
- return [4, API.boardService.retrieveBoard(data === null || data === void 0 ? void 0 : data.id)];
71
- case 2:
72
- boardData = _b.sent();
68
+ if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 5];
73
69
  board_id = data === null || data === void 0 ? void 0 : data.id;
74
70
  board_info_id = data === null || data === void 0 ? void 0 : data.board_info_id;
75
- if (!(!!board_id && !!board_info_id)) return [3, 4];
71
+ if (!(!!board_id && !!board_info_id)) return [3, 3];
76
72
  return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
77
- case 3:
73
+ case 2:
78
74
  boardInfoData = _b.sent();
79
- _b.label = 4;
75
+ _b.label = 3;
76
+ case 3: return [4, thunkApi.dispatch(retrieveBoardDetails(board_id))];
80
77
  case 4:
81
- steps = boardData.steps, entity = boardData.entity, business = boardData.business;
82
- return [4, API.userService.retrieveUserInfo((_a = business === null || business === void 0 ? void 0 : business.user) === null || _a === void 0 ? void 0 : _a.id)];
83
- case 5:
84
- userData = _b.sent();
85
- hasCompleted = hasKey(steps, BANK_STEP_NAMES.BANK_SUCCESS);
86
- if (!(data.step_name === BANK_STEP_NAMES.PHONE_AUTH)) return [3, 6];
87
- thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
88
- return [3, 9];
89
- case 6:
90
- if (!hasCompleted) return [3, 8];
91
- return [4, thunkApi.dispatch(retrieveEntityInfo(entity === null || entity === void 0 ? void 0 : entity.id))];
92
- case 7:
93
78
  _b.sent();
94
- thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
95
- return [3, 9];
96
- case 8:
97
- if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
79
+ info = boardInfoData.info;
80
+ hasBankCompleted = ((_a = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'bank'; })) === null || _a === void 0 ? void 0 : _a.status) === 'completed';
81
+ if (data.step_name === BANK_STEP_NAMES.PHONE_AUTH) {
82
+ thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
83
+ }
84
+ else if (hasBankCompleted) {
85
+ thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
86
+ }
87
+ else if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
98
88
  thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
99
89
  }
100
- _b.label = 9;
101
- case 9: return [2, { data: data, boardResponse: __assign(__assign(__assign({}, userData === null || userData === void 0 ? void 0 : userData.user), boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info }), token: token }];
90
+ _b.label = 5;
91
+ case 5: return [2, { data: data, boardResponse: { flows: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info }, token: token }];
102
92
  }
103
93
  });
104
94
  }); });
@@ -120,13 +110,14 @@ export var resendOTP = createAsyncThunk('resendOTPBank', function (params, thunk
120
110
  });
121
111
  }); });
122
112
  export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
123
- var _a, bank, settings, responseBody, payload, data, steps, hasCompleted;
113
+ var _a, bank, settings, responseBody, flows, payload, data, hasBankCompleted;
124
114
  var _b, _c, _d, _e;
125
115
  return __generator(this, function (_f) {
126
116
  switch (_f.label) {
127
117
  case 0:
128
118
  _a = thunkApi.getState(), bank = _a.bank, settings = _a.settings;
129
119
  responseBody = bank.data.verify.responseBody;
120
+ flows = (responseBody || {}).flows;
130
121
  payload = {
131
122
  data: params.otp,
132
123
  service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
@@ -137,39 +128,39 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
137
128
  return [4, API.leadService.verifyLeadOTP(payload)];
138
129
  case 1:
139
130
  data = (_f.sent()).data;
140
- if (!!data.errors) return [3, 4];
141
- (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
142
- steps = responseBody === null || responseBody === void 0 ? void 0 : responseBody.steps;
143
- hasCompleted = hasKey(steps, BANK_STEP_NAMES.BANK_SUCCESS);
144
- if (!hasCompleted) return [3, 3];
145
- return [4, thunkApi.dispatch(retrieveEntityInfo((_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.entity) === null || _e === void 0 ? void 0 : _e.id))];
146
- case 2:
147
- _f.sent();
148
- thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
149
- return [3, 4];
150
- case 3:
151
- thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
152
- _f.label = 4;
153
- case 4: return [2, { data: data, formData: params }];
131
+ if (!data.errors) {
132
+ (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
133
+ hasBankCompleted = ((_e = flows === null || flows === void 0 ? void 0 : flows.find(function (flow) { return flow.name === 'bank'; })) === null || _e === void 0 ? void 0 : _e.status) === 'completed';
134
+ if (hasBankCompleted) {
135
+ thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
136
+ }
137
+ else {
138
+ thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
139
+ }
140
+ }
141
+ return [2, { data: data, formData: params }];
154
142
  }
155
143
  });
156
144
  }); });
157
- export var retrieveEntityInfo = createAsyncThunk('retrieveBankEntityInfo', function (entityID) { return __awaiter(void 0, void 0, void 0, function () {
145
+ export var retrieveBoardDetails = createAsyncThunk('retrieveBankEntityInfo', function (boardId) { return __awaiter(void 0, void 0, void 0, function () {
158
146
  var data;
159
- return __generator(this, function (_a) {
160
- switch (_a.label) {
161
- case 0: return [4, API.entityService.retrieveEntityInfo(entityID)];
147
+ var _a, _b;
148
+ return __generator(this, function (_c) {
149
+ switch (_c.label) {
150
+ case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
162
151
  case 1:
163
- data = (_a.sent()).data;
164
- return [2, { data: data }];
152
+ data = _c.sent();
153
+ return [2, {
154
+ data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.name, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact })
155
+ }];
165
156
  }
166
157
  });
167
158
  }); });
168
159
  export var createBankAccount = createAsyncThunk('createBankAccount', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
169
160
  var _a, settings, bank, iban, beneficiaryName, bank_name, fileResponse, uploadPayload, requestBody, data;
170
- var _b, _c, _d, _e, _f, _g, _h;
171
- return __generator(this, function (_j) {
172
- switch (_j.label) {
161
+ var _b, _c, _d, _e, _f, _g, _h, _j;
162
+ return __generator(this, function (_k) {
163
+ switch (_k.label) {
173
164
  case 0:
174
165
  _a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
175
166
  iban = params.iban;
@@ -185,11 +176,11 @@ export var createBankAccount = createAsyncThunk('createBankAccount', function (p
185
176
  if (!params.bankStatementFile) return [3, 2];
186
177
  return [4, API.entityService.uploadFileInfo(uploadPayload)];
187
178
  case 1:
188
- fileResponse = _j.sent();
189
- _j.label = 2;
179
+ fileResponse = _k.sent();
180
+ _k.label = 2;
190
181
  case 2:
191
182
  requestBody = {
192
- wallet_id: (_f = (_e = (_d = (_c = bank.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.entity) === null || _d === void 0 ? void 0 : _d.merchant) === null || _e === void 0 ? void 0 : _e.wallet) === null || _f === void 0 ? void 0 : _f.id,
183
+ wallet_id: (_g = (_f = (_e = (_d = (_c = bank.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.business) === null || _d === void 0 ? void 0 : _d.entity) === null || _e === void 0 ? void 0 : _e.merchant) === null || _f === void 0 ? void 0 : _f.wallet) === null || _g === void 0 ? void 0 : _g.id,
193
184
  bank_account: {
194
185
  iban: iban,
195
186
  beneficiary_name: beneficiaryName,
@@ -202,10 +193,10 @@ export var createBankAccount = createAsyncThunk('createBankAccount', function (p
202
193
  };
203
194
  return [4, API.entityService.createBankAccount(requestBody)];
204
195
  case 3:
205
- data = (_j.sent()).data;
196
+ data = (_k.sent()).data;
206
197
  if (!data.errors) {
207
198
  thunkApi.dispatch(handleNextScreenStep());
208
- (_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, requestBody);
199
+ (_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, requestBody);
209
200
  }
210
201
  return [2, { data: data, formData: params }];
211
202
  }
@@ -232,13 +223,13 @@ export var checkIbanBank = createAsyncThunk('checkIbanBank', function (_a) {
232
223
  });
233
224
  });
234
225
  export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
235
- var _a, settings, bank, _b, id, infoId, entity, payload, data;
226
+ var _a, settings, bank, _b, id, infoId, payload, data;
236
227
  var _c, _d, _e, _f;
237
228
  return __generator(this, function (_g) {
238
229
  switch (_g.label) {
239
230
  case 0:
240
231
  _a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
241
- _b = bank.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id, entity = _b.entity;
232
+ _b = bank.data.verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id;
242
233
  if (!id)
243
234
  return [2];
244
235
  payload = {
@@ -249,7 +240,7 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', funct
249
240
  return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
250
241
  case 1:
251
242
  data = _g.sent();
252
- return [4, thunkApi.dispatch(retrieveEntityInfo(entity === null || entity === void 0 ? void 0 : entity.id))];
243
+ return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
253
244
  case 2:
254
245
  _g.sent();
255
246
  (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
@@ -355,23 +346,17 @@ export var bankSlice = createSlice({
355
346
  state.loading = false;
356
347
  state.error = action.error.message;
357
348
  })
358
- .addCase(retrieveEntityInfo.pending, function (state) {
349
+ .addCase(retrieveBoardDetails.pending, function (state) {
359
350
  state.error = null;
360
351
  state.loading = true;
361
352
  })
362
- .addCase(retrieveEntityInfo.fulfilled, function (state, action) {
363
- var _a;
353
+ .addCase(retrieveBoardDetails.fulfilled, function (state, action) {
364
354
  state.error = null;
365
355
  state.loading = false;
366
356
  var data = (action.payload || {}).data;
367
- var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
368
- if (description) {
369
- state.error = description;
370
- return;
371
- }
372
357
  state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
373
358
  })
374
- .addCase(retrieveEntityInfo.rejected, function (state, action) {
359
+ .addCase(retrieveBoardDetails.rejected, function (state, action) {
375
360
  state.error = action.error.message;
376
361
  state.loading = false;
377
362
  })
@@ -385,8 +370,8 @@ export var bankSlice = createSlice({
385
370
  state.error = description;
386
371
  return;
387
372
  }
388
- var flows = response.flows, steps = response.steps, bank_account = response.bank_account;
389
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, steps: steps, bank_account: bank_account });
373
+ var flows = response.flows;
374
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
390
375
  })
391
376
  .addCase(updateBoardSuccess.pending, function (state) {
392
377
  state.loading = true;
@@ -5,6 +5,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  leadData: any;
6
6
  token: string;
7
7
  brandInfo: any;
8
+ boardId: any;
8
9
  }, string, {}>;
9
10
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
10
11
  data: any;
@@ -30,7 +31,7 @@ export declare const retrieveChannels: import("@reduxjs/toolkit").AsyncThunk<any
30
31
  export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
31
32
  leadId: string;
32
33
  }, {}>;
33
- export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
34
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
34
35
  data: any;
35
36
  }, string, {}>;
36
37
  export declare const updateLeadBusinessType: import("@reduxjs/toolkit").AsyncThunk<{