@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.
Files changed (189) hide show
  1. package/build/@types/app.d.ts +1 -0
  2. package/build/@types/form.d.ts +1 -0
  3. package/build/@types/redux.d.ts +1 -0
  4. package/build/api/entity.d.ts +2 -2
  5. package/build/api/entity.js +12 -4
  6. package/build/api/index.d.ts +2 -2
  7. package/build/constants/api.d.ts +0 -1
  8. package/build/constants/api.js +0 -2
  9. package/build/constants/app.d.ts +0 -2
  10. package/build/constants/app.js +0 -2
  11. package/build/features/app/bank/bankStore.d.ts +13 -18
  12. package/build/features/app/bank/bankStore.js +184 -165
  13. package/build/features/app/board/boardStore.js +52 -30
  14. package/build/features/app/brand/brandStore.d.ts +16 -33
  15. package/build/features/app/brand/brandStore.js +239 -242
  16. package/build/features/app/business/businessStore.d.ts +0 -5
  17. package/build/features/app/business/businessStore.js +76 -87
  18. package/build/features/app/connectExpress/connectExpressStore.d.ts +15 -6
  19. package/build/features/app/connectExpress/connectExpressStore.js +110 -52
  20. package/build/features/app/entity/entityStore.d.ts +20 -36
  21. package/build/features/app/entity/entityStore.js +196 -246
  22. package/build/features/app/individual/individualStore.d.ts +22 -38
  23. package/build/features/app/individual/individualStore.js +263 -266
  24. package/build/features/app/password/passwordStore.d.ts +40 -23
  25. package/build/features/app/password/passwordStore.js +226 -233
  26. package/build/features/app/tax/taxStore.d.ts +13 -7
  27. package/build/features/app/tax/taxStore.js +168 -147
  28. package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +13 -1
  29. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +7 -1
  30. package/build/features/bank/Bank.d.ts +1 -0
  31. package/build/features/bank/Bank.js +7 -4
  32. package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
  33. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +5 -0
  34. package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
  35. package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
  36. package/build/features/bank/screens/OperatorError/index.js +2 -0
  37. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  38. package/build/features/bank/screens/Verify/Verify.js +5 -5
  39. package/build/features/board/Board.js +8 -4
  40. package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
  41. package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
  42. package/build/features/board/screens/OperatorError/index.d.ts +3 -0
  43. package/build/features/board/screens/OperatorError/index.js +2 -0
  44. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  45. package/build/features/brand/Brand.d.ts +1 -0
  46. package/build/features/brand/Brand.js +7 -4
  47. package/build/features/brand/screens/BrandActivities/BrandActivities.js +49 -12
  48. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +6 -3
  49. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
  50. package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
  51. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  52. package/build/features/brand/screens/BrandInfo/BrandInfo.js +23 -5
  53. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
  54. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +5 -0
  55. package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
  56. package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
  57. package/build/features/brand/screens/OperatorError/index.js +2 -0
  58. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  59. package/build/features/brand/screens/Verify/Verify.js +1 -1
  60. package/build/features/business/Business.js +9 -4
  61. package/build/features/business/screens/Activities/Activities.js +12 -3
  62. package/build/features/business/screens/BusinessType/BusinessType.js +10 -2
  63. package/build/features/business/screens/CivilID/CivilID.js +1 -1
  64. package/build/features/business/screens/Customers/Customers.js +12 -3
  65. package/build/features/business/screens/Customers/ExpectedSalesRange.js +6 -3
  66. package/build/features/business/screens/IDBOD/IDBOD.js +10 -2
  67. package/build/features/business/screens/OTP/OTP.js +1 -1
  68. package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
  69. package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
  70. package/build/features/business/screens/OperatorError/index.d.ts +3 -0
  71. package/build/features/business/screens/OperatorError/index.js +2 -0
  72. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
  73. package/build/features/business/screens/Verify/Verify.js +13 -3
  74. package/build/features/connect/Connect.js +3 -2
  75. package/build/features/connect/screens/BrandSegment/BrandSegment.js +1 -1
  76. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +9 -2
  77. package/build/features/connect/screens/CivilID/CivilID.js +1 -1
  78. package/build/features/connect/screens/Individual/Email.js +3 -1
  79. package/build/features/connect/screens/Individual/Individual.js +1 -1
  80. package/build/features/connect/screens/Merchant/BrandList.js +3 -3
  81. package/build/features/connect/screens/Merchant/Merchant.js +1 -1
  82. package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
  83. package/build/features/connect/screens/Mobile/Mobile.js +11 -8
  84. package/build/features/connect/screens/NID/NID.js +1 -1
  85. package/build/features/connect/screens/OperatorError/OperatorError.js +1 -1
  86. package/build/features/connectExpress/ConnectExpress.js +2 -1
  87. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +5 -2
  88. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
  89. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
  90. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +6 -1
  91. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +3 -0
  92. package/build/features/connectExpress/screens/AuthenticationList/validation.js +10 -0
  93. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +7 -1
  94. package/build/features/connectExpress/screens/CivilID/CivilID.js +1 -1
  95. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  96. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -1
  97. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +1 -1
  98. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -1
  99. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
  100. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -2
  101. package/build/features/connectExpress/screens/NID/NID.js +1 -1
  102. package/build/features/connectExpress/screens/NIDMissed/NID.js +1 -1
  103. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
  104. package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
  105. package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
  106. package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
  107. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
  108. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
  109. package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
  110. package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
  111. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  112. package/build/features/entity/Entity.d.ts +1 -0
  113. package/build/features/entity/Entity.js +7 -4
  114. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -4
  115. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +8 -4
  116. package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
  117. package/build/features/entity/screens/EntityName/EntityName.js +32 -15
  118. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
  119. package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
  120. package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
  121. package/build/features/entity/screens/OperatorError/index.js +2 -0
  122. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  123. package/build/features/entity/screens/Verify/Verify.js +1 -1
  124. package/build/features/featuresScreens.js +67 -7
  125. package/build/features/individual/Individual.d.ts +1 -0
  126. package/build/features/individual/Individual.js +7 -4
  127. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +54 -14
  128. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +14 -0
  129. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
  130. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
  131. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
  132. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +4 -1
  133. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +3 -2
  134. package/build/features/individual/screens/IndividualList/Email.js +3 -2
  135. package/build/features/individual/screens/IndividualList/IndividualList.js +18 -5
  136. package/build/features/individual/screens/IndividualList/UserList.js +13 -9
  137. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -2
  138. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +76 -20
  139. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
  140. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
  141. package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
  142. package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
  143. package/build/features/individual/screens/OperatorError/index.js +2 -0
  144. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  145. package/build/features/individual/screens/Verify/Verify.js +1 -1
  146. package/build/features/password/Password.d.ts +1 -0
  147. package/build/features/password/Password.js +75 -28
  148. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  149. package/build/features/password/screens/OTP/OTP.js +1 -1
  150. package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
  151. package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
  152. package/build/features/password/screens/OperatorError/index.d.ts +3 -0
  153. package/build/features/password/screens/OperatorError/index.js +2 -0
  154. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
  155. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
  156. package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
  157. package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
  158. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  159. package/build/features/password/screens/Verify/Verify.js +5 -5
  160. package/build/features/shared/Button/FlowsButtons.js +13 -3
  161. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -0
  162. package/build/features/shared/Containers/FeatureContainer.js +3 -3
  163. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +5 -1
  164. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -3
  165. package/build/features/signIn/SignIn.js +12 -3
  166. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
  167. package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
  168. package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
  169. package/build/features/signIn/screens/OperatorError/index.js +2 -0
  170. package/build/features/tax/Tax.d.ts +1 -0
  171. package/build/features/tax/Tax.js +7 -4
  172. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
  173. package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
  174. package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
  175. package/build/features/tax/screens/OperatorError/index.js +2 -0
  176. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  177. package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
  178. package/build/features/tax/screens/Verify/Verify.js +5 -5
  179. package/build/hooks/index.d.ts +1 -0
  180. package/build/hooks/index.js +1 -0
  181. package/build/hooks/useFormDirtyCheck.d.ts +10 -0
  182. package/build/hooks/useFormDirtyCheck.js +66 -0
  183. package/build/hooks/useVerifyToken.d.ts +5 -2
  184. package/build/hooks/useVerifyToken.js +10 -5
  185. package/build/utils/common.js +4 -4
  186. package/build/utils/locale.js +2 -1
  187. package/build/utils/string.d.ts +5 -2
  188. package/build/utils/string.js +34 -5
  189. 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 _a, _b;
58
- return __generator(this, function (_c) {
59
- switch (_c.label) {
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 = _c.sent();
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
- _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 });
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 _b, _c, _d, _e, _f;
103
- return __generator(this, function (_g) {
104
- switch (_g.label) {
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: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.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 = (_g.sent()).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
- _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 });
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, boardData, _c, id, type, serviceCallBack, _d, boardRes, individualRes;
134
- var _e;
135
- return __generator(this, function (_f) {
136
- switch (_f.label) {
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 = _f.sent();
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 = _f.sent(), boardInfoStatusData = _b[0], boardData = _b[1];
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 = _f.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) || [] })
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
- 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
- };
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
- 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
- };
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
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
101
- data: any;
102
- }, string, {
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
- response: any;
204
- formData: void;
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;