@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
@@ -885,65 +885,111 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
885
885
  });
886
886
  });
887
887
  });
888
- export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
889
- var _a, connectExpress, settings, responseData, _b, postURL, scope, redirectUrl, mode, showBoard, platforms, payment_provider, authId, bi, leadId, body, data, leadData, board_id, board_info_id, _c, boardInfo, boardData, urlQueryStart;
890
- var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
891
- return __generator(this, function (_t) {
892
- switch (_t.label) {
888
+ export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_a, thunkApi) {
889
+ var isRetry = _a.isRetry;
890
+ return __awaiter(void 0, void 0, void 0, function () {
891
+ var _b, connectExpress, settings, responseData, _c, postURL, scope, redirectUrl, mode, showBoard, platforms, payment_provider, leadId, authId, bi, leadData, accountData, data, body, urlQueryStart;
892
+ var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
893
+ return __generator(this, function (_v) {
894
+ switch (_v.label) {
895
+ case 0:
896
+ _b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
897
+ responseData = connectExpress.data.responseData;
898
+ _c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode, showBoard = _c.showBoard;
899
+ platforms = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
900
+ payment_provider = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _f === void 0 ? void 0 : _f.payment_provider) !== null && _g !== void 0 ? _g : settings.data.appConfig.paymentProvider;
901
+ leadId = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _h === void 0 ? void 0 : _h.id;
902
+ authId = (_k = (_j = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _j === void 0 ? void 0 : _j.auth) === null || _k === void 0 ? void 0 : _k.id;
903
+ bi = settings.data.deviceInfo.browser.browser_id;
904
+ accountData = undefined;
905
+ if (!isRetry) return [3, 2];
906
+ return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
907
+ case 1:
908
+ data = (_v.sent()).data;
909
+ if (data === null || data === void 0 ? void 0 : data.board_id) {
910
+ leadData = data;
911
+ accountData = data;
912
+ }
913
+ _v.label = 2;
914
+ case 2:
915
+ body = {
916
+ lead_id: leadId,
917
+ post_url: scope === SCOPE_AUTH ? '' : postURL || '',
918
+ platforms: platforms,
919
+ payment_provider: payment_provider
920
+ };
921
+ if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 4];
922
+ return [4, API.accountService.expressCreateAccount(body)];
923
+ case 3:
924
+ accountData = _v.sent();
925
+ _v.label = 4;
926
+ case 4:
927
+ sendCustomEventToGTM({
928
+ event: 'Send Event',
929
+ event_category: 'User Registration Flow',
930
+ event_action: 'Registration Completed',
931
+ event_label: 'Product Type',
932
+ event_value: leadId
933
+ });
934
+ sendCustomDimension({
935
+ event: 'PageView',
936
+ lead_ID: leadId
937
+ });
938
+ (_m = (_l = settings.data.appConfig).onCreated) === null || _m === void 0 ? void 0 : _m.call(_l, accountData);
939
+ (_p = (_o = settings.data.appConfig).onFlowCompleted) === null || _p === void 0 ? void 0 : _p.call(_o, accountData);
940
+ (_r = (_q = settings.data.appConfig).onStepCompleted) === null || _r === void 0 ? void 0 : _r.call(_q, settings.data.activeScreen.name, accountData);
941
+ if (showBoard) {
942
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
943
+ return [2, { accountData: accountData }];
944
+ }
945
+ if (!(scope === SCOPE_AUTH)) return [3, 8];
946
+ if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 6];
947
+ return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
948
+ case 5:
949
+ leadData = _v.sent();
950
+ _v.label = 6;
951
+ case 6: return [4, thunkApi.dispatch(onCloseComplete({ merchantId: (_s = leadData === null || leadData === void 0 ? void 0 : leadData.merchant) === null || _s === void 0 ? void 0 : _s.id, brandId: (_t = leadData === null || leadData === void 0 ? void 0 : leadData.brand) === null || _t === void 0 ? void 0 : _t.id, entityId: (_u = leadData === null || leadData === void 0 ? void 0 : leadData.entity) === null || _u === void 0 ? void 0 : _u.id }))];
952
+ case 7:
953
+ _v.sent();
954
+ return [2, { accountData: accountData }];
955
+ case 8:
956
+ if (redirectUrl && mode === 'page') {
957
+ urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
958
+ window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
959
+ return [2, { accountData: accountData }];
960
+ }
961
+ thunkApi.dispatch(handleOpen(false));
962
+ return [2];
963
+ }
964
+ });
965
+ });
966
+ });
967
+ export var retrieveDetailsAfterCreateAccountAsync = createAsyncThunk('connectExpress/retrieveDetailsAfterCreateAccountAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
968
+ var connectExpress, _a, accountData, leadData, leadResData, data, board_id, board_info_id, _b, boardInfo, boardData;
969
+ var _c, _d;
970
+ return __generator(this, function (_e) {
971
+ switch (_e.label) {
893
972
  case 0:
894
- _a = thunkApi.getState(), connectExpress = _a.connectExpress, settings = _a.settings;
895
- responseData = connectExpress.data.responseData;
896
- _b = settings.data.appConfig, postURL = _b.postURL, scope = _b.scope, redirectUrl = _b.redirectUrl, mode = _b.mode, showBoard = _b.showBoard;
897
- platforms = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
898
- payment_provider = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _f === void 0 ? void 0 : _f.payment_provider) !== null && _g !== void 0 ? _g : settings.data.appConfig.paymentProvider;
899
- authId = (_j = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _h === void 0 ? void 0 : _h.auth) === null || _j === void 0 ? void 0 : _j.id;
900
- bi = settings.data.deviceInfo.browser.browser_id;
901
- leadId = responseData === null || responseData === void 0 ? void 0 : responseData.leadData.id;
902
- body = {
903
- lead_id: leadId,
904
- post_url: scope === SCOPE_AUTH ? '' : postURL || '',
905
- platforms: platforms,
906
- payment_provider: payment_provider
907
- };
908
- return [4, API.accountService.expressCreateAccount(body)];
973
+ connectExpress = thunkApi.getState().connectExpress;
974
+ _a = connectExpress.data.responseData || {}, accountData = _a.accountData, leadData = _a.leadData;
975
+ leadResData = undefined;
976
+ if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 2];
977
+ return [4, thunkApi.dispatch(getLeadByIdAsync(leadData === null || leadData === void 0 ? void 0 : leadData.id)).unwrap()];
909
978
  case 1:
910
- data = _t.sent();
911
- sendCustomEventToGTM({
912
- event: 'Send Event',
913
- event_category: 'User Registration Flow',
914
- event_action: 'Registration Completed',
915
- event_label: 'Product Type',
916
- event_value: leadId
917
- });
918
- sendCustomDimension({
919
- event: 'PageView',
920
- lead_ID: leadId
921
- });
922
- (_l = (_k = settings.data.appConfig).onCreated) === null || _l === void 0 ? void 0 : _l.call(_k, data);
923
- (_o = (_m = settings.data.appConfig).onFlowCompleted) === null || _o === void 0 ? void 0 : _o.call(_m, data);
924
- (_q = (_p = settings.data.appConfig).onStepCompleted) === null || _q === void 0 ? void 0 : _q.call(_p, settings.data.activeScreen.name, data);
925
- if (!showBoard) return [3, 4];
926
- return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
979
+ data = (_e.sent()).data;
980
+ leadResData = data;
981
+ _e.label = 2;
927
982
  case 2:
928
- leadData = (_t.sent()).data;
929
- board_id = (_r = data.board_id) !== null && _r !== void 0 ? _r : leadData.board_id;
930
- board_info_id = (_s = data.board_info_id) !== null && _s !== void 0 ? _s : leadData.board_info_id;
983
+ board_id = (_c = accountData === null || accountData === void 0 ? void 0 : accountData.board_id) !== null && _c !== void 0 ? _c : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_id;
984
+ board_info_id = (_d = accountData === null || accountData === void 0 ? void 0 : accountData.board_info_id) !== null && _d !== void 0 ? _d : leadResData === null || leadResData === void 0 ? void 0 : leadResData.board_info_id;
931
985
  return [4, Promise.all([
932
986
  API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
933
987
  API.boardService.retrieveBoardDetails(board_id)
934
988
  ])];
935
989
  case 3:
936
- _c = _t.sent(), boardInfo = _c[0], boardData = _c[1];
990
+ _b = _e.sent(), boardInfo = _b[0], boardData = _b[1];
937
991
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
938
- return [2, { boardInfo: boardInfo, boardData: boardData, account: data }];
939
- case 4:
940
- if (redirectUrl && mode === 'page') {
941
- urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
942
- window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
943
- return [2, { account: data }];
944
- }
945
- thunkApi.dispatch(handleOpen(false));
946
- return [2];
992
+ return [2, { boardInfo: boardInfo, boardData: boardData }];
947
993
  }
948
994
  });
