@tap-payments/auth-jsconnect 2.3.40-test → 2.3.46-test

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 (103) hide show
  1. package/build/@types/form.d.ts +0 -3
  2. package/build/api/entity.d.ts +0 -1
  3. package/build/api/index.d.ts +0 -3
  4. package/build/api/index.js +1 -3
  5. package/build/assets/locales/ar.json +0 -1
  6. package/build/assets/locales/en.json +0 -1
  7. package/build/components/DatePicker/DatePicker.js +1 -0
  8. package/build/components/RadioGroup/RadioGroup.d.ts +5 -2
  9. package/build/components/RadioGroup/RadioGroup.js +5 -9
  10. package/build/components/RadioGroup/index.d.ts +1 -1
  11. package/build/constants/app.js +4 -10
  12. package/build/features/app/bank/bankStore.d.ts +0 -1
  13. package/build/features/app/bank/bankStore.js +21 -37
  14. package/build/features/app/connectExpress/connectExpressStore.js +12 -8
  15. package/build/features/app/entity/entityStore.d.ts +1 -9
  16. package/build/features/app/entity/entityStore.js +48 -119
  17. package/build/features/app/individual/individualStore.d.ts +0 -2
  18. package/build/features/app/individual/individualStore.js +71 -91
  19. package/build/features/app/tax/taxStore.js +18 -36
  20. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +6 -10
  21. package/build/features/bank/screens/Verify/OTPInput.js +5 -3
  22. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +0 -5
  23. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +5 -5
  24. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +0 -5
  25. package/build/features/brand/screens/BrandActivities/CustomerBase.js +5 -5
  26. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +13 -3
  27. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -2
  28. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -1
  29. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +6 -9
  30. package/build/features/brand/screens/BrandActivities/TAC.d.ts +12 -0
  31. package/build/features/brand/screens/BrandActivities/TAC.js +6 -9
  32. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
  33. package/build/features/brand/screens/BrandInfo/BrandInfo.js +2 -2
  34. package/build/features/brand/screens/BrandInfo/Segments.js +9 -1
  35. package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -1
  36. package/build/features/brand/screens/Verify/OTPInput.js +5 -3
  37. package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -5
  38. package/build/features/business/screens/Activities/ActivitiesList.js +5 -5
  39. package/build/features/business/screens/Activities/OperationStartDate.js +1 -1
  40. package/build/features/business/screens/BusinessType/LicenseList.js +1 -1
  41. package/build/features/business/screens/Customers/CustomerLocations.d.ts +0 -5
  42. package/build/features/business/screens/Customers/CustomerLocations.js +5 -5
  43. package/build/features/business/screens/Customers/ExpectedCustomers.js +12 -2
  44. package/build/features/business/screens/Customers/ExpectedSalesRange.js +12 -2
  45. package/build/features/business/screens/IDBOD/DOB.js +1 -1
  46. package/build/features/business/screens/Verify/OTPInput.js +5 -3
  47. package/build/features/connect/screens/Merchant/BrandList.js +1 -1
  48. package/build/features/connect/screens/Merchant/Segments.js +6 -1
  49. package/build/features/connect/screens/Merchant/TeamSize.js +6 -1
  50. package/build/features/connectExpress/screens/Brand/Brand.js +1 -1
  51. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +3 -3
  52. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
  53. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +12 -0
  54. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +6 -9
  55. package/build/features/connectExpress/screens/NID/TAC.d.ts +12 -0
  56. package/build/features/connectExpress/screens/NID/TAC.js +6 -9
  57. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -5
  58. package/build/features/entity/screens/EntityCapital/ActivityList.js +5 -5
  59. package/build/features/entity/screens/EntityCapital/EntityCapital.js +2 -2
  60. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +0 -5
  61. package/build/features/entity/screens/EntityName/EntityTypeList.js +5 -5
  62. package/build/features/entity/screens/Verify/OTPInput.js +5 -3
  63. package/build/features/featuresScreens.js +0 -5
  64. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +1 -1
  65. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +10 -2
  66. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -1
  67. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +1 -1
  68. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -1
  69. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -1
  70. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +9 -1
  71. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +1 -1
  72. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +1 -1
  73. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +1 -1
  74. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +9 -1
  75. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +9 -6
  76. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +9 -1
  77. package/build/features/individual/screens/Verify/OTPInput.js +5 -3
  78. package/build/features/password/screens/Verify/OTPInput.js +5 -3
  79. package/build/features/shared/Address/Address.js +13 -20
  80. package/build/features/shared/Address/CountryList.js +4 -4
  81. package/build/features/shared/Address/InputSelect.js +1 -1
  82. package/build/features/shared/Button/FlowsButtons.js +14 -19
  83. package/build/features/shared/Input/Input.js +2 -3
  84. package/build/features/shared/OTP/OTP.d.ts +2 -1
  85. package/build/features/shared/OTP/OTP.js +2 -2
  86. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +2 -1
  87. package/build/features/shared/SalesChannels/SalesChannel.js +2 -1
  88. package/build/features/shared/UploadFile/FileUpload.js +5 -5
  89. package/build/features/shared/UploadFile/UploadFile.js +7 -7
  90. package/build/features/shared/UploadMultipleFile/UploadFile.js +5 -5
  91. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +6 -9
  92. package/build/features/tax/screens/Verify/OTPInput.js +5 -3
  93. package/build/utils/error.d.ts +1 -0
  94. package/build/utils/error.js +3 -0
  95. package/build/utils/string.d.ts +1 -1
  96. package/build/utils/string.js +6 -0
  97. package/package.json +1 -1
  98. package/build/api/address.d.ts +0 -4
  99. package/build/api/address.js +0 -12
  100. package/build/features/entity/screens/EntityAddress/EntityAddress.d.ts +0 -5
  101. package/build/features/entity/screens/EntityAddress/EntityAddress.js +0 -42
  102. package/build/features/entity/screens/EntityAddress/index.d.ts +0 -2
  103. package/build/features/entity/screens/EntityAddress/index.js +0 -2
