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