949
995
  }); });
@@ -966,8 +1012,7 @@ export var createEntity = createAsyncThunk('connectExpress/createEntity', functi
966
1012
  number: licenseNumber || '',
967
1013
  type: licenseType || ''
968
1014
  },
969
- country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2,
970
- is_licensed: undefined
1015
+ country: (_a = settings.data.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2
971
1016
  }
972
1017
  };
973
1018
  return [4, API.entityService.createEntity(body)];
@@ -1586,6 +1631,19 @@ export var connectSlice = createSlice({
1586
1631
  .addCase(createAccountAsync.rejected, function (state, action) {
1587
1632
  state.loading = false;
1588
1633
  state.error = action.error.message;
1634
+ })
1635
+ .addCase(retrieveDetailsAfterCreateAccountAsync.pending, function (state) {
1636
+ state.loading = true;
1637
+ state.error = null;
1638
+ })
1639
+ .addCase(retrieveDetailsAfterCreateAccountAsync.fulfilled, function (state, action) {
1640
+ state.loading = false;
1641
+ state.error = null;
1642
+ state.data.responseData = __assign(__assign({}, state.data.responseData), action.payload);
1643
+ })
1644
+ .addCase(retrieveDetailsAfterCreateAccountAsync.rejected, function (state, action) {
1645
+ state.loading = false;
1646
+ state.error = action.error.message;
1589
1647
  })
1590
1648
  .addCase(getMerchantListAsync.pending, function (state) {
1591
1649
  state.loading = true;
@@ -6,20 +6,8 @@ interface VerifyLeadTokenProps {
6
6
  }
7
7
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
8
8
  data: any;
9
- individualData: any;
10
- boardResponse: {
11
- user: any;
12
- brand: any;
13
- bank_account: any;
14
- entity: any;
15
- merchant: any;
16
- name: any;
17
- contact: any;
18
- individuals: any;
19
- business: any;
20
- entityTypes: any;
21
- notification: any;
22
- };
9
+ entityData: any;
10
+ entityTypes: any;
23
11
  token: string;
24
12
  }, VerifyLeadTokenProps, {
25
13
  state?: unknown;
@@ -45,20 +33,8 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
45
33
  }>;
46
34
  export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
47
35
  data: any;
48
- individualData: any;
49
- boardResponse: {
50
- user: any;
51
- brand: any;
52
- bank_account: any;
53
- entity: any;
54
- merchant: any;
55
- name: any;
56
- contact: any;
57
- individuals: any;
58
- business: any;
59
- entityTypes: any;
60
- notification: any;
61
- };
36
+ entityData: any;
37
+ entityTypes: any;
62
38
  formData: OTPFormValues;
63
39
  }, OTPFormValues, {
64
40
  state?: unknown;
@@ -82,9 +58,12 @@ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<
82
58
  fulfilledMeta?: unknown;
83
59
  rejectedMeta?: unknown;
84
60
  }>;
85
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
86
- data: any;
87
- }, string, {
61
+ type RetrieveBoardProps = {
62
+ boardId: string;
63
+ individualId: string;
64
+ individualType: string;
65
+ };
66
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
88
67
  state?: unknown;
89
68
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
90
69
  extra?: unknown;
@@ -95,9 +74,12 @@ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk
95
74
  rejectedMeta?: unknown;
96
75
  }>;
97
76
  export declare const updateEntityName: import("@reduxjs/toolkit").AsyncThunk<{
98
- data: any;
77
+ data: {
78
+ entity: any;
79
+ documentData: any;
80
+ activityList: any;
81
+ };
99
82
  formData: EntityNameFormValues;
100
- currencyData: any;
101
83
  }, AsyncThunkParams<EntityNameFormValues>, {
102
84
  state?: unknown;
103
85
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -122,8 +104,11 @@ export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<
122
104
  rejectedMeta?: unknown;
123
105
  }>;
124
106
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
125
- response: any;
126
- formData: void;
107
+ data: any;
108
+ flows?: undefined;
109
+ } | {
110
+ data: any;
111
+ flows: any;
127
112
  } | undefined, void, {
128
113
  state?: unknown;
129
114
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -153,7 +138,6 @@ export interface EntityData {
153
138
  entityNameData: EntityNameFormValues & ResponseData;
154
139
  entityCapitalData: EntityCapitalFormValues & ResponseData;
155
140
  flowName: FlowsTypes;
156
- currency: string;
157
141
  }
158
142
  export interface EntityState extends SharedState<EntityData> {
159
143
  customLoading?: boolean;