@@ -134,9 +134,6 @@ export declare type EntityCapitalFormValues = {
134
134
  capitalShareCount: string;
135
135
  capitalShareValue: string;
136
136
  };
137
- export declare type EntityAddressFormValues = {
138
- billingAddress: Record<string, string>;
139
- };
140
137
  export declare type BusinessDataFormValues = {
141
138
  brandName: string;
142
139
  licenseNumber: string;
@@ -71,7 +71,6 @@ export declare type UpdateEntityBody = {
71
71
  id: string;
72
72
  action: string;
73
73
  }>;
74
- billing_address?: Record<string, string>;
75
74
  legal_name?: {
76
75
  ar?: string;
77
76
  en?: string;
@@ -141,9 +141,6 @@ declare const API: {
141
141
  addFilesToExistingDocument: ({ id, ...data }: DocumentBody) => Promise<any>;
142
142
  removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any>>;
143
143
  };
144
- addressService: {
145
- retrieveAddressFormat: (countryCode: string) => Promise<any>;
146
- };
147
144
  };
148
145
  export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody };
149
146
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
@@ -15,7 +15,6 @@ import { userService } from './user';
15
15
  import { brandService } from './brand';
16
16
  import { fileService } from './file';
17
17
  import { documentService } from './document';
18
- import { addressService } from './address';
19
18
  var API = {
20
19
  locationService: locationService,
21
20
  operatorService: operatorService,
@@ -32,8 +31,7 @@ var API = {
32
31
  userService: userService,
33
32
  brandService: brandService,
34
33
  fileService: fileService,
35
- documentService: documentService,
36
- addressService: addressService
34
+ documentService: documentService
37
35
  };
38
36
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
39
37
  export default API;
@@ -391,7 +391,6 @@
391
391
  "try_again": "حاول مرة أخرى",
392
392
  "file_delete_error": "حدث خطأ ما في حذف الملف. حاول مرة اخرى",
393
393
  "file_download_error": "حدث خطأ ما في تحميل الملف. حاول مرة اخرى",
394
- "is_required": " مطلوب",
395
394
  "title_brand_logo": "لوجو العلامة التجارية",
396
395
  "description_brand_logo": "JPG or PNG files up to 4mb."
397
396
  }
@@ -421,7 +421,6 @@
421
421
  "try_again": "Try again",
422
422
  "file_delete_error": "Something went wrong with deleting file. Please try again",
423
423
  "file_download_error": "Something went wrong with downloading file. Please try again",
424
- "is_required": " is required",
425
424
  "title_brand_logo": "Brand Logo",
426
425
  "description_brand_logo": "JPG or PNG files up to 4mb."
427
426
  }
@@ -42,6 +42,7 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !
42
42
  var theme = _a.theme, disabled = _a.disabled;
43
43
  return ({
44
44
  cursor: disabled ? 'auto' : 'pointer',
45
+ opacity: disabled ? '0.6' : '1',
45
46
  fontFamily: theme.typography.fontFamily
46
47
  });
47
48
  });
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { RadioGroupProps } from '@mui/material/RadioGroup';
3
- export type { RadioGroupProps };
4
- declare const _default: React.MemoExoticComponent<({ children, ...props }: RadioGroupProps) => JSX.Element>;
3
+ interface RadioGroupStyledProps extends RadioGroupProps {
4
+ readOnly?: boolean;
5
+ }
6
+ export type { RadioGroupStyledProps };
7
+ declare const _default: React.MemoExoticComponent<({ children, ...props }: RadioGroupStyledProps) => JSX.Element>;
5
8
  export default _default;
@@ -24,15 +24,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
26
  import RadioGroup from '@mui/material/RadioGroup';
27
- var RadioGroupStyled = styled(RadioGroup)(function (_a) {
28
- var theme = _a.theme;
29
- return ({
30
- width: '100%',
31
- flexDirection: 'row',
32
- display: 'flex',
33
- direction: theme.direction,
34
- marginInlineStart: theme.spacing(0.25)
35
- });
27
+ var RadioGroupStyled = styled(RadioGroup, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
28
+ var theme = _a.theme, readOnly = _a.readOnly;
29
+ return (__assign({ width: '100%', flexDirection: 'row', display: 'flex', direction: theme.direction, marginInlineStart: theme.spacing(0.25) }, (readOnly && {
30
+ opacity: 0.6
31
+ })));
36
32
  });
37
33
  var RadioGroupComponent = function (_a) {
38
34
  var children = _a.children, props = __rest(_a, ["children"]);
@@ -1,3 +1,3 @@
1
- import RadioGroup, { RadioGroupProps } from './RadioGroup';
1
+ import RadioGroup, { RadioGroupStyledProps as RadioGroupProps } from './RadioGroup';
2
2
  export type { RadioGroupProps };
3
3
  export default RadioGroup;
@@ -465,33 +465,27 @@ export var ENTITY_SCREENS_NAVIGATION = [
465
465
  },
466
466
  {
467
467
  name: 'ENTITY_CAPITAL_STEP',
468
- next: 'ENTITY_ADDRESS_STEP',
468
+ next: 'ENTITY_DETAILS_SUCCESS_STEP',
469
469
  prev: 'ENTITY_NAME_STEP',
470
470
  order: 3
471
471
  },
472
- {
473
- name: 'ENTITY_ADDRESS_STEP',
474
- next: 'ENTITY_DETAILS_SUCCESS_STEP',
475
- prev: 'ENTITY_CAPITAL_STEP',
476
- order: 4
477
- },
478
472
  {
479
473
  name: 'ENTITY_DETAILS_SUCCESS_STEP',
480
474
  next: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
481
475
  prev: 'ENTITY_CAPITAL_STEP',
482
- order: 5
476
+ order: 4
483
477
  },
484
478
  {
485
479
  name: 'ENTITY_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
486
480
  next: 'ENTITY_RESET_PASSWORD_SUCCESS',
487
481
  prev: '',
488
- order: 6
482
+ order: 5
489
483
  },
490
484
  {
491
485
  name: 'ENTITY_RESET_PASSWORD_SUCCESS',
492
486
  next: '',
493
487
  prev: '',
494
- order: 7
488
+ order: 5
495
489
  }
496
490
  ];
497
491
  export var BRAND_SCREENS_NAVIGATION = [
@@ -17,7 +17,6 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
17
17
  contact: any;
18
18
  business: any;
19
19
  individuals: any;
20
- flows: any;
21
20
  };
22
21
  token: string;
23
22
  }, VerifyLeadTokenProps, {}>;
@@ -55,10 +55,10 @@ import { hasNoneEditableValue, sleep } from '../../../utils';
55
55
  export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_a, thunkApi) {
56
56
  var token = _a.token, isInternally = _a.isInternally;
57
57
  return __awaiter(void 0, void 0, void 0, function () {
58
- var payload, data, boardInfoData, boardData, board_id, countryIso2, info, hasBankCompleted;
59
- var _b, _c, _d, _e;
60
- return __generator(this, function (_f) {
61
- switch (_f.label) {
58
+ var payload, data, boardData, board_id, countryIso2;
59
+ var _b, _c, _d;
60
+ return __generator(this, function (_e) {
61
+ switch (_e.label) {
62
62
  case 0:
63
63
  payload = {
64
64
  service_name: 'tap_email',
@@ -66,37 +66,29 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
66
66
  };
67
67
  return [4, API.leadService.verifyLeadToken(payload)];
68
68
  case 1:
69
- data = (_f.sent()).data;
69
+ data = (_e.sent()).data;
70
70
  boardData = undefined;
71
- if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 5];
71
+ if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 4];
72
72
  board_id = data === null || data === void 0 ? void 0 : data.id;
73
- if (!board_id) return [3, 4];
74
- return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
75
- case 2:
76
- boardInfoData = _f.sent();
73
+ if (!board_id) return [3, 3];
77
74
  return [4, API.boardService.retrieveBoardDetails(board_id)];
75
+ case 2:
76
+ boardData = _e.sent();
77
+ _e.label = 3;
78
78
  case 3:
79
- boardData = _f.sent();
80
- _f.label = 4;
81
- case 4:
82
79
  countryIso2 = (_b = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _b === void 0 ? void 0 : _b.country;
83
80
  if (countryIso2)
84
81
  thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
85
- info = (boardInfoData || {}).info;
86
82
  if (isInternally)
87
83
  data.step_name = BANK_STEP_NAMES.BANK_INFO;
88
- hasBankCompleted = ((_c = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'bank'; })) === null || _c === void 0 ? void 0 : _c.status) === 'completed';
89
84
  if (data.step_name === BANK_STEP_NAMES.PHONE_AUTH) {
90
85
  thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
91
86
  }
92
- else if (hasBankCompleted) {
93
- thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
94
- }
95
87
  else if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
96
88
  sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
97
89
  }
98
- _f.label = 5;
99
- case 5: return [2, {
90
+ _e.label = 4;
91
+ case 4: return [2, {
100
92
  data: data,
101
93
  boardResponse: {
102
94
  user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
@@ -104,11 +96,10 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
104
96
  bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
105
97
  entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
106
98
  merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
107
- name: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names,
108
- contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact,
99
+ name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
100
+ contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
109
101
  business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
110
- individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
111
- flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
102
+ individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals
112
103
  },
113
104
  token: token
114
105
  }];
@@ -134,14 +125,13 @@ export var resendOTP = createAsyncThunk('resendOTPBank', function (params, thunk
134
125
  });
135
126
  }); });
136
127
  export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
137
- var _a, bank, settings, responseBody, flows, payload, data, hasBankCompleted;
138
- var _b, _c, _d, _e;
139
- return __generator(this, function (_f) {
140
- switch (_f.label) {
128
+ var _a, bank, settings, responseBody, payload, data;
129
+ var _b, _c, _d;
130
+ return __generator(this, function (_e) {
131
+ switch (_e.label) {
141
132
  case 0:
142
133
  _a = thunkApi.getState(), bank = _a.bank, settings = _a.settings;
143
134
  responseBody = bank.data.verify.responseBody;
144
- flows = (responseBody || {}).flows;
145
135
  payload = {
146
136
  data: params.otp,
147
137
  service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
@@ -151,16 +141,10 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
151
141
  };
152
142
  return [4, API.leadService.verifyLeadOTP(payload)];
153
143
  case 1:
154
- data = (_f.sent()).data;
144
+ data = (_e.sent()).data;
155
145
  if (!data.errors) {
156
146
  (_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
157
- 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';
158
- if (hasBankCompleted) {
159
- thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
160
- }
161
- else {
162
- sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
163
- }
147
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
164
148
  }
165
149
  return [2, { data: data, formData: params }];
166
150
  }
@@ -1027,7 +1027,7 @@ export var connectSlice = createSlice({
1027
1027
  state.error = null;
1028
1028
  })
1029
1029
  .addCase(retrieveEntityListAsync.fulfilled, function (state, action) {
1030
- var _a, _b, _c, _d, _e;
1030
+ var _a, _b;
1031
1031
  state.loading = false;
1032
1032
  var data = action.payload;
1033
1033
  var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
@@ -1047,19 +1047,23 @@ export var connectSlice = createSlice({
1047
1047
  }
1048
1048
  }
1049
1049
  licenseList = __spreadArray(__spreadArray([], licenseList, true), [OTHER_CR_LICENSE, OTHER_FL_LICENSE], false);
1050
- var _f = ((_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}, license_number = _f.license_number, license_type = _f.license_type;
1050
+ var _c = ((_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}, license_number = _c.license_number, license_type = _c.license_type;
1051
+ var selectedLicense = undefined;
1051
1052
  if (license_number) {
1052
1053
  var findLicense = licenseList.find(function (_a) {
1053
1054
  var license = _a.license;
1054
1055
  return (license === null || license === void 0 ? void 0 : license.number) === license_number;
1055
1056
  });
1056
- var selectedLicense = (findLicense !== null && findLicense !== void 0 ? findLicense : license_type === 'freelance')
1057
- ? __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: license_number } }) : __assign(__assign({}, OTHER_CR_LICENSE), { license: { number: license_number } });
1058
- state.data.businessData.selectedLicense = selectedLicense;
1059
- var isOtherLicense = ((_c = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.license) === null || _c === void 0 ? void 0 : _c.number) === 'other_fl' || ((_d = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.license) === null || _d === void 0 ? void 0 : _d.number) === 'other_cr';
1060
- if (!isOtherLicense)
1061
- state.data.businessData.licenseNumber = ((_e = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.license) === null || _e === void 0 ? void 0 : _e.number) || '';
1057
+ if (findLicense)
1058
+ selectedLicense = findLicense;
1059
+ else if (!findLicense && license_type === 'freelance') {
1060
+ selectedLicense = __assign(__assign({}, OTHER_FL_LICENSE), { license: { number: license_number } });
1061
+ }
1062
+ else
1063
+ selectedLicense = __assign(__assign({}, OTHER_CR_LICENSE), { license: { number: license_number } });
1064
+ state.data.businessData.licenseNumber = license_number;
1062
1065
  }
1066
+ state.data.businessData.selectedLicense = selectedLicense;
1063
1067
  state.data.responseData = __assign(__assign({}, state.data.responseData), { licenseList: licenseList });
1064
1068
  })
1065
1069
  .addCase(retrieveEntityListAsync.rejected, function (state, action) {
@@ -1,5 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ActionState, EntityAddressFormValues, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
2
+ import { ActionState, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  interface VerifyLeadTokenProps {
4
4
  token: string;
5
5
  isInternally?: boolean;
@@ -16,7 +16,6 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
16
16
  contact: any;
17
17
  individuals: any;
18
18
  business: any;
19
- flows: any;
20
19
  entityTypes: any;
21
20
  };
22
21
  token: string;
@@ -36,7 +35,6 @@ export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<
36
35
  contact: any;
37
36
  individuals: any;
38
37
  business: any;
39
- flows: any;
40
38
  entityTypes: any;
41
39
  };
42
40
  formData: OTPFormValues;
@@ -51,12 +49,7 @@ export declare const updateEntityName: import("@reduxjs/toolkit").AsyncThunk<{
51
49
  export declare const updateEntityCapital: import("@reduxjs/toolkit").AsyncThunk<{
52
50
  data: any;
53
51
  formData: EntityCapitalFormValues;
54
- addressFormat: any;
55
52
  }, EntityCapitalFormValues, {}>;
56
- export declare const updateEntityAddress: import("@reduxjs/toolkit").AsyncThunk<{
57
- data: any;
58
- formData: EntityAddressFormValues;
59
- }, EntityAddressFormValues, {}>;
60
53
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
61
54
  response: any;
62
55
  formData: void;
@@ -69,7 +62,6 @@ export interface EntityData {
69
62
  otpData: OTPFormValues & ResponseData;
70
63
  entityNameData: EntityNameFormValues & ResponseData;
71
64
  entityCapitalData: EntityCapitalFormValues & ResponseData;
72
- entityAddressData: EntityAddressFormValues & ResponseData;
73
65
  flowName: FlowsTypes;
74
66
  }
75
67
  export interface EntityState extends SharedState<EntityData